Merge from emacs--devo--0
[emacs/old-mirror.git] / configure
blob622af8f87b8290bef6f151b955e3d62945ad977a
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560 # Initializations.
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
579 ac_unique_file="src/lisp.h"
580 ac_config_libobj_dir=src
581 # Factoring default headers for most tests.
582 ac_includes_default="\
583 #include <stdio.h>
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
586 #endif
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
589 #endif
590 #ifdef STDC_HEADERS
591 # include <stdlib.h>
592 # include <stddef.h>
593 #else
594 # ifdef HAVE_STDLIB_H
595 # include <stdlib.h>
596 # endif
597 #endif
598 #ifdef HAVE_STRING_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600 # include <memory.h>
601 # endif
602 # include <string.h>
603 #endif
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
606 #endif
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
609 #endif
610 #ifdef HAVE_STDINT_H
611 # include <stdint.h>
612 #endif
613 #ifdef HAVE_UNISTD_H
614 # include <unistd.h>
615 #endif"
617 ac_header_list=
618 ac_func_list=
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 MAINT
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
673 GREP
674 EGREP
675 LN_S
676 INSTALL_PROGRAM
677 INSTALL_SCRIPT
678 INSTALL_DATA
679 RANLIB
680 INSTALL_INFO
681 GZIP_PROG
682 LIBSOUND
683 PKG_CONFIG
684 ALSA_CFLAGS
685 ALSA_LIBS
686 CFLAGS_SOUND
687 SET_MAKE
688 XMKMF
689 HAVE_XSERVER
690 GTK_CFLAGS
691 GTK_LIBS
692 XFT_CFLAGS
693 XFT_LIBS
694 FREETYPE_CFLAGS
695 FREETYPE_LIBS
696 FONTCONFIG_CFLAGS
697 FONTCONFIG_LIBS
698 HAVE_LIBOTF
699 LIBOTF_CFLAGS
700 LIBOTF_LIBS
701 ALLOCA
702 liblockfile
703 LIBOBJS
704 NEED_SETGID
705 KMEM_GROUP
706 GETLOADAVG_LIBS
707 GETOPT_H
708 GETOPTOBJS
709 version
710 configuration
711 canonical
712 srcdir
713 lispdir
714 locallisppath
715 lisppath
716 x_default_search_path
717 etcdir
718 archlibdir
719 bitmapdir
720 gamedir
721 gameuser
722 c_switch_system
723 c_switch_machine
724 LD_SWITCH_X_SITE
725 LD_SWITCH_X_SITE_AUX
726 C_SWITCH_X_SITE
727 X_TOOLKIT_TYPE
728 machfile
729 opsysfile
730 carbon_appdir
731 LTLIBOBJS'
732 ac_subst_files=''
733 ac_precious_vars='build_alias
734 host_alias
735 target_alias
737 CFLAGS
738 LDFLAGS
739 LIBS
740 CPPFLAGS
742 XMKMF'
745 # Initialize some variables set by options.
746 ac_init_help=
747 ac_init_version=false
748 # The variables have the same names as the options, with
749 # dashes changed to underlines.
750 cache_file=/dev/null
751 exec_prefix=NONE
752 no_create=
753 no_recursion=
754 prefix=NONE
755 program_prefix=NONE
756 program_suffix=NONE
757 program_transform_name=s,x,x,
758 silent=
759 site=
760 srcdir=
761 verbose=
762 x_includes=NONE
763 x_libraries=NONE
765 # Installation directory options.
766 # These are left unexpanded so users can "make install exec_prefix=/foo"
767 # and all the variables that are supposed to be based on exec_prefix
768 # by default will actually change.
769 # Use braces instead of parens because sh, perl, etc. also accept them.
770 # (The list follows the same order as the GNU Coding Standards.)
771 bindir='${exec_prefix}/bin'
772 sbindir='${exec_prefix}/sbin'
773 libexecdir='${exec_prefix}/libexec'
774 datarootdir='${prefix}/share'
775 datadir='${datarootdir}'
776 sysconfdir='${prefix}/etc'
777 sharedstatedir='${prefix}/com'
778 localstatedir='${prefix}/var'
779 includedir='${prefix}/include'
780 oldincludedir='/usr/include'
781 docdir='${datarootdir}/doc/${PACKAGE}'
782 infodir='${datarootdir}/info'
783 htmldir='${docdir}'
784 dvidir='${docdir}'
785 pdfdir='${docdir}'
786 psdir='${docdir}'
787 libdir='${exec_prefix}/lib'
788 localedir='${datarootdir}/locale'
789 mandir='${datarootdir}/man'
791 ac_prev=
792 ac_dashdash=
793 for ac_option
795 # If the previous option needs an argument, assign it.
796 if test -n "$ac_prev"; then
797 eval $ac_prev=\$ac_option
798 ac_prev=
799 continue
802 case $ac_option in
803 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
804 *) ac_optarg=yes ;;
805 esac
807 # Accept the important Cygnus configure options, so we can diagnose typos.
809 case $ac_dashdash$ac_option in
811 ac_dashdash=yes ;;
813 -bindir | --bindir | --bindi | --bind | --bin | --bi)
814 ac_prev=bindir ;;
815 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
816 bindir=$ac_optarg ;;
818 -build | --build | --buil | --bui | --bu)
819 ac_prev=build_alias ;;
820 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
821 build_alias=$ac_optarg ;;
823 -cache-file | --cache-file | --cache-fil | --cache-fi \
824 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
825 ac_prev=cache_file ;;
826 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
827 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
828 cache_file=$ac_optarg ;;
830 --config-cache | -C)
831 cache_file=config.cache ;;
833 -datadir | --datadir | --datadi | --datad)
834 ac_prev=datadir ;;
835 -datadir=* | --datadir=* | --datadi=* | --datad=*)
836 datadir=$ac_optarg ;;
838 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
839 | --dataroo | --dataro | --datar)
840 ac_prev=datarootdir ;;
841 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
842 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
843 datarootdir=$ac_optarg ;;
845 -disable-* | --disable-*)
846 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
847 # Reject names that are not valid shell variable names.
848 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
849 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
850 { (exit 1); exit 1; }; }
851 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
852 eval enable_$ac_feature=no ;;
854 -docdir | --docdir | --docdi | --doc | --do)
855 ac_prev=docdir ;;
856 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
857 docdir=$ac_optarg ;;
859 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
860 ac_prev=dvidir ;;
861 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
862 dvidir=$ac_optarg ;;
864 -enable-* | --enable-*)
865 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
866 # Reject names that are not valid shell variable names.
867 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
868 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
869 { (exit 1); exit 1; }; }
870 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
871 eval enable_$ac_feature=\$ac_optarg ;;
873 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
874 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
875 | --exec | --exe | --ex)
876 ac_prev=exec_prefix ;;
877 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
878 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
879 | --exec=* | --exe=* | --ex=*)
880 exec_prefix=$ac_optarg ;;
882 -gas | --gas | --ga | --g)
883 # Obsolete; use --with-gas.
884 with_gas=yes ;;
886 -help | --help | --hel | --he | -h)
887 ac_init_help=long ;;
888 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
889 ac_init_help=recursive ;;
890 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
891 ac_init_help=short ;;
893 -host | --host | --hos | --ho)
894 ac_prev=host_alias ;;
895 -host=* | --host=* | --hos=* | --ho=*)
896 host_alias=$ac_optarg ;;
898 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
899 ac_prev=htmldir ;;
900 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
901 | --ht=*)
902 htmldir=$ac_optarg ;;
904 -includedir | --includedir | --includedi | --included | --include \
905 | --includ | --inclu | --incl | --inc)
906 ac_prev=includedir ;;
907 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
908 | --includ=* | --inclu=* | --incl=* | --inc=*)
909 includedir=$ac_optarg ;;
911 -infodir | --infodir | --infodi | --infod | --info | --inf)
912 ac_prev=infodir ;;
913 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
914 infodir=$ac_optarg ;;
916 -libdir | --libdir | --libdi | --libd)
917 ac_prev=libdir ;;
918 -libdir=* | --libdir=* | --libdi=* | --libd=*)
919 libdir=$ac_optarg ;;
921 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
922 | --libexe | --libex | --libe)
923 ac_prev=libexecdir ;;
924 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
925 | --libexe=* | --libex=* | --libe=*)
926 libexecdir=$ac_optarg ;;
928 -localedir | --localedir | --localedi | --localed | --locale)
929 ac_prev=localedir ;;
930 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
931 localedir=$ac_optarg ;;
933 -localstatedir | --localstatedir | --localstatedi | --localstated \
934 | --localstate | --localstat | --localsta | --localst | --locals)
935 ac_prev=localstatedir ;;
936 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
937 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
938 localstatedir=$ac_optarg ;;
940 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
941 ac_prev=mandir ;;
942 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
943 mandir=$ac_optarg ;;
945 -nfp | --nfp | --nf)
946 # Obsolete; use --without-fp.
947 with_fp=no ;;
949 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
950 | --no-cr | --no-c | -n)
951 no_create=yes ;;
953 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
954 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
955 no_recursion=yes ;;
957 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
958 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
959 | --oldin | --oldi | --old | --ol | --o)
960 ac_prev=oldincludedir ;;
961 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
962 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
963 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
964 oldincludedir=$ac_optarg ;;
966 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
967 ac_prev=prefix ;;
968 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
969 prefix=$ac_optarg ;;
971 -program-prefix | --program-prefix | --program-prefi | --program-pref \
972 | --program-pre | --program-pr | --program-p)
973 ac_prev=program_prefix ;;
974 -program-prefix=* | --program-prefix=* | --program-prefi=* \
975 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
976 program_prefix=$ac_optarg ;;
978 -program-suffix | --program-suffix | --program-suffi | --program-suff \
979 | --program-suf | --program-su | --program-s)
980 ac_prev=program_suffix ;;
981 -program-suffix=* | --program-suffix=* | --program-suffi=* \
982 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
983 program_suffix=$ac_optarg ;;
985 -program-transform-name | --program-transform-name \
986 | --program-transform-nam | --program-transform-na \
987 | --program-transform-n | --program-transform- \
988 | --program-transform | --program-transfor \
989 | --program-transfo | --program-transf \
990 | --program-trans | --program-tran \
991 | --progr-tra | --program-tr | --program-t)
992 ac_prev=program_transform_name ;;
993 -program-transform-name=* | --program-transform-name=* \
994 | --program-transform-nam=* | --program-transform-na=* \
995 | --program-transform-n=* | --program-transform-=* \
996 | --program-transform=* | --program-transfor=* \
997 | --program-transfo=* | --program-transf=* \
998 | --program-trans=* | --program-tran=* \
999 | --progr-tra=* | --program-tr=* | --program-t=*)
1000 program_transform_name=$ac_optarg ;;
1002 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1003 ac_prev=pdfdir ;;
1004 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1005 pdfdir=$ac_optarg ;;
1007 -psdir | --psdir | --psdi | --psd | --ps)
1008 ac_prev=psdir ;;
1009 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1010 psdir=$ac_optarg ;;
1012 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1013 | -silent | --silent | --silen | --sile | --sil)
1014 silent=yes ;;
1016 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1017 ac_prev=sbindir ;;
1018 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1019 | --sbi=* | --sb=*)
1020 sbindir=$ac_optarg ;;
1022 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1023 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1024 | --sharedst | --shareds | --shared | --share | --shar \
1025 | --sha | --sh)
1026 ac_prev=sharedstatedir ;;
1027 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1028 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1029 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1030 | --sha=* | --sh=*)
1031 sharedstatedir=$ac_optarg ;;
1033 -site | --site | --sit)
1034 ac_prev=site ;;
1035 -site=* | --site=* | --sit=*)
1036 site=$ac_optarg ;;
1038 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1039 ac_prev=srcdir ;;
1040 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1041 srcdir=$ac_optarg ;;
1043 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1044 | --syscon | --sysco | --sysc | --sys | --sy)
1045 ac_prev=sysconfdir ;;
1046 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1047 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1048 sysconfdir=$ac_optarg ;;
1050 -target | --target | --targe | --targ | --tar | --ta | --t)
1051 ac_prev=target_alias ;;
1052 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1053 target_alias=$ac_optarg ;;
1055 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1056 verbose=yes ;;
1058 -version | --version | --versio | --versi | --vers | -V)
1059 ac_init_version=: ;;
1061 -with-* | --with-*)
1062 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1063 # Reject names that are not valid shell variable names.
1064 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1065 { echo "$as_me: error: invalid package name: $ac_package" >&2
1066 { (exit 1); exit 1; }; }
1067 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1068 eval with_$ac_package=\$ac_optarg ;;
1070 -without-* | --without-*)
1071 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1074 { echo "$as_me: error: invalid package name: $ac_package" >&2
1075 { (exit 1); exit 1; }; }
1076 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1077 eval with_$ac_package=no ;;
1079 --x)
1080 # Obsolete; use --with-x.
1081 with_x=yes ;;
1083 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1084 | --x-incl | --x-inc | --x-in | --x-i)
1085 ac_prev=x_includes ;;
1086 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1087 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1088 x_includes=$ac_optarg ;;
1090 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1091 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1092 ac_prev=x_libraries ;;
1093 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1094 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1095 x_libraries=$ac_optarg ;;
1097 -*) { echo "$as_me: error: unrecognized option: $ac_option
1098 Try \`$0 --help' for more information." >&2
1099 { (exit 1); exit 1; }; }
1102 *=*)
1103 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1104 # Reject names that are not valid shell variable names.
1105 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1106 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1107 { (exit 1); exit 1; }; }
1108 eval $ac_envvar=\$ac_optarg
1109 export $ac_envvar ;;
1112 # FIXME: should be removed in autoconf 3.0.
1113 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1114 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1115 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1116 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1119 esac
1120 done
1122 if test -n "$ac_prev"; then
1123 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1124 { echo "$as_me: error: missing argument to $ac_option" >&2
1125 { (exit 1); exit 1; }; }
1128 # Be sure to have absolute directory names.
1129 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1130 datadir sysconfdir sharedstatedir localstatedir includedir \
1131 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1132 libdir localedir mandir
1134 eval ac_val=\$$ac_var
1135 case $ac_val in
1136 [\\/$]* | ?:[\\/]* ) continue;;
1137 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1138 esac
1139 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1140 { (exit 1); exit 1; }; }
1141 done
1143 # There might be people who depend on the old broken behavior: `$host'
1144 # used to hold the argument of --host etc.
1145 # FIXME: To remove some day.
1146 build=$build_alias
1147 host=$host_alias
1148 target=$target_alias
1150 # FIXME: To remove some day.
1151 if test "x$host_alias" != x; then
1152 if test "x$build_alias" = x; then
1153 cross_compiling=maybe
1154 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1155 If a cross compiler is detected then cross compile mode will be used." >&2
1156 elif test "x$build_alias" != "x$host_alias"; then
1157 cross_compiling=yes
1161 ac_tool_prefix=
1162 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1164 test "$silent" = yes && exec 6>/dev/null
1167 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1168 ac_ls_di=`ls -di .` &&
1169 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1170 { echo "$as_me: error: Working directory cannot be determined" >&2
1171 { (exit 1); exit 1; }; }
1172 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1173 { echo "$as_me: error: pwd does not report name of working directory" >&2
1174 { (exit 1); exit 1; }; }
1177 # Find the source files, if location was not specified.
1178 if test -z "$srcdir"; then
1179 ac_srcdir_defaulted=yes
1180 # Try the directory containing this script, then the parent directory.
1181 ac_confdir=`$as_dirname -- "$0" ||
1182 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1183 X"$0" : 'X\(//\)[^/]' \| \
1184 X"$0" : 'X\(//\)$' \| \
1185 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1186 echo X"$0" |
1187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1188 s//\1/
1191 /^X\(\/\/\)[^/].*/{
1192 s//\1/
1195 /^X\(\/\/\)$/{
1196 s//\1/
1199 /^X\(\/\).*/{
1200 s//\1/
1203 s/.*/./; q'`
1204 srcdir=$ac_confdir
1205 if test ! -r "$srcdir/$ac_unique_file"; then
1206 srcdir=..
1208 else
1209 ac_srcdir_defaulted=no
1211 if test ! -r "$srcdir/$ac_unique_file"; then
1212 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1213 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1214 { (exit 1); exit 1; }; }
1216 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1217 ac_abs_confdir=`(
1218 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1219 { (exit 1); exit 1; }; }
1220 pwd)`
1221 # When building in place, set srcdir=.
1222 if test "$ac_abs_confdir" = "$ac_pwd"; then
1223 srcdir=.
1225 # Remove unnecessary trailing slashes from srcdir.
1226 # Double slashes in file names in object file debugging info
1227 # mess up M-x gdb in Emacs.
1228 case $srcdir in
1229 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1230 esac
1231 for ac_var in $ac_precious_vars; do
1232 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1233 eval ac_env_${ac_var}_value=\$${ac_var}
1234 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1235 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1236 done
1239 # Report the --help message.
1241 if test "$ac_init_help" = "long"; then
1242 # Omit some internal or obsolete options to make the list less imposing.
1243 # This message is too long to be a string in the A/UX 3.1 sh.
1244 cat <<_ACEOF
1245 \`configure' configures this package to adapt to many kinds of systems.
1247 Usage: $0 [OPTION]... [VAR=VALUE]...
1249 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1250 VAR=VALUE. See below for descriptions of some of the useful variables.
1252 Defaults for the options are specified in brackets.
1254 Configuration:
1255 -h, --help display this help and exit
1256 --help=short display options specific to this package
1257 --help=recursive display the short help of all the included packages
1258 -V, --version display version information and exit
1259 -q, --quiet, --silent do not print \`checking...' messages
1260 --cache-file=FILE cache test results in FILE [disabled]
1261 -C, --config-cache alias for \`--cache-file=config.cache'
1262 -n, --no-create do not create output files
1263 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1265 Installation directories:
1266 --prefix=PREFIX install architecture-independent files in PREFIX
1267 [$ac_default_prefix]
1268 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1269 [PREFIX]
1271 By default, \`make install' will install all the files in
1272 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1273 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1274 for instance \`--prefix=\$HOME'.
1276 For better control, use the options below.
1278 Fine tuning of the installation directories:
1279 --bindir=DIR user executables [EPREFIX/bin]
1280 --sbindir=DIR system admin executables [EPREFIX/sbin]
1281 --libexecdir=DIR program executables [EPREFIX/libexec]
1282 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1283 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1284 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1285 --libdir=DIR object code libraries [EPREFIX/lib]
1286 --includedir=DIR C header files [PREFIX/include]
1287 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1288 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1289 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1290 --infodir=DIR info documentation [DATAROOTDIR/info]
1291 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1292 --mandir=DIR man documentation [DATAROOTDIR/man]
1293 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1294 --htmldir=DIR html documentation [DOCDIR]
1295 --dvidir=DIR dvi documentation [DOCDIR]
1296 --pdfdir=DIR pdf documentation [DOCDIR]
1297 --psdir=DIR ps documentation [DOCDIR]
1298 _ACEOF
1300 cat <<\_ACEOF
1302 Program names:
1303 --program-prefix=PREFIX prepend PREFIX to installed program names
1304 --program-suffix=SUFFIX append SUFFIX to installed program names
1305 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1307 X features:
1308 --x-includes=DIR X include files are in DIR
1309 --x-libraries=DIR X library files are in DIR
1311 System types:
1312 --build=BUILD configure for building on BUILD [guessed]
1313 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1314 _ACEOF
1317 if test -n "$ac_init_help"; then
1319 cat <<\_ACEOF
1321 Optional Features:
1322 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1323 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1324 --enable-carbon-app[=DIR] [DIR=/Application]
1325 specify install directory for Emacs.app on Mac OS X
1326 --enable-font-backend compile code of font-backend support
1327 --enable-asserts compile code with asserts enabled
1328 --enable-maintainer-mode enable make rules and dependencies not useful
1329 (and 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
1345 (KIT = yes/lucid/athena/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-freetype use -lfreetype for local fonts support
1352 --with-xft use -lXft for anti aliased fonts
1353 --with-gpm use -lgpm for mouse support on a GNU/Linux console
1354 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1355 --with-pkg-config-prog Path to pkg-config to use for finding GTK
1356 --without-toolkit-scroll-bars
1357 don't use Motif or Xaw3d scroll bars
1358 --without-xim don't use X11 XIM
1359 --without-carbon don't use Carbon GUI on Mac OS X
1360 --with-x use the X Window System
1362 Some influential environment variables:
1363 CC C compiler command
1364 CFLAGS C compiler flags
1365 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1366 nonstandard directory <lib dir>
1367 LIBS libraries to pass to the linker, e.g. -l<library>
1368 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1369 you have headers in a nonstandard directory <include dir>
1370 CPP C preprocessor
1371 XMKMF Path to xmkmf, Makefile generator for X Window System
1373 Use these variables to override the choices made by `configure' or to help
1374 it to find libraries and programs with nonstandard names/locations.
1376 _ACEOF
1377 ac_status=$?
1380 if test "$ac_init_help" = "recursive"; then
1381 # If there are subdirs, report their specific --help.
1382 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1383 test -d "$ac_dir" || continue
1384 ac_builddir=.
1386 case "$ac_dir" in
1387 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1389 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1390 # A ".." for each directory in $ac_dir_suffix.
1391 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1392 case $ac_top_builddir_sub in
1393 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1394 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1395 esac ;;
1396 esac
1397 ac_abs_top_builddir=$ac_pwd
1398 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1399 # for backward compatibility:
1400 ac_top_builddir=$ac_top_build_prefix
1402 case $srcdir in
1403 .) # We are building in place.
1404 ac_srcdir=.
1405 ac_top_srcdir=$ac_top_builddir_sub
1406 ac_abs_top_srcdir=$ac_pwd ;;
1407 [\\/]* | ?:[\\/]* ) # Absolute name.
1408 ac_srcdir=$srcdir$ac_dir_suffix;
1409 ac_top_srcdir=$srcdir
1410 ac_abs_top_srcdir=$srcdir ;;
1411 *) # Relative name.
1412 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1413 ac_top_srcdir=$ac_top_build_prefix$srcdir
1414 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1415 esac
1416 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1418 cd "$ac_dir" || { ac_status=$?; continue; }
1419 # Check for guested configure.
1420 if test -f "$ac_srcdir/configure.gnu"; then
1421 echo &&
1422 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1423 elif test -f "$ac_srcdir/configure"; then
1424 echo &&
1425 $SHELL "$ac_srcdir/configure" --help=recursive
1426 else
1427 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1428 fi || ac_status=$?
1429 cd "$ac_pwd" || { ac_status=$?; break; }
1430 done
1433 test -n "$ac_init_help" && exit $ac_status
1434 if $ac_init_version; then
1435 cat <<\_ACEOF
1436 configure
1437 generated by GNU Autoconf 2.61
1439 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1440 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1441 This configure script is free software; the Free Software Foundation
1442 gives unlimited permission to copy, distribute and modify it.
1443 _ACEOF
1444 exit
1446 cat >config.log <<_ACEOF
1447 This file contains any messages produced by compilers while
1448 running configure, to aid debugging if configure makes a mistake.
1450 It was created by $as_me, which was
1451 generated by GNU Autoconf 2.61. Invocation command line was
1453 $ $0 $@
1455 _ACEOF
1456 exec 5>>config.log
1458 cat <<_ASUNAME
1459 ## --------- ##
1460 ## Platform. ##
1461 ## --------- ##
1463 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1464 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1465 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1466 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1467 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1469 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1470 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1472 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1473 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1474 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1475 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1476 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1477 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1478 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1480 _ASUNAME
1482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1483 for as_dir in $PATH
1485 IFS=$as_save_IFS
1486 test -z "$as_dir" && as_dir=.
1487 echo "PATH: $as_dir"
1488 done
1489 IFS=$as_save_IFS
1491 } >&5
1493 cat >&5 <<_ACEOF
1496 ## ----------- ##
1497 ## Core tests. ##
1498 ## ----------- ##
1500 _ACEOF
1503 # Keep a trace of the command line.
1504 # Strip out --no-create and --no-recursion so they do not pile up.
1505 # Strip out --silent because we don't want to record it for future runs.
1506 # Also quote any args containing shell meta-characters.
1507 # Make two passes to allow for proper duplicate-argument suppression.
1508 ac_configure_args=
1509 ac_configure_args0=
1510 ac_configure_args1=
1511 ac_must_keep_next=false
1512 for ac_pass in 1 2
1514 for ac_arg
1516 case $ac_arg in
1517 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1518 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1519 | -silent | --silent | --silen | --sile | --sil)
1520 continue ;;
1521 *\'*)
1522 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1523 esac
1524 case $ac_pass in
1525 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1527 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1528 if test $ac_must_keep_next = true; then
1529 ac_must_keep_next=false # Got value, back to normal.
1530 else
1531 case $ac_arg in
1532 *=* | --config-cache | -C | -disable-* | --disable-* \
1533 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1534 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1535 | -with-* | --with-* | -without-* | --without-* | --x)
1536 case "$ac_configure_args0 " in
1537 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1538 esac
1540 -* ) ac_must_keep_next=true ;;
1541 esac
1543 ac_configure_args="$ac_configure_args '$ac_arg'"
1545 esac
1546 done
1547 done
1548 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1549 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1551 # When interrupted or exit'd, cleanup temporary files, and complete
1552 # config.log. We remove comments because anyway the quotes in there
1553 # would cause problems or look ugly.
1554 # WARNING: Use '\'' to represent an apostrophe within the trap.
1555 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1556 trap 'exit_status=$?
1557 # Save into config.log some information that might help in debugging.
1559 echo
1561 cat <<\_ASBOX
1562 ## ---------------- ##
1563 ## Cache variables. ##
1564 ## ---------------- ##
1565 _ASBOX
1566 echo
1567 # The following way of writing the cache mishandles newlines in values,
1569 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1570 eval ac_val=\$$ac_var
1571 case $ac_val in #(
1572 *${as_nl}*)
1573 case $ac_var in #(
1574 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1575 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1576 esac
1577 case $ac_var in #(
1578 _ | IFS | as_nl) ;; #(
1579 *) $as_unset $ac_var ;;
1580 esac ;;
1581 esac
1582 done
1583 (set) 2>&1 |
1584 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1585 *${as_nl}ac_space=\ *)
1586 sed -n \
1587 "s/'\''/'\''\\\\'\'''\''/g;
1588 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1589 ;; #(
1591 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1593 esac |
1594 sort
1596 echo
1598 cat <<\_ASBOX
1599 ## ----------------- ##
1600 ## Output variables. ##
1601 ## ----------------- ##
1602 _ASBOX
1603 echo
1604 for ac_var in $ac_subst_vars
1606 eval ac_val=\$$ac_var
1607 case $ac_val in
1608 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1609 esac
1610 echo "$ac_var='\''$ac_val'\''"
1611 done | sort
1612 echo
1614 if test -n "$ac_subst_files"; then
1615 cat <<\_ASBOX
1616 ## ------------------- ##
1617 ## File substitutions. ##
1618 ## ------------------- ##
1619 _ASBOX
1620 echo
1621 for ac_var in $ac_subst_files
1623 eval ac_val=\$$ac_var
1624 case $ac_val in
1625 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1626 esac
1627 echo "$ac_var='\''$ac_val'\''"
1628 done | sort
1629 echo
1632 if test -s confdefs.h; then
1633 cat <<\_ASBOX
1634 ## ----------- ##
1635 ## confdefs.h. ##
1636 ## ----------- ##
1637 _ASBOX
1638 echo
1639 cat confdefs.h
1640 echo
1642 test "$ac_signal" != 0 &&
1643 echo "$as_me: caught signal $ac_signal"
1644 echo "$as_me: exit $exit_status"
1645 } >&5
1646 rm -f core *.core core.conftest.* &&
1647 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1648 exit $exit_status
1650 for ac_signal in 1 2 13 15; do
1651 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1652 done
1653 ac_signal=0
1655 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1656 rm -f -r conftest* confdefs.h
1658 # Predefined preprocessor variables.
1660 cat >>confdefs.h <<_ACEOF
1661 #define PACKAGE_NAME "$PACKAGE_NAME"
1662 _ACEOF
1665 cat >>confdefs.h <<_ACEOF
1666 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1667 _ACEOF
1670 cat >>confdefs.h <<_ACEOF
1671 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1672 _ACEOF
1675 cat >>confdefs.h <<_ACEOF
1676 #define PACKAGE_STRING "$PACKAGE_STRING"
1677 _ACEOF
1680 cat >>confdefs.h <<_ACEOF
1681 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1682 _ACEOF
1685 # Let the site file select an alternate cache file if it wants to.
1686 # Prefer explicitly selected file to automatically selected ones.
1687 if test -n "$CONFIG_SITE"; then
1688 set x "$CONFIG_SITE"
1689 elif test "x$prefix" != xNONE; then
1690 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1691 else
1692 set x "$ac_default_prefix/share/config.site" \
1693 "$ac_default_prefix/etc/config.site"
1695 shift
1696 for ac_site_file
1698 if test -r "$ac_site_file"; then
1699 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1700 echo "$as_me: loading site script $ac_site_file" >&6;}
1701 sed 's/^/| /' "$ac_site_file" >&5
1702 . "$ac_site_file"
1704 done
1706 if test -r "$cache_file"; then
1707 # Some versions of bash will fail to source /dev/null (special
1708 # files actually), so we avoid doing that.
1709 if test -f "$cache_file"; then
1710 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1711 echo "$as_me: loading cache $cache_file" >&6;}
1712 case $cache_file in
1713 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1714 *) . "./$cache_file";;
1715 esac
1717 else
1718 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1719 echo "$as_me: creating cache $cache_file" >&6;}
1720 >$cache_file
1723 ac_header_list="$ac_header_list sys/time.h"
1724 ac_header_list="$ac_header_list unistd.h"
1725 ac_func_list="$ac_func_list alarm"
1726 # Check that the precious variables saved in the cache have kept the same
1727 # value.
1728 ac_cache_corrupted=false
1729 for ac_var in $ac_precious_vars; do
1730 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1731 eval ac_new_set=\$ac_env_${ac_var}_set
1732 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1733 eval ac_new_val=\$ac_env_${ac_var}_value
1734 case $ac_old_set,$ac_new_set in
1735 set,)
1736 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1737 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1738 ac_cache_corrupted=: ;;
1739 ,set)
1740 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1741 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1742 ac_cache_corrupted=: ;;
1743 ,);;
1745 if test "x$ac_old_val" != "x$ac_new_val"; then
1746 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1747 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1748 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1749 echo "$as_me: former value: $ac_old_val" >&2;}
1750 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1751 echo "$as_me: current value: $ac_new_val" >&2;}
1752 ac_cache_corrupted=:
1753 fi;;
1754 esac
1755 # Pass precious variables to config.status.
1756 if test "$ac_new_set" = set; then
1757 case $ac_new_val in
1758 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1759 *) ac_arg=$ac_var=$ac_new_val ;;
1760 esac
1761 case " $ac_configure_args " in
1762 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1763 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1764 esac
1766 done
1767 if $ac_cache_corrupted; then
1768 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1769 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1770 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1771 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1772 { (exit 1); exit 1; }; }
1791 ac_ext=c
1792 ac_cpp='$CPP $CPPFLAGS'
1793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1798 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1801 test "$program_prefix" != NONE &&
1802 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1803 # Use a double $ so make ignores it.
1804 test "$program_suffix" != NONE &&
1805 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1806 # Double any \ or $. echo might interpret backslashes.
1807 # By default was `s,x,x', remove it if useless.
1808 cat <<\_ACEOF >conftest.sed
1809 s/[\\$]/&&/g;s/;s,x,x,$//
1810 _ACEOF
1811 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1812 rm -f conftest.sed
1815 lispdir='${datadir}/emacs/${version}/lisp'
1816 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1817 '${datadir}/emacs/site-lisp'
1818 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1819 etcdir='${datadir}/emacs/${version}/etc'
1820 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1821 docdir='${datadir}/emacs/${version}/etc'
1822 gamedir='${localstatedir}/games/emacs'
1824 gameuser=games
1827 # Check whether --with-gcc was given.
1828 if test "${with_gcc+set}" = set; then
1829 withval=$with_gcc;
1833 # Check whether --with-pop was given.
1834 if test "${with_pop+set}" = set; then
1835 withval=$with_pop; if test "$withval" = yes; then
1836 cat >>confdefs.h <<\_ACEOF
1837 #define MAIL_USE_POP 1
1838 _ACEOF
1840 else :
1842 else
1843 cat >>confdefs.h <<\_ACEOF
1844 #define MAIL_USE_POP 1
1845 _ACEOF
1851 # Check whether --with-kerberos was given.
1852 if test "${with_kerberos+set}" = set; then
1853 withval=$with_kerberos; if test "$withval" = yes; then
1854 cat >>confdefs.h <<\_ACEOF
1855 #define KERBEROS 1
1856 _ACEOF
1863 # Check whether --with-kerberos5 was given.
1864 if test "${with_kerberos5+set}" = set; then
1865 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1866 if test "${with_kerberos+set}" != set; then
1867 with_kerberos=yes
1868 cat >>confdefs.h <<\_ACEOF
1869 #define KERBEROS 1
1870 _ACEOF
1874 cat >>confdefs.h <<\_ACEOF
1875 #define KERBEROS5 1
1876 _ACEOF
1882 # Check whether --with-hesiod was given.
1883 if test "${with_hesiod+set}" = set; then
1884 withval=$with_hesiod; if test "$withval" = yes; then
1886 cat >>confdefs.h <<\_ACEOF
1887 #define HESIOD 1
1888 _ACEOF
1895 # Check whether --with-sound was given.
1896 if test "${with_sound+set}" = set; then
1897 withval=$with_sound;
1902 # Check whether --with-x-toolkit was given.
1903 if test "${with_x_toolkit+set}" = set; then
1904 withval=$with_x_toolkit; case "${withval}" in
1905 y | ye | yes ) val=gtk ;;
1906 n | no ) val=no ;;
1907 l | lu | luc | luci | lucid ) val=lucid ;;
1908 a | at | ath | athe | athen | athena ) val=athena ;;
1909 m | mo | mot | moti | motif ) val=motif ;;
1910 g | gt | gtk ) val=gtk ;;
1912 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1913 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1914 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1915 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1916 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1917 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1918 { (exit 1); exit 1; }; }
1920 esac
1921 with_x_toolkit=$val
1926 # Check whether --with-xpm was given.
1927 if test "${with_xpm+set}" = set; then
1928 withval=$with_xpm;
1932 # Check whether --with-jpeg was given.
1933 if test "${with_jpeg+set}" = set; then
1934 withval=$with_jpeg;
1938 # Check whether --with-tiff was given.
1939 if test "${with_tiff+set}" = set; then
1940 withval=$with_tiff;
1944 # Check whether --with-gif was given.
1945 if test "${with_gif+set}" = set; then
1946 withval=$with_gif;
1950 # Check whether --with-png was given.
1951 if test "${with_png+set}" = set; then
1952 withval=$with_png;
1956 # Check whether --with-freetype was given.
1957 if test "${with_freetype+set}" = set; then
1958 withval=$with_freetype;
1962 # Check whether --with-xft was given.
1963 if test "${with_xft+set}" = set; then
1964 withval=$with_xft;
1968 # Check whether --with-gpm was given.
1969 if test "${with_gpm+set}" = set; then
1970 withval=$with_gpm;
1974 # Check whether --with-gtk was given.
1975 if test "${with_gtk+set}" = set; then
1976 withval=$with_gtk;
1980 # Check whether --with-pkg-config-prog was given.
1981 if test "${with_pkg_config_prog+set}" = set; then
1982 withval=$with_pkg_config_prog;
1986 # Check whether --with-toolkit-scroll-bars was given.
1987 if test "${with_toolkit_scroll_bars+set}" = set; then
1988 withval=$with_toolkit_scroll_bars;
1992 # Check whether --with-xim was given.
1993 if test "${with_xim+set}" = set; then
1994 withval=$with_xim;
1998 # Check whether --with-carbon was given.
1999 if test "${with_carbon+set}" = set; then
2000 withval=$with_carbon;
2003 # Check whether --enable-carbon-app was given.
2004 if test "${enable_carbon_app+set}" = set; then
2005 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
2009 # Check whether --enable-font-backend was given.
2010 if test "${enable_font_backend+set}" = set; then
2011 enableval=$enable_font_backend; USE_FONT_BACKEND=$enableval
2012 else
2013 USE_FONT_BACKEND=no
2017 # Check whether --enable-asserts was given.
2018 if test "${enable_asserts+set}" = set; then
2019 enableval=$enable_asserts; USE_XASSERTS=$enableval
2020 else
2021 USE_XASSERTS=no
2025 # Check whether --enable-maintainer-mode was given.
2026 if test "${enable_maintainer_mode+set}" = set; then
2027 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2028 else
2029 USE_MAINTAINER_MODE=no
2032 if test $USE_MAINTAINER_MODE = yes; then
2033 MAINT=
2034 else
2035 MAINT=#
2039 # Check whether --enable-locallisppath was given.
2040 if test "${enable_locallisppath+set}" = set; then
2041 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2042 locallisppath=
2043 elif test "${enableval}" != "yes"; then
2044 locallisppath=${enableval}
2049 #### Make srcdir absolute, if it isn't already. It's important to
2050 #### avoid running the path through pwd unnecessarily, since pwd can
2051 #### give you automounter prefixes, which can go away. We do all this
2052 #### so Emacs can find its files when run uninstalled.
2053 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2054 unset CDPATH
2055 case "${srcdir}" in
2056 /* ) ;;
2058 ## We may be able to use the $PWD environment variable to make this
2059 ## absolute. But sometimes PWD is inaccurate.
2060 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2061 ## but that tested only for a well-formed and valid PWD,
2062 ## it did not object when PWD was well-formed and valid but just wrong.
2063 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2064 then
2065 srcdir="$PWD"
2066 else
2067 srcdir="`(cd ${srcdir}; pwd)`"
2070 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2071 esac
2073 #### Check if the source directory already has a configured system in it.
2074 if test `pwd` != `(cd ${srcdir} && pwd)` \
2075 && test -f "${srcdir}/src/config.h" ; then
2076 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2077 as a build directory right now; it has been configured in its own
2078 right. To configure in another directory as well, you MUST
2079 use GNU make. If you do not have GNU make, then you must
2080 now do \`make distclean' in ${srcdir},
2081 and then run $0 again." >&5
2082 echo "$as_me: 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." >&2;}
2090 #### Given the configuration name, set machfile and opsysfile to the
2091 #### names of the m/*.h and s/*.h files we should use.
2093 ### Canonicalize the configuration name.
2095 ac_aux_dir=
2096 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2097 if test -f "$ac_dir/install-sh"; then
2098 ac_aux_dir=$ac_dir
2099 ac_install_sh="$ac_aux_dir/install-sh -c"
2100 break
2101 elif test -f "$ac_dir/install.sh"; then
2102 ac_aux_dir=$ac_dir
2103 ac_install_sh="$ac_aux_dir/install.sh -c"
2104 break
2105 elif test -f "$ac_dir/shtool"; then
2106 ac_aux_dir=$ac_dir
2107 ac_install_sh="$ac_aux_dir/shtool install -c"
2108 break
2110 done
2111 if test -z "$ac_aux_dir"; then
2112 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2113 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2114 { (exit 1); exit 1; }; }
2117 # These three variables are undocumented and unsupported,
2118 # and are intended to be withdrawn in a future Autoconf release.
2119 # They can cause serious problems if a builder's source tree is in a directory
2120 # whose full name contains unusual characters.
2121 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2122 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2123 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2126 # Make sure we can run config.sub.
2127 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2128 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2129 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2130 { (exit 1); exit 1; }; }
2132 { echo "$as_me:$LINENO: checking build system type" >&5
2133 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2134 if test "${ac_cv_build+set}" = set; then
2135 echo $ECHO_N "(cached) $ECHO_C" >&6
2136 else
2137 ac_build_alias=$build_alias
2138 test "x$ac_build_alias" = x &&
2139 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2140 test "x$ac_build_alias" = x &&
2141 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2142 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2143 { (exit 1); exit 1; }; }
2144 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2145 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2146 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2147 { (exit 1); exit 1; }; }
2150 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2151 echo "${ECHO_T}$ac_cv_build" >&6; }
2152 case $ac_cv_build in
2153 *-*-*) ;;
2154 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2155 echo "$as_me: error: invalid value of canonical build" >&2;}
2156 { (exit 1); exit 1; }; };;
2157 esac
2158 build=$ac_cv_build
2159 ac_save_IFS=$IFS; IFS='-'
2160 set x $ac_cv_build
2161 shift
2162 build_cpu=$1
2163 build_vendor=$2
2164 shift; shift
2165 # Remember, the first character of IFS is used to create $*,
2166 # except with old shells:
2167 build_os=$*
2168 IFS=$ac_save_IFS
2169 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2172 { echo "$as_me:$LINENO: checking host system type" >&5
2173 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2174 if test "${ac_cv_host+set}" = set; then
2175 echo $ECHO_N "(cached) $ECHO_C" >&6
2176 else
2177 if test "x$host_alias" = x; then
2178 ac_cv_host=$ac_cv_build
2179 else
2180 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2181 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2182 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2183 { (exit 1); exit 1; }; }
2187 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2188 echo "${ECHO_T}$ac_cv_host" >&6; }
2189 case $ac_cv_host in
2190 *-*-*) ;;
2191 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2192 echo "$as_me: error: invalid value of canonical host" >&2;}
2193 { (exit 1); exit 1; }; };;
2194 esac
2195 host=$ac_cv_host
2196 ac_save_IFS=$IFS; IFS='-'
2197 set x $ac_cv_host
2198 shift
2199 host_cpu=$1
2200 host_vendor=$2
2201 shift; shift
2202 # Remember, the first character of IFS is used to create $*,
2203 # except with old shells:
2204 host_os=$*
2205 IFS=$ac_save_IFS
2206 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2209 canonical=$host
2210 configuration=${host_alias-${build_alias-$host}}
2214 ### If you add support for a new configuration, add code to this
2215 ### switch statement to recognize your configuration name and select
2216 ### the appropriate operating system and machine description files.
2218 ### You would hope that you could choose an m/*.h file pretty much
2219 ### based on the machine portion of the configuration name, and an s-
2220 ### file based on the operating system portion. However, it turns out
2221 ### that each m/*.h file is pretty manufacturer-specific - for
2222 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2223 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2224 ### machines. So we basically have to have a special case for each
2225 ### configuration name.
2227 ### As far as handling version numbers on operating systems is
2228 ### concerned, make sure things will fail in a fixable way. If
2229 ### /etc/MACHINES doesn't say anything about version numbers, be
2230 ### prepared to handle anything reasonably. If version numbers
2231 ### matter, be sure /etc/MACHINES says something about it.
2233 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2234 ### "System V Release 4"; he writes, "The old convention encouraged
2235 ### confusion between `system' and `release' levels'."
2237 machine='' opsys='' unported=no
2238 case "${canonical}" in
2240 ## FreeBSD ports
2241 *-*-freebsd* )
2242 opsys=freebsd
2243 case "${canonical}" in
2244 alpha*-*-freebsd*) machine=alpha ;;
2245 ia64-*-freebsd*) machine=ia64 ;;
2246 sparc64-*-freebsd*) machine=sparc ;;
2247 powerpc-*-freebsd*) machine=macppc ;;
2248 i[3456]86-*-freebsd*) machine=intel386 ;;
2249 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2250 esac
2253 ## NetBSD ports
2254 *-*-netbsd* )
2255 opsys=netbsd
2256 if test -f /usr/lib/crti.o; then
2258 cat >>confdefs.h <<\_ACEOF
2259 #define HAVE_CRTIN
2260 _ACEOF
2264 case "${canonical}" in
2265 alpha*-*-netbsd*) machine=alpha ;;
2266 i[3456]86-*-netbsd*) machine=intel386 ;;
2267 m68k-*-netbsd*)
2268 # This is somewhat bogus.
2269 machine=hp9000s300 ;;
2270 mips-*-netbsd*) machine=pmax ;;
2271 mipsel-*-netbsd*) machine=pmax ;;
2272 mipseb-*-netbsd*) machine=pmax ;;
2273 ns32k-*-netbsd*) machine=ns32000 ;;
2274 powerpc-*-netbsd*) machine=macppc ;;
2275 sparc*-*-netbsd*) machine=sparc ;;
2276 vax-*-netbsd*) machine=vax ;;
2277 arm-*-netbsd*) machine=arm ;;
2278 x86_64-*-netbsd*) machine=amdx86-64 ;;
2279 hppa-*-netbsd*) machine=hp800 ;;
2280 shle-*-netbsd*) machine=sh3el ;;
2281 esac
2284 ## OpenBSD ports
2285 *-*-openbsd* )
2286 opsys=openbsd
2287 case "${canonical}" in
2288 alpha*-*-openbsd*) machine=alpha ;;
2289 arm-*-openbsd*) machine=arm ;;
2290 hppa-*-openbsd*) machine=hp9000s300 ;;
2291 i386-*-openbsd*) machine=intel386 ;;
2292 m68k-*-openbsd*) machine=hp9000s300 ;;
2293 m88k-*-openbsd*) machine=aviion ;;
2294 mips64-*-openbsd*) machine=mips64 ;;
2295 powerpc-*-openbsd*) machine=macppc ;;
2296 sh-*-openbsd*) machine=sh3el ;;
2297 sparc*-*-openbsd*) machine=sparc ;;
2298 vax-*-openbsd*) machine=vax ;;
2299 x86_64-*-openbsd*) machine=amdx86-64 ;;
2300 esac
2303 ## LynxOS ports
2304 *-*-lynxos* )
2305 opsys=lynxos
2306 case "${canonical}" in
2307 i[3456]86-*-lynxos*) machine=intel386 ;;
2308 powerpc-*-lynxos*) machine=powerpc ;;
2309 esac
2312 ## Acorn RISCiX:
2313 arm-acorn-riscix1.1* )
2314 machine=acorn opsys=riscix1-1
2316 arm-acorn-riscix1.2* | arm-acorn-riscix )
2317 ## This name is riscix12 instead of riscix1.2
2318 ## to avoid a file name conflict on MSDOS.
2319 machine=acorn opsys=riscix12
2322 ## BSDI ports
2323 *-*-bsdi* )
2324 opsys=bsdi
2325 case "${canonical}" in
2326 i[345]86-*-bsdi*) machine=intel386 ;;
2327 sparc-*-bsdi*) machine=sparc ;;
2328 powerpc-*-bsdi*) machine=macppc ;;
2329 esac
2330 case "${canonical}" in
2331 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2332 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2333 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2334 *-*-bsdi3* ) opsys=bsdos3 ;;
2335 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2336 esac
2339 ## Alliant machines
2340 ## Strictly speaking, we need the version of the alliant operating
2341 ## system to choose the right machine file, but currently the
2342 ## configuration name doesn't tell us enough to choose the right
2343 ## one; we need to give alliants their own operating system name to
2344 ## do this right. When someone cares, they can help us.
2345 fx80-alliant-* )
2346 machine=alliant4 opsys=bsd4-2
2348 i860-alliant-* )
2349 machine=alliant-2800 opsys=bsd4-3
2352 ## Alpha (DEC) machines.
2353 alpha*-dec-osf* )
2354 machine=alpha opsys=osf1
2355 # This is needed to find X11R6.1 libraries for certain tests.
2356 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2357 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2358 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2359 # due to non-traditional preprocessing with the current compiler
2360 # defaults. OSF 4 can also have that compiler version, and there
2361 # seems always to have been a usable /usr/bin/cpp.
2362 NON_GNU_CPP=/usr/bin/cpp
2363 case "${canonical}" in
2364 alpha*-dec-osf[5-9]*)
2365 opsys=osf5-0 ;;
2366 esac
2369 alpha*-*-linux-gnu* )
2370 machine=alpha opsys=gnu-linux
2373 arm*-*-linux-gnu* )
2374 machine=arm opsys=gnu-linux
2377 ## Altos 3068
2378 m68*-altos-sysv* )
2379 machine=altos opsys=usg5-2
2382 ## Amdahl UTS
2383 580-amdahl-sysv* )
2384 machine=amdahl opsys=usg5-2-2
2387 ## Apollo, Domain/OS
2388 m68*-apollo-* )
2389 machine=apollo opsys=bsd4-3
2392 ## Apple Darwin / Mac OS X
2393 *-apple-darwin* )
2394 case "${canonical}" in
2395 i[3456]86-* ) machine=intel386 ;;
2396 powerpc-* ) machine=powermac ;;
2397 * ) unported=yes ;;
2398 esac
2399 opsys=darwin
2400 # Define CPP as follows to make autoconf work correctly.
2401 CPP="${CC-cc} -E -no-cpp-precomp"
2402 # Use fink packages if available.
2403 if test -d /sw/include && test -d /sw/lib; then
2404 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2405 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2406 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2410 ## AT&T 3b2, 3b5, 3b15, 3b20
2411 we32k-att-sysv* )
2412 machine=att3b opsys=usg5-2-2
2415 ## AT&T 3b1 - The Mighty Unix PC!
2416 m68*-att-sysv* )
2417 machine=7300 opsys=usg5-2-2
2420 ## Bull dpx20
2421 rs6000-bull-bosx* )
2422 machine=ibmrs6000 opsys=aix3-2
2425 ## Bull dpx2
2426 m68*-bull-sysv3* )
2427 machine=dpx2 opsys=usg5-3
2430 ## Bull sps7
2431 m68*-bull-sysv2* )
2432 machine=sps7 opsys=usg5-2
2435 ## CCI 5/32, 6/32 -- see "Tahoe".
2437 ## Celerity
2438 ## I don't know what configuration name to use for this; config.sub
2439 ## doesn't seem to know anything about it. Hey, Celerity users, get
2440 ## in touch with us!
2441 celerity-celerity-bsd* )
2442 machine=celerity opsys=bsd4-2
2445 ## Clipper
2446 ## What operating systems does this chip run that Emacs has been
2447 ## tested on?
2448 clipper-* )
2449 machine=clipper
2450 ## We'll use the catch-all code at the bottom to guess the
2451 ## operating system.
2454 ## Compaq Nonstop
2455 mips-compaq-nonstopux* )
2456 machine=nonstopux opsys=nonstopux
2459 ## Convex
2460 *-convex-bsd* | *-convex-convexos* )
2461 machine=convex opsys=bsd4-3
2462 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2463 NON_GNU_CPP="cc -E -P"
2466 ## Cubix QBx/386
2467 i[3456]86-cubix-sysv* )
2468 machine=intel386 opsys=usg5-3
2471 ## Cydra 5
2472 cydra*-cydrome-sysv* )
2473 machine=cydra5 opsys=usg5-3
2476 ## Data General AViiON Machines
2477 ## DG changed naming conventions with the release of 5.4.4.10, they
2478 ## dropped the initial 5.4 but left the intervening R. Because of the
2479 ## R this shouldn't conflict with older versions of the OS (which I
2480 ## think were named like dgux4.*). In addition, DG new AViiONs series
2481 ## uses either Motorola M88k or Intel Pentium CPUs.
2482 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
2483 machine=aviion opsys=dgux4
2485 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
2486 ## This name is dgux5-4-3 instead of dgux5-4r3
2487 ## to avoid a file name conflict on MSDOS.
2488 machine=aviion opsys=dgux5-4-3
2490 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
2491 machine=aviion opsys=dgux5-4r2
2493 m88k-dg-dgux* )
2494 machine=aviion opsys=dgux
2497 ## Data General AViiON Intel (x86) Machines
2498 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2499 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2500 i[345]86-dg-dguxR4* )
2501 machine=aviion-intel opsys=dgux4
2504 ## DECstations
2505 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2506 machine=pmax opsys=bsd4-2
2508 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2509 machine=pmax opsys=bsd4-3
2511 mips-dec-ultrix* )
2512 machine=pmax opsys=ultrix4-3
2514 mips-dec-osf* )
2515 machine=pmax opsys=osf1
2517 mips-dec-mach_bsd4.3* )
2518 machine=pmax opsys=mach-bsd4-3
2521 ## Motorola Delta machines
2522 m68k-motorola-sysv* | m68000-motorola-sysv* )
2523 machine=delta opsys=usg5-3
2524 if test -z "`type gnucc | grep 'not found'`"
2525 then
2526 if test -s /etc/167config
2527 then CC="gnucc -m68040"
2528 else CC="gnucc -m68881"
2530 else
2531 if test -z "`type gcc | grep 'not found'`"
2532 then CC=gcc
2533 else CC=cc
2537 m88k-motorola-sysv4* )
2538 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2539 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2540 # I hope there are not other 4.0 versions for this machine
2541 # which really need usg5-4 instead.
2542 machine=delta88k opsys=usg5-4-2
2544 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
2545 machine=delta88k opsys=usg5-3
2548 ## Dual machines
2549 m68*-dual-sysv* )
2550 machine=dual opsys=usg5-2
2552 m68*-dual-uniplus* )
2553 machine=dual opsys=unipl5-2
2556 ## Elxsi 6400
2557 elxsi-elxsi-sysv* )
2558 machine=elxsi opsys=usg5-2
2561 ## Encore machines
2562 ns16k-encore-bsd* )
2563 machine=ns16000 opsys=umax
2566 ## The GEC 63 - apparently, this port isn't really finished yet.
2567 # I'm sure we finished off the last of the machines, though. -- fx
2569 ## Gould Power Node and NP1
2570 pn-gould-bsd4.2* )
2571 machine=gould opsys=bsd4-2
2573 pn-gould-bsd4.3* )
2574 machine=gould opsys=bsd4-3
2576 np1-gould-bsd* )
2577 machine=gould-np1 opsys=bsd4-3
2580 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2581 ## as far as Emacs is concerned).
2582 m88k-harris-cxux* )
2583 # Build needs to be different on 7.0 and later releases
2584 case "`uname -r`" in
2585 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2586 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2587 esac
2588 NON_GNU_CPP="/lib/cpp"
2590 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2591 m68k-harris-cxux* )
2592 machine=nh3000 opsys=cxux
2594 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2595 powerpc-harris-powerunix )
2596 machine=nh6000 opsys=powerunix
2597 NON_GNU_CPP="cc -Xo -E -P"
2599 ## SR2001/SR2201 running HI-UX/MPP
2600 hppa1.1-hitachi-hiuxmpp* )
2601 machine=sr2k opsys=hiuxmpp
2603 hppa1.1-hitachi-hiuxwe2* )
2604 machine=sr2k opsys=hiuxwe2
2606 ## Honeywell XPS100
2607 xps*-honeywell-sysv* )
2608 machine=xps100 opsys=usg5-2
2611 ## HP 9000 series 200 or 300
2612 m68*-hp-bsd* )
2613 machine=hp9000s300 opsys=bsd4-3
2615 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2616 m68*-hp-hpux* )
2617 case "`uname -r`" in
2618 ## Someone's system reports A.B8.05 for this.
2619 ## I wonder what other possibilities there are.
2620 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2621 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2622 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2623 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2624 *) machine=hp9000s300 opsys=hpux ;;
2625 esac
2628 ## HP 9000 series 700 and 800, running HP/UX
2629 hppa*-hp-hpux7* )
2630 machine=hp800 opsys=hpux
2632 hppa*-hp-hpux8* )
2633 machine=hp800 opsys=hpux8
2635 hppa*-hp-hpux9shr* )
2636 machine=hp800 opsys=hpux9shr
2638 hppa*-hp-hpux9* )
2639 machine=hp800 opsys=hpux9
2641 hppa*-hp-hpux10.2* )
2642 machine=hp800 opsys=hpux10-20
2644 hppa*-hp-hpux10* )
2645 machine=hp800 opsys=hpux10
2647 hppa*-hp-hpux1[1-9]* )
2648 machine=hp800 opsys=hpux11
2649 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2652 hppa*-*-linux-gnu* )
2653 machine=hp800 opsys=gnu-linux
2656 ## HP 9000 series 700 and 800, running HP/UX
2657 hppa*-hp-hpux* )
2658 ## Cross-compilation? Nah!
2659 case "`uname -r`" in
2660 ## Someone's system reports A.B8.05 for this.
2661 ## I wonder what other possibilities there are.
2662 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2663 *.08.* ) machine=hp800 opsys=hpux8 ;;
2664 *.09.* ) machine=hp800 opsys=hpux9 ;;
2665 *) machine=hp800 opsys=hpux10 ;;
2666 esac
2668 hppa*-*-nextstep* )
2669 machine=hp800 opsys=nextstep
2672 ## Orion machines
2673 orion-orion-bsd* )
2674 machine=orion opsys=bsd4-2
2676 clipper-orion-bsd* )
2677 machine=orion105 opsys=bsd4-2
2680 ## IBM machines
2681 i[3456]86-ibm-aix1.1* )
2682 machine=ibmps2-aix opsys=usg5-2-2
2684 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2685 machine=ibmps2-aix opsys=usg5-3
2687 i370-ibm-aix*)
2688 machine=ibm370aix opsys=usg5-3
2690 s390-*-linux-gnu* )
2691 machine=ibms390 opsys=gnu-linux
2693 s390x-*-linux-gnu* )
2694 machine=ibms390x opsys=gnu-linux
2696 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2697 machine=ibmrs6000 opsys=aix3-1
2699 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2700 machine=ibmrs6000 opsys=aix3-2-5
2702 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2703 machine=ibmrs6000 opsys=aix4-1
2705 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2706 machine=ibmrs6000 opsys=aix4-2
2708 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2709 machine=ibmrs6000 opsys=aix4-2
2711 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2712 machine=ibmrs6000 opsys=aix4-2
2714 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2715 machine=ibmrs6000 opsys=aix4
2717 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2718 machine=ibmrs6000 opsys=aix4-1
2720 rs6000-ibm-aix* | powerpc-ibm-aix* )
2721 machine=ibmrs6000 opsys=aix3-2
2723 romp-ibm-bsd4.3* )
2724 machine=ibmrt opsys=bsd4-3
2726 romp-ibm-bsd4.2* )
2727 machine=ibmrt opsys=bsd4-2
2729 romp-ibm-aos4.3* )
2730 machine=ibmrt opsys=bsd4-3
2732 romp-ibm-aos4.2* )
2733 machine=ibmrt opsys=bsd4-2
2735 romp-ibm-aos* )
2736 machine=ibmrt opsys=bsd4-3
2738 romp-ibm-bsd* )
2739 machine=ibmrt opsys=bsd4-3
2741 romp-ibm-aix* )
2742 machine=ibmrt-aix opsys=usg5-2-2
2745 ## Integrated Solutions `Optimum V'
2746 m68*-isi-bsd4.2* )
2747 machine=isi-ov opsys=bsd4-2
2749 m68*-isi-bsd4.3* )
2750 machine=isi-ov opsys=bsd4-3
2753 ## Intel 386 machines where we do care about the manufacturer
2754 i[3456]86-intsys-sysv* )
2755 machine=is386 opsys=usg5-2-2
2758 ## Prime EXL
2759 i[3456]86-prime-sysv* )
2760 machine=i386 opsys=usg5-3
2763 ## Sequent Symmetry running Dynix
2764 i[3456]86-sequent-bsd* )
2765 machine=symmetry opsys=bsd4-3
2768 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2769 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2770 machine=sequent-ptx opsys=ptx4
2771 NON_GNU_CPP=/lib/cpp
2774 ## Sequent Symmetry running DYNIX/ptx
2775 ## Use the old cpp rather than the newer ANSI one.
2776 i[3456]86-sequent-ptx* )
2777 machine=sequent-ptx opsys=ptx
2778 NON_GNU_CPP="/lib/cpp"
2781 ## ncr machine running svr4.3.
2782 i[3456]86-ncr-sysv4.3 )
2783 machine=ncr386 opsys=usg5-4-3
2786 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2787 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2788 i[3456]86-ncr-sysv* )
2789 machine=ncr386 opsys=usg5-4-2
2792 ## Intel Paragon OSF/1
2793 i860-intel-osf1* )
2794 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2797 ## Intel 860
2798 i860-*-sysv4* )
2799 machine=i860 opsys=usg5-4
2800 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2801 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2804 ## Macintosh PowerPC
2805 powerpc*-*-linux-gnu* )
2806 machine=macppc opsys=gnu-linux
2809 ## Masscomp machines
2810 m68*-masscomp-rtu* )
2811 machine=masscomp opsys=rtu
2814 ## Megatest machines
2815 m68*-megatest-bsd* )
2816 machine=mega68 opsys=bsd4-2
2819 ## Workstations sold by MIPS
2820 ## This is not necessarily all workstations using the MIPS processor -
2821 ## Irises are produced by SGI, and DECstations by DEC.
2823 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2824 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2825 ## it gives for choosing between the alternatives seems to be "Use
2826 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2827 ## the BSD world." I'll assume that these are instructions for
2828 ## handling two odd situations, and that every other situation
2829 ## should use mips.h and usg5-2-2, they being listed first.
2830 mips-mips-usg* )
2831 machine=mips4
2832 ## Fall through to the general code at the bottom to decide on the OS.
2834 mips-mips-riscos4* )
2835 machine=mips4 opsys=bsd4-3
2836 NON_GNU_CC="cc -systype bsd43"
2837 NON_GNU_CPP="cc -systype bsd43 -E"
2839 mips-mips-riscos5* )
2840 machine=mips4 opsys=riscos5
2841 NON_GNU_CC="cc -systype bsd43"
2842 NON_GNU_CPP="cc -systype bsd43 -E"
2844 mips-mips-bsd* )
2845 machine=mips opsys=bsd4-3
2847 mips-mips-* )
2848 machine=mips opsys=usg5-2-2
2851 ## NeXT
2852 m68*-next-* | m68k-*-nextstep* )
2853 machine=m68k opsys=nextstep
2856 ## The complete machine from National Semiconductor
2857 ns32k-ns-genix* )
2858 machine=ns32000 opsys=usg5-2
2861 ## NCR machines
2862 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2863 machine=tower32 opsys=usg5-2-2
2865 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2866 machine=tower32v3 opsys=usg5-3
2869 ## NEC EWS4800
2870 mips-nec-sysv4*)
2871 machine=ews4800 opsys=ux4800
2874 ## Nixdorf Targon 31
2875 m68*-nixdorf-sysv* )
2876 machine=targon31 opsys=usg5-2-2
2879 ## Nu (TI or LMI)
2880 m68*-nu-sysv* )
2881 machine=nu opsys=usg5-2
2884 ## Plexus
2885 m68*-plexus-sysv* )
2886 machine=plexus opsys=usg5-2
2889 ## Pyramid machines
2890 ## I don't really have any idea what sort of processor the Pyramid has,
2891 ## so I'm assuming it is its own architecture.
2892 pyramid-pyramid-bsd* )
2893 machine=pyramid opsys=bsd4-2
2896 ## Sequent Balance
2897 ns32k-sequent-bsd4.2* )
2898 machine=sequent opsys=bsd4-2
2900 ns32k-sequent-bsd4.3* )
2901 machine=sequent opsys=bsd4-3
2904 ## Siemens Nixdorf
2905 mips-siemens-sysv* | mips-sni-sysv*)
2906 machine=mips-siemens opsys=usg5-4
2907 NON_GNU_CC=/usr/ccs/bin/cc
2908 NON_GNU_CPP=/usr/ccs/lib/cpp
2911 ## Silicon Graphics machines
2912 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2913 m68*-sgi-iris3.5* )
2914 machine=irist opsys=iris3-5
2916 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2917 machine=irist opsys=iris3-6
2919 ## Iris 4D
2920 mips-sgi-irix3* )
2921 machine=iris4d opsys=irix3-3
2923 mips-sgi-irix4* )
2924 machine=iris4d opsys=irix4-0
2926 mips-sgi-irix6.5 )
2927 machine=iris4d opsys=irix6-5
2928 # Without defining _LANGUAGE_C, things get masked out in the headers
2929 # so that, for instance, grepping for `free' in stdlib.h fails and
2930 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2931 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2932 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2934 mips-sgi-irix6* )
2935 machine=iris4d opsys=irix6-0
2936 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2937 # but presumably it does no harm.
2938 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2939 # -32 probably isn't necessary in later v.6s -- anyone know which?
2940 NON_GCC_TEST_OPTIONS=-32
2942 mips-sgi-irix5.[01]* )
2943 machine=iris4d opsys=irix5-0
2945 mips-sgi-irix5* | mips-sgi-irix* )
2946 machine=iris4d opsys=irix5-2
2949 ## SONY machines
2950 m68*-sony-bsd4.2* )
2951 machine=news opsys=bsd4-2
2953 m68*-sony-bsd4.3* )
2954 machine=news opsys=bsd4-3
2956 m68*-sony-newsos3* | m68*-sony-news3*)
2957 machine=news opsys=bsd4-3
2959 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2960 machine=news-risc opsys=bsd4-3
2962 mips-sony-newsos6* )
2963 machine=news-r6 opsys=newsos6
2965 mips-sony-news* )
2966 machine=news-risc opsys=newsos5
2969 ## Stride
2970 m68*-stride-sysv* )
2971 machine=stride opsys=usg5-2
2974 ## Suns
2975 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2976 machine=sparc opsys=gnu-linux
2979 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2980 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2981 | rs6000-*-solaris2*)
2982 case "${canonical}" in
2983 m68*-sunos1* ) machine=sun1 ;;
2984 m68*-sunos2* ) machine=sun2 ;;
2985 m68* ) machine=sun3 ;;
2986 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2987 i[3456]86-*-* ) machine=intel386 ;;
2988 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2989 powerpcle* ) machine=powerpcle ;;
2990 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2991 sparc* ) machine=sparc ;;
2992 * ) unported=yes ;;
2993 esac
2994 case "${canonical}" in
2995 ## The Sun386 didn't get past 4.0.
2996 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2997 *-sunos4.0* ) opsys=sunos4-0 ;;
2998 *-sunos4.1.[3-9]*noshare )
2999 ## This name is sunos413 instead of sunos4-1-3
3000 ## to avoid a file name conflict on MSDOS.
3001 opsys=sunos413
3002 NON_GNU_CPP=/usr/lib/cpp
3003 NON_GCC_TEST_OPTIONS=-Bstatic
3004 GCC_TEST_OPTIONS=-static
3006 *-sunos4.1.[3-9]* | *-sunos4shr*)
3007 opsys=sunos4shr
3008 NON_GNU_CPP=/usr/lib/cpp
3010 *-sunos4* | *-sunos )
3011 opsys=sunos4-1
3012 NON_GCC_TEST_OPTIONS=-Bstatic
3013 GCC_TEST_OPTIONS=-static
3015 *-sunos5.3* | *-solaris2.3* )
3016 opsys=sol2-3
3017 NON_GNU_CPP=/usr/ccs/lib/cpp
3019 *-sunos5.4* | *-solaris2.4* )
3020 opsys=sol2-4
3021 NON_GNU_CPP=/usr/ccs/lib/cpp
3022 RANLIB="ar -ts"
3024 *-sunos5.5* | *-solaris2.5* )
3025 opsys=sol2-5
3026 NON_GNU_CPP=/usr/ccs/lib/cpp
3027 RANLIB="ar -ts"
3029 *-sunos5.6* | *-solaris2.6* )
3030 opsys=sol2-6
3031 NON_GNU_CPP=/usr/ccs/lib/cpp
3032 RANLIB="ar -ts"
3034 *-sunos5* | *-solaris* )
3035 opsys=sol2-6
3036 emacs_check_sunpro_c=yes
3037 NON_GNU_CPP=/usr/ccs/lib/cpp
3039 * ) opsys=bsd4-2 ;;
3040 esac
3041 ## Watch out for a compiler that we know will not work.
3042 case "${canonical}" in
3043 *-solaris* | *-sunos5* )
3044 if [ "x$CC" = x/usr/ucb/cc ]; then
3045 ## /usr/ucb/cc doesn't work;
3046 ## we should find some other compiler that does work.
3047 unset CC
3050 *) ;;
3051 esac
3053 sparc-*-nextstep* )
3054 machine=sparc opsys=nextstep
3057 ## Tadpole 68k
3058 m68*-tadpole-sysv* )
3059 machine=tad68k opsys=usg5-3
3062 ## Tahoe machines
3063 tahoe-tahoe-bsd4.2* )
3064 machine=tahoe opsys=bsd4-2
3066 tahoe-tahoe-bsd4.3* )
3067 machine=tahoe opsys=bsd4-3
3070 ## Tandem Integrity S2
3071 mips-tandem-sysv* )
3072 machine=tandem-s2 opsys=usg5-3
3075 ## Tektronix XD88
3076 m88k-tektronix-sysv3* )
3077 machine=tekxd88 opsys=usg5-3
3080 ## Tektronix 16000 box (6130?)
3081 ns16k-tektronix-bsd* )
3082 machine=ns16000 opsys=bsd4-2
3084 ## Tektronix 4300
3085 ## src/m/tek4300.h hints that this is a m68k machine.
3086 m68*-tektronix-bsd* )
3087 machine=tek4300 opsys=bsd4-3
3090 ## Titan P2 or P3
3091 ## We seem to have lost the machine-description file titan.h!
3092 titan-titan-sysv* )
3093 machine=titan opsys=usg5-3
3096 ## Ustation E30 (SS5E)
3097 m68*-unisys-uniplus* )
3098 machine=ustation opsystem=unipl5-2
3101 ## Vaxen.
3102 vax-dec-* )
3103 machine=vax
3104 case "${canonical}" in
3105 *-bsd4.1* ) opsys=bsd4-1 ;;
3106 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
3107 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
3108 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
3109 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
3110 *-vms* ) opsys=vms ;;
3111 * ) unported=yes
3112 esac
3115 ## Whitechapel MG1
3116 ns16k-whitechapel-* )
3117 machine=mg1
3118 ## We don't know what sort of OS runs on these; we'll let the
3119 ## operating system guessing code below try.
3122 ## Wicat
3123 m68*-wicat-sysv* )
3124 machine=wicat opsys=usg5-2
3127 ## IA-64
3128 ia64*-*-linux* )
3129 machine=ia64 opsys=gnu-linux
3132 ## Intel 386 machines where we don't care about the manufacturer
3133 i[3456]86-*-* )
3134 machine=intel386
3135 case "${canonical}" in
3136 *-cygwin ) opsys=cygwin ;;
3137 *-darwin* ) opsys=darwin
3138 CPP="${CC-cc} -E -no-cpp-precomp"
3140 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
3141 *-isc2.2* ) opsys=isc2-2 ;;
3142 *-isc4.0* ) opsys=isc4-0 ;;
3143 *-isc4.* ) opsys=isc4-1
3144 GCC_TEST_OPTIONS=-posix
3145 NON_GCC_TEST_OPTIONS=-Xp
3147 *-isc* ) opsys=isc3-0 ;;
3148 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
3149 *-esix* ) opsys=esix ;;
3150 *-xenix* ) opsys=xenix ;;
3151 *-linux-gnu* ) opsys=gnu-linux ;;
3152 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
3153 *-sco3.2v5* ) opsys=sco5
3154 NON_GNU_CPP=/lib/cpp
3155 # Prevent -belf from being passed to $CPP.
3156 # /lib/cpp does not accept it.
3157 OVERRIDE_CPPFLAGS=" "
3159 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3160 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3161 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3162 *-386bsd* ) opsys=386bsd ;;
3163 *-nextstep* ) opsys=nextstep ;;
3164 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3165 esac
3168 ## m68k Linux-based GNU system
3169 m68k-*-linux-gnu* )
3170 machine=m68k opsys=gnu-linux
3173 ## Mips Linux-based GNU system
3174 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
3175 machine=mips opsys=gnu-linux
3178 ## UXP/DS
3179 sparc-fujitsu-sysv4* )
3180 machine=sparc opsys=uxpds
3181 NON_GNU_CPP=/usr/ccs/lib/cpp
3182 RANLIB="ar -ts"
3185 ## UXP/V
3186 f301-fujitsu-uxpv4.1)
3187 machine=f301 opsys=uxpv
3190 ## AMD x86-64 Linux-based GNU system
3191 x86_64-*-linux-gnu* )
3192 machine=amdx86-64 opsys=gnu-linux
3195 ## Tensilica Xtensa Linux-based GNU system
3196 xtensa-*-linux-gnu* )
3197 machine=xtensa opsys=gnu-linux
3201 unported=yes
3203 esac
3205 ### If the code above didn't choose an operating system, just choose
3206 ### an operating system based on the configuration name. You really
3207 ### only want to use this when you have no idea what the right
3208 ### operating system is; if you know what operating systems a machine
3209 ### runs, it's cleaner to make it explicit in the case statement
3210 ### above.
3211 if test x"${opsys}" = x; then
3212 case "${canonical}" in
3213 *-gnu* ) opsys=gnu ;;
3214 *-bsd4.[01] ) opsys=bsd4-1 ;;
3215 *-bsd4.2 ) opsys=bsd4-2 ;;
3216 *-bsd4.3 ) opsys=bsd4-3 ;;
3217 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
3218 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
3219 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
3220 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
3221 *-sysv4.2uw* ) opsys=unixware ;;
3222 *-sysv5uw* ) opsys=unixware ;;
3223 *-sysv5OpenUNIX* ) opsys=unixware ;;
3224 *-sysv4.1* | *-sysvr4.1* )
3225 NON_GNU_CPP=/usr/lib/cpp
3226 opsys=usg5-4 ;;
3227 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
3228 if [ x$NON_GNU_CPP = x ]; then
3229 if [ -f /usr/ccs/lib/cpp ]; then
3230 NON_GNU_CPP=/usr/ccs/lib/cpp
3231 else
3232 NON_GNU_CPP=/lib/cpp
3235 opsys=usg5-4-2 ;;
3236 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
3238 unported=yes
3240 esac
3245 if test $unported = yes; then
3246 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3247 Check \`etc/MACHINES' for recognized configuration names." >&5
3248 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3249 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3250 { (exit 1); exit 1; }; }
3253 machfile="m/${machine}.h"
3254 opsysfile="s/${opsys}.h"
3257 #### Choose a compiler.
3258 test -n "$CC" && cc_specified=yes
3260 # Save the value of CFLAGS that the user specified.
3261 SPECIFIED_CFLAGS="$CFLAGS"
3263 case ${with_gcc} in
3264 "yes" ) CC="gcc" GCC=yes ;;
3265 "no" ) : ${CC=cc} ;;
3267 esac
3268 ac_ext=c
3269 ac_cpp='$CPP $CPPFLAGS'
3270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3273 if test -n "$ac_tool_prefix"; then
3274 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3275 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3276 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3278 if test "${ac_cv_prog_CC+set}" = set; then
3279 echo $ECHO_N "(cached) $ECHO_C" >&6
3280 else
3281 if test -n "$CC"; then
3282 ac_cv_prog_CC="$CC" # Let the user override the test.
3283 else
3284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285 for as_dir in $PATH
3287 IFS=$as_save_IFS
3288 test -z "$as_dir" && as_dir=.
3289 for ac_exec_ext in '' $ac_executable_extensions; do
3290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3291 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3293 break 2
3295 done
3296 done
3297 IFS=$as_save_IFS
3301 CC=$ac_cv_prog_CC
3302 if test -n "$CC"; then
3303 { echo "$as_me:$LINENO: result: $CC" >&5
3304 echo "${ECHO_T}$CC" >&6; }
3305 else
3306 { echo "$as_me:$LINENO: result: no" >&5
3307 echo "${ECHO_T}no" >&6; }
3312 if test -z "$ac_cv_prog_CC"; then
3313 ac_ct_CC=$CC
3314 # Extract the first word of "gcc", so it can be a program name with args.
3315 set dummy gcc; ac_word=$2
3316 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3318 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3320 else
3321 if test -n "$ac_ct_CC"; then
3322 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3323 else
3324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325 for as_dir in $PATH
3327 IFS=$as_save_IFS
3328 test -z "$as_dir" && as_dir=.
3329 for ac_exec_ext in '' $ac_executable_extensions; do
3330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3331 ac_cv_prog_ac_ct_CC="gcc"
3332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3333 break 2
3335 done
3336 done
3337 IFS=$as_save_IFS
3341 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3342 if test -n "$ac_ct_CC"; then
3343 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3344 echo "${ECHO_T}$ac_ct_CC" >&6; }
3345 else
3346 { echo "$as_me:$LINENO: result: no" >&5
3347 echo "${ECHO_T}no" >&6; }
3350 if test "x$ac_ct_CC" = x; then
3351 CC=""
3352 else
3353 case $cross_compiling:$ac_tool_warned in
3354 yes:)
3355 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3356 whose name does not start with the host triplet. If you think this
3357 configuration is useful to you, please write to autoconf@gnu.org." >&5
3358 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3359 whose name does not start with the host triplet. If you think this
3360 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3361 ac_tool_warned=yes ;;
3362 esac
3363 CC=$ac_ct_CC
3365 else
3366 CC="$ac_cv_prog_CC"
3369 if test -z "$CC"; then
3370 if test -n "$ac_tool_prefix"; then
3371 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3372 set dummy ${ac_tool_prefix}cc; ac_word=$2
3373 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3375 if test "${ac_cv_prog_CC+set}" = set; then
3376 echo $ECHO_N "(cached) $ECHO_C" >&6
3377 else
3378 if test -n "$CC"; then
3379 ac_cv_prog_CC="$CC" # Let the user override the test.
3380 else
3381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3382 for as_dir in $PATH
3384 IFS=$as_save_IFS
3385 test -z "$as_dir" && as_dir=.
3386 for ac_exec_ext in '' $ac_executable_extensions; do
3387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3388 ac_cv_prog_CC="${ac_tool_prefix}cc"
3389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3390 break 2
3392 done
3393 done
3394 IFS=$as_save_IFS
3398 CC=$ac_cv_prog_CC
3399 if test -n "$CC"; then
3400 { echo "$as_me:$LINENO: result: $CC" >&5
3401 echo "${ECHO_T}$CC" >&6; }
3402 else
3403 { echo "$as_me:$LINENO: result: no" >&5
3404 echo "${ECHO_T}no" >&6; }
3410 if test -z "$CC"; then
3411 # Extract the first word of "cc", so it can be a program name with args.
3412 set dummy cc; ac_word=$2
3413 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3415 if test "${ac_cv_prog_CC+set}" = set; then
3416 echo $ECHO_N "(cached) $ECHO_C" >&6
3417 else
3418 if test -n "$CC"; then
3419 ac_cv_prog_CC="$CC" # Let the user override the test.
3420 else
3421 ac_prog_rejected=no
3422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3423 for as_dir in $PATH
3425 IFS=$as_save_IFS
3426 test -z "$as_dir" && as_dir=.
3427 for ac_exec_ext in '' $ac_executable_extensions; do
3428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3429 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3430 ac_prog_rejected=yes
3431 continue
3433 ac_cv_prog_CC="cc"
3434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3435 break 2
3437 done
3438 done
3439 IFS=$as_save_IFS
3441 if test $ac_prog_rejected = yes; then
3442 # We found a bogon in the path, so make sure we never use it.
3443 set dummy $ac_cv_prog_CC
3444 shift
3445 if test $# != 0; then
3446 # We chose a different compiler from the bogus one.
3447 # However, it has the same basename, so the bogon will be chosen
3448 # first if we set CC to just the basename; use the full file name.
3449 shift
3450 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3455 CC=$ac_cv_prog_CC
3456 if test -n "$CC"; then
3457 { echo "$as_me:$LINENO: result: $CC" >&5
3458 echo "${ECHO_T}$CC" >&6; }
3459 else
3460 { echo "$as_me:$LINENO: result: no" >&5
3461 echo "${ECHO_T}no" >&6; }
3466 if test -z "$CC"; then
3467 if test -n "$ac_tool_prefix"; then
3468 for ac_prog in cl.exe
3470 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3471 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3472 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3474 if test "${ac_cv_prog_CC+set}" = set; then
3475 echo $ECHO_N "(cached) $ECHO_C" >&6
3476 else
3477 if test -n "$CC"; then
3478 ac_cv_prog_CC="$CC" # Let the user override the test.
3479 else
3480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3481 for as_dir in $PATH
3483 IFS=$as_save_IFS
3484 test -z "$as_dir" && as_dir=.
3485 for ac_exec_ext in '' $ac_executable_extensions; do
3486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3487 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3489 break 2
3491 done
3492 done
3493 IFS=$as_save_IFS
3497 CC=$ac_cv_prog_CC
3498 if test -n "$CC"; then
3499 { echo "$as_me:$LINENO: result: $CC" >&5
3500 echo "${ECHO_T}$CC" >&6; }
3501 else
3502 { echo "$as_me:$LINENO: result: no" >&5
3503 echo "${ECHO_T}no" >&6; }
3507 test -n "$CC" && break
3508 done
3510 if test -z "$CC"; then
3511 ac_ct_CC=$CC
3512 for ac_prog in cl.exe
3514 # Extract the first word of "$ac_prog", so it can be a program name with args.
3515 set dummy $ac_prog; ac_word=$2
3516 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3518 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3519 echo $ECHO_N "(cached) $ECHO_C" >&6
3520 else
3521 if test -n "$ac_ct_CC"; then
3522 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3523 else
3524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3525 for as_dir in $PATH
3527 IFS=$as_save_IFS
3528 test -z "$as_dir" && as_dir=.
3529 for ac_exec_ext in '' $ac_executable_extensions; do
3530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3531 ac_cv_prog_ac_ct_CC="$ac_prog"
3532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3533 break 2
3535 done
3536 done
3537 IFS=$as_save_IFS
3541 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3542 if test -n "$ac_ct_CC"; then
3543 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3544 echo "${ECHO_T}$ac_ct_CC" >&6; }
3545 else
3546 { echo "$as_me:$LINENO: result: no" >&5
3547 echo "${ECHO_T}no" >&6; }
3551 test -n "$ac_ct_CC" && break
3552 done
3554 if test "x$ac_ct_CC" = x; then
3555 CC=""
3556 else
3557 case $cross_compiling:$ac_tool_warned in
3558 yes:)
3559 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3560 whose name does not start with the host triplet. If you think this
3561 configuration is useful to you, please write to autoconf@gnu.org." >&5
3562 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3563 whose name does not start with the host triplet. If you think this
3564 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3565 ac_tool_warned=yes ;;
3566 esac
3567 CC=$ac_ct_CC
3574 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3575 See \`config.log' for more details." >&5
3576 echo "$as_me: error: no acceptable C compiler found in \$PATH
3577 See \`config.log' for more details." >&2;}
3578 { (exit 1); exit 1; }; }
3580 # Provide some information about the compiler.
3581 echo "$as_me:$LINENO: checking for C compiler version" >&5
3582 ac_compiler=`set X $ac_compile; echo $2`
3583 { (ac_try="$ac_compiler --version >&5"
3584 case "(($ac_try" in
3585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3586 *) ac_try_echo=$ac_try;;
3587 esac
3588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3589 (eval "$ac_compiler --version >&5") 2>&5
3590 ac_status=$?
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); }
3593 { (ac_try="$ac_compiler -v >&5"
3594 case "(($ac_try" in
3595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3596 *) ac_try_echo=$ac_try;;
3597 esac
3598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3599 (eval "$ac_compiler -v >&5") 2>&5
3600 ac_status=$?
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); }
3603 { (ac_try="$ac_compiler -V >&5"
3604 case "(($ac_try" in
3605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3606 *) ac_try_echo=$ac_try;;
3607 esac
3608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3609 (eval "$ac_compiler -V >&5") 2>&5
3610 ac_status=$?
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); }
3614 cat >conftest.$ac_ext <<_ACEOF
3615 /* confdefs.h. */
3616 _ACEOF
3617 cat confdefs.h >>conftest.$ac_ext
3618 cat >>conftest.$ac_ext <<_ACEOF
3619 /* end confdefs.h. */
3622 main ()
3626 return 0;
3628 _ACEOF
3629 ac_clean_files_save=$ac_clean_files
3630 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3631 # Try to create an executable without -o first, disregard a.out.
3632 # It will help us diagnose broken compilers, and finding out an intuition
3633 # of exeext.
3634 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3635 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3636 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3638 # List of possible output files, starting from the most likely.
3639 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3640 # only as a last resort. b.out is created by i960 compilers.
3641 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3643 # The IRIX 6 linker writes into existing files which may not be
3644 # executable, retaining their permissions. Remove them first so a
3645 # subsequent execution test works.
3646 ac_rmfiles=
3647 for ac_file in $ac_files
3649 case $ac_file in
3650 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3651 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3652 esac
3653 done
3654 rm -f $ac_rmfiles
3656 if { (ac_try="$ac_link_default"
3657 case "(($ac_try" in
3658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3659 *) ac_try_echo=$ac_try;;
3660 esac
3661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3662 (eval "$ac_link_default") 2>&5
3663 ac_status=$?
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); }; then
3666 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3667 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3668 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3669 # so that the user can short-circuit this test for compilers unknown to
3670 # Autoconf.
3671 for ac_file in $ac_files ''
3673 test -f "$ac_file" || continue
3674 case $ac_file in
3675 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3677 [ab].out )
3678 # We found the default executable, but exeext='' is most
3679 # certainly right.
3680 break;;
3681 *.* )
3682 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3683 then :; else
3684 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3686 # We set ac_cv_exeext here because the later test for it is not
3687 # safe: cross compilers may not add the suffix if given an `-o'
3688 # argument, so we may need to know it at that point already.
3689 # Even if this section looks crufty: it has the advantage of
3690 # actually working.
3691 break;;
3693 break;;
3694 esac
3695 done
3696 test "$ac_cv_exeext" = no && ac_cv_exeext=
3698 else
3699 ac_file=''
3702 { echo "$as_me:$LINENO: result: $ac_file" >&5
3703 echo "${ECHO_T}$ac_file" >&6; }
3704 if test -z "$ac_file"; then
3705 echo "$as_me: failed program was:" >&5
3706 sed 's/^/| /' conftest.$ac_ext >&5
3708 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3709 See \`config.log' for more details." >&5
3710 echo "$as_me: error: C compiler cannot create executables
3711 See \`config.log' for more details." >&2;}
3712 { (exit 77); exit 77; }; }
3715 ac_exeext=$ac_cv_exeext
3717 # Check that the compiler produces executables we can run. If not, either
3718 # the compiler is broken, or we cross compile.
3719 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3720 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3721 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3722 # If not cross compiling, check that we can run a simple program.
3723 if test "$cross_compiling" != yes; then
3724 if { ac_try='./$ac_file'
3725 { (case "(($ac_try" in
3726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3727 *) ac_try_echo=$ac_try;;
3728 esac
3729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3730 (eval "$ac_try") 2>&5
3731 ac_status=$?
3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733 (exit $ac_status); }; }; then
3734 cross_compiling=no
3735 else
3736 if test "$cross_compiling" = maybe; then
3737 cross_compiling=yes
3738 else
3739 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3740 If you meant to cross compile, use \`--host'.
3741 See \`config.log' for more details." >&5
3742 echo "$as_me: error: cannot run C compiled programs.
3743 If you meant to cross compile, use \`--host'.
3744 See \`config.log' for more details." >&2;}
3745 { (exit 1); exit 1; }; }
3749 { echo "$as_me:$LINENO: result: yes" >&5
3750 echo "${ECHO_T}yes" >&6; }
3752 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3753 ac_clean_files=$ac_clean_files_save
3754 # Check that the compiler produces executables we can run. If not, either
3755 # the compiler is broken, or we cross compile.
3756 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3757 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3758 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3759 echo "${ECHO_T}$cross_compiling" >&6; }
3761 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3762 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3763 if { (ac_try="$ac_link"
3764 case "(($ac_try" in
3765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3766 *) ac_try_echo=$ac_try;;
3767 esac
3768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3769 (eval "$ac_link") 2>&5
3770 ac_status=$?
3771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772 (exit $ac_status); }; then
3773 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3774 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3775 # work properly (i.e., refer to `conftest.exe'), while it won't with
3776 # `rm'.
3777 for ac_file in conftest.exe conftest conftest.*; do
3778 test -f "$ac_file" || continue
3779 case $ac_file in
3780 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3781 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3782 break;;
3783 * ) break;;
3784 esac
3785 done
3786 else
3787 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3788 See \`config.log' for more details." >&5
3789 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3790 See \`config.log' for more details." >&2;}
3791 { (exit 1); exit 1; }; }
3794 rm -f conftest$ac_cv_exeext
3795 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3796 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3798 rm -f conftest.$ac_ext
3799 EXEEXT=$ac_cv_exeext
3800 ac_exeext=$EXEEXT
3801 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3802 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3803 if test "${ac_cv_objext+set}" = set; then
3804 echo $ECHO_N "(cached) $ECHO_C" >&6
3805 else
3806 cat >conftest.$ac_ext <<_ACEOF
3807 /* confdefs.h. */
3808 _ACEOF
3809 cat confdefs.h >>conftest.$ac_ext
3810 cat >>conftest.$ac_ext <<_ACEOF
3811 /* end confdefs.h. */
3814 main ()
3818 return 0;
3820 _ACEOF
3821 rm -f conftest.o conftest.obj
3822 if { (ac_try="$ac_compile"
3823 case "(($ac_try" in
3824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3825 *) ac_try_echo=$ac_try;;
3826 esac
3827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3828 (eval "$ac_compile") 2>&5
3829 ac_status=$?
3830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831 (exit $ac_status); }; then
3832 for ac_file in conftest.o conftest.obj conftest.*; do
3833 test -f "$ac_file" || continue;
3834 case $ac_file in
3835 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3836 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3837 break;;
3838 esac
3839 done
3840 else
3841 echo "$as_me: failed program was:" >&5
3842 sed 's/^/| /' conftest.$ac_ext >&5
3844 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3845 See \`config.log' for more details." >&5
3846 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3847 See \`config.log' for more details." >&2;}
3848 { (exit 1); exit 1; }; }
3851 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3853 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3854 echo "${ECHO_T}$ac_cv_objext" >&6; }
3855 OBJEXT=$ac_cv_objext
3856 ac_objext=$OBJEXT
3857 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3858 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3859 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3860 echo $ECHO_N "(cached) $ECHO_C" >&6
3861 else
3862 cat >conftest.$ac_ext <<_ACEOF
3863 /* confdefs.h. */
3864 _ACEOF
3865 cat confdefs.h >>conftest.$ac_ext
3866 cat >>conftest.$ac_ext <<_ACEOF
3867 /* end confdefs.h. */
3870 main ()
3872 #ifndef __GNUC__
3873 choke me
3874 #endif
3877 return 0;
3879 _ACEOF
3880 rm -f conftest.$ac_objext
3881 if { (ac_try="$ac_compile"
3882 case "(($ac_try" in
3883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3884 *) ac_try_echo=$ac_try;;
3885 esac
3886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3887 (eval "$ac_compile") 2>conftest.er1
3888 ac_status=$?
3889 grep -v '^ *+' conftest.er1 >conftest.err
3890 rm -f conftest.er1
3891 cat conftest.err >&5
3892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893 (exit $ac_status); } && {
3894 test -z "$ac_c_werror_flag" ||
3895 test ! -s conftest.err
3896 } && test -s conftest.$ac_objext; then
3897 ac_compiler_gnu=yes
3898 else
3899 echo "$as_me: failed program was:" >&5
3900 sed 's/^/| /' conftest.$ac_ext >&5
3902 ac_compiler_gnu=no
3905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3906 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3909 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3910 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3911 GCC=`test $ac_compiler_gnu = yes && echo yes`
3912 ac_test_CFLAGS=${CFLAGS+set}
3913 ac_save_CFLAGS=$CFLAGS
3914 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3915 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3916 if test "${ac_cv_prog_cc_g+set}" = set; then
3917 echo $ECHO_N "(cached) $ECHO_C" >&6
3918 else
3919 ac_save_c_werror_flag=$ac_c_werror_flag
3920 ac_c_werror_flag=yes
3921 ac_cv_prog_cc_g=no
3922 CFLAGS="-g"
3923 cat >conftest.$ac_ext <<_ACEOF
3924 /* confdefs.h. */
3925 _ACEOF
3926 cat confdefs.h >>conftest.$ac_ext
3927 cat >>conftest.$ac_ext <<_ACEOF
3928 /* end confdefs.h. */
3931 main ()
3935 return 0;
3937 _ACEOF
3938 rm -f conftest.$ac_objext
3939 if { (ac_try="$ac_compile"
3940 case "(($ac_try" in
3941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3942 *) ac_try_echo=$ac_try;;
3943 esac
3944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3945 (eval "$ac_compile") 2>conftest.er1
3946 ac_status=$?
3947 grep -v '^ *+' conftest.er1 >conftest.err
3948 rm -f conftest.er1
3949 cat conftest.err >&5
3950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951 (exit $ac_status); } && {
3952 test -z "$ac_c_werror_flag" ||
3953 test ! -s conftest.err
3954 } && test -s conftest.$ac_objext; then
3955 ac_cv_prog_cc_g=yes
3956 else
3957 echo "$as_me: failed program was:" >&5
3958 sed 's/^/| /' conftest.$ac_ext >&5
3960 CFLAGS=""
3961 cat >conftest.$ac_ext <<_ACEOF
3962 /* confdefs.h. */
3963 _ACEOF
3964 cat confdefs.h >>conftest.$ac_ext
3965 cat >>conftest.$ac_ext <<_ACEOF
3966 /* end confdefs.h. */
3969 main ()
3973 return 0;
3975 _ACEOF
3976 rm -f conftest.$ac_objext
3977 if { (ac_try="$ac_compile"
3978 case "(($ac_try" in
3979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3980 *) ac_try_echo=$ac_try;;
3981 esac
3982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3983 (eval "$ac_compile") 2>conftest.er1
3984 ac_status=$?
3985 grep -v '^ *+' conftest.er1 >conftest.err
3986 rm -f conftest.er1
3987 cat conftest.err >&5
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); } && {
3990 test -z "$ac_c_werror_flag" ||
3991 test ! -s conftest.err
3992 } && test -s conftest.$ac_objext; then
3994 else
3995 echo "$as_me: failed program was:" >&5
3996 sed 's/^/| /' conftest.$ac_ext >&5
3998 ac_c_werror_flag=$ac_save_c_werror_flag
3999 CFLAGS="-g"
4000 cat >conftest.$ac_ext <<_ACEOF
4001 /* confdefs.h. */
4002 _ACEOF
4003 cat confdefs.h >>conftest.$ac_ext
4004 cat >>conftest.$ac_ext <<_ACEOF
4005 /* end confdefs.h. */
4008 main ()
4012 return 0;
4014 _ACEOF
4015 rm -f conftest.$ac_objext
4016 if { (ac_try="$ac_compile"
4017 case "(($ac_try" in
4018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4019 *) ac_try_echo=$ac_try;;
4020 esac
4021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4022 (eval "$ac_compile") 2>conftest.er1
4023 ac_status=$?
4024 grep -v '^ *+' conftest.er1 >conftest.err
4025 rm -f conftest.er1
4026 cat conftest.err >&5
4027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028 (exit $ac_status); } && {
4029 test -z "$ac_c_werror_flag" ||
4030 test ! -s conftest.err
4031 } && test -s conftest.$ac_objext; then
4032 ac_cv_prog_cc_g=yes
4033 else
4034 echo "$as_me: failed program was:" >&5
4035 sed 's/^/| /' conftest.$ac_ext >&5
4040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4047 ac_c_werror_flag=$ac_save_c_werror_flag
4049 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4050 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4051 if test "$ac_test_CFLAGS" = set; then
4052 CFLAGS=$ac_save_CFLAGS
4053 elif test $ac_cv_prog_cc_g = yes; then
4054 if test "$GCC" = yes; then
4055 CFLAGS="-g -O2"
4056 else
4057 CFLAGS="-g"
4059 else
4060 if test "$GCC" = yes; then
4061 CFLAGS="-O2"
4062 else
4063 CFLAGS=
4066 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4067 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4068 if test "${ac_cv_prog_cc_c89+set}" = set; then
4069 echo $ECHO_N "(cached) $ECHO_C" >&6
4070 else
4071 ac_cv_prog_cc_c89=no
4072 ac_save_CC=$CC
4073 cat >conftest.$ac_ext <<_ACEOF
4074 /* confdefs.h. */
4075 _ACEOF
4076 cat confdefs.h >>conftest.$ac_ext
4077 cat >>conftest.$ac_ext <<_ACEOF
4078 /* end confdefs.h. */
4079 #include <stdarg.h>
4080 #include <stdio.h>
4081 #include <sys/types.h>
4082 #include <sys/stat.h>
4083 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4084 struct buf { int x; };
4085 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4086 static char *e (p, i)
4087 char **p;
4088 int i;
4090 return p[i];
4092 static char *f (char * (*g) (char **, int), char **p, ...)
4094 char *s;
4095 va_list v;
4096 va_start (v,p);
4097 s = g (p, va_arg (v,int));
4098 va_end (v);
4099 return s;
4102 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4103 function prototypes and stuff, but not '\xHH' hex character constants.
4104 These don't provoke an error unfortunately, instead are silently treated
4105 as 'x'. The following induces an error, until -std is added to get
4106 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4107 array size at least. It's necessary to write '\x00'==0 to get something
4108 that's true only with -std. */
4109 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4111 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4112 inside strings and character constants. */
4113 #define FOO(x) 'x'
4114 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4116 int test (int i, double x);
4117 struct s1 {int (*f) (int a);};
4118 struct s2 {int (*f) (double a);};
4119 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4120 int argc;
4121 char **argv;
4123 main ()
4125 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4127 return 0;
4129 _ACEOF
4130 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4131 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4133 CC="$ac_save_CC $ac_arg"
4134 rm -f conftest.$ac_objext
4135 if { (ac_try="$ac_compile"
4136 case "(($ac_try" in
4137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138 *) ac_try_echo=$ac_try;;
4139 esac
4140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4141 (eval "$ac_compile") 2>conftest.er1
4142 ac_status=$?
4143 grep -v '^ *+' conftest.er1 >conftest.err
4144 rm -f conftest.er1
4145 cat conftest.err >&5
4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); } && {
4148 test -z "$ac_c_werror_flag" ||
4149 test ! -s conftest.err
4150 } && test -s conftest.$ac_objext; then
4151 ac_cv_prog_cc_c89=$ac_arg
4152 else
4153 echo "$as_me: failed program was:" >&5
4154 sed 's/^/| /' conftest.$ac_ext >&5
4159 rm -f core conftest.err conftest.$ac_objext
4160 test "x$ac_cv_prog_cc_c89" != "xno" && break
4161 done
4162 rm -f conftest.$ac_ext
4163 CC=$ac_save_CC
4166 # AC_CACHE_VAL
4167 case "x$ac_cv_prog_cc_c89" in
4169 { echo "$as_me:$LINENO: result: none needed" >&5
4170 echo "${ECHO_T}none needed" >&6; } ;;
4171 xno)
4172 { echo "$as_me:$LINENO: result: unsupported" >&5
4173 echo "${ECHO_T}unsupported" >&6; } ;;
4175 CC="$CC $ac_cv_prog_cc_c89"
4176 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4177 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4178 esac
4181 ac_ext=c
4182 ac_cpp='$CPP $CPPFLAGS'
4183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4188 # On Suns, sometimes $CPP names a directory.
4189 if test -n "$CPP" && test -d "$CPP"; then
4190 CPP=
4193 ## If not using gcc, and on Solaris, and no CPP specified, see if
4194 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4195 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4196 test x"$CPP" = x; then
4197 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
4198 echo $ECHO_N "checking whether we are using a Sun C compiler... $ECHO_C" >&6; }
4200 if test "${emacs_cv_sunpro_c+set}" = set; then
4201 echo $ECHO_N "(cached) $ECHO_C" >&6
4202 else
4203 cat >conftest.$ac_ext <<_ACEOF
4204 /* confdefs.h. */
4205 _ACEOF
4206 cat confdefs.h >>conftest.$ac_ext
4207 cat >>conftest.$ac_ext <<_ACEOF
4208 /* end confdefs.h. */
4211 main ()
4213 #ifndef __SUNPRO_C
4214 fail;
4215 #endif
4218 return 0;
4220 _ACEOF
4221 rm -f conftest.$ac_objext conftest$ac_exeext
4222 if { (ac_try="$ac_link"
4223 case "(($ac_try" in
4224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4225 *) ac_try_echo=$ac_try;;
4226 esac
4227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4228 (eval "$ac_link") 2>conftest.er1
4229 ac_status=$?
4230 grep -v '^ *+' conftest.er1 >conftest.err
4231 rm -f conftest.er1
4232 cat conftest.err >&5
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); } && {
4235 test -z "$ac_c_werror_flag" ||
4236 test ! -s conftest.err
4237 } && test -s conftest$ac_exeext &&
4238 $as_test_x conftest$ac_exeext; then
4239 emacs_cv_sunpro_c=yes
4240 else
4241 echo "$as_me: failed program was:" >&5
4242 sed 's/^/| /' conftest.$ac_ext >&5
4244 emacs_cv_sunpro_c=no
4247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4248 conftest$ac_exeext conftest.$ac_ext
4251 { echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
4252 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
4254 if test x"$emacs_cv_sunpro_c" = xyes; then
4255 NON_GNU_CPP="$CC -E -Xs"
4259 #### Some systems specify a CPP to use unless we are using GCC.
4260 #### Now that we know whether we are using GCC, we can decide whether
4261 #### to use that one.
4262 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4263 then
4264 CPP="$NON_GNU_CPP"
4267 #### Some systems specify a CC to use unless we are using GCC.
4268 #### Now that we know whether we are using GCC, we can decide whether
4269 #### to use that one.
4270 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4271 test x$cc_specified != xyes
4272 then
4273 CC="$NON_GNU_CC"
4276 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4277 then
4278 CC="$CC $GCC_TEST_OPTIONS"
4281 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4282 then
4283 CC="$CC $NON_GCC_TEST_OPTIONS"
4286 ac_ext=c
4287 ac_cpp='$CPP $CPPFLAGS'
4288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4291 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4292 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4293 # On Suns, sometimes $CPP names a directory.
4294 if test -n "$CPP" && test -d "$CPP"; then
4295 CPP=
4297 if test -z "$CPP"; then
4298 if test "${ac_cv_prog_CPP+set}" = set; then
4299 echo $ECHO_N "(cached) $ECHO_C" >&6
4300 else
4301 # Double quotes because CPP needs to be expanded
4302 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4304 ac_preproc_ok=false
4305 for ac_c_preproc_warn_flag in '' yes
4307 # Use a header file that comes with gcc, so configuring glibc
4308 # with a fresh cross-compiler works.
4309 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4310 # <limits.h> exists even on freestanding compilers.
4311 # On the NeXT, cc -E runs the code through the compiler's parser,
4312 # not just through cpp. "Syntax error" is here to catch this case.
4313 cat >conftest.$ac_ext <<_ACEOF
4314 /* confdefs.h. */
4315 _ACEOF
4316 cat confdefs.h >>conftest.$ac_ext
4317 cat >>conftest.$ac_ext <<_ACEOF
4318 /* end confdefs.h. */
4319 #ifdef __STDC__
4320 # include <limits.h>
4321 #else
4322 # include <assert.h>
4323 #endif
4324 Syntax error
4325 _ACEOF
4326 if { (ac_try="$ac_cpp conftest.$ac_ext"
4327 case "(($ac_try" in
4328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4329 *) ac_try_echo=$ac_try;;
4330 esac
4331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4332 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4333 ac_status=$?
4334 grep -v '^ *+' conftest.er1 >conftest.err
4335 rm -f conftest.er1
4336 cat conftest.err >&5
4337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); } >/dev/null && {
4339 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4340 test ! -s conftest.err
4341 }; then
4343 else
4344 echo "$as_me: failed program was:" >&5
4345 sed 's/^/| /' conftest.$ac_ext >&5
4347 # Broken: fails on valid input.
4348 continue
4351 rm -f conftest.err conftest.$ac_ext
4353 # OK, works on sane cases. Now check whether nonexistent headers
4354 # can be detected and how.
4355 cat >conftest.$ac_ext <<_ACEOF
4356 /* confdefs.h. */
4357 _ACEOF
4358 cat confdefs.h >>conftest.$ac_ext
4359 cat >>conftest.$ac_ext <<_ACEOF
4360 /* end confdefs.h. */
4361 #include <ac_nonexistent.h>
4362 _ACEOF
4363 if { (ac_try="$ac_cpp conftest.$ac_ext"
4364 case "(($ac_try" in
4365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4366 *) ac_try_echo=$ac_try;;
4367 esac
4368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4369 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4370 ac_status=$?
4371 grep -v '^ *+' conftest.er1 >conftest.err
4372 rm -f conftest.er1
4373 cat conftest.err >&5
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); } >/dev/null && {
4376 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4377 test ! -s conftest.err
4378 }; then
4379 # Broken: success on invalid input.
4380 continue
4381 else
4382 echo "$as_me: failed program was:" >&5
4383 sed 's/^/| /' conftest.$ac_ext >&5
4385 # Passes both tests.
4386 ac_preproc_ok=:
4387 break
4390 rm -f conftest.err conftest.$ac_ext
4392 done
4393 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4394 rm -f conftest.err conftest.$ac_ext
4395 if $ac_preproc_ok; then
4396 break
4399 done
4400 ac_cv_prog_CPP=$CPP
4403 CPP=$ac_cv_prog_CPP
4404 else
4405 ac_cv_prog_CPP=$CPP
4407 { echo "$as_me:$LINENO: result: $CPP" >&5
4408 echo "${ECHO_T}$CPP" >&6; }
4409 ac_preproc_ok=false
4410 for ac_c_preproc_warn_flag in '' yes
4412 # Use a header file that comes with gcc, so configuring glibc
4413 # with a fresh cross-compiler works.
4414 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4415 # <limits.h> exists even on freestanding compilers.
4416 # On the NeXT, cc -E runs the code through the compiler's parser,
4417 # not just through cpp. "Syntax error" is here to catch this case.
4418 cat >conftest.$ac_ext <<_ACEOF
4419 /* confdefs.h. */
4420 _ACEOF
4421 cat confdefs.h >>conftest.$ac_ext
4422 cat >>conftest.$ac_ext <<_ACEOF
4423 /* end confdefs.h. */
4424 #ifdef __STDC__
4425 # include <limits.h>
4426 #else
4427 # include <assert.h>
4428 #endif
4429 Syntax error
4430 _ACEOF
4431 if { (ac_try="$ac_cpp conftest.$ac_ext"
4432 case "(($ac_try" in
4433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4434 *) ac_try_echo=$ac_try;;
4435 esac
4436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4437 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4438 ac_status=$?
4439 grep -v '^ *+' conftest.er1 >conftest.err
4440 rm -f conftest.er1
4441 cat conftest.err >&5
4442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443 (exit $ac_status); } >/dev/null && {
4444 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4445 test ! -s conftest.err
4446 }; then
4448 else
4449 echo "$as_me: failed program was:" >&5
4450 sed 's/^/| /' conftest.$ac_ext >&5
4452 # Broken: fails on valid input.
4453 continue
4456 rm -f conftest.err conftest.$ac_ext
4458 # OK, works on sane cases. Now check whether nonexistent headers
4459 # can be detected and how.
4460 cat >conftest.$ac_ext <<_ACEOF
4461 /* confdefs.h. */
4462 _ACEOF
4463 cat confdefs.h >>conftest.$ac_ext
4464 cat >>conftest.$ac_ext <<_ACEOF
4465 /* end confdefs.h. */
4466 #include <ac_nonexistent.h>
4467 _ACEOF
4468 if { (ac_try="$ac_cpp conftest.$ac_ext"
4469 case "(($ac_try" in
4470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4471 *) ac_try_echo=$ac_try;;
4472 esac
4473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4475 ac_status=$?
4476 grep -v '^ *+' conftest.er1 >conftest.err
4477 rm -f conftest.er1
4478 cat conftest.err >&5
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); } >/dev/null && {
4481 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4482 test ! -s conftest.err
4483 }; then
4484 # Broken: success on invalid input.
4485 continue
4486 else
4487 echo "$as_me: failed program was:" >&5
4488 sed 's/^/| /' conftest.$ac_ext >&5
4490 # Passes both tests.
4491 ac_preproc_ok=:
4492 break
4495 rm -f conftest.err conftest.$ac_ext
4497 done
4498 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4499 rm -f conftest.err conftest.$ac_ext
4500 if $ac_preproc_ok; then
4502 else
4503 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4504 See \`config.log' for more details." >&5
4505 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4506 See \`config.log' for more details." >&2;}
4507 { (exit 1); exit 1; }; }
4510 ac_ext=c
4511 ac_cpp='$CPP $CPPFLAGS'
4512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4517 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4518 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4519 if test "${ac_cv_path_GREP+set}" = set; then
4520 echo $ECHO_N "(cached) $ECHO_C" >&6
4521 else
4522 # Extract the first word of "grep ggrep" to use in msg output
4523 if test -z "$GREP"; then
4524 set dummy grep ggrep; ac_prog_name=$2
4525 if test "${ac_cv_path_GREP+set}" = set; then
4526 echo $ECHO_N "(cached) $ECHO_C" >&6
4527 else
4528 ac_path_GREP_found=false
4529 # Loop through the user's path and test for each of PROGNAME-LIST
4530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4531 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4533 IFS=$as_save_IFS
4534 test -z "$as_dir" && as_dir=.
4535 for ac_prog in grep ggrep; do
4536 for ac_exec_ext in '' $ac_executable_extensions; do
4537 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4538 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4539 # Check for GNU ac_path_GREP and select it if it is found.
4540 # Check for GNU $ac_path_GREP
4541 case `"$ac_path_GREP" --version 2>&1` in
4542 *GNU*)
4543 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4545 ac_count=0
4546 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4547 while :
4549 cat "conftest.in" "conftest.in" >"conftest.tmp"
4550 mv "conftest.tmp" "conftest.in"
4551 cp "conftest.in" "conftest.nl"
4552 echo 'GREP' >> "conftest.nl"
4553 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4554 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4555 ac_count=`expr $ac_count + 1`
4556 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4557 # Best one so far, save it but keep looking for a better one
4558 ac_cv_path_GREP="$ac_path_GREP"
4559 ac_path_GREP_max=$ac_count
4561 # 10*(2^10) chars as input seems more than enough
4562 test $ac_count -gt 10 && break
4563 done
4564 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4565 esac
4568 $ac_path_GREP_found && break 3
4569 done
4570 done
4572 done
4573 IFS=$as_save_IFS
4578 GREP="$ac_cv_path_GREP"
4579 if test -z "$GREP"; then
4580 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4581 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4582 { (exit 1); exit 1; }; }
4585 else
4586 ac_cv_path_GREP=$GREP
4591 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4592 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4593 GREP="$ac_cv_path_GREP"
4596 { echo "$as_me:$LINENO: checking for egrep" >&5
4597 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4598 if test "${ac_cv_path_EGREP+set}" = set; then
4599 echo $ECHO_N "(cached) $ECHO_C" >&6
4600 else
4601 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4602 then ac_cv_path_EGREP="$GREP -E"
4603 else
4604 # Extract the first word of "egrep" to use in msg output
4605 if test -z "$EGREP"; then
4606 set dummy egrep; ac_prog_name=$2
4607 if test "${ac_cv_path_EGREP+set}" = set; then
4608 echo $ECHO_N "(cached) $ECHO_C" >&6
4609 else
4610 ac_path_EGREP_found=false
4611 # Loop through the user's path and test for each of PROGNAME-LIST
4612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4613 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4615 IFS=$as_save_IFS
4616 test -z "$as_dir" && as_dir=.
4617 for ac_prog in egrep; do
4618 for ac_exec_ext in '' $ac_executable_extensions; do
4619 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4620 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4621 # Check for GNU ac_path_EGREP and select it if it is found.
4622 # Check for GNU $ac_path_EGREP
4623 case `"$ac_path_EGREP" --version 2>&1` in
4624 *GNU*)
4625 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4627 ac_count=0
4628 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4629 while :
4631 cat "conftest.in" "conftest.in" >"conftest.tmp"
4632 mv "conftest.tmp" "conftest.in"
4633 cp "conftest.in" "conftest.nl"
4634 echo 'EGREP' >> "conftest.nl"
4635 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4636 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4637 ac_count=`expr $ac_count + 1`
4638 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4639 # Best one so far, save it but keep looking for a better one
4640 ac_cv_path_EGREP="$ac_path_EGREP"
4641 ac_path_EGREP_max=$ac_count
4643 # 10*(2^10) chars as input seems more than enough
4644 test $ac_count -gt 10 && break
4645 done
4646 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4647 esac
4650 $ac_path_EGREP_found && break 3
4651 done
4652 done
4654 done
4655 IFS=$as_save_IFS
4660 EGREP="$ac_cv_path_EGREP"
4661 if test -z "$EGREP"; then
4662 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4663 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4664 { (exit 1); exit 1; }; }
4667 else
4668 ac_cv_path_EGREP=$EGREP
4674 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4675 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4676 EGREP="$ac_cv_path_EGREP"
4680 { echo "$as_me:$LINENO: checking for AIX" >&5
4681 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4682 cat >conftest.$ac_ext <<_ACEOF
4683 /* confdefs.h. */
4684 _ACEOF
4685 cat confdefs.h >>conftest.$ac_ext
4686 cat >>conftest.$ac_ext <<_ACEOF
4687 /* end confdefs.h. */
4688 #ifdef _AIX
4690 #endif
4692 _ACEOF
4693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4694 $EGREP "yes" >/dev/null 2>&1; then
4695 { echo "$as_me:$LINENO: result: yes" >&5
4696 echo "${ECHO_T}yes" >&6; }
4697 cat >>confdefs.h <<\_ACEOF
4698 #define _ALL_SOURCE 1
4699 _ACEOF
4701 else
4702 { echo "$as_me:$LINENO: result: no" >&5
4703 echo "${ECHO_T}no" >&6; }
4705 rm -f conftest*
4709 cat >>confdefs.h <<\_ACEOF
4710 #define _GNU_SOURCE 1
4711 _ACEOF
4715 ### Use -Wno-pointer-sign if the compiler supports it
4716 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4717 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4718 SAVE_CFLAGS="$CFLAGS"
4719 CFLAGS="$CFLAGS -Wno-pointer-sign"
4720 cat >conftest.$ac_ext <<_ACEOF
4721 /* confdefs.h. */
4722 _ACEOF
4723 cat confdefs.h >>conftest.$ac_ext
4724 cat >>conftest.$ac_ext <<_ACEOF
4725 /* end confdefs.h. */
4728 main ()
4732 return 0;
4734 _ACEOF
4735 rm -f conftest.$ac_objext
4736 if { (ac_try="$ac_compile"
4737 case "(($ac_try" in
4738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4739 *) ac_try_echo=$ac_try;;
4740 esac
4741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4742 (eval "$ac_compile") 2>conftest.er1
4743 ac_status=$?
4744 grep -v '^ *+' conftest.er1 >conftest.err
4745 rm -f conftest.er1
4746 cat conftest.err >&5
4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); } && {
4749 test -z "$ac_c_werror_flag" ||
4750 test ! -s conftest.err
4751 } && test -s conftest.$ac_objext; then
4752 has_option=yes
4753 else
4754 echo "$as_me: failed program was:" >&5
4755 sed 's/^/| /' conftest.$ac_ext >&5
4757 has_option=no
4760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4761 if test $has_option = yes; then
4762 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4764 { echo "$as_me:$LINENO: result: $has_option" >&5
4765 echo "${ECHO_T}$has_option" >&6; }
4766 CFLAGS="$SAVE_CFLAGS"
4767 unset has_option
4768 unset SAVE_CFLAGS
4770 #### Some other nice autoconf tests.
4772 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4773 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4774 LN_S=$as_ln_s
4775 if test "$LN_S" = "ln -s"; then
4776 { echo "$as_me:$LINENO: result: yes" >&5
4777 echo "${ECHO_T}yes" >&6; }
4778 else
4779 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4780 echo "${ECHO_T}no, using $LN_S" >&6; }
4783 ac_ext=c
4784 ac_cpp='$CPP $CPPFLAGS'
4785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4788 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4789 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4790 # On Suns, sometimes $CPP names a directory.
4791 if test -n "$CPP" && test -d "$CPP"; then
4792 CPP=
4794 if test -z "$CPP"; then
4795 if test "${ac_cv_prog_CPP+set}" = set; then
4796 echo $ECHO_N "(cached) $ECHO_C" >&6
4797 else
4798 # Double quotes because CPP needs to be expanded
4799 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4801 ac_preproc_ok=false
4802 for ac_c_preproc_warn_flag in '' yes
4804 # Use a header file that comes with gcc, so configuring glibc
4805 # with a fresh cross-compiler works.
4806 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4807 # <limits.h> exists even on freestanding compilers.
4808 # On the NeXT, cc -E runs the code through the compiler's parser,
4809 # not just through cpp. "Syntax error" is here to catch this case.
4810 cat >conftest.$ac_ext <<_ACEOF
4811 /* confdefs.h. */
4812 _ACEOF
4813 cat confdefs.h >>conftest.$ac_ext
4814 cat >>conftest.$ac_ext <<_ACEOF
4815 /* end confdefs.h. */
4816 #ifdef __STDC__
4817 # include <limits.h>
4818 #else
4819 # include <assert.h>
4820 #endif
4821 Syntax error
4822 _ACEOF
4823 if { (ac_try="$ac_cpp conftest.$ac_ext"
4824 case "(($ac_try" in
4825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4826 *) ac_try_echo=$ac_try;;
4827 esac
4828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4829 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4830 ac_status=$?
4831 grep -v '^ *+' conftest.er1 >conftest.err
4832 rm -f conftest.er1
4833 cat conftest.err >&5
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); } >/dev/null && {
4836 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4837 test ! -s conftest.err
4838 }; then
4840 else
4841 echo "$as_me: failed program was:" >&5
4842 sed 's/^/| /' conftest.$ac_ext >&5
4844 # Broken: fails on valid input.
4845 continue
4848 rm -f conftest.err conftest.$ac_ext
4850 # OK, works on sane cases. Now check whether nonexistent headers
4851 # can be detected and how.
4852 cat >conftest.$ac_ext <<_ACEOF
4853 /* confdefs.h. */
4854 _ACEOF
4855 cat confdefs.h >>conftest.$ac_ext
4856 cat >>conftest.$ac_ext <<_ACEOF
4857 /* end confdefs.h. */
4858 #include <ac_nonexistent.h>
4859 _ACEOF
4860 if { (ac_try="$ac_cpp conftest.$ac_ext"
4861 case "(($ac_try" in
4862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4863 *) ac_try_echo=$ac_try;;
4864 esac
4865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4866 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4867 ac_status=$?
4868 grep -v '^ *+' conftest.er1 >conftest.err
4869 rm -f conftest.er1
4870 cat conftest.err >&5
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); } >/dev/null && {
4873 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4874 test ! -s conftest.err
4875 }; then
4876 # Broken: success on invalid input.
4877 continue
4878 else
4879 echo "$as_me: failed program was:" >&5
4880 sed 's/^/| /' conftest.$ac_ext >&5
4882 # Passes both tests.
4883 ac_preproc_ok=:
4884 break
4887 rm -f conftest.err conftest.$ac_ext
4889 done
4890 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4891 rm -f conftest.err conftest.$ac_ext
4892 if $ac_preproc_ok; then
4893 break
4896 done
4897 ac_cv_prog_CPP=$CPP
4900 CPP=$ac_cv_prog_CPP
4901 else
4902 ac_cv_prog_CPP=$CPP
4904 { echo "$as_me:$LINENO: result: $CPP" >&5
4905 echo "${ECHO_T}$CPP" >&6; }
4906 ac_preproc_ok=false
4907 for ac_c_preproc_warn_flag in '' yes
4909 # Use a header file that comes with gcc, so configuring glibc
4910 # with a fresh cross-compiler works.
4911 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4912 # <limits.h> exists even on freestanding compilers.
4913 # On the NeXT, cc -E runs the code through the compiler's parser,
4914 # not just through cpp. "Syntax error" is here to catch this case.
4915 cat >conftest.$ac_ext <<_ACEOF
4916 /* confdefs.h. */
4917 _ACEOF
4918 cat confdefs.h >>conftest.$ac_ext
4919 cat >>conftest.$ac_ext <<_ACEOF
4920 /* end confdefs.h. */
4921 #ifdef __STDC__
4922 # include <limits.h>
4923 #else
4924 # include <assert.h>
4925 #endif
4926 Syntax error
4927 _ACEOF
4928 if { (ac_try="$ac_cpp conftest.$ac_ext"
4929 case "(($ac_try" in
4930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4931 *) ac_try_echo=$ac_try;;
4932 esac
4933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4935 ac_status=$?
4936 grep -v '^ *+' conftest.er1 >conftest.err
4937 rm -f conftest.er1
4938 cat conftest.err >&5
4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); } >/dev/null && {
4941 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4942 test ! -s conftest.err
4943 }; then
4945 else
4946 echo "$as_me: failed program was:" >&5
4947 sed 's/^/| /' conftest.$ac_ext >&5
4949 # Broken: fails on valid input.
4950 continue
4953 rm -f conftest.err conftest.$ac_ext
4955 # OK, works on sane cases. Now check whether nonexistent headers
4956 # can be detected and how.
4957 cat >conftest.$ac_ext <<_ACEOF
4958 /* confdefs.h. */
4959 _ACEOF
4960 cat confdefs.h >>conftest.$ac_ext
4961 cat >>conftest.$ac_ext <<_ACEOF
4962 /* end confdefs.h. */
4963 #include <ac_nonexistent.h>
4964 _ACEOF
4965 if { (ac_try="$ac_cpp conftest.$ac_ext"
4966 case "(($ac_try" in
4967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4968 *) ac_try_echo=$ac_try;;
4969 esac
4970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4971 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4972 ac_status=$?
4973 grep -v '^ *+' conftest.er1 >conftest.err
4974 rm -f conftest.er1
4975 cat conftest.err >&5
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); } >/dev/null && {
4978 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4979 test ! -s conftest.err
4980 }; then
4981 # Broken: success on invalid input.
4982 continue
4983 else
4984 echo "$as_me: failed program was:" >&5
4985 sed 's/^/| /' conftest.$ac_ext >&5
4987 # Passes both tests.
4988 ac_preproc_ok=:
4989 break
4992 rm -f conftest.err conftest.$ac_ext
4994 done
4995 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4996 rm -f conftest.err conftest.$ac_ext
4997 if $ac_preproc_ok; then
4999 else
5000 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5001 See \`config.log' for more details." >&5
5002 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5003 See \`config.log' for more details." >&2;}
5004 { (exit 1); exit 1; }; }
5007 ac_ext=c
5008 ac_cpp='$CPP $CPPFLAGS'
5009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5013 # Find a good install program. We prefer a C program (faster),
5014 # so one script is as good as another. But avoid the broken or
5015 # incompatible versions:
5016 # SysV /etc/install, /usr/sbin/install
5017 # SunOS /usr/etc/install
5018 # IRIX /sbin/install
5019 # AIX /bin/install
5020 # AmigaOS /C/install, which installs bootblocks on floppy discs
5021 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5022 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5023 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5024 # OS/2's system install, which has a completely different semantic
5025 # ./install, which can be erroneously created by make from ./install.sh.
5026 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5027 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5028 if test -z "$INSTALL"; then
5029 if test "${ac_cv_path_install+set}" = set; then
5030 echo $ECHO_N "(cached) $ECHO_C" >&6
5031 else
5032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5033 for as_dir in $PATH
5035 IFS=$as_save_IFS
5036 test -z "$as_dir" && as_dir=.
5037 # Account for people who put trailing slashes in PATH elements.
5038 case $as_dir/ in
5039 ./ | .// | /cC/* | \
5040 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5041 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5042 /usr/ucb/* ) ;;
5044 # OSF1 and SCO ODT 3.0 have their own names for install.
5045 # Don't use installbsd from OSF since it installs stuff as root
5046 # by default.
5047 for ac_prog in ginstall scoinst install; do
5048 for ac_exec_ext in '' $ac_executable_extensions; do
5049 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5050 if test $ac_prog = install &&
5051 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5052 # AIX install. It has an incompatible calling convention.
5054 elif test $ac_prog = install &&
5055 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5056 # program-specific install script used by HP pwplus--don't use.
5058 else
5059 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5060 break 3
5063 done
5064 done
5066 esac
5067 done
5068 IFS=$as_save_IFS
5072 if test "${ac_cv_path_install+set}" = set; then
5073 INSTALL=$ac_cv_path_install
5074 else
5075 # As a last resort, use the slow shell script. Don't cache a
5076 # value for INSTALL within a source directory, because that will
5077 # break other packages using the cache if that directory is
5078 # removed, or if the value is a relative name.
5079 INSTALL=$ac_install_sh
5082 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5083 echo "${ECHO_T}$INSTALL" >&6; }
5085 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5086 # It thinks the first close brace ends the variable substitution.
5087 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5089 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5091 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5093 if test "x$RANLIB" = x; then
5094 if test -n "$ac_tool_prefix"; then
5095 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5096 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5097 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5099 if test "${ac_cv_prog_RANLIB+set}" = set; then
5100 echo $ECHO_N "(cached) $ECHO_C" >&6
5101 else
5102 if test -n "$RANLIB"; then
5103 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5104 else
5105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5106 for as_dir in $PATH
5108 IFS=$as_save_IFS
5109 test -z "$as_dir" && as_dir=.
5110 for ac_exec_ext in '' $ac_executable_extensions; do
5111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5112 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5114 break 2
5116 done
5117 done
5118 IFS=$as_save_IFS
5122 RANLIB=$ac_cv_prog_RANLIB
5123 if test -n "$RANLIB"; then
5124 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5125 echo "${ECHO_T}$RANLIB" >&6; }
5126 else
5127 { echo "$as_me:$LINENO: result: no" >&5
5128 echo "${ECHO_T}no" >&6; }
5133 if test -z "$ac_cv_prog_RANLIB"; then
5134 ac_ct_RANLIB=$RANLIB
5135 # Extract the first word of "ranlib", so it can be a program name with args.
5136 set dummy ranlib; ac_word=$2
5137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5139 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5140 echo $ECHO_N "(cached) $ECHO_C" >&6
5141 else
5142 if test -n "$ac_ct_RANLIB"; then
5143 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5144 else
5145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5146 for as_dir in $PATH
5148 IFS=$as_save_IFS
5149 test -z "$as_dir" && as_dir=.
5150 for ac_exec_ext in '' $ac_executable_extensions; do
5151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5152 ac_cv_prog_ac_ct_RANLIB="ranlib"
5153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5154 break 2
5156 done
5157 done
5158 IFS=$as_save_IFS
5162 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5163 if test -n "$ac_ct_RANLIB"; then
5164 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5165 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5166 else
5167 { echo "$as_me:$LINENO: result: no" >&5
5168 echo "${ECHO_T}no" >&6; }
5171 if test "x$ac_ct_RANLIB" = x; then
5172 RANLIB=":"
5173 else
5174 case $cross_compiling:$ac_tool_warned in
5175 yes:)
5176 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5177 whose name does not start with the host triplet. If you think this
5178 configuration is useful to you, please write to autoconf@gnu.org." >&5
5179 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5180 whose name does not start with the host triplet. If you think this
5181 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5182 ac_tool_warned=yes ;;
5183 esac
5184 RANLIB=$ac_ct_RANLIB
5186 else
5187 RANLIB="$ac_cv_prog_RANLIB"
5191 # Extract the first word of "install-info", so it can be a program name with args.
5192 set dummy install-info; ac_word=$2
5193 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5195 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5196 echo $ECHO_N "(cached) $ECHO_C" >&6
5197 else
5198 case $INSTALL_INFO in
5199 [\\/]* | ?:[\\/]*)
5200 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204 for as_dir in $PATH
5206 IFS=$as_save_IFS
5207 test -z "$as_dir" && as_dir=.
5208 for ac_exec_ext in '' $ac_executable_extensions; do
5209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5210 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5212 break 2
5214 done
5215 done
5216 IFS=$as_save_IFS
5219 esac
5221 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5222 if test -n "$INSTALL_INFO"; then
5223 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5224 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5225 else
5226 { echo "$as_me:$LINENO: result: no" >&5
5227 echo "${ECHO_T}no" >&6; }
5231 # Extract the first word of "install-info", so it can be a program name with args.
5232 set dummy install-info; ac_word=$2
5233 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5235 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5236 echo $ECHO_N "(cached) $ECHO_C" >&6
5237 else
5238 case $INSTALL_INFO in
5239 [\\/]* | ?:[\\/]*)
5240 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5244 for as_dir in /usr/sbin
5246 IFS=$as_save_IFS
5247 test -z "$as_dir" && as_dir=.
5248 for ac_exec_ext in '' $ac_executable_extensions; do
5249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5250 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5252 break 2
5254 done
5255 done
5256 IFS=$as_save_IFS
5259 esac
5261 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5262 if test -n "$INSTALL_INFO"; then
5263 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5264 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5265 else
5266 { echo "$as_me:$LINENO: result: no" >&5
5267 echo "${ECHO_T}no" >&6; }
5271 # Extract the first word of "install-info", so it can be a program name with args.
5272 set dummy install-info; ac_word=$2
5273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5275 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5276 echo $ECHO_N "(cached) $ECHO_C" >&6
5277 else
5278 case $INSTALL_INFO in
5279 [\\/]* | ?:[\\/]*)
5280 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5284 for as_dir in /sbin
5286 IFS=$as_save_IFS
5287 test -z "$as_dir" && as_dir=.
5288 for ac_exec_ext in '' $ac_executable_extensions; do
5289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5290 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5292 break 2
5294 done
5295 done
5296 IFS=$as_save_IFS
5298 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5300 esac
5302 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5303 if test -n "$INSTALL_INFO"; then
5304 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5305 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5306 else
5307 { echo "$as_me:$LINENO: result: no" >&5
5308 echo "${ECHO_T}no" >&6; }
5312 # Extract the first word of "gzip", so it can be a program name with args.
5313 set dummy gzip; ac_word=$2
5314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5316 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5317 echo $ECHO_N "(cached) $ECHO_C" >&6
5318 else
5319 case $GZIP_PROG in
5320 [\\/]* | ?:[\\/]*)
5321 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5325 for as_dir in $PATH
5327 IFS=$as_save_IFS
5328 test -z "$as_dir" && as_dir=.
5329 for ac_exec_ext in '' $ac_executable_extensions; do
5330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5331 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5333 break 2
5335 done
5336 done
5337 IFS=$as_save_IFS
5340 esac
5342 GZIP_PROG=$ac_cv_path_GZIP_PROG
5343 if test -n "$GZIP_PROG"; then
5344 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5345 echo "${ECHO_T}$GZIP_PROG" >&6; }
5346 else
5347 { echo "$as_me:$LINENO: result: no" >&5
5348 echo "${ECHO_T}no" >&6; }
5354 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5355 then
5356 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5359 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5360 then
5361 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5365 late_LDFLAGS=$LDFLAGS
5366 if test "$GCC" = yes; then
5367 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5368 else
5369 LDFLAGS="$LDFLAGS -znocombreloc"
5372 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5373 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5374 cat >conftest.$ac_ext <<_ACEOF
5375 main(){return 0;}
5376 _ACEOF
5377 rm -f conftest.$ac_objext conftest$ac_exeext
5378 if { (ac_try="$ac_link"
5379 case "(($ac_try" in
5380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5381 *) ac_try_echo=$ac_try;;
5382 esac
5383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5384 (eval "$ac_link") 2>conftest.er1
5385 ac_status=$?
5386 grep -v '^ *+' conftest.er1 >conftest.err
5387 rm -f conftest.er1
5388 cat conftest.err >&5
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); } && {
5391 test -z "$ac_c_werror_flag" ||
5392 test ! -s conftest.err
5393 } && test -s conftest$ac_exeext &&
5394 $as_test_x conftest$ac_exeext; then
5395 { echo "$as_me:$LINENO: result: yes" >&5
5396 echo "${ECHO_T}yes" >&6; }
5397 else
5398 echo "$as_me: failed program was:" >&5
5399 sed 's/^/| /' conftest.$ac_ext >&5
5401 LDFLAGS=$late_LDFLAGS
5402 { echo "$as_me:$LINENO: result: no" >&5
5403 echo "${ECHO_T}no" >&6; }
5406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5407 conftest$ac_exeext conftest.$ac_ext
5409 #### Extract some information from the operating system and machine files.
5411 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5412 - which libraries the lib-src programs will want, and
5413 - whether the GNU malloc routines are usable..." >&5
5414 echo "$as_me: checking the machine- and system-dependent files to find out
5415 - which libraries the lib-src programs will want, and
5416 - whether the GNU malloc routines are usable..." >&6;}
5418 ### First figure out CFLAGS (which we use for running the compiler here)
5419 ### and REAL_CFLAGS (which we use for real compilation).
5420 ### The two are the same except on a few systems, where they are made
5421 ### different to work around various lossages. For example,
5422 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5423 ### as implying static linking.
5425 ### If the CFLAGS env var is specified, we use that value
5426 ### instead of the default.
5428 ### It's not important that this name contain the PID; you can't run
5429 ### two configures in the same directory and have anything work
5430 ### anyway.
5431 tempcname="conftest.c"
5433 echo '
5434 #include "'${srcdir}'/src/'${opsysfile}'"
5435 #include "'${srcdir}'/src/'${machfile}'"
5436 #ifndef LIBS_MACHINE
5437 #define LIBS_MACHINE
5438 #endif
5439 #ifndef LIBS_SYSTEM
5440 #define LIBS_SYSTEM
5441 #endif
5442 #ifndef C_SWITCH_SYSTEM
5443 #define C_SWITCH_SYSTEM
5444 #endif
5445 #ifndef C_SWITCH_MACHINE
5446 #define C_SWITCH_MACHINE
5447 #endif
5448 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5449 configure___ c_switch_system=C_SWITCH_SYSTEM
5450 configure___ c_switch_machine=C_SWITCH_MACHINE
5452 #ifndef LIB_X11_LIB
5453 #define LIB_X11_LIB -lX11
5454 #endif
5456 #ifndef LIBX11_MACHINE
5457 #define LIBX11_MACHINE
5458 #endif
5460 #ifndef LIBX11_SYSTEM
5461 #define LIBX11_SYSTEM
5462 #endif
5463 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5465 #ifdef UNEXEC
5466 configure___ unexec=UNEXEC
5467 #else
5468 configure___ unexec=unexec.o
5469 #endif
5471 #ifdef SYSTEM_MALLOC
5472 configure___ system_malloc=yes
5473 #else
5474 configure___ system_malloc=no
5475 #endif
5477 #ifdef USE_MMAP_FOR_BUFFERS
5478 configure___ use_mmap_for_buffers=yes
5479 #else
5480 configure___ use_mmap_for_buffers=no
5481 #endif
5483 #ifndef C_DEBUG_SWITCH
5484 #define C_DEBUG_SWITCH -g
5485 #endif
5487 #ifndef C_OPTIMIZE_SWITCH
5488 #ifdef __GNUC__
5489 #define C_OPTIMIZE_SWITCH -O2
5490 #else
5491 #define C_OPTIMIZE_SWITCH -O
5492 #endif
5493 #endif
5495 #ifndef C_WARNINGS_SWITCH
5496 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5497 #endif
5499 #ifndef LD_SWITCH_MACHINE
5500 #define LD_SWITCH_MACHINE
5501 #endif
5503 #ifndef LD_SWITCH_SYSTEM
5504 #define LD_SWITCH_SYSTEM
5505 #endif
5507 #ifndef LD_SWITCH_X_SITE_AUX
5508 #define LD_SWITCH_X_SITE_AUX
5509 #endif
5511 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5512 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5514 #ifdef THIS_IS_CONFIGURE
5516 /* Get the CFLAGS for tests in configure. */
5517 #ifdef __GNUC__
5518 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5519 #else
5520 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5521 #endif
5523 #else /* not THIS_IS_CONFIGURE */
5525 /* Get the CFLAGS for real compilation. */
5526 #ifdef __GNUC__
5527 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5528 #else
5529 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5530 #endif
5532 #endif /* not THIS_IS_CONFIGURE */
5533 ' > ${tempcname}
5535 # The value of CPP is a quoted variable reference, so we need to do this
5536 # to get its actual value...
5537 CPP=`eval "echo $CPP"`
5538 eval `${CPP} -Isrc ${tempcname} \
5539 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5540 if test "x$SPECIFIED_CFLAGS" = x; then
5541 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5542 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5543 else
5544 REAL_CFLAGS="$CFLAGS"
5546 rm ${tempcname}
5548 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5550 ### Make sure subsequent tests use flags consistent with the build flags.
5552 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5553 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5554 else
5555 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5560 # Check whether --enable-largefile was given.
5561 if test "${enable_largefile+set}" = set; then
5562 enableval=$enable_largefile;
5565 if test "$enable_largefile" != no; then
5567 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5568 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5569 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5570 echo $ECHO_N "(cached) $ECHO_C" >&6
5571 else
5572 ac_cv_sys_largefile_CC=no
5573 if test "$GCC" != yes; then
5574 ac_save_CC=$CC
5575 while :; do
5576 # IRIX 6.2 and later do not support large files by default,
5577 # so use the C compiler's -n32 option if that helps.
5578 cat >conftest.$ac_ext <<_ACEOF
5579 /* confdefs.h. */
5580 _ACEOF
5581 cat confdefs.h >>conftest.$ac_ext
5582 cat >>conftest.$ac_ext <<_ACEOF
5583 /* end confdefs.h. */
5584 #include <sys/types.h>
5585 /* Check that off_t can represent 2**63 - 1 correctly.
5586 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5587 since some C++ compilers masquerading as C compilers
5588 incorrectly reject 9223372036854775807. */
5589 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5590 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5591 && LARGE_OFF_T % 2147483647 == 1)
5592 ? 1 : -1];
5594 main ()
5598 return 0;
5600 _ACEOF
5601 rm -f conftest.$ac_objext
5602 if { (ac_try="$ac_compile"
5603 case "(($ac_try" in
5604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5605 *) ac_try_echo=$ac_try;;
5606 esac
5607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5608 (eval "$ac_compile") 2>conftest.er1
5609 ac_status=$?
5610 grep -v '^ *+' conftest.er1 >conftest.err
5611 rm -f conftest.er1
5612 cat conftest.err >&5
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); } && {
5615 test -z "$ac_c_werror_flag" ||
5616 test ! -s conftest.err
5617 } && test -s conftest.$ac_objext; then
5618 break
5619 else
5620 echo "$as_me: failed program was:" >&5
5621 sed 's/^/| /' conftest.$ac_ext >&5
5626 rm -f core conftest.err conftest.$ac_objext
5627 CC="$CC -n32"
5628 rm -f conftest.$ac_objext
5629 if { (ac_try="$ac_compile"
5630 case "(($ac_try" in
5631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5632 *) ac_try_echo=$ac_try;;
5633 esac
5634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5635 (eval "$ac_compile") 2>conftest.er1
5636 ac_status=$?
5637 grep -v '^ *+' conftest.er1 >conftest.err
5638 rm -f conftest.er1
5639 cat conftest.err >&5
5640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641 (exit $ac_status); } && {
5642 test -z "$ac_c_werror_flag" ||
5643 test ! -s conftest.err
5644 } && test -s conftest.$ac_objext; then
5645 ac_cv_sys_largefile_CC=' -n32'; break
5646 else
5647 echo "$as_me: failed program was:" >&5
5648 sed 's/^/| /' conftest.$ac_ext >&5
5653 rm -f core conftest.err conftest.$ac_objext
5654 break
5655 done
5656 CC=$ac_save_CC
5657 rm -f conftest.$ac_ext
5660 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5661 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5662 if test "$ac_cv_sys_largefile_CC" != no; then
5663 CC=$CC$ac_cv_sys_largefile_CC
5666 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5667 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5668 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5669 echo $ECHO_N "(cached) $ECHO_C" >&6
5670 else
5671 while :; do
5672 cat >conftest.$ac_ext <<_ACEOF
5673 /* confdefs.h. */
5674 _ACEOF
5675 cat confdefs.h >>conftest.$ac_ext
5676 cat >>conftest.$ac_ext <<_ACEOF
5677 /* end confdefs.h. */
5678 #include <sys/types.h>
5679 /* Check that off_t can represent 2**63 - 1 correctly.
5680 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5681 since some C++ compilers masquerading as C compilers
5682 incorrectly reject 9223372036854775807. */
5683 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5684 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5685 && LARGE_OFF_T % 2147483647 == 1)
5686 ? 1 : -1];
5688 main ()
5692 return 0;
5694 _ACEOF
5695 rm -f conftest.$ac_objext
5696 if { (ac_try="$ac_compile"
5697 case "(($ac_try" in
5698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5699 *) ac_try_echo=$ac_try;;
5700 esac
5701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5702 (eval "$ac_compile") 2>conftest.er1
5703 ac_status=$?
5704 grep -v '^ *+' conftest.er1 >conftest.err
5705 rm -f conftest.er1
5706 cat conftest.err >&5
5707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708 (exit $ac_status); } && {
5709 test -z "$ac_c_werror_flag" ||
5710 test ! -s conftest.err
5711 } && test -s conftest.$ac_objext; then
5712 ac_cv_sys_file_offset_bits=no; break
5713 else
5714 echo "$as_me: failed program was:" >&5
5715 sed 's/^/| /' conftest.$ac_ext >&5
5720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5721 cat >conftest.$ac_ext <<_ACEOF
5722 /* confdefs.h. */
5723 _ACEOF
5724 cat confdefs.h >>conftest.$ac_ext
5725 cat >>conftest.$ac_ext <<_ACEOF
5726 /* end confdefs.h. */
5727 #define _FILE_OFFSET_BITS 64
5728 #include <sys/types.h>
5729 /* Check that off_t can represent 2**63 - 1 correctly.
5730 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5731 since some C++ compilers masquerading as C compilers
5732 incorrectly reject 9223372036854775807. */
5733 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5734 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5735 && LARGE_OFF_T % 2147483647 == 1)
5736 ? 1 : -1];
5738 main ()
5742 return 0;
5744 _ACEOF
5745 rm -f conftest.$ac_objext
5746 if { (ac_try="$ac_compile"
5747 case "(($ac_try" in
5748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5749 *) ac_try_echo=$ac_try;;
5750 esac
5751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5752 (eval "$ac_compile") 2>conftest.er1
5753 ac_status=$?
5754 grep -v '^ *+' conftest.er1 >conftest.err
5755 rm -f conftest.er1
5756 cat conftest.err >&5
5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); } && {
5759 test -z "$ac_c_werror_flag" ||
5760 test ! -s conftest.err
5761 } && test -s conftest.$ac_objext; then
5762 ac_cv_sys_file_offset_bits=64; break
5763 else
5764 echo "$as_me: failed program was:" >&5
5765 sed 's/^/| /' conftest.$ac_ext >&5
5770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5771 ac_cv_sys_file_offset_bits=unknown
5772 break
5773 done
5775 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5776 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5777 case $ac_cv_sys_file_offset_bits in #(
5778 no | unknown) ;;
5780 cat >>confdefs.h <<_ACEOF
5781 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5782 _ACEOF
5784 esac
5785 rm -f conftest*
5786 if test $ac_cv_sys_file_offset_bits = unknown; then
5787 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5788 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5789 if test "${ac_cv_sys_large_files+set}" = set; then
5790 echo $ECHO_N "(cached) $ECHO_C" >&6
5791 else
5792 while :; do
5793 cat >conftest.$ac_ext <<_ACEOF
5794 /* confdefs.h. */
5795 _ACEOF
5796 cat confdefs.h >>conftest.$ac_ext
5797 cat >>conftest.$ac_ext <<_ACEOF
5798 /* end confdefs.h. */
5799 #include <sys/types.h>
5800 /* Check that off_t can represent 2**63 - 1 correctly.
5801 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5802 since some C++ compilers masquerading as C compilers
5803 incorrectly reject 9223372036854775807. */
5804 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5805 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5806 && LARGE_OFF_T % 2147483647 == 1)
5807 ? 1 : -1];
5809 main ()
5813 return 0;
5815 _ACEOF
5816 rm -f conftest.$ac_objext
5817 if { (ac_try="$ac_compile"
5818 case "(($ac_try" in
5819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5820 *) ac_try_echo=$ac_try;;
5821 esac
5822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5823 (eval "$ac_compile") 2>conftest.er1
5824 ac_status=$?
5825 grep -v '^ *+' conftest.er1 >conftest.err
5826 rm -f conftest.er1
5827 cat conftest.err >&5
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); } && {
5830 test -z "$ac_c_werror_flag" ||
5831 test ! -s conftest.err
5832 } && test -s conftest.$ac_objext; then
5833 ac_cv_sys_large_files=no; break
5834 else
5835 echo "$as_me: failed program was:" >&5
5836 sed 's/^/| /' conftest.$ac_ext >&5
5841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5842 cat >conftest.$ac_ext <<_ACEOF
5843 /* confdefs.h. */
5844 _ACEOF
5845 cat confdefs.h >>conftest.$ac_ext
5846 cat >>conftest.$ac_ext <<_ACEOF
5847 /* end confdefs.h. */
5848 #define _LARGE_FILES 1
5849 #include <sys/types.h>
5850 /* Check that off_t can represent 2**63 - 1 correctly.
5851 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5852 since some C++ compilers masquerading as C compilers
5853 incorrectly reject 9223372036854775807. */
5854 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5855 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5856 && LARGE_OFF_T % 2147483647 == 1)
5857 ? 1 : -1];
5859 main ()
5863 return 0;
5865 _ACEOF
5866 rm -f conftest.$ac_objext
5867 if { (ac_try="$ac_compile"
5868 case "(($ac_try" in
5869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5870 *) ac_try_echo=$ac_try;;
5871 esac
5872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5873 (eval "$ac_compile") 2>conftest.er1
5874 ac_status=$?
5875 grep -v '^ *+' conftest.er1 >conftest.err
5876 rm -f conftest.er1
5877 cat conftest.err >&5
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); } && {
5880 test -z "$ac_c_werror_flag" ||
5881 test ! -s conftest.err
5882 } && test -s conftest.$ac_objext; then
5883 ac_cv_sys_large_files=1; break
5884 else
5885 echo "$as_me: failed program was:" >&5
5886 sed 's/^/| /' conftest.$ac_ext >&5
5891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5892 ac_cv_sys_large_files=unknown
5893 break
5894 done
5896 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5897 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5898 case $ac_cv_sys_large_files in #(
5899 no | unknown) ;;
5901 cat >>confdefs.h <<_ACEOF
5902 #define _LARGE_FILES $ac_cv_sys_large_files
5903 _ACEOF
5905 esac
5906 rm -f conftest*
5912 ### The standard library on x86-64 GNU/Linux distributions can
5913 ### be located in either /usr/lib64 or /usr/lib.
5914 case "${canonical}" in
5915 x86_64-*-linux-gnu* )
5916 if test -d /usr/lib64; then
5918 cat >>confdefs.h <<\_ACEOF
5919 #define HAVE_X86_64_LIB64_DIR 1
5920 _ACEOF
5923 esac
5928 if test "${with_sound}" != "no"; then
5929 # Sound support for GNU/Linux and the free BSDs.
5930 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5931 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5932 if test "${ac_cv_header_stdc+set}" = set; then
5933 echo $ECHO_N "(cached) $ECHO_C" >&6
5934 else
5935 cat >conftest.$ac_ext <<_ACEOF
5936 /* confdefs.h. */
5937 _ACEOF
5938 cat confdefs.h >>conftest.$ac_ext
5939 cat >>conftest.$ac_ext <<_ACEOF
5940 /* end confdefs.h. */
5941 #include <stdlib.h>
5942 #include <stdarg.h>
5943 #include <string.h>
5944 #include <float.h>
5947 main ()
5951 return 0;
5953 _ACEOF
5954 rm -f conftest.$ac_objext
5955 if { (ac_try="$ac_compile"
5956 case "(($ac_try" in
5957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5958 *) ac_try_echo=$ac_try;;
5959 esac
5960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5961 (eval "$ac_compile") 2>conftest.er1
5962 ac_status=$?
5963 grep -v '^ *+' conftest.er1 >conftest.err
5964 rm -f conftest.er1
5965 cat conftest.err >&5
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); } && {
5968 test -z "$ac_c_werror_flag" ||
5969 test ! -s conftest.err
5970 } && test -s conftest.$ac_objext; then
5971 ac_cv_header_stdc=yes
5972 else
5973 echo "$as_me: failed program was:" >&5
5974 sed 's/^/| /' conftest.$ac_ext >&5
5976 ac_cv_header_stdc=no
5979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5981 if test $ac_cv_header_stdc = yes; then
5982 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5983 cat >conftest.$ac_ext <<_ACEOF
5984 /* confdefs.h. */
5985 _ACEOF
5986 cat confdefs.h >>conftest.$ac_ext
5987 cat >>conftest.$ac_ext <<_ACEOF
5988 /* end confdefs.h. */
5989 #include <string.h>
5991 _ACEOF
5992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5993 $EGREP "memchr" >/dev/null 2>&1; then
5995 else
5996 ac_cv_header_stdc=no
5998 rm -f conftest*
6002 if test $ac_cv_header_stdc = yes; then
6003 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6004 cat >conftest.$ac_ext <<_ACEOF
6005 /* confdefs.h. */
6006 _ACEOF
6007 cat confdefs.h >>conftest.$ac_ext
6008 cat >>conftest.$ac_ext <<_ACEOF
6009 /* end confdefs.h. */
6010 #include <stdlib.h>
6012 _ACEOF
6013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6014 $EGREP "free" >/dev/null 2>&1; then
6016 else
6017 ac_cv_header_stdc=no
6019 rm -f conftest*
6023 if test $ac_cv_header_stdc = yes; then
6024 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6025 if test "$cross_compiling" = yes; then
6027 else
6028 cat >conftest.$ac_ext <<_ACEOF
6029 /* confdefs.h. */
6030 _ACEOF
6031 cat confdefs.h >>conftest.$ac_ext
6032 cat >>conftest.$ac_ext <<_ACEOF
6033 /* end confdefs.h. */
6034 #include <ctype.h>
6035 #include <stdlib.h>
6036 #if ((' ' & 0x0FF) == 0x020)
6037 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6038 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6039 #else
6040 # define ISLOWER(c) \
6041 (('a' <= (c) && (c) <= 'i') \
6042 || ('j' <= (c) && (c) <= 'r') \
6043 || ('s' <= (c) && (c) <= 'z'))
6044 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6045 #endif
6047 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6049 main ()
6051 int i;
6052 for (i = 0; i < 256; i++)
6053 if (XOR (islower (i), ISLOWER (i))
6054 || toupper (i) != TOUPPER (i))
6055 return 2;
6056 return 0;
6058 _ACEOF
6059 rm -f conftest$ac_exeext
6060 if { (ac_try="$ac_link"
6061 case "(($ac_try" in
6062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6063 *) ac_try_echo=$ac_try;;
6064 esac
6065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6066 (eval "$ac_link") 2>&5
6067 ac_status=$?
6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6070 { (case "(($ac_try" in
6071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6072 *) ac_try_echo=$ac_try;;
6073 esac
6074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6075 (eval "$ac_try") 2>&5
6076 ac_status=$?
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); }; }; then
6080 else
6081 echo "$as_me: program exited with status $ac_status" >&5
6082 echo "$as_me: failed program was:" >&5
6083 sed 's/^/| /' conftest.$ac_ext >&5
6085 ( exit $ac_status )
6086 ac_cv_header_stdc=no
6088 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6094 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6095 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6096 if test $ac_cv_header_stdc = yes; then
6098 cat >>confdefs.h <<\_ACEOF
6099 #define STDC_HEADERS 1
6100 _ACEOF
6104 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6114 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6115 inttypes.h stdint.h unistd.h
6117 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6118 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6119 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6121 echo $ECHO_N "(cached) $ECHO_C" >&6
6122 else
6123 cat >conftest.$ac_ext <<_ACEOF
6124 /* confdefs.h. */
6125 _ACEOF
6126 cat confdefs.h >>conftest.$ac_ext
6127 cat >>conftest.$ac_ext <<_ACEOF
6128 /* end confdefs.h. */
6129 $ac_includes_default
6131 #include <$ac_header>
6132 _ACEOF
6133 rm -f conftest.$ac_objext
6134 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
6141 ac_status=$?
6142 grep -v '^ *+' conftest.er1 >conftest.err
6143 rm -f conftest.er1
6144 cat conftest.err >&5
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); } && {
6147 test -z "$ac_c_werror_flag" ||
6148 test ! -s conftest.err
6149 } && test -s conftest.$ac_objext; then
6150 eval "$as_ac_Header=yes"
6151 else
6152 echo "$as_me: failed program was:" >&5
6153 sed 's/^/| /' conftest.$ac_ext >&5
6155 eval "$as_ac_Header=no"
6158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6160 ac_res=`eval echo '${'$as_ac_Header'}'`
6161 { echo "$as_me:$LINENO: result: $ac_res" >&5
6162 echo "${ECHO_T}$ac_res" >&6; }
6163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6164 cat >>confdefs.h <<_ACEOF
6165 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6166 _ACEOF
6170 done
6176 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6178 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6180 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6181 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6182 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6183 echo $ECHO_N "(cached) $ECHO_C" >&6
6185 ac_res=`eval echo '${'$as_ac_Header'}'`
6186 { echo "$as_me:$LINENO: result: $ac_res" >&5
6187 echo "${ECHO_T}$ac_res" >&6; }
6188 else
6189 # Is the header compilable?
6190 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6191 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6192 cat >conftest.$ac_ext <<_ACEOF
6193 /* confdefs.h. */
6194 _ACEOF
6195 cat confdefs.h >>conftest.$ac_ext
6196 cat >>conftest.$ac_ext <<_ACEOF
6197 /* end confdefs.h. */
6198 $ac_includes_default
6199 #include <$ac_header>
6200 _ACEOF
6201 rm -f conftest.$ac_objext
6202 if { (ac_try="$ac_compile"
6203 case "(($ac_try" in
6204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6205 *) ac_try_echo=$ac_try;;
6206 esac
6207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6208 (eval "$ac_compile") 2>conftest.er1
6209 ac_status=$?
6210 grep -v '^ *+' conftest.er1 >conftest.err
6211 rm -f conftest.er1
6212 cat conftest.err >&5
6213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214 (exit $ac_status); } && {
6215 test -z "$ac_c_werror_flag" ||
6216 test ! -s conftest.err
6217 } && test -s conftest.$ac_objext; then
6218 ac_header_compiler=yes
6219 else
6220 echo "$as_me: failed program was:" >&5
6221 sed 's/^/| /' conftest.$ac_ext >&5
6223 ac_header_compiler=no
6226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6227 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6228 echo "${ECHO_T}$ac_header_compiler" >&6; }
6230 # Is the header present?
6231 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6232 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6233 cat >conftest.$ac_ext <<_ACEOF
6234 /* confdefs.h. */
6235 _ACEOF
6236 cat confdefs.h >>conftest.$ac_ext
6237 cat >>conftest.$ac_ext <<_ACEOF
6238 /* end confdefs.h. */
6239 #include <$ac_header>
6240 _ACEOF
6241 if { (ac_try="$ac_cpp conftest.$ac_ext"
6242 case "(($ac_try" in
6243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6244 *) ac_try_echo=$ac_try;;
6245 esac
6246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6247 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6248 ac_status=$?
6249 grep -v '^ *+' conftest.er1 >conftest.err
6250 rm -f conftest.er1
6251 cat conftest.err >&5
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); } >/dev/null && {
6254 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6255 test ! -s conftest.err
6256 }; then
6257 ac_header_preproc=yes
6258 else
6259 echo "$as_me: failed program was:" >&5
6260 sed 's/^/| /' conftest.$ac_ext >&5
6262 ac_header_preproc=no
6265 rm -f conftest.err conftest.$ac_ext
6266 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6267 echo "${ECHO_T}$ac_header_preproc" >&6; }
6269 # So? What about this header?
6270 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6271 yes:no: )
6272 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6273 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6275 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6276 ac_header_preproc=yes
6278 no:yes:* )
6279 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6280 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6281 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6282 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6283 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6284 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6285 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6286 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6287 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6288 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6289 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6290 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6293 esac
6294 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6297 echo $ECHO_N "(cached) $ECHO_C" >&6
6298 else
6299 eval "$as_ac_Header=\$ac_header_preproc"
6301 ac_res=`eval echo '${'$as_ac_Header'}'`
6302 { echo "$as_me:$LINENO: result: $ac_res" >&5
6303 echo "${ECHO_T}$ac_res" >&6; }
6306 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6307 cat >>confdefs.h <<_ACEOF
6308 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6309 _ACEOF
6313 done
6315 # Emulation library used on NetBSD.
6316 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6317 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6318 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6319 echo $ECHO_N "(cached) $ECHO_C" >&6
6320 else
6321 ac_check_lib_save_LIBS=$LIBS
6322 LIBS="-lossaudio $LIBS"
6323 cat >conftest.$ac_ext <<_ACEOF
6324 /* confdefs.h. */
6325 _ACEOF
6326 cat confdefs.h >>conftest.$ac_ext
6327 cat >>conftest.$ac_ext <<_ACEOF
6328 /* end confdefs.h. */
6330 /* Override any GCC internal prototype to avoid an error.
6331 Use char because int might match the return type of a GCC
6332 builtin and then its argument prototype would still apply. */
6333 #ifdef __cplusplus
6334 extern "C"
6335 #endif
6336 char _oss_ioctl ();
6338 main ()
6340 return _oss_ioctl ();
6342 return 0;
6344 _ACEOF
6345 rm -f conftest.$ac_objext conftest$ac_exeext
6346 if { (ac_try="$ac_link"
6347 case "(($ac_try" in
6348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6349 *) ac_try_echo=$ac_try;;
6350 esac
6351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6352 (eval "$ac_link") 2>conftest.er1
6353 ac_status=$?
6354 grep -v '^ *+' conftest.er1 >conftest.err
6355 rm -f conftest.er1
6356 cat conftest.err >&5
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); } && {
6359 test -z "$ac_c_werror_flag" ||
6360 test ! -s conftest.err
6361 } && test -s conftest$ac_exeext &&
6362 $as_test_x conftest$ac_exeext; then
6363 ac_cv_lib_ossaudio__oss_ioctl=yes
6364 else
6365 echo "$as_me: failed program was:" >&5
6366 sed 's/^/| /' conftest.$ac_ext >&5
6368 ac_cv_lib_ossaudio__oss_ioctl=no
6371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6372 conftest$ac_exeext conftest.$ac_ext
6373 LIBS=$ac_check_lib_save_LIBS
6375 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6376 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6377 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6378 LIBSOUND=-lossaudio
6379 else
6380 LIBSOUND=
6385 ALSA_REQUIRED=1.0.0
6386 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6387 if test "X${with_pkg_config_prog}" != X; then
6388 PKG_CONFIG="${with_pkg_config_prog}"
6391 succeeded=no
6393 if test -z "$PKG_CONFIG"; then
6394 # Extract the first word of "pkg-config", so it can be a program name with args.
6395 set dummy pkg-config; ac_word=$2
6396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6398 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6399 echo $ECHO_N "(cached) $ECHO_C" >&6
6400 else
6401 case $PKG_CONFIG in
6402 [\\/]* | ?:[\\/]*)
6403 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6407 for as_dir in $PATH
6409 IFS=$as_save_IFS
6410 test -z "$as_dir" && as_dir=.
6411 for ac_exec_ext in '' $ac_executable_extensions; do
6412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6413 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6415 break 2
6417 done
6418 done
6419 IFS=$as_save_IFS
6421 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6423 esac
6425 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6426 if test -n "$PKG_CONFIG"; then
6427 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6428 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6429 else
6430 { echo "$as_me:$LINENO: result: no" >&5
6431 echo "${ECHO_T}no" >&6; }
6437 if test "$PKG_CONFIG" = "no" ; then
6438 HAVE_ALSA=no
6439 else
6440 PKG_CONFIG_MIN_VERSION=0.9.0
6441 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6442 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6443 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6445 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6446 { echo "$as_me:$LINENO: result: yes" >&5
6447 echo "${ECHO_T}yes" >&6; }
6448 succeeded=yes
6450 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6451 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6452 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6453 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6454 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6456 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6457 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6458 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6459 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6460 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6461 else
6462 { echo "$as_me:$LINENO: result: no" >&5
6463 echo "${ECHO_T}no" >&6; }
6464 ALSA_CFLAGS=""
6465 ALSA_LIBS=""
6466 ## If we have a custom action on failure, don't print errors, but
6467 ## do set a variable so people can do so.
6468 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6474 else
6475 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6476 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6480 if test $succeeded = yes; then
6481 HAVE_ALSA=yes
6482 else
6483 HAVE_ALSA=no
6486 if test $HAVE_ALSA = yes; then
6487 SAVE_CFLAGS="$CFLAGS"
6488 SAVE_LDFLAGS="$LDFLAGS"
6489 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6490 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6491 cat >conftest.$ac_ext <<_ACEOF
6492 /* confdefs.h. */
6493 _ACEOF
6494 cat confdefs.h >>conftest.$ac_ext
6495 cat >>conftest.$ac_ext <<_ACEOF
6496 /* end confdefs.h. */
6497 #include <asoundlib.h>
6499 main ()
6501 snd_lib_error_set_handler (0);
6503 return 0;
6505 _ACEOF
6506 rm -f conftest.$ac_objext
6507 if { (ac_try="$ac_compile"
6508 case "(($ac_try" in
6509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6510 *) ac_try_echo=$ac_try;;
6511 esac
6512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6513 (eval "$ac_compile") 2>conftest.er1
6514 ac_status=$?
6515 grep -v '^ *+' conftest.er1 >conftest.err
6516 rm -f conftest.er1
6517 cat conftest.err >&5
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); } && {
6520 test -z "$ac_c_werror_flag" ||
6521 test ! -s conftest.err
6522 } && test -s conftest.$ac_objext; then
6523 emacs_alsa_normal=yes
6524 else
6525 echo "$as_me: failed program was:" >&5
6526 sed 's/^/| /' conftest.$ac_ext >&5
6528 emacs_alsa_normal=no
6531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6532 if test "$emacs_alsa_normal" != yes; then
6533 cat >conftest.$ac_ext <<_ACEOF
6534 /* confdefs.h. */
6535 _ACEOF
6536 cat confdefs.h >>conftest.$ac_ext
6537 cat >>conftest.$ac_ext <<_ACEOF
6538 /* end confdefs.h. */
6539 #include <alsa/asoundlib.h>
6541 main ()
6543 snd_lib_error_set_handler (0);
6545 return 0;
6547 _ACEOF
6548 rm -f conftest.$ac_objext
6549 if { (ac_try="$ac_compile"
6550 case "(($ac_try" in
6551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6552 *) ac_try_echo=$ac_try;;
6553 esac
6554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6555 (eval "$ac_compile") 2>conftest.er1
6556 ac_status=$?
6557 grep -v '^ *+' conftest.er1 >conftest.err
6558 rm -f conftest.er1
6559 cat conftest.err >&5
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); } && {
6562 test -z "$ac_c_werror_flag" ||
6563 test ! -s conftest.err
6564 } && test -s conftest.$ac_objext; then
6565 emacs_alsa_subdir=yes
6566 else
6567 echo "$as_me: failed program was:" >&5
6568 sed 's/^/| /' conftest.$ac_ext >&5
6570 emacs_alsa_subdir=no
6573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6574 if test "$emacs_alsa_subdir" != yes; then
6575 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6576 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6577 { (exit 1); exit 1; }; }
6579 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6582 CFLAGS="$SAVE_CFLAGS"
6583 LDFLAGS="$SAVE_LDFLAGS"
6584 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6585 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6587 cat >>confdefs.h <<\_ACEOF
6588 #define HAVE_ALSA 1
6589 _ACEOF
6620 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6621 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6622 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6623 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6624 sys/utsname.h pwd.h
6626 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6627 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6628 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6629 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6630 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6631 echo $ECHO_N "(cached) $ECHO_C" >&6
6633 ac_res=`eval echo '${'$as_ac_Header'}'`
6634 { echo "$as_me:$LINENO: result: $ac_res" >&5
6635 echo "${ECHO_T}$ac_res" >&6; }
6636 else
6637 # Is the header compilable?
6638 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6639 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6640 cat >conftest.$ac_ext <<_ACEOF
6641 /* confdefs.h. */
6642 _ACEOF
6643 cat confdefs.h >>conftest.$ac_ext
6644 cat >>conftest.$ac_ext <<_ACEOF
6645 /* end confdefs.h. */
6646 $ac_includes_default
6647 #include <$ac_header>
6648 _ACEOF
6649 rm -f conftest.$ac_objext
6650 if { (ac_try="$ac_compile"
6651 case "(($ac_try" in
6652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6653 *) ac_try_echo=$ac_try;;
6654 esac
6655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6656 (eval "$ac_compile") 2>conftest.er1
6657 ac_status=$?
6658 grep -v '^ *+' conftest.er1 >conftest.err
6659 rm -f conftest.er1
6660 cat conftest.err >&5
6661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662 (exit $ac_status); } && {
6663 test -z "$ac_c_werror_flag" ||
6664 test ! -s conftest.err
6665 } && test -s conftest.$ac_objext; then
6666 ac_header_compiler=yes
6667 else
6668 echo "$as_me: failed program was:" >&5
6669 sed 's/^/| /' conftest.$ac_ext >&5
6671 ac_header_compiler=no
6674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6675 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6676 echo "${ECHO_T}$ac_header_compiler" >&6; }
6678 # Is the header present?
6679 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6680 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6681 cat >conftest.$ac_ext <<_ACEOF
6682 /* confdefs.h. */
6683 _ACEOF
6684 cat confdefs.h >>conftest.$ac_ext
6685 cat >>conftest.$ac_ext <<_ACEOF
6686 /* end confdefs.h. */
6687 #include <$ac_header>
6688 _ACEOF
6689 if { (ac_try="$ac_cpp conftest.$ac_ext"
6690 case "(($ac_try" in
6691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6692 *) ac_try_echo=$ac_try;;
6693 esac
6694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6695 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6696 ac_status=$?
6697 grep -v '^ *+' conftest.er1 >conftest.err
6698 rm -f conftest.er1
6699 cat conftest.err >&5
6700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701 (exit $ac_status); } >/dev/null && {
6702 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6703 test ! -s conftest.err
6704 }; then
6705 ac_header_preproc=yes
6706 else
6707 echo "$as_me: failed program was:" >&5
6708 sed 's/^/| /' conftest.$ac_ext >&5
6710 ac_header_preproc=no
6713 rm -f conftest.err conftest.$ac_ext
6714 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6715 echo "${ECHO_T}$ac_header_preproc" >&6; }
6717 # So? What about this header?
6718 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6719 yes:no: )
6720 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6721 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6722 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6723 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6724 ac_header_preproc=yes
6726 no:yes:* )
6727 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6728 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6729 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6730 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6731 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6732 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6733 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6734 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6736 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6737 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6738 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6741 esac
6742 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6744 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6745 echo $ECHO_N "(cached) $ECHO_C" >&6
6746 else
6747 eval "$as_ac_Header=\$ac_header_preproc"
6749 ac_res=`eval echo '${'$as_ac_Header'}'`
6750 { echo "$as_me:$LINENO: result: $ac_res" >&5
6751 echo "${ECHO_T}$ac_res" >&6; }
6754 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6755 cat >>confdefs.h <<_ACEOF
6756 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6757 _ACEOF
6761 done
6764 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6765 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6766 cat >conftest.$ac_ext <<_ACEOF
6767 /* confdefs.h. */
6768 _ACEOF
6769 cat confdefs.h >>conftest.$ac_ext
6770 cat >>conftest.$ac_ext <<_ACEOF
6771 /* end confdefs.h. */
6772 #include <sys/personality.h>
6774 main ()
6776 personality (PER_LINUX32)
6778 return 0;
6780 _ACEOF
6781 rm -f conftest.$ac_objext
6782 if { (ac_try="$ac_compile"
6783 case "(($ac_try" in
6784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6785 *) ac_try_echo=$ac_try;;
6786 esac
6787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6788 (eval "$ac_compile") 2>conftest.er1
6789 ac_status=$?
6790 grep -v '^ *+' conftest.er1 >conftest.err
6791 rm -f conftest.er1
6792 cat conftest.err >&5
6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); } && {
6795 test -z "$ac_c_werror_flag" ||
6796 test ! -s conftest.err
6797 } && test -s conftest.$ac_objext; then
6798 emacs_cv_personality_linux32=yes
6799 else
6800 echo "$as_me: failed program was:" >&5
6801 sed 's/^/| /' conftest.$ac_ext >&5
6803 emacs_cv_personality_linux32=no
6806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6807 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6808 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6810 if test $emacs_cv_personality_linux32 = yes; then
6812 cat >>confdefs.h <<\_ACEOF
6813 #define HAVE_PERSONALITY_LINUX32 1
6814 _ACEOF
6819 for ac_header in term.h
6821 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6822 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6824 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6825 echo $ECHO_N "(cached) $ECHO_C" >&6
6826 else
6827 cat >conftest.$ac_ext <<_ACEOF
6828 /* confdefs.h. */
6829 _ACEOF
6830 cat confdefs.h >>conftest.$ac_ext
6831 cat >>conftest.$ac_ext <<_ACEOF
6832 /* end confdefs.h. */
6833 #include <$ac_header>
6834 _ACEOF
6835 if { (ac_try="$ac_cpp conftest.$ac_ext"
6836 case "(($ac_try" in
6837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6838 *) ac_try_echo=$ac_try;;
6839 esac
6840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6841 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6842 ac_status=$?
6843 grep -v '^ *+' conftest.er1 >conftest.err
6844 rm -f conftest.er1
6845 cat conftest.err >&5
6846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847 (exit $ac_status); } >/dev/null && {
6848 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6849 test ! -s conftest.err
6850 }; then
6851 eval "$as_ac_Header=yes"
6852 else
6853 echo "$as_me: failed program was:" >&5
6854 sed 's/^/| /' conftest.$ac_ext >&5
6856 eval "$as_ac_Header=no"
6859 rm -f conftest.err conftest.$ac_ext
6861 ac_res=`eval echo '${'$as_ac_Header'}'`
6862 { echo "$as_me:$LINENO: result: $ac_res" >&5
6863 echo "${ECHO_T}$ac_res" >&6; }
6864 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6865 cat >>confdefs.h <<_ACEOF
6866 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6867 _ACEOF
6871 done
6873 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6874 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6875 if test "${ac_cv_header_stdc+set}" = set; then
6876 echo $ECHO_N "(cached) $ECHO_C" >&6
6877 else
6878 cat >conftest.$ac_ext <<_ACEOF
6879 /* confdefs.h. */
6880 _ACEOF
6881 cat confdefs.h >>conftest.$ac_ext
6882 cat >>conftest.$ac_ext <<_ACEOF
6883 /* end confdefs.h. */
6884 #include <stdlib.h>
6885 #include <stdarg.h>
6886 #include <string.h>
6887 #include <float.h>
6890 main ()
6894 return 0;
6896 _ACEOF
6897 rm -f conftest.$ac_objext
6898 if { (ac_try="$ac_compile"
6899 case "(($ac_try" in
6900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6901 *) ac_try_echo=$ac_try;;
6902 esac
6903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6904 (eval "$ac_compile") 2>conftest.er1
6905 ac_status=$?
6906 grep -v '^ *+' conftest.er1 >conftest.err
6907 rm -f conftest.er1
6908 cat conftest.err >&5
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); } && {
6911 test -z "$ac_c_werror_flag" ||
6912 test ! -s conftest.err
6913 } && test -s conftest.$ac_objext; then
6914 ac_cv_header_stdc=yes
6915 else
6916 echo "$as_me: failed program was:" >&5
6917 sed 's/^/| /' conftest.$ac_ext >&5
6919 ac_cv_header_stdc=no
6922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6924 if test $ac_cv_header_stdc = yes; then
6925 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6926 cat >conftest.$ac_ext <<_ACEOF
6927 /* confdefs.h. */
6928 _ACEOF
6929 cat confdefs.h >>conftest.$ac_ext
6930 cat >>conftest.$ac_ext <<_ACEOF
6931 /* end confdefs.h. */
6932 #include <string.h>
6934 _ACEOF
6935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6936 $EGREP "memchr" >/dev/null 2>&1; then
6938 else
6939 ac_cv_header_stdc=no
6941 rm -f conftest*
6945 if test $ac_cv_header_stdc = yes; then
6946 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6947 cat >conftest.$ac_ext <<_ACEOF
6948 /* confdefs.h. */
6949 _ACEOF
6950 cat confdefs.h >>conftest.$ac_ext
6951 cat >>conftest.$ac_ext <<_ACEOF
6952 /* end confdefs.h. */
6953 #include <stdlib.h>
6955 _ACEOF
6956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6957 $EGREP "free" >/dev/null 2>&1; then
6959 else
6960 ac_cv_header_stdc=no
6962 rm -f conftest*
6966 if test $ac_cv_header_stdc = yes; then
6967 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6968 if test "$cross_compiling" = yes; then
6970 else
6971 cat >conftest.$ac_ext <<_ACEOF
6972 /* confdefs.h. */
6973 _ACEOF
6974 cat confdefs.h >>conftest.$ac_ext
6975 cat >>conftest.$ac_ext <<_ACEOF
6976 /* end confdefs.h. */
6977 #include <ctype.h>
6978 #include <stdlib.h>
6979 #if ((' ' & 0x0FF) == 0x020)
6980 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6981 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6982 #else
6983 # define ISLOWER(c) \
6984 (('a' <= (c) && (c) <= 'i') \
6985 || ('j' <= (c) && (c) <= 'r') \
6986 || ('s' <= (c) && (c) <= 'z'))
6987 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6988 #endif
6990 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6992 main ()
6994 int i;
6995 for (i = 0; i < 256; i++)
6996 if (XOR (islower (i), ISLOWER (i))
6997 || toupper (i) != TOUPPER (i))
6998 return 2;
6999 return 0;
7001 _ACEOF
7002 rm -f conftest$ac_exeext
7003 if { (ac_try="$ac_link"
7004 case "(($ac_try" in
7005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7006 *) ac_try_echo=$ac_try;;
7007 esac
7008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7009 (eval "$ac_link") 2>&5
7010 ac_status=$?
7011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7013 { (case "(($ac_try" in
7014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7015 *) ac_try_echo=$ac_try;;
7016 esac
7017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7018 (eval "$ac_try") 2>&5
7019 ac_status=$?
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); }; }; then
7023 else
7024 echo "$as_me: program exited with status $ac_status" >&5
7025 echo "$as_me: failed program was:" >&5
7026 sed 's/^/| /' conftest.$ac_ext >&5
7028 ( exit $ac_status )
7029 ac_cv_header_stdc=no
7031 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7037 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7038 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7039 if test $ac_cv_header_stdc = yes; then
7041 cat >>confdefs.h <<\_ACEOF
7042 #define STDC_HEADERS 1
7043 _ACEOF
7047 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7048 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
7049 if test "${ac_cv_header_time+set}" = set; then
7050 echo $ECHO_N "(cached) $ECHO_C" >&6
7051 else
7052 cat >conftest.$ac_ext <<_ACEOF
7053 /* confdefs.h. */
7054 _ACEOF
7055 cat confdefs.h >>conftest.$ac_ext
7056 cat >>conftest.$ac_ext <<_ACEOF
7057 /* end confdefs.h. */
7058 #include <sys/types.h>
7059 #include <sys/time.h>
7060 #include <time.h>
7063 main ()
7065 if ((struct tm *) 0)
7066 return 0;
7068 return 0;
7070 _ACEOF
7071 rm -f conftest.$ac_objext
7072 if { (ac_try="$ac_compile"
7073 case "(($ac_try" in
7074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7075 *) ac_try_echo=$ac_try;;
7076 esac
7077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7078 (eval "$ac_compile") 2>conftest.er1
7079 ac_status=$?
7080 grep -v '^ *+' conftest.er1 >conftest.err
7081 rm -f conftest.er1
7082 cat conftest.err >&5
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); } && {
7085 test -z "$ac_c_werror_flag" ||
7086 test ! -s conftest.err
7087 } && test -s conftest.$ac_objext; then
7088 ac_cv_header_time=yes
7089 else
7090 echo "$as_me: failed program was:" >&5
7091 sed 's/^/| /' conftest.$ac_ext >&5
7093 ac_cv_header_time=no
7096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7098 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7099 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7100 if test $ac_cv_header_time = yes; then
7102 cat >>confdefs.h <<\_ACEOF
7103 #define TIME_WITH_SYS_TIME 1
7104 _ACEOF
7108 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7109 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7110 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7111 echo $ECHO_N "(cached) $ECHO_C" >&6
7112 else
7113 cat >conftest.$ac_ext <<_ACEOF
7114 /* confdefs.h. */
7115 _ACEOF
7116 cat confdefs.h >>conftest.$ac_ext
7117 cat >>conftest.$ac_ext <<_ACEOF
7118 /* end confdefs.h. */
7119 $ac_includes_default
7121 main ()
7123 #ifndef sys_siglist
7124 (void) sys_siglist;
7125 #endif
7128 return 0;
7130 _ACEOF
7131 rm -f conftest.$ac_objext
7132 if { (ac_try="$ac_compile"
7133 case "(($ac_try" in
7134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7135 *) ac_try_echo=$ac_try;;
7136 esac
7137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7138 (eval "$ac_compile") 2>conftest.er1
7139 ac_status=$?
7140 grep -v '^ *+' conftest.er1 >conftest.err
7141 rm -f conftest.er1
7142 cat conftest.err >&5
7143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144 (exit $ac_status); } && {
7145 test -z "$ac_c_werror_flag" ||
7146 test ! -s conftest.err
7147 } && test -s conftest.$ac_objext; then
7148 ac_cv_have_decl_sys_siglist=yes
7149 else
7150 echo "$as_me: failed program was:" >&5
7151 sed 's/^/| /' conftest.$ac_ext >&5
7153 ac_cv_have_decl_sys_siglist=no
7156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7158 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7159 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7160 if test $ac_cv_have_decl_sys_siglist = yes; then
7162 cat >>confdefs.h <<_ACEOF
7163 #define HAVE_DECL_SYS_SIGLIST 1
7164 _ACEOF
7167 else
7168 cat >>confdefs.h <<_ACEOF
7169 #define HAVE_DECL_SYS_SIGLIST 0
7170 _ACEOF
7176 if test $ac_cv_have_decl_sys_siglist != yes; then
7177 # For Tru64, at least:
7178 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7179 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7180 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7181 echo $ECHO_N "(cached) $ECHO_C" >&6
7182 else
7183 cat >conftest.$ac_ext <<_ACEOF
7184 /* confdefs.h. */
7185 _ACEOF
7186 cat confdefs.h >>conftest.$ac_ext
7187 cat >>conftest.$ac_ext <<_ACEOF
7188 /* end confdefs.h. */
7189 $ac_includes_default
7191 main ()
7193 #ifndef __sys_siglist
7194 (void) __sys_siglist;
7195 #endif
7198 return 0;
7200 _ACEOF
7201 rm -f conftest.$ac_objext
7202 if { (ac_try="$ac_compile"
7203 case "(($ac_try" in
7204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7205 *) ac_try_echo=$ac_try;;
7206 esac
7207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7208 (eval "$ac_compile") 2>conftest.er1
7209 ac_status=$?
7210 grep -v '^ *+' conftest.er1 >conftest.err
7211 rm -f conftest.er1
7212 cat conftest.err >&5
7213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214 (exit $ac_status); } && {
7215 test -z "$ac_c_werror_flag" ||
7216 test ! -s conftest.err
7217 } && test -s conftest.$ac_objext; then
7218 ac_cv_have_decl___sys_siglist=yes
7219 else
7220 echo "$as_me: failed program was:" >&5
7221 sed 's/^/| /' conftest.$ac_ext >&5
7223 ac_cv_have_decl___sys_siglist=no
7226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7228 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7229 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7230 if test $ac_cv_have_decl___sys_siglist = yes; then
7232 cat >>confdefs.h <<_ACEOF
7233 #define HAVE_DECL___SYS_SIGLIST 1
7234 _ACEOF
7237 else
7238 cat >>confdefs.h <<_ACEOF
7239 #define HAVE_DECL___SYS_SIGLIST 0
7240 _ACEOF
7246 if test $ac_cv_have_decl___sys_siglist = yes; then
7248 cat >>confdefs.h <<\_ACEOF
7249 #define sys_siglist __sys_siglist
7250 _ACEOF
7254 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7255 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7256 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7257 echo $ECHO_N "(cached) $ECHO_C" >&6
7258 else
7259 cat >conftest.$ac_ext <<_ACEOF
7260 /* confdefs.h. */
7261 _ACEOF
7262 cat confdefs.h >>conftest.$ac_ext
7263 cat >>conftest.$ac_ext <<_ACEOF
7264 /* end confdefs.h. */
7265 #include <sys/types.h>
7266 #include <sys/wait.h>
7267 #ifndef WEXITSTATUS
7268 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7269 #endif
7270 #ifndef WIFEXITED
7271 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7272 #endif
7275 main ()
7277 int s;
7278 wait (&s);
7279 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7281 return 0;
7283 _ACEOF
7284 rm -f conftest.$ac_objext
7285 if { (ac_try="$ac_compile"
7286 case "(($ac_try" in
7287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7288 *) ac_try_echo=$ac_try;;
7289 esac
7290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7291 (eval "$ac_compile") 2>conftest.er1
7292 ac_status=$?
7293 grep -v '^ *+' conftest.er1 >conftest.err
7294 rm -f conftest.er1
7295 cat conftest.err >&5
7296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297 (exit $ac_status); } && {
7298 test -z "$ac_c_werror_flag" ||
7299 test ! -s conftest.err
7300 } && test -s conftest.$ac_objext; then
7301 ac_cv_header_sys_wait_h=yes
7302 else
7303 echo "$as_me: failed program was:" >&5
7304 sed 's/^/| /' conftest.$ac_ext >&5
7306 ac_cv_header_sys_wait_h=no
7309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7311 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7312 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7313 if test $ac_cv_header_sys_wait_h = yes; then
7315 cat >>confdefs.h <<\_ACEOF
7316 #define HAVE_SYS_WAIT_H 1
7317 _ACEOF
7322 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7323 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7324 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7325 echo $ECHO_N "(cached) $ECHO_C" >&6
7326 else
7327 cat >conftest.$ac_ext <<_ACEOF
7328 /* confdefs.h. */
7329 _ACEOF
7330 cat confdefs.h >>conftest.$ac_ext
7331 cat >>conftest.$ac_ext <<_ACEOF
7332 /* end confdefs.h. */
7333 #ifdef TIME_WITH_SYS_TIME
7334 #include <sys/time.h>
7335 #include <time.h>
7336 #else
7337 #ifdef HAVE_SYS_TIME_H
7338 #include <sys/time.h>
7339 #else
7340 #include <time.h>
7341 #endif
7342 #endif
7343 #ifdef HAVE_UTIME_H
7344 #include <utime.h>
7345 #endif
7347 main ()
7349 static struct utimbuf x; x.actime = x.modtime;
7351 return 0;
7353 _ACEOF
7354 rm -f conftest.$ac_objext
7355 if { (ac_try="$ac_compile"
7356 case "(($ac_try" in
7357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7358 *) ac_try_echo=$ac_try;;
7359 esac
7360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7361 (eval "$ac_compile") 2>conftest.er1
7362 ac_status=$?
7363 grep -v '^ *+' conftest.er1 >conftest.err
7364 rm -f conftest.er1
7365 cat conftest.err >&5
7366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367 (exit $ac_status); } && {
7368 test -z "$ac_c_werror_flag" ||
7369 test ! -s conftest.err
7370 } && test -s conftest.$ac_objext; then
7371 emacs_cv_struct_utimbuf=yes
7372 else
7373 echo "$as_me: failed program was:" >&5
7374 sed 's/^/| /' conftest.$ac_ext >&5
7376 emacs_cv_struct_utimbuf=no
7379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7381 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7382 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7383 if test $emacs_cv_struct_utimbuf = yes; then
7385 cat >>confdefs.h <<\_ACEOF
7386 #define HAVE_STRUCT_UTIMBUF 1
7387 _ACEOF
7391 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7392 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7393 if test "${ac_cv_type_signal+set}" = set; then
7394 echo $ECHO_N "(cached) $ECHO_C" >&6
7395 else
7396 cat >conftest.$ac_ext <<_ACEOF
7397 /* confdefs.h. */
7398 _ACEOF
7399 cat confdefs.h >>conftest.$ac_ext
7400 cat >>conftest.$ac_ext <<_ACEOF
7401 /* end confdefs.h. */
7402 #include <sys/types.h>
7403 #include <signal.h>
7406 main ()
7408 return *(signal (0, 0)) (0) == 1;
7410 return 0;
7412 _ACEOF
7413 rm -f conftest.$ac_objext
7414 if { (ac_try="$ac_compile"
7415 case "(($ac_try" in
7416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7417 *) ac_try_echo=$ac_try;;
7418 esac
7419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7420 (eval "$ac_compile") 2>conftest.er1
7421 ac_status=$?
7422 grep -v '^ *+' conftest.er1 >conftest.err
7423 rm -f conftest.er1
7424 cat conftest.err >&5
7425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426 (exit $ac_status); } && {
7427 test -z "$ac_c_werror_flag" ||
7428 test ! -s conftest.err
7429 } && test -s conftest.$ac_objext; then
7430 ac_cv_type_signal=int
7431 else
7432 echo "$as_me: failed program was:" >&5
7433 sed 's/^/| /' conftest.$ac_ext >&5
7435 ac_cv_type_signal=void
7438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7440 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7441 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7443 cat >>confdefs.h <<_ACEOF
7444 #define RETSIGTYPE $ac_cv_type_signal
7445 _ACEOF
7449 { echo "$as_me:$LINENO: checking for speed_t" >&5
7450 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7451 if test "${emacs_cv_speed_t+set}" = set; then
7452 echo $ECHO_N "(cached) $ECHO_C" >&6
7453 else
7454 cat >conftest.$ac_ext <<_ACEOF
7455 /* confdefs.h. */
7456 _ACEOF
7457 cat confdefs.h >>conftest.$ac_ext
7458 cat >>conftest.$ac_ext <<_ACEOF
7459 /* end confdefs.h. */
7460 #include <termios.h>
7462 main ()
7464 speed_t x = 1;
7466 return 0;
7468 _ACEOF
7469 rm -f conftest.$ac_objext
7470 if { (ac_try="$ac_compile"
7471 case "(($ac_try" in
7472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7473 *) ac_try_echo=$ac_try;;
7474 esac
7475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7476 (eval "$ac_compile") 2>conftest.er1
7477 ac_status=$?
7478 grep -v '^ *+' conftest.er1 >conftest.err
7479 rm -f conftest.er1
7480 cat conftest.err >&5
7481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482 (exit $ac_status); } && {
7483 test -z "$ac_c_werror_flag" ||
7484 test ! -s conftest.err
7485 } && test -s conftest.$ac_objext; then
7486 emacs_cv_speed_t=yes
7487 else
7488 echo "$as_me: failed program was:" >&5
7489 sed 's/^/| /' conftest.$ac_ext >&5
7491 emacs_cv_speed_t=no
7494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7496 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7497 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7498 if test $emacs_cv_speed_t = yes; then
7500 cat >>confdefs.h <<\_ACEOF
7501 #define HAVE_SPEED_T 1
7502 _ACEOF
7506 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7507 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7508 if test "${emacs_cv_struct_timeval+set}" = set; then
7509 echo $ECHO_N "(cached) $ECHO_C" >&6
7510 else
7511 cat >conftest.$ac_ext <<_ACEOF
7512 /* confdefs.h. */
7513 _ACEOF
7514 cat confdefs.h >>conftest.$ac_ext
7515 cat >>conftest.$ac_ext <<_ACEOF
7516 /* end confdefs.h. */
7517 #ifdef TIME_WITH_SYS_TIME
7518 #include <sys/time.h>
7519 #include <time.h>
7520 #else
7521 #ifdef HAVE_SYS_TIME_H
7522 #include <sys/time.h>
7523 #else
7524 #include <time.h>
7525 #endif
7526 #endif
7528 main ()
7530 static struct timeval x; x.tv_sec = x.tv_usec;
7532 return 0;
7534 _ACEOF
7535 rm -f conftest.$ac_objext
7536 if { (ac_try="$ac_compile"
7537 case "(($ac_try" in
7538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7539 *) ac_try_echo=$ac_try;;
7540 esac
7541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7542 (eval "$ac_compile") 2>conftest.er1
7543 ac_status=$?
7544 grep -v '^ *+' conftest.er1 >conftest.err
7545 rm -f conftest.er1
7546 cat conftest.err >&5
7547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548 (exit $ac_status); } && {
7549 test -z "$ac_c_werror_flag" ||
7550 test ! -s conftest.err
7551 } && test -s conftest.$ac_objext; then
7552 emacs_cv_struct_timeval=yes
7553 else
7554 echo "$as_me: failed program was:" >&5
7555 sed 's/^/| /' conftest.$ac_ext >&5
7557 emacs_cv_struct_timeval=no
7560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7562 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7563 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7564 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7565 if test $emacs_cv_struct_timeval = yes; then
7567 cat >>confdefs.h <<\_ACEOF
7568 #define HAVE_TIMEVAL 1
7569 _ACEOF
7573 { echo "$as_me:$LINENO: checking for struct exception" >&5
7574 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7575 if test "${emacs_cv_struct_exception+set}" = set; then
7576 echo $ECHO_N "(cached) $ECHO_C" >&6
7577 else
7578 cat >conftest.$ac_ext <<_ACEOF
7579 /* confdefs.h. */
7580 _ACEOF
7581 cat confdefs.h >>conftest.$ac_ext
7582 cat >>conftest.$ac_ext <<_ACEOF
7583 /* end confdefs.h. */
7584 #include <math.h>
7586 main ()
7588 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7590 return 0;
7592 _ACEOF
7593 rm -f conftest.$ac_objext
7594 if { (ac_try="$ac_compile"
7595 case "(($ac_try" in
7596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7597 *) ac_try_echo=$ac_try;;
7598 esac
7599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7600 (eval "$ac_compile") 2>conftest.er1
7601 ac_status=$?
7602 grep -v '^ *+' conftest.er1 >conftest.err
7603 rm -f conftest.er1
7604 cat conftest.err >&5
7605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7606 (exit $ac_status); } && {
7607 test -z "$ac_c_werror_flag" ||
7608 test ! -s conftest.err
7609 } && test -s conftest.$ac_objext; then
7610 emacs_cv_struct_exception=yes
7611 else
7612 echo "$as_me: failed program was:" >&5
7613 sed 's/^/| /' conftest.$ac_ext >&5
7615 emacs_cv_struct_exception=no
7618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7620 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7621 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7622 HAVE_EXCEPTION=$emacs_cv_struct_exception
7623 if test $emacs_cv_struct_exception != yes; then
7625 cat >>confdefs.h <<\_ACEOF
7626 #define NO_MATHERR 1
7627 _ACEOF
7632 for ac_header in sys/socket.h
7634 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7635 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7636 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7639 echo $ECHO_N "(cached) $ECHO_C" >&6
7641 ac_res=`eval echo '${'$as_ac_Header'}'`
7642 { echo "$as_me:$LINENO: result: $ac_res" >&5
7643 echo "${ECHO_T}$ac_res" >&6; }
7644 else
7645 # Is the header compilable?
7646 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7647 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7648 cat >conftest.$ac_ext <<_ACEOF
7649 /* confdefs.h. */
7650 _ACEOF
7651 cat confdefs.h >>conftest.$ac_ext
7652 cat >>conftest.$ac_ext <<_ACEOF
7653 /* end confdefs.h. */
7654 $ac_includes_default
7655 #include <$ac_header>
7656 _ACEOF
7657 rm -f conftest.$ac_objext
7658 if { (ac_try="$ac_compile"
7659 case "(($ac_try" in
7660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7661 *) ac_try_echo=$ac_try;;
7662 esac
7663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7664 (eval "$ac_compile") 2>conftest.er1
7665 ac_status=$?
7666 grep -v '^ *+' conftest.er1 >conftest.err
7667 rm -f conftest.er1
7668 cat conftest.err >&5
7669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); } && {
7671 test -z "$ac_c_werror_flag" ||
7672 test ! -s conftest.err
7673 } && test -s conftest.$ac_objext; then
7674 ac_header_compiler=yes
7675 else
7676 echo "$as_me: failed program was:" >&5
7677 sed 's/^/| /' conftest.$ac_ext >&5
7679 ac_header_compiler=no
7682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7683 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7684 echo "${ECHO_T}$ac_header_compiler" >&6; }
7686 # Is the header present?
7687 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7688 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7689 cat >conftest.$ac_ext <<_ACEOF
7690 /* confdefs.h. */
7691 _ACEOF
7692 cat confdefs.h >>conftest.$ac_ext
7693 cat >>conftest.$ac_ext <<_ACEOF
7694 /* end confdefs.h. */
7695 #include <$ac_header>
7696 _ACEOF
7697 if { (ac_try="$ac_cpp conftest.$ac_ext"
7698 case "(($ac_try" in
7699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7700 *) ac_try_echo=$ac_try;;
7701 esac
7702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7704 ac_status=$?
7705 grep -v '^ *+' conftest.er1 >conftest.err
7706 rm -f conftest.er1
7707 cat conftest.err >&5
7708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709 (exit $ac_status); } >/dev/null && {
7710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7711 test ! -s conftest.err
7712 }; then
7713 ac_header_preproc=yes
7714 else
7715 echo "$as_me: failed program was:" >&5
7716 sed 's/^/| /' conftest.$ac_ext >&5
7718 ac_header_preproc=no
7721 rm -f conftest.err conftest.$ac_ext
7722 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7723 echo "${ECHO_T}$ac_header_preproc" >&6; }
7725 # So? What about this header?
7726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7727 yes:no: )
7728 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7729 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7730 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7731 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7732 ac_header_preproc=yes
7734 no:yes:* )
7735 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7736 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7737 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7738 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7739 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7740 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7741 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7742 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7743 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7744 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7745 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7746 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7749 esac
7750 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7753 echo $ECHO_N "(cached) $ECHO_C" >&6
7754 else
7755 eval "$as_ac_Header=\$ac_header_preproc"
7757 ac_res=`eval echo '${'$as_ac_Header'}'`
7758 { echo "$as_me:$LINENO: result: $ac_res" >&5
7759 echo "${ECHO_T}$ac_res" >&6; }
7762 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7763 cat >>confdefs.h <<_ACEOF
7764 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7765 _ACEOF
7769 done
7772 for ac_header in net/if.h
7774 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7775 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7778 echo $ECHO_N "(cached) $ECHO_C" >&6
7779 else
7780 cat >conftest.$ac_ext <<_ACEOF
7781 /* confdefs.h. */
7782 _ACEOF
7783 cat confdefs.h >>conftest.$ac_ext
7784 cat >>conftest.$ac_ext <<_ACEOF
7785 /* end confdefs.h. */
7786 $ac_includes_default
7787 #if HAVE_SYS_SOCKET_H
7788 #include <sys/socket.h>
7789 #endif
7791 #include <$ac_header>
7792 _ACEOF
7793 rm -f conftest.$ac_objext
7794 if { (ac_try="$ac_compile"
7795 case "(($ac_try" in
7796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7797 *) ac_try_echo=$ac_try;;
7798 esac
7799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7800 (eval "$ac_compile") 2>conftest.er1
7801 ac_status=$?
7802 grep -v '^ *+' conftest.er1 >conftest.err
7803 rm -f conftest.er1
7804 cat conftest.err >&5
7805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7806 (exit $ac_status); } && {
7807 test -z "$ac_c_werror_flag" ||
7808 test ! -s conftest.err
7809 } && test -s conftest.$ac_objext; then
7810 eval "$as_ac_Header=yes"
7811 else
7812 echo "$as_me: failed program was:" >&5
7813 sed 's/^/| /' conftest.$ac_ext >&5
7815 eval "$as_ac_Header=no"
7818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7820 ac_res=`eval echo '${'$as_ac_Header'}'`
7821 { echo "$as_me:$LINENO: result: $ac_res" >&5
7822 echo "${ECHO_T}$ac_res" >&6; }
7823 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7824 cat >>confdefs.h <<_ACEOF
7825 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7826 _ACEOF
7830 done
7833 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7834 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7835 if test "${ac_cv_struct_tm+set}" = set; then
7836 echo $ECHO_N "(cached) $ECHO_C" >&6
7837 else
7838 cat >conftest.$ac_ext <<_ACEOF
7839 /* confdefs.h. */
7840 _ACEOF
7841 cat confdefs.h >>conftest.$ac_ext
7842 cat >>conftest.$ac_ext <<_ACEOF
7843 /* end confdefs.h. */
7844 #include <sys/types.h>
7845 #include <time.h>
7848 main ()
7850 struct tm tm;
7851 int *p = &tm.tm_sec;
7852 return !p;
7854 return 0;
7856 _ACEOF
7857 rm -f conftest.$ac_objext
7858 if { (ac_try="$ac_compile"
7859 case "(($ac_try" in
7860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7861 *) ac_try_echo=$ac_try;;
7862 esac
7863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7864 (eval "$ac_compile") 2>conftest.er1
7865 ac_status=$?
7866 grep -v '^ *+' conftest.er1 >conftest.err
7867 rm -f conftest.er1
7868 cat conftest.err >&5
7869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870 (exit $ac_status); } && {
7871 test -z "$ac_c_werror_flag" ||
7872 test ! -s conftest.err
7873 } && test -s conftest.$ac_objext; then
7874 ac_cv_struct_tm=time.h
7875 else
7876 echo "$as_me: failed program was:" >&5
7877 sed 's/^/| /' conftest.$ac_ext >&5
7879 ac_cv_struct_tm=sys/time.h
7882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7884 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7885 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7886 if test $ac_cv_struct_tm = sys/time.h; then
7888 cat >>confdefs.h <<\_ACEOF
7889 #define TM_IN_SYS_TIME 1
7890 _ACEOF
7894 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7895 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7896 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7897 echo $ECHO_N "(cached) $ECHO_C" >&6
7898 else
7899 cat >conftest.$ac_ext <<_ACEOF
7900 /* confdefs.h. */
7901 _ACEOF
7902 cat confdefs.h >>conftest.$ac_ext
7903 cat >>conftest.$ac_ext <<_ACEOF
7904 /* end confdefs.h. */
7905 #include <sys/types.h>
7906 #include <$ac_cv_struct_tm>
7910 main ()
7912 static struct tm ac_aggr;
7913 if (ac_aggr.tm_zone)
7914 return 0;
7916 return 0;
7918 _ACEOF
7919 rm -f conftest.$ac_objext
7920 if { (ac_try="$ac_compile"
7921 case "(($ac_try" in
7922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7923 *) ac_try_echo=$ac_try;;
7924 esac
7925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7926 (eval "$ac_compile") 2>conftest.er1
7927 ac_status=$?
7928 grep -v '^ *+' conftest.er1 >conftest.err
7929 rm -f conftest.er1
7930 cat conftest.err >&5
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); } && {
7933 test -z "$ac_c_werror_flag" ||
7934 test ! -s conftest.err
7935 } && test -s conftest.$ac_objext; then
7936 ac_cv_member_struct_tm_tm_zone=yes
7937 else
7938 echo "$as_me: failed program was:" >&5
7939 sed 's/^/| /' conftest.$ac_ext >&5
7941 cat >conftest.$ac_ext <<_ACEOF
7942 /* confdefs.h. */
7943 _ACEOF
7944 cat confdefs.h >>conftest.$ac_ext
7945 cat >>conftest.$ac_ext <<_ACEOF
7946 /* end confdefs.h. */
7947 #include <sys/types.h>
7948 #include <$ac_cv_struct_tm>
7952 main ()
7954 static struct tm ac_aggr;
7955 if (sizeof ac_aggr.tm_zone)
7956 return 0;
7958 return 0;
7960 _ACEOF
7961 rm -f conftest.$ac_objext
7962 if { (ac_try="$ac_compile"
7963 case "(($ac_try" in
7964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7965 *) ac_try_echo=$ac_try;;
7966 esac
7967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7968 (eval "$ac_compile") 2>conftest.er1
7969 ac_status=$?
7970 grep -v '^ *+' conftest.er1 >conftest.err
7971 rm -f conftest.er1
7972 cat conftest.err >&5
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); } && {
7975 test -z "$ac_c_werror_flag" ||
7976 test ! -s conftest.err
7977 } && test -s conftest.$ac_objext; then
7978 ac_cv_member_struct_tm_tm_zone=yes
7979 else
7980 echo "$as_me: failed program was:" >&5
7981 sed 's/^/| /' conftest.$ac_ext >&5
7983 ac_cv_member_struct_tm_tm_zone=no
7986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7991 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7992 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7993 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7995 cat >>confdefs.h <<_ACEOF
7996 #define HAVE_STRUCT_TM_TM_ZONE 1
7997 _ACEOF
8002 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8004 cat >>confdefs.h <<\_ACEOF
8005 #define HAVE_TM_ZONE 1
8006 _ACEOF
8008 else
8009 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8010 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
8011 if test "${ac_cv_have_decl_tzname+set}" = set; then
8012 echo $ECHO_N "(cached) $ECHO_C" >&6
8013 else
8014 cat >conftest.$ac_ext <<_ACEOF
8015 /* confdefs.h. */
8016 _ACEOF
8017 cat confdefs.h >>conftest.$ac_ext
8018 cat >>conftest.$ac_ext <<_ACEOF
8019 /* end confdefs.h. */
8020 #include <time.h>
8023 main ()
8025 #ifndef tzname
8026 (void) tzname;
8027 #endif
8030 return 0;
8032 _ACEOF
8033 rm -f conftest.$ac_objext
8034 if { (ac_try="$ac_compile"
8035 case "(($ac_try" in
8036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8037 *) ac_try_echo=$ac_try;;
8038 esac
8039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8040 (eval "$ac_compile") 2>conftest.er1
8041 ac_status=$?
8042 grep -v '^ *+' conftest.er1 >conftest.err
8043 rm -f conftest.er1
8044 cat conftest.err >&5
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); } && {
8047 test -z "$ac_c_werror_flag" ||
8048 test ! -s conftest.err
8049 } && test -s conftest.$ac_objext; then
8050 ac_cv_have_decl_tzname=yes
8051 else
8052 echo "$as_me: failed program was:" >&5
8053 sed 's/^/| /' conftest.$ac_ext >&5
8055 ac_cv_have_decl_tzname=no
8058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8060 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8061 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
8062 if test $ac_cv_have_decl_tzname = yes; then
8064 cat >>confdefs.h <<_ACEOF
8065 #define HAVE_DECL_TZNAME 1
8066 _ACEOF
8069 else
8070 cat >>confdefs.h <<_ACEOF
8071 #define HAVE_DECL_TZNAME 0
8072 _ACEOF
8078 { echo "$as_me:$LINENO: checking for tzname" >&5
8079 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
8080 if test "${ac_cv_var_tzname+set}" = set; then
8081 echo $ECHO_N "(cached) $ECHO_C" >&6
8082 else
8083 cat >conftest.$ac_ext <<_ACEOF
8084 /* confdefs.h. */
8085 _ACEOF
8086 cat confdefs.h >>conftest.$ac_ext
8087 cat >>conftest.$ac_ext <<_ACEOF
8088 /* end confdefs.h. */
8089 #include <time.h>
8090 #if !HAVE_DECL_TZNAME
8091 extern char *tzname[];
8092 #endif
8095 main ()
8097 return tzname[0][0];
8099 return 0;
8101 _ACEOF
8102 rm -f conftest.$ac_objext conftest$ac_exeext
8103 if { (ac_try="$ac_link"
8104 case "(($ac_try" in
8105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8106 *) ac_try_echo=$ac_try;;
8107 esac
8108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8109 (eval "$ac_link") 2>conftest.er1
8110 ac_status=$?
8111 grep -v '^ *+' conftest.er1 >conftest.err
8112 rm -f conftest.er1
8113 cat conftest.err >&5
8114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115 (exit $ac_status); } && {
8116 test -z "$ac_c_werror_flag" ||
8117 test ! -s conftest.err
8118 } && test -s conftest$ac_exeext &&
8119 $as_test_x conftest$ac_exeext; then
8120 ac_cv_var_tzname=yes
8121 else
8122 echo "$as_me: failed program was:" >&5
8123 sed 's/^/| /' conftest.$ac_ext >&5
8125 ac_cv_var_tzname=no
8128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8129 conftest$ac_exeext conftest.$ac_ext
8131 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8132 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8133 if test $ac_cv_var_tzname = yes; then
8135 cat >>confdefs.h <<\_ACEOF
8136 #define HAVE_TZNAME 1
8137 _ACEOF
8142 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8143 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8144 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8145 echo $ECHO_N "(cached) $ECHO_C" >&6
8146 else
8147 cat >conftest.$ac_ext <<_ACEOF
8148 /* confdefs.h. */
8149 _ACEOF
8150 cat confdefs.h >>conftest.$ac_ext
8151 cat >>conftest.$ac_ext <<_ACEOF
8152 /* end confdefs.h. */
8153 #include <time.h>
8156 main ()
8158 static struct tm ac_aggr;
8159 if (ac_aggr.tm_gmtoff)
8160 return 0;
8162 return 0;
8164 _ACEOF
8165 rm -f conftest.$ac_objext
8166 if { (ac_try="$ac_compile"
8167 case "(($ac_try" in
8168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8169 *) ac_try_echo=$ac_try;;
8170 esac
8171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8172 (eval "$ac_compile") 2>conftest.er1
8173 ac_status=$?
8174 grep -v '^ *+' conftest.er1 >conftest.err
8175 rm -f conftest.er1
8176 cat conftest.err >&5
8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); } && {
8179 test -z "$ac_c_werror_flag" ||
8180 test ! -s conftest.err
8181 } && test -s conftest.$ac_objext; then
8182 ac_cv_member_struct_tm_tm_gmtoff=yes
8183 else
8184 echo "$as_me: failed program was:" >&5
8185 sed 's/^/| /' conftest.$ac_ext >&5
8187 cat >conftest.$ac_ext <<_ACEOF
8188 /* confdefs.h. */
8189 _ACEOF
8190 cat confdefs.h >>conftest.$ac_ext
8191 cat >>conftest.$ac_ext <<_ACEOF
8192 /* end confdefs.h. */
8193 #include <time.h>
8196 main ()
8198 static struct tm ac_aggr;
8199 if (sizeof ac_aggr.tm_gmtoff)
8200 return 0;
8202 return 0;
8204 _ACEOF
8205 rm -f conftest.$ac_objext
8206 if { (ac_try="$ac_compile"
8207 case "(($ac_try" in
8208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8209 *) ac_try_echo=$ac_try;;
8210 esac
8211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8212 (eval "$ac_compile") 2>conftest.er1
8213 ac_status=$?
8214 grep -v '^ *+' conftest.er1 >conftest.err
8215 rm -f conftest.er1
8216 cat conftest.err >&5
8217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218 (exit $ac_status); } && {
8219 test -z "$ac_c_werror_flag" ||
8220 test ! -s conftest.err
8221 } && test -s conftest.$ac_objext; then
8222 ac_cv_member_struct_tm_tm_gmtoff=yes
8223 else
8224 echo "$as_me: failed program was:" >&5
8225 sed 's/^/| /' conftest.$ac_ext >&5
8227 ac_cv_member_struct_tm_tm_gmtoff=no
8230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8235 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8236 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8237 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8239 cat >>confdefs.h <<\_ACEOF
8240 #define HAVE_TM_GMTOFF 1
8241 _ACEOF
8245 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8246 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8247 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8248 echo $ECHO_N "(cached) $ECHO_C" >&6
8249 else
8250 cat >conftest.$ac_ext <<_ACEOF
8251 /* confdefs.h. */
8252 _ACEOF
8253 cat confdefs.h >>conftest.$ac_ext
8254 cat >>conftest.$ac_ext <<_ACEOF
8255 /* end confdefs.h. */
8256 $ac_includes_default
8257 #if HAVE_SYS_SOCKET_H
8258 #include <sys/socket.h>
8259 #endif
8260 #if HAVE_NET_IF_H
8261 #include <net/if.h>
8262 #endif
8265 main ()
8267 static struct ifreq ac_aggr;
8268 if (ac_aggr.ifr_flags)
8269 return 0;
8271 return 0;
8273 _ACEOF
8274 rm -f conftest.$ac_objext
8275 if { (ac_try="$ac_compile"
8276 case "(($ac_try" in
8277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8278 *) ac_try_echo=$ac_try;;
8279 esac
8280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8281 (eval "$ac_compile") 2>conftest.er1
8282 ac_status=$?
8283 grep -v '^ *+' conftest.er1 >conftest.err
8284 rm -f conftest.er1
8285 cat conftest.err >&5
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); } && {
8288 test -z "$ac_c_werror_flag" ||
8289 test ! -s conftest.err
8290 } && test -s conftest.$ac_objext; then
8291 ac_cv_member_struct_ifreq_ifr_flags=yes
8292 else
8293 echo "$as_me: failed program was:" >&5
8294 sed 's/^/| /' conftest.$ac_ext >&5
8296 cat >conftest.$ac_ext <<_ACEOF
8297 /* confdefs.h. */
8298 _ACEOF
8299 cat confdefs.h >>conftest.$ac_ext
8300 cat >>conftest.$ac_ext <<_ACEOF
8301 /* end confdefs.h. */
8302 $ac_includes_default
8303 #if HAVE_SYS_SOCKET_H
8304 #include <sys/socket.h>
8305 #endif
8306 #if HAVE_NET_IF_H
8307 #include <net/if.h>
8308 #endif
8311 main ()
8313 static struct ifreq ac_aggr;
8314 if (sizeof ac_aggr.ifr_flags)
8315 return 0;
8317 return 0;
8319 _ACEOF
8320 rm -f conftest.$ac_objext
8321 if { (ac_try="$ac_compile"
8322 case "(($ac_try" in
8323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8324 *) ac_try_echo=$ac_try;;
8325 esac
8326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8327 (eval "$ac_compile") 2>conftest.er1
8328 ac_status=$?
8329 grep -v '^ *+' conftest.er1 >conftest.err
8330 rm -f conftest.er1
8331 cat conftest.err >&5
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); } && {
8334 test -z "$ac_c_werror_flag" ||
8335 test ! -s conftest.err
8336 } && test -s conftest.$ac_objext; then
8337 ac_cv_member_struct_ifreq_ifr_flags=yes
8338 else
8339 echo "$as_me: failed program was:" >&5
8340 sed 's/^/| /' conftest.$ac_ext >&5
8342 ac_cv_member_struct_ifreq_ifr_flags=no
8345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8350 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8351 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8352 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8354 cat >>confdefs.h <<_ACEOF
8355 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8356 _ACEOF
8360 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8361 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8362 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8363 echo $ECHO_N "(cached) $ECHO_C" >&6
8364 else
8365 cat >conftest.$ac_ext <<_ACEOF
8366 /* confdefs.h. */
8367 _ACEOF
8368 cat confdefs.h >>conftest.$ac_ext
8369 cat >>conftest.$ac_ext <<_ACEOF
8370 /* end confdefs.h. */
8371 $ac_includes_default
8372 #if HAVE_SYS_SOCKET_H
8373 #include <sys/socket.h>
8374 #endif
8375 #if HAVE_NET_IF_H
8376 #include <net/if.h>
8377 #endif
8380 main ()
8382 static struct ifreq ac_aggr;
8383 if (ac_aggr.ifr_hwaddr)
8384 return 0;
8386 return 0;
8388 _ACEOF
8389 rm -f conftest.$ac_objext
8390 if { (ac_try="$ac_compile"
8391 case "(($ac_try" in
8392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8393 *) ac_try_echo=$ac_try;;
8394 esac
8395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8396 (eval "$ac_compile") 2>conftest.er1
8397 ac_status=$?
8398 grep -v '^ *+' conftest.er1 >conftest.err
8399 rm -f conftest.er1
8400 cat conftest.err >&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); } && {
8403 test -z "$ac_c_werror_flag" ||
8404 test ! -s conftest.err
8405 } && test -s conftest.$ac_objext; then
8406 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8407 else
8408 echo "$as_me: failed program was:" >&5
8409 sed 's/^/| /' conftest.$ac_ext >&5
8411 cat >conftest.$ac_ext <<_ACEOF
8412 /* confdefs.h. */
8413 _ACEOF
8414 cat confdefs.h >>conftest.$ac_ext
8415 cat >>conftest.$ac_ext <<_ACEOF
8416 /* end confdefs.h. */
8417 $ac_includes_default
8418 #if HAVE_SYS_SOCKET_H
8419 #include <sys/socket.h>
8420 #endif
8421 #if HAVE_NET_IF_H
8422 #include <net/if.h>
8423 #endif
8426 main ()
8428 static struct ifreq ac_aggr;
8429 if (sizeof ac_aggr.ifr_hwaddr)
8430 return 0;
8432 return 0;
8434 _ACEOF
8435 rm -f conftest.$ac_objext
8436 if { (ac_try="$ac_compile"
8437 case "(($ac_try" in
8438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8439 *) ac_try_echo=$ac_try;;
8440 esac
8441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8442 (eval "$ac_compile") 2>conftest.er1
8443 ac_status=$?
8444 grep -v '^ *+' conftest.er1 >conftest.err
8445 rm -f conftest.er1
8446 cat conftest.err >&5
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); } && {
8449 test -z "$ac_c_werror_flag" ||
8450 test ! -s conftest.err
8451 } && test -s conftest.$ac_objext; then
8452 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8453 else
8454 echo "$as_me: failed program was:" >&5
8455 sed 's/^/| /' conftest.$ac_ext >&5
8457 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8465 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8466 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8467 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8469 cat >>confdefs.h <<_ACEOF
8470 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8471 _ACEOF
8475 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8476 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8477 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8478 echo $ECHO_N "(cached) $ECHO_C" >&6
8479 else
8480 cat >conftest.$ac_ext <<_ACEOF
8481 /* confdefs.h. */
8482 _ACEOF
8483 cat confdefs.h >>conftest.$ac_ext
8484 cat >>conftest.$ac_ext <<_ACEOF
8485 /* end confdefs.h. */
8486 $ac_includes_default
8487 #if HAVE_SYS_SOCKET_H
8488 #include <sys/socket.h>
8489 #endif
8490 #if HAVE_NET_IF_H
8491 #include <net/if.h>
8492 #endif
8495 main ()
8497 static struct ifreq ac_aggr;
8498 if (ac_aggr.ifr_netmask)
8499 return 0;
8501 return 0;
8503 _ACEOF
8504 rm -f conftest.$ac_objext
8505 if { (ac_try="$ac_compile"
8506 case "(($ac_try" in
8507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8508 *) ac_try_echo=$ac_try;;
8509 esac
8510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8511 (eval "$ac_compile") 2>conftest.er1
8512 ac_status=$?
8513 grep -v '^ *+' conftest.er1 >conftest.err
8514 rm -f conftest.er1
8515 cat conftest.err >&5
8516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517 (exit $ac_status); } && {
8518 test -z "$ac_c_werror_flag" ||
8519 test ! -s conftest.err
8520 } && test -s conftest.$ac_objext; then
8521 ac_cv_member_struct_ifreq_ifr_netmask=yes
8522 else
8523 echo "$as_me: failed program was:" >&5
8524 sed 's/^/| /' conftest.$ac_ext >&5
8526 cat >conftest.$ac_ext <<_ACEOF
8527 /* confdefs.h. */
8528 _ACEOF
8529 cat confdefs.h >>conftest.$ac_ext
8530 cat >>conftest.$ac_ext <<_ACEOF
8531 /* end confdefs.h. */
8532 $ac_includes_default
8533 #if HAVE_SYS_SOCKET_H
8534 #include <sys/socket.h>
8535 #endif
8536 #if HAVE_NET_IF_H
8537 #include <net/if.h>
8538 #endif
8541 main ()
8543 static struct ifreq ac_aggr;
8544 if (sizeof ac_aggr.ifr_netmask)
8545 return 0;
8547 return 0;
8549 _ACEOF
8550 rm -f conftest.$ac_objext
8551 if { (ac_try="$ac_compile"
8552 case "(($ac_try" in
8553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8554 *) ac_try_echo=$ac_try;;
8555 esac
8556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8557 (eval "$ac_compile") 2>conftest.er1
8558 ac_status=$?
8559 grep -v '^ *+' conftest.er1 >conftest.err
8560 rm -f conftest.er1
8561 cat conftest.err >&5
8562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); } && {
8564 test -z "$ac_c_werror_flag" ||
8565 test ! -s conftest.err
8566 } && test -s conftest.$ac_objext; then
8567 ac_cv_member_struct_ifreq_ifr_netmask=yes
8568 else
8569 echo "$as_me: failed program was:" >&5
8570 sed 's/^/| /' conftest.$ac_ext >&5
8572 ac_cv_member_struct_ifreq_ifr_netmask=no
8575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8580 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8581 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8582 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8584 cat >>confdefs.h <<_ACEOF
8585 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8586 _ACEOF
8590 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8591 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8592 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8593 echo $ECHO_N "(cached) $ECHO_C" >&6
8594 else
8595 cat >conftest.$ac_ext <<_ACEOF
8596 /* confdefs.h. */
8597 _ACEOF
8598 cat confdefs.h >>conftest.$ac_ext
8599 cat >>conftest.$ac_ext <<_ACEOF
8600 /* end confdefs.h. */
8601 $ac_includes_default
8602 #if HAVE_SYS_SOCKET_H
8603 #include <sys/socket.h>
8604 #endif
8605 #if HAVE_NET_IF_H
8606 #include <net/if.h>
8607 #endif
8610 main ()
8612 static struct ifreq ac_aggr;
8613 if (ac_aggr.ifr_broadaddr)
8614 return 0;
8616 return 0;
8618 _ACEOF
8619 rm -f conftest.$ac_objext
8620 if { (ac_try="$ac_compile"
8621 case "(($ac_try" in
8622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8623 *) ac_try_echo=$ac_try;;
8624 esac
8625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8626 (eval "$ac_compile") 2>conftest.er1
8627 ac_status=$?
8628 grep -v '^ *+' conftest.er1 >conftest.err
8629 rm -f conftest.er1
8630 cat conftest.err >&5
8631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632 (exit $ac_status); } && {
8633 test -z "$ac_c_werror_flag" ||
8634 test ! -s conftest.err
8635 } && test -s conftest.$ac_objext; then
8636 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8637 else
8638 echo "$as_me: failed program was:" >&5
8639 sed 's/^/| /' conftest.$ac_ext >&5
8641 cat >conftest.$ac_ext <<_ACEOF
8642 /* confdefs.h. */
8643 _ACEOF
8644 cat confdefs.h >>conftest.$ac_ext
8645 cat >>conftest.$ac_ext <<_ACEOF
8646 /* end confdefs.h. */
8647 $ac_includes_default
8648 #if HAVE_SYS_SOCKET_H
8649 #include <sys/socket.h>
8650 #endif
8651 #if HAVE_NET_IF_H
8652 #include <net/if.h>
8653 #endif
8656 main ()
8658 static struct ifreq ac_aggr;
8659 if (sizeof ac_aggr.ifr_broadaddr)
8660 return 0;
8662 return 0;
8664 _ACEOF
8665 rm -f conftest.$ac_objext
8666 if { (ac_try="$ac_compile"
8667 case "(($ac_try" in
8668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8669 *) ac_try_echo=$ac_try;;
8670 esac
8671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8672 (eval "$ac_compile") 2>conftest.er1
8673 ac_status=$?
8674 grep -v '^ *+' conftest.er1 >conftest.err
8675 rm -f conftest.er1
8676 cat conftest.err >&5
8677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8678 (exit $ac_status); } && {
8679 test -z "$ac_c_werror_flag" ||
8680 test ! -s conftest.err
8681 } && test -s conftest.$ac_objext; then
8682 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8683 else
8684 echo "$as_me: failed program was:" >&5
8685 sed 's/^/| /' conftest.$ac_ext >&5
8687 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8695 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8696 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8697 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8699 cat >>confdefs.h <<_ACEOF
8700 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8701 _ACEOF
8705 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8706 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8707 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8708 echo $ECHO_N "(cached) $ECHO_C" >&6
8709 else
8710 cat >conftest.$ac_ext <<_ACEOF
8711 /* confdefs.h. */
8712 _ACEOF
8713 cat confdefs.h >>conftest.$ac_ext
8714 cat >>conftest.$ac_ext <<_ACEOF
8715 /* end confdefs.h. */
8716 $ac_includes_default
8717 #if HAVE_SYS_SOCKET_H
8718 #include <sys/socket.h>
8719 #endif
8720 #if HAVE_NET_IF_H
8721 #include <net/if.h>
8722 #endif
8725 main ()
8727 static struct ifreq ac_aggr;
8728 if (ac_aggr.ifr_addr)
8729 return 0;
8731 return 0;
8733 _ACEOF
8734 rm -f conftest.$ac_objext
8735 if { (ac_try="$ac_compile"
8736 case "(($ac_try" in
8737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8738 *) ac_try_echo=$ac_try;;
8739 esac
8740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8741 (eval "$ac_compile") 2>conftest.er1
8742 ac_status=$?
8743 grep -v '^ *+' conftest.er1 >conftest.err
8744 rm -f conftest.er1
8745 cat conftest.err >&5
8746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747 (exit $ac_status); } && {
8748 test -z "$ac_c_werror_flag" ||
8749 test ! -s conftest.err
8750 } && test -s conftest.$ac_objext; then
8751 ac_cv_member_struct_ifreq_ifr_addr=yes
8752 else
8753 echo "$as_me: failed program was:" >&5
8754 sed 's/^/| /' conftest.$ac_ext >&5
8756 cat >conftest.$ac_ext <<_ACEOF
8757 /* confdefs.h. */
8758 _ACEOF
8759 cat confdefs.h >>conftest.$ac_ext
8760 cat >>conftest.$ac_ext <<_ACEOF
8761 /* end confdefs.h. */
8762 $ac_includes_default
8763 #if HAVE_SYS_SOCKET_H
8764 #include <sys/socket.h>
8765 #endif
8766 #if HAVE_NET_IF_H
8767 #include <net/if.h>
8768 #endif
8771 main ()
8773 static struct ifreq ac_aggr;
8774 if (sizeof ac_aggr.ifr_addr)
8775 return 0;
8777 return 0;
8779 _ACEOF
8780 rm -f conftest.$ac_objext
8781 if { (ac_try="$ac_compile"
8782 case "(($ac_try" in
8783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8784 *) ac_try_echo=$ac_try;;
8785 esac
8786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8787 (eval "$ac_compile") 2>conftest.er1
8788 ac_status=$?
8789 grep -v '^ *+' conftest.er1 >conftest.err
8790 rm -f conftest.er1
8791 cat conftest.err >&5
8792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8793 (exit $ac_status); } && {
8794 test -z "$ac_c_werror_flag" ||
8795 test ! -s conftest.err
8796 } && test -s conftest.$ac_objext; then
8797 ac_cv_member_struct_ifreq_ifr_addr=yes
8798 else
8799 echo "$as_me: failed program was:" >&5
8800 sed 's/^/| /' conftest.$ac_ext >&5
8802 ac_cv_member_struct_ifreq_ifr_addr=no
8805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8810 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8811 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8812 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8814 cat >>confdefs.h <<_ACEOF
8815 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8816 _ACEOF
8823 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8824 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8825 if test "$ac_cv_prog_cc_c89" != no; then
8826 { echo "$as_me:$LINENO: result: yes" >&5
8827 echo "${ECHO_T}yes" >&6; }
8829 cat >>confdefs.h <<\_ACEOF
8830 #define PROTOTYPES 1
8831 _ACEOF
8834 cat >>confdefs.h <<\_ACEOF
8835 #define __PROTOTYPES 1
8836 _ACEOF
8838 else
8839 { echo "$as_me:$LINENO: result: no" >&5
8840 echo "${ECHO_T}no" >&6; }
8843 { echo "$as_me:$LINENO: checking for working volatile" >&5
8844 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8845 if test "${ac_cv_c_volatile+set}" = set; then
8846 echo $ECHO_N "(cached) $ECHO_C" >&6
8847 else
8848 cat >conftest.$ac_ext <<_ACEOF
8849 /* confdefs.h. */
8850 _ACEOF
8851 cat confdefs.h >>conftest.$ac_ext
8852 cat >>conftest.$ac_ext <<_ACEOF
8853 /* end confdefs.h. */
8856 main ()
8859 volatile int x;
8860 int * volatile y = (int *) 0;
8861 return !x && !y;
8863 return 0;
8865 _ACEOF
8866 rm -f conftest.$ac_objext
8867 if { (ac_try="$ac_compile"
8868 case "(($ac_try" in
8869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8870 *) ac_try_echo=$ac_try;;
8871 esac
8872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8873 (eval "$ac_compile") 2>conftest.er1
8874 ac_status=$?
8875 grep -v '^ *+' conftest.er1 >conftest.err
8876 rm -f conftest.er1
8877 cat conftest.err >&5
8878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879 (exit $ac_status); } && {
8880 test -z "$ac_c_werror_flag" ||
8881 test ! -s conftest.err
8882 } && test -s conftest.$ac_objext; then
8883 ac_cv_c_volatile=yes
8884 else
8885 echo "$as_me: failed program was:" >&5
8886 sed 's/^/| /' conftest.$ac_ext >&5
8888 ac_cv_c_volatile=no
8891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8893 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8894 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8895 if test $ac_cv_c_volatile = no; then
8897 cat >>confdefs.h <<\_ACEOF
8898 #define volatile
8899 _ACEOF
8903 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8904 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8905 if test "${ac_cv_c_const+set}" = set; then
8906 echo $ECHO_N "(cached) $ECHO_C" >&6
8907 else
8908 cat >conftest.$ac_ext <<_ACEOF
8909 /* confdefs.h. */
8910 _ACEOF
8911 cat confdefs.h >>conftest.$ac_ext
8912 cat >>conftest.$ac_ext <<_ACEOF
8913 /* end confdefs.h. */
8916 main ()
8918 /* FIXME: Include the comments suggested by Paul. */
8919 #ifndef __cplusplus
8920 /* Ultrix mips cc rejects this. */
8921 typedef int charset[2];
8922 const charset cs;
8923 /* SunOS 4.1.1 cc rejects this. */
8924 char const *const *pcpcc;
8925 char **ppc;
8926 /* NEC SVR4.0.2 mips cc rejects this. */
8927 struct point {int x, y;};
8928 static struct point const zero = {0,0};
8929 /* AIX XL C 1.02.0.0 rejects this.
8930 It does not let you subtract one const X* pointer from another in
8931 an arm of an if-expression whose if-part is not a constant
8932 expression */
8933 const char *g = "string";
8934 pcpcc = &g + (g ? g-g : 0);
8935 /* HPUX 7.0 cc rejects these. */
8936 ++pcpcc;
8937 ppc = (char**) pcpcc;
8938 pcpcc = (char const *const *) ppc;
8939 { /* SCO 3.2v4 cc rejects this. */
8940 char *t;
8941 char const *s = 0 ? (char *) 0 : (char const *) 0;
8943 *t++ = 0;
8944 if (s) return 0;
8946 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8947 int x[] = {25, 17};
8948 const int *foo = &x[0];
8949 ++foo;
8951 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8952 typedef const int *iptr;
8953 iptr p = 0;
8954 ++p;
8956 { /* AIX XL C 1.02.0.0 rejects this saying
8957 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8958 struct s { int j; const int *ap[3]; };
8959 struct s *b; b->j = 5;
8961 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8962 const int foo = 10;
8963 if (!foo) return 0;
8965 return !cs[0] && !zero.x;
8966 #endif
8969 return 0;
8971 _ACEOF
8972 rm -f conftest.$ac_objext
8973 if { (ac_try="$ac_compile"
8974 case "(($ac_try" in
8975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8976 *) ac_try_echo=$ac_try;;
8977 esac
8978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8979 (eval "$ac_compile") 2>conftest.er1
8980 ac_status=$?
8981 grep -v '^ *+' conftest.er1 >conftest.err
8982 rm -f conftest.er1
8983 cat conftest.err >&5
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); } && {
8986 test -z "$ac_c_werror_flag" ||
8987 test ! -s conftest.err
8988 } && test -s conftest.$ac_objext; then
8989 ac_cv_c_const=yes
8990 else
8991 echo "$as_me: failed program was:" >&5
8992 sed 's/^/| /' conftest.$ac_ext >&5
8994 ac_cv_c_const=no
8997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8999 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9000 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9001 if test $ac_cv_c_const = no; then
9003 cat >>confdefs.h <<\_ACEOF
9004 #define const
9005 _ACEOF
9009 { echo "$as_me:$LINENO: checking for void * support" >&5
9010 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
9011 if test "${emacs_cv_void_star+set}" = set; then
9012 echo $ECHO_N "(cached) $ECHO_C" >&6
9013 else
9014 cat >conftest.$ac_ext <<_ACEOF
9015 /* confdefs.h. */
9016 _ACEOF
9017 cat confdefs.h >>conftest.$ac_ext
9018 cat >>conftest.$ac_ext <<_ACEOF
9019 /* end confdefs.h. */
9022 main ()
9024 void * foo;
9026 return 0;
9028 _ACEOF
9029 rm -f conftest.$ac_objext
9030 if { (ac_try="$ac_compile"
9031 case "(($ac_try" in
9032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9033 *) ac_try_echo=$ac_try;;
9034 esac
9035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9036 (eval "$ac_compile") 2>conftest.er1
9037 ac_status=$?
9038 grep -v '^ *+' conftest.er1 >conftest.err
9039 rm -f conftest.er1
9040 cat conftest.err >&5
9041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042 (exit $ac_status); } && {
9043 test -z "$ac_c_werror_flag" ||
9044 test ! -s conftest.err
9045 } && test -s conftest.$ac_objext; then
9046 emacs_cv_void_star=yes
9047 else
9048 echo "$as_me: failed program was:" >&5
9049 sed 's/^/| /' conftest.$ac_ext >&5
9051 emacs_cv_void_star=no
9054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9056 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9057 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
9058 if test $emacs_cv_void_star = yes; then
9059 cat >>confdefs.h <<\_ACEOF
9060 #define POINTER_TYPE void
9061 _ACEOF
9063 else
9064 cat >>confdefs.h <<\_ACEOF
9065 #define POINTER_TYPE char
9066 _ACEOF
9074 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9075 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
9076 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9077 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9078 echo $ECHO_N "(cached) $ECHO_C" >&6
9079 else
9080 cat >conftest.make <<\_ACEOF
9081 SHELL = /bin/sh
9082 all:
9083 @echo '@@@%%%=$(MAKE)=@@@%%%'
9084 _ACEOF
9085 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9086 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9087 *@@@%%%=?*=@@@%%%*)
9088 eval ac_cv_prog_make_${ac_make}_set=yes;;
9090 eval ac_cv_prog_make_${ac_make}_set=no;;
9091 esac
9092 rm -f conftest.make
9094 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9095 { echo "$as_me:$LINENO: result: yes" >&5
9096 echo "${ECHO_T}yes" >&6; }
9097 SET_MAKE=
9098 else
9099 { echo "$as_me:$LINENO: result: no" >&5
9100 echo "${ECHO_T}no" >&6; }
9101 SET_MAKE="MAKE=${MAKE-make}"
9105 { echo "$as_me:$LINENO: checking for long file names" >&5
9106 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9107 if test "${ac_cv_sys_long_file_names+set}" = set; then
9108 echo $ECHO_N "(cached) $ECHO_C" >&6
9109 else
9110 ac_cv_sys_long_file_names=yes
9111 # Test for long file names in all the places we know might matter:
9112 # . the current directory, where building will happen
9113 # $prefix/lib where we will be installing things
9114 # $exec_prefix/lib likewise
9115 # $TMPDIR if set, where it might want to write temporary files
9116 # /tmp where it might want to write temporary files
9117 # /var/tmp likewise
9118 # /usr/tmp likewise
9119 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9120 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9121 # in the usual case where exec_prefix is '${prefix}'.
9122 case $ac_dir in #(
9123 . | /* | ?:[\\/]*) ;; #(
9124 *) continue;;
9125 esac
9126 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9127 ac_xdir=$ac_dir/cf$$
9128 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9129 ac_tf1=$ac_xdir/conftest9012345
9130 ac_tf2=$ac_xdir/conftest9012346
9131 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9132 ac_cv_sys_long_file_names=no
9133 rm -f -r "$ac_xdir" 2>/dev/null
9134 test $ac_cv_sys_long_file_names = no && break
9135 done
9137 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9138 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9139 if test $ac_cv_sys_long_file_names = yes; then
9141 cat >>confdefs.h <<\_ACEOF
9142 #define HAVE_LONG_FILE_NAMES 1
9143 _ACEOF
9148 #### Choose a window system.
9150 { echo "$as_me:$LINENO: checking for X" >&5
9151 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9154 # Check whether --with-x was given.
9155 if test "${with_x+set}" = set; then
9156 withval=$with_x;
9159 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9160 if test "x$with_x" = xno; then
9161 # The user explicitly disabled X.
9162 have_x=disabled
9163 else
9164 case $x_includes,$x_libraries in #(
9165 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9166 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9167 { (exit 1); exit 1; }; };; #(
9168 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9169 echo $ECHO_N "(cached) $ECHO_C" >&6
9170 else
9171 # One or both of the vars are not set, and there is no cached value.
9172 ac_x_includes=no ac_x_libraries=no
9173 rm -f -r conftest.dir
9174 if mkdir conftest.dir; then
9175 cd conftest.dir
9176 cat >Imakefile <<'_ACEOF'
9177 incroot:
9178 @echo incroot='${INCROOT}'
9179 usrlibdir:
9180 @echo usrlibdir='${USRLIBDIR}'
9181 libdir:
9182 @echo libdir='${LIBDIR}'
9183 _ACEOF
9184 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9185 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9186 for ac_var in incroot usrlibdir libdir; do
9187 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9188 done
9189 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9190 for ac_extension in a so sl; do
9191 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9192 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9193 ac_im_usrlibdir=$ac_im_libdir; break
9195 done
9196 # Screen out bogus values from the imake configuration. They are
9197 # bogus both because they are the default anyway, and because
9198 # using them would break gcc on systems where it needs fixed includes.
9199 case $ac_im_incroot in
9200 /usr/include) ac_x_includes= ;;
9201 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9202 esac
9203 case $ac_im_usrlibdir in
9204 /usr/lib | /lib) ;;
9205 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9206 esac
9208 cd ..
9209 rm -f -r conftest.dir
9212 # Standard set of common directories for X headers.
9213 # Check X11 before X11Rn because it is often a symlink to the current release.
9214 ac_x_header_dirs='
9215 /usr/X11/include
9216 /usr/X11R6/include
9217 /usr/X11R5/include
9218 /usr/X11R4/include
9220 /usr/include/X11
9221 /usr/include/X11R6
9222 /usr/include/X11R5
9223 /usr/include/X11R4
9225 /usr/local/X11/include
9226 /usr/local/X11R6/include
9227 /usr/local/X11R5/include
9228 /usr/local/X11R4/include
9230 /usr/local/include/X11
9231 /usr/local/include/X11R6
9232 /usr/local/include/X11R5
9233 /usr/local/include/X11R4
9235 /usr/X386/include
9236 /usr/x386/include
9237 /usr/XFree86/include/X11
9239 /usr/include
9240 /usr/local/include
9241 /usr/unsupported/include
9242 /usr/athena/include
9243 /usr/local/x11r5/include
9244 /usr/lpp/Xamples/include
9246 /usr/openwin/include
9247 /usr/openwin/share/include'
9249 if test "$ac_x_includes" = no; then
9250 # Guess where to find include files, by looking for Xlib.h.
9251 # First, try using that file with no special directory specified.
9252 cat >conftest.$ac_ext <<_ACEOF
9253 /* confdefs.h. */
9254 _ACEOF
9255 cat confdefs.h >>conftest.$ac_ext
9256 cat >>conftest.$ac_ext <<_ACEOF
9257 /* end confdefs.h. */
9258 #include <X11/Xlib.h>
9259 _ACEOF
9260 if { (ac_try="$ac_cpp conftest.$ac_ext"
9261 case "(($ac_try" in
9262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9263 *) ac_try_echo=$ac_try;;
9264 esac
9265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9266 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9267 ac_status=$?
9268 grep -v '^ *+' conftest.er1 >conftest.err
9269 rm -f conftest.er1
9270 cat conftest.err >&5
9271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272 (exit $ac_status); } >/dev/null && {
9273 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9274 test ! -s conftest.err
9275 }; then
9276 # We can compile using X headers with no special include directory.
9277 ac_x_includes=
9278 else
9279 echo "$as_me: failed program was:" >&5
9280 sed 's/^/| /' conftest.$ac_ext >&5
9282 for ac_dir in $ac_x_header_dirs; do
9283 if test -r "$ac_dir/X11/Xlib.h"; then
9284 ac_x_includes=$ac_dir
9285 break
9287 done
9290 rm -f conftest.err conftest.$ac_ext
9291 fi # $ac_x_includes = no
9293 if test "$ac_x_libraries" = no; then
9294 # Check for the libraries.
9295 # See if we find them without any special options.
9296 # Don't add to $LIBS permanently.
9297 ac_save_LIBS=$LIBS
9298 LIBS="-lX11 $LIBS"
9299 cat >conftest.$ac_ext <<_ACEOF
9300 /* confdefs.h. */
9301 _ACEOF
9302 cat confdefs.h >>conftest.$ac_ext
9303 cat >>conftest.$ac_ext <<_ACEOF
9304 /* end confdefs.h. */
9305 #include <X11/Xlib.h>
9307 main ()
9309 XrmInitialize ()
9311 return 0;
9313 _ACEOF
9314 rm -f conftest.$ac_objext conftest$ac_exeext
9315 if { (ac_try="$ac_link"
9316 case "(($ac_try" in
9317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9318 *) ac_try_echo=$ac_try;;
9319 esac
9320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9321 (eval "$ac_link") 2>conftest.er1
9322 ac_status=$?
9323 grep -v '^ *+' conftest.er1 >conftest.err
9324 rm -f conftest.er1
9325 cat conftest.err >&5
9326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9327 (exit $ac_status); } && {
9328 test -z "$ac_c_werror_flag" ||
9329 test ! -s conftest.err
9330 } && test -s conftest$ac_exeext &&
9331 $as_test_x conftest$ac_exeext; then
9332 LIBS=$ac_save_LIBS
9333 # We can link X programs with no special library path.
9334 ac_x_libraries=
9335 else
9336 echo "$as_me: failed program was:" >&5
9337 sed 's/^/| /' conftest.$ac_ext >&5
9339 LIBS=$ac_save_LIBS
9340 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9342 # Don't even attempt the hair of trying to link an X program!
9343 for ac_extension in a so sl; do
9344 if test -r "$ac_dir/libX11.$ac_extension"; then
9345 ac_x_libraries=$ac_dir
9346 break 2
9348 done
9349 done
9352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9353 conftest$ac_exeext conftest.$ac_ext
9354 fi # $ac_x_libraries = no
9356 case $ac_x_includes,$ac_x_libraries in #(
9357 no,* | *,no | *\'*)
9358 # Didn't find X, or a directory has "'" in its name.
9359 ac_cv_have_x="have_x=no";; #(
9361 # Record where we found X for the cache.
9362 ac_cv_have_x="have_x=yes\
9363 ac_x_includes='$ac_x_includes'\
9364 ac_x_libraries='$ac_x_libraries'"
9365 esac
9367 ;; #(
9368 *) have_x=yes;;
9369 esac
9370 eval "$ac_cv_have_x"
9371 fi # $with_x != no
9373 if test "$have_x" != yes; then
9374 { echo "$as_me:$LINENO: result: $have_x" >&5
9375 echo "${ECHO_T}$have_x" >&6; }
9376 no_x=yes
9377 else
9378 # If each of the values was on the command line, it overrides each guess.
9379 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9380 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9381 # Update the cache value to reflect the command line values.
9382 ac_cv_have_x="have_x=yes\
9383 ac_x_includes='$x_includes'\
9384 ac_x_libraries='$x_libraries'"
9385 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9386 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9389 if test "$no_x" = yes; then
9390 window_system=none
9391 else
9392 window_system=x11
9395 if test "${x_libraries}" != NONE; then
9396 if test -n "${x_libraries}"; then
9397 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9398 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9400 x_default_search_path=""
9401 x_search_path=${x_libraries}
9402 if test -z "${x_search_path}"; then
9403 x_search_path=/usr/lib
9405 for x_library in `echo ${x_search_path}: | \
9406 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9407 x_search_path="\
9408 ${x_library}/X11/%L/%T/%N%C%S:\
9409 ${x_library}/X11/%l/%T/%N%C%S:\
9410 ${x_library}/X11/%T/%N%C%S:\
9411 ${x_library}/X11/%L/%T/%N%S:\
9412 ${x_library}/X11/%l/%T/%N%S:\
9413 ${x_library}/X11/%T/%N%S"
9414 if test x"${x_default_search_path}" = x; then
9415 x_default_search_path=${x_search_path}
9416 else
9417 x_default_search_path="${x_search_path}:${x_default_search_path}"
9419 done
9421 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9422 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9425 if test x"${x_includes}" = x; then
9426 bitmapdir=/usr/include/X11/bitmaps
9427 else
9428 # accumulate include directories that have X11 bitmap subdirectories
9429 bmd_acc="dummyval"
9430 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9431 if test -d "${bmd}/X11/bitmaps"; then
9432 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9434 if test -d "${bmd}/bitmaps"; then
9435 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9437 done
9438 if test ${bmd_acc} != "dummyval"; then
9439 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9443 HAVE_CARBON=no
9444 if test "${with_carbon}" != no; then
9445 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9446 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9447 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9448 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9449 echo $ECHO_N "(cached) $ECHO_C" >&6
9451 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9452 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9453 else
9454 # Is the header compilable?
9455 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9456 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9457 cat >conftest.$ac_ext <<_ACEOF
9458 /* confdefs.h. */
9459 _ACEOF
9460 cat confdefs.h >>conftest.$ac_ext
9461 cat >>conftest.$ac_ext <<_ACEOF
9462 /* end confdefs.h. */
9463 $ac_includes_default
9464 #include <Carbon/Carbon.h>
9465 _ACEOF
9466 rm -f conftest.$ac_objext
9467 if { (ac_try="$ac_compile"
9468 case "(($ac_try" in
9469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9470 *) ac_try_echo=$ac_try;;
9471 esac
9472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9473 (eval "$ac_compile") 2>conftest.er1
9474 ac_status=$?
9475 grep -v '^ *+' conftest.er1 >conftest.err
9476 rm -f conftest.er1
9477 cat conftest.err >&5
9478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479 (exit $ac_status); } && {
9480 test -z "$ac_c_werror_flag" ||
9481 test ! -s conftest.err
9482 } && test -s conftest.$ac_objext; then
9483 ac_header_compiler=yes
9484 else
9485 echo "$as_me: failed program was:" >&5
9486 sed 's/^/| /' conftest.$ac_ext >&5
9488 ac_header_compiler=no
9491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9492 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9493 echo "${ECHO_T}$ac_header_compiler" >&6; }
9495 # Is the header present?
9496 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9497 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9498 cat >conftest.$ac_ext <<_ACEOF
9499 /* confdefs.h. */
9500 _ACEOF
9501 cat confdefs.h >>conftest.$ac_ext
9502 cat >>conftest.$ac_ext <<_ACEOF
9503 /* end confdefs.h. */
9504 #include <Carbon/Carbon.h>
9505 _ACEOF
9506 if { (ac_try="$ac_cpp conftest.$ac_ext"
9507 case "(($ac_try" in
9508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9509 *) ac_try_echo=$ac_try;;
9510 esac
9511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9512 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9513 ac_status=$?
9514 grep -v '^ *+' conftest.er1 >conftest.err
9515 rm -f conftest.er1
9516 cat conftest.err >&5
9517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518 (exit $ac_status); } >/dev/null && {
9519 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9520 test ! -s conftest.err
9521 }; then
9522 ac_header_preproc=yes
9523 else
9524 echo "$as_me: failed program was:" >&5
9525 sed 's/^/| /' conftest.$ac_ext >&5
9527 ac_header_preproc=no
9530 rm -f conftest.err conftest.$ac_ext
9531 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9532 echo "${ECHO_T}$ac_header_preproc" >&6; }
9534 # So? What about this header?
9535 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9536 yes:no: )
9537 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9538 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9539 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9540 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9541 ac_header_preproc=yes
9543 no:yes:* )
9544 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9545 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9546 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9547 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9548 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9549 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9550 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9551 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9552 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9553 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9554 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9555 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9558 esac
9559 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9560 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9561 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9562 echo $ECHO_N "(cached) $ECHO_C" >&6
9563 else
9564 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9566 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9567 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9570 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9571 HAVE_CARBON=yes
9576 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9577 if test "${with_carbon+set}" != set \
9578 && test "${carbon_appdir_x+set}" != set; then
9579 for var in with_x with_x_toolkit with_gtk with_xim \
9580 with_xpm with_jpeg with_tiff with_gif with_png; do
9581 if eval test \"\${$var+set}\" = set; then
9582 HAVE_CARBON=no
9583 break
9585 done
9588 if test "${HAVE_CARBON}" = yes; then
9589 window_system=mac
9592 case "${window_system}" in
9593 x11 )
9594 HAVE_X_WINDOWS=yes
9595 HAVE_X11=yes
9596 case "${with_x_toolkit}" in
9597 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9598 motif ) USE_X_TOOLKIT=MOTIF ;;
9599 gtk ) with_gtk=yes
9600 USE_X_TOOLKIT=none ;;
9601 no ) USE_X_TOOLKIT=none ;;
9603 if test x"$with_gtk" = xyes; then
9604 USE_X_TOOLKIT=none
9605 else
9606 USE_X_TOOLKIT=maybe
9609 esac
9611 mac | none )
9612 HAVE_X_WINDOWS=no
9613 HAVE_X11=no
9614 USE_X_TOOLKIT=none
9616 esac
9618 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9619 # Extract the first word of "X", so it can be a program name with args.
9620 set dummy X; ac_word=$2
9621 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9623 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9624 echo $ECHO_N "(cached) $ECHO_C" >&6
9625 else
9626 if test -n "$HAVE_XSERVER"; then
9627 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9628 else
9629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9630 for as_dir in $PATH
9632 IFS=$as_save_IFS
9633 test -z "$as_dir" && as_dir=.
9634 for ac_exec_ext in '' $ac_executable_extensions; do
9635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9636 ac_cv_prog_HAVE_XSERVER="true"
9637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9638 break 2
9640 done
9641 done
9642 IFS=$as_save_IFS
9644 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9647 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9648 if test -n "$HAVE_XSERVER"; then
9649 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9650 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9651 else
9652 { echo "$as_me:$LINENO: result: no" >&5
9653 echo "${ECHO_T}no" >&6; }
9657 if test "$HAVE_XSERVER" = true ||
9658 test -n "$DISPLAY" ||
9659 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9660 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9661 were found. You should install the relevant development files for X
9662 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9663 sure you have development files for image handling, i.e.
9664 tiff, gif, jpeg, png and xpm.
9665 If you are sure you want Emacs compiled without X window support, pass
9666 --without-x
9667 to configure." >&5
9668 echo "$as_me: error: You seem to be running X, but no X development libraries
9669 were found. You should install the relevant development files for X
9670 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9671 sure you have development files for image handling, i.e.
9672 tiff, gif, jpeg, png and xpm.
9673 If you are sure you want Emacs compiled without X window support, pass
9674 --without-x
9675 to configure." >&2;}
9676 { (exit 1); exit 1; }; }
9680 ### If we're using X11, we should use the X menu package.
9681 HAVE_MENUS=no
9682 case ${HAVE_X11} in
9683 yes ) HAVE_MENUS=yes ;;
9684 esac
9686 if test "${opsys}" = "hpux9"; then
9687 case "${x_libraries}" in
9688 *X11R4* )
9689 opsysfile="s/hpux9-x11r4.h"
9691 esac
9694 if test "${opsys}" = "hpux9shr"; then
9695 case "${x_libraries}" in
9696 *X11R4* )
9697 opsysfile="s/hpux9shxr4.h"
9699 esac
9702 ### Compute the unexec source name from the object name.
9703 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9705 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9706 # Assume not, until told otherwise.
9707 GNU_MALLOC=yes
9708 doug_lea_malloc=yes
9709 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9710 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9711 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9712 echo $ECHO_N "(cached) $ECHO_C" >&6
9713 else
9714 cat >conftest.$ac_ext <<_ACEOF
9715 /* confdefs.h. */
9716 _ACEOF
9717 cat confdefs.h >>conftest.$ac_ext
9718 cat >>conftest.$ac_ext <<_ACEOF
9719 /* end confdefs.h. */
9720 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9722 #define malloc_get_state innocuous_malloc_get_state
9724 /* System header to define __stub macros and hopefully few prototypes,
9725 which can conflict with char malloc_get_state (); below.
9726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9727 <limits.h> exists even on freestanding compilers. */
9729 #ifdef __STDC__
9730 # include <limits.h>
9731 #else
9732 # include <assert.h>
9733 #endif
9735 #undef malloc_get_state
9737 /* Override any GCC internal prototype to avoid an error.
9738 Use char because int might match the return type of a GCC
9739 builtin and then its argument prototype would still apply. */
9740 #ifdef __cplusplus
9741 extern "C"
9742 #endif
9743 char malloc_get_state ();
9744 /* The GNU C library defines this for functions which it implements
9745 to always fail with ENOSYS. Some functions are actually named
9746 something starting with __ and the normal name is an alias. */
9747 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9748 choke me
9749 #endif
9752 main ()
9754 return malloc_get_state ();
9756 return 0;
9758 _ACEOF
9759 rm -f conftest.$ac_objext conftest$ac_exeext
9760 if { (ac_try="$ac_link"
9761 case "(($ac_try" in
9762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9763 *) ac_try_echo=$ac_try;;
9764 esac
9765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9766 (eval "$ac_link") 2>conftest.er1
9767 ac_status=$?
9768 grep -v '^ *+' conftest.er1 >conftest.err
9769 rm -f conftest.er1
9770 cat conftest.err >&5
9771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772 (exit $ac_status); } && {
9773 test -z "$ac_c_werror_flag" ||
9774 test ! -s conftest.err
9775 } && test -s conftest$ac_exeext &&
9776 $as_test_x conftest$ac_exeext; then
9777 ac_cv_func_malloc_get_state=yes
9778 else
9779 echo "$as_me: failed program was:" >&5
9780 sed 's/^/| /' conftest.$ac_ext >&5
9782 ac_cv_func_malloc_get_state=no
9785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9786 conftest$ac_exeext conftest.$ac_ext
9788 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9789 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9790 if test $ac_cv_func_malloc_get_state = yes; then
9792 else
9793 doug_lea_malloc=no
9796 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9797 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9798 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9799 echo $ECHO_N "(cached) $ECHO_C" >&6
9800 else
9801 cat >conftest.$ac_ext <<_ACEOF
9802 /* confdefs.h. */
9803 _ACEOF
9804 cat confdefs.h >>conftest.$ac_ext
9805 cat >>conftest.$ac_ext <<_ACEOF
9806 /* end confdefs.h. */
9807 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9809 #define malloc_set_state innocuous_malloc_set_state
9811 /* System header to define __stub macros and hopefully few prototypes,
9812 which can conflict with char malloc_set_state (); below.
9813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9814 <limits.h> exists even on freestanding compilers. */
9816 #ifdef __STDC__
9817 # include <limits.h>
9818 #else
9819 # include <assert.h>
9820 #endif
9822 #undef malloc_set_state
9824 /* Override any GCC internal prototype to avoid an error.
9825 Use char because int might match the return type of a GCC
9826 builtin and then its argument prototype would still apply. */
9827 #ifdef __cplusplus
9828 extern "C"
9829 #endif
9830 char malloc_set_state ();
9831 /* The GNU C library defines this for functions which it implements
9832 to always fail with ENOSYS. Some functions are actually named
9833 something starting with __ and the normal name is an alias. */
9834 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9835 choke me
9836 #endif
9839 main ()
9841 return malloc_set_state ();
9843 return 0;
9845 _ACEOF
9846 rm -f conftest.$ac_objext conftest$ac_exeext
9847 if { (ac_try="$ac_link"
9848 case "(($ac_try" in
9849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9850 *) ac_try_echo=$ac_try;;
9851 esac
9852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9853 (eval "$ac_link") 2>conftest.er1
9854 ac_status=$?
9855 grep -v '^ *+' conftest.er1 >conftest.err
9856 rm -f conftest.er1
9857 cat conftest.err >&5
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); } && {
9860 test -z "$ac_c_werror_flag" ||
9861 test ! -s conftest.err
9862 } && test -s conftest$ac_exeext &&
9863 $as_test_x conftest$ac_exeext; then
9864 ac_cv_func_malloc_set_state=yes
9865 else
9866 echo "$as_me: failed program was:" >&5
9867 sed 's/^/| /' conftest.$ac_ext >&5
9869 ac_cv_func_malloc_set_state=no
9872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9873 conftest$ac_exeext conftest.$ac_ext
9875 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9876 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9877 if test $ac_cv_func_malloc_set_state = yes; then
9879 else
9880 doug_lea_malloc=no
9883 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9884 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9885 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9886 echo $ECHO_N "(cached) $ECHO_C" >&6
9887 else
9888 cat >conftest.$ac_ext <<_ACEOF
9889 /* confdefs.h. */
9890 _ACEOF
9891 cat confdefs.h >>conftest.$ac_ext
9892 cat >>conftest.$ac_ext <<_ACEOF
9893 /* end confdefs.h. */
9894 extern void (* __after_morecore_hook)();
9896 main ()
9898 __after_morecore_hook = 0
9900 return 0;
9902 _ACEOF
9903 rm -f conftest.$ac_objext conftest$ac_exeext
9904 if { (ac_try="$ac_link"
9905 case "(($ac_try" in
9906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9907 *) ac_try_echo=$ac_try;;
9908 esac
9909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9910 (eval "$ac_link") 2>conftest.er1
9911 ac_status=$?
9912 grep -v '^ *+' conftest.er1 >conftest.err
9913 rm -f conftest.er1
9914 cat conftest.err >&5
9915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 (exit $ac_status); } && {
9917 test -z "$ac_c_werror_flag" ||
9918 test ! -s conftest.err
9919 } && test -s conftest$ac_exeext &&
9920 $as_test_x conftest$ac_exeext; then
9921 emacs_cv_var___after_morecore_hook=yes
9922 else
9923 echo "$as_me: failed program was:" >&5
9924 sed 's/^/| /' conftest.$ac_ext >&5
9926 emacs_cv_var___after_morecore_hook=no
9929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9930 conftest$ac_exeext conftest.$ac_ext
9932 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9933 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9934 if test $emacs_cv_var___after_morecore_hook = no; then
9935 doug_lea_malloc=no
9937 if test "${system_malloc}" = "yes"; then
9938 GNU_MALLOC=no
9939 GNU_MALLOC_reason="
9940 (The GNU allocators don't work with this system configuration.)"
9942 if test "$doug_lea_malloc" = "yes" ; then
9943 if test "$GNU_MALLOC" = yes ; then
9944 GNU_MALLOC_reason="
9945 (Using Doug Lea's new malloc from the GNU C Library.)"
9948 cat >>confdefs.h <<\_ACEOF
9949 #define DOUG_LEA_MALLOC 1
9950 _ACEOF
9954 if test x"${REL_ALLOC}" = x; then
9955 REL_ALLOC=${GNU_MALLOC}
9961 for ac_header in stdlib.h unistd.h
9963 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9965 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9967 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9968 echo $ECHO_N "(cached) $ECHO_C" >&6
9970 ac_res=`eval echo '${'$as_ac_Header'}'`
9971 { echo "$as_me:$LINENO: result: $ac_res" >&5
9972 echo "${ECHO_T}$ac_res" >&6; }
9973 else
9974 # Is the header compilable?
9975 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9976 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9977 cat >conftest.$ac_ext <<_ACEOF
9978 /* confdefs.h. */
9979 _ACEOF
9980 cat confdefs.h >>conftest.$ac_ext
9981 cat >>conftest.$ac_ext <<_ACEOF
9982 /* end confdefs.h. */
9983 $ac_includes_default
9984 #include <$ac_header>
9985 _ACEOF
9986 rm -f conftest.$ac_objext
9987 if { (ac_try="$ac_compile"
9988 case "(($ac_try" in
9989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9990 *) ac_try_echo=$ac_try;;
9991 esac
9992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9993 (eval "$ac_compile") 2>conftest.er1
9994 ac_status=$?
9995 grep -v '^ *+' conftest.er1 >conftest.err
9996 rm -f conftest.er1
9997 cat conftest.err >&5
9998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999 (exit $ac_status); } && {
10000 test -z "$ac_c_werror_flag" ||
10001 test ! -s conftest.err
10002 } && test -s conftest.$ac_objext; then
10003 ac_header_compiler=yes
10004 else
10005 echo "$as_me: failed program was:" >&5
10006 sed 's/^/| /' conftest.$ac_ext >&5
10008 ac_header_compiler=no
10011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10012 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10013 echo "${ECHO_T}$ac_header_compiler" >&6; }
10015 # Is the header present?
10016 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10017 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10018 cat >conftest.$ac_ext <<_ACEOF
10019 /* confdefs.h. */
10020 _ACEOF
10021 cat confdefs.h >>conftest.$ac_ext
10022 cat >>conftest.$ac_ext <<_ACEOF
10023 /* end confdefs.h. */
10024 #include <$ac_header>
10025 _ACEOF
10026 if { (ac_try="$ac_cpp conftest.$ac_ext"
10027 case "(($ac_try" in
10028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10029 *) ac_try_echo=$ac_try;;
10030 esac
10031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10032 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10033 ac_status=$?
10034 grep -v '^ *+' conftest.er1 >conftest.err
10035 rm -f conftest.er1
10036 cat conftest.err >&5
10037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); } >/dev/null && {
10039 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10040 test ! -s conftest.err
10041 }; then
10042 ac_header_preproc=yes
10043 else
10044 echo "$as_me: failed program was:" >&5
10045 sed 's/^/| /' conftest.$ac_ext >&5
10047 ac_header_preproc=no
10050 rm -f conftest.err conftest.$ac_ext
10051 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10052 echo "${ECHO_T}$ac_header_preproc" >&6; }
10054 # So? What about this header?
10055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10056 yes:no: )
10057 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10058 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10059 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10060 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10061 ac_header_preproc=yes
10063 no:yes:* )
10064 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10065 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10066 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10067 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10068 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10069 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10070 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10071 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10072 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10073 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10074 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10075 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10078 esac
10079 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10082 echo $ECHO_N "(cached) $ECHO_C" >&6
10083 else
10084 eval "$as_ac_Header=\$ac_header_preproc"
10086 ac_res=`eval echo '${'$as_ac_Header'}'`
10087 { echo "$as_me:$LINENO: result: $ac_res" >&5
10088 echo "${ECHO_T}$ac_res" >&6; }
10091 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10092 cat >>confdefs.h <<_ACEOF
10093 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10094 _ACEOF
10098 done
10101 for ac_func in getpagesize
10103 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10104 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10105 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10106 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10107 echo $ECHO_N "(cached) $ECHO_C" >&6
10108 else
10109 cat >conftest.$ac_ext <<_ACEOF
10110 /* confdefs.h. */
10111 _ACEOF
10112 cat confdefs.h >>conftest.$ac_ext
10113 cat >>conftest.$ac_ext <<_ACEOF
10114 /* end confdefs.h. */
10115 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10116 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10117 #define $ac_func innocuous_$ac_func
10119 /* System header to define __stub macros and hopefully few prototypes,
10120 which can conflict with char $ac_func (); below.
10121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10122 <limits.h> exists even on freestanding compilers. */
10124 #ifdef __STDC__
10125 # include <limits.h>
10126 #else
10127 # include <assert.h>
10128 #endif
10130 #undef $ac_func
10132 /* Override any GCC internal prototype to avoid an error.
10133 Use char because int might match the return type of a GCC
10134 builtin and then its argument prototype would still apply. */
10135 #ifdef __cplusplus
10136 extern "C"
10137 #endif
10138 char $ac_func ();
10139 /* The GNU C library defines this for functions which it implements
10140 to always fail with ENOSYS. Some functions are actually named
10141 something starting with __ and the normal name is an alias. */
10142 #if defined __stub_$ac_func || defined __stub___$ac_func
10143 choke me
10144 #endif
10147 main ()
10149 return $ac_func ();
10151 return 0;
10153 _ACEOF
10154 rm -f conftest.$ac_objext conftest$ac_exeext
10155 if { (ac_try="$ac_link"
10156 case "(($ac_try" in
10157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10158 *) ac_try_echo=$ac_try;;
10159 esac
10160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10161 (eval "$ac_link") 2>conftest.er1
10162 ac_status=$?
10163 grep -v '^ *+' conftest.er1 >conftest.err
10164 rm -f conftest.er1
10165 cat conftest.err >&5
10166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167 (exit $ac_status); } && {
10168 test -z "$ac_c_werror_flag" ||
10169 test ! -s conftest.err
10170 } && test -s conftest$ac_exeext &&
10171 $as_test_x conftest$ac_exeext; then
10172 eval "$as_ac_var=yes"
10173 else
10174 echo "$as_me: failed program was:" >&5
10175 sed 's/^/| /' conftest.$ac_ext >&5
10177 eval "$as_ac_var=no"
10180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10181 conftest$ac_exeext conftest.$ac_ext
10183 ac_res=`eval echo '${'$as_ac_var'}'`
10184 { echo "$as_me:$LINENO: result: $ac_res" >&5
10185 echo "${ECHO_T}$ac_res" >&6; }
10186 if test `eval echo '${'$as_ac_var'}'` = yes; then
10187 cat >>confdefs.h <<_ACEOF
10188 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10189 _ACEOF
10192 done
10194 { echo "$as_me:$LINENO: checking for working mmap" >&5
10195 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10196 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10197 echo $ECHO_N "(cached) $ECHO_C" >&6
10198 else
10199 if test "$cross_compiling" = yes; then
10200 ac_cv_func_mmap_fixed_mapped=no
10201 else
10202 cat >conftest.$ac_ext <<_ACEOF
10203 /* confdefs.h. */
10204 _ACEOF
10205 cat confdefs.h >>conftest.$ac_ext
10206 cat >>conftest.$ac_ext <<_ACEOF
10207 /* end confdefs.h. */
10208 $ac_includes_default
10209 /* malloc might have been renamed as rpl_malloc. */
10210 #undef malloc
10212 /* Thanks to Mike Haertel and Jim Avera for this test.
10213 Here is a matrix of mmap possibilities:
10214 mmap private not fixed
10215 mmap private fixed at somewhere currently unmapped
10216 mmap private fixed at somewhere already mapped
10217 mmap shared not fixed
10218 mmap shared fixed at somewhere currently unmapped
10219 mmap shared fixed at somewhere already mapped
10220 For private mappings, we should verify that changes cannot be read()
10221 back from the file, nor mmap's back from the file at a different
10222 address. (There have been systems where private was not correctly
10223 implemented like the infamous i386 svr4.0, and systems where the
10224 VM page cache was not coherent with the file system buffer cache
10225 like early versions of FreeBSD and possibly contemporary NetBSD.)
10226 For shared mappings, we should conversely verify that changes get
10227 propagated back to all the places they're supposed to be.
10229 Grep wants private fixed already mapped.
10230 The main things grep needs to know about mmap are:
10231 * does it exist and is it safe to write into the mmap'd area
10232 * how to use it (BSD variants) */
10234 #include <fcntl.h>
10235 #include <sys/mman.h>
10237 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10238 char *malloc ();
10239 #endif
10241 /* This mess was copied from the GNU getpagesize.h. */
10242 #ifndef HAVE_GETPAGESIZE
10243 /* Assume that all systems that can run configure have sys/param.h. */
10244 # ifndef HAVE_SYS_PARAM_H
10245 # define HAVE_SYS_PARAM_H 1
10246 # endif
10248 # ifdef _SC_PAGESIZE
10249 # define getpagesize() sysconf(_SC_PAGESIZE)
10250 # else /* no _SC_PAGESIZE */
10251 # ifdef HAVE_SYS_PARAM_H
10252 # include <sys/param.h>
10253 # ifdef EXEC_PAGESIZE
10254 # define getpagesize() EXEC_PAGESIZE
10255 # else /* no EXEC_PAGESIZE */
10256 # ifdef NBPG
10257 # define getpagesize() NBPG * CLSIZE
10258 # ifndef CLSIZE
10259 # define CLSIZE 1
10260 # endif /* no CLSIZE */
10261 # else /* no NBPG */
10262 # ifdef NBPC
10263 # define getpagesize() NBPC
10264 # else /* no NBPC */
10265 # ifdef PAGESIZE
10266 # define getpagesize() PAGESIZE
10267 # endif /* PAGESIZE */
10268 # endif /* no NBPC */
10269 # endif /* no NBPG */
10270 # endif /* no EXEC_PAGESIZE */
10271 # else /* no HAVE_SYS_PARAM_H */
10272 # define getpagesize() 8192 /* punt totally */
10273 # endif /* no HAVE_SYS_PARAM_H */
10274 # endif /* no _SC_PAGESIZE */
10276 #endif /* no HAVE_GETPAGESIZE */
10279 main ()
10281 char *data, *data2, *data3;
10282 int i, pagesize;
10283 int fd;
10285 pagesize = getpagesize ();
10287 /* First, make a file with some known garbage in it. */
10288 data = (char *) malloc (pagesize);
10289 if (!data)
10290 return 1;
10291 for (i = 0; i < pagesize; ++i)
10292 *(data + i) = rand ();
10293 umask (0);
10294 fd = creat ("conftest.mmap", 0600);
10295 if (fd < 0)
10296 return 1;
10297 if (write (fd, data, pagesize) != pagesize)
10298 return 1;
10299 close (fd);
10301 /* Next, try to mmap the file at a fixed address which already has
10302 something else allocated at it. If we can, also make sure that
10303 we see the same garbage. */
10304 fd = open ("conftest.mmap", O_RDWR);
10305 if (fd < 0)
10306 return 1;
10307 data2 = (char *) malloc (2 * pagesize);
10308 if (!data2)
10309 return 1;
10310 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10311 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10312 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10313 return 1;
10314 for (i = 0; i < pagesize; ++i)
10315 if (*(data + i) != *(data2 + i))
10316 return 1;
10318 /* Finally, make sure that changes to the mapped area do not
10319 percolate back to the file as seen by read(). (This is a bug on
10320 some variants of i386 svr4.0.) */
10321 for (i = 0; i < pagesize; ++i)
10322 *(data2 + i) = *(data2 + i) + 1;
10323 data3 = (char *) malloc (pagesize);
10324 if (!data3)
10325 return 1;
10326 if (read (fd, data3, pagesize) != pagesize)
10327 return 1;
10328 for (i = 0; i < pagesize; ++i)
10329 if (*(data + i) != *(data3 + i))
10330 return 1;
10331 close (fd);
10332 return 0;
10334 _ACEOF
10335 rm -f conftest$ac_exeext
10336 if { (ac_try="$ac_link"
10337 case "(($ac_try" in
10338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10339 *) ac_try_echo=$ac_try;;
10340 esac
10341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10342 (eval "$ac_link") 2>&5
10343 ac_status=$?
10344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10346 { (case "(($ac_try" in
10347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10348 *) ac_try_echo=$ac_try;;
10349 esac
10350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10351 (eval "$ac_try") 2>&5
10352 ac_status=$?
10353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354 (exit $ac_status); }; }; then
10355 ac_cv_func_mmap_fixed_mapped=yes
10356 else
10357 echo "$as_me: program exited with status $ac_status" >&5
10358 echo "$as_me: failed program was:" >&5
10359 sed 's/^/| /' conftest.$ac_ext >&5
10361 ( exit $ac_status )
10362 ac_cv_func_mmap_fixed_mapped=no
10364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10369 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10370 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10371 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10373 cat >>confdefs.h <<\_ACEOF
10374 #define HAVE_MMAP 1
10375 _ACEOF
10378 rm -f conftest.mmap
10380 if test $use_mmap_for_buffers = yes; then
10381 REL_ALLOC=no
10384 LIBS="$libsrc_libs $LIBS"
10387 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10388 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10389 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10390 echo $ECHO_N "(cached) $ECHO_C" >&6
10391 else
10392 ac_check_lib_save_LIBS=$LIBS
10393 LIBS="-ldnet $LIBS"
10394 cat >conftest.$ac_ext <<_ACEOF
10395 /* confdefs.h. */
10396 _ACEOF
10397 cat confdefs.h >>conftest.$ac_ext
10398 cat >>conftest.$ac_ext <<_ACEOF
10399 /* end confdefs.h. */
10401 /* Override any GCC internal prototype to avoid an error.
10402 Use char because int might match the return type of a GCC
10403 builtin and then its argument prototype would still apply. */
10404 #ifdef __cplusplus
10405 extern "C"
10406 #endif
10407 char dnet_ntoa ();
10409 main ()
10411 return dnet_ntoa ();
10413 return 0;
10415 _ACEOF
10416 rm -f conftest.$ac_objext conftest$ac_exeext
10417 if { (ac_try="$ac_link"
10418 case "(($ac_try" in
10419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10420 *) ac_try_echo=$ac_try;;
10421 esac
10422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10423 (eval "$ac_link") 2>conftest.er1
10424 ac_status=$?
10425 grep -v '^ *+' conftest.er1 >conftest.err
10426 rm -f conftest.er1
10427 cat conftest.err >&5
10428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429 (exit $ac_status); } && {
10430 test -z "$ac_c_werror_flag" ||
10431 test ! -s conftest.err
10432 } && test -s conftest$ac_exeext &&
10433 $as_test_x conftest$ac_exeext; then
10434 ac_cv_lib_dnet_dnet_ntoa=yes
10435 else
10436 echo "$as_me: failed program was:" >&5
10437 sed 's/^/| /' conftest.$ac_ext >&5
10439 ac_cv_lib_dnet_dnet_ntoa=no
10442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10443 conftest$ac_exeext conftest.$ac_ext
10444 LIBS=$ac_check_lib_save_LIBS
10446 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10447 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10448 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10449 cat >>confdefs.h <<_ACEOF
10450 #define HAVE_LIBDNET 1
10451 _ACEOF
10453 LIBS="-ldnet $LIBS"
10458 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10459 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10460 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10461 echo $ECHO_N "(cached) $ECHO_C" >&6
10462 else
10463 ac_check_lib_save_LIBS=$LIBS
10464 LIBS="-lXbsd $LIBS"
10465 cat >conftest.$ac_ext <<_ACEOF
10466 /* confdefs.h. */
10467 _ACEOF
10468 cat confdefs.h >>conftest.$ac_ext
10469 cat >>conftest.$ac_ext <<_ACEOF
10470 /* end confdefs.h. */
10474 main ()
10476 return main ();
10478 return 0;
10480 _ACEOF
10481 rm -f conftest.$ac_objext conftest$ac_exeext
10482 if { (ac_try="$ac_link"
10483 case "(($ac_try" in
10484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10485 *) ac_try_echo=$ac_try;;
10486 esac
10487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10488 (eval "$ac_link") 2>conftest.er1
10489 ac_status=$?
10490 grep -v '^ *+' conftest.er1 >conftest.err
10491 rm -f conftest.er1
10492 cat conftest.err >&5
10493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494 (exit $ac_status); } && {
10495 test -z "$ac_c_werror_flag" ||
10496 test ! -s conftest.err
10497 } && test -s conftest$ac_exeext &&
10498 $as_test_x conftest$ac_exeext; then
10499 ac_cv_lib_Xbsd_main=yes
10500 else
10501 echo "$as_me: failed program was:" >&5
10502 sed 's/^/| /' conftest.$ac_ext >&5
10504 ac_cv_lib_Xbsd_main=no
10507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10508 conftest$ac_exeext conftest.$ac_ext
10509 LIBS=$ac_check_lib_save_LIBS
10511 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10512 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10513 if test $ac_cv_lib_Xbsd_main = yes; then
10514 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10519 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10520 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10521 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10522 echo $ECHO_N "(cached) $ECHO_C" >&6
10523 else
10524 ac_check_lib_save_LIBS=$LIBS
10525 LIBS="-lpthreads $LIBS"
10526 cat >conftest.$ac_ext <<_ACEOF
10527 /* confdefs.h. */
10528 _ACEOF
10529 cat confdefs.h >>conftest.$ac_ext
10530 cat >>conftest.$ac_ext <<_ACEOF
10531 /* end confdefs.h. */
10533 /* Override any GCC internal prototype to avoid an error.
10534 Use char because int might match the return type of a GCC
10535 builtin and then its argument prototype would still apply. */
10536 #ifdef __cplusplus
10537 extern "C"
10538 #endif
10539 char cma_open ();
10541 main ()
10543 return cma_open ();
10545 return 0;
10547 _ACEOF
10548 rm -f conftest.$ac_objext conftest$ac_exeext
10549 if { (ac_try="$ac_link"
10550 case "(($ac_try" in
10551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10552 *) ac_try_echo=$ac_try;;
10553 esac
10554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10555 (eval "$ac_link") 2>conftest.er1
10556 ac_status=$?
10557 grep -v '^ *+' conftest.er1 >conftest.err
10558 rm -f conftest.er1
10559 cat conftest.err >&5
10560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561 (exit $ac_status); } && {
10562 test -z "$ac_c_werror_flag" ||
10563 test ! -s conftest.err
10564 } && test -s conftest$ac_exeext &&
10565 $as_test_x conftest$ac_exeext; then
10566 ac_cv_lib_pthreads_cma_open=yes
10567 else
10568 echo "$as_me: failed program was:" >&5
10569 sed 's/^/| /' conftest.$ac_ext >&5
10571 ac_cv_lib_pthreads_cma_open=no
10574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10575 conftest$ac_exeext conftest.$ac_ext
10576 LIBS=$ac_check_lib_save_LIBS
10578 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10579 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10580 if test $ac_cv_lib_pthreads_cma_open = yes; then
10581 cat >>confdefs.h <<_ACEOF
10582 #define HAVE_LIBPTHREADS 1
10583 _ACEOF
10585 LIBS="-lpthreads $LIBS"
10590 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10591 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10592 if test -d /usr/X386/include; then
10593 HAVE_XFREE386=yes
10594 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10595 else
10596 HAVE_XFREE386=no
10598 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10599 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10602 case ${host_os} in
10603 aix*)
10604 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10605 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10606 if test "${gdb_cv_bigtoc+set}" = set; then
10607 echo $ECHO_N "(cached) $ECHO_C" >&6
10608 else
10610 case $GCC in
10611 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10612 *) gdb_cv_bigtoc=-bbigtoc ;;
10613 esac
10615 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10616 cat >conftest.$ac_ext <<_ACEOF
10617 /* confdefs.h. */
10618 _ACEOF
10619 cat confdefs.h >>conftest.$ac_ext
10620 cat >>conftest.$ac_ext <<_ACEOF
10621 /* end confdefs.h. */
10624 main ()
10626 int i;
10628 return 0;
10630 _ACEOF
10631 rm -f conftest.$ac_objext conftest$ac_exeext
10632 if { (ac_try="$ac_link"
10633 case "(($ac_try" in
10634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10635 *) ac_try_echo=$ac_try;;
10636 esac
10637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10638 (eval "$ac_link") 2>conftest.er1
10639 ac_status=$?
10640 grep -v '^ *+' conftest.er1 >conftest.err
10641 rm -f conftest.er1
10642 cat conftest.err >&5
10643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644 (exit $ac_status); } && {
10645 test -z "$ac_c_werror_flag" ||
10646 test ! -s conftest.err
10647 } && test -s conftest$ac_exeext &&
10648 $as_test_x conftest$ac_exeext; then
10650 else
10651 echo "$as_me: failed program was:" >&5
10652 sed 's/^/| /' conftest.$ac_ext >&5
10654 gdb_cv_bigtoc=
10657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10658 conftest$ac_exeext conftest.$ac_ext
10661 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10662 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10664 esac
10666 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10667 # used for the tests that follow. We set them back to REAL_CFLAGS and
10668 # REAL_CPPFLAGS later on.
10670 REAL_CPPFLAGS="$CPPFLAGS"
10672 if test "${HAVE_X11}" = "yes"; then
10673 DEFS="$C_SWITCH_X_SITE $DEFS"
10674 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10675 LIBS="$LIBX $LIBS"
10676 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10677 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10679 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10680 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10681 # but it's more convenient here to set LD_RUN_PATH
10682 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10683 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10684 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10685 export LD_RUN_PATH
10688 if test "${opsys}" = "gnu-linux"; then
10689 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10690 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10691 cat >conftest.$ac_ext <<_ACEOF
10692 /* confdefs.h. */
10693 _ACEOF
10694 cat confdefs.h >>conftest.$ac_ext
10695 cat >>conftest.$ac_ext <<_ACEOF
10696 /* end confdefs.h. */
10699 main ()
10701 XOpenDisplay ("foo");
10703 return 0;
10705 _ACEOF
10706 rm -f conftest.$ac_objext conftest$ac_exeext
10707 if { (ac_try="$ac_link"
10708 case "(($ac_try" in
10709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10710 *) ac_try_echo=$ac_try;;
10711 esac
10712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10713 (eval "$ac_link") 2>conftest.er1
10714 ac_status=$?
10715 grep -v '^ *+' conftest.er1 >conftest.err
10716 rm -f conftest.er1
10717 cat conftest.err >&5
10718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719 (exit $ac_status); } && {
10720 test -z "$ac_c_werror_flag" ||
10721 test ! -s conftest.err
10722 } && test -s conftest$ac_exeext &&
10723 $as_test_x conftest$ac_exeext; then
10724 xlinux_first_failure=no
10725 else
10726 echo "$as_me: failed program was:" >&5
10727 sed 's/^/| /' conftest.$ac_ext >&5
10729 xlinux_first_failure=yes
10732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10733 conftest$ac_exeext conftest.$ac_ext
10734 if test "${xlinux_first_failure}" = "yes"; then
10735 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10736 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10737 OLD_CPPFLAGS="$CPPFLAGS"
10738 OLD_LIBS="$LIBS"
10739 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10740 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10741 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10742 LIBS="$LIBS -b i486-linuxaout"
10743 cat >conftest.$ac_ext <<_ACEOF
10744 /* confdefs.h. */
10745 _ACEOF
10746 cat confdefs.h >>conftest.$ac_ext
10747 cat >>conftest.$ac_ext <<_ACEOF
10748 /* end confdefs.h. */
10751 main ()
10753 XOpenDisplay ("foo");
10755 return 0;
10757 _ACEOF
10758 rm -f conftest.$ac_objext conftest$ac_exeext
10759 if { (ac_try="$ac_link"
10760 case "(($ac_try" in
10761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10762 *) ac_try_echo=$ac_try;;
10763 esac
10764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10765 (eval "$ac_link") 2>conftest.er1
10766 ac_status=$?
10767 grep -v '^ *+' conftest.er1 >conftest.err
10768 rm -f conftest.er1
10769 cat conftest.err >&5
10770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771 (exit $ac_status); } && {
10772 test -z "$ac_c_werror_flag" ||
10773 test ! -s conftest.err
10774 } && test -s conftest$ac_exeext &&
10775 $as_test_x conftest$ac_exeext; then
10776 xlinux_second_failure=no
10777 else
10778 echo "$as_me: failed program was:" >&5
10779 sed 's/^/| /' conftest.$ac_ext >&5
10781 xlinux_second_failure=yes
10784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10785 conftest$ac_exeext conftest.$ac_ext
10786 if test "${xlinux_second_failure}" = "yes"; then
10787 # If we get the same failure with -b, there is no use adding -b.
10788 # So take it out. This plays safe.
10789 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10790 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10791 CPPFLAGS="$OLD_CPPFLAGS"
10792 LIBS="$OLD_LIBS"
10793 { echo "$as_me:$LINENO: result: no" >&5
10794 echo "${ECHO_T}no" >&6; }
10795 else
10796 { echo "$as_me:$LINENO: result: yes" >&5
10797 echo "${ECHO_T}yes" >&6; }
10799 else
10800 { echo "$as_me:$LINENO: result: no" >&5
10801 echo "${ECHO_T}no" >&6; }
10805 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10806 # header files included from there.
10807 { echo "$as_me:$LINENO: checking for Xkb" >&5
10808 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10809 cat >conftest.$ac_ext <<_ACEOF
10810 /* confdefs.h. */
10811 _ACEOF
10812 cat confdefs.h >>conftest.$ac_ext
10813 cat >>conftest.$ac_ext <<_ACEOF
10814 /* end confdefs.h. */
10815 #include <X11/Xlib.h>
10816 #include <X11/XKBlib.h>
10818 main ()
10820 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10822 return 0;
10824 _ACEOF
10825 rm -f conftest.$ac_objext conftest$ac_exeext
10826 if { (ac_try="$ac_link"
10827 case "(($ac_try" in
10828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10829 *) ac_try_echo=$ac_try;;
10830 esac
10831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10832 (eval "$ac_link") 2>conftest.er1
10833 ac_status=$?
10834 grep -v '^ *+' conftest.er1 >conftest.err
10835 rm -f conftest.er1
10836 cat conftest.err >&5
10837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838 (exit $ac_status); } && {
10839 test -z "$ac_c_werror_flag" ||
10840 test ! -s conftest.err
10841 } && test -s conftest$ac_exeext &&
10842 $as_test_x conftest$ac_exeext; then
10843 emacs_xkb=yes
10844 else
10845 echo "$as_me: failed program was:" >&5
10846 sed 's/^/| /' conftest.$ac_ext >&5
10848 emacs_xkb=no
10851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10852 conftest$ac_exeext conftest.$ac_ext
10853 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10854 echo "${ECHO_T}$emacs_xkb" >&6; }
10855 if test $emacs_xkb = yes; then
10857 cat >>confdefs.h <<\_ACEOF
10858 #define HAVE_XKBGETKEYBOARD 1
10859 _ACEOF
10867 for ac_func in XrmSetDatabase XScreenResourceString \
10868 XScreenNumberOfScreen XSetWMProtocols
10870 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10871 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10873 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10874 echo $ECHO_N "(cached) $ECHO_C" >&6
10875 else
10876 cat >conftest.$ac_ext <<_ACEOF
10877 /* confdefs.h. */
10878 _ACEOF
10879 cat confdefs.h >>conftest.$ac_ext
10880 cat >>conftest.$ac_ext <<_ACEOF
10881 /* end confdefs.h. */
10882 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10884 #define $ac_func innocuous_$ac_func
10886 /* System header to define __stub macros and hopefully few prototypes,
10887 which can conflict with char $ac_func (); below.
10888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10889 <limits.h> exists even on freestanding compilers. */
10891 #ifdef __STDC__
10892 # include <limits.h>
10893 #else
10894 # include <assert.h>
10895 #endif
10897 #undef $ac_func
10899 /* Override any GCC internal prototype to avoid an error.
10900 Use char because int might match the return type of a GCC
10901 builtin and then its argument prototype would still apply. */
10902 #ifdef __cplusplus
10903 extern "C"
10904 #endif
10905 char $ac_func ();
10906 /* The GNU C library defines this for functions which it implements
10907 to always fail with ENOSYS. Some functions are actually named
10908 something starting with __ and the normal name is an alias. */
10909 #if defined __stub_$ac_func || defined __stub___$ac_func
10910 choke me
10911 #endif
10914 main ()
10916 return $ac_func ();
10918 return 0;
10920 _ACEOF
10921 rm -f conftest.$ac_objext conftest$ac_exeext
10922 if { (ac_try="$ac_link"
10923 case "(($ac_try" in
10924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10925 *) ac_try_echo=$ac_try;;
10926 esac
10927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10928 (eval "$ac_link") 2>conftest.er1
10929 ac_status=$?
10930 grep -v '^ *+' conftest.er1 >conftest.err
10931 rm -f conftest.er1
10932 cat conftest.err >&5
10933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934 (exit $ac_status); } && {
10935 test -z "$ac_c_werror_flag" ||
10936 test ! -s conftest.err
10937 } && test -s conftest$ac_exeext &&
10938 $as_test_x conftest$ac_exeext; then
10939 eval "$as_ac_var=yes"
10940 else
10941 echo "$as_me: failed program was:" >&5
10942 sed 's/^/| /' conftest.$ac_ext >&5
10944 eval "$as_ac_var=no"
10947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10948 conftest$ac_exeext conftest.$ac_ext
10950 ac_res=`eval echo '${'$as_ac_var'}'`
10951 { echo "$as_me:$LINENO: result: $ac_res" >&5
10952 echo "${ECHO_T}$ac_res" >&6; }
10953 if test `eval echo '${'$as_ac_var'}'` = yes; then
10954 cat >>confdefs.h <<_ACEOF
10955 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10956 _ACEOF
10959 done
10963 if test "${window_system}" = "x11"; then
10964 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10965 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10966 if test "${emacs_cv_x11_version_6+set}" = set; then
10967 echo $ECHO_N "(cached) $ECHO_C" >&6
10968 else
10969 cat >conftest.$ac_ext <<_ACEOF
10970 /* confdefs.h. */
10971 _ACEOF
10972 cat confdefs.h >>conftest.$ac_ext
10973 cat >>conftest.$ac_ext <<_ACEOF
10974 /* end confdefs.h. */
10975 #include <X11/Xlib.h>
10977 main ()
10979 #if XlibSpecificationRelease < 6
10980 fail;
10981 #endif
10984 return 0;
10986 _ACEOF
10987 rm -f conftest.$ac_objext conftest$ac_exeext
10988 if { (ac_try="$ac_link"
10989 case "(($ac_try" in
10990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10991 *) ac_try_echo=$ac_try;;
10992 esac
10993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10994 (eval "$ac_link") 2>conftest.er1
10995 ac_status=$?
10996 grep -v '^ *+' conftest.er1 >conftest.err
10997 rm -f conftest.er1
10998 cat conftest.err >&5
10999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 (exit $ac_status); } && {
11001 test -z "$ac_c_werror_flag" ||
11002 test ! -s conftest.err
11003 } && test -s conftest$ac_exeext &&
11004 $as_test_x conftest$ac_exeext; then
11005 emacs_cv_x11_version_6=yes
11006 else
11007 echo "$as_me: failed program was:" >&5
11008 sed 's/^/| /' conftest.$ac_ext >&5
11010 emacs_cv_x11_version_6=no
11013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11014 conftest$ac_exeext conftest.$ac_ext
11017 if test $emacs_cv_x11_version_6 = yes; then
11018 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11019 echo "${ECHO_T}6 or newer" >&6; }
11021 cat >>confdefs.h <<\_ACEOF
11022 #define HAVE_X11R6 1
11023 _ACEOF
11025 else
11026 { echo "$as_me:$LINENO: result: before 6" >&5
11027 echo "${ECHO_T}before 6" >&6; }
11031 if test "${window_system}" = "x11"; then
11032 { echo "$as_me:$LINENO: checking X11 version 5" >&5
11033 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
11034 if test "${emacs_cv_x11_version_5+set}" = set; then
11035 echo $ECHO_N "(cached) $ECHO_C" >&6
11036 else
11037 cat >conftest.$ac_ext <<_ACEOF
11038 /* confdefs.h. */
11039 _ACEOF
11040 cat confdefs.h >>conftest.$ac_ext
11041 cat >>conftest.$ac_ext <<_ACEOF
11042 /* end confdefs.h. */
11043 #include <X11/Xlib.h>
11045 main ()
11047 #if XlibSpecificationRelease < 5
11048 fail;
11049 #endif
11052 return 0;
11054 _ACEOF
11055 rm -f conftest.$ac_objext conftest$ac_exeext
11056 if { (ac_try="$ac_link"
11057 case "(($ac_try" in
11058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11059 *) ac_try_echo=$ac_try;;
11060 esac
11061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11062 (eval "$ac_link") 2>conftest.er1
11063 ac_status=$?
11064 grep -v '^ *+' conftest.er1 >conftest.err
11065 rm -f conftest.er1
11066 cat conftest.err >&5
11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); } && {
11069 test -z "$ac_c_werror_flag" ||
11070 test ! -s conftest.err
11071 } && test -s conftest$ac_exeext &&
11072 $as_test_x conftest$ac_exeext; then
11073 emacs_cv_x11_version_5=yes
11074 else
11075 echo "$as_me: failed program was:" >&5
11076 sed 's/^/| /' conftest.$ac_ext >&5
11078 emacs_cv_x11_version_5=no
11081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11082 conftest$ac_exeext conftest.$ac_ext
11085 if test $emacs_cv_x11_version_5 = yes; then
11086 { echo "$as_me:$LINENO: result: 5 or newer" >&5
11087 echo "${ECHO_T}5 or newer" >&6; }
11088 HAVE_X11R5=yes
11090 cat >>confdefs.h <<\_ACEOF
11091 #define HAVE_X11R5 1
11092 _ACEOF
11094 else
11095 HAVE_X11R5=no
11096 { echo "$as_me:$LINENO: result: before 5" >&5
11097 echo "${ECHO_T}before 5" >&6; }
11101 HAVE_GTK=no
11102 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
11103 USE_X_TOOLKIT=none
11105 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk" || \
11106 test "$USE_X_TOOLKIT" = "maybe"; then
11107 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
11108 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
11109 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
11110 { (exit 1); exit 1; }; };
11112 GLIB_REQUIRED=2.4
11113 GTK_REQUIRED=2.4
11114 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11116 if test "X${with_pkg_config_prog}" != X; then
11117 PKG_CONFIG="${with_pkg_config_prog}"
11120 succeeded=no
11122 if test -z "$PKG_CONFIG"; then
11123 # Extract the first word of "pkg-config", so it can be a program name with args.
11124 set dummy pkg-config; ac_word=$2
11125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11127 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11128 echo $ECHO_N "(cached) $ECHO_C" >&6
11129 else
11130 case $PKG_CONFIG in
11131 [\\/]* | ?:[\\/]*)
11132 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11136 for as_dir in $PATH
11138 IFS=$as_save_IFS
11139 test -z "$as_dir" && as_dir=.
11140 for ac_exec_ext in '' $ac_executable_extensions; do
11141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11142 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11144 break 2
11146 done
11147 done
11148 IFS=$as_save_IFS
11150 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11152 esac
11154 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11155 if test -n "$PKG_CONFIG"; then
11156 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11157 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11158 else
11159 { echo "$as_me:$LINENO: result: no" >&5
11160 echo "${ECHO_T}no" >&6; }
11166 if test "$PKG_CONFIG" = "no" ; then
11167 pkg_check_gtk=no
11168 else
11169 PKG_CONFIG_MIN_VERSION=0.9.0
11170 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11171 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11172 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11174 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11175 { echo "$as_me:$LINENO: result: yes" >&5
11176 echo "${ECHO_T}yes" >&6; }
11177 succeeded=yes
11179 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11180 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11181 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11182 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11183 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11185 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11186 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11187 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11188 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11189 echo "${ECHO_T}$GTK_LIBS" >&6; }
11190 else
11191 { echo "$as_me:$LINENO: result: no" >&5
11192 echo "${ECHO_T}no" >&6; }
11193 GTK_CFLAGS=""
11194 GTK_LIBS=""
11195 ## If we have a custom action on failure, don't print errors, but
11196 ## do set a variable so people can do so.
11197 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11203 else
11204 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11205 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11209 if test $succeeded = yes; then
11210 pkg_check_gtk=yes
11211 else
11212 pkg_check_gtk=no
11215 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11216 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11217 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11218 { (exit 1); exit 1; }; }
11223 if test x"$pkg_check_gtk" = xyes; then
11227 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11228 CFLAGS="$CFLAGS $GTK_CFLAGS"
11229 LIBS="$GTK_LIBS $LIBS"
11230 GTK_COMPILES=no
11232 for ac_func in gtk_main
11234 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11235 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11236 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11237 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11238 echo $ECHO_N "(cached) $ECHO_C" >&6
11239 else
11240 cat >conftest.$ac_ext <<_ACEOF
11241 /* confdefs.h. */
11242 _ACEOF
11243 cat confdefs.h >>conftest.$ac_ext
11244 cat >>conftest.$ac_ext <<_ACEOF
11245 /* end confdefs.h. */
11246 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11248 #define $ac_func innocuous_$ac_func
11250 /* System header to define __stub macros and hopefully few prototypes,
11251 which can conflict with char $ac_func (); below.
11252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11253 <limits.h> exists even on freestanding compilers. */
11255 #ifdef __STDC__
11256 # include <limits.h>
11257 #else
11258 # include <assert.h>
11259 #endif
11261 #undef $ac_func
11263 /* Override any GCC internal prototype to avoid an error.
11264 Use char because int might match the return type of a GCC
11265 builtin and then its argument prototype would still apply. */
11266 #ifdef __cplusplus
11267 extern "C"
11268 #endif
11269 char $ac_func ();
11270 /* The GNU C library defines this for functions which it implements
11271 to always fail with ENOSYS. Some functions are actually named
11272 something starting with __ and the normal name is an alias. */
11273 #if defined __stub_$ac_func || defined __stub___$ac_func
11274 choke me
11275 #endif
11278 main ()
11280 return $ac_func ();
11282 return 0;
11284 _ACEOF
11285 rm -f conftest.$ac_objext conftest$ac_exeext
11286 if { (ac_try="$ac_link"
11287 case "(($ac_try" in
11288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11289 *) ac_try_echo=$ac_try;;
11290 esac
11291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11292 (eval "$ac_link") 2>conftest.er1
11293 ac_status=$?
11294 grep -v '^ *+' conftest.er1 >conftest.err
11295 rm -f conftest.er1
11296 cat conftest.err >&5
11297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298 (exit $ac_status); } && {
11299 test -z "$ac_c_werror_flag" ||
11300 test ! -s conftest.err
11301 } && test -s conftest$ac_exeext &&
11302 $as_test_x conftest$ac_exeext; then
11303 eval "$as_ac_var=yes"
11304 else
11305 echo "$as_me: failed program was:" >&5
11306 sed 's/^/| /' conftest.$ac_ext >&5
11308 eval "$as_ac_var=no"
11311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11312 conftest$ac_exeext conftest.$ac_ext
11314 ac_res=`eval echo '${'$as_ac_var'}'`
11315 { echo "$as_me:$LINENO: result: $ac_res" >&5
11316 echo "${ECHO_T}$ac_res" >&6; }
11317 if test `eval echo '${'$as_ac_var'}'` = yes; then
11318 cat >>confdefs.h <<_ACEOF
11319 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11320 _ACEOF
11321 GTK_COMPILES=yes
11323 done
11325 if test "${GTK_COMPILES}" != "yes"; then
11326 if test "$USE_X_TOOLKIT" != "maybe"; then
11327 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11328 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11329 { (exit 1); exit 1; }; };
11331 else
11332 HAVE_GTK=yes
11334 cat >>confdefs.h <<\_ACEOF
11335 #define HAVE_GTK 1
11336 _ACEOF
11338 USE_X_TOOLKIT=none
11344 if test "${HAVE_GTK}" = "yes"; then
11346 if test "$with_toolkit_scroll_bars" != no; then
11347 with_toolkit_scroll_bars=yes
11350 HAVE_GTK_MULTIDISPLAY=no
11352 for ac_func in gdk_display_open
11354 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11355 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11356 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11357 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11358 echo $ECHO_N "(cached) $ECHO_C" >&6
11359 else
11360 cat >conftest.$ac_ext <<_ACEOF
11361 /* confdefs.h. */
11362 _ACEOF
11363 cat confdefs.h >>conftest.$ac_ext
11364 cat >>conftest.$ac_ext <<_ACEOF
11365 /* end confdefs.h. */
11366 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11367 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11368 #define $ac_func innocuous_$ac_func
11370 /* System header to define __stub macros and hopefully few prototypes,
11371 which can conflict with char $ac_func (); below.
11372 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11373 <limits.h> exists even on freestanding compilers. */
11375 #ifdef __STDC__
11376 # include <limits.h>
11377 #else
11378 # include <assert.h>
11379 #endif
11381 #undef $ac_func
11383 /* Override any GCC internal prototype to avoid an error.
11384 Use char because int might match the return type of a GCC
11385 builtin and then its argument prototype would still apply. */
11386 #ifdef __cplusplus
11387 extern "C"
11388 #endif
11389 char $ac_func ();
11390 /* The GNU C library defines this for functions which it implements
11391 to always fail with ENOSYS. Some functions are actually named
11392 something starting with __ and the normal name is an alias. */
11393 #if defined __stub_$ac_func || defined __stub___$ac_func
11394 choke me
11395 #endif
11398 main ()
11400 return $ac_func ();
11402 return 0;
11404 _ACEOF
11405 rm -f conftest.$ac_objext conftest$ac_exeext
11406 if { (ac_try="$ac_link"
11407 case "(($ac_try" in
11408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11409 *) ac_try_echo=$ac_try;;
11410 esac
11411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11412 (eval "$ac_link") 2>conftest.er1
11413 ac_status=$?
11414 grep -v '^ *+' conftest.er1 >conftest.err
11415 rm -f conftest.er1
11416 cat conftest.err >&5
11417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11418 (exit $ac_status); } && {
11419 test -z "$ac_c_werror_flag" ||
11420 test ! -s conftest.err
11421 } && test -s conftest$ac_exeext &&
11422 $as_test_x conftest$ac_exeext; then
11423 eval "$as_ac_var=yes"
11424 else
11425 echo "$as_me: failed program was:" >&5
11426 sed 's/^/| /' conftest.$ac_ext >&5
11428 eval "$as_ac_var=no"
11431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11432 conftest$ac_exeext conftest.$ac_ext
11434 ac_res=`eval echo '${'$as_ac_var'}'`
11435 { echo "$as_me:$LINENO: result: $ac_res" >&5
11436 echo "${ECHO_T}$ac_res" >&6; }
11437 if test `eval echo '${'$as_ac_var'}'` = yes; then
11438 cat >>confdefs.h <<_ACEOF
11439 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11440 _ACEOF
11441 HAVE_GTK_MULTIDISPLAY=yes
11443 done
11445 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11447 cat >>confdefs.h <<\_ACEOF
11448 #define HAVE_GTK_MULTIDISPLAY 1
11449 _ACEOF
11452 HAVE_GTK_FILE_SELECTION=no
11454 for ac_func in gtk_file_selection_new
11456 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11457 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11458 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11459 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11460 echo $ECHO_N "(cached) $ECHO_C" >&6
11461 else
11462 cat >conftest.$ac_ext <<_ACEOF
11463 /* confdefs.h. */
11464 _ACEOF
11465 cat confdefs.h >>conftest.$ac_ext
11466 cat >>conftest.$ac_ext <<_ACEOF
11467 /* end confdefs.h. */
11468 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11470 #define $ac_func innocuous_$ac_func
11472 /* System header to define __stub macros and hopefully few prototypes,
11473 which can conflict with char $ac_func (); below.
11474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11475 <limits.h> exists even on freestanding compilers. */
11477 #ifdef __STDC__
11478 # include <limits.h>
11479 #else
11480 # include <assert.h>
11481 #endif
11483 #undef $ac_func
11485 /* Override any GCC internal prototype to avoid an error.
11486 Use char because int might match the return type of a GCC
11487 builtin and then its argument prototype would still apply. */
11488 #ifdef __cplusplus
11489 extern "C"
11490 #endif
11491 char $ac_func ();
11492 /* The GNU C library defines this for functions which it implements
11493 to always fail with ENOSYS. Some functions are actually named
11494 something starting with __ and the normal name is an alias. */
11495 #if defined __stub_$ac_func || defined __stub___$ac_func
11496 choke me
11497 #endif
11500 main ()
11502 return $ac_func ();
11504 return 0;
11506 _ACEOF
11507 rm -f conftest.$ac_objext conftest$ac_exeext
11508 if { (ac_try="$ac_link"
11509 case "(($ac_try" in
11510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11511 *) ac_try_echo=$ac_try;;
11512 esac
11513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11514 (eval "$ac_link") 2>conftest.er1
11515 ac_status=$?
11516 grep -v '^ *+' conftest.er1 >conftest.err
11517 rm -f conftest.er1
11518 cat conftest.err >&5
11519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520 (exit $ac_status); } && {
11521 test -z "$ac_c_werror_flag" ||
11522 test ! -s conftest.err
11523 } && test -s conftest$ac_exeext &&
11524 $as_test_x conftest$ac_exeext; then
11525 eval "$as_ac_var=yes"
11526 else
11527 echo "$as_me: failed program was:" >&5
11528 sed 's/^/| /' conftest.$ac_ext >&5
11530 eval "$as_ac_var=no"
11533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11534 conftest$ac_exeext conftest.$ac_ext
11536 ac_res=`eval echo '${'$as_ac_var'}'`
11537 { echo "$as_me:$LINENO: result: $ac_res" >&5
11538 echo "${ECHO_T}$ac_res" >&6; }
11539 if test `eval echo '${'$as_ac_var'}'` = yes; then
11540 cat >>confdefs.h <<_ACEOF
11541 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11542 _ACEOF
11543 HAVE_GTK_FILE_SELECTION=yes
11545 done
11548 HAVE_GTK_FILE_CHOOSER=no
11550 for ac_func in gtk_file_chooser_dialog_new
11552 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11553 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11554 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11555 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11556 echo $ECHO_N "(cached) $ECHO_C" >&6
11557 else
11558 cat >conftest.$ac_ext <<_ACEOF
11559 /* confdefs.h. */
11560 _ACEOF
11561 cat confdefs.h >>conftest.$ac_ext
11562 cat >>conftest.$ac_ext <<_ACEOF
11563 /* end confdefs.h. */
11564 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11566 #define $ac_func innocuous_$ac_func
11568 /* System header to define __stub macros and hopefully few prototypes,
11569 which can conflict with char $ac_func (); below.
11570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11571 <limits.h> exists even on freestanding compilers. */
11573 #ifdef __STDC__
11574 # include <limits.h>
11575 #else
11576 # include <assert.h>
11577 #endif
11579 #undef $ac_func
11581 /* Override any GCC internal prototype to avoid an error.
11582 Use char because int might match the return type of a GCC
11583 builtin and then its argument prototype would still apply. */
11584 #ifdef __cplusplus
11585 extern "C"
11586 #endif
11587 char $ac_func ();
11588 /* The GNU C library defines this for functions which it implements
11589 to always fail with ENOSYS. Some functions are actually named
11590 something starting with __ and the normal name is an alias. */
11591 #if defined __stub_$ac_func || defined __stub___$ac_func
11592 choke me
11593 #endif
11596 main ()
11598 return $ac_func ();
11600 return 0;
11602 _ACEOF
11603 rm -f conftest.$ac_objext conftest$ac_exeext
11604 if { (ac_try="$ac_link"
11605 case "(($ac_try" in
11606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11607 *) ac_try_echo=$ac_try;;
11608 esac
11609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11610 (eval "$ac_link") 2>conftest.er1
11611 ac_status=$?
11612 grep -v '^ *+' conftest.er1 >conftest.err
11613 rm -f conftest.er1
11614 cat conftest.err >&5
11615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616 (exit $ac_status); } && {
11617 test -z "$ac_c_werror_flag" ||
11618 test ! -s conftest.err
11619 } && test -s conftest$ac_exeext &&
11620 $as_test_x conftest$ac_exeext; then
11621 eval "$as_ac_var=yes"
11622 else
11623 echo "$as_me: failed program was:" >&5
11624 sed 's/^/| /' conftest.$ac_ext >&5
11626 eval "$as_ac_var=no"
11629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11630 conftest$ac_exeext conftest.$ac_ext
11632 ac_res=`eval echo '${'$as_ac_var'}'`
11633 { echo "$as_me:$LINENO: result: $ac_res" >&5
11634 echo "${ECHO_T}$ac_res" >&6; }
11635 if test `eval echo '${'$as_ac_var'}'` = yes; then
11636 cat >>confdefs.h <<_ACEOF
11637 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11638 _ACEOF
11639 HAVE_GTK_FILE_CHOOSER=yes
11641 done
11644 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11645 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11647 cat >>confdefs.h <<\_ACEOF
11648 #define HAVE_GTK_FILE_BOTH 1
11649 _ACEOF
11653 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11654 HAVE_GTK_AND_PTHREAD=no
11656 for ac_header in pthread.h
11658 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11659 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11660 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11662 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11663 echo $ECHO_N "(cached) $ECHO_C" >&6
11665 ac_res=`eval echo '${'$as_ac_Header'}'`
11666 { echo "$as_me:$LINENO: result: $ac_res" >&5
11667 echo "${ECHO_T}$ac_res" >&6; }
11668 else
11669 # Is the header compilable?
11670 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11671 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11672 cat >conftest.$ac_ext <<_ACEOF
11673 /* confdefs.h. */
11674 _ACEOF
11675 cat confdefs.h >>conftest.$ac_ext
11676 cat >>conftest.$ac_ext <<_ACEOF
11677 /* end confdefs.h. */
11678 $ac_includes_default
11679 #include <$ac_header>
11680 _ACEOF
11681 rm -f conftest.$ac_objext
11682 if { (ac_try="$ac_compile"
11683 case "(($ac_try" in
11684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11685 *) ac_try_echo=$ac_try;;
11686 esac
11687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11688 (eval "$ac_compile") 2>conftest.er1
11689 ac_status=$?
11690 grep -v '^ *+' conftest.er1 >conftest.err
11691 rm -f conftest.er1
11692 cat conftest.err >&5
11693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694 (exit $ac_status); } && {
11695 test -z "$ac_c_werror_flag" ||
11696 test ! -s conftest.err
11697 } && test -s conftest.$ac_objext; then
11698 ac_header_compiler=yes
11699 else
11700 echo "$as_me: failed program was:" >&5
11701 sed 's/^/| /' conftest.$ac_ext >&5
11703 ac_header_compiler=no
11706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11707 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11708 echo "${ECHO_T}$ac_header_compiler" >&6; }
11710 # Is the header present?
11711 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11712 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11713 cat >conftest.$ac_ext <<_ACEOF
11714 /* confdefs.h. */
11715 _ACEOF
11716 cat confdefs.h >>conftest.$ac_ext
11717 cat >>conftest.$ac_ext <<_ACEOF
11718 /* end confdefs.h. */
11719 #include <$ac_header>
11720 _ACEOF
11721 if { (ac_try="$ac_cpp conftest.$ac_ext"
11722 case "(($ac_try" in
11723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11724 *) ac_try_echo=$ac_try;;
11725 esac
11726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11727 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11728 ac_status=$?
11729 grep -v '^ *+' conftest.er1 >conftest.err
11730 rm -f conftest.er1
11731 cat conftest.err >&5
11732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733 (exit $ac_status); } >/dev/null && {
11734 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11735 test ! -s conftest.err
11736 }; then
11737 ac_header_preproc=yes
11738 else
11739 echo "$as_me: failed program was:" >&5
11740 sed 's/^/| /' conftest.$ac_ext >&5
11742 ac_header_preproc=no
11745 rm -f conftest.err conftest.$ac_ext
11746 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11747 echo "${ECHO_T}$ac_header_preproc" >&6; }
11749 # So? What about this header?
11750 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11751 yes:no: )
11752 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11753 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11754 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11755 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11756 ac_header_preproc=yes
11758 no:yes:* )
11759 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11760 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11761 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11762 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11763 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11764 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11765 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11766 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11768 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11769 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11770 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11773 esac
11774 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11777 echo $ECHO_N "(cached) $ECHO_C" >&6
11778 else
11779 eval "$as_ac_Header=\$ac_header_preproc"
11781 ac_res=`eval echo '${'$as_ac_Header'}'`
11782 { echo "$as_me:$LINENO: result: $ac_res" >&5
11783 echo "${ECHO_T}$ac_res" >&6; }
11786 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11787 cat >>confdefs.h <<_ACEOF
11788 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11789 _ACEOF
11793 done
11795 if test "$ac_cv_header_pthread_h"; then
11796 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11797 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11798 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11799 echo $ECHO_N "(cached) $ECHO_C" >&6
11800 else
11801 ac_check_lib_save_LIBS=$LIBS
11802 LIBS="-lpthread $LIBS"
11803 cat >conftest.$ac_ext <<_ACEOF
11804 /* confdefs.h. */
11805 _ACEOF
11806 cat confdefs.h >>conftest.$ac_ext
11807 cat >>conftest.$ac_ext <<_ACEOF
11808 /* end confdefs.h. */
11810 /* Override any GCC internal prototype to avoid an error.
11811 Use char because int might match the return type of a GCC
11812 builtin and then its argument prototype would still apply. */
11813 #ifdef __cplusplus
11814 extern "C"
11815 #endif
11816 char pthread_self ();
11818 main ()
11820 return pthread_self ();
11822 return 0;
11824 _ACEOF
11825 rm -f conftest.$ac_objext conftest$ac_exeext
11826 if { (ac_try="$ac_link"
11827 case "(($ac_try" in
11828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11829 *) ac_try_echo=$ac_try;;
11830 esac
11831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11832 (eval "$ac_link") 2>conftest.er1
11833 ac_status=$?
11834 grep -v '^ *+' conftest.er1 >conftest.err
11835 rm -f conftest.er1
11836 cat conftest.err >&5
11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); } && {
11839 test -z "$ac_c_werror_flag" ||
11840 test ! -s conftest.err
11841 } && test -s conftest$ac_exeext &&
11842 $as_test_x conftest$ac_exeext; then
11843 ac_cv_lib_pthread_pthread_self=yes
11844 else
11845 echo "$as_me: failed program was:" >&5
11846 sed 's/^/| /' conftest.$ac_ext >&5
11848 ac_cv_lib_pthread_pthread_self=no
11851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11852 conftest$ac_exeext conftest.$ac_ext
11853 LIBS=$ac_check_lib_save_LIBS
11855 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11856 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11857 if test $ac_cv_lib_pthread_pthread_self = yes; then
11858 HAVE_GTK_AND_PTHREAD=yes
11862 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11863 GTK_LIBS="$GTK_LIBS -lpthread"
11865 cat >>confdefs.h <<\_ACEOF
11866 #define HAVE_GTK_AND_PTHREAD 1
11867 _ACEOF
11873 HAVE_XAW3D=no
11874 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11875 if test x"${HAVE_X11R5}" != xyes; then
11876 USE_X_TOOLKIT=none
11877 else
11878 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11879 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11880 if test "${emacs_cv_xaw3d+set}" = set; then
11881 echo $ECHO_N "(cached) $ECHO_C" >&6
11882 else
11883 cat >conftest.$ac_ext <<_ACEOF
11884 /* confdefs.h. */
11885 _ACEOF
11886 cat confdefs.h >>conftest.$ac_ext
11887 cat >>conftest.$ac_ext <<_ACEOF
11888 /* end confdefs.h. */
11890 #include <X11/Intrinsic.h>
11891 #include <X11/Xaw3d/Simple.h>
11893 main ()
11897 return 0;
11899 _ACEOF
11900 rm -f conftest.$ac_objext conftest$ac_exeext
11901 if { (ac_try="$ac_link"
11902 case "(($ac_try" in
11903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11904 *) ac_try_echo=$ac_try;;
11905 esac
11906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11907 (eval "$ac_link") 2>conftest.er1
11908 ac_status=$?
11909 grep -v '^ *+' conftest.er1 >conftest.err
11910 rm -f conftest.er1
11911 cat conftest.err >&5
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); } && {
11914 test -z "$ac_c_werror_flag" ||
11915 test ! -s conftest.err
11916 } && test -s conftest$ac_exeext &&
11917 $as_test_x conftest$ac_exeext; then
11918 emacs_cv_xaw3d=yes
11919 else
11920 echo "$as_me: failed program was:" >&5
11921 sed 's/^/| /' conftest.$ac_ext >&5
11923 emacs_cv_xaw3d=no
11926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11927 conftest$ac_exeext conftest.$ac_ext
11930 if test $emacs_cv_xaw3d = yes; then
11931 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11932 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11933 USE_X_TOOLKIT=LUCID
11934 HAVE_XAW3D=yes
11936 cat >>confdefs.h <<\_ACEOF
11937 #define HAVE_XAW3D 1
11938 _ACEOF
11940 else
11941 { echo "$as_me:$LINENO: result: no" >&5
11942 echo "${ECHO_T}no" >&6; }
11943 { echo "$as_me:$LINENO: checking for libXaw" >&5
11944 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
11945 if test "${emacs_cv_xaw+set}" = set; then
11946 echo $ECHO_N "(cached) $ECHO_C" >&6
11947 else
11948 cat >conftest.$ac_ext <<_ACEOF
11949 /* confdefs.h. */
11950 _ACEOF
11951 cat confdefs.h >>conftest.$ac_ext
11952 cat >>conftest.$ac_ext <<_ACEOF
11953 /* end confdefs.h. */
11955 #include <X11/Intrinsic.h>
11956 #include <X11/Xaw/Simple.h>
11958 main ()
11962 return 0;
11964 _ACEOF
11965 rm -f conftest.$ac_objext conftest$ac_exeext
11966 if { (ac_try="$ac_link"
11967 case "(($ac_try" in
11968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11969 *) ac_try_echo=$ac_try;;
11970 esac
11971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11972 (eval "$ac_link") 2>conftest.er1
11973 ac_status=$?
11974 grep -v '^ *+' conftest.er1 >conftest.err
11975 rm -f conftest.er1
11976 cat conftest.err >&5
11977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); } && {
11979 test -z "$ac_c_werror_flag" ||
11980 test ! -s conftest.err
11981 } && test -s conftest$ac_exeext &&
11982 $as_test_x conftest$ac_exeext; then
11983 emacs_cv_xaw=yes
11984 else
11985 echo "$as_me: failed program was:" >&5
11986 sed 's/^/| /' conftest.$ac_ext >&5
11988 emacs_cv_xaw=no
11991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11992 conftest$ac_exeext conftest.$ac_ext
11995 if test $emacs_cv_xaw = yes; then
11996 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11997 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11998 USE_X_TOOLKIT=LUCID
11999 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12000 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12001 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12002 { (exit 1); exit 1; }; }
12003 else
12004 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12005 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
12006 USE_X_TOOLKIT=none
12012 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12014 if test "${USE_X_TOOLKIT}" != "none"; then
12015 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12016 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12017 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12018 echo $ECHO_N "(cached) $ECHO_C" >&6
12019 else
12020 cat >conftest.$ac_ext <<_ACEOF
12021 /* confdefs.h. */
12022 _ACEOF
12023 cat confdefs.h >>conftest.$ac_ext
12024 cat >>conftest.$ac_ext <<_ACEOF
12025 /* end confdefs.h. */
12026 #include <X11/Intrinsic.h>
12028 main ()
12030 #if XtSpecificationRelease < 6
12031 fail;
12032 #endif
12035 return 0;
12037 _ACEOF
12038 rm -f conftest.$ac_objext conftest$ac_exeext
12039 if { (ac_try="$ac_link"
12040 case "(($ac_try" in
12041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12042 *) ac_try_echo=$ac_try;;
12043 esac
12044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12045 (eval "$ac_link") 2>conftest.er1
12046 ac_status=$?
12047 grep -v '^ *+' conftest.er1 >conftest.err
12048 rm -f conftest.er1
12049 cat conftest.err >&5
12050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051 (exit $ac_status); } && {
12052 test -z "$ac_c_werror_flag" ||
12053 test ! -s conftest.err
12054 } && test -s conftest$ac_exeext &&
12055 $as_test_x conftest$ac_exeext; then
12056 emacs_cv_x11_toolkit_version_6=yes
12057 else
12058 echo "$as_me: failed program was:" >&5
12059 sed 's/^/| /' conftest.$ac_ext >&5
12061 emacs_cv_x11_toolkit_version_6=no
12064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12065 conftest$ac_exeext conftest.$ac_ext
12068 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12069 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12070 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12071 echo "${ECHO_T}6 or newer" >&6; }
12073 cat >>confdefs.h <<\_ACEOF
12074 #define HAVE_X11XTR6 1
12075 _ACEOF
12077 else
12078 { echo "$as_me:$LINENO: result: before 6" >&5
12079 echo "${ECHO_T}before 6" >&6; }
12082 OLDLIBS="$LIBS"
12083 if test x$HAVE_X11XTR6 = xyes; then
12084 LIBS="-lXt -lSM -lICE $LIBS"
12085 else
12086 LIBS="-lXt $LIBS"
12089 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12090 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12091 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12092 echo $ECHO_N "(cached) $ECHO_C" >&6
12093 else
12094 ac_check_lib_save_LIBS=$LIBS
12095 LIBS="-lXmu $LIBS"
12096 cat >conftest.$ac_ext <<_ACEOF
12097 /* confdefs.h. */
12098 _ACEOF
12099 cat confdefs.h >>conftest.$ac_ext
12100 cat >>conftest.$ac_ext <<_ACEOF
12101 /* end confdefs.h. */
12103 /* Override any GCC internal prototype to avoid an error.
12104 Use char because int might match the return type of a GCC
12105 builtin and then its argument prototype would still apply. */
12106 #ifdef __cplusplus
12107 extern "C"
12108 #endif
12109 char XmuConvertStandardSelection ();
12111 main ()
12113 return XmuConvertStandardSelection ();
12115 return 0;
12117 _ACEOF
12118 rm -f conftest.$ac_objext conftest$ac_exeext
12119 if { (ac_try="$ac_link"
12120 case "(($ac_try" in
12121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12122 *) ac_try_echo=$ac_try;;
12123 esac
12124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12125 (eval "$ac_link") 2>conftest.er1
12126 ac_status=$?
12127 grep -v '^ *+' conftest.er1 >conftest.err
12128 rm -f conftest.er1
12129 cat conftest.err >&5
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); } && {
12132 test -z "$ac_c_werror_flag" ||
12133 test ! -s conftest.err
12134 } && test -s conftest$ac_exeext &&
12135 $as_test_x conftest$ac_exeext; then
12136 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12137 else
12138 echo "$as_me: failed program was:" >&5
12139 sed 's/^/| /' conftest.$ac_ext >&5
12141 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12145 conftest$ac_exeext conftest.$ac_ext
12146 LIBS=$ac_check_lib_save_LIBS
12148 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12149 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12150 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12151 cat >>confdefs.h <<_ACEOF
12152 #define HAVE_LIBXMU 1
12153 _ACEOF
12155 LIBS="-lXmu $LIBS"
12159 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12162 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12163 if test "${HAVE_X11}" = "yes"; then
12164 if test "${USE_X_TOOLKIT}" != "none"; then
12166 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12167 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12168 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12169 echo $ECHO_N "(cached) $ECHO_C" >&6
12170 else
12171 ac_check_lib_save_LIBS=$LIBS
12172 LIBS="-lXext $LIBS"
12173 cat >conftest.$ac_ext <<_ACEOF
12174 /* confdefs.h. */
12175 _ACEOF
12176 cat confdefs.h >>conftest.$ac_ext
12177 cat >>conftest.$ac_ext <<_ACEOF
12178 /* end confdefs.h. */
12180 /* Override any GCC internal prototype to avoid an error.
12181 Use char because int might match the return type of a GCC
12182 builtin and then its argument prototype would still apply. */
12183 #ifdef __cplusplus
12184 extern "C"
12185 #endif
12186 char XShapeQueryExtension ();
12188 main ()
12190 return XShapeQueryExtension ();
12192 return 0;
12194 _ACEOF
12195 rm -f conftest.$ac_objext conftest$ac_exeext
12196 if { (ac_try="$ac_link"
12197 case "(($ac_try" in
12198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12199 *) ac_try_echo=$ac_try;;
12200 esac
12201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12202 (eval "$ac_link") 2>conftest.er1
12203 ac_status=$?
12204 grep -v '^ *+' conftest.er1 >conftest.err
12205 rm -f conftest.er1
12206 cat conftest.err >&5
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); } && {
12209 test -z "$ac_c_werror_flag" ||
12210 test ! -s conftest.err
12211 } && test -s conftest$ac_exeext &&
12212 $as_test_x conftest$ac_exeext; then
12213 ac_cv_lib_Xext_XShapeQueryExtension=yes
12214 else
12215 echo "$as_me: failed program was:" >&5
12216 sed 's/^/| /' conftest.$ac_ext >&5
12218 ac_cv_lib_Xext_XShapeQueryExtension=no
12221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12222 conftest$ac_exeext conftest.$ac_ext
12223 LIBS=$ac_check_lib_save_LIBS
12225 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12226 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12227 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12228 cat >>confdefs.h <<_ACEOF
12229 #define HAVE_LIBXEXT 1
12230 _ACEOF
12232 LIBS="-lXext $LIBS"
12239 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12240 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12241 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12242 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12243 echo $ECHO_N "(cached) $ECHO_C" >&6
12244 else
12245 cat >conftest.$ac_ext <<_ACEOF
12246 /* confdefs.h. */
12247 _ACEOF
12248 cat confdefs.h >>conftest.$ac_ext
12249 cat >>conftest.$ac_ext <<_ACEOF
12250 /* end confdefs.h. */
12251 #include <Xm/Xm.h>
12253 main ()
12255 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12256 int x = 5;
12257 #else
12258 Motif version prior to 2.1.
12259 #endif
12261 return 0;
12263 _ACEOF
12264 rm -f conftest.$ac_objext
12265 if { (ac_try="$ac_compile"
12266 case "(($ac_try" in
12267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12268 *) ac_try_echo=$ac_try;;
12269 esac
12270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12271 (eval "$ac_compile") 2>conftest.er1
12272 ac_status=$?
12273 grep -v '^ *+' conftest.er1 >conftest.err
12274 rm -f conftest.er1
12275 cat conftest.err >&5
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); } && {
12278 test -z "$ac_c_werror_flag" ||
12279 test ! -s conftest.err
12280 } && test -s conftest.$ac_objext; then
12281 emacs_cv_motif_version_2_1=yes
12282 else
12283 echo "$as_me: failed program was:" >&5
12284 sed 's/^/| /' conftest.$ac_ext >&5
12286 emacs_cv_motif_version_2_1=no
12289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12291 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12292 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12293 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12294 if test $emacs_cv_motif_version_2_1 = yes; then
12295 HAVE_LIBXP=no
12297 cat >>confdefs.h <<\_ACEOF
12298 #define HAVE_MOTIF_2_1 1
12299 _ACEOF
12301 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12302 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12303 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12304 echo $ECHO_N "(cached) $ECHO_C" >&6
12305 else
12306 ac_check_lib_save_LIBS=$LIBS
12307 LIBS="-lXp $LIBS"
12308 cat >conftest.$ac_ext <<_ACEOF
12309 /* confdefs.h. */
12310 _ACEOF
12311 cat confdefs.h >>conftest.$ac_ext
12312 cat >>conftest.$ac_ext <<_ACEOF
12313 /* end confdefs.h. */
12315 /* Override any GCC internal prototype to avoid an error.
12316 Use char because int might match the return type of a GCC
12317 builtin and then its argument prototype would still apply. */
12318 #ifdef __cplusplus
12319 extern "C"
12320 #endif
12321 char XpCreateContext ();
12323 main ()
12325 return XpCreateContext ();
12327 return 0;
12329 _ACEOF
12330 rm -f conftest.$ac_objext conftest$ac_exeext
12331 if { (ac_try="$ac_link"
12332 case "(($ac_try" in
12333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12334 *) ac_try_echo=$ac_try;;
12335 esac
12336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12337 (eval "$ac_link") 2>conftest.er1
12338 ac_status=$?
12339 grep -v '^ *+' conftest.er1 >conftest.err
12340 rm -f conftest.er1
12341 cat conftest.err >&5
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); } && {
12344 test -z "$ac_c_werror_flag" ||
12345 test ! -s conftest.err
12346 } && test -s conftest$ac_exeext &&
12347 $as_test_x conftest$ac_exeext; then
12348 ac_cv_lib_Xp_XpCreateContext=yes
12349 else
12350 echo "$as_me: failed program was:" >&5
12351 sed 's/^/| /' conftest.$ac_ext >&5
12353 ac_cv_lib_Xp_XpCreateContext=no
12356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12357 conftest$ac_exeext conftest.$ac_ext
12358 LIBS=$ac_check_lib_save_LIBS
12360 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12361 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12362 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12363 HAVE_LIBXP=yes
12366 if test ${HAVE_LIBXP} = yes; then
12368 cat >>confdefs.h <<\_ACEOF
12369 #define HAVE_LIBXP 1
12370 _ACEOF
12373 else
12374 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12375 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12376 if test "${emacs_cv_lesstif+set}" = set; then
12377 echo $ECHO_N "(cached) $ECHO_C" >&6
12378 else
12379 # We put this in CFLAGS temporarily to precede other -I options
12380 # that might be in CFLAGS temporarily.
12381 # We put this in CPPFLAGS where it precedes the other -I options.
12382 OLD_CPPFLAGS=$CPPFLAGS
12383 OLD_CFLAGS=$CFLAGS
12384 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12385 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12386 cat >conftest.$ac_ext <<_ACEOF
12387 /* confdefs.h. */
12388 _ACEOF
12389 cat confdefs.h >>conftest.$ac_ext
12390 cat >>conftest.$ac_ext <<_ACEOF
12391 /* end confdefs.h. */
12392 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12394 main ()
12396 int x = 5;
12398 return 0;
12400 _ACEOF
12401 rm -f conftest.$ac_objext
12402 if { (ac_try="$ac_compile"
12403 case "(($ac_try" in
12404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12405 *) ac_try_echo=$ac_try;;
12406 esac
12407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12408 (eval "$ac_compile") 2>conftest.er1
12409 ac_status=$?
12410 grep -v '^ *+' conftest.er1 >conftest.err
12411 rm -f conftest.er1
12412 cat conftest.err >&5
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); } && {
12415 test -z "$ac_c_werror_flag" ||
12416 test ! -s conftest.err
12417 } && test -s conftest.$ac_objext; then
12418 emacs_cv_lesstif=yes
12419 else
12420 echo "$as_me: failed program was:" >&5
12421 sed 's/^/| /' conftest.$ac_ext >&5
12423 emacs_cv_lesstif=no
12426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12428 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12429 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12430 if test $emacs_cv_lesstif = yes; then
12431 # Make sure this -I option remains in CPPFLAGS after it is set
12432 # back to REAL_CPPFLAGS.
12433 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12434 # have those other -I options anyway. Ultimately, having this
12435 # directory ultimately in CPPFLAGS will be enough.
12436 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12437 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12438 else
12439 CFLAGS=$OLD_CFLAGS
12440 CPPFLAGS=$OLD_CPPFLAGS
12447 USE_TOOLKIT_SCROLL_BARS=no
12448 if test "${with_toolkit_scroll_bars}" != "no"; then
12449 if test "${USE_X_TOOLKIT}" != "none"; then
12450 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12451 cat >>confdefs.h <<\_ACEOF
12452 #define USE_TOOLKIT_SCROLL_BARS 1
12453 _ACEOF
12455 HAVE_XAW3D=no
12456 USE_TOOLKIT_SCROLL_BARS=yes
12457 elif test "${HAVE_XAW3D}" = "yes"; then
12458 cat >>confdefs.h <<\_ACEOF
12459 #define USE_TOOLKIT_SCROLL_BARS 1
12460 _ACEOF
12462 USE_TOOLKIT_SCROLL_BARS=yes
12464 elif test "${HAVE_GTK}" = "yes"; then
12465 cat >>confdefs.h <<\_ACEOF
12466 #define USE_TOOLKIT_SCROLL_BARS 1
12467 _ACEOF
12469 USE_TOOLKIT_SCROLL_BARS=yes
12470 elif test "${HAVE_CARBON}" = "yes"; then
12471 cat >>confdefs.h <<\_ACEOF
12472 #define USE_TOOLKIT_SCROLL_BARS 1
12473 _ACEOF
12475 USE_TOOLKIT_SCROLL_BARS=yes
12479 cat >conftest.$ac_ext <<_ACEOF
12480 /* confdefs.h. */
12481 _ACEOF
12482 cat confdefs.h >>conftest.$ac_ext
12483 cat >>conftest.$ac_ext <<_ACEOF
12484 /* end confdefs.h. */
12486 #include <X11/Xlib.h>
12487 #include <X11/Xresource.h>
12489 main ()
12491 XIMProc callback;
12493 return 0;
12495 _ACEOF
12496 rm -f conftest.$ac_objext
12497 if { (ac_try="$ac_compile"
12498 case "(($ac_try" in
12499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12500 *) ac_try_echo=$ac_try;;
12501 esac
12502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12503 (eval "$ac_compile") 2>conftest.er1
12504 ac_status=$?
12505 grep -v '^ *+' conftest.er1 >conftest.err
12506 rm -f conftest.er1
12507 cat conftest.err >&5
12508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509 (exit $ac_status); } && {
12510 test -z "$ac_c_werror_flag" ||
12511 test ! -s conftest.err
12512 } && test -s conftest.$ac_objext; then
12513 HAVE_XIM=yes
12515 cat >>confdefs.h <<\_ACEOF
12516 #define HAVE_XIM 1
12517 _ACEOF
12519 else
12520 echo "$as_me: failed program was:" >&5
12521 sed 's/^/| /' conftest.$ac_ext >&5
12523 HAVE_XIM=no
12526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12529 if test "${with_xim}" != "no"; then
12531 cat >>confdefs.h <<\_ACEOF
12532 #define USE_XIM 1
12533 _ACEOF
12538 if test "${HAVE_XIM}" != "no"; then
12539 late_CFLAGS=$CFLAGS
12540 if test "$GCC" = yes; then
12541 CFLAGS="$CFLAGS --pedantic-errors"
12543 cat >conftest.$ac_ext <<_ACEOF
12544 /* confdefs.h. */
12545 _ACEOF
12546 cat confdefs.h >>conftest.$ac_ext
12547 cat >>conftest.$ac_ext <<_ACEOF
12548 /* end confdefs.h. */
12550 #include <X11/Xlib.h>
12551 #include <X11/Xresource.h>
12553 main ()
12555 Display *display;
12556 XrmDatabase db;
12557 char *res_name;
12558 char *res_class;
12559 XIMProc callback;
12560 XPointer *client_data;
12561 #ifndef __GNUC__
12562 /* If we're not using GCC, it's probably not XFree86, and this is
12563 probably right, but we can't use something like --pedantic-errors. */
12564 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12565 char*, XIMProc, XPointer*);
12566 #endif
12567 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12568 client_data);
12570 return 0;
12572 _ACEOF
12573 rm -f conftest.$ac_objext
12574 if { (ac_try="$ac_compile"
12575 case "(($ac_try" in
12576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12577 *) ac_try_echo=$ac_try;;
12578 esac
12579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12580 (eval "$ac_compile") 2>conftest.er1
12581 ac_status=$?
12582 grep -v '^ *+' conftest.er1 >conftest.err
12583 rm -f conftest.er1
12584 cat conftest.err >&5
12585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586 (exit $ac_status); } && {
12587 test -z "$ac_c_werror_flag" ||
12588 test ! -s conftest.err
12589 } && test -s conftest.$ac_objext; then
12590 emacs_cv_arg6_star=yes
12591 else
12592 echo "$as_me: failed program was:" >&5
12593 sed 's/^/| /' conftest.$ac_ext >&5
12598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12600 if test "$emacs_cv_arg6_star" = yes; then
12601 cat >>confdefs.h <<\_ACEOF
12602 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12603 _ACEOF
12605 else
12606 cat >>confdefs.h <<\_ACEOF
12607 #define XRegisterIMInstantiateCallback_arg6 XPointer
12608 _ACEOF
12611 CFLAGS=$late_CFLAGS
12614 ### For font-backend
12615 if test "${USE_FONT_BACKEND}" = "yes"; then
12618 cat >>confdefs.h <<\_ACEOF
12619 #define USE_FONT_BACKEND 1
12620 _ACEOF
12623 ### Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
12624 HAVE_XFT=maybe
12625 if test "${HAVE_X11}" = "yes"; then
12626 if test "x${with_freetype}" = "xno"; then
12627 with_xft="no";
12629 if test "x${with_xft}" != "xno"; then
12631 if test "X${with_pkg_config_prog}" != X; then
12632 PKG_CONFIG="${with_pkg_config_prog}"
12636 succeeded=no
12638 if test -z "$PKG_CONFIG"; then
12639 # Extract the first word of "pkg-config", so it can be a program name with args.
12640 set dummy pkg-config; ac_word=$2
12641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12643 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12644 echo $ECHO_N "(cached) $ECHO_C" >&6
12645 else
12646 case $PKG_CONFIG in
12647 [\\/]* | ?:[\\/]*)
12648 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12652 for as_dir in $PATH
12654 IFS=$as_save_IFS
12655 test -z "$as_dir" && as_dir=.
12656 for ac_exec_ext in '' $ac_executable_extensions; do
12657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12658 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12660 break 2
12662 done
12663 done
12664 IFS=$as_save_IFS
12666 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12668 esac
12670 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12671 if test -n "$PKG_CONFIG"; then
12672 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12673 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12674 else
12675 { echo "$as_me:$LINENO: result: no" >&5
12676 echo "${ECHO_T}no" >&6; }
12682 if test "$PKG_CONFIG" = "no" ; then
12683 HAVE_XFT=no
12684 else
12685 PKG_CONFIG_MIN_VERSION=0.9.0
12686 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12687 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12688 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12690 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12691 { echo "$as_me:$LINENO: result: yes" >&5
12692 echo "${ECHO_T}yes" >&6; }
12693 succeeded=yes
12695 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12696 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12697 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12698 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12699 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12701 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12702 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12703 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12704 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12705 echo "${ECHO_T}$XFT_LIBS" >&6; }
12706 else
12707 { echo "$as_me:$LINENO: result: no" >&5
12708 echo "${ECHO_T}no" >&6; }
12709 XFT_CFLAGS=""
12710 XFT_LIBS=""
12711 ## If we have a custom action on failure, don't print errors, but
12712 ## do set a variable so people can do so.
12713 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12719 else
12720 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12721 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12725 if test $succeeded = yes; then
12727 else
12728 HAVE_XFT=no
12731 if test "$HAVE_XFT" != no; then
12732 OLD_CPPFLAGS="$CPPFLAGS"
12733 OLD_CFLAGS="$CFLAGS"
12734 OLD_LIBS="$LIBS"
12735 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12736 CFLAGS="$CFLAGS $XFT_CFLAGS"
12737 LIBS="$XFT_LIBS $LIBS"
12738 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12739 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12740 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12741 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12742 echo $ECHO_N "(cached) $ECHO_C" >&6
12744 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12745 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12746 else
12747 # Is the header compilable?
12748 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12749 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12750 cat >conftest.$ac_ext <<_ACEOF
12751 /* confdefs.h. */
12752 _ACEOF
12753 cat confdefs.h >>conftest.$ac_ext
12754 cat >>conftest.$ac_ext <<_ACEOF
12755 /* end confdefs.h. */
12756 $ac_includes_default
12757 #include <X11/Xft/Xft.h>
12758 _ACEOF
12759 rm -f conftest.$ac_objext
12760 if { (ac_try="$ac_compile"
12761 case "(($ac_try" in
12762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12763 *) ac_try_echo=$ac_try;;
12764 esac
12765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12766 (eval "$ac_compile") 2>conftest.er1
12767 ac_status=$?
12768 grep -v '^ *+' conftest.er1 >conftest.err
12769 rm -f conftest.er1
12770 cat conftest.err >&5
12771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772 (exit $ac_status); } && {
12773 test -z "$ac_c_werror_flag" ||
12774 test ! -s conftest.err
12775 } && test -s conftest.$ac_objext; then
12776 ac_header_compiler=yes
12777 else
12778 echo "$as_me: failed program was:" >&5
12779 sed 's/^/| /' conftest.$ac_ext >&5
12781 ac_header_compiler=no
12784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12785 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12786 echo "${ECHO_T}$ac_header_compiler" >&6; }
12788 # Is the header present?
12789 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12790 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12791 cat >conftest.$ac_ext <<_ACEOF
12792 /* confdefs.h. */
12793 _ACEOF
12794 cat confdefs.h >>conftest.$ac_ext
12795 cat >>conftest.$ac_ext <<_ACEOF
12796 /* end confdefs.h. */
12797 #include <X11/Xft/Xft.h>
12798 _ACEOF
12799 if { (ac_try="$ac_cpp conftest.$ac_ext"
12800 case "(($ac_try" in
12801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12802 *) ac_try_echo=$ac_try;;
12803 esac
12804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12805 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12806 ac_status=$?
12807 grep -v '^ *+' conftest.er1 >conftest.err
12808 rm -f conftest.er1
12809 cat conftest.err >&5
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); } >/dev/null && {
12812 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12813 test ! -s conftest.err
12814 }; then
12815 ac_header_preproc=yes
12816 else
12817 echo "$as_me: failed program was:" >&5
12818 sed 's/^/| /' conftest.$ac_ext >&5
12820 ac_header_preproc=no
12823 rm -f conftest.err conftest.$ac_ext
12824 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12825 echo "${ECHO_T}$ac_header_preproc" >&6; }
12827 # So? What about this header?
12828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12829 yes:no: )
12830 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12831 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12832 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12833 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12834 ac_header_preproc=yes
12836 no:yes:* )
12837 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12838 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12839 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12840 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12841 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12842 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12843 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12844 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12845 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12846 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12847 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12848 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12851 esac
12852 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12853 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12854 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12855 echo $ECHO_N "(cached) $ECHO_C" >&6
12856 else
12857 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12859 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12860 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12863 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12864 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12865 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12866 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12867 echo $ECHO_N "(cached) $ECHO_C" >&6
12868 else
12869 ac_check_lib_save_LIBS=$LIBS
12870 LIBS="-lXft $XFT_LIBS $LIBS"
12871 cat >conftest.$ac_ext <<_ACEOF
12872 /* confdefs.h. */
12873 _ACEOF
12874 cat confdefs.h >>conftest.$ac_ext
12875 cat >>conftest.$ac_ext <<_ACEOF
12876 /* end confdefs.h. */
12878 /* Override any GCC internal prototype to avoid an error.
12879 Use char because int might match the return type of a GCC
12880 builtin and then its argument prototype would still apply. */
12881 #ifdef __cplusplus
12882 extern "C"
12883 #endif
12884 char XftFontOpen ();
12886 main ()
12888 return XftFontOpen ();
12890 return 0;
12892 _ACEOF
12893 rm -f conftest.$ac_objext conftest$ac_exeext
12894 if { (ac_try="$ac_link"
12895 case "(($ac_try" in
12896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12897 *) ac_try_echo=$ac_try;;
12898 esac
12899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12900 (eval "$ac_link") 2>conftest.er1
12901 ac_status=$?
12902 grep -v '^ *+' conftest.er1 >conftest.err
12903 rm -f conftest.er1
12904 cat conftest.err >&5
12905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906 (exit $ac_status); } && {
12907 test -z "$ac_c_werror_flag" ||
12908 test ! -s conftest.err
12909 } && test -s conftest$ac_exeext &&
12910 $as_test_x conftest$ac_exeext; then
12911 ac_cv_lib_Xft_XftFontOpen=yes
12912 else
12913 echo "$as_me: failed program was:" >&5
12914 sed 's/^/| /' conftest.$ac_ext >&5
12916 ac_cv_lib_Xft_XftFontOpen=no
12919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12920 conftest$ac_exeext conftest.$ac_ext
12921 LIBS=$ac_check_lib_save_LIBS
12923 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12924 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12925 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12926 HAVE_XFT=yes
12933 if test "${HAVE_XFT}" = "yes"; then
12935 cat >>confdefs.h <<\_ACEOF
12936 #define HAVE_XFT 1
12937 _ACEOF
12940 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12941 else
12942 CFLAGS="$OLD_CPPFLAGS"
12943 CFLAGS="$OLD_CFLAGS"
12944 LIBS="$OLD_LIBS"
12950 HAVE_FREETYPE=no
12951 ### Use -lfreetype if available, unless `--with-freetype=no'.
12952 if test "${HAVE_XFT}" = "yes"; then
12953 HAVE_FREETYPE=yes
12954 elif test "x${with_freetype}" != "xno"; then
12955 if test "X${with_pkg_config_prog}" != X; then
12956 PKG_CONFIG="${with_pkg_config_prog}"
12960 succeeded=no
12962 if test -z "$PKG_CONFIG"; then
12963 # Extract the first word of "pkg-config", so it can be a program name with args.
12964 set dummy pkg-config; ac_word=$2
12965 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12967 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12968 echo $ECHO_N "(cached) $ECHO_C" >&6
12969 else
12970 case $PKG_CONFIG in
12971 [\\/]* | ?:[\\/]*)
12972 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12976 for as_dir in $PATH
12978 IFS=$as_save_IFS
12979 test -z "$as_dir" && as_dir=.
12980 for ac_exec_ext in '' $ac_executable_extensions; do
12981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12982 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12984 break 2
12986 done
12987 done
12988 IFS=$as_save_IFS
12990 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12992 esac
12994 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12995 if test -n "$PKG_CONFIG"; then
12996 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12997 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12998 else
12999 { echo "$as_me:$LINENO: result: no" >&5
13000 echo "${ECHO_T}no" >&6; }
13006 if test "$PKG_CONFIG" = "no" ; then
13007 HAVE_FREETYPE=no
13008 else
13009 PKG_CONFIG_MIN_VERSION=0.9.0
13010 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13011 { echo "$as_me:$LINENO: checking for freetype2" >&5
13012 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
13014 if $PKG_CONFIG --exists "freetype2" 2>&5; then
13015 { echo "$as_me:$LINENO: result: yes" >&5
13016 echo "${ECHO_T}yes" >&6; }
13017 succeeded=yes
13019 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
13020 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
13021 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
13022 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
13023 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
13025 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
13026 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
13027 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
13028 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
13029 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
13030 else
13031 { echo "$as_me:$LINENO: result: no" >&5
13032 echo "${ECHO_T}no" >&6; }
13033 FREETYPE_CFLAGS=""
13034 FREETYPE_LIBS=""
13035 ## If we have a custom action on failure, don't print errors, but
13036 ## do set a variable so people can do so.
13037 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
13043 else
13044 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13045 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13049 if test $succeeded = yes; then
13050 HAVE_FREETYPE=yes
13051 else
13052 HAVE_FREETYPE=no
13055 if test "${HAVE_FREETYPE}" = "yes"; then
13057 succeeded=no
13059 if test -z "$PKG_CONFIG"; then
13060 # Extract the first word of "pkg-config", so it can be a program name with args.
13061 set dummy pkg-config; ac_word=$2
13062 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13064 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13065 echo $ECHO_N "(cached) $ECHO_C" >&6
13066 else
13067 case $PKG_CONFIG in
13068 [\\/]* | ?:[\\/]*)
13069 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13073 for as_dir in $PATH
13075 IFS=$as_save_IFS
13076 test -z "$as_dir" && as_dir=.
13077 for ac_exec_ext in '' $ac_executable_extensions; do
13078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13079 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13081 break 2
13083 done
13084 done
13085 IFS=$as_save_IFS
13087 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13089 esac
13091 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13092 if test -n "$PKG_CONFIG"; then
13093 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13094 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13095 else
13096 { echo "$as_me:$LINENO: result: no" >&5
13097 echo "${ECHO_T}no" >&6; }
13103 if test "$PKG_CONFIG" = "no" ; then
13104 HAVE_FC=no
13105 else
13106 PKG_CONFIG_MIN_VERSION=0.9.0
13107 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13108 { echo "$as_me:$LINENO: checking for fontconfig" >&5
13109 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
13111 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
13112 { echo "$as_me:$LINENO: result: yes" >&5
13113 echo "${ECHO_T}yes" >&6; }
13114 succeeded=yes
13116 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13117 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
13118 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
13119 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13120 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
13122 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13123 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
13124 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
13125 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13126 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
13127 else
13128 { echo "$as_me:$LINENO: result: no" >&5
13129 echo "${ECHO_T}no" >&6; }
13130 FONTCONFIG_CFLAGS=""
13131 FONTCONFIG_LIBS=""
13132 ## If we have a custom action on failure, don't print errors, but
13133 ## do set a variable so people can do so.
13134 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
13140 else
13141 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13142 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13146 if test $succeeded = yes; then
13147 HAVE_FC=yes
13148 else
13149 HAVE_FC=no
13152 if test "${HAVE_FC}" = "no"; then
13153 HAVE_FREETYPE=no
13157 if test "${HAVE_FREETYPE}" = "yes"; then
13159 cat >>confdefs.h <<\_ACEOF
13160 #define HAVE_FREETYPE 1
13161 _ACEOF
13163 # Extract the first word of "libotf-config", so it can be a program name with args.
13164 set dummy libotf-config; ac_word=$2
13165 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13167 if test "${ac_cv_prog_HAVE_LIBOTF+set}" = set; then
13168 echo $ECHO_N "(cached) $ECHO_C" >&6
13169 else
13170 if test -n "$HAVE_LIBOTF"; then
13171 ac_cv_prog_HAVE_LIBOTF="$HAVE_LIBOTF" # Let the user override the test.
13172 else
13173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13174 for as_dir in $PATH
13176 IFS=$as_save_IFS
13177 test -z "$as_dir" && as_dir=.
13178 for ac_exec_ext in '' $ac_executable_extensions; do
13179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13180 ac_cv_prog_HAVE_LIBOTF="yes"
13181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13182 break 2
13184 done
13185 done
13186 IFS=$as_save_IFS
13188 test -z "$ac_cv_prog_HAVE_LIBOTF" && ac_cv_prog_HAVE_LIBOTF="no"
13191 HAVE_LIBOTF=$ac_cv_prog_HAVE_LIBOTF
13192 if test -n "$HAVE_LIBOTF"; then
13193 { echo "$as_me:$LINENO: result: $HAVE_LIBOTF" >&5
13194 echo "${ECHO_T}$HAVE_LIBOTF" >&6; }
13195 else
13196 { echo "$as_me:$LINENO: result: no" >&5
13197 echo "${ECHO_T}no" >&6; }
13201 if test "${HAVE_LIBOTF}" = "yes"; then
13203 { echo "$as_me:$LINENO: checking for OTF_get_features in -lotf" >&5
13204 echo $ECHO_N "checking for OTF_get_features in -lotf... $ECHO_C" >&6; }
13205 if test "${ac_cv_lib_otf_OTF_get_features+set}" = set; then
13206 echo $ECHO_N "(cached) $ECHO_C" >&6
13207 else
13208 ac_check_lib_save_LIBS=$LIBS
13209 LIBS="-lotf $LIBS"
13210 cat >conftest.$ac_ext <<_ACEOF
13211 /* confdefs.h. */
13212 _ACEOF
13213 cat confdefs.h >>conftest.$ac_ext
13214 cat >>conftest.$ac_ext <<_ACEOF
13215 /* end confdefs.h. */
13217 /* Override any GCC internal prototype to avoid an error.
13218 Use char because int might match the return type of a GCC
13219 builtin and then its argument prototype would still apply. */
13220 #ifdef __cplusplus
13221 extern "C"
13222 #endif
13223 char OTF_get_features ();
13225 main ()
13227 return OTF_get_features ();
13229 return 0;
13231 _ACEOF
13232 rm -f conftest.$ac_objext conftest$ac_exeext
13233 if { (ac_try="$ac_link"
13234 case "(($ac_try" in
13235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13236 *) ac_try_echo=$ac_try;;
13237 esac
13238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13239 (eval "$ac_link") 2>conftest.er1
13240 ac_status=$?
13241 grep -v '^ *+' conftest.er1 >conftest.err
13242 rm -f conftest.er1
13243 cat conftest.err >&5
13244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245 (exit $ac_status); } && {
13246 test -z "$ac_c_werror_flag" ||
13247 test ! -s conftest.err
13248 } && test -s conftest$ac_exeext &&
13249 $as_test_x conftest$ac_exeext; then
13250 ac_cv_lib_otf_OTF_get_features=yes
13251 else
13252 echo "$as_me: failed program was:" >&5
13253 sed 's/^/| /' conftest.$ac_ext >&5
13255 ac_cv_lib_otf_OTF_get_features=no
13258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13259 conftest$ac_exeext conftest.$ac_ext
13260 LIBS=$ac_check_lib_save_LIBS
13262 { echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_features" >&5
13263 echo "${ECHO_T}$ac_cv_lib_otf_OTF_get_features" >&6; }
13264 if test $ac_cv_lib_otf_OTF_get_features = yes; then
13265 cat >>confdefs.h <<_ACEOF
13266 #define HAVE_LIBOTF 1
13267 _ACEOF
13269 LIBS="-lotf $LIBS"
13271 else
13272 HAVE_LIBOTF=no
13275 if test "${HAVE_LIBOTF}" = "yes"; then
13277 cat >>confdefs.h <<\_ACEOF
13278 #define HAVE_LIBOTF 1
13279 _ACEOF
13281 LIBOTF_CFLAGS=`libotf-config --cflags`
13282 LIBOTF_LIBS=`libotf-config --libs`
13295 ### Use -lXpm if available, unless `--with-xpm=no'.
13296 HAVE_XPM=no
13297 if test "${HAVE_X11}" = "yes"; then
13298 if test "${with_xpm}" != "no"; then
13299 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13300 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13301 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13302 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13303 echo $ECHO_N "(cached) $ECHO_C" >&6
13305 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13306 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13307 else
13308 # Is the header compilable?
13309 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13310 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13311 cat >conftest.$ac_ext <<_ACEOF
13312 /* confdefs.h. */
13313 _ACEOF
13314 cat confdefs.h >>conftest.$ac_ext
13315 cat >>conftest.$ac_ext <<_ACEOF
13316 /* end confdefs.h. */
13317 $ac_includes_default
13318 #include <X11/xpm.h>
13319 _ACEOF
13320 rm -f conftest.$ac_objext
13321 if { (ac_try="$ac_compile"
13322 case "(($ac_try" in
13323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13324 *) ac_try_echo=$ac_try;;
13325 esac
13326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13327 (eval "$ac_compile") 2>conftest.er1
13328 ac_status=$?
13329 grep -v '^ *+' conftest.er1 >conftest.err
13330 rm -f conftest.er1
13331 cat conftest.err >&5
13332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333 (exit $ac_status); } && {
13334 test -z "$ac_c_werror_flag" ||
13335 test ! -s conftest.err
13336 } && test -s conftest.$ac_objext; then
13337 ac_header_compiler=yes
13338 else
13339 echo "$as_me: failed program was:" >&5
13340 sed 's/^/| /' conftest.$ac_ext >&5
13342 ac_header_compiler=no
13345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13346 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13347 echo "${ECHO_T}$ac_header_compiler" >&6; }
13349 # Is the header present?
13350 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13351 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13352 cat >conftest.$ac_ext <<_ACEOF
13353 /* confdefs.h. */
13354 _ACEOF
13355 cat confdefs.h >>conftest.$ac_ext
13356 cat >>conftest.$ac_ext <<_ACEOF
13357 /* end confdefs.h. */
13358 #include <X11/xpm.h>
13359 _ACEOF
13360 if { (ac_try="$ac_cpp conftest.$ac_ext"
13361 case "(($ac_try" in
13362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13363 *) ac_try_echo=$ac_try;;
13364 esac
13365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13366 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13367 ac_status=$?
13368 grep -v '^ *+' conftest.er1 >conftest.err
13369 rm -f conftest.er1
13370 cat conftest.err >&5
13371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372 (exit $ac_status); } >/dev/null && {
13373 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13374 test ! -s conftest.err
13375 }; then
13376 ac_header_preproc=yes
13377 else
13378 echo "$as_me: failed program was:" >&5
13379 sed 's/^/| /' conftest.$ac_ext >&5
13381 ac_header_preproc=no
13384 rm -f conftest.err conftest.$ac_ext
13385 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13386 echo "${ECHO_T}$ac_header_preproc" >&6; }
13388 # So? What about this header?
13389 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13390 yes:no: )
13391 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13392 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13393 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13394 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13395 ac_header_preproc=yes
13397 no:yes:* )
13398 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13399 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13400 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13401 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13402 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13403 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13404 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13405 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13406 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13407 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13408 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13409 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13412 esac
13413 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13414 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13415 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13416 echo $ECHO_N "(cached) $ECHO_C" >&6
13417 else
13418 ac_cv_header_X11_xpm_h=$ac_header_preproc
13420 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13421 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13424 if test $ac_cv_header_X11_xpm_h = yes; then
13425 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13426 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13427 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13428 echo $ECHO_N "(cached) $ECHO_C" >&6
13429 else
13430 ac_check_lib_save_LIBS=$LIBS
13431 LIBS="-lXpm -lX11 $LIBS"
13432 cat >conftest.$ac_ext <<_ACEOF
13433 /* confdefs.h. */
13434 _ACEOF
13435 cat confdefs.h >>conftest.$ac_ext
13436 cat >>conftest.$ac_ext <<_ACEOF
13437 /* end confdefs.h. */
13439 /* Override any GCC internal prototype to avoid an error.
13440 Use char because int might match the return type of a GCC
13441 builtin and then its argument prototype would still apply. */
13442 #ifdef __cplusplus
13443 extern "C"
13444 #endif
13445 char XpmReadFileToPixmap ();
13447 main ()
13449 return XpmReadFileToPixmap ();
13451 return 0;
13453 _ACEOF
13454 rm -f conftest.$ac_objext conftest$ac_exeext
13455 if { (ac_try="$ac_link"
13456 case "(($ac_try" in
13457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13458 *) ac_try_echo=$ac_try;;
13459 esac
13460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13461 (eval "$ac_link") 2>conftest.er1
13462 ac_status=$?
13463 grep -v '^ *+' conftest.er1 >conftest.err
13464 rm -f conftest.er1
13465 cat conftest.err >&5
13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); } && {
13468 test -z "$ac_c_werror_flag" ||
13469 test ! -s conftest.err
13470 } && test -s conftest$ac_exeext &&
13471 $as_test_x conftest$ac_exeext; then
13472 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13473 else
13474 echo "$as_me: failed program was:" >&5
13475 sed 's/^/| /' conftest.$ac_ext >&5
13477 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13481 conftest$ac_exeext conftest.$ac_ext
13482 LIBS=$ac_check_lib_save_LIBS
13484 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13485 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13486 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13487 HAVE_XPM=yes
13493 if test "${HAVE_XPM}" = "yes"; then
13494 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13495 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13496 cat >conftest.$ac_ext <<_ACEOF
13497 /* confdefs.h. */
13498 _ACEOF
13499 cat confdefs.h >>conftest.$ac_ext
13500 cat >>conftest.$ac_ext <<_ACEOF
13501 /* end confdefs.h. */
13502 #include "X11/xpm.h"
13503 #ifndef XpmReturnAllocPixels
13504 no_return_alloc_pixels
13505 #endif
13507 _ACEOF
13508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13509 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13510 HAVE_XPM=no
13511 else
13512 HAVE_XPM=yes
13514 rm -f conftest*
13517 if test "${HAVE_XPM}" = "yes"; then
13518 { echo "$as_me:$LINENO: result: yes" >&5
13519 echo "${ECHO_T}yes" >&6; }
13520 else
13521 { echo "$as_me:$LINENO: result: no" >&5
13522 echo "${ECHO_T}no" >&6; }
13527 if test "${HAVE_XPM}" = "yes"; then
13529 cat >>confdefs.h <<\_ACEOF
13530 #define HAVE_XPM 1
13531 _ACEOF
13536 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13537 HAVE_JPEG=no
13538 if test "${HAVE_X11}" = "yes"; then
13539 if test "${with_jpeg}" != "no"; then
13540 if test "${ac_cv_header_jerror_h+set}" = set; then
13541 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13542 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13543 if test "${ac_cv_header_jerror_h+set}" = set; then
13544 echo $ECHO_N "(cached) $ECHO_C" >&6
13546 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13547 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13548 else
13549 # Is the header compilable?
13550 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13551 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13552 cat >conftest.$ac_ext <<_ACEOF
13553 /* confdefs.h. */
13554 _ACEOF
13555 cat confdefs.h >>conftest.$ac_ext
13556 cat >>conftest.$ac_ext <<_ACEOF
13557 /* end confdefs.h. */
13558 $ac_includes_default
13559 #include <jerror.h>
13560 _ACEOF
13561 rm -f conftest.$ac_objext
13562 if { (ac_try="$ac_compile"
13563 case "(($ac_try" in
13564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13565 *) ac_try_echo=$ac_try;;
13566 esac
13567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13568 (eval "$ac_compile") 2>conftest.er1
13569 ac_status=$?
13570 grep -v '^ *+' conftest.er1 >conftest.err
13571 rm -f conftest.er1
13572 cat conftest.err >&5
13573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574 (exit $ac_status); } && {
13575 test -z "$ac_c_werror_flag" ||
13576 test ! -s conftest.err
13577 } && test -s conftest.$ac_objext; then
13578 ac_header_compiler=yes
13579 else
13580 echo "$as_me: failed program was:" >&5
13581 sed 's/^/| /' conftest.$ac_ext >&5
13583 ac_header_compiler=no
13586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13587 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13588 echo "${ECHO_T}$ac_header_compiler" >&6; }
13590 # Is the header present?
13591 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13592 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13593 cat >conftest.$ac_ext <<_ACEOF
13594 /* confdefs.h. */
13595 _ACEOF
13596 cat confdefs.h >>conftest.$ac_ext
13597 cat >>conftest.$ac_ext <<_ACEOF
13598 /* end confdefs.h. */
13599 #include <jerror.h>
13600 _ACEOF
13601 if { (ac_try="$ac_cpp conftest.$ac_ext"
13602 case "(($ac_try" in
13603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13604 *) ac_try_echo=$ac_try;;
13605 esac
13606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13607 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13608 ac_status=$?
13609 grep -v '^ *+' conftest.er1 >conftest.err
13610 rm -f conftest.er1
13611 cat conftest.err >&5
13612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613 (exit $ac_status); } >/dev/null && {
13614 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13615 test ! -s conftest.err
13616 }; then
13617 ac_header_preproc=yes
13618 else
13619 echo "$as_me: failed program was:" >&5
13620 sed 's/^/| /' conftest.$ac_ext >&5
13622 ac_header_preproc=no
13625 rm -f conftest.err conftest.$ac_ext
13626 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13627 echo "${ECHO_T}$ac_header_preproc" >&6; }
13629 # So? What about this header?
13630 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13631 yes:no: )
13632 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13633 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13634 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13635 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13636 ac_header_preproc=yes
13638 no:yes:* )
13639 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13640 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13641 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13642 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13643 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13644 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13645 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13646 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13647 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13648 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13649 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13650 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13653 esac
13654 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13655 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13656 if test "${ac_cv_header_jerror_h+set}" = set; then
13657 echo $ECHO_N "(cached) $ECHO_C" >&6
13658 else
13659 ac_cv_header_jerror_h=$ac_header_preproc
13661 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13662 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13665 if test $ac_cv_header_jerror_h = yes; then
13666 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13667 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13668 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13669 echo $ECHO_N "(cached) $ECHO_C" >&6
13670 else
13671 ac_check_lib_save_LIBS=$LIBS
13672 LIBS="-ljpeg $LIBS"
13673 cat >conftest.$ac_ext <<_ACEOF
13674 /* confdefs.h. */
13675 _ACEOF
13676 cat confdefs.h >>conftest.$ac_ext
13677 cat >>conftest.$ac_ext <<_ACEOF
13678 /* end confdefs.h. */
13680 /* Override any GCC internal prototype to avoid an error.
13681 Use char because int might match the return type of a GCC
13682 builtin and then its argument prototype would still apply. */
13683 #ifdef __cplusplus
13684 extern "C"
13685 #endif
13686 char jpeg_destroy_compress ();
13688 main ()
13690 return jpeg_destroy_compress ();
13692 return 0;
13694 _ACEOF
13695 rm -f conftest.$ac_objext conftest$ac_exeext
13696 if { (ac_try="$ac_link"
13697 case "(($ac_try" in
13698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13699 *) ac_try_echo=$ac_try;;
13700 esac
13701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13702 (eval "$ac_link") 2>conftest.er1
13703 ac_status=$?
13704 grep -v '^ *+' conftest.er1 >conftest.err
13705 rm -f conftest.er1
13706 cat conftest.err >&5
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); } && {
13709 test -z "$ac_c_werror_flag" ||
13710 test ! -s conftest.err
13711 } && test -s conftest$ac_exeext &&
13712 $as_test_x conftest$ac_exeext; then
13713 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13714 else
13715 echo "$as_me: failed program was:" >&5
13716 sed 's/^/| /' conftest.$ac_ext >&5
13718 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13722 conftest$ac_exeext conftest.$ac_ext
13723 LIBS=$ac_check_lib_save_LIBS
13725 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13726 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13727 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13728 HAVE_JPEG=yes
13737 if test "${HAVE_JPEG}" = "yes"; then
13738 cat >>confdefs.h <<\_ACEOF
13739 #define HAVE_JPEG 1
13740 _ACEOF
13742 cat >conftest.$ac_ext <<_ACEOF
13743 /* confdefs.h. */
13744 _ACEOF
13745 cat confdefs.h >>conftest.$ac_ext
13746 cat >>conftest.$ac_ext <<_ACEOF
13747 /* end confdefs.h. */
13748 #include <jpeglib.h>
13749 version=JPEG_LIB_VERSION
13751 _ACEOF
13752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13753 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13754 cat >>confdefs.h <<\_ACEOF
13755 #define HAVE_JPEG 1
13756 _ACEOF
13758 else
13759 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13760 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13761 HAVE_JPEG=no
13763 rm -f conftest*
13768 ### Use -lpng if available, unless `--with-png=no'.
13769 HAVE_PNG=no
13770 if test "${HAVE_X11}" = "yes"; then
13771 if test "${with_png}" != "no"; then
13772 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13773 # in /usr/include/libpng.
13776 for ac_header in png.h libpng/png.h
13778 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13780 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13783 echo $ECHO_N "(cached) $ECHO_C" >&6
13785 ac_res=`eval echo '${'$as_ac_Header'}'`
13786 { echo "$as_me:$LINENO: result: $ac_res" >&5
13787 echo "${ECHO_T}$ac_res" >&6; }
13788 else
13789 # Is the header compilable?
13790 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13791 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13792 cat >conftest.$ac_ext <<_ACEOF
13793 /* confdefs.h. */
13794 _ACEOF
13795 cat confdefs.h >>conftest.$ac_ext
13796 cat >>conftest.$ac_ext <<_ACEOF
13797 /* end confdefs.h. */
13798 $ac_includes_default
13799 #include <$ac_header>
13800 _ACEOF
13801 rm -f conftest.$ac_objext
13802 if { (ac_try="$ac_compile"
13803 case "(($ac_try" in
13804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13805 *) ac_try_echo=$ac_try;;
13806 esac
13807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13808 (eval "$ac_compile") 2>conftest.er1
13809 ac_status=$?
13810 grep -v '^ *+' conftest.er1 >conftest.err
13811 rm -f conftest.er1
13812 cat conftest.err >&5
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); } && {
13815 test -z "$ac_c_werror_flag" ||
13816 test ! -s conftest.err
13817 } && test -s conftest.$ac_objext; then
13818 ac_header_compiler=yes
13819 else
13820 echo "$as_me: failed program was:" >&5
13821 sed 's/^/| /' conftest.$ac_ext >&5
13823 ac_header_compiler=no
13826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13827 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13828 echo "${ECHO_T}$ac_header_compiler" >&6; }
13830 # Is the header present?
13831 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13832 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13833 cat >conftest.$ac_ext <<_ACEOF
13834 /* confdefs.h. */
13835 _ACEOF
13836 cat confdefs.h >>conftest.$ac_ext
13837 cat >>conftest.$ac_ext <<_ACEOF
13838 /* end confdefs.h. */
13839 #include <$ac_header>
13840 _ACEOF
13841 if { (ac_try="$ac_cpp conftest.$ac_ext"
13842 case "(($ac_try" in
13843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13844 *) ac_try_echo=$ac_try;;
13845 esac
13846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13848 ac_status=$?
13849 grep -v '^ *+' conftest.er1 >conftest.err
13850 rm -f conftest.er1
13851 cat conftest.err >&5
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); } >/dev/null && {
13854 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13855 test ! -s conftest.err
13856 }; then
13857 ac_header_preproc=yes
13858 else
13859 echo "$as_me: failed program was:" >&5
13860 sed 's/^/| /' conftest.$ac_ext >&5
13862 ac_header_preproc=no
13865 rm -f conftest.err conftest.$ac_ext
13866 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13867 echo "${ECHO_T}$ac_header_preproc" >&6; }
13869 # So? What about this header?
13870 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13871 yes:no: )
13872 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13873 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13875 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13876 ac_header_preproc=yes
13878 no:yes:* )
13879 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13880 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13881 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13882 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13883 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13884 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13885 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13886 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13888 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13889 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13890 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13893 esac
13894 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13897 echo $ECHO_N "(cached) $ECHO_C" >&6
13898 else
13899 eval "$as_ac_Header=\$ac_header_preproc"
13901 ac_res=`eval echo '${'$as_ac_Header'}'`
13902 { echo "$as_me:$LINENO: result: $ac_res" >&5
13903 echo "${ECHO_T}$ac_res" >&6; }
13906 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13907 cat >>confdefs.h <<_ACEOF
13908 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13909 _ACEOF
13913 done
13915 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13916 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13917 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13918 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13919 echo $ECHO_N "(cached) $ECHO_C" >&6
13920 else
13921 ac_check_lib_save_LIBS=$LIBS
13922 LIBS="-lpng -lz -lm $LIBS"
13923 cat >conftest.$ac_ext <<_ACEOF
13924 /* confdefs.h. */
13925 _ACEOF
13926 cat confdefs.h >>conftest.$ac_ext
13927 cat >>conftest.$ac_ext <<_ACEOF
13928 /* end confdefs.h. */
13930 /* Override any GCC internal prototype to avoid an error.
13931 Use char because int might match the return type of a GCC
13932 builtin and then its argument prototype would still apply. */
13933 #ifdef __cplusplus
13934 extern "C"
13935 #endif
13936 char png_get_channels ();
13938 main ()
13940 return png_get_channels ();
13942 return 0;
13944 _ACEOF
13945 rm -f conftest.$ac_objext conftest$ac_exeext
13946 if { (ac_try="$ac_link"
13947 case "(($ac_try" in
13948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13949 *) ac_try_echo=$ac_try;;
13950 esac
13951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13952 (eval "$ac_link") 2>conftest.er1
13953 ac_status=$?
13954 grep -v '^ *+' conftest.er1 >conftest.err
13955 rm -f conftest.er1
13956 cat conftest.err >&5
13957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958 (exit $ac_status); } && {
13959 test -z "$ac_c_werror_flag" ||
13960 test ! -s conftest.err
13961 } && test -s conftest$ac_exeext &&
13962 $as_test_x conftest$ac_exeext; then
13963 ac_cv_lib_png_png_get_channels=yes
13964 else
13965 echo "$as_me: failed program was:" >&5
13966 sed 's/^/| /' conftest.$ac_ext >&5
13968 ac_cv_lib_png_png_get_channels=no
13971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13972 conftest$ac_exeext conftest.$ac_ext
13973 LIBS=$ac_check_lib_save_LIBS
13975 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13976 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13977 if test $ac_cv_lib_png_png_get_channels = yes; then
13978 HAVE_PNG=yes
13984 if test "${HAVE_PNG}" = "yes"; then
13986 cat >>confdefs.h <<\_ACEOF
13987 #define HAVE_PNG 1
13988 _ACEOF
13993 ### Use -ltiff if available, unless `--with-tiff=no'.
13994 HAVE_TIFF=no
13995 if test "${HAVE_X11}" = "yes"; then
13996 if test "${with_tiff}" != "no"; then
13997 if test "${ac_cv_header_tiffio_h+set}" = set; then
13998 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13999 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14000 if test "${ac_cv_header_tiffio_h+set}" = set; then
14001 echo $ECHO_N "(cached) $ECHO_C" >&6
14003 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14004 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14005 else
14006 # Is the header compilable?
14007 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
14008 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
14009 cat >conftest.$ac_ext <<_ACEOF
14010 /* confdefs.h. */
14011 _ACEOF
14012 cat confdefs.h >>conftest.$ac_ext
14013 cat >>conftest.$ac_ext <<_ACEOF
14014 /* end confdefs.h. */
14015 $ac_includes_default
14016 #include <tiffio.h>
14017 _ACEOF
14018 rm -f conftest.$ac_objext
14019 if { (ac_try="$ac_compile"
14020 case "(($ac_try" in
14021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14022 *) ac_try_echo=$ac_try;;
14023 esac
14024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14025 (eval "$ac_compile") 2>conftest.er1
14026 ac_status=$?
14027 grep -v '^ *+' conftest.er1 >conftest.err
14028 rm -f conftest.er1
14029 cat conftest.err >&5
14030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031 (exit $ac_status); } && {
14032 test -z "$ac_c_werror_flag" ||
14033 test ! -s conftest.err
14034 } && test -s conftest.$ac_objext; then
14035 ac_header_compiler=yes
14036 else
14037 echo "$as_me: failed program was:" >&5
14038 sed 's/^/| /' conftest.$ac_ext >&5
14040 ac_header_compiler=no
14043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14044 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14045 echo "${ECHO_T}$ac_header_compiler" >&6; }
14047 # Is the header present?
14048 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14049 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
14050 cat >conftest.$ac_ext <<_ACEOF
14051 /* confdefs.h. */
14052 _ACEOF
14053 cat confdefs.h >>conftest.$ac_ext
14054 cat >>conftest.$ac_ext <<_ACEOF
14055 /* end confdefs.h. */
14056 #include <tiffio.h>
14057 _ACEOF
14058 if { (ac_try="$ac_cpp conftest.$ac_ext"
14059 case "(($ac_try" in
14060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14061 *) ac_try_echo=$ac_try;;
14062 esac
14063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14064 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14065 ac_status=$?
14066 grep -v '^ *+' conftest.er1 >conftest.err
14067 rm -f conftest.er1
14068 cat conftest.err >&5
14069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070 (exit $ac_status); } >/dev/null && {
14071 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14072 test ! -s conftest.err
14073 }; then
14074 ac_header_preproc=yes
14075 else
14076 echo "$as_me: failed program was:" >&5
14077 sed 's/^/| /' conftest.$ac_ext >&5
14079 ac_header_preproc=no
14082 rm -f conftest.err conftest.$ac_ext
14083 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14084 echo "${ECHO_T}$ac_header_preproc" >&6; }
14086 # So? What about this header?
14087 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14088 yes:no: )
14089 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14090 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14091 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
14092 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
14093 ac_header_preproc=yes
14095 no:yes:* )
14096 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14097 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14098 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14099 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14100 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14101 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14102 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14103 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14104 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
14105 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
14106 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14107 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14110 esac
14111 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14112 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14113 if test "${ac_cv_header_tiffio_h+set}" = set; then
14114 echo $ECHO_N "(cached) $ECHO_C" >&6
14115 else
14116 ac_cv_header_tiffio_h=$ac_header_preproc
14118 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14119 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14122 if test $ac_cv_header_tiffio_h = yes; then
14123 tifflibs="-lz -lm"
14124 # At least one tiff package requires the jpeg library.
14125 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14126 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14127 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14128 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14129 echo $ECHO_N "(cached) $ECHO_C" >&6
14130 else
14131 ac_check_lib_save_LIBS=$LIBS
14132 LIBS="-ltiff $tifflibs $LIBS"
14133 cat >conftest.$ac_ext <<_ACEOF
14134 /* confdefs.h. */
14135 _ACEOF
14136 cat confdefs.h >>conftest.$ac_ext
14137 cat >>conftest.$ac_ext <<_ACEOF
14138 /* end confdefs.h. */
14140 /* Override any GCC internal prototype to avoid an error.
14141 Use char because int might match the return type of a GCC
14142 builtin and then its argument prototype would still apply. */
14143 #ifdef __cplusplus
14144 extern "C"
14145 #endif
14146 char TIFFGetVersion ();
14148 main ()
14150 return TIFFGetVersion ();
14152 return 0;
14154 _ACEOF
14155 rm -f conftest.$ac_objext conftest$ac_exeext
14156 if { (ac_try="$ac_link"
14157 case "(($ac_try" in
14158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14159 *) ac_try_echo=$ac_try;;
14160 esac
14161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14162 (eval "$ac_link") 2>conftest.er1
14163 ac_status=$?
14164 grep -v '^ *+' conftest.er1 >conftest.err
14165 rm -f conftest.er1
14166 cat conftest.err >&5
14167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168 (exit $ac_status); } && {
14169 test -z "$ac_c_werror_flag" ||
14170 test ! -s conftest.err
14171 } && test -s conftest$ac_exeext &&
14172 $as_test_x conftest$ac_exeext; then
14173 ac_cv_lib_tiff_TIFFGetVersion=yes
14174 else
14175 echo "$as_me: failed program was:" >&5
14176 sed 's/^/| /' conftest.$ac_ext >&5
14178 ac_cv_lib_tiff_TIFFGetVersion=no
14181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14182 conftest$ac_exeext conftest.$ac_ext
14183 LIBS=$ac_check_lib_save_LIBS
14185 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14186 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14187 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14188 HAVE_TIFF=yes
14196 if test "${HAVE_TIFF}" = "yes"; then
14198 cat >>confdefs.h <<\_ACEOF
14199 #define HAVE_TIFF 1
14200 _ACEOF
14205 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14206 HAVE_GIF=no
14207 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14208 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14209 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14210 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14211 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14212 echo $ECHO_N "(cached) $ECHO_C" >&6
14214 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14215 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14216 else
14217 # Is the header compilable?
14218 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14219 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14220 cat >conftest.$ac_ext <<_ACEOF
14221 /* confdefs.h. */
14222 _ACEOF
14223 cat confdefs.h >>conftest.$ac_ext
14224 cat >>conftest.$ac_ext <<_ACEOF
14225 /* end confdefs.h. */
14226 $ac_includes_default
14227 #include <gif_lib.h>
14228 _ACEOF
14229 rm -f conftest.$ac_objext
14230 if { (ac_try="$ac_compile"
14231 case "(($ac_try" in
14232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14233 *) ac_try_echo=$ac_try;;
14234 esac
14235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14236 (eval "$ac_compile") 2>conftest.er1
14237 ac_status=$?
14238 grep -v '^ *+' conftest.er1 >conftest.err
14239 rm -f conftest.er1
14240 cat conftest.err >&5
14241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242 (exit $ac_status); } && {
14243 test -z "$ac_c_werror_flag" ||
14244 test ! -s conftest.err
14245 } && test -s conftest.$ac_objext; then
14246 ac_header_compiler=yes
14247 else
14248 echo "$as_me: failed program was:" >&5
14249 sed 's/^/| /' conftest.$ac_ext >&5
14251 ac_header_compiler=no
14254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14255 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14256 echo "${ECHO_T}$ac_header_compiler" >&6; }
14258 # Is the header present?
14259 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14260 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14261 cat >conftest.$ac_ext <<_ACEOF
14262 /* confdefs.h. */
14263 _ACEOF
14264 cat confdefs.h >>conftest.$ac_ext
14265 cat >>conftest.$ac_ext <<_ACEOF
14266 /* end confdefs.h. */
14267 #include <gif_lib.h>
14268 _ACEOF
14269 if { (ac_try="$ac_cpp conftest.$ac_ext"
14270 case "(($ac_try" in
14271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14272 *) ac_try_echo=$ac_try;;
14273 esac
14274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14275 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14276 ac_status=$?
14277 grep -v '^ *+' conftest.er1 >conftest.err
14278 rm -f conftest.er1
14279 cat conftest.err >&5
14280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281 (exit $ac_status); } >/dev/null && {
14282 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14283 test ! -s conftest.err
14284 }; then
14285 ac_header_preproc=yes
14286 else
14287 echo "$as_me: failed program was:" >&5
14288 sed 's/^/| /' conftest.$ac_ext >&5
14290 ac_header_preproc=no
14293 rm -f conftest.err conftest.$ac_ext
14294 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14295 echo "${ECHO_T}$ac_header_preproc" >&6; }
14297 # So? What about this header?
14298 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14299 yes:no: )
14300 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14301 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14302 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14303 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14304 ac_header_preproc=yes
14306 no:yes:* )
14307 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14308 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14309 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14310 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14311 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14312 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14313 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14314 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14315 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14316 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14317 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14318 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14321 esac
14322 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14323 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14324 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14325 echo $ECHO_N "(cached) $ECHO_C" >&6
14326 else
14327 ac_cv_header_gif_lib_h=$ac_header_preproc
14329 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14330 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14333 if test $ac_cv_header_gif_lib_h = yes; then
14334 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14335 # Earlier versions can crash Emacs.
14336 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14337 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14338 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14339 echo $ECHO_N "(cached) $ECHO_C" >&6
14340 else
14341 ac_check_lib_save_LIBS=$LIBS
14342 LIBS="-lgif $LIBS"
14343 cat >conftest.$ac_ext <<_ACEOF
14344 /* confdefs.h. */
14345 _ACEOF
14346 cat confdefs.h >>conftest.$ac_ext
14347 cat >>conftest.$ac_ext <<_ACEOF
14348 /* end confdefs.h. */
14350 /* Override any GCC internal prototype to avoid an error.
14351 Use char because int might match the return type of a GCC
14352 builtin and then its argument prototype would still apply. */
14353 #ifdef __cplusplus
14354 extern "C"
14355 #endif
14356 char EGifPutExtensionLast ();
14358 main ()
14360 return EGifPutExtensionLast ();
14362 return 0;
14364 _ACEOF
14365 rm -f conftest.$ac_objext conftest$ac_exeext
14366 if { (ac_try="$ac_link"
14367 case "(($ac_try" in
14368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14369 *) ac_try_echo=$ac_try;;
14370 esac
14371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14372 (eval "$ac_link") 2>conftest.er1
14373 ac_status=$?
14374 grep -v '^ *+' conftest.er1 >conftest.err
14375 rm -f conftest.er1
14376 cat conftest.err >&5
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); } && {
14379 test -z "$ac_c_werror_flag" ||
14380 test ! -s conftest.err
14381 } && test -s conftest$ac_exeext &&
14382 $as_test_x conftest$ac_exeext; then
14383 ac_cv_lib_gif_EGifPutExtensionLast=yes
14384 else
14385 echo "$as_me: failed program was:" >&5
14386 sed 's/^/| /' conftest.$ac_ext >&5
14388 ac_cv_lib_gif_EGifPutExtensionLast=no
14391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14392 conftest$ac_exeext conftest.$ac_ext
14393 LIBS=$ac_check_lib_save_LIBS
14395 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14396 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14397 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14398 HAVE_GIF=yes
14399 else
14400 try_libungif=yes
14407 if test "$HAVE_GIF" = yes; then
14408 ac_gif_lib_name="-lgif"
14411 # If gif_lib.h but no libgif, try libungif.
14412 if test x"$try_libungif" = xyes; then
14413 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14414 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14415 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14416 echo $ECHO_N "(cached) $ECHO_C" >&6
14417 else
14418 ac_check_lib_save_LIBS=$LIBS
14419 LIBS="-lungif $LIBS"
14420 cat >conftest.$ac_ext <<_ACEOF
14421 /* confdefs.h. */
14422 _ACEOF
14423 cat confdefs.h >>conftest.$ac_ext
14424 cat >>conftest.$ac_ext <<_ACEOF
14425 /* end confdefs.h. */
14427 /* Override any GCC internal prototype to avoid an error.
14428 Use char because int might match the return type of a GCC
14429 builtin and then its argument prototype would still apply. */
14430 #ifdef __cplusplus
14431 extern "C"
14432 #endif
14433 char EGifPutExtensionLast ();
14435 main ()
14437 return EGifPutExtensionLast ();
14439 return 0;
14441 _ACEOF
14442 rm -f conftest.$ac_objext conftest$ac_exeext
14443 if { (ac_try="$ac_link"
14444 case "(($ac_try" in
14445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14446 *) ac_try_echo=$ac_try;;
14447 esac
14448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14449 (eval "$ac_link") 2>conftest.er1
14450 ac_status=$?
14451 grep -v '^ *+' conftest.er1 >conftest.err
14452 rm -f conftest.er1
14453 cat conftest.err >&5
14454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455 (exit $ac_status); } && {
14456 test -z "$ac_c_werror_flag" ||
14457 test ! -s conftest.err
14458 } && test -s conftest$ac_exeext &&
14459 $as_test_x conftest$ac_exeext; then
14460 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14461 else
14462 echo "$as_me: failed program was:" >&5
14463 sed 's/^/| /' conftest.$ac_ext >&5
14465 ac_cv_lib_ungif_EGifPutExtensionLast=no
14468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14469 conftest$ac_exeext conftest.$ac_ext
14470 LIBS=$ac_check_lib_save_LIBS
14472 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14473 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14474 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14475 HAVE_GIF=yes
14479 if test "$HAVE_GIF" = yes; then
14481 cat >>confdefs.h <<\_ACEOF
14482 #define LIBGIF -lungif
14483 _ACEOF
14485 ac_gif_lib_name="-lungif"
14489 if test "${HAVE_GIF}" = "yes"; then
14491 cat >>confdefs.h <<\_ACEOF
14492 #define HAVE_GIF 1
14493 _ACEOF
14498 if test "${HAVE_X11}" = "yes"; then
14499 MISSING=""
14500 WITH_NO=""
14501 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14502 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14503 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14504 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
14505 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14506 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
14507 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14508 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
14509 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14510 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
14512 if test "X${MISSING}" != X; then
14513 { { echo "$as_me:$LINENO: error: The following required libraries was not found:
14514 $MISSING
14515 Maybe some development libraries/packages are missing?
14516 If you don't want to link with them give
14517 $WITH_NO
14518 as options to configure" >&5
14519 echo "$as_me: error: The following required libraries was not found:
14520 $MISSING
14521 Maybe some development libraries/packages are missing?
14522 If you don't want to link with them give
14523 $WITH_NO
14524 as options to configure" >&2;}
14525 { (exit 1); exit 1; }; }
14529 ### Use -lgpm if available, unless `--with-gpm=no'.
14530 HAVE_GPM=no
14531 if test "${with_gpm}" != "no"; then
14532 if test "${ac_cv_header_gpm_h+set}" = set; then
14533 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14534 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14535 if test "${ac_cv_header_gpm_h+set}" = set; then
14536 echo $ECHO_N "(cached) $ECHO_C" >&6
14538 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14539 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14540 else
14541 # Is the header compilable?
14542 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14543 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14544 cat >conftest.$ac_ext <<_ACEOF
14545 /* confdefs.h. */
14546 _ACEOF
14547 cat confdefs.h >>conftest.$ac_ext
14548 cat >>conftest.$ac_ext <<_ACEOF
14549 /* end confdefs.h. */
14550 $ac_includes_default
14551 #include <gpm.h>
14552 _ACEOF
14553 rm -f conftest.$ac_objext
14554 if { (ac_try="$ac_compile"
14555 case "(($ac_try" in
14556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14557 *) ac_try_echo=$ac_try;;
14558 esac
14559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14560 (eval "$ac_compile") 2>conftest.er1
14561 ac_status=$?
14562 grep -v '^ *+' conftest.er1 >conftest.err
14563 rm -f conftest.er1
14564 cat conftest.err >&5
14565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); } && {
14567 test -z "$ac_c_werror_flag" ||
14568 test ! -s conftest.err
14569 } && test -s conftest.$ac_objext; then
14570 ac_header_compiler=yes
14571 else
14572 echo "$as_me: failed program was:" >&5
14573 sed 's/^/| /' conftest.$ac_ext >&5
14575 ac_header_compiler=no
14578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14579 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14580 echo "${ECHO_T}$ac_header_compiler" >&6; }
14582 # Is the header present?
14583 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14584 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14585 cat >conftest.$ac_ext <<_ACEOF
14586 /* confdefs.h. */
14587 _ACEOF
14588 cat confdefs.h >>conftest.$ac_ext
14589 cat >>conftest.$ac_ext <<_ACEOF
14590 /* end confdefs.h. */
14591 #include <gpm.h>
14592 _ACEOF
14593 if { (ac_try="$ac_cpp conftest.$ac_ext"
14594 case "(($ac_try" in
14595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14596 *) ac_try_echo=$ac_try;;
14597 esac
14598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14599 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14600 ac_status=$?
14601 grep -v '^ *+' conftest.er1 >conftest.err
14602 rm -f conftest.er1
14603 cat conftest.err >&5
14604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605 (exit $ac_status); } >/dev/null && {
14606 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14607 test ! -s conftest.err
14608 }; then
14609 ac_header_preproc=yes
14610 else
14611 echo "$as_me: failed program was:" >&5
14612 sed 's/^/| /' conftest.$ac_ext >&5
14614 ac_header_preproc=no
14617 rm -f conftest.err conftest.$ac_ext
14618 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14619 echo "${ECHO_T}$ac_header_preproc" >&6; }
14621 # So? What about this header?
14622 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14623 yes:no: )
14624 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14625 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14626 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14627 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14628 ac_header_preproc=yes
14630 no:yes:* )
14631 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14632 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14633 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14634 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14635 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14636 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14637 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14638 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14639 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14640 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14641 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14642 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14645 esac
14646 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14647 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14648 if test "${ac_cv_header_gpm_h+set}" = set; then
14649 echo $ECHO_N "(cached) $ECHO_C" >&6
14650 else
14651 ac_cv_header_gpm_h=$ac_header_preproc
14653 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14654 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14657 if test $ac_cv_header_gpm_h = yes; then
14658 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14659 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14660 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14661 echo $ECHO_N "(cached) $ECHO_C" >&6
14662 else
14663 ac_check_lib_save_LIBS=$LIBS
14664 LIBS="-lgpm $LIBS"
14665 cat >conftest.$ac_ext <<_ACEOF
14666 /* confdefs.h. */
14667 _ACEOF
14668 cat confdefs.h >>conftest.$ac_ext
14669 cat >>conftest.$ac_ext <<_ACEOF
14670 /* end confdefs.h. */
14672 /* Override any GCC internal prototype to avoid an error.
14673 Use char because int might match the return type of a GCC
14674 builtin and then its argument prototype would still apply. */
14675 #ifdef __cplusplus
14676 extern "C"
14677 #endif
14678 char Gpm_Open ();
14680 main ()
14682 return Gpm_Open ();
14684 return 0;
14686 _ACEOF
14687 rm -f conftest.$ac_objext conftest$ac_exeext
14688 if { (ac_try="$ac_link"
14689 case "(($ac_try" in
14690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14691 *) ac_try_echo=$ac_try;;
14692 esac
14693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14694 (eval "$ac_link") 2>conftest.er1
14695 ac_status=$?
14696 grep -v '^ *+' conftest.er1 >conftest.err
14697 rm -f conftest.er1
14698 cat conftest.err >&5
14699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700 (exit $ac_status); } && {
14701 test -z "$ac_c_werror_flag" ||
14702 test ! -s conftest.err
14703 } && test -s conftest$ac_exeext &&
14704 $as_test_x conftest$ac_exeext; then
14705 ac_cv_lib_gpm_Gpm_Open=yes
14706 else
14707 echo "$as_me: failed program was:" >&5
14708 sed 's/^/| /' conftest.$ac_ext >&5
14710 ac_cv_lib_gpm_Gpm_Open=no
14713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14714 conftest$ac_exeext conftest.$ac_ext
14715 LIBS=$ac_check_lib_save_LIBS
14717 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14718 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14719 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14720 HAVE_GPM=yes
14728 if test "${HAVE_GPM}" = "yes"; then
14730 cat >>confdefs.h <<\_ACEOF
14731 #define HAVE_GPM 1
14732 _ACEOF
14736 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14737 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14738 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14739 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14740 echo $ECHO_N "(cached) $ECHO_C" >&6
14742 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14743 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14744 else
14745 # Is the header compilable?
14746 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14747 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14748 cat >conftest.$ac_ext <<_ACEOF
14749 /* confdefs.h. */
14750 _ACEOF
14751 cat confdefs.h >>conftest.$ac_ext
14752 cat >>conftest.$ac_ext <<_ACEOF
14753 /* end confdefs.h. */
14754 $ac_includes_default
14755 #include <malloc/malloc.h>
14756 _ACEOF
14757 rm -f conftest.$ac_objext
14758 if { (ac_try="$ac_compile"
14759 case "(($ac_try" in
14760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14761 *) ac_try_echo=$ac_try;;
14762 esac
14763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14764 (eval "$ac_compile") 2>conftest.er1
14765 ac_status=$?
14766 grep -v '^ *+' conftest.er1 >conftest.err
14767 rm -f conftest.er1
14768 cat conftest.err >&5
14769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14770 (exit $ac_status); } && {
14771 test -z "$ac_c_werror_flag" ||
14772 test ! -s conftest.err
14773 } && test -s conftest.$ac_objext; then
14774 ac_header_compiler=yes
14775 else
14776 echo "$as_me: failed program was:" >&5
14777 sed 's/^/| /' conftest.$ac_ext >&5
14779 ac_header_compiler=no
14782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14783 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14784 echo "${ECHO_T}$ac_header_compiler" >&6; }
14786 # Is the header present?
14787 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14788 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14789 cat >conftest.$ac_ext <<_ACEOF
14790 /* confdefs.h. */
14791 _ACEOF
14792 cat confdefs.h >>conftest.$ac_ext
14793 cat >>conftest.$ac_ext <<_ACEOF
14794 /* end confdefs.h. */
14795 #include <malloc/malloc.h>
14796 _ACEOF
14797 if { (ac_try="$ac_cpp conftest.$ac_ext"
14798 case "(($ac_try" in
14799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14800 *) ac_try_echo=$ac_try;;
14801 esac
14802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14803 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14804 ac_status=$?
14805 grep -v '^ *+' conftest.er1 >conftest.err
14806 rm -f conftest.er1
14807 cat conftest.err >&5
14808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809 (exit $ac_status); } >/dev/null && {
14810 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14811 test ! -s conftest.err
14812 }; then
14813 ac_header_preproc=yes
14814 else
14815 echo "$as_me: failed program was:" >&5
14816 sed 's/^/| /' conftest.$ac_ext >&5
14818 ac_header_preproc=no
14821 rm -f conftest.err conftest.$ac_ext
14822 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14823 echo "${ECHO_T}$ac_header_preproc" >&6; }
14825 # So? What about this header?
14826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14827 yes:no: )
14828 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14829 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14830 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14831 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14832 ac_header_preproc=yes
14834 no:yes:* )
14835 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14836 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14837 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14838 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14839 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14840 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14841 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14842 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14843 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14844 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14845 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14846 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14849 esac
14850 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14851 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14852 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14853 echo $ECHO_N "(cached) $ECHO_C" >&6
14854 else
14855 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14857 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14858 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14861 if test $ac_cv_header_malloc_malloc_h = yes; then
14863 cat >>confdefs.h <<\_ACEOF
14864 #define HAVE_MALLOC_MALLOC_H 1
14865 _ACEOF
14871 ### Use Mac OS X Carbon API to implement GUI.
14872 if test "${HAVE_CARBON}" = "yes"; then
14874 cat >>confdefs.h <<\_ACEOF
14875 #define HAVE_CARBON 1
14876 _ACEOF
14878 ## Specify the install directory
14879 carbon_appdir=
14880 if test "${carbon_appdir_x}" != ""; then
14881 case ${carbon_appdir_x} in
14882 y | ye | yes) carbon_appdir=/Applications ;;
14883 * ) carbon_appdir=${carbon_appdir_x} ;;
14884 esac
14886 # We also have mouse menus.
14887 HAVE_MENUS=yes
14890 ### Use session management (-lSM -lICE) if available
14891 HAVE_X_SM=no
14892 if test "${HAVE_X11}" = "yes"; then
14893 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14894 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14895 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14896 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14897 echo $ECHO_N "(cached) $ECHO_C" >&6
14899 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14900 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14901 else
14902 # Is the header compilable?
14903 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14904 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14905 cat >conftest.$ac_ext <<_ACEOF
14906 /* confdefs.h. */
14907 _ACEOF
14908 cat confdefs.h >>conftest.$ac_ext
14909 cat >>conftest.$ac_ext <<_ACEOF
14910 /* end confdefs.h. */
14911 $ac_includes_default
14912 #include <X11/SM/SMlib.h>
14913 _ACEOF
14914 rm -f conftest.$ac_objext
14915 if { (ac_try="$ac_compile"
14916 case "(($ac_try" in
14917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14918 *) ac_try_echo=$ac_try;;
14919 esac
14920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14921 (eval "$ac_compile") 2>conftest.er1
14922 ac_status=$?
14923 grep -v '^ *+' conftest.er1 >conftest.err
14924 rm -f conftest.er1
14925 cat conftest.err >&5
14926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927 (exit $ac_status); } && {
14928 test -z "$ac_c_werror_flag" ||
14929 test ! -s conftest.err
14930 } && test -s conftest.$ac_objext; then
14931 ac_header_compiler=yes
14932 else
14933 echo "$as_me: failed program was:" >&5
14934 sed 's/^/| /' conftest.$ac_ext >&5
14936 ac_header_compiler=no
14939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14940 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14941 echo "${ECHO_T}$ac_header_compiler" >&6; }
14943 # Is the header present?
14944 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14945 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14946 cat >conftest.$ac_ext <<_ACEOF
14947 /* confdefs.h. */
14948 _ACEOF
14949 cat confdefs.h >>conftest.$ac_ext
14950 cat >>conftest.$ac_ext <<_ACEOF
14951 /* end confdefs.h. */
14952 #include <X11/SM/SMlib.h>
14953 _ACEOF
14954 if { (ac_try="$ac_cpp conftest.$ac_ext"
14955 case "(($ac_try" in
14956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14957 *) ac_try_echo=$ac_try;;
14958 esac
14959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14960 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14961 ac_status=$?
14962 grep -v '^ *+' conftest.er1 >conftest.err
14963 rm -f conftest.er1
14964 cat conftest.err >&5
14965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966 (exit $ac_status); } >/dev/null && {
14967 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14968 test ! -s conftest.err
14969 }; then
14970 ac_header_preproc=yes
14971 else
14972 echo "$as_me: failed program was:" >&5
14973 sed 's/^/| /' conftest.$ac_ext >&5
14975 ac_header_preproc=no
14978 rm -f conftest.err conftest.$ac_ext
14979 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14980 echo "${ECHO_T}$ac_header_preproc" >&6; }
14982 # So? What about this header?
14983 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14984 yes:no: )
14985 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14986 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14987 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14988 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14989 ac_header_preproc=yes
14991 no:yes:* )
14992 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14993 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14994 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14995 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14996 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14997 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14998 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14999 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15000 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
15001 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
15002 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
15003 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
15006 esac
15007 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15008 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15009 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15010 echo $ECHO_N "(cached) $ECHO_C" >&6
15011 else
15012 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15014 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15015 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15018 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15019 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
15020 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
15021 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15022 echo $ECHO_N "(cached) $ECHO_C" >&6
15023 else
15024 ac_check_lib_save_LIBS=$LIBS
15025 LIBS="-lSM -lICE $LIBS"
15026 cat >conftest.$ac_ext <<_ACEOF
15027 /* confdefs.h. */
15028 _ACEOF
15029 cat confdefs.h >>conftest.$ac_ext
15030 cat >>conftest.$ac_ext <<_ACEOF
15031 /* end confdefs.h. */
15033 /* Override any GCC internal prototype to avoid an error.
15034 Use char because int might match the return type of a GCC
15035 builtin and then its argument prototype would still apply. */
15036 #ifdef __cplusplus
15037 extern "C"
15038 #endif
15039 char SmcOpenConnection ();
15041 main ()
15043 return SmcOpenConnection ();
15045 return 0;
15047 _ACEOF
15048 rm -f conftest.$ac_objext conftest$ac_exeext
15049 if { (ac_try="$ac_link"
15050 case "(($ac_try" in
15051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15052 *) ac_try_echo=$ac_try;;
15053 esac
15054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15055 (eval "$ac_link") 2>conftest.er1
15056 ac_status=$?
15057 grep -v '^ *+' conftest.er1 >conftest.err
15058 rm -f conftest.er1
15059 cat conftest.err >&5
15060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061 (exit $ac_status); } && {
15062 test -z "$ac_c_werror_flag" ||
15063 test ! -s conftest.err
15064 } && test -s conftest$ac_exeext &&
15065 $as_test_x conftest$ac_exeext; then
15066 ac_cv_lib_SM_SmcOpenConnection=yes
15067 else
15068 echo "$as_me: failed program was:" >&5
15069 sed 's/^/| /' conftest.$ac_ext >&5
15071 ac_cv_lib_SM_SmcOpenConnection=no
15074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15075 conftest$ac_exeext conftest.$ac_ext
15076 LIBS=$ac_check_lib_save_LIBS
15078 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15079 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15080 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15081 HAVE_X_SM=yes
15088 if test "${HAVE_X_SM}" = "yes"; then
15090 cat >>confdefs.h <<\_ACEOF
15091 #define HAVE_X_SM 1
15092 _ACEOF
15094 case "$LIBS" in
15095 *-lSM*) ;;
15096 *) LIBS="-lSM -lICE $LIBS" ;;
15097 esac
15101 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15102 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15103 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
15104 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15105 echo $ECHO_N "(cached) $ECHO_C" >&6
15106 else
15107 cat >conftest.$ac_ext <<_ACEOF
15108 /* confdefs.h. */
15109 _ACEOF
15110 cat confdefs.h >>conftest.$ac_ext
15111 cat >>conftest.$ac_ext <<_ACEOF
15112 /* end confdefs.h. */
15113 #include <netdb.h>
15115 main ()
15117 return h_errno;
15119 return 0;
15121 _ACEOF
15122 rm -f conftest.$ac_objext conftest$ac_exeext
15123 if { (ac_try="$ac_link"
15124 case "(($ac_try" in
15125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15126 *) ac_try_echo=$ac_try;;
15127 esac
15128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15129 (eval "$ac_link") 2>conftest.er1
15130 ac_status=$?
15131 grep -v '^ *+' conftest.er1 >conftest.err
15132 rm -f conftest.er1
15133 cat conftest.err >&5
15134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135 (exit $ac_status); } && {
15136 test -z "$ac_c_werror_flag" ||
15137 test ! -s conftest.err
15138 } && test -s conftest$ac_exeext &&
15139 $as_test_x conftest$ac_exeext; then
15140 emacs_cv_netdb_declares_h_errno=yes
15141 else
15142 echo "$as_me: failed program was:" >&5
15143 sed 's/^/| /' conftest.$ac_ext >&5
15145 emacs_cv_netdb_declares_h_errno=no
15148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15149 conftest$ac_exeext conftest.$ac_ext
15151 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15152 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15153 if test $emacs_cv_netdb_declares_h_errno = yes; then
15155 cat >>confdefs.h <<\_ACEOF
15156 #define HAVE_H_ERRNO 1
15157 _ACEOF
15161 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15162 # for constant arguments. Useless!
15163 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15164 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15165 if test "${ac_cv_working_alloca_h+set}" = set; then
15166 echo $ECHO_N "(cached) $ECHO_C" >&6
15167 else
15168 cat >conftest.$ac_ext <<_ACEOF
15169 /* confdefs.h. */
15170 _ACEOF
15171 cat confdefs.h >>conftest.$ac_ext
15172 cat >>conftest.$ac_ext <<_ACEOF
15173 /* end confdefs.h. */
15174 #include <alloca.h>
15176 main ()
15178 char *p = (char *) alloca (2 * sizeof (int));
15179 if (p) return 0;
15181 return 0;
15183 _ACEOF
15184 rm -f conftest.$ac_objext conftest$ac_exeext
15185 if { (ac_try="$ac_link"
15186 case "(($ac_try" in
15187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15188 *) ac_try_echo=$ac_try;;
15189 esac
15190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15191 (eval "$ac_link") 2>conftest.er1
15192 ac_status=$?
15193 grep -v '^ *+' conftest.er1 >conftest.err
15194 rm -f conftest.er1
15195 cat conftest.err >&5
15196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15197 (exit $ac_status); } && {
15198 test -z "$ac_c_werror_flag" ||
15199 test ! -s conftest.err
15200 } && test -s conftest$ac_exeext &&
15201 $as_test_x conftest$ac_exeext; then
15202 ac_cv_working_alloca_h=yes
15203 else
15204 echo "$as_me: failed program was:" >&5
15205 sed 's/^/| /' conftest.$ac_ext >&5
15207 ac_cv_working_alloca_h=no
15210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15211 conftest$ac_exeext conftest.$ac_ext
15213 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15214 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15215 if test $ac_cv_working_alloca_h = yes; then
15217 cat >>confdefs.h <<\_ACEOF
15218 #define HAVE_ALLOCA_H 1
15219 _ACEOF
15223 { echo "$as_me:$LINENO: checking for alloca" >&5
15224 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15225 if test "${ac_cv_func_alloca_works+set}" = set; then
15226 echo $ECHO_N "(cached) $ECHO_C" >&6
15227 else
15228 cat >conftest.$ac_ext <<_ACEOF
15229 /* confdefs.h. */
15230 _ACEOF
15231 cat confdefs.h >>conftest.$ac_ext
15232 cat >>conftest.$ac_ext <<_ACEOF
15233 /* end confdefs.h. */
15234 #ifdef __GNUC__
15235 # define alloca __builtin_alloca
15236 #else
15237 # ifdef _MSC_VER
15238 # include <malloc.h>
15239 # define alloca _alloca
15240 # else
15241 # ifdef HAVE_ALLOCA_H
15242 # include <alloca.h>
15243 # else
15244 # ifdef _AIX
15245 #pragma alloca
15246 # else
15247 # ifndef alloca /* predefined by HP cc +Olibcalls */
15248 char *alloca ();
15249 # endif
15250 # endif
15251 # endif
15252 # endif
15253 #endif
15256 main ()
15258 char *p = (char *) alloca (1);
15259 if (p) return 0;
15261 return 0;
15263 _ACEOF
15264 rm -f conftest.$ac_objext conftest$ac_exeext
15265 if { (ac_try="$ac_link"
15266 case "(($ac_try" in
15267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15268 *) ac_try_echo=$ac_try;;
15269 esac
15270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15271 (eval "$ac_link") 2>conftest.er1
15272 ac_status=$?
15273 grep -v '^ *+' conftest.er1 >conftest.err
15274 rm -f conftest.er1
15275 cat conftest.err >&5
15276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277 (exit $ac_status); } && {
15278 test -z "$ac_c_werror_flag" ||
15279 test ! -s conftest.err
15280 } && test -s conftest$ac_exeext &&
15281 $as_test_x conftest$ac_exeext; then
15282 ac_cv_func_alloca_works=yes
15283 else
15284 echo "$as_me: failed program was:" >&5
15285 sed 's/^/| /' conftest.$ac_ext >&5
15287 ac_cv_func_alloca_works=no
15290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15291 conftest$ac_exeext conftest.$ac_ext
15293 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15294 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15296 if test $ac_cv_func_alloca_works = yes; then
15298 cat >>confdefs.h <<\_ACEOF
15299 #define HAVE_ALLOCA 1
15300 _ACEOF
15302 else
15303 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15304 # that cause trouble. Some versions do not even contain alloca or
15305 # contain a buggy version. If you still want to use their alloca,
15306 # use ar to extract alloca.o from them instead of compiling alloca.c.
15308 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15310 cat >>confdefs.h <<\_ACEOF
15311 #define C_ALLOCA 1
15312 _ACEOF
15315 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15316 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
15317 if test "${ac_cv_os_cray+set}" = set; then
15318 echo $ECHO_N "(cached) $ECHO_C" >&6
15319 else
15320 cat >conftest.$ac_ext <<_ACEOF
15321 /* confdefs.h. */
15322 _ACEOF
15323 cat confdefs.h >>conftest.$ac_ext
15324 cat >>conftest.$ac_ext <<_ACEOF
15325 /* end confdefs.h. */
15326 #if defined CRAY && ! defined CRAY2
15327 webecray
15328 #else
15329 wenotbecray
15330 #endif
15332 _ACEOF
15333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15334 $EGREP "webecray" >/dev/null 2>&1; then
15335 ac_cv_os_cray=yes
15336 else
15337 ac_cv_os_cray=no
15339 rm -f conftest*
15342 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15343 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15344 if test $ac_cv_os_cray = yes; then
15345 for ac_func in _getb67 GETB67 getb67; do
15346 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15347 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15348 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15349 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15350 echo $ECHO_N "(cached) $ECHO_C" >&6
15351 else
15352 cat >conftest.$ac_ext <<_ACEOF
15353 /* confdefs.h. */
15354 _ACEOF
15355 cat confdefs.h >>conftest.$ac_ext
15356 cat >>conftest.$ac_ext <<_ACEOF
15357 /* end confdefs.h. */
15358 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15359 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15360 #define $ac_func innocuous_$ac_func
15362 /* System header to define __stub macros and hopefully few prototypes,
15363 which can conflict with char $ac_func (); below.
15364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15365 <limits.h> exists even on freestanding compilers. */
15367 #ifdef __STDC__
15368 # include <limits.h>
15369 #else
15370 # include <assert.h>
15371 #endif
15373 #undef $ac_func
15375 /* Override any GCC internal prototype to avoid an error.
15376 Use char because int might match the return type of a GCC
15377 builtin and then its argument prototype would still apply. */
15378 #ifdef __cplusplus
15379 extern "C"
15380 #endif
15381 char $ac_func ();
15382 /* The GNU C library defines this for functions which it implements
15383 to always fail with ENOSYS. Some functions are actually named
15384 something starting with __ and the normal name is an alias. */
15385 #if defined __stub_$ac_func || defined __stub___$ac_func
15386 choke me
15387 #endif
15390 main ()
15392 return $ac_func ();
15394 return 0;
15396 _ACEOF
15397 rm -f conftest.$ac_objext conftest$ac_exeext
15398 if { (ac_try="$ac_link"
15399 case "(($ac_try" in
15400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15401 *) ac_try_echo=$ac_try;;
15402 esac
15403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15404 (eval "$ac_link") 2>conftest.er1
15405 ac_status=$?
15406 grep -v '^ *+' conftest.er1 >conftest.err
15407 rm -f conftest.er1
15408 cat conftest.err >&5
15409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15410 (exit $ac_status); } && {
15411 test -z "$ac_c_werror_flag" ||
15412 test ! -s conftest.err
15413 } && test -s conftest$ac_exeext &&
15414 $as_test_x conftest$ac_exeext; then
15415 eval "$as_ac_var=yes"
15416 else
15417 echo "$as_me: failed program was:" >&5
15418 sed 's/^/| /' conftest.$ac_ext >&5
15420 eval "$as_ac_var=no"
15423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15424 conftest$ac_exeext conftest.$ac_ext
15426 ac_res=`eval echo '${'$as_ac_var'}'`
15427 { echo "$as_me:$LINENO: result: $ac_res" >&5
15428 echo "${ECHO_T}$ac_res" >&6; }
15429 if test `eval echo '${'$as_ac_var'}'` = yes; then
15431 cat >>confdefs.h <<_ACEOF
15432 #define CRAY_STACKSEG_END $ac_func
15433 _ACEOF
15435 break
15438 done
15441 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15442 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
15443 if test "${ac_cv_c_stack_direction+set}" = set; then
15444 echo $ECHO_N "(cached) $ECHO_C" >&6
15445 else
15446 if test "$cross_compiling" = yes; then
15447 ac_cv_c_stack_direction=0
15448 else
15449 cat >conftest.$ac_ext <<_ACEOF
15450 /* confdefs.h. */
15451 _ACEOF
15452 cat confdefs.h >>conftest.$ac_ext
15453 cat >>conftest.$ac_ext <<_ACEOF
15454 /* end confdefs.h. */
15455 $ac_includes_default
15457 find_stack_direction ()
15459 static char *addr = 0;
15460 auto char dummy;
15461 if (addr == 0)
15463 addr = &dummy;
15464 return find_stack_direction ();
15466 else
15467 return (&dummy > addr) ? 1 : -1;
15471 main ()
15473 return find_stack_direction () < 0;
15475 _ACEOF
15476 rm -f conftest$ac_exeext
15477 if { (ac_try="$ac_link"
15478 case "(($ac_try" in
15479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15480 *) ac_try_echo=$ac_try;;
15481 esac
15482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15483 (eval "$ac_link") 2>&5
15484 ac_status=$?
15485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15486 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15487 { (case "(($ac_try" in
15488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15489 *) ac_try_echo=$ac_try;;
15490 esac
15491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15492 (eval "$ac_try") 2>&5
15493 ac_status=$?
15494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495 (exit $ac_status); }; }; then
15496 ac_cv_c_stack_direction=1
15497 else
15498 echo "$as_me: program exited with status $ac_status" >&5
15499 echo "$as_me: failed program was:" >&5
15500 sed 's/^/| /' conftest.$ac_ext >&5
15502 ( exit $ac_status )
15503 ac_cv_c_stack_direction=-1
15505 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15510 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15511 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15513 cat >>confdefs.h <<_ACEOF
15514 #define STACK_DIRECTION $ac_cv_c_stack_direction
15515 _ACEOF
15521 # fmod, logb, and frexp are found in -lm on most systems.
15522 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15524 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15525 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15526 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15527 echo $ECHO_N "(cached) $ECHO_C" >&6
15528 else
15529 ac_check_lib_save_LIBS=$LIBS
15530 LIBS="-lm $LIBS"
15531 cat >conftest.$ac_ext <<_ACEOF
15532 /* confdefs.h. */
15533 _ACEOF
15534 cat confdefs.h >>conftest.$ac_ext
15535 cat >>conftest.$ac_ext <<_ACEOF
15536 /* end confdefs.h. */
15538 /* Override any GCC internal prototype to avoid an error.
15539 Use char because int might match the return type of a GCC
15540 builtin and then its argument prototype would still apply. */
15541 #ifdef __cplusplus
15542 extern "C"
15543 #endif
15544 char sqrt ();
15546 main ()
15548 return sqrt ();
15550 return 0;
15552 _ACEOF
15553 rm -f conftest.$ac_objext conftest$ac_exeext
15554 if { (ac_try="$ac_link"
15555 case "(($ac_try" in
15556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15557 *) ac_try_echo=$ac_try;;
15558 esac
15559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15560 (eval "$ac_link") 2>conftest.er1
15561 ac_status=$?
15562 grep -v '^ *+' conftest.er1 >conftest.err
15563 rm -f conftest.er1
15564 cat conftest.err >&5
15565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566 (exit $ac_status); } && {
15567 test -z "$ac_c_werror_flag" ||
15568 test ! -s conftest.err
15569 } && test -s conftest$ac_exeext &&
15570 $as_test_x conftest$ac_exeext; then
15571 ac_cv_lib_m_sqrt=yes
15572 else
15573 echo "$as_me: failed program was:" >&5
15574 sed 's/^/| /' conftest.$ac_ext >&5
15576 ac_cv_lib_m_sqrt=no
15579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15580 conftest$ac_exeext conftest.$ac_ext
15581 LIBS=$ac_check_lib_save_LIBS
15583 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15584 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15585 if test $ac_cv_lib_m_sqrt = yes; then
15586 cat >>confdefs.h <<_ACEOF
15587 #define HAVE_LIBM 1
15588 _ACEOF
15590 LIBS="-lm $LIBS"
15595 # Check for mail-locking functions in a "mail" library. Probably this should
15596 # have the same check as for liblockfile below.
15598 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15599 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15600 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15601 echo $ECHO_N "(cached) $ECHO_C" >&6
15602 else
15603 ac_check_lib_save_LIBS=$LIBS
15604 LIBS="-lmail $LIBS"
15605 cat >conftest.$ac_ext <<_ACEOF
15606 /* confdefs.h. */
15607 _ACEOF
15608 cat confdefs.h >>conftest.$ac_ext
15609 cat >>conftest.$ac_ext <<_ACEOF
15610 /* end confdefs.h. */
15612 /* Override any GCC internal prototype to avoid an error.
15613 Use char because int might match the return type of a GCC
15614 builtin and then its argument prototype would still apply. */
15615 #ifdef __cplusplus
15616 extern "C"
15617 #endif
15618 char maillock ();
15620 main ()
15622 return maillock ();
15624 return 0;
15626 _ACEOF
15627 rm -f conftest.$ac_objext conftest$ac_exeext
15628 if { (ac_try="$ac_link"
15629 case "(($ac_try" in
15630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15631 *) ac_try_echo=$ac_try;;
15632 esac
15633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15634 (eval "$ac_link") 2>conftest.er1
15635 ac_status=$?
15636 grep -v '^ *+' conftest.er1 >conftest.err
15637 rm -f conftest.er1
15638 cat conftest.err >&5
15639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640 (exit $ac_status); } && {
15641 test -z "$ac_c_werror_flag" ||
15642 test ! -s conftest.err
15643 } && test -s conftest$ac_exeext &&
15644 $as_test_x conftest$ac_exeext; then
15645 ac_cv_lib_mail_maillock=yes
15646 else
15647 echo "$as_me: failed program was:" >&5
15648 sed 's/^/| /' conftest.$ac_ext >&5
15650 ac_cv_lib_mail_maillock=no
15653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15654 conftest$ac_exeext conftest.$ac_ext
15655 LIBS=$ac_check_lib_save_LIBS
15657 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15658 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15659 if test $ac_cv_lib_mail_maillock = yes; then
15660 cat >>confdefs.h <<_ACEOF
15661 #define HAVE_LIBMAIL 1
15662 _ACEOF
15664 LIBS="-lmail $LIBS"
15669 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15670 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15671 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15672 echo $ECHO_N "(cached) $ECHO_C" >&6
15673 else
15674 ac_check_lib_save_LIBS=$LIBS
15675 LIBS="-llockfile $LIBS"
15676 cat >conftest.$ac_ext <<_ACEOF
15677 /* confdefs.h. */
15678 _ACEOF
15679 cat confdefs.h >>conftest.$ac_ext
15680 cat >>conftest.$ac_ext <<_ACEOF
15681 /* end confdefs.h. */
15683 /* Override any GCC internal prototype to avoid an error.
15684 Use char because int might match the return type of a GCC
15685 builtin and then its argument prototype would still apply. */
15686 #ifdef __cplusplus
15687 extern "C"
15688 #endif
15689 char maillock ();
15691 main ()
15693 return maillock ();
15695 return 0;
15697 _ACEOF
15698 rm -f conftest.$ac_objext conftest$ac_exeext
15699 if { (ac_try="$ac_link"
15700 case "(($ac_try" in
15701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15702 *) ac_try_echo=$ac_try;;
15703 esac
15704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15705 (eval "$ac_link") 2>conftest.er1
15706 ac_status=$?
15707 grep -v '^ *+' conftest.er1 >conftest.err
15708 rm -f conftest.er1
15709 cat conftest.err >&5
15710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15711 (exit $ac_status); } && {
15712 test -z "$ac_c_werror_flag" ||
15713 test ! -s conftest.err
15714 } && test -s conftest$ac_exeext &&
15715 $as_test_x conftest$ac_exeext; then
15716 ac_cv_lib_lockfile_maillock=yes
15717 else
15718 echo "$as_me: failed program was:" >&5
15719 sed 's/^/| /' conftest.$ac_ext >&5
15721 ac_cv_lib_lockfile_maillock=no
15724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15725 conftest$ac_exeext conftest.$ac_ext
15726 LIBS=$ac_check_lib_save_LIBS
15728 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15729 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15730 if test $ac_cv_lib_lockfile_maillock = yes; then
15731 cat >>confdefs.h <<_ACEOF
15732 #define HAVE_LIBLOCKFILE 1
15733 _ACEOF
15735 LIBS="-llockfile $LIBS"
15739 # If we have the shared liblockfile, assume we must use it for mail
15740 # locking (e.g. Debian). If we couldn't link against liblockfile
15741 # (no liblockfile.a installed), ensure that we don't need to.
15742 if test "$ac_cv_lib_lockfile_maillock" = no; then
15743 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15744 set dummy liblockfile.so; ac_word=$2
15745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15747 if test "${ac_cv_prog_liblockfile+set}" = set; then
15748 echo $ECHO_N "(cached) $ECHO_C" >&6
15749 else
15750 if test -n "$liblockfile"; then
15751 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15752 else
15753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15754 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15755 for as_dir in $as_dummy
15757 IFS=$as_save_IFS
15758 test -z "$as_dir" && as_dir=.
15759 for ac_exec_ext in '' $ac_executable_extensions; do
15760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15761 ac_cv_prog_liblockfile="yes"
15762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15763 break 2
15765 done
15766 done
15767 IFS=$as_save_IFS
15769 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15772 liblockfile=$ac_cv_prog_liblockfile
15773 if test -n "$liblockfile"; then
15774 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15775 echo "${ECHO_T}$liblockfile" >&6; }
15776 else
15777 { echo "$as_me:$LINENO: result: no" >&5
15778 echo "${ECHO_T}no" >&6; }
15782 if test $ac_cv_prog_liblockfile = yes; then
15783 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15784 This probably means that movemail could lose mail.
15785 There may be a \`development' package to install containing liblockfile." >&5
15786 echo "$as_me: error: Shared liblockfile found but can't link against it.
15787 This probably means that movemail could lose mail.
15788 There may be a \`development' package to install containing liblockfile." >&2;}
15789 { (exit 1); exit 1; }; }
15790 else :
15794 for ac_func in touchlock
15796 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15797 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15798 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15799 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15800 echo $ECHO_N "(cached) $ECHO_C" >&6
15801 else
15802 cat >conftest.$ac_ext <<_ACEOF
15803 /* confdefs.h. */
15804 _ACEOF
15805 cat confdefs.h >>conftest.$ac_ext
15806 cat >>conftest.$ac_ext <<_ACEOF
15807 /* end confdefs.h. */
15808 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15809 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15810 #define $ac_func innocuous_$ac_func
15812 /* System header to define __stub macros and hopefully few prototypes,
15813 which can conflict with char $ac_func (); below.
15814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15815 <limits.h> exists even on freestanding compilers. */
15817 #ifdef __STDC__
15818 # include <limits.h>
15819 #else
15820 # include <assert.h>
15821 #endif
15823 #undef $ac_func
15825 /* Override any GCC internal prototype to avoid an error.
15826 Use char because int might match the return type of a GCC
15827 builtin and then its argument prototype would still apply. */
15828 #ifdef __cplusplus
15829 extern "C"
15830 #endif
15831 char $ac_func ();
15832 /* The GNU C library defines this for functions which it implements
15833 to always fail with ENOSYS. Some functions are actually named
15834 something starting with __ and the normal name is an alias. */
15835 #if defined __stub_$ac_func || defined __stub___$ac_func
15836 choke me
15837 #endif
15840 main ()
15842 return $ac_func ();
15844 return 0;
15846 _ACEOF
15847 rm -f conftest.$ac_objext conftest$ac_exeext
15848 if { (ac_try="$ac_link"
15849 case "(($ac_try" in
15850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15851 *) ac_try_echo=$ac_try;;
15852 esac
15853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15854 (eval "$ac_link") 2>conftest.er1
15855 ac_status=$?
15856 grep -v '^ *+' conftest.er1 >conftest.err
15857 rm -f conftest.er1
15858 cat conftest.err >&5
15859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860 (exit $ac_status); } && {
15861 test -z "$ac_c_werror_flag" ||
15862 test ! -s conftest.err
15863 } && test -s conftest$ac_exeext &&
15864 $as_test_x conftest$ac_exeext; then
15865 eval "$as_ac_var=yes"
15866 else
15867 echo "$as_me: failed program was:" >&5
15868 sed 's/^/| /' conftest.$ac_ext >&5
15870 eval "$as_ac_var=no"
15873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15874 conftest$ac_exeext conftest.$ac_ext
15876 ac_res=`eval echo '${'$as_ac_var'}'`
15877 { echo "$as_me:$LINENO: result: $ac_res" >&5
15878 echo "${ECHO_T}$ac_res" >&6; }
15879 if test `eval echo '${'$as_ac_var'}'` = yes; then
15880 cat >>confdefs.h <<_ACEOF
15881 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15882 _ACEOF
15885 done
15888 for ac_header in maillock.h
15890 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15891 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15892 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15895 echo $ECHO_N "(cached) $ECHO_C" >&6
15897 ac_res=`eval echo '${'$as_ac_Header'}'`
15898 { echo "$as_me:$LINENO: result: $ac_res" >&5
15899 echo "${ECHO_T}$ac_res" >&6; }
15900 else
15901 # Is the header compilable?
15902 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15903 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15904 cat >conftest.$ac_ext <<_ACEOF
15905 /* confdefs.h. */
15906 _ACEOF
15907 cat confdefs.h >>conftest.$ac_ext
15908 cat >>conftest.$ac_ext <<_ACEOF
15909 /* end confdefs.h. */
15910 $ac_includes_default
15911 #include <$ac_header>
15912 _ACEOF
15913 rm -f conftest.$ac_objext
15914 if { (ac_try="$ac_compile"
15915 case "(($ac_try" in
15916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15917 *) ac_try_echo=$ac_try;;
15918 esac
15919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15920 (eval "$ac_compile") 2>conftest.er1
15921 ac_status=$?
15922 grep -v '^ *+' conftest.er1 >conftest.err
15923 rm -f conftest.er1
15924 cat conftest.err >&5
15925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926 (exit $ac_status); } && {
15927 test -z "$ac_c_werror_flag" ||
15928 test ! -s conftest.err
15929 } && test -s conftest.$ac_objext; then
15930 ac_header_compiler=yes
15931 else
15932 echo "$as_me: failed program was:" >&5
15933 sed 's/^/| /' conftest.$ac_ext >&5
15935 ac_header_compiler=no
15938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15939 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15940 echo "${ECHO_T}$ac_header_compiler" >&6; }
15942 # Is the header present?
15943 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15944 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15945 cat >conftest.$ac_ext <<_ACEOF
15946 /* confdefs.h. */
15947 _ACEOF
15948 cat confdefs.h >>conftest.$ac_ext
15949 cat >>conftest.$ac_ext <<_ACEOF
15950 /* end confdefs.h. */
15951 #include <$ac_header>
15952 _ACEOF
15953 if { (ac_try="$ac_cpp conftest.$ac_ext"
15954 case "(($ac_try" in
15955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15956 *) ac_try_echo=$ac_try;;
15957 esac
15958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15959 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15960 ac_status=$?
15961 grep -v '^ *+' conftest.er1 >conftest.err
15962 rm -f conftest.er1
15963 cat conftest.err >&5
15964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15965 (exit $ac_status); } >/dev/null && {
15966 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15967 test ! -s conftest.err
15968 }; then
15969 ac_header_preproc=yes
15970 else
15971 echo "$as_me: failed program was:" >&5
15972 sed 's/^/| /' conftest.$ac_ext >&5
15974 ac_header_preproc=no
15977 rm -f conftest.err conftest.$ac_ext
15978 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15979 echo "${ECHO_T}$ac_header_preproc" >&6; }
15981 # So? What about this header?
15982 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15983 yes:no: )
15984 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15985 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15987 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15988 ac_header_preproc=yes
15990 no:yes:* )
15991 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15992 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15993 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15994 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15995 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15996 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15997 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15998 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15999 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16000 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16001 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16002 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16005 esac
16006 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16007 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16008 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16009 echo $ECHO_N "(cached) $ECHO_C" >&6
16010 else
16011 eval "$as_ac_Header=\$ac_header_preproc"
16013 ac_res=`eval echo '${'$as_ac_Header'}'`
16014 { echo "$as_me:$LINENO: result: $ac_res" >&5
16015 echo "${ECHO_T}$ac_res" >&6; }
16018 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16019 cat >>confdefs.h <<_ACEOF
16020 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16021 _ACEOF
16025 done
16097 for ac_func in gethostname getdomainname dup2 \
16098 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16099 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
16100 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16101 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16102 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16103 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16104 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16105 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
16107 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16108 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16109 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16110 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16111 echo $ECHO_N "(cached) $ECHO_C" >&6
16112 else
16113 cat >conftest.$ac_ext <<_ACEOF
16114 /* confdefs.h. */
16115 _ACEOF
16116 cat confdefs.h >>conftest.$ac_ext
16117 cat >>conftest.$ac_ext <<_ACEOF
16118 /* end confdefs.h. */
16119 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16121 #define $ac_func innocuous_$ac_func
16123 /* System header to define __stub macros and hopefully few prototypes,
16124 which can conflict with char $ac_func (); below.
16125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16126 <limits.h> exists even on freestanding compilers. */
16128 #ifdef __STDC__
16129 # include <limits.h>
16130 #else
16131 # include <assert.h>
16132 #endif
16134 #undef $ac_func
16136 /* Override any GCC internal prototype to avoid an error.
16137 Use char because int might match the return type of a GCC
16138 builtin and then its argument prototype would still apply. */
16139 #ifdef __cplusplus
16140 extern "C"
16141 #endif
16142 char $ac_func ();
16143 /* The GNU C library defines this for functions which it implements
16144 to always fail with ENOSYS. Some functions are actually named
16145 something starting with __ and the normal name is an alias. */
16146 #if defined __stub_$ac_func || defined __stub___$ac_func
16147 choke me
16148 #endif
16151 main ()
16153 return $ac_func ();
16155 return 0;
16157 _ACEOF
16158 rm -f conftest.$ac_objext conftest$ac_exeext
16159 if { (ac_try="$ac_link"
16160 case "(($ac_try" in
16161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16162 *) ac_try_echo=$ac_try;;
16163 esac
16164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16165 (eval "$ac_link") 2>conftest.er1
16166 ac_status=$?
16167 grep -v '^ *+' conftest.er1 >conftest.err
16168 rm -f conftest.er1
16169 cat conftest.err >&5
16170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171 (exit $ac_status); } && {
16172 test -z "$ac_c_werror_flag" ||
16173 test ! -s conftest.err
16174 } && test -s conftest$ac_exeext &&
16175 $as_test_x conftest$ac_exeext; then
16176 eval "$as_ac_var=yes"
16177 else
16178 echo "$as_me: failed program was:" >&5
16179 sed 's/^/| /' conftest.$ac_ext >&5
16181 eval "$as_ac_var=no"
16184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16185 conftest$ac_exeext conftest.$ac_ext
16187 ac_res=`eval echo '${'$as_ac_var'}'`
16188 { echo "$as_me:$LINENO: result: $ac_res" >&5
16189 echo "${ECHO_T}$ac_res" >&6; }
16190 if test `eval echo '${'$as_ac_var'}'` = yes; then
16191 cat >>confdefs.h <<_ACEOF
16192 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16193 _ACEOF
16196 done
16200 for ac_header in sys/un.h
16202 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16203 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16204 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16206 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16207 echo $ECHO_N "(cached) $ECHO_C" >&6
16209 ac_res=`eval echo '${'$as_ac_Header'}'`
16210 { echo "$as_me:$LINENO: result: $ac_res" >&5
16211 echo "${ECHO_T}$ac_res" >&6; }
16212 else
16213 # Is the header compilable?
16214 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16215 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16216 cat >conftest.$ac_ext <<_ACEOF
16217 /* confdefs.h. */
16218 _ACEOF
16219 cat confdefs.h >>conftest.$ac_ext
16220 cat >>conftest.$ac_ext <<_ACEOF
16221 /* end confdefs.h. */
16222 $ac_includes_default
16223 #include <$ac_header>
16224 _ACEOF
16225 rm -f conftest.$ac_objext
16226 if { (ac_try="$ac_compile"
16227 case "(($ac_try" in
16228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16229 *) ac_try_echo=$ac_try;;
16230 esac
16231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16232 (eval "$ac_compile") 2>conftest.er1
16233 ac_status=$?
16234 grep -v '^ *+' conftest.er1 >conftest.err
16235 rm -f conftest.er1
16236 cat conftest.err >&5
16237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238 (exit $ac_status); } && {
16239 test -z "$ac_c_werror_flag" ||
16240 test ! -s conftest.err
16241 } && test -s conftest.$ac_objext; then
16242 ac_header_compiler=yes
16243 else
16244 echo "$as_me: failed program was:" >&5
16245 sed 's/^/| /' conftest.$ac_ext >&5
16247 ac_header_compiler=no
16250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16251 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16252 echo "${ECHO_T}$ac_header_compiler" >&6; }
16254 # Is the header present?
16255 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16256 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16257 cat >conftest.$ac_ext <<_ACEOF
16258 /* confdefs.h. */
16259 _ACEOF
16260 cat confdefs.h >>conftest.$ac_ext
16261 cat >>conftest.$ac_ext <<_ACEOF
16262 /* end confdefs.h. */
16263 #include <$ac_header>
16264 _ACEOF
16265 if { (ac_try="$ac_cpp conftest.$ac_ext"
16266 case "(($ac_try" in
16267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16268 *) ac_try_echo=$ac_try;;
16269 esac
16270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16271 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16272 ac_status=$?
16273 grep -v '^ *+' conftest.er1 >conftest.err
16274 rm -f conftest.er1
16275 cat conftest.err >&5
16276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277 (exit $ac_status); } >/dev/null && {
16278 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16279 test ! -s conftest.err
16280 }; then
16281 ac_header_preproc=yes
16282 else
16283 echo "$as_me: failed program was:" >&5
16284 sed 's/^/| /' conftest.$ac_ext >&5
16286 ac_header_preproc=no
16289 rm -f conftest.err conftest.$ac_ext
16290 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16291 echo "${ECHO_T}$ac_header_preproc" >&6; }
16293 # So? What about this header?
16294 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16295 yes:no: )
16296 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16297 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16298 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16299 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16300 ac_header_preproc=yes
16302 no:yes:* )
16303 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16304 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16305 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16306 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16307 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16308 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16309 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16310 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16311 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16312 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16313 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16314 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16317 esac
16318 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16321 echo $ECHO_N "(cached) $ECHO_C" >&6
16322 else
16323 eval "$as_ac_Header=\$ac_header_preproc"
16325 ac_res=`eval echo '${'$as_ac_Header'}'`
16326 { echo "$as_me:$LINENO: result: $ac_res" >&5
16327 echo "${ECHO_T}$ac_res" >&6; }
16330 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16331 cat >>confdefs.h <<_ACEOF
16332 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16333 _ACEOF
16337 done
16344 for ac_header in $ac_header_list
16346 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16348 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16350 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16351 echo $ECHO_N "(cached) $ECHO_C" >&6
16353 ac_res=`eval echo '${'$as_ac_Header'}'`
16354 { echo "$as_me:$LINENO: result: $ac_res" >&5
16355 echo "${ECHO_T}$ac_res" >&6; }
16356 else
16357 # Is the header compilable?
16358 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16359 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16360 cat >conftest.$ac_ext <<_ACEOF
16361 /* confdefs.h. */
16362 _ACEOF
16363 cat confdefs.h >>conftest.$ac_ext
16364 cat >>conftest.$ac_ext <<_ACEOF
16365 /* end confdefs.h. */
16366 $ac_includes_default
16367 #include <$ac_header>
16368 _ACEOF
16369 rm -f conftest.$ac_objext
16370 if { (ac_try="$ac_compile"
16371 case "(($ac_try" in
16372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16373 *) ac_try_echo=$ac_try;;
16374 esac
16375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16376 (eval "$ac_compile") 2>conftest.er1
16377 ac_status=$?
16378 grep -v '^ *+' conftest.er1 >conftest.err
16379 rm -f conftest.er1
16380 cat conftest.err >&5
16381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382 (exit $ac_status); } && {
16383 test -z "$ac_c_werror_flag" ||
16384 test ! -s conftest.err
16385 } && test -s conftest.$ac_objext; then
16386 ac_header_compiler=yes
16387 else
16388 echo "$as_me: failed program was:" >&5
16389 sed 's/^/| /' conftest.$ac_ext >&5
16391 ac_header_compiler=no
16394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16395 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16396 echo "${ECHO_T}$ac_header_compiler" >&6; }
16398 # Is the header present?
16399 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16400 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16401 cat >conftest.$ac_ext <<_ACEOF
16402 /* confdefs.h. */
16403 _ACEOF
16404 cat confdefs.h >>conftest.$ac_ext
16405 cat >>conftest.$ac_ext <<_ACEOF
16406 /* end confdefs.h. */
16407 #include <$ac_header>
16408 _ACEOF
16409 if { (ac_try="$ac_cpp conftest.$ac_ext"
16410 case "(($ac_try" in
16411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16412 *) ac_try_echo=$ac_try;;
16413 esac
16414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16416 ac_status=$?
16417 grep -v '^ *+' conftest.er1 >conftest.err
16418 rm -f conftest.er1
16419 cat conftest.err >&5
16420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421 (exit $ac_status); } >/dev/null && {
16422 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16423 test ! -s conftest.err
16424 }; then
16425 ac_header_preproc=yes
16426 else
16427 echo "$as_me: failed program was:" >&5
16428 sed 's/^/| /' conftest.$ac_ext >&5
16430 ac_header_preproc=no
16433 rm -f conftest.err conftest.$ac_ext
16434 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16435 echo "${ECHO_T}$ac_header_preproc" >&6; }
16437 # So? What about this header?
16438 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16439 yes:no: )
16440 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16441 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16442 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16443 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16444 ac_header_preproc=yes
16446 no:yes:* )
16447 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16448 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16449 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16450 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16451 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16452 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16453 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16454 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16456 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16457 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16458 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16461 esac
16462 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16464 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16465 echo $ECHO_N "(cached) $ECHO_C" >&6
16466 else
16467 eval "$as_ac_Header=\$ac_header_preproc"
16469 ac_res=`eval echo '${'$as_ac_Header'}'`
16470 { echo "$as_me:$LINENO: result: $ac_res" >&5
16471 echo "${ECHO_T}$ac_res" >&6; }
16474 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16475 cat >>confdefs.h <<_ACEOF
16476 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16477 _ACEOF
16481 done
16491 for ac_func in $ac_func_list
16493 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16494 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16495 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16496 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16497 echo $ECHO_N "(cached) $ECHO_C" >&6
16498 else
16499 cat >conftest.$ac_ext <<_ACEOF
16500 /* confdefs.h. */
16501 _ACEOF
16502 cat confdefs.h >>conftest.$ac_ext
16503 cat >>conftest.$ac_ext <<_ACEOF
16504 /* end confdefs.h. */
16505 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16506 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16507 #define $ac_func innocuous_$ac_func
16509 /* System header to define __stub macros and hopefully few prototypes,
16510 which can conflict with char $ac_func (); below.
16511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16512 <limits.h> exists even on freestanding compilers. */
16514 #ifdef __STDC__
16515 # include <limits.h>
16516 #else
16517 # include <assert.h>
16518 #endif
16520 #undef $ac_func
16522 /* Override any GCC internal prototype to avoid an error.
16523 Use char because int might match the return type of a GCC
16524 builtin and then its argument prototype would still apply. */
16525 #ifdef __cplusplus
16526 extern "C"
16527 #endif
16528 char $ac_func ();
16529 /* The GNU C library defines this for functions which it implements
16530 to always fail with ENOSYS. Some functions are actually named
16531 something starting with __ and the normal name is an alias. */
16532 #if defined __stub_$ac_func || defined __stub___$ac_func
16533 choke me
16534 #endif
16537 main ()
16539 return $ac_func ();
16541 return 0;
16543 _ACEOF
16544 rm -f conftest.$ac_objext conftest$ac_exeext
16545 if { (ac_try="$ac_link"
16546 case "(($ac_try" in
16547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16548 *) ac_try_echo=$ac_try;;
16549 esac
16550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16551 (eval "$ac_link") 2>conftest.er1
16552 ac_status=$?
16553 grep -v '^ *+' conftest.er1 >conftest.err
16554 rm -f conftest.er1
16555 cat conftest.err >&5
16556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557 (exit $ac_status); } && {
16558 test -z "$ac_c_werror_flag" ||
16559 test ! -s conftest.err
16560 } && test -s conftest$ac_exeext &&
16561 $as_test_x conftest$ac_exeext; then
16562 eval "$as_ac_var=yes"
16563 else
16564 echo "$as_me: failed program was:" >&5
16565 sed 's/^/| /' conftest.$ac_ext >&5
16567 eval "$as_ac_var=no"
16570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16571 conftest$ac_exeext conftest.$ac_ext
16573 ac_res=`eval echo '${'$as_ac_var'}'`
16574 { echo "$as_me:$LINENO: result: $ac_res" >&5
16575 echo "${ECHO_T}$ac_res" >&6; }
16576 if test `eval echo '${'$as_ac_var'}'` = yes; then
16577 cat >>confdefs.h <<_ACEOF
16578 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16579 _ACEOF
16582 done
16600 { echo "$as_me:$LINENO: checking for working mktime" >&5
16601 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16602 if test "${ac_cv_func_working_mktime+set}" = set; then
16603 echo $ECHO_N "(cached) $ECHO_C" >&6
16604 else
16605 if test "$cross_compiling" = yes; then
16606 ac_cv_func_working_mktime=no
16607 else
16608 cat >conftest.$ac_ext <<_ACEOF
16609 /* confdefs.h. */
16610 _ACEOF
16611 cat confdefs.h >>conftest.$ac_ext
16612 cat >>conftest.$ac_ext <<_ACEOF
16613 /* end confdefs.h. */
16614 /* Test program from Paul Eggert and Tony Leneis. */
16615 #ifdef TIME_WITH_SYS_TIME
16616 # include <sys/time.h>
16617 # include <time.h>
16618 #else
16619 # ifdef HAVE_SYS_TIME_H
16620 # include <sys/time.h>
16621 # else
16622 # include <time.h>
16623 # endif
16624 #endif
16626 #include <stdlib.h>
16628 #ifdef HAVE_UNISTD_H
16629 # include <unistd.h>
16630 #endif
16632 #ifndef HAVE_ALARM
16633 # define alarm(X) /* empty */
16634 #endif
16636 /* Work around redefinition to rpl_putenv by other config tests. */
16637 #undef putenv
16639 static time_t time_t_max;
16640 static time_t time_t_min;
16642 /* Values we'll use to set the TZ environment variable. */
16643 static char *tz_strings[] = {
16644 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16645 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16647 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16649 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16650 Based on a problem report from Andreas Jaeger. */
16651 static int
16652 spring_forward_gap ()
16654 /* glibc (up to about 1998-10-07) failed this test. */
16655 struct tm tm;
16657 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16658 instead of "TZ=America/Vancouver" in order to detect the bug even
16659 on systems that don't support the Olson extension, or don't have the
16660 full zoneinfo tables installed. */
16661 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16663 tm.tm_year = 98;
16664 tm.tm_mon = 3;
16665 tm.tm_mday = 5;
16666 tm.tm_hour = 2;
16667 tm.tm_min = 0;
16668 tm.tm_sec = 0;
16669 tm.tm_isdst = -1;
16670 return mktime (&tm) != (time_t) -1;
16673 static int
16674 mktime_test1 (now)
16675 time_t now;
16677 struct tm *lt;
16678 return ! (lt = localtime (&now)) || mktime (lt) == now;
16681 static int
16682 mktime_test (now)
16683 time_t now;
16685 return (mktime_test1 (now)
16686 && mktime_test1 ((time_t) (time_t_max - now))
16687 && mktime_test1 ((time_t) (time_t_min + now)));
16690 static int
16691 irix_6_4_bug ()
16693 /* Based on code from Ariel Faigon. */
16694 struct tm tm;
16695 tm.tm_year = 96;
16696 tm.tm_mon = 3;
16697 tm.tm_mday = 0;
16698 tm.tm_hour = 0;
16699 tm.tm_min = 0;
16700 tm.tm_sec = 0;
16701 tm.tm_isdst = -1;
16702 mktime (&tm);
16703 return tm.tm_mon == 2 && tm.tm_mday == 31;
16706 static int
16707 bigtime_test (j)
16708 int j;
16710 struct tm tm;
16711 time_t now;
16712 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16713 now = mktime (&tm);
16714 if (now != (time_t) -1)
16716 struct tm *lt = localtime (&now);
16717 if (! (lt
16718 && lt->tm_year == tm.tm_year
16719 && lt->tm_mon == tm.tm_mon
16720 && lt->tm_mday == tm.tm_mday
16721 && lt->tm_hour == tm.tm_hour
16722 && lt->tm_min == tm.tm_min
16723 && lt->tm_sec == tm.tm_sec
16724 && lt->tm_yday == tm.tm_yday
16725 && lt->tm_wday == tm.tm_wday
16726 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16727 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16728 return 0;
16730 return 1;
16733 static int
16734 year_2050_test ()
16736 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16737 ignoring leap seconds. */
16738 unsigned long int answer = 2527315200UL;
16740 struct tm tm;
16741 time_t t;
16742 tm.tm_year = 2050 - 1900;
16743 tm.tm_mon = 2 - 1;
16744 tm.tm_mday = 1;
16745 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16746 tm.tm_isdst = -1;
16748 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16749 instead of "TZ=America/Vancouver" in order to detect the bug even
16750 on systems that don't support the Olson extension, or don't have the
16751 full zoneinfo tables installed. */
16752 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16754 t = mktime (&tm);
16756 /* Check that the result is either a failure, or close enough
16757 to the correct answer that we can assume the discrepancy is
16758 due to leap seconds. */
16759 return (t == (time_t) -1
16760 || (0 < t && answer - 120 <= t && t <= answer + 120));
16764 main ()
16766 time_t t, delta;
16767 int i, j;
16769 /* This test makes some buggy mktime implementations loop.
16770 Give up after 60 seconds; a mktime slower than that
16771 isn't worth using anyway. */
16772 alarm (60);
16774 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16775 continue;
16776 time_t_max--;
16777 if ((time_t) -1 < 0)
16778 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16779 continue;
16780 delta = time_t_max / 997; /* a suitable prime number */
16781 for (i = 0; i < N_STRINGS; i++)
16783 if (tz_strings[i])
16784 putenv (tz_strings[i]);
16786 for (t = 0; t <= time_t_max - delta; t += delta)
16787 if (! mktime_test (t))
16788 return 1;
16789 if (! (mktime_test ((time_t) 1)
16790 && mktime_test ((time_t) (60 * 60))
16791 && mktime_test ((time_t) (60 * 60 * 24))))
16792 return 1;
16794 for (j = 1; 0 < j; j *= 2)
16795 if (! bigtime_test (j))
16796 return 1;
16797 if (! bigtime_test (j - 1))
16798 return 1;
16800 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16802 _ACEOF
16803 rm -f conftest$ac_exeext
16804 if { (ac_try="$ac_link"
16805 case "(($ac_try" in
16806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16807 *) ac_try_echo=$ac_try;;
16808 esac
16809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16810 (eval "$ac_link") 2>&5
16811 ac_status=$?
16812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16814 { (case "(($ac_try" in
16815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16816 *) ac_try_echo=$ac_try;;
16817 esac
16818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16819 (eval "$ac_try") 2>&5
16820 ac_status=$?
16821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822 (exit $ac_status); }; }; then
16823 ac_cv_func_working_mktime=yes
16824 else
16825 echo "$as_me: program exited with status $ac_status" >&5
16826 echo "$as_me: failed program was:" >&5
16827 sed 's/^/| /' conftest.$ac_ext >&5
16829 ( exit $ac_status )
16830 ac_cv_func_working_mktime=no
16832 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16837 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16838 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16839 if test $ac_cv_func_working_mktime = no; then
16840 case " $LIBOBJS " in
16841 *" mktime.$ac_objext "* ) ;;
16842 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16844 esac
16848 if test "$ac_cv_func_working_mktime" = no; then
16850 cat >>confdefs.h <<\_ACEOF
16851 #define BROKEN_MKTIME 1
16852 _ACEOF
16856 ac_have_func=no # yes means we've found a way to get the load average.
16858 # Make sure getloadavg.c is where it belongs, at configure-time.
16859 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16860 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16861 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16862 { (exit 1); exit 1; }; }
16864 ac_save_LIBS=$LIBS
16866 # Check for getloadavg, but be sure not to touch the cache variable.
16867 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16868 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16869 if test "${ac_cv_func_getloadavg+set}" = set; then
16870 echo $ECHO_N "(cached) $ECHO_C" >&6
16871 else
16872 cat >conftest.$ac_ext <<_ACEOF
16873 /* confdefs.h. */
16874 _ACEOF
16875 cat confdefs.h >>conftest.$ac_ext
16876 cat >>conftest.$ac_ext <<_ACEOF
16877 /* end confdefs.h. */
16878 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16879 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16880 #define getloadavg innocuous_getloadavg
16882 /* System header to define __stub macros and hopefully few prototypes,
16883 which can conflict with char getloadavg (); below.
16884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16885 <limits.h> exists even on freestanding compilers. */
16887 #ifdef __STDC__
16888 # include <limits.h>
16889 #else
16890 # include <assert.h>
16891 #endif
16893 #undef getloadavg
16895 /* Override any GCC internal prototype to avoid an error.
16896 Use char because int might match the return type of a GCC
16897 builtin and then its argument prototype would still apply. */
16898 #ifdef __cplusplus
16899 extern "C"
16900 #endif
16901 char getloadavg ();
16902 /* The GNU C library defines this for functions which it implements
16903 to always fail with ENOSYS. Some functions are actually named
16904 something starting with __ and the normal name is an alias. */
16905 #if defined __stub_getloadavg || defined __stub___getloadavg
16906 choke me
16907 #endif
16910 main ()
16912 return getloadavg ();
16914 return 0;
16916 _ACEOF
16917 rm -f conftest.$ac_objext conftest$ac_exeext
16918 if { (ac_try="$ac_link"
16919 case "(($ac_try" in
16920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16921 *) ac_try_echo=$ac_try;;
16922 esac
16923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16924 (eval "$ac_link") 2>conftest.er1
16925 ac_status=$?
16926 grep -v '^ *+' conftest.er1 >conftest.err
16927 rm -f conftest.er1
16928 cat conftest.err >&5
16929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930 (exit $ac_status); } && {
16931 test -z "$ac_c_werror_flag" ||
16932 test ! -s conftest.err
16933 } && test -s conftest$ac_exeext &&
16934 $as_test_x conftest$ac_exeext; then
16935 ac_cv_func_getloadavg=yes
16936 else
16937 echo "$as_me: failed program was:" >&5
16938 sed 's/^/| /' conftest.$ac_ext >&5
16940 ac_cv_func_getloadavg=no
16943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16944 conftest$ac_exeext conftest.$ac_ext
16946 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16947 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16948 if test $ac_cv_func_getloadavg = yes; then
16949 exit 0
16950 else
16951 exit 1
16953 ) && ac_have_func=yes
16955 # On HPUX9, an unprivileged user can get load averages through this function.
16957 for ac_func in pstat_getdynamic
16959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16960 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16962 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16963 echo $ECHO_N "(cached) $ECHO_C" >&6
16964 else
16965 cat >conftest.$ac_ext <<_ACEOF
16966 /* confdefs.h. */
16967 _ACEOF
16968 cat confdefs.h >>conftest.$ac_ext
16969 cat >>conftest.$ac_ext <<_ACEOF
16970 /* end confdefs.h. */
16971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16973 #define $ac_func innocuous_$ac_func
16975 /* System header to define __stub macros and hopefully few prototypes,
16976 which can conflict with char $ac_func (); below.
16977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16978 <limits.h> exists even on freestanding compilers. */
16980 #ifdef __STDC__
16981 # include <limits.h>
16982 #else
16983 # include <assert.h>
16984 #endif
16986 #undef $ac_func
16988 /* Override any GCC internal prototype to avoid an error.
16989 Use char because int might match the return type of a GCC
16990 builtin and then its argument prototype would still apply. */
16991 #ifdef __cplusplus
16992 extern "C"
16993 #endif
16994 char $ac_func ();
16995 /* The GNU C library defines this for functions which it implements
16996 to always fail with ENOSYS. Some functions are actually named
16997 something starting with __ and the normal name is an alias. */
16998 #if defined __stub_$ac_func || defined __stub___$ac_func
16999 choke me
17000 #endif
17003 main ()
17005 return $ac_func ();
17007 return 0;
17009 _ACEOF
17010 rm -f conftest.$ac_objext conftest$ac_exeext
17011 if { (ac_try="$ac_link"
17012 case "(($ac_try" in
17013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17014 *) ac_try_echo=$ac_try;;
17015 esac
17016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17017 (eval "$ac_link") 2>conftest.er1
17018 ac_status=$?
17019 grep -v '^ *+' conftest.er1 >conftest.err
17020 rm -f conftest.er1
17021 cat conftest.err >&5
17022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023 (exit $ac_status); } && {
17024 test -z "$ac_c_werror_flag" ||
17025 test ! -s conftest.err
17026 } && test -s conftest$ac_exeext &&
17027 $as_test_x conftest$ac_exeext; then
17028 eval "$as_ac_var=yes"
17029 else
17030 echo "$as_me: failed program was:" >&5
17031 sed 's/^/| /' conftest.$ac_ext >&5
17033 eval "$as_ac_var=no"
17036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17037 conftest$ac_exeext conftest.$ac_ext
17039 ac_res=`eval echo '${'$as_ac_var'}'`
17040 { echo "$as_me:$LINENO: result: $ac_res" >&5
17041 echo "${ECHO_T}$ac_res" >&6; }
17042 if test `eval echo '${'$as_ac_var'}'` = yes; then
17043 cat >>confdefs.h <<_ACEOF
17044 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17045 _ACEOF
17048 done
17051 # Solaris has libkstat which does not require root.
17053 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
17054 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
17055 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17056 echo $ECHO_N "(cached) $ECHO_C" >&6
17057 else
17058 ac_check_lib_save_LIBS=$LIBS
17059 LIBS="-lkstat $LIBS"
17060 cat >conftest.$ac_ext <<_ACEOF
17061 /* confdefs.h. */
17062 _ACEOF
17063 cat confdefs.h >>conftest.$ac_ext
17064 cat >>conftest.$ac_ext <<_ACEOF
17065 /* end confdefs.h. */
17067 /* Override any GCC internal prototype to avoid an error.
17068 Use char because int might match the return type of a GCC
17069 builtin and then its argument prototype would still apply. */
17070 #ifdef __cplusplus
17071 extern "C"
17072 #endif
17073 char kstat_open ();
17075 main ()
17077 return kstat_open ();
17079 return 0;
17081 _ACEOF
17082 rm -f conftest.$ac_objext conftest$ac_exeext
17083 if { (ac_try="$ac_link"
17084 case "(($ac_try" in
17085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17086 *) ac_try_echo=$ac_try;;
17087 esac
17088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17089 (eval "$ac_link") 2>conftest.er1
17090 ac_status=$?
17091 grep -v '^ *+' conftest.er1 >conftest.err
17092 rm -f conftest.er1
17093 cat conftest.err >&5
17094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095 (exit $ac_status); } && {
17096 test -z "$ac_c_werror_flag" ||
17097 test ! -s conftest.err
17098 } && test -s conftest$ac_exeext &&
17099 $as_test_x conftest$ac_exeext; then
17100 ac_cv_lib_kstat_kstat_open=yes
17101 else
17102 echo "$as_me: failed program was:" >&5
17103 sed 's/^/| /' conftest.$ac_ext >&5
17105 ac_cv_lib_kstat_kstat_open=no
17108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17109 conftest$ac_exeext conftest.$ac_ext
17110 LIBS=$ac_check_lib_save_LIBS
17112 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
17113 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17114 if test $ac_cv_lib_kstat_kstat_open = yes; then
17115 cat >>confdefs.h <<_ACEOF
17116 #define HAVE_LIBKSTAT 1
17117 _ACEOF
17119 LIBS="-lkstat $LIBS"
17123 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17125 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17126 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17127 # to get the right answer into the cache.
17128 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17129 if test $ac_have_func = no; then
17130 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17131 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
17132 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17133 echo $ECHO_N "(cached) $ECHO_C" >&6
17134 else
17135 ac_check_lib_save_LIBS=$LIBS
17136 LIBS="-lelf $LIBS"
17137 cat >conftest.$ac_ext <<_ACEOF
17138 /* confdefs.h. */
17139 _ACEOF
17140 cat confdefs.h >>conftest.$ac_ext
17141 cat >>conftest.$ac_ext <<_ACEOF
17142 /* end confdefs.h. */
17144 /* Override any GCC internal prototype to avoid an error.
17145 Use char because int might match the return type of a GCC
17146 builtin and then its argument prototype would still apply. */
17147 #ifdef __cplusplus
17148 extern "C"
17149 #endif
17150 char elf_begin ();
17152 main ()
17154 return elf_begin ();
17156 return 0;
17158 _ACEOF
17159 rm -f conftest.$ac_objext conftest$ac_exeext
17160 if { (ac_try="$ac_link"
17161 case "(($ac_try" in
17162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17163 *) ac_try_echo=$ac_try;;
17164 esac
17165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17166 (eval "$ac_link") 2>conftest.er1
17167 ac_status=$?
17168 grep -v '^ *+' conftest.er1 >conftest.err
17169 rm -f conftest.er1
17170 cat conftest.err >&5
17171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172 (exit $ac_status); } && {
17173 test -z "$ac_c_werror_flag" ||
17174 test ! -s conftest.err
17175 } && test -s conftest$ac_exeext &&
17176 $as_test_x conftest$ac_exeext; then
17177 ac_cv_lib_elf_elf_begin=yes
17178 else
17179 echo "$as_me: failed program was:" >&5
17180 sed 's/^/| /' conftest.$ac_ext >&5
17182 ac_cv_lib_elf_elf_begin=no
17185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17186 conftest$ac_exeext conftest.$ac_ext
17187 LIBS=$ac_check_lib_save_LIBS
17189 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
17190 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17191 if test $ac_cv_lib_elf_elf_begin = yes; then
17192 LIBS="-lelf $LIBS"
17196 if test $ac_have_func = no; then
17197 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17198 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
17199 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17200 echo $ECHO_N "(cached) $ECHO_C" >&6
17201 else
17202 ac_check_lib_save_LIBS=$LIBS
17203 LIBS="-lkvm $LIBS"
17204 cat >conftest.$ac_ext <<_ACEOF
17205 /* confdefs.h. */
17206 _ACEOF
17207 cat confdefs.h >>conftest.$ac_ext
17208 cat >>conftest.$ac_ext <<_ACEOF
17209 /* end confdefs.h. */
17211 /* Override any GCC internal prototype to avoid an error.
17212 Use char because int might match the return type of a GCC
17213 builtin and then its argument prototype would still apply. */
17214 #ifdef __cplusplus
17215 extern "C"
17216 #endif
17217 char kvm_open ();
17219 main ()
17221 return kvm_open ();
17223 return 0;
17225 _ACEOF
17226 rm -f conftest.$ac_objext conftest$ac_exeext
17227 if { (ac_try="$ac_link"
17228 case "(($ac_try" in
17229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17230 *) ac_try_echo=$ac_try;;
17231 esac
17232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17233 (eval "$ac_link") 2>conftest.er1
17234 ac_status=$?
17235 grep -v '^ *+' conftest.er1 >conftest.err
17236 rm -f conftest.er1
17237 cat conftest.err >&5
17238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17239 (exit $ac_status); } && {
17240 test -z "$ac_c_werror_flag" ||
17241 test ! -s conftest.err
17242 } && test -s conftest$ac_exeext &&
17243 $as_test_x conftest$ac_exeext; then
17244 ac_cv_lib_kvm_kvm_open=yes
17245 else
17246 echo "$as_me: failed program was:" >&5
17247 sed 's/^/| /' conftest.$ac_ext >&5
17249 ac_cv_lib_kvm_kvm_open=no
17252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17253 conftest$ac_exeext conftest.$ac_ext
17254 LIBS=$ac_check_lib_save_LIBS
17256 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
17257 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17258 if test $ac_cv_lib_kvm_kvm_open = yes; then
17259 LIBS="-lkvm $LIBS"
17262 # Check for the 4.4BSD definition of getloadavg.
17263 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
17264 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
17265 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17266 echo $ECHO_N "(cached) $ECHO_C" >&6
17267 else
17268 ac_check_lib_save_LIBS=$LIBS
17269 LIBS="-lutil $LIBS"
17270 cat >conftest.$ac_ext <<_ACEOF
17271 /* confdefs.h. */
17272 _ACEOF
17273 cat confdefs.h >>conftest.$ac_ext
17274 cat >>conftest.$ac_ext <<_ACEOF
17275 /* end confdefs.h. */
17277 /* Override any GCC internal prototype to avoid an error.
17278 Use char because int might match the return type of a GCC
17279 builtin and then its argument prototype would still apply. */
17280 #ifdef __cplusplus
17281 extern "C"
17282 #endif
17283 char getloadavg ();
17285 main ()
17287 return getloadavg ();
17289 return 0;
17291 _ACEOF
17292 rm -f conftest.$ac_objext conftest$ac_exeext
17293 if { (ac_try="$ac_link"
17294 case "(($ac_try" in
17295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17296 *) ac_try_echo=$ac_try;;
17297 esac
17298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17299 (eval "$ac_link") 2>conftest.er1
17300 ac_status=$?
17301 grep -v '^ *+' conftest.er1 >conftest.err
17302 rm -f conftest.er1
17303 cat conftest.err >&5
17304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305 (exit $ac_status); } && {
17306 test -z "$ac_c_werror_flag" ||
17307 test ! -s conftest.err
17308 } && test -s conftest$ac_exeext &&
17309 $as_test_x conftest$ac_exeext; then
17310 ac_cv_lib_util_getloadavg=yes
17311 else
17312 echo "$as_me: failed program was:" >&5
17313 sed 's/^/| /' conftest.$ac_ext >&5
17315 ac_cv_lib_util_getloadavg=no
17318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17319 conftest$ac_exeext conftest.$ac_ext
17320 LIBS=$ac_check_lib_save_LIBS
17322 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
17323 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17324 if test $ac_cv_lib_util_getloadavg = yes; then
17325 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17330 if test $ac_have_func = no; then
17331 # There is a commonly available library for RS/6000 AIX.
17332 # Since it is not a standard part of AIX, it might be installed locally.
17333 ac_getloadavg_LIBS=$LIBS
17334 LIBS="-L/usr/local/lib $LIBS"
17335 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
17336 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
17337 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17338 echo $ECHO_N "(cached) $ECHO_C" >&6
17339 else
17340 ac_check_lib_save_LIBS=$LIBS
17341 LIBS="-lgetloadavg $LIBS"
17342 cat >conftest.$ac_ext <<_ACEOF
17343 /* confdefs.h. */
17344 _ACEOF
17345 cat confdefs.h >>conftest.$ac_ext
17346 cat >>conftest.$ac_ext <<_ACEOF
17347 /* end confdefs.h. */
17349 /* Override any GCC internal prototype to avoid an error.
17350 Use char because int might match the return type of a GCC
17351 builtin and then its argument prototype would still apply. */
17352 #ifdef __cplusplus
17353 extern "C"
17354 #endif
17355 char getloadavg ();
17357 main ()
17359 return getloadavg ();
17361 return 0;
17363 _ACEOF
17364 rm -f conftest.$ac_objext conftest$ac_exeext
17365 if { (ac_try="$ac_link"
17366 case "(($ac_try" in
17367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17368 *) ac_try_echo=$ac_try;;
17369 esac
17370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17371 (eval "$ac_link") 2>conftest.er1
17372 ac_status=$?
17373 grep -v '^ *+' conftest.er1 >conftest.err
17374 rm -f conftest.er1
17375 cat conftest.err >&5
17376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377 (exit $ac_status); } && {
17378 test -z "$ac_c_werror_flag" ||
17379 test ! -s conftest.err
17380 } && test -s conftest$ac_exeext &&
17381 $as_test_x conftest$ac_exeext; then
17382 ac_cv_lib_getloadavg_getloadavg=yes
17383 else
17384 echo "$as_me: failed program was:" >&5
17385 sed 's/^/| /' conftest.$ac_ext >&5
17387 ac_cv_lib_getloadavg_getloadavg=no
17390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17391 conftest$ac_exeext conftest.$ac_ext
17392 LIBS=$ac_check_lib_save_LIBS
17394 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
17395 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17396 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17397 LIBS="-lgetloadavg $LIBS"
17398 else
17399 LIBS=$ac_getloadavg_LIBS
17404 # Make sure it is really in the library, if we think we found it,
17405 # otherwise set up the replacement function.
17407 for ac_func in getloadavg
17409 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17410 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17411 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17412 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17413 echo $ECHO_N "(cached) $ECHO_C" >&6
17414 else
17415 cat >conftest.$ac_ext <<_ACEOF
17416 /* confdefs.h. */
17417 _ACEOF
17418 cat confdefs.h >>conftest.$ac_ext
17419 cat >>conftest.$ac_ext <<_ACEOF
17420 /* end confdefs.h. */
17421 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17423 #define $ac_func innocuous_$ac_func
17425 /* System header to define __stub macros and hopefully few prototypes,
17426 which can conflict with char $ac_func (); below.
17427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17428 <limits.h> exists even on freestanding compilers. */
17430 #ifdef __STDC__
17431 # include <limits.h>
17432 #else
17433 # include <assert.h>
17434 #endif
17436 #undef $ac_func
17438 /* Override any GCC internal prototype to avoid an error.
17439 Use char because int might match the return type of a GCC
17440 builtin and then its argument prototype would still apply. */
17441 #ifdef __cplusplus
17442 extern "C"
17443 #endif
17444 char $ac_func ();
17445 /* The GNU C library defines this for functions which it implements
17446 to always fail with ENOSYS. Some functions are actually named
17447 something starting with __ and the normal name is an alias. */
17448 #if defined __stub_$ac_func || defined __stub___$ac_func
17449 choke me
17450 #endif
17453 main ()
17455 return $ac_func ();
17457 return 0;
17459 _ACEOF
17460 rm -f conftest.$ac_objext conftest$ac_exeext
17461 if { (ac_try="$ac_link"
17462 case "(($ac_try" in
17463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17464 *) ac_try_echo=$ac_try;;
17465 esac
17466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17467 (eval "$ac_link") 2>conftest.er1
17468 ac_status=$?
17469 grep -v '^ *+' conftest.er1 >conftest.err
17470 rm -f conftest.er1
17471 cat conftest.err >&5
17472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473 (exit $ac_status); } && {
17474 test -z "$ac_c_werror_flag" ||
17475 test ! -s conftest.err
17476 } && test -s conftest$ac_exeext &&
17477 $as_test_x conftest$ac_exeext; then
17478 eval "$as_ac_var=yes"
17479 else
17480 echo "$as_me: failed program was:" >&5
17481 sed 's/^/| /' conftest.$ac_ext >&5
17483 eval "$as_ac_var=no"
17486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17487 conftest$ac_exeext conftest.$ac_ext
17489 ac_res=`eval echo '${'$as_ac_var'}'`
17490 { echo "$as_me:$LINENO: result: $ac_res" >&5
17491 echo "${ECHO_T}$ac_res" >&6; }
17492 if test `eval echo '${'$as_ac_var'}'` = yes; then
17493 cat >>confdefs.h <<_ACEOF
17494 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17495 _ACEOF
17497 else
17498 case " $LIBOBJS " in
17499 *" getloadavg.$ac_objext "* ) ;;
17500 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17502 esac
17505 cat >>confdefs.h <<\_ACEOF
17506 #define C_GETLOADAVG 1
17507 _ACEOF
17509 # Figure out what our getloadavg.c needs.
17510 ac_have_func=no
17511 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17512 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17513 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17514 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17515 echo $ECHO_N "(cached) $ECHO_C" >&6
17517 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17518 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17519 else
17520 # Is the header compilable?
17521 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17522 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17523 cat >conftest.$ac_ext <<_ACEOF
17524 /* confdefs.h. */
17525 _ACEOF
17526 cat confdefs.h >>conftest.$ac_ext
17527 cat >>conftest.$ac_ext <<_ACEOF
17528 /* end confdefs.h. */
17529 $ac_includes_default
17530 #include <sys/dg_sys_info.h>
17531 _ACEOF
17532 rm -f conftest.$ac_objext
17533 if { (ac_try="$ac_compile"
17534 case "(($ac_try" in
17535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17536 *) ac_try_echo=$ac_try;;
17537 esac
17538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17539 (eval "$ac_compile") 2>conftest.er1
17540 ac_status=$?
17541 grep -v '^ *+' conftest.er1 >conftest.err
17542 rm -f conftest.er1
17543 cat conftest.err >&5
17544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545 (exit $ac_status); } && {
17546 test -z "$ac_c_werror_flag" ||
17547 test ! -s conftest.err
17548 } && test -s conftest.$ac_objext; then
17549 ac_header_compiler=yes
17550 else
17551 echo "$as_me: failed program was:" >&5
17552 sed 's/^/| /' conftest.$ac_ext >&5
17554 ac_header_compiler=no
17557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17558 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17559 echo "${ECHO_T}$ac_header_compiler" >&6; }
17561 # Is the header present?
17562 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17563 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17564 cat >conftest.$ac_ext <<_ACEOF
17565 /* confdefs.h. */
17566 _ACEOF
17567 cat confdefs.h >>conftest.$ac_ext
17568 cat >>conftest.$ac_ext <<_ACEOF
17569 /* end confdefs.h. */
17570 #include <sys/dg_sys_info.h>
17571 _ACEOF
17572 if { (ac_try="$ac_cpp conftest.$ac_ext"
17573 case "(($ac_try" in
17574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17575 *) ac_try_echo=$ac_try;;
17576 esac
17577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17579 ac_status=$?
17580 grep -v '^ *+' conftest.er1 >conftest.err
17581 rm -f conftest.er1
17582 cat conftest.err >&5
17583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584 (exit $ac_status); } >/dev/null && {
17585 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17586 test ! -s conftest.err
17587 }; then
17588 ac_header_preproc=yes
17589 else
17590 echo "$as_me: failed program was:" >&5
17591 sed 's/^/| /' conftest.$ac_ext >&5
17593 ac_header_preproc=no
17596 rm -f conftest.err conftest.$ac_ext
17597 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17598 echo "${ECHO_T}$ac_header_preproc" >&6; }
17600 # So? What about this header?
17601 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17602 yes:no: )
17603 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17604 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17605 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17606 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17607 ac_header_preproc=yes
17609 no:yes:* )
17610 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17611 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17612 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17613 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17614 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17615 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17616 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17617 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17618 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17619 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17620 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17621 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17624 esac
17625 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17626 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17627 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17628 echo $ECHO_N "(cached) $ECHO_C" >&6
17629 else
17630 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17632 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17633 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17636 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17637 ac_have_func=yes
17639 cat >>confdefs.h <<\_ACEOF
17640 #define DGUX 1
17641 _ACEOF
17644 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17645 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17646 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17647 echo $ECHO_N "(cached) $ECHO_C" >&6
17648 else
17649 ac_check_lib_save_LIBS=$LIBS
17650 LIBS="-ldgc $LIBS"
17651 cat >conftest.$ac_ext <<_ACEOF
17652 /* confdefs.h. */
17653 _ACEOF
17654 cat confdefs.h >>conftest.$ac_ext
17655 cat >>conftest.$ac_ext <<_ACEOF
17656 /* end confdefs.h. */
17658 /* Override any GCC internal prototype to avoid an error.
17659 Use char because int might match the return type of a GCC
17660 builtin and then its argument prototype would still apply. */
17661 #ifdef __cplusplus
17662 extern "C"
17663 #endif
17664 char dg_sys_info ();
17666 main ()
17668 return dg_sys_info ();
17670 return 0;
17672 _ACEOF
17673 rm -f conftest.$ac_objext conftest$ac_exeext
17674 if { (ac_try="$ac_link"
17675 case "(($ac_try" in
17676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17677 *) ac_try_echo=$ac_try;;
17678 esac
17679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17680 (eval "$ac_link") 2>conftest.er1
17681 ac_status=$?
17682 grep -v '^ *+' conftest.er1 >conftest.err
17683 rm -f conftest.er1
17684 cat conftest.err >&5
17685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17686 (exit $ac_status); } && {
17687 test -z "$ac_c_werror_flag" ||
17688 test ! -s conftest.err
17689 } && test -s conftest$ac_exeext &&
17690 $as_test_x conftest$ac_exeext; then
17691 ac_cv_lib_dgc_dg_sys_info=yes
17692 else
17693 echo "$as_me: failed program was:" >&5
17694 sed 's/^/| /' conftest.$ac_ext >&5
17696 ac_cv_lib_dgc_dg_sys_info=no
17699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17700 conftest$ac_exeext conftest.$ac_ext
17701 LIBS=$ac_check_lib_save_LIBS
17703 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17704 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17705 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17706 cat >>confdefs.h <<_ACEOF
17707 #define HAVE_LIBDGC 1
17708 _ACEOF
17710 LIBS="-ldgc $LIBS"
17718 if test "${ac_cv_header_locale_h+set}" = set; then
17719 { echo "$as_me:$LINENO: checking for locale.h" >&5
17720 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17721 if test "${ac_cv_header_locale_h+set}" = set; then
17722 echo $ECHO_N "(cached) $ECHO_C" >&6
17724 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17725 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17726 else
17727 # Is the header compilable?
17728 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17729 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17730 cat >conftest.$ac_ext <<_ACEOF
17731 /* confdefs.h. */
17732 _ACEOF
17733 cat confdefs.h >>conftest.$ac_ext
17734 cat >>conftest.$ac_ext <<_ACEOF
17735 /* end confdefs.h. */
17736 $ac_includes_default
17737 #include <locale.h>
17738 _ACEOF
17739 rm -f conftest.$ac_objext
17740 if { (ac_try="$ac_compile"
17741 case "(($ac_try" in
17742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17743 *) ac_try_echo=$ac_try;;
17744 esac
17745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17746 (eval "$ac_compile") 2>conftest.er1
17747 ac_status=$?
17748 grep -v '^ *+' conftest.er1 >conftest.err
17749 rm -f conftest.er1
17750 cat conftest.err >&5
17751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752 (exit $ac_status); } && {
17753 test -z "$ac_c_werror_flag" ||
17754 test ! -s conftest.err
17755 } && test -s conftest.$ac_objext; then
17756 ac_header_compiler=yes
17757 else
17758 echo "$as_me: failed program was:" >&5
17759 sed 's/^/| /' conftest.$ac_ext >&5
17761 ac_header_compiler=no
17764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17765 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17766 echo "${ECHO_T}$ac_header_compiler" >&6; }
17768 # Is the header present?
17769 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17770 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17771 cat >conftest.$ac_ext <<_ACEOF
17772 /* confdefs.h. */
17773 _ACEOF
17774 cat confdefs.h >>conftest.$ac_ext
17775 cat >>conftest.$ac_ext <<_ACEOF
17776 /* end confdefs.h. */
17777 #include <locale.h>
17778 _ACEOF
17779 if { (ac_try="$ac_cpp conftest.$ac_ext"
17780 case "(($ac_try" in
17781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17782 *) ac_try_echo=$ac_try;;
17783 esac
17784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17785 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17786 ac_status=$?
17787 grep -v '^ *+' conftest.er1 >conftest.err
17788 rm -f conftest.er1
17789 cat conftest.err >&5
17790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17791 (exit $ac_status); } >/dev/null && {
17792 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17793 test ! -s conftest.err
17794 }; then
17795 ac_header_preproc=yes
17796 else
17797 echo "$as_me: failed program was:" >&5
17798 sed 's/^/| /' conftest.$ac_ext >&5
17800 ac_header_preproc=no
17803 rm -f conftest.err conftest.$ac_ext
17804 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17805 echo "${ECHO_T}$ac_header_preproc" >&6; }
17807 # So? What about this header?
17808 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17809 yes:no: )
17810 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17811 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17812 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17813 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17814 ac_header_preproc=yes
17816 no:yes:* )
17817 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17818 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17819 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17820 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17821 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17822 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17823 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17824 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17825 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17826 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17827 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17828 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17831 esac
17832 { echo "$as_me:$LINENO: checking for locale.h" >&5
17833 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17834 if test "${ac_cv_header_locale_h+set}" = set; then
17835 echo $ECHO_N "(cached) $ECHO_C" >&6
17836 else
17837 ac_cv_header_locale_h=$ac_header_preproc
17839 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17840 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17846 for ac_func in setlocale
17848 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17849 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17850 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17851 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17852 echo $ECHO_N "(cached) $ECHO_C" >&6
17853 else
17854 cat >conftest.$ac_ext <<_ACEOF
17855 /* confdefs.h. */
17856 _ACEOF
17857 cat confdefs.h >>conftest.$ac_ext
17858 cat >>conftest.$ac_ext <<_ACEOF
17859 /* end confdefs.h. */
17860 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17862 #define $ac_func innocuous_$ac_func
17864 /* System header to define __stub macros and hopefully few prototypes,
17865 which can conflict with char $ac_func (); below.
17866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17867 <limits.h> exists even on freestanding compilers. */
17869 #ifdef __STDC__
17870 # include <limits.h>
17871 #else
17872 # include <assert.h>
17873 #endif
17875 #undef $ac_func
17877 /* Override any GCC internal prototype to avoid an error.
17878 Use char because int might match the return type of a GCC
17879 builtin and then its argument prototype would still apply. */
17880 #ifdef __cplusplus
17881 extern "C"
17882 #endif
17883 char $ac_func ();
17884 /* The GNU C library defines this for functions which it implements
17885 to always fail with ENOSYS. Some functions are actually named
17886 something starting with __ and the normal name is an alias. */
17887 #if defined __stub_$ac_func || defined __stub___$ac_func
17888 choke me
17889 #endif
17892 main ()
17894 return $ac_func ();
17896 return 0;
17898 _ACEOF
17899 rm -f conftest.$ac_objext conftest$ac_exeext
17900 if { (ac_try="$ac_link"
17901 case "(($ac_try" in
17902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17903 *) ac_try_echo=$ac_try;;
17904 esac
17905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17906 (eval "$ac_link") 2>conftest.er1
17907 ac_status=$?
17908 grep -v '^ *+' conftest.er1 >conftest.err
17909 rm -f conftest.er1
17910 cat conftest.err >&5
17911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17912 (exit $ac_status); } && {
17913 test -z "$ac_c_werror_flag" ||
17914 test ! -s conftest.err
17915 } && test -s conftest$ac_exeext &&
17916 $as_test_x conftest$ac_exeext; then
17917 eval "$as_ac_var=yes"
17918 else
17919 echo "$as_me: failed program was:" >&5
17920 sed 's/^/| /' conftest.$ac_ext >&5
17922 eval "$as_ac_var=no"
17925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17926 conftest$ac_exeext conftest.$ac_ext
17928 ac_res=`eval echo '${'$as_ac_var'}'`
17929 { echo "$as_me:$LINENO: result: $ac_res" >&5
17930 echo "${ECHO_T}$ac_res" >&6; }
17931 if test `eval echo '${'$as_ac_var'}'` = yes; then
17932 cat >>confdefs.h <<_ACEOF
17933 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17934 _ACEOF
17937 done
17940 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17941 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17942 # Irix 4.0.5F has the header but not the library.
17943 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17944 ac_have_func=yes
17946 cat >>confdefs.h <<\_ACEOF
17947 #define SVR4 1
17948 _ACEOF
17952 if test $ac_have_func = no; then
17953 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17954 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17955 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17956 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17957 echo $ECHO_N "(cached) $ECHO_C" >&6
17959 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17960 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17961 else
17962 # Is the header compilable?
17963 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17964 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
17965 cat >conftest.$ac_ext <<_ACEOF
17966 /* confdefs.h. */
17967 _ACEOF
17968 cat confdefs.h >>conftest.$ac_ext
17969 cat >>conftest.$ac_ext <<_ACEOF
17970 /* end confdefs.h. */
17971 $ac_includes_default
17972 #include <inq_stats/cpustats.h>
17973 _ACEOF
17974 rm -f conftest.$ac_objext
17975 if { (ac_try="$ac_compile"
17976 case "(($ac_try" in
17977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17978 *) ac_try_echo=$ac_try;;
17979 esac
17980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17981 (eval "$ac_compile") 2>conftest.er1
17982 ac_status=$?
17983 grep -v '^ *+' conftest.er1 >conftest.err
17984 rm -f conftest.er1
17985 cat conftest.err >&5
17986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987 (exit $ac_status); } && {
17988 test -z "$ac_c_werror_flag" ||
17989 test ! -s conftest.err
17990 } && test -s conftest.$ac_objext; then
17991 ac_header_compiler=yes
17992 else
17993 echo "$as_me: failed program was:" >&5
17994 sed 's/^/| /' conftest.$ac_ext >&5
17996 ac_header_compiler=no
17999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18000 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18001 echo "${ECHO_T}$ac_header_compiler" >&6; }
18003 # Is the header present?
18004 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
18005 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
18006 cat >conftest.$ac_ext <<_ACEOF
18007 /* confdefs.h. */
18008 _ACEOF
18009 cat confdefs.h >>conftest.$ac_ext
18010 cat >>conftest.$ac_ext <<_ACEOF
18011 /* end confdefs.h. */
18012 #include <inq_stats/cpustats.h>
18013 _ACEOF
18014 if { (ac_try="$ac_cpp conftest.$ac_ext"
18015 case "(($ac_try" in
18016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18017 *) ac_try_echo=$ac_try;;
18018 esac
18019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18020 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18021 ac_status=$?
18022 grep -v '^ *+' conftest.er1 >conftest.err
18023 rm -f conftest.er1
18024 cat conftest.err >&5
18025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18026 (exit $ac_status); } >/dev/null && {
18027 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18028 test ! -s conftest.err
18029 }; then
18030 ac_header_preproc=yes
18031 else
18032 echo "$as_me: failed program was:" >&5
18033 sed 's/^/| /' conftest.$ac_ext >&5
18035 ac_header_preproc=no
18038 rm -f conftest.err conftest.$ac_ext
18039 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18040 echo "${ECHO_T}$ac_header_preproc" >&6; }
18042 # So? What about this header?
18043 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18044 yes:no: )
18045 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18046 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18047 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
18048 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
18049 ac_header_preproc=yes
18051 no:yes:* )
18052 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
18053 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
18054 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
18055 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
18056 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
18057 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
18058 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18059 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18060 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
18061 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
18062 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
18063 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
18066 esac
18067 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18068 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18069 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18070 echo $ECHO_N "(cached) $ECHO_C" >&6
18071 else
18072 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18074 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18075 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18078 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18079 ac_have_func=yes
18081 cat >>confdefs.h <<\_ACEOF
18082 #define UMAX 1
18083 _ACEOF
18086 cat >>confdefs.h <<\_ACEOF
18087 #define UMAX4_3 1
18088 _ACEOF
18095 if test $ac_have_func = no; then
18096 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18097 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18098 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18099 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18100 echo $ECHO_N "(cached) $ECHO_C" >&6
18102 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18103 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18104 else
18105 # Is the header compilable?
18106 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
18107 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
18108 cat >conftest.$ac_ext <<_ACEOF
18109 /* confdefs.h. */
18110 _ACEOF
18111 cat confdefs.h >>conftest.$ac_ext
18112 cat >>conftest.$ac_ext <<_ACEOF
18113 /* end confdefs.h. */
18114 $ac_includes_default
18115 #include <sys/cpustats.h>
18116 _ACEOF
18117 rm -f conftest.$ac_objext
18118 if { (ac_try="$ac_compile"
18119 case "(($ac_try" in
18120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18121 *) ac_try_echo=$ac_try;;
18122 esac
18123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18124 (eval "$ac_compile") 2>conftest.er1
18125 ac_status=$?
18126 grep -v '^ *+' conftest.er1 >conftest.err
18127 rm -f conftest.er1
18128 cat conftest.err >&5
18129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130 (exit $ac_status); } && {
18131 test -z "$ac_c_werror_flag" ||
18132 test ! -s conftest.err
18133 } && test -s conftest.$ac_objext; then
18134 ac_header_compiler=yes
18135 else
18136 echo "$as_me: failed program was:" >&5
18137 sed 's/^/| /' conftest.$ac_ext >&5
18139 ac_header_compiler=no
18142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18143 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18144 echo "${ECHO_T}$ac_header_compiler" >&6; }
18146 # Is the header present?
18147 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
18148 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
18149 cat >conftest.$ac_ext <<_ACEOF
18150 /* confdefs.h. */
18151 _ACEOF
18152 cat confdefs.h >>conftest.$ac_ext
18153 cat >>conftest.$ac_ext <<_ACEOF
18154 /* end confdefs.h. */
18155 #include <sys/cpustats.h>
18156 _ACEOF
18157 if { (ac_try="$ac_cpp conftest.$ac_ext"
18158 case "(($ac_try" in
18159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18160 *) ac_try_echo=$ac_try;;
18161 esac
18162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18163 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18164 ac_status=$?
18165 grep -v '^ *+' conftest.er1 >conftest.err
18166 rm -f conftest.er1
18167 cat conftest.err >&5
18168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169 (exit $ac_status); } >/dev/null && {
18170 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18171 test ! -s conftest.err
18172 }; then
18173 ac_header_preproc=yes
18174 else
18175 echo "$as_me: failed program was:" >&5
18176 sed 's/^/| /' conftest.$ac_ext >&5
18178 ac_header_preproc=no
18181 rm -f conftest.err conftest.$ac_ext
18182 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18183 echo "${ECHO_T}$ac_header_preproc" >&6; }
18185 # So? What about this header?
18186 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18187 yes:no: )
18188 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18189 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18190 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
18191 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
18192 ac_header_preproc=yes
18194 no:yes:* )
18195 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
18196 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
18197 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
18198 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
18199 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
18200 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
18201 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18202 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18203 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
18204 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
18205 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
18206 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
18209 esac
18210 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18211 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18212 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18213 echo $ECHO_N "(cached) $ECHO_C" >&6
18214 else
18215 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18217 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18218 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18221 if test $ac_cv_header_sys_cpustats_h = yes; then
18222 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18223 #define UMAX 1
18224 _ACEOF
18231 if test $ac_have_func = no; then
18233 for ac_header in mach/mach.h
18235 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18237 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18240 echo $ECHO_N "(cached) $ECHO_C" >&6
18242 ac_res=`eval echo '${'$as_ac_Header'}'`
18243 { echo "$as_me:$LINENO: result: $ac_res" >&5
18244 echo "${ECHO_T}$ac_res" >&6; }
18245 else
18246 # Is the header compilable?
18247 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18248 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18249 cat >conftest.$ac_ext <<_ACEOF
18250 /* confdefs.h. */
18251 _ACEOF
18252 cat confdefs.h >>conftest.$ac_ext
18253 cat >>conftest.$ac_ext <<_ACEOF
18254 /* end confdefs.h. */
18255 $ac_includes_default
18256 #include <$ac_header>
18257 _ACEOF
18258 rm -f conftest.$ac_objext
18259 if { (ac_try="$ac_compile"
18260 case "(($ac_try" in
18261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18262 *) ac_try_echo=$ac_try;;
18263 esac
18264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18265 (eval "$ac_compile") 2>conftest.er1
18266 ac_status=$?
18267 grep -v '^ *+' conftest.er1 >conftest.err
18268 rm -f conftest.er1
18269 cat conftest.err >&5
18270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18271 (exit $ac_status); } && {
18272 test -z "$ac_c_werror_flag" ||
18273 test ! -s conftest.err
18274 } && test -s conftest.$ac_objext; then
18275 ac_header_compiler=yes
18276 else
18277 echo "$as_me: failed program was:" >&5
18278 sed 's/^/| /' conftest.$ac_ext >&5
18280 ac_header_compiler=no
18283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18284 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18285 echo "${ECHO_T}$ac_header_compiler" >&6; }
18287 # Is the header present?
18288 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18289 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18290 cat >conftest.$ac_ext <<_ACEOF
18291 /* confdefs.h. */
18292 _ACEOF
18293 cat confdefs.h >>conftest.$ac_ext
18294 cat >>conftest.$ac_ext <<_ACEOF
18295 /* end confdefs.h. */
18296 #include <$ac_header>
18297 _ACEOF
18298 if { (ac_try="$ac_cpp conftest.$ac_ext"
18299 case "(($ac_try" in
18300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18301 *) ac_try_echo=$ac_try;;
18302 esac
18303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18304 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18305 ac_status=$?
18306 grep -v '^ *+' conftest.er1 >conftest.err
18307 rm -f conftest.er1
18308 cat conftest.err >&5
18309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18310 (exit $ac_status); } >/dev/null && {
18311 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18312 test ! -s conftest.err
18313 }; then
18314 ac_header_preproc=yes
18315 else
18316 echo "$as_me: failed program was:" >&5
18317 sed 's/^/| /' conftest.$ac_ext >&5
18319 ac_header_preproc=no
18322 rm -f conftest.err conftest.$ac_ext
18323 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18324 echo "${ECHO_T}$ac_header_preproc" >&6; }
18326 # So? What about this header?
18327 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18328 yes:no: )
18329 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18330 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18332 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18333 ac_header_preproc=yes
18335 no:yes:* )
18336 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18337 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18338 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18339 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18340 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18341 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18342 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18343 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18345 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18346 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18347 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18350 esac
18351 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18354 echo $ECHO_N "(cached) $ECHO_C" >&6
18355 else
18356 eval "$as_ac_Header=\$ac_header_preproc"
18358 ac_res=`eval echo '${'$as_ac_Header'}'`
18359 { echo "$as_me:$LINENO: result: $ac_res" >&5
18360 echo "${ECHO_T}$ac_res" >&6; }
18363 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18364 cat >>confdefs.h <<_ACEOF
18365 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18366 _ACEOF
18370 done
18375 for ac_header in nlist.h
18377 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18379 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18382 echo $ECHO_N "(cached) $ECHO_C" >&6
18384 ac_res=`eval echo '${'$as_ac_Header'}'`
18385 { echo "$as_me:$LINENO: result: $ac_res" >&5
18386 echo "${ECHO_T}$ac_res" >&6; }
18387 else
18388 # Is the header compilable?
18389 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18390 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18391 cat >conftest.$ac_ext <<_ACEOF
18392 /* confdefs.h. */
18393 _ACEOF
18394 cat confdefs.h >>conftest.$ac_ext
18395 cat >>conftest.$ac_ext <<_ACEOF
18396 /* end confdefs.h. */
18397 $ac_includes_default
18398 #include <$ac_header>
18399 _ACEOF
18400 rm -f conftest.$ac_objext
18401 if { (ac_try="$ac_compile"
18402 case "(($ac_try" in
18403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18404 *) ac_try_echo=$ac_try;;
18405 esac
18406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18407 (eval "$ac_compile") 2>conftest.er1
18408 ac_status=$?
18409 grep -v '^ *+' conftest.er1 >conftest.err
18410 rm -f conftest.er1
18411 cat conftest.err >&5
18412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18413 (exit $ac_status); } && {
18414 test -z "$ac_c_werror_flag" ||
18415 test ! -s conftest.err
18416 } && test -s conftest.$ac_objext; then
18417 ac_header_compiler=yes
18418 else
18419 echo "$as_me: failed program was:" >&5
18420 sed 's/^/| /' conftest.$ac_ext >&5
18422 ac_header_compiler=no
18425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18426 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18427 echo "${ECHO_T}$ac_header_compiler" >&6; }
18429 # Is the header present?
18430 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18431 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18432 cat >conftest.$ac_ext <<_ACEOF
18433 /* confdefs.h. */
18434 _ACEOF
18435 cat confdefs.h >>conftest.$ac_ext
18436 cat >>conftest.$ac_ext <<_ACEOF
18437 /* end confdefs.h. */
18438 #include <$ac_header>
18439 _ACEOF
18440 if { (ac_try="$ac_cpp conftest.$ac_ext"
18441 case "(($ac_try" in
18442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18443 *) ac_try_echo=$ac_try;;
18444 esac
18445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18446 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18447 ac_status=$?
18448 grep -v '^ *+' conftest.er1 >conftest.err
18449 rm -f conftest.er1
18450 cat conftest.err >&5
18451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18452 (exit $ac_status); } >/dev/null && {
18453 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18454 test ! -s conftest.err
18455 }; then
18456 ac_header_preproc=yes
18457 else
18458 echo "$as_me: failed program was:" >&5
18459 sed 's/^/| /' conftest.$ac_ext >&5
18461 ac_header_preproc=no
18464 rm -f conftest.err conftest.$ac_ext
18465 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18466 echo "${ECHO_T}$ac_header_preproc" >&6; }
18468 # So? What about this header?
18469 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18470 yes:no: )
18471 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18472 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18474 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18475 ac_header_preproc=yes
18477 no:yes:* )
18478 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18479 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18480 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18481 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18482 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18483 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18484 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18485 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18487 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18488 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18489 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18492 esac
18493 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18496 echo $ECHO_N "(cached) $ECHO_C" >&6
18497 else
18498 eval "$as_ac_Header=\$ac_header_preproc"
18500 ac_res=`eval echo '${'$as_ac_Header'}'`
18501 { echo "$as_me:$LINENO: result: $ac_res" >&5
18502 echo "${ECHO_T}$ac_res" >&6; }
18505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18506 cat >>confdefs.h <<_ACEOF
18507 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18508 _ACEOF
18509 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18510 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18511 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18512 echo $ECHO_N "(cached) $ECHO_C" >&6
18513 else
18514 cat >conftest.$ac_ext <<_ACEOF
18515 /* confdefs.h. */
18516 _ACEOF
18517 cat confdefs.h >>conftest.$ac_ext
18518 cat >>conftest.$ac_ext <<_ACEOF
18519 /* end confdefs.h. */
18520 #include <nlist.h>
18523 main ()
18525 static struct nlist ac_aggr;
18526 if (ac_aggr.n_un.n_name)
18527 return 0;
18529 return 0;
18531 _ACEOF
18532 rm -f conftest.$ac_objext
18533 if { (ac_try="$ac_compile"
18534 case "(($ac_try" in
18535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18536 *) ac_try_echo=$ac_try;;
18537 esac
18538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18539 (eval "$ac_compile") 2>conftest.er1
18540 ac_status=$?
18541 grep -v '^ *+' conftest.er1 >conftest.err
18542 rm -f conftest.er1
18543 cat conftest.err >&5
18544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18545 (exit $ac_status); } && {
18546 test -z "$ac_c_werror_flag" ||
18547 test ! -s conftest.err
18548 } && test -s conftest.$ac_objext; then
18549 ac_cv_member_struct_nlist_n_un_n_name=yes
18550 else
18551 echo "$as_me: failed program was:" >&5
18552 sed 's/^/| /' conftest.$ac_ext >&5
18554 cat >conftest.$ac_ext <<_ACEOF
18555 /* confdefs.h. */
18556 _ACEOF
18557 cat confdefs.h >>conftest.$ac_ext
18558 cat >>conftest.$ac_ext <<_ACEOF
18559 /* end confdefs.h. */
18560 #include <nlist.h>
18563 main ()
18565 static struct nlist ac_aggr;
18566 if (sizeof ac_aggr.n_un.n_name)
18567 return 0;
18569 return 0;
18571 _ACEOF
18572 rm -f conftest.$ac_objext
18573 if { (ac_try="$ac_compile"
18574 case "(($ac_try" in
18575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18576 *) ac_try_echo=$ac_try;;
18577 esac
18578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18579 (eval "$ac_compile") 2>conftest.er1
18580 ac_status=$?
18581 grep -v '^ *+' conftest.er1 >conftest.err
18582 rm -f conftest.er1
18583 cat conftest.err >&5
18584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18585 (exit $ac_status); } && {
18586 test -z "$ac_c_werror_flag" ||
18587 test ! -s conftest.err
18588 } && test -s conftest.$ac_objext; then
18589 ac_cv_member_struct_nlist_n_un_n_name=yes
18590 else
18591 echo "$as_me: failed program was:" >&5
18592 sed 's/^/| /' conftest.$ac_ext >&5
18594 ac_cv_member_struct_nlist_n_un_n_name=no
18597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18602 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18603 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18604 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18606 cat >>confdefs.h <<_ACEOF
18607 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18608 _ACEOF
18611 cat >>confdefs.h <<\_ACEOF
18612 #define NLIST_NAME_UNION 1
18613 _ACEOF
18620 done
18623 done
18626 # Some definitions of getloadavg require that the program be installed setgid.
18627 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18628 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18629 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18630 echo $ECHO_N "(cached) $ECHO_C" >&6
18631 else
18632 cat >conftest.$ac_ext <<_ACEOF
18633 /* confdefs.h. */
18634 _ACEOF
18635 cat confdefs.h >>conftest.$ac_ext
18636 cat >>conftest.$ac_ext <<_ACEOF
18637 /* end confdefs.h. */
18638 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18639 #ifdef LDAV_PRIVILEGED
18640 Yowza Am I SETGID yet
18641 #endif
18642 _ACEOF
18643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18644 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18645 ac_cv_func_getloadavg_setgid=yes
18646 else
18647 ac_cv_func_getloadavg_setgid=no
18649 rm -f conftest*
18652 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18653 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18654 if test $ac_cv_func_getloadavg_setgid = yes; then
18655 NEED_SETGID=true
18657 cat >>confdefs.h <<\_ACEOF
18658 #define GETLOADAVG_PRIVILEGED 1
18659 _ACEOF
18661 else
18662 NEED_SETGID=false
18665 if test $ac_cv_func_getloadavg_setgid = yes; then
18666 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18667 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18668 if test "${ac_cv_group_kmem+set}" = set; then
18669 echo $ECHO_N "(cached) $ECHO_C" >&6
18670 else
18671 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18672 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18673 # If we got an error (system does not support symlinks), try without -L.
18674 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18675 ac_cv_group_kmem=`echo $ac_ls_output \
18676 | sed -ne 's/[ ][ ]*/ /g;
18677 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18678 / /s/.* //;p;'`
18681 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18682 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18683 KMEM_GROUP=$ac_cv_group_kmem
18685 if test "x$ac_save_LIBS" = x; then
18686 GETLOADAVG_LIBS=$LIBS
18687 else
18688 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18690 LIBS=$ac_save_LIBS
18694 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18695 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18696 if test "${ac_cv_sys_largefile_source+set}" = set; then
18697 echo $ECHO_N "(cached) $ECHO_C" >&6
18698 else
18699 while :; do
18700 cat >conftest.$ac_ext <<_ACEOF
18701 /* confdefs.h. */
18702 _ACEOF
18703 cat confdefs.h >>conftest.$ac_ext
18704 cat >>conftest.$ac_ext <<_ACEOF
18705 /* end confdefs.h. */
18706 #include <stdio.h>
18708 main ()
18710 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18712 return 0;
18714 _ACEOF
18715 rm -f conftest.$ac_objext conftest$ac_exeext
18716 if { (ac_try="$ac_link"
18717 case "(($ac_try" in
18718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18719 *) ac_try_echo=$ac_try;;
18720 esac
18721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18722 (eval "$ac_link") 2>conftest.er1
18723 ac_status=$?
18724 grep -v '^ *+' conftest.er1 >conftest.err
18725 rm -f conftest.er1
18726 cat conftest.err >&5
18727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728 (exit $ac_status); } && {
18729 test -z "$ac_c_werror_flag" ||
18730 test ! -s conftest.err
18731 } && test -s conftest$ac_exeext &&
18732 $as_test_x conftest$ac_exeext; then
18733 ac_cv_sys_largefile_source=no; break
18734 else
18735 echo "$as_me: failed program was:" >&5
18736 sed 's/^/| /' conftest.$ac_ext >&5
18741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18742 conftest$ac_exeext conftest.$ac_ext
18743 cat >conftest.$ac_ext <<_ACEOF
18744 /* confdefs.h. */
18745 _ACEOF
18746 cat confdefs.h >>conftest.$ac_ext
18747 cat >>conftest.$ac_ext <<_ACEOF
18748 /* end confdefs.h. */
18749 #define _LARGEFILE_SOURCE 1
18750 #include <stdio.h>
18752 main ()
18754 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18756 return 0;
18758 _ACEOF
18759 rm -f conftest.$ac_objext conftest$ac_exeext
18760 if { (ac_try="$ac_link"
18761 case "(($ac_try" in
18762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18763 *) ac_try_echo=$ac_try;;
18764 esac
18765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18766 (eval "$ac_link") 2>conftest.er1
18767 ac_status=$?
18768 grep -v '^ *+' conftest.er1 >conftest.err
18769 rm -f conftest.er1
18770 cat conftest.err >&5
18771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772 (exit $ac_status); } && {
18773 test -z "$ac_c_werror_flag" ||
18774 test ! -s conftest.err
18775 } && test -s conftest$ac_exeext &&
18776 $as_test_x conftest$ac_exeext; then
18777 ac_cv_sys_largefile_source=1; break
18778 else
18779 echo "$as_me: failed program was:" >&5
18780 sed 's/^/| /' conftest.$ac_ext >&5
18785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18786 conftest$ac_exeext conftest.$ac_ext
18787 ac_cv_sys_largefile_source=unknown
18788 break
18789 done
18791 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18792 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18793 case $ac_cv_sys_largefile_source in #(
18794 no | unknown) ;;
18796 cat >>confdefs.h <<_ACEOF
18797 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18798 _ACEOF
18800 esac
18801 rm -f conftest*
18803 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18804 # in glibc 2.1.3, but that breaks too many other things.
18805 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18806 if test $ac_cv_sys_largefile_source != unknown; then
18808 cat >>confdefs.h <<\_ACEOF
18809 #define HAVE_FSEEKO 1
18810 _ACEOF
18815 # Configure getopt.
18816 # getopt.m4 serial 10
18818 # The getopt module assume you want GNU getopt, with getopt_long etc,
18819 # rather than vanilla POSIX getopt. This means your your code should
18820 # always include <getopt.h> for the getopt prototypes.
18832 # Prerequisites of lib/getopt*.
18837 GETOPT_H=
18839 for ac_header in getopt.h
18841 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18843 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18845 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18846 echo $ECHO_N "(cached) $ECHO_C" >&6
18848 ac_res=`eval echo '${'$as_ac_Header'}'`
18849 { echo "$as_me:$LINENO: result: $ac_res" >&5
18850 echo "${ECHO_T}$ac_res" >&6; }
18851 else
18852 # Is the header compilable?
18853 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18854 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18855 cat >conftest.$ac_ext <<_ACEOF
18856 /* confdefs.h. */
18857 _ACEOF
18858 cat confdefs.h >>conftest.$ac_ext
18859 cat >>conftest.$ac_ext <<_ACEOF
18860 /* end confdefs.h. */
18861 $ac_includes_default
18862 #include <$ac_header>
18863 _ACEOF
18864 rm -f conftest.$ac_objext
18865 if { (ac_try="$ac_compile"
18866 case "(($ac_try" in
18867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18868 *) ac_try_echo=$ac_try;;
18869 esac
18870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18871 (eval "$ac_compile") 2>conftest.er1
18872 ac_status=$?
18873 grep -v '^ *+' conftest.er1 >conftest.err
18874 rm -f conftest.er1
18875 cat conftest.err >&5
18876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877 (exit $ac_status); } && {
18878 test -z "$ac_c_werror_flag" ||
18879 test ! -s conftest.err
18880 } && test -s conftest.$ac_objext; then
18881 ac_header_compiler=yes
18882 else
18883 echo "$as_me: failed program was:" >&5
18884 sed 's/^/| /' conftest.$ac_ext >&5
18886 ac_header_compiler=no
18889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18890 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18891 echo "${ECHO_T}$ac_header_compiler" >&6; }
18893 # Is the header present?
18894 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18895 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18896 cat >conftest.$ac_ext <<_ACEOF
18897 /* confdefs.h. */
18898 _ACEOF
18899 cat confdefs.h >>conftest.$ac_ext
18900 cat >>conftest.$ac_ext <<_ACEOF
18901 /* end confdefs.h. */
18902 #include <$ac_header>
18903 _ACEOF
18904 if { (ac_try="$ac_cpp conftest.$ac_ext"
18905 case "(($ac_try" in
18906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18907 *) ac_try_echo=$ac_try;;
18908 esac
18909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18910 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18911 ac_status=$?
18912 grep -v '^ *+' conftest.er1 >conftest.err
18913 rm -f conftest.er1
18914 cat conftest.err >&5
18915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18916 (exit $ac_status); } >/dev/null && {
18917 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18918 test ! -s conftest.err
18919 }; then
18920 ac_header_preproc=yes
18921 else
18922 echo "$as_me: failed program was:" >&5
18923 sed 's/^/| /' conftest.$ac_ext >&5
18925 ac_header_preproc=no
18928 rm -f conftest.err conftest.$ac_ext
18929 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18930 echo "${ECHO_T}$ac_header_preproc" >&6; }
18932 # So? What about this header?
18933 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18934 yes:no: )
18935 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18936 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18937 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18938 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18939 ac_header_preproc=yes
18941 no:yes:* )
18942 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18943 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18944 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18945 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18946 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18947 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18948 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18949 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18950 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18951 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18952 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18953 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18956 esac
18957 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18960 echo $ECHO_N "(cached) $ECHO_C" >&6
18961 else
18962 eval "$as_ac_Header=\$ac_header_preproc"
18964 ac_res=`eval echo '${'$as_ac_Header'}'`
18965 { echo "$as_me:$LINENO: result: $ac_res" >&5
18966 echo "${ECHO_T}$ac_res" >&6; }
18969 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18970 cat >>confdefs.h <<_ACEOF
18971 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18972 _ACEOF
18974 else
18975 GETOPT_H=getopt.h
18978 done
18980 if test -z "$GETOPT_H"; then
18982 for ac_func in getopt_long_only
18984 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18985 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18986 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18987 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18988 echo $ECHO_N "(cached) $ECHO_C" >&6
18989 else
18990 cat >conftest.$ac_ext <<_ACEOF
18991 /* confdefs.h. */
18992 _ACEOF
18993 cat confdefs.h >>conftest.$ac_ext
18994 cat >>conftest.$ac_ext <<_ACEOF
18995 /* end confdefs.h. */
18996 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18997 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18998 #define $ac_func innocuous_$ac_func
19000 /* System header to define __stub macros and hopefully few prototypes,
19001 which can conflict with char $ac_func (); below.
19002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19003 <limits.h> exists even on freestanding compilers. */
19005 #ifdef __STDC__
19006 # include <limits.h>
19007 #else
19008 # include <assert.h>
19009 #endif
19011 #undef $ac_func
19013 /* Override any GCC internal prototype to avoid an error.
19014 Use char because int might match the return type of a GCC
19015 builtin and then its argument prototype would still apply. */
19016 #ifdef __cplusplus
19017 extern "C"
19018 #endif
19019 char $ac_func ();
19020 /* The GNU C library defines this for functions which it implements
19021 to always fail with ENOSYS. Some functions are actually named
19022 something starting with __ and the normal name is an alias. */
19023 #if defined __stub_$ac_func || defined __stub___$ac_func
19024 choke me
19025 #endif
19028 main ()
19030 return $ac_func ();
19032 return 0;
19034 _ACEOF
19035 rm -f conftest.$ac_objext conftest$ac_exeext
19036 if { (ac_try="$ac_link"
19037 case "(($ac_try" in
19038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19039 *) ac_try_echo=$ac_try;;
19040 esac
19041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19042 (eval "$ac_link") 2>conftest.er1
19043 ac_status=$?
19044 grep -v '^ *+' conftest.er1 >conftest.err
19045 rm -f conftest.er1
19046 cat conftest.err >&5
19047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19048 (exit $ac_status); } && {
19049 test -z "$ac_c_werror_flag" ||
19050 test ! -s conftest.err
19051 } && test -s conftest$ac_exeext &&
19052 $as_test_x conftest$ac_exeext; then
19053 eval "$as_ac_var=yes"
19054 else
19055 echo "$as_me: failed program was:" >&5
19056 sed 's/^/| /' conftest.$ac_ext >&5
19058 eval "$as_ac_var=no"
19061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19062 conftest$ac_exeext conftest.$ac_ext
19064 ac_res=`eval echo '${'$as_ac_var'}'`
19065 { echo "$as_me:$LINENO: result: $ac_res" >&5
19066 echo "${ECHO_T}$ac_res" >&6; }
19067 if test `eval echo '${'$as_ac_var'}'` = yes; then
19068 cat >>confdefs.h <<_ACEOF
19069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19070 _ACEOF
19072 else
19073 GETOPT_H=getopt.h
19075 done
19079 if test -z "$GETOPT_H"; then
19080 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
19081 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
19082 if test "${ac_cv_have_decl_optreset+set}" = set; then
19083 echo $ECHO_N "(cached) $ECHO_C" >&6
19084 else
19085 cat >conftest.$ac_ext <<_ACEOF
19086 /* confdefs.h. */
19087 _ACEOF
19088 cat confdefs.h >>conftest.$ac_ext
19089 cat >>conftest.$ac_ext <<_ACEOF
19090 /* end confdefs.h. */
19091 #include <getopt.h>
19094 main ()
19096 #ifndef optreset
19097 (void) optreset;
19098 #endif
19101 return 0;
19103 _ACEOF
19104 rm -f conftest.$ac_objext
19105 if { (ac_try="$ac_compile"
19106 case "(($ac_try" in
19107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19108 *) ac_try_echo=$ac_try;;
19109 esac
19110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19111 (eval "$ac_compile") 2>conftest.er1
19112 ac_status=$?
19113 grep -v '^ *+' conftest.er1 >conftest.err
19114 rm -f conftest.er1
19115 cat conftest.err >&5
19116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19117 (exit $ac_status); } && {
19118 test -z "$ac_c_werror_flag" ||
19119 test ! -s conftest.err
19120 } && test -s conftest.$ac_objext; then
19121 ac_cv_have_decl_optreset=yes
19122 else
19123 echo "$as_me: failed program was:" >&5
19124 sed 's/^/| /' conftest.$ac_ext >&5
19126 ac_cv_have_decl_optreset=no
19129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19131 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
19132 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19133 if test $ac_cv_have_decl_optreset = yes; then
19134 GETOPT_H=getopt.h
19139 if test -z "$GETOPT_H"; then
19140 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
19141 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
19142 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19143 echo $ECHO_N "(cached) $ECHO_C" >&6
19144 else
19145 if test "$cross_compiling" = yes; then
19146 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
19147 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
19148 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19149 echo $ECHO_N "(cached) $ECHO_C" >&6
19150 else
19151 cat >conftest.$ac_ext <<_ACEOF
19152 /* confdefs.h. */
19153 _ACEOF
19154 cat confdefs.h >>conftest.$ac_ext
19155 cat >>conftest.$ac_ext <<_ACEOF
19156 /* end confdefs.h. */
19157 #include <getopt.h>
19160 main ()
19162 #ifndef getopt_clip
19163 (void) getopt_clip;
19164 #endif
19167 return 0;
19169 _ACEOF
19170 rm -f conftest.$ac_objext
19171 if { (ac_try="$ac_compile"
19172 case "(($ac_try" in
19173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19174 *) ac_try_echo=$ac_try;;
19175 esac
19176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19177 (eval "$ac_compile") 2>conftest.er1
19178 ac_status=$?
19179 grep -v '^ *+' conftest.er1 >conftest.err
19180 rm -f conftest.er1
19181 cat conftest.err >&5
19182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183 (exit $ac_status); } && {
19184 test -z "$ac_c_werror_flag" ||
19185 test ! -s conftest.err
19186 } && test -s conftest.$ac_objext; then
19187 ac_cv_have_decl_getopt_clip=yes
19188 else
19189 echo "$as_me: failed program was:" >&5
19190 sed 's/^/| /' conftest.$ac_ext >&5
19192 ac_cv_have_decl_getopt_clip=no
19195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19197 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
19198 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19199 if test $ac_cv_have_decl_getopt_clip = yes; then
19200 gl_cv_func_gnu_getopt=no
19201 else
19202 gl_cv_func_gnu_getopt=yes
19205 else
19206 cat >conftest.$ac_ext <<_ACEOF
19207 /* confdefs.h. */
19208 _ACEOF
19209 cat confdefs.h >>conftest.$ac_ext
19210 cat >>conftest.$ac_ext <<_ACEOF
19211 /* end confdefs.h. */
19212 #include <getopt.h>
19214 main ()
19217 char *myargv[3];
19218 myargv[0] = "conftest";
19219 myargv[1] = "-+";
19220 myargv[2] = 0;
19221 return getopt (2, myargv, "+a") != '?';
19224 return 0;
19226 _ACEOF
19227 rm -f conftest$ac_exeext
19228 if { (ac_try="$ac_link"
19229 case "(($ac_try" in
19230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19231 *) ac_try_echo=$ac_try;;
19232 esac
19233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19234 (eval "$ac_link") 2>&5
19235 ac_status=$?
19236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19238 { (case "(($ac_try" in
19239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19240 *) ac_try_echo=$ac_try;;
19241 esac
19242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19243 (eval "$ac_try") 2>&5
19244 ac_status=$?
19245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246 (exit $ac_status); }; }; then
19247 gl_cv_func_gnu_getopt=yes
19248 else
19249 echo "$as_me: program exited with status $ac_status" >&5
19250 echo "$as_me: failed program was:" >&5
19251 sed 's/^/| /' conftest.$ac_ext >&5
19253 ( exit $ac_status )
19254 gl_cv_func_gnu_getopt=no
19256 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19261 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
19262 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19263 if test "$gl_cv_func_gnu_getopt" = "no"; then
19264 GETOPT_H=getopt.h
19270 if test -n "$GETOPT_H"; then
19273 GETOPT_H=getopt.h
19275 cat >>confdefs.h <<\_ACEOF
19276 #define __GETOPT_PREFIX rpl_
19277 _ACEOF
19282 GETOPTOBJS='getopt.o getopt1.o'
19289 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
19290 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
19291 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19292 echo $ECHO_N "(cached) $ECHO_C" >&6
19293 else
19294 # Use it with a single arg.
19295 cat >conftest.$ac_ext <<_ACEOF
19296 /* confdefs.h. */
19297 _ACEOF
19298 cat confdefs.h >>conftest.$ac_ext
19299 cat >>conftest.$ac_ext <<_ACEOF
19300 /* end confdefs.h. */
19301 $ac_includes_default
19303 main ()
19305 getpgrp (0);
19307 return 0;
19309 _ACEOF
19310 rm -f conftest.$ac_objext
19311 if { (ac_try="$ac_compile"
19312 case "(($ac_try" in
19313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19314 *) ac_try_echo=$ac_try;;
19315 esac
19316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19317 (eval "$ac_compile") 2>conftest.er1
19318 ac_status=$?
19319 grep -v '^ *+' conftest.er1 >conftest.err
19320 rm -f conftest.er1
19321 cat conftest.err >&5
19322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323 (exit $ac_status); } && {
19324 test -z "$ac_c_werror_flag" ||
19325 test ! -s conftest.err
19326 } && test -s conftest.$ac_objext; then
19327 ac_cv_func_getpgrp_void=no
19328 else
19329 echo "$as_me: failed program was:" >&5
19330 sed 's/^/| /' conftest.$ac_ext >&5
19332 ac_cv_func_getpgrp_void=yes
19335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19338 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
19339 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19340 if test $ac_cv_func_getpgrp_void = yes; then
19342 cat >>confdefs.h <<\_ACEOF
19343 #define GETPGRP_VOID 1
19344 _ACEOF
19350 for ac_func in strftime
19352 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19353 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19354 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19355 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19356 echo $ECHO_N "(cached) $ECHO_C" >&6
19357 else
19358 cat >conftest.$ac_ext <<_ACEOF
19359 /* confdefs.h. */
19360 _ACEOF
19361 cat confdefs.h >>conftest.$ac_ext
19362 cat >>conftest.$ac_ext <<_ACEOF
19363 /* end confdefs.h. */
19364 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19365 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19366 #define $ac_func innocuous_$ac_func
19368 /* System header to define __stub macros and hopefully few prototypes,
19369 which can conflict with char $ac_func (); below.
19370 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19371 <limits.h> exists even on freestanding compilers. */
19373 #ifdef __STDC__
19374 # include <limits.h>
19375 #else
19376 # include <assert.h>
19377 #endif
19379 #undef $ac_func
19381 /* Override any GCC internal prototype to avoid an error.
19382 Use char because int might match the return type of a GCC
19383 builtin and then its argument prototype would still apply. */
19384 #ifdef __cplusplus
19385 extern "C"
19386 #endif
19387 char $ac_func ();
19388 /* The GNU C library defines this for functions which it implements
19389 to always fail with ENOSYS. Some functions are actually named
19390 something starting with __ and the normal name is an alias. */
19391 #if defined __stub_$ac_func || defined __stub___$ac_func
19392 choke me
19393 #endif
19396 main ()
19398 return $ac_func ();
19400 return 0;
19402 _ACEOF
19403 rm -f conftest.$ac_objext conftest$ac_exeext
19404 if { (ac_try="$ac_link"
19405 case "(($ac_try" in
19406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19407 *) ac_try_echo=$ac_try;;
19408 esac
19409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19410 (eval "$ac_link") 2>conftest.er1
19411 ac_status=$?
19412 grep -v '^ *+' conftest.er1 >conftest.err
19413 rm -f conftest.er1
19414 cat conftest.err >&5
19415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416 (exit $ac_status); } && {
19417 test -z "$ac_c_werror_flag" ||
19418 test ! -s conftest.err
19419 } && test -s conftest$ac_exeext &&
19420 $as_test_x conftest$ac_exeext; then
19421 eval "$as_ac_var=yes"
19422 else
19423 echo "$as_me: failed program was:" >&5
19424 sed 's/^/| /' conftest.$ac_ext >&5
19426 eval "$as_ac_var=no"
19429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19430 conftest$ac_exeext conftest.$ac_ext
19432 ac_res=`eval echo '${'$as_ac_var'}'`
19433 { echo "$as_me:$LINENO: result: $ac_res" >&5
19434 echo "${ECHO_T}$ac_res" >&6; }
19435 if test `eval echo '${'$as_ac_var'}'` = yes; then
19436 cat >>confdefs.h <<_ACEOF
19437 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19438 _ACEOF
19440 else
19441 # strftime is in -lintl on SCO UNIX.
19442 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19443 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
19444 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19445 echo $ECHO_N "(cached) $ECHO_C" >&6
19446 else
19447 ac_check_lib_save_LIBS=$LIBS
19448 LIBS="-lintl $LIBS"
19449 cat >conftest.$ac_ext <<_ACEOF
19450 /* confdefs.h. */
19451 _ACEOF
19452 cat confdefs.h >>conftest.$ac_ext
19453 cat >>conftest.$ac_ext <<_ACEOF
19454 /* end confdefs.h. */
19456 /* Override any GCC internal prototype to avoid an error.
19457 Use char because int might match the return type of a GCC
19458 builtin and then its argument prototype would still apply. */
19459 #ifdef __cplusplus
19460 extern "C"
19461 #endif
19462 char strftime ();
19464 main ()
19466 return strftime ();
19468 return 0;
19470 _ACEOF
19471 rm -f conftest.$ac_objext conftest$ac_exeext
19472 if { (ac_try="$ac_link"
19473 case "(($ac_try" in
19474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19475 *) ac_try_echo=$ac_try;;
19476 esac
19477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19478 (eval "$ac_link") 2>conftest.er1
19479 ac_status=$?
19480 grep -v '^ *+' conftest.er1 >conftest.err
19481 rm -f conftest.er1
19482 cat conftest.err >&5
19483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19484 (exit $ac_status); } && {
19485 test -z "$ac_c_werror_flag" ||
19486 test ! -s conftest.err
19487 } && test -s conftest$ac_exeext &&
19488 $as_test_x conftest$ac_exeext; then
19489 ac_cv_lib_intl_strftime=yes
19490 else
19491 echo "$as_me: failed program was:" >&5
19492 sed 's/^/| /' conftest.$ac_ext >&5
19494 ac_cv_lib_intl_strftime=no
19497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19498 conftest$ac_exeext conftest.$ac_ext
19499 LIBS=$ac_check_lib_save_LIBS
19501 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19502 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19503 if test $ac_cv_lib_intl_strftime = yes; then
19504 cat >>confdefs.h <<\_ACEOF
19505 #define HAVE_STRFTIME 1
19506 _ACEOF
19508 LIBS="-lintl $LIBS"
19512 done
19515 # UNIX98 PTYs.
19517 for ac_func in grantpt
19519 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19520 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19521 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19522 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19523 echo $ECHO_N "(cached) $ECHO_C" >&6
19524 else
19525 cat >conftest.$ac_ext <<_ACEOF
19526 /* confdefs.h. */
19527 _ACEOF
19528 cat confdefs.h >>conftest.$ac_ext
19529 cat >>conftest.$ac_ext <<_ACEOF
19530 /* end confdefs.h. */
19531 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19532 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19533 #define $ac_func innocuous_$ac_func
19535 /* System header to define __stub macros and hopefully few prototypes,
19536 which can conflict with char $ac_func (); below.
19537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19538 <limits.h> exists even on freestanding compilers. */
19540 #ifdef __STDC__
19541 # include <limits.h>
19542 #else
19543 # include <assert.h>
19544 #endif
19546 #undef $ac_func
19548 /* Override any GCC internal prototype to avoid an error.
19549 Use char because int might match the return type of a GCC
19550 builtin and then its argument prototype would still apply. */
19551 #ifdef __cplusplus
19552 extern "C"
19553 #endif
19554 char $ac_func ();
19555 /* The GNU C library defines this for functions which it implements
19556 to always fail with ENOSYS. Some functions are actually named
19557 something starting with __ and the normal name is an alias. */
19558 #if defined __stub_$ac_func || defined __stub___$ac_func
19559 choke me
19560 #endif
19563 main ()
19565 return $ac_func ();
19567 return 0;
19569 _ACEOF
19570 rm -f conftest.$ac_objext conftest$ac_exeext
19571 if { (ac_try="$ac_link"
19572 case "(($ac_try" in
19573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19574 *) ac_try_echo=$ac_try;;
19575 esac
19576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19577 (eval "$ac_link") 2>conftest.er1
19578 ac_status=$?
19579 grep -v '^ *+' conftest.er1 >conftest.err
19580 rm -f conftest.er1
19581 cat conftest.err >&5
19582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583 (exit $ac_status); } && {
19584 test -z "$ac_c_werror_flag" ||
19585 test ! -s conftest.err
19586 } && test -s conftest$ac_exeext &&
19587 $as_test_x conftest$ac_exeext; then
19588 eval "$as_ac_var=yes"
19589 else
19590 echo "$as_me: failed program was:" >&5
19591 sed 's/^/| /' conftest.$ac_ext >&5
19593 eval "$as_ac_var=no"
19596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19597 conftest$ac_exeext conftest.$ac_ext
19599 ac_res=`eval echo '${'$as_ac_var'}'`
19600 { echo "$as_me:$LINENO: result: $ac_res" >&5
19601 echo "${ECHO_T}$ac_res" >&6; }
19602 if test `eval echo '${'$as_ac_var'}'` = yes; then
19603 cat >>confdefs.h <<_ACEOF
19604 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19605 _ACEOF
19608 done
19611 # PTY-related GNU extensions.
19613 for ac_func in getpt
19615 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19616 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19617 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19618 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19619 echo $ECHO_N "(cached) $ECHO_C" >&6
19620 else
19621 cat >conftest.$ac_ext <<_ACEOF
19622 /* confdefs.h. */
19623 _ACEOF
19624 cat confdefs.h >>conftest.$ac_ext
19625 cat >>conftest.$ac_ext <<_ACEOF
19626 /* end confdefs.h. */
19627 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19629 #define $ac_func innocuous_$ac_func
19631 /* System header to define __stub macros and hopefully few prototypes,
19632 which can conflict with char $ac_func (); below.
19633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19634 <limits.h> exists even on freestanding compilers. */
19636 #ifdef __STDC__
19637 # include <limits.h>
19638 #else
19639 # include <assert.h>
19640 #endif
19642 #undef $ac_func
19644 /* Override any GCC internal prototype to avoid an error.
19645 Use char because int might match the return type of a GCC
19646 builtin and then its argument prototype would still apply. */
19647 #ifdef __cplusplus
19648 extern "C"
19649 #endif
19650 char $ac_func ();
19651 /* The GNU C library defines this for functions which it implements
19652 to always fail with ENOSYS. Some functions are actually named
19653 something starting with __ and the normal name is an alias. */
19654 #if defined __stub_$ac_func || defined __stub___$ac_func
19655 choke me
19656 #endif
19659 main ()
19661 return $ac_func ();
19663 return 0;
19665 _ACEOF
19666 rm -f conftest.$ac_objext conftest$ac_exeext
19667 if { (ac_try="$ac_link"
19668 case "(($ac_try" in
19669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19670 *) ac_try_echo=$ac_try;;
19671 esac
19672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19673 (eval "$ac_link") 2>conftest.er1
19674 ac_status=$?
19675 grep -v '^ *+' conftest.er1 >conftest.err
19676 rm -f conftest.er1
19677 cat conftest.err >&5
19678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19679 (exit $ac_status); } && {
19680 test -z "$ac_c_werror_flag" ||
19681 test ! -s conftest.err
19682 } && test -s conftest$ac_exeext &&
19683 $as_test_x conftest$ac_exeext; then
19684 eval "$as_ac_var=yes"
19685 else
19686 echo "$as_me: failed program was:" >&5
19687 sed 's/^/| /' conftest.$ac_ext >&5
19689 eval "$as_ac_var=no"
19692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19693 conftest$ac_exeext conftest.$ac_ext
19695 ac_res=`eval echo '${'$as_ac_var'}'`
19696 { echo "$as_me:$LINENO: result: $ac_res" >&5
19697 echo "${ECHO_T}$ac_res" >&6; }
19698 if test `eval echo '${'$as_ac_var'}'` = yes; then
19699 cat >>confdefs.h <<_ACEOF
19700 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19701 _ACEOF
19704 done
19707 # Check this now, so that we will NOT find the above functions in ncurses.
19708 # That is because we have not set up to link ncurses in lib-src.
19709 # It's better to believe a function is not available
19710 # than to expect to find it in ncurses.
19712 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19713 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19714 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19715 echo $ECHO_N "(cached) $ECHO_C" >&6
19716 else
19717 ac_check_lib_save_LIBS=$LIBS
19718 LIBS="-lncurses $LIBS"
19719 cat >conftest.$ac_ext <<_ACEOF
19720 /* confdefs.h. */
19721 _ACEOF
19722 cat confdefs.h >>conftest.$ac_ext
19723 cat >>conftest.$ac_ext <<_ACEOF
19724 /* end confdefs.h. */
19726 /* Override any GCC internal prototype to avoid an error.
19727 Use char because int might match the return type of a GCC
19728 builtin and then its argument prototype would still apply. */
19729 #ifdef __cplusplus
19730 extern "C"
19731 #endif
19732 char tparm ();
19734 main ()
19736 return tparm ();
19738 return 0;
19740 _ACEOF
19741 rm -f conftest.$ac_objext conftest$ac_exeext
19742 if { (ac_try="$ac_link"
19743 case "(($ac_try" in
19744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19745 *) ac_try_echo=$ac_try;;
19746 esac
19747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19748 (eval "$ac_link") 2>conftest.er1
19749 ac_status=$?
19750 grep -v '^ *+' conftest.er1 >conftest.err
19751 rm -f conftest.er1
19752 cat conftest.err >&5
19753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754 (exit $ac_status); } && {
19755 test -z "$ac_c_werror_flag" ||
19756 test ! -s conftest.err
19757 } && test -s conftest$ac_exeext &&
19758 $as_test_x conftest$ac_exeext; then
19759 ac_cv_lib_ncurses_tparm=yes
19760 else
19761 echo "$as_me: failed program was:" >&5
19762 sed 's/^/| /' conftest.$ac_ext >&5
19764 ac_cv_lib_ncurses_tparm=no
19767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19768 conftest$ac_exeext conftest.$ac_ext
19769 LIBS=$ac_check_lib_save_LIBS
19771 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19772 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19773 if test $ac_cv_lib_ncurses_tparm = yes; then
19774 cat >>confdefs.h <<_ACEOF
19775 #define HAVE_LIBNCURSES 1
19776 _ACEOF
19778 LIBS="-lncurses $LIBS"
19783 # Do we need the Hesiod library to provide the support routines?
19784 if test "$with_hesiod" = yes ; then
19785 # Don't set $LIBS here -- see comments above.
19786 resolv=no
19787 { echo "$as_me:$LINENO: checking for res_send" >&5
19788 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
19789 if test "${ac_cv_func_res_send+set}" = set; then
19790 echo $ECHO_N "(cached) $ECHO_C" >&6
19791 else
19792 cat >conftest.$ac_ext <<_ACEOF
19793 /* confdefs.h. */
19794 _ACEOF
19795 cat confdefs.h >>conftest.$ac_ext
19796 cat >>conftest.$ac_ext <<_ACEOF
19797 /* end confdefs.h. */
19798 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19799 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19800 #define res_send innocuous_res_send
19802 /* System header to define __stub macros and hopefully few prototypes,
19803 which can conflict with char res_send (); below.
19804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19805 <limits.h> exists even on freestanding compilers. */
19807 #ifdef __STDC__
19808 # include <limits.h>
19809 #else
19810 # include <assert.h>
19811 #endif
19813 #undef res_send
19815 /* Override any GCC internal prototype to avoid an error.
19816 Use char because int might match the return type of a GCC
19817 builtin and then its argument prototype would still apply. */
19818 #ifdef __cplusplus
19819 extern "C"
19820 #endif
19821 char res_send ();
19822 /* The GNU C library defines this for functions which it implements
19823 to always fail with ENOSYS. Some functions are actually named
19824 something starting with __ and the normal name is an alias. */
19825 #if defined __stub_res_send || defined __stub___res_send
19826 choke me
19827 #endif
19830 main ()
19832 return res_send ();
19834 return 0;
19836 _ACEOF
19837 rm -f conftest.$ac_objext conftest$ac_exeext
19838 if { (ac_try="$ac_link"
19839 case "(($ac_try" in
19840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19841 *) ac_try_echo=$ac_try;;
19842 esac
19843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19844 (eval "$ac_link") 2>conftest.er1
19845 ac_status=$?
19846 grep -v '^ *+' conftest.er1 >conftest.err
19847 rm -f conftest.er1
19848 cat conftest.err >&5
19849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19850 (exit $ac_status); } && {
19851 test -z "$ac_c_werror_flag" ||
19852 test ! -s conftest.err
19853 } && test -s conftest$ac_exeext &&
19854 $as_test_x conftest$ac_exeext; then
19855 ac_cv_func_res_send=yes
19856 else
19857 echo "$as_me: failed program was:" >&5
19858 sed 's/^/| /' conftest.$ac_ext >&5
19860 ac_cv_func_res_send=no
19863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19864 conftest$ac_exeext conftest.$ac_ext
19866 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19867 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19868 if test $ac_cv_func_res_send = yes; then
19870 else
19871 { echo "$as_me:$LINENO: checking for __res_send" >&5
19872 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
19873 if test "${ac_cv_func___res_send+set}" = set; then
19874 echo $ECHO_N "(cached) $ECHO_C" >&6
19875 else
19876 cat >conftest.$ac_ext <<_ACEOF
19877 /* confdefs.h. */
19878 _ACEOF
19879 cat confdefs.h >>conftest.$ac_ext
19880 cat >>conftest.$ac_ext <<_ACEOF
19881 /* end confdefs.h. */
19882 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19884 #define __res_send innocuous___res_send
19886 /* System header to define __stub macros and hopefully few prototypes,
19887 which can conflict with char __res_send (); below.
19888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19889 <limits.h> exists even on freestanding compilers. */
19891 #ifdef __STDC__
19892 # include <limits.h>
19893 #else
19894 # include <assert.h>
19895 #endif
19897 #undef __res_send
19899 /* Override any GCC internal prototype to avoid an error.
19900 Use char because int might match the return type of a GCC
19901 builtin and then its argument prototype would still apply. */
19902 #ifdef __cplusplus
19903 extern "C"
19904 #endif
19905 char __res_send ();
19906 /* The GNU C library defines this for functions which it implements
19907 to always fail with ENOSYS. Some functions are actually named
19908 something starting with __ and the normal name is an alias. */
19909 #if defined __stub___res_send || defined __stub_____res_send
19910 choke me
19911 #endif
19914 main ()
19916 return __res_send ();
19918 return 0;
19920 _ACEOF
19921 rm -f conftest.$ac_objext conftest$ac_exeext
19922 if { (ac_try="$ac_link"
19923 case "(($ac_try" in
19924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19925 *) ac_try_echo=$ac_try;;
19926 esac
19927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19928 (eval "$ac_link") 2>conftest.er1
19929 ac_status=$?
19930 grep -v '^ *+' conftest.er1 >conftest.err
19931 rm -f conftest.er1
19932 cat conftest.err >&5
19933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934 (exit $ac_status); } && {
19935 test -z "$ac_c_werror_flag" ||
19936 test ! -s conftest.err
19937 } && test -s conftest$ac_exeext &&
19938 $as_test_x conftest$ac_exeext; then
19939 ac_cv_func___res_send=yes
19940 else
19941 echo "$as_me: failed program was:" >&5
19942 sed 's/^/| /' conftest.$ac_ext >&5
19944 ac_cv_func___res_send=no
19947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19948 conftest$ac_exeext conftest.$ac_ext
19950 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
19951 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19952 if test $ac_cv_func___res_send = yes; then
19954 else
19955 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
19956 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
19957 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19958 echo $ECHO_N "(cached) $ECHO_C" >&6
19959 else
19960 ac_check_lib_save_LIBS=$LIBS
19961 LIBS="-lresolv $LIBS"
19962 cat >conftest.$ac_ext <<_ACEOF
19963 /* confdefs.h. */
19964 _ACEOF
19965 cat confdefs.h >>conftest.$ac_ext
19966 cat >>conftest.$ac_ext <<_ACEOF
19967 /* end confdefs.h. */
19969 /* Override any GCC internal prototype to avoid an error.
19970 Use char because int might match the return type of a GCC
19971 builtin and then its argument prototype would still apply. */
19972 #ifdef __cplusplus
19973 extern "C"
19974 #endif
19975 char res_send ();
19977 main ()
19979 return res_send ();
19981 return 0;
19983 _ACEOF
19984 rm -f conftest.$ac_objext conftest$ac_exeext
19985 if { (ac_try="$ac_link"
19986 case "(($ac_try" in
19987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19988 *) ac_try_echo=$ac_try;;
19989 esac
19990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19991 (eval "$ac_link") 2>conftest.er1
19992 ac_status=$?
19993 grep -v '^ *+' conftest.er1 >conftest.err
19994 rm -f conftest.er1
19995 cat conftest.err >&5
19996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19997 (exit $ac_status); } && {
19998 test -z "$ac_c_werror_flag" ||
19999 test ! -s conftest.err
20000 } && test -s conftest$ac_exeext &&
20001 $as_test_x conftest$ac_exeext; then
20002 ac_cv_lib_resolv_res_send=yes
20003 else
20004 echo "$as_me: failed program was:" >&5
20005 sed 's/^/| /' conftest.$ac_ext >&5
20007 ac_cv_lib_resolv_res_send=no
20010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20011 conftest$ac_exeext conftest.$ac_ext
20012 LIBS=$ac_check_lib_save_LIBS
20014 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
20015 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20016 if test $ac_cv_lib_resolv_res_send = yes; then
20017 resolv=yes
20018 else
20019 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
20020 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
20021 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20022 echo $ECHO_N "(cached) $ECHO_C" >&6
20023 else
20024 ac_check_lib_save_LIBS=$LIBS
20025 LIBS="-lresolv $LIBS"
20026 cat >conftest.$ac_ext <<_ACEOF
20027 /* confdefs.h. */
20028 _ACEOF
20029 cat confdefs.h >>conftest.$ac_ext
20030 cat >>conftest.$ac_ext <<_ACEOF
20031 /* end confdefs.h. */
20033 /* Override any GCC internal prototype to avoid an error.
20034 Use char because int might match the return type of a GCC
20035 builtin and then its argument prototype would still apply. */
20036 #ifdef __cplusplus
20037 extern "C"
20038 #endif
20039 char __res_send ();
20041 main ()
20043 return __res_send ();
20045 return 0;
20047 _ACEOF
20048 rm -f conftest.$ac_objext conftest$ac_exeext
20049 if { (ac_try="$ac_link"
20050 case "(($ac_try" in
20051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20052 *) ac_try_echo=$ac_try;;
20053 esac
20054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20055 (eval "$ac_link") 2>conftest.er1
20056 ac_status=$?
20057 grep -v '^ *+' conftest.er1 >conftest.err
20058 rm -f conftest.er1
20059 cat conftest.err >&5
20060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20061 (exit $ac_status); } && {
20062 test -z "$ac_c_werror_flag" ||
20063 test ! -s conftest.err
20064 } && test -s conftest$ac_exeext &&
20065 $as_test_x conftest$ac_exeext; then
20066 ac_cv_lib_resolv___res_send=yes
20067 else
20068 echo "$as_me: failed program was:" >&5
20069 sed 's/^/| /' conftest.$ac_ext >&5
20071 ac_cv_lib_resolv___res_send=no
20074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20075 conftest$ac_exeext conftest.$ac_ext
20076 LIBS=$ac_check_lib_save_LIBS
20078 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
20079 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20080 if test $ac_cv_lib_resolv___res_send = yes; then
20081 resolv=yes
20090 if test "$resolv" = yes ; then
20091 RESOLVLIB=-lresolv
20093 cat >>confdefs.h <<\_ACEOF
20094 #define HAVE_LIBRESOLV 1
20095 _ACEOF
20097 else
20098 RESOLVLIB=
20100 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
20101 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
20102 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20103 echo $ECHO_N "(cached) $ECHO_C" >&6
20104 else
20105 cat >conftest.$ac_ext <<_ACEOF
20106 /* confdefs.h. */
20107 _ACEOF
20108 cat confdefs.h >>conftest.$ac_ext
20109 cat >>conftest.$ac_ext <<_ACEOF
20110 /* end confdefs.h. */
20111 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20112 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20113 #define hes_getmailhost innocuous_hes_getmailhost
20115 /* System header to define __stub macros and hopefully few prototypes,
20116 which can conflict with char hes_getmailhost (); below.
20117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20118 <limits.h> exists even on freestanding compilers. */
20120 #ifdef __STDC__
20121 # include <limits.h>
20122 #else
20123 # include <assert.h>
20124 #endif
20126 #undef hes_getmailhost
20128 /* Override any GCC internal prototype to avoid an error.
20129 Use char because int might match the return type of a GCC
20130 builtin and then its argument prototype would still apply. */
20131 #ifdef __cplusplus
20132 extern "C"
20133 #endif
20134 char hes_getmailhost ();
20135 /* The GNU C library defines this for functions which it implements
20136 to always fail with ENOSYS. Some functions are actually named
20137 something starting with __ and the normal name is an alias. */
20138 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20139 choke me
20140 #endif
20143 main ()
20145 return hes_getmailhost ();
20147 return 0;
20149 _ACEOF
20150 rm -f conftest.$ac_objext conftest$ac_exeext
20151 if { (ac_try="$ac_link"
20152 case "(($ac_try" in
20153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20154 *) ac_try_echo=$ac_try;;
20155 esac
20156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20157 (eval "$ac_link") 2>conftest.er1
20158 ac_status=$?
20159 grep -v '^ *+' conftest.er1 >conftest.err
20160 rm -f conftest.er1
20161 cat conftest.err >&5
20162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163 (exit $ac_status); } && {
20164 test -z "$ac_c_werror_flag" ||
20165 test ! -s conftest.err
20166 } && test -s conftest$ac_exeext &&
20167 $as_test_x conftest$ac_exeext; then
20168 ac_cv_func_hes_getmailhost=yes
20169 else
20170 echo "$as_me: failed program was:" >&5
20171 sed 's/^/| /' conftest.$ac_ext >&5
20173 ac_cv_func_hes_getmailhost=no
20176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20177 conftest$ac_exeext conftest.$ac_ext
20179 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
20180 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20181 if test $ac_cv_func_hes_getmailhost = yes; then
20183 else
20184 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
20185 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
20186 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20187 echo $ECHO_N "(cached) $ECHO_C" >&6
20188 else
20189 ac_check_lib_save_LIBS=$LIBS
20190 LIBS="-lhesiod $RESOLVLIB $LIBS"
20191 cat >conftest.$ac_ext <<_ACEOF
20192 /* confdefs.h. */
20193 _ACEOF
20194 cat confdefs.h >>conftest.$ac_ext
20195 cat >>conftest.$ac_ext <<_ACEOF
20196 /* end confdefs.h. */
20198 /* Override any GCC internal prototype to avoid an error.
20199 Use char because int might match the return type of a GCC
20200 builtin and then its argument prototype would still apply. */
20201 #ifdef __cplusplus
20202 extern "C"
20203 #endif
20204 char hes_getmailhost ();
20206 main ()
20208 return hes_getmailhost ();
20210 return 0;
20212 _ACEOF
20213 rm -f conftest.$ac_objext conftest$ac_exeext
20214 if { (ac_try="$ac_link"
20215 case "(($ac_try" in
20216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20217 *) ac_try_echo=$ac_try;;
20218 esac
20219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20220 (eval "$ac_link") 2>conftest.er1
20221 ac_status=$?
20222 grep -v '^ *+' conftest.er1 >conftest.err
20223 rm -f conftest.er1
20224 cat conftest.err >&5
20225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226 (exit $ac_status); } && {
20227 test -z "$ac_c_werror_flag" ||
20228 test ! -s conftest.err
20229 } && test -s conftest$ac_exeext &&
20230 $as_test_x conftest$ac_exeext; then
20231 ac_cv_lib_hesiod_hes_getmailhost=yes
20232 else
20233 echo "$as_me: failed program was:" >&5
20234 sed 's/^/| /' conftest.$ac_ext >&5
20236 ac_cv_lib_hesiod_hes_getmailhost=no
20239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20240 conftest$ac_exeext conftest.$ac_ext
20241 LIBS=$ac_check_lib_save_LIBS
20243 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20244 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20245 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20247 cat >>confdefs.h <<\_ACEOF
20248 #define HAVE_LIBHESIOD 1
20249 _ACEOF
20251 else
20259 # These tell us which Kerberos-related libraries to use.
20260 if test "${with_kerberos+set}" = set; then
20262 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
20263 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
20264 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20265 echo $ECHO_N "(cached) $ECHO_C" >&6
20266 else
20267 ac_check_lib_save_LIBS=$LIBS
20268 LIBS="-lcom_err $LIBS"
20269 cat >conftest.$ac_ext <<_ACEOF
20270 /* confdefs.h. */
20271 _ACEOF
20272 cat confdefs.h >>conftest.$ac_ext
20273 cat >>conftest.$ac_ext <<_ACEOF
20274 /* end confdefs.h. */
20276 /* Override any GCC internal prototype to avoid an error.
20277 Use char because int might match the return type of a GCC
20278 builtin and then its argument prototype would still apply. */
20279 #ifdef __cplusplus
20280 extern "C"
20281 #endif
20282 char com_err ();
20284 main ()
20286 return com_err ();
20288 return 0;
20290 _ACEOF
20291 rm -f conftest.$ac_objext conftest$ac_exeext
20292 if { (ac_try="$ac_link"
20293 case "(($ac_try" in
20294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20295 *) ac_try_echo=$ac_try;;
20296 esac
20297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20298 (eval "$ac_link") 2>conftest.er1
20299 ac_status=$?
20300 grep -v '^ *+' conftest.er1 >conftest.err
20301 rm -f conftest.er1
20302 cat conftest.err >&5
20303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304 (exit $ac_status); } && {
20305 test -z "$ac_c_werror_flag" ||
20306 test ! -s conftest.err
20307 } && test -s conftest$ac_exeext &&
20308 $as_test_x conftest$ac_exeext; then
20309 ac_cv_lib_com_err_com_err=yes
20310 else
20311 echo "$as_me: failed program was:" >&5
20312 sed 's/^/| /' conftest.$ac_ext >&5
20314 ac_cv_lib_com_err_com_err=no
20317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20318 conftest$ac_exeext conftest.$ac_ext
20319 LIBS=$ac_check_lib_save_LIBS
20321 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
20322 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20323 if test $ac_cv_lib_com_err_com_err = yes; then
20324 cat >>confdefs.h <<_ACEOF
20325 #define HAVE_LIBCOM_ERR 1
20326 _ACEOF
20328 LIBS="-lcom_err $LIBS"
20333 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
20334 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
20335 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20336 echo $ECHO_N "(cached) $ECHO_C" >&6
20337 else
20338 ac_check_lib_save_LIBS=$LIBS
20339 LIBS="-lk5crypto $LIBS"
20340 cat >conftest.$ac_ext <<_ACEOF
20341 /* confdefs.h. */
20342 _ACEOF
20343 cat confdefs.h >>conftest.$ac_ext
20344 cat >>conftest.$ac_ext <<_ACEOF
20345 /* end confdefs.h. */
20347 /* Override any GCC internal prototype to avoid an error.
20348 Use char because int might match the return type of a GCC
20349 builtin and then its argument prototype would still apply. */
20350 #ifdef __cplusplus
20351 extern "C"
20352 #endif
20353 char mit_des_cbc_encrypt ();
20355 main ()
20357 return mit_des_cbc_encrypt ();
20359 return 0;
20361 _ACEOF
20362 rm -f conftest.$ac_objext conftest$ac_exeext
20363 if { (ac_try="$ac_link"
20364 case "(($ac_try" in
20365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20366 *) ac_try_echo=$ac_try;;
20367 esac
20368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20369 (eval "$ac_link") 2>conftest.er1
20370 ac_status=$?
20371 grep -v '^ *+' conftest.er1 >conftest.err
20372 rm -f conftest.er1
20373 cat conftest.err >&5
20374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20375 (exit $ac_status); } && {
20376 test -z "$ac_c_werror_flag" ||
20377 test ! -s conftest.err
20378 } && test -s conftest$ac_exeext &&
20379 $as_test_x conftest$ac_exeext; then
20380 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20381 else
20382 echo "$as_me: failed program was:" >&5
20383 sed 's/^/| /' conftest.$ac_ext >&5
20385 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20389 conftest$ac_exeext conftest.$ac_ext
20390 LIBS=$ac_check_lib_save_LIBS
20392 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20393 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20394 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20395 cat >>confdefs.h <<_ACEOF
20396 #define HAVE_LIBK5CRYPTO 1
20397 _ACEOF
20399 LIBS="-lk5crypto $LIBS"
20404 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
20405 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
20406 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20407 echo $ECHO_N "(cached) $ECHO_C" >&6
20408 else
20409 ac_check_lib_save_LIBS=$LIBS
20410 LIBS="-lcrypto $LIBS"
20411 cat >conftest.$ac_ext <<_ACEOF
20412 /* confdefs.h. */
20413 _ACEOF
20414 cat confdefs.h >>conftest.$ac_ext
20415 cat >>conftest.$ac_ext <<_ACEOF
20416 /* end confdefs.h. */
20418 /* Override any GCC internal prototype to avoid an error.
20419 Use char because int might match the return type of a GCC
20420 builtin and then its argument prototype would still apply. */
20421 #ifdef __cplusplus
20422 extern "C"
20423 #endif
20424 char mit_des_cbc_encrypt ();
20426 main ()
20428 return mit_des_cbc_encrypt ();
20430 return 0;
20432 _ACEOF
20433 rm -f conftest.$ac_objext conftest$ac_exeext
20434 if { (ac_try="$ac_link"
20435 case "(($ac_try" in
20436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20437 *) ac_try_echo=$ac_try;;
20438 esac
20439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20440 (eval "$ac_link") 2>conftest.er1
20441 ac_status=$?
20442 grep -v '^ *+' conftest.er1 >conftest.err
20443 rm -f conftest.er1
20444 cat conftest.err >&5
20445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446 (exit $ac_status); } && {
20447 test -z "$ac_c_werror_flag" ||
20448 test ! -s conftest.err
20449 } && test -s conftest$ac_exeext &&
20450 $as_test_x conftest$ac_exeext; then
20451 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20452 else
20453 echo "$as_me: failed program was:" >&5
20454 sed 's/^/| /' conftest.$ac_ext >&5
20456 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20460 conftest$ac_exeext conftest.$ac_ext
20461 LIBS=$ac_check_lib_save_LIBS
20463 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20464 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20465 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20466 cat >>confdefs.h <<_ACEOF
20467 #define HAVE_LIBCRYPTO 1
20468 _ACEOF
20470 LIBS="-lcrypto $LIBS"
20475 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20476 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20477 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20478 echo $ECHO_N "(cached) $ECHO_C" >&6
20479 else
20480 ac_check_lib_save_LIBS=$LIBS
20481 LIBS="-lkrb5 $LIBS"
20482 cat >conftest.$ac_ext <<_ACEOF
20483 /* confdefs.h. */
20484 _ACEOF
20485 cat confdefs.h >>conftest.$ac_ext
20486 cat >>conftest.$ac_ext <<_ACEOF
20487 /* end confdefs.h. */
20489 /* Override any GCC internal prototype to avoid an error.
20490 Use char because int might match the return type of a GCC
20491 builtin and then its argument prototype would still apply. */
20492 #ifdef __cplusplus
20493 extern "C"
20494 #endif
20495 char krb5_init_context ();
20497 main ()
20499 return krb5_init_context ();
20501 return 0;
20503 _ACEOF
20504 rm -f conftest.$ac_objext conftest$ac_exeext
20505 if { (ac_try="$ac_link"
20506 case "(($ac_try" in
20507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20508 *) ac_try_echo=$ac_try;;
20509 esac
20510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20511 (eval "$ac_link") 2>conftest.er1
20512 ac_status=$?
20513 grep -v '^ *+' conftest.er1 >conftest.err
20514 rm -f conftest.er1
20515 cat conftest.err >&5
20516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20517 (exit $ac_status); } && {
20518 test -z "$ac_c_werror_flag" ||
20519 test ! -s conftest.err
20520 } && test -s conftest$ac_exeext &&
20521 $as_test_x conftest$ac_exeext; then
20522 ac_cv_lib_krb5_krb5_init_context=yes
20523 else
20524 echo "$as_me: failed program was:" >&5
20525 sed 's/^/| /' conftest.$ac_ext >&5
20527 ac_cv_lib_krb5_krb5_init_context=no
20530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20531 conftest$ac_exeext conftest.$ac_ext
20532 LIBS=$ac_check_lib_save_LIBS
20534 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20535 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20536 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20537 cat >>confdefs.h <<_ACEOF
20538 #define HAVE_LIBKRB5 1
20539 _ACEOF
20541 LIBS="-lkrb5 $LIBS"
20545 if test "${with_kerberos5+set}" != set; then
20547 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20548 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20549 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20550 echo $ECHO_N "(cached) $ECHO_C" >&6
20551 else
20552 ac_check_lib_save_LIBS=$LIBS
20553 LIBS="-ldes425 $LIBS"
20554 cat >conftest.$ac_ext <<_ACEOF
20555 /* confdefs.h. */
20556 _ACEOF
20557 cat confdefs.h >>conftest.$ac_ext
20558 cat >>conftest.$ac_ext <<_ACEOF
20559 /* end confdefs.h. */
20561 /* Override any GCC internal prototype to avoid an error.
20562 Use char because int might match the return type of a GCC
20563 builtin and then its argument prototype would still apply. */
20564 #ifdef __cplusplus
20565 extern "C"
20566 #endif
20567 char des_cbc_encrypt ();
20569 main ()
20571 return des_cbc_encrypt ();
20573 return 0;
20575 _ACEOF
20576 rm -f conftest.$ac_objext conftest$ac_exeext
20577 if { (ac_try="$ac_link"
20578 case "(($ac_try" in
20579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20580 *) ac_try_echo=$ac_try;;
20581 esac
20582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20583 (eval "$ac_link") 2>conftest.er1
20584 ac_status=$?
20585 grep -v '^ *+' conftest.er1 >conftest.err
20586 rm -f conftest.er1
20587 cat conftest.err >&5
20588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20589 (exit $ac_status); } && {
20590 test -z "$ac_c_werror_flag" ||
20591 test ! -s conftest.err
20592 } && test -s conftest$ac_exeext &&
20593 $as_test_x conftest$ac_exeext; then
20594 ac_cv_lib_des425_des_cbc_encrypt=yes
20595 else
20596 echo "$as_me: failed program was:" >&5
20597 sed 's/^/| /' conftest.$ac_ext >&5
20599 ac_cv_lib_des425_des_cbc_encrypt=no
20602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20603 conftest$ac_exeext conftest.$ac_ext
20604 LIBS=$ac_check_lib_save_LIBS
20606 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20607 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20608 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20609 cat >>confdefs.h <<_ACEOF
20610 #define HAVE_LIBDES425 1
20611 _ACEOF
20613 LIBS="-ldes425 $LIBS"
20615 else
20617 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20618 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20619 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20620 echo $ECHO_N "(cached) $ECHO_C" >&6
20621 else
20622 ac_check_lib_save_LIBS=$LIBS
20623 LIBS="-ldes $LIBS"
20624 cat >conftest.$ac_ext <<_ACEOF
20625 /* confdefs.h. */
20626 _ACEOF
20627 cat confdefs.h >>conftest.$ac_ext
20628 cat >>conftest.$ac_ext <<_ACEOF
20629 /* end confdefs.h. */
20631 /* Override any GCC internal prototype to avoid an error.
20632 Use char because int might match the return type of a GCC
20633 builtin and then its argument prototype would still apply. */
20634 #ifdef __cplusplus
20635 extern "C"
20636 #endif
20637 char des_cbc_encrypt ();
20639 main ()
20641 return des_cbc_encrypt ();
20643 return 0;
20645 _ACEOF
20646 rm -f conftest.$ac_objext conftest$ac_exeext
20647 if { (ac_try="$ac_link"
20648 case "(($ac_try" in
20649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20650 *) ac_try_echo=$ac_try;;
20651 esac
20652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20653 (eval "$ac_link") 2>conftest.er1
20654 ac_status=$?
20655 grep -v '^ *+' conftest.er1 >conftest.err
20656 rm -f conftest.er1
20657 cat conftest.err >&5
20658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659 (exit $ac_status); } && {
20660 test -z "$ac_c_werror_flag" ||
20661 test ! -s conftest.err
20662 } && test -s conftest$ac_exeext &&
20663 $as_test_x conftest$ac_exeext; then
20664 ac_cv_lib_des_des_cbc_encrypt=yes
20665 else
20666 echo "$as_me: failed program was:" >&5
20667 sed 's/^/| /' conftest.$ac_ext >&5
20669 ac_cv_lib_des_des_cbc_encrypt=no
20672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20673 conftest$ac_exeext conftest.$ac_ext
20674 LIBS=$ac_check_lib_save_LIBS
20676 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20677 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20678 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20679 cat >>confdefs.h <<_ACEOF
20680 #define HAVE_LIBDES 1
20681 _ACEOF
20683 LIBS="-ldes $LIBS"
20690 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20691 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20692 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20693 echo $ECHO_N "(cached) $ECHO_C" >&6
20694 else
20695 ac_check_lib_save_LIBS=$LIBS
20696 LIBS="-lkrb4 $LIBS"
20697 cat >conftest.$ac_ext <<_ACEOF
20698 /* confdefs.h. */
20699 _ACEOF
20700 cat confdefs.h >>conftest.$ac_ext
20701 cat >>conftest.$ac_ext <<_ACEOF
20702 /* end confdefs.h. */
20704 /* Override any GCC internal prototype to avoid an error.
20705 Use char because int might match the return type of a GCC
20706 builtin and then its argument prototype would still apply. */
20707 #ifdef __cplusplus
20708 extern "C"
20709 #endif
20710 char krb_get_cred ();
20712 main ()
20714 return krb_get_cred ();
20716 return 0;
20718 _ACEOF
20719 rm -f conftest.$ac_objext conftest$ac_exeext
20720 if { (ac_try="$ac_link"
20721 case "(($ac_try" in
20722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20723 *) ac_try_echo=$ac_try;;
20724 esac
20725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20726 (eval "$ac_link") 2>conftest.er1
20727 ac_status=$?
20728 grep -v '^ *+' conftest.er1 >conftest.err
20729 rm -f conftest.er1
20730 cat conftest.err >&5
20731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20732 (exit $ac_status); } && {
20733 test -z "$ac_c_werror_flag" ||
20734 test ! -s conftest.err
20735 } && test -s conftest$ac_exeext &&
20736 $as_test_x conftest$ac_exeext; then
20737 ac_cv_lib_krb4_krb_get_cred=yes
20738 else
20739 echo "$as_me: failed program was:" >&5
20740 sed 's/^/| /' conftest.$ac_ext >&5
20742 ac_cv_lib_krb4_krb_get_cred=no
20745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20746 conftest$ac_exeext conftest.$ac_ext
20747 LIBS=$ac_check_lib_save_LIBS
20749 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20750 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20751 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20752 cat >>confdefs.h <<_ACEOF
20753 #define HAVE_LIBKRB4 1
20754 _ACEOF
20756 LIBS="-lkrb4 $LIBS"
20758 else
20760 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20761 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
20762 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20763 echo $ECHO_N "(cached) $ECHO_C" >&6
20764 else
20765 ac_check_lib_save_LIBS=$LIBS
20766 LIBS="-lkrb $LIBS"
20767 cat >conftest.$ac_ext <<_ACEOF
20768 /* confdefs.h. */
20769 _ACEOF
20770 cat confdefs.h >>conftest.$ac_ext
20771 cat >>conftest.$ac_ext <<_ACEOF
20772 /* end confdefs.h. */
20774 /* Override any GCC internal prototype to avoid an error.
20775 Use char because int might match the return type of a GCC
20776 builtin and then its argument prototype would still apply. */
20777 #ifdef __cplusplus
20778 extern "C"
20779 #endif
20780 char krb_get_cred ();
20782 main ()
20784 return krb_get_cred ();
20786 return 0;
20788 _ACEOF
20789 rm -f conftest.$ac_objext conftest$ac_exeext
20790 if { (ac_try="$ac_link"
20791 case "(($ac_try" in
20792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20793 *) ac_try_echo=$ac_try;;
20794 esac
20795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20796 (eval "$ac_link") 2>conftest.er1
20797 ac_status=$?
20798 grep -v '^ *+' conftest.er1 >conftest.err
20799 rm -f conftest.er1
20800 cat conftest.err >&5
20801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20802 (exit $ac_status); } && {
20803 test -z "$ac_c_werror_flag" ||
20804 test ! -s conftest.err
20805 } && test -s conftest$ac_exeext &&
20806 $as_test_x conftest$ac_exeext; then
20807 ac_cv_lib_krb_krb_get_cred=yes
20808 else
20809 echo "$as_me: failed program was:" >&5
20810 sed 's/^/| /' conftest.$ac_ext >&5
20812 ac_cv_lib_krb_krb_get_cred=no
20815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20816 conftest$ac_exeext conftest.$ac_ext
20817 LIBS=$ac_check_lib_save_LIBS
20819 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20820 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20821 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20822 cat >>confdefs.h <<_ACEOF
20823 #define HAVE_LIBKRB 1
20824 _ACEOF
20826 LIBS="-lkrb $LIBS"
20834 if test "${with_kerberos5+set}" = set; then
20836 for ac_header in krb5.h
20838 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20840 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20843 echo $ECHO_N "(cached) $ECHO_C" >&6
20845 ac_res=`eval echo '${'$as_ac_Header'}'`
20846 { echo "$as_me:$LINENO: result: $ac_res" >&5
20847 echo "${ECHO_T}$ac_res" >&6; }
20848 else
20849 # Is the header compilable?
20850 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20851 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20852 cat >conftest.$ac_ext <<_ACEOF
20853 /* confdefs.h. */
20854 _ACEOF
20855 cat confdefs.h >>conftest.$ac_ext
20856 cat >>conftest.$ac_ext <<_ACEOF
20857 /* end confdefs.h. */
20858 $ac_includes_default
20859 #include <$ac_header>
20860 _ACEOF
20861 rm -f conftest.$ac_objext
20862 if { (ac_try="$ac_compile"
20863 case "(($ac_try" in
20864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20865 *) ac_try_echo=$ac_try;;
20866 esac
20867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20868 (eval "$ac_compile") 2>conftest.er1
20869 ac_status=$?
20870 grep -v '^ *+' conftest.er1 >conftest.err
20871 rm -f conftest.er1
20872 cat conftest.err >&5
20873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874 (exit $ac_status); } && {
20875 test -z "$ac_c_werror_flag" ||
20876 test ! -s conftest.err
20877 } && test -s conftest.$ac_objext; then
20878 ac_header_compiler=yes
20879 else
20880 echo "$as_me: failed program was:" >&5
20881 sed 's/^/| /' conftest.$ac_ext >&5
20883 ac_header_compiler=no
20886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20887 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20888 echo "${ECHO_T}$ac_header_compiler" >&6; }
20890 # Is the header present?
20891 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20892 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20893 cat >conftest.$ac_ext <<_ACEOF
20894 /* confdefs.h. */
20895 _ACEOF
20896 cat confdefs.h >>conftest.$ac_ext
20897 cat >>conftest.$ac_ext <<_ACEOF
20898 /* end confdefs.h. */
20899 #include <$ac_header>
20900 _ACEOF
20901 if { (ac_try="$ac_cpp conftest.$ac_ext"
20902 case "(($ac_try" in
20903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20904 *) ac_try_echo=$ac_try;;
20905 esac
20906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20907 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20908 ac_status=$?
20909 grep -v '^ *+' conftest.er1 >conftest.err
20910 rm -f conftest.er1
20911 cat conftest.err >&5
20912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20913 (exit $ac_status); } >/dev/null && {
20914 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20915 test ! -s conftest.err
20916 }; then
20917 ac_header_preproc=yes
20918 else
20919 echo "$as_me: failed program was:" >&5
20920 sed 's/^/| /' conftest.$ac_ext >&5
20922 ac_header_preproc=no
20925 rm -f conftest.err conftest.$ac_ext
20926 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20927 echo "${ECHO_T}$ac_header_preproc" >&6; }
20929 # So? What about this header?
20930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20931 yes:no: )
20932 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20933 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20935 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20936 ac_header_preproc=yes
20938 no:yes:* )
20939 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20940 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20941 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20942 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20943 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20944 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20945 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20946 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20949 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20950 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20953 esac
20954 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20957 echo $ECHO_N "(cached) $ECHO_C" >&6
20958 else
20959 eval "$as_ac_Header=\$ac_header_preproc"
20961 ac_res=`eval echo '${'$as_ac_Header'}'`
20962 { echo "$as_me:$LINENO: result: $ac_res" >&5
20963 echo "${ECHO_T}$ac_res" >&6; }
20966 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20967 cat >>confdefs.h <<_ACEOF
20968 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20969 _ACEOF
20973 done
20975 else
20977 for ac_header in des.h
20979 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20981 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20984 echo $ECHO_N "(cached) $ECHO_C" >&6
20986 ac_res=`eval echo '${'$as_ac_Header'}'`
20987 { echo "$as_me:$LINENO: result: $ac_res" >&5
20988 echo "${ECHO_T}$ac_res" >&6; }
20989 else
20990 # Is the header compilable?
20991 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20992 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20993 cat >conftest.$ac_ext <<_ACEOF
20994 /* confdefs.h. */
20995 _ACEOF
20996 cat confdefs.h >>conftest.$ac_ext
20997 cat >>conftest.$ac_ext <<_ACEOF
20998 /* end confdefs.h. */
20999 $ac_includes_default
21000 #include <$ac_header>
21001 _ACEOF
21002 rm -f conftest.$ac_objext
21003 if { (ac_try="$ac_compile"
21004 case "(($ac_try" in
21005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21006 *) ac_try_echo=$ac_try;;
21007 esac
21008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21009 (eval "$ac_compile") 2>conftest.er1
21010 ac_status=$?
21011 grep -v '^ *+' conftest.er1 >conftest.err
21012 rm -f conftest.er1
21013 cat conftest.err >&5
21014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21015 (exit $ac_status); } && {
21016 test -z "$ac_c_werror_flag" ||
21017 test ! -s conftest.err
21018 } && test -s conftest.$ac_objext; then
21019 ac_header_compiler=yes
21020 else
21021 echo "$as_me: failed program was:" >&5
21022 sed 's/^/| /' conftest.$ac_ext >&5
21024 ac_header_compiler=no
21027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21028 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21029 echo "${ECHO_T}$ac_header_compiler" >&6; }
21031 # Is the header present?
21032 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21033 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21034 cat >conftest.$ac_ext <<_ACEOF
21035 /* confdefs.h. */
21036 _ACEOF
21037 cat confdefs.h >>conftest.$ac_ext
21038 cat >>conftest.$ac_ext <<_ACEOF
21039 /* end confdefs.h. */
21040 #include <$ac_header>
21041 _ACEOF
21042 if { (ac_try="$ac_cpp conftest.$ac_ext"
21043 case "(($ac_try" in
21044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21045 *) ac_try_echo=$ac_try;;
21046 esac
21047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21049 ac_status=$?
21050 grep -v '^ *+' conftest.er1 >conftest.err
21051 rm -f conftest.er1
21052 cat conftest.err >&5
21053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21054 (exit $ac_status); } >/dev/null && {
21055 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21056 test ! -s conftest.err
21057 }; then
21058 ac_header_preproc=yes
21059 else
21060 echo "$as_me: failed program was:" >&5
21061 sed 's/^/| /' conftest.$ac_ext >&5
21063 ac_header_preproc=no
21066 rm -f conftest.err conftest.$ac_ext
21067 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21068 echo "${ECHO_T}$ac_header_preproc" >&6; }
21070 # So? What about this header?
21071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21072 yes:no: )
21073 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21074 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21076 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21077 ac_header_preproc=yes
21079 no:yes:* )
21080 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21081 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21082 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21083 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21084 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21085 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21086 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21087 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21088 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21089 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21090 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21091 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21094 esac
21095 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21098 echo $ECHO_N "(cached) $ECHO_C" >&6
21099 else
21100 eval "$as_ac_Header=\$ac_header_preproc"
21102 ac_res=`eval echo '${'$as_ac_Header'}'`
21103 { echo "$as_me:$LINENO: result: $ac_res" >&5
21104 echo "${ECHO_T}$ac_res" >&6; }
21107 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21108 cat >>confdefs.h <<_ACEOF
21109 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21110 _ACEOF
21112 else
21114 for ac_header in kerberosIV/des.h
21116 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21118 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21119 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21121 echo $ECHO_N "(cached) $ECHO_C" >&6
21123 ac_res=`eval echo '${'$as_ac_Header'}'`
21124 { echo "$as_me:$LINENO: result: $ac_res" >&5
21125 echo "${ECHO_T}$ac_res" >&6; }
21126 else
21127 # Is the header compilable?
21128 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21129 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21130 cat >conftest.$ac_ext <<_ACEOF
21131 /* confdefs.h. */
21132 _ACEOF
21133 cat confdefs.h >>conftest.$ac_ext
21134 cat >>conftest.$ac_ext <<_ACEOF
21135 /* end confdefs.h. */
21136 $ac_includes_default
21137 #include <$ac_header>
21138 _ACEOF
21139 rm -f conftest.$ac_objext
21140 if { (ac_try="$ac_compile"
21141 case "(($ac_try" in
21142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21143 *) ac_try_echo=$ac_try;;
21144 esac
21145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21146 (eval "$ac_compile") 2>conftest.er1
21147 ac_status=$?
21148 grep -v '^ *+' conftest.er1 >conftest.err
21149 rm -f conftest.er1
21150 cat conftest.err >&5
21151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21152 (exit $ac_status); } && {
21153 test -z "$ac_c_werror_flag" ||
21154 test ! -s conftest.err
21155 } && test -s conftest.$ac_objext; then
21156 ac_header_compiler=yes
21157 else
21158 echo "$as_me: failed program was:" >&5
21159 sed 's/^/| /' conftest.$ac_ext >&5
21161 ac_header_compiler=no
21164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21165 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21166 echo "${ECHO_T}$ac_header_compiler" >&6; }
21168 # Is the header present?
21169 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21170 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21171 cat >conftest.$ac_ext <<_ACEOF
21172 /* confdefs.h. */
21173 _ACEOF
21174 cat confdefs.h >>conftest.$ac_ext
21175 cat >>conftest.$ac_ext <<_ACEOF
21176 /* end confdefs.h. */
21177 #include <$ac_header>
21178 _ACEOF
21179 if { (ac_try="$ac_cpp conftest.$ac_ext"
21180 case "(($ac_try" in
21181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21182 *) ac_try_echo=$ac_try;;
21183 esac
21184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21185 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21186 ac_status=$?
21187 grep -v '^ *+' conftest.er1 >conftest.err
21188 rm -f conftest.er1
21189 cat conftest.err >&5
21190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21191 (exit $ac_status); } >/dev/null && {
21192 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21193 test ! -s conftest.err
21194 }; then
21195 ac_header_preproc=yes
21196 else
21197 echo "$as_me: failed program was:" >&5
21198 sed 's/^/| /' conftest.$ac_ext >&5
21200 ac_header_preproc=no
21203 rm -f conftest.err conftest.$ac_ext
21204 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21205 echo "${ECHO_T}$ac_header_preproc" >&6; }
21207 # So? What about this header?
21208 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21209 yes:no: )
21210 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21211 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21212 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21213 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21214 ac_header_preproc=yes
21216 no:yes:* )
21217 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21218 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21219 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21220 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21221 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21222 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21223 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21224 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21225 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21226 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21227 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21228 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21231 esac
21232 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21235 echo $ECHO_N "(cached) $ECHO_C" >&6
21236 else
21237 eval "$as_ac_Header=\$ac_header_preproc"
21239 ac_res=`eval echo '${'$as_ac_Header'}'`
21240 { echo "$as_me:$LINENO: result: $ac_res" >&5
21241 echo "${ECHO_T}$ac_res" >&6; }
21244 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21245 cat >>confdefs.h <<_ACEOF
21246 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21247 _ACEOF
21249 else
21251 for ac_header in kerberos/des.h
21253 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21255 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21258 echo $ECHO_N "(cached) $ECHO_C" >&6
21260 ac_res=`eval echo '${'$as_ac_Header'}'`
21261 { echo "$as_me:$LINENO: result: $ac_res" >&5
21262 echo "${ECHO_T}$ac_res" >&6; }
21263 else
21264 # Is the header compilable?
21265 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21266 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21267 cat >conftest.$ac_ext <<_ACEOF
21268 /* confdefs.h. */
21269 _ACEOF
21270 cat confdefs.h >>conftest.$ac_ext
21271 cat >>conftest.$ac_ext <<_ACEOF
21272 /* end confdefs.h. */
21273 $ac_includes_default
21274 #include <$ac_header>
21275 _ACEOF
21276 rm -f conftest.$ac_objext
21277 if { (ac_try="$ac_compile"
21278 case "(($ac_try" in
21279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21280 *) ac_try_echo=$ac_try;;
21281 esac
21282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21283 (eval "$ac_compile") 2>conftest.er1
21284 ac_status=$?
21285 grep -v '^ *+' conftest.er1 >conftest.err
21286 rm -f conftest.er1
21287 cat conftest.err >&5
21288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21289 (exit $ac_status); } && {
21290 test -z "$ac_c_werror_flag" ||
21291 test ! -s conftest.err
21292 } && test -s conftest.$ac_objext; then
21293 ac_header_compiler=yes
21294 else
21295 echo "$as_me: failed program was:" >&5
21296 sed 's/^/| /' conftest.$ac_ext >&5
21298 ac_header_compiler=no
21301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21302 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21303 echo "${ECHO_T}$ac_header_compiler" >&6; }
21305 # Is the header present?
21306 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21307 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21308 cat >conftest.$ac_ext <<_ACEOF
21309 /* confdefs.h. */
21310 _ACEOF
21311 cat confdefs.h >>conftest.$ac_ext
21312 cat >>conftest.$ac_ext <<_ACEOF
21313 /* end confdefs.h. */
21314 #include <$ac_header>
21315 _ACEOF
21316 if { (ac_try="$ac_cpp conftest.$ac_ext"
21317 case "(($ac_try" in
21318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21319 *) ac_try_echo=$ac_try;;
21320 esac
21321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21322 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21323 ac_status=$?
21324 grep -v '^ *+' conftest.er1 >conftest.err
21325 rm -f conftest.er1
21326 cat conftest.err >&5
21327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21328 (exit $ac_status); } >/dev/null && {
21329 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21330 test ! -s conftest.err
21331 }; then
21332 ac_header_preproc=yes
21333 else
21334 echo "$as_me: failed program was:" >&5
21335 sed 's/^/| /' conftest.$ac_ext >&5
21337 ac_header_preproc=no
21340 rm -f conftest.err conftest.$ac_ext
21341 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21342 echo "${ECHO_T}$ac_header_preproc" >&6; }
21344 # So? What about this header?
21345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21346 yes:no: )
21347 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21348 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21350 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21351 ac_header_preproc=yes
21353 no:yes:* )
21354 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21355 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21356 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21357 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21358 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21359 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21360 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21361 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21363 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21364 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21365 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21368 esac
21369 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21372 echo $ECHO_N "(cached) $ECHO_C" >&6
21373 else
21374 eval "$as_ac_Header=\$ac_header_preproc"
21376 ac_res=`eval echo '${'$as_ac_Header'}'`
21377 { echo "$as_me:$LINENO: result: $ac_res" >&5
21378 echo "${ECHO_T}$ac_res" >&6; }
21381 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21382 cat >>confdefs.h <<_ACEOF
21383 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21384 _ACEOF
21388 done
21392 done
21396 done
21399 for ac_header in krb.h
21401 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21403 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21406 echo $ECHO_N "(cached) $ECHO_C" >&6
21408 ac_res=`eval echo '${'$as_ac_Header'}'`
21409 { echo "$as_me:$LINENO: result: $ac_res" >&5
21410 echo "${ECHO_T}$ac_res" >&6; }
21411 else
21412 # Is the header compilable?
21413 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21414 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21415 cat >conftest.$ac_ext <<_ACEOF
21416 /* confdefs.h. */
21417 _ACEOF
21418 cat confdefs.h >>conftest.$ac_ext
21419 cat >>conftest.$ac_ext <<_ACEOF
21420 /* end confdefs.h. */
21421 $ac_includes_default
21422 #include <$ac_header>
21423 _ACEOF
21424 rm -f conftest.$ac_objext
21425 if { (ac_try="$ac_compile"
21426 case "(($ac_try" in
21427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21428 *) ac_try_echo=$ac_try;;
21429 esac
21430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21431 (eval "$ac_compile") 2>conftest.er1
21432 ac_status=$?
21433 grep -v '^ *+' conftest.er1 >conftest.err
21434 rm -f conftest.er1
21435 cat conftest.err >&5
21436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21437 (exit $ac_status); } && {
21438 test -z "$ac_c_werror_flag" ||
21439 test ! -s conftest.err
21440 } && test -s conftest.$ac_objext; then
21441 ac_header_compiler=yes
21442 else
21443 echo "$as_me: failed program was:" >&5
21444 sed 's/^/| /' conftest.$ac_ext >&5
21446 ac_header_compiler=no
21449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21450 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21451 echo "${ECHO_T}$ac_header_compiler" >&6; }
21453 # Is the header present?
21454 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21455 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21456 cat >conftest.$ac_ext <<_ACEOF
21457 /* confdefs.h. */
21458 _ACEOF
21459 cat confdefs.h >>conftest.$ac_ext
21460 cat >>conftest.$ac_ext <<_ACEOF
21461 /* end confdefs.h. */
21462 #include <$ac_header>
21463 _ACEOF
21464 if { (ac_try="$ac_cpp conftest.$ac_ext"
21465 case "(($ac_try" in
21466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21467 *) ac_try_echo=$ac_try;;
21468 esac
21469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21470 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21471 ac_status=$?
21472 grep -v '^ *+' conftest.er1 >conftest.err
21473 rm -f conftest.er1
21474 cat conftest.err >&5
21475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21476 (exit $ac_status); } >/dev/null && {
21477 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21478 test ! -s conftest.err
21479 }; then
21480 ac_header_preproc=yes
21481 else
21482 echo "$as_me: failed program was:" >&5
21483 sed 's/^/| /' conftest.$ac_ext >&5
21485 ac_header_preproc=no
21488 rm -f conftest.err conftest.$ac_ext
21489 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21490 echo "${ECHO_T}$ac_header_preproc" >&6; }
21492 # So? What about this header?
21493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21494 yes:no: )
21495 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21496 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21498 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21499 ac_header_preproc=yes
21501 no:yes:* )
21502 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21503 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21504 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21505 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21506 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21507 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21508 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21509 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21511 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21512 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21513 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21516 esac
21517 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21520 echo $ECHO_N "(cached) $ECHO_C" >&6
21521 else
21522 eval "$as_ac_Header=\$ac_header_preproc"
21524 ac_res=`eval echo '${'$as_ac_Header'}'`
21525 { echo "$as_me:$LINENO: result: $ac_res" >&5
21526 echo "${ECHO_T}$ac_res" >&6; }
21529 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21530 cat >>confdefs.h <<_ACEOF
21531 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21532 _ACEOF
21534 else
21536 for ac_header in kerberosIV/krb.h
21538 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21540 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21543 echo $ECHO_N "(cached) $ECHO_C" >&6
21545 ac_res=`eval echo '${'$as_ac_Header'}'`
21546 { echo "$as_me:$LINENO: result: $ac_res" >&5
21547 echo "${ECHO_T}$ac_res" >&6; }
21548 else
21549 # Is the header compilable?
21550 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21551 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21552 cat >conftest.$ac_ext <<_ACEOF
21553 /* confdefs.h. */
21554 _ACEOF
21555 cat confdefs.h >>conftest.$ac_ext
21556 cat >>conftest.$ac_ext <<_ACEOF
21557 /* end confdefs.h. */
21558 $ac_includes_default
21559 #include <$ac_header>
21560 _ACEOF
21561 rm -f conftest.$ac_objext
21562 if { (ac_try="$ac_compile"
21563 case "(($ac_try" in
21564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21565 *) ac_try_echo=$ac_try;;
21566 esac
21567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21568 (eval "$ac_compile") 2>conftest.er1
21569 ac_status=$?
21570 grep -v '^ *+' conftest.er1 >conftest.err
21571 rm -f conftest.er1
21572 cat conftest.err >&5
21573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21574 (exit $ac_status); } && {
21575 test -z "$ac_c_werror_flag" ||
21576 test ! -s conftest.err
21577 } && test -s conftest.$ac_objext; then
21578 ac_header_compiler=yes
21579 else
21580 echo "$as_me: failed program was:" >&5
21581 sed 's/^/| /' conftest.$ac_ext >&5
21583 ac_header_compiler=no
21586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21587 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21588 echo "${ECHO_T}$ac_header_compiler" >&6; }
21590 # Is the header present?
21591 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21592 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21593 cat >conftest.$ac_ext <<_ACEOF
21594 /* confdefs.h. */
21595 _ACEOF
21596 cat confdefs.h >>conftest.$ac_ext
21597 cat >>conftest.$ac_ext <<_ACEOF
21598 /* end confdefs.h. */
21599 #include <$ac_header>
21600 _ACEOF
21601 if { (ac_try="$ac_cpp conftest.$ac_ext"
21602 case "(($ac_try" in
21603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21604 *) ac_try_echo=$ac_try;;
21605 esac
21606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21607 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21608 ac_status=$?
21609 grep -v '^ *+' conftest.er1 >conftest.err
21610 rm -f conftest.er1
21611 cat conftest.err >&5
21612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21613 (exit $ac_status); } >/dev/null && {
21614 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21615 test ! -s conftest.err
21616 }; then
21617 ac_header_preproc=yes
21618 else
21619 echo "$as_me: failed program was:" >&5
21620 sed 's/^/| /' conftest.$ac_ext >&5
21622 ac_header_preproc=no
21625 rm -f conftest.err conftest.$ac_ext
21626 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21627 echo "${ECHO_T}$ac_header_preproc" >&6; }
21629 # So? What about this header?
21630 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21631 yes:no: )
21632 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21633 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21635 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21636 ac_header_preproc=yes
21638 no:yes:* )
21639 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21640 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21641 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21642 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21643 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21644 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21645 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21646 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21648 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21649 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21650 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21653 esac
21654 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21656 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21657 echo $ECHO_N "(cached) $ECHO_C" >&6
21658 else
21659 eval "$as_ac_Header=\$ac_header_preproc"
21661 ac_res=`eval echo '${'$as_ac_Header'}'`
21662 { echo "$as_me:$LINENO: result: $ac_res" >&5
21663 echo "${ECHO_T}$ac_res" >&6; }
21666 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21667 cat >>confdefs.h <<_ACEOF
21668 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21669 _ACEOF
21671 else
21673 for ac_header in kerberos/krb.h
21675 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21677 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21680 echo $ECHO_N "(cached) $ECHO_C" >&6
21682 ac_res=`eval echo '${'$as_ac_Header'}'`
21683 { echo "$as_me:$LINENO: result: $ac_res" >&5
21684 echo "${ECHO_T}$ac_res" >&6; }
21685 else
21686 # Is the header compilable?
21687 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21688 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21689 cat >conftest.$ac_ext <<_ACEOF
21690 /* confdefs.h. */
21691 _ACEOF
21692 cat confdefs.h >>conftest.$ac_ext
21693 cat >>conftest.$ac_ext <<_ACEOF
21694 /* end confdefs.h. */
21695 $ac_includes_default
21696 #include <$ac_header>
21697 _ACEOF
21698 rm -f conftest.$ac_objext
21699 if { (ac_try="$ac_compile"
21700 case "(($ac_try" in
21701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21702 *) ac_try_echo=$ac_try;;
21703 esac
21704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21705 (eval "$ac_compile") 2>conftest.er1
21706 ac_status=$?
21707 grep -v '^ *+' conftest.er1 >conftest.err
21708 rm -f conftest.er1
21709 cat conftest.err >&5
21710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21711 (exit $ac_status); } && {
21712 test -z "$ac_c_werror_flag" ||
21713 test ! -s conftest.err
21714 } && test -s conftest.$ac_objext; then
21715 ac_header_compiler=yes
21716 else
21717 echo "$as_me: failed program was:" >&5
21718 sed 's/^/| /' conftest.$ac_ext >&5
21720 ac_header_compiler=no
21723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21724 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21725 echo "${ECHO_T}$ac_header_compiler" >&6; }
21727 # Is the header present?
21728 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21729 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21730 cat >conftest.$ac_ext <<_ACEOF
21731 /* confdefs.h. */
21732 _ACEOF
21733 cat confdefs.h >>conftest.$ac_ext
21734 cat >>conftest.$ac_ext <<_ACEOF
21735 /* end confdefs.h. */
21736 #include <$ac_header>
21737 _ACEOF
21738 if { (ac_try="$ac_cpp conftest.$ac_ext"
21739 case "(($ac_try" in
21740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21741 *) ac_try_echo=$ac_try;;
21742 esac
21743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21745 ac_status=$?
21746 grep -v '^ *+' conftest.er1 >conftest.err
21747 rm -f conftest.er1
21748 cat conftest.err >&5
21749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750 (exit $ac_status); } >/dev/null && {
21751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21752 test ! -s conftest.err
21753 }; then
21754 ac_header_preproc=yes
21755 else
21756 echo "$as_me: failed program was:" >&5
21757 sed 's/^/| /' conftest.$ac_ext >&5
21759 ac_header_preproc=no
21762 rm -f conftest.err conftest.$ac_ext
21763 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21764 echo "${ECHO_T}$ac_header_preproc" >&6; }
21766 # So? What about this header?
21767 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21768 yes:no: )
21769 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21770 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21772 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21773 ac_header_preproc=yes
21775 no:yes:* )
21776 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21777 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21778 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21779 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21780 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21781 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21782 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21783 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21785 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21786 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21787 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21790 esac
21791 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21794 echo $ECHO_N "(cached) $ECHO_C" >&6
21795 else
21796 eval "$as_ac_Header=\$ac_header_preproc"
21798 ac_res=`eval echo '${'$as_ac_Header'}'`
21799 { echo "$as_me:$LINENO: result: $ac_res" >&5
21800 echo "${ECHO_T}$ac_res" >&6; }
21803 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21804 cat >>confdefs.h <<_ACEOF
21805 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21806 _ACEOF
21810 done
21814 done
21818 done
21822 for ac_header in com_err.h
21824 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21826 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21829 echo $ECHO_N "(cached) $ECHO_C" >&6
21831 ac_res=`eval echo '${'$as_ac_Header'}'`
21832 { echo "$as_me:$LINENO: result: $ac_res" >&5
21833 echo "${ECHO_T}$ac_res" >&6; }
21834 else
21835 # Is the header compilable?
21836 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21837 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21838 cat >conftest.$ac_ext <<_ACEOF
21839 /* confdefs.h. */
21840 _ACEOF
21841 cat confdefs.h >>conftest.$ac_ext
21842 cat >>conftest.$ac_ext <<_ACEOF
21843 /* end confdefs.h. */
21844 $ac_includes_default
21845 #include <$ac_header>
21846 _ACEOF
21847 rm -f conftest.$ac_objext
21848 if { (ac_try="$ac_compile"
21849 case "(($ac_try" in
21850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21851 *) ac_try_echo=$ac_try;;
21852 esac
21853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21854 (eval "$ac_compile") 2>conftest.er1
21855 ac_status=$?
21856 grep -v '^ *+' conftest.er1 >conftest.err
21857 rm -f conftest.er1
21858 cat conftest.err >&5
21859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21860 (exit $ac_status); } && {
21861 test -z "$ac_c_werror_flag" ||
21862 test ! -s conftest.err
21863 } && test -s conftest.$ac_objext; then
21864 ac_header_compiler=yes
21865 else
21866 echo "$as_me: failed program was:" >&5
21867 sed 's/^/| /' conftest.$ac_ext >&5
21869 ac_header_compiler=no
21872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21873 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21874 echo "${ECHO_T}$ac_header_compiler" >&6; }
21876 # Is the header present?
21877 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21878 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21879 cat >conftest.$ac_ext <<_ACEOF
21880 /* confdefs.h. */
21881 _ACEOF
21882 cat confdefs.h >>conftest.$ac_ext
21883 cat >>conftest.$ac_ext <<_ACEOF
21884 /* end confdefs.h. */
21885 #include <$ac_header>
21886 _ACEOF
21887 if { (ac_try="$ac_cpp conftest.$ac_ext"
21888 case "(($ac_try" in
21889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21890 *) ac_try_echo=$ac_try;;
21891 esac
21892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21894 ac_status=$?
21895 grep -v '^ *+' conftest.er1 >conftest.err
21896 rm -f conftest.er1
21897 cat conftest.err >&5
21898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21899 (exit $ac_status); } >/dev/null && {
21900 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21901 test ! -s conftest.err
21902 }; then
21903 ac_header_preproc=yes
21904 else
21905 echo "$as_me: failed program was:" >&5
21906 sed 's/^/| /' conftest.$ac_ext >&5
21908 ac_header_preproc=no
21911 rm -f conftest.err conftest.$ac_ext
21912 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21913 echo "${ECHO_T}$ac_header_preproc" >&6; }
21915 # So? What about this header?
21916 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21917 yes:no: )
21918 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21919 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21921 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21922 ac_header_preproc=yes
21924 no:yes:* )
21925 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21926 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21927 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21928 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21929 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21930 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21931 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21932 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21934 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21935 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21936 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21939 esac
21940 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21943 echo $ECHO_N "(cached) $ECHO_C" >&6
21944 else
21945 eval "$as_ac_Header=\$ac_header_preproc"
21947 ac_res=`eval echo '${'$as_ac_Header'}'`
21948 { echo "$as_me:$LINENO: result: $ac_res" >&5
21949 echo "${ECHO_T}$ac_res" >&6; }
21952 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21953 cat >>confdefs.h <<_ACEOF
21954 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21955 _ACEOF
21959 done
21963 # Solaris requires -lintl if you want strerror (which calls dgettext)
21964 # to return localized messages.
21966 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21967 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
21968 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21969 echo $ECHO_N "(cached) $ECHO_C" >&6
21970 else
21971 ac_check_lib_save_LIBS=$LIBS
21972 LIBS="-lintl $LIBS"
21973 cat >conftest.$ac_ext <<_ACEOF
21974 /* confdefs.h. */
21975 _ACEOF
21976 cat confdefs.h >>conftest.$ac_ext
21977 cat >>conftest.$ac_ext <<_ACEOF
21978 /* end confdefs.h. */
21980 /* Override any GCC internal prototype to avoid an error.
21981 Use char because int might match the return type of a GCC
21982 builtin and then its argument prototype would still apply. */
21983 #ifdef __cplusplus
21984 extern "C"
21985 #endif
21986 char dgettext ();
21988 main ()
21990 return dgettext ();
21992 return 0;
21994 _ACEOF
21995 rm -f conftest.$ac_objext conftest$ac_exeext
21996 if { (ac_try="$ac_link"
21997 case "(($ac_try" in
21998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21999 *) ac_try_echo=$ac_try;;
22000 esac
22001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22002 (eval "$ac_link") 2>conftest.er1
22003 ac_status=$?
22004 grep -v '^ *+' conftest.er1 >conftest.err
22005 rm -f conftest.er1
22006 cat conftest.err >&5
22007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22008 (exit $ac_status); } && {
22009 test -z "$ac_c_werror_flag" ||
22010 test ! -s conftest.err
22011 } && test -s conftest$ac_exeext &&
22012 $as_test_x conftest$ac_exeext; then
22013 ac_cv_lib_intl_dgettext=yes
22014 else
22015 echo "$as_me: failed program was:" >&5
22016 sed 's/^/| /' conftest.$ac_ext >&5
22018 ac_cv_lib_intl_dgettext=no
22021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22022 conftest$ac_exeext conftest.$ac_ext
22023 LIBS=$ac_check_lib_save_LIBS
22025 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
22026 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22027 if test $ac_cv_lib_intl_dgettext = yes; then
22028 cat >>confdefs.h <<_ACEOF
22029 #define HAVE_LIBINTL 1
22030 _ACEOF
22032 LIBS="-lintl $LIBS"
22037 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
22038 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
22039 if test "${emacs_cv_localtime_cache+set}" = set; then
22040 echo $ECHO_N "(cached) $ECHO_C" >&6
22041 else
22042 if test x$ac_cv_func_tzset = xyes; then
22043 if test "$cross_compiling" = yes; then
22044 # If we have tzset, assume the worst when cross-compiling.
22045 emacs_cv_localtime_cache=yes
22046 else
22047 cat >conftest.$ac_ext <<_ACEOF
22048 /* confdefs.h. */
22049 _ACEOF
22050 cat confdefs.h >>conftest.$ac_ext
22051 cat >>conftest.$ac_ext <<_ACEOF
22052 /* end confdefs.h. */
22053 #include <time.h>
22054 extern char **environ;
22055 unset_TZ ()
22057 char **from, **to;
22058 for (to = from = environ; (*to = *from); from++)
22059 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22060 to++;
22062 char TZ_GMT0[] = "TZ=GMT0";
22063 char TZ_PST8[] = "TZ=PST8";
22064 main()
22066 time_t now = time ((time_t *) 0);
22067 int hour_GMT0, hour_unset;
22068 if (putenv (TZ_GMT0) != 0)
22069 exit (1);
22070 hour_GMT0 = localtime (&now)->tm_hour;
22071 unset_TZ ();
22072 hour_unset = localtime (&now)->tm_hour;
22073 if (putenv (TZ_PST8) != 0)
22074 exit (1);
22075 if (localtime (&now)->tm_hour == hour_GMT0)
22076 exit (1);
22077 unset_TZ ();
22078 if (localtime (&now)->tm_hour != hour_unset)
22079 exit (1);
22080 exit (0);
22082 _ACEOF
22083 rm -f conftest$ac_exeext
22084 if { (ac_try="$ac_link"
22085 case "(($ac_try" in
22086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22087 *) ac_try_echo=$ac_try;;
22088 esac
22089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22090 (eval "$ac_link") 2>&5
22091 ac_status=$?
22092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22093 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22094 { (case "(($ac_try" in
22095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22096 *) ac_try_echo=$ac_try;;
22097 esac
22098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22099 (eval "$ac_try") 2>&5
22100 ac_status=$?
22101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22102 (exit $ac_status); }; }; then
22103 emacs_cv_localtime_cache=no
22104 else
22105 echo "$as_me: program exited with status $ac_status" >&5
22106 echo "$as_me: failed program was:" >&5
22107 sed 's/^/| /' conftest.$ac_ext >&5
22109 ( exit $ac_status )
22110 emacs_cv_localtime_cache=yes
22112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22116 else
22117 # If we lack tzset, report that localtime does not cache TZ,
22118 # since we can't invalidate the cache if we don't have tzset.
22119 emacs_cv_localtime_cache=no
22122 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
22123 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22124 if test $emacs_cv_localtime_cache = yes; then
22126 cat >>confdefs.h <<\_ACEOF
22127 #define LOCALTIME_CACHE 1
22128 _ACEOF
22132 if test "x$HAVE_TIMEVAL" = xyes; then
22134 for ac_func in gettimeofday
22136 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22137 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22138 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22139 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22140 echo $ECHO_N "(cached) $ECHO_C" >&6
22141 else
22142 cat >conftest.$ac_ext <<_ACEOF
22143 /* confdefs.h. */
22144 _ACEOF
22145 cat confdefs.h >>conftest.$ac_ext
22146 cat >>conftest.$ac_ext <<_ACEOF
22147 /* end confdefs.h. */
22148 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22149 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22150 #define $ac_func innocuous_$ac_func
22152 /* System header to define __stub macros and hopefully few prototypes,
22153 which can conflict with char $ac_func (); below.
22154 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22155 <limits.h> exists even on freestanding compilers. */
22157 #ifdef __STDC__
22158 # include <limits.h>
22159 #else
22160 # include <assert.h>
22161 #endif
22163 #undef $ac_func
22165 /* Override any GCC internal prototype to avoid an error.
22166 Use char because int might match the return type of a GCC
22167 builtin and then its argument prototype would still apply. */
22168 #ifdef __cplusplus
22169 extern "C"
22170 #endif
22171 char $ac_func ();
22172 /* The GNU C library defines this for functions which it implements
22173 to always fail with ENOSYS. Some functions are actually named
22174 something starting with __ and the normal name is an alias. */
22175 #if defined __stub_$ac_func || defined __stub___$ac_func
22176 choke me
22177 #endif
22180 main ()
22182 return $ac_func ();
22184 return 0;
22186 _ACEOF
22187 rm -f conftest.$ac_objext conftest$ac_exeext
22188 if { (ac_try="$ac_link"
22189 case "(($ac_try" in
22190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22191 *) ac_try_echo=$ac_try;;
22192 esac
22193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22194 (eval "$ac_link") 2>conftest.er1
22195 ac_status=$?
22196 grep -v '^ *+' conftest.er1 >conftest.err
22197 rm -f conftest.er1
22198 cat conftest.err >&5
22199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22200 (exit $ac_status); } && {
22201 test -z "$ac_c_werror_flag" ||
22202 test ! -s conftest.err
22203 } && test -s conftest$ac_exeext &&
22204 $as_test_x conftest$ac_exeext; then
22205 eval "$as_ac_var=yes"
22206 else
22207 echo "$as_me: failed program was:" >&5
22208 sed 's/^/| /' conftest.$ac_ext >&5
22210 eval "$as_ac_var=no"
22213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22214 conftest$ac_exeext conftest.$ac_ext
22216 ac_res=`eval echo '${'$as_ac_var'}'`
22217 { echo "$as_me:$LINENO: result: $ac_res" >&5
22218 echo "${ECHO_T}$ac_res" >&6; }
22219 if test `eval echo '${'$as_ac_var'}'` = yes; then
22220 cat >>confdefs.h <<_ACEOF
22221 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22222 _ACEOF
22225 done
22227 if test $ac_cv_func_gettimeofday = yes; then
22228 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
22229 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
22230 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22231 echo $ECHO_N "(cached) $ECHO_C" >&6
22232 else
22233 cat >conftest.$ac_ext <<_ACEOF
22234 /* confdefs.h. */
22235 _ACEOF
22236 cat confdefs.h >>conftest.$ac_ext
22237 cat >>conftest.$ac_ext <<_ACEOF
22238 /* end confdefs.h. */
22240 #ifdef TIME_WITH_SYS_TIME
22241 #include <sys/time.h>
22242 #include <time.h>
22243 #else
22244 #ifdef HAVE_SYS_TIME_H
22245 #include <sys/time.h>
22246 #else
22247 #include <time.h>
22248 #endif
22249 #endif
22251 main ()
22253 struct timeval time;
22254 gettimeofday (&time, 0);
22256 return 0;
22258 _ACEOF
22259 rm -f conftest.$ac_objext
22260 if { (ac_try="$ac_compile"
22261 case "(($ac_try" in
22262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22263 *) ac_try_echo=$ac_try;;
22264 esac
22265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22266 (eval "$ac_compile") 2>conftest.er1
22267 ac_status=$?
22268 grep -v '^ *+' conftest.er1 >conftest.err
22269 rm -f conftest.er1
22270 cat conftest.err >&5
22271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22272 (exit $ac_status); } && {
22273 test -z "$ac_c_werror_flag" ||
22274 test ! -s conftest.err
22275 } && test -s conftest.$ac_objext; then
22276 emacs_cv_gettimeofday_two_arguments=yes
22277 else
22278 echo "$as_me: failed program was:" >&5
22279 sed 's/^/| /' conftest.$ac_ext >&5
22281 emacs_cv_gettimeofday_two_arguments=no
22284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22286 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
22287 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22288 if test $emacs_cv_gettimeofday_two_arguments = no; then
22290 cat >>confdefs.h <<\_ACEOF
22291 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22292 _ACEOF
22298 ok_so_far=yes
22299 { echo "$as_me:$LINENO: checking for socket" >&5
22300 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
22301 if test "${ac_cv_func_socket+set}" = set; then
22302 echo $ECHO_N "(cached) $ECHO_C" >&6
22303 else
22304 cat >conftest.$ac_ext <<_ACEOF
22305 /* confdefs.h. */
22306 _ACEOF
22307 cat confdefs.h >>conftest.$ac_ext
22308 cat >>conftest.$ac_ext <<_ACEOF
22309 /* end confdefs.h. */
22310 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22311 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22312 #define socket innocuous_socket
22314 /* System header to define __stub macros and hopefully few prototypes,
22315 which can conflict with char socket (); below.
22316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22317 <limits.h> exists even on freestanding compilers. */
22319 #ifdef __STDC__
22320 # include <limits.h>
22321 #else
22322 # include <assert.h>
22323 #endif
22325 #undef socket
22327 /* Override any GCC internal prototype to avoid an error.
22328 Use char because int might match the return type of a GCC
22329 builtin and then its argument prototype would still apply. */
22330 #ifdef __cplusplus
22331 extern "C"
22332 #endif
22333 char socket ();
22334 /* The GNU C library defines this for functions which it implements
22335 to always fail with ENOSYS. Some functions are actually named
22336 something starting with __ and the normal name is an alias. */
22337 #if defined __stub_socket || defined __stub___socket
22338 choke me
22339 #endif
22342 main ()
22344 return socket ();
22346 return 0;
22348 _ACEOF
22349 rm -f conftest.$ac_objext conftest$ac_exeext
22350 if { (ac_try="$ac_link"
22351 case "(($ac_try" in
22352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22353 *) ac_try_echo=$ac_try;;
22354 esac
22355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22356 (eval "$ac_link") 2>conftest.er1
22357 ac_status=$?
22358 grep -v '^ *+' conftest.er1 >conftest.err
22359 rm -f conftest.er1
22360 cat conftest.err >&5
22361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22362 (exit $ac_status); } && {
22363 test -z "$ac_c_werror_flag" ||
22364 test ! -s conftest.err
22365 } && test -s conftest$ac_exeext &&
22366 $as_test_x conftest$ac_exeext; then
22367 ac_cv_func_socket=yes
22368 else
22369 echo "$as_me: failed program was:" >&5
22370 sed 's/^/| /' conftest.$ac_ext >&5
22372 ac_cv_func_socket=no
22375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22376 conftest$ac_exeext conftest.$ac_ext
22378 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22379 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22380 if test $ac_cv_func_socket = yes; then
22382 else
22383 ok_so_far=no
22386 if test $ok_so_far = yes; then
22387 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22388 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22389 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22390 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22391 echo $ECHO_N "(cached) $ECHO_C" >&6
22393 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22394 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22395 else
22396 # Is the header compilable?
22397 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22398 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
22399 cat >conftest.$ac_ext <<_ACEOF
22400 /* confdefs.h. */
22401 _ACEOF
22402 cat confdefs.h >>conftest.$ac_ext
22403 cat >>conftest.$ac_ext <<_ACEOF
22404 /* end confdefs.h. */
22405 $ac_includes_default
22406 #include <netinet/in.h>
22407 _ACEOF
22408 rm -f conftest.$ac_objext
22409 if { (ac_try="$ac_compile"
22410 case "(($ac_try" in
22411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22412 *) ac_try_echo=$ac_try;;
22413 esac
22414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22415 (eval "$ac_compile") 2>conftest.er1
22416 ac_status=$?
22417 grep -v '^ *+' conftest.er1 >conftest.err
22418 rm -f conftest.er1
22419 cat conftest.err >&5
22420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22421 (exit $ac_status); } && {
22422 test -z "$ac_c_werror_flag" ||
22423 test ! -s conftest.err
22424 } && test -s conftest.$ac_objext; then
22425 ac_header_compiler=yes
22426 else
22427 echo "$as_me: failed program was:" >&5
22428 sed 's/^/| /' conftest.$ac_ext >&5
22430 ac_header_compiler=no
22433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22434 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22435 echo "${ECHO_T}$ac_header_compiler" >&6; }
22437 # Is the header present?
22438 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22439 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
22440 cat >conftest.$ac_ext <<_ACEOF
22441 /* confdefs.h. */
22442 _ACEOF
22443 cat confdefs.h >>conftest.$ac_ext
22444 cat >>conftest.$ac_ext <<_ACEOF
22445 /* end confdefs.h. */
22446 #include <netinet/in.h>
22447 _ACEOF
22448 if { (ac_try="$ac_cpp conftest.$ac_ext"
22449 case "(($ac_try" in
22450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22451 *) ac_try_echo=$ac_try;;
22452 esac
22453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22455 ac_status=$?
22456 grep -v '^ *+' conftest.er1 >conftest.err
22457 rm -f conftest.er1
22458 cat conftest.err >&5
22459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22460 (exit $ac_status); } >/dev/null && {
22461 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22462 test ! -s conftest.err
22463 }; then
22464 ac_header_preproc=yes
22465 else
22466 echo "$as_me: failed program was:" >&5
22467 sed 's/^/| /' conftest.$ac_ext >&5
22469 ac_header_preproc=no
22472 rm -f conftest.err conftest.$ac_ext
22473 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22474 echo "${ECHO_T}$ac_header_preproc" >&6; }
22476 # So? What about this header?
22477 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22478 yes:no: )
22479 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22480 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22481 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22482 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22483 ac_header_preproc=yes
22485 no:yes:* )
22486 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22487 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22488 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22489 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22490 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22491 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22492 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22493 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22494 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22495 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22496 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22497 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22500 esac
22501 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22502 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22503 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22504 echo $ECHO_N "(cached) $ECHO_C" >&6
22505 else
22506 ac_cv_header_netinet_in_h=$ac_header_preproc
22508 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22509 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22512 if test $ac_cv_header_netinet_in_h = yes; then
22514 else
22515 ok_so_far=no
22520 if test $ok_so_far = yes; then
22521 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22522 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22523 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22524 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22525 echo $ECHO_N "(cached) $ECHO_C" >&6
22527 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22528 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22529 else
22530 # Is the header compilable?
22531 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22532 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
22533 cat >conftest.$ac_ext <<_ACEOF
22534 /* confdefs.h. */
22535 _ACEOF
22536 cat confdefs.h >>conftest.$ac_ext
22537 cat >>conftest.$ac_ext <<_ACEOF
22538 /* end confdefs.h. */
22539 $ac_includes_default
22540 #include <arpa/inet.h>
22541 _ACEOF
22542 rm -f conftest.$ac_objext
22543 if { (ac_try="$ac_compile"
22544 case "(($ac_try" in
22545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22546 *) ac_try_echo=$ac_try;;
22547 esac
22548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22549 (eval "$ac_compile") 2>conftest.er1
22550 ac_status=$?
22551 grep -v '^ *+' conftest.er1 >conftest.err
22552 rm -f conftest.er1
22553 cat conftest.err >&5
22554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22555 (exit $ac_status); } && {
22556 test -z "$ac_c_werror_flag" ||
22557 test ! -s conftest.err
22558 } && test -s conftest.$ac_objext; then
22559 ac_header_compiler=yes
22560 else
22561 echo "$as_me: failed program was:" >&5
22562 sed 's/^/| /' conftest.$ac_ext >&5
22564 ac_header_compiler=no
22567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22568 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22569 echo "${ECHO_T}$ac_header_compiler" >&6; }
22571 # Is the header present?
22572 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22573 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
22574 cat >conftest.$ac_ext <<_ACEOF
22575 /* confdefs.h. */
22576 _ACEOF
22577 cat confdefs.h >>conftest.$ac_ext
22578 cat >>conftest.$ac_ext <<_ACEOF
22579 /* end confdefs.h. */
22580 #include <arpa/inet.h>
22581 _ACEOF
22582 if { (ac_try="$ac_cpp conftest.$ac_ext"
22583 case "(($ac_try" in
22584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22585 *) ac_try_echo=$ac_try;;
22586 esac
22587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22589 ac_status=$?
22590 grep -v '^ *+' conftest.er1 >conftest.err
22591 rm -f conftest.er1
22592 cat conftest.err >&5
22593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22594 (exit $ac_status); } >/dev/null && {
22595 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22596 test ! -s conftest.err
22597 }; then
22598 ac_header_preproc=yes
22599 else
22600 echo "$as_me: failed program was:" >&5
22601 sed 's/^/| /' conftest.$ac_ext >&5
22603 ac_header_preproc=no
22606 rm -f conftest.err conftest.$ac_ext
22607 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22608 echo "${ECHO_T}$ac_header_preproc" >&6; }
22610 # So? What about this header?
22611 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22612 yes:no: )
22613 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
22614 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22615 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
22616 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
22617 ac_header_preproc=yes
22619 no:yes:* )
22620 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
22621 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
22622 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
22623 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
22624 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
22625 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
22626 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
22627 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
22628 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
22629 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
22630 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
22631 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
22634 esac
22635 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22636 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22637 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22638 echo $ECHO_N "(cached) $ECHO_C" >&6
22639 else
22640 ac_cv_header_arpa_inet_h=$ac_header_preproc
22642 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22643 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22646 if test $ac_cv_header_arpa_inet_h = yes; then
22648 else
22649 ok_so_far=no
22654 if test $ok_so_far = yes; then
22656 cat >>confdefs.h <<\_ACEOF
22657 #define HAVE_INET_SOCKETS 1
22658 _ACEOF
22663 for ac_header in sys/ioctl.h
22665 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22667 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22668 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22670 echo $ECHO_N "(cached) $ECHO_C" >&6
22672 ac_res=`eval echo '${'$as_ac_Header'}'`
22673 { echo "$as_me:$LINENO: result: $ac_res" >&5
22674 echo "${ECHO_T}$ac_res" >&6; }
22675 else
22676 # Is the header compilable?
22677 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22678 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22679 cat >conftest.$ac_ext <<_ACEOF
22680 /* confdefs.h. */
22681 _ACEOF
22682 cat confdefs.h >>conftest.$ac_ext
22683 cat >>conftest.$ac_ext <<_ACEOF
22684 /* end confdefs.h. */
22685 $ac_includes_default
22686 #include <$ac_header>
22687 _ACEOF
22688 rm -f conftest.$ac_objext
22689 if { (ac_try="$ac_compile"
22690 case "(($ac_try" in
22691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22692 *) ac_try_echo=$ac_try;;
22693 esac
22694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22695 (eval "$ac_compile") 2>conftest.er1
22696 ac_status=$?
22697 grep -v '^ *+' conftest.er1 >conftest.err
22698 rm -f conftest.er1
22699 cat conftest.err >&5
22700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22701 (exit $ac_status); } && {
22702 test -z "$ac_c_werror_flag" ||
22703 test ! -s conftest.err
22704 } && test -s conftest.$ac_objext; then
22705 ac_header_compiler=yes
22706 else
22707 echo "$as_me: failed program was:" >&5
22708 sed 's/^/| /' conftest.$ac_ext >&5
22710 ac_header_compiler=no
22713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22714 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22715 echo "${ECHO_T}$ac_header_compiler" >&6; }
22717 # Is the header present?
22718 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22719 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22720 cat >conftest.$ac_ext <<_ACEOF
22721 /* confdefs.h. */
22722 _ACEOF
22723 cat confdefs.h >>conftest.$ac_ext
22724 cat >>conftest.$ac_ext <<_ACEOF
22725 /* end confdefs.h. */
22726 #include <$ac_header>
22727 _ACEOF
22728 if { (ac_try="$ac_cpp conftest.$ac_ext"
22729 case "(($ac_try" in
22730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22731 *) ac_try_echo=$ac_try;;
22732 esac
22733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22734 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22735 ac_status=$?
22736 grep -v '^ *+' conftest.er1 >conftest.err
22737 rm -f conftest.er1
22738 cat conftest.err >&5
22739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22740 (exit $ac_status); } >/dev/null && {
22741 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22742 test ! -s conftest.err
22743 }; then
22744 ac_header_preproc=yes
22745 else
22746 echo "$as_me: failed program was:" >&5
22747 sed 's/^/| /' conftest.$ac_ext >&5
22749 ac_header_preproc=no
22752 rm -f conftest.err conftest.$ac_ext
22753 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22754 echo "${ECHO_T}$ac_header_preproc" >&6; }
22756 # So? What about this header?
22757 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22758 yes:no: )
22759 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22760 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22761 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22762 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22763 ac_header_preproc=yes
22765 no:yes:* )
22766 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22767 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22768 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22769 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22770 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22771 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22772 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22773 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22774 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22775 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22776 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22777 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22780 esac
22781 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22784 echo $ECHO_N "(cached) $ECHO_C" >&6
22785 else
22786 eval "$as_ac_Header=\$ac_header_preproc"
22788 ac_res=`eval echo '${'$as_ac_Header'}'`
22789 { echo "$as_me:$LINENO: result: $ac_res" >&5
22790 echo "${ECHO_T}$ac_res" >&6; }
22793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22794 cat >>confdefs.h <<_ACEOF
22795 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22796 _ACEOF
22800 done
22803 if test -f /usr/lpp/X11/bin/smt.exp; then
22805 cat >>confdefs.h <<\_ACEOF
22806 #define HAVE_AIX_SMT_EXP 1
22807 _ACEOF
22811 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
22812 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
22813 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22814 { echo "$as_me:$LINENO: result: yes" >&5
22815 echo "${ECHO_T}yes" >&6; }
22817 cat >>confdefs.h <<\_ACEOF
22818 #define HAVE_DEV_PTMX 1
22819 _ACEOF
22821 else
22822 { echo "$as_me:$LINENO: result: no" >&5
22823 echo "${ECHO_T}no" >&6; }
22826 { echo "$as_me:$LINENO: checking for pid_t" >&5
22827 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22828 if test "${ac_cv_type_pid_t+set}" = set; then
22829 echo $ECHO_N "(cached) $ECHO_C" >&6
22830 else
22831 cat >conftest.$ac_ext <<_ACEOF
22832 /* confdefs.h. */
22833 _ACEOF
22834 cat confdefs.h >>conftest.$ac_ext
22835 cat >>conftest.$ac_ext <<_ACEOF
22836 /* end confdefs.h. */
22837 $ac_includes_default
22838 typedef pid_t ac__type_new_;
22840 main ()
22842 if ((ac__type_new_ *) 0)
22843 return 0;
22844 if (sizeof (ac__type_new_))
22845 return 0;
22847 return 0;
22849 _ACEOF
22850 rm -f conftest.$ac_objext
22851 if { (ac_try="$ac_compile"
22852 case "(($ac_try" in
22853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22854 *) ac_try_echo=$ac_try;;
22855 esac
22856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22857 (eval "$ac_compile") 2>conftest.er1
22858 ac_status=$?
22859 grep -v '^ *+' conftest.er1 >conftest.err
22860 rm -f conftest.er1
22861 cat conftest.err >&5
22862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22863 (exit $ac_status); } && {
22864 test -z "$ac_c_werror_flag" ||
22865 test ! -s conftest.err
22866 } && test -s conftest.$ac_objext; then
22867 ac_cv_type_pid_t=yes
22868 else
22869 echo "$as_me: failed program was:" >&5
22870 sed 's/^/| /' conftest.$ac_ext >&5
22872 ac_cv_type_pid_t=no
22875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22877 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22878 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22879 if test $ac_cv_type_pid_t = yes; then
22881 else
22883 cat >>confdefs.h <<_ACEOF
22884 #define pid_t int
22885 _ACEOF
22890 for ac_header in vfork.h
22892 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22893 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22894 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22897 echo $ECHO_N "(cached) $ECHO_C" >&6
22899 ac_res=`eval echo '${'$as_ac_Header'}'`
22900 { echo "$as_me:$LINENO: result: $ac_res" >&5
22901 echo "${ECHO_T}$ac_res" >&6; }
22902 else
22903 # Is the header compilable?
22904 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22905 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22906 cat >conftest.$ac_ext <<_ACEOF
22907 /* confdefs.h. */
22908 _ACEOF
22909 cat confdefs.h >>conftest.$ac_ext
22910 cat >>conftest.$ac_ext <<_ACEOF
22911 /* end confdefs.h. */
22912 $ac_includes_default
22913 #include <$ac_header>
22914 _ACEOF
22915 rm -f conftest.$ac_objext
22916 if { (ac_try="$ac_compile"
22917 case "(($ac_try" in
22918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22919 *) ac_try_echo=$ac_try;;
22920 esac
22921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22922 (eval "$ac_compile") 2>conftest.er1
22923 ac_status=$?
22924 grep -v '^ *+' conftest.er1 >conftest.err
22925 rm -f conftest.er1
22926 cat conftest.err >&5
22927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22928 (exit $ac_status); } && {
22929 test -z "$ac_c_werror_flag" ||
22930 test ! -s conftest.err
22931 } && test -s conftest.$ac_objext; then
22932 ac_header_compiler=yes
22933 else
22934 echo "$as_me: failed program was:" >&5
22935 sed 's/^/| /' conftest.$ac_ext >&5
22937 ac_header_compiler=no
22940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22941 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22942 echo "${ECHO_T}$ac_header_compiler" >&6; }
22944 # Is the header present?
22945 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22946 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22947 cat >conftest.$ac_ext <<_ACEOF
22948 /* confdefs.h. */
22949 _ACEOF
22950 cat confdefs.h >>conftest.$ac_ext
22951 cat >>conftest.$ac_ext <<_ACEOF
22952 /* end confdefs.h. */
22953 #include <$ac_header>
22954 _ACEOF
22955 if { (ac_try="$ac_cpp conftest.$ac_ext"
22956 case "(($ac_try" in
22957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22958 *) ac_try_echo=$ac_try;;
22959 esac
22960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22962 ac_status=$?
22963 grep -v '^ *+' conftest.er1 >conftest.err
22964 rm -f conftest.er1
22965 cat conftest.err >&5
22966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22967 (exit $ac_status); } >/dev/null && {
22968 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22969 test ! -s conftest.err
22970 }; then
22971 ac_header_preproc=yes
22972 else
22973 echo "$as_me: failed program was:" >&5
22974 sed 's/^/| /' conftest.$ac_ext >&5
22976 ac_header_preproc=no
22979 rm -f conftest.err conftest.$ac_ext
22980 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22981 echo "${ECHO_T}$ac_header_preproc" >&6; }
22983 # So? What about this header?
22984 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22985 yes:no: )
22986 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22987 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22989 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22990 ac_header_preproc=yes
22992 no:yes:* )
22993 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22994 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22995 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22996 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22997 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22998 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22999 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23000 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23002 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23003 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23004 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23007 esac
23008 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23011 echo $ECHO_N "(cached) $ECHO_C" >&6
23012 else
23013 eval "$as_ac_Header=\$ac_header_preproc"
23015 ac_res=`eval echo '${'$as_ac_Header'}'`
23016 { echo "$as_me:$LINENO: result: $ac_res" >&5
23017 echo "${ECHO_T}$ac_res" >&6; }
23020 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23021 cat >>confdefs.h <<_ACEOF
23022 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23023 _ACEOF
23027 done
23031 for ac_func in fork vfork
23033 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23034 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23035 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23036 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23037 echo $ECHO_N "(cached) $ECHO_C" >&6
23038 else
23039 cat >conftest.$ac_ext <<_ACEOF
23040 /* confdefs.h. */
23041 _ACEOF
23042 cat confdefs.h >>conftest.$ac_ext
23043 cat >>conftest.$ac_ext <<_ACEOF
23044 /* end confdefs.h. */
23045 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23047 #define $ac_func innocuous_$ac_func
23049 /* System header to define __stub macros and hopefully few prototypes,
23050 which can conflict with char $ac_func (); below.
23051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23052 <limits.h> exists even on freestanding compilers. */
23054 #ifdef __STDC__
23055 # include <limits.h>
23056 #else
23057 # include <assert.h>
23058 #endif
23060 #undef $ac_func
23062 /* Override any GCC internal prototype to avoid an error.
23063 Use char because int might match the return type of a GCC
23064 builtin and then its argument prototype would still apply. */
23065 #ifdef __cplusplus
23066 extern "C"
23067 #endif
23068 char $ac_func ();
23069 /* The GNU C library defines this for functions which it implements
23070 to always fail with ENOSYS. Some functions are actually named
23071 something starting with __ and the normal name is an alias. */
23072 #if defined __stub_$ac_func || defined __stub___$ac_func
23073 choke me
23074 #endif
23077 main ()
23079 return $ac_func ();
23081 return 0;
23083 _ACEOF
23084 rm -f conftest.$ac_objext conftest$ac_exeext
23085 if { (ac_try="$ac_link"
23086 case "(($ac_try" in
23087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23088 *) ac_try_echo=$ac_try;;
23089 esac
23090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23091 (eval "$ac_link") 2>conftest.er1
23092 ac_status=$?
23093 grep -v '^ *+' conftest.er1 >conftest.err
23094 rm -f conftest.er1
23095 cat conftest.err >&5
23096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23097 (exit $ac_status); } && {
23098 test -z "$ac_c_werror_flag" ||
23099 test ! -s conftest.err
23100 } && test -s conftest$ac_exeext &&
23101 $as_test_x conftest$ac_exeext; then
23102 eval "$as_ac_var=yes"
23103 else
23104 echo "$as_me: failed program was:" >&5
23105 sed 's/^/| /' conftest.$ac_ext >&5
23107 eval "$as_ac_var=no"
23110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23111 conftest$ac_exeext conftest.$ac_ext
23113 ac_res=`eval echo '${'$as_ac_var'}'`
23114 { echo "$as_me:$LINENO: result: $ac_res" >&5
23115 echo "${ECHO_T}$ac_res" >&6; }
23116 if test `eval echo '${'$as_ac_var'}'` = yes; then
23117 cat >>confdefs.h <<_ACEOF
23118 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23119 _ACEOF
23122 done
23124 if test "x$ac_cv_func_fork" = xyes; then
23125 { echo "$as_me:$LINENO: checking for working fork" >&5
23126 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
23127 if test "${ac_cv_func_fork_works+set}" = set; then
23128 echo $ECHO_N "(cached) $ECHO_C" >&6
23129 else
23130 if test "$cross_compiling" = yes; then
23131 ac_cv_func_fork_works=cross
23132 else
23133 cat >conftest.$ac_ext <<_ACEOF
23134 /* confdefs.h. */
23135 _ACEOF
23136 cat confdefs.h >>conftest.$ac_ext
23137 cat >>conftest.$ac_ext <<_ACEOF
23138 /* end confdefs.h. */
23139 $ac_includes_default
23141 main ()
23144 /* By Ruediger Kuhlmann. */
23145 return fork () < 0;
23148 return 0;
23150 _ACEOF
23151 rm -f conftest$ac_exeext
23152 if { (ac_try="$ac_link"
23153 case "(($ac_try" in
23154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23155 *) ac_try_echo=$ac_try;;
23156 esac
23157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23158 (eval "$ac_link") 2>&5
23159 ac_status=$?
23160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23161 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23162 { (case "(($ac_try" in
23163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23164 *) ac_try_echo=$ac_try;;
23165 esac
23166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23167 (eval "$ac_try") 2>&5
23168 ac_status=$?
23169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23170 (exit $ac_status); }; }; then
23171 ac_cv_func_fork_works=yes
23172 else
23173 echo "$as_me: program exited with status $ac_status" >&5
23174 echo "$as_me: failed program was:" >&5
23175 sed 's/^/| /' conftest.$ac_ext >&5
23177 ( exit $ac_status )
23178 ac_cv_func_fork_works=no
23180 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23185 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23186 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23188 else
23189 ac_cv_func_fork_works=$ac_cv_func_fork
23191 if test "x$ac_cv_func_fork_works" = xcross; then
23192 case $host in
23193 *-*-amigaos* | *-*-msdosdjgpp*)
23194 # Override, as these systems have only a dummy fork() stub
23195 ac_cv_func_fork_works=no
23198 ac_cv_func_fork_works=yes
23200 esac
23201 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23202 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23204 ac_cv_func_vfork_works=$ac_cv_func_vfork
23205 if test "x$ac_cv_func_vfork" = xyes; then
23206 { echo "$as_me:$LINENO: checking for working vfork" >&5
23207 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
23208 if test "${ac_cv_func_vfork_works+set}" = set; then
23209 echo $ECHO_N "(cached) $ECHO_C" >&6
23210 else
23211 if test "$cross_compiling" = yes; then
23212 ac_cv_func_vfork_works=cross
23213 else
23214 cat >conftest.$ac_ext <<_ACEOF
23215 /* confdefs.h. */
23216 _ACEOF
23217 cat confdefs.h >>conftest.$ac_ext
23218 cat >>conftest.$ac_ext <<_ACEOF
23219 /* end confdefs.h. */
23220 /* Thanks to Paul Eggert for this test. */
23221 $ac_includes_default
23222 #include <sys/wait.h>
23223 #ifdef HAVE_VFORK_H
23224 # include <vfork.h>
23225 #endif
23226 /* On some sparc systems, changes by the child to local and incoming
23227 argument registers are propagated back to the parent. The compiler
23228 is told about this with #include <vfork.h>, but some compilers
23229 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23230 static variable whose address is put into a register that is
23231 clobbered by the vfork. */
23232 static void
23233 #ifdef __cplusplus
23234 sparc_address_test (int arg)
23235 # else
23236 sparc_address_test (arg) int arg;
23237 #endif
23239 static pid_t child;
23240 if (!child) {
23241 child = vfork ();
23242 if (child < 0) {
23243 perror ("vfork");
23244 _exit(2);
23246 if (!child) {
23247 arg = getpid();
23248 write(-1, "", 0);
23249 _exit (arg);
23255 main ()
23257 pid_t parent = getpid ();
23258 pid_t child;
23260 sparc_address_test (0);
23262 child = vfork ();
23264 if (child == 0) {
23265 /* Here is another test for sparc vfork register problems. This
23266 test uses lots of local variables, at least as many local
23267 variables as main has allocated so far including compiler
23268 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23269 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23270 reuse the register of parent for one of the local variables,
23271 since it will think that parent can't possibly be used any more
23272 in this routine. Assigning to the local variable will thus
23273 munge parent in the parent process. */
23274 pid_t
23275 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23276 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23277 /* Convince the compiler that p..p7 are live; otherwise, it might
23278 use the same hardware register for all 8 local variables. */
23279 if (p != p1 || p != p2 || p != p3 || p != p4
23280 || p != p5 || p != p6 || p != p7)
23281 _exit(1);
23283 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23284 from child file descriptors. If the child closes a descriptor
23285 before it execs or exits, this munges the parent's descriptor
23286 as well. Test for this by closing stdout in the child. */
23287 _exit(close(fileno(stdout)) != 0);
23288 } else {
23289 int status;
23290 struct stat st;
23292 while (wait(&status) != child)
23294 return (
23295 /* Was there some problem with vforking? */
23296 child < 0
23298 /* Did the child fail? (This shouldn't happen.) */
23299 || status
23301 /* Did the vfork/compiler bug occur? */
23302 || parent != getpid()
23304 /* Did the file descriptor bug occur? */
23305 || fstat(fileno(stdout), &st) != 0
23309 _ACEOF
23310 rm -f conftest$ac_exeext
23311 if { (ac_try="$ac_link"
23312 case "(($ac_try" in
23313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23314 *) ac_try_echo=$ac_try;;
23315 esac
23316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23317 (eval "$ac_link") 2>&5
23318 ac_status=$?
23319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23320 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23321 { (case "(($ac_try" in
23322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23323 *) ac_try_echo=$ac_try;;
23324 esac
23325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23326 (eval "$ac_try") 2>&5
23327 ac_status=$?
23328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23329 (exit $ac_status); }; }; then
23330 ac_cv_func_vfork_works=yes
23331 else
23332 echo "$as_me: program exited with status $ac_status" >&5
23333 echo "$as_me: failed program was:" >&5
23334 sed 's/^/| /' conftest.$ac_ext >&5
23336 ( exit $ac_status )
23337 ac_cv_func_vfork_works=no
23339 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23344 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23345 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23348 if test "x$ac_cv_func_fork_works" = xcross; then
23349 ac_cv_func_vfork_works=$ac_cv_func_vfork
23350 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23351 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23354 if test "x$ac_cv_func_vfork_works" = xyes; then
23356 cat >>confdefs.h <<\_ACEOF
23357 #define HAVE_WORKING_VFORK 1
23358 _ACEOF
23360 else
23362 cat >>confdefs.h <<\_ACEOF
23363 #define vfork fork
23364 _ACEOF
23367 if test "x$ac_cv_func_fork_works" = xyes; then
23369 cat >>confdefs.h <<\_ACEOF
23370 #define HAVE_WORKING_FORK 1
23371 _ACEOF
23376 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23377 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
23378 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23379 echo $ECHO_N "(cached) $ECHO_C" >&6
23380 else
23381 cat >conftest.$ac_ext <<_ACEOF
23382 /* confdefs.h. */
23383 _ACEOF
23384 cat confdefs.h >>conftest.$ac_ext
23385 cat >>conftest.$ac_ext <<_ACEOF
23386 /* end confdefs.h. */
23387 #include <langinfo.h>
23389 main ()
23391 char* cs = nl_langinfo(CODESET);
23393 return 0;
23395 _ACEOF
23396 rm -f conftest.$ac_objext conftest$ac_exeext
23397 if { (ac_try="$ac_link"
23398 case "(($ac_try" in
23399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23400 *) ac_try_echo=$ac_try;;
23401 esac
23402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23403 (eval "$ac_link") 2>conftest.er1
23404 ac_status=$?
23405 grep -v '^ *+' conftest.er1 >conftest.err
23406 rm -f conftest.er1
23407 cat conftest.err >&5
23408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23409 (exit $ac_status); } && {
23410 test -z "$ac_c_werror_flag" ||
23411 test ! -s conftest.err
23412 } && test -s conftest$ac_exeext &&
23413 $as_test_x conftest$ac_exeext; then
23414 emacs_cv_langinfo_codeset=yes
23415 else
23416 echo "$as_me: failed program was:" >&5
23417 sed 's/^/| /' conftest.$ac_ext >&5
23419 emacs_cv_langinfo_codeset=no
23422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23423 conftest$ac_exeext conftest.$ac_ext
23426 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23427 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23428 if test $emacs_cv_langinfo_codeset = yes; then
23430 cat >>confdefs.h <<\_ACEOF
23431 #define HAVE_LANGINFO_CODESET 1
23432 _ACEOF
23436 { echo "$as_me:$LINENO: checking for size_t" >&5
23437 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23438 if test "${ac_cv_type_size_t+set}" = set; then
23439 echo $ECHO_N "(cached) $ECHO_C" >&6
23440 else
23441 cat >conftest.$ac_ext <<_ACEOF
23442 /* confdefs.h. */
23443 _ACEOF
23444 cat confdefs.h >>conftest.$ac_ext
23445 cat >>conftest.$ac_ext <<_ACEOF
23446 /* end confdefs.h. */
23447 $ac_includes_default
23448 typedef size_t ac__type_new_;
23450 main ()
23452 if ((ac__type_new_ *) 0)
23453 return 0;
23454 if (sizeof (ac__type_new_))
23455 return 0;
23457 return 0;
23459 _ACEOF
23460 rm -f conftest.$ac_objext
23461 if { (ac_try="$ac_compile"
23462 case "(($ac_try" in
23463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23464 *) ac_try_echo=$ac_try;;
23465 esac
23466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23467 (eval "$ac_compile") 2>conftest.er1
23468 ac_status=$?
23469 grep -v '^ *+' conftest.er1 >conftest.err
23470 rm -f conftest.er1
23471 cat conftest.err >&5
23472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23473 (exit $ac_status); } && {
23474 test -z "$ac_c_werror_flag" ||
23475 test ! -s conftest.err
23476 } && test -s conftest.$ac_objext; then
23477 ac_cv_type_size_t=yes
23478 else
23479 echo "$as_me: failed program was:" >&5
23480 sed 's/^/| /' conftest.$ac_ext >&5
23482 ac_cv_type_size_t=no
23485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23487 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23488 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23489 if test $ac_cv_type_size_t = yes; then
23491 cat >>confdefs.h <<_ACEOF
23492 #define HAVE_SIZE_T 1
23493 _ACEOF
23499 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23500 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23501 if test "${ac_cv_type_mbstate_t+set}" = set; then
23502 echo $ECHO_N "(cached) $ECHO_C" >&6
23503 else
23504 cat >conftest.$ac_ext <<_ACEOF
23505 /* confdefs.h. */
23506 _ACEOF
23507 cat confdefs.h >>conftest.$ac_ext
23508 cat >>conftest.$ac_ext <<_ACEOF
23509 /* end confdefs.h. */
23510 $ac_includes_default
23511 # include <wchar.h>
23513 main ()
23515 mbstate_t x; return sizeof x;
23517 return 0;
23519 _ACEOF
23520 rm -f conftest.$ac_objext
23521 if { (ac_try="$ac_compile"
23522 case "(($ac_try" in
23523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23524 *) ac_try_echo=$ac_try;;
23525 esac
23526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23527 (eval "$ac_compile") 2>conftest.er1
23528 ac_status=$?
23529 grep -v '^ *+' conftest.er1 >conftest.err
23530 rm -f conftest.er1
23531 cat conftest.err >&5
23532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23533 (exit $ac_status); } && {
23534 test -z "$ac_c_werror_flag" ||
23535 test ! -s conftest.err
23536 } && test -s conftest.$ac_objext; then
23537 ac_cv_type_mbstate_t=yes
23538 else
23539 echo "$as_me: failed program was:" >&5
23540 sed 's/^/| /' conftest.$ac_ext >&5
23542 ac_cv_type_mbstate_t=no
23545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23547 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23548 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23549 if test $ac_cv_type_mbstate_t = yes; then
23551 cat >>confdefs.h <<\_ACEOF
23552 #define HAVE_MBSTATE_T 1
23553 _ACEOF
23555 else
23557 cat >>confdefs.h <<\_ACEOF
23558 #define mbstate_t int
23559 _ACEOF
23563 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23564 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
23565 if test "${emacs_cv_c_restrict+set}" = set; then
23566 echo $ECHO_N "(cached) $ECHO_C" >&6
23567 else
23568 cat >conftest.$ac_ext <<_ACEOF
23569 /* confdefs.h. */
23570 _ACEOF
23571 cat confdefs.h >>conftest.$ac_ext
23572 cat >>conftest.$ac_ext <<_ACEOF
23573 /* end confdefs.h. */
23574 void fred (int *restrict x);
23576 main ()
23580 return 0;
23582 _ACEOF
23583 rm -f conftest.$ac_objext
23584 if { (ac_try="$ac_compile"
23585 case "(($ac_try" in
23586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23587 *) ac_try_echo=$ac_try;;
23588 esac
23589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23590 (eval "$ac_compile") 2>conftest.er1
23591 ac_status=$?
23592 grep -v '^ *+' conftest.er1 >conftest.err
23593 rm -f conftest.er1
23594 cat conftest.err >&5
23595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23596 (exit $ac_status); } && {
23597 test -z "$ac_c_werror_flag" ||
23598 test ! -s conftest.err
23599 } && test -s conftest.$ac_objext; then
23600 emacs_cv_c_restrict=yes
23601 else
23602 echo "$as_me: failed program was:" >&5
23603 sed 's/^/| /' conftest.$ac_ext >&5
23605 cat >conftest.$ac_ext <<_ACEOF
23606 /* confdefs.h. */
23607 _ACEOF
23608 cat confdefs.h >>conftest.$ac_ext
23609 cat >>conftest.$ac_ext <<_ACEOF
23610 /* end confdefs.h. */
23611 void fred (int *__restrict x);
23613 main ()
23617 return 0;
23619 _ACEOF
23620 rm -f conftest.$ac_objext
23621 if { (ac_try="$ac_compile"
23622 case "(($ac_try" in
23623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23624 *) ac_try_echo=$ac_try;;
23625 esac
23626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23627 (eval "$ac_compile") 2>conftest.er1
23628 ac_status=$?
23629 grep -v '^ *+' conftest.er1 >conftest.err
23630 rm -f conftest.er1
23631 cat conftest.err >&5
23632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23633 (exit $ac_status); } && {
23634 test -z "$ac_c_werror_flag" ||
23635 test ! -s conftest.err
23636 } && test -s conftest.$ac_objext; then
23637 emacs_cv_c_restrict=__restrict
23638 else
23639 echo "$as_me: failed program was:" >&5
23640 sed 's/^/| /' conftest.$ac_ext >&5
23642 emacs_cv_c_restrict=no
23645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23650 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
23651 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23652 case "$emacs_cv_c_restrict" in
23653 yes) emacs_restrict=restrict;;
23654 no) emacs_restrict="";;
23655 *) emacs_restrict="$emacs_cv_c_restrict";;
23656 esac
23657 if test "$emacs_restrict" != __restrict; then
23659 cat >>confdefs.h <<_ACEOF
23660 #define __restrict $emacs_restrict
23661 _ACEOF
23665 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
23666 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
23667 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23668 echo $ECHO_N "(cached) $ECHO_C" >&6
23669 else
23670 cat >conftest.$ac_ext <<_ACEOF
23671 /* confdefs.h. */
23672 _ACEOF
23673 cat confdefs.h >>conftest.$ac_ext
23674 cat >>conftest.$ac_ext <<_ACEOF
23675 /* end confdefs.h. */
23676 void fred (int x[__restrict]);
23678 main ()
23682 return 0;
23684 _ACEOF
23685 rm -f conftest.$ac_objext
23686 if { (ac_try="$ac_compile"
23687 case "(($ac_try" in
23688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23689 *) ac_try_echo=$ac_try;;
23690 esac
23691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23692 (eval "$ac_compile") 2>conftest.er1
23693 ac_status=$?
23694 grep -v '^ *+' conftest.er1 >conftest.err
23695 rm -f conftest.er1
23696 cat conftest.err >&5
23697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23698 (exit $ac_status); } && {
23699 test -z "$ac_c_werror_flag" ||
23700 test ! -s conftest.err
23701 } && test -s conftest.$ac_objext; then
23702 emacs_cv_c_restrict_arr=yes
23703 else
23704 echo "$as_me: failed program was:" >&5
23705 sed 's/^/| /' conftest.$ac_ext >&5
23707 emacs_cv_c_restrict_arr=no
23710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23712 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
23713 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23714 if test "$emacs_cv_c_restrict_arr" = yes; then
23716 cat >>confdefs.h <<\_ACEOF
23717 #define __restrict_arr __restrict
23718 _ACEOF
23724 # Set up the CFLAGS for real compilation, so we can substitute it.
23725 CFLAGS="$REAL_CFLAGS"
23726 CPPFLAGS="$REAL_CPPFLAGS"
23728 #### Find out which version of Emacs this is.
23729 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23730 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
23731 if test x"${version}" = x; then
23732 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
23733 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
23734 { (exit 1); exit 1; }; }
23737 ### Specify what sort of things we'll be editing into Makefile and config.h.
23738 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23774 cat >>confdefs.h <<_ACEOF
23775 #define EMACS_CONFIGURATION "${canonical}"
23776 _ACEOF
23779 cat >>confdefs.h <<_ACEOF
23780 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23781 _ACEOF
23784 cat >>confdefs.h <<_ACEOF
23785 #define config_machfile "${machfile}"
23786 _ACEOF
23789 cat >>confdefs.h <<_ACEOF
23790 #define config_opsysfile "${opsysfile}"
23791 _ACEOF
23794 cat >>confdefs.h <<_ACEOF
23795 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23796 _ACEOF
23799 cat >>confdefs.h <<_ACEOF
23800 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23801 _ACEOF
23804 cat >>confdefs.h <<_ACEOF
23805 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23806 _ACEOF
23809 cat >>confdefs.h <<_ACEOF
23810 #define UNEXEC_SRC ${UNEXEC_SRC}
23811 _ACEOF
23814 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23816 cat >>confdefs.h <<\_ACEOF
23817 #define HAVE_X_WINDOWS 1
23818 _ACEOF
23821 if test "${USE_X_TOOLKIT}" != "none" ; then
23823 cat >>confdefs.h <<\_ACEOF
23824 #define USE_X_TOOLKIT 1
23825 _ACEOF
23828 if test "${HAVE_X11}" = "yes" ; then
23830 cat >>confdefs.h <<\_ACEOF
23831 #define HAVE_X11 1
23832 _ACEOF
23835 if test "${HAVE_XFREE386}" = "yes" ; then
23837 cat >>confdefs.h <<\_ACEOF
23838 #define HAVE_XFREE386 1
23839 _ACEOF
23842 if test "${HAVE_MENUS}" = "yes" ; then
23844 cat >>confdefs.h <<\_ACEOF
23845 #define HAVE_MENUS 1
23846 _ACEOF
23849 if test "${GNU_MALLOC}" = "yes" ; then
23851 cat >>confdefs.h <<\_ACEOF
23852 #define GNU_MALLOC 1
23853 _ACEOF
23856 if test "${REL_ALLOC}" = "yes" ; then
23858 cat >>confdefs.h <<\_ACEOF
23859 #define REL_ALLOC 1
23860 _ACEOF
23869 #### Report on what we decided to do.
23870 #### Report GTK as a toolkit, even if it doesn't use Xt.
23871 #### It makes printing result more understandable as using GTK sets
23872 #### toolkit_scroll_bars to yes by default.
23873 if test "${HAVE_GTK}" = "yes"; then
23874 USE_X_TOOLKIT=GTK
23877 echo "
23878 Configured for \`${canonical}'.
23880 Where should the build process find the source code? ${srcdir}
23881 What operating system and machine description files should Emacs use?
23882 \`${opsysfile}' and \`${machfile}'
23883 What compiler should emacs be built with? ${CC} ${CFLAGS}
23884 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23885 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23886 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23887 What window system should Emacs use? ${window_system}
23888 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23890 if test -n "${x_includes}"; then
23891 echo " Where do we find X Windows header files? ${x_includes}"
23892 else
23893 echo " Where do we find X Windows header files? Standard dirs"
23895 if test -n "${x_libraries}"; then
23896 echo " Where do we find X Windows libraries? ${x_libraries}"
23897 else
23898 echo " Where do we find X Windows libraries? Standard dirs"
23901 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23902 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23903 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23904 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23905 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
23906 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23907 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
23908 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23909 echo
23911 if test $USE_XASSERTS = yes; then
23912 echo " Compiling with asserts turned on."
23913 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23914 echo
23917 if test "$USE_X_TOOLKIT" = GTK; then
23918 case "$canonical" in
23919 *cygwin*)
23920 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
23921 will probably get a crash on startup. If this happens, please use another
23922 toolkit for Emacs. See etc/PROBLEMS for more information."
23924 esac
23929 # Remove any trailing slashes in these variables.
23930 test "${prefix}" != NONE &&
23931 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23932 test "${exec_prefix}" != NONE &&
23933 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23935 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23936 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23937 ## from Makefile.c can correctly provide the arg `-traditional' to the
23938 ## C preprocessor.
23940 cat >conftest.$ac_ext <<_ACEOF
23941 /* confdefs.h. */
23942 _ACEOF
23943 cat confdefs.h >>conftest.$ac_ext
23944 cat >>conftest.$ac_ext <<_ACEOF
23945 /* end confdefs.h. */
23946 yes..yes
23947 _ACEOF
23948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23949 $EGREP "yes..yes" >/dev/null 2>&1; then
23950 CPP_NEED_TRADITIONAL=no
23951 else
23952 CPP_NEED_TRADITIONAL=yes
23954 rm -f conftest*
23957 ac_config_files="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in lisp/Makefile lispref/Makefile lispintro/Makefile leim/Makefile"
23959 ac_config_commands="$ac_config_commands default"
23961 cat >confcache <<\_ACEOF
23962 # This file is a shell script that caches the results of configure
23963 # tests run on this system so they can be shared between configure
23964 # scripts and configure runs, see configure's option --config-cache.
23965 # It is not useful on other systems. If it contains results you don't
23966 # want to keep, you may remove or edit it.
23968 # config.status only pays attention to the cache file if you give it
23969 # the --recheck option to rerun configure.
23971 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23972 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23973 # following values.
23975 _ACEOF
23977 # The following way of writing the cache mishandles newlines in values,
23978 # but we know of no workaround that is simple, portable, and efficient.
23979 # So, we kill variables containing newlines.
23980 # Ultrix sh set writes to stderr and can't be redirected directly,
23981 # and sets the high bit in the cache file unless we assign to the vars.
23983 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23984 eval ac_val=\$$ac_var
23985 case $ac_val in #(
23986 *${as_nl}*)
23987 case $ac_var in #(
23988 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23989 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23990 esac
23991 case $ac_var in #(
23992 _ | IFS | as_nl) ;; #(
23993 *) $as_unset $ac_var ;;
23994 esac ;;
23995 esac
23996 done
23998 (set) 2>&1 |
23999 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24000 *${as_nl}ac_space=\ *)
24001 # `set' does not quote correctly, so add quotes (double-quote
24002 # substitution turns \\\\ into \\, and sed turns \\ into \).
24003 sed -n \
24004 "s/'/'\\\\''/g;
24005 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24006 ;; #(
24008 # `set' quotes correctly as required by POSIX, so do not add quotes.
24009 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24011 esac |
24012 sort
24014 sed '
24015 /^ac_cv_env_/b end
24016 t clear
24017 :clear
24018 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24019 t end
24020 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24021 :end' >>confcache
24022 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24023 if test -w "$cache_file"; then
24024 test "x$cache_file" != "x/dev/null" &&
24025 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24026 echo "$as_me: updating cache $cache_file" >&6;}
24027 cat confcache >$cache_file
24028 else
24029 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24030 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24033 rm -f confcache
24035 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24036 # Let make expand exec_prefix.
24037 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24039 DEFS=-DHAVE_CONFIG_H
24041 ac_libobjs=
24042 ac_ltlibobjs=
24043 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24044 # 1. Remove the extension, and $U if already installed.
24045 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24046 ac_i=`echo "$ac_i" | sed "$ac_script"`
24047 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24048 # will be set to the directory where LIBOBJS objects are built.
24049 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24050 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24051 done
24052 LIBOBJS=$ac_libobjs
24054 LTLIBOBJS=$ac_ltlibobjs
24058 : ${CONFIG_STATUS=./config.status}
24059 ac_clean_files_save=$ac_clean_files
24060 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24061 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24062 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24063 cat >$CONFIG_STATUS <<_ACEOF
24064 #! $SHELL
24065 # Generated by $as_me.
24066 # Run this file to recreate the current configuration.
24067 # Compiler output produced by configure, useful for debugging
24068 # configure, is in config.log if it exists.
24070 debug=false
24071 ac_cs_recheck=false
24072 ac_cs_silent=false
24073 SHELL=\${CONFIG_SHELL-$SHELL}
24074 _ACEOF
24076 cat >>$CONFIG_STATUS <<\_ACEOF
24077 ## --------------------- ##
24078 ## M4sh Initialization. ##
24079 ## --------------------- ##
24081 # Be more Bourne compatible
24082 DUALCASE=1; export DUALCASE # for MKS sh
24083 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24084 emulate sh
24085 NULLCMD=:
24086 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24087 # is contrary to our usage. Disable this feature.
24088 alias -g '${1+"$@"}'='"$@"'
24089 setopt NO_GLOB_SUBST
24090 else
24091 case `(set -o) 2>/dev/null` in
24092 *posix*) set -o posix ;;
24093 esac
24100 # PATH needs CR
24101 # Avoid depending upon Character Ranges.
24102 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24103 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24104 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24105 as_cr_digits='0123456789'
24106 as_cr_alnum=$as_cr_Letters$as_cr_digits
24108 # The user is always right.
24109 if test "${PATH_SEPARATOR+set}" != set; then
24110 echo "#! /bin/sh" >conf$$.sh
24111 echo "exit 0" >>conf$$.sh
24112 chmod +x conf$$.sh
24113 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24114 PATH_SEPARATOR=';'
24115 else
24116 PATH_SEPARATOR=:
24118 rm -f conf$$.sh
24121 # Support unset when possible.
24122 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24123 as_unset=unset
24124 else
24125 as_unset=false
24129 # IFS
24130 # We need space, tab and new line, in precisely that order. Quoting is
24131 # there to prevent editors from complaining about space-tab.
24132 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24133 # splitting by setting IFS to empty value.)
24134 as_nl='
24136 IFS=" "" $as_nl"
24138 # Find who we are. Look in the path if we contain no directory separator.
24139 case $0 in
24140 *[\\/]* ) as_myself=$0 ;;
24141 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24142 for as_dir in $PATH
24144 IFS=$as_save_IFS
24145 test -z "$as_dir" && as_dir=.
24146 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24147 done
24148 IFS=$as_save_IFS
24151 esac
24152 # We did not find ourselves, most probably we were run as `sh COMMAND'
24153 # in which case we are not to be found in the path.
24154 if test "x$as_myself" = x; then
24155 as_myself=$0
24157 if test ! -f "$as_myself"; then
24158 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24159 { (exit 1); exit 1; }
24162 # Work around bugs in pre-3.0 UWIN ksh.
24163 for as_var in ENV MAIL MAILPATH
24164 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24165 done
24166 PS1='$ '
24167 PS2='> '
24168 PS4='+ '
24170 # NLS nuisances.
24171 for as_var in \
24172 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24173 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24174 LC_TELEPHONE LC_TIME
24176 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24177 eval $as_var=C; export $as_var
24178 else
24179 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24181 done
24183 # Required to use basename.
24184 if expr a : '\(a\)' >/dev/null 2>&1 &&
24185 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24186 as_expr=expr
24187 else
24188 as_expr=false
24191 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24192 as_basename=basename
24193 else
24194 as_basename=false
24198 # Name of the executable.
24199 as_me=`$as_basename -- "$0" ||
24200 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24201 X"$0" : 'X\(//\)$' \| \
24202 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24203 echo X/"$0" |
24204 sed '/^.*\/\([^/][^/]*\)\/*$/{
24205 s//\1/
24208 /^X\/\(\/\/\)$/{
24209 s//\1/
24212 /^X\/\(\/\).*/{
24213 s//\1/
24216 s/.*/./; q'`
24218 # CDPATH.
24219 $as_unset CDPATH
24223 as_lineno_1=$LINENO
24224 as_lineno_2=$LINENO
24225 test "x$as_lineno_1" != "x$as_lineno_2" &&
24226 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24228 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24229 # uniformly replaced by the line number. The first 'sed' inserts a
24230 # line-number line after each line using $LINENO; the second 'sed'
24231 # does the real work. The second script uses 'N' to pair each
24232 # line-number line with the line containing $LINENO, and appends
24233 # trailing '-' during substitution so that $LINENO is not a special
24234 # case at line end.
24235 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24236 # scripts with optimization help from Paolo Bonzini. Blame Lee
24237 # E. McMahon (1931-1989) for sed's syntax. :-)
24238 sed -n '
24240 /[$]LINENO/=
24241 ' <$as_myself |
24242 sed '
24243 s/[$]LINENO.*/&-/
24244 t lineno
24246 :lineno
24248 :loop
24249 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24250 t loop
24251 s/-\n.*//
24252 ' >$as_me.lineno &&
24253 chmod +x "$as_me.lineno" ||
24254 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24255 { (exit 1); exit 1; }; }
24257 # Don't try to exec as it changes $[0], causing all sort of problems
24258 # (the dirname of $[0] is not the place where we might find the
24259 # original and so on. Autoconf is especially sensitive to this).
24260 . "./$as_me.lineno"
24261 # Exit status is that of the last command.
24262 exit
24266 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24267 as_dirname=dirname
24268 else
24269 as_dirname=false
24272 ECHO_C= ECHO_N= ECHO_T=
24273 case `echo -n x` in
24274 -n*)
24275 case `echo 'x\c'` in
24276 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24277 *) ECHO_C='\c';;
24278 esac;;
24280 ECHO_N='-n';;
24281 esac
24283 if expr a : '\(a\)' >/dev/null 2>&1 &&
24284 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24285 as_expr=expr
24286 else
24287 as_expr=false
24290 rm -f conf$$ conf$$.exe conf$$.file
24291 if test -d conf$$.dir; then
24292 rm -f conf$$.dir/conf$$.file
24293 else
24294 rm -f conf$$.dir
24295 mkdir conf$$.dir
24297 echo >conf$$.file
24298 if ln -s conf$$.file conf$$ 2>/dev/null; then
24299 as_ln_s='ln -s'
24300 # ... but there are two gotchas:
24301 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24302 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24303 # In both cases, we have to default to `cp -p'.
24304 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24305 as_ln_s='cp -p'
24306 elif ln conf$$.file conf$$ 2>/dev/null; then
24307 as_ln_s=ln
24308 else
24309 as_ln_s='cp -p'
24311 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24312 rmdir conf$$.dir 2>/dev/null
24314 if mkdir -p . 2>/dev/null; then
24315 as_mkdir_p=:
24316 else
24317 test -d ./-p && rmdir ./-p
24318 as_mkdir_p=false
24321 if test -x / >/dev/null 2>&1; then
24322 as_test_x='test -x'
24323 else
24324 if ls -dL / >/dev/null 2>&1; then
24325 as_ls_L_option=L
24326 else
24327 as_ls_L_option=
24329 as_test_x='
24330 eval sh -c '\''
24331 if test -d "$1"; then
24332 test -d "$1/.";
24333 else
24334 case $1 in
24335 -*)set "./$1";;
24336 esac;
24337 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24338 ???[sx]*):;;*)false;;esac;fi
24339 '\'' sh
24342 as_executable_p=$as_test_x
24344 # Sed expression to map a string onto a valid CPP name.
24345 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24347 # Sed expression to map a string onto a valid variable name.
24348 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24351 exec 6>&1
24353 # Save the log message, to keep $[0] and so on meaningful, and to
24354 # report actual input values of CONFIG_FILES etc. instead of their
24355 # values after options handling.
24356 ac_log="
24357 This file was extended by $as_me, which was
24358 generated by GNU Autoconf 2.61. Invocation command line was
24360 CONFIG_FILES = $CONFIG_FILES
24361 CONFIG_HEADERS = $CONFIG_HEADERS
24362 CONFIG_LINKS = $CONFIG_LINKS
24363 CONFIG_COMMANDS = $CONFIG_COMMANDS
24364 $ $0 $@
24366 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24369 _ACEOF
24371 cat >>$CONFIG_STATUS <<_ACEOF
24372 # Files that config.status was made for.
24373 config_files="$ac_config_files"
24374 config_headers="$ac_config_headers"
24375 config_commands="$ac_config_commands"
24377 _ACEOF
24379 cat >>$CONFIG_STATUS <<\_ACEOF
24380 ac_cs_usage="\
24381 \`$as_me' instantiates files from templates according to the
24382 current configuration.
24384 Usage: $0 [OPTIONS] [FILE]...
24386 -h, --help print this help, then exit
24387 -V, --version print version number and configuration settings, then exit
24388 -q, --quiet do not print progress messages
24389 -d, --debug don't remove temporary files
24390 --recheck update $as_me by reconfiguring in the same conditions
24391 --file=FILE[:TEMPLATE]
24392 instantiate the configuration file FILE
24393 --header=FILE[:TEMPLATE]
24394 instantiate the configuration header FILE
24396 Configuration files:
24397 $config_files
24399 Configuration headers:
24400 $config_headers
24402 Configuration commands:
24403 $config_commands
24405 Report bugs to <bug-autoconf@gnu.org>."
24407 _ACEOF
24408 cat >>$CONFIG_STATUS <<_ACEOF
24409 ac_cs_version="\\
24410 config.status
24411 configured by $0, generated by GNU Autoconf 2.61,
24412 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24414 Copyright (C) 2006 Free Software Foundation, Inc.
24415 This config.status script is free software; the Free Software Foundation
24416 gives unlimited permission to copy, distribute and modify it."
24418 ac_pwd='$ac_pwd'
24419 srcdir='$srcdir'
24420 INSTALL='$INSTALL'
24421 _ACEOF
24423 cat >>$CONFIG_STATUS <<\_ACEOF
24424 # If no file are specified by the user, then we need to provide default
24425 # value. By we need to know if files were specified by the user.
24426 ac_need_defaults=:
24427 while test $# != 0
24429 case $1 in
24430 --*=*)
24431 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24432 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24433 ac_shift=:
24436 ac_option=$1
24437 ac_optarg=$2
24438 ac_shift=shift
24440 esac
24442 case $ac_option in
24443 # Handling of the options.
24444 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24445 ac_cs_recheck=: ;;
24446 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24447 echo "$ac_cs_version"; exit ;;
24448 --debug | --debu | --deb | --de | --d | -d )
24449 debug=: ;;
24450 --file | --fil | --fi | --f )
24451 $ac_shift
24452 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24453 ac_need_defaults=false;;
24454 --header | --heade | --head | --hea )
24455 $ac_shift
24456 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24457 ac_need_defaults=false;;
24458 --he | --h)
24459 # Conflict between --help and --header
24460 { echo "$as_me: error: ambiguous option: $1
24461 Try \`$0 --help' for more information." >&2
24462 { (exit 1); exit 1; }; };;
24463 --help | --hel | -h )
24464 echo "$ac_cs_usage"; exit ;;
24465 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24466 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24467 ac_cs_silent=: ;;
24469 # This is an error.
24470 -*) { echo "$as_me: error: unrecognized option: $1
24471 Try \`$0 --help' for more information." >&2
24472 { (exit 1); exit 1; }; } ;;
24474 *) ac_config_targets="$ac_config_targets $1"
24475 ac_need_defaults=false ;;
24477 esac
24478 shift
24479 done
24481 ac_configure_extra_args=
24483 if $ac_cs_silent; then
24484 exec 6>/dev/null
24485 ac_configure_extra_args="$ac_configure_extra_args --silent"
24488 _ACEOF
24489 cat >>$CONFIG_STATUS <<_ACEOF
24490 if \$ac_cs_recheck; then
24491 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24492 CONFIG_SHELL=$SHELL
24493 export CONFIG_SHELL
24494 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24497 _ACEOF
24498 cat >>$CONFIG_STATUS <<\_ACEOF
24499 exec 5>>config.log
24501 echo
24502 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24503 ## Running $as_me. ##
24504 _ASBOX
24505 echo "$ac_log"
24506 } >&5
24508 _ACEOF
24509 cat >>$CONFIG_STATUS <<_ACEOF
24511 # INIT-COMMANDS
24513 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24515 _ACEOF
24517 cat >>$CONFIG_STATUS <<\_ACEOF
24519 # Handling of arguments.
24520 for ac_config_target in $ac_config_targets
24522 case $ac_config_target in
24523 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24524 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24525 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24526 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24527 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
24528 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24529 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24530 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24531 "lispref/Makefile") CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
24532 "lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
24533 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24534 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24536 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24537 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24538 { (exit 1); exit 1; }; };;
24539 esac
24540 done
24543 # If the user did not use the arguments to specify the items to instantiate,
24544 # then the envvar interface is used. Set only those that are not.
24545 # We use the long form for the default assignment because of an extremely
24546 # bizarre bug on SunOS 4.1.3.
24547 if $ac_need_defaults; then
24548 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24549 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24550 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24553 # Have a temporary directory for convenience. Make it in the build tree
24554 # simply because there is no reason against having it here, and in addition,
24555 # creating and moving files from /tmp can sometimes cause problems.
24556 # Hook for its removal unless debugging.
24557 # Note that there is a small window in which the directory will not be cleaned:
24558 # after its creation but before its name has been assigned to `$tmp'.
24559 $debug ||
24561 tmp=
24562 trap 'exit_status=$?
24563 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24565 trap '{ (exit 1); exit 1; }' 1 2 13 15
24567 # Create a (secure) tmp directory for tmp files.
24570 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24571 test -n "$tmp" && test -d "$tmp"
24572 } ||
24574 tmp=./conf$$-$RANDOM
24575 (umask 077 && mkdir "$tmp")
24576 } ||
24578 echo "$me: cannot create a temporary directory in ." >&2
24579 { (exit 1); exit 1; }
24583 # Set up the sed scripts for CONFIG_FILES section.
24586 # No need to generate the scripts if there are no CONFIG_FILES.
24587 # This happens for instance when ./config.status config.h
24588 if test -n "$CONFIG_FILES"; then
24590 _ACEOF
24594 ac_delim='%!_!# '
24595 for ac_last_try in false false false false false :; do
24596 cat >conf$$subs.sed <<_ACEOF
24597 SHELL!$SHELL$ac_delim
24598 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24599 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24600 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24601 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24602 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24603 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24604 exec_prefix!$exec_prefix$ac_delim
24605 prefix!$prefix$ac_delim
24606 program_transform_name!$program_transform_name$ac_delim
24607 bindir!$bindir$ac_delim
24608 sbindir!$sbindir$ac_delim
24609 libexecdir!$libexecdir$ac_delim
24610 datarootdir!$datarootdir$ac_delim
24611 datadir!$datadir$ac_delim
24612 sysconfdir!$sysconfdir$ac_delim
24613 sharedstatedir!$sharedstatedir$ac_delim
24614 localstatedir!$localstatedir$ac_delim
24615 includedir!$includedir$ac_delim
24616 oldincludedir!$oldincludedir$ac_delim
24617 docdir!$docdir$ac_delim
24618 infodir!$infodir$ac_delim
24619 htmldir!$htmldir$ac_delim
24620 dvidir!$dvidir$ac_delim
24621 pdfdir!$pdfdir$ac_delim
24622 psdir!$psdir$ac_delim
24623 libdir!$libdir$ac_delim
24624 localedir!$localedir$ac_delim
24625 mandir!$mandir$ac_delim
24626 DEFS!$DEFS$ac_delim
24627 ECHO_C!$ECHO_C$ac_delim
24628 ECHO_N!$ECHO_N$ac_delim
24629 ECHO_T!$ECHO_T$ac_delim
24630 LIBS!$LIBS$ac_delim
24631 build_alias!$build_alias$ac_delim
24632 host_alias!$host_alias$ac_delim
24633 target_alias!$target_alias$ac_delim
24634 MAINT!$MAINT$ac_delim
24635 build!$build$ac_delim
24636 build_cpu!$build_cpu$ac_delim
24637 build_vendor!$build_vendor$ac_delim
24638 build_os!$build_os$ac_delim
24639 host!$host$ac_delim
24640 host_cpu!$host_cpu$ac_delim
24641 host_vendor!$host_vendor$ac_delim
24642 host_os!$host_os$ac_delim
24643 CC!$CC$ac_delim
24644 CFLAGS!$CFLAGS$ac_delim
24645 LDFLAGS!$LDFLAGS$ac_delim
24646 CPPFLAGS!$CPPFLAGS$ac_delim
24647 ac_ct_CC!$ac_ct_CC$ac_delim
24648 EXEEXT!$EXEEXT$ac_delim
24649 OBJEXT!$OBJEXT$ac_delim
24650 CPP!$CPP$ac_delim
24651 GREP!$GREP$ac_delim
24652 EGREP!$EGREP$ac_delim
24653 LN_S!$LN_S$ac_delim
24654 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24655 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24656 INSTALL_DATA!$INSTALL_DATA$ac_delim
24657 RANLIB!$RANLIB$ac_delim
24658 INSTALL_INFO!$INSTALL_INFO$ac_delim
24659 GZIP_PROG!$GZIP_PROG$ac_delim
24660 LIBSOUND!$LIBSOUND$ac_delim
24661 PKG_CONFIG!$PKG_CONFIG$ac_delim
24662 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24663 ALSA_LIBS!$ALSA_LIBS$ac_delim
24664 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24665 SET_MAKE!$SET_MAKE$ac_delim
24666 XMKMF!$XMKMF$ac_delim
24667 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24668 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24669 GTK_LIBS!$GTK_LIBS$ac_delim
24670 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24671 XFT_LIBS!$XFT_LIBS$ac_delim
24672 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
24673 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
24674 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
24675 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
24676 HAVE_LIBOTF!$HAVE_LIBOTF$ac_delim
24677 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
24678 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
24679 ALLOCA!$ALLOCA$ac_delim
24680 liblockfile!$liblockfile$ac_delim
24681 LIBOBJS!$LIBOBJS$ac_delim
24682 NEED_SETGID!$NEED_SETGID$ac_delim
24683 KMEM_GROUP!$KMEM_GROUP$ac_delim
24684 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24685 GETOPT_H!$GETOPT_H$ac_delim
24686 GETOPTOBJS!$GETOPTOBJS$ac_delim
24687 version!$version$ac_delim
24688 configuration!$configuration$ac_delim
24689 canonical!$canonical$ac_delim
24690 srcdir!$srcdir$ac_delim
24691 lispdir!$lispdir$ac_delim
24692 locallisppath!$locallisppath$ac_delim
24693 lisppath!$lisppath$ac_delim
24694 _ACEOF
24696 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24697 break
24698 elif $ac_last_try; then
24699 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24700 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24701 { (exit 1); exit 1; }; }
24702 else
24703 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24705 done
24707 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24708 if test -n "$ac_eof"; then
24709 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24710 ac_eof=`expr $ac_eof + 1`
24713 cat >>$CONFIG_STATUS <<_ACEOF
24714 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24715 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24716 _ACEOF
24717 sed '
24718 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24719 s/^/s,@/; s/!/@,|#_!!_#|/
24722 s/'"$ac_delim"'$/,g/; t
24723 s/$/\\/; p
24724 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24725 ' >>$CONFIG_STATUS <conf$$subs.sed
24726 rm -f conf$$subs.sed
24727 cat >>$CONFIG_STATUS <<_ACEOF
24728 CEOF$ac_eof
24729 _ACEOF
24732 ac_delim='%!_!# '
24733 for ac_last_try in false false false false false :; do
24734 cat >conf$$subs.sed <<_ACEOF
24735 x_default_search_path!$x_default_search_path$ac_delim
24736 etcdir!$etcdir$ac_delim
24737 archlibdir!$archlibdir$ac_delim
24738 bitmapdir!$bitmapdir$ac_delim
24739 gamedir!$gamedir$ac_delim
24740 gameuser!$gameuser$ac_delim
24741 c_switch_system!$c_switch_system$ac_delim
24742 c_switch_machine!$c_switch_machine$ac_delim
24743 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24744 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24745 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24746 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24747 machfile!$machfile$ac_delim
24748 opsysfile!$opsysfile$ac_delim
24749 carbon_appdir!$carbon_appdir$ac_delim
24750 LTLIBOBJS!$LTLIBOBJS$ac_delim
24751 _ACEOF
24753 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 16; then
24754 break
24755 elif $ac_last_try; then
24756 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24757 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24758 { (exit 1); exit 1; }; }
24759 else
24760 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24762 done
24764 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24765 if test -n "$ac_eof"; then
24766 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24767 ac_eof=`expr $ac_eof + 1`
24770 cat >>$CONFIG_STATUS <<_ACEOF
24771 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24772 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24773 _ACEOF
24774 sed '
24775 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24776 s/^/s,@/; s/!/@,|#_!!_#|/
24779 s/'"$ac_delim"'$/,g/; t
24780 s/$/\\/; p
24781 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24782 ' >>$CONFIG_STATUS <conf$$subs.sed
24783 rm -f conf$$subs.sed
24784 cat >>$CONFIG_STATUS <<_ACEOF
24785 :end
24786 s/|#_!!_#|//g
24787 CEOF$ac_eof
24788 _ACEOF
24791 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24792 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24793 # trailing colons and then remove the whole line if VPATH becomes empty
24794 # (actually we leave an empty line to preserve line numbers).
24795 if test "x$srcdir" = x.; then
24796 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24797 s/:*\$(srcdir):*/:/
24798 s/:*\${srcdir}:*/:/
24799 s/:*@srcdir@:*/:/
24800 s/^\([^=]*=[ ]*\):*/\1/
24801 s/:*$//
24802 s/^[^=]*=[ ]*$//
24806 cat >>$CONFIG_STATUS <<\_ACEOF
24807 fi # test -n "$CONFIG_FILES"
24810 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24812 case $ac_tag in
24813 :[FHLC]) ac_mode=$ac_tag; continue;;
24814 esac
24815 case $ac_mode$ac_tag in
24816 :[FHL]*:*);;
24817 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24818 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24819 { (exit 1); exit 1; }; };;
24820 :[FH]-) ac_tag=-:-;;
24821 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24822 esac
24823 ac_save_IFS=$IFS
24824 IFS=:
24825 set x $ac_tag
24826 IFS=$ac_save_IFS
24827 shift
24828 ac_file=$1
24829 shift
24831 case $ac_mode in
24832 :L) ac_source=$1;;
24833 :[FH])
24834 ac_file_inputs=
24835 for ac_f
24837 case $ac_f in
24838 -) ac_f="$tmp/stdin";;
24839 *) # Look for the file first in the build tree, then in the source tree
24840 # (if the path is not absolute). The absolute path cannot be DOS-style,
24841 # because $ac_f cannot contain `:'.
24842 test -f "$ac_f" ||
24843 case $ac_f in
24844 [\\/$]*) false;;
24845 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24846 esac ||
24847 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24848 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24849 { (exit 1); exit 1; }; };;
24850 esac
24851 ac_file_inputs="$ac_file_inputs $ac_f"
24852 done
24854 # Let's still pretend it is `configure' which instantiates (i.e., don't
24855 # use $as_me), people would be surprised to read:
24856 # /* config.h. Generated by config.status. */
24857 configure_input="Generated from "`IFS=:
24858 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24859 if test x"$ac_file" != x-; then
24860 configure_input="$ac_file. $configure_input"
24861 { echo "$as_me:$LINENO: creating $ac_file" >&5
24862 echo "$as_me: creating $ac_file" >&6;}
24865 case $ac_tag in
24866 *:-:* | *:-) cat >"$tmp/stdin";;
24867 esac
24869 esac
24871 ac_dir=`$as_dirname -- "$ac_file" ||
24872 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24873 X"$ac_file" : 'X\(//\)[^/]' \| \
24874 X"$ac_file" : 'X\(//\)$' \| \
24875 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24876 echo X"$ac_file" |
24877 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24878 s//\1/
24881 /^X\(\/\/\)[^/].*/{
24882 s//\1/
24885 /^X\(\/\/\)$/{
24886 s//\1/
24889 /^X\(\/\).*/{
24890 s//\1/
24893 s/.*/./; q'`
24894 { as_dir="$ac_dir"
24895 case $as_dir in #(
24896 -*) as_dir=./$as_dir;;
24897 esac
24898 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24899 as_dirs=
24900 while :; do
24901 case $as_dir in #(
24902 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24903 *) as_qdir=$as_dir;;
24904 esac
24905 as_dirs="'$as_qdir' $as_dirs"
24906 as_dir=`$as_dirname -- "$as_dir" ||
24907 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24908 X"$as_dir" : 'X\(//\)[^/]' \| \
24909 X"$as_dir" : 'X\(//\)$' \| \
24910 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24911 echo X"$as_dir" |
24912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24913 s//\1/
24916 /^X\(\/\/\)[^/].*/{
24917 s//\1/
24920 /^X\(\/\/\)$/{
24921 s//\1/
24924 /^X\(\/\).*/{
24925 s//\1/
24928 s/.*/./; q'`
24929 test -d "$as_dir" && break
24930 done
24931 test -z "$as_dirs" || eval "mkdir $as_dirs"
24932 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24933 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24934 { (exit 1); exit 1; }; }; }
24935 ac_builddir=.
24937 case "$ac_dir" in
24938 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24940 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24941 # A ".." for each directory in $ac_dir_suffix.
24942 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24943 case $ac_top_builddir_sub in
24944 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24945 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24946 esac ;;
24947 esac
24948 ac_abs_top_builddir=$ac_pwd
24949 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24950 # for backward compatibility:
24951 ac_top_builddir=$ac_top_build_prefix
24953 case $srcdir in
24954 .) # We are building in place.
24955 ac_srcdir=.
24956 ac_top_srcdir=$ac_top_builddir_sub
24957 ac_abs_top_srcdir=$ac_pwd ;;
24958 [\\/]* | ?:[\\/]* ) # Absolute name.
24959 ac_srcdir=$srcdir$ac_dir_suffix;
24960 ac_top_srcdir=$srcdir
24961 ac_abs_top_srcdir=$srcdir ;;
24962 *) # Relative name.
24963 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24964 ac_top_srcdir=$ac_top_build_prefix$srcdir
24965 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24966 esac
24967 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24970 case $ac_mode in
24973 # CONFIG_FILE
24976 case $INSTALL in
24977 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24978 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24979 esac
24980 _ACEOF
24982 cat >>$CONFIG_STATUS <<\_ACEOF
24983 # If the template does not know about datarootdir, expand it.
24984 # FIXME: This hack should be removed a few years after 2.60.
24985 ac_datarootdir_hack=; ac_datarootdir_seen=
24987 case `sed -n '/datarootdir/ {
24991 /@datadir@/p
24992 /@docdir@/p
24993 /@infodir@/p
24994 /@localedir@/p
24995 /@mandir@/p
24996 ' $ac_file_inputs` in
24997 *datarootdir*) ac_datarootdir_seen=yes;;
24998 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24999 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25000 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25001 _ACEOF
25002 cat >>$CONFIG_STATUS <<_ACEOF
25003 ac_datarootdir_hack='
25004 s&@datadir@&$datadir&g
25005 s&@docdir@&$docdir&g
25006 s&@infodir@&$infodir&g
25007 s&@localedir@&$localedir&g
25008 s&@mandir@&$mandir&g
25009 s&\\\${datarootdir}&$datarootdir&g' ;;
25010 esac
25011 _ACEOF
25013 # Neutralize VPATH when `$srcdir' = `.'.
25014 # Shell code in configure.ac might set extrasub.
25015 # FIXME: do we really want to maintain this feature?
25016 cat >>$CONFIG_STATUS <<_ACEOF
25017 sed "$ac_vpsub
25018 $extrasub
25019 _ACEOF
25020 cat >>$CONFIG_STATUS <<\_ACEOF
25022 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25023 s&@configure_input@&$configure_input&;t t
25024 s&@top_builddir@&$ac_top_builddir_sub&;t t
25025 s&@srcdir@&$ac_srcdir&;t t
25026 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25027 s&@top_srcdir@&$ac_top_srcdir&;t t
25028 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25029 s&@builddir@&$ac_builddir&;t t
25030 s&@abs_builddir@&$ac_abs_builddir&;t t
25031 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25032 s&@INSTALL@&$ac_INSTALL&;t t
25033 $ac_datarootdir_hack
25034 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25036 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25037 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25038 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25039 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25040 which seems to be undefined. Please make sure it is defined." >&5
25041 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25042 which seems to be undefined. Please make sure it is defined." >&2;}
25044 rm -f "$tmp/stdin"
25045 case $ac_file in
25046 -) cat "$tmp/out"; rm -f "$tmp/out";;
25047 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25048 esac
25052 # CONFIG_HEADER
25054 _ACEOF
25056 # Transform confdefs.h into a sed script `conftest.defines', that
25057 # substitutes the proper values into config.h.in to produce config.h.
25058 rm -f conftest.defines conftest.tail
25059 # First, append a space to every undef/define line, to ease matching.
25060 echo 's/$/ /' >conftest.defines
25061 # Then, protect against being on the right side of a sed subst, or in
25062 # an unquoted here document, in config.status. If some macros were
25063 # called several times there might be several #defines for the same
25064 # symbol, which is useless. But do not sort them, since the last
25065 # AC_DEFINE must be honored.
25066 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25067 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25068 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25069 # PARAMS is the parameter list in the macro definition--in most cases, it's
25070 # just an empty string.
25071 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25072 ac_dB='\\)[ (].*,\\1define\\2'
25073 ac_dC=' '
25074 ac_dD=' ,'
25076 uniq confdefs.h |
25077 sed -n '
25078 t rset
25079 :rset
25080 s/^[ ]*#[ ]*define[ ][ ]*//
25081 t ok
25084 s/[\\&,]/\\&/g
25085 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25086 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25087 ' >>conftest.defines
25089 # Remove the space that was appended to ease matching.
25090 # Then replace #undef with comments. This is necessary, for
25091 # example, in the case of _POSIX_SOURCE, which is predefined and required
25092 # on some systems where configure will not decide to define it.
25093 # (The regexp can be short, since the line contains either #define or #undef.)
25094 echo 's/ $//
25095 s,^[ #]*u.*,/* & */,' >>conftest.defines
25097 # Break up conftest.defines:
25098 ac_max_sed_lines=50
25100 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25101 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25102 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25103 # et cetera.
25104 ac_in='$ac_file_inputs'
25105 ac_out='"$tmp/out1"'
25106 ac_nxt='"$tmp/out2"'
25108 while :
25110 # Write a here document:
25111 cat >>$CONFIG_STATUS <<_ACEOF
25112 # First, check the format of the line:
25113 cat >"\$tmp/defines.sed" <<\\CEOF
25114 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25115 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25117 :def
25118 _ACEOF
25119 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25120 echo 'CEOF
25121 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25122 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25123 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25124 grep . conftest.tail >/dev/null || break
25125 rm -f conftest.defines
25126 mv conftest.tail conftest.defines
25127 done
25128 rm -f conftest.defines conftest.tail
25130 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25131 cat >>$CONFIG_STATUS <<\_ACEOF
25132 if test x"$ac_file" != x-; then
25133 echo "/* $configure_input */" >"$tmp/config.h"
25134 cat "$ac_result" >>"$tmp/config.h"
25135 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25136 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25137 echo "$as_me: $ac_file is unchanged" >&6;}
25138 else
25139 rm -f $ac_file
25140 mv "$tmp/config.h" $ac_file
25142 else
25143 echo "/* $configure_input */"
25144 cat "$ac_result"
25146 rm -f "$tmp/out12"
25149 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25150 echo "$as_me: executing $ac_file commands" >&6;}
25152 esac
25155 case $ac_file$ac_mode in
25156 "default":C)
25158 ### Make the necessary directories, if they don't exist.
25159 for dir in etc lisp ; do
25160 test -d ${dir} || mkdir ${dir}
25161 done
25163 # Build src/Makefile from ${srcdir}/src/Makefile.c
25164 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25165 # This must be done after src/config.h is built, since we rely on that file.
25167 # Now get this: Some word that is part of the ${srcdir} directory name
25168 # or the ${configuration} value might, just might, happen to be an
25169 # identifier like `sun4' or `i386' or something, and be predefined by
25170 # the C preprocessor to some helpful value like 1, or maybe the empty
25171 # string. Needless to say consequent macro substitutions are less
25172 # than conducive to the makefile finding the correct directory.
25173 undefs="`echo $top_srcdir $configuration $canonical |
25174 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25175 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
25178 echo creating src/epaths.h
25179 ${MAKE-make} epaths-force
25181 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25182 # `..' to `. .' unless invoked with -traditional
25184 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
25185 CPPFLAGS="$CPPFLAGS -traditional"
25188 echo creating lib-src/Makefile
25189 ( cd lib-src
25190 rm -f junk.c junk1.c junk2.c
25191 sed -e '/start of cpp stuff/q' \
25192 < Makefile.c > junk1.c
25193 sed -e '1,/start of cpp stuff/d'\
25194 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25195 < Makefile.c > junk.c
25196 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25197 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25198 cat junk1.c junk2.c > Makefile.new
25199 rm -f junk.c junk1.c junk2.c
25200 chmod 444 Makefile.new
25201 mv -f Makefile.new Makefile
25204 echo creating src/Makefile
25205 ( cd src
25206 rm -f junk.c junk1.c junk2.c
25207 sed -e '/start of cpp stuff/q' \
25208 < Makefile.c > junk1.c
25209 sed -e '1,/start of cpp stuff/d'\
25210 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25211 < Makefile.c > junk.c
25212 if test -f ${srcdir}/admin/unidata/UnicodeData.txt; then
25213 CPPFLAGS="$CPPFLAGS -DHAVE_UNIDATA"
25215 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25216 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25217 cat junk1.c junk2.c > Makefile.new
25218 rm -f junk.c junk1.c junk2.c
25219 chmod 444 Makefile.new
25220 mv -f Makefile.new Makefile
25223 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25224 echo creating src/.gdbinit
25225 echo source $srcdir/src/.gdbinit > src/.gdbinit
25228 # This is how we know whether to re-run configure in certain cases.
25229 touch src/config.stamp
25233 esac
25234 done # for ac_tag
25237 { (exit 0); exit 0; }
25238 _ACEOF
25239 chmod +x $CONFIG_STATUS
25240 ac_clean_files=$ac_clean_files_save
25243 # configure is writing to config.log, and then calls config.status.
25244 # config.status does its own redirection, appending to config.log.
25245 # Unfortunately, on DOS this fails, as config.log is still kept open
25246 # by configure, so config.status won't be able to write to it; its
25247 # output is simply discarded. So we exec the FD to /dev/null,
25248 # effectively closing config.log, so it can be properly (re)opened and
25249 # appended to by config.status. When coming back to configure, we
25250 # need to make the FD available again.
25251 if test "$no_create" != yes; then
25252 ac_cs_success=:
25253 ac_config_status_args=
25254 test "$silent" = yes &&
25255 ac_config_status_args="$ac_config_status_args --quiet"
25256 exec 5>/dev/null
25257 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25258 exec 5>>config.log
25259 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25260 # would make configure fail if this is the last instruction.
25261 $ac_cs_success || { (exit 1); exit 1; }