(nnmairix-request-group): Bind nnmairix-fast and nnmairix-group around
[emacs.git] / configure
blobc20bc90d133982fa9c34bc6b75fcec1ee158bd99
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for emacs 23.0.50.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560 # Initializations.
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
573 PACKAGE_NAME='emacs'
574 PACKAGE_TARNAME='emacs'
575 PACKAGE_VERSION='23.0.50'
576 PACKAGE_STRING='emacs 23.0.50'
577 PACKAGE_BUGREPORT=''
579 ac_unique_file="src/lisp.h"
580 ac_config_libobj_dir=src
581 # Factoring default headers for most tests.
582 ac_includes_default="\
583 #include <stdio.h>
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
586 #endif
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
589 #endif
590 #ifdef STDC_HEADERS
591 # include <stdlib.h>
592 # include <stddef.h>
593 #else
594 # ifdef HAVE_STDLIB_H
595 # include <stdlib.h>
596 # endif
597 #endif
598 #ifdef HAVE_STRING_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600 # include <memory.h>
601 # endif
602 # include <string.h>
603 #endif
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
606 #endif
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
609 #endif
610 #ifdef HAVE_STDINT_H
611 # include <stdint.h>
612 #endif
613 #ifdef HAVE_UNISTD_H
614 # include <unistd.h>
615 #endif"
617 ac_header_list=
618 ac_func_list=
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 MAINT
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
673 GREP
674 EGREP
675 LN_S
676 INSTALL_PROGRAM
677 INSTALL_SCRIPT
678 INSTALL_DATA
679 RANLIB
680 INSTALL_INFO
681 GZIP_PROG
682 MAKEINFO
683 LIBSOUND
684 PKG_CONFIG
685 ALSA_CFLAGS
686 ALSA_LIBS
687 CFLAGS_SOUND
688 SET_MAKE
689 XMKMF
690 HAVE_XSERVER
691 RSVG_CFLAGS
692 RSVG_LIBS
693 GTK_CFLAGS
694 GTK_LIBS
695 DBUS_CFLAGS
696 DBUS_LIBS
697 XFT_CFLAGS
698 XFT_LIBS
699 FREETYPE_CFLAGS
700 FREETYPE_LIBS
701 FONTCONFIG_CFLAGS
702 FONTCONFIG_LIBS
703 LIBOTF_CFLAGS
704 LIBOTF_LIBS
705 M17N_FLT_CFLAGS
706 M17N_FLT_LIBS
707 ALLOCA
708 liblockfile
709 LIBOBJS
710 NEED_SETGID
711 KMEM_GROUP
712 GETLOADAVG_LIBS
713 GETOPT_H
714 GETOPTOBJS
715 version
716 configuration
717 canonical
718 srcdir
719 lispdir
720 locallisppath
721 lisppath
722 x_default_search_path
723 etcdir
724 archlibdir
725 bitmapdir
726 gamedir
727 gameuser
728 c_switch_system
729 c_switch_machine
730 LD_SWITCH_X_SITE
731 LD_SWITCH_X_SITE_AUX
732 C_SWITCH_X_SITE
733 X_TOOLKIT_TYPE
734 machfile
735 opsysfile
736 carbon_appdir
737 LTLIBOBJS'
738 ac_subst_files=''
739 ac_precious_vars='build_alias
740 host_alias
741 target_alias
743 CFLAGS
744 LDFLAGS
745 LIBS
746 CPPFLAGS
748 XMKMF'
751 # Initialize some variables set by options.
752 ac_init_help=
753 ac_init_version=false
754 # The variables have the same names as the options, with
755 # dashes changed to underlines.
756 cache_file=/dev/null
757 exec_prefix=NONE
758 no_create=
759 no_recursion=
760 prefix=NONE
761 program_prefix=NONE
762 program_suffix=NONE
763 program_transform_name=s,x,x,
764 silent=
765 site=
766 srcdir=
767 verbose=
768 x_includes=NONE
769 x_libraries=NONE
771 # Installation directory options.
772 # These are left unexpanded so users can "make install exec_prefix=/foo"
773 # and all the variables that are supposed to be based on exec_prefix
774 # by default will actually change.
775 # Use braces instead of parens because sh, perl, etc. also accept them.
776 # (The list follows the same order as the GNU Coding Standards.)
777 bindir='${exec_prefix}/bin'
778 sbindir='${exec_prefix}/sbin'
779 libexecdir='${exec_prefix}/libexec'
780 datarootdir='${prefix}/share'
781 datadir='${datarootdir}'
782 sysconfdir='${prefix}/etc'
783 sharedstatedir='${prefix}/com'
784 localstatedir='${prefix}/var'
785 includedir='${prefix}/include'
786 oldincludedir='/usr/include'
787 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
788 infodir='${datarootdir}/info'
789 htmldir='${docdir}'
790 dvidir='${docdir}'
791 pdfdir='${docdir}'
792 psdir='${docdir}'
793 libdir='${exec_prefix}/lib'
794 localedir='${datarootdir}/locale'
795 mandir='${datarootdir}/man'
797 ac_prev=
798 ac_dashdash=
799 for ac_option
801 # If the previous option needs an argument, assign it.
802 if test -n "$ac_prev"; then
803 eval $ac_prev=\$ac_option
804 ac_prev=
805 continue
808 case $ac_option in
809 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
810 *) ac_optarg=yes ;;
811 esac
813 # Accept the important Cygnus configure options, so we can diagnose typos.
815 case $ac_dashdash$ac_option in
817 ac_dashdash=yes ;;
819 -bindir | --bindir | --bindi | --bind | --bin | --bi)
820 ac_prev=bindir ;;
821 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
822 bindir=$ac_optarg ;;
824 -build | --build | --buil | --bui | --bu)
825 ac_prev=build_alias ;;
826 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
827 build_alias=$ac_optarg ;;
829 -cache-file | --cache-file | --cache-fil | --cache-fi \
830 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
831 ac_prev=cache_file ;;
832 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
833 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
834 cache_file=$ac_optarg ;;
836 --config-cache | -C)
837 cache_file=config.cache ;;
839 -datadir | --datadir | --datadi | --datad)
840 ac_prev=datadir ;;
841 -datadir=* | --datadir=* | --datadi=* | --datad=*)
842 datadir=$ac_optarg ;;
844 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
845 | --dataroo | --dataro | --datar)
846 ac_prev=datarootdir ;;
847 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
848 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
849 datarootdir=$ac_optarg ;;
851 -disable-* | --disable-*)
852 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
853 # Reject names that are not valid shell variable names.
854 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
855 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
856 { (exit 1); exit 1; }; }
857 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
858 eval enable_$ac_feature=no ;;
860 -docdir | --docdir | --docdi | --doc | --do)
861 ac_prev=docdir ;;
862 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
863 docdir=$ac_optarg ;;
865 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
866 ac_prev=dvidir ;;
867 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
868 dvidir=$ac_optarg ;;
870 -enable-* | --enable-*)
871 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
872 # Reject names that are not valid shell variable names.
873 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
874 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
875 { (exit 1); exit 1; }; }
876 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
877 eval enable_$ac_feature=\$ac_optarg ;;
879 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
880 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
881 | --exec | --exe | --ex)
882 ac_prev=exec_prefix ;;
883 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
884 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
885 | --exec=* | --exe=* | --ex=*)
886 exec_prefix=$ac_optarg ;;
888 -gas | --gas | --ga | --g)
889 # Obsolete; use --with-gas.
890 with_gas=yes ;;
892 -help | --help | --hel | --he | -h)
893 ac_init_help=long ;;
894 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
895 ac_init_help=recursive ;;
896 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
897 ac_init_help=short ;;
899 -host | --host | --hos | --ho)
900 ac_prev=host_alias ;;
901 -host=* | --host=* | --hos=* | --ho=*)
902 host_alias=$ac_optarg ;;
904 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
905 ac_prev=htmldir ;;
906 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
907 | --ht=*)
908 htmldir=$ac_optarg ;;
910 -includedir | --includedir | --includedi | --included | --include \
911 | --includ | --inclu | --incl | --inc)
912 ac_prev=includedir ;;
913 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
914 | --includ=* | --inclu=* | --incl=* | --inc=*)
915 includedir=$ac_optarg ;;
917 -infodir | --infodir | --infodi | --infod | --info | --inf)
918 ac_prev=infodir ;;
919 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
920 infodir=$ac_optarg ;;
922 -libdir | --libdir | --libdi | --libd)
923 ac_prev=libdir ;;
924 -libdir=* | --libdir=* | --libdi=* | --libd=*)
925 libdir=$ac_optarg ;;
927 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
928 | --libexe | --libex | --libe)
929 ac_prev=libexecdir ;;
930 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
931 | --libexe=* | --libex=* | --libe=*)
932 libexecdir=$ac_optarg ;;
934 -localedir | --localedir | --localedi | --localed | --locale)
935 ac_prev=localedir ;;
936 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
937 localedir=$ac_optarg ;;
939 -localstatedir | --localstatedir | --localstatedi | --localstated \
940 | --localstate | --localstat | --localsta | --localst | --locals)
941 ac_prev=localstatedir ;;
942 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
943 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
944 localstatedir=$ac_optarg ;;
946 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
947 ac_prev=mandir ;;
948 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
949 mandir=$ac_optarg ;;
951 -nfp | --nfp | --nf)
952 # Obsolete; use --without-fp.
953 with_fp=no ;;
955 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
956 | --no-cr | --no-c | -n)
957 no_create=yes ;;
959 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
960 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
961 no_recursion=yes ;;
963 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
964 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
965 | --oldin | --oldi | --old | --ol | --o)
966 ac_prev=oldincludedir ;;
967 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
968 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
969 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
970 oldincludedir=$ac_optarg ;;
972 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
973 ac_prev=prefix ;;
974 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
975 prefix=$ac_optarg ;;
977 -program-prefix | --program-prefix | --program-prefi | --program-pref \
978 | --program-pre | --program-pr | --program-p)
979 ac_prev=program_prefix ;;
980 -program-prefix=* | --program-prefix=* | --program-prefi=* \
981 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
982 program_prefix=$ac_optarg ;;
984 -program-suffix | --program-suffix | --program-suffi | --program-suff \
985 | --program-suf | --program-su | --program-s)
986 ac_prev=program_suffix ;;
987 -program-suffix=* | --program-suffix=* | --program-suffi=* \
988 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
989 program_suffix=$ac_optarg ;;
991 -program-transform-name | --program-transform-name \
992 | --program-transform-nam | --program-transform-na \
993 | --program-transform-n | --program-transform- \
994 | --program-transform | --program-transfor \
995 | --program-transfo | --program-transf \
996 | --program-trans | --program-tran \
997 | --progr-tra | --program-tr | --program-t)
998 ac_prev=program_transform_name ;;
999 -program-transform-name=* | --program-transform-name=* \
1000 | --program-transform-nam=* | --program-transform-na=* \
1001 | --program-transform-n=* | --program-transform-=* \
1002 | --program-transform=* | --program-transfor=* \
1003 | --program-transfo=* | --program-transf=* \
1004 | --program-trans=* | --program-tran=* \
1005 | --progr-tra=* | --program-tr=* | --program-t=*)
1006 program_transform_name=$ac_optarg ;;
1008 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1009 ac_prev=pdfdir ;;
1010 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1011 pdfdir=$ac_optarg ;;
1013 -psdir | --psdir | --psdi | --psd | --ps)
1014 ac_prev=psdir ;;
1015 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1016 psdir=$ac_optarg ;;
1018 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1019 | -silent | --silent | --silen | --sile | --sil)
1020 silent=yes ;;
1022 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1023 ac_prev=sbindir ;;
1024 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1025 | --sbi=* | --sb=*)
1026 sbindir=$ac_optarg ;;
1028 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1029 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1030 | --sharedst | --shareds | --shared | --share | --shar \
1031 | --sha | --sh)
1032 ac_prev=sharedstatedir ;;
1033 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1034 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1035 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1036 | --sha=* | --sh=*)
1037 sharedstatedir=$ac_optarg ;;
1039 -site | --site | --sit)
1040 ac_prev=site ;;
1041 -site=* | --site=* | --sit=*)
1042 site=$ac_optarg ;;
1044 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1045 ac_prev=srcdir ;;
1046 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1047 srcdir=$ac_optarg ;;
1049 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1050 | --syscon | --sysco | --sysc | --sys | --sy)
1051 ac_prev=sysconfdir ;;
1052 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1053 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1054 sysconfdir=$ac_optarg ;;
1056 -target | --target | --targe | --targ | --tar | --ta | --t)
1057 ac_prev=target_alias ;;
1058 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1059 target_alias=$ac_optarg ;;
1061 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1062 verbose=yes ;;
1064 -version | --version | --versio | --versi | --vers | -V)
1065 ac_init_version=: ;;
1067 -with-* | --with-*)
1068 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1071 { echo "$as_me: error: invalid package name: $ac_package" >&2
1072 { (exit 1); exit 1; }; }
1073 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1074 eval with_$ac_package=\$ac_optarg ;;
1076 -without-* | --without-*)
1077 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1080 { echo "$as_me: error: invalid package name: $ac_package" >&2
1081 { (exit 1); exit 1; }; }
1082 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1083 eval with_$ac_package=no ;;
1085 --x)
1086 # Obsolete; use --with-x.
1087 with_x=yes ;;
1089 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1090 | --x-incl | --x-inc | --x-in | --x-i)
1091 ac_prev=x_includes ;;
1092 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1093 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1094 x_includes=$ac_optarg ;;
1096 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1097 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1098 ac_prev=x_libraries ;;
1099 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1100 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1101 x_libraries=$ac_optarg ;;
1103 -*) { echo "$as_me: error: unrecognized option: $ac_option
1104 Try \`$0 --help' for more information." >&2
1105 { (exit 1); exit 1; }; }
1108 *=*)
1109 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1112 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1113 { (exit 1); exit 1; }; }
1114 eval $ac_envvar=\$ac_optarg
1115 export $ac_envvar ;;
1118 # FIXME: should be removed in autoconf 3.0.
1119 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1120 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1121 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1122 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1125 esac
1126 done
1128 if test -n "$ac_prev"; then
1129 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1130 { echo "$as_me: error: missing argument to $ac_option" >&2
1131 { (exit 1); exit 1; }; }
1134 # Be sure to have absolute directory names.
1135 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1136 datadir sysconfdir sharedstatedir localstatedir includedir \
1137 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1138 libdir localedir mandir
1140 eval ac_val=\$$ac_var
1141 case $ac_val in
1142 [\\/$]* | ?:[\\/]* ) continue;;
1143 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1144 esac
1145 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1146 { (exit 1); exit 1; }; }
1147 done
1149 # There might be people who depend on the old broken behavior: `$host'
1150 # used to hold the argument of --host etc.
1151 # FIXME: To remove some day.
1152 build=$build_alias
1153 host=$host_alias
1154 target=$target_alias
1156 # FIXME: To remove some day.
1157 if test "x$host_alias" != x; then
1158 if test "x$build_alias" = x; then
1159 cross_compiling=maybe
1160 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1161 If a cross compiler is detected then cross compile mode will be used." >&2
1162 elif test "x$build_alias" != "x$host_alias"; then
1163 cross_compiling=yes
1167 ac_tool_prefix=
1168 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1170 test "$silent" = yes && exec 6>/dev/null
1173 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1174 ac_ls_di=`ls -di .` &&
1175 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1176 { echo "$as_me: error: Working directory cannot be determined" >&2
1177 { (exit 1); exit 1; }; }
1178 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1179 { echo "$as_me: error: pwd does not report name of working directory" >&2
1180 { (exit 1); exit 1; }; }
1183 # Find the source files, if location was not specified.
1184 if test -z "$srcdir"; then
1185 ac_srcdir_defaulted=yes
1186 # Try the directory containing this script, then the parent directory.
1187 ac_confdir=`$as_dirname -- "$0" ||
1188 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1189 X"$0" : 'X\(//\)[^/]' \| \
1190 X"$0" : 'X\(//\)$' \| \
1191 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1192 echo X"$0" |
1193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1194 s//\1/
1197 /^X\(\/\/\)[^/].*/{
1198 s//\1/
1201 /^X\(\/\/\)$/{
1202 s//\1/
1205 /^X\(\/\).*/{
1206 s//\1/
1209 s/.*/./; q'`
1210 srcdir=$ac_confdir
1211 if test ! -r "$srcdir/$ac_unique_file"; then
1212 srcdir=..
1214 else
1215 ac_srcdir_defaulted=no
1217 if test ! -r "$srcdir/$ac_unique_file"; then
1218 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1219 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1220 { (exit 1); exit 1; }; }
1222 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1223 ac_abs_confdir=`(
1224 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1225 { (exit 1); exit 1; }; }
1226 pwd)`
1227 # When building in place, set srcdir=.
1228 if test "$ac_abs_confdir" = "$ac_pwd"; then
1229 srcdir=.
1231 # Remove unnecessary trailing slashes from srcdir.
1232 # Double slashes in file names in object file debugging info
1233 # mess up M-x gdb in Emacs.
1234 case $srcdir in
1235 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1236 esac
1237 for ac_var in $ac_precious_vars; do
1238 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1239 eval ac_env_${ac_var}_value=\$${ac_var}
1240 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1241 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1242 done
1245 # Report the --help message.
1247 if test "$ac_init_help" = "long"; then
1248 # Omit some internal or obsolete options to make the list less imposing.
1249 # This message is too long to be a string in the A/UX 3.1 sh.
1250 cat <<_ACEOF
1251 \`configure' configures emacs 23.0.50 to adapt to many kinds of systems.
1253 Usage: $0 [OPTION]... [VAR=VALUE]...
1255 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1256 VAR=VALUE. See below for descriptions of some of the useful variables.
1258 Defaults for the options are specified in brackets.
1260 Configuration:
1261 -h, --help display this help and exit
1262 --help=short display options specific to this package
1263 --help=recursive display the short help of all the included packages
1264 -V, --version display version information and exit
1265 -q, --quiet, --silent do not print \`checking...' messages
1266 --cache-file=FILE cache test results in FILE [disabled]
1267 -C, --config-cache alias for \`--cache-file=config.cache'
1268 -n, --no-create do not create output files
1269 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1271 Installation directories:
1272 --prefix=PREFIX install architecture-independent files in PREFIX
1273 [$ac_default_prefix]
1274 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1275 [PREFIX]
1277 By default, \`make install' will install all the files in
1278 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1279 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1280 for instance \`--prefix=\$HOME'.
1282 For better control, use the options below.
1284 Fine tuning of the installation directories:
1285 --bindir=DIR user executables [EPREFIX/bin]
1286 --sbindir=DIR system admin executables [EPREFIX/sbin]
1287 --libexecdir=DIR program executables [EPREFIX/libexec]
1288 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1289 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1290 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1291 --libdir=DIR object code libraries [EPREFIX/lib]
1292 --includedir=DIR C header files [PREFIX/include]
1293 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1294 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1295 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1296 --infodir=DIR info documentation [DATAROOTDIR/info]
1297 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1298 --mandir=DIR man documentation [DATAROOTDIR/man]
1299 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1300 --htmldir=DIR html documentation [DOCDIR]
1301 --dvidir=DIR dvi documentation [DOCDIR]
1302 --pdfdir=DIR pdf documentation [DOCDIR]
1303 --psdir=DIR ps documentation [DOCDIR]
1304 _ACEOF
1306 cat <<\_ACEOF
1308 Program names:
1309 --program-prefix=PREFIX prepend PREFIX to installed program names
1310 --program-suffix=SUFFIX append SUFFIX to installed program names
1311 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1313 X features:
1314 --x-includes=DIR X include files are in DIR
1315 --x-libraries=DIR X library files are in DIR
1317 System types:
1318 --build=BUILD configure for building on BUILD [guessed]
1319 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1320 _ACEOF
1323 if test -n "$ac_init_help"; then
1324 case $ac_init_help in
1325 short | recursive ) echo "Configuration of emacs 23.0.50:";;
1326 esac
1327 cat <<\_ACEOF
1329 Optional Features:
1330 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1331 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1332 --enable-carbon-app[=DIR]
1333 specify install directory for Emacs.app on Mac OS X
1334 [DIR=/Application]
1335 --enable-font-backend compile code of font-backend support
1336 --enable-asserts compile code with asserts enabled
1337 --enable-maintainer-mode
1338 enable make rules and dependencies not useful (and
1339 sometimes confusing) to the casual installer
1340 --enable-locallisppath=PATH
1341 directories Emacs should search for lisp files
1342 specific to this site
1343 --disable-largefile omit support for large files
1345 Optional Packages:
1346 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1347 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1348 --without-pop don't support POP mail retrieval with movemail
1349 --with-kerberos support Kerberos-authenticated POP
1350 --with-kerberos5 support Kerberos version 5 authenticated POP
1351 --with-hesiod support Hesiod to get the POP server host
1352 --without-sound don't compile with sound support
1353 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1354 motif, gtk, no)
1355 --without-xpm don't compile with XPM image support
1356 --without-jpeg don't compile with JPEG image support
1357 --without-tiff don't compile with TIFF image support
1358 --without-gif don't compile with GIF image support
1359 --without-png don't compile with PNG image support
1360 --without-rsvg don't compile with SVG image support
1361 --without-freetype don't use Freetype for local font support
1362 --without-xft don't use XFT for anti aliased fonts
1363 --without-libotf don't use libotf for OpenType font support
1364 --without-m17n-flt don't use m17n-flt for text shaping
1365 --without-toolkit-scroll-bars
1366 don't use Motif or Xaw3d scroll bars
1367 --without-xaw3d don't use Xaw3d
1368 --without-xim don't use X11 XIM
1369 --with-carbon use Carbon GUI on Mac OS X. This is unsupported!
1370 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1371 console
1372 --without-dbus don't compile with D-Bus support
1374 --with-pkg-config-prog=PATH
1375 Path to pkg-config for finding GTK and librsvg
1376 --with-x use the X Window System
1378 Some influential environment variables:
1379 CC C compiler command
1380 CFLAGS C compiler flags
1381 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1382 nonstandard directory <lib dir>
1383 LIBS libraries to pass to the linker, e.g. -l<library>
1384 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1385 you have headers in a nonstandard directory <include dir>
1386 CPP C preprocessor
1387 XMKMF Path to xmkmf, Makefile generator for X Window System
1389 Use these variables to override the choices made by `configure' or to help
1390 it to find libraries and programs with nonstandard names/locations.
1392 _ACEOF
1393 ac_status=$?
1396 if test "$ac_init_help" = "recursive"; then
1397 # If there are subdirs, report their specific --help.
1398 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1399 test -d "$ac_dir" || continue
1400 ac_builddir=.
1402 case "$ac_dir" in
1403 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1405 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1406 # A ".." for each directory in $ac_dir_suffix.
1407 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1408 case $ac_top_builddir_sub in
1409 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1410 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1411 esac ;;
1412 esac
1413 ac_abs_top_builddir=$ac_pwd
1414 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1415 # for backward compatibility:
1416 ac_top_builddir=$ac_top_build_prefix
1418 case $srcdir in
1419 .) # We are building in place.
1420 ac_srcdir=.
1421 ac_top_srcdir=$ac_top_builddir_sub
1422 ac_abs_top_srcdir=$ac_pwd ;;
1423 [\\/]* | ?:[\\/]* ) # Absolute name.
1424 ac_srcdir=$srcdir$ac_dir_suffix;
1425 ac_top_srcdir=$srcdir
1426 ac_abs_top_srcdir=$srcdir ;;
1427 *) # Relative name.
1428 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1429 ac_top_srcdir=$ac_top_build_prefix$srcdir
1430 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1431 esac
1432 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1434 cd "$ac_dir" || { ac_status=$?; continue; }
1435 # Check for guested configure.
1436 if test -f "$ac_srcdir/configure.gnu"; then
1437 echo &&
1438 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1439 elif test -f "$ac_srcdir/configure"; then
1440 echo &&
1441 $SHELL "$ac_srcdir/configure" --help=recursive
1442 else
1443 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1444 fi || ac_status=$?
1445 cd "$ac_pwd" || { ac_status=$?; break; }
1446 done
1449 test -n "$ac_init_help" && exit $ac_status
1450 if $ac_init_version; then
1451 cat <<\_ACEOF
1452 emacs configure 23.0.50
1453 generated by GNU Autoconf 2.61
1455 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1456 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1457 This configure script is free software; the Free Software Foundation
1458 gives unlimited permission to copy, distribute and modify it.
1459 _ACEOF
1460 exit
1462 cat >config.log <<_ACEOF
1463 This file contains any messages produced by compilers while
1464 running configure, to aid debugging if configure makes a mistake.
1466 It was created by emacs $as_me 23.0.50, which was
1467 generated by GNU Autoconf 2.61. Invocation command line was
1469 $ $0 $@
1471 _ACEOF
1472 exec 5>>config.log
1474 cat <<_ASUNAME
1475 ## --------- ##
1476 ## Platform. ##
1477 ## --------- ##
1479 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1480 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1481 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1482 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1483 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1485 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1486 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1488 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1489 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1490 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1491 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1492 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1493 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1494 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1496 _ASUNAME
1498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1499 for as_dir in $PATH
1501 IFS=$as_save_IFS
1502 test -z "$as_dir" && as_dir=.
1503 echo "PATH: $as_dir"
1504 done
1505 IFS=$as_save_IFS
1507 } >&5
1509 cat >&5 <<_ACEOF
1512 ## ----------- ##
1513 ## Core tests. ##
1514 ## ----------- ##
1516 _ACEOF
1519 # Keep a trace of the command line.
1520 # Strip out --no-create and --no-recursion so they do not pile up.
1521 # Strip out --silent because we don't want to record it for future runs.
1522 # Also quote any args containing shell meta-characters.
1523 # Make two passes to allow for proper duplicate-argument suppression.
1524 ac_configure_args=
1525 ac_configure_args0=
1526 ac_configure_args1=
1527 ac_must_keep_next=false
1528 for ac_pass in 1 2
1530 for ac_arg
1532 case $ac_arg in
1533 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1534 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1535 | -silent | --silent | --silen | --sile | --sil)
1536 continue ;;
1537 *\'*)
1538 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1539 esac
1540 case $ac_pass in
1541 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1543 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1544 if test $ac_must_keep_next = true; then
1545 ac_must_keep_next=false # Got value, back to normal.
1546 else
1547 case $ac_arg in
1548 *=* | --config-cache | -C | -disable-* | --disable-* \
1549 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1550 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1551 | -with-* | --with-* | -without-* | --without-* | --x)
1552 case "$ac_configure_args0 " in
1553 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1554 esac
1556 -* ) ac_must_keep_next=true ;;
1557 esac
1559 ac_configure_args="$ac_configure_args '$ac_arg'"
1561 esac
1562 done
1563 done
1564 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1565 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1567 # When interrupted or exit'd, cleanup temporary files, and complete
1568 # config.log. We remove comments because anyway the quotes in there
1569 # would cause problems or look ugly.
1570 # WARNING: Use '\'' to represent an apostrophe within the trap.
1571 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1572 trap 'exit_status=$?
1573 # Save into config.log some information that might help in debugging.
1575 echo
1577 cat <<\_ASBOX
1578 ## ---------------- ##
1579 ## Cache variables. ##
1580 ## ---------------- ##
1581 _ASBOX
1582 echo
1583 # The following way of writing the cache mishandles newlines in values,
1585 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1586 eval ac_val=\$$ac_var
1587 case $ac_val in #(
1588 *${as_nl}*)
1589 case $ac_var in #(
1590 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1591 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1592 esac
1593 case $ac_var in #(
1594 _ | IFS | as_nl) ;; #(
1595 *) $as_unset $ac_var ;;
1596 esac ;;
1597 esac
1598 done
1599 (set) 2>&1 |
1600 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1601 *${as_nl}ac_space=\ *)
1602 sed -n \
1603 "s/'\''/'\''\\\\'\'''\''/g;
1604 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1605 ;; #(
1607 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1609 esac |
1610 sort
1612 echo
1614 cat <<\_ASBOX
1615 ## ----------------- ##
1616 ## Output variables. ##
1617 ## ----------------- ##
1618 _ASBOX
1619 echo
1620 for ac_var in $ac_subst_vars
1622 eval ac_val=\$$ac_var
1623 case $ac_val in
1624 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1625 esac
1626 echo "$ac_var='\''$ac_val'\''"
1627 done | sort
1628 echo
1630 if test -n "$ac_subst_files"; then
1631 cat <<\_ASBOX
1632 ## ------------------- ##
1633 ## File substitutions. ##
1634 ## ------------------- ##
1635 _ASBOX
1636 echo
1637 for ac_var in $ac_subst_files
1639 eval ac_val=\$$ac_var
1640 case $ac_val in
1641 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1642 esac
1643 echo "$ac_var='\''$ac_val'\''"
1644 done | sort
1645 echo
1648 if test -s confdefs.h; then
1649 cat <<\_ASBOX
1650 ## ----------- ##
1651 ## confdefs.h. ##
1652 ## ----------- ##
1653 _ASBOX
1654 echo
1655 cat confdefs.h
1656 echo
1658 test "$ac_signal" != 0 &&
1659 echo "$as_me: caught signal $ac_signal"
1660 echo "$as_me: exit $exit_status"
1661 } >&5
1662 rm -f core *.core core.conftest.* &&
1663 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1664 exit $exit_status
1666 for ac_signal in 1 2 13 15; do
1667 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1668 done
1669 ac_signal=0
1671 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1672 rm -f -r conftest* confdefs.h
1674 # Predefined preprocessor variables.
1676 cat >>confdefs.h <<_ACEOF
1677 #define PACKAGE_NAME "$PACKAGE_NAME"
1678 _ACEOF
1681 cat >>confdefs.h <<_ACEOF
1682 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1683 _ACEOF
1686 cat >>confdefs.h <<_ACEOF
1687 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1688 _ACEOF
1691 cat >>confdefs.h <<_ACEOF
1692 #define PACKAGE_STRING "$PACKAGE_STRING"
1693 _ACEOF
1696 cat >>confdefs.h <<_ACEOF
1697 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1698 _ACEOF
1701 # Let the site file select an alternate cache file if it wants to.
1702 # Prefer explicitly selected file to automatically selected ones.
1703 if test -n "$CONFIG_SITE"; then
1704 set x "$CONFIG_SITE"
1705 elif test "x$prefix" != xNONE; then
1706 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1707 else
1708 set x "$ac_default_prefix/share/config.site" \
1709 "$ac_default_prefix/etc/config.site"
1711 shift
1712 for ac_site_file
1714 if test -r "$ac_site_file"; then
1715 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1716 echo "$as_me: loading site script $ac_site_file" >&6;}
1717 sed 's/^/| /' "$ac_site_file" >&5
1718 . "$ac_site_file"
1720 done
1722 if test -r "$cache_file"; then
1723 # Some versions of bash will fail to source /dev/null (special
1724 # files actually), so we avoid doing that.
1725 if test -f "$cache_file"; then
1726 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1727 echo "$as_me: loading cache $cache_file" >&6;}
1728 case $cache_file in
1729 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1730 *) . "./$cache_file";;
1731 esac
1733 else
1734 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1735 echo "$as_me: creating cache $cache_file" >&6;}
1736 >$cache_file
1739 ac_header_list="$ac_header_list sys/time.h"
1740 ac_header_list="$ac_header_list unistd.h"
1741 ac_func_list="$ac_func_list alarm"
1742 # Check that the precious variables saved in the cache have kept the same
1743 # value.
1744 ac_cache_corrupted=false
1745 for ac_var in $ac_precious_vars; do
1746 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1747 eval ac_new_set=\$ac_env_${ac_var}_set
1748 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1749 eval ac_new_val=\$ac_env_${ac_var}_value
1750 case $ac_old_set,$ac_new_set in
1751 set,)
1752 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1753 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1754 ac_cache_corrupted=: ;;
1755 ,set)
1756 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1757 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1758 ac_cache_corrupted=: ;;
1759 ,);;
1761 if test "x$ac_old_val" != "x$ac_new_val"; then
1762 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1763 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1764 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1765 echo "$as_me: former value: $ac_old_val" >&2;}
1766 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1767 echo "$as_me: current value: $ac_new_val" >&2;}
1768 ac_cache_corrupted=:
1769 fi;;
1770 esac
1771 # Pass precious variables to config.status.
1772 if test "$ac_new_set" = set; then
1773 case $ac_new_val in
1774 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1775 *) ac_arg=$ac_var=$ac_new_val ;;
1776 esac
1777 case " $ac_configure_args " in
1778 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1779 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1780 esac
1782 done
1783 if $ac_cache_corrupted; then
1784 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1785 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1786 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1787 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1788 { (exit 1); exit 1; }; }
1815 ac_ext=c
1816 ac_cpp='$CPP $CPPFLAGS'
1817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1822 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1826 test "$program_prefix" != NONE &&
1827 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1828 # Use a double $ so make ignores it.
1829 test "$program_suffix" != NONE &&
1830 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1831 # Double any \ or $. echo might interpret backslashes.
1832 # By default was `s,x,x', remove it if useless.
1833 cat <<\_ACEOF >conftest.sed
1834 s/[\\$]/&&/g;s/;s,x,x,$//
1835 _ACEOF
1836 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1837 rm -f conftest.sed
1840 lispdir='${datadir}/emacs/${version}/lisp'
1841 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1842 '${datadir}/emacs/site-lisp'
1843 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1844 etcdir='${datadir}/emacs/${version}/etc'
1845 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1846 docdir='${datadir}/emacs/${version}/etc'
1847 gamedir='${localstatedir}/games/emacs'
1849 gameuser=games
1854 # Check whether --with-pop was given.
1855 if test "${with_pop+set}" = set; then
1856 withval=$with_pop;
1857 else
1858 with_pop=yes
1861 if test "$with_pop" = yes; then
1862 cat >>confdefs.h <<\_ACEOF
1863 #define MAIL_USE_POP 1
1864 _ACEOF
1870 # Check whether --with-kerberos was given.
1871 if test "${with_kerberos+set}" = set; then
1872 withval=$with_kerberos;
1873 else
1874 with_kerberos=no
1877 if test "$with_kerberos" = yes; then
1878 cat >>confdefs.h <<\_ACEOF
1879 #define KERBEROS 1
1880 _ACEOF
1886 # Check whether --with-kerberos5 was given.
1887 if test "${with_kerberos5+set}" = set; then
1888 withval=$with_kerberos5;
1889 else
1890 with_kerberos5=no
1893 if test "${with_kerberos5}" = yes; then
1894 if test "${with_kerberos}" != yes; then
1895 with_kerberos=yes
1896 cat >>confdefs.h <<\_ACEOF
1897 #define KERBEROS 1
1898 _ACEOF
1902 cat >>confdefs.h <<\_ACEOF
1903 #define KERBEROS5 1
1904 _ACEOF
1909 # Check whether --with-hesiod was given.
1910 if test "${with_hesiod+set}" = set; then
1911 withval=$with_hesiod;
1912 else
1913 with_hesiod=no
1916 if test "$with_hesiod" = yes; then
1918 cat >>confdefs.h <<\_ACEOF
1919 #define HESIOD 1
1920 _ACEOF
1925 # Check whether --with-sound was given.
1926 if test "${with_sound+set}" = set; then
1927 withval=$with_sound;
1928 else
1929 with_sound=yes
1934 # Check whether --with-x-toolkit was given.
1935 if test "${with_x_toolkit+set}" = set; then
1936 withval=$with_x_toolkit; case "${withval}" in
1937 y | ye | yes ) val=gtk ;;
1938 n | no ) val=no ;;
1939 l | lu | luc | luci | lucid ) val=lucid ;;
1940 a | at | ath | athe | athen | athena ) val=athena ;;
1941 m | mo | mot | moti | motif ) val=motif ;;
1942 g | gt | gtk ) val=gtk ;;
1944 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1945 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1946 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1947 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1948 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1949 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1950 { (exit 1); exit 1; }; }
1952 esac
1953 with_x_toolkit=$val
1959 # Check whether --with-xpm was given.
1960 if test "${with_xpm+set}" = set; then
1961 withval=$with_xpm;
1962 else
1963 with_xpm=yes
1967 # Check whether --with-jpeg was given.
1968 if test "${with_jpeg+set}" = set; then
1969 withval=$with_jpeg;
1970 else
1971 with_jpeg=yes
1975 # Check whether --with-tiff was given.
1976 if test "${with_tiff+set}" = set; then
1977 withval=$with_tiff;
1978 else
1979 with_tiff=yes
1983 # Check whether --with-gif was given.
1984 if test "${with_gif+set}" = set; then
1985 withval=$with_gif;
1986 else
1987 with_gif=yes
1991 # Check whether --with-png was given.
1992 if test "${with_png+set}" = set; then
1993 withval=$with_png;
1994 else
1995 with_png=yes
1999 # Check whether --with-rsvg was given.
2000 if test "${with_rsvg+set}" = set; then
2001 withval=$with_rsvg;
2002 else
2003 with_rsvg=yes
2008 # Check whether --with-freetype was given.
2009 if test "${with_freetype+set}" = set; then
2010 withval=$with_freetype;
2011 else
2012 with_freetype=yes
2016 # Check whether --with-xft was given.
2017 if test "${with_xft+set}" = set; then
2018 withval=$with_xft;
2019 else
2020 with_xft=yes
2024 # Check whether --with-libotf was given.
2025 if test "${with_libotf+set}" = set; then
2026 withval=$with_libotf;
2027 else
2028 with_libotf=yes
2032 # Check whether --with-m17n-flt was given.
2033 if test "${with_m17n_flt+set}" = set; then
2034 withval=$with_m17n_flt;
2035 else
2036 with_m17n_flt=yes
2041 # Check whether --with-toolkit-scroll-bars was given.
2042 if test "${with_toolkit_scroll_bars+set}" = set; then
2043 withval=$with_toolkit_scroll_bars;
2044 else
2045 with_toolkit_scroll_bars=yes
2049 # Check whether --with-xaw3d was given.
2050 if test "${with_xaw3d+set}" = set; then
2051 withval=$with_xaw3d;
2052 else
2053 with_xaw3d=yes
2057 # Check whether --with-xim was given.
2058 if test "${with_xim+set}" = set; then
2059 withval=$with_xim;
2060 else
2061 with_xim=yes
2065 # Check whether --with-carbon was given.
2066 if test "${with_carbon+set}" = set; then
2067 withval=$with_carbon;
2068 else
2069 with_carbon=no
2074 # Check whether --with-gpm was given.
2075 if test "${with_gpm+set}" = set; then
2076 withval=$with_gpm;
2077 else
2078 with_gpm=yes
2082 # Check whether --with-dbus was given.
2083 if test "${with_dbus+set}" = set; then
2084 withval=$with_dbus;
2085 else
2086 with_dbus=yes
2091 # Check whether --with-gtk was given.
2092 if test "${with_gtk+set}" = set; then
2093 withval=$with_gtk; { { echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2094 specify a toolkit." >&5
2095 echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2096 specify a toolkit." >&2;}
2097 { (exit 1); exit 1; }; }
2102 # Check whether --with-gcc was given.
2103 if test "${with_gcc+set}" = set; then
2104 withval=$with_gcc; { { echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2105 variable to specify a compiler." >&5
2106 echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2107 variable to specify a compiler." >&2;}
2108 { (exit 1); exit 1; }; }
2113 # Check whether --with-pkg-config-prog was given.
2114 if test "${with_pkg_config_prog+set}" = set; then
2115 withval=$with_pkg_config_prog;
2118 if test "X${with_pkg_config_prog}" != X; then
2119 if test "${with_pkg_config_prog}" != yes; then
2120 PKG_CONFIG="${with_pkg_config_prog}"
2124 # Check whether --enable-carbon-app was given.
2125 if test "${enable_carbon_app+set}" = set; then
2126 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
2130 # Check whether --enable-font-backend was given.
2131 if test "${enable_font_backend+set}" = set; then
2132 enableval=$enable_font_backend; USE_FONT_BACKEND=$enableval
2133 else
2134 USE_FONT_BACKEND=no
2138 # Check whether --enable-asserts was given.
2139 if test "${enable_asserts+set}" = set; then
2140 enableval=$enable_asserts; USE_XASSERTS=$enableval
2141 else
2142 USE_XASSERTS=no
2146 # Check whether --enable-maintainer-mode was given.
2147 if test "${enable_maintainer_mode+set}" = set; then
2148 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2149 else
2150 USE_MAINTAINER_MODE=no
2153 if test $USE_MAINTAINER_MODE = yes; then
2154 MAINT=
2155 else
2156 MAINT=#
2160 # Check whether --enable-locallisppath was given.
2161 if test "${enable_locallisppath+set}" = set; then
2162 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2163 locallisppath=
2164 elif test "${enableval}" != "yes"; then
2165 locallisppath=${enableval}
2170 #### Make srcdir absolute, if it isn't already. It's important to
2171 #### avoid running the path through pwd unnecessarily, since pwd can
2172 #### give you automounter prefixes, which can go away. We do all this
2173 #### so Emacs can find its files when run uninstalled.
2174 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2175 unset CDPATH
2176 case "${srcdir}" in
2177 /* ) ;;
2179 ## We may be able to use the $PWD environment variable to make this
2180 ## absolute. But sometimes PWD is inaccurate.
2181 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2182 ## but that tested only for a well-formed and valid PWD,
2183 ## it did not object when PWD was well-formed and valid but just wrong.
2184 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2185 then
2186 srcdir="$PWD"
2187 else
2188 srcdir="`(cd ${srcdir}; pwd)`"
2191 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2192 esac
2194 #### Check if the source directory already has a configured system in it.
2195 if test `pwd` != `(cd ${srcdir} && pwd)` \
2196 && test -f "${srcdir}/src/config.h" ; then
2197 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2198 as a build directory right now; it has been configured in its own
2199 right. To configure in another directory as well, you MUST
2200 use GNU make. If you do not have GNU make, then you must
2201 now do \`make distclean' in ${srcdir},
2202 and then run $0 again." >&5
2203 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2204 as a build directory right now; it has been configured in its own
2205 right. To configure in another directory as well, you MUST
2206 use GNU make. If you do not have GNU make, then you must
2207 now do \`make distclean' in ${srcdir},
2208 and then run $0 again." >&2;}
2211 #### Given the configuration name, set machfile and opsysfile to the
2212 #### names of the m/*.h and s/*.h files we should use.
2214 ### Canonicalize the configuration name.
2216 ac_aux_dir=
2217 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2218 if test -f "$ac_dir/install-sh"; then
2219 ac_aux_dir=$ac_dir
2220 ac_install_sh="$ac_aux_dir/install-sh -c"
2221 break
2222 elif test -f "$ac_dir/install.sh"; then
2223 ac_aux_dir=$ac_dir
2224 ac_install_sh="$ac_aux_dir/install.sh -c"
2225 break
2226 elif test -f "$ac_dir/shtool"; then
2227 ac_aux_dir=$ac_dir
2228 ac_install_sh="$ac_aux_dir/shtool install -c"
2229 break
2231 done
2232 if test -z "$ac_aux_dir"; then
2233 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2234 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2235 { (exit 1); exit 1; }; }
2238 # These three variables are undocumented and unsupported,
2239 # and are intended to be withdrawn in a future Autoconf release.
2240 # They can cause serious problems if a builder's source tree is in a directory
2241 # whose full name contains unusual characters.
2242 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2243 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2244 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2247 # Make sure we can run config.sub.
2248 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2249 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2250 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2251 { (exit 1); exit 1; }; }
2253 { echo "$as_me:$LINENO: checking build system type" >&5
2254 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2255 if test "${ac_cv_build+set}" = set; then
2256 echo $ECHO_N "(cached) $ECHO_C" >&6
2257 else
2258 ac_build_alias=$build_alias
2259 test "x$ac_build_alias" = x &&
2260 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2261 test "x$ac_build_alias" = x &&
2262 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2263 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2264 { (exit 1); exit 1; }; }
2265 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2266 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2267 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2268 { (exit 1); exit 1; }; }
2271 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2272 echo "${ECHO_T}$ac_cv_build" >&6; }
2273 case $ac_cv_build in
2274 *-*-*) ;;
2275 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2276 echo "$as_me: error: invalid value of canonical build" >&2;}
2277 { (exit 1); exit 1; }; };;
2278 esac
2279 build=$ac_cv_build
2280 ac_save_IFS=$IFS; IFS='-'
2281 set x $ac_cv_build
2282 shift
2283 build_cpu=$1
2284 build_vendor=$2
2285 shift; shift
2286 # Remember, the first character of IFS is used to create $*,
2287 # except with old shells:
2288 build_os=$*
2289 IFS=$ac_save_IFS
2290 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2293 { echo "$as_me:$LINENO: checking host system type" >&5
2294 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2295 if test "${ac_cv_host+set}" = set; then
2296 echo $ECHO_N "(cached) $ECHO_C" >&6
2297 else
2298 if test "x$host_alias" = x; then
2299 ac_cv_host=$ac_cv_build
2300 else
2301 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2302 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2303 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2304 { (exit 1); exit 1; }; }
2308 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2309 echo "${ECHO_T}$ac_cv_host" >&6; }
2310 case $ac_cv_host in
2311 *-*-*) ;;
2312 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2313 echo "$as_me: error: invalid value of canonical host" >&2;}
2314 { (exit 1); exit 1; }; };;
2315 esac
2316 host=$ac_cv_host
2317 ac_save_IFS=$IFS; IFS='-'
2318 set x $ac_cv_host
2319 shift
2320 host_cpu=$1
2321 host_vendor=$2
2322 shift; shift
2323 # Remember, the first character of IFS is used to create $*,
2324 # except with old shells:
2325 host_os=$*
2326 IFS=$ac_save_IFS
2327 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2330 canonical=$host
2331 configuration=${host_alias-${build_alias-$host}}
2335 ### If you add support for a new configuration, add code to this
2336 ### switch statement to recognize your configuration name and select
2337 ### the appropriate operating system and machine description files.
2339 ### You would hope that you could choose an m/*.h file pretty much
2340 ### based on the machine portion of the configuration name, and an s-
2341 ### file based on the operating system portion. However, it turns out
2342 ### that each m/*.h file is pretty manufacturer-specific - for
2343 ### example hp9000s300.h is a 68000 machine;
2344 ### mips.h, pmax.h are all MIPS
2345 ### machines. So we basically have to have a special case for each
2346 ### configuration name.
2348 ### As far as handling version numbers on operating systems is
2349 ### concerned, make sure things will fail in a fixable way. If
2350 ### /etc/MACHINES doesn't say anything about version numbers, be
2351 ### prepared to handle anything reasonably. If version numbers
2352 ### matter, be sure /etc/MACHINES says something about it.
2354 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2355 ### "System V Release 4"; he writes, "The old convention encouraged
2356 ### confusion between `system' and `release' levels'."
2358 machine='' opsys='' unported=no
2359 case "${canonical}" in
2361 ## FreeBSD ports
2362 *-*-freebsd* )
2363 opsys=freebsd
2364 case "${canonical}" in
2365 alpha*-*-freebsd*) machine=alpha ;;
2366 arm*-*-freebsd*) machine=arm ;;
2367 ia64-*-freebsd*) machine=ia64 ;;
2368 sparc64-*-freebsd*) machine=sparc ;;
2369 powerpc-*-freebsd*) machine=macppc ;;
2370 i[3456]86-*-freebsd*) machine=intel386 ;;
2371 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2372 esac
2375 ## FreeBSD kernel + glibc based userland
2376 *-*-kfreebsd*gnu* )
2377 opsys=gnu-kfreebsd
2378 case "${canonical}" in
2379 alpha*-*-kfreebsd*) machine=alpha ;;
2380 ia64-*-kfreebsd*) machine=ia64 ;;
2381 sparc64-*-kfreebsd*) machine=sparc ;;
2382 powerpc-*-kfreebsd*) machine=macppc ;;
2383 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2384 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2385 esac
2388 ## NetBSD ports
2389 *-*-netbsd* )
2390 opsys=netbsd
2391 if test -f /usr/lib/crti.o; then
2393 cat >>confdefs.h <<\_ACEOF
2394 #define HAVE_CRTIN
2395 _ACEOF
2399 case "${canonical}" in
2400 alpha*-*-netbsd*) machine=alpha ;;
2401 i[3456]86-*-netbsd*) machine=intel386 ;;
2402 m68k-*-netbsd*)
2403 # This is somewhat bogus.
2404 machine=hp9000s300 ;;
2405 mips-*-netbsd*) machine=pmax ;;
2406 mipsel-*-netbsd*) machine=pmax ;;
2407 mipseb-*-netbsd*) machine=pmax ;;
2408 powerpc-*-netbsd*) machine=macppc ;;
2409 sparc*-*-netbsd*) machine=sparc ;;
2410 vax-*-netbsd*) machine=vax ;;
2411 arm-*-netbsd*) machine=arm ;;
2412 x86_64-*-netbsd*) machine=amdx86-64 ;;
2413 hppa-*-netbsd*) machine=hp800 ;;
2414 esac
2417 ## OpenBSD ports
2418 *-*-openbsd* )
2419 opsys=openbsd
2420 case "${canonical}" in
2421 alpha*-*-openbsd*) machine=alpha ;;
2422 arm-*-openbsd*) machine=arm ;;
2423 hppa-*-openbsd*) machine=hp9000s300 ;;
2424 i386-*-openbsd*) machine=intel386 ;;
2425 m68k-*-openbsd*) machine=hp9000s300 ;;
2426 powerpc-*-openbsd*) machine=macppc ;;
2427 sparc*-*-openbsd*) machine=sparc ;;
2428 vax-*-openbsd*) machine=vax ;;
2429 x86_64-*-openbsd*) machine=amdx86-64 ;;
2430 esac
2433 ## LynxOS ports
2434 *-*-lynxos* )
2435 opsys=lynxos
2436 case "${canonical}" in
2437 i[3456]86-*-lynxos*) machine=intel386 ;;
2438 powerpc-*-lynxos*) machine=powerpc ;;
2439 esac
2442 ## BSDI ports
2443 *-*-bsdi* )
2444 opsys=bsdi
2445 case "${canonical}" in
2446 i[345]86-*-bsdi*) machine=intel386 ;;
2447 sparc-*-bsdi*) machine=sparc ;;
2448 powerpc-*-bsdi*) machine=macppc ;;
2449 esac
2450 case "${canonical}" in
2451 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2452 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2453 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2454 *-*-bsdi3* ) opsys=bsdos3 ;;
2455 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2456 esac
2459 alpha*-*-linux-gnu* )
2460 machine=alpha opsys=gnu-linux
2463 arm*-*-linux-gnu* )
2464 machine=arm opsys=gnu-linux
2467 ## Apple Darwin / Mac OS X
2468 *-apple-darwin* )
2469 case "${canonical}" in
2470 i[3456]86-* ) machine=intel386 ;;
2471 powerpc-* ) machine=powermac ;;
2472 * ) unported=yes ;;
2473 esac
2474 opsys=darwin
2475 # Define CPP as follows to make autoconf work correctly.
2476 CPP="${CC-cc} -E -no-cpp-precomp"
2477 # Use fink packages if available.
2478 if test -d /sw/include && test -d /sw/lib; then
2479 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2480 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2481 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2485 ## Cubix QBx/386
2486 i[3456]86-cubix-sysv* )
2487 machine=intel386 opsys=usg5-3
2490 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2491 machine=pmax opsys=bsd4-2
2493 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2494 machine=pmax opsys=bsd4-3
2496 mips-dec-ultrix* )
2497 machine=pmax opsys=ultrix4-3
2499 ## HP 9000 series 200 or 300
2500 m68*-hp-bsd* )
2501 machine=hp9000s300 opsys=bsd4-3
2503 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2504 m68*-hp-hpux* )
2505 case "`uname -r`" in
2506 ## Someone's system reports A.B8.05 for this.
2507 ## I wonder what other possibilities there are.
2508 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2509 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2510 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2511 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2512 *) machine=hp9000s300 opsys=hpux ;;
2513 esac
2516 ## HP 9000 series 700 and 800, running HP/UX
2517 hppa*-hp-hpux7* )
2518 machine=hp800 opsys=hpux
2520 hppa*-hp-hpux8* )
2521 machine=hp800 opsys=hpux8
2523 hppa*-hp-hpux9shr* )
2524 machine=hp800 opsys=hpux9shr
2526 hppa*-hp-hpux9* )
2527 machine=hp800 opsys=hpux9
2529 hppa*-hp-hpux10.2* )
2530 machine=hp800 opsys=hpux10-20
2532 hppa*-hp-hpux10* )
2533 machine=hp800 opsys=hpux10
2535 hppa*-hp-hpux1[1-9]* )
2536 machine=hp800 opsys=hpux11
2537 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2540 hppa*-*-linux-gnu* )
2541 machine=hp800 opsys=gnu-linux
2544 ## HP 9000 series 700 and 800, running HP/UX
2545 hppa*-hp-hpux* )
2546 ## Cross-compilation? Nah!
2547 case "`uname -r`" in
2548 ## Someone's system reports A.B8.05 for this.
2549 ## I wonder what other possibilities there are.
2550 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2551 *.08.* ) machine=hp800 opsys=hpux8 ;;
2552 *.09.* ) machine=hp800 opsys=hpux9 ;;
2553 *) machine=hp800 opsys=hpux10 ;;
2554 esac
2556 hppa*-*-nextstep* )
2557 machine=hp800 opsys=nextstep
2560 ## IBM machines
2561 i370-ibm-aix*)
2562 machine=ibm370aix opsys=usg5-3
2564 s390-*-linux-gnu* )
2565 machine=ibms390 opsys=gnu-linux
2567 s390x-*-linux-gnu* )
2568 machine=ibms390x opsys=gnu-linux
2570 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2571 machine=ibmrs6000 opsys=aix3-1
2573 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2574 machine=ibmrs6000 opsys=aix3-2-5
2576 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2577 machine=ibmrs6000 opsys=aix4-1
2579 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2580 machine=ibmrs6000 opsys=aix4-2
2582 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2583 machine=ibmrs6000 opsys=aix4-2
2585 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2586 machine=ibmrs6000 opsys=aix4-2
2588 rs6000-ibm-aix5* | powerpc-ibm-aix6* )
2589 machine=ibmrs6000 opsys=aix4-2
2591 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2592 machine=ibmrs6000 opsys=aix4
2594 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2595 machine=ibmrs6000 opsys=aix4-1
2597 rs6000-ibm-aix* | powerpc-ibm-aix* )
2598 machine=ibmrs6000 opsys=aix3-2
2601 ## Prime EXL
2602 i[3456]86-prime-sysv* )
2603 machine=i386 opsys=usg5-3
2606 ## ncr machine running svr4.3.
2607 i[3456]86-ncr-sysv4.3 )
2608 machine=ncr386 opsys=usg5-4-3
2611 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2612 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2613 i[3456]86-ncr-sysv* )
2614 machine=ncr386 opsys=usg5-4-2
2617 ## Macintosh PowerPC
2618 powerpc*-*-linux-gnu* )
2619 machine=macppc opsys=gnu-linux
2622 ## Workstations sold by MIPS
2623 ## This is not necessarily all workstations using the MIPS processor -
2624 ## Irises are produced by SGI, and DECstations by DEC.
2626 mips-mips-bsd* )
2627 machine=mips opsys=bsd4-3
2629 mips-mips-* )
2630 machine=mips opsys=usg5-2-2
2633 ## NeXT
2634 m68*-next-* | m68k-*-nextstep* )
2635 machine=m68k opsys=nextstep
2638 ## NEC EWS4800
2639 mips-nec-sysv4*)
2640 machine=ews4800 opsys=ux4800
2643 ## Siemens Nixdorf
2644 mips-siemens-sysv* | mips-sni-sysv*)
2645 machine=mips-siemens opsys=usg5-4
2646 NON_GNU_CC=/usr/ccs/bin/cc
2647 NON_GNU_CPP=/usr/ccs/lib/cpp
2650 ## Silicon Graphics machines
2651 ## Iris 4D
2652 mips-sgi-irix6.5 )
2653 machine=iris4d opsys=irix6-5
2654 # Without defining _LANGUAGE_C, things get masked out in the headers
2655 # so that, for instance, grepping for `free' in stdlib.h fails and
2656 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2657 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2658 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2661 ## Suns
2662 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2663 machine=sparc opsys=gnu-linux
2666 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2667 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2668 | rs6000-*-solaris2*)
2669 case "${canonical}" in
2670 i[3456]86-*-* ) machine=intel386 ;;
2671 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2672 powerpcle* ) machine=powerpcle ;;
2673 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2674 sparc* ) machine=sparc ;;
2675 * ) unported=yes ;;
2676 esac
2677 case "${canonical}" in
2678 *-sunos5.3* | *-solaris2.3* )
2679 opsys=sol2-3
2680 NON_GNU_CPP=/usr/ccs/lib/cpp
2682 *-sunos5.4* | *-solaris2.4* )
2683 opsys=sol2-4
2684 NON_GNU_CPP=/usr/ccs/lib/cpp
2685 RANLIB="ar -ts"
2687 *-sunos5.5* | *-solaris2.5* )
2688 opsys=sol2-5
2689 NON_GNU_CPP=/usr/ccs/lib/cpp
2690 RANLIB="ar -ts"
2692 *-sunos5.6* | *-solaris2.6* )
2693 opsys=sol2-6
2694 NON_GNU_CPP=/usr/ccs/lib/cpp
2695 RANLIB="ar -ts"
2697 *-sunos5* | *-solaris* )
2698 opsys=sol2-6
2699 emacs_check_sunpro_c=yes
2700 NON_GNU_CPP=/usr/ccs/lib/cpp
2702 * ) opsys=bsd4-2 ;;
2703 esac
2704 ## Watch out for a compiler that we know will not work.
2705 case "${canonical}" in
2706 *-solaris* | *-sunos5* )
2707 if [ "x$CC" = x/usr/ucb/cc ]; then
2708 ## /usr/ucb/cc doesn't work;
2709 ## we should find some other compiler that does work.
2710 unset CC
2713 *) ;;
2714 esac
2716 sparc-*-nextstep* )
2717 machine=sparc opsys=nextstep
2720 ## Tandem Integrity S2
2721 mips-tandem-sysv* )
2722 machine=tandem-s2 opsys=usg5-3
2725 ## Vaxen.
2726 vax-dec-* )
2727 machine=vax
2728 case "${canonical}" in
2729 *-bsd4.1* ) opsys=bsd4-1 ;;
2730 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2731 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2732 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2733 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2734 *-vms* ) opsys=vms ;;
2735 * ) unported=yes
2736 esac
2739 ## IA-64
2740 ia64*-*-linux* )
2741 machine=ia64 opsys=gnu-linux
2744 ## Intel 386 machines where we don't care about the manufacturer
2745 i[3456]86-*-* )
2746 machine=intel386
2747 case "${canonical}" in
2748 *-cygwin ) opsys=cygwin ;;
2749 *-darwin* ) opsys=darwin
2750 CPP="${CC-cc} -E -no-cpp-precomp"
2752 *-linux-gnu* ) opsys=gnu-linux ;;
2753 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2754 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2755 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2756 *-386bsd* ) opsys=386bsd ;;
2757 *-nextstep* ) opsys=nextstep ;;
2758 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2759 esac
2762 ## m68k Linux-based GNU system
2763 m68k-*-linux-gnu* )
2764 machine=m68k opsys=gnu-linux
2767 ## Mips Linux-based GNU system
2768 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2769 machine=mips opsys=gnu-linux
2772 ## UXP/DS
2773 sparc-fujitsu-sysv4* )
2774 machine=sparc opsys=uxpds
2775 NON_GNU_CPP=/usr/ccs/lib/cpp
2776 RANLIB="ar -ts"
2779 ## AMD x86-64 Linux-based GNU system
2780 x86_64-*-linux-gnu* )
2781 machine=amdx86-64 opsys=gnu-linux
2784 ## Tensilica Xtensa Linux-based GNU system
2785 xtensa*-*-linux-gnu* )
2786 machine=xtensa opsys=gnu-linux
2790 unported=yes
2792 esac
2794 ### If the code above didn't choose an operating system, just choose
2795 ### an operating system based on the configuration name. You really
2796 ### only want to use this when you have no idea what the right
2797 ### operating system is; if you know what operating systems a machine
2798 ### runs, it's cleaner to make it explicit in the case statement
2799 ### above.
2800 if test x"${opsys}" = x; then
2801 case "${canonical}" in
2802 *-gnu* ) opsys=gnu ;;
2803 *-bsd4.[01] ) opsys=bsd4-1 ;;
2804 *-bsd4.2 ) opsys=bsd4-2 ;;
2805 *-bsd4.3 ) opsys=bsd4-3 ;;
2806 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2807 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2808 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2809 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2810 *-sysv4.2uw* ) opsys=unixware ;;
2811 *-sysv5uw* ) opsys=unixware ;;
2812 *-sysv5OpenUNIX* ) opsys=unixware ;;
2813 *-sysv4.1* | *-sysvr4.1* )
2814 NON_GNU_CPP=/usr/lib/cpp
2815 opsys=usg5-4 ;;
2816 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2817 if [ x$NON_GNU_CPP = x ]; then
2818 if [ -f /usr/ccs/lib/cpp ]; then
2819 NON_GNU_CPP=/usr/ccs/lib/cpp
2820 else
2821 NON_GNU_CPP=/lib/cpp
2824 opsys=usg5-4-2 ;;
2825 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2827 unported=yes
2829 esac
2832 ### Tests for sytems that we beleive are obsolete and should be desupported.
2834 case "${machine}" in
2835 pmax | hp9000s300 | ibm370aix | ncr386 | ews4800 | mips-siemens | powerpcle | tandem-s2 )
2836 echo "The system that you are configuring on: ${canonical} is considered to be obsolete"
2837 echo "and it is planned to be desupported in the next version of Emacs"
2838 echo "Please email emacs-devel@gnu.org as soon as possible if this system is still in use."
2839 echo "The code is still functional, but you need to edit the 'configure' script and remove the"
2840 echo "exit 33 line. After that you can run configure again and 'complete' the build."
2841 exit 33
2843 esac
2845 case "${opsys}" in
2846 bsd386 | bsdos2-1 | bsdos2 | bsdos3 | bsdos4 | bsd4-1 | bsd4-2 | bsd4-3 | usg5-0 | usg5-2-2 | usg5-2 | usg5-3 | ultrix4-3 | 386bsd | hpux | hpux8 | hpux9 | hpux9shr | hpux10 | hpux10-20 | aix3-1 | aix3-2-5 | aix3-2 | aix4-1 | nextstep | ux4800 | uxpds | uxpv )
2847 echo "The system that you are configuring on: ${canonical} is considered to be obsolete"
2848 echo "and it is planned to be desupported in the next version of Emacs"
2849 echo "Please email emacs-devel@gnu.org as soon as possible if this system is still in use."
2850 echo "The code is still functional, but you need to edit the 'configure' script and remove the"
2851 echo "'exit 44' line. After that you can run 'configure' again and complete the build."
2852 exit 44
2854 esac
2858 if test $unported = yes; then
2859 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2860 Check \`etc/MACHINES' for recognized configuration names." >&5
2861 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2862 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2863 { (exit 1); exit 1; }; }
2866 machfile="m/${machine}.h"
2867 opsysfile="s/${opsys}.h"
2870 #### Choose a compiler.
2871 test -n "$CC" && cc_specified=yes
2873 # Save the value of CFLAGS that the user specified.
2874 SPECIFIED_CFLAGS="$CFLAGS"
2876 ac_ext=c
2877 ac_cpp='$CPP $CPPFLAGS'
2878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2881 if test -n "$ac_tool_prefix"; then
2882 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2883 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2884 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2886 if test "${ac_cv_prog_CC+set}" = set; then
2887 echo $ECHO_N "(cached) $ECHO_C" >&6
2888 else
2889 if test -n "$CC"; then
2890 ac_cv_prog_CC="$CC" # Let the user override the test.
2891 else
2892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893 for as_dir in $PATH
2895 IFS=$as_save_IFS
2896 test -z "$as_dir" && as_dir=.
2897 for ac_exec_ext in '' $ac_executable_extensions; do
2898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2899 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2901 break 2
2903 done
2904 done
2905 IFS=$as_save_IFS
2909 CC=$ac_cv_prog_CC
2910 if test -n "$CC"; then
2911 { echo "$as_me:$LINENO: result: $CC" >&5
2912 echo "${ECHO_T}$CC" >&6; }
2913 else
2914 { echo "$as_me:$LINENO: result: no" >&5
2915 echo "${ECHO_T}no" >&6; }
2920 if test -z "$ac_cv_prog_CC"; then
2921 ac_ct_CC=$CC
2922 # Extract the first word of "gcc", so it can be a program name with args.
2923 set dummy gcc; ac_word=$2
2924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2926 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2927 echo $ECHO_N "(cached) $ECHO_C" >&6
2928 else
2929 if test -n "$ac_ct_CC"; then
2930 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2931 else
2932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933 for as_dir in $PATH
2935 IFS=$as_save_IFS
2936 test -z "$as_dir" && as_dir=.
2937 for ac_exec_ext in '' $ac_executable_extensions; do
2938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2939 ac_cv_prog_ac_ct_CC="gcc"
2940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2941 break 2
2943 done
2944 done
2945 IFS=$as_save_IFS
2949 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2950 if test -n "$ac_ct_CC"; then
2951 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2952 echo "${ECHO_T}$ac_ct_CC" >&6; }
2953 else
2954 { echo "$as_me:$LINENO: result: no" >&5
2955 echo "${ECHO_T}no" >&6; }
2958 if test "x$ac_ct_CC" = x; then
2959 CC=""
2960 else
2961 case $cross_compiling:$ac_tool_warned in
2962 yes:)
2963 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2964 whose name does not start with the host triplet. If you think this
2965 configuration is useful to you, please write to autoconf@gnu.org." >&5
2966 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2967 whose name does not start with the host triplet. If you think this
2968 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2969 ac_tool_warned=yes ;;
2970 esac
2971 CC=$ac_ct_CC
2973 else
2974 CC="$ac_cv_prog_CC"
2977 if test -z "$CC"; then
2978 if test -n "$ac_tool_prefix"; then
2979 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2980 set dummy ${ac_tool_prefix}cc; ac_word=$2
2981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2983 if test "${ac_cv_prog_CC+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
2985 else
2986 if test -n "$CC"; then
2987 ac_cv_prog_CC="$CC" # Let the user override the test.
2988 else
2989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 for as_dir in $PATH
2992 IFS=$as_save_IFS
2993 test -z "$as_dir" && as_dir=.
2994 for ac_exec_ext in '' $ac_executable_extensions; do
2995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2996 ac_cv_prog_CC="${ac_tool_prefix}cc"
2997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2998 break 2
3000 done
3001 done
3002 IFS=$as_save_IFS
3006 CC=$ac_cv_prog_CC
3007 if test -n "$CC"; then
3008 { echo "$as_me:$LINENO: result: $CC" >&5
3009 echo "${ECHO_T}$CC" >&6; }
3010 else
3011 { echo "$as_me:$LINENO: result: no" >&5
3012 echo "${ECHO_T}no" >&6; }
3018 if test -z "$CC"; then
3019 # Extract the first word of "cc", so it can be a program name with args.
3020 set dummy cc; ac_word=$2
3021 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3023 if test "${ac_cv_prog_CC+set}" = set; then
3024 echo $ECHO_N "(cached) $ECHO_C" >&6
3025 else
3026 if test -n "$CC"; then
3027 ac_cv_prog_CC="$CC" # Let the user override the test.
3028 else
3029 ac_prog_rejected=no
3030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3031 for as_dir in $PATH
3033 IFS=$as_save_IFS
3034 test -z "$as_dir" && as_dir=.
3035 for ac_exec_ext in '' $ac_executable_extensions; do
3036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3037 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3038 ac_prog_rejected=yes
3039 continue
3041 ac_cv_prog_CC="cc"
3042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3043 break 2
3045 done
3046 done
3047 IFS=$as_save_IFS
3049 if test $ac_prog_rejected = yes; then
3050 # We found a bogon in the path, so make sure we never use it.
3051 set dummy $ac_cv_prog_CC
3052 shift
3053 if test $# != 0; then
3054 # We chose a different compiler from the bogus one.
3055 # However, it has the same basename, so the bogon will be chosen
3056 # first if we set CC to just the basename; use the full file name.
3057 shift
3058 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3063 CC=$ac_cv_prog_CC
3064 if test -n "$CC"; then
3065 { echo "$as_me:$LINENO: result: $CC" >&5
3066 echo "${ECHO_T}$CC" >&6; }
3067 else
3068 { echo "$as_me:$LINENO: result: no" >&5
3069 echo "${ECHO_T}no" >&6; }
3074 if test -z "$CC"; then
3075 if test -n "$ac_tool_prefix"; then
3076 for ac_prog in cl.exe
3078 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3079 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3080 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3082 if test "${ac_cv_prog_CC+set}" = set; then
3083 echo $ECHO_N "(cached) $ECHO_C" >&6
3084 else
3085 if test -n "$CC"; then
3086 ac_cv_prog_CC="$CC" # Let the user override the test.
3087 else
3088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089 for as_dir in $PATH
3091 IFS=$as_save_IFS
3092 test -z "$as_dir" && as_dir=.
3093 for ac_exec_ext in '' $ac_executable_extensions; do
3094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3095 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3097 break 2
3099 done
3100 done
3101 IFS=$as_save_IFS
3105 CC=$ac_cv_prog_CC
3106 if test -n "$CC"; then
3107 { echo "$as_me:$LINENO: result: $CC" >&5
3108 echo "${ECHO_T}$CC" >&6; }
3109 else
3110 { echo "$as_me:$LINENO: result: no" >&5
3111 echo "${ECHO_T}no" >&6; }
3115 test -n "$CC" && break
3116 done
3118 if test -z "$CC"; then
3119 ac_ct_CC=$CC
3120 for ac_prog in cl.exe
3122 # Extract the first word of "$ac_prog", so it can be a program name with args.
3123 set dummy $ac_prog; ac_word=$2
3124 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3126 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3127 echo $ECHO_N "(cached) $ECHO_C" >&6
3128 else
3129 if test -n "$ac_ct_CC"; then
3130 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3131 else
3132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3133 for as_dir in $PATH
3135 IFS=$as_save_IFS
3136 test -z "$as_dir" && as_dir=.
3137 for ac_exec_ext in '' $ac_executable_extensions; do
3138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3139 ac_cv_prog_ac_ct_CC="$ac_prog"
3140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3141 break 2
3143 done
3144 done
3145 IFS=$as_save_IFS
3149 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3150 if test -n "$ac_ct_CC"; then
3151 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3152 echo "${ECHO_T}$ac_ct_CC" >&6; }
3153 else
3154 { echo "$as_me:$LINENO: result: no" >&5
3155 echo "${ECHO_T}no" >&6; }
3159 test -n "$ac_ct_CC" && break
3160 done
3162 if test "x$ac_ct_CC" = x; then
3163 CC=""
3164 else
3165 case $cross_compiling:$ac_tool_warned in
3166 yes:)
3167 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3168 whose name does not start with the host triplet. If you think this
3169 configuration is useful to you, please write to autoconf@gnu.org." >&5
3170 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3171 whose name does not start with the host triplet. If you think this
3172 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3173 ac_tool_warned=yes ;;
3174 esac
3175 CC=$ac_ct_CC
3182 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3183 See \`config.log' for more details." >&5
3184 echo "$as_me: error: no acceptable C compiler found in \$PATH
3185 See \`config.log' for more details." >&2;}
3186 { (exit 1); exit 1; }; }
3188 # Provide some information about the compiler.
3189 echo "$as_me:$LINENO: checking for C compiler version" >&5
3190 ac_compiler=`set X $ac_compile; echo $2`
3191 { (ac_try="$ac_compiler --version >&5"
3192 case "(($ac_try" in
3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194 *) ac_try_echo=$ac_try;;
3195 esac
3196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3197 (eval "$ac_compiler --version >&5") 2>&5
3198 ac_status=$?
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); }
3201 { (ac_try="$ac_compiler -v >&5"
3202 case "(($ac_try" in
3203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204 *) ac_try_echo=$ac_try;;
3205 esac
3206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3207 (eval "$ac_compiler -v >&5") 2>&5
3208 ac_status=$?
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); }
3211 { (ac_try="$ac_compiler -V >&5"
3212 case "(($ac_try" in
3213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214 *) ac_try_echo=$ac_try;;
3215 esac
3216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3217 (eval "$ac_compiler -V >&5") 2>&5
3218 ac_status=$?
3219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220 (exit $ac_status); }
3222 cat >conftest.$ac_ext <<_ACEOF
3223 /* confdefs.h. */
3224 _ACEOF
3225 cat confdefs.h >>conftest.$ac_ext
3226 cat >>conftest.$ac_ext <<_ACEOF
3227 /* end confdefs.h. */
3230 main ()
3234 return 0;
3236 _ACEOF
3237 ac_clean_files_save=$ac_clean_files
3238 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3239 # Try to create an executable without -o first, disregard a.out.
3240 # It will help us diagnose broken compilers, and finding out an intuition
3241 # of exeext.
3242 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3243 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3244 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3246 # List of possible output files, starting from the most likely.
3247 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3248 # only as a last resort. b.out is created by i960 compilers.
3249 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3251 # The IRIX 6 linker writes into existing files which may not be
3252 # executable, retaining their permissions. Remove them first so a
3253 # subsequent execution test works.
3254 ac_rmfiles=
3255 for ac_file in $ac_files
3257 case $ac_file in
3258 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3259 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3260 esac
3261 done
3262 rm -f $ac_rmfiles
3264 if { (ac_try="$ac_link_default"
3265 case "(($ac_try" in
3266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267 *) ac_try_echo=$ac_try;;
3268 esac
3269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3270 (eval "$ac_link_default") 2>&5
3271 ac_status=$?
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); }; then
3274 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3275 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3276 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3277 # so that the user can short-circuit this test for compilers unknown to
3278 # Autoconf.
3279 for ac_file in $ac_files ''
3281 test -f "$ac_file" || continue
3282 case $ac_file in
3283 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3285 [ab].out )
3286 # We found the default executable, but exeext='' is most
3287 # certainly right.
3288 break;;
3289 *.* )
3290 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3291 then :; else
3292 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3294 # We set ac_cv_exeext here because the later test for it is not
3295 # safe: cross compilers may not add the suffix if given an `-o'
3296 # argument, so we may need to know it at that point already.
3297 # Even if this section looks crufty: it has the advantage of
3298 # actually working.
3299 break;;
3301 break;;
3302 esac
3303 done
3304 test "$ac_cv_exeext" = no && ac_cv_exeext=
3306 else
3307 ac_file=''
3310 { echo "$as_me:$LINENO: result: $ac_file" >&5
3311 echo "${ECHO_T}$ac_file" >&6; }
3312 if test -z "$ac_file"; then
3313 echo "$as_me: failed program was:" >&5
3314 sed 's/^/| /' conftest.$ac_ext >&5
3316 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3317 See \`config.log' for more details." >&5
3318 echo "$as_me: error: C compiler cannot create executables
3319 See \`config.log' for more details." >&2;}
3320 { (exit 77); exit 77; }; }
3323 ac_exeext=$ac_cv_exeext
3325 # Check that the compiler produces executables we can run. If not, either
3326 # the compiler is broken, or we cross compile.
3327 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3328 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3329 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3330 # If not cross compiling, check that we can run a simple program.
3331 if test "$cross_compiling" != yes; then
3332 if { ac_try='./$ac_file'
3333 { (case "(($ac_try" in
3334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3335 *) ac_try_echo=$ac_try;;
3336 esac
3337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3338 (eval "$ac_try") 2>&5
3339 ac_status=$?
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); }; }; then
3342 cross_compiling=no
3343 else
3344 if test "$cross_compiling" = maybe; then
3345 cross_compiling=yes
3346 else
3347 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3348 If you meant to cross compile, use \`--host'.
3349 See \`config.log' for more details." >&5
3350 echo "$as_me: error: cannot run C compiled programs.
3351 If you meant to cross compile, use \`--host'.
3352 See \`config.log' for more details." >&2;}
3353 { (exit 1); exit 1; }; }
3357 { echo "$as_me:$LINENO: result: yes" >&5
3358 echo "${ECHO_T}yes" >&6; }
3360 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3361 ac_clean_files=$ac_clean_files_save
3362 # Check that the compiler produces executables we can run. If not, either
3363 # the compiler is broken, or we cross compile.
3364 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3365 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3366 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3367 echo "${ECHO_T}$cross_compiling" >&6; }
3369 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3370 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3371 if { (ac_try="$ac_link"
3372 case "(($ac_try" in
3373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374 *) ac_try_echo=$ac_try;;
3375 esac
3376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3377 (eval "$ac_link") 2>&5
3378 ac_status=$?
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); }; then
3381 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3382 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3383 # work properly (i.e., refer to `conftest.exe'), while it won't with
3384 # `rm'.
3385 for ac_file in conftest.exe conftest conftest.*; do
3386 test -f "$ac_file" || continue
3387 case $ac_file in
3388 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3389 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3390 break;;
3391 * ) break;;
3392 esac
3393 done
3394 else
3395 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3396 See \`config.log' for more details." >&5
3397 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3398 See \`config.log' for more details." >&2;}
3399 { (exit 1); exit 1; }; }
3402 rm -f conftest$ac_cv_exeext
3403 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3404 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3406 rm -f conftest.$ac_ext
3407 EXEEXT=$ac_cv_exeext
3408 ac_exeext=$EXEEXT
3409 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3410 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3411 if test "${ac_cv_objext+set}" = set; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
3413 else
3414 cat >conftest.$ac_ext <<_ACEOF
3415 /* confdefs.h. */
3416 _ACEOF
3417 cat confdefs.h >>conftest.$ac_ext
3418 cat >>conftest.$ac_ext <<_ACEOF
3419 /* end confdefs.h. */
3422 main ()
3426 return 0;
3428 _ACEOF
3429 rm -f conftest.o conftest.obj
3430 if { (ac_try="$ac_compile"
3431 case "(($ac_try" in
3432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3433 *) ac_try_echo=$ac_try;;
3434 esac
3435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3436 (eval "$ac_compile") 2>&5
3437 ac_status=$?
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); }; then
3440 for ac_file in conftest.o conftest.obj conftest.*; do
3441 test -f "$ac_file" || continue;
3442 case $ac_file in
3443 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3444 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3445 break;;
3446 esac
3447 done
3448 else
3449 echo "$as_me: failed program was:" >&5
3450 sed 's/^/| /' conftest.$ac_ext >&5
3452 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3453 See \`config.log' for more details." >&5
3454 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3455 See \`config.log' for more details." >&2;}
3456 { (exit 1); exit 1; }; }
3459 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3461 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3462 echo "${ECHO_T}$ac_cv_objext" >&6; }
3463 OBJEXT=$ac_cv_objext
3464 ac_objext=$OBJEXT
3465 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3466 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3467 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3468 echo $ECHO_N "(cached) $ECHO_C" >&6
3469 else
3470 cat >conftest.$ac_ext <<_ACEOF
3471 /* confdefs.h. */
3472 _ACEOF
3473 cat confdefs.h >>conftest.$ac_ext
3474 cat >>conftest.$ac_ext <<_ACEOF
3475 /* end confdefs.h. */
3478 main ()
3480 #ifndef __GNUC__
3481 choke me
3482 #endif
3485 return 0;
3487 _ACEOF
3488 rm -f conftest.$ac_objext
3489 if { (ac_try="$ac_compile"
3490 case "(($ac_try" in
3491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3492 *) ac_try_echo=$ac_try;;
3493 esac
3494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3495 (eval "$ac_compile") 2>conftest.er1
3496 ac_status=$?
3497 grep -v '^ *+' conftest.er1 >conftest.err
3498 rm -f conftest.er1
3499 cat conftest.err >&5
3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); } && {
3502 test -z "$ac_c_werror_flag" ||
3503 test ! -s conftest.err
3504 } && test -s conftest.$ac_objext; then
3505 ac_compiler_gnu=yes
3506 else
3507 echo "$as_me: failed program was:" >&5
3508 sed 's/^/| /' conftest.$ac_ext >&5
3510 ac_compiler_gnu=no
3513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3514 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3517 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3518 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3519 GCC=`test $ac_compiler_gnu = yes && echo yes`
3520 ac_test_CFLAGS=${CFLAGS+set}
3521 ac_save_CFLAGS=$CFLAGS
3522 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3523 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3524 if test "${ac_cv_prog_cc_g+set}" = set; then
3525 echo $ECHO_N "(cached) $ECHO_C" >&6
3526 else
3527 ac_save_c_werror_flag=$ac_c_werror_flag
3528 ac_c_werror_flag=yes
3529 ac_cv_prog_cc_g=no
3530 CFLAGS="-g"
3531 cat >conftest.$ac_ext <<_ACEOF
3532 /* confdefs.h. */
3533 _ACEOF
3534 cat confdefs.h >>conftest.$ac_ext
3535 cat >>conftest.$ac_ext <<_ACEOF
3536 /* end confdefs.h. */
3539 main ()
3543 return 0;
3545 _ACEOF
3546 rm -f conftest.$ac_objext
3547 if { (ac_try="$ac_compile"
3548 case "(($ac_try" in
3549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550 *) ac_try_echo=$ac_try;;
3551 esac
3552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3553 (eval "$ac_compile") 2>conftest.er1
3554 ac_status=$?
3555 grep -v '^ *+' conftest.er1 >conftest.err
3556 rm -f conftest.er1
3557 cat conftest.err >&5
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); } && {
3560 test -z "$ac_c_werror_flag" ||
3561 test ! -s conftest.err
3562 } && test -s conftest.$ac_objext; then
3563 ac_cv_prog_cc_g=yes
3564 else
3565 echo "$as_me: failed program was:" >&5
3566 sed 's/^/| /' conftest.$ac_ext >&5
3568 CFLAGS=""
3569 cat >conftest.$ac_ext <<_ACEOF
3570 /* confdefs.h. */
3571 _ACEOF
3572 cat confdefs.h >>conftest.$ac_ext
3573 cat >>conftest.$ac_ext <<_ACEOF
3574 /* end confdefs.h. */
3577 main ()
3581 return 0;
3583 _ACEOF
3584 rm -f conftest.$ac_objext
3585 if { (ac_try="$ac_compile"
3586 case "(($ac_try" in
3587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3588 *) ac_try_echo=$ac_try;;
3589 esac
3590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3591 (eval "$ac_compile") 2>conftest.er1
3592 ac_status=$?
3593 grep -v '^ *+' conftest.er1 >conftest.err
3594 rm -f conftest.er1
3595 cat conftest.err >&5
3596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597 (exit $ac_status); } && {
3598 test -z "$ac_c_werror_flag" ||
3599 test ! -s conftest.err
3600 } && test -s conftest.$ac_objext; then
3602 else
3603 echo "$as_me: failed program was:" >&5
3604 sed 's/^/| /' conftest.$ac_ext >&5
3606 ac_c_werror_flag=$ac_save_c_werror_flag
3607 CFLAGS="-g"
3608 cat >conftest.$ac_ext <<_ACEOF
3609 /* confdefs.h. */
3610 _ACEOF
3611 cat confdefs.h >>conftest.$ac_ext
3612 cat >>conftest.$ac_ext <<_ACEOF
3613 /* end confdefs.h. */
3616 main ()
3620 return 0;
3622 _ACEOF
3623 rm -f conftest.$ac_objext
3624 if { (ac_try="$ac_compile"
3625 case "(($ac_try" in
3626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627 *) ac_try_echo=$ac_try;;
3628 esac
3629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3630 (eval "$ac_compile") 2>conftest.er1
3631 ac_status=$?
3632 grep -v '^ *+' conftest.er1 >conftest.err
3633 rm -f conftest.er1
3634 cat conftest.err >&5
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); } && {
3637 test -z "$ac_c_werror_flag" ||
3638 test ! -s conftest.err
3639 } && test -s conftest.$ac_objext; then
3640 ac_cv_prog_cc_g=yes
3641 else
3642 echo "$as_me: failed program was:" >&5
3643 sed 's/^/| /' conftest.$ac_ext >&5
3648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3655 ac_c_werror_flag=$ac_save_c_werror_flag
3657 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3658 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3659 if test "$ac_test_CFLAGS" = set; then
3660 CFLAGS=$ac_save_CFLAGS
3661 elif test $ac_cv_prog_cc_g = yes; then
3662 if test "$GCC" = yes; then
3663 CFLAGS="-g -O2"
3664 else
3665 CFLAGS="-g"
3667 else
3668 if test "$GCC" = yes; then
3669 CFLAGS="-O2"
3670 else
3671 CFLAGS=
3674 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3675 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3676 if test "${ac_cv_prog_cc_c89+set}" = set; then
3677 echo $ECHO_N "(cached) $ECHO_C" >&6
3678 else
3679 ac_cv_prog_cc_c89=no
3680 ac_save_CC=$CC
3681 cat >conftest.$ac_ext <<_ACEOF
3682 /* confdefs.h. */
3683 _ACEOF
3684 cat confdefs.h >>conftest.$ac_ext
3685 cat >>conftest.$ac_ext <<_ACEOF
3686 /* end confdefs.h. */
3687 #include <stdarg.h>
3688 #include <stdio.h>
3689 #include <sys/types.h>
3690 #include <sys/stat.h>
3691 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3692 struct buf { int x; };
3693 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3694 static char *e (p, i)
3695 char **p;
3696 int i;
3698 return p[i];
3700 static char *f (char * (*g) (char **, int), char **p, ...)
3702 char *s;
3703 va_list v;
3704 va_start (v,p);
3705 s = g (p, va_arg (v,int));
3706 va_end (v);
3707 return s;
3710 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3711 function prototypes and stuff, but not '\xHH' hex character constants.
3712 These don't provoke an error unfortunately, instead are silently treated
3713 as 'x'. The following induces an error, until -std is added to get
3714 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3715 array size at least. It's necessary to write '\x00'==0 to get something
3716 that's true only with -std. */
3717 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3719 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3720 inside strings and character constants. */
3721 #define FOO(x) 'x'
3722 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3724 int test (int i, double x);
3725 struct s1 {int (*f) (int a);};
3726 struct s2 {int (*f) (double a);};
3727 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3728 int argc;
3729 char **argv;
3731 main ()
3733 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3735 return 0;
3737 _ACEOF
3738 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3739 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3741 CC="$ac_save_CC $ac_arg"
3742 rm -f conftest.$ac_objext
3743 if { (ac_try="$ac_compile"
3744 case "(($ac_try" in
3745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3746 *) ac_try_echo=$ac_try;;
3747 esac
3748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3749 (eval "$ac_compile") 2>conftest.er1
3750 ac_status=$?
3751 grep -v '^ *+' conftest.er1 >conftest.err
3752 rm -f conftest.er1
3753 cat conftest.err >&5
3754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755 (exit $ac_status); } && {
3756 test -z "$ac_c_werror_flag" ||
3757 test ! -s conftest.err
3758 } && test -s conftest.$ac_objext; then
3759 ac_cv_prog_cc_c89=$ac_arg
3760 else
3761 echo "$as_me: failed program was:" >&5
3762 sed 's/^/| /' conftest.$ac_ext >&5
3767 rm -f core conftest.err conftest.$ac_objext
3768 test "x$ac_cv_prog_cc_c89" != "xno" && break
3769 done
3770 rm -f conftest.$ac_ext
3771 CC=$ac_save_CC
3774 # AC_CACHE_VAL
3775 case "x$ac_cv_prog_cc_c89" in
3777 { echo "$as_me:$LINENO: result: none needed" >&5
3778 echo "${ECHO_T}none needed" >&6; } ;;
3779 xno)
3780 { echo "$as_me:$LINENO: result: unsupported" >&5
3781 echo "${ECHO_T}unsupported" >&6; } ;;
3783 CC="$CC $ac_cv_prog_cc_c89"
3784 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3785 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3786 esac
3789 ac_ext=c
3790 ac_cpp='$CPP $CPPFLAGS'
3791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3796 # On Suns, sometimes $CPP names a directory.
3797 if test -n "$CPP" && test -d "$CPP"; then
3798 CPP=
3801 ## If not using gcc, and on Solaris, and no CPP specified, see if
3802 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3803 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3804 test x"$CPP" = x; then
3805 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3806 echo $ECHO_N "checking whether we are using a Sun C compiler... $ECHO_C" >&6; }
3808 if test "${emacs_cv_sunpro_c+set}" = set; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
3810 else
3811 cat >conftest.$ac_ext <<_ACEOF
3812 /* confdefs.h. */
3813 _ACEOF
3814 cat confdefs.h >>conftest.$ac_ext
3815 cat >>conftest.$ac_ext <<_ACEOF
3816 /* end confdefs.h. */
3819 main ()
3821 #ifndef __SUNPRO_C
3822 fail;
3823 #endif
3826 return 0;
3828 _ACEOF
3829 rm -f conftest.$ac_objext conftest$ac_exeext
3830 if { (ac_try="$ac_link"
3831 case "(($ac_try" in
3832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3833 *) ac_try_echo=$ac_try;;
3834 esac
3835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3836 (eval "$ac_link") 2>conftest.er1
3837 ac_status=$?
3838 grep -v '^ *+' conftest.er1 >conftest.err
3839 rm -f conftest.er1
3840 cat conftest.err >&5
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); } && {
3843 test -z "$ac_c_werror_flag" ||
3844 test ! -s conftest.err
3845 } && test -s conftest$ac_exeext &&
3846 $as_test_x conftest$ac_exeext; then
3847 emacs_cv_sunpro_c=yes
3848 else
3849 echo "$as_me: failed program was:" >&5
3850 sed 's/^/| /' conftest.$ac_ext >&5
3852 emacs_cv_sunpro_c=no
3855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3856 conftest$ac_exeext conftest.$ac_ext
3859 { echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
3860 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3862 if test x"$emacs_cv_sunpro_c" = xyes; then
3863 NON_GNU_CPP="$CC -E -Xs"
3867 #### Some systems specify a CPP to use unless we are using GCC.
3868 #### Now that we know whether we are using GCC, we can decide whether
3869 #### to use that one.
3870 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3871 then
3872 CPP="$NON_GNU_CPP"
3875 #### Some systems specify a CC to use unless we are using GCC.
3876 #### Now that we know whether we are using GCC, we can decide whether
3877 #### to use that one.
3878 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3879 test x$cc_specified != xyes
3880 then
3881 CC="$NON_GNU_CC"
3884 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3885 then
3886 CC="$CC $GCC_TEST_OPTIONS"
3889 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3890 then
3891 CC="$CC $NON_GCC_TEST_OPTIONS"
3894 ac_ext=c
3895 ac_cpp='$CPP $CPPFLAGS'
3896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3899 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3900 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3901 # On Suns, sometimes $CPP names a directory.
3902 if test -n "$CPP" && test -d "$CPP"; then
3903 CPP=
3905 if test -z "$CPP"; then
3906 if test "${ac_cv_prog_CPP+set}" = set; then
3907 echo $ECHO_N "(cached) $ECHO_C" >&6
3908 else
3909 # Double quotes because CPP needs to be expanded
3910 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3912 ac_preproc_ok=false
3913 for ac_c_preproc_warn_flag in '' yes
3915 # Use a header file that comes with gcc, so configuring glibc
3916 # with a fresh cross-compiler works.
3917 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3918 # <limits.h> exists even on freestanding compilers.
3919 # On the NeXT, cc -E runs the code through the compiler's parser,
3920 # not just through cpp. "Syntax error" is here to catch this case.
3921 cat >conftest.$ac_ext <<_ACEOF
3922 /* confdefs.h. */
3923 _ACEOF
3924 cat confdefs.h >>conftest.$ac_ext
3925 cat >>conftest.$ac_ext <<_ACEOF
3926 /* end confdefs.h. */
3927 #ifdef __STDC__
3928 # include <limits.h>
3929 #else
3930 # include <assert.h>
3931 #endif
3932 Syntax error
3933 _ACEOF
3934 if { (ac_try="$ac_cpp conftest.$ac_ext"
3935 case "(($ac_try" in
3936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3937 *) ac_try_echo=$ac_try;;
3938 esac
3939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3940 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3941 ac_status=$?
3942 grep -v '^ *+' conftest.er1 >conftest.err
3943 rm -f conftest.er1
3944 cat conftest.err >&5
3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); } >/dev/null && {
3947 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3948 test ! -s conftest.err
3949 }; then
3951 else
3952 echo "$as_me: failed program was:" >&5
3953 sed 's/^/| /' conftest.$ac_ext >&5
3955 # Broken: fails on valid input.
3956 continue
3959 rm -f conftest.err conftest.$ac_ext
3961 # OK, works on sane cases. Now check whether nonexistent headers
3962 # can be detected and how.
3963 cat >conftest.$ac_ext <<_ACEOF
3964 /* confdefs.h. */
3965 _ACEOF
3966 cat confdefs.h >>conftest.$ac_ext
3967 cat >>conftest.$ac_ext <<_ACEOF
3968 /* end confdefs.h. */
3969 #include <ac_nonexistent.h>
3970 _ACEOF
3971 if { (ac_try="$ac_cpp conftest.$ac_ext"
3972 case "(($ac_try" in
3973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3974 *) ac_try_echo=$ac_try;;
3975 esac
3976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3978 ac_status=$?
3979 grep -v '^ *+' conftest.er1 >conftest.err
3980 rm -f conftest.er1
3981 cat conftest.err >&5
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); } >/dev/null && {
3984 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3985 test ! -s conftest.err
3986 }; then
3987 # Broken: success on invalid input.
3988 continue
3989 else
3990 echo "$as_me: failed program was:" >&5
3991 sed 's/^/| /' conftest.$ac_ext >&5
3993 # Passes both tests.
3994 ac_preproc_ok=:
3995 break
3998 rm -f conftest.err conftest.$ac_ext
4000 done
4001 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4002 rm -f conftest.err conftest.$ac_ext
4003 if $ac_preproc_ok; then
4004 break
4007 done
4008 ac_cv_prog_CPP=$CPP
4011 CPP=$ac_cv_prog_CPP
4012 else
4013 ac_cv_prog_CPP=$CPP
4015 { echo "$as_me:$LINENO: result: $CPP" >&5
4016 echo "${ECHO_T}$CPP" >&6; }
4017 ac_preproc_ok=false
4018 for ac_c_preproc_warn_flag in '' yes
4020 # Use a header file that comes with gcc, so configuring glibc
4021 # with a fresh cross-compiler works.
4022 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4023 # <limits.h> exists even on freestanding compilers.
4024 # On the NeXT, cc -E runs the code through the compiler's parser,
4025 # not just through cpp. "Syntax error" is here to catch this case.
4026 cat >conftest.$ac_ext <<_ACEOF
4027 /* confdefs.h. */
4028 _ACEOF
4029 cat confdefs.h >>conftest.$ac_ext
4030 cat >>conftest.$ac_ext <<_ACEOF
4031 /* end confdefs.h. */
4032 #ifdef __STDC__
4033 # include <limits.h>
4034 #else
4035 # include <assert.h>
4036 #endif
4037 Syntax error
4038 _ACEOF
4039 if { (ac_try="$ac_cpp conftest.$ac_ext"
4040 case "(($ac_try" in
4041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4042 *) ac_try_echo=$ac_try;;
4043 esac
4044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4045 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4046 ac_status=$?
4047 grep -v '^ *+' conftest.er1 >conftest.err
4048 rm -f conftest.er1
4049 cat conftest.err >&5
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); } >/dev/null && {
4052 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4053 test ! -s conftest.err
4054 }; then
4056 else
4057 echo "$as_me: failed program was:" >&5
4058 sed 's/^/| /' conftest.$ac_ext >&5
4060 # Broken: fails on valid input.
4061 continue
4064 rm -f conftest.err conftest.$ac_ext
4066 # OK, works on sane cases. Now check whether nonexistent headers
4067 # can be detected and how.
4068 cat >conftest.$ac_ext <<_ACEOF
4069 /* confdefs.h. */
4070 _ACEOF
4071 cat confdefs.h >>conftest.$ac_ext
4072 cat >>conftest.$ac_ext <<_ACEOF
4073 /* end confdefs.h. */
4074 #include <ac_nonexistent.h>
4075 _ACEOF
4076 if { (ac_try="$ac_cpp conftest.$ac_ext"
4077 case "(($ac_try" in
4078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4079 *) ac_try_echo=$ac_try;;
4080 esac
4081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4082 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4083 ac_status=$?
4084 grep -v '^ *+' conftest.er1 >conftest.err
4085 rm -f conftest.er1
4086 cat conftest.err >&5
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); } >/dev/null && {
4089 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4090 test ! -s conftest.err
4091 }; then
4092 # Broken: success on invalid input.
4093 continue
4094 else
4095 echo "$as_me: failed program was:" >&5
4096 sed 's/^/| /' conftest.$ac_ext >&5
4098 # Passes both tests.
4099 ac_preproc_ok=:
4100 break
4103 rm -f conftest.err conftest.$ac_ext
4105 done
4106 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4107 rm -f conftest.err conftest.$ac_ext
4108 if $ac_preproc_ok; then
4110 else
4111 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4112 See \`config.log' for more details." >&5
4113 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4114 See \`config.log' for more details." >&2;}
4115 { (exit 1); exit 1; }; }
4118 ac_ext=c
4119 ac_cpp='$CPP $CPPFLAGS'
4120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4125 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4126 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4127 if test "${ac_cv_path_GREP+set}" = set; then
4128 echo $ECHO_N "(cached) $ECHO_C" >&6
4129 else
4130 # Extract the first word of "grep ggrep" to use in msg output
4131 if test -z "$GREP"; then
4132 set dummy grep ggrep; ac_prog_name=$2
4133 if test "${ac_cv_path_GREP+set}" = set; then
4134 echo $ECHO_N "(cached) $ECHO_C" >&6
4135 else
4136 ac_path_GREP_found=false
4137 # Loop through the user's path and test for each of PROGNAME-LIST
4138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4141 IFS=$as_save_IFS
4142 test -z "$as_dir" && as_dir=.
4143 for ac_prog in grep ggrep; do
4144 for ac_exec_ext in '' $ac_executable_extensions; do
4145 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4146 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4147 # Check for GNU ac_path_GREP and select it if it is found.
4148 # Check for GNU $ac_path_GREP
4149 case `"$ac_path_GREP" --version 2>&1` in
4150 *GNU*)
4151 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4153 ac_count=0
4154 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4155 while :
4157 cat "conftest.in" "conftest.in" >"conftest.tmp"
4158 mv "conftest.tmp" "conftest.in"
4159 cp "conftest.in" "conftest.nl"
4160 echo 'GREP' >> "conftest.nl"
4161 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4162 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4163 ac_count=`expr $ac_count + 1`
4164 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4165 # Best one so far, save it but keep looking for a better one
4166 ac_cv_path_GREP="$ac_path_GREP"
4167 ac_path_GREP_max=$ac_count
4169 # 10*(2^10) chars as input seems more than enough
4170 test $ac_count -gt 10 && break
4171 done
4172 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4173 esac
4176 $ac_path_GREP_found && break 3
4177 done
4178 done
4180 done
4181 IFS=$as_save_IFS
4186 GREP="$ac_cv_path_GREP"
4187 if test -z "$GREP"; then
4188 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4189 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4190 { (exit 1); exit 1; }; }
4193 else
4194 ac_cv_path_GREP=$GREP
4199 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4200 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4201 GREP="$ac_cv_path_GREP"
4204 { echo "$as_me:$LINENO: checking for egrep" >&5
4205 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4206 if test "${ac_cv_path_EGREP+set}" = set; then
4207 echo $ECHO_N "(cached) $ECHO_C" >&6
4208 else
4209 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4210 then ac_cv_path_EGREP="$GREP -E"
4211 else
4212 # Extract the first word of "egrep" to use in msg output
4213 if test -z "$EGREP"; then
4214 set dummy egrep; ac_prog_name=$2
4215 if test "${ac_cv_path_EGREP+set}" = set; then
4216 echo $ECHO_N "(cached) $ECHO_C" >&6
4217 else
4218 ac_path_EGREP_found=false
4219 # Loop through the user's path and test for each of PROGNAME-LIST
4220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4221 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4223 IFS=$as_save_IFS
4224 test -z "$as_dir" && as_dir=.
4225 for ac_prog in egrep; do
4226 for ac_exec_ext in '' $ac_executable_extensions; do
4227 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4228 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4229 # Check for GNU ac_path_EGREP and select it if it is found.
4230 # Check for GNU $ac_path_EGREP
4231 case `"$ac_path_EGREP" --version 2>&1` in
4232 *GNU*)
4233 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4235 ac_count=0
4236 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4237 while :
4239 cat "conftest.in" "conftest.in" >"conftest.tmp"
4240 mv "conftest.tmp" "conftest.in"
4241 cp "conftest.in" "conftest.nl"
4242 echo 'EGREP' >> "conftest.nl"
4243 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4244 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4245 ac_count=`expr $ac_count + 1`
4246 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4247 # Best one so far, save it but keep looking for a better one
4248 ac_cv_path_EGREP="$ac_path_EGREP"
4249 ac_path_EGREP_max=$ac_count
4251 # 10*(2^10) chars as input seems more than enough
4252 test $ac_count -gt 10 && break
4253 done
4254 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4255 esac
4258 $ac_path_EGREP_found && break 3
4259 done
4260 done
4262 done
4263 IFS=$as_save_IFS
4268 EGREP="$ac_cv_path_EGREP"
4269 if test -z "$EGREP"; then
4270 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4271 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4272 { (exit 1); exit 1; }; }
4275 else
4276 ac_cv_path_EGREP=$EGREP
4282 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4283 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4284 EGREP="$ac_cv_path_EGREP"
4288 { echo "$as_me:$LINENO: checking for AIX" >&5
4289 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4290 cat >conftest.$ac_ext <<_ACEOF
4291 /* confdefs.h. */
4292 _ACEOF
4293 cat confdefs.h >>conftest.$ac_ext
4294 cat >>conftest.$ac_ext <<_ACEOF
4295 /* end confdefs.h. */
4296 #ifdef _AIX
4298 #endif
4300 _ACEOF
4301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4302 $EGREP "yes" >/dev/null 2>&1; then
4303 { echo "$as_me:$LINENO: result: yes" >&5
4304 echo "${ECHO_T}yes" >&6; }
4305 cat >>confdefs.h <<\_ACEOF
4306 #define _ALL_SOURCE 1
4307 _ACEOF
4309 else
4310 { echo "$as_me:$LINENO: result: no" >&5
4311 echo "${ECHO_T}no" >&6; }
4313 rm -f conftest*
4317 cat >>confdefs.h <<\_ACEOF
4318 #define _GNU_SOURCE 1
4319 _ACEOF
4323 ### Use -Wno-pointer-sign if the compiler supports it
4324 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4325 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4326 SAVE_CFLAGS="$CFLAGS"
4327 CFLAGS="$CFLAGS -Wno-pointer-sign"
4328 cat >conftest.$ac_ext <<_ACEOF
4329 /* confdefs.h. */
4330 _ACEOF
4331 cat confdefs.h >>conftest.$ac_ext
4332 cat >>conftest.$ac_ext <<_ACEOF
4333 /* end confdefs.h. */
4336 main ()
4340 return 0;
4342 _ACEOF
4343 rm -f conftest.$ac_objext
4344 if { (ac_try="$ac_compile"
4345 case "(($ac_try" in
4346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4347 *) ac_try_echo=$ac_try;;
4348 esac
4349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4350 (eval "$ac_compile") 2>conftest.er1
4351 ac_status=$?
4352 grep -v '^ *+' conftest.er1 >conftest.err
4353 rm -f conftest.er1
4354 cat conftest.err >&5
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); } && {
4357 test -z "$ac_c_werror_flag" ||
4358 test ! -s conftest.err
4359 } && test -s conftest.$ac_objext; then
4360 has_option=yes
4361 else
4362 echo "$as_me: failed program was:" >&5
4363 sed 's/^/| /' conftest.$ac_ext >&5
4365 has_option=no
4368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4369 if test $has_option = yes; then
4370 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4372 { echo "$as_me:$LINENO: result: $has_option" >&5
4373 echo "${ECHO_T}$has_option" >&6; }
4374 CFLAGS="$SAVE_CFLAGS"
4375 unset has_option
4376 unset SAVE_CFLAGS
4378 #### Some other nice autoconf tests.
4380 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4381 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4382 LN_S=$as_ln_s
4383 if test "$LN_S" = "ln -s"; then
4384 { echo "$as_me:$LINENO: result: yes" >&5
4385 echo "${ECHO_T}yes" >&6; }
4386 else
4387 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4388 echo "${ECHO_T}no, using $LN_S" >&6; }
4391 ac_ext=c
4392 ac_cpp='$CPP $CPPFLAGS'
4393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4396 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4397 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4398 # On Suns, sometimes $CPP names a directory.
4399 if test -n "$CPP" && test -d "$CPP"; then
4400 CPP=
4402 if test -z "$CPP"; then
4403 if test "${ac_cv_prog_CPP+set}" = set; then
4404 echo $ECHO_N "(cached) $ECHO_C" >&6
4405 else
4406 # Double quotes because CPP needs to be expanded
4407 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
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
4501 break
4504 done
4505 ac_cv_prog_CPP=$CPP
4508 CPP=$ac_cv_prog_CPP
4509 else
4510 ac_cv_prog_CPP=$CPP
4512 { echo "$as_me:$LINENO: result: $CPP" >&5
4513 echo "${ECHO_T}$CPP" >&6; }
4514 ac_preproc_ok=false
4515 for ac_c_preproc_warn_flag in '' yes
4517 # Use a header file that comes with gcc, so configuring glibc
4518 # with a fresh cross-compiler works.
4519 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4520 # <limits.h> exists even on freestanding compilers.
4521 # On the NeXT, cc -E runs the code through the compiler's parser,
4522 # not just through cpp. "Syntax error" is here to catch this case.
4523 cat >conftest.$ac_ext <<_ACEOF
4524 /* confdefs.h. */
4525 _ACEOF
4526 cat confdefs.h >>conftest.$ac_ext
4527 cat >>conftest.$ac_ext <<_ACEOF
4528 /* end confdefs.h. */
4529 #ifdef __STDC__
4530 # include <limits.h>
4531 #else
4532 # include <assert.h>
4533 #endif
4534 Syntax error
4535 _ACEOF
4536 if { (ac_try="$ac_cpp conftest.$ac_ext"
4537 case "(($ac_try" in
4538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4539 *) ac_try_echo=$ac_try;;
4540 esac
4541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4542 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4543 ac_status=$?
4544 grep -v '^ *+' conftest.er1 >conftest.err
4545 rm -f conftest.er1
4546 cat conftest.err >&5
4547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548 (exit $ac_status); } >/dev/null && {
4549 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4550 test ! -s conftest.err
4551 }; then
4553 else
4554 echo "$as_me: failed program was:" >&5
4555 sed 's/^/| /' conftest.$ac_ext >&5
4557 # Broken: fails on valid input.
4558 continue
4561 rm -f conftest.err conftest.$ac_ext
4563 # OK, works on sane cases. Now check whether nonexistent headers
4564 # can be detected and how.
4565 cat >conftest.$ac_ext <<_ACEOF
4566 /* confdefs.h. */
4567 _ACEOF
4568 cat confdefs.h >>conftest.$ac_ext
4569 cat >>conftest.$ac_ext <<_ACEOF
4570 /* end confdefs.h. */
4571 #include <ac_nonexistent.h>
4572 _ACEOF
4573 if { (ac_try="$ac_cpp conftest.$ac_ext"
4574 case "(($ac_try" in
4575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4576 *) ac_try_echo=$ac_try;;
4577 esac
4578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4580 ac_status=$?
4581 grep -v '^ *+' conftest.er1 >conftest.err
4582 rm -f conftest.er1
4583 cat conftest.err >&5
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); } >/dev/null && {
4586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4587 test ! -s conftest.err
4588 }; then
4589 # Broken: success on invalid input.
4590 continue
4591 else
4592 echo "$as_me: failed program was:" >&5
4593 sed 's/^/| /' conftest.$ac_ext >&5
4595 # Passes both tests.
4596 ac_preproc_ok=:
4597 break
4600 rm -f conftest.err conftest.$ac_ext
4602 done
4603 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4604 rm -f conftest.err conftest.$ac_ext
4605 if $ac_preproc_ok; then
4607 else
4608 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4609 See \`config.log' for more details." >&5
4610 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4611 See \`config.log' for more details." >&2;}
4612 { (exit 1); exit 1; }; }
4615 ac_ext=c
4616 ac_cpp='$CPP $CPPFLAGS'
4617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4621 # Find a good install program. We prefer a C program (faster),
4622 # so one script is as good as another. But avoid the broken or
4623 # incompatible versions:
4624 # SysV /etc/install, /usr/sbin/install
4625 # SunOS /usr/etc/install
4626 # IRIX /sbin/install
4627 # AIX /bin/install
4628 # AmigaOS /C/install, which installs bootblocks on floppy discs
4629 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4630 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4631 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4632 # OS/2's system install, which has a completely different semantic
4633 # ./install, which can be erroneously created by make from ./install.sh.
4634 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4635 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4636 if test -z "$INSTALL"; then
4637 if test "${ac_cv_path_install+set}" = set; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4639 else
4640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4641 for as_dir in $PATH
4643 IFS=$as_save_IFS
4644 test -z "$as_dir" && as_dir=.
4645 # Account for people who put trailing slashes in PATH elements.
4646 case $as_dir/ in
4647 ./ | .// | /cC/* | \
4648 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4649 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4650 /usr/ucb/* ) ;;
4652 # OSF1 and SCO ODT 3.0 have their own names for install.
4653 # Don't use installbsd from OSF since it installs stuff as root
4654 # by default.
4655 for ac_prog in ginstall scoinst install; do
4656 for ac_exec_ext in '' $ac_executable_extensions; do
4657 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4658 if test $ac_prog = install &&
4659 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4660 # AIX install. It has an incompatible calling convention.
4662 elif test $ac_prog = install &&
4663 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4664 # program-specific install script used by HP pwplus--don't use.
4666 else
4667 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4668 break 3
4671 done
4672 done
4674 esac
4675 done
4676 IFS=$as_save_IFS
4680 if test "${ac_cv_path_install+set}" = set; then
4681 INSTALL=$ac_cv_path_install
4682 else
4683 # As a last resort, use the slow shell script. Don't cache a
4684 # value for INSTALL within a source directory, because that will
4685 # break other packages using the cache if that directory is
4686 # removed, or if the value is a relative name.
4687 INSTALL=$ac_install_sh
4690 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4691 echo "${ECHO_T}$INSTALL" >&6; }
4693 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4694 # It thinks the first close brace ends the variable substitution.
4695 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4697 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4699 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4701 if test "x$RANLIB" = x; then
4702 if test -n "$ac_tool_prefix"; then
4703 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4704 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4707 if test "${ac_cv_prog_RANLIB+set}" = set; then
4708 echo $ECHO_N "(cached) $ECHO_C" >&6
4709 else
4710 if test -n "$RANLIB"; then
4711 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4712 else
4713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4714 for as_dir in $PATH
4716 IFS=$as_save_IFS
4717 test -z "$as_dir" && as_dir=.
4718 for ac_exec_ext in '' $ac_executable_extensions; do
4719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4720 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4722 break 2
4724 done
4725 done
4726 IFS=$as_save_IFS
4730 RANLIB=$ac_cv_prog_RANLIB
4731 if test -n "$RANLIB"; then
4732 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4733 echo "${ECHO_T}$RANLIB" >&6; }
4734 else
4735 { echo "$as_me:$LINENO: result: no" >&5
4736 echo "${ECHO_T}no" >&6; }
4741 if test -z "$ac_cv_prog_RANLIB"; then
4742 ac_ct_RANLIB=$RANLIB
4743 # Extract the first word of "ranlib", so it can be a program name with args.
4744 set dummy ranlib; ac_word=$2
4745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4747 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4748 echo $ECHO_N "(cached) $ECHO_C" >&6
4749 else
4750 if test -n "$ac_ct_RANLIB"; then
4751 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4752 else
4753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754 for as_dir in $PATH
4756 IFS=$as_save_IFS
4757 test -z "$as_dir" && as_dir=.
4758 for ac_exec_ext in '' $ac_executable_extensions; do
4759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4760 ac_cv_prog_ac_ct_RANLIB="ranlib"
4761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4762 break 2
4764 done
4765 done
4766 IFS=$as_save_IFS
4770 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4771 if test -n "$ac_ct_RANLIB"; then
4772 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4773 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4774 else
4775 { echo "$as_me:$LINENO: result: no" >&5
4776 echo "${ECHO_T}no" >&6; }
4779 if test "x$ac_ct_RANLIB" = x; then
4780 RANLIB=":"
4781 else
4782 case $cross_compiling:$ac_tool_warned in
4783 yes:)
4784 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4785 whose name does not start with the host triplet. If you think this
4786 configuration is useful to you, please write to autoconf@gnu.org." >&5
4787 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4788 whose name does not start with the host triplet. If you think this
4789 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4790 ac_tool_warned=yes ;;
4791 esac
4792 RANLIB=$ac_ct_RANLIB
4794 else
4795 RANLIB="$ac_cv_prog_RANLIB"
4799 # Extract the first word of "install-info", so it can be a program name with args.
4800 set dummy install-info; ac_word=$2
4801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4803 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4804 echo $ECHO_N "(cached) $ECHO_C" >&6
4805 else
4806 case $INSTALL_INFO in
4807 [\\/]* | ?:[\\/]*)
4808 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4812 for as_dir in $PATH
4814 IFS=$as_save_IFS
4815 test -z "$as_dir" && as_dir=.
4816 for ac_exec_ext in '' $ac_executable_extensions; do
4817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4818 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4820 break 2
4822 done
4823 done
4824 IFS=$as_save_IFS
4827 esac
4829 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4830 if test -n "$INSTALL_INFO"; then
4831 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4832 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4833 else
4834 { echo "$as_me:$LINENO: result: no" >&5
4835 echo "${ECHO_T}no" >&6; }
4839 # Extract the first word of "install-info", so it can be a program name with args.
4840 set dummy install-info; ac_word=$2
4841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4843 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4844 echo $ECHO_N "(cached) $ECHO_C" >&6
4845 else
4846 case $INSTALL_INFO in
4847 [\\/]* | ?:[\\/]*)
4848 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4852 for as_dir in /usr/sbin
4854 IFS=$as_save_IFS
4855 test -z "$as_dir" && as_dir=.
4856 for ac_exec_ext in '' $ac_executable_extensions; do
4857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4858 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4860 break 2
4862 done
4863 done
4864 IFS=$as_save_IFS
4867 esac
4869 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4870 if test -n "$INSTALL_INFO"; then
4871 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4872 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4873 else
4874 { echo "$as_me:$LINENO: result: no" >&5
4875 echo "${ECHO_T}no" >&6; }
4879 # Extract the first word of "install-info", so it can be a program name with args.
4880 set dummy install-info; ac_word=$2
4881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4883 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4884 echo $ECHO_N "(cached) $ECHO_C" >&6
4885 else
4886 case $INSTALL_INFO in
4887 [\\/]* | ?:[\\/]*)
4888 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4892 for as_dir in /sbin
4894 IFS=$as_save_IFS
4895 test -z "$as_dir" && as_dir=.
4896 for ac_exec_ext in '' $ac_executable_extensions; do
4897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4898 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4900 break 2
4902 done
4903 done
4904 IFS=$as_save_IFS
4906 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4908 esac
4910 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4911 if test -n "$INSTALL_INFO"; then
4912 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4913 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4914 else
4915 { echo "$as_me:$LINENO: result: no" >&5
4916 echo "${ECHO_T}no" >&6; }
4920 # Extract the first word of "gzip", so it can be a program name with args.
4921 set dummy gzip; ac_word=$2
4922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4924 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4925 echo $ECHO_N "(cached) $ECHO_C" >&6
4926 else
4927 case $GZIP_PROG in
4928 [\\/]* | ?:[\\/]*)
4929 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
4932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4933 for as_dir in $PATH
4935 IFS=$as_save_IFS
4936 test -z "$as_dir" && as_dir=.
4937 for ac_exec_ext in '' $ac_executable_extensions; do
4938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4939 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
4940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4941 break 2
4943 done
4944 done
4945 IFS=$as_save_IFS
4948 esac
4950 GZIP_PROG=$ac_cv_path_GZIP_PROG
4951 if test -n "$GZIP_PROG"; then
4952 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4953 echo "${ECHO_T}$GZIP_PROG" >&6; }
4954 else
4955 { echo "$as_me:$LINENO: result: no" >&5
4956 echo "${ECHO_T}no" >&6; }
4962 ## Need makeinfo >= 4.6 (?) to build the manuals.
4963 # Extract the first word of "makeinfo", so it can be a program name with args.
4964 set dummy makeinfo; ac_word=$2
4965 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4967 if test "${ac_cv_path_MAKEINFO+set}" = set; then
4968 echo $ECHO_N "(cached) $ECHO_C" >&6
4969 else
4970 case $MAKEINFO in
4971 [\\/]* | ?:[\\/]*)
4972 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
4975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4976 for as_dir in $PATH
4978 IFS=$as_save_IFS
4979 test -z "$as_dir" && as_dir=.
4980 for ac_exec_ext in '' $ac_executable_extensions; do
4981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4982 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
4983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4984 break 2
4986 done
4987 done
4988 IFS=$as_save_IFS
4990 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
4992 esac
4994 MAKEINFO=$ac_cv_path_MAKEINFO
4995 if test -n "$MAKEINFO"; then
4996 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
4997 echo "${ECHO_T}$MAKEINFO" >&6; }
4998 else
4999 { echo "$as_me:$LINENO: result: no" >&5
5000 echo "${ECHO_T}no" >&6; }
5004 if test "$MAKEINFO" != "no" && \
5005 test x"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[6-9]|4\.[1-5][0-9]+)'`" = x; then
5006 MAKEINFO=no
5009 if test "$MAKEINFO" = "no"; then
5010 { { echo "$as_me:$LINENO: error: makeinfo >= 4.6 is required " >&5
5011 echo "$as_me: error: makeinfo >= 4.6 is required " >&2;}
5012 { (exit 1); exit 1; }; }
5017 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5018 then
5019 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5022 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5023 then
5024 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5028 late_LDFLAGS=$LDFLAGS
5029 if test "$GCC" = yes; then
5030 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5031 else
5032 LDFLAGS="$LDFLAGS -znocombreloc"
5035 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5036 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5037 cat >conftest.$ac_ext <<_ACEOF
5038 main(){return 0;}
5039 _ACEOF
5040 rm -f conftest.$ac_objext conftest$ac_exeext
5041 if { (ac_try="$ac_link"
5042 case "(($ac_try" in
5043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5044 *) ac_try_echo=$ac_try;;
5045 esac
5046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5047 (eval "$ac_link") 2>conftest.er1
5048 ac_status=$?
5049 grep -v '^ *+' conftest.er1 >conftest.err
5050 rm -f conftest.er1
5051 cat conftest.err >&5
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); } && {
5054 test -z "$ac_c_werror_flag" ||
5055 test ! -s conftest.err
5056 } && test -s conftest$ac_exeext &&
5057 $as_test_x conftest$ac_exeext; then
5058 { echo "$as_me:$LINENO: result: yes" >&5
5059 echo "${ECHO_T}yes" >&6; }
5060 else
5061 echo "$as_me: failed program was:" >&5
5062 sed 's/^/| /' conftest.$ac_ext >&5
5064 LDFLAGS=$late_LDFLAGS
5065 { echo "$as_me:$LINENO: result: no" >&5
5066 echo "${ECHO_T}no" >&6; }
5069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5070 conftest$ac_exeext conftest.$ac_ext
5072 #### Extract some information from the operating system and machine files.
5074 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5075 - which libraries the lib-src programs will want, and
5076 - whether the GNU malloc routines are usable..." >&5
5077 echo "$as_me: checking the machine- and system-dependent files to find out
5078 - which libraries the lib-src programs will want, and
5079 - whether the GNU malloc routines are usable..." >&6;}
5081 ### First figure out CFLAGS (which we use for running the compiler here)
5082 ### and REAL_CFLAGS (which we use for real compilation).
5083 ### The two are the same except on a few systems, where they are made
5084 ### different to work around various lossages. For example,
5085 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5086 ### as implying static linking.
5088 ### If the CFLAGS env var is specified, we use that value
5089 ### instead of the default.
5091 ### It's not important that this name contain the PID; you can't run
5092 ### two configures in the same directory and have anything work
5093 ### anyway.
5094 tempcname="conftest.c"
5096 echo '
5097 #include "'${srcdir}'/src/'${opsysfile}'"
5098 #include "'${srcdir}'/src/'${machfile}'"
5099 #ifndef LIBS_MACHINE
5100 #define LIBS_MACHINE
5101 #endif
5102 #ifndef LIBS_SYSTEM
5103 #define LIBS_SYSTEM
5104 #endif
5105 #ifndef C_SWITCH_SYSTEM
5106 #define C_SWITCH_SYSTEM
5107 #endif
5108 #ifndef C_SWITCH_MACHINE
5109 #define C_SWITCH_MACHINE
5110 #endif
5111 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5112 configure___ c_switch_system=C_SWITCH_SYSTEM
5113 configure___ c_switch_machine=C_SWITCH_MACHINE
5115 #ifndef LIB_X11_LIB
5116 #define LIB_X11_LIB -lX11
5117 #endif
5119 #ifndef LIBX11_SYSTEM
5120 #define LIBX11_SYSTEM
5121 #endif
5122 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5124 #ifdef UNEXEC
5125 configure___ unexec=UNEXEC
5126 #else
5127 configure___ unexec=unexec.o
5128 #endif
5130 #ifdef SYSTEM_MALLOC
5131 configure___ system_malloc=yes
5132 #else
5133 configure___ system_malloc=no
5134 #endif
5136 #ifdef USE_MMAP_FOR_BUFFERS
5137 configure___ use_mmap_for_buffers=yes
5138 #else
5139 configure___ use_mmap_for_buffers=no
5140 #endif
5142 #ifndef C_DEBUG_SWITCH
5143 #define C_DEBUG_SWITCH -g
5144 #endif
5146 #ifndef C_OPTIMIZE_SWITCH
5147 #ifdef __GNUC__
5148 #define C_OPTIMIZE_SWITCH -O2
5149 #else
5150 #define C_OPTIMIZE_SWITCH -O
5151 #endif
5152 #endif
5154 #ifndef C_WARNINGS_SWITCH
5155 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5156 #endif
5158 #ifndef LD_SWITCH_MACHINE
5159 #define LD_SWITCH_MACHINE
5160 #endif
5162 #ifndef LD_SWITCH_SYSTEM
5163 #define LD_SWITCH_SYSTEM
5164 #endif
5166 #ifndef LD_SWITCH_X_SITE_AUX
5167 #define LD_SWITCH_X_SITE_AUX
5168 #endif
5170 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5171 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5173 #ifdef THIS_IS_CONFIGURE
5175 /* Get the CFLAGS for tests in configure. */
5176 #ifdef __GNUC__
5177 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5178 #else
5179 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5180 #endif
5182 #else /* not THIS_IS_CONFIGURE */
5184 /* Get the CFLAGS for real compilation. */
5185 #ifdef __GNUC__
5186 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5187 #else
5188 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5189 #endif
5191 #endif /* not THIS_IS_CONFIGURE */
5192 ' > ${tempcname}
5194 # The value of CPP is a quoted variable reference, so we need to do this
5195 # to get its actual value...
5196 CPP=`eval "echo $CPP"`
5197 eval `${CPP} -Isrc ${tempcname} \
5198 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5199 if test "x$SPECIFIED_CFLAGS" = x; then
5200 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5201 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5202 else
5203 REAL_CFLAGS="$CFLAGS"
5205 rm ${tempcname}
5207 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5209 ### Make sure subsequent tests use flags consistent with the build flags.
5211 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5212 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5213 else
5214 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5219 # Check whether --enable-largefile was given.
5220 if test "${enable_largefile+set}" = set; then
5221 enableval=$enable_largefile;
5224 if test "$enable_largefile" != no; then
5226 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5227 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5228 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5229 echo $ECHO_N "(cached) $ECHO_C" >&6
5230 else
5231 ac_cv_sys_largefile_CC=no
5232 if test "$GCC" != yes; then
5233 ac_save_CC=$CC
5234 while :; do
5235 # IRIX 6.2 and later do not support large files by default,
5236 # so use the C compiler's -n32 option if that helps.
5237 cat >conftest.$ac_ext <<_ACEOF
5238 /* confdefs.h. */
5239 _ACEOF
5240 cat confdefs.h >>conftest.$ac_ext
5241 cat >>conftest.$ac_ext <<_ACEOF
5242 /* end confdefs.h. */
5243 #include <sys/types.h>
5244 /* Check that off_t can represent 2**63 - 1 correctly.
5245 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5246 since some C++ compilers masquerading as C compilers
5247 incorrectly reject 9223372036854775807. */
5248 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5249 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5250 && LARGE_OFF_T % 2147483647 == 1)
5251 ? 1 : -1];
5253 main ()
5257 return 0;
5259 _ACEOF
5260 rm -f conftest.$ac_objext
5261 if { (ac_try="$ac_compile"
5262 case "(($ac_try" in
5263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5264 *) ac_try_echo=$ac_try;;
5265 esac
5266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5267 (eval "$ac_compile") 2>conftest.er1
5268 ac_status=$?
5269 grep -v '^ *+' conftest.er1 >conftest.err
5270 rm -f conftest.er1
5271 cat conftest.err >&5
5272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273 (exit $ac_status); } && {
5274 test -z "$ac_c_werror_flag" ||
5275 test ! -s conftest.err
5276 } && test -s conftest.$ac_objext; then
5277 break
5278 else
5279 echo "$as_me: failed program was:" >&5
5280 sed 's/^/| /' conftest.$ac_ext >&5
5285 rm -f core conftest.err conftest.$ac_objext
5286 CC="$CC -n32"
5287 rm -f conftest.$ac_objext
5288 if { (ac_try="$ac_compile"
5289 case "(($ac_try" in
5290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5291 *) ac_try_echo=$ac_try;;
5292 esac
5293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5294 (eval "$ac_compile") 2>conftest.er1
5295 ac_status=$?
5296 grep -v '^ *+' conftest.er1 >conftest.err
5297 rm -f conftest.er1
5298 cat conftest.err >&5
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); } && {
5301 test -z "$ac_c_werror_flag" ||
5302 test ! -s conftest.err
5303 } && test -s conftest.$ac_objext; then
5304 ac_cv_sys_largefile_CC=' -n32'; break
5305 else
5306 echo "$as_me: failed program was:" >&5
5307 sed 's/^/| /' conftest.$ac_ext >&5
5312 rm -f core conftest.err conftest.$ac_objext
5313 break
5314 done
5315 CC=$ac_save_CC
5316 rm -f conftest.$ac_ext
5319 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5320 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5321 if test "$ac_cv_sys_largefile_CC" != no; then
5322 CC=$CC$ac_cv_sys_largefile_CC
5325 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5326 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5327 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5328 echo $ECHO_N "(cached) $ECHO_C" >&6
5329 else
5330 while :; do
5331 cat >conftest.$ac_ext <<_ACEOF
5332 /* confdefs.h. */
5333 _ACEOF
5334 cat confdefs.h >>conftest.$ac_ext
5335 cat >>conftest.$ac_ext <<_ACEOF
5336 /* end confdefs.h. */
5337 #include <sys/types.h>
5338 /* Check that off_t can represent 2**63 - 1 correctly.
5339 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5340 since some C++ compilers masquerading as C compilers
5341 incorrectly reject 9223372036854775807. */
5342 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5343 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5344 && LARGE_OFF_T % 2147483647 == 1)
5345 ? 1 : -1];
5347 main ()
5351 return 0;
5353 _ACEOF
5354 rm -f conftest.$ac_objext
5355 if { (ac_try="$ac_compile"
5356 case "(($ac_try" in
5357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5358 *) ac_try_echo=$ac_try;;
5359 esac
5360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5361 (eval "$ac_compile") 2>conftest.er1
5362 ac_status=$?
5363 grep -v '^ *+' conftest.er1 >conftest.err
5364 rm -f conftest.er1
5365 cat conftest.err >&5
5366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367 (exit $ac_status); } && {
5368 test -z "$ac_c_werror_flag" ||
5369 test ! -s conftest.err
5370 } && test -s conftest.$ac_objext; then
5371 ac_cv_sys_file_offset_bits=no; break
5372 else
5373 echo "$as_me: failed program was:" >&5
5374 sed 's/^/| /' conftest.$ac_ext >&5
5379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5380 cat >conftest.$ac_ext <<_ACEOF
5381 /* confdefs.h. */
5382 _ACEOF
5383 cat confdefs.h >>conftest.$ac_ext
5384 cat >>conftest.$ac_ext <<_ACEOF
5385 /* end confdefs.h. */
5386 #define _FILE_OFFSET_BITS 64
5387 #include <sys/types.h>
5388 /* Check that off_t can represent 2**63 - 1 correctly.
5389 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5390 since some C++ compilers masquerading as C compilers
5391 incorrectly reject 9223372036854775807. */
5392 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5393 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5394 && LARGE_OFF_T % 2147483647 == 1)
5395 ? 1 : -1];
5397 main ()
5401 return 0;
5403 _ACEOF
5404 rm -f conftest.$ac_objext
5405 if { (ac_try="$ac_compile"
5406 case "(($ac_try" in
5407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5408 *) ac_try_echo=$ac_try;;
5409 esac
5410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5411 (eval "$ac_compile") 2>conftest.er1
5412 ac_status=$?
5413 grep -v '^ *+' conftest.er1 >conftest.err
5414 rm -f conftest.er1
5415 cat conftest.err >&5
5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417 (exit $ac_status); } && {
5418 test -z "$ac_c_werror_flag" ||
5419 test ! -s conftest.err
5420 } && test -s conftest.$ac_objext; then
5421 ac_cv_sys_file_offset_bits=64; break
5422 else
5423 echo "$as_me: failed program was:" >&5
5424 sed 's/^/| /' conftest.$ac_ext >&5
5429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5430 ac_cv_sys_file_offset_bits=unknown
5431 break
5432 done
5434 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5435 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5436 case $ac_cv_sys_file_offset_bits in #(
5437 no | unknown) ;;
5439 cat >>confdefs.h <<_ACEOF
5440 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5441 _ACEOF
5443 esac
5444 rm -f conftest*
5445 if test $ac_cv_sys_file_offset_bits = unknown; then
5446 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5447 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5448 if test "${ac_cv_sys_large_files+set}" = set; then
5449 echo $ECHO_N "(cached) $ECHO_C" >&6
5450 else
5451 while :; do
5452 cat >conftest.$ac_ext <<_ACEOF
5453 /* confdefs.h. */
5454 _ACEOF
5455 cat confdefs.h >>conftest.$ac_ext
5456 cat >>conftest.$ac_ext <<_ACEOF
5457 /* end confdefs.h. */
5458 #include <sys/types.h>
5459 /* Check that off_t can represent 2**63 - 1 correctly.
5460 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5461 since some C++ compilers masquerading as C compilers
5462 incorrectly reject 9223372036854775807. */
5463 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5464 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5465 && LARGE_OFF_T % 2147483647 == 1)
5466 ? 1 : -1];
5468 main ()
5472 return 0;
5474 _ACEOF
5475 rm -f conftest.$ac_objext
5476 if { (ac_try="$ac_compile"
5477 case "(($ac_try" in
5478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5479 *) ac_try_echo=$ac_try;;
5480 esac
5481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5482 (eval "$ac_compile") 2>conftest.er1
5483 ac_status=$?
5484 grep -v '^ *+' conftest.er1 >conftest.err
5485 rm -f conftest.er1
5486 cat conftest.err >&5
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); } && {
5489 test -z "$ac_c_werror_flag" ||
5490 test ! -s conftest.err
5491 } && test -s conftest.$ac_objext; then
5492 ac_cv_sys_large_files=no; break
5493 else
5494 echo "$as_me: failed program was:" >&5
5495 sed 's/^/| /' conftest.$ac_ext >&5
5500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5501 cat >conftest.$ac_ext <<_ACEOF
5502 /* confdefs.h. */
5503 _ACEOF
5504 cat confdefs.h >>conftest.$ac_ext
5505 cat >>conftest.$ac_ext <<_ACEOF
5506 /* end confdefs.h. */
5507 #define _LARGE_FILES 1
5508 #include <sys/types.h>
5509 /* Check that off_t can represent 2**63 - 1 correctly.
5510 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5511 since some C++ compilers masquerading as C compilers
5512 incorrectly reject 9223372036854775807. */
5513 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5514 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5515 && LARGE_OFF_T % 2147483647 == 1)
5516 ? 1 : -1];
5518 main ()
5522 return 0;
5524 _ACEOF
5525 rm -f conftest.$ac_objext
5526 if { (ac_try="$ac_compile"
5527 case "(($ac_try" in
5528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5529 *) ac_try_echo=$ac_try;;
5530 esac
5531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5532 (eval "$ac_compile") 2>conftest.er1
5533 ac_status=$?
5534 grep -v '^ *+' conftest.er1 >conftest.err
5535 rm -f conftest.er1
5536 cat conftest.err >&5
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); } && {
5539 test -z "$ac_c_werror_flag" ||
5540 test ! -s conftest.err
5541 } && test -s conftest.$ac_objext; then
5542 ac_cv_sys_large_files=1; break
5543 else
5544 echo "$as_me: failed program was:" >&5
5545 sed 's/^/| /' conftest.$ac_ext >&5
5550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5551 ac_cv_sys_large_files=unknown
5552 break
5553 done
5555 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5556 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5557 case $ac_cv_sys_large_files in #(
5558 no | unknown) ;;
5560 cat >>confdefs.h <<_ACEOF
5561 #define _LARGE_FILES $ac_cv_sys_large_files
5562 _ACEOF
5564 esac
5565 rm -f conftest*
5571 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5572 ### be located in either /usr/lib64 or /usr/lib.
5573 case "${canonical}" in
5574 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5575 if test -d /usr/lib64; then
5577 cat >>confdefs.h <<\_ACEOF
5578 #define HAVE_LIB64_DIR 1
5579 _ACEOF
5582 esac
5587 if test "${with_sound}" != "no"; then
5588 # Sound support for GNU/Linux and the free BSDs.
5589 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5590 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5591 if test "${ac_cv_header_stdc+set}" = set; then
5592 echo $ECHO_N "(cached) $ECHO_C" >&6
5593 else
5594 cat >conftest.$ac_ext <<_ACEOF
5595 /* confdefs.h. */
5596 _ACEOF
5597 cat confdefs.h >>conftest.$ac_ext
5598 cat >>conftest.$ac_ext <<_ACEOF
5599 /* end confdefs.h. */
5600 #include <stdlib.h>
5601 #include <stdarg.h>
5602 #include <string.h>
5603 #include <float.h>
5606 main ()
5610 return 0;
5612 _ACEOF
5613 rm -f conftest.$ac_objext
5614 if { (ac_try="$ac_compile"
5615 case "(($ac_try" in
5616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5617 *) ac_try_echo=$ac_try;;
5618 esac
5619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5620 (eval "$ac_compile") 2>conftest.er1
5621 ac_status=$?
5622 grep -v '^ *+' conftest.er1 >conftest.err
5623 rm -f conftest.er1
5624 cat conftest.err >&5
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); } && {
5627 test -z "$ac_c_werror_flag" ||
5628 test ! -s conftest.err
5629 } && test -s conftest.$ac_objext; then
5630 ac_cv_header_stdc=yes
5631 else
5632 echo "$as_me: failed program was:" >&5
5633 sed 's/^/| /' conftest.$ac_ext >&5
5635 ac_cv_header_stdc=no
5638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5640 if test $ac_cv_header_stdc = yes; then
5641 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5642 cat >conftest.$ac_ext <<_ACEOF
5643 /* confdefs.h. */
5644 _ACEOF
5645 cat confdefs.h >>conftest.$ac_ext
5646 cat >>conftest.$ac_ext <<_ACEOF
5647 /* end confdefs.h. */
5648 #include <string.h>
5650 _ACEOF
5651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5652 $EGREP "memchr" >/dev/null 2>&1; then
5654 else
5655 ac_cv_header_stdc=no
5657 rm -f conftest*
5661 if test $ac_cv_header_stdc = yes; then
5662 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5663 cat >conftest.$ac_ext <<_ACEOF
5664 /* confdefs.h. */
5665 _ACEOF
5666 cat confdefs.h >>conftest.$ac_ext
5667 cat >>conftest.$ac_ext <<_ACEOF
5668 /* end confdefs.h. */
5669 #include <stdlib.h>
5671 _ACEOF
5672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5673 $EGREP "free" >/dev/null 2>&1; then
5675 else
5676 ac_cv_header_stdc=no
5678 rm -f conftest*
5682 if test $ac_cv_header_stdc = yes; then
5683 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5684 if test "$cross_compiling" = yes; then
5686 else
5687 cat >conftest.$ac_ext <<_ACEOF
5688 /* confdefs.h. */
5689 _ACEOF
5690 cat confdefs.h >>conftest.$ac_ext
5691 cat >>conftest.$ac_ext <<_ACEOF
5692 /* end confdefs.h. */
5693 #include <ctype.h>
5694 #include <stdlib.h>
5695 #if ((' ' & 0x0FF) == 0x020)
5696 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5697 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5698 #else
5699 # define ISLOWER(c) \
5700 (('a' <= (c) && (c) <= 'i') \
5701 || ('j' <= (c) && (c) <= 'r') \
5702 || ('s' <= (c) && (c) <= 'z'))
5703 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5704 #endif
5706 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5708 main ()
5710 int i;
5711 for (i = 0; i < 256; i++)
5712 if (XOR (islower (i), ISLOWER (i))
5713 || toupper (i) != TOUPPER (i))
5714 return 2;
5715 return 0;
5717 _ACEOF
5718 rm -f conftest$ac_exeext
5719 if { (ac_try="$ac_link"
5720 case "(($ac_try" in
5721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5722 *) ac_try_echo=$ac_try;;
5723 esac
5724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5725 (eval "$ac_link") 2>&5
5726 ac_status=$?
5727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5729 { (case "(($ac_try" in
5730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5731 *) ac_try_echo=$ac_try;;
5732 esac
5733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5734 (eval "$ac_try") 2>&5
5735 ac_status=$?
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); }; }; then
5739 else
5740 echo "$as_me: program exited with status $ac_status" >&5
5741 echo "$as_me: failed program was:" >&5
5742 sed 's/^/| /' conftest.$ac_ext >&5
5744 ( exit $ac_status )
5745 ac_cv_header_stdc=no
5747 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5753 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5754 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5755 if test $ac_cv_header_stdc = yes; then
5757 cat >>confdefs.h <<\_ACEOF
5758 #define STDC_HEADERS 1
5759 _ACEOF
5763 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5773 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5774 inttypes.h stdint.h unistd.h
5776 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5777 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5780 echo $ECHO_N "(cached) $ECHO_C" >&6
5781 else
5782 cat >conftest.$ac_ext <<_ACEOF
5783 /* confdefs.h. */
5784 _ACEOF
5785 cat confdefs.h >>conftest.$ac_ext
5786 cat >>conftest.$ac_ext <<_ACEOF
5787 /* end confdefs.h. */
5788 $ac_includes_default
5790 #include <$ac_header>
5791 _ACEOF
5792 rm -f conftest.$ac_objext
5793 if { (ac_try="$ac_compile"
5794 case "(($ac_try" in
5795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5796 *) ac_try_echo=$ac_try;;
5797 esac
5798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5799 (eval "$ac_compile") 2>conftest.er1
5800 ac_status=$?
5801 grep -v '^ *+' conftest.er1 >conftest.err
5802 rm -f conftest.er1
5803 cat conftest.err >&5
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); } && {
5806 test -z "$ac_c_werror_flag" ||
5807 test ! -s conftest.err
5808 } && test -s conftest.$ac_objext; then
5809 eval "$as_ac_Header=yes"
5810 else
5811 echo "$as_me: failed program was:" >&5
5812 sed 's/^/| /' conftest.$ac_ext >&5
5814 eval "$as_ac_Header=no"
5817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5819 ac_res=`eval echo '${'$as_ac_Header'}'`
5820 { echo "$as_me:$LINENO: result: $ac_res" >&5
5821 echo "${ECHO_T}$ac_res" >&6; }
5822 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5823 cat >>confdefs.h <<_ACEOF
5824 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5825 _ACEOF
5829 done
5835 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5837 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5839 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5842 echo $ECHO_N "(cached) $ECHO_C" >&6
5844 ac_res=`eval echo '${'$as_ac_Header'}'`
5845 { echo "$as_me:$LINENO: result: $ac_res" >&5
5846 echo "${ECHO_T}$ac_res" >&6; }
5847 else
5848 # Is the header compilable?
5849 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5850 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5851 cat >conftest.$ac_ext <<_ACEOF
5852 /* confdefs.h. */
5853 _ACEOF
5854 cat confdefs.h >>conftest.$ac_ext
5855 cat >>conftest.$ac_ext <<_ACEOF
5856 /* end confdefs.h. */
5857 $ac_includes_default
5858 #include <$ac_header>
5859 _ACEOF
5860 rm -f conftest.$ac_objext
5861 if { (ac_try="$ac_compile"
5862 case "(($ac_try" in
5863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5864 *) ac_try_echo=$ac_try;;
5865 esac
5866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5867 (eval "$ac_compile") 2>conftest.er1
5868 ac_status=$?
5869 grep -v '^ *+' conftest.er1 >conftest.err
5870 rm -f conftest.er1
5871 cat conftest.err >&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); } && {
5874 test -z "$ac_c_werror_flag" ||
5875 test ! -s conftest.err
5876 } && test -s conftest.$ac_objext; then
5877 ac_header_compiler=yes
5878 else
5879 echo "$as_me: failed program was:" >&5
5880 sed 's/^/| /' conftest.$ac_ext >&5
5882 ac_header_compiler=no
5885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5886 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5887 echo "${ECHO_T}$ac_header_compiler" >&6; }
5889 # Is the header present?
5890 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5891 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5892 cat >conftest.$ac_ext <<_ACEOF
5893 /* confdefs.h. */
5894 _ACEOF
5895 cat confdefs.h >>conftest.$ac_ext
5896 cat >>conftest.$ac_ext <<_ACEOF
5897 /* end confdefs.h. */
5898 #include <$ac_header>
5899 _ACEOF
5900 if { (ac_try="$ac_cpp conftest.$ac_ext"
5901 case "(($ac_try" in
5902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5903 *) ac_try_echo=$ac_try;;
5904 esac
5905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5907 ac_status=$?
5908 grep -v '^ *+' conftest.er1 >conftest.err
5909 rm -f conftest.er1
5910 cat conftest.err >&5
5911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912 (exit $ac_status); } >/dev/null && {
5913 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5914 test ! -s conftest.err
5915 }; then
5916 ac_header_preproc=yes
5917 else
5918 echo "$as_me: failed program was:" >&5
5919 sed 's/^/| /' conftest.$ac_ext >&5
5921 ac_header_preproc=no
5924 rm -f conftest.err conftest.$ac_ext
5925 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5926 echo "${ECHO_T}$ac_header_preproc" >&6; }
5928 # So? What about this header?
5929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5930 yes:no: )
5931 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5932 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5934 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5935 ac_header_preproc=yes
5937 no:yes:* )
5938 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5939 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5940 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5941 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5942 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5943 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5944 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5945 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5947 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5948 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5949 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5952 esac
5953 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5956 echo $ECHO_N "(cached) $ECHO_C" >&6
5957 else
5958 eval "$as_ac_Header=\$ac_header_preproc"
5960 ac_res=`eval echo '${'$as_ac_Header'}'`
5961 { echo "$as_me:$LINENO: result: $ac_res" >&5
5962 echo "${ECHO_T}$ac_res" >&6; }
5965 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5966 cat >>confdefs.h <<_ACEOF
5967 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5968 _ACEOF
5972 done
5974 # Emulation library used on NetBSD.
5975 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5976 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
5977 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5978 echo $ECHO_N "(cached) $ECHO_C" >&6
5979 else
5980 ac_check_lib_save_LIBS=$LIBS
5981 LIBS="-lossaudio $LIBS"
5982 cat >conftest.$ac_ext <<_ACEOF
5983 /* confdefs.h. */
5984 _ACEOF
5985 cat confdefs.h >>conftest.$ac_ext
5986 cat >>conftest.$ac_ext <<_ACEOF
5987 /* end confdefs.h. */
5989 /* Override any GCC internal prototype to avoid an error.
5990 Use char because int might match the return type of a GCC
5991 builtin and then its argument prototype would still apply. */
5992 #ifdef __cplusplus
5993 extern "C"
5994 #endif
5995 char _oss_ioctl ();
5997 main ()
5999 return _oss_ioctl ();
6001 return 0;
6003 _ACEOF
6004 rm -f conftest.$ac_objext conftest$ac_exeext
6005 if { (ac_try="$ac_link"
6006 case "(($ac_try" in
6007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6008 *) ac_try_echo=$ac_try;;
6009 esac
6010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6011 (eval "$ac_link") 2>conftest.er1
6012 ac_status=$?
6013 grep -v '^ *+' conftest.er1 >conftest.err
6014 rm -f conftest.er1
6015 cat conftest.err >&5
6016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017 (exit $ac_status); } && {
6018 test -z "$ac_c_werror_flag" ||
6019 test ! -s conftest.err
6020 } && test -s conftest$ac_exeext &&
6021 $as_test_x conftest$ac_exeext; then
6022 ac_cv_lib_ossaudio__oss_ioctl=yes
6023 else
6024 echo "$as_me: failed program was:" >&5
6025 sed 's/^/| /' conftest.$ac_ext >&5
6027 ac_cv_lib_ossaudio__oss_ioctl=no
6030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6031 conftest$ac_exeext conftest.$ac_ext
6032 LIBS=$ac_check_lib_save_LIBS
6034 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6035 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6036 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6037 LIBSOUND=-lossaudio
6038 else
6039 LIBSOUND=
6044 ALSA_REQUIRED=1.0.0
6045 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6047 succeeded=no
6049 # Extract the first word of "pkg-config", so it can be a program name with args.
6050 set dummy pkg-config; ac_word=$2
6051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6053 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6054 echo $ECHO_N "(cached) $ECHO_C" >&6
6055 else
6056 case $PKG_CONFIG in
6057 [\\/]* | ?:[\\/]*)
6058 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062 for as_dir in $PATH
6064 IFS=$as_save_IFS
6065 test -z "$as_dir" && as_dir=.
6066 for ac_exec_ext in '' $ac_executable_extensions; do
6067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6068 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6070 break 2
6072 done
6073 done
6074 IFS=$as_save_IFS
6076 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6078 esac
6080 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6081 if test -n "$PKG_CONFIG"; then
6082 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6083 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6084 else
6085 { echo "$as_me:$LINENO: result: no" >&5
6086 echo "${ECHO_T}no" >&6; }
6091 if test "$PKG_CONFIG" = "no" ; then
6092 HAVE_ALSA=no
6093 else
6094 PKG_CONFIG_MIN_VERSION=0.9.0
6095 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6096 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6097 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6099 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6100 { echo "$as_me:$LINENO: result: yes" >&5
6101 echo "${ECHO_T}yes" >&6; }
6102 succeeded=yes
6104 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6105 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6106 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6107 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6108 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6110 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6111 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6112 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6113 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6114 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6115 else
6116 { echo "$as_me:$LINENO: result: no" >&5
6117 echo "${ECHO_T}no" >&6; }
6118 ALSA_CFLAGS=""
6119 ALSA_LIBS=""
6120 ## If we have a custom action on failure, don't print errors, but
6121 ## do set a variable so people can do so.
6122 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6128 else
6129 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6130 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6134 if test $succeeded = yes; then
6135 HAVE_ALSA=yes
6136 else
6137 HAVE_ALSA=no
6140 if test $HAVE_ALSA = yes; then
6141 SAVE_CFLAGS="$CFLAGS"
6142 SAVE_LDFLAGS="$LDFLAGS"
6143 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6144 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6145 cat >conftest.$ac_ext <<_ACEOF
6146 /* confdefs.h. */
6147 _ACEOF
6148 cat confdefs.h >>conftest.$ac_ext
6149 cat >>conftest.$ac_ext <<_ACEOF
6150 /* end confdefs.h. */
6151 #include <asoundlib.h>
6153 main ()
6155 snd_lib_error_set_handler (0);
6157 return 0;
6159 _ACEOF
6160 rm -f conftest.$ac_objext
6161 if { (ac_try="$ac_compile"
6162 case "(($ac_try" in
6163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6164 *) ac_try_echo=$ac_try;;
6165 esac
6166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6167 (eval "$ac_compile") 2>conftest.er1
6168 ac_status=$?
6169 grep -v '^ *+' conftest.er1 >conftest.err
6170 rm -f conftest.er1
6171 cat conftest.err >&5
6172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173 (exit $ac_status); } && {
6174 test -z "$ac_c_werror_flag" ||
6175 test ! -s conftest.err
6176 } && test -s conftest.$ac_objext; then
6177 emacs_alsa_normal=yes
6178 else
6179 echo "$as_me: failed program was:" >&5
6180 sed 's/^/| /' conftest.$ac_ext >&5
6182 emacs_alsa_normal=no
6185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6186 if test "$emacs_alsa_normal" != yes; then
6187 cat >conftest.$ac_ext <<_ACEOF
6188 /* confdefs.h. */
6189 _ACEOF
6190 cat confdefs.h >>conftest.$ac_ext
6191 cat >>conftest.$ac_ext <<_ACEOF
6192 /* end confdefs.h. */
6193 #include <alsa/asoundlib.h>
6195 main ()
6197 snd_lib_error_set_handler (0);
6199 return 0;
6201 _ACEOF
6202 rm -f conftest.$ac_objext
6203 if { (ac_try="$ac_compile"
6204 case "(($ac_try" in
6205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6206 *) ac_try_echo=$ac_try;;
6207 esac
6208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6209 (eval "$ac_compile") 2>conftest.er1
6210 ac_status=$?
6211 grep -v '^ *+' conftest.er1 >conftest.err
6212 rm -f conftest.er1
6213 cat conftest.err >&5
6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); } && {
6216 test -z "$ac_c_werror_flag" ||
6217 test ! -s conftest.err
6218 } && test -s conftest.$ac_objext; then
6219 emacs_alsa_subdir=yes
6220 else
6221 echo "$as_me: failed program was:" >&5
6222 sed 's/^/| /' conftest.$ac_ext >&5
6224 emacs_alsa_subdir=no
6227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6228 if test "$emacs_alsa_subdir" != yes; then
6229 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6230 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6231 { (exit 1); exit 1; }; }
6233 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6236 CFLAGS="$SAVE_CFLAGS"
6237 LDFLAGS="$SAVE_LDFLAGS"
6238 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6239 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6241 cat >>confdefs.h <<\_ACEOF
6242 #define HAVE_ALSA 1
6243 _ACEOF
6274 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6275 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6276 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6277 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6278 sys/utsname.h pwd.h
6280 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6282 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6284 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6285 echo $ECHO_N "(cached) $ECHO_C" >&6
6287 ac_res=`eval echo '${'$as_ac_Header'}'`
6288 { echo "$as_me:$LINENO: result: $ac_res" >&5
6289 echo "${ECHO_T}$ac_res" >&6; }
6290 else
6291 # Is the header compilable?
6292 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6293 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6294 cat >conftest.$ac_ext <<_ACEOF
6295 /* confdefs.h. */
6296 _ACEOF
6297 cat confdefs.h >>conftest.$ac_ext
6298 cat >>conftest.$ac_ext <<_ACEOF
6299 /* end confdefs.h. */
6300 $ac_includes_default
6301 #include <$ac_header>
6302 _ACEOF
6303 rm -f conftest.$ac_objext
6304 if { (ac_try="$ac_compile"
6305 case "(($ac_try" in
6306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6307 *) ac_try_echo=$ac_try;;
6308 esac
6309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6310 (eval "$ac_compile") 2>conftest.er1
6311 ac_status=$?
6312 grep -v '^ *+' conftest.er1 >conftest.err
6313 rm -f conftest.er1
6314 cat conftest.err >&5
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); } && {
6317 test -z "$ac_c_werror_flag" ||
6318 test ! -s conftest.err
6319 } && test -s conftest.$ac_objext; then
6320 ac_header_compiler=yes
6321 else
6322 echo "$as_me: failed program was:" >&5
6323 sed 's/^/| /' conftest.$ac_ext >&5
6325 ac_header_compiler=no
6328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6329 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6330 echo "${ECHO_T}$ac_header_compiler" >&6; }
6332 # Is the header present?
6333 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6334 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6335 cat >conftest.$ac_ext <<_ACEOF
6336 /* confdefs.h. */
6337 _ACEOF
6338 cat confdefs.h >>conftest.$ac_ext
6339 cat >>conftest.$ac_ext <<_ACEOF
6340 /* end confdefs.h. */
6341 #include <$ac_header>
6342 _ACEOF
6343 if { (ac_try="$ac_cpp conftest.$ac_ext"
6344 case "(($ac_try" in
6345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6346 *) ac_try_echo=$ac_try;;
6347 esac
6348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6349 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6350 ac_status=$?
6351 grep -v '^ *+' conftest.er1 >conftest.err
6352 rm -f conftest.er1
6353 cat conftest.err >&5
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); } >/dev/null && {
6356 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6357 test ! -s conftest.err
6358 }; then
6359 ac_header_preproc=yes
6360 else
6361 echo "$as_me: failed program was:" >&5
6362 sed 's/^/| /' conftest.$ac_ext >&5
6364 ac_header_preproc=no
6367 rm -f conftest.err conftest.$ac_ext
6368 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6369 echo "${ECHO_T}$ac_header_preproc" >&6; }
6371 # So? What about this header?
6372 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6373 yes:no: )
6374 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6375 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6377 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6378 ac_header_preproc=yes
6380 no:yes:* )
6381 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6382 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6383 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6384 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6385 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6386 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6387 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6388 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6390 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6391 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6392 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6395 esac
6396 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6399 echo $ECHO_N "(cached) $ECHO_C" >&6
6400 else
6401 eval "$as_ac_Header=\$ac_header_preproc"
6403 ac_res=`eval echo '${'$as_ac_Header'}'`
6404 { echo "$as_me:$LINENO: result: $ac_res" >&5
6405 echo "${ECHO_T}$ac_res" >&6; }
6408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6409 cat >>confdefs.h <<_ACEOF
6410 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6411 _ACEOF
6415 done
6418 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6419 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6420 cat >conftest.$ac_ext <<_ACEOF
6421 /* confdefs.h. */
6422 _ACEOF
6423 cat confdefs.h >>conftest.$ac_ext
6424 cat >>conftest.$ac_ext <<_ACEOF
6425 /* end confdefs.h. */
6426 #include <sys/personality.h>
6428 main ()
6430 personality (PER_LINUX32)
6432 return 0;
6434 _ACEOF
6435 rm -f conftest.$ac_objext
6436 if { (ac_try="$ac_compile"
6437 case "(($ac_try" in
6438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6439 *) ac_try_echo=$ac_try;;
6440 esac
6441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6442 (eval "$ac_compile") 2>conftest.er1
6443 ac_status=$?
6444 grep -v '^ *+' conftest.er1 >conftest.err
6445 rm -f conftest.er1
6446 cat conftest.err >&5
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); } && {
6449 test -z "$ac_c_werror_flag" ||
6450 test ! -s conftest.err
6451 } && test -s conftest.$ac_objext; then
6452 emacs_cv_personality_linux32=yes
6453 else
6454 echo "$as_me: failed program was:" >&5
6455 sed 's/^/| /' conftest.$ac_ext >&5
6457 emacs_cv_personality_linux32=no
6460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6461 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6462 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6464 if test $emacs_cv_personality_linux32 = yes; then
6466 cat >>confdefs.h <<\_ACEOF
6467 #define HAVE_PERSONALITY_LINUX32 1
6468 _ACEOF
6473 for ac_header in term.h
6475 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6476 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6479 echo $ECHO_N "(cached) $ECHO_C" >&6
6480 else
6481 cat >conftest.$ac_ext <<_ACEOF
6482 /* confdefs.h. */
6483 _ACEOF
6484 cat confdefs.h >>conftest.$ac_ext
6485 cat >>conftest.$ac_ext <<_ACEOF
6486 /* end confdefs.h. */
6487 #include <$ac_header>
6488 _ACEOF
6489 if { (ac_try="$ac_cpp conftest.$ac_ext"
6490 case "(($ac_try" in
6491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6492 *) ac_try_echo=$ac_try;;
6493 esac
6494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6496 ac_status=$?
6497 grep -v '^ *+' conftest.er1 >conftest.err
6498 rm -f conftest.er1
6499 cat conftest.err >&5
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); } >/dev/null && {
6502 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6503 test ! -s conftest.err
6504 }; then
6505 eval "$as_ac_Header=yes"
6506 else
6507 echo "$as_me: failed program was:" >&5
6508 sed 's/^/| /' conftest.$ac_ext >&5
6510 eval "$as_ac_Header=no"
6513 rm -f conftest.err conftest.$ac_ext
6515 ac_res=`eval echo '${'$as_ac_Header'}'`
6516 { echo "$as_me:$LINENO: result: $ac_res" >&5
6517 echo "${ECHO_T}$ac_res" >&6; }
6518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6519 cat >>confdefs.h <<_ACEOF
6520 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6521 _ACEOF
6525 done
6527 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6528 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6529 if test "${ac_cv_header_stdc+set}" = set; then
6530 echo $ECHO_N "(cached) $ECHO_C" >&6
6531 else
6532 cat >conftest.$ac_ext <<_ACEOF
6533 /* confdefs.h. */
6534 _ACEOF
6535 cat confdefs.h >>conftest.$ac_ext
6536 cat >>conftest.$ac_ext <<_ACEOF
6537 /* end confdefs.h. */
6538 #include <stdlib.h>
6539 #include <stdarg.h>
6540 #include <string.h>
6541 #include <float.h>
6544 main ()
6548 return 0;
6550 _ACEOF
6551 rm -f conftest.$ac_objext
6552 if { (ac_try="$ac_compile"
6553 case "(($ac_try" in
6554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6555 *) ac_try_echo=$ac_try;;
6556 esac
6557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6558 (eval "$ac_compile") 2>conftest.er1
6559 ac_status=$?
6560 grep -v '^ *+' conftest.er1 >conftest.err
6561 rm -f conftest.er1
6562 cat conftest.err >&5
6563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564 (exit $ac_status); } && {
6565 test -z "$ac_c_werror_flag" ||
6566 test ! -s conftest.err
6567 } && test -s conftest.$ac_objext; then
6568 ac_cv_header_stdc=yes
6569 else
6570 echo "$as_me: failed program was:" >&5
6571 sed 's/^/| /' conftest.$ac_ext >&5
6573 ac_cv_header_stdc=no
6576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6578 if test $ac_cv_header_stdc = yes; then
6579 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6580 cat >conftest.$ac_ext <<_ACEOF
6581 /* confdefs.h. */
6582 _ACEOF
6583 cat confdefs.h >>conftest.$ac_ext
6584 cat >>conftest.$ac_ext <<_ACEOF
6585 /* end confdefs.h. */
6586 #include <string.h>
6588 _ACEOF
6589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6590 $EGREP "memchr" >/dev/null 2>&1; then
6592 else
6593 ac_cv_header_stdc=no
6595 rm -f conftest*
6599 if test $ac_cv_header_stdc = yes; then
6600 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6601 cat >conftest.$ac_ext <<_ACEOF
6602 /* confdefs.h. */
6603 _ACEOF
6604 cat confdefs.h >>conftest.$ac_ext
6605 cat >>conftest.$ac_ext <<_ACEOF
6606 /* end confdefs.h. */
6607 #include <stdlib.h>
6609 _ACEOF
6610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6611 $EGREP "free" >/dev/null 2>&1; then
6613 else
6614 ac_cv_header_stdc=no
6616 rm -f conftest*
6620 if test $ac_cv_header_stdc = yes; then
6621 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6622 if test "$cross_compiling" = yes; then
6624 else
6625 cat >conftest.$ac_ext <<_ACEOF
6626 /* confdefs.h. */
6627 _ACEOF
6628 cat confdefs.h >>conftest.$ac_ext
6629 cat >>conftest.$ac_ext <<_ACEOF
6630 /* end confdefs.h. */
6631 #include <ctype.h>
6632 #include <stdlib.h>
6633 #if ((' ' & 0x0FF) == 0x020)
6634 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6635 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6636 #else
6637 # define ISLOWER(c) \
6638 (('a' <= (c) && (c) <= 'i') \
6639 || ('j' <= (c) && (c) <= 'r') \
6640 || ('s' <= (c) && (c) <= 'z'))
6641 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6642 #endif
6644 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6646 main ()
6648 int i;
6649 for (i = 0; i < 256; i++)
6650 if (XOR (islower (i), ISLOWER (i))
6651 || toupper (i) != TOUPPER (i))
6652 return 2;
6653 return 0;
6655 _ACEOF
6656 rm -f conftest$ac_exeext
6657 if { (ac_try="$ac_link"
6658 case "(($ac_try" in
6659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6660 *) ac_try_echo=$ac_try;;
6661 esac
6662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6663 (eval "$ac_link") 2>&5
6664 ac_status=$?
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6667 { (case "(($ac_try" in
6668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6669 *) ac_try_echo=$ac_try;;
6670 esac
6671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6672 (eval "$ac_try") 2>&5
6673 ac_status=$?
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); }; }; then
6677 else
6678 echo "$as_me: program exited with status $ac_status" >&5
6679 echo "$as_me: failed program was:" >&5
6680 sed 's/^/| /' conftest.$ac_ext >&5
6682 ( exit $ac_status )
6683 ac_cv_header_stdc=no
6685 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6691 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6692 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6693 if test $ac_cv_header_stdc = yes; then
6695 cat >>confdefs.h <<\_ACEOF
6696 #define STDC_HEADERS 1
6697 _ACEOF
6701 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6702 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6703 if test "${ac_cv_header_time+set}" = set; then
6704 echo $ECHO_N "(cached) $ECHO_C" >&6
6705 else
6706 cat >conftest.$ac_ext <<_ACEOF
6707 /* confdefs.h. */
6708 _ACEOF
6709 cat confdefs.h >>conftest.$ac_ext
6710 cat >>conftest.$ac_ext <<_ACEOF
6711 /* end confdefs.h. */
6712 #include <sys/types.h>
6713 #include <sys/time.h>
6714 #include <time.h>
6717 main ()
6719 if ((struct tm *) 0)
6720 return 0;
6722 return 0;
6724 _ACEOF
6725 rm -f conftest.$ac_objext
6726 if { (ac_try="$ac_compile"
6727 case "(($ac_try" in
6728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6729 *) ac_try_echo=$ac_try;;
6730 esac
6731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6732 (eval "$ac_compile") 2>conftest.er1
6733 ac_status=$?
6734 grep -v '^ *+' conftest.er1 >conftest.err
6735 rm -f conftest.er1
6736 cat conftest.err >&5
6737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738 (exit $ac_status); } && {
6739 test -z "$ac_c_werror_flag" ||
6740 test ! -s conftest.err
6741 } && test -s conftest.$ac_objext; then
6742 ac_cv_header_time=yes
6743 else
6744 echo "$as_me: failed program was:" >&5
6745 sed 's/^/| /' conftest.$ac_ext >&5
6747 ac_cv_header_time=no
6750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6752 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6753 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6754 if test $ac_cv_header_time = yes; then
6756 cat >>confdefs.h <<\_ACEOF
6757 #define TIME_WITH_SYS_TIME 1
6758 _ACEOF
6762 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6763 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6764 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6765 echo $ECHO_N "(cached) $ECHO_C" >&6
6766 else
6767 cat >conftest.$ac_ext <<_ACEOF
6768 /* confdefs.h. */
6769 _ACEOF
6770 cat confdefs.h >>conftest.$ac_ext
6771 cat >>conftest.$ac_ext <<_ACEOF
6772 /* end confdefs.h. */
6773 $ac_includes_default
6775 main ()
6777 #ifndef sys_siglist
6778 (void) sys_siglist;
6779 #endif
6782 return 0;
6784 _ACEOF
6785 rm -f conftest.$ac_objext
6786 if { (ac_try="$ac_compile"
6787 case "(($ac_try" in
6788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6789 *) ac_try_echo=$ac_try;;
6790 esac
6791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6792 (eval "$ac_compile") 2>conftest.er1
6793 ac_status=$?
6794 grep -v '^ *+' conftest.er1 >conftest.err
6795 rm -f conftest.er1
6796 cat conftest.err >&5
6797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798 (exit $ac_status); } && {
6799 test -z "$ac_c_werror_flag" ||
6800 test ! -s conftest.err
6801 } && test -s conftest.$ac_objext; then
6802 ac_cv_have_decl_sys_siglist=yes
6803 else
6804 echo "$as_me: failed program was:" >&5
6805 sed 's/^/| /' conftest.$ac_ext >&5
6807 ac_cv_have_decl_sys_siglist=no
6810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6812 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6813 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6814 if test $ac_cv_have_decl_sys_siglist = yes; then
6816 cat >>confdefs.h <<_ACEOF
6817 #define HAVE_DECL_SYS_SIGLIST 1
6818 _ACEOF
6821 else
6822 cat >>confdefs.h <<_ACEOF
6823 #define HAVE_DECL_SYS_SIGLIST 0
6824 _ACEOF
6830 if test $ac_cv_have_decl_sys_siglist != yes; then
6831 # For Tru64, at least:
6832 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6833 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
6834 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6835 echo $ECHO_N "(cached) $ECHO_C" >&6
6836 else
6837 cat >conftest.$ac_ext <<_ACEOF
6838 /* confdefs.h. */
6839 _ACEOF
6840 cat confdefs.h >>conftest.$ac_ext
6841 cat >>conftest.$ac_ext <<_ACEOF
6842 /* end confdefs.h. */
6843 $ac_includes_default
6845 main ()
6847 #ifndef __sys_siglist
6848 (void) __sys_siglist;
6849 #endif
6852 return 0;
6854 _ACEOF
6855 rm -f conftest.$ac_objext
6856 if { (ac_try="$ac_compile"
6857 case "(($ac_try" in
6858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6859 *) ac_try_echo=$ac_try;;
6860 esac
6861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6862 (eval "$ac_compile") 2>conftest.er1
6863 ac_status=$?
6864 grep -v '^ *+' conftest.er1 >conftest.err
6865 rm -f conftest.er1
6866 cat conftest.err >&5
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); } && {
6869 test -z "$ac_c_werror_flag" ||
6870 test ! -s conftest.err
6871 } && test -s conftest.$ac_objext; then
6872 ac_cv_have_decl___sys_siglist=yes
6873 else
6874 echo "$as_me: failed program was:" >&5
6875 sed 's/^/| /' conftest.$ac_ext >&5
6877 ac_cv_have_decl___sys_siglist=no
6880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6882 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6883 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
6884 if test $ac_cv_have_decl___sys_siglist = yes; then
6886 cat >>confdefs.h <<_ACEOF
6887 #define HAVE_DECL___SYS_SIGLIST 1
6888 _ACEOF
6891 else
6892 cat >>confdefs.h <<_ACEOF
6893 #define HAVE_DECL___SYS_SIGLIST 0
6894 _ACEOF
6900 if test $ac_cv_have_decl___sys_siglist = yes; then
6902 cat >>confdefs.h <<\_ACEOF
6903 #define sys_siglist __sys_siglist
6904 _ACEOF
6908 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6909 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6910 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6911 echo $ECHO_N "(cached) $ECHO_C" >&6
6912 else
6913 cat >conftest.$ac_ext <<_ACEOF
6914 /* confdefs.h. */
6915 _ACEOF
6916 cat confdefs.h >>conftest.$ac_ext
6917 cat >>conftest.$ac_ext <<_ACEOF
6918 /* end confdefs.h. */
6919 #include <sys/types.h>
6920 #include <sys/wait.h>
6921 #ifndef WEXITSTATUS
6922 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6923 #endif
6924 #ifndef WIFEXITED
6925 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6926 #endif
6929 main ()
6931 int s;
6932 wait (&s);
6933 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6935 return 0;
6937 _ACEOF
6938 rm -f conftest.$ac_objext
6939 if { (ac_try="$ac_compile"
6940 case "(($ac_try" in
6941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6942 *) ac_try_echo=$ac_try;;
6943 esac
6944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6945 (eval "$ac_compile") 2>conftest.er1
6946 ac_status=$?
6947 grep -v '^ *+' conftest.er1 >conftest.err
6948 rm -f conftest.er1
6949 cat conftest.err >&5
6950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951 (exit $ac_status); } && {
6952 test -z "$ac_c_werror_flag" ||
6953 test ! -s conftest.err
6954 } && test -s conftest.$ac_objext; then
6955 ac_cv_header_sys_wait_h=yes
6956 else
6957 echo "$as_me: failed program was:" >&5
6958 sed 's/^/| /' conftest.$ac_ext >&5
6960 ac_cv_header_sys_wait_h=no
6963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6965 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6966 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6967 if test $ac_cv_header_sys_wait_h = yes; then
6969 cat >>confdefs.h <<\_ACEOF
6970 #define HAVE_SYS_WAIT_H 1
6971 _ACEOF
6976 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6977 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
6978 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6979 echo $ECHO_N "(cached) $ECHO_C" >&6
6980 else
6981 cat >conftest.$ac_ext <<_ACEOF
6982 /* confdefs.h. */
6983 _ACEOF
6984 cat confdefs.h >>conftest.$ac_ext
6985 cat >>conftest.$ac_ext <<_ACEOF
6986 /* end confdefs.h. */
6987 #ifdef TIME_WITH_SYS_TIME
6988 #include <sys/time.h>
6989 #include <time.h>
6990 #else
6991 #ifdef HAVE_SYS_TIME_H
6992 #include <sys/time.h>
6993 #else
6994 #include <time.h>
6995 #endif
6996 #endif
6997 #ifdef HAVE_UTIME_H
6998 #include <utime.h>
6999 #endif
7001 main ()
7003 static struct utimbuf x; x.actime = x.modtime;
7005 return 0;
7007 _ACEOF
7008 rm -f conftest.$ac_objext
7009 if { (ac_try="$ac_compile"
7010 case "(($ac_try" in
7011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7012 *) ac_try_echo=$ac_try;;
7013 esac
7014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7015 (eval "$ac_compile") 2>conftest.er1
7016 ac_status=$?
7017 grep -v '^ *+' conftest.er1 >conftest.err
7018 rm -f conftest.er1
7019 cat conftest.err >&5
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); } && {
7022 test -z "$ac_c_werror_flag" ||
7023 test ! -s conftest.err
7024 } && test -s conftest.$ac_objext; then
7025 emacs_cv_struct_utimbuf=yes
7026 else
7027 echo "$as_me: failed program was:" >&5
7028 sed 's/^/| /' conftest.$ac_ext >&5
7030 emacs_cv_struct_utimbuf=no
7033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7035 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7036 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7037 if test $emacs_cv_struct_utimbuf = yes; then
7039 cat >>confdefs.h <<\_ACEOF
7040 #define HAVE_STRUCT_UTIMBUF 1
7041 _ACEOF
7045 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7046 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7047 if test "${ac_cv_type_signal+set}" = set; then
7048 echo $ECHO_N "(cached) $ECHO_C" >&6
7049 else
7050 cat >conftest.$ac_ext <<_ACEOF
7051 /* confdefs.h. */
7052 _ACEOF
7053 cat confdefs.h >>conftest.$ac_ext
7054 cat >>conftest.$ac_ext <<_ACEOF
7055 /* end confdefs.h. */
7056 #include <sys/types.h>
7057 #include <signal.h>
7060 main ()
7062 return *(signal (0, 0)) (0) == 1;
7064 return 0;
7066 _ACEOF
7067 rm -f conftest.$ac_objext
7068 if { (ac_try="$ac_compile"
7069 case "(($ac_try" in
7070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7071 *) ac_try_echo=$ac_try;;
7072 esac
7073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7074 (eval "$ac_compile") 2>conftest.er1
7075 ac_status=$?
7076 grep -v '^ *+' conftest.er1 >conftest.err
7077 rm -f conftest.er1
7078 cat conftest.err >&5
7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); } && {
7081 test -z "$ac_c_werror_flag" ||
7082 test ! -s conftest.err
7083 } && test -s conftest.$ac_objext; then
7084 ac_cv_type_signal=int
7085 else
7086 echo "$as_me: failed program was:" >&5
7087 sed 's/^/| /' conftest.$ac_ext >&5
7089 ac_cv_type_signal=void
7092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7094 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7095 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7097 cat >>confdefs.h <<_ACEOF
7098 #define RETSIGTYPE $ac_cv_type_signal
7099 _ACEOF
7103 { echo "$as_me:$LINENO: checking for speed_t" >&5
7104 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7105 if test "${emacs_cv_speed_t+set}" = set; then
7106 echo $ECHO_N "(cached) $ECHO_C" >&6
7107 else
7108 cat >conftest.$ac_ext <<_ACEOF
7109 /* confdefs.h. */
7110 _ACEOF
7111 cat confdefs.h >>conftest.$ac_ext
7112 cat >>conftest.$ac_ext <<_ACEOF
7113 /* end confdefs.h. */
7114 #include <termios.h>
7116 main ()
7118 speed_t x = 1;
7120 return 0;
7122 _ACEOF
7123 rm -f conftest.$ac_objext
7124 if { (ac_try="$ac_compile"
7125 case "(($ac_try" in
7126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7127 *) ac_try_echo=$ac_try;;
7128 esac
7129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7130 (eval "$ac_compile") 2>conftest.er1
7131 ac_status=$?
7132 grep -v '^ *+' conftest.er1 >conftest.err
7133 rm -f conftest.er1
7134 cat conftest.err >&5
7135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136 (exit $ac_status); } && {
7137 test -z "$ac_c_werror_flag" ||
7138 test ! -s conftest.err
7139 } && test -s conftest.$ac_objext; then
7140 emacs_cv_speed_t=yes
7141 else
7142 echo "$as_me: failed program was:" >&5
7143 sed 's/^/| /' conftest.$ac_ext >&5
7145 emacs_cv_speed_t=no
7148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7150 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7151 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7152 if test $emacs_cv_speed_t = yes; then
7154 cat >>confdefs.h <<\_ACEOF
7155 #define HAVE_SPEED_T 1
7156 _ACEOF
7160 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7161 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7162 if test "${emacs_cv_struct_timeval+set}" = set; then
7163 echo $ECHO_N "(cached) $ECHO_C" >&6
7164 else
7165 cat >conftest.$ac_ext <<_ACEOF
7166 /* confdefs.h. */
7167 _ACEOF
7168 cat confdefs.h >>conftest.$ac_ext
7169 cat >>conftest.$ac_ext <<_ACEOF
7170 /* end confdefs.h. */
7171 #ifdef TIME_WITH_SYS_TIME
7172 #include <sys/time.h>
7173 #include <time.h>
7174 #else
7175 #ifdef HAVE_SYS_TIME_H
7176 #include <sys/time.h>
7177 #else
7178 #include <time.h>
7179 #endif
7180 #endif
7182 main ()
7184 static struct timeval x; x.tv_sec = x.tv_usec;
7186 return 0;
7188 _ACEOF
7189 rm -f conftest.$ac_objext
7190 if { (ac_try="$ac_compile"
7191 case "(($ac_try" in
7192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7193 *) ac_try_echo=$ac_try;;
7194 esac
7195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7196 (eval "$ac_compile") 2>conftest.er1
7197 ac_status=$?
7198 grep -v '^ *+' conftest.er1 >conftest.err
7199 rm -f conftest.er1
7200 cat conftest.err >&5
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); } && {
7203 test -z "$ac_c_werror_flag" ||
7204 test ! -s conftest.err
7205 } && test -s conftest.$ac_objext; then
7206 emacs_cv_struct_timeval=yes
7207 else
7208 echo "$as_me: failed program was:" >&5
7209 sed 's/^/| /' conftest.$ac_ext >&5
7211 emacs_cv_struct_timeval=no
7214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7216 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7217 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7218 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7219 if test $emacs_cv_struct_timeval = yes; then
7221 cat >>confdefs.h <<\_ACEOF
7222 #define HAVE_TIMEVAL 1
7223 _ACEOF
7227 { echo "$as_me:$LINENO: checking for struct exception" >&5
7228 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7229 if test "${emacs_cv_struct_exception+set}" = set; then
7230 echo $ECHO_N "(cached) $ECHO_C" >&6
7231 else
7232 cat >conftest.$ac_ext <<_ACEOF
7233 /* confdefs.h. */
7234 _ACEOF
7235 cat confdefs.h >>conftest.$ac_ext
7236 cat >>conftest.$ac_ext <<_ACEOF
7237 /* end confdefs.h. */
7238 #include <math.h>
7240 main ()
7242 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7244 return 0;
7246 _ACEOF
7247 rm -f conftest.$ac_objext
7248 if { (ac_try="$ac_compile"
7249 case "(($ac_try" in
7250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7251 *) ac_try_echo=$ac_try;;
7252 esac
7253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7254 (eval "$ac_compile") 2>conftest.er1
7255 ac_status=$?
7256 grep -v '^ *+' conftest.er1 >conftest.err
7257 rm -f conftest.er1
7258 cat conftest.err >&5
7259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260 (exit $ac_status); } && {
7261 test -z "$ac_c_werror_flag" ||
7262 test ! -s conftest.err
7263 } && test -s conftest.$ac_objext; then
7264 emacs_cv_struct_exception=yes
7265 else
7266 echo "$as_me: failed program was:" >&5
7267 sed 's/^/| /' conftest.$ac_ext >&5
7269 emacs_cv_struct_exception=no
7272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7274 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7275 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7276 HAVE_EXCEPTION=$emacs_cv_struct_exception
7277 if test $emacs_cv_struct_exception != yes; then
7279 cat >>confdefs.h <<\_ACEOF
7280 #define NO_MATHERR 1
7281 _ACEOF
7286 for ac_header in sys/socket.h
7288 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7289 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7290 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7292 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7293 echo $ECHO_N "(cached) $ECHO_C" >&6
7295 ac_res=`eval echo '${'$as_ac_Header'}'`
7296 { echo "$as_me:$LINENO: result: $ac_res" >&5
7297 echo "${ECHO_T}$ac_res" >&6; }
7298 else
7299 # Is the header compilable?
7300 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7301 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7302 cat >conftest.$ac_ext <<_ACEOF
7303 /* confdefs.h. */
7304 _ACEOF
7305 cat confdefs.h >>conftest.$ac_ext
7306 cat >>conftest.$ac_ext <<_ACEOF
7307 /* end confdefs.h. */
7308 $ac_includes_default
7309 #include <$ac_header>
7310 _ACEOF
7311 rm -f conftest.$ac_objext
7312 if { (ac_try="$ac_compile"
7313 case "(($ac_try" in
7314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7315 *) ac_try_echo=$ac_try;;
7316 esac
7317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7318 (eval "$ac_compile") 2>conftest.er1
7319 ac_status=$?
7320 grep -v '^ *+' conftest.er1 >conftest.err
7321 rm -f conftest.er1
7322 cat conftest.err >&5
7323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324 (exit $ac_status); } && {
7325 test -z "$ac_c_werror_flag" ||
7326 test ! -s conftest.err
7327 } && test -s conftest.$ac_objext; then
7328 ac_header_compiler=yes
7329 else
7330 echo "$as_me: failed program was:" >&5
7331 sed 's/^/| /' conftest.$ac_ext >&5
7333 ac_header_compiler=no
7336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7337 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7338 echo "${ECHO_T}$ac_header_compiler" >&6; }
7340 # Is the header present?
7341 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7342 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7343 cat >conftest.$ac_ext <<_ACEOF
7344 /* confdefs.h. */
7345 _ACEOF
7346 cat confdefs.h >>conftest.$ac_ext
7347 cat >>conftest.$ac_ext <<_ACEOF
7348 /* end confdefs.h. */
7349 #include <$ac_header>
7350 _ACEOF
7351 if { (ac_try="$ac_cpp conftest.$ac_ext"
7352 case "(($ac_try" in
7353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7354 *) ac_try_echo=$ac_try;;
7355 esac
7356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7357 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7358 ac_status=$?
7359 grep -v '^ *+' conftest.er1 >conftest.err
7360 rm -f conftest.er1
7361 cat conftest.err >&5
7362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363 (exit $ac_status); } >/dev/null && {
7364 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7365 test ! -s conftest.err
7366 }; then
7367 ac_header_preproc=yes
7368 else
7369 echo "$as_me: failed program was:" >&5
7370 sed 's/^/| /' conftest.$ac_ext >&5
7372 ac_header_preproc=no
7375 rm -f conftest.err conftest.$ac_ext
7376 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7377 echo "${ECHO_T}$ac_header_preproc" >&6; }
7379 # So? What about this header?
7380 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7381 yes:no: )
7382 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7383 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7384 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7385 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7386 ac_header_preproc=yes
7388 no:yes:* )
7389 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7390 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7391 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7392 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7393 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7394 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7395 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7396 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7397 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7398 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7399 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7400 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7403 esac
7404 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7406 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7407 echo $ECHO_N "(cached) $ECHO_C" >&6
7408 else
7409 eval "$as_ac_Header=\$ac_header_preproc"
7411 ac_res=`eval echo '${'$as_ac_Header'}'`
7412 { echo "$as_me:$LINENO: result: $ac_res" >&5
7413 echo "${ECHO_T}$ac_res" >&6; }
7416 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7417 cat >>confdefs.h <<_ACEOF
7418 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7419 _ACEOF
7423 done
7426 for ac_header in net/if.h
7428 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7429 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7432 echo $ECHO_N "(cached) $ECHO_C" >&6
7433 else
7434 cat >conftest.$ac_ext <<_ACEOF
7435 /* confdefs.h. */
7436 _ACEOF
7437 cat confdefs.h >>conftest.$ac_ext
7438 cat >>conftest.$ac_ext <<_ACEOF
7439 /* end confdefs.h. */
7440 $ac_includes_default
7441 #if HAVE_SYS_SOCKET_H
7442 #include <sys/socket.h>
7443 #endif
7445 #include <$ac_header>
7446 _ACEOF
7447 rm -f conftest.$ac_objext
7448 if { (ac_try="$ac_compile"
7449 case "(($ac_try" in
7450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7451 *) ac_try_echo=$ac_try;;
7452 esac
7453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7454 (eval "$ac_compile") 2>conftest.er1
7455 ac_status=$?
7456 grep -v '^ *+' conftest.er1 >conftest.err
7457 rm -f conftest.er1
7458 cat conftest.err >&5
7459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460 (exit $ac_status); } && {
7461 test -z "$ac_c_werror_flag" ||
7462 test ! -s conftest.err
7463 } && test -s conftest.$ac_objext; then
7464 eval "$as_ac_Header=yes"
7465 else
7466 echo "$as_me: failed program was:" >&5
7467 sed 's/^/| /' conftest.$ac_ext >&5
7469 eval "$as_ac_Header=no"
7472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7474 ac_res=`eval echo '${'$as_ac_Header'}'`
7475 { echo "$as_me:$LINENO: result: $ac_res" >&5
7476 echo "${ECHO_T}$ac_res" >&6; }
7477 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7478 cat >>confdefs.h <<_ACEOF
7479 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7480 _ACEOF
7484 done
7487 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7488 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7489 if test "${ac_cv_struct_tm+set}" = set; then
7490 echo $ECHO_N "(cached) $ECHO_C" >&6
7491 else
7492 cat >conftest.$ac_ext <<_ACEOF
7493 /* confdefs.h. */
7494 _ACEOF
7495 cat confdefs.h >>conftest.$ac_ext
7496 cat >>conftest.$ac_ext <<_ACEOF
7497 /* end confdefs.h. */
7498 #include <sys/types.h>
7499 #include <time.h>
7502 main ()
7504 struct tm tm;
7505 int *p = &tm.tm_sec;
7506 return !p;
7508 return 0;
7510 _ACEOF
7511 rm -f conftest.$ac_objext
7512 if { (ac_try="$ac_compile"
7513 case "(($ac_try" in
7514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7515 *) ac_try_echo=$ac_try;;
7516 esac
7517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7518 (eval "$ac_compile") 2>conftest.er1
7519 ac_status=$?
7520 grep -v '^ *+' conftest.er1 >conftest.err
7521 rm -f conftest.er1
7522 cat conftest.err >&5
7523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524 (exit $ac_status); } && {
7525 test -z "$ac_c_werror_flag" ||
7526 test ! -s conftest.err
7527 } && test -s conftest.$ac_objext; then
7528 ac_cv_struct_tm=time.h
7529 else
7530 echo "$as_me: failed program was:" >&5
7531 sed 's/^/| /' conftest.$ac_ext >&5
7533 ac_cv_struct_tm=sys/time.h
7536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7538 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7539 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7540 if test $ac_cv_struct_tm = sys/time.h; then
7542 cat >>confdefs.h <<\_ACEOF
7543 #define TM_IN_SYS_TIME 1
7544 _ACEOF
7548 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7549 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7550 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7551 echo $ECHO_N "(cached) $ECHO_C" >&6
7552 else
7553 cat >conftest.$ac_ext <<_ACEOF
7554 /* confdefs.h. */
7555 _ACEOF
7556 cat confdefs.h >>conftest.$ac_ext
7557 cat >>conftest.$ac_ext <<_ACEOF
7558 /* end confdefs.h. */
7559 #include <sys/types.h>
7560 #include <$ac_cv_struct_tm>
7564 main ()
7566 static struct tm ac_aggr;
7567 if (ac_aggr.tm_zone)
7568 return 0;
7570 return 0;
7572 _ACEOF
7573 rm -f conftest.$ac_objext
7574 if { (ac_try="$ac_compile"
7575 case "(($ac_try" in
7576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7577 *) ac_try_echo=$ac_try;;
7578 esac
7579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7580 (eval "$ac_compile") 2>conftest.er1
7581 ac_status=$?
7582 grep -v '^ *+' conftest.er1 >conftest.err
7583 rm -f conftest.er1
7584 cat conftest.err >&5
7585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586 (exit $ac_status); } && {
7587 test -z "$ac_c_werror_flag" ||
7588 test ! -s conftest.err
7589 } && test -s conftest.$ac_objext; then
7590 ac_cv_member_struct_tm_tm_zone=yes
7591 else
7592 echo "$as_me: failed program was:" >&5
7593 sed 's/^/| /' conftest.$ac_ext >&5
7595 cat >conftest.$ac_ext <<_ACEOF
7596 /* confdefs.h. */
7597 _ACEOF
7598 cat confdefs.h >>conftest.$ac_ext
7599 cat >>conftest.$ac_ext <<_ACEOF
7600 /* end confdefs.h. */
7601 #include <sys/types.h>
7602 #include <$ac_cv_struct_tm>
7606 main ()
7608 static struct tm ac_aggr;
7609 if (sizeof ac_aggr.tm_zone)
7610 return 0;
7612 return 0;
7614 _ACEOF
7615 rm -f conftest.$ac_objext
7616 if { (ac_try="$ac_compile"
7617 case "(($ac_try" in
7618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7619 *) ac_try_echo=$ac_try;;
7620 esac
7621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7622 (eval "$ac_compile") 2>conftest.er1
7623 ac_status=$?
7624 grep -v '^ *+' conftest.er1 >conftest.err
7625 rm -f conftest.er1
7626 cat conftest.err >&5
7627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628 (exit $ac_status); } && {
7629 test -z "$ac_c_werror_flag" ||
7630 test ! -s conftest.err
7631 } && test -s conftest.$ac_objext; then
7632 ac_cv_member_struct_tm_tm_zone=yes
7633 else
7634 echo "$as_me: failed program was:" >&5
7635 sed 's/^/| /' conftest.$ac_ext >&5
7637 ac_cv_member_struct_tm_tm_zone=no
7640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7645 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7646 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7647 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7649 cat >>confdefs.h <<_ACEOF
7650 #define HAVE_STRUCT_TM_TM_ZONE 1
7651 _ACEOF
7656 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7658 cat >>confdefs.h <<\_ACEOF
7659 #define HAVE_TM_ZONE 1
7660 _ACEOF
7662 else
7663 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7664 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7665 if test "${ac_cv_have_decl_tzname+set}" = set; then
7666 echo $ECHO_N "(cached) $ECHO_C" >&6
7667 else
7668 cat >conftest.$ac_ext <<_ACEOF
7669 /* confdefs.h. */
7670 _ACEOF
7671 cat confdefs.h >>conftest.$ac_ext
7672 cat >>conftest.$ac_ext <<_ACEOF
7673 /* end confdefs.h. */
7674 #include <time.h>
7677 main ()
7679 #ifndef tzname
7680 (void) tzname;
7681 #endif
7684 return 0;
7686 _ACEOF
7687 rm -f conftest.$ac_objext
7688 if { (ac_try="$ac_compile"
7689 case "(($ac_try" in
7690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7691 *) ac_try_echo=$ac_try;;
7692 esac
7693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7694 (eval "$ac_compile") 2>conftest.er1
7695 ac_status=$?
7696 grep -v '^ *+' conftest.er1 >conftest.err
7697 rm -f conftest.er1
7698 cat conftest.err >&5
7699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700 (exit $ac_status); } && {
7701 test -z "$ac_c_werror_flag" ||
7702 test ! -s conftest.err
7703 } && test -s conftest.$ac_objext; then
7704 ac_cv_have_decl_tzname=yes
7705 else
7706 echo "$as_me: failed program was:" >&5
7707 sed 's/^/| /' conftest.$ac_ext >&5
7709 ac_cv_have_decl_tzname=no
7712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7714 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7715 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7716 if test $ac_cv_have_decl_tzname = yes; then
7718 cat >>confdefs.h <<_ACEOF
7719 #define HAVE_DECL_TZNAME 1
7720 _ACEOF
7723 else
7724 cat >>confdefs.h <<_ACEOF
7725 #define HAVE_DECL_TZNAME 0
7726 _ACEOF
7732 { echo "$as_me:$LINENO: checking for tzname" >&5
7733 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7734 if test "${ac_cv_var_tzname+set}" = set; then
7735 echo $ECHO_N "(cached) $ECHO_C" >&6
7736 else
7737 cat >conftest.$ac_ext <<_ACEOF
7738 /* confdefs.h. */
7739 _ACEOF
7740 cat confdefs.h >>conftest.$ac_ext
7741 cat >>conftest.$ac_ext <<_ACEOF
7742 /* end confdefs.h. */
7743 #include <time.h>
7744 #if !HAVE_DECL_TZNAME
7745 extern char *tzname[];
7746 #endif
7749 main ()
7751 return tzname[0][0];
7753 return 0;
7755 _ACEOF
7756 rm -f conftest.$ac_objext conftest$ac_exeext
7757 if { (ac_try="$ac_link"
7758 case "(($ac_try" in
7759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7760 *) ac_try_echo=$ac_try;;
7761 esac
7762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7763 (eval "$ac_link") 2>conftest.er1
7764 ac_status=$?
7765 grep -v '^ *+' conftest.er1 >conftest.err
7766 rm -f conftest.er1
7767 cat conftest.err >&5
7768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); } && {
7770 test -z "$ac_c_werror_flag" ||
7771 test ! -s conftest.err
7772 } && test -s conftest$ac_exeext &&
7773 $as_test_x conftest$ac_exeext; then
7774 ac_cv_var_tzname=yes
7775 else
7776 echo "$as_me: failed program was:" >&5
7777 sed 's/^/| /' conftest.$ac_ext >&5
7779 ac_cv_var_tzname=no
7782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7783 conftest$ac_exeext conftest.$ac_ext
7785 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7786 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7787 if test $ac_cv_var_tzname = yes; then
7789 cat >>confdefs.h <<\_ACEOF
7790 #define HAVE_TZNAME 1
7791 _ACEOF
7796 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7797 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7798 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7799 echo $ECHO_N "(cached) $ECHO_C" >&6
7800 else
7801 cat >conftest.$ac_ext <<_ACEOF
7802 /* confdefs.h. */
7803 _ACEOF
7804 cat confdefs.h >>conftest.$ac_ext
7805 cat >>conftest.$ac_ext <<_ACEOF
7806 /* end confdefs.h. */
7807 #include <time.h>
7810 main ()
7812 static struct tm ac_aggr;
7813 if (ac_aggr.tm_gmtoff)
7814 return 0;
7816 return 0;
7818 _ACEOF
7819 rm -f conftest.$ac_objext
7820 if { (ac_try="$ac_compile"
7821 case "(($ac_try" in
7822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7823 *) ac_try_echo=$ac_try;;
7824 esac
7825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7826 (eval "$ac_compile") 2>conftest.er1
7827 ac_status=$?
7828 grep -v '^ *+' conftest.er1 >conftest.err
7829 rm -f conftest.er1
7830 cat conftest.err >&5
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); } && {
7833 test -z "$ac_c_werror_flag" ||
7834 test ! -s conftest.err
7835 } && test -s conftest.$ac_objext; then
7836 ac_cv_member_struct_tm_tm_gmtoff=yes
7837 else
7838 echo "$as_me: failed program was:" >&5
7839 sed 's/^/| /' conftest.$ac_ext >&5
7841 cat >conftest.$ac_ext <<_ACEOF
7842 /* confdefs.h. */
7843 _ACEOF
7844 cat confdefs.h >>conftest.$ac_ext
7845 cat >>conftest.$ac_ext <<_ACEOF
7846 /* end confdefs.h. */
7847 #include <time.h>
7850 main ()
7852 static struct tm ac_aggr;
7853 if (sizeof ac_aggr.tm_gmtoff)
7854 return 0;
7856 return 0;
7858 _ACEOF
7859 rm -f conftest.$ac_objext
7860 if { (ac_try="$ac_compile"
7861 case "(($ac_try" in
7862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7863 *) ac_try_echo=$ac_try;;
7864 esac
7865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7866 (eval "$ac_compile") 2>conftest.er1
7867 ac_status=$?
7868 grep -v '^ *+' conftest.er1 >conftest.err
7869 rm -f conftest.er1
7870 cat conftest.err >&5
7871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872 (exit $ac_status); } && {
7873 test -z "$ac_c_werror_flag" ||
7874 test ! -s conftest.err
7875 } && test -s conftest.$ac_objext; then
7876 ac_cv_member_struct_tm_tm_gmtoff=yes
7877 else
7878 echo "$as_me: failed program was:" >&5
7879 sed 's/^/| /' conftest.$ac_ext >&5
7881 ac_cv_member_struct_tm_tm_gmtoff=no
7884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7889 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7890 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7891 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7893 cat >>confdefs.h <<\_ACEOF
7894 #define HAVE_TM_GMTOFF 1
7895 _ACEOF
7899 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7900 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
7901 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7902 echo $ECHO_N "(cached) $ECHO_C" >&6
7903 else
7904 cat >conftest.$ac_ext <<_ACEOF
7905 /* confdefs.h. */
7906 _ACEOF
7907 cat confdefs.h >>conftest.$ac_ext
7908 cat >>conftest.$ac_ext <<_ACEOF
7909 /* end confdefs.h. */
7910 $ac_includes_default
7911 #if HAVE_SYS_SOCKET_H
7912 #include <sys/socket.h>
7913 #endif
7914 #if HAVE_NET_IF_H
7915 #include <net/if.h>
7916 #endif
7919 main ()
7921 static struct ifreq ac_aggr;
7922 if (ac_aggr.ifr_flags)
7923 return 0;
7925 return 0;
7927 _ACEOF
7928 rm -f conftest.$ac_objext
7929 if { (ac_try="$ac_compile"
7930 case "(($ac_try" in
7931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7932 *) ac_try_echo=$ac_try;;
7933 esac
7934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7935 (eval "$ac_compile") 2>conftest.er1
7936 ac_status=$?
7937 grep -v '^ *+' conftest.er1 >conftest.err
7938 rm -f conftest.er1
7939 cat conftest.err >&5
7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941 (exit $ac_status); } && {
7942 test -z "$ac_c_werror_flag" ||
7943 test ! -s conftest.err
7944 } && test -s conftest.$ac_objext; then
7945 ac_cv_member_struct_ifreq_ifr_flags=yes
7946 else
7947 echo "$as_me: failed program was:" >&5
7948 sed 's/^/| /' conftest.$ac_ext >&5
7950 cat >conftest.$ac_ext <<_ACEOF
7951 /* confdefs.h. */
7952 _ACEOF
7953 cat confdefs.h >>conftest.$ac_ext
7954 cat >>conftest.$ac_ext <<_ACEOF
7955 /* end confdefs.h. */
7956 $ac_includes_default
7957 #if HAVE_SYS_SOCKET_H
7958 #include <sys/socket.h>
7959 #endif
7960 #if HAVE_NET_IF_H
7961 #include <net/if.h>
7962 #endif
7965 main ()
7967 static struct ifreq ac_aggr;
7968 if (sizeof ac_aggr.ifr_flags)
7969 return 0;
7971 return 0;
7973 _ACEOF
7974 rm -f conftest.$ac_objext
7975 if { (ac_try="$ac_compile"
7976 case "(($ac_try" in
7977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7978 *) ac_try_echo=$ac_try;;
7979 esac
7980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7981 (eval "$ac_compile") 2>conftest.er1
7982 ac_status=$?
7983 grep -v '^ *+' conftest.er1 >conftest.err
7984 rm -f conftest.er1
7985 cat conftest.err >&5
7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); } && {
7988 test -z "$ac_c_werror_flag" ||
7989 test ! -s conftest.err
7990 } && test -s conftest.$ac_objext; then
7991 ac_cv_member_struct_ifreq_ifr_flags=yes
7992 else
7993 echo "$as_me: failed program was:" >&5
7994 sed 's/^/| /' conftest.$ac_ext >&5
7996 ac_cv_member_struct_ifreq_ifr_flags=no
7999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8004 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8005 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8006 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8008 cat >>confdefs.h <<_ACEOF
8009 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8010 _ACEOF
8014 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8015 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8016 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8017 echo $ECHO_N "(cached) $ECHO_C" >&6
8018 else
8019 cat >conftest.$ac_ext <<_ACEOF
8020 /* confdefs.h. */
8021 _ACEOF
8022 cat confdefs.h >>conftest.$ac_ext
8023 cat >>conftest.$ac_ext <<_ACEOF
8024 /* end confdefs.h. */
8025 $ac_includes_default
8026 #if HAVE_SYS_SOCKET_H
8027 #include <sys/socket.h>
8028 #endif
8029 #if HAVE_NET_IF_H
8030 #include <net/if.h>
8031 #endif
8034 main ()
8036 static struct ifreq ac_aggr;
8037 if (ac_aggr.ifr_hwaddr)
8038 return 0;
8040 return 0;
8042 _ACEOF
8043 rm -f conftest.$ac_objext
8044 if { (ac_try="$ac_compile"
8045 case "(($ac_try" in
8046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8047 *) ac_try_echo=$ac_try;;
8048 esac
8049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8050 (eval "$ac_compile") 2>conftest.er1
8051 ac_status=$?
8052 grep -v '^ *+' conftest.er1 >conftest.err
8053 rm -f conftest.er1
8054 cat conftest.err >&5
8055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056 (exit $ac_status); } && {
8057 test -z "$ac_c_werror_flag" ||
8058 test ! -s conftest.err
8059 } && test -s conftest.$ac_objext; then
8060 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8061 else
8062 echo "$as_me: failed program was:" >&5
8063 sed 's/^/| /' conftest.$ac_ext >&5
8065 cat >conftest.$ac_ext <<_ACEOF
8066 /* confdefs.h. */
8067 _ACEOF
8068 cat confdefs.h >>conftest.$ac_ext
8069 cat >>conftest.$ac_ext <<_ACEOF
8070 /* end confdefs.h. */
8071 $ac_includes_default
8072 #if HAVE_SYS_SOCKET_H
8073 #include <sys/socket.h>
8074 #endif
8075 #if HAVE_NET_IF_H
8076 #include <net/if.h>
8077 #endif
8080 main ()
8082 static struct ifreq ac_aggr;
8083 if (sizeof ac_aggr.ifr_hwaddr)
8084 return 0;
8086 return 0;
8088 _ACEOF
8089 rm -f conftest.$ac_objext
8090 if { (ac_try="$ac_compile"
8091 case "(($ac_try" in
8092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8093 *) ac_try_echo=$ac_try;;
8094 esac
8095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8096 (eval "$ac_compile") 2>conftest.er1
8097 ac_status=$?
8098 grep -v '^ *+' conftest.er1 >conftest.err
8099 rm -f conftest.er1
8100 cat conftest.err >&5
8101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102 (exit $ac_status); } && {
8103 test -z "$ac_c_werror_flag" ||
8104 test ! -s conftest.err
8105 } && test -s conftest.$ac_objext; then
8106 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8107 else
8108 echo "$as_me: failed program was:" >&5
8109 sed 's/^/| /' conftest.$ac_ext >&5
8111 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8119 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8120 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8121 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8123 cat >>confdefs.h <<_ACEOF
8124 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8125 _ACEOF
8129 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8130 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8131 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8132 echo $ECHO_N "(cached) $ECHO_C" >&6
8133 else
8134 cat >conftest.$ac_ext <<_ACEOF
8135 /* confdefs.h. */
8136 _ACEOF
8137 cat confdefs.h >>conftest.$ac_ext
8138 cat >>conftest.$ac_ext <<_ACEOF
8139 /* end confdefs.h. */
8140 $ac_includes_default
8141 #if HAVE_SYS_SOCKET_H
8142 #include <sys/socket.h>
8143 #endif
8144 #if HAVE_NET_IF_H
8145 #include <net/if.h>
8146 #endif
8149 main ()
8151 static struct ifreq ac_aggr;
8152 if (ac_aggr.ifr_netmask)
8153 return 0;
8155 return 0;
8157 _ACEOF
8158 rm -f conftest.$ac_objext
8159 if { (ac_try="$ac_compile"
8160 case "(($ac_try" in
8161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8162 *) ac_try_echo=$ac_try;;
8163 esac
8164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8165 (eval "$ac_compile") 2>conftest.er1
8166 ac_status=$?
8167 grep -v '^ *+' conftest.er1 >conftest.err
8168 rm -f conftest.er1
8169 cat conftest.err >&5
8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 (exit $ac_status); } && {
8172 test -z "$ac_c_werror_flag" ||
8173 test ! -s conftest.err
8174 } && test -s conftest.$ac_objext; then
8175 ac_cv_member_struct_ifreq_ifr_netmask=yes
8176 else
8177 echo "$as_me: failed program was:" >&5
8178 sed 's/^/| /' conftest.$ac_ext >&5
8180 cat >conftest.$ac_ext <<_ACEOF
8181 /* confdefs.h. */
8182 _ACEOF
8183 cat confdefs.h >>conftest.$ac_ext
8184 cat >>conftest.$ac_ext <<_ACEOF
8185 /* end confdefs.h. */
8186 $ac_includes_default
8187 #if HAVE_SYS_SOCKET_H
8188 #include <sys/socket.h>
8189 #endif
8190 #if HAVE_NET_IF_H
8191 #include <net/if.h>
8192 #endif
8195 main ()
8197 static struct ifreq ac_aggr;
8198 if (sizeof ac_aggr.ifr_netmask)
8199 return 0;
8201 return 0;
8203 _ACEOF
8204 rm -f conftest.$ac_objext
8205 if { (ac_try="$ac_compile"
8206 case "(($ac_try" in
8207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8208 *) ac_try_echo=$ac_try;;
8209 esac
8210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8211 (eval "$ac_compile") 2>conftest.er1
8212 ac_status=$?
8213 grep -v '^ *+' conftest.er1 >conftest.err
8214 rm -f conftest.er1
8215 cat conftest.err >&5
8216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217 (exit $ac_status); } && {
8218 test -z "$ac_c_werror_flag" ||
8219 test ! -s conftest.err
8220 } && test -s conftest.$ac_objext; then
8221 ac_cv_member_struct_ifreq_ifr_netmask=yes
8222 else
8223 echo "$as_me: failed program was:" >&5
8224 sed 's/^/| /' conftest.$ac_ext >&5
8226 ac_cv_member_struct_ifreq_ifr_netmask=no
8229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8234 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8235 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8236 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8238 cat >>confdefs.h <<_ACEOF
8239 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8240 _ACEOF
8244 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8245 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8246 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8247 echo $ECHO_N "(cached) $ECHO_C" >&6
8248 else
8249 cat >conftest.$ac_ext <<_ACEOF
8250 /* confdefs.h. */
8251 _ACEOF
8252 cat confdefs.h >>conftest.$ac_ext
8253 cat >>conftest.$ac_ext <<_ACEOF
8254 /* end confdefs.h. */
8255 $ac_includes_default
8256 #if HAVE_SYS_SOCKET_H
8257 #include <sys/socket.h>
8258 #endif
8259 #if HAVE_NET_IF_H
8260 #include <net/if.h>
8261 #endif
8264 main ()
8266 static struct ifreq ac_aggr;
8267 if (ac_aggr.ifr_broadaddr)
8268 return 0;
8270 return 0;
8272 _ACEOF
8273 rm -f conftest.$ac_objext
8274 if { (ac_try="$ac_compile"
8275 case "(($ac_try" in
8276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8277 *) ac_try_echo=$ac_try;;
8278 esac
8279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8280 (eval "$ac_compile") 2>conftest.er1
8281 ac_status=$?
8282 grep -v '^ *+' conftest.er1 >conftest.err
8283 rm -f conftest.er1
8284 cat conftest.err >&5
8285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286 (exit $ac_status); } && {
8287 test -z "$ac_c_werror_flag" ||
8288 test ! -s conftest.err
8289 } && test -s conftest.$ac_objext; then
8290 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8291 else
8292 echo "$as_me: failed program was:" >&5
8293 sed 's/^/| /' conftest.$ac_ext >&5
8295 cat >conftest.$ac_ext <<_ACEOF
8296 /* confdefs.h. */
8297 _ACEOF
8298 cat confdefs.h >>conftest.$ac_ext
8299 cat >>conftest.$ac_ext <<_ACEOF
8300 /* end confdefs.h. */
8301 $ac_includes_default
8302 #if HAVE_SYS_SOCKET_H
8303 #include <sys/socket.h>
8304 #endif
8305 #if HAVE_NET_IF_H
8306 #include <net/if.h>
8307 #endif
8310 main ()
8312 static struct ifreq ac_aggr;
8313 if (sizeof ac_aggr.ifr_broadaddr)
8314 return 0;
8316 return 0;
8318 _ACEOF
8319 rm -f conftest.$ac_objext
8320 if { (ac_try="$ac_compile"
8321 case "(($ac_try" in
8322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8323 *) ac_try_echo=$ac_try;;
8324 esac
8325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8326 (eval "$ac_compile") 2>conftest.er1
8327 ac_status=$?
8328 grep -v '^ *+' conftest.er1 >conftest.err
8329 rm -f conftest.er1
8330 cat conftest.err >&5
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); } && {
8333 test -z "$ac_c_werror_flag" ||
8334 test ! -s conftest.err
8335 } && test -s conftest.$ac_objext; then
8336 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8337 else
8338 echo "$as_me: failed program was:" >&5
8339 sed 's/^/| /' conftest.$ac_ext >&5
8341 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8349 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8350 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8351 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8353 cat >>confdefs.h <<_ACEOF
8354 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8355 _ACEOF
8359 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8360 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8361 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8362 echo $ECHO_N "(cached) $ECHO_C" >&6
8363 else
8364 cat >conftest.$ac_ext <<_ACEOF
8365 /* confdefs.h. */
8366 _ACEOF
8367 cat confdefs.h >>conftest.$ac_ext
8368 cat >>conftest.$ac_ext <<_ACEOF
8369 /* end confdefs.h. */
8370 $ac_includes_default
8371 #if HAVE_SYS_SOCKET_H
8372 #include <sys/socket.h>
8373 #endif
8374 #if HAVE_NET_IF_H
8375 #include <net/if.h>
8376 #endif
8379 main ()
8381 static struct ifreq ac_aggr;
8382 if (ac_aggr.ifr_addr)
8383 return 0;
8385 return 0;
8387 _ACEOF
8388 rm -f conftest.$ac_objext
8389 if { (ac_try="$ac_compile"
8390 case "(($ac_try" in
8391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8392 *) ac_try_echo=$ac_try;;
8393 esac
8394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8395 (eval "$ac_compile") 2>conftest.er1
8396 ac_status=$?
8397 grep -v '^ *+' conftest.er1 >conftest.err
8398 rm -f conftest.er1
8399 cat conftest.err >&5
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); } && {
8402 test -z "$ac_c_werror_flag" ||
8403 test ! -s conftest.err
8404 } && test -s conftest.$ac_objext; then
8405 ac_cv_member_struct_ifreq_ifr_addr=yes
8406 else
8407 echo "$as_me: failed program was:" >&5
8408 sed 's/^/| /' conftest.$ac_ext >&5
8410 cat >conftest.$ac_ext <<_ACEOF
8411 /* confdefs.h. */
8412 _ACEOF
8413 cat confdefs.h >>conftest.$ac_ext
8414 cat >>conftest.$ac_ext <<_ACEOF
8415 /* end confdefs.h. */
8416 $ac_includes_default
8417 #if HAVE_SYS_SOCKET_H
8418 #include <sys/socket.h>
8419 #endif
8420 #if HAVE_NET_IF_H
8421 #include <net/if.h>
8422 #endif
8425 main ()
8427 static struct ifreq ac_aggr;
8428 if (sizeof ac_aggr.ifr_addr)
8429 return 0;
8431 return 0;
8433 _ACEOF
8434 rm -f conftest.$ac_objext
8435 if { (ac_try="$ac_compile"
8436 case "(($ac_try" in
8437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8438 *) ac_try_echo=$ac_try;;
8439 esac
8440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8441 (eval "$ac_compile") 2>conftest.er1
8442 ac_status=$?
8443 grep -v '^ *+' conftest.er1 >conftest.err
8444 rm -f conftest.er1
8445 cat conftest.err >&5
8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447 (exit $ac_status); } && {
8448 test -z "$ac_c_werror_flag" ||
8449 test ! -s conftest.err
8450 } && test -s conftest.$ac_objext; then
8451 ac_cv_member_struct_ifreq_ifr_addr=yes
8452 else
8453 echo "$as_me: failed program was:" >&5
8454 sed 's/^/| /' conftest.$ac_ext >&5
8456 ac_cv_member_struct_ifreq_ifr_addr=no
8459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8464 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8465 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8466 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8468 cat >>confdefs.h <<_ACEOF
8469 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8470 _ACEOF
8477 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8478 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8479 if test "$ac_cv_prog_cc_c89" != no; then
8480 { echo "$as_me:$LINENO: result: yes" >&5
8481 echo "${ECHO_T}yes" >&6; }
8483 cat >>confdefs.h <<\_ACEOF
8484 #define PROTOTYPES 1
8485 _ACEOF
8488 cat >>confdefs.h <<\_ACEOF
8489 #define __PROTOTYPES 1
8490 _ACEOF
8492 else
8493 { echo "$as_me:$LINENO: result: no" >&5
8494 echo "${ECHO_T}no" >&6; }
8497 { echo "$as_me:$LINENO: checking for working volatile" >&5
8498 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8499 if test "${ac_cv_c_volatile+set}" = set; then
8500 echo $ECHO_N "(cached) $ECHO_C" >&6
8501 else
8502 cat >conftest.$ac_ext <<_ACEOF
8503 /* confdefs.h. */
8504 _ACEOF
8505 cat confdefs.h >>conftest.$ac_ext
8506 cat >>conftest.$ac_ext <<_ACEOF
8507 /* end confdefs.h. */
8510 main ()
8513 volatile int x;
8514 int * volatile y = (int *) 0;
8515 return !x && !y;
8517 return 0;
8519 _ACEOF
8520 rm -f conftest.$ac_objext
8521 if { (ac_try="$ac_compile"
8522 case "(($ac_try" in
8523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8524 *) ac_try_echo=$ac_try;;
8525 esac
8526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8527 (eval "$ac_compile") 2>conftest.er1
8528 ac_status=$?
8529 grep -v '^ *+' conftest.er1 >conftest.err
8530 rm -f conftest.er1
8531 cat conftest.err >&5
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); } && {
8534 test -z "$ac_c_werror_flag" ||
8535 test ! -s conftest.err
8536 } && test -s conftest.$ac_objext; then
8537 ac_cv_c_volatile=yes
8538 else
8539 echo "$as_me: failed program was:" >&5
8540 sed 's/^/| /' conftest.$ac_ext >&5
8542 ac_cv_c_volatile=no
8545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8547 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8548 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8549 if test $ac_cv_c_volatile = no; then
8551 cat >>confdefs.h <<\_ACEOF
8552 #define volatile
8553 _ACEOF
8557 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8558 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8559 if test "${ac_cv_c_const+set}" = set; then
8560 echo $ECHO_N "(cached) $ECHO_C" >&6
8561 else
8562 cat >conftest.$ac_ext <<_ACEOF
8563 /* confdefs.h. */
8564 _ACEOF
8565 cat confdefs.h >>conftest.$ac_ext
8566 cat >>conftest.$ac_ext <<_ACEOF
8567 /* end confdefs.h. */
8570 main ()
8572 /* FIXME: Include the comments suggested by Paul. */
8573 #ifndef __cplusplus
8574 /* Ultrix mips cc rejects this. */
8575 typedef int charset[2];
8576 const charset cs;
8577 /* SunOS 4.1.1 cc rejects this. */
8578 char const *const *pcpcc;
8579 char **ppc;
8580 /* NEC SVR4.0.2 mips cc rejects this. */
8581 struct point {int x, y;};
8582 static struct point const zero = {0,0};
8583 /* AIX XL C 1.02.0.0 rejects this.
8584 It does not let you subtract one const X* pointer from another in
8585 an arm of an if-expression whose if-part is not a constant
8586 expression */
8587 const char *g = "string";
8588 pcpcc = &g + (g ? g-g : 0);
8589 /* HPUX 7.0 cc rejects these. */
8590 ++pcpcc;
8591 ppc = (char**) pcpcc;
8592 pcpcc = (char const *const *) ppc;
8593 { /* SCO 3.2v4 cc rejects this. */
8594 char *t;
8595 char const *s = 0 ? (char *) 0 : (char const *) 0;
8597 *t++ = 0;
8598 if (s) return 0;
8600 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8601 int x[] = {25, 17};
8602 const int *foo = &x[0];
8603 ++foo;
8605 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8606 typedef const int *iptr;
8607 iptr p = 0;
8608 ++p;
8610 { /* AIX XL C 1.02.0.0 rejects this saying
8611 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8612 struct s { int j; const int *ap[3]; };
8613 struct s *b; b->j = 5;
8615 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8616 const int foo = 10;
8617 if (!foo) return 0;
8619 return !cs[0] && !zero.x;
8620 #endif
8623 return 0;
8625 _ACEOF
8626 rm -f conftest.$ac_objext
8627 if { (ac_try="$ac_compile"
8628 case "(($ac_try" in
8629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8630 *) ac_try_echo=$ac_try;;
8631 esac
8632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8633 (eval "$ac_compile") 2>conftest.er1
8634 ac_status=$?
8635 grep -v '^ *+' conftest.er1 >conftest.err
8636 rm -f conftest.er1
8637 cat conftest.err >&5
8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639 (exit $ac_status); } && {
8640 test -z "$ac_c_werror_flag" ||
8641 test ! -s conftest.err
8642 } && test -s conftest.$ac_objext; then
8643 ac_cv_c_const=yes
8644 else
8645 echo "$as_me: failed program was:" >&5
8646 sed 's/^/| /' conftest.$ac_ext >&5
8648 ac_cv_c_const=no
8651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8653 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8654 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8655 if test $ac_cv_c_const = no; then
8657 cat >>confdefs.h <<\_ACEOF
8658 #define const
8659 _ACEOF
8663 { echo "$as_me:$LINENO: checking for void * support" >&5
8664 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8665 if test "${emacs_cv_void_star+set}" = set; then
8666 echo $ECHO_N "(cached) $ECHO_C" >&6
8667 else
8668 cat >conftest.$ac_ext <<_ACEOF
8669 /* confdefs.h. */
8670 _ACEOF
8671 cat confdefs.h >>conftest.$ac_ext
8672 cat >>conftest.$ac_ext <<_ACEOF
8673 /* end confdefs.h. */
8676 main ()
8678 void * foo;
8680 return 0;
8682 _ACEOF
8683 rm -f conftest.$ac_objext
8684 if { (ac_try="$ac_compile"
8685 case "(($ac_try" in
8686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8687 *) ac_try_echo=$ac_try;;
8688 esac
8689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8690 (eval "$ac_compile") 2>conftest.er1
8691 ac_status=$?
8692 grep -v '^ *+' conftest.er1 >conftest.err
8693 rm -f conftest.er1
8694 cat conftest.err >&5
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); } && {
8697 test -z "$ac_c_werror_flag" ||
8698 test ! -s conftest.err
8699 } && test -s conftest.$ac_objext; then
8700 emacs_cv_void_star=yes
8701 else
8702 echo "$as_me: failed program was:" >&5
8703 sed 's/^/| /' conftest.$ac_ext >&5
8705 emacs_cv_void_star=no
8708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8710 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8711 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8712 if test $emacs_cv_void_star = yes; then
8713 cat >>confdefs.h <<\_ACEOF
8714 #define POINTER_TYPE void
8715 _ACEOF
8717 else
8718 cat >>confdefs.h <<\_ACEOF
8719 #define POINTER_TYPE char
8720 _ACEOF
8728 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8729 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8730 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8731 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8732 echo $ECHO_N "(cached) $ECHO_C" >&6
8733 else
8734 cat >conftest.make <<\_ACEOF
8735 SHELL = /bin/sh
8736 all:
8737 @echo '@@@%%%=$(MAKE)=@@@%%%'
8738 _ACEOF
8739 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8740 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8741 *@@@%%%=?*=@@@%%%*)
8742 eval ac_cv_prog_make_${ac_make}_set=yes;;
8744 eval ac_cv_prog_make_${ac_make}_set=no;;
8745 esac
8746 rm -f conftest.make
8748 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8749 { echo "$as_me:$LINENO: result: yes" >&5
8750 echo "${ECHO_T}yes" >&6; }
8751 SET_MAKE=
8752 else
8753 { echo "$as_me:$LINENO: result: no" >&5
8754 echo "${ECHO_T}no" >&6; }
8755 SET_MAKE="MAKE=${MAKE-make}"
8759 { echo "$as_me:$LINENO: checking for long file names" >&5
8760 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8761 if test "${ac_cv_sys_long_file_names+set}" = set; then
8762 echo $ECHO_N "(cached) $ECHO_C" >&6
8763 else
8764 ac_cv_sys_long_file_names=yes
8765 # Test for long file names in all the places we know might matter:
8766 # . the current directory, where building will happen
8767 # $prefix/lib where we will be installing things
8768 # $exec_prefix/lib likewise
8769 # $TMPDIR if set, where it might want to write temporary files
8770 # /tmp where it might want to write temporary files
8771 # /var/tmp likewise
8772 # /usr/tmp likewise
8773 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8774 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8775 # in the usual case where exec_prefix is '${prefix}'.
8776 case $ac_dir in #(
8777 . | /* | ?:[\\/]*) ;; #(
8778 *) continue;;
8779 esac
8780 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8781 ac_xdir=$ac_dir/cf$$
8782 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8783 ac_tf1=$ac_xdir/conftest9012345
8784 ac_tf2=$ac_xdir/conftest9012346
8785 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8786 ac_cv_sys_long_file_names=no
8787 rm -f -r "$ac_xdir" 2>/dev/null
8788 test $ac_cv_sys_long_file_names = no && break
8789 done
8791 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8792 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8793 if test $ac_cv_sys_long_file_names = yes; then
8795 cat >>confdefs.h <<\_ACEOF
8796 #define HAVE_LONG_FILE_NAMES 1
8797 _ACEOF
8802 #### Choose a window system.
8804 { echo "$as_me:$LINENO: checking for X" >&5
8805 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8808 # Check whether --with-x was given.
8809 if test "${with_x+set}" = set; then
8810 withval=$with_x;
8813 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8814 if test "x$with_x" = xno; then
8815 # The user explicitly disabled X.
8816 have_x=disabled
8817 else
8818 case $x_includes,$x_libraries in #(
8819 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8820 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8821 { (exit 1); exit 1; }; };; #(
8822 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8823 echo $ECHO_N "(cached) $ECHO_C" >&6
8824 else
8825 # One or both of the vars are not set, and there is no cached value.
8826 ac_x_includes=no ac_x_libraries=no
8827 rm -f -r conftest.dir
8828 if mkdir conftest.dir; then
8829 cd conftest.dir
8830 cat >Imakefile <<'_ACEOF'
8831 incroot:
8832 @echo incroot='${INCROOT}'
8833 usrlibdir:
8834 @echo usrlibdir='${USRLIBDIR}'
8835 libdir:
8836 @echo libdir='${LIBDIR}'
8837 _ACEOF
8838 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8839 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8840 for ac_var in incroot usrlibdir libdir; do
8841 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8842 done
8843 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8844 for ac_extension in a so sl; do
8845 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8846 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8847 ac_im_usrlibdir=$ac_im_libdir; break
8849 done
8850 # Screen out bogus values from the imake configuration. They are
8851 # bogus both because they are the default anyway, and because
8852 # using them would break gcc on systems where it needs fixed includes.
8853 case $ac_im_incroot in
8854 /usr/include) ac_x_includes= ;;
8855 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8856 esac
8857 case $ac_im_usrlibdir in
8858 /usr/lib | /lib) ;;
8859 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8860 esac
8862 cd ..
8863 rm -f -r conftest.dir
8866 # Standard set of common directories for X headers.
8867 # Check X11 before X11Rn because it is often a symlink to the current release.
8868 ac_x_header_dirs='
8869 /usr/X11/include
8870 /usr/X11R6/include
8871 /usr/X11R5/include
8872 /usr/X11R4/include
8874 /usr/include/X11
8875 /usr/include/X11R6
8876 /usr/include/X11R5
8877 /usr/include/X11R4
8879 /usr/local/X11/include
8880 /usr/local/X11R6/include
8881 /usr/local/X11R5/include
8882 /usr/local/X11R4/include
8884 /usr/local/include/X11
8885 /usr/local/include/X11R6
8886 /usr/local/include/X11R5
8887 /usr/local/include/X11R4
8889 /usr/X386/include
8890 /usr/x386/include
8891 /usr/XFree86/include/X11
8893 /usr/include
8894 /usr/local/include
8895 /usr/unsupported/include
8896 /usr/athena/include
8897 /usr/local/x11r5/include
8898 /usr/lpp/Xamples/include
8900 /usr/openwin/include
8901 /usr/openwin/share/include'
8903 if test "$ac_x_includes" = no; then
8904 # Guess where to find include files, by looking for Xlib.h.
8905 # First, try using that file with no special directory specified.
8906 cat >conftest.$ac_ext <<_ACEOF
8907 /* confdefs.h. */
8908 _ACEOF
8909 cat confdefs.h >>conftest.$ac_ext
8910 cat >>conftest.$ac_ext <<_ACEOF
8911 /* end confdefs.h. */
8912 #include <X11/Xlib.h>
8913 _ACEOF
8914 if { (ac_try="$ac_cpp conftest.$ac_ext"
8915 case "(($ac_try" in
8916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8917 *) ac_try_echo=$ac_try;;
8918 esac
8919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8920 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8921 ac_status=$?
8922 grep -v '^ *+' conftest.er1 >conftest.err
8923 rm -f conftest.er1
8924 cat conftest.err >&5
8925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926 (exit $ac_status); } >/dev/null && {
8927 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8928 test ! -s conftest.err
8929 }; then
8930 # We can compile using X headers with no special include directory.
8931 ac_x_includes=
8932 else
8933 echo "$as_me: failed program was:" >&5
8934 sed 's/^/| /' conftest.$ac_ext >&5
8936 for ac_dir in $ac_x_header_dirs; do
8937 if test -r "$ac_dir/X11/Xlib.h"; then
8938 ac_x_includes=$ac_dir
8939 break
8941 done
8944 rm -f conftest.err conftest.$ac_ext
8945 fi # $ac_x_includes = no
8947 if test "$ac_x_libraries" = no; then
8948 # Check for the libraries.
8949 # See if we find them without any special options.
8950 # Don't add to $LIBS permanently.
8951 ac_save_LIBS=$LIBS
8952 LIBS="-lX11 $LIBS"
8953 cat >conftest.$ac_ext <<_ACEOF
8954 /* confdefs.h. */
8955 _ACEOF
8956 cat confdefs.h >>conftest.$ac_ext
8957 cat >>conftest.$ac_ext <<_ACEOF
8958 /* end confdefs.h. */
8959 #include <X11/Xlib.h>
8961 main ()
8963 XrmInitialize ()
8965 return 0;
8967 _ACEOF
8968 rm -f conftest.$ac_objext conftest$ac_exeext
8969 if { (ac_try="$ac_link"
8970 case "(($ac_try" in
8971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8972 *) ac_try_echo=$ac_try;;
8973 esac
8974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8975 (eval "$ac_link") 2>conftest.er1
8976 ac_status=$?
8977 grep -v '^ *+' conftest.er1 >conftest.err
8978 rm -f conftest.er1
8979 cat conftest.err >&5
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); } && {
8982 test -z "$ac_c_werror_flag" ||
8983 test ! -s conftest.err
8984 } && test -s conftest$ac_exeext &&
8985 $as_test_x conftest$ac_exeext; then
8986 LIBS=$ac_save_LIBS
8987 # We can link X programs with no special library path.
8988 ac_x_libraries=
8989 else
8990 echo "$as_me: failed program was:" >&5
8991 sed 's/^/| /' conftest.$ac_ext >&5
8993 LIBS=$ac_save_LIBS
8994 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8996 # Don't even attempt the hair of trying to link an X program!
8997 for ac_extension in a so sl; do
8998 if test -r "$ac_dir/libX11.$ac_extension"; then
8999 ac_x_libraries=$ac_dir
9000 break 2
9002 done
9003 done
9006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9007 conftest$ac_exeext conftest.$ac_ext
9008 fi # $ac_x_libraries = no
9010 case $ac_x_includes,$ac_x_libraries in #(
9011 no,* | *,no | *\'*)
9012 # Didn't find X, or a directory has "'" in its name.
9013 ac_cv_have_x="have_x=no";; #(
9015 # Record where we found X for the cache.
9016 ac_cv_have_x="have_x=yes\
9017 ac_x_includes='$ac_x_includes'\
9018 ac_x_libraries='$ac_x_libraries'"
9019 esac
9021 ;; #(
9022 *) have_x=yes;;
9023 esac
9024 eval "$ac_cv_have_x"
9025 fi # $with_x != no
9027 if test "$have_x" != yes; then
9028 { echo "$as_me:$LINENO: result: $have_x" >&5
9029 echo "${ECHO_T}$have_x" >&6; }
9030 no_x=yes
9031 else
9032 # If each of the values was on the command line, it overrides each guess.
9033 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9034 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9035 # Update the cache value to reflect the command line values.
9036 ac_cv_have_x="have_x=yes\
9037 ac_x_includes='$x_includes'\
9038 ac_x_libraries='$x_libraries'"
9039 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9040 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9043 if test "$no_x" = yes; then
9044 window_system=none
9045 else
9046 window_system=x11
9049 if test "${x_libraries}" != NONE; then
9050 if test -n "${x_libraries}"; then
9051 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9052 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9054 x_default_search_path=""
9055 x_search_path=${x_libraries}
9056 if test -z "${x_search_path}"; then
9057 x_search_path=/usr/lib
9059 for x_library in `echo ${x_search_path}: | \
9060 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9061 x_search_path="\
9062 ${x_library}/X11/%L/%T/%N%C%S:\
9063 ${x_library}/X11/%l/%T/%N%C%S:\
9064 ${x_library}/X11/%T/%N%C%S:\
9065 ${x_library}/X11/%L/%T/%N%S:\
9066 ${x_library}/X11/%l/%T/%N%S:\
9067 ${x_library}/X11/%T/%N%S"
9068 if test x"${x_default_search_path}" = x; then
9069 x_default_search_path=${x_search_path}
9070 else
9071 x_default_search_path="${x_search_path}:${x_default_search_path}"
9073 done
9075 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9076 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9079 if test x"${x_includes}" = x; then
9080 bitmapdir=/usr/include/X11/bitmaps
9081 else
9082 # accumulate include directories that have X11 bitmap subdirectories
9083 bmd_acc="dummyval"
9084 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9085 if test -d "${bmd}/X11/bitmaps"; then
9086 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9088 if test -d "${bmd}/bitmaps"; then
9089 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9091 done
9092 if test ${bmd_acc} != "dummyval"; then
9093 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9097 HAVE_CARBON=no
9098 if test "${with_carbon}" != no; then
9099 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9100 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9101 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9102 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9103 echo $ECHO_N "(cached) $ECHO_C" >&6
9105 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9106 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9107 else
9108 # Is the header compilable?
9109 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9110 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9111 cat >conftest.$ac_ext <<_ACEOF
9112 /* confdefs.h. */
9113 _ACEOF
9114 cat confdefs.h >>conftest.$ac_ext
9115 cat >>conftest.$ac_ext <<_ACEOF
9116 /* end confdefs.h. */
9117 $ac_includes_default
9118 #include <Carbon/Carbon.h>
9119 _ACEOF
9120 rm -f conftest.$ac_objext
9121 if { (ac_try="$ac_compile"
9122 case "(($ac_try" in
9123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9124 *) ac_try_echo=$ac_try;;
9125 esac
9126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9127 (eval "$ac_compile") 2>conftest.er1
9128 ac_status=$?
9129 grep -v '^ *+' conftest.er1 >conftest.err
9130 rm -f conftest.er1
9131 cat conftest.err >&5
9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133 (exit $ac_status); } && {
9134 test -z "$ac_c_werror_flag" ||
9135 test ! -s conftest.err
9136 } && test -s conftest.$ac_objext; then
9137 ac_header_compiler=yes
9138 else
9139 echo "$as_me: failed program was:" >&5
9140 sed 's/^/| /' conftest.$ac_ext >&5
9142 ac_header_compiler=no
9145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9146 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9147 echo "${ECHO_T}$ac_header_compiler" >&6; }
9149 # Is the header present?
9150 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9151 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9152 cat >conftest.$ac_ext <<_ACEOF
9153 /* confdefs.h. */
9154 _ACEOF
9155 cat confdefs.h >>conftest.$ac_ext
9156 cat >>conftest.$ac_ext <<_ACEOF
9157 /* end confdefs.h. */
9158 #include <Carbon/Carbon.h>
9159 _ACEOF
9160 if { (ac_try="$ac_cpp conftest.$ac_ext"
9161 case "(($ac_try" in
9162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9163 *) ac_try_echo=$ac_try;;
9164 esac
9165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9166 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9167 ac_status=$?
9168 grep -v '^ *+' conftest.er1 >conftest.err
9169 rm -f conftest.er1
9170 cat conftest.err >&5
9171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172 (exit $ac_status); } >/dev/null && {
9173 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9174 test ! -s conftest.err
9175 }; then
9176 ac_header_preproc=yes
9177 else
9178 echo "$as_me: failed program was:" >&5
9179 sed 's/^/| /' conftest.$ac_ext >&5
9181 ac_header_preproc=no
9184 rm -f conftest.err conftest.$ac_ext
9185 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9186 echo "${ECHO_T}$ac_header_preproc" >&6; }
9188 # So? What about this header?
9189 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9190 yes:no: )
9191 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9192 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9193 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9194 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9195 ac_header_preproc=yes
9197 no:yes:* )
9198 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9199 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9200 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9201 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9202 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9203 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9204 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9205 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9206 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9207 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9208 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9209 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9212 esac
9213 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9214 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9215 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9216 echo $ECHO_N "(cached) $ECHO_C" >&6
9217 else
9218 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9220 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9221 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9224 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9225 HAVE_CARBON=yes
9230 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9231 if test "${with_carbon+set}" != set \
9232 && test "${carbon_appdir_x+set}" != set; then
9233 for var in with_x with_x_toolkit with_xim \
9234 with_xpm with_jpeg with_tiff with_gif with_png; do
9235 if eval test \"\${$var+set}\" = set; then
9236 HAVE_CARBON=no
9237 break
9239 done
9242 if test "${HAVE_CARBON}" = yes; then
9243 window_system=mac
9246 case "${window_system}" in
9247 x11 )
9248 HAVE_X_WINDOWS=yes
9249 HAVE_X11=yes
9250 case "${with_x_toolkit}" in
9251 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9252 motif ) USE_X_TOOLKIT=MOTIF ;;
9253 gtk ) with_gtk=yes
9254 USE_X_TOOLKIT=none ;;
9255 no ) USE_X_TOOLKIT=none ;;
9256 * ) USE_X_TOOLKIT=maybe ;;
9257 esac
9259 mac | none )
9260 HAVE_X_WINDOWS=no
9261 HAVE_X11=no
9262 USE_X_TOOLKIT=none
9264 esac
9266 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9267 # Extract the first word of "X", so it can be a program name with args.
9268 set dummy X; ac_word=$2
9269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9271 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9272 echo $ECHO_N "(cached) $ECHO_C" >&6
9273 else
9274 if test -n "$HAVE_XSERVER"; then
9275 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9276 else
9277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9278 for as_dir in $PATH
9280 IFS=$as_save_IFS
9281 test -z "$as_dir" && as_dir=.
9282 for ac_exec_ext in '' $ac_executable_extensions; do
9283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9284 ac_cv_prog_HAVE_XSERVER="true"
9285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9286 break 2
9288 done
9289 done
9290 IFS=$as_save_IFS
9292 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9295 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9296 if test -n "$HAVE_XSERVER"; then
9297 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9298 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9299 else
9300 { echo "$as_me:$LINENO: result: no" >&5
9301 echo "${ECHO_T}no" >&6; }
9305 if test "$HAVE_XSERVER" = true ||
9306 test -n "$DISPLAY" ||
9307 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9308 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9309 were found. You should install the relevant development files for X
9310 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9311 sure you have development files for image handling, i.e.
9312 tiff, gif, jpeg, png and xpm.
9313 If you are sure you want Emacs compiled without X window support, pass
9314 --without-x
9315 to configure." >&5
9316 echo "$as_me: error: You seem to be running X, but no X development libraries
9317 were found. You should install the relevant development files for X
9318 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9319 sure you have development files for image handling, i.e.
9320 tiff, gif, jpeg, png and xpm.
9321 If you are sure you want Emacs compiled without X window support, pass
9322 --without-x
9323 to configure." >&2;}
9324 { (exit 1); exit 1; }; }
9328 ### If we're using X11, we should use the X menu package.
9329 HAVE_MENUS=no
9330 case ${HAVE_X11} in
9331 yes ) HAVE_MENUS=yes ;;
9332 esac
9334 ### Compute the unexec source name from the object name.
9335 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9337 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9338 # Assume not, until told otherwise.
9339 GNU_MALLOC=yes
9340 doug_lea_malloc=yes
9341 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9342 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9343 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9344 echo $ECHO_N "(cached) $ECHO_C" >&6
9345 else
9346 cat >conftest.$ac_ext <<_ACEOF
9347 /* confdefs.h. */
9348 _ACEOF
9349 cat confdefs.h >>conftest.$ac_ext
9350 cat >>conftest.$ac_ext <<_ACEOF
9351 /* end confdefs.h. */
9352 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9354 #define malloc_get_state innocuous_malloc_get_state
9356 /* System header to define __stub macros and hopefully few prototypes,
9357 which can conflict with char malloc_get_state (); below.
9358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9359 <limits.h> exists even on freestanding compilers. */
9361 #ifdef __STDC__
9362 # include <limits.h>
9363 #else
9364 # include <assert.h>
9365 #endif
9367 #undef malloc_get_state
9369 /* Override any GCC internal prototype to avoid an error.
9370 Use char because int might match the return type of a GCC
9371 builtin and then its argument prototype would still apply. */
9372 #ifdef __cplusplus
9373 extern "C"
9374 #endif
9375 char malloc_get_state ();
9376 /* The GNU C library defines this for functions which it implements
9377 to always fail with ENOSYS. Some functions are actually named
9378 something starting with __ and the normal name is an alias. */
9379 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9380 choke me
9381 #endif
9384 main ()
9386 return malloc_get_state ();
9388 return 0;
9390 _ACEOF
9391 rm -f conftest.$ac_objext conftest$ac_exeext
9392 if { (ac_try="$ac_link"
9393 case "(($ac_try" in
9394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9395 *) ac_try_echo=$ac_try;;
9396 esac
9397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9398 (eval "$ac_link") 2>conftest.er1
9399 ac_status=$?
9400 grep -v '^ *+' conftest.er1 >conftest.err
9401 rm -f conftest.er1
9402 cat conftest.err >&5
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); } && {
9405 test -z "$ac_c_werror_flag" ||
9406 test ! -s conftest.err
9407 } && test -s conftest$ac_exeext &&
9408 $as_test_x conftest$ac_exeext; then
9409 ac_cv_func_malloc_get_state=yes
9410 else
9411 echo "$as_me: failed program was:" >&5
9412 sed 's/^/| /' conftest.$ac_ext >&5
9414 ac_cv_func_malloc_get_state=no
9417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9418 conftest$ac_exeext conftest.$ac_ext
9420 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9421 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9422 if test $ac_cv_func_malloc_get_state = yes; then
9424 else
9425 doug_lea_malloc=no
9428 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9429 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9430 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9431 echo $ECHO_N "(cached) $ECHO_C" >&6
9432 else
9433 cat >conftest.$ac_ext <<_ACEOF
9434 /* confdefs.h. */
9435 _ACEOF
9436 cat confdefs.h >>conftest.$ac_ext
9437 cat >>conftest.$ac_ext <<_ACEOF
9438 /* end confdefs.h. */
9439 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9440 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9441 #define malloc_set_state innocuous_malloc_set_state
9443 /* System header to define __stub macros and hopefully few prototypes,
9444 which can conflict with char malloc_set_state (); below.
9445 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9446 <limits.h> exists even on freestanding compilers. */
9448 #ifdef __STDC__
9449 # include <limits.h>
9450 #else
9451 # include <assert.h>
9452 #endif
9454 #undef malloc_set_state
9456 /* Override any GCC internal prototype to avoid an error.
9457 Use char because int might match the return type of a GCC
9458 builtin and then its argument prototype would still apply. */
9459 #ifdef __cplusplus
9460 extern "C"
9461 #endif
9462 char malloc_set_state ();
9463 /* The GNU C library defines this for functions which it implements
9464 to always fail with ENOSYS. Some functions are actually named
9465 something starting with __ and the normal name is an alias. */
9466 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9467 choke me
9468 #endif
9471 main ()
9473 return malloc_set_state ();
9475 return 0;
9477 _ACEOF
9478 rm -f conftest.$ac_objext conftest$ac_exeext
9479 if { (ac_try="$ac_link"
9480 case "(($ac_try" in
9481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9482 *) ac_try_echo=$ac_try;;
9483 esac
9484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9485 (eval "$ac_link") 2>conftest.er1
9486 ac_status=$?
9487 grep -v '^ *+' conftest.er1 >conftest.err
9488 rm -f conftest.er1
9489 cat conftest.err >&5
9490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491 (exit $ac_status); } && {
9492 test -z "$ac_c_werror_flag" ||
9493 test ! -s conftest.err
9494 } && test -s conftest$ac_exeext &&
9495 $as_test_x conftest$ac_exeext; then
9496 ac_cv_func_malloc_set_state=yes
9497 else
9498 echo "$as_me: failed program was:" >&5
9499 sed 's/^/| /' conftest.$ac_ext >&5
9501 ac_cv_func_malloc_set_state=no
9504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9505 conftest$ac_exeext conftest.$ac_ext
9507 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9508 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9509 if test $ac_cv_func_malloc_set_state = yes; then
9511 else
9512 doug_lea_malloc=no
9515 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9516 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9517 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9518 echo $ECHO_N "(cached) $ECHO_C" >&6
9519 else
9520 cat >conftest.$ac_ext <<_ACEOF
9521 /* confdefs.h. */
9522 _ACEOF
9523 cat confdefs.h >>conftest.$ac_ext
9524 cat >>conftest.$ac_ext <<_ACEOF
9525 /* end confdefs.h. */
9526 extern void (* __after_morecore_hook)();
9528 main ()
9530 __after_morecore_hook = 0
9532 return 0;
9534 _ACEOF
9535 rm -f conftest.$ac_objext conftest$ac_exeext
9536 if { (ac_try="$ac_link"
9537 case "(($ac_try" in
9538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9539 *) ac_try_echo=$ac_try;;
9540 esac
9541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9542 (eval "$ac_link") 2>conftest.er1
9543 ac_status=$?
9544 grep -v '^ *+' conftest.er1 >conftest.err
9545 rm -f conftest.er1
9546 cat conftest.err >&5
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); } && {
9549 test -z "$ac_c_werror_flag" ||
9550 test ! -s conftest.err
9551 } && test -s conftest$ac_exeext &&
9552 $as_test_x conftest$ac_exeext; then
9553 emacs_cv_var___after_morecore_hook=yes
9554 else
9555 echo "$as_me: failed program was:" >&5
9556 sed 's/^/| /' conftest.$ac_ext >&5
9558 emacs_cv_var___after_morecore_hook=no
9561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9562 conftest$ac_exeext conftest.$ac_ext
9564 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9565 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9566 if test $emacs_cv_var___after_morecore_hook = no; then
9567 doug_lea_malloc=no
9569 if test "${system_malloc}" = "yes"; then
9570 GNU_MALLOC=no
9571 GNU_MALLOC_reason="
9572 (The GNU allocators don't work with this system configuration.)"
9574 if test "$doug_lea_malloc" = "yes" ; then
9575 if test "$GNU_MALLOC" = yes ; then
9576 GNU_MALLOC_reason="
9577 (Using Doug Lea's new malloc from the GNU C Library.)"
9580 cat >>confdefs.h <<\_ACEOF
9581 #define DOUG_LEA_MALLOC 1
9582 _ACEOF
9586 if test x"${REL_ALLOC}" = x; then
9587 REL_ALLOC=${GNU_MALLOC}
9593 for ac_header in stdlib.h unistd.h
9595 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9600 echo $ECHO_N "(cached) $ECHO_C" >&6
9602 ac_res=`eval echo '${'$as_ac_Header'}'`
9603 { echo "$as_me:$LINENO: result: $ac_res" >&5
9604 echo "${ECHO_T}$ac_res" >&6; }
9605 else
9606 # Is the header compilable?
9607 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9608 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9609 cat >conftest.$ac_ext <<_ACEOF
9610 /* confdefs.h. */
9611 _ACEOF
9612 cat confdefs.h >>conftest.$ac_ext
9613 cat >>conftest.$ac_ext <<_ACEOF
9614 /* end confdefs.h. */
9615 $ac_includes_default
9616 #include <$ac_header>
9617 _ACEOF
9618 rm -f conftest.$ac_objext
9619 if { (ac_try="$ac_compile"
9620 case "(($ac_try" in
9621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9622 *) ac_try_echo=$ac_try;;
9623 esac
9624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9625 (eval "$ac_compile") 2>conftest.er1
9626 ac_status=$?
9627 grep -v '^ *+' conftest.er1 >conftest.err
9628 rm -f conftest.er1
9629 cat conftest.err >&5
9630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631 (exit $ac_status); } && {
9632 test -z "$ac_c_werror_flag" ||
9633 test ! -s conftest.err
9634 } && test -s conftest.$ac_objext; then
9635 ac_header_compiler=yes
9636 else
9637 echo "$as_me: failed program was:" >&5
9638 sed 's/^/| /' conftest.$ac_ext >&5
9640 ac_header_compiler=no
9643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9644 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9645 echo "${ECHO_T}$ac_header_compiler" >&6; }
9647 # Is the header present?
9648 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9649 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9650 cat >conftest.$ac_ext <<_ACEOF
9651 /* confdefs.h. */
9652 _ACEOF
9653 cat confdefs.h >>conftest.$ac_ext
9654 cat >>conftest.$ac_ext <<_ACEOF
9655 /* end confdefs.h. */
9656 #include <$ac_header>
9657 _ACEOF
9658 if { (ac_try="$ac_cpp conftest.$ac_ext"
9659 case "(($ac_try" in
9660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9661 *) ac_try_echo=$ac_try;;
9662 esac
9663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9665 ac_status=$?
9666 grep -v '^ *+' conftest.er1 >conftest.err
9667 rm -f conftest.er1
9668 cat conftest.err >&5
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670 (exit $ac_status); } >/dev/null && {
9671 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9672 test ! -s conftest.err
9673 }; then
9674 ac_header_preproc=yes
9675 else
9676 echo "$as_me: failed program was:" >&5
9677 sed 's/^/| /' conftest.$ac_ext >&5
9679 ac_header_preproc=no
9682 rm -f conftest.err conftest.$ac_ext
9683 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9684 echo "${ECHO_T}$ac_header_preproc" >&6; }
9686 # So? What about this header?
9687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9688 yes:no: )
9689 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9690 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9692 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9693 ac_header_preproc=yes
9695 no:yes:* )
9696 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9697 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9698 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9699 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9700 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9701 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9702 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9703 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9705 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9706 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9707 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9710 esac
9711 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9714 echo $ECHO_N "(cached) $ECHO_C" >&6
9715 else
9716 eval "$as_ac_Header=\$ac_header_preproc"
9718 ac_res=`eval echo '${'$as_ac_Header'}'`
9719 { echo "$as_me:$LINENO: result: $ac_res" >&5
9720 echo "${ECHO_T}$ac_res" >&6; }
9723 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9724 cat >>confdefs.h <<_ACEOF
9725 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9726 _ACEOF
9730 done
9733 for ac_func in getpagesize
9735 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9736 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9737 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9738 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9739 echo $ECHO_N "(cached) $ECHO_C" >&6
9740 else
9741 cat >conftest.$ac_ext <<_ACEOF
9742 /* confdefs.h. */
9743 _ACEOF
9744 cat confdefs.h >>conftest.$ac_ext
9745 cat >>conftest.$ac_ext <<_ACEOF
9746 /* end confdefs.h. */
9747 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9748 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9749 #define $ac_func innocuous_$ac_func
9751 /* System header to define __stub macros and hopefully few prototypes,
9752 which can conflict with char $ac_func (); below.
9753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9754 <limits.h> exists even on freestanding compilers. */
9756 #ifdef __STDC__
9757 # include <limits.h>
9758 #else
9759 # include <assert.h>
9760 #endif
9762 #undef $ac_func
9764 /* Override any GCC internal prototype to avoid an error.
9765 Use char because int might match the return type of a GCC
9766 builtin and then its argument prototype would still apply. */
9767 #ifdef __cplusplus
9768 extern "C"
9769 #endif
9770 char $ac_func ();
9771 /* The GNU C library defines this for functions which it implements
9772 to always fail with ENOSYS. Some functions are actually named
9773 something starting with __ and the normal name is an alias. */
9774 #if defined __stub_$ac_func || defined __stub___$ac_func
9775 choke me
9776 #endif
9779 main ()
9781 return $ac_func ();
9783 return 0;
9785 _ACEOF
9786 rm -f conftest.$ac_objext conftest$ac_exeext
9787 if { (ac_try="$ac_link"
9788 case "(($ac_try" in
9789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9790 *) ac_try_echo=$ac_try;;
9791 esac
9792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9793 (eval "$ac_link") 2>conftest.er1
9794 ac_status=$?
9795 grep -v '^ *+' conftest.er1 >conftest.err
9796 rm -f conftest.er1
9797 cat conftest.err >&5
9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799 (exit $ac_status); } && {
9800 test -z "$ac_c_werror_flag" ||
9801 test ! -s conftest.err
9802 } && test -s conftest$ac_exeext &&
9803 $as_test_x conftest$ac_exeext; then
9804 eval "$as_ac_var=yes"
9805 else
9806 echo "$as_me: failed program was:" >&5
9807 sed 's/^/| /' conftest.$ac_ext >&5
9809 eval "$as_ac_var=no"
9812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9813 conftest$ac_exeext conftest.$ac_ext
9815 ac_res=`eval echo '${'$as_ac_var'}'`
9816 { echo "$as_me:$LINENO: result: $ac_res" >&5
9817 echo "${ECHO_T}$ac_res" >&6; }
9818 if test `eval echo '${'$as_ac_var'}'` = yes; then
9819 cat >>confdefs.h <<_ACEOF
9820 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9821 _ACEOF
9824 done
9826 { echo "$as_me:$LINENO: checking for working mmap" >&5
9827 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9828 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9829 echo $ECHO_N "(cached) $ECHO_C" >&6
9830 else
9831 if test "$cross_compiling" = yes; then
9832 ac_cv_func_mmap_fixed_mapped=no
9833 else
9834 cat >conftest.$ac_ext <<_ACEOF
9835 /* confdefs.h. */
9836 _ACEOF
9837 cat confdefs.h >>conftest.$ac_ext
9838 cat >>conftest.$ac_ext <<_ACEOF
9839 /* end confdefs.h. */
9840 $ac_includes_default
9841 /* malloc might have been renamed as rpl_malloc. */
9842 #undef malloc
9844 /* Thanks to Mike Haertel and Jim Avera for this test.
9845 Here is a matrix of mmap possibilities:
9846 mmap private not fixed
9847 mmap private fixed at somewhere currently unmapped
9848 mmap private fixed at somewhere already mapped
9849 mmap shared not fixed
9850 mmap shared fixed at somewhere currently unmapped
9851 mmap shared fixed at somewhere already mapped
9852 For private mappings, we should verify that changes cannot be read()
9853 back from the file, nor mmap's back from the file at a different
9854 address. (There have been systems where private was not correctly
9855 implemented like the infamous i386 svr4.0, and systems where the
9856 VM page cache was not coherent with the file system buffer cache
9857 like early versions of FreeBSD and possibly contemporary NetBSD.)
9858 For shared mappings, we should conversely verify that changes get
9859 propagated back to all the places they're supposed to be.
9861 Grep wants private fixed already mapped.
9862 The main things grep needs to know about mmap are:
9863 * does it exist and is it safe to write into the mmap'd area
9864 * how to use it (BSD variants) */
9866 #include <fcntl.h>
9867 #include <sys/mman.h>
9869 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9870 char *malloc ();
9871 #endif
9873 /* This mess was copied from the GNU getpagesize.h. */
9874 #ifndef HAVE_GETPAGESIZE
9875 /* Assume that all systems that can run configure have sys/param.h. */
9876 # ifndef HAVE_SYS_PARAM_H
9877 # define HAVE_SYS_PARAM_H 1
9878 # endif
9880 # ifdef _SC_PAGESIZE
9881 # define getpagesize() sysconf(_SC_PAGESIZE)
9882 # else /* no _SC_PAGESIZE */
9883 # ifdef HAVE_SYS_PARAM_H
9884 # include <sys/param.h>
9885 # ifdef EXEC_PAGESIZE
9886 # define getpagesize() EXEC_PAGESIZE
9887 # else /* no EXEC_PAGESIZE */
9888 # ifdef NBPG
9889 # define getpagesize() NBPG * CLSIZE
9890 # ifndef CLSIZE
9891 # define CLSIZE 1
9892 # endif /* no CLSIZE */
9893 # else /* no NBPG */
9894 # ifdef NBPC
9895 # define getpagesize() NBPC
9896 # else /* no NBPC */
9897 # ifdef PAGESIZE
9898 # define getpagesize() PAGESIZE
9899 # endif /* PAGESIZE */
9900 # endif /* no NBPC */
9901 # endif /* no NBPG */
9902 # endif /* no EXEC_PAGESIZE */
9903 # else /* no HAVE_SYS_PARAM_H */
9904 # define getpagesize() 8192 /* punt totally */
9905 # endif /* no HAVE_SYS_PARAM_H */
9906 # endif /* no _SC_PAGESIZE */
9908 #endif /* no HAVE_GETPAGESIZE */
9911 main ()
9913 char *data, *data2, *data3;
9914 int i, pagesize;
9915 int fd;
9917 pagesize = getpagesize ();
9919 /* First, make a file with some known garbage in it. */
9920 data = (char *) malloc (pagesize);
9921 if (!data)
9922 return 1;
9923 for (i = 0; i < pagesize; ++i)
9924 *(data + i) = rand ();
9925 umask (0);
9926 fd = creat ("conftest.mmap", 0600);
9927 if (fd < 0)
9928 return 1;
9929 if (write (fd, data, pagesize) != pagesize)
9930 return 1;
9931 close (fd);
9933 /* Next, try to mmap the file at a fixed address which already has
9934 something else allocated at it. If we can, also make sure that
9935 we see the same garbage. */
9936 fd = open ("conftest.mmap", O_RDWR);
9937 if (fd < 0)
9938 return 1;
9939 data2 = (char *) malloc (2 * pagesize);
9940 if (!data2)
9941 return 1;
9942 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9943 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9944 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9945 return 1;
9946 for (i = 0; i < pagesize; ++i)
9947 if (*(data + i) != *(data2 + i))
9948 return 1;
9950 /* Finally, make sure that changes to the mapped area do not
9951 percolate back to the file as seen by read(). (This is a bug on
9952 some variants of i386 svr4.0.) */
9953 for (i = 0; i < pagesize; ++i)
9954 *(data2 + i) = *(data2 + i) + 1;
9955 data3 = (char *) malloc (pagesize);
9956 if (!data3)
9957 return 1;
9958 if (read (fd, data3, pagesize) != pagesize)
9959 return 1;
9960 for (i = 0; i < pagesize; ++i)
9961 if (*(data + i) != *(data3 + i))
9962 return 1;
9963 close (fd);
9964 return 0;
9966 _ACEOF
9967 rm -f conftest$ac_exeext
9968 if { (ac_try="$ac_link"
9969 case "(($ac_try" in
9970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9971 *) ac_try_echo=$ac_try;;
9972 esac
9973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9974 (eval "$ac_link") 2>&5
9975 ac_status=$?
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9978 { (case "(($ac_try" in
9979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9980 *) ac_try_echo=$ac_try;;
9981 esac
9982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9983 (eval "$ac_try") 2>&5
9984 ac_status=$?
9985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986 (exit $ac_status); }; }; then
9987 ac_cv_func_mmap_fixed_mapped=yes
9988 else
9989 echo "$as_me: program exited with status $ac_status" >&5
9990 echo "$as_me: failed program was:" >&5
9991 sed 's/^/| /' conftest.$ac_ext >&5
9993 ( exit $ac_status )
9994 ac_cv_func_mmap_fixed_mapped=no
9996 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10001 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10002 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10003 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10005 cat >>confdefs.h <<\_ACEOF
10006 #define HAVE_MMAP 1
10007 _ACEOF
10010 rm -f conftest.mmap
10012 if test $use_mmap_for_buffers = yes; then
10013 REL_ALLOC=no
10016 LIBS="$libsrc_libs $LIBS"
10019 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10020 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10021 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10022 echo $ECHO_N "(cached) $ECHO_C" >&6
10023 else
10024 ac_check_lib_save_LIBS=$LIBS
10025 LIBS="-ldnet $LIBS"
10026 cat >conftest.$ac_ext <<_ACEOF
10027 /* confdefs.h. */
10028 _ACEOF
10029 cat confdefs.h >>conftest.$ac_ext
10030 cat >>conftest.$ac_ext <<_ACEOF
10031 /* end confdefs.h. */
10033 /* Override any GCC internal prototype to avoid an error.
10034 Use char because int might match the return type of a GCC
10035 builtin and then its argument prototype would still apply. */
10036 #ifdef __cplusplus
10037 extern "C"
10038 #endif
10039 char dnet_ntoa ();
10041 main ()
10043 return dnet_ntoa ();
10045 return 0;
10047 _ACEOF
10048 rm -f conftest.$ac_objext conftest$ac_exeext
10049 if { (ac_try="$ac_link"
10050 case "(($ac_try" in
10051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10052 *) ac_try_echo=$ac_try;;
10053 esac
10054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10055 (eval "$ac_link") 2>conftest.er1
10056 ac_status=$?
10057 grep -v '^ *+' conftest.er1 >conftest.err
10058 rm -f conftest.er1
10059 cat conftest.err >&5
10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 (exit $ac_status); } && {
10062 test -z "$ac_c_werror_flag" ||
10063 test ! -s conftest.err
10064 } && test -s conftest$ac_exeext &&
10065 $as_test_x conftest$ac_exeext; then
10066 ac_cv_lib_dnet_dnet_ntoa=yes
10067 else
10068 echo "$as_me: failed program was:" >&5
10069 sed 's/^/| /' conftest.$ac_ext >&5
10071 ac_cv_lib_dnet_dnet_ntoa=no
10074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10075 conftest$ac_exeext conftest.$ac_ext
10076 LIBS=$ac_check_lib_save_LIBS
10078 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10079 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10080 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10081 cat >>confdefs.h <<_ACEOF
10082 #define HAVE_LIBDNET 1
10083 _ACEOF
10085 LIBS="-ldnet $LIBS"
10090 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10091 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10092 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10093 echo $ECHO_N "(cached) $ECHO_C" >&6
10094 else
10095 ac_check_lib_save_LIBS=$LIBS
10096 LIBS="-lXbsd $LIBS"
10097 cat >conftest.$ac_ext <<_ACEOF
10098 /* confdefs.h. */
10099 _ACEOF
10100 cat confdefs.h >>conftest.$ac_ext
10101 cat >>conftest.$ac_ext <<_ACEOF
10102 /* end confdefs.h. */
10106 main ()
10108 return main ();
10110 return 0;
10112 _ACEOF
10113 rm -f conftest.$ac_objext conftest$ac_exeext
10114 if { (ac_try="$ac_link"
10115 case "(($ac_try" in
10116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10117 *) ac_try_echo=$ac_try;;
10118 esac
10119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10120 (eval "$ac_link") 2>conftest.er1
10121 ac_status=$?
10122 grep -v '^ *+' conftest.er1 >conftest.err
10123 rm -f conftest.er1
10124 cat conftest.err >&5
10125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126 (exit $ac_status); } && {
10127 test -z "$ac_c_werror_flag" ||
10128 test ! -s conftest.err
10129 } && test -s conftest$ac_exeext &&
10130 $as_test_x conftest$ac_exeext; then
10131 ac_cv_lib_Xbsd_main=yes
10132 else
10133 echo "$as_me: failed program was:" >&5
10134 sed 's/^/| /' conftest.$ac_ext >&5
10136 ac_cv_lib_Xbsd_main=no
10139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10140 conftest$ac_exeext conftest.$ac_ext
10141 LIBS=$ac_check_lib_save_LIBS
10143 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10144 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10145 if test $ac_cv_lib_Xbsd_main = yes; then
10146 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10151 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10152 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10153 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10154 echo $ECHO_N "(cached) $ECHO_C" >&6
10155 else
10156 ac_check_lib_save_LIBS=$LIBS
10157 LIBS="-lpthreads $LIBS"
10158 cat >conftest.$ac_ext <<_ACEOF
10159 /* confdefs.h. */
10160 _ACEOF
10161 cat confdefs.h >>conftest.$ac_ext
10162 cat >>conftest.$ac_ext <<_ACEOF
10163 /* end confdefs.h. */
10165 /* Override any GCC internal prototype to avoid an error.
10166 Use char because int might match the return type of a GCC
10167 builtin and then its argument prototype would still apply. */
10168 #ifdef __cplusplus
10169 extern "C"
10170 #endif
10171 char cma_open ();
10173 main ()
10175 return cma_open ();
10177 return 0;
10179 _ACEOF
10180 rm -f conftest.$ac_objext conftest$ac_exeext
10181 if { (ac_try="$ac_link"
10182 case "(($ac_try" in
10183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10184 *) ac_try_echo=$ac_try;;
10185 esac
10186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10187 (eval "$ac_link") 2>conftest.er1
10188 ac_status=$?
10189 grep -v '^ *+' conftest.er1 >conftest.err
10190 rm -f conftest.er1
10191 cat conftest.err >&5
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); } && {
10194 test -z "$ac_c_werror_flag" ||
10195 test ! -s conftest.err
10196 } && test -s conftest$ac_exeext &&
10197 $as_test_x conftest$ac_exeext; then
10198 ac_cv_lib_pthreads_cma_open=yes
10199 else
10200 echo "$as_me: failed program was:" >&5
10201 sed 's/^/| /' conftest.$ac_ext >&5
10203 ac_cv_lib_pthreads_cma_open=no
10206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10207 conftest$ac_exeext conftest.$ac_ext
10208 LIBS=$ac_check_lib_save_LIBS
10210 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10211 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10212 if test $ac_cv_lib_pthreads_cma_open = yes; then
10213 cat >>confdefs.h <<_ACEOF
10214 #define HAVE_LIBPTHREADS 1
10215 _ACEOF
10217 LIBS="-lpthreads $LIBS"
10223 case ${host_os} in
10224 aix*)
10225 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10226 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10227 if test "${gdb_cv_bigtoc+set}" = set; then
10228 echo $ECHO_N "(cached) $ECHO_C" >&6
10229 else
10231 case $GCC in
10232 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10233 *) gdb_cv_bigtoc=-bbigtoc ;;
10234 esac
10236 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10237 cat >conftest.$ac_ext <<_ACEOF
10238 /* confdefs.h. */
10239 _ACEOF
10240 cat confdefs.h >>conftest.$ac_ext
10241 cat >>conftest.$ac_ext <<_ACEOF
10242 /* end confdefs.h. */
10245 main ()
10247 int i;
10249 return 0;
10251 _ACEOF
10252 rm -f conftest.$ac_objext conftest$ac_exeext
10253 if { (ac_try="$ac_link"
10254 case "(($ac_try" in
10255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10256 *) ac_try_echo=$ac_try;;
10257 esac
10258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10259 (eval "$ac_link") 2>conftest.er1
10260 ac_status=$?
10261 grep -v '^ *+' conftest.er1 >conftest.err
10262 rm -f conftest.er1
10263 cat conftest.err >&5
10264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265 (exit $ac_status); } && {
10266 test -z "$ac_c_werror_flag" ||
10267 test ! -s conftest.err
10268 } && test -s conftest$ac_exeext &&
10269 $as_test_x conftest$ac_exeext; then
10271 else
10272 echo "$as_me: failed program was:" >&5
10273 sed 's/^/| /' conftest.$ac_ext >&5
10275 gdb_cv_bigtoc=
10278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10279 conftest$ac_exeext conftest.$ac_ext
10282 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10283 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10285 esac
10287 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10288 # used for the tests that follow. We set them back to REAL_CFLAGS and
10289 # REAL_CPPFLAGS later on.
10291 REAL_CPPFLAGS="$CPPFLAGS"
10293 if test "${HAVE_X11}" = "yes"; then
10294 DEFS="$C_SWITCH_X_SITE $DEFS"
10295 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10296 LIBS="$LIBX $LIBS"
10297 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10298 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10300 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10301 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10302 # but it's more convenient here to set LD_RUN_PATH
10303 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10304 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10305 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10306 export LD_RUN_PATH
10309 if test "${opsys}" = "gnu-linux"; then
10310 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10311 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10312 cat >conftest.$ac_ext <<_ACEOF
10313 /* confdefs.h. */
10314 _ACEOF
10315 cat confdefs.h >>conftest.$ac_ext
10316 cat >>conftest.$ac_ext <<_ACEOF
10317 /* end confdefs.h. */
10320 main ()
10322 XOpenDisplay ("foo");
10324 return 0;
10326 _ACEOF
10327 rm -f conftest.$ac_objext conftest$ac_exeext
10328 if { (ac_try="$ac_link"
10329 case "(($ac_try" in
10330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10331 *) ac_try_echo=$ac_try;;
10332 esac
10333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10334 (eval "$ac_link") 2>conftest.er1
10335 ac_status=$?
10336 grep -v '^ *+' conftest.er1 >conftest.err
10337 rm -f conftest.er1
10338 cat conftest.err >&5
10339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340 (exit $ac_status); } && {
10341 test -z "$ac_c_werror_flag" ||
10342 test ! -s conftest.err
10343 } && test -s conftest$ac_exeext &&
10344 $as_test_x conftest$ac_exeext; then
10345 xlinux_first_failure=no
10346 else
10347 echo "$as_me: failed program was:" >&5
10348 sed 's/^/| /' conftest.$ac_ext >&5
10350 xlinux_first_failure=yes
10353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10354 conftest$ac_exeext conftest.$ac_ext
10355 if test "${xlinux_first_failure}" = "yes"; then
10356 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10357 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10358 OLD_CPPFLAGS="$CPPFLAGS"
10359 OLD_LIBS="$LIBS"
10360 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10361 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10362 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10363 LIBS="$LIBS -b i486-linuxaout"
10364 cat >conftest.$ac_ext <<_ACEOF
10365 /* confdefs.h. */
10366 _ACEOF
10367 cat confdefs.h >>conftest.$ac_ext
10368 cat >>conftest.$ac_ext <<_ACEOF
10369 /* end confdefs.h. */
10372 main ()
10374 XOpenDisplay ("foo");
10376 return 0;
10378 _ACEOF
10379 rm -f conftest.$ac_objext conftest$ac_exeext
10380 if { (ac_try="$ac_link"
10381 case "(($ac_try" in
10382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10383 *) ac_try_echo=$ac_try;;
10384 esac
10385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10386 (eval "$ac_link") 2>conftest.er1
10387 ac_status=$?
10388 grep -v '^ *+' conftest.er1 >conftest.err
10389 rm -f conftest.er1
10390 cat conftest.err >&5
10391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392 (exit $ac_status); } && {
10393 test -z "$ac_c_werror_flag" ||
10394 test ! -s conftest.err
10395 } && test -s conftest$ac_exeext &&
10396 $as_test_x conftest$ac_exeext; then
10397 xlinux_second_failure=no
10398 else
10399 echo "$as_me: failed program was:" >&5
10400 sed 's/^/| /' conftest.$ac_ext >&5
10402 xlinux_second_failure=yes
10405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10406 conftest$ac_exeext conftest.$ac_ext
10407 if test "${xlinux_second_failure}" = "yes"; then
10408 # If we get the same failure with -b, there is no use adding -b.
10409 # So take it out. This plays safe.
10410 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10411 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10412 CPPFLAGS="$OLD_CPPFLAGS"
10413 LIBS="$OLD_LIBS"
10414 { echo "$as_me:$LINENO: result: no" >&5
10415 echo "${ECHO_T}no" >&6; }
10416 else
10417 { echo "$as_me:$LINENO: result: yes" >&5
10418 echo "${ECHO_T}yes" >&6; }
10420 else
10421 { echo "$as_me:$LINENO: result: no" >&5
10422 echo "${ECHO_T}no" >&6; }
10426 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10427 # header files included from there.
10428 { echo "$as_me:$LINENO: checking for Xkb" >&5
10429 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10430 cat >conftest.$ac_ext <<_ACEOF
10431 /* confdefs.h. */
10432 _ACEOF
10433 cat confdefs.h >>conftest.$ac_ext
10434 cat >>conftest.$ac_ext <<_ACEOF
10435 /* end confdefs.h. */
10436 #include <X11/Xlib.h>
10437 #include <X11/XKBlib.h>
10439 main ()
10441 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10443 return 0;
10445 _ACEOF
10446 rm -f conftest.$ac_objext conftest$ac_exeext
10447 if { (ac_try="$ac_link"
10448 case "(($ac_try" in
10449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10450 *) ac_try_echo=$ac_try;;
10451 esac
10452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10453 (eval "$ac_link") 2>conftest.er1
10454 ac_status=$?
10455 grep -v '^ *+' conftest.er1 >conftest.err
10456 rm -f conftest.er1
10457 cat conftest.err >&5
10458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459 (exit $ac_status); } && {
10460 test -z "$ac_c_werror_flag" ||
10461 test ! -s conftest.err
10462 } && test -s conftest$ac_exeext &&
10463 $as_test_x conftest$ac_exeext; then
10464 emacs_xkb=yes
10465 else
10466 echo "$as_me: failed program was:" >&5
10467 sed 's/^/| /' conftest.$ac_ext >&5
10469 emacs_xkb=no
10472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10473 conftest$ac_exeext conftest.$ac_ext
10474 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10475 echo "${ECHO_T}$emacs_xkb" >&6; }
10476 if test $emacs_xkb = yes; then
10478 cat >>confdefs.h <<\_ACEOF
10479 #define HAVE_XKBGETKEYBOARD 1
10480 _ACEOF
10488 for ac_func in XrmSetDatabase XScreenResourceString \
10489 XScreenNumberOfScreen XSetWMProtocols
10491 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10492 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10493 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10494 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10495 echo $ECHO_N "(cached) $ECHO_C" >&6
10496 else
10497 cat >conftest.$ac_ext <<_ACEOF
10498 /* confdefs.h. */
10499 _ACEOF
10500 cat confdefs.h >>conftest.$ac_ext
10501 cat >>conftest.$ac_ext <<_ACEOF
10502 /* end confdefs.h. */
10503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10505 #define $ac_func innocuous_$ac_func
10507 /* System header to define __stub macros and hopefully few prototypes,
10508 which can conflict with char $ac_func (); below.
10509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10510 <limits.h> exists even on freestanding compilers. */
10512 #ifdef __STDC__
10513 # include <limits.h>
10514 #else
10515 # include <assert.h>
10516 #endif
10518 #undef $ac_func
10520 /* Override any GCC internal prototype to avoid an error.
10521 Use char because int might match the return type of a GCC
10522 builtin and then its argument prototype would still apply. */
10523 #ifdef __cplusplus
10524 extern "C"
10525 #endif
10526 char $ac_func ();
10527 /* The GNU C library defines this for functions which it implements
10528 to always fail with ENOSYS. Some functions are actually named
10529 something starting with __ and the normal name is an alias. */
10530 #if defined __stub_$ac_func || defined __stub___$ac_func
10531 choke me
10532 #endif
10535 main ()
10537 return $ac_func ();
10539 return 0;
10541 _ACEOF
10542 rm -f conftest.$ac_objext conftest$ac_exeext
10543 if { (ac_try="$ac_link"
10544 case "(($ac_try" in
10545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10546 *) ac_try_echo=$ac_try;;
10547 esac
10548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10549 (eval "$ac_link") 2>conftest.er1
10550 ac_status=$?
10551 grep -v '^ *+' conftest.er1 >conftest.err
10552 rm -f conftest.er1
10553 cat conftest.err >&5
10554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 (exit $ac_status); } && {
10556 test -z "$ac_c_werror_flag" ||
10557 test ! -s conftest.err
10558 } && test -s conftest$ac_exeext &&
10559 $as_test_x conftest$ac_exeext; then
10560 eval "$as_ac_var=yes"
10561 else
10562 echo "$as_me: failed program was:" >&5
10563 sed 's/^/| /' conftest.$ac_ext >&5
10565 eval "$as_ac_var=no"
10568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10569 conftest$ac_exeext conftest.$ac_ext
10571 ac_res=`eval echo '${'$as_ac_var'}'`
10572 { echo "$as_me:$LINENO: result: $ac_res" >&5
10573 echo "${ECHO_T}$ac_res" >&6; }
10574 if test `eval echo '${'$as_ac_var'}'` = yes; then
10575 cat >>confdefs.h <<_ACEOF
10576 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10577 _ACEOF
10580 done
10584 if test "${window_system}" = "x11"; then
10585 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10586 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10587 if test "${emacs_cv_x11_version_6+set}" = set; then
10588 echo $ECHO_N "(cached) $ECHO_C" >&6
10589 else
10590 cat >conftest.$ac_ext <<_ACEOF
10591 /* confdefs.h. */
10592 _ACEOF
10593 cat confdefs.h >>conftest.$ac_ext
10594 cat >>conftest.$ac_ext <<_ACEOF
10595 /* end confdefs.h. */
10596 #include <X11/Xlib.h>
10598 main ()
10600 #if XlibSpecificationRelease < 6
10601 fail;
10602 #endif
10605 return 0;
10607 _ACEOF
10608 rm -f conftest.$ac_objext conftest$ac_exeext
10609 if { (ac_try="$ac_link"
10610 case "(($ac_try" in
10611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10612 *) ac_try_echo=$ac_try;;
10613 esac
10614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10615 (eval "$ac_link") 2>conftest.er1
10616 ac_status=$?
10617 grep -v '^ *+' conftest.er1 >conftest.err
10618 rm -f conftest.er1
10619 cat conftest.err >&5
10620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621 (exit $ac_status); } && {
10622 test -z "$ac_c_werror_flag" ||
10623 test ! -s conftest.err
10624 } && test -s conftest$ac_exeext &&
10625 $as_test_x conftest$ac_exeext; then
10626 emacs_cv_x11_version_6=yes
10627 else
10628 echo "$as_me: failed program was:" >&5
10629 sed 's/^/| /' conftest.$ac_ext >&5
10631 emacs_cv_x11_version_6=no
10634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10635 conftest$ac_exeext conftest.$ac_ext
10638 if test $emacs_cv_x11_version_6 = yes; then
10639 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10640 echo "${ECHO_T}6 or newer" >&6; }
10642 cat >>confdefs.h <<\_ACEOF
10643 #define HAVE_X11R6 1
10644 _ACEOF
10646 else
10647 { echo "$as_me:$LINENO: result: before 6" >&5
10648 echo "${ECHO_T}before 6" >&6; }
10653 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10654 HAVE_RSVG=no
10655 if test "${HAVE_X11}" = "yes" || test "${HAVE_CARBON}" = "yes"; then
10656 if test "${with_rsvg}" != "no"; then
10657 RSVG_REQUIRED=2.0.0
10658 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10661 succeeded=no
10663 # Extract the first word of "pkg-config", so it can be a program name with args.
10664 set dummy pkg-config; ac_word=$2
10665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10667 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10668 echo $ECHO_N "(cached) $ECHO_C" >&6
10669 else
10670 case $PKG_CONFIG in
10671 [\\/]* | ?:[\\/]*)
10672 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10676 for as_dir in $PATH
10678 IFS=$as_save_IFS
10679 test -z "$as_dir" && as_dir=.
10680 for ac_exec_ext in '' $ac_executable_extensions; do
10681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10682 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10684 break 2
10686 done
10687 done
10688 IFS=$as_save_IFS
10690 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10692 esac
10694 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10695 if test -n "$PKG_CONFIG"; then
10696 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10697 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10698 else
10699 { echo "$as_me:$LINENO: result: no" >&5
10700 echo "${ECHO_T}no" >&6; }
10705 if test "$PKG_CONFIG" = "no" ; then
10707 else
10708 PKG_CONFIG_MIN_VERSION=0.9.0
10709 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10710 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10711 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10713 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10714 { echo "$as_me:$LINENO: result: yes" >&5
10715 echo "${ECHO_T}yes" >&6; }
10716 succeeded=yes
10718 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
10719 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
10720 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10721 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
10722 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10724 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
10725 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
10726 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10727 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
10728 echo "${ECHO_T}$RSVG_LIBS" >&6; }
10729 else
10730 { echo "$as_me:$LINENO: result: no" >&5
10731 echo "${ECHO_T}no" >&6; }
10732 RSVG_CFLAGS=""
10733 RSVG_LIBS=""
10734 ## If we have a custom action on failure, don't print errors, but
10735 ## do set a variable so people can do so.
10736 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10742 else
10743 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10744 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10748 if test $succeeded = yes; then
10750 else
10757 if test ".${RSVG_CFLAGS}" != "."; then
10758 HAVE_RSVG=yes
10760 cat >>confdefs.h <<\_ACEOF
10761 #define HAVE_RSVG 1
10762 _ACEOF
10764 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10765 LIBS="$RSVG_LIBS $LIBS"
10771 HAVE_GTK=no
10772 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10773 GLIB_REQUIRED=2.6
10774 GTK_REQUIRED=2.6
10775 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10778 succeeded=no
10780 # Extract the first word of "pkg-config", so it can be a program name with args.
10781 set dummy pkg-config; ac_word=$2
10782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10784 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10785 echo $ECHO_N "(cached) $ECHO_C" >&6
10786 else
10787 case $PKG_CONFIG in
10788 [\\/]* | ?:[\\/]*)
10789 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10793 for as_dir in $PATH
10795 IFS=$as_save_IFS
10796 test -z "$as_dir" && as_dir=.
10797 for ac_exec_ext in '' $ac_executable_extensions; do
10798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10799 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10801 break 2
10803 done
10804 done
10805 IFS=$as_save_IFS
10807 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10809 esac
10811 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10812 if test -n "$PKG_CONFIG"; then
10813 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10814 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10815 else
10816 { echo "$as_me:$LINENO: result: no" >&5
10817 echo "${ECHO_T}no" >&6; }
10822 if test "$PKG_CONFIG" = "no" ; then
10823 pkg_check_gtk=no
10824 else
10825 PKG_CONFIG_MIN_VERSION=0.9.0
10826 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10827 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10828 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10830 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10831 { echo "$as_me:$LINENO: result: yes" >&5
10832 echo "${ECHO_T}yes" >&6; }
10833 succeeded=yes
10835 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10836 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10837 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10838 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10839 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10841 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10842 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10843 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10844 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10845 echo "${ECHO_T}$GTK_LIBS" >&6; }
10846 else
10847 { echo "$as_me:$LINENO: result: no" >&5
10848 echo "${ECHO_T}no" >&6; }
10849 GTK_CFLAGS=""
10850 GTK_LIBS=""
10851 ## If we have a custom action on failure, don't print errors, but
10852 ## do set a variable so people can do so.
10853 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10859 else
10860 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10861 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10865 if test $succeeded = yes; then
10866 pkg_check_gtk=yes
10867 else
10868 pkg_check_gtk=no
10871 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10872 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
10873 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
10874 { (exit 1); exit 1; }; }
10879 if test x"$pkg_check_gtk" = xyes; then
10883 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10884 CFLAGS="$CFLAGS $GTK_CFLAGS"
10885 LIBS="$GTK_LIBS $LIBS"
10886 GTK_COMPILES=no
10888 for ac_func in gtk_main
10890 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10891 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10892 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10893 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10894 echo $ECHO_N "(cached) $ECHO_C" >&6
10895 else
10896 cat >conftest.$ac_ext <<_ACEOF
10897 /* confdefs.h. */
10898 _ACEOF
10899 cat confdefs.h >>conftest.$ac_ext
10900 cat >>conftest.$ac_ext <<_ACEOF
10901 /* end confdefs.h. */
10902 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10904 #define $ac_func innocuous_$ac_func
10906 /* System header to define __stub macros and hopefully few prototypes,
10907 which can conflict with char $ac_func (); below.
10908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10909 <limits.h> exists even on freestanding compilers. */
10911 #ifdef __STDC__
10912 # include <limits.h>
10913 #else
10914 # include <assert.h>
10915 #endif
10917 #undef $ac_func
10919 /* Override any GCC internal prototype to avoid an error.
10920 Use char because int might match the return type of a GCC
10921 builtin and then its argument prototype would still apply. */
10922 #ifdef __cplusplus
10923 extern "C"
10924 #endif
10925 char $ac_func ();
10926 /* The GNU C library defines this for functions which it implements
10927 to always fail with ENOSYS. Some functions are actually named
10928 something starting with __ and the normal name is an alias. */
10929 #if defined __stub_$ac_func || defined __stub___$ac_func
10930 choke me
10931 #endif
10934 main ()
10936 return $ac_func ();
10938 return 0;
10940 _ACEOF
10941 rm -f conftest.$ac_objext conftest$ac_exeext
10942 if { (ac_try="$ac_link"
10943 case "(($ac_try" in
10944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10945 *) ac_try_echo=$ac_try;;
10946 esac
10947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10948 (eval "$ac_link") 2>conftest.er1
10949 ac_status=$?
10950 grep -v '^ *+' conftest.er1 >conftest.err
10951 rm -f conftest.er1
10952 cat conftest.err >&5
10953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954 (exit $ac_status); } && {
10955 test -z "$ac_c_werror_flag" ||
10956 test ! -s conftest.err
10957 } && test -s conftest$ac_exeext &&
10958 $as_test_x conftest$ac_exeext; then
10959 eval "$as_ac_var=yes"
10960 else
10961 echo "$as_me: failed program was:" >&5
10962 sed 's/^/| /' conftest.$ac_ext >&5
10964 eval "$as_ac_var=no"
10967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10968 conftest$ac_exeext conftest.$ac_ext
10970 ac_res=`eval echo '${'$as_ac_var'}'`
10971 { echo "$as_me:$LINENO: result: $ac_res" >&5
10972 echo "${ECHO_T}$ac_res" >&6; }
10973 if test `eval echo '${'$as_ac_var'}'` = yes; then
10974 cat >>confdefs.h <<_ACEOF
10975 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10976 _ACEOF
10977 GTK_COMPILES=yes
10979 done
10981 if test "${GTK_COMPILES}" != "yes"; then
10982 if test "$USE_X_TOOLKIT" != "maybe"; then
10983 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
10984 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
10985 { (exit 1); exit 1; }; };
10987 else
10988 HAVE_GTK=yes
10990 cat >>confdefs.h <<\_ACEOF
10991 #define HAVE_GTK 1
10992 _ACEOF
10994 USE_X_TOOLKIT=none
11000 if test "${HAVE_GTK}" = "yes"; then
11002 if test "$with_toolkit_scroll_bars" != no; then
11003 with_toolkit_scroll_bars=yes
11006 HAVE_GTK_MULTIDISPLAY=no
11008 for ac_func in gdk_display_open
11010 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11011 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11012 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11013 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11014 echo $ECHO_N "(cached) $ECHO_C" >&6
11015 else
11016 cat >conftest.$ac_ext <<_ACEOF
11017 /* confdefs.h. */
11018 _ACEOF
11019 cat confdefs.h >>conftest.$ac_ext
11020 cat >>conftest.$ac_ext <<_ACEOF
11021 /* end confdefs.h. */
11022 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11023 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11024 #define $ac_func innocuous_$ac_func
11026 /* System header to define __stub macros and hopefully few prototypes,
11027 which can conflict with char $ac_func (); below.
11028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11029 <limits.h> exists even on freestanding compilers. */
11031 #ifdef __STDC__
11032 # include <limits.h>
11033 #else
11034 # include <assert.h>
11035 #endif
11037 #undef $ac_func
11039 /* Override any GCC internal prototype to avoid an error.
11040 Use char because int might match the return type of a GCC
11041 builtin and then its argument prototype would still apply. */
11042 #ifdef __cplusplus
11043 extern "C"
11044 #endif
11045 char $ac_func ();
11046 /* The GNU C library defines this for functions which it implements
11047 to always fail with ENOSYS. Some functions are actually named
11048 something starting with __ and the normal name is an alias. */
11049 #if defined __stub_$ac_func || defined __stub___$ac_func
11050 choke me
11051 #endif
11054 main ()
11056 return $ac_func ();
11058 return 0;
11060 _ACEOF
11061 rm -f conftest.$ac_objext conftest$ac_exeext
11062 if { (ac_try="$ac_link"
11063 case "(($ac_try" in
11064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11065 *) ac_try_echo=$ac_try;;
11066 esac
11067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11068 (eval "$ac_link") 2>conftest.er1
11069 ac_status=$?
11070 grep -v '^ *+' conftest.er1 >conftest.err
11071 rm -f conftest.er1
11072 cat conftest.err >&5
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); } && {
11075 test -z "$ac_c_werror_flag" ||
11076 test ! -s conftest.err
11077 } && test -s conftest$ac_exeext &&
11078 $as_test_x conftest$ac_exeext; then
11079 eval "$as_ac_var=yes"
11080 else
11081 echo "$as_me: failed program was:" >&5
11082 sed 's/^/| /' conftest.$ac_ext >&5
11084 eval "$as_ac_var=no"
11087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11088 conftest$ac_exeext conftest.$ac_ext
11090 ac_res=`eval echo '${'$as_ac_var'}'`
11091 { echo "$as_me:$LINENO: result: $ac_res" >&5
11092 echo "${ECHO_T}$ac_res" >&6; }
11093 if test `eval echo '${'$as_ac_var'}'` = yes; then
11094 cat >>confdefs.h <<_ACEOF
11095 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11096 _ACEOF
11097 HAVE_GTK_MULTIDISPLAY=yes
11099 done
11101 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11103 cat >>confdefs.h <<\_ACEOF
11104 #define HAVE_GTK_MULTIDISPLAY 1
11105 _ACEOF
11109 HAVE_GTK_FILE_SELECTION=no
11111 for ac_func in gtk_file_selection_new
11113 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11114 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11115 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11116 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11117 echo $ECHO_N "(cached) $ECHO_C" >&6
11118 else
11119 cat >conftest.$ac_ext <<_ACEOF
11120 /* confdefs.h. */
11121 _ACEOF
11122 cat confdefs.h >>conftest.$ac_ext
11123 cat >>conftest.$ac_ext <<_ACEOF
11124 /* end confdefs.h. */
11125 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11127 #define $ac_func innocuous_$ac_func
11129 /* System header to define __stub macros and hopefully few prototypes,
11130 which can conflict with char $ac_func (); below.
11131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11132 <limits.h> exists even on freestanding compilers. */
11134 #ifdef __STDC__
11135 # include <limits.h>
11136 #else
11137 # include <assert.h>
11138 #endif
11140 #undef $ac_func
11142 /* Override any GCC internal prototype to avoid an error.
11143 Use char because int might match the return type of a GCC
11144 builtin and then its argument prototype would still apply. */
11145 #ifdef __cplusplus
11146 extern "C"
11147 #endif
11148 char $ac_func ();
11149 /* The GNU C library defines this for functions which it implements
11150 to always fail with ENOSYS. Some functions are actually named
11151 something starting with __ and the normal name is an alias. */
11152 #if defined __stub_$ac_func || defined __stub___$ac_func
11153 choke me
11154 #endif
11157 main ()
11159 return $ac_func ();
11161 return 0;
11163 _ACEOF
11164 rm -f conftest.$ac_objext conftest$ac_exeext
11165 if { (ac_try="$ac_link"
11166 case "(($ac_try" in
11167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11168 *) ac_try_echo=$ac_try;;
11169 esac
11170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11171 (eval "$ac_link") 2>conftest.er1
11172 ac_status=$?
11173 grep -v '^ *+' conftest.er1 >conftest.err
11174 rm -f conftest.er1
11175 cat conftest.err >&5
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); } && {
11178 test -z "$ac_c_werror_flag" ||
11179 test ! -s conftest.err
11180 } && test -s conftest$ac_exeext &&
11181 $as_test_x conftest$ac_exeext; then
11182 eval "$as_ac_var=yes"
11183 else
11184 echo "$as_me: failed program was:" >&5
11185 sed 's/^/| /' conftest.$ac_ext >&5
11187 eval "$as_ac_var=no"
11190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11191 conftest$ac_exeext conftest.$ac_ext
11193 ac_res=`eval echo '${'$as_ac_var'}'`
11194 { echo "$as_me:$LINENO: result: $ac_res" >&5
11195 echo "${ECHO_T}$ac_res" >&6; }
11196 if test `eval echo '${'$as_ac_var'}'` = yes; then
11197 cat >>confdefs.h <<_ACEOF
11198 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11199 _ACEOF
11200 HAVE_GTK_FILE_SELECTION=yes
11202 done
11205 HAVE_GTK_FILE_CHOOSER=no
11207 for ac_func in gtk_file_chooser_dialog_new
11209 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11210 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11211 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11212 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11213 echo $ECHO_N "(cached) $ECHO_C" >&6
11214 else
11215 cat >conftest.$ac_ext <<_ACEOF
11216 /* confdefs.h. */
11217 _ACEOF
11218 cat confdefs.h >>conftest.$ac_ext
11219 cat >>conftest.$ac_ext <<_ACEOF
11220 /* end confdefs.h. */
11221 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11222 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11223 #define $ac_func innocuous_$ac_func
11225 /* System header to define __stub macros and hopefully few prototypes,
11226 which can conflict with char $ac_func (); below.
11227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11228 <limits.h> exists even on freestanding compilers. */
11230 #ifdef __STDC__
11231 # include <limits.h>
11232 #else
11233 # include <assert.h>
11234 #endif
11236 #undef $ac_func
11238 /* Override any GCC internal prototype to avoid an error.
11239 Use char because int might match the return type of a GCC
11240 builtin and then its argument prototype would still apply. */
11241 #ifdef __cplusplus
11242 extern "C"
11243 #endif
11244 char $ac_func ();
11245 /* The GNU C library defines this for functions which it implements
11246 to always fail with ENOSYS. Some functions are actually named
11247 something starting with __ and the normal name is an alias. */
11248 #if defined __stub_$ac_func || defined __stub___$ac_func
11249 choke me
11250 #endif
11253 main ()
11255 return $ac_func ();
11257 return 0;
11259 _ACEOF
11260 rm -f conftest.$ac_objext conftest$ac_exeext
11261 if { (ac_try="$ac_link"
11262 case "(($ac_try" in
11263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11264 *) ac_try_echo=$ac_try;;
11265 esac
11266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11267 (eval "$ac_link") 2>conftest.er1
11268 ac_status=$?
11269 grep -v '^ *+' conftest.er1 >conftest.err
11270 rm -f conftest.er1
11271 cat conftest.err >&5
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); } && {
11274 test -z "$ac_c_werror_flag" ||
11275 test ! -s conftest.err
11276 } && test -s conftest$ac_exeext &&
11277 $as_test_x conftest$ac_exeext; then
11278 eval "$as_ac_var=yes"
11279 else
11280 echo "$as_me: failed program was:" >&5
11281 sed 's/^/| /' conftest.$ac_ext >&5
11283 eval "$as_ac_var=no"
11286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11287 conftest$ac_exeext conftest.$ac_ext
11289 ac_res=`eval echo '${'$as_ac_var'}'`
11290 { echo "$as_me:$LINENO: result: $ac_res" >&5
11291 echo "${ECHO_T}$ac_res" >&6; }
11292 if test `eval echo '${'$as_ac_var'}'` = yes; then
11293 cat >>confdefs.h <<_ACEOF
11294 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11295 _ACEOF
11296 HAVE_GTK_FILE_CHOOSER=yes
11298 done
11301 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11302 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11304 cat >>confdefs.h <<\_ACEOF
11305 #define HAVE_GTK_FILE_BOTH 1
11306 _ACEOF
11310 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11311 HAVE_GTK_AND_PTHREAD=no
11313 for ac_header in pthread.h
11315 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11317 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11320 echo $ECHO_N "(cached) $ECHO_C" >&6
11322 ac_res=`eval echo '${'$as_ac_Header'}'`
11323 { echo "$as_me:$LINENO: result: $ac_res" >&5
11324 echo "${ECHO_T}$ac_res" >&6; }
11325 else
11326 # Is the header compilable?
11327 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11328 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11329 cat >conftest.$ac_ext <<_ACEOF
11330 /* confdefs.h. */
11331 _ACEOF
11332 cat confdefs.h >>conftest.$ac_ext
11333 cat >>conftest.$ac_ext <<_ACEOF
11334 /* end confdefs.h. */
11335 $ac_includes_default
11336 #include <$ac_header>
11337 _ACEOF
11338 rm -f conftest.$ac_objext
11339 if { (ac_try="$ac_compile"
11340 case "(($ac_try" in
11341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11342 *) ac_try_echo=$ac_try;;
11343 esac
11344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11345 (eval "$ac_compile") 2>conftest.er1
11346 ac_status=$?
11347 grep -v '^ *+' conftest.er1 >conftest.err
11348 rm -f conftest.er1
11349 cat conftest.err >&5
11350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351 (exit $ac_status); } && {
11352 test -z "$ac_c_werror_flag" ||
11353 test ! -s conftest.err
11354 } && test -s conftest.$ac_objext; then
11355 ac_header_compiler=yes
11356 else
11357 echo "$as_me: failed program was:" >&5
11358 sed 's/^/| /' conftest.$ac_ext >&5
11360 ac_header_compiler=no
11363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11364 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11365 echo "${ECHO_T}$ac_header_compiler" >&6; }
11367 # Is the header present?
11368 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11369 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11370 cat >conftest.$ac_ext <<_ACEOF
11371 /* confdefs.h. */
11372 _ACEOF
11373 cat confdefs.h >>conftest.$ac_ext
11374 cat >>conftest.$ac_ext <<_ACEOF
11375 /* end confdefs.h. */
11376 #include <$ac_header>
11377 _ACEOF
11378 if { (ac_try="$ac_cpp conftest.$ac_ext"
11379 case "(($ac_try" in
11380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11381 *) ac_try_echo=$ac_try;;
11382 esac
11383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11384 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11385 ac_status=$?
11386 grep -v '^ *+' conftest.er1 >conftest.err
11387 rm -f conftest.er1
11388 cat conftest.err >&5
11389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390 (exit $ac_status); } >/dev/null && {
11391 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11392 test ! -s conftest.err
11393 }; then
11394 ac_header_preproc=yes
11395 else
11396 echo "$as_me: failed program was:" >&5
11397 sed 's/^/| /' conftest.$ac_ext >&5
11399 ac_header_preproc=no
11402 rm -f conftest.err conftest.$ac_ext
11403 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11404 echo "${ECHO_T}$ac_header_preproc" >&6; }
11406 # So? What about this header?
11407 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11408 yes:no: )
11409 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11410 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11411 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11412 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11413 ac_header_preproc=yes
11415 no:yes:* )
11416 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11417 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11418 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11419 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11420 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11421 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11422 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11423 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11425 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11426 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11427 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11430 esac
11431 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11433 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11434 echo $ECHO_N "(cached) $ECHO_C" >&6
11435 else
11436 eval "$as_ac_Header=\$ac_header_preproc"
11438 ac_res=`eval echo '${'$as_ac_Header'}'`
11439 { echo "$as_me:$LINENO: result: $ac_res" >&5
11440 echo "${ECHO_T}$ac_res" >&6; }
11443 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11444 cat >>confdefs.h <<_ACEOF
11445 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11446 _ACEOF
11450 done
11452 if test "$ac_cv_header_pthread_h"; then
11453 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11454 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11455 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11456 echo $ECHO_N "(cached) $ECHO_C" >&6
11457 else
11458 ac_check_lib_save_LIBS=$LIBS
11459 LIBS="-lpthread $LIBS"
11460 cat >conftest.$ac_ext <<_ACEOF
11461 /* confdefs.h. */
11462 _ACEOF
11463 cat confdefs.h >>conftest.$ac_ext
11464 cat >>conftest.$ac_ext <<_ACEOF
11465 /* end confdefs.h. */
11467 /* Override any GCC internal prototype to avoid an error.
11468 Use char because int might match the return type of a GCC
11469 builtin and then its argument prototype would still apply. */
11470 #ifdef __cplusplus
11471 extern "C"
11472 #endif
11473 char pthread_self ();
11475 main ()
11477 return pthread_self ();
11479 return 0;
11481 _ACEOF
11482 rm -f conftest.$ac_objext conftest$ac_exeext
11483 if { (ac_try="$ac_link"
11484 case "(($ac_try" in
11485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11486 *) ac_try_echo=$ac_try;;
11487 esac
11488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11489 (eval "$ac_link") 2>conftest.er1
11490 ac_status=$?
11491 grep -v '^ *+' conftest.er1 >conftest.err
11492 rm -f conftest.er1
11493 cat conftest.err >&5
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); } && {
11496 test -z "$ac_c_werror_flag" ||
11497 test ! -s conftest.err
11498 } && test -s conftest$ac_exeext &&
11499 $as_test_x conftest$ac_exeext; then
11500 ac_cv_lib_pthread_pthread_self=yes
11501 else
11502 echo "$as_me: failed program was:" >&5
11503 sed 's/^/| /' conftest.$ac_ext >&5
11505 ac_cv_lib_pthread_pthread_self=no
11508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11509 conftest$ac_exeext conftest.$ac_ext
11510 LIBS=$ac_check_lib_save_LIBS
11512 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11513 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11514 if test $ac_cv_lib_pthread_pthread_self = yes; then
11515 HAVE_GTK_AND_PTHREAD=yes
11519 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11520 case "${canonical}" in
11521 *-hpux*) ;;
11522 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11523 esac
11525 cat >>confdefs.h <<\_ACEOF
11526 #define HAVE_GTK_AND_PTHREAD 1
11527 _ACEOF
11533 HAVE_DBUS=no
11534 if test "${with_dbus}" = "yes"; then
11536 succeeded=no
11538 # Extract the first word of "pkg-config", so it can be a program name with args.
11539 set dummy pkg-config; ac_word=$2
11540 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11542 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11543 echo $ECHO_N "(cached) $ECHO_C" >&6
11544 else
11545 case $PKG_CONFIG in
11546 [\\/]* | ?:[\\/]*)
11547 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11551 for as_dir in $PATH
11553 IFS=$as_save_IFS
11554 test -z "$as_dir" && as_dir=.
11555 for ac_exec_ext in '' $ac_executable_extensions; do
11556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11557 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11559 break 2
11561 done
11562 done
11563 IFS=$as_save_IFS
11565 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11567 esac
11569 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11570 if test -n "$PKG_CONFIG"; then
11571 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11572 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11573 else
11574 { echo "$as_me:$LINENO: result: no" >&5
11575 echo "${ECHO_T}no" >&6; }
11580 if test "$PKG_CONFIG" = "no" ; then
11581 HAVE_DBUS=no
11582 else
11583 PKG_CONFIG_MIN_VERSION=0.9.0
11584 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11585 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11586 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11588 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11589 { echo "$as_me:$LINENO: result: yes" >&5
11590 echo "${ECHO_T}yes" >&6; }
11591 succeeded=yes
11593 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11594 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11595 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11596 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11597 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11599 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11600 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11601 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11602 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11603 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11604 else
11605 { echo "$as_me:$LINENO: result: no" >&5
11606 echo "${ECHO_T}no" >&6; }
11607 DBUS_CFLAGS=""
11608 DBUS_LIBS=""
11609 ## If we have a custom action on failure, don't print errors, but
11610 ## do set a variable so people can do so.
11611 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11617 else
11618 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11619 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11623 if test $succeeded = yes; then
11624 HAVE_DBUS=yes
11625 else
11626 HAVE_DBUS=no
11629 if test "$HAVE_DBUS" = yes; then
11631 cat >>confdefs.h <<\_ACEOF
11632 #define HAVE_DBUS 1
11633 _ACEOF
11638 HAVE_XAW3D=no
11639 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11640 if test "$with_xaw3d" != no; then
11641 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11642 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11643 if test "${emacs_cv_xaw3d+set}" = set; then
11644 echo $ECHO_N "(cached) $ECHO_C" >&6
11645 else
11646 cat >conftest.$ac_ext <<_ACEOF
11647 /* confdefs.h. */
11648 _ACEOF
11649 cat confdefs.h >>conftest.$ac_ext
11650 cat >>conftest.$ac_ext <<_ACEOF
11651 /* end confdefs.h. */
11653 #include <X11/Intrinsic.h>
11654 #include <X11/Xaw3d/Simple.h>
11656 main ()
11660 return 0;
11662 _ACEOF
11663 rm -f conftest.$ac_objext conftest$ac_exeext
11664 if { (ac_try="$ac_link"
11665 case "(($ac_try" in
11666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11667 *) ac_try_echo=$ac_try;;
11668 esac
11669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11670 (eval "$ac_link") 2>conftest.er1
11671 ac_status=$?
11672 grep -v '^ *+' conftest.er1 >conftest.err
11673 rm -f conftest.er1
11674 cat conftest.err >&5
11675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 (exit $ac_status); } && {
11677 test -z "$ac_c_werror_flag" ||
11678 test ! -s conftest.err
11679 } && test -s conftest$ac_exeext &&
11680 $as_test_x conftest$ac_exeext; then
11681 emacs_cv_xaw3d=yes
11682 else
11683 echo "$as_me: failed program was:" >&5
11684 sed 's/^/| /' conftest.$ac_ext >&5
11686 emacs_cv_xaw3d=no
11689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11690 conftest$ac_exeext conftest.$ac_ext
11693 else
11694 emacs_cv_xaw3d=no
11696 if test $emacs_cv_xaw3d = yes; then
11697 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11698 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11699 USE_X_TOOLKIT=LUCID
11700 HAVE_XAW3D=yes
11702 cat >>confdefs.h <<\_ACEOF
11703 #define HAVE_XAW3D 1
11704 _ACEOF
11706 else
11707 { echo "$as_me:$LINENO: result: no" >&5
11708 echo "${ECHO_T}no" >&6; }
11709 { echo "$as_me:$LINENO: checking for libXaw" >&5
11710 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
11711 if test "${emacs_cv_xaw+set}" = set; then
11712 echo $ECHO_N "(cached) $ECHO_C" >&6
11713 else
11714 cat >conftest.$ac_ext <<_ACEOF
11715 /* confdefs.h. */
11716 _ACEOF
11717 cat confdefs.h >>conftest.$ac_ext
11718 cat >>conftest.$ac_ext <<_ACEOF
11719 /* end confdefs.h. */
11721 #include <X11/Intrinsic.h>
11722 #include <X11/Xaw/Simple.h>
11724 main ()
11728 return 0;
11730 _ACEOF
11731 rm -f conftest.$ac_objext conftest$ac_exeext
11732 if { (ac_try="$ac_link"
11733 case "(($ac_try" in
11734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11735 *) ac_try_echo=$ac_try;;
11736 esac
11737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11738 (eval "$ac_link") 2>conftest.er1
11739 ac_status=$?
11740 grep -v '^ *+' conftest.er1 >conftest.err
11741 rm -f conftest.er1
11742 cat conftest.err >&5
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); } && {
11745 test -z "$ac_c_werror_flag" ||
11746 test ! -s conftest.err
11747 } && test -s conftest$ac_exeext &&
11748 $as_test_x conftest$ac_exeext; then
11749 emacs_cv_xaw=yes
11750 else
11751 echo "$as_me: failed program was:" >&5
11752 sed 's/^/| /' conftest.$ac_ext >&5
11754 emacs_cv_xaw=no
11757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11758 conftest$ac_exeext conftest.$ac_ext
11761 if test $emacs_cv_xaw = yes; then
11762 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11763 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11764 USE_X_TOOLKIT=LUCID
11765 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11766 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
11767 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
11768 { (exit 1); exit 1; }; }
11769 else
11770 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
11771 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
11772 USE_X_TOOLKIT=none
11777 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11779 if test "${USE_X_TOOLKIT}" != "none"; then
11780 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11781 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11782 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11783 echo $ECHO_N "(cached) $ECHO_C" >&6
11784 else
11785 cat >conftest.$ac_ext <<_ACEOF
11786 /* confdefs.h. */
11787 _ACEOF
11788 cat confdefs.h >>conftest.$ac_ext
11789 cat >>conftest.$ac_ext <<_ACEOF
11790 /* end confdefs.h. */
11791 #include <X11/Intrinsic.h>
11793 main ()
11795 #if XtSpecificationRelease < 6
11796 fail;
11797 #endif
11800 return 0;
11802 _ACEOF
11803 rm -f conftest.$ac_objext conftest$ac_exeext
11804 if { (ac_try="$ac_link"
11805 case "(($ac_try" in
11806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11807 *) ac_try_echo=$ac_try;;
11808 esac
11809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11810 (eval "$ac_link") 2>conftest.er1
11811 ac_status=$?
11812 grep -v '^ *+' conftest.er1 >conftest.err
11813 rm -f conftest.er1
11814 cat conftest.err >&5
11815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816 (exit $ac_status); } && {
11817 test -z "$ac_c_werror_flag" ||
11818 test ! -s conftest.err
11819 } && test -s conftest$ac_exeext &&
11820 $as_test_x conftest$ac_exeext; then
11821 emacs_cv_x11_toolkit_version_6=yes
11822 else
11823 echo "$as_me: failed program was:" >&5
11824 sed 's/^/| /' conftest.$ac_ext >&5
11826 emacs_cv_x11_toolkit_version_6=no
11829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11830 conftest$ac_exeext conftest.$ac_ext
11833 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11834 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11835 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11836 echo "${ECHO_T}6 or newer" >&6; }
11838 cat >>confdefs.h <<\_ACEOF
11839 #define HAVE_X11XTR6 1
11840 _ACEOF
11842 else
11843 { echo "$as_me:$LINENO: result: before 6" >&5
11844 echo "${ECHO_T}before 6" >&6; }
11847 OLDLIBS="$LIBS"
11848 if test x$HAVE_X11XTR6 = xyes; then
11849 LIBS="-lXt -lSM -lICE $LIBS"
11850 else
11851 LIBS="-lXt $LIBS"
11854 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11855 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
11856 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11857 echo $ECHO_N "(cached) $ECHO_C" >&6
11858 else
11859 ac_check_lib_save_LIBS=$LIBS
11860 LIBS="-lXmu $LIBS"
11861 cat >conftest.$ac_ext <<_ACEOF
11862 /* confdefs.h. */
11863 _ACEOF
11864 cat confdefs.h >>conftest.$ac_ext
11865 cat >>conftest.$ac_ext <<_ACEOF
11866 /* end confdefs.h. */
11868 /* Override any GCC internal prototype to avoid an error.
11869 Use char because int might match the return type of a GCC
11870 builtin and then its argument prototype would still apply. */
11871 #ifdef __cplusplus
11872 extern "C"
11873 #endif
11874 char XmuConvertStandardSelection ();
11876 main ()
11878 return XmuConvertStandardSelection ();
11880 return 0;
11882 _ACEOF
11883 rm -f conftest.$ac_objext conftest$ac_exeext
11884 if { (ac_try="$ac_link"
11885 case "(($ac_try" in
11886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11887 *) ac_try_echo=$ac_try;;
11888 esac
11889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11890 (eval "$ac_link") 2>conftest.er1
11891 ac_status=$?
11892 grep -v '^ *+' conftest.er1 >conftest.err
11893 rm -f conftest.er1
11894 cat conftest.err >&5
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); } && {
11897 test -z "$ac_c_werror_flag" ||
11898 test ! -s conftest.err
11899 } && test -s conftest$ac_exeext &&
11900 $as_test_x conftest$ac_exeext; then
11901 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11902 else
11903 echo "$as_me: failed program was:" >&5
11904 sed 's/^/| /' conftest.$ac_ext >&5
11906 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11910 conftest$ac_exeext conftest.$ac_ext
11911 LIBS=$ac_check_lib_save_LIBS
11913 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11914 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11915 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11916 cat >>confdefs.h <<_ACEOF
11917 #define HAVE_LIBXMU 1
11918 _ACEOF
11920 LIBS="-lXmu $LIBS"
11924 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11927 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11928 if test "${HAVE_X11}" = "yes"; then
11929 if test "${USE_X_TOOLKIT}" != "none"; then
11931 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11932 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
11933 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11934 echo $ECHO_N "(cached) $ECHO_C" >&6
11935 else
11936 ac_check_lib_save_LIBS=$LIBS
11937 LIBS="-lXext $LIBS"
11938 cat >conftest.$ac_ext <<_ACEOF
11939 /* confdefs.h. */
11940 _ACEOF
11941 cat confdefs.h >>conftest.$ac_ext
11942 cat >>conftest.$ac_ext <<_ACEOF
11943 /* end confdefs.h. */
11945 /* Override any GCC internal prototype to avoid an error.
11946 Use char because int might match the return type of a GCC
11947 builtin and then its argument prototype would still apply. */
11948 #ifdef __cplusplus
11949 extern "C"
11950 #endif
11951 char XShapeQueryExtension ();
11953 main ()
11955 return XShapeQueryExtension ();
11957 return 0;
11959 _ACEOF
11960 rm -f conftest.$ac_objext conftest$ac_exeext
11961 if { (ac_try="$ac_link"
11962 case "(($ac_try" in
11963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11964 *) ac_try_echo=$ac_try;;
11965 esac
11966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11967 (eval "$ac_link") 2>conftest.er1
11968 ac_status=$?
11969 grep -v '^ *+' conftest.er1 >conftest.err
11970 rm -f conftest.er1
11971 cat conftest.err >&5
11972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973 (exit $ac_status); } && {
11974 test -z "$ac_c_werror_flag" ||
11975 test ! -s conftest.err
11976 } && test -s conftest$ac_exeext &&
11977 $as_test_x conftest$ac_exeext; then
11978 ac_cv_lib_Xext_XShapeQueryExtension=yes
11979 else
11980 echo "$as_me: failed program was:" >&5
11981 sed 's/^/| /' conftest.$ac_ext >&5
11983 ac_cv_lib_Xext_XShapeQueryExtension=no
11986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11987 conftest$ac_exeext conftest.$ac_ext
11988 LIBS=$ac_check_lib_save_LIBS
11990 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11991 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11992 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
11993 cat >>confdefs.h <<_ACEOF
11994 #define HAVE_LIBXEXT 1
11995 _ACEOF
11997 LIBS="-lXext $LIBS"
12004 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12005 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12006 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12007 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12008 echo $ECHO_N "(cached) $ECHO_C" >&6
12009 else
12010 cat >conftest.$ac_ext <<_ACEOF
12011 /* confdefs.h. */
12012 _ACEOF
12013 cat confdefs.h >>conftest.$ac_ext
12014 cat >>conftest.$ac_ext <<_ACEOF
12015 /* end confdefs.h. */
12016 #include <Xm/Xm.h>
12018 main ()
12020 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12021 int x = 5;
12022 #else
12023 Motif version prior to 2.1.
12024 #endif
12026 return 0;
12028 _ACEOF
12029 rm -f conftest.$ac_objext
12030 if { (ac_try="$ac_compile"
12031 case "(($ac_try" in
12032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12033 *) ac_try_echo=$ac_try;;
12034 esac
12035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12036 (eval "$ac_compile") 2>conftest.er1
12037 ac_status=$?
12038 grep -v '^ *+' conftest.er1 >conftest.err
12039 rm -f conftest.er1
12040 cat conftest.err >&5
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); } && {
12043 test -z "$ac_c_werror_flag" ||
12044 test ! -s conftest.err
12045 } && test -s conftest.$ac_objext; then
12046 emacs_cv_motif_version_2_1=yes
12047 else
12048 echo "$as_me: failed program was:" >&5
12049 sed 's/^/| /' conftest.$ac_ext >&5
12051 emacs_cv_motif_version_2_1=no
12054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12056 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12057 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12058 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12059 if test $emacs_cv_motif_version_2_1 = yes; then
12060 HAVE_LIBXP=no
12062 cat >>confdefs.h <<\_ACEOF
12063 #define HAVE_MOTIF_2_1 1
12064 _ACEOF
12066 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12067 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12068 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12069 echo $ECHO_N "(cached) $ECHO_C" >&6
12070 else
12071 ac_check_lib_save_LIBS=$LIBS
12072 LIBS="-lXp $LIBS"
12073 cat >conftest.$ac_ext <<_ACEOF
12074 /* confdefs.h. */
12075 _ACEOF
12076 cat confdefs.h >>conftest.$ac_ext
12077 cat >>conftest.$ac_ext <<_ACEOF
12078 /* end confdefs.h. */
12080 /* Override any GCC internal prototype to avoid an error.
12081 Use char because int might match the return type of a GCC
12082 builtin and then its argument prototype would still apply. */
12083 #ifdef __cplusplus
12084 extern "C"
12085 #endif
12086 char XpCreateContext ();
12088 main ()
12090 return XpCreateContext ();
12092 return 0;
12094 _ACEOF
12095 rm -f conftest.$ac_objext conftest$ac_exeext
12096 if { (ac_try="$ac_link"
12097 case "(($ac_try" in
12098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12099 *) ac_try_echo=$ac_try;;
12100 esac
12101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12102 (eval "$ac_link") 2>conftest.er1
12103 ac_status=$?
12104 grep -v '^ *+' conftest.er1 >conftest.err
12105 rm -f conftest.er1
12106 cat conftest.err >&5
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); } && {
12109 test -z "$ac_c_werror_flag" ||
12110 test ! -s conftest.err
12111 } && test -s conftest$ac_exeext &&
12112 $as_test_x conftest$ac_exeext; then
12113 ac_cv_lib_Xp_XpCreateContext=yes
12114 else
12115 echo "$as_me: failed program was:" >&5
12116 sed 's/^/| /' conftest.$ac_ext >&5
12118 ac_cv_lib_Xp_XpCreateContext=no
12121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12122 conftest$ac_exeext conftest.$ac_ext
12123 LIBS=$ac_check_lib_save_LIBS
12125 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12126 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12127 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12128 HAVE_LIBXP=yes
12131 if test ${HAVE_LIBXP} = yes; then
12133 cat >>confdefs.h <<\_ACEOF
12134 #define HAVE_LIBXP 1
12135 _ACEOF
12138 else
12139 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12140 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12141 if test "${emacs_cv_lesstif+set}" = set; then
12142 echo $ECHO_N "(cached) $ECHO_C" >&6
12143 else
12144 # We put this in CFLAGS temporarily to precede other -I options
12145 # that might be in CFLAGS temporarily.
12146 # We put this in CPPFLAGS where it precedes the other -I options.
12147 OLD_CPPFLAGS=$CPPFLAGS
12148 OLD_CFLAGS=$CFLAGS
12149 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12150 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12151 cat >conftest.$ac_ext <<_ACEOF
12152 /* confdefs.h. */
12153 _ACEOF
12154 cat confdefs.h >>conftest.$ac_ext
12155 cat >>conftest.$ac_ext <<_ACEOF
12156 /* end confdefs.h. */
12157 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12159 main ()
12161 int x = 5;
12163 return 0;
12165 _ACEOF
12166 rm -f conftest.$ac_objext
12167 if { (ac_try="$ac_compile"
12168 case "(($ac_try" in
12169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12170 *) ac_try_echo=$ac_try;;
12171 esac
12172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12173 (eval "$ac_compile") 2>conftest.er1
12174 ac_status=$?
12175 grep -v '^ *+' conftest.er1 >conftest.err
12176 rm -f conftest.er1
12177 cat conftest.err >&5
12178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179 (exit $ac_status); } && {
12180 test -z "$ac_c_werror_flag" ||
12181 test ! -s conftest.err
12182 } && test -s conftest.$ac_objext; then
12183 emacs_cv_lesstif=yes
12184 else
12185 echo "$as_me: failed program was:" >&5
12186 sed 's/^/| /' conftest.$ac_ext >&5
12188 emacs_cv_lesstif=no
12191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12193 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12194 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12195 if test $emacs_cv_lesstif = yes; then
12196 # Make sure this -I option remains in CPPFLAGS after it is set
12197 # back to REAL_CPPFLAGS.
12198 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12199 # have those other -I options anyway. Ultimately, having this
12200 # directory ultimately in CPPFLAGS will be enough.
12201 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12202 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12203 else
12204 CFLAGS=$OLD_CFLAGS
12205 CPPFLAGS=$OLD_CPPFLAGS
12212 USE_TOOLKIT_SCROLL_BARS=no
12213 if test "${with_toolkit_scroll_bars}" != "no"; then
12214 if test "${USE_X_TOOLKIT}" != "none"; then
12215 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12216 cat >>confdefs.h <<\_ACEOF
12217 #define USE_TOOLKIT_SCROLL_BARS 1
12218 _ACEOF
12220 HAVE_XAW3D=no
12221 USE_TOOLKIT_SCROLL_BARS=yes
12222 elif test "${HAVE_XAW3D}" = "yes"; then
12223 cat >>confdefs.h <<\_ACEOF
12224 #define USE_TOOLKIT_SCROLL_BARS 1
12225 _ACEOF
12227 USE_TOOLKIT_SCROLL_BARS=yes
12229 elif test "${HAVE_GTK}" = "yes"; then
12230 cat >>confdefs.h <<\_ACEOF
12231 #define USE_TOOLKIT_SCROLL_BARS 1
12232 _ACEOF
12234 USE_TOOLKIT_SCROLL_BARS=yes
12235 elif test "${HAVE_CARBON}" = "yes"; then
12236 cat >>confdefs.h <<\_ACEOF
12237 #define USE_TOOLKIT_SCROLL_BARS 1
12238 _ACEOF
12240 USE_TOOLKIT_SCROLL_BARS=yes
12244 cat >conftest.$ac_ext <<_ACEOF
12245 /* confdefs.h. */
12246 _ACEOF
12247 cat confdefs.h >>conftest.$ac_ext
12248 cat >>conftest.$ac_ext <<_ACEOF
12249 /* end confdefs.h. */
12251 #include <X11/Xlib.h>
12252 #include <X11/Xresource.h>
12254 main ()
12256 XIMProc callback;
12258 return 0;
12260 _ACEOF
12261 rm -f conftest.$ac_objext
12262 if { (ac_try="$ac_compile"
12263 case "(($ac_try" in
12264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12265 *) ac_try_echo=$ac_try;;
12266 esac
12267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12268 (eval "$ac_compile") 2>conftest.er1
12269 ac_status=$?
12270 grep -v '^ *+' conftest.er1 >conftest.err
12271 rm -f conftest.er1
12272 cat conftest.err >&5
12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 (exit $ac_status); } && {
12275 test -z "$ac_c_werror_flag" ||
12276 test ! -s conftest.err
12277 } && test -s conftest.$ac_objext; then
12278 HAVE_XIM=yes
12280 cat >>confdefs.h <<\_ACEOF
12281 #define HAVE_XIM 1
12282 _ACEOF
12284 else
12285 echo "$as_me: failed program was:" >&5
12286 sed 's/^/| /' conftest.$ac_ext >&5
12288 HAVE_XIM=no
12291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12294 if test "${with_xim}" != "no"; then
12296 cat >>confdefs.h <<\_ACEOF
12297 #define USE_XIM 1
12298 _ACEOF
12303 if test "${HAVE_XIM}" != "no"; then
12304 late_CFLAGS=$CFLAGS
12305 if test "$GCC" = yes; then
12306 CFLAGS="$CFLAGS --pedantic-errors"
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 #include <X11/Xlib.h>
12316 #include <X11/Xresource.h>
12318 main ()
12320 Display *display;
12321 XrmDatabase db;
12322 char *res_name;
12323 char *res_class;
12324 XIMProc callback;
12325 XPointer *client_data;
12326 #ifndef __GNUC__
12327 /* If we're not using GCC, it's probably not XFree86, and this is
12328 probably right, but we can't use something like --pedantic-errors. */
12329 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12330 char*, XIMProc, XPointer*);
12331 #endif
12332 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12333 client_data);
12335 return 0;
12337 _ACEOF
12338 rm -f conftest.$ac_objext
12339 if { (ac_try="$ac_compile"
12340 case "(($ac_try" in
12341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12342 *) ac_try_echo=$ac_try;;
12343 esac
12344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12345 (eval "$ac_compile") 2>conftest.er1
12346 ac_status=$?
12347 grep -v '^ *+' conftest.er1 >conftest.err
12348 rm -f conftest.er1
12349 cat conftest.err >&5
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); } && {
12352 test -z "$ac_c_werror_flag" ||
12353 test ! -s conftest.err
12354 } && test -s conftest.$ac_objext; then
12355 emacs_cv_arg6_star=yes
12356 else
12357 echo "$as_me: failed program was:" >&5
12358 sed 's/^/| /' conftest.$ac_ext >&5
12363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12365 if test "$emacs_cv_arg6_star" = yes; then
12366 cat >>confdefs.h <<\_ACEOF
12367 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12368 _ACEOF
12370 else
12371 cat >>confdefs.h <<\_ACEOF
12372 #define XRegisterIMInstantiateCallback_arg6 XPointer
12373 _ACEOF
12376 CFLAGS=$late_CFLAGS
12379 #### For font-backend
12380 if test "${USE_FONT_BACKEND}" = "yes"; then
12383 cat >>confdefs.h <<\_ACEOF
12384 #define USE_FONT_BACKEND 1
12385 _ACEOF
12388 ### Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
12389 HAVE_XFT=maybe
12390 if test "${HAVE_X11}" = "yes"; then
12391 if test "x${with_freetype}" = "xno"; then
12392 with_xft="no";
12394 if test "x${with_xft}" != "xno"; then
12396 if test "X${with_pkg_config_prog}" != X; then
12397 PKG_CONFIG="${with_pkg_config_prog}"
12401 succeeded=no
12403 # Extract the first word of "pkg-config", so it can be a program name with args.
12404 set dummy pkg-config; ac_word=$2
12405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12407 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12408 echo $ECHO_N "(cached) $ECHO_C" >&6
12409 else
12410 case $PKG_CONFIG in
12411 [\\/]* | ?:[\\/]*)
12412 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12416 for as_dir in $PATH
12418 IFS=$as_save_IFS
12419 test -z "$as_dir" && as_dir=.
12420 for ac_exec_ext in '' $ac_executable_extensions; do
12421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12422 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12424 break 2
12426 done
12427 done
12428 IFS=$as_save_IFS
12430 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12432 esac
12434 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12435 if test -n "$PKG_CONFIG"; then
12436 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12437 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12438 else
12439 { echo "$as_me:$LINENO: result: no" >&5
12440 echo "${ECHO_T}no" >&6; }
12445 if test "$PKG_CONFIG" = "no" ; then
12446 HAVE_XFT=no
12447 else
12448 PKG_CONFIG_MIN_VERSION=0.9.0
12449 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12450 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12451 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12453 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12454 { echo "$as_me:$LINENO: result: yes" >&5
12455 echo "${ECHO_T}yes" >&6; }
12456 succeeded=yes
12458 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12459 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12460 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12461 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12462 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12464 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12465 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12466 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12467 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12468 echo "${ECHO_T}$XFT_LIBS" >&6; }
12469 else
12470 { echo "$as_me:$LINENO: result: no" >&5
12471 echo "${ECHO_T}no" >&6; }
12472 XFT_CFLAGS=""
12473 XFT_LIBS=""
12474 ## If we have a custom action on failure, don't print errors, but
12475 ## do set a variable so people can do so.
12476 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12482 else
12483 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12484 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12488 if test $succeeded = yes; then
12490 else
12491 HAVE_XFT=no
12494 if test "$HAVE_XFT" != no; then
12495 OLD_CPPFLAGS="$CPPFLAGS"
12496 OLD_CFLAGS="$CFLAGS"
12497 OLD_LIBS="$LIBS"
12498 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12499 CFLAGS="$CFLAGS $XFT_CFLAGS"
12500 LIBS="$XFT_LIBS $LIBS"
12501 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12502 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12503 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12504 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12505 echo $ECHO_N "(cached) $ECHO_C" >&6
12507 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12508 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12509 else
12510 # Is the header compilable?
12511 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12512 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12513 cat >conftest.$ac_ext <<_ACEOF
12514 /* confdefs.h. */
12515 _ACEOF
12516 cat confdefs.h >>conftest.$ac_ext
12517 cat >>conftest.$ac_ext <<_ACEOF
12518 /* end confdefs.h. */
12519 $ac_includes_default
12520 #include <X11/Xft/Xft.h>
12521 _ACEOF
12522 rm -f conftest.$ac_objext
12523 if { (ac_try="$ac_compile"
12524 case "(($ac_try" in
12525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12526 *) ac_try_echo=$ac_try;;
12527 esac
12528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12529 (eval "$ac_compile") 2>conftest.er1
12530 ac_status=$?
12531 grep -v '^ *+' conftest.er1 >conftest.err
12532 rm -f conftest.er1
12533 cat conftest.err >&5
12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535 (exit $ac_status); } && {
12536 test -z "$ac_c_werror_flag" ||
12537 test ! -s conftest.err
12538 } && test -s conftest.$ac_objext; then
12539 ac_header_compiler=yes
12540 else
12541 echo "$as_me: failed program was:" >&5
12542 sed 's/^/| /' conftest.$ac_ext >&5
12544 ac_header_compiler=no
12547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12548 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12549 echo "${ECHO_T}$ac_header_compiler" >&6; }
12551 # Is the header present?
12552 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12553 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12554 cat >conftest.$ac_ext <<_ACEOF
12555 /* confdefs.h. */
12556 _ACEOF
12557 cat confdefs.h >>conftest.$ac_ext
12558 cat >>conftest.$ac_ext <<_ACEOF
12559 /* end confdefs.h. */
12560 #include <X11/Xft/Xft.h>
12561 _ACEOF
12562 if { (ac_try="$ac_cpp conftest.$ac_ext"
12563 case "(($ac_try" in
12564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12565 *) ac_try_echo=$ac_try;;
12566 esac
12567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12568 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12569 ac_status=$?
12570 grep -v '^ *+' conftest.er1 >conftest.err
12571 rm -f conftest.er1
12572 cat conftest.err >&5
12573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574 (exit $ac_status); } >/dev/null && {
12575 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12576 test ! -s conftest.err
12577 }; then
12578 ac_header_preproc=yes
12579 else
12580 echo "$as_me: failed program was:" >&5
12581 sed 's/^/| /' conftest.$ac_ext >&5
12583 ac_header_preproc=no
12586 rm -f conftest.err conftest.$ac_ext
12587 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12588 echo "${ECHO_T}$ac_header_preproc" >&6; }
12590 # So? What about this header?
12591 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12592 yes:no: )
12593 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12594 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12595 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12596 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12597 ac_header_preproc=yes
12599 no:yes:* )
12600 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12601 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12602 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12603 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12604 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12605 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12606 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12607 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12608 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12609 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12610 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12611 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12614 esac
12615 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12616 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12617 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12618 echo $ECHO_N "(cached) $ECHO_C" >&6
12619 else
12620 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12622 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12623 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12626 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12627 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12628 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12629 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12630 echo $ECHO_N "(cached) $ECHO_C" >&6
12631 else
12632 ac_check_lib_save_LIBS=$LIBS
12633 LIBS="-lXft $XFT_LIBS $LIBS"
12634 cat >conftest.$ac_ext <<_ACEOF
12635 /* confdefs.h. */
12636 _ACEOF
12637 cat confdefs.h >>conftest.$ac_ext
12638 cat >>conftest.$ac_ext <<_ACEOF
12639 /* end confdefs.h. */
12641 /* Override any GCC internal prototype to avoid an error.
12642 Use char because int might match the return type of a GCC
12643 builtin and then its argument prototype would still apply. */
12644 #ifdef __cplusplus
12645 extern "C"
12646 #endif
12647 char XftFontOpen ();
12649 main ()
12651 return XftFontOpen ();
12653 return 0;
12655 _ACEOF
12656 rm -f conftest.$ac_objext conftest$ac_exeext
12657 if { (ac_try="$ac_link"
12658 case "(($ac_try" in
12659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12660 *) ac_try_echo=$ac_try;;
12661 esac
12662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12663 (eval "$ac_link") 2>conftest.er1
12664 ac_status=$?
12665 grep -v '^ *+' conftest.er1 >conftest.err
12666 rm -f conftest.er1
12667 cat conftest.err >&5
12668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669 (exit $ac_status); } && {
12670 test -z "$ac_c_werror_flag" ||
12671 test ! -s conftest.err
12672 } && test -s conftest$ac_exeext &&
12673 $as_test_x conftest$ac_exeext; then
12674 ac_cv_lib_Xft_XftFontOpen=yes
12675 else
12676 echo "$as_me: failed program was:" >&5
12677 sed 's/^/| /' conftest.$ac_ext >&5
12679 ac_cv_lib_Xft_XftFontOpen=no
12682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12683 conftest$ac_exeext conftest.$ac_ext
12684 LIBS=$ac_check_lib_save_LIBS
12686 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12687 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12688 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12689 HAVE_XFT=yes
12696 if test "${HAVE_XFT}" = "yes"; then
12698 cat >>confdefs.h <<\_ACEOF
12699 #define HAVE_XFT 1
12700 _ACEOF
12703 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12704 else
12705 CPPFLAGS="$OLD_CPPFLAGS"
12706 CFLAGS="$OLD_CFLAGS"
12707 LIBS="$OLD_LIBS"
12712 if test "$HAVE_XFT" != "yes"; then
12713 HAVE_XFT=no
12717 HAVE_FREETYPE=no
12718 ### Use -lfreetype if available, unless `--with-freetype=no'.
12719 if test "${HAVE_XFT}" = "yes"; then
12720 HAVE_FREETYPE=yes
12721 elif test "x${with_freetype}" != "xno"; then
12722 if test "X${with_pkg_config_prog}" != X; then
12723 PKG_CONFIG="${with_pkg_config_prog}"
12727 succeeded=no
12729 # Extract the first word of "pkg-config", so it can be a program name with args.
12730 set dummy pkg-config; ac_word=$2
12731 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12733 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12734 echo $ECHO_N "(cached) $ECHO_C" >&6
12735 else
12736 case $PKG_CONFIG in
12737 [\\/]* | ?:[\\/]*)
12738 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12742 for as_dir in $PATH
12744 IFS=$as_save_IFS
12745 test -z "$as_dir" && as_dir=.
12746 for ac_exec_ext in '' $ac_executable_extensions; do
12747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12748 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12750 break 2
12752 done
12753 done
12754 IFS=$as_save_IFS
12756 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12758 esac
12760 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12761 if test -n "$PKG_CONFIG"; then
12762 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12763 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12764 else
12765 { echo "$as_me:$LINENO: result: no" >&5
12766 echo "${ECHO_T}no" >&6; }
12771 if test "$PKG_CONFIG" = "no" ; then
12772 HAVE_FREETYPE=no
12773 else
12774 PKG_CONFIG_MIN_VERSION=0.9.0
12775 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12776 { echo "$as_me:$LINENO: checking for freetype2" >&5
12777 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
12779 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12780 { echo "$as_me:$LINENO: result: yes" >&5
12781 echo "${ECHO_T}yes" >&6; }
12782 succeeded=yes
12784 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12785 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
12786 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
12787 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12788 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
12790 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12791 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
12792 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
12793 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12794 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
12795 else
12796 { echo "$as_me:$LINENO: result: no" >&5
12797 echo "${ECHO_T}no" >&6; }
12798 FREETYPE_CFLAGS=""
12799 FREETYPE_LIBS=""
12800 ## If we have a custom action on failure, don't print errors, but
12801 ## do set a variable so people can do so.
12802 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12808 else
12809 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12810 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12814 if test $succeeded = yes; then
12815 HAVE_FREETYPE=yes
12816 else
12817 HAVE_FREETYPE=no
12820 if test "${HAVE_FREETYPE}" = "yes"; then
12822 succeeded=no
12824 # Extract the first word of "pkg-config", so it can be a program name with args.
12825 set dummy pkg-config; ac_word=$2
12826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12828 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12829 echo $ECHO_N "(cached) $ECHO_C" >&6
12830 else
12831 case $PKG_CONFIG in
12832 [\\/]* | ?:[\\/]*)
12833 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12837 for as_dir in $PATH
12839 IFS=$as_save_IFS
12840 test -z "$as_dir" && as_dir=.
12841 for ac_exec_ext in '' $ac_executable_extensions; do
12842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12843 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12845 break 2
12847 done
12848 done
12849 IFS=$as_save_IFS
12851 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12853 esac
12855 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12856 if test -n "$PKG_CONFIG"; then
12857 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12858 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12859 else
12860 { echo "$as_me:$LINENO: result: no" >&5
12861 echo "${ECHO_T}no" >&6; }
12866 if test "$PKG_CONFIG" = "no" ; then
12867 HAVE_FC=no
12868 else
12869 PKG_CONFIG_MIN_VERSION=0.9.0
12870 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12871 { echo "$as_me:$LINENO: checking for fontconfig" >&5
12872 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
12874 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
12875 { echo "$as_me:$LINENO: result: yes" >&5
12876 echo "${ECHO_T}yes" >&6; }
12877 succeeded=yes
12879 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
12880 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
12881 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
12882 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
12883 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
12885 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
12886 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
12887 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
12888 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
12889 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
12890 else
12891 { echo "$as_me:$LINENO: result: no" >&5
12892 echo "${ECHO_T}no" >&6; }
12893 FONTCONFIG_CFLAGS=""
12894 FONTCONFIG_LIBS=""
12895 ## If we have a custom action on failure, don't print errors, but
12896 ## do set a variable so people can do so.
12897 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
12903 else
12904 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12905 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12909 if test $succeeded = yes; then
12910 HAVE_FC=yes
12911 else
12912 HAVE_FC=no
12915 if test "${HAVE_FC}" = "no"; then
12916 HAVE_FREETYPE=no
12921 HAVE_LIBOTF=no
12922 if test "${HAVE_FREETYPE}" = "yes"; then
12924 cat >>confdefs.h <<\_ACEOF
12925 #define HAVE_FREETYPE 1
12926 _ACEOF
12928 if test "${with_libotf}" != "no"; then
12929 if test "X${with_pkg_config_prog}" != X; then
12930 PKG_CONFIG="${with_pkg_config_prog}"
12933 succeeded=no
12935 # Extract the first word of "pkg-config", so it can be a program name with args.
12936 set dummy pkg-config; ac_word=$2
12937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12939 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12940 echo $ECHO_N "(cached) $ECHO_C" >&6
12941 else
12942 case $PKG_CONFIG in
12943 [\\/]* | ?:[\\/]*)
12944 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12948 for as_dir in $PATH
12950 IFS=$as_save_IFS
12951 test -z "$as_dir" && as_dir=.
12952 for ac_exec_ext in '' $ac_executable_extensions; do
12953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12954 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12956 break 2
12958 done
12959 done
12960 IFS=$as_save_IFS
12962 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12964 esac
12966 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12967 if test -n "$PKG_CONFIG"; then
12968 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12969 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12970 else
12971 { echo "$as_me:$LINENO: result: no" >&5
12972 echo "${ECHO_T}no" >&6; }
12977 if test "$PKG_CONFIG" = "no" ; then
12978 HAVE_LIBOTF=no
12979 else
12980 PKG_CONFIG_MIN_VERSION=0.9.0
12981 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12982 { echo "$as_me:$LINENO: checking for libotf" >&5
12983 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
12985 if $PKG_CONFIG --exists "libotf" 2>&5; then
12986 { echo "$as_me:$LINENO: result: yes" >&5
12987 echo "${ECHO_T}yes" >&6; }
12988 succeeded=yes
12990 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
12991 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
12992 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
12993 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
12994 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
12996 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
12997 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
12998 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
12999 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13000 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13001 else
13002 { echo "$as_me:$LINENO: result: no" >&5
13003 echo "${ECHO_T}no" >&6; }
13004 LIBOTF_CFLAGS=""
13005 LIBOTF_LIBS=""
13006 ## If we have a custom action on failure, don't print errors, but
13007 ## do set a variable so people can do so.
13008 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13014 else
13015 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13016 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13020 if test $succeeded = yes; then
13021 HAVE_LIBOTF=yes
13022 else
13023 HAVE_LIBOTF=no
13026 if test "$HAVE_LIBOTF" = "yes"; then
13028 cat >>confdefs.h <<\_ACEOF
13029 #define HAVE_LIBOTF 1
13030 _ACEOF
13036 HAVE_M17N_FLT=no
13037 if test "${with_m17n_flt}" != "no"; then
13038 if test "X${with_pkg_config_prog}" != X; then
13039 PKG_CONFIG="${with_pkg_config_prog}"
13042 succeeded=no
13044 # Extract the first word of "pkg-config", so it can be a program name with args.
13045 set dummy pkg-config; ac_word=$2
13046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13048 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13049 echo $ECHO_N "(cached) $ECHO_C" >&6
13050 else
13051 case $PKG_CONFIG in
13052 [\\/]* | ?:[\\/]*)
13053 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13057 for as_dir in $PATH
13059 IFS=$as_save_IFS
13060 test -z "$as_dir" && as_dir=.
13061 for ac_exec_ext in '' $ac_executable_extensions; do
13062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13063 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13065 break 2
13067 done
13068 done
13069 IFS=$as_save_IFS
13071 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13073 esac
13075 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13076 if test -n "$PKG_CONFIG"; then
13077 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13078 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13079 else
13080 { echo "$as_me:$LINENO: result: no" >&5
13081 echo "${ECHO_T}no" >&6; }
13086 if test "$PKG_CONFIG" = "no" ; then
13087 HAVE_M17N_FLT=no
13088 else
13089 PKG_CONFIG_MIN_VERSION=0.9.0
13090 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13091 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13092 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13094 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13095 { echo "$as_me:$LINENO: result: yes" >&5
13096 echo "${ECHO_T}yes" >&6; }
13097 succeeded=yes
13099 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13100 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13101 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13102 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13103 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13105 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13106 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13107 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13108 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13109 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13110 else
13111 { echo "$as_me:$LINENO: result: no" >&5
13112 echo "${ECHO_T}no" >&6; }
13113 M17N_FLT_CFLAGS=""
13114 M17N_FLT_LIBS=""
13115 ## If we have a custom action on failure, don't print errors, but
13116 ## do set a variable so people can do so.
13117 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13123 else
13124 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13125 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13129 if test $succeeded = yes; then
13130 HAVE_M17N_FLT=yes
13131 else
13132 HAVE_M17N_FLT=no
13135 if test "$HAVE_M17N_FLT" = "yes"; then
13137 cat >>confdefs.h <<\_ACEOF
13138 #define HAVE_M17N_FLT 1
13139 _ACEOF
13154 #### End for font-backend
13156 ### Use -lXpm if available, unless `--with-xpm=no'.
13157 HAVE_XPM=no
13158 if test "${HAVE_X11}" = "yes"; then
13159 if test "${with_xpm}" != "no"; then
13160 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13161 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13162 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13163 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13164 echo $ECHO_N "(cached) $ECHO_C" >&6
13166 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13167 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13168 else
13169 # Is the header compilable?
13170 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13171 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13172 cat >conftest.$ac_ext <<_ACEOF
13173 /* confdefs.h. */
13174 _ACEOF
13175 cat confdefs.h >>conftest.$ac_ext
13176 cat >>conftest.$ac_ext <<_ACEOF
13177 /* end confdefs.h. */
13178 $ac_includes_default
13179 #include <X11/xpm.h>
13180 _ACEOF
13181 rm -f conftest.$ac_objext
13182 if { (ac_try="$ac_compile"
13183 case "(($ac_try" in
13184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13185 *) ac_try_echo=$ac_try;;
13186 esac
13187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13188 (eval "$ac_compile") 2>conftest.er1
13189 ac_status=$?
13190 grep -v '^ *+' conftest.er1 >conftest.err
13191 rm -f conftest.er1
13192 cat conftest.err >&5
13193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194 (exit $ac_status); } && {
13195 test -z "$ac_c_werror_flag" ||
13196 test ! -s conftest.err
13197 } && test -s conftest.$ac_objext; then
13198 ac_header_compiler=yes
13199 else
13200 echo "$as_me: failed program was:" >&5
13201 sed 's/^/| /' conftest.$ac_ext >&5
13203 ac_header_compiler=no
13206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13207 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13208 echo "${ECHO_T}$ac_header_compiler" >&6; }
13210 # Is the header present?
13211 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13212 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13213 cat >conftest.$ac_ext <<_ACEOF
13214 /* confdefs.h. */
13215 _ACEOF
13216 cat confdefs.h >>conftest.$ac_ext
13217 cat >>conftest.$ac_ext <<_ACEOF
13218 /* end confdefs.h. */
13219 #include <X11/xpm.h>
13220 _ACEOF
13221 if { (ac_try="$ac_cpp conftest.$ac_ext"
13222 case "(($ac_try" in
13223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13224 *) ac_try_echo=$ac_try;;
13225 esac
13226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13227 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13228 ac_status=$?
13229 grep -v '^ *+' conftest.er1 >conftest.err
13230 rm -f conftest.er1
13231 cat conftest.err >&5
13232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13233 (exit $ac_status); } >/dev/null && {
13234 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13235 test ! -s conftest.err
13236 }; then
13237 ac_header_preproc=yes
13238 else
13239 echo "$as_me: failed program was:" >&5
13240 sed 's/^/| /' conftest.$ac_ext >&5
13242 ac_header_preproc=no
13245 rm -f conftest.err conftest.$ac_ext
13246 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13247 echo "${ECHO_T}$ac_header_preproc" >&6; }
13249 # So? What about this header?
13250 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13251 yes:no: )
13252 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13253 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13254 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13255 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13256 ac_header_preproc=yes
13258 no:yes:* )
13259 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13260 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13261 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13262 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13263 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13264 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13265 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13266 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13267 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13268 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13269 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13270 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13273 esac
13274 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13275 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13276 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13277 echo $ECHO_N "(cached) $ECHO_C" >&6
13278 else
13279 ac_cv_header_X11_xpm_h=$ac_header_preproc
13281 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13282 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13285 if test $ac_cv_header_X11_xpm_h = yes; then
13286 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13287 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13288 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13289 echo $ECHO_N "(cached) $ECHO_C" >&6
13290 else
13291 ac_check_lib_save_LIBS=$LIBS
13292 LIBS="-lXpm -lX11 $LIBS"
13293 cat >conftest.$ac_ext <<_ACEOF
13294 /* confdefs.h. */
13295 _ACEOF
13296 cat confdefs.h >>conftest.$ac_ext
13297 cat >>conftest.$ac_ext <<_ACEOF
13298 /* end confdefs.h. */
13300 /* Override any GCC internal prototype to avoid an error.
13301 Use char because int might match the return type of a GCC
13302 builtin and then its argument prototype would still apply. */
13303 #ifdef __cplusplus
13304 extern "C"
13305 #endif
13306 char XpmReadFileToPixmap ();
13308 main ()
13310 return XpmReadFileToPixmap ();
13312 return 0;
13314 _ACEOF
13315 rm -f conftest.$ac_objext conftest$ac_exeext
13316 if { (ac_try="$ac_link"
13317 case "(($ac_try" in
13318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13319 *) ac_try_echo=$ac_try;;
13320 esac
13321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13322 (eval "$ac_link") 2>conftest.er1
13323 ac_status=$?
13324 grep -v '^ *+' conftest.er1 >conftest.err
13325 rm -f conftest.er1
13326 cat conftest.err >&5
13327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328 (exit $ac_status); } && {
13329 test -z "$ac_c_werror_flag" ||
13330 test ! -s conftest.err
13331 } && test -s conftest$ac_exeext &&
13332 $as_test_x conftest$ac_exeext; then
13333 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13334 else
13335 echo "$as_me: failed program was:" >&5
13336 sed 's/^/| /' conftest.$ac_ext >&5
13338 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13342 conftest$ac_exeext conftest.$ac_ext
13343 LIBS=$ac_check_lib_save_LIBS
13345 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13346 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13347 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13348 HAVE_XPM=yes
13354 if test "${HAVE_XPM}" = "yes"; then
13355 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13356 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13357 cat >conftest.$ac_ext <<_ACEOF
13358 /* confdefs.h. */
13359 _ACEOF
13360 cat confdefs.h >>conftest.$ac_ext
13361 cat >>conftest.$ac_ext <<_ACEOF
13362 /* end confdefs.h. */
13363 #include "X11/xpm.h"
13364 #ifndef XpmReturnAllocPixels
13365 no_return_alloc_pixels
13366 #endif
13368 _ACEOF
13369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13370 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13371 HAVE_XPM=no
13372 else
13373 HAVE_XPM=yes
13375 rm -f conftest*
13378 if test "${HAVE_XPM}" = "yes"; then
13379 { echo "$as_me:$LINENO: result: yes" >&5
13380 echo "${ECHO_T}yes" >&6; }
13381 else
13382 { echo "$as_me:$LINENO: result: no" >&5
13383 echo "${ECHO_T}no" >&6; }
13388 if test "${HAVE_XPM}" = "yes"; then
13390 cat >>confdefs.h <<\_ACEOF
13391 #define HAVE_XPM 1
13392 _ACEOF
13397 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13398 HAVE_JPEG=no
13399 if test "${HAVE_X11}" = "yes"; then
13400 if test "${with_jpeg}" != "no"; then
13401 if test "${ac_cv_header_jerror_h+set}" = set; then
13402 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13403 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13404 if test "${ac_cv_header_jerror_h+set}" = set; then
13405 echo $ECHO_N "(cached) $ECHO_C" >&6
13407 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13408 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13409 else
13410 # Is the header compilable?
13411 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13412 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13413 cat >conftest.$ac_ext <<_ACEOF
13414 /* confdefs.h. */
13415 _ACEOF
13416 cat confdefs.h >>conftest.$ac_ext
13417 cat >>conftest.$ac_ext <<_ACEOF
13418 /* end confdefs.h. */
13419 $ac_includes_default
13420 #include <jerror.h>
13421 _ACEOF
13422 rm -f conftest.$ac_objext
13423 if { (ac_try="$ac_compile"
13424 case "(($ac_try" in
13425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13426 *) ac_try_echo=$ac_try;;
13427 esac
13428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13429 (eval "$ac_compile") 2>conftest.er1
13430 ac_status=$?
13431 grep -v '^ *+' conftest.er1 >conftest.err
13432 rm -f conftest.er1
13433 cat conftest.err >&5
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); } && {
13436 test -z "$ac_c_werror_flag" ||
13437 test ! -s conftest.err
13438 } && test -s conftest.$ac_objext; then
13439 ac_header_compiler=yes
13440 else
13441 echo "$as_me: failed program was:" >&5
13442 sed 's/^/| /' conftest.$ac_ext >&5
13444 ac_header_compiler=no
13447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13448 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13449 echo "${ECHO_T}$ac_header_compiler" >&6; }
13451 # Is the header present?
13452 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13453 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13454 cat >conftest.$ac_ext <<_ACEOF
13455 /* confdefs.h. */
13456 _ACEOF
13457 cat confdefs.h >>conftest.$ac_ext
13458 cat >>conftest.$ac_ext <<_ACEOF
13459 /* end confdefs.h. */
13460 #include <jerror.h>
13461 _ACEOF
13462 if { (ac_try="$ac_cpp conftest.$ac_ext"
13463 case "(($ac_try" in
13464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13465 *) ac_try_echo=$ac_try;;
13466 esac
13467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13468 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13469 ac_status=$?
13470 grep -v '^ *+' conftest.er1 >conftest.err
13471 rm -f conftest.er1
13472 cat conftest.err >&5
13473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474 (exit $ac_status); } >/dev/null && {
13475 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13476 test ! -s conftest.err
13477 }; then
13478 ac_header_preproc=yes
13479 else
13480 echo "$as_me: failed program was:" >&5
13481 sed 's/^/| /' conftest.$ac_ext >&5
13483 ac_header_preproc=no
13486 rm -f conftest.err conftest.$ac_ext
13487 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13488 echo "${ECHO_T}$ac_header_preproc" >&6; }
13490 # So? What about this header?
13491 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13492 yes:no: )
13493 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13494 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13495 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13496 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13497 ac_header_preproc=yes
13499 no:yes:* )
13500 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13501 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13502 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13503 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13504 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13505 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13506 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13507 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13508 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13509 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13510 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13511 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13514 esac
13515 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13516 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13517 if test "${ac_cv_header_jerror_h+set}" = set; then
13518 echo $ECHO_N "(cached) $ECHO_C" >&6
13519 else
13520 ac_cv_header_jerror_h=$ac_header_preproc
13522 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13523 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13526 if test $ac_cv_header_jerror_h = yes; then
13527 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13528 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13529 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13530 echo $ECHO_N "(cached) $ECHO_C" >&6
13531 else
13532 ac_check_lib_save_LIBS=$LIBS
13533 LIBS="-ljpeg $LIBS"
13534 cat >conftest.$ac_ext <<_ACEOF
13535 /* confdefs.h. */
13536 _ACEOF
13537 cat confdefs.h >>conftest.$ac_ext
13538 cat >>conftest.$ac_ext <<_ACEOF
13539 /* end confdefs.h. */
13541 /* Override any GCC internal prototype to avoid an error.
13542 Use char because int might match the return type of a GCC
13543 builtin and then its argument prototype would still apply. */
13544 #ifdef __cplusplus
13545 extern "C"
13546 #endif
13547 char jpeg_destroy_compress ();
13549 main ()
13551 return jpeg_destroy_compress ();
13553 return 0;
13555 _ACEOF
13556 rm -f conftest.$ac_objext conftest$ac_exeext
13557 if { (ac_try="$ac_link"
13558 case "(($ac_try" in
13559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13560 *) ac_try_echo=$ac_try;;
13561 esac
13562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13563 (eval "$ac_link") 2>conftest.er1
13564 ac_status=$?
13565 grep -v '^ *+' conftest.er1 >conftest.err
13566 rm -f conftest.er1
13567 cat conftest.err >&5
13568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569 (exit $ac_status); } && {
13570 test -z "$ac_c_werror_flag" ||
13571 test ! -s conftest.err
13572 } && test -s conftest$ac_exeext &&
13573 $as_test_x conftest$ac_exeext; then
13574 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13575 else
13576 echo "$as_me: failed program was:" >&5
13577 sed 's/^/| /' conftest.$ac_ext >&5
13579 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13583 conftest$ac_exeext conftest.$ac_ext
13584 LIBS=$ac_check_lib_save_LIBS
13586 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13587 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13588 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13589 HAVE_JPEG=yes
13598 if test "${HAVE_JPEG}" = "yes"; then
13599 cat >>confdefs.h <<\_ACEOF
13600 #define HAVE_JPEG 1
13601 _ACEOF
13603 cat >conftest.$ac_ext <<_ACEOF
13604 /* confdefs.h. */
13605 _ACEOF
13606 cat confdefs.h >>conftest.$ac_ext
13607 cat >>conftest.$ac_ext <<_ACEOF
13608 /* end confdefs.h. */
13609 #include <jpeglib.h>
13610 version=JPEG_LIB_VERSION
13612 _ACEOF
13613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13614 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13615 cat >>confdefs.h <<\_ACEOF
13616 #define HAVE_JPEG 1
13617 _ACEOF
13619 else
13620 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13621 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13622 HAVE_JPEG=no
13624 rm -f conftest*
13629 ### Use -lpng if available, unless `--with-png=no'.
13630 HAVE_PNG=no
13631 if test "${HAVE_X11}" = "yes"; then
13632 if test "${with_png}" != "no"; then
13633 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13634 # in /usr/include/libpng.
13637 for ac_header in png.h libpng/png.h
13639 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13641 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13644 echo $ECHO_N "(cached) $ECHO_C" >&6
13646 ac_res=`eval echo '${'$as_ac_Header'}'`
13647 { echo "$as_me:$LINENO: result: $ac_res" >&5
13648 echo "${ECHO_T}$ac_res" >&6; }
13649 else
13650 # Is the header compilable?
13651 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13652 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13653 cat >conftest.$ac_ext <<_ACEOF
13654 /* confdefs.h. */
13655 _ACEOF
13656 cat confdefs.h >>conftest.$ac_ext
13657 cat >>conftest.$ac_ext <<_ACEOF
13658 /* end confdefs.h. */
13659 $ac_includes_default
13660 #include <$ac_header>
13661 _ACEOF
13662 rm -f conftest.$ac_objext
13663 if { (ac_try="$ac_compile"
13664 case "(($ac_try" in
13665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13666 *) ac_try_echo=$ac_try;;
13667 esac
13668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13669 (eval "$ac_compile") 2>conftest.er1
13670 ac_status=$?
13671 grep -v '^ *+' conftest.er1 >conftest.err
13672 rm -f conftest.er1
13673 cat conftest.err >&5
13674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675 (exit $ac_status); } && {
13676 test -z "$ac_c_werror_flag" ||
13677 test ! -s conftest.err
13678 } && test -s conftest.$ac_objext; then
13679 ac_header_compiler=yes
13680 else
13681 echo "$as_me: failed program was:" >&5
13682 sed 's/^/| /' conftest.$ac_ext >&5
13684 ac_header_compiler=no
13687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13688 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13689 echo "${ECHO_T}$ac_header_compiler" >&6; }
13691 # Is the header present?
13692 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13693 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13694 cat >conftest.$ac_ext <<_ACEOF
13695 /* confdefs.h. */
13696 _ACEOF
13697 cat confdefs.h >>conftest.$ac_ext
13698 cat >>conftest.$ac_ext <<_ACEOF
13699 /* end confdefs.h. */
13700 #include <$ac_header>
13701 _ACEOF
13702 if { (ac_try="$ac_cpp conftest.$ac_ext"
13703 case "(($ac_try" in
13704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13705 *) ac_try_echo=$ac_try;;
13706 esac
13707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13709 ac_status=$?
13710 grep -v '^ *+' conftest.er1 >conftest.err
13711 rm -f conftest.er1
13712 cat conftest.err >&5
13713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714 (exit $ac_status); } >/dev/null && {
13715 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13716 test ! -s conftest.err
13717 }; then
13718 ac_header_preproc=yes
13719 else
13720 echo "$as_me: failed program was:" >&5
13721 sed 's/^/| /' conftest.$ac_ext >&5
13723 ac_header_preproc=no
13726 rm -f conftest.err conftest.$ac_ext
13727 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13728 echo "${ECHO_T}$ac_header_preproc" >&6; }
13730 # So? What about this header?
13731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13732 yes:no: )
13733 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13734 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13736 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13737 ac_header_preproc=yes
13739 no:yes:* )
13740 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13741 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13742 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13743 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13744 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13745 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13746 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13747 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13749 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13750 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13751 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13754 esac
13755 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13757 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13758 echo $ECHO_N "(cached) $ECHO_C" >&6
13759 else
13760 eval "$as_ac_Header=\$ac_header_preproc"
13762 ac_res=`eval echo '${'$as_ac_Header'}'`
13763 { echo "$as_me:$LINENO: result: $ac_res" >&5
13764 echo "${ECHO_T}$ac_res" >&6; }
13767 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13768 cat >>confdefs.h <<_ACEOF
13769 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13770 _ACEOF
13774 done
13776 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13777 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13778 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13779 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13780 echo $ECHO_N "(cached) $ECHO_C" >&6
13781 else
13782 ac_check_lib_save_LIBS=$LIBS
13783 LIBS="-lpng -lz -lm $LIBS"
13784 cat >conftest.$ac_ext <<_ACEOF
13785 /* confdefs.h. */
13786 _ACEOF
13787 cat confdefs.h >>conftest.$ac_ext
13788 cat >>conftest.$ac_ext <<_ACEOF
13789 /* end confdefs.h. */
13791 /* Override any GCC internal prototype to avoid an error.
13792 Use char because int might match the return type of a GCC
13793 builtin and then its argument prototype would still apply. */
13794 #ifdef __cplusplus
13795 extern "C"
13796 #endif
13797 char png_get_channels ();
13799 main ()
13801 return png_get_channels ();
13803 return 0;
13805 _ACEOF
13806 rm -f conftest.$ac_objext conftest$ac_exeext
13807 if { (ac_try="$ac_link"
13808 case "(($ac_try" in
13809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13810 *) ac_try_echo=$ac_try;;
13811 esac
13812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13813 (eval "$ac_link") 2>conftest.er1
13814 ac_status=$?
13815 grep -v '^ *+' conftest.er1 >conftest.err
13816 rm -f conftest.er1
13817 cat conftest.err >&5
13818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819 (exit $ac_status); } && {
13820 test -z "$ac_c_werror_flag" ||
13821 test ! -s conftest.err
13822 } && test -s conftest$ac_exeext &&
13823 $as_test_x conftest$ac_exeext; then
13824 ac_cv_lib_png_png_get_channels=yes
13825 else
13826 echo "$as_me: failed program was:" >&5
13827 sed 's/^/| /' conftest.$ac_ext >&5
13829 ac_cv_lib_png_png_get_channels=no
13832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13833 conftest$ac_exeext conftest.$ac_ext
13834 LIBS=$ac_check_lib_save_LIBS
13836 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13837 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13838 if test $ac_cv_lib_png_png_get_channels = yes; then
13839 HAVE_PNG=yes
13845 if test "${HAVE_PNG}" = "yes"; then
13847 cat >>confdefs.h <<\_ACEOF
13848 #define HAVE_PNG 1
13849 _ACEOF
13854 ### Use -ltiff if available, unless `--with-tiff=no'.
13855 HAVE_TIFF=no
13856 if test "${HAVE_X11}" = "yes"; then
13857 if test "${with_tiff}" != "no"; then
13858 if test "${ac_cv_header_tiffio_h+set}" = set; then
13859 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13860 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13861 if test "${ac_cv_header_tiffio_h+set}" = set; then
13862 echo $ECHO_N "(cached) $ECHO_C" >&6
13864 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13865 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13866 else
13867 # Is the header compilable?
13868 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13869 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13870 cat >conftest.$ac_ext <<_ACEOF
13871 /* confdefs.h. */
13872 _ACEOF
13873 cat confdefs.h >>conftest.$ac_ext
13874 cat >>conftest.$ac_ext <<_ACEOF
13875 /* end confdefs.h. */
13876 $ac_includes_default
13877 #include <tiffio.h>
13878 _ACEOF
13879 rm -f conftest.$ac_objext
13880 if { (ac_try="$ac_compile"
13881 case "(($ac_try" in
13882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13883 *) ac_try_echo=$ac_try;;
13884 esac
13885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13886 (eval "$ac_compile") 2>conftest.er1
13887 ac_status=$?
13888 grep -v '^ *+' conftest.er1 >conftest.err
13889 rm -f conftest.er1
13890 cat conftest.err >&5
13891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892 (exit $ac_status); } && {
13893 test -z "$ac_c_werror_flag" ||
13894 test ! -s conftest.err
13895 } && test -s conftest.$ac_objext; then
13896 ac_header_compiler=yes
13897 else
13898 echo "$as_me: failed program was:" >&5
13899 sed 's/^/| /' conftest.$ac_ext >&5
13901 ac_header_compiler=no
13904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13905 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13906 echo "${ECHO_T}$ac_header_compiler" >&6; }
13908 # Is the header present?
13909 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13910 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13911 cat >conftest.$ac_ext <<_ACEOF
13912 /* confdefs.h. */
13913 _ACEOF
13914 cat confdefs.h >>conftest.$ac_ext
13915 cat >>conftest.$ac_ext <<_ACEOF
13916 /* end confdefs.h. */
13917 #include <tiffio.h>
13918 _ACEOF
13919 if { (ac_try="$ac_cpp conftest.$ac_ext"
13920 case "(($ac_try" in
13921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13922 *) ac_try_echo=$ac_try;;
13923 esac
13924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13925 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13926 ac_status=$?
13927 grep -v '^ *+' conftest.er1 >conftest.err
13928 rm -f conftest.er1
13929 cat conftest.err >&5
13930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931 (exit $ac_status); } >/dev/null && {
13932 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13933 test ! -s conftest.err
13934 }; then
13935 ac_header_preproc=yes
13936 else
13937 echo "$as_me: failed program was:" >&5
13938 sed 's/^/| /' conftest.$ac_ext >&5
13940 ac_header_preproc=no
13943 rm -f conftest.err conftest.$ac_ext
13944 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13945 echo "${ECHO_T}$ac_header_preproc" >&6; }
13947 # So? What about this header?
13948 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13949 yes:no: )
13950 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13951 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13952 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13953 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13954 ac_header_preproc=yes
13956 no:yes:* )
13957 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13958 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13959 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13960 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13961 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13962 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13963 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13964 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13965 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13966 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13967 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13968 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13971 esac
13972 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13973 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13974 if test "${ac_cv_header_tiffio_h+set}" = set; then
13975 echo $ECHO_N "(cached) $ECHO_C" >&6
13976 else
13977 ac_cv_header_tiffio_h=$ac_header_preproc
13979 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13980 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13983 if test $ac_cv_header_tiffio_h = yes; then
13984 tifflibs="-lz -lm"
13985 # At least one tiff package requires the jpeg library.
13986 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13987 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13988 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13989 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13990 echo $ECHO_N "(cached) $ECHO_C" >&6
13991 else
13992 ac_check_lib_save_LIBS=$LIBS
13993 LIBS="-ltiff $tifflibs $LIBS"
13994 cat >conftest.$ac_ext <<_ACEOF
13995 /* confdefs.h. */
13996 _ACEOF
13997 cat confdefs.h >>conftest.$ac_ext
13998 cat >>conftest.$ac_ext <<_ACEOF
13999 /* end confdefs.h. */
14001 /* Override any GCC internal prototype to avoid an error.
14002 Use char because int might match the return type of a GCC
14003 builtin and then its argument prototype would still apply. */
14004 #ifdef __cplusplus
14005 extern "C"
14006 #endif
14007 char TIFFGetVersion ();
14009 main ()
14011 return TIFFGetVersion ();
14013 return 0;
14015 _ACEOF
14016 rm -f conftest.$ac_objext conftest$ac_exeext
14017 if { (ac_try="$ac_link"
14018 case "(($ac_try" in
14019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14020 *) ac_try_echo=$ac_try;;
14021 esac
14022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14023 (eval "$ac_link") 2>conftest.er1
14024 ac_status=$?
14025 grep -v '^ *+' conftest.er1 >conftest.err
14026 rm -f conftest.er1
14027 cat conftest.err >&5
14028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029 (exit $ac_status); } && {
14030 test -z "$ac_c_werror_flag" ||
14031 test ! -s conftest.err
14032 } && test -s conftest$ac_exeext &&
14033 $as_test_x conftest$ac_exeext; then
14034 ac_cv_lib_tiff_TIFFGetVersion=yes
14035 else
14036 echo "$as_me: failed program was:" >&5
14037 sed 's/^/| /' conftest.$ac_ext >&5
14039 ac_cv_lib_tiff_TIFFGetVersion=no
14042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14043 conftest$ac_exeext conftest.$ac_ext
14044 LIBS=$ac_check_lib_save_LIBS
14046 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14047 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14048 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14049 HAVE_TIFF=yes
14057 if test "${HAVE_TIFF}" = "yes"; then
14059 cat >>confdefs.h <<\_ACEOF
14060 #define HAVE_TIFF 1
14061 _ACEOF
14066 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14067 HAVE_GIF=no
14068 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14069 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14070 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14071 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14072 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14073 echo $ECHO_N "(cached) $ECHO_C" >&6
14075 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14076 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14077 else
14078 # Is the header compilable?
14079 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14080 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14081 cat >conftest.$ac_ext <<_ACEOF
14082 /* confdefs.h. */
14083 _ACEOF
14084 cat confdefs.h >>conftest.$ac_ext
14085 cat >>conftest.$ac_ext <<_ACEOF
14086 /* end confdefs.h. */
14087 $ac_includes_default
14088 #include <gif_lib.h>
14089 _ACEOF
14090 rm -f conftest.$ac_objext
14091 if { (ac_try="$ac_compile"
14092 case "(($ac_try" in
14093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14094 *) ac_try_echo=$ac_try;;
14095 esac
14096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14097 (eval "$ac_compile") 2>conftest.er1
14098 ac_status=$?
14099 grep -v '^ *+' conftest.er1 >conftest.err
14100 rm -f conftest.er1
14101 cat conftest.err >&5
14102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103 (exit $ac_status); } && {
14104 test -z "$ac_c_werror_flag" ||
14105 test ! -s conftest.err
14106 } && test -s conftest.$ac_objext; then
14107 ac_header_compiler=yes
14108 else
14109 echo "$as_me: failed program was:" >&5
14110 sed 's/^/| /' conftest.$ac_ext >&5
14112 ac_header_compiler=no
14115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14116 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14117 echo "${ECHO_T}$ac_header_compiler" >&6; }
14119 # Is the header present?
14120 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14121 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14122 cat >conftest.$ac_ext <<_ACEOF
14123 /* confdefs.h. */
14124 _ACEOF
14125 cat confdefs.h >>conftest.$ac_ext
14126 cat >>conftest.$ac_ext <<_ACEOF
14127 /* end confdefs.h. */
14128 #include <gif_lib.h>
14129 _ACEOF
14130 if { (ac_try="$ac_cpp conftest.$ac_ext"
14131 case "(($ac_try" in
14132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14133 *) ac_try_echo=$ac_try;;
14134 esac
14135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14136 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14137 ac_status=$?
14138 grep -v '^ *+' conftest.er1 >conftest.err
14139 rm -f conftest.er1
14140 cat conftest.err >&5
14141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142 (exit $ac_status); } >/dev/null && {
14143 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14144 test ! -s conftest.err
14145 }; then
14146 ac_header_preproc=yes
14147 else
14148 echo "$as_me: failed program was:" >&5
14149 sed 's/^/| /' conftest.$ac_ext >&5
14151 ac_header_preproc=no
14154 rm -f conftest.err conftest.$ac_ext
14155 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14156 echo "${ECHO_T}$ac_header_preproc" >&6; }
14158 # So? What about this header?
14159 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14160 yes:no: )
14161 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14162 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14163 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14164 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14165 ac_header_preproc=yes
14167 no:yes:* )
14168 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14169 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14170 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14171 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14172 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14173 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14174 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14175 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14176 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14177 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14178 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14179 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14182 esac
14183 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14184 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14185 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14186 echo $ECHO_N "(cached) $ECHO_C" >&6
14187 else
14188 ac_cv_header_gif_lib_h=$ac_header_preproc
14190 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14191 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14194 if test $ac_cv_header_gif_lib_h = yes; then
14195 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14196 # Earlier versions can crash Emacs.
14197 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14198 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14199 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14200 echo $ECHO_N "(cached) $ECHO_C" >&6
14201 else
14202 ac_check_lib_save_LIBS=$LIBS
14203 LIBS="-lgif $LIBS"
14204 cat >conftest.$ac_ext <<_ACEOF
14205 /* confdefs.h. */
14206 _ACEOF
14207 cat confdefs.h >>conftest.$ac_ext
14208 cat >>conftest.$ac_ext <<_ACEOF
14209 /* end confdefs.h. */
14211 /* Override any GCC internal prototype to avoid an error.
14212 Use char because int might match the return type of a GCC
14213 builtin and then its argument prototype would still apply. */
14214 #ifdef __cplusplus
14215 extern "C"
14216 #endif
14217 char EGifPutExtensionLast ();
14219 main ()
14221 return EGifPutExtensionLast ();
14223 return 0;
14225 _ACEOF
14226 rm -f conftest.$ac_objext conftest$ac_exeext
14227 if { (ac_try="$ac_link"
14228 case "(($ac_try" in
14229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14230 *) ac_try_echo=$ac_try;;
14231 esac
14232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14233 (eval "$ac_link") 2>conftest.er1
14234 ac_status=$?
14235 grep -v '^ *+' conftest.er1 >conftest.err
14236 rm -f conftest.er1
14237 cat conftest.err >&5
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); } && {
14240 test -z "$ac_c_werror_flag" ||
14241 test ! -s conftest.err
14242 } && test -s conftest$ac_exeext &&
14243 $as_test_x conftest$ac_exeext; then
14244 ac_cv_lib_gif_EGifPutExtensionLast=yes
14245 else
14246 echo "$as_me: failed program was:" >&5
14247 sed 's/^/| /' conftest.$ac_ext >&5
14249 ac_cv_lib_gif_EGifPutExtensionLast=no
14252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14253 conftest$ac_exeext conftest.$ac_ext
14254 LIBS=$ac_check_lib_save_LIBS
14256 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14257 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14258 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14259 HAVE_GIF=yes
14260 else
14261 try_libungif=yes
14268 if test "$HAVE_GIF" = yes; then
14269 ac_gif_lib_name="-lgif"
14272 # If gif_lib.h but no libgif, try libungif.
14273 if test x"$try_libungif" = xyes; then
14274 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14275 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14276 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14277 echo $ECHO_N "(cached) $ECHO_C" >&6
14278 else
14279 ac_check_lib_save_LIBS=$LIBS
14280 LIBS="-lungif $LIBS"
14281 cat >conftest.$ac_ext <<_ACEOF
14282 /* confdefs.h. */
14283 _ACEOF
14284 cat confdefs.h >>conftest.$ac_ext
14285 cat >>conftest.$ac_ext <<_ACEOF
14286 /* end confdefs.h. */
14288 /* Override any GCC internal prototype to avoid an error.
14289 Use char because int might match the return type of a GCC
14290 builtin and then its argument prototype would still apply. */
14291 #ifdef __cplusplus
14292 extern "C"
14293 #endif
14294 char EGifPutExtensionLast ();
14296 main ()
14298 return EGifPutExtensionLast ();
14300 return 0;
14302 _ACEOF
14303 rm -f conftest.$ac_objext conftest$ac_exeext
14304 if { (ac_try="$ac_link"
14305 case "(($ac_try" in
14306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14307 *) ac_try_echo=$ac_try;;
14308 esac
14309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14310 (eval "$ac_link") 2>conftest.er1
14311 ac_status=$?
14312 grep -v '^ *+' conftest.er1 >conftest.err
14313 rm -f conftest.er1
14314 cat conftest.err >&5
14315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316 (exit $ac_status); } && {
14317 test -z "$ac_c_werror_flag" ||
14318 test ! -s conftest.err
14319 } && test -s conftest$ac_exeext &&
14320 $as_test_x conftest$ac_exeext; then
14321 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14322 else
14323 echo "$as_me: failed program was:" >&5
14324 sed 's/^/| /' conftest.$ac_ext >&5
14326 ac_cv_lib_ungif_EGifPutExtensionLast=no
14329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14330 conftest$ac_exeext conftest.$ac_ext
14331 LIBS=$ac_check_lib_save_LIBS
14333 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14334 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14335 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14336 HAVE_GIF=yes
14340 if test "$HAVE_GIF" = yes; then
14342 cat >>confdefs.h <<\_ACEOF
14343 #define LIBGIF -lungif
14344 _ACEOF
14346 ac_gif_lib_name="-lungif"
14350 if test "${HAVE_GIF}" = "yes"; then
14352 cat >>confdefs.h <<\_ACEOF
14353 #define HAVE_GIF 1
14354 _ACEOF
14359 if test "${HAVE_X11}" = "yes"; then
14360 MISSING=""
14361 WITH_NO=""
14362 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14363 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14364 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14365 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
14366 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14367 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
14368 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14369 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
14370 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14371 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
14373 if test "X${MISSING}" != X; then
14374 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14375 $MISSING
14376 Maybe some development libraries/packages are missing?
14377 If you don't want to link with them give
14378 $WITH_NO
14379 as options to configure" >&5
14380 echo "$as_me: error: The following required libraries were not found:
14381 $MISSING
14382 Maybe some development libraries/packages are missing?
14383 If you don't want to link with them give
14384 $WITH_NO
14385 as options to configure" >&2;}
14386 { (exit 1); exit 1; }; }
14390 ### Use -lgpm if available, unless `--with-gpm=no'.
14391 HAVE_GPM=no
14392 if test "${with_gpm}" != "no"; then
14393 if test "${ac_cv_header_gpm_h+set}" = set; then
14394 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14395 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14396 if test "${ac_cv_header_gpm_h+set}" = set; then
14397 echo $ECHO_N "(cached) $ECHO_C" >&6
14399 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14400 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14401 else
14402 # Is the header compilable?
14403 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14404 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14405 cat >conftest.$ac_ext <<_ACEOF
14406 /* confdefs.h. */
14407 _ACEOF
14408 cat confdefs.h >>conftest.$ac_ext
14409 cat >>conftest.$ac_ext <<_ACEOF
14410 /* end confdefs.h. */
14411 $ac_includes_default
14412 #include <gpm.h>
14413 _ACEOF
14414 rm -f conftest.$ac_objext
14415 if { (ac_try="$ac_compile"
14416 case "(($ac_try" in
14417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14418 *) ac_try_echo=$ac_try;;
14419 esac
14420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14421 (eval "$ac_compile") 2>conftest.er1
14422 ac_status=$?
14423 grep -v '^ *+' conftest.er1 >conftest.err
14424 rm -f conftest.er1
14425 cat conftest.err >&5
14426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427 (exit $ac_status); } && {
14428 test -z "$ac_c_werror_flag" ||
14429 test ! -s conftest.err
14430 } && test -s conftest.$ac_objext; then
14431 ac_header_compiler=yes
14432 else
14433 echo "$as_me: failed program was:" >&5
14434 sed 's/^/| /' conftest.$ac_ext >&5
14436 ac_header_compiler=no
14439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14440 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14441 echo "${ECHO_T}$ac_header_compiler" >&6; }
14443 # Is the header present?
14444 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14445 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14446 cat >conftest.$ac_ext <<_ACEOF
14447 /* confdefs.h. */
14448 _ACEOF
14449 cat confdefs.h >>conftest.$ac_ext
14450 cat >>conftest.$ac_ext <<_ACEOF
14451 /* end confdefs.h. */
14452 #include <gpm.h>
14453 _ACEOF
14454 if { (ac_try="$ac_cpp conftest.$ac_ext"
14455 case "(($ac_try" in
14456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14457 *) ac_try_echo=$ac_try;;
14458 esac
14459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14460 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14461 ac_status=$?
14462 grep -v '^ *+' conftest.er1 >conftest.err
14463 rm -f conftest.er1
14464 cat conftest.err >&5
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); } >/dev/null && {
14467 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14468 test ! -s conftest.err
14469 }; then
14470 ac_header_preproc=yes
14471 else
14472 echo "$as_me: failed program was:" >&5
14473 sed 's/^/| /' conftest.$ac_ext >&5
14475 ac_header_preproc=no
14478 rm -f conftest.err conftest.$ac_ext
14479 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14480 echo "${ECHO_T}$ac_header_preproc" >&6; }
14482 # So? What about this header?
14483 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14484 yes:no: )
14485 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14486 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14487 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14488 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14489 ac_header_preproc=yes
14491 no:yes:* )
14492 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14493 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14494 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14495 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14496 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14497 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14498 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14499 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14500 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14501 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14502 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14503 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14506 esac
14507 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14508 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14509 if test "${ac_cv_header_gpm_h+set}" = set; then
14510 echo $ECHO_N "(cached) $ECHO_C" >&6
14511 else
14512 ac_cv_header_gpm_h=$ac_header_preproc
14514 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14515 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14518 if test $ac_cv_header_gpm_h = yes; then
14519 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14520 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14521 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14522 echo $ECHO_N "(cached) $ECHO_C" >&6
14523 else
14524 ac_check_lib_save_LIBS=$LIBS
14525 LIBS="-lgpm $LIBS"
14526 cat >conftest.$ac_ext <<_ACEOF
14527 /* confdefs.h. */
14528 _ACEOF
14529 cat confdefs.h >>conftest.$ac_ext
14530 cat >>conftest.$ac_ext <<_ACEOF
14531 /* end confdefs.h. */
14533 /* Override any GCC internal prototype to avoid an error.
14534 Use char because int might match the return type of a GCC
14535 builtin and then its argument prototype would still apply. */
14536 #ifdef __cplusplus
14537 extern "C"
14538 #endif
14539 char Gpm_Open ();
14541 main ()
14543 return Gpm_Open ();
14545 return 0;
14547 _ACEOF
14548 rm -f conftest.$ac_objext conftest$ac_exeext
14549 if { (ac_try="$ac_link"
14550 case "(($ac_try" in
14551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14552 *) ac_try_echo=$ac_try;;
14553 esac
14554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14555 (eval "$ac_link") 2>conftest.er1
14556 ac_status=$?
14557 grep -v '^ *+' conftest.er1 >conftest.err
14558 rm -f conftest.er1
14559 cat conftest.err >&5
14560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 (exit $ac_status); } && {
14562 test -z "$ac_c_werror_flag" ||
14563 test ! -s conftest.err
14564 } && test -s conftest$ac_exeext &&
14565 $as_test_x conftest$ac_exeext; then
14566 ac_cv_lib_gpm_Gpm_Open=yes
14567 else
14568 echo "$as_me: failed program was:" >&5
14569 sed 's/^/| /' conftest.$ac_ext >&5
14571 ac_cv_lib_gpm_Gpm_Open=no
14574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14575 conftest$ac_exeext conftest.$ac_ext
14576 LIBS=$ac_check_lib_save_LIBS
14578 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14579 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14580 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14581 HAVE_GPM=yes
14589 if test "${HAVE_GPM}" = "yes"; then
14591 cat >>confdefs.h <<\_ACEOF
14592 #define HAVE_GPM 1
14593 _ACEOF
14597 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14598 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14599 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14600 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14601 echo $ECHO_N "(cached) $ECHO_C" >&6
14603 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14604 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14605 else
14606 # Is the header compilable?
14607 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14608 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14609 cat >conftest.$ac_ext <<_ACEOF
14610 /* confdefs.h. */
14611 _ACEOF
14612 cat confdefs.h >>conftest.$ac_ext
14613 cat >>conftest.$ac_ext <<_ACEOF
14614 /* end confdefs.h. */
14615 $ac_includes_default
14616 #include <malloc/malloc.h>
14617 _ACEOF
14618 rm -f conftest.$ac_objext
14619 if { (ac_try="$ac_compile"
14620 case "(($ac_try" in
14621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14622 *) ac_try_echo=$ac_try;;
14623 esac
14624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14625 (eval "$ac_compile") 2>conftest.er1
14626 ac_status=$?
14627 grep -v '^ *+' conftest.er1 >conftest.err
14628 rm -f conftest.er1
14629 cat conftest.err >&5
14630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); } && {
14632 test -z "$ac_c_werror_flag" ||
14633 test ! -s conftest.err
14634 } && test -s conftest.$ac_objext; then
14635 ac_header_compiler=yes
14636 else
14637 echo "$as_me: failed program was:" >&5
14638 sed 's/^/| /' conftest.$ac_ext >&5
14640 ac_header_compiler=no
14643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14644 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14645 echo "${ECHO_T}$ac_header_compiler" >&6; }
14647 # Is the header present?
14648 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14649 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14650 cat >conftest.$ac_ext <<_ACEOF
14651 /* confdefs.h. */
14652 _ACEOF
14653 cat confdefs.h >>conftest.$ac_ext
14654 cat >>conftest.$ac_ext <<_ACEOF
14655 /* end confdefs.h. */
14656 #include <malloc/malloc.h>
14657 _ACEOF
14658 if { (ac_try="$ac_cpp conftest.$ac_ext"
14659 case "(($ac_try" in
14660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14661 *) ac_try_echo=$ac_try;;
14662 esac
14663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14665 ac_status=$?
14666 grep -v '^ *+' conftest.er1 >conftest.err
14667 rm -f conftest.er1
14668 cat conftest.err >&5
14669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670 (exit $ac_status); } >/dev/null && {
14671 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14672 test ! -s conftest.err
14673 }; then
14674 ac_header_preproc=yes
14675 else
14676 echo "$as_me: failed program was:" >&5
14677 sed 's/^/| /' conftest.$ac_ext >&5
14679 ac_header_preproc=no
14682 rm -f conftest.err conftest.$ac_ext
14683 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14684 echo "${ECHO_T}$ac_header_preproc" >&6; }
14686 # So? What about this header?
14687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14688 yes:no: )
14689 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14690 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14691 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14692 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14693 ac_header_preproc=yes
14695 no:yes:* )
14696 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14697 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14698 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14699 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14700 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14701 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14702 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14703 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14704 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14705 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14706 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14707 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14710 esac
14711 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14712 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14713 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14714 echo $ECHO_N "(cached) $ECHO_C" >&6
14715 else
14716 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14718 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14719 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14722 if test $ac_cv_header_malloc_malloc_h = yes; then
14724 cat >>confdefs.h <<\_ACEOF
14725 #define HAVE_MALLOC_MALLOC_H 1
14726 _ACEOF
14732 ### Use Mac OS X Carbon API to implement GUI.
14733 if test "${HAVE_CARBON}" = "yes"; then
14735 cat >>confdefs.h <<\_ACEOF
14736 #define HAVE_CARBON 1
14737 _ACEOF
14739 ## Specify the install directory
14740 carbon_appdir=
14741 if test "${carbon_appdir_x}" != ""; then
14742 case ${carbon_appdir_x} in
14743 y | ye | yes) carbon_appdir=/Applications ;;
14744 * ) carbon_appdir=${carbon_appdir_x} ;;
14745 esac
14747 # We also have mouse menus.
14748 HAVE_MENUS=yes
14751 ### Use session management (-lSM -lICE) if available
14752 HAVE_X_SM=no
14753 if test "${HAVE_X11}" = "yes"; then
14754 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14755 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14756 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14757 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14758 echo $ECHO_N "(cached) $ECHO_C" >&6
14760 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14761 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14762 else
14763 # Is the header compilable?
14764 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14765 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14766 cat >conftest.$ac_ext <<_ACEOF
14767 /* confdefs.h. */
14768 _ACEOF
14769 cat confdefs.h >>conftest.$ac_ext
14770 cat >>conftest.$ac_ext <<_ACEOF
14771 /* end confdefs.h. */
14772 $ac_includes_default
14773 #include <X11/SM/SMlib.h>
14774 _ACEOF
14775 rm -f conftest.$ac_objext
14776 if { (ac_try="$ac_compile"
14777 case "(($ac_try" in
14778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14779 *) ac_try_echo=$ac_try;;
14780 esac
14781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14782 (eval "$ac_compile") 2>conftest.er1
14783 ac_status=$?
14784 grep -v '^ *+' conftest.er1 >conftest.err
14785 rm -f conftest.er1
14786 cat conftest.err >&5
14787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788 (exit $ac_status); } && {
14789 test -z "$ac_c_werror_flag" ||
14790 test ! -s conftest.err
14791 } && test -s conftest.$ac_objext; then
14792 ac_header_compiler=yes
14793 else
14794 echo "$as_me: failed program was:" >&5
14795 sed 's/^/| /' conftest.$ac_ext >&5
14797 ac_header_compiler=no
14800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14801 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14802 echo "${ECHO_T}$ac_header_compiler" >&6; }
14804 # Is the header present?
14805 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14806 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14807 cat >conftest.$ac_ext <<_ACEOF
14808 /* confdefs.h. */
14809 _ACEOF
14810 cat confdefs.h >>conftest.$ac_ext
14811 cat >>conftest.$ac_ext <<_ACEOF
14812 /* end confdefs.h. */
14813 #include <X11/SM/SMlib.h>
14814 _ACEOF
14815 if { (ac_try="$ac_cpp conftest.$ac_ext"
14816 case "(($ac_try" in
14817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14818 *) ac_try_echo=$ac_try;;
14819 esac
14820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14822 ac_status=$?
14823 grep -v '^ *+' conftest.er1 >conftest.err
14824 rm -f conftest.er1
14825 cat conftest.err >&5
14826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827 (exit $ac_status); } >/dev/null && {
14828 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14829 test ! -s conftest.err
14830 }; then
14831 ac_header_preproc=yes
14832 else
14833 echo "$as_me: failed program was:" >&5
14834 sed 's/^/| /' conftest.$ac_ext >&5
14836 ac_header_preproc=no
14839 rm -f conftest.err conftest.$ac_ext
14840 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14841 echo "${ECHO_T}$ac_header_preproc" >&6; }
14843 # So? What about this header?
14844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14845 yes:no: )
14846 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14847 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14848 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14849 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14850 ac_header_preproc=yes
14852 no:yes:* )
14853 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14854 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14855 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14856 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14857 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14858 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14859 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14860 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14861 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14862 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14863 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14864 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14867 esac
14868 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14869 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14870 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14871 echo $ECHO_N "(cached) $ECHO_C" >&6
14872 else
14873 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14875 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14876 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14879 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14880 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14881 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14882 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14883 echo $ECHO_N "(cached) $ECHO_C" >&6
14884 else
14885 ac_check_lib_save_LIBS=$LIBS
14886 LIBS="-lSM -lICE $LIBS"
14887 cat >conftest.$ac_ext <<_ACEOF
14888 /* confdefs.h. */
14889 _ACEOF
14890 cat confdefs.h >>conftest.$ac_ext
14891 cat >>conftest.$ac_ext <<_ACEOF
14892 /* end confdefs.h. */
14894 /* Override any GCC internal prototype to avoid an error.
14895 Use char because int might match the return type of a GCC
14896 builtin and then its argument prototype would still apply. */
14897 #ifdef __cplusplus
14898 extern "C"
14899 #endif
14900 char SmcOpenConnection ();
14902 main ()
14904 return SmcOpenConnection ();
14906 return 0;
14908 _ACEOF
14909 rm -f conftest.$ac_objext conftest$ac_exeext
14910 if { (ac_try="$ac_link"
14911 case "(($ac_try" in
14912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14913 *) ac_try_echo=$ac_try;;
14914 esac
14915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14916 (eval "$ac_link") 2>conftest.er1
14917 ac_status=$?
14918 grep -v '^ *+' conftest.er1 >conftest.err
14919 rm -f conftest.er1
14920 cat conftest.err >&5
14921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922 (exit $ac_status); } && {
14923 test -z "$ac_c_werror_flag" ||
14924 test ! -s conftest.err
14925 } && test -s conftest$ac_exeext &&
14926 $as_test_x conftest$ac_exeext; then
14927 ac_cv_lib_SM_SmcOpenConnection=yes
14928 else
14929 echo "$as_me: failed program was:" >&5
14930 sed 's/^/| /' conftest.$ac_ext >&5
14932 ac_cv_lib_SM_SmcOpenConnection=no
14935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14936 conftest$ac_exeext conftest.$ac_ext
14937 LIBS=$ac_check_lib_save_LIBS
14939 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14940 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14941 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14942 HAVE_X_SM=yes
14949 if test "${HAVE_X_SM}" = "yes"; then
14951 cat >>confdefs.h <<\_ACEOF
14952 #define HAVE_X_SM 1
14953 _ACEOF
14955 case "$LIBS" in
14956 *-lSM*) ;;
14957 *) LIBS="-lSM -lICE $LIBS" ;;
14958 esac
14962 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14963 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14964 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14965 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14966 echo $ECHO_N "(cached) $ECHO_C" >&6
14967 else
14968 cat >conftest.$ac_ext <<_ACEOF
14969 /* confdefs.h. */
14970 _ACEOF
14971 cat confdefs.h >>conftest.$ac_ext
14972 cat >>conftest.$ac_ext <<_ACEOF
14973 /* end confdefs.h. */
14974 #include <netdb.h>
14976 main ()
14978 return h_errno;
14980 return 0;
14982 _ACEOF
14983 rm -f conftest.$ac_objext conftest$ac_exeext
14984 if { (ac_try="$ac_link"
14985 case "(($ac_try" in
14986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14987 *) ac_try_echo=$ac_try;;
14988 esac
14989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14990 (eval "$ac_link") 2>conftest.er1
14991 ac_status=$?
14992 grep -v '^ *+' conftest.er1 >conftest.err
14993 rm -f conftest.er1
14994 cat conftest.err >&5
14995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996 (exit $ac_status); } && {
14997 test -z "$ac_c_werror_flag" ||
14998 test ! -s conftest.err
14999 } && test -s conftest$ac_exeext &&
15000 $as_test_x conftest$ac_exeext; then
15001 emacs_cv_netdb_declares_h_errno=yes
15002 else
15003 echo "$as_me: failed program was:" >&5
15004 sed 's/^/| /' conftest.$ac_ext >&5
15006 emacs_cv_netdb_declares_h_errno=no
15009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15010 conftest$ac_exeext conftest.$ac_ext
15012 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15013 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15014 if test $emacs_cv_netdb_declares_h_errno = yes; then
15016 cat >>confdefs.h <<\_ACEOF
15017 #define HAVE_H_ERRNO 1
15018 _ACEOF
15022 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15023 # for constant arguments. Useless!
15024 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15025 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15026 if test "${ac_cv_working_alloca_h+set}" = set; then
15027 echo $ECHO_N "(cached) $ECHO_C" >&6
15028 else
15029 cat >conftest.$ac_ext <<_ACEOF
15030 /* confdefs.h. */
15031 _ACEOF
15032 cat confdefs.h >>conftest.$ac_ext
15033 cat >>conftest.$ac_ext <<_ACEOF
15034 /* end confdefs.h. */
15035 #include <alloca.h>
15037 main ()
15039 char *p = (char *) alloca (2 * sizeof (int));
15040 if (p) return 0;
15042 return 0;
15044 _ACEOF
15045 rm -f conftest.$ac_objext conftest$ac_exeext
15046 if { (ac_try="$ac_link"
15047 case "(($ac_try" in
15048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15049 *) ac_try_echo=$ac_try;;
15050 esac
15051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15052 (eval "$ac_link") 2>conftest.er1
15053 ac_status=$?
15054 grep -v '^ *+' conftest.er1 >conftest.err
15055 rm -f conftest.er1
15056 cat conftest.err >&5
15057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058 (exit $ac_status); } && {
15059 test -z "$ac_c_werror_flag" ||
15060 test ! -s conftest.err
15061 } && test -s conftest$ac_exeext &&
15062 $as_test_x conftest$ac_exeext; then
15063 ac_cv_working_alloca_h=yes
15064 else
15065 echo "$as_me: failed program was:" >&5
15066 sed 's/^/| /' conftest.$ac_ext >&5
15068 ac_cv_working_alloca_h=no
15071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15072 conftest$ac_exeext conftest.$ac_ext
15074 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15075 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15076 if test $ac_cv_working_alloca_h = yes; then
15078 cat >>confdefs.h <<\_ACEOF
15079 #define HAVE_ALLOCA_H 1
15080 _ACEOF
15084 { echo "$as_me:$LINENO: checking for alloca" >&5
15085 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15086 if test "${ac_cv_func_alloca_works+set}" = set; then
15087 echo $ECHO_N "(cached) $ECHO_C" >&6
15088 else
15089 cat >conftest.$ac_ext <<_ACEOF
15090 /* confdefs.h. */
15091 _ACEOF
15092 cat confdefs.h >>conftest.$ac_ext
15093 cat >>conftest.$ac_ext <<_ACEOF
15094 /* end confdefs.h. */
15095 #ifdef __GNUC__
15096 # define alloca __builtin_alloca
15097 #else
15098 # ifdef _MSC_VER
15099 # include <malloc.h>
15100 # define alloca _alloca
15101 # else
15102 # ifdef HAVE_ALLOCA_H
15103 # include <alloca.h>
15104 # else
15105 # ifdef _AIX
15106 #pragma alloca
15107 # else
15108 # ifndef alloca /* predefined by HP cc +Olibcalls */
15109 char *alloca ();
15110 # endif
15111 # endif
15112 # endif
15113 # endif
15114 #endif
15117 main ()
15119 char *p = (char *) alloca (1);
15120 if (p) return 0;
15122 return 0;
15124 _ACEOF
15125 rm -f conftest.$ac_objext conftest$ac_exeext
15126 if { (ac_try="$ac_link"
15127 case "(($ac_try" in
15128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15129 *) ac_try_echo=$ac_try;;
15130 esac
15131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15132 (eval "$ac_link") 2>conftest.er1
15133 ac_status=$?
15134 grep -v '^ *+' conftest.er1 >conftest.err
15135 rm -f conftest.er1
15136 cat conftest.err >&5
15137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15138 (exit $ac_status); } && {
15139 test -z "$ac_c_werror_flag" ||
15140 test ! -s conftest.err
15141 } && test -s conftest$ac_exeext &&
15142 $as_test_x conftest$ac_exeext; then
15143 ac_cv_func_alloca_works=yes
15144 else
15145 echo "$as_me: failed program was:" >&5
15146 sed 's/^/| /' conftest.$ac_ext >&5
15148 ac_cv_func_alloca_works=no
15151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15152 conftest$ac_exeext conftest.$ac_ext
15154 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15155 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15157 if test $ac_cv_func_alloca_works = yes; then
15159 cat >>confdefs.h <<\_ACEOF
15160 #define HAVE_ALLOCA 1
15161 _ACEOF
15163 else
15164 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15165 # that cause trouble. Some versions do not even contain alloca or
15166 # contain a buggy version. If you still want to use their alloca,
15167 # use ar to extract alloca.o from them instead of compiling alloca.c.
15169 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15171 cat >>confdefs.h <<\_ACEOF
15172 #define C_ALLOCA 1
15173 _ACEOF
15176 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15177 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
15178 if test "${ac_cv_os_cray+set}" = set; then
15179 echo $ECHO_N "(cached) $ECHO_C" >&6
15180 else
15181 cat >conftest.$ac_ext <<_ACEOF
15182 /* confdefs.h. */
15183 _ACEOF
15184 cat confdefs.h >>conftest.$ac_ext
15185 cat >>conftest.$ac_ext <<_ACEOF
15186 /* end confdefs.h. */
15187 #if defined CRAY && ! defined CRAY2
15188 webecray
15189 #else
15190 wenotbecray
15191 #endif
15193 _ACEOF
15194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15195 $EGREP "webecray" >/dev/null 2>&1; then
15196 ac_cv_os_cray=yes
15197 else
15198 ac_cv_os_cray=no
15200 rm -f conftest*
15203 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15204 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15205 if test $ac_cv_os_cray = yes; then
15206 for ac_func in _getb67 GETB67 getb67; do
15207 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15208 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15209 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15210 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15211 echo $ECHO_N "(cached) $ECHO_C" >&6
15212 else
15213 cat >conftest.$ac_ext <<_ACEOF
15214 /* confdefs.h. */
15215 _ACEOF
15216 cat confdefs.h >>conftest.$ac_ext
15217 cat >>conftest.$ac_ext <<_ACEOF
15218 /* end confdefs.h. */
15219 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15221 #define $ac_func innocuous_$ac_func
15223 /* System header to define __stub macros and hopefully few prototypes,
15224 which can conflict with char $ac_func (); below.
15225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15226 <limits.h> exists even on freestanding compilers. */
15228 #ifdef __STDC__
15229 # include <limits.h>
15230 #else
15231 # include <assert.h>
15232 #endif
15234 #undef $ac_func
15236 /* Override any GCC internal prototype to avoid an error.
15237 Use char because int might match the return type of a GCC
15238 builtin and then its argument prototype would still apply. */
15239 #ifdef __cplusplus
15240 extern "C"
15241 #endif
15242 char $ac_func ();
15243 /* The GNU C library defines this for functions which it implements
15244 to always fail with ENOSYS. Some functions are actually named
15245 something starting with __ and the normal name is an alias. */
15246 #if defined __stub_$ac_func || defined __stub___$ac_func
15247 choke me
15248 #endif
15251 main ()
15253 return $ac_func ();
15255 return 0;
15257 _ACEOF
15258 rm -f conftest.$ac_objext conftest$ac_exeext
15259 if { (ac_try="$ac_link"
15260 case "(($ac_try" in
15261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15262 *) ac_try_echo=$ac_try;;
15263 esac
15264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15265 (eval "$ac_link") 2>conftest.er1
15266 ac_status=$?
15267 grep -v '^ *+' conftest.er1 >conftest.err
15268 rm -f conftest.er1
15269 cat conftest.err >&5
15270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15271 (exit $ac_status); } && {
15272 test -z "$ac_c_werror_flag" ||
15273 test ! -s conftest.err
15274 } && test -s conftest$ac_exeext &&
15275 $as_test_x conftest$ac_exeext; then
15276 eval "$as_ac_var=yes"
15277 else
15278 echo "$as_me: failed program was:" >&5
15279 sed 's/^/| /' conftest.$ac_ext >&5
15281 eval "$as_ac_var=no"
15284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15285 conftest$ac_exeext conftest.$ac_ext
15287 ac_res=`eval echo '${'$as_ac_var'}'`
15288 { echo "$as_me:$LINENO: result: $ac_res" >&5
15289 echo "${ECHO_T}$ac_res" >&6; }
15290 if test `eval echo '${'$as_ac_var'}'` = yes; then
15292 cat >>confdefs.h <<_ACEOF
15293 #define CRAY_STACKSEG_END $ac_func
15294 _ACEOF
15296 break
15299 done
15302 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15303 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
15304 if test "${ac_cv_c_stack_direction+set}" = set; then
15305 echo $ECHO_N "(cached) $ECHO_C" >&6
15306 else
15307 if test "$cross_compiling" = yes; then
15308 ac_cv_c_stack_direction=0
15309 else
15310 cat >conftest.$ac_ext <<_ACEOF
15311 /* confdefs.h. */
15312 _ACEOF
15313 cat confdefs.h >>conftest.$ac_ext
15314 cat >>conftest.$ac_ext <<_ACEOF
15315 /* end confdefs.h. */
15316 $ac_includes_default
15318 find_stack_direction ()
15320 static char *addr = 0;
15321 auto char dummy;
15322 if (addr == 0)
15324 addr = &dummy;
15325 return find_stack_direction ();
15327 else
15328 return (&dummy > addr) ? 1 : -1;
15332 main ()
15334 return find_stack_direction () < 0;
15336 _ACEOF
15337 rm -f conftest$ac_exeext
15338 if { (ac_try="$ac_link"
15339 case "(($ac_try" in
15340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15341 *) ac_try_echo=$ac_try;;
15342 esac
15343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15344 (eval "$ac_link") 2>&5
15345 ac_status=$?
15346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15348 { (case "(($ac_try" in
15349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15350 *) ac_try_echo=$ac_try;;
15351 esac
15352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15353 (eval "$ac_try") 2>&5
15354 ac_status=$?
15355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356 (exit $ac_status); }; }; then
15357 ac_cv_c_stack_direction=1
15358 else
15359 echo "$as_me: program exited with status $ac_status" >&5
15360 echo "$as_me: failed program was:" >&5
15361 sed 's/^/| /' conftest.$ac_ext >&5
15363 ( exit $ac_status )
15364 ac_cv_c_stack_direction=-1
15366 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15371 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15372 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15374 cat >>confdefs.h <<_ACEOF
15375 #define STACK_DIRECTION $ac_cv_c_stack_direction
15376 _ACEOF
15382 if test x"$ac_cv_func_alloca_works" != xyes; then
15383 { { echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
15384 echo "$as_me: error: a system implementation of alloca is required " >&2;}
15385 { (exit 1); exit 1; }; }
15388 # fmod, logb, and frexp are found in -lm on most systems.
15389 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15391 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15392 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15393 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15394 echo $ECHO_N "(cached) $ECHO_C" >&6
15395 else
15396 ac_check_lib_save_LIBS=$LIBS
15397 LIBS="-lm $LIBS"
15398 cat >conftest.$ac_ext <<_ACEOF
15399 /* confdefs.h. */
15400 _ACEOF
15401 cat confdefs.h >>conftest.$ac_ext
15402 cat >>conftest.$ac_ext <<_ACEOF
15403 /* end confdefs.h. */
15405 /* Override any GCC internal prototype to avoid an error.
15406 Use char because int might match the return type of a GCC
15407 builtin and then its argument prototype would still apply. */
15408 #ifdef __cplusplus
15409 extern "C"
15410 #endif
15411 char sqrt ();
15413 main ()
15415 return sqrt ();
15417 return 0;
15419 _ACEOF
15420 rm -f conftest.$ac_objext conftest$ac_exeext
15421 if { (ac_try="$ac_link"
15422 case "(($ac_try" in
15423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15424 *) ac_try_echo=$ac_try;;
15425 esac
15426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15427 (eval "$ac_link") 2>conftest.er1
15428 ac_status=$?
15429 grep -v '^ *+' conftest.er1 >conftest.err
15430 rm -f conftest.er1
15431 cat conftest.err >&5
15432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433 (exit $ac_status); } && {
15434 test -z "$ac_c_werror_flag" ||
15435 test ! -s conftest.err
15436 } && test -s conftest$ac_exeext &&
15437 $as_test_x conftest$ac_exeext; then
15438 ac_cv_lib_m_sqrt=yes
15439 else
15440 echo "$as_me: failed program was:" >&5
15441 sed 's/^/| /' conftest.$ac_ext >&5
15443 ac_cv_lib_m_sqrt=no
15446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15447 conftest$ac_exeext conftest.$ac_ext
15448 LIBS=$ac_check_lib_save_LIBS
15450 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15451 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15452 if test $ac_cv_lib_m_sqrt = yes; then
15453 cat >>confdefs.h <<_ACEOF
15454 #define HAVE_LIBM 1
15455 _ACEOF
15457 LIBS="-lm $LIBS"
15462 # Check for mail-locking functions in a "mail" library. Probably this should
15463 # have the same check as for liblockfile below.
15465 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15466 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15467 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15468 echo $ECHO_N "(cached) $ECHO_C" >&6
15469 else
15470 ac_check_lib_save_LIBS=$LIBS
15471 LIBS="-lmail $LIBS"
15472 cat >conftest.$ac_ext <<_ACEOF
15473 /* confdefs.h. */
15474 _ACEOF
15475 cat confdefs.h >>conftest.$ac_ext
15476 cat >>conftest.$ac_ext <<_ACEOF
15477 /* end confdefs.h. */
15479 /* Override any GCC internal prototype to avoid an error.
15480 Use char because int might match the return type of a GCC
15481 builtin and then its argument prototype would still apply. */
15482 #ifdef __cplusplus
15483 extern "C"
15484 #endif
15485 char maillock ();
15487 main ()
15489 return maillock ();
15491 return 0;
15493 _ACEOF
15494 rm -f conftest.$ac_objext conftest$ac_exeext
15495 if { (ac_try="$ac_link"
15496 case "(($ac_try" in
15497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15498 *) ac_try_echo=$ac_try;;
15499 esac
15500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15501 (eval "$ac_link") 2>conftest.er1
15502 ac_status=$?
15503 grep -v '^ *+' conftest.er1 >conftest.err
15504 rm -f conftest.er1
15505 cat conftest.err >&5
15506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507 (exit $ac_status); } && {
15508 test -z "$ac_c_werror_flag" ||
15509 test ! -s conftest.err
15510 } && test -s conftest$ac_exeext &&
15511 $as_test_x conftest$ac_exeext; then
15512 ac_cv_lib_mail_maillock=yes
15513 else
15514 echo "$as_me: failed program was:" >&5
15515 sed 's/^/| /' conftest.$ac_ext >&5
15517 ac_cv_lib_mail_maillock=no
15520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15521 conftest$ac_exeext conftest.$ac_ext
15522 LIBS=$ac_check_lib_save_LIBS
15524 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15525 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15526 if test $ac_cv_lib_mail_maillock = yes; then
15527 cat >>confdefs.h <<_ACEOF
15528 #define HAVE_LIBMAIL 1
15529 _ACEOF
15531 LIBS="-lmail $LIBS"
15536 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15537 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15538 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15539 echo $ECHO_N "(cached) $ECHO_C" >&6
15540 else
15541 ac_check_lib_save_LIBS=$LIBS
15542 LIBS="-llockfile $LIBS"
15543 cat >conftest.$ac_ext <<_ACEOF
15544 /* confdefs.h. */
15545 _ACEOF
15546 cat confdefs.h >>conftest.$ac_ext
15547 cat >>conftest.$ac_ext <<_ACEOF
15548 /* end confdefs.h. */
15550 /* Override any GCC internal prototype to avoid an error.
15551 Use char because int might match the return type of a GCC
15552 builtin and then its argument prototype would still apply. */
15553 #ifdef __cplusplus
15554 extern "C"
15555 #endif
15556 char maillock ();
15558 main ()
15560 return maillock ();
15562 return 0;
15564 _ACEOF
15565 rm -f conftest.$ac_objext conftest$ac_exeext
15566 if { (ac_try="$ac_link"
15567 case "(($ac_try" in
15568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15569 *) ac_try_echo=$ac_try;;
15570 esac
15571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15572 (eval "$ac_link") 2>conftest.er1
15573 ac_status=$?
15574 grep -v '^ *+' conftest.er1 >conftest.err
15575 rm -f conftest.er1
15576 cat conftest.err >&5
15577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578 (exit $ac_status); } && {
15579 test -z "$ac_c_werror_flag" ||
15580 test ! -s conftest.err
15581 } && test -s conftest$ac_exeext &&
15582 $as_test_x conftest$ac_exeext; then
15583 ac_cv_lib_lockfile_maillock=yes
15584 else
15585 echo "$as_me: failed program was:" >&5
15586 sed 's/^/| /' conftest.$ac_ext >&5
15588 ac_cv_lib_lockfile_maillock=no
15591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15592 conftest$ac_exeext conftest.$ac_ext
15593 LIBS=$ac_check_lib_save_LIBS
15595 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15596 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15597 if test $ac_cv_lib_lockfile_maillock = yes; then
15598 cat >>confdefs.h <<_ACEOF
15599 #define HAVE_LIBLOCKFILE 1
15600 _ACEOF
15602 LIBS="-llockfile $LIBS"
15606 # If we have the shared liblockfile, assume we must use it for mail
15607 # locking (e.g. Debian). If we couldn't link against liblockfile
15608 # (no liblockfile.a installed), ensure that we don't need to.
15609 if test "$ac_cv_lib_lockfile_maillock" = no; then
15610 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15611 set dummy liblockfile.so; ac_word=$2
15612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15614 if test "${ac_cv_prog_liblockfile+set}" = set; then
15615 echo $ECHO_N "(cached) $ECHO_C" >&6
15616 else
15617 if test -n "$liblockfile"; then
15618 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15619 else
15620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15621 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15622 for as_dir in $as_dummy
15624 IFS=$as_save_IFS
15625 test -z "$as_dir" && as_dir=.
15626 for ac_exec_ext in '' $ac_executable_extensions; do
15627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15628 ac_cv_prog_liblockfile="yes"
15629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15630 break 2
15632 done
15633 done
15634 IFS=$as_save_IFS
15636 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15639 liblockfile=$ac_cv_prog_liblockfile
15640 if test -n "$liblockfile"; then
15641 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15642 echo "${ECHO_T}$liblockfile" >&6; }
15643 else
15644 { echo "$as_me:$LINENO: result: no" >&5
15645 echo "${ECHO_T}no" >&6; }
15649 if test $ac_cv_prog_liblockfile = yes; then
15650 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15651 This probably means that movemail could lose mail.
15652 There may be a \`development' package to install containing liblockfile." >&5
15653 echo "$as_me: error: Shared liblockfile found but can't link against it.
15654 This probably means that movemail could lose mail.
15655 There may be a \`development' package to install containing liblockfile." >&2;}
15656 { (exit 1); exit 1; }; }
15657 else :
15661 for ac_func in touchlock
15663 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15664 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15665 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15666 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15667 echo $ECHO_N "(cached) $ECHO_C" >&6
15668 else
15669 cat >conftest.$ac_ext <<_ACEOF
15670 /* confdefs.h. */
15671 _ACEOF
15672 cat confdefs.h >>conftest.$ac_ext
15673 cat >>conftest.$ac_ext <<_ACEOF
15674 /* end confdefs.h. */
15675 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15676 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15677 #define $ac_func innocuous_$ac_func
15679 /* System header to define __stub macros and hopefully few prototypes,
15680 which can conflict with char $ac_func (); below.
15681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15682 <limits.h> exists even on freestanding compilers. */
15684 #ifdef __STDC__
15685 # include <limits.h>
15686 #else
15687 # include <assert.h>
15688 #endif
15690 #undef $ac_func
15692 /* Override any GCC internal prototype to avoid an error.
15693 Use char because int might match the return type of a GCC
15694 builtin and then its argument prototype would still apply. */
15695 #ifdef __cplusplus
15696 extern "C"
15697 #endif
15698 char $ac_func ();
15699 /* The GNU C library defines this for functions which it implements
15700 to always fail with ENOSYS. Some functions are actually named
15701 something starting with __ and the normal name is an alias. */
15702 #if defined __stub_$ac_func || defined __stub___$ac_func
15703 choke me
15704 #endif
15707 main ()
15709 return $ac_func ();
15711 return 0;
15713 _ACEOF
15714 rm -f conftest.$ac_objext conftest$ac_exeext
15715 if { (ac_try="$ac_link"
15716 case "(($ac_try" in
15717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15718 *) ac_try_echo=$ac_try;;
15719 esac
15720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15721 (eval "$ac_link") 2>conftest.er1
15722 ac_status=$?
15723 grep -v '^ *+' conftest.er1 >conftest.err
15724 rm -f conftest.er1
15725 cat conftest.err >&5
15726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15727 (exit $ac_status); } && {
15728 test -z "$ac_c_werror_flag" ||
15729 test ! -s conftest.err
15730 } && test -s conftest$ac_exeext &&
15731 $as_test_x conftest$ac_exeext; then
15732 eval "$as_ac_var=yes"
15733 else
15734 echo "$as_me: failed program was:" >&5
15735 sed 's/^/| /' conftest.$ac_ext >&5
15737 eval "$as_ac_var=no"
15740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15741 conftest$ac_exeext conftest.$ac_ext
15743 ac_res=`eval echo '${'$as_ac_var'}'`
15744 { echo "$as_me:$LINENO: result: $ac_res" >&5
15745 echo "${ECHO_T}$ac_res" >&6; }
15746 if test `eval echo '${'$as_ac_var'}'` = yes; then
15747 cat >>confdefs.h <<_ACEOF
15748 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15749 _ACEOF
15752 done
15755 for ac_header in maillock.h
15757 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15759 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15761 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15762 echo $ECHO_N "(cached) $ECHO_C" >&6
15764 ac_res=`eval echo '${'$as_ac_Header'}'`
15765 { echo "$as_me:$LINENO: result: $ac_res" >&5
15766 echo "${ECHO_T}$ac_res" >&6; }
15767 else
15768 # Is the header compilable?
15769 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15770 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15771 cat >conftest.$ac_ext <<_ACEOF
15772 /* confdefs.h. */
15773 _ACEOF
15774 cat confdefs.h >>conftest.$ac_ext
15775 cat >>conftest.$ac_ext <<_ACEOF
15776 /* end confdefs.h. */
15777 $ac_includes_default
15778 #include <$ac_header>
15779 _ACEOF
15780 rm -f conftest.$ac_objext
15781 if { (ac_try="$ac_compile"
15782 case "(($ac_try" in
15783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15784 *) ac_try_echo=$ac_try;;
15785 esac
15786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15787 (eval "$ac_compile") 2>conftest.er1
15788 ac_status=$?
15789 grep -v '^ *+' conftest.er1 >conftest.err
15790 rm -f conftest.er1
15791 cat conftest.err >&5
15792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15793 (exit $ac_status); } && {
15794 test -z "$ac_c_werror_flag" ||
15795 test ! -s conftest.err
15796 } && test -s conftest.$ac_objext; then
15797 ac_header_compiler=yes
15798 else
15799 echo "$as_me: failed program was:" >&5
15800 sed 's/^/| /' conftest.$ac_ext >&5
15802 ac_header_compiler=no
15805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15806 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15807 echo "${ECHO_T}$ac_header_compiler" >&6; }
15809 # Is the header present?
15810 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15811 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15812 cat >conftest.$ac_ext <<_ACEOF
15813 /* confdefs.h. */
15814 _ACEOF
15815 cat confdefs.h >>conftest.$ac_ext
15816 cat >>conftest.$ac_ext <<_ACEOF
15817 /* end confdefs.h. */
15818 #include <$ac_header>
15819 _ACEOF
15820 if { (ac_try="$ac_cpp conftest.$ac_ext"
15821 case "(($ac_try" in
15822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15823 *) ac_try_echo=$ac_try;;
15824 esac
15825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15827 ac_status=$?
15828 grep -v '^ *+' conftest.er1 >conftest.err
15829 rm -f conftest.er1
15830 cat conftest.err >&5
15831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15832 (exit $ac_status); } >/dev/null && {
15833 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15834 test ! -s conftest.err
15835 }; then
15836 ac_header_preproc=yes
15837 else
15838 echo "$as_me: failed program was:" >&5
15839 sed 's/^/| /' conftest.$ac_ext >&5
15841 ac_header_preproc=no
15844 rm -f conftest.err conftest.$ac_ext
15845 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15846 echo "${ECHO_T}$ac_header_preproc" >&6; }
15848 # So? What about this header?
15849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15850 yes:no: )
15851 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15852 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15854 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15855 ac_header_preproc=yes
15857 no:yes:* )
15858 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15859 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15860 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15861 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15862 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15863 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15864 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15865 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15868 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15869 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15872 esac
15873 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15876 echo $ECHO_N "(cached) $ECHO_C" >&6
15877 else
15878 eval "$as_ac_Header=\$ac_header_preproc"
15880 ac_res=`eval echo '${'$as_ac_Header'}'`
15881 { echo "$as_me:$LINENO: result: $ac_res" >&5
15882 echo "${ECHO_T}$ac_res" >&6; }
15885 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15886 cat >>confdefs.h <<_ACEOF
15887 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15888 _ACEOF
15892 done
15963 for ac_func in gethostname getdomainname dup2 \
15964 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15965 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
15966 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15967 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15968 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15969 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15970 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15971 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15973 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15974 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15975 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15976 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15977 echo $ECHO_N "(cached) $ECHO_C" >&6
15978 else
15979 cat >conftest.$ac_ext <<_ACEOF
15980 /* confdefs.h. */
15981 _ACEOF
15982 cat confdefs.h >>conftest.$ac_ext
15983 cat >>conftest.$ac_ext <<_ACEOF
15984 /* end confdefs.h. */
15985 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15987 #define $ac_func innocuous_$ac_func
15989 /* System header to define __stub macros and hopefully few prototypes,
15990 which can conflict with char $ac_func (); below.
15991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15992 <limits.h> exists even on freestanding compilers. */
15994 #ifdef __STDC__
15995 # include <limits.h>
15996 #else
15997 # include <assert.h>
15998 #endif
16000 #undef $ac_func
16002 /* Override any GCC internal prototype to avoid an error.
16003 Use char because int might match the return type of a GCC
16004 builtin and then its argument prototype would still apply. */
16005 #ifdef __cplusplus
16006 extern "C"
16007 #endif
16008 char $ac_func ();
16009 /* The GNU C library defines this for functions which it implements
16010 to always fail with ENOSYS. Some functions are actually named
16011 something starting with __ and the normal name is an alias. */
16012 #if defined __stub_$ac_func || defined __stub___$ac_func
16013 choke me
16014 #endif
16017 main ()
16019 return $ac_func ();
16021 return 0;
16023 _ACEOF
16024 rm -f conftest.$ac_objext conftest$ac_exeext
16025 if { (ac_try="$ac_link"
16026 case "(($ac_try" in
16027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16028 *) ac_try_echo=$ac_try;;
16029 esac
16030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16031 (eval "$ac_link") 2>conftest.er1
16032 ac_status=$?
16033 grep -v '^ *+' conftest.er1 >conftest.err
16034 rm -f conftest.er1
16035 cat conftest.err >&5
16036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037 (exit $ac_status); } && {
16038 test -z "$ac_c_werror_flag" ||
16039 test ! -s conftest.err
16040 } && test -s conftest$ac_exeext &&
16041 $as_test_x conftest$ac_exeext; then
16042 eval "$as_ac_var=yes"
16043 else
16044 echo "$as_me: failed program was:" >&5
16045 sed 's/^/| /' conftest.$ac_ext >&5
16047 eval "$as_ac_var=no"
16050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16051 conftest$ac_exeext conftest.$ac_ext
16053 ac_res=`eval echo '${'$as_ac_var'}'`
16054 { echo "$as_me:$LINENO: result: $ac_res" >&5
16055 echo "${ECHO_T}$ac_res" >&6; }
16056 if test `eval echo '${'$as_ac_var'}'` = yes; then
16057 cat >>confdefs.h <<_ACEOF
16058 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16059 _ACEOF
16062 done
16066 for ac_header in sys/un.h
16068 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16069 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16070 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16072 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16073 echo $ECHO_N "(cached) $ECHO_C" >&6
16075 ac_res=`eval echo '${'$as_ac_Header'}'`
16076 { echo "$as_me:$LINENO: result: $ac_res" >&5
16077 echo "${ECHO_T}$ac_res" >&6; }
16078 else
16079 # Is the header compilable?
16080 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16081 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16082 cat >conftest.$ac_ext <<_ACEOF
16083 /* confdefs.h. */
16084 _ACEOF
16085 cat confdefs.h >>conftest.$ac_ext
16086 cat >>conftest.$ac_ext <<_ACEOF
16087 /* end confdefs.h. */
16088 $ac_includes_default
16089 #include <$ac_header>
16090 _ACEOF
16091 rm -f conftest.$ac_objext
16092 if { (ac_try="$ac_compile"
16093 case "(($ac_try" in
16094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16095 *) ac_try_echo=$ac_try;;
16096 esac
16097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16098 (eval "$ac_compile") 2>conftest.er1
16099 ac_status=$?
16100 grep -v '^ *+' conftest.er1 >conftest.err
16101 rm -f conftest.er1
16102 cat conftest.err >&5
16103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104 (exit $ac_status); } && {
16105 test -z "$ac_c_werror_flag" ||
16106 test ! -s conftest.err
16107 } && test -s conftest.$ac_objext; then
16108 ac_header_compiler=yes
16109 else
16110 echo "$as_me: failed program was:" >&5
16111 sed 's/^/| /' conftest.$ac_ext >&5
16113 ac_header_compiler=no
16116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16117 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16118 echo "${ECHO_T}$ac_header_compiler" >&6; }
16120 # Is the header present?
16121 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16122 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16123 cat >conftest.$ac_ext <<_ACEOF
16124 /* confdefs.h. */
16125 _ACEOF
16126 cat confdefs.h >>conftest.$ac_ext
16127 cat >>conftest.$ac_ext <<_ACEOF
16128 /* end confdefs.h. */
16129 #include <$ac_header>
16130 _ACEOF
16131 if { (ac_try="$ac_cpp conftest.$ac_ext"
16132 case "(($ac_try" in
16133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16134 *) ac_try_echo=$ac_try;;
16135 esac
16136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16137 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16138 ac_status=$?
16139 grep -v '^ *+' conftest.er1 >conftest.err
16140 rm -f conftest.er1
16141 cat conftest.err >&5
16142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143 (exit $ac_status); } >/dev/null && {
16144 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16145 test ! -s conftest.err
16146 }; then
16147 ac_header_preproc=yes
16148 else
16149 echo "$as_me: failed program was:" >&5
16150 sed 's/^/| /' conftest.$ac_ext >&5
16152 ac_header_preproc=no
16155 rm -f conftest.err conftest.$ac_ext
16156 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16157 echo "${ECHO_T}$ac_header_preproc" >&6; }
16159 # So? What about this header?
16160 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16161 yes:no: )
16162 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16163 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16164 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16165 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16166 ac_header_preproc=yes
16168 no:yes:* )
16169 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16170 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16171 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16172 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16173 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16174 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16175 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16176 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16178 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16179 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16180 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16183 esac
16184 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16187 echo $ECHO_N "(cached) $ECHO_C" >&6
16188 else
16189 eval "$as_ac_Header=\$ac_header_preproc"
16191 ac_res=`eval echo '${'$as_ac_Header'}'`
16192 { echo "$as_me:$LINENO: result: $ac_res" >&5
16193 echo "${ECHO_T}$ac_res" >&6; }
16196 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16197 cat >>confdefs.h <<_ACEOF
16198 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16199 _ACEOF
16203 done
16210 for ac_header in $ac_header_list
16212 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16214 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16217 echo $ECHO_N "(cached) $ECHO_C" >&6
16219 ac_res=`eval echo '${'$as_ac_Header'}'`
16220 { echo "$as_me:$LINENO: result: $ac_res" >&5
16221 echo "${ECHO_T}$ac_res" >&6; }
16222 else
16223 # Is the header compilable?
16224 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16225 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16226 cat >conftest.$ac_ext <<_ACEOF
16227 /* confdefs.h. */
16228 _ACEOF
16229 cat confdefs.h >>conftest.$ac_ext
16230 cat >>conftest.$ac_ext <<_ACEOF
16231 /* end confdefs.h. */
16232 $ac_includes_default
16233 #include <$ac_header>
16234 _ACEOF
16235 rm -f conftest.$ac_objext
16236 if { (ac_try="$ac_compile"
16237 case "(($ac_try" in
16238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16239 *) ac_try_echo=$ac_try;;
16240 esac
16241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16242 (eval "$ac_compile") 2>conftest.er1
16243 ac_status=$?
16244 grep -v '^ *+' conftest.er1 >conftest.err
16245 rm -f conftest.er1
16246 cat conftest.err >&5
16247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248 (exit $ac_status); } && {
16249 test -z "$ac_c_werror_flag" ||
16250 test ! -s conftest.err
16251 } && test -s conftest.$ac_objext; then
16252 ac_header_compiler=yes
16253 else
16254 echo "$as_me: failed program was:" >&5
16255 sed 's/^/| /' conftest.$ac_ext >&5
16257 ac_header_compiler=no
16260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16261 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16262 echo "${ECHO_T}$ac_header_compiler" >&6; }
16264 # Is the header present?
16265 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16266 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16267 cat >conftest.$ac_ext <<_ACEOF
16268 /* confdefs.h. */
16269 _ACEOF
16270 cat confdefs.h >>conftest.$ac_ext
16271 cat >>conftest.$ac_ext <<_ACEOF
16272 /* end confdefs.h. */
16273 #include <$ac_header>
16274 _ACEOF
16275 if { (ac_try="$ac_cpp conftest.$ac_ext"
16276 case "(($ac_try" in
16277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16278 *) ac_try_echo=$ac_try;;
16279 esac
16280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16281 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16282 ac_status=$?
16283 grep -v '^ *+' conftest.er1 >conftest.err
16284 rm -f conftest.er1
16285 cat conftest.err >&5
16286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287 (exit $ac_status); } >/dev/null && {
16288 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16289 test ! -s conftest.err
16290 }; then
16291 ac_header_preproc=yes
16292 else
16293 echo "$as_me: failed program was:" >&5
16294 sed 's/^/| /' conftest.$ac_ext >&5
16296 ac_header_preproc=no
16299 rm -f conftest.err conftest.$ac_ext
16300 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16301 echo "${ECHO_T}$ac_header_preproc" >&6; }
16303 # So? What about this header?
16304 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16305 yes:no: )
16306 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16307 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16309 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16310 ac_header_preproc=yes
16312 no:yes:* )
16313 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16314 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16315 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16316 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16317 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16318 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16319 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16320 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16322 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16323 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16324 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16327 esac
16328 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16331 echo $ECHO_N "(cached) $ECHO_C" >&6
16332 else
16333 eval "$as_ac_Header=\$ac_header_preproc"
16335 ac_res=`eval echo '${'$as_ac_Header'}'`
16336 { echo "$as_me:$LINENO: result: $ac_res" >&5
16337 echo "${ECHO_T}$ac_res" >&6; }
16340 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16341 cat >>confdefs.h <<_ACEOF
16342 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16343 _ACEOF
16347 done
16357 for ac_func in $ac_func_list
16359 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16360 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16361 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16362 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16363 echo $ECHO_N "(cached) $ECHO_C" >&6
16364 else
16365 cat >conftest.$ac_ext <<_ACEOF
16366 /* confdefs.h. */
16367 _ACEOF
16368 cat confdefs.h >>conftest.$ac_ext
16369 cat >>conftest.$ac_ext <<_ACEOF
16370 /* end confdefs.h. */
16371 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16372 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16373 #define $ac_func innocuous_$ac_func
16375 /* System header to define __stub macros and hopefully few prototypes,
16376 which can conflict with char $ac_func (); below.
16377 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16378 <limits.h> exists even on freestanding compilers. */
16380 #ifdef __STDC__
16381 # include <limits.h>
16382 #else
16383 # include <assert.h>
16384 #endif
16386 #undef $ac_func
16388 /* Override any GCC internal prototype to avoid an error.
16389 Use char because int might match the return type of a GCC
16390 builtin and then its argument prototype would still apply. */
16391 #ifdef __cplusplus
16392 extern "C"
16393 #endif
16394 char $ac_func ();
16395 /* The GNU C library defines this for functions which it implements
16396 to always fail with ENOSYS. Some functions are actually named
16397 something starting with __ and the normal name is an alias. */
16398 #if defined __stub_$ac_func || defined __stub___$ac_func
16399 choke me
16400 #endif
16403 main ()
16405 return $ac_func ();
16407 return 0;
16409 _ACEOF
16410 rm -f conftest.$ac_objext conftest$ac_exeext
16411 if { (ac_try="$ac_link"
16412 case "(($ac_try" in
16413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16414 *) ac_try_echo=$ac_try;;
16415 esac
16416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16417 (eval "$ac_link") 2>conftest.er1
16418 ac_status=$?
16419 grep -v '^ *+' conftest.er1 >conftest.err
16420 rm -f conftest.er1
16421 cat conftest.err >&5
16422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16423 (exit $ac_status); } && {
16424 test -z "$ac_c_werror_flag" ||
16425 test ! -s conftest.err
16426 } && test -s conftest$ac_exeext &&
16427 $as_test_x conftest$ac_exeext; then
16428 eval "$as_ac_var=yes"
16429 else
16430 echo "$as_me: failed program was:" >&5
16431 sed 's/^/| /' conftest.$ac_ext >&5
16433 eval "$as_ac_var=no"
16436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16437 conftest$ac_exeext conftest.$ac_ext
16439 ac_res=`eval echo '${'$as_ac_var'}'`
16440 { echo "$as_me:$LINENO: result: $ac_res" >&5
16441 echo "${ECHO_T}$ac_res" >&6; }
16442 if test `eval echo '${'$as_ac_var'}'` = yes; then
16443 cat >>confdefs.h <<_ACEOF
16444 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16445 _ACEOF
16448 done
16466 { echo "$as_me:$LINENO: checking for working mktime" >&5
16467 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16468 if test "${ac_cv_func_working_mktime+set}" = set; then
16469 echo $ECHO_N "(cached) $ECHO_C" >&6
16470 else
16471 if test "$cross_compiling" = yes; then
16472 ac_cv_func_working_mktime=no
16473 else
16474 cat >conftest.$ac_ext <<_ACEOF
16475 /* confdefs.h. */
16476 _ACEOF
16477 cat confdefs.h >>conftest.$ac_ext
16478 cat >>conftest.$ac_ext <<_ACEOF
16479 /* end confdefs.h. */
16480 /* Test program from Paul Eggert and Tony Leneis. */
16481 #ifdef TIME_WITH_SYS_TIME
16482 # include <sys/time.h>
16483 # include <time.h>
16484 #else
16485 # ifdef HAVE_SYS_TIME_H
16486 # include <sys/time.h>
16487 # else
16488 # include <time.h>
16489 # endif
16490 #endif
16492 #include <stdlib.h>
16494 #ifdef HAVE_UNISTD_H
16495 # include <unistd.h>
16496 #endif
16498 #ifndef HAVE_ALARM
16499 # define alarm(X) /* empty */
16500 #endif
16502 /* Work around redefinition to rpl_putenv by other config tests. */
16503 #undef putenv
16505 static time_t time_t_max;
16506 static time_t time_t_min;
16508 /* Values we'll use to set the TZ environment variable. */
16509 static char *tz_strings[] = {
16510 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16511 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16513 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16515 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16516 Based on a problem report from Andreas Jaeger. */
16517 static int
16518 spring_forward_gap ()
16520 /* glibc (up to about 1998-10-07) failed this test. */
16521 struct tm tm;
16523 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16524 instead of "TZ=America/Vancouver" in order to detect the bug even
16525 on systems that don't support the Olson extension, or don't have the
16526 full zoneinfo tables installed. */
16527 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16529 tm.tm_year = 98;
16530 tm.tm_mon = 3;
16531 tm.tm_mday = 5;
16532 tm.tm_hour = 2;
16533 tm.tm_min = 0;
16534 tm.tm_sec = 0;
16535 tm.tm_isdst = -1;
16536 return mktime (&tm) != (time_t) -1;
16539 static int
16540 mktime_test1 (now)
16541 time_t now;
16543 struct tm *lt;
16544 return ! (lt = localtime (&now)) || mktime (lt) == now;
16547 static int
16548 mktime_test (now)
16549 time_t now;
16551 return (mktime_test1 (now)
16552 && mktime_test1 ((time_t) (time_t_max - now))
16553 && mktime_test1 ((time_t) (time_t_min + now)));
16556 static int
16557 irix_6_4_bug ()
16559 /* Based on code from Ariel Faigon. */
16560 struct tm tm;
16561 tm.tm_year = 96;
16562 tm.tm_mon = 3;
16563 tm.tm_mday = 0;
16564 tm.tm_hour = 0;
16565 tm.tm_min = 0;
16566 tm.tm_sec = 0;
16567 tm.tm_isdst = -1;
16568 mktime (&tm);
16569 return tm.tm_mon == 2 && tm.tm_mday == 31;
16572 static int
16573 bigtime_test (j)
16574 int j;
16576 struct tm tm;
16577 time_t now;
16578 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16579 now = mktime (&tm);
16580 if (now != (time_t) -1)
16582 struct tm *lt = localtime (&now);
16583 if (! (lt
16584 && lt->tm_year == tm.tm_year
16585 && lt->tm_mon == tm.tm_mon
16586 && lt->tm_mday == tm.tm_mday
16587 && lt->tm_hour == tm.tm_hour
16588 && lt->tm_min == tm.tm_min
16589 && lt->tm_sec == tm.tm_sec
16590 && lt->tm_yday == tm.tm_yday
16591 && lt->tm_wday == tm.tm_wday
16592 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16593 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16594 return 0;
16596 return 1;
16599 static int
16600 year_2050_test ()
16602 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16603 ignoring leap seconds. */
16604 unsigned long int answer = 2527315200UL;
16606 struct tm tm;
16607 time_t t;
16608 tm.tm_year = 2050 - 1900;
16609 tm.tm_mon = 2 - 1;
16610 tm.tm_mday = 1;
16611 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16612 tm.tm_isdst = -1;
16614 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16615 instead of "TZ=America/Vancouver" in order to detect the bug even
16616 on systems that don't support the Olson extension, or don't have the
16617 full zoneinfo tables installed. */
16618 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16620 t = mktime (&tm);
16622 /* Check that the result is either a failure, or close enough
16623 to the correct answer that we can assume the discrepancy is
16624 due to leap seconds. */
16625 return (t == (time_t) -1
16626 || (0 < t && answer - 120 <= t && t <= answer + 120));
16630 main ()
16632 time_t t, delta;
16633 int i, j;
16635 /* This test makes some buggy mktime implementations loop.
16636 Give up after 60 seconds; a mktime slower than that
16637 isn't worth using anyway. */
16638 alarm (60);
16640 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16641 continue;
16642 time_t_max--;
16643 if ((time_t) -1 < 0)
16644 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16645 continue;
16646 delta = time_t_max / 997; /* a suitable prime number */
16647 for (i = 0; i < N_STRINGS; i++)
16649 if (tz_strings[i])
16650 putenv (tz_strings[i]);
16652 for (t = 0; t <= time_t_max - delta; t += delta)
16653 if (! mktime_test (t))
16654 return 1;
16655 if (! (mktime_test ((time_t) 1)
16656 && mktime_test ((time_t) (60 * 60))
16657 && mktime_test ((time_t) (60 * 60 * 24))))
16658 return 1;
16660 for (j = 1; 0 < j; j *= 2)
16661 if (! bigtime_test (j))
16662 return 1;
16663 if (! bigtime_test (j - 1))
16664 return 1;
16666 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16668 _ACEOF
16669 rm -f conftest$ac_exeext
16670 if { (ac_try="$ac_link"
16671 case "(($ac_try" in
16672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16673 *) ac_try_echo=$ac_try;;
16674 esac
16675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16676 (eval "$ac_link") 2>&5
16677 ac_status=$?
16678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16680 { (case "(($ac_try" in
16681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16682 *) ac_try_echo=$ac_try;;
16683 esac
16684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16685 (eval "$ac_try") 2>&5
16686 ac_status=$?
16687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688 (exit $ac_status); }; }; then
16689 ac_cv_func_working_mktime=yes
16690 else
16691 echo "$as_me: program exited with status $ac_status" >&5
16692 echo "$as_me: failed program was:" >&5
16693 sed 's/^/| /' conftest.$ac_ext >&5
16695 ( exit $ac_status )
16696 ac_cv_func_working_mktime=no
16698 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16703 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16704 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16705 if test $ac_cv_func_working_mktime = no; then
16706 case " $LIBOBJS " in
16707 *" mktime.$ac_objext "* ) ;;
16708 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16710 esac
16714 if test "$ac_cv_func_working_mktime" = no; then
16716 cat >>confdefs.h <<\_ACEOF
16717 #define BROKEN_MKTIME 1
16718 _ACEOF
16722 ac_have_func=no # yes means we've found a way to get the load average.
16724 # Make sure getloadavg.c is where it belongs, at configure-time.
16725 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16726 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16727 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16728 { (exit 1); exit 1; }; }
16730 ac_save_LIBS=$LIBS
16732 # Check for getloadavg, but be sure not to touch the cache variable.
16733 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16734 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16735 if test "${ac_cv_func_getloadavg+set}" = set; then
16736 echo $ECHO_N "(cached) $ECHO_C" >&6
16737 else
16738 cat >conftest.$ac_ext <<_ACEOF
16739 /* confdefs.h. */
16740 _ACEOF
16741 cat confdefs.h >>conftest.$ac_ext
16742 cat >>conftest.$ac_ext <<_ACEOF
16743 /* end confdefs.h. */
16744 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16745 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16746 #define getloadavg innocuous_getloadavg
16748 /* System header to define __stub macros and hopefully few prototypes,
16749 which can conflict with char getloadavg (); below.
16750 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16751 <limits.h> exists even on freestanding compilers. */
16753 #ifdef __STDC__
16754 # include <limits.h>
16755 #else
16756 # include <assert.h>
16757 #endif
16759 #undef getloadavg
16761 /* Override any GCC internal prototype to avoid an error.
16762 Use char because int might match the return type of a GCC
16763 builtin and then its argument prototype would still apply. */
16764 #ifdef __cplusplus
16765 extern "C"
16766 #endif
16767 char getloadavg ();
16768 /* The GNU C library defines this for functions which it implements
16769 to always fail with ENOSYS. Some functions are actually named
16770 something starting with __ and the normal name is an alias. */
16771 #if defined __stub_getloadavg || defined __stub___getloadavg
16772 choke me
16773 #endif
16776 main ()
16778 return getloadavg ();
16780 return 0;
16782 _ACEOF
16783 rm -f conftest.$ac_objext conftest$ac_exeext
16784 if { (ac_try="$ac_link"
16785 case "(($ac_try" in
16786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16787 *) ac_try_echo=$ac_try;;
16788 esac
16789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16790 (eval "$ac_link") 2>conftest.er1
16791 ac_status=$?
16792 grep -v '^ *+' conftest.er1 >conftest.err
16793 rm -f conftest.er1
16794 cat conftest.err >&5
16795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796 (exit $ac_status); } && {
16797 test -z "$ac_c_werror_flag" ||
16798 test ! -s conftest.err
16799 } && test -s conftest$ac_exeext &&
16800 $as_test_x conftest$ac_exeext; then
16801 ac_cv_func_getloadavg=yes
16802 else
16803 echo "$as_me: failed program was:" >&5
16804 sed 's/^/| /' conftest.$ac_ext >&5
16806 ac_cv_func_getloadavg=no
16809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16810 conftest$ac_exeext conftest.$ac_ext
16812 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16813 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16814 if test $ac_cv_func_getloadavg = yes; then
16815 exit 0
16816 else
16817 exit 1
16819 ) && ac_have_func=yes
16821 # On HPUX9, an unprivileged user can get load averages through this function.
16823 for ac_func in pstat_getdynamic
16825 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16826 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16827 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16828 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16829 echo $ECHO_N "(cached) $ECHO_C" >&6
16830 else
16831 cat >conftest.$ac_ext <<_ACEOF
16832 /* confdefs.h. */
16833 _ACEOF
16834 cat confdefs.h >>conftest.$ac_ext
16835 cat >>conftest.$ac_ext <<_ACEOF
16836 /* end confdefs.h. */
16837 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16838 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16839 #define $ac_func innocuous_$ac_func
16841 /* System header to define __stub macros and hopefully few prototypes,
16842 which can conflict with char $ac_func (); below.
16843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16844 <limits.h> exists even on freestanding compilers. */
16846 #ifdef __STDC__
16847 # include <limits.h>
16848 #else
16849 # include <assert.h>
16850 #endif
16852 #undef $ac_func
16854 /* Override any GCC internal prototype to avoid an error.
16855 Use char because int might match the return type of a GCC
16856 builtin and then its argument prototype would still apply. */
16857 #ifdef __cplusplus
16858 extern "C"
16859 #endif
16860 char $ac_func ();
16861 /* The GNU C library defines this for functions which it implements
16862 to always fail with ENOSYS. Some functions are actually named
16863 something starting with __ and the normal name is an alias. */
16864 #if defined __stub_$ac_func || defined __stub___$ac_func
16865 choke me
16866 #endif
16869 main ()
16871 return $ac_func ();
16873 return 0;
16875 _ACEOF
16876 rm -f conftest.$ac_objext conftest$ac_exeext
16877 if { (ac_try="$ac_link"
16878 case "(($ac_try" in
16879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16880 *) ac_try_echo=$ac_try;;
16881 esac
16882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16883 (eval "$ac_link") 2>conftest.er1
16884 ac_status=$?
16885 grep -v '^ *+' conftest.er1 >conftest.err
16886 rm -f conftest.er1
16887 cat conftest.err >&5
16888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889 (exit $ac_status); } && {
16890 test -z "$ac_c_werror_flag" ||
16891 test ! -s conftest.err
16892 } && test -s conftest$ac_exeext &&
16893 $as_test_x conftest$ac_exeext; then
16894 eval "$as_ac_var=yes"
16895 else
16896 echo "$as_me: failed program was:" >&5
16897 sed 's/^/| /' conftest.$ac_ext >&5
16899 eval "$as_ac_var=no"
16902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16903 conftest$ac_exeext conftest.$ac_ext
16905 ac_res=`eval echo '${'$as_ac_var'}'`
16906 { echo "$as_me:$LINENO: result: $ac_res" >&5
16907 echo "${ECHO_T}$ac_res" >&6; }
16908 if test `eval echo '${'$as_ac_var'}'` = yes; then
16909 cat >>confdefs.h <<_ACEOF
16910 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16911 _ACEOF
16914 done
16917 # Solaris has libkstat which does not require root.
16919 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16920 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
16921 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16922 echo $ECHO_N "(cached) $ECHO_C" >&6
16923 else
16924 ac_check_lib_save_LIBS=$LIBS
16925 LIBS="-lkstat $LIBS"
16926 cat >conftest.$ac_ext <<_ACEOF
16927 /* confdefs.h. */
16928 _ACEOF
16929 cat confdefs.h >>conftest.$ac_ext
16930 cat >>conftest.$ac_ext <<_ACEOF
16931 /* end confdefs.h. */
16933 /* Override any GCC internal prototype to avoid an error.
16934 Use char because int might match the return type of a GCC
16935 builtin and then its argument prototype would still apply. */
16936 #ifdef __cplusplus
16937 extern "C"
16938 #endif
16939 char kstat_open ();
16941 main ()
16943 return kstat_open ();
16945 return 0;
16947 _ACEOF
16948 rm -f conftest.$ac_objext conftest$ac_exeext
16949 if { (ac_try="$ac_link"
16950 case "(($ac_try" in
16951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16952 *) ac_try_echo=$ac_try;;
16953 esac
16954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16955 (eval "$ac_link") 2>conftest.er1
16956 ac_status=$?
16957 grep -v '^ *+' conftest.er1 >conftest.err
16958 rm -f conftest.er1
16959 cat conftest.err >&5
16960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961 (exit $ac_status); } && {
16962 test -z "$ac_c_werror_flag" ||
16963 test ! -s conftest.err
16964 } && test -s conftest$ac_exeext &&
16965 $as_test_x conftest$ac_exeext; then
16966 ac_cv_lib_kstat_kstat_open=yes
16967 else
16968 echo "$as_me: failed program was:" >&5
16969 sed 's/^/| /' conftest.$ac_ext >&5
16971 ac_cv_lib_kstat_kstat_open=no
16974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16975 conftest$ac_exeext conftest.$ac_ext
16976 LIBS=$ac_check_lib_save_LIBS
16978 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
16979 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16980 if test $ac_cv_lib_kstat_kstat_open = yes; then
16981 cat >>confdefs.h <<_ACEOF
16982 #define HAVE_LIBKSTAT 1
16983 _ACEOF
16985 LIBS="-lkstat $LIBS"
16989 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16991 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16992 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16993 # to get the right answer into the cache.
16994 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16995 if test $ac_have_func = no; then
16996 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
16997 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
16998 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16999 echo $ECHO_N "(cached) $ECHO_C" >&6
17000 else
17001 ac_check_lib_save_LIBS=$LIBS
17002 LIBS="-lelf $LIBS"
17003 cat >conftest.$ac_ext <<_ACEOF
17004 /* confdefs.h. */
17005 _ACEOF
17006 cat confdefs.h >>conftest.$ac_ext
17007 cat >>conftest.$ac_ext <<_ACEOF
17008 /* end confdefs.h. */
17010 /* Override any GCC internal prototype to avoid an error.
17011 Use char because int might match the return type of a GCC
17012 builtin and then its argument prototype would still apply. */
17013 #ifdef __cplusplus
17014 extern "C"
17015 #endif
17016 char elf_begin ();
17018 main ()
17020 return elf_begin ();
17022 return 0;
17024 _ACEOF
17025 rm -f conftest.$ac_objext conftest$ac_exeext
17026 if { (ac_try="$ac_link"
17027 case "(($ac_try" in
17028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17029 *) ac_try_echo=$ac_try;;
17030 esac
17031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17032 (eval "$ac_link") 2>conftest.er1
17033 ac_status=$?
17034 grep -v '^ *+' conftest.er1 >conftest.err
17035 rm -f conftest.er1
17036 cat conftest.err >&5
17037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038 (exit $ac_status); } && {
17039 test -z "$ac_c_werror_flag" ||
17040 test ! -s conftest.err
17041 } && test -s conftest$ac_exeext &&
17042 $as_test_x conftest$ac_exeext; then
17043 ac_cv_lib_elf_elf_begin=yes
17044 else
17045 echo "$as_me: failed program was:" >&5
17046 sed 's/^/| /' conftest.$ac_ext >&5
17048 ac_cv_lib_elf_elf_begin=no
17051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17052 conftest$ac_exeext conftest.$ac_ext
17053 LIBS=$ac_check_lib_save_LIBS
17055 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
17056 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17057 if test $ac_cv_lib_elf_elf_begin = yes; then
17058 LIBS="-lelf $LIBS"
17062 if test $ac_have_func = no; then
17063 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17064 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
17065 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17066 echo $ECHO_N "(cached) $ECHO_C" >&6
17067 else
17068 ac_check_lib_save_LIBS=$LIBS
17069 LIBS="-lkvm $LIBS"
17070 cat >conftest.$ac_ext <<_ACEOF
17071 /* confdefs.h. */
17072 _ACEOF
17073 cat confdefs.h >>conftest.$ac_ext
17074 cat >>conftest.$ac_ext <<_ACEOF
17075 /* end confdefs.h. */
17077 /* Override any GCC internal prototype to avoid an error.
17078 Use char because int might match the return type of a GCC
17079 builtin and then its argument prototype would still apply. */
17080 #ifdef __cplusplus
17081 extern "C"
17082 #endif
17083 char kvm_open ();
17085 main ()
17087 return kvm_open ();
17089 return 0;
17091 _ACEOF
17092 rm -f conftest.$ac_objext conftest$ac_exeext
17093 if { (ac_try="$ac_link"
17094 case "(($ac_try" in
17095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17096 *) ac_try_echo=$ac_try;;
17097 esac
17098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17099 (eval "$ac_link") 2>conftest.er1
17100 ac_status=$?
17101 grep -v '^ *+' conftest.er1 >conftest.err
17102 rm -f conftest.er1
17103 cat conftest.err >&5
17104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105 (exit $ac_status); } && {
17106 test -z "$ac_c_werror_flag" ||
17107 test ! -s conftest.err
17108 } && test -s conftest$ac_exeext &&
17109 $as_test_x conftest$ac_exeext; then
17110 ac_cv_lib_kvm_kvm_open=yes
17111 else
17112 echo "$as_me: failed program was:" >&5
17113 sed 's/^/| /' conftest.$ac_ext >&5
17115 ac_cv_lib_kvm_kvm_open=no
17118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17119 conftest$ac_exeext conftest.$ac_ext
17120 LIBS=$ac_check_lib_save_LIBS
17122 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
17123 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17124 if test $ac_cv_lib_kvm_kvm_open = yes; then
17125 LIBS="-lkvm $LIBS"
17128 # Check for the 4.4BSD definition of getloadavg.
17129 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
17130 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
17131 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17132 echo $ECHO_N "(cached) $ECHO_C" >&6
17133 else
17134 ac_check_lib_save_LIBS=$LIBS
17135 LIBS="-lutil $LIBS"
17136 cat >conftest.$ac_ext <<_ACEOF
17137 /* confdefs.h. */
17138 _ACEOF
17139 cat confdefs.h >>conftest.$ac_ext
17140 cat >>conftest.$ac_ext <<_ACEOF
17141 /* end confdefs.h. */
17143 /* Override any GCC internal prototype to avoid an error.
17144 Use char because int might match the return type of a GCC
17145 builtin and then its argument prototype would still apply. */
17146 #ifdef __cplusplus
17147 extern "C"
17148 #endif
17149 char getloadavg ();
17151 main ()
17153 return getloadavg ();
17155 return 0;
17157 _ACEOF
17158 rm -f conftest.$ac_objext conftest$ac_exeext
17159 if { (ac_try="$ac_link"
17160 case "(($ac_try" in
17161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17162 *) ac_try_echo=$ac_try;;
17163 esac
17164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17165 (eval "$ac_link") 2>conftest.er1
17166 ac_status=$?
17167 grep -v '^ *+' conftest.er1 >conftest.err
17168 rm -f conftest.er1
17169 cat conftest.err >&5
17170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171 (exit $ac_status); } && {
17172 test -z "$ac_c_werror_flag" ||
17173 test ! -s conftest.err
17174 } && test -s conftest$ac_exeext &&
17175 $as_test_x conftest$ac_exeext; then
17176 ac_cv_lib_util_getloadavg=yes
17177 else
17178 echo "$as_me: failed program was:" >&5
17179 sed 's/^/| /' conftest.$ac_ext >&5
17181 ac_cv_lib_util_getloadavg=no
17184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17185 conftest$ac_exeext conftest.$ac_ext
17186 LIBS=$ac_check_lib_save_LIBS
17188 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
17189 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17190 if test $ac_cv_lib_util_getloadavg = yes; then
17191 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17196 if test $ac_have_func = no; then
17197 # There is a commonly available library for RS/6000 AIX.
17198 # Since it is not a standard part of AIX, it might be installed locally.
17199 ac_getloadavg_LIBS=$LIBS
17200 LIBS="-L/usr/local/lib $LIBS"
17201 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
17202 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
17203 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17204 echo $ECHO_N "(cached) $ECHO_C" >&6
17205 else
17206 ac_check_lib_save_LIBS=$LIBS
17207 LIBS="-lgetloadavg $LIBS"
17208 cat >conftest.$ac_ext <<_ACEOF
17209 /* confdefs.h. */
17210 _ACEOF
17211 cat confdefs.h >>conftest.$ac_ext
17212 cat >>conftest.$ac_ext <<_ACEOF
17213 /* end confdefs.h. */
17215 /* Override any GCC internal prototype to avoid an error.
17216 Use char because int might match the return type of a GCC
17217 builtin and then its argument prototype would still apply. */
17218 #ifdef __cplusplus
17219 extern "C"
17220 #endif
17221 char getloadavg ();
17223 main ()
17225 return getloadavg ();
17227 return 0;
17229 _ACEOF
17230 rm -f conftest.$ac_objext conftest$ac_exeext
17231 if { (ac_try="$ac_link"
17232 case "(($ac_try" in
17233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17234 *) ac_try_echo=$ac_try;;
17235 esac
17236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17237 (eval "$ac_link") 2>conftest.er1
17238 ac_status=$?
17239 grep -v '^ *+' conftest.er1 >conftest.err
17240 rm -f conftest.er1
17241 cat conftest.err >&5
17242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17243 (exit $ac_status); } && {
17244 test -z "$ac_c_werror_flag" ||
17245 test ! -s conftest.err
17246 } && test -s conftest$ac_exeext &&
17247 $as_test_x conftest$ac_exeext; then
17248 ac_cv_lib_getloadavg_getloadavg=yes
17249 else
17250 echo "$as_me: failed program was:" >&5
17251 sed 's/^/| /' conftest.$ac_ext >&5
17253 ac_cv_lib_getloadavg_getloadavg=no
17256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17257 conftest$ac_exeext conftest.$ac_ext
17258 LIBS=$ac_check_lib_save_LIBS
17260 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
17261 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17262 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17263 LIBS="-lgetloadavg $LIBS"
17264 else
17265 LIBS=$ac_getloadavg_LIBS
17270 # Make sure it is really in the library, if we think we found it,
17271 # otherwise set up the replacement function.
17273 for ac_func in getloadavg
17275 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17276 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17277 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17278 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17279 echo $ECHO_N "(cached) $ECHO_C" >&6
17280 else
17281 cat >conftest.$ac_ext <<_ACEOF
17282 /* confdefs.h. */
17283 _ACEOF
17284 cat confdefs.h >>conftest.$ac_ext
17285 cat >>conftest.$ac_ext <<_ACEOF
17286 /* end confdefs.h. */
17287 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17289 #define $ac_func innocuous_$ac_func
17291 /* System header to define __stub macros and hopefully few prototypes,
17292 which can conflict with char $ac_func (); below.
17293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17294 <limits.h> exists even on freestanding compilers. */
17296 #ifdef __STDC__
17297 # include <limits.h>
17298 #else
17299 # include <assert.h>
17300 #endif
17302 #undef $ac_func
17304 /* Override any GCC internal prototype to avoid an error.
17305 Use char because int might match the return type of a GCC
17306 builtin and then its argument prototype would still apply. */
17307 #ifdef __cplusplus
17308 extern "C"
17309 #endif
17310 char $ac_func ();
17311 /* The GNU C library defines this for functions which it implements
17312 to always fail with ENOSYS. Some functions are actually named
17313 something starting with __ and the normal name is an alias. */
17314 #if defined __stub_$ac_func || defined __stub___$ac_func
17315 choke me
17316 #endif
17319 main ()
17321 return $ac_func ();
17323 return 0;
17325 _ACEOF
17326 rm -f conftest.$ac_objext conftest$ac_exeext
17327 if { (ac_try="$ac_link"
17328 case "(($ac_try" in
17329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17330 *) ac_try_echo=$ac_try;;
17331 esac
17332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17333 (eval "$ac_link") 2>conftest.er1
17334 ac_status=$?
17335 grep -v '^ *+' conftest.er1 >conftest.err
17336 rm -f conftest.er1
17337 cat conftest.err >&5
17338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339 (exit $ac_status); } && {
17340 test -z "$ac_c_werror_flag" ||
17341 test ! -s conftest.err
17342 } && test -s conftest$ac_exeext &&
17343 $as_test_x conftest$ac_exeext; then
17344 eval "$as_ac_var=yes"
17345 else
17346 echo "$as_me: failed program was:" >&5
17347 sed 's/^/| /' conftest.$ac_ext >&5
17349 eval "$as_ac_var=no"
17352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17353 conftest$ac_exeext conftest.$ac_ext
17355 ac_res=`eval echo '${'$as_ac_var'}'`
17356 { echo "$as_me:$LINENO: result: $ac_res" >&5
17357 echo "${ECHO_T}$ac_res" >&6; }
17358 if test `eval echo '${'$as_ac_var'}'` = yes; then
17359 cat >>confdefs.h <<_ACEOF
17360 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17361 _ACEOF
17363 else
17364 case " $LIBOBJS " in
17365 *" getloadavg.$ac_objext "* ) ;;
17366 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17368 esac
17371 cat >>confdefs.h <<\_ACEOF
17372 #define C_GETLOADAVG 1
17373 _ACEOF
17375 # Figure out what our getloadavg.c needs.
17376 ac_have_func=no
17377 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17378 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17379 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17380 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17381 echo $ECHO_N "(cached) $ECHO_C" >&6
17383 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17384 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17385 else
17386 # Is the header compilable?
17387 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17388 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17389 cat >conftest.$ac_ext <<_ACEOF
17390 /* confdefs.h. */
17391 _ACEOF
17392 cat confdefs.h >>conftest.$ac_ext
17393 cat >>conftest.$ac_ext <<_ACEOF
17394 /* end confdefs.h. */
17395 $ac_includes_default
17396 #include <sys/dg_sys_info.h>
17397 _ACEOF
17398 rm -f conftest.$ac_objext
17399 if { (ac_try="$ac_compile"
17400 case "(($ac_try" in
17401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17402 *) ac_try_echo=$ac_try;;
17403 esac
17404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17405 (eval "$ac_compile") 2>conftest.er1
17406 ac_status=$?
17407 grep -v '^ *+' conftest.er1 >conftest.err
17408 rm -f conftest.er1
17409 cat conftest.err >&5
17410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17411 (exit $ac_status); } && {
17412 test -z "$ac_c_werror_flag" ||
17413 test ! -s conftest.err
17414 } && test -s conftest.$ac_objext; then
17415 ac_header_compiler=yes
17416 else
17417 echo "$as_me: failed program was:" >&5
17418 sed 's/^/| /' conftest.$ac_ext >&5
17420 ac_header_compiler=no
17423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17424 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17425 echo "${ECHO_T}$ac_header_compiler" >&6; }
17427 # Is the header present?
17428 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17429 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17430 cat >conftest.$ac_ext <<_ACEOF
17431 /* confdefs.h. */
17432 _ACEOF
17433 cat confdefs.h >>conftest.$ac_ext
17434 cat >>conftest.$ac_ext <<_ACEOF
17435 /* end confdefs.h. */
17436 #include <sys/dg_sys_info.h>
17437 _ACEOF
17438 if { (ac_try="$ac_cpp conftest.$ac_ext"
17439 case "(($ac_try" in
17440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17441 *) ac_try_echo=$ac_try;;
17442 esac
17443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17444 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17445 ac_status=$?
17446 grep -v '^ *+' conftest.er1 >conftest.err
17447 rm -f conftest.er1
17448 cat conftest.err >&5
17449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450 (exit $ac_status); } >/dev/null && {
17451 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17452 test ! -s conftest.err
17453 }; then
17454 ac_header_preproc=yes
17455 else
17456 echo "$as_me: failed program was:" >&5
17457 sed 's/^/| /' conftest.$ac_ext >&5
17459 ac_header_preproc=no
17462 rm -f conftest.err conftest.$ac_ext
17463 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17464 echo "${ECHO_T}$ac_header_preproc" >&6; }
17466 # So? What about this header?
17467 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17468 yes:no: )
17469 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17470 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17471 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17472 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17473 ac_header_preproc=yes
17475 no:yes:* )
17476 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17477 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17478 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17479 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17480 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17481 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17482 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17483 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17484 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17485 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17486 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17487 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17490 esac
17491 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17492 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17493 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17494 echo $ECHO_N "(cached) $ECHO_C" >&6
17495 else
17496 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17498 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17499 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17502 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17503 ac_have_func=yes
17505 cat >>confdefs.h <<\_ACEOF
17506 #define DGUX 1
17507 _ACEOF
17510 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17511 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17512 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17513 echo $ECHO_N "(cached) $ECHO_C" >&6
17514 else
17515 ac_check_lib_save_LIBS=$LIBS
17516 LIBS="-ldgc $LIBS"
17517 cat >conftest.$ac_ext <<_ACEOF
17518 /* confdefs.h. */
17519 _ACEOF
17520 cat confdefs.h >>conftest.$ac_ext
17521 cat >>conftest.$ac_ext <<_ACEOF
17522 /* end confdefs.h. */
17524 /* Override any GCC internal prototype to avoid an error.
17525 Use char because int might match the return type of a GCC
17526 builtin and then its argument prototype would still apply. */
17527 #ifdef __cplusplus
17528 extern "C"
17529 #endif
17530 char dg_sys_info ();
17532 main ()
17534 return dg_sys_info ();
17536 return 0;
17538 _ACEOF
17539 rm -f conftest.$ac_objext conftest$ac_exeext
17540 if { (ac_try="$ac_link"
17541 case "(($ac_try" in
17542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17543 *) ac_try_echo=$ac_try;;
17544 esac
17545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17546 (eval "$ac_link") 2>conftest.er1
17547 ac_status=$?
17548 grep -v '^ *+' conftest.er1 >conftest.err
17549 rm -f conftest.er1
17550 cat conftest.err >&5
17551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17552 (exit $ac_status); } && {
17553 test -z "$ac_c_werror_flag" ||
17554 test ! -s conftest.err
17555 } && test -s conftest$ac_exeext &&
17556 $as_test_x conftest$ac_exeext; then
17557 ac_cv_lib_dgc_dg_sys_info=yes
17558 else
17559 echo "$as_me: failed program was:" >&5
17560 sed 's/^/| /' conftest.$ac_ext >&5
17562 ac_cv_lib_dgc_dg_sys_info=no
17565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17566 conftest$ac_exeext conftest.$ac_ext
17567 LIBS=$ac_check_lib_save_LIBS
17569 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17570 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17571 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17572 cat >>confdefs.h <<_ACEOF
17573 #define HAVE_LIBDGC 1
17574 _ACEOF
17576 LIBS="-ldgc $LIBS"
17584 if test "${ac_cv_header_locale_h+set}" = set; then
17585 { echo "$as_me:$LINENO: checking for locale.h" >&5
17586 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17587 if test "${ac_cv_header_locale_h+set}" = set; then
17588 echo $ECHO_N "(cached) $ECHO_C" >&6
17590 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17591 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17592 else
17593 # Is the header compilable?
17594 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17595 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17596 cat >conftest.$ac_ext <<_ACEOF
17597 /* confdefs.h. */
17598 _ACEOF
17599 cat confdefs.h >>conftest.$ac_ext
17600 cat >>conftest.$ac_ext <<_ACEOF
17601 /* end confdefs.h. */
17602 $ac_includes_default
17603 #include <locale.h>
17604 _ACEOF
17605 rm -f conftest.$ac_objext
17606 if { (ac_try="$ac_compile"
17607 case "(($ac_try" in
17608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17609 *) ac_try_echo=$ac_try;;
17610 esac
17611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17612 (eval "$ac_compile") 2>conftest.er1
17613 ac_status=$?
17614 grep -v '^ *+' conftest.er1 >conftest.err
17615 rm -f conftest.er1
17616 cat conftest.err >&5
17617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618 (exit $ac_status); } && {
17619 test -z "$ac_c_werror_flag" ||
17620 test ! -s conftest.err
17621 } && test -s conftest.$ac_objext; then
17622 ac_header_compiler=yes
17623 else
17624 echo "$as_me: failed program was:" >&5
17625 sed 's/^/| /' conftest.$ac_ext >&5
17627 ac_header_compiler=no
17630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17631 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17632 echo "${ECHO_T}$ac_header_compiler" >&6; }
17634 # Is the header present?
17635 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17636 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17637 cat >conftest.$ac_ext <<_ACEOF
17638 /* confdefs.h. */
17639 _ACEOF
17640 cat confdefs.h >>conftest.$ac_ext
17641 cat >>conftest.$ac_ext <<_ACEOF
17642 /* end confdefs.h. */
17643 #include <locale.h>
17644 _ACEOF
17645 if { (ac_try="$ac_cpp conftest.$ac_ext"
17646 case "(($ac_try" in
17647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17648 *) ac_try_echo=$ac_try;;
17649 esac
17650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17651 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17652 ac_status=$?
17653 grep -v '^ *+' conftest.er1 >conftest.err
17654 rm -f conftest.er1
17655 cat conftest.err >&5
17656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657 (exit $ac_status); } >/dev/null && {
17658 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17659 test ! -s conftest.err
17660 }; then
17661 ac_header_preproc=yes
17662 else
17663 echo "$as_me: failed program was:" >&5
17664 sed 's/^/| /' conftest.$ac_ext >&5
17666 ac_header_preproc=no
17669 rm -f conftest.err conftest.$ac_ext
17670 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17671 echo "${ECHO_T}$ac_header_preproc" >&6; }
17673 # So? What about this header?
17674 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17675 yes:no: )
17676 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17677 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17678 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17679 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17680 ac_header_preproc=yes
17682 no:yes:* )
17683 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17684 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17685 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17686 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17687 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17688 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17689 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17690 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17691 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17692 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17693 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17694 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17697 esac
17698 { echo "$as_me:$LINENO: checking for locale.h" >&5
17699 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17700 if test "${ac_cv_header_locale_h+set}" = set; then
17701 echo $ECHO_N "(cached) $ECHO_C" >&6
17702 else
17703 ac_cv_header_locale_h=$ac_header_preproc
17705 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17706 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17712 for ac_func in setlocale
17714 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17715 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17716 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17717 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17718 echo $ECHO_N "(cached) $ECHO_C" >&6
17719 else
17720 cat >conftest.$ac_ext <<_ACEOF
17721 /* confdefs.h. */
17722 _ACEOF
17723 cat confdefs.h >>conftest.$ac_ext
17724 cat >>conftest.$ac_ext <<_ACEOF
17725 /* end confdefs.h. */
17726 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17728 #define $ac_func innocuous_$ac_func
17730 /* System header to define __stub macros and hopefully few prototypes,
17731 which can conflict with char $ac_func (); below.
17732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17733 <limits.h> exists even on freestanding compilers. */
17735 #ifdef __STDC__
17736 # include <limits.h>
17737 #else
17738 # include <assert.h>
17739 #endif
17741 #undef $ac_func
17743 /* Override any GCC internal prototype to avoid an error.
17744 Use char because int might match the return type of a GCC
17745 builtin and then its argument prototype would still apply. */
17746 #ifdef __cplusplus
17747 extern "C"
17748 #endif
17749 char $ac_func ();
17750 /* The GNU C library defines this for functions which it implements
17751 to always fail with ENOSYS. Some functions are actually named
17752 something starting with __ and the normal name is an alias. */
17753 #if defined __stub_$ac_func || defined __stub___$ac_func
17754 choke me
17755 #endif
17758 main ()
17760 return $ac_func ();
17762 return 0;
17764 _ACEOF
17765 rm -f conftest.$ac_objext conftest$ac_exeext
17766 if { (ac_try="$ac_link"
17767 case "(($ac_try" in
17768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17769 *) ac_try_echo=$ac_try;;
17770 esac
17771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17772 (eval "$ac_link") 2>conftest.er1
17773 ac_status=$?
17774 grep -v '^ *+' conftest.er1 >conftest.err
17775 rm -f conftest.er1
17776 cat conftest.err >&5
17777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778 (exit $ac_status); } && {
17779 test -z "$ac_c_werror_flag" ||
17780 test ! -s conftest.err
17781 } && test -s conftest$ac_exeext &&
17782 $as_test_x conftest$ac_exeext; then
17783 eval "$as_ac_var=yes"
17784 else
17785 echo "$as_me: failed program was:" >&5
17786 sed 's/^/| /' conftest.$ac_ext >&5
17788 eval "$as_ac_var=no"
17791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17792 conftest$ac_exeext conftest.$ac_ext
17794 ac_res=`eval echo '${'$as_ac_var'}'`
17795 { echo "$as_me:$LINENO: result: $ac_res" >&5
17796 echo "${ECHO_T}$ac_res" >&6; }
17797 if test `eval echo '${'$as_ac_var'}'` = yes; then
17798 cat >>confdefs.h <<_ACEOF
17799 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17800 _ACEOF
17803 done
17806 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17807 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17808 # Irix 4.0.5F has the header but not the library.
17809 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17810 ac_have_func=yes
17812 cat >>confdefs.h <<\_ACEOF
17813 #define SVR4 1
17814 _ACEOF
17818 if test $ac_have_func = no; then
17819 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17820 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17821 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17822 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17823 echo $ECHO_N "(cached) $ECHO_C" >&6
17825 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17826 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17827 else
17828 # Is the header compilable?
17829 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17830 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
17831 cat >conftest.$ac_ext <<_ACEOF
17832 /* confdefs.h. */
17833 _ACEOF
17834 cat confdefs.h >>conftest.$ac_ext
17835 cat >>conftest.$ac_ext <<_ACEOF
17836 /* end confdefs.h. */
17837 $ac_includes_default
17838 #include <inq_stats/cpustats.h>
17839 _ACEOF
17840 rm -f conftest.$ac_objext
17841 if { (ac_try="$ac_compile"
17842 case "(($ac_try" in
17843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17844 *) ac_try_echo=$ac_try;;
17845 esac
17846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17847 (eval "$ac_compile") 2>conftest.er1
17848 ac_status=$?
17849 grep -v '^ *+' conftest.er1 >conftest.err
17850 rm -f conftest.er1
17851 cat conftest.err >&5
17852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853 (exit $ac_status); } && {
17854 test -z "$ac_c_werror_flag" ||
17855 test ! -s conftest.err
17856 } && test -s conftest.$ac_objext; then
17857 ac_header_compiler=yes
17858 else
17859 echo "$as_me: failed program was:" >&5
17860 sed 's/^/| /' conftest.$ac_ext >&5
17862 ac_header_compiler=no
17865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17866 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17867 echo "${ECHO_T}$ac_header_compiler" >&6; }
17869 # Is the header present?
17870 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17871 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
17872 cat >conftest.$ac_ext <<_ACEOF
17873 /* confdefs.h. */
17874 _ACEOF
17875 cat confdefs.h >>conftest.$ac_ext
17876 cat >>conftest.$ac_ext <<_ACEOF
17877 /* end confdefs.h. */
17878 #include <inq_stats/cpustats.h>
17879 _ACEOF
17880 if { (ac_try="$ac_cpp conftest.$ac_ext"
17881 case "(($ac_try" in
17882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17883 *) ac_try_echo=$ac_try;;
17884 esac
17885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17887 ac_status=$?
17888 grep -v '^ *+' conftest.er1 >conftest.err
17889 rm -f conftest.er1
17890 cat conftest.err >&5
17891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892 (exit $ac_status); } >/dev/null && {
17893 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17894 test ! -s conftest.err
17895 }; then
17896 ac_header_preproc=yes
17897 else
17898 echo "$as_me: failed program was:" >&5
17899 sed 's/^/| /' conftest.$ac_ext >&5
17901 ac_header_preproc=no
17904 rm -f conftest.err conftest.$ac_ext
17905 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17906 echo "${ECHO_T}$ac_header_preproc" >&6; }
17908 # So? What about this header?
17909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17910 yes:no: )
17911 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17912 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17913 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17914 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17915 ac_header_preproc=yes
17917 no:yes:* )
17918 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17919 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17920 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17921 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17922 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17923 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17924 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17925 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17926 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17927 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17928 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17929 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17932 esac
17933 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17934 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17935 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17936 echo $ECHO_N "(cached) $ECHO_C" >&6
17937 else
17938 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17940 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17941 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17944 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17945 ac_have_func=yes
17947 cat >>confdefs.h <<\_ACEOF
17948 #define UMAX 1
17949 _ACEOF
17952 cat >>confdefs.h <<\_ACEOF
17953 #define UMAX4_3 1
17954 _ACEOF
17961 if test $ac_have_func = no; then
17962 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17963 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17964 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17965 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17966 echo $ECHO_N "(cached) $ECHO_C" >&6
17968 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17969 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17970 else
17971 # Is the header compilable?
17972 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
17973 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
17974 cat >conftest.$ac_ext <<_ACEOF
17975 /* confdefs.h. */
17976 _ACEOF
17977 cat confdefs.h >>conftest.$ac_ext
17978 cat >>conftest.$ac_ext <<_ACEOF
17979 /* end confdefs.h. */
17980 $ac_includes_default
17981 #include <sys/cpustats.h>
17982 _ACEOF
17983 rm -f conftest.$ac_objext
17984 if { (ac_try="$ac_compile"
17985 case "(($ac_try" in
17986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17987 *) ac_try_echo=$ac_try;;
17988 esac
17989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17990 (eval "$ac_compile") 2>conftest.er1
17991 ac_status=$?
17992 grep -v '^ *+' conftest.er1 >conftest.err
17993 rm -f conftest.er1
17994 cat conftest.err >&5
17995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996 (exit $ac_status); } && {
17997 test -z "$ac_c_werror_flag" ||
17998 test ! -s conftest.err
17999 } && test -s conftest.$ac_objext; then
18000 ac_header_compiler=yes
18001 else
18002 echo "$as_me: failed program was:" >&5
18003 sed 's/^/| /' conftest.$ac_ext >&5
18005 ac_header_compiler=no
18008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18009 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18010 echo "${ECHO_T}$ac_header_compiler" >&6; }
18012 # Is the header present?
18013 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
18014 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
18015 cat >conftest.$ac_ext <<_ACEOF
18016 /* confdefs.h. */
18017 _ACEOF
18018 cat confdefs.h >>conftest.$ac_ext
18019 cat >>conftest.$ac_ext <<_ACEOF
18020 /* end confdefs.h. */
18021 #include <sys/cpustats.h>
18022 _ACEOF
18023 if { (ac_try="$ac_cpp conftest.$ac_ext"
18024 case "(($ac_try" in
18025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18026 *) ac_try_echo=$ac_try;;
18027 esac
18028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18029 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18030 ac_status=$?
18031 grep -v '^ *+' conftest.er1 >conftest.err
18032 rm -f conftest.er1
18033 cat conftest.err >&5
18034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035 (exit $ac_status); } >/dev/null && {
18036 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18037 test ! -s conftest.err
18038 }; then
18039 ac_header_preproc=yes
18040 else
18041 echo "$as_me: failed program was:" >&5
18042 sed 's/^/| /' conftest.$ac_ext >&5
18044 ac_header_preproc=no
18047 rm -f conftest.err conftest.$ac_ext
18048 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18049 echo "${ECHO_T}$ac_header_preproc" >&6; }
18051 # So? What about this header?
18052 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18053 yes:no: )
18054 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18055 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18056 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
18057 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
18058 ac_header_preproc=yes
18060 no:yes:* )
18061 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
18062 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
18063 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
18064 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
18065 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
18066 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
18067 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18068 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18069 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
18070 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
18071 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
18072 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
18075 esac
18076 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18077 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18078 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18079 echo $ECHO_N "(cached) $ECHO_C" >&6
18080 else
18081 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18083 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18084 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18087 if test $ac_cv_header_sys_cpustats_h = yes; then
18088 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18089 #define UMAX 1
18090 _ACEOF
18097 if test $ac_have_func = no; then
18099 for ac_header in mach/mach.h
18101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18103 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18106 echo $ECHO_N "(cached) $ECHO_C" >&6
18108 ac_res=`eval echo '${'$as_ac_Header'}'`
18109 { echo "$as_me:$LINENO: result: $ac_res" >&5
18110 echo "${ECHO_T}$ac_res" >&6; }
18111 else
18112 # Is the header compilable?
18113 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18115 cat >conftest.$ac_ext <<_ACEOF
18116 /* confdefs.h. */
18117 _ACEOF
18118 cat confdefs.h >>conftest.$ac_ext
18119 cat >>conftest.$ac_ext <<_ACEOF
18120 /* end confdefs.h. */
18121 $ac_includes_default
18122 #include <$ac_header>
18123 _ACEOF
18124 rm -f conftest.$ac_objext
18125 if { (ac_try="$ac_compile"
18126 case "(($ac_try" in
18127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18128 *) ac_try_echo=$ac_try;;
18129 esac
18130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18131 (eval "$ac_compile") 2>conftest.er1
18132 ac_status=$?
18133 grep -v '^ *+' conftest.er1 >conftest.err
18134 rm -f conftest.er1
18135 cat conftest.err >&5
18136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137 (exit $ac_status); } && {
18138 test -z "$ac_c_werror_flag" ||
18139 test ! -s conftest.err
18140 } && test -s conftest.$ac_objext; then
18141 ac_header_compiler=yes
18142 else
18143 echo "$as_me: failed program was:" >&5
18144 sed 's/^/| /' conftest.$ac_ext >&5
18146 ac_header_compiler=no
18149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18150 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18151 echo "${ECHO_T}$ac_header_compiler" >&6; }
18153 # Is the header present?
18154 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18155 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18156 cat >conftest.$ac_ext <<_ACEOF
18157 /* confdefs.h. */
18158 _ACEOF
18159 cat confdefs.h >>conftest.$ac_ext
18160 cat >>conftest.$ac_ext <<_ACEOF
18161 /* end confdefs.h. */
18162 #include <$ac_header>
18163 _ACEOF
18164 if { (ac_try="$ac_cpp conftest.$ac_ext"
18165 case "(($ac_try" in
18166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18167 *) ac_try_echo=$ac_try;;
18168 esac
18169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18171 ac_status=$?
18172 grep -v '^ *+' conftest.er1 >conftest.err
18173 rm -f conftest.er1
18174 cat conftest.err >&5
18175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176 (exit $ac_status); } >/dev/null && {
18177 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18178 test ! -s conftest.err
18179 }; then
18180 ac_header_preproc=yes
18181 else
18182 echo "$as_me: failed program was:" >&5
18183 sed 's/^/| /' conftest.$ac_ext >&5
18185 ac_header_preproc=no
18188 rm -f conftest.err conftest.$ac_ext
18189 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18190 echo "${ECHO_T}$ac_header_preproc" >&6; }
18192 # So? What about this header?
18193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18194 yes:no: )
18195 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18196 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18198 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18199 ac_header_preproc=yes
18201 no:yes:* )
18202 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18203 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18204 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18205 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18206 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18207 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18208 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18209 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18211 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18212 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18213 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18216 esac
18217 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18220 echo $ECHO_N "(cached) $ECHO_C" >&6
18221 else
18222 eval "$as_ac_Header=\$ac_header_preproc"
18224 ac_res=`eval echo '${'$as_ac_Header'}'`
18225 { echo "$as_me:$LINENO: result: $ac_res" >&5
18226 echo "${ECHO_T}$ac_res" >&6; }
18229 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18230 cat >>confdefs.h <<_ACEOF
18231 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18232 _ACEOF
18236 done
18241 for ac_header in nlist.h
18243 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18244 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18245 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18248 echo $ECHO_N "(cached) $ECHO_C" >&6
18250 ac_res=`eval echo '${'$as_ac_Header'}'`
18251 { echo "$as_me:$LINENO: result: $ac_res" >&5
18252 echo "${ECHO_T}$ac_res" >&6; }
18253 else
18254 # Is the header compilable?
18255 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18256 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18257 cat >conftest.$ac_ext <<_ACEOF
18258 /* confdefs.h. */
18259 _ACEOF
18260 cat confdefs.h >>conftest.$ac_ext
18261 cat >>conftest.$ac_ext <<_ACEOF
18262 /* end confdefs.h. */
18263 $ac_includes_default
18264 #include <$ac_header>
18265 _ACEOF
18266 rm -f conftest.$ac_objext
18267 if { (ac_try="$ac_compile"
18268 case "(($ac_try" in
18269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18270 *) ac_try_echo=$ac_try;;
18271 esac
18272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18273 (eval "$ac_compile") 2>conftest.er1
18274 ac_status=$?
18275 grep -v '^ *+' conftest.er1 >conftest.err
18276 rm -f conftest.er1
18277 cat conftest.err >&5
18278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279 (exit $ac_status); } && {
18280 test -z "$ac_c_werror_flag" ||
18281 test ! -s conftest.err
18282 } && test -s conftest.$ac_objext; then
18283 ac_header_compiler=yes
18284 else
18285 echo "$as_me: failed program was:" >&5
18286 sed 's/^/| /' conftest.$ac_ext >&5
18288 ac_header_compiler=no
18291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18292 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18293 echo "${ECHO_T}$ac_header_compiler" >&6; }
18295 # Is the header present?
18296 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18297 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18298 cat >conftest.$ac_ext <<_ACEOF
18299 /* confdefs.h. */
18300 _ACEOF
18301 cat confdefs.h >>conftest.$ac_ext
18302 cat >>conftest.$ac_ext <<_ACEOF
18303 /* end confdefs.h. */
18304 #include <$ac_header>
18305 _ACEOF
18306 if { (ac_try="$ac_cpp conftest.$ac_ext"
18307 case "(($ac_try" in
18308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18309 *) ac_try_echo=$ac_try;;
18310 esac
18311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18312 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18313 ac_status=$?
18314 grep -v '^ *+' conftest.er1 >conftest.err
18315 rm -f conftest.er1
18316 cat conftest.err >&5
18317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18318 (exit $ac_status); } >/dev/null && {
18319 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18320 test ! -s conftest.err
18321 }; then
18322 ac_header_preproc=yes
18323 else
18324 echo "$as_me: failed program was:" >&5
18325 sed 's/^/| /' conftest.$ac_ext >&5
18327 ac_header_preproc=no
18330 rm -f conftest.err conftest.$ac_ext
18331 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18332 echo "${ECHO_T}$ac_header_preproc" >&6; }
18334 # So? What about this header?
18335 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18336 yes:no: )
18337 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18338 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18340 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18341 ac_header_preproc=yes
18343 no:yes:* )
18344 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18345 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18346 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18347 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18348 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18349 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18350 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18351 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18353 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18354 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18355 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18358 esac
18359 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18362 echo $ECHO_N "(cached) $ECHO_C" >&6
18363 else
18364 eval "$as_ac_Header=\$ac_header_preproc"
18366 ac_res=`eval echo '${'$as_ac_Header'}'`
18367 { echo "$as_me:$LINENO: result: $ac_res" >&5
18368 echo "${ECHO_T}$ac_res" >&6; }
18371 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18372 cat >>confdefs.h <<_ACEOF
18373 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18374 _ACEOF
18375 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18376 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18377 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18378 echo $ECHO_N "(cached) $ECHO_C" >&6
18379 else
18380 cat >conftest.$ac_ext <<_ACEOF
18381 /* confdefs.h. */
18382 _ACEOF
18383 cat confdefs.h >>conftest.$ac_ext
18384 cat >>conftest.$ac_ext <<_ACEOF
18385 /* end confdefs.h. */
18386 #include <nlist.h>
18389 main ()
18391 static struct nlist ac_aggr;
18392 if (ac_aggr.n_un.n_name)
18393 return 0;
18395 return 0;
18397 _ACEOF
18398 rm -f conftest.$ac_objext
18399 if { (ac_try="$ac_compile"
18400 case "(($ac_try" in
18401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18402 *) ac_try_echo=$ac_try;;
18403 esac
18404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18405 (eval "$ac_compile") 2>conftest.er1
18406 ac_status=$?
18407 grep -v '^ *+' conftest.er1 >conftest.err
18408 rm -f conftest.er1
18409 cat conftest.err >&5
18410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18411 (exit $ac_status); } && {
18412 test -z "$ac_c_werror_flag" ||
18413 test ! -s conftest.err
18414 } && test -s conftest.$ac_objext; then
18415 ac_cv_member_struct_nlist_n_un_n_name=yes
18416 else
18417 echo "$as_me: failed program was:" >&5
18418 sed 's/^/| /' conftest.$ac_ext >&5
18420 cat >conftest.$ac_ext <<_ACEOF
18421 /* confdefs.h. */
18422 _ACEOF
18423 cat confdefs.h >>conftest.$ac_ext
18424 cat >>conftest.$ac_ext <<_ACEOF
18425 /* end confdefs.h. */
18426 #include <nlist.h>
18429 main ()
18431 static struct nlist ac_aggr;
18432 if (sizeof ac_aggr.n_un.n_name)
18433 return 0;
18435 return 0;
18437 _ACEOF
18438 rm -f conftest.$ac_objext
18439 if { (ac_try="$ac_compile"
18440 case "(($ac_try" in
18441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18442 *) ac_try_echo=$ac_try;;
18443 esac
18444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18445 (eval "$ac_compile") 2>conftest.er1
18446 ac_status=$?
18447 grep -v '^ *+' conftest.er1 >conftest.err
18448 rm -f conftest.er1
18449 cat conftest.err >&5
18450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18451 (exit $ac_status); } && {
18452 test -z "$ac_c_werror_flag" ||
18453 test ! -s conftest.err
18454 } && test -s conftest.$ac_objext; then
18455 ac_cv_member_struct_nlist_n_un_n_name=yes
18456 else
18457 echo "$as_me: failed program was:" >&5
18458 sed 's/^/| /' conftest.$ac_ext >&5
18460 ac_cv_member_struct_nlist_n_un_n_name=no
18463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18468 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18469 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18470 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18472 cat >>confdefs.h <<_ACEOF
18473 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18474 _ACEOF
18477 cat >>confdefs.h <<\_ACEOF
18478 #define NLIST_NAME_UNION 1
18479 _ACEOF
18486 done
18489 done
18492 # Some definitions of getloadavg require that the program be installed setgid.
18493 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18494 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18495 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18496 echo $ECHO_N "(cached) $ECHO_C" >&6
18497 else
18498 cat >conftest.$ac_ext <<_ACEOF
18499 /* confdefs.h. */
18500 _ACEOF
18501 cat confdefs.h >>conftest.$ac_ext
18502 cat >>conftest.$ac_ext <<_ACEOF
18503 /* end confdefs.h. */
18504 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18505 #ifdef LDAV_PRIVILEGED
18506 Yowza Am I SETGID yet
18507 #endif
18508 _ACEOF
18509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18510 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18511 ac_cv_func_getloadavg_setgid=yes
18512 else
18513 ac_cv_func_getloadavg_setgid=no
18515 rm -f conftest*
18518 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18519 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18520 if test $ac_cv_func_getloadavg_setgid = yes; then
18521 NEED_SETGID=true
18523 cat >>confdefs.h <<\_ACEOF
18524 #define GETLOADAVG_PRIVILEGED 1
18525 _ACEOF
18527 else
18528 NEED_SETGID=false
18531 if test $ac_cv_func_getloadavg_setgid = yes; then
18532 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18533 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18534 if test "${ac_cv_group_kmem+set}" = set; then
18535 echo $ECHO_N "(cached) $ECHO_C" >&6
18536 else
18537 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18538 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18539 # If we got an error (system does not support symlinks), try without -L.
18540 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18541 ac_cv_group_kmem=`echo $ac_ls_output \
18542 | sed -ne 's/[ ][ ]*/ /g;
18543 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18544 / /s/.* //;p;'`
18547 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18548 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18549 KMEM_GROUP=$ac_cv_group_kmem
18551 if test "x$ac_save_LIBS" = x; then
18552 GETLOADAVG_LIBS=$LIBS
18553 else
18554 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18556 LIBS=$ac_save_LIBS
18560 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18561 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18562 if test "${ac_cv_sys_largefile_source+set}" = set; then
18563 echo $ECHO_N "(cached) $ECHO_C" >&6
18564 else
18565 while :; do
18566 cat >conftest.$ac_ext <<_ACEOF
18567 /* confdefs.h. */
18568 _ACEOF
18569 cat confdefs.h >>conftest.$ac_ext
18570 cat >>conftest.$ac_ext <<_ACEOF
18571 /* end confdefs.h. */
18572 #include <stdio.h>
18574 main ()
18576 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18578 return 0;
18580 _ACEOF
18581 rm -f conftest.$ac_objext conftest$ac_exeext
18582 if { (ac_try="$ac_link"
18583 case "(($ac_try" in
18584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18585 *) ac_try_echo=$ac_try;;
18586 esac
18587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18588 (eval "$ac_link") 2>conftest.er1
18589 ac_status=$?
18590 grep -v '^ *+' conftest.er1 >conftest.err
18591 rm -f conftest.er1
18592 cat conftest.err >&5
18593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18594 (exit $ac_status); } && {
18595 test -z "$ac_c_werror_flag" ||
18596 test ! -s conftest.err
18597 } && test -s conftest$ac_exeext &&
18598 $as_test_x conftest$ac_exeext; then
18599 ac_cv_sys_largefile_source=no; break
18600 else
18601 echo "$as_me: failed program was:" >&5
18602 sed 's/^/| /' conftest.$ac_ext >&5
18607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18608 conftest$ac_exeext conftest.$ac_ext
18609 cat >conftest.$ac_ext <<_ACEOF
18610 /* confdefs.h. */
18611 _ACEOF
18612 cat confdefs.h >>conftest.$ac_ext
18613 cat >>conftest.$ac_ext <<_ACEOF
18614 /* end confdefs.h. */
18615 #define _LARGEFILE_SOURCE 1
18616 #include <stdio.h>
18618 main ()
18620 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18622 return 0;
18624 _ACEOF
18625 rm -f conftest.$ac_objext conftest$ac_exeext
18626 if { (ac_try="$ac_link"
18627 case "(($ac_try" in
18628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18629 *) ac_try_echo=$ac_try;;
18630 esac
18631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18632 (eval "$ac_link") 2>conftest.er1
18633 ac_status=$?
18634 grep -v '^ *+' conftest.er1 >conftest.err
18635 rm -f conftest.er1
18636 cat conftest.err >&5
18637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638 (exit $ac_status); } && {
18639 test -z "$ac_c_werror_flag" ||
18640 test ! -s conftest.err
18641 } && test -s conftest$ac_exeext &&
18642 $as_test_x conftest$ac_exeext; then
18643 ac_cv_sys_largefile_source=1; break
18644 else
18645 echo "$as_me: failed program was:" >&5
18646 sed 's/^/| /' conftest.$ac_ext >&5
18651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18652 conftest$ac_exeext conftest.$ac_ext
18653 ac_cv_sys_largefile_source=unknown
18654 break
18655 done
18657 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18658 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18659 case $ac_cv_sys_largefile_source in #(
18660 no | unknown) ;;
18662 cat >>confdefs.h <<_ACEOF
18663 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18664 _ACEOF
18666 esac
18667 rm -f conftest*
18669 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18670 # in glibc 2.1.3, but that breaks too many other things.
18671 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18672 if test $ac_cv_sys_largefile_source != unknown; then
18674 cat >>confdefs.h <<\_ACEOF
18675 #define HAVE_FSEEKO 1
18676 _ACEOF
18681 # Configure getopt.
18682 # getopt.m4 serial 10
18684 # The getopt module assume you want GNU getopt, with getopt_long etc,
18685 # rather than vanilla POSIX getopt. This means your your code should
18686 # always include <getopt.h> for the getopt prototypes.
18698 # Prerequisites of lib/getopt*.
18703 GETOPT_H=
18705 for ac_header in getopt.h
18707 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18709 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18712 echo $ECHO_N "(cached) $ECHO_C" >&6
18714 ac_res=`eval echo '${'$as_ac_Header'}'`
18715 { echo "$as_me:$LINENO: result: $ac_res" >&5
18716 echo "${ECHO_T}$ac_res" >&6; }
18717 else
18718 # Is the header compilable?
18719 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18720 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18721 cat >conftest.$ac_ext <<_ACEOF
18722 /* confdefs.h. */
18723 _ACEOF
18724 cat confdefs.h >>conftest.$ac_ext
18725 cat >>conftest.$ac_ext <<_ACEOF
18726 /* end confdefs.h. */
18727 $ac_includes_default
18728 #include <$ac_header>
18729 _ACEOF
18730 rm -f conftest.$ac_objext
18731 if { (ac_try="$ac_compile"
18732 case "(($ac_try" in
18733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18734 *) ac_try_echo=$ac_try;;
18735 esac
18736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18737 (eval "$ac_compile") 2>conftest.er1
18738 ac_status=$?
18739 grep -v '^ *+' conftest.er1 >conftest.err
18740 rm -f conftest.er1
18741 cat conftest.err >&5
18742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743 (exit $ac_status); } && {
18744 test -z "$ac_c_werror_flag" ||
18745 test ! -s conftest.err
18746 } && test -s conftest.$ac_objext; then
18747 ac_header_compiler=yes
18748 else
18749 echo "$as_me: failed program was:" >&5
18750 sed 's/^/| /' conftest.$ac_ext >&5
18752 ac_header_compiler=no
18755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18756 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18757 echo "${ECHO_T}$ac_header_compiler" >&6; }
18759 # Is the header present?
18760 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18761 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18762 cat >conftest.$ac_ext <<_ACEOF
18763 /* confdefs.h. */
18764 _ACEOF
18765 cat confdefs.h >>conftest.$ac_ext
18766 cat >>conftest.$ac_ext <<_ACEOF
18767 /* end confdefs.h. */
18768 #include <$ac_header>
18769 _ACEOF
18770 if { (ac_try="$ac_cpp conftest.$ac_ext"
18771 case "(($ac_try" in
18772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18773 *) ac_try_echo=$ac_try;;
18774 esac
18775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18777 ac_status=$?
18778 grep -v '^ *+' conftest.er1 >conftest.err
18779 rm -f conftest.er1
18780 cat conftest.err >&5
18781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782 (exit $ac_status); } >/dev/null && {
18783 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18784 test ! -s conftest.err
18785 }; then
18786 ac_header_preproc=yes
18787 else
18788 echo "$as_me: failed program was:" >&5
18789 sed 's/^/| /' conftest.$ac_ext >&5
18791 ac_header_preproc=no
18794 rm -f conftest.err conftest.$ac_ext
18795 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18796 echo "${ECHO_T}$ac_header_preproc" >&6; }
18798 # So? What about this header?
18799 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18800 yes:no: )
18801 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18802 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18804 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18805 ac_header_preproc=yes
18807 no:yes:* )
18808 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18809 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18810 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18811 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18812 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18813 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18814 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18815 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18817 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18818 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18819 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18822 esac
18823 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18826 echo $ECHO_N "(cached) $ECHO_C" >&6
18827 else
18828 eval "$as_ac_Header=\$ac_header_preproc"
18830 ac_res=`eval echo '${'$as_ac_Header'}'`
18831 { echo "$as_me:$LINENO: result: $ac_res" >&5
18832 echo "${ECHO_T}$ac_res" >&6; }
18835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18836 cat >>confdefs.h <<_ACEOF
18837 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18838 _ACEOF
18840 else
18841 GETOPT_H=getopt.h
18844 done
18846 if test -z "$GETOPT_H"; then
18848 for ac_func in getopt_long_only
18850 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18851 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18852 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18853 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18854 echo $ECHO_N "(cached) $ECHO_C" >&6
18855 else
18856 cat >conftest.$ac_ext <<_ACEOF
18857 /* confdefs.h. */
18858 _ACEOF
18859 cat confdefs.h >>conftest.$ac_ext
18860 cat >>conftest.$ac_ext <<_ACEOF
18861 /* end confdefs.h. */
18862 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18864 #define $ac_func innocuous_$ac_func
18866 /* System header to define __stub macros and hopefully few prototypes,
18867 which can conflict with char $ac_func (); below.
18868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18869 <limits.h> exists even on freestanding compilers. */
18871 #ifdef __STDC__
18872 # include <limits.h>
18873 #else
18874 # include <assert.h>
18875 #endif
18877 #undef $ac_func
18879 /* Override any GCC internal prototype to avoid an error.
18880 Use char because int might match the return type of a GCC
18881 builtin and then its argument prototype would still apply. */
18882 #ifdef __cplusplus
18883 extern "C"
18884 #endif
18885 char $ac_func ();
18886 /* The GNU C library defines this for functions which it implements
18887 to always fail with ENOSYS. Some functions are actually named
18888 something starting with __ and the normal name is an alias. */
18889 #if defined __stub_$ac_func || defined __stub___$ac_func
18890 choke me
18891 #endif
18894 main ()
18896 return $ac_func ();
18898 return 0;
18900 _ACEOF
18901 rm -f conftest.$ac_objext conftest$ac_exeext
18902 if { (ac_try="$ac_link"
18903 case "(($ac_try" in
18904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18905 *) ac_try_echo=$ac_try;;
18906 esac
18907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18908 (eval "$ac_link") 2>conftest.er1
18909 ac_status=$?
18910 grep -v '^ *+' conftest.er1 >conftest.err
18911 rm -f conftest.er1
18912 cat conftest.err >&5
18913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18914 (exit $ac_status); } && {
18915 test -z "$ac_c_werror_flag" ||
18916 test ! -s conftest.err
18917 } && test -s conftest$ac_exeext &&
18918 $as_test_x conftest$ac_exeext; then
18919 eval "$as_ac_var=yes"
18920 else
18921 echo "$as_me: failed program was:" >&5
18922 sed 's/^/| /' conftest.$ac_ext >&5
18924 eval "$as_ac_var=no"
18927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18928 conftest$ac_exeext conftest.$ac_ext
18930 ac_res=`eval echo '${'$as_ac_var'}'`
18931 { echo "$as_me:$LINENO: result: $ac_res" >&5
18932 echo "${ECHO_T}$ac_res" >&6; }
18933 if test `eval echo '${'$as_ac_var'}'` = yes; then
18934 cat >>confdefs.h <<_ACEOF
18935 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18936 _ACEOF
18938 else
18939 GETOPT_H=getopt.h
18941 done
18945 if test -z "$GETOPT_H"; then
18946 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
18947 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
18948 if test "${ac_cv_have_decl_optreset+set}" = set; then
18949 echo $ECHO_N "(cached) $ECHO_C" >&6
18950 else
18951 cat >conftest.$ac_ext <<_ACEOF
18952 /* confdefs.h. */
18953 _ACEOF
18954 cat confdefs.h >>conftest.$ac_ext
18955 cat >>conftest.$ac_ext <<_ACEOF
18956 /* end confdefs.h. */
18957 #include <getopt.h>
18960 main ()
18962 #ifndef optreset
18963 (void) optreset;
18964 #endif
18967 return 0;
18969 _ACEOF
18970 rm -f conftest.$ac_objext
18971 if { (ac_try="$ac_compile"
18972 case "(($ac_try" in
18973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18974 *) ac_try_echo=$ac_try;;
18975 esac
18976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18977 (eval "$ac_compile") 2>conftest.er1
18978 ac_status=$?
18979 grep -v '^ *+' conftest.er1 >conftest.err
18980 rm -f conftest.er1
18981 cat conftest.err >&5
18982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983 (exit $ac_status); } && {
18984 test -z "$ac_c_werror_flag" ||
18985 test ! -s conftest.err
18986 } && test -s conftest.$ac_objext; then
18987 ac_cv_have_decl_optreset=yes
18988 else
18989 echo "$as_me: failed program was:" >&5
18990 sed 's/^/| /' conftest.$ac_ext >&5
18992 ac_cv_have_decl_optreset=no
18995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18997 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
18998 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18999 if test $ac_cv_have_decl_optreset = yes; then
19000 GETOPT_H=getopt.h
19005 if test -z "$GETOPT_H"; then
19006 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
19007 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
19008 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19009 echo $ECHO_N "(cached) $ECHO_C" >&6
19010 else
19011 if test "$cross_compiling" = yes; then
19012 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
19013 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
19014 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19015 echo $ECHO_N "(cached) $ECHO_C" >&6
19016 else
19017 cat >conftest.$ac_ext <<_ACEOF
19018 /* confdefs.h. */
19019 _ACEOF
19020 cat confdefs.h >>conftest.$ac_ext
19021 cat >>conftest.$ac_ext <<_ACEOF
19022 /* end confdefs.h. */
19023 #include <getopt.h>
19026 main ()
19028 #ifndef getopt_clip
19029 (void) getopt_clip;
19030 #endif
19033 return 0;
19035 _ACEOF
19036 rm -f conftest.$ac_objext
19037 if { (ac_try="$ac_compile"
19038 case "(($ac_try" in
19039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19040 *) ac_try_echo=$ac_try;;
19041 esac
19042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19043 (eval "$ac_compile") 2>conftest.er1
19044 ac_status=$?
19045 grep -v '^ *+' conftest.er1 >conftest.err
19046 rm -f conftest.er1
19047 cat conftest.err >&5
19048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19049 (exit $ac_status); } && {
19050 test -z "$ac_c_werror_flag" ||
19051 test ! -s conftest.err
19052 } && test -s conftest.$ac_objext; then
19053 ac_cv_have_decl_getopt_clip=yes
19054 else
19055 echo "$as_me: failed program was:" >&5
19056 sed 's/^/| /' conftest.$ac_ext >&5
19058 ac_cv_have_decl_getopt_clip=no
19061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19063 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
19064 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19065 if test $ac_cv_have_decl_getopt_clip = yes; then
19066 gl_cv_func_gnu_getopt=no
19067 else
19068 gl_cv_func_gnu_getopt=yes
19071 else
19072 cat >conftest.$ac_ext <<_ACEOF
19073 /* confdefs.h. */
19074 _ACEOF
19075 cat confdefs.h >>conftest.$ac_ext
19076 cat >>conftest.$ac_ext <<_ACEOF
19077 /* end confdefs.h. */
19078 #include <getopt.h>
19080 main ()
19083 char *myargv[3];
19084 myargv[0] = "conftest";
19085 myargv[1] = "-+";
19086 myargv[2] = 0;
19087 return getopt (2, myargv, "+a") != '?';
19090 return 0;
19092 _ACEOF
19093 rm -f conftest$ac_exeext
19094 if { (ac_try="$ac_link"
19095 case "(($ac_try" in
19096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19097 *) ac_try_echo=$ac_try;;
19098 esac
19099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19100 (eval "$ac_link") 2>&5
19101 ac_status=$?
19102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19103 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19104 { (case "(($ac_try" in
19105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19106 *) ac_try_echo=$ac_try;;
19107 esac
19108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19109 (eval "$ac_try") 2>&5
19110 ac_status=$?
19111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112 (exit $ac_status); }; }; then
19113 gl_cv_func_gnu_getopt=yes
19114 else
19115 echo "$as_me: program exited with status $ac_status" >&5
19116 echo "$as_me: failed program was:" >&5
19117 sed 's/^/| /' conftest.$ac_ext >&5
19119 ( exit $ac_status )
19120 gl_cv_func_gnu_getopt=no
19122 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19127 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
19128 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19129 if test "$gl_cv_func_gnu_getopt" = "no"; then
19130 GETOPT_H=getopt.h
19136 if test -n "$GETOPT_H"; then
19139 GETOPT_H=getopt.h
19141 cat >>confdefs.h <<\_ACEOF
19142 #define __GETOPT_PREFIX rpl_
19143 _ACEOF
19148 GETOPTOBJS='getopt.o getopt1.o'
19155 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
19156 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
19157 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19158 echo $ECHO_N "(cached) $ECHO_C" >&6
19159 else
19160 # Use it with a single arg.
19161 cat >conftest.$ac_ext <<_ACEOF
19162 /* confdefs.h. */
19163 _ACEOF
19164 cat confdefs.h >>conftest.$ac_ext
19165 cat >>conftest.$ac_ext <<_ACEOF
19166 /* end confdefs.h. */
19167 $ac_includes_default
19169 main ()
19171 getpgrp (0);
19173 return 0;
19175 _ACEOF
19176 rm -f conftest.$ac_objext
19177 if { (ac_try="$ac_compile"
19178 case "(($ac_try" in
19179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19180 *) ac_try_echo=$ac_try;;
19181 esac
19182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19183 (eval "$ac_compile") 2>conftest.er1
19184 ac_status=$?
19185 grep -v '^ *+' conftest.er1 >conftest.err
19186 rm -f conftest.er1
19187 cat conftest.err >&5
19188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19189 (exit $ac_status); } && {
19190 test -z "$ac_c_werror_flag" ||
19191 test ! -s conftest.err
19192 } && test -s conftest.$ac_objext; then
19193 ac_cv_func_getpgrp_void=no
19194 else
19195 echo "$as_me: failed program was:" >&5
19196 sed 's/^/| /' conftest.$ac_ext >&5
19198 ac_cv_func_getpgrp_void=yes
19201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19204 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
19205 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19206 if test $ac_cv_func_getpgrp_void = yes; then
19208 cat >>confdefs.h <<\_ACEOF
19209 #define GETPGRP_VOID 1
19210 _ACEOF
19216 for ac_func in strftime
19218 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19219 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19220 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19221 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19222 echo $ECHO_N "(cached) $ECHO_C" >&6
19223 else
19224 cat >conftest.$ac_ext <<_ACEOF
19225 /* confdefs.h. */
19226 _ACEOF
19227 cat confdefs.h >>conftest.$ac_ext
19228 cat >>conftest.$ac_ext <<_ACEOF
19229 /* end confdefs.h. */
19230 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19231 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19232 #define $ac_func innocuous_$ac_func
19234 /* System header to define __stub macros and hopefully few prototypes,
19235 which can conflict with char $ac_func (); below.
19236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19237 <limits.h> exists even on freestanding compilers. */
19239 #ifdef __STDC__
19240 # include <limits.h>
19241 #else
19242 # include <assert.h>
19243 #endif
19245 #undef $ac_func
19247 /* Override any GCC internal prototype to avoid an error.
19248 Use char because int might match the return type of a GCC
19249 builtin and then its argument prototype would still apply. */
19250 #ifdef __cplusplus
19251 extern "C"
19252 #endif
19253 char $ac_func ();
19254 /* The GNU C library defines this for functions which it implements
19255 to always fail with ENOSYS. Some functions are actually named
19256 something starting with __ and the normal name is an alias. */
19257 #if defined __stub_$ac_func || defined __stub___$ac_func
19258 choke me
19259 #endif
19262 main ()
19264 return $ac_func ();
19266 return 0;
19268 _ACEOF
19269 rm -f conftest.$ac_objext conftest$ac_exeext
19270 if { (ac_try="$ac_link"
19271 case "(($ac_try" in
19272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19273 *) ac_try_echo=$ac_try;;
19274 esac
19275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19276 (eval "$ac_link") 2>conftest.er1
19277 ac_status=$?
19278 grep -v '^ *+' conftest.er1 >conftest.err
19279 rm -f conftest.er1
19280 cat conftest.err >&5
19281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282 (exit $ac_status); } && {
19283 test -z "$ac_c_werror_flag" ||
19284 test ! -s conftest.err
19285 } && test -s conftest$ac_exeext &&
19286 $as_test_x conftest$ac_exeext; then
19287 eval "$as_ac_var=yes"
19288 else
19289 echo "$as_me: failed program was:" >&5
19290 sed 's/^/| /' conftest.$ac_ext >&5
19292 eval "$as_ac_var=no"
19295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19296 conftest$ac_exeext conftest.$ac_ext
19298 ac_res=`eval echo '${'$as_ac_var'}'`
19299 { echo "$as_me:$LINENO: result: $ac_res" >&5
19300 echo "${ECHO_T}$ac_res" >&6; }
19301 if test `eval echo '${'$as_ac_var'}'` = yes; then
19302 cat >>confdefs.h <<_ACEOF
19303 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19304 _ACEOF
19306 else
19307 # strftime is in -lintl on SCO UNIX.
19308 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19309 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
19310 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19311 echo $ECHO_N "(cached) $ECHO_C" >&6
19312 else
19313 ac_check_lib_save_LIBS=$LIBS
19314 LIBS="-lintl $LIBS"
19315 cat >conftest.$ac_ext <<_ACEOF
19316 /* confdefs.h. */
19317 _ACEOF
19318 cat confdefs.h >>conftest.$ac_ext
19319 cat >>conftest.$ac_ext <<_ACEOF
19320 /* end confdefs.h. */
19322 /* Override any GCC internal prototype to avoid an error.
19323 Use char because int might match the return type of a GCC
19324 builtin and then its argument prototype would still apply. */
19325 #ifdef __cplusplus
19326 extern "C"
19327 #endif
19328 char strftime ();
19330 main ()
19332 return strftime ();
19334 return 0;
19336 _ACEOF
19337 rm -f conftest.$ac_objext conftest$ac_exeext
19338 if { (ac_try="$ac_link"
19339 case "(($ac_try" in
19340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19341 *) ac_try_echo=$ac_try;;
19342 esac
19343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19344 (eval "$ac_link") 2>conftest.er1
19345 ac_status=$?
19346 grep -v '^ *+' conftest.er1 >conftest.err
19347 rm -f conftest.er1
19348 cat conftest.err >&5
19349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19350 (exit $ac_status); } && {
19351 test -z "$ac_c_werror_flag" ||
19352 test ! -s conftest.err
19353 } && test -s conftest$ac_exeext &&
19354 $as_test_x conftest$ac_exeext; then
19355 ac_cv_lib_intl_strftime=yes
19356 else
19357 echo "$as_me: failed program was:" >&5
19358 sed 's/^/| /' conftest.$ac_ext >&5
19360 ac_cv_lib_intl_strftime=no
19363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19364 conftest$ac_exeext conftest.$ac_ext
19365 LIBS=$ac_check_lib_save_LIBS
19367 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19368 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19369 if test $ac_cv_lib_intl_strftime = yes; then
19370 cat >>confdefs.h <<\_ACEOF
19371 #define HAVE_STRFTIME 1
19372 _ACEOF
19374 LIBS="-lintl $LIBS"
19378 done
19381 # UNIX98 PTYs.
19383 for ac_func in grantpt
19385 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19386 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19387 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19388 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19389 echo $ECHO_N "(cached) $ECHO_C" >&6
19390 else
19391 cat >conftest.$ac_ext <<_ACEOF
19392 /* confdefs.h. */
19393 _ACEOF
19394 cat confdefs.h >>conftest.$ac_ext
19395 cat >>conftest.$ac_ext <<_ACEOF
19396 /* end confdefs.h. */
19397 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19398 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19399 #define $ac_func innocuous_$ac_func
19401 /* System header to define __stub macros and hopefully few prototypes,
19402 which can conflict with char $ac_func (); below.
19403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19404 <limits.h> exists even on freestanding compilers. */
19406 #ifdef __STDC__
19407 # include <limits.h>
19408 #else
19409 # include <assert.h>
19410 #endif
19412 #undef $ac_func
19414 /* Override any GCC internal prototype to avoid an error.
19415 Use char because int might match the return type of a GCC
19416 builtin and then its argument prototype would still apply. */
19417 #ifdef __cplusplus
19418 extern "C"
19419 #endif
19420 char $ac_func ();
19421 /* The GNU C library defines this for functions which it implements
19422 to always fail with ENOSYS. Some functions are actually named
19423 something starting with __ and the normal name is an alias. */
19424 #if defined __stub_$ac_func || defined __stub___$ac_func
19425 choke me
19426 #endif
19429 main ()
19431 return $ac_func ();
19433 return 0;
19435 _ACEOF
19436 rm -f conftest.$ac_objext conftest$ac_exeext
19437 if { (ac_try="$ac_link"
19438 case "(($ac_try" in
19439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19440 *) ac_try_echo=$ac_try;;
19441 esac
19442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19443 (eval "$ac_link") 2>conftest.er1
19444 ac_status=$?
19445 grep -v '^ *+' conftest.er1 >conftest.err
19446 rm -f conftest.er1
19447 cat conftest.err >&5
19448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19449 (exit $ac_status); } && {
19450 test -z "$ac_c_werror_flag" ||
19451 test ! -s conftest.err
19452 } && test -s conftest$ac_exeext &&
19453 $as_test_x conftest$ac_exeext; then
19454 eval "$as_ac_var=yes"
19455 else
19456 echo "$as_me: failed program was:" >&5
19457 sed 's/^/| /' conftest.$ac_ext >&5
19459 eval "$as_ac_var=no"
19462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19463 conftest$ac_exeext conftest.$ac_ext
19465 ac_res=`eval echo '${'$as_ac_var'}'`
19466 { echo "$as_me:$LINENO: result: $ac_res" >&5
19467 echo "${ECHO_T}$ac_res" >&6; }
19468 if test `eval echo '${'$as_ac_var'}'` = yes; then
19469 cat >>confdefs.h <<_ACEOF
19470 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19471 _ACEOF
19474 done
19477 # PTY-related GNU extensions.
19479 for ac_func in getpt
19481 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19482 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19483 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19484 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19485 echo $ECHO_N "(cached) $ECHO_C" >&6
19486 else
19487 cat >conftest.$ac_ext <<_ACEOF
19488 /* confdefs.h. */
19489 _ACEOF
19490 cat confdefs.h >>conftest.$ac_ext
19491 cat >>conftest.$ac_ext <<_ACEOF
19492 /* end confdefs.h. */
19493 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19494 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19495 #define $ac_func innocuous_$ac_func
19497 /* System header to define __stub macros and hopefully few prototypes,
19498 which can conflict with char $ac_func (); below.
19499 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19500 <limits.h> exists even on freestanding compilers. */
19502 #ifdef __STDC__
19503 # include <limits.h>
19504 #else
19505 # include <assert.h>
19506 #endif
19508 #undef $ac_func
19510 /* Override any GCC internal prototype to avoid an error.
19511 Use char because int might match the return type of a GCC
19512 builtin and then its argument prototype would still apply. */
19513 #ifdef __cplusplus
19514 extern "C"
19515 #endif
19516 char $ac_func ();
19517 /* The GNU C library defines this for functions which it implements
19518 to always fail with ENOSYS. Some functions are actually named
19519 something starting with __ and the normal name is an alias. */
19520 #if defined __stub_$ac_func || defined __stub___$ac_func
19521 choke me
19522 #endif
19525 main ()
19527 return $ac_func ();
19529 return 0;
19531 _ACEOF
19532 rm -f conftest.$ac_objext conftest$ac_exeext
19533 if { (ac_try="$ac_link"
19534 case "(($ac_try" in
19535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19536 *) ac_try_echo=$ac_try;;
19537 esac
19538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19539 (eval "$ac_link") 2>conftest.er1
19540 ac_status=$?
19541 grep -v '^ *+' conftest.er1 >conftest.err
19542 rm -f conftest.er1
19543 cat conftest.err >&5
19544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545 (exit $ac_status); } && {
19546 test -z "$ac_c_werror_flag" ||
19547 test ! -s conftest.err
19548 } && test -s conftest$ac_exeext &&
19549 $as_test_x conftest$ac_exeext; then
19550 eval "$as_ac_var=yes"
19551 else
19552 echo "$as_me: failed program was:" >&5
19553 sed 's/^/| /' conftest.$ac_ext >&5
19555 eval "$as_ac_var=no"
19558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19559 conftest$ac_exeext conftest.$ac_ext
19561 ac_res=`eval echo '${'$as_ac_var'}'`
19562 { echo "$as_me:$LINENO: result: $ac_res" >&5
19563 echo "${ECHO_T}$ac_res" >&6; }
19564 if test `eval echo '${'$as_ac_var'}'` = yes; then
19565 cat >>confdefs.h <<_ACEOF
19566 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19567 _ACEOF
19570 done
19573 # Check this now, so that we will NOT find the above functions in ncurses.
19574 # That is because we have not set up to link ncurses in lib-src.
19575 # It's better to believe a function is not available
19576 # than to expect to find it in ncurses.
19578 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19579 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19580 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19581 echo $ECHO_N "(cached) $ECHO_C" >&6
19582 else
19583 ac_check_lib_save_LIBS=$LIBS
19584 LIBS="-lncurses $LIBS"
19585 cat >conftest.$ac_ext <<_ACEOF
19586 /* confdefs.h. */
19587 _ACEOF
19588 cat confdefs.h >>conftest.$ac_ext
19589 cat >>conftest.$ac_ext <<_ACEOF
19590 /* end confdefs.h. */
19592 /* Override any GCC internal prototype to avoid an error.
19593 Use char because int might match the return type of a GCC
19594 builtin and then its argument prototype would still apply. */
19595 #ifdef __cplusplus
19596 extern "C"
19597 #endif
19598 char tparm ();
19600 main ()
19602 return tparm ();
19604 return 0;
19606 _ACEOF
19607 rm -f conftest.$ac_objext conftest$ac_exeext
19608 if { (ac_try="$ac_link"
19609 case "(($ac_try" in
19610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19611 *) ac_try_echo=$ac_try;;
19612 esac
19613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19614 (eval "$ac_link") 2>conftest.er1
19615 ac_status=$?
19616 grep -v '^ *+' conftest.er1 >conftest.err
19617 rm -f conftest.er1
19618 cat conftest.err >&5
19619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620 (exit $ac_status); } && {
19621 test -z "$ac_c_werror_flag" ||
19622 test ! -s conftest.err
19623 } && test -s conftest$ac_exeext &&
19624 $as_test_x conftest$ac_exeext; then
19625 ac_cv_lib_ncurses_tparm=yes
19626 else
19627 echo "$as_me: failed program was:" >&5
19628 sed 's/^/| /' conftest.$ac_ext >&5
19630 ac_cv_lib_ncurses_tparm=no
19633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19634 conftest$ac_exeext conftest.$ac_ext
19635 LIBS=$ac_check_lib_save_LIBS
19637 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19638 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19639 if test $ac_cv_lib_ncurses_tparm = yes; then
19640 cat >>confdefs.h <<_ACEOF
19641 #define HAVE_LIBNCURSES 1
19642 _ACEOF
19644 LIBS="-lncurses $LIBS"
19649 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19651 resolv=no
19652 cat >conftest.$ac_ext <<_ACEOF
19653 /* confdefs.h. */
19654 _ACEOF
19655 cat confdefs.h >>conftest.$ac_ext
19656 cat >>conftest.$ac_ext <<_ACEOF
19657 /* end confdefs.h. */
19658 #include <netinet/in.h>
19659 #include <arpa/nameser.h>
19660 #include <resolv.h>
19662 main ()
19664 return res_init();
19666 return 0;
19668 _ACEOF
19669 rm -f conftest.$ac_objext conftest$ac_exeext
19670 if { (ac_try="$ac_link"
19671 case "(($ac_try" in
19672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19673 *) ac_try_echo=$ac_try;;
19674 esac
19675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19676 (eval "$ac_link") 2>conftest.er1
19677 ac_status=$?
19678 grep -v '^ *+' conftest.er1 >conftest.err
19679 rm -f conftest.er1
19680 cat conftest.err >&5
19681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682 (exit $ac_status); } && {
19683 test -z "$ac_c_werror_flag" ||
19684 test ! -s conftest.err
19685 } && test -s conftest$ac_exeext &&
19686 $as_test_x conftest$ac_exeext; then
19687 have_res_init=yes
19688 else
19689 echo "$as_me: failed program was:" >&5
19690 sed 's/^/| /' conftest.$ac_ext >&5
19692 have_res_init=no
19695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19696 conftest$ac_exeext conftest.$ac_ext
19697 if test "$have_res_init" = no; then
19698 OLIBS="$LIBS"
19699 LIBS="$LIBS -lresolv"
19700 { echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
19701 echo $ECHO_N "checking for res_init with -lresolv... $ECHO_C" >&6; }
19702 cat >conftest.$ac_ext <<_ACEOF
19703 /* confdefs.h. */
19704 _ACEOF
19705 cat confdefs.h >>conftest.$ac_ext
19706 cat >>conftest.$ac_ext <<_ACEOF
19707 /* end confdefs.h. */
19708 #include <netinet/in.h>
19709 #include <arpa/nameser.h>
19710 #include <resolv.h>
19712 main ()
19714 return res_init();
19716 return 0;
19718 _ACEOF
19719 rm -f conftest.$ac_objext conftest$ac_exeext
19720 if { (ac_try="$ac_link"
19721 case "(($ac_try" in
19722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19723 *) ac_try_echo=$ac_try;;
19724 esac
19725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19726 (eval "$ac_link") 2>conftest.er1
19727 ac_status=$?
19728 grep -v '^ *+' conftest.er1 >conftest.err
19729 rm -f conftest.er1
19730 cat conftest.err >&5
19731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19732 (exit $ac_status); } && {
19733 test -z "$ac_c_werror_flag" ||
19734 test ! -s conftest.err
19735 } && test -s conftest$ac_exeext &&
19736 $as_test_x conftest$ac_exeext; then
19737 have_res_init=yes
19738 else
19739 echo "$as_me: failed program was:" >&5
19740 sed 's/^/| /' conftest.$ac_ext >&5
19742 have_res_init=no
19745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19746 conftest$ac_exeext conftest.$ac_ext
19747 { echo "$as_me:$LINENO: result: $have_res_init" >&5
19748 echo "${ECHO_T}$have_res_init" >&6; }
19749 if test "$have_res_init" = yes ; then
19750 resolv=yes
19752 LIBS="$OLIBS"
19755 if test "$have_res_init" = yes; then
19757 cat >>confdefs.h <<\_ACEOF
19758 #define HAVE_RES_INIT 1
19759 _ACEOF
19763 # Do we need the Hesiod library to provide the support routines?
19764 if test "$with_hesiod" = yes ; then
19765 # Don't set $LIBS here -- see comments above.
19766 { echo "$as_me:$LINENO: checking for res_send" >&5
19767 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
19768 if test "${ac_cv_func_res_send+set}" = set; then
19769 echo $ECHO_N "(cached) $ECHO_C" >&6
19770 else
19771 cat >conftest.$ac_ext <<_ACEOF
19772 /* confdefs.h. */
19773 _ACEOF
19774 cat confdefs.h >>conftest.$ac_ext
19775 cat >>conftest.$ac_ext <<_ACEOF
19776 /* end confdefs.h. */
19777 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19779 #define res_send innocuous_res_send
19781 /* System header to define __stub macros and hopefully few prototypes,
19782 which can conflict with char res_send (); below.
19783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19784 <limits.h> exists even on freestanding compilers. */
19786 #ifdef __STDC__
19787 # include <limits.h>
19788 #else
19789 # include <assert.h>
19790 #endif
19792 #undef res_send
19794 /* Override any GCC internal prototype to avoid an error.
19795 Use char because int might match the return type of a GCC
19796 builtin and then its argument prototype would still apply. */
19797 #ifdef __cplusplus
19798 extern "C"
19799 #endif
19800 char res_send ();
19801 /* The GNU C library defines this for functions which it implements
19802 to always fail with ENOSYS. Some functions are actually named
19803 something starting with __ and the normal name is an alias. */
19804 #if defined __stub_res_send || defined __stub___res_send
19805 choke me
19806 #endif
19809 main ()
19811 return res_send ();
19813 return 0;
19815 _ACEOF
19816 rm -f conftest.$ac_objext conftest$ac_exeext
19817 if { (ac_try="$ac_link"
19818 case "(($ac_try" in
19819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19820 *) ac_try_echo=$ac_try;;
19821 esac
19822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19823 (eval "$ac_link") 2>conftest.er1
19824 ac_status=$?
19825 grep -v '^ *+' conftest.er1 >conftest.err
19826 rm -f conftest.er1
19827 cat conftest.err >&5
19828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19829 (exit $ac_status); } && {
19830 test -z "$ac_c_werror_flag" ||
19831 test ! -s conftest.err
19832 } && test -s conftest$ac_exeext &&
19833 $as_test_x conftest$ac_exeext; then
19834 ac_cv_func_res_send=yes
19835 else
19836 echo "$as_me: failed program was:" >&5
19837 sed 's/^/| /' conftest.$ac_ext >&5
19839 ac_cv_func_res_send=no
19842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19843 conftest$ac_exeext conftest.$ac_ext
19845 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19846 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19847 if test $ac_cv_func_res_send = yes; then
19849 else
19850 { echo "$as_me:$LINENO: checking for __res_send" >&5
19851 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
19852 if test "${ac_cv_func___res_send+set}" = set; then
19853 echo $ECHO_N "(cached) $ECHO_C" >&6
19854 else
19855 cat >conftest.$ac_ext <<_ACEOF
19856 /* confdefs.h. */
19857 _ACEOF
19858 cat confdefs.h >>conftest.$ac_ext
19859 cat >>conftest.$ac_ext <<_ACEOF
19860 /* end confdefs.h. */
19861 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19862 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19863 #define __res_send innocuous___res_send
19865 /* System header to define __stub macros and hopefully few prototypes,
19866 which can conflict with char __res_send (); below.
19867 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19868 <limits.h> exists even on freestanding compilers. */
19870 #ifdef __STDC__
19871 # include <limits.h>
19872 #else
19873 # include <assert.h>
19874 #endif
19876 #undef __res_send
19878 /* Override any GCC internal prototype to avoid an error.
19879 Use char because int might match the return type of a GCC
19880 builtin and then its argument prototype would still apply. */
19881 #ifdef __cplusplus
19882 extern "C"
19883 #endif
19884 char __res_send ();
19885 /* The GNU C library defines this for functions which it implements
19886 to always fail with ENOSYS. Some functions are actually named
19887 something starting with __ and the normal name is an alias. */
19888 #if defined __stub___res_send || defined __stub_____res_send
19889 choke me
19890 #endif
19893 main ()
19895 return __res_send ();
19897 return 0;
19899 _ACEOF
19900 rm -f conftest.$ac_objext conftest$ac_exeext
19901 if { (ac_try="$ac_link"
19902 case "(($ac_try" in
19903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19904 *) ac_try_echo=$ac_try;;
19905 esac
19906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19907 (eval "$ac_link") 2>conftest.er1
19908 ac_status=$?
19909 grep -v '^ *+' conftest.er1 >conftest.err
19910 rm -f conftest.er1
19911 cat conftest.err >&5
19912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913 (exit $ac_status); } && {
19914 test -z "$ac_c_werror_flag" ||
19915 test ! -s conftest.err
19916 } && test -s conftest$ac_exeext &&
19917 $as_test_x conftest$ac_exeext; then
19918 ac_cv_func___res_send=yes
19919 else
19920 echo "$as_me: failed program was:" >&5
19921 sed 's/^/| /' conftest.$ac_ext >&5
19923 ac_cv_func___res_send=no
19926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19927 conftest$ac_exeext conftest.$ac_ext
19929 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
19930 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19931 if test $ac_cv_func___res_send = yes; then
19933 else
19934 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
19935 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
19936 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19937 echo $ECHO_N "(cached) $ECHO_C" >&6
19938 else
19939 ac_check_lib_save_LIBS=$LIBS
19940 LIBS="-lresolv $LIBS"
19941 cat >conftest.$ac_ext <<_ACEOF
19942 /* confdefs.h. */
19943 _ACEOF
19944 cat confdefs.h >>conftest.$ac_ext
19945 cat >>conftest.$ac_ext <<_ACEOF
19946 /* end confdefs.h. */
19948 /* Override any GCC internal prototype to avoid an error.
19949 Use char because int might match the return type of a GCC
19950 builtin and then its argument prototype would still apply. */
19951 #ifdef __cplusplus
19952 extern "C"
19953 #endif
19954 char res_send ();
19956 main ()
19958 return res_send ();
19960 return 0;
19962 _ACEOF
19963 rm -f conftest.$ac_objext conftest$ac_exeext
19964 if { (ac_try="$ac_link"
19965 case "(($ac_try" in
19966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19967 *) ac_try_echo=$ac_try;;
19968 esac
19969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19970 (eval "$ac_link") 2>conftest.er1
19971 ac_status=$?
19972 grep -v '^ *+' conftest.er1 >conftest.err
19973 rm -f conftest.er1
19974 cat conftest.err >&5
19975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19976 (exit $ac_status); } && {
19977 test -z "$ac_c_werror_flag" ||
19978 test ! -s conftest.err
19979 } && test -s conftest$ac_exeext &&
19980 $as_test_x conftest$ac_exeext; then
19981 ac_cv_lib_resolv_res_send=yes
19982 else
19983 echo "$as_me: failed program was:" >&5
19984 sed 's/^/| /' conftest.$ac_ext >&5
19986 ac_cv_lib_resolv_res_send=no
19989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19990 conftest$ac_exeext conftest.$ac_ext
19991 LIBS=$ac_check_lib_save_LIBS
19993 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
19994 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19995 if test $ac_cv_lib_resolv_res_send = yes; then
19996 resolv=yes
19997 else
19998 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
19999 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
20000 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20001 echo $ECHO_N "(cached) $ECHO_C" >&6
20002 else
20003 ac_check_lib_save_LIBS=$LIBS
20004 LIBS="-lresolv $LIBS"
20005 cat >conftest.$ac_ext <<_ACEOF
20006 /* confdefs.h. */
20007 _ACEOF
20008 cat confdefs.h >>conftest.$ac_ext
20009 cat >>conftest.$ac_ext <<_ACEOF
20010 /* end confdefs.h. */
20012 /* Override any GCC internal prototype to avoid an error.
20013 Use char because int might match the return type of a GCC
20014 builtin and then its argument prototype would still apply. */
20015 #ifdef __cplusplus
20016 extern "C"
20017 #endif
20018 char __res_send ();
20020 main ()
20022 return __res_send ();
20024 return 0;
20026 _ACEOF
20027 rm -f conftest.$ac_objext conftest$ac_exeext
20028 if { (ac_try="$ac_link"
20029 case "(($ac_try" in
20030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20031 *) ac_try_echo=$ac_try;;
20032 esac
20033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20034 (eval "$ac_link") 2>conftest.er1
20035 ac_status=$?
20036 grep -v '^ *+' conftest.er1 >conftest.err
20037 rm -f conftest.er1
20038 cat conftest.err >&5
20039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040 (exit $ac_status); } && {
20041 test -z "$ac_c_werror_flag" ||
20042 test ! -s conftest.err
20043 } && test -s conftest$ac_exeext &&
20044 $as_test_x conftest$ac_exeext; then
20045 ac_cv_lib_resolv___res_send=yes
20046 else
20047 echo "$as_me: failed program was:" >&5
20048 sed 's/^/| /' conftest.$ac_ext >&5
20050 ac_cv_lib_resolv___res_send=no
20053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20054 conftest$ac_exeext conftest.$ac_ext
20055 LIBS=$ac_check_lib_save_LIBS
20057 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
20058 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20059 if test $ac_cv_lib_resolv___res_send = yes; then
20060 resolv=yes
20069 if test "$resolv" = yes ; then
20070 RESOLVLIB=-lresolv
20071 else
20072 RESOLVLIB=
20074 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
20075 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
20076 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20077 echo $ECHO_N "(cached) $ECHO_C" >&6
20078 else
20079 cat >conftest.$ac_ext <<_ACEOF
20080 /* confdefs.h. */
20081 _ACEOF
20082 cat confdefs.h >>conftest.$ac_ext
20083 cat >>conftest.$ac_ext <<_ACEOF
20084 /* end confdefs.h. */
20085 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20087 #define hes_getmailhost innocuous_hes_getmailhost
20089 /* System header to define __stub macros and hopefully few prototypes,
20090 which can conflict with char hes_getmailhost (); below.
20091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20092 <limits.h> exists even on freestanding compilers. */
20094 #ifdef __STDC__
20095 # include <limits.h>
20096 #else
20097 # include <assert.h>
20098 #endif
20100 #undef hes_getmailhost
20102 /* Override any GCC internal prototype to avoid an error.
20103 Use char because int might match the return type of a GCC
20104 builtin and then its argument prototype would still apply. */
20105 #ifdef __cplusplus
20106 extern "C"
20107 #endif
20108 char hes_getmailhost ();
20109 /* The GNU C library defines this for functions which it implements
20110 to always fail with ENOSYS. Some functions are actually named
20111 something starting with __ and the normal name is an alias. */
20112 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20113 choke me
20114 #endif
20117 main ()
20119 return hes_getmailhost ();
20121 return 0;
20123 _ACEOF
20124 rm -f conftest.$ac_objext conftest$ac_exeext
20125 if { (ac_try="$ac_link"
20126 case "(($ac_try" in
20127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20128 *) ac_try_echo=$ac_try;;
20129 esac
20130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20131 (eval "$ac_link") 2>conftest.er1
20132 ac_status=$?
20133 grep -v '^ *+' conftest.er1 >conftest.err
20134 rm -f conftest.er1
20135 cat conftest.err >&5
20136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20137 (exit $ac_status); } && {
20138 test -z "$ac_c_werror_flag" ||
20139 test ! -s conftest.err
20140 } && test -s conftest$ac_exeext &&
20141 $as_test_x conftest$ac_exeext; then
20142 ac_cv_func_hes_getmailhost=yes
20143 else
20144 echo "$as_me: failed program was:" >&5
20145 sed 's/^/| /' conftest.$ac_ext >&5
20147 ac_cv_func_hes_getmailhost=no
20150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20151 conftest$ac_exeext conftest.$ac_ext
20153 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
20154 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20155 if test $ac_cv_func_hes_getmailhost = yes; then
20157 else
20158 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
20159 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
20160 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20161 echo $ECHO_N "(cached) $ECHO_C" >&6
20162 else
20163 ac_check_lib_save_LIBS=$LIBS
20164 LIBS="-lhesiod $RESOLVLIB $LIBS"
20165 cat >conftest.$ac_ext <<_ACEOF
20166 /* confdefs.h. */
20167 _ACEOF
20168 cat confdefs.h >>conftest.$ac_ext
20169 cat >>conftest.$ac_ext <<_ACEOF
20170 /* end confdefs.h. */
20172 /* Override any GCC internal prototype to avoid an error.
20173 Use char because int might match the return type of a GCC
20174 builtin and then its argument prototype would still apply. */
20175 #ifdef __cplusplus
20176 extern "C"
20177 #endif
20178 char hes_getmailhost ();
20180 main ()
20182 return hes_getmailhost ();
20184 return 0;
20186 _ACEOF
20187 rm -f conftest.$ac_objext conftest$ac_exeext
20188 if { (ac_try="$ac_link"
20189 case "(($ac_try" in
20190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20191 *) ac_try_echo=$ac_try;;
20192 esac
20193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20194 (eval "$ac_link") 2>conftest.er1
20195 ac_status=$?
20196 grep -v '^ *+' conftest.er1 >conftest.err
20197 rm -f conftest.er1
20198 cat conftest.err >&5
20199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200 (exit $ac_status); } && {
20201 test -z "$ac_c_werror_flag" ||
20202 test ! -s conftest.err
20203 } && test -s conftest$ac_exeext &&
20204 $as_test_x conftest$ac_exeext; then
20205 ac_cv_lib_hesiod_hes_getmailhost=yes
20206 else
20207 echo "$as_me: failed program was:" >&5
20208 sed 's/^/| /' conftest.$ac_ext >&5
20210 ac_cv_lib_hesiod_hes_getmailhost=no
20213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20214 conftest$ac_exeext conftest.$ac_ext
20215 LIBS=$ac_check_lib_save_LIBS
20217 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20218 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20219 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20221 cat >>confdefs.h <<\_ACEOF
20222 #define HAVE_LIBHESIOD 1
20223 _ACEOF
20225 else
20233 # Do we need libresolv (due to res_init or Hesiod)?
20234 if test "$resolv" = yes ; then
20236 cat >>confdefs.h <<\_ACEOF
20237 #define HAVE_LIBRESOLV 1
20238 _ACEOF
20242 # These tell us which Kerberos-related libraries to use.
20243 if test "${with_kerberos+set}" = set; then
20245 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
20246 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
20247 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20248 echo $ECHO_N "(cached) $ECHO_C" >&6
20249 else
20250 ac_check_lib_save_LIBS=$LIBS
20251 LIBS="-lcom_err $LIBS"
20252 cat >conftest.$ac_ext <<_ACEOF
20253 /* confdefs.h. */
20254 _ACEOF
20255 cat confdefs.h >>conftest.$ac_ext
20256 cat >>conftest.$ac_ext <<_ACEOF
20257 /* end confdefs.h. */
20259 /* Override any GCC internal prototype to avoid an error.
20260 Use char because int might match the return type of a GCC
20261 builtin and then its argument prototype would still apply. */
20262 #ifdef __cplusplus
20263 extern "C"
20264 #endif
20265 char com_err ();
20267 main ()
20269 return com_err ();
20271 return 0;
20273 _ACEOF
20274 rm -f conftest.$ac_objext conftest$ac_exeext
20275 if { (ac_try="$ac_link"
20276 case "(($ac_try" in
20277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20278 *) ac_try_echo=$ac_try;;
20279 esac
20280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20281 (eval "$ac_link") 2>conftest.er1
20282 ac_status=$?
20283 grep -v '^ *+' conftest.er1 >conftest.err
20284 rm -f conftest.er1
20285 cat conftest.err >&5
20286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287 (exit $ac_status); } && {
20288 test -z "$ac_c_werror_flag" ||
20289 test ! -s conftest.err
20290 } && test -s conftest$ac_exeext &&
20291 $as_test_x conftest$ac_exeext; then
20292 ac_cv_lib_com_err_com_err=yes
20293 else
20294 echo "$as_me: failed program was:" >&5
20295 sed 's/^/| /' conftest.$ac_ext >&5
20297 ac_cv_lib_com_err_com_err=no
20300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20301 conftest$ac_exeext conftest.$ac_ext
20302 LIBS=$ac_check_lib_save_LIBS
20304 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
20305 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20306 if test $ac_cv_lib_com_err_com_err = yes; then
20307 cat >>confdefs.h <<_ACEOF
20308 #define HAVE_LIBCOM_ERR 1
20309 _ACEOF
20311 LIBS="-lcom_err $LIBS"
20316 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
20317 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
20318 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20319 echo $ECHO_N "(cached) $ECHO_C" >&6
20320 else
20321 ac_check_lib_save_LIBS=$LIBS
20322 LIBS="-lk5crypto $LIBS"
20323 cat >conftest.$ac_ext <<_ACEOF
20324 /* confdefs.h. */
20325 _ACEOF
20326 cat confdefs.h >>conftest.$ac_ext
20327 cat >>conftest.$ac_ext <<_ACEOF
20328 /* end confdefs.h. */
20330 /* Override any GCC internal prototype to avoid an error.
20331 Use char because int might match the return type of a GCC
20332 builtin and then its argument prototype would still apply. */
20333 #ifdef __cplusplus
20334 extern "C"
20335 #endif
20336 char mit_des_cbc_encrypt ();
20338 main ()
20340 return mit_des_cbc_encrypt ();
20342 return 0;
20344 _ACEOF
20345 rm -f conftest.$ac_objext conftest$ac_exeext
20346 if { (ac_try="$ac_link"
20347 case "(($ac_try" in
20348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20349 *) ac_try_echo=$ac_try;;
20350 esac
20351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20352 (eval "$ac_link") 2>conftest.er1
20353 ac_status=$?
20354 grep -v '^ *+' conftest.er1 >conftest.err
20355 rm -f conftest.er1
20356 cat conftest.err >&5
20357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358 (exit $ac_status); } && {
20359 test -z "$ac_c_werror_flag" ||
20360 test ! -s conftest.err
20361 } && test -s conftest$ac_exeext &&
20362 $as_test_x conftest$ac_exeext; then
20363 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20364 else
20365 echo "$as_me: failed program was:" >&5
20366 sed 's/^/| /' conftest.$ac_ext >&5
20368 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20372 conftest$ac_exeext conftest.$ac_ext
20373 LIBS=$ac_check_lib_save_LIBS
20375 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20376 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20377 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20378 cat >>confdefs.h <<_ACEOF
20379 #define HAVE_LIBK5CRYPTO 1
20380 _ACEOF
20382 LIBS="-lk5crypto $LIBS"
20387 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
20388 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
20389 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20390 echo $ECHO_N "(cached) $ECHO_C" >&6
20391 else
20392 ac_check_lib_save_LIBS=$LIBS
20393 LIBS="-lcrypto $LIBS"
20394 cat >conftest.$ac_ext <<_ACEOF
20395 /* confdefs.h. */
20396 _ACEOF
20397 cat confdefs.h >>conftest.$ac_ext
20398 cat >>conftest.$ac_ext <<_ACEOF
20399 /* end confdefs.h. */
20401 /* Override any GCC internal prototype to avoid an error.
20402 Use char because int might match the return type of a GCC
20403 builtin and then its argument prototype would still apply. */
20404 #ifdef __cplusplus
20405 extern "C"
20406 #endif
20407 char mit_des_cbc_encrypt ();
20409 main ()
20411 return mit_des_cbc_encrypt ();
20413 return 0;
20415 _ACEOF
20416 rm -f conftest.$ac_objext conftest$ac_exeext
20417 if { (ac_try="$ac_link"
20418 case "(($ac_try" in
20419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20420 *) ac_try_echo=$ac_try;;
20421 esac
20422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20423 (eval "$ac_link") 2>conftest.er1
20424 ac_status=$?
20425 grep -v '^ *+' conftest.er1 >conftest.err
20426 rm -f conftest.er1
20427 cat conftest.err >&5
20428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429 (exit $ac_status); } && {
20430 test -z "$ac_c_werror_flag" ||
20431 test ! -s conftest.err
20432 } && test -s conftest$ac_exeext &&
20433 $as_test_x conftest$ac_exeext; then
20434 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20435 else
20436 echo "$as_me: failed program was:" >&5
20437 sed 's/^/| /' conftest.$ac_ext >&5
20439 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20443 conftest$ac_exeext conftest.$ac_ext
20444 LIBS=$ac_check_lib_save_LIBS
20446 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20447 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20448 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20449 cat >>confdefs.h <<_ACEOF
20450 #define HAVE_LIBCRYPTO 1
20451 _ACEOF
20453 LIBS="-lcrypto $LIBS"
20458 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20459 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20460 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20461 echo $ECHO_N "(cached) $ECHO_C" >&6
20462 else
20463 ac_check_lib_save_LIBS=$LIBS
20464 LIBS="-lkrb5 $LIBS"
20465 cat >conftest.$ac_ext <<_ACEOF
20466 /* confdefs.h. */
20467 _ACEOF
20468 cat confdefs.h >>conftest.$ac_ext
20469 cat >>conftest.$ac_ext <<_ACEOF
20470 /* end confdefs.h. */
20472 /* Override any GCC internal prototype to avoid an error.
20473 Use char because int might match the return type of a GCC
20474 builtin and then its argument prototype would still apply. */
20475 #ifdef __cplusplus
20476 extern "C"
20477 #endif
20478 char krb5_init_context ();
20480 main ()
20482 return krb5_init_context ();
20484 return 0;
20486 _ACEOF
20487 rm -f conftest.$ac_objext conftest$ac_exeext
20488 if { (ac_try="$ac_link"
20489 case "(($ac_try" in
20490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20491 *) ac_try_echo=$ac_try;;
20492 esac
20493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20494 (eval "$ac_link") 2>conftest.er1
20495 ac_status=$?
20496 grep -v '^ *+' conftest.er1 >conftest.err
20497 rm -f conftest.er1
20498 cat conftest.err >&5
20499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 (exit $ac_status); } && {
20501 test -z "$ac_c_werror_flag" ||
20502 test ! -s conftest.err
20503 } && test -s conftest$ac_exeext &&
20504 $as_test_x conftest$ac_exeext; then
20505 ac_cv_lib_krb5_krb5_init_context=yes
20506 else
20507 echo "$as_me: failed program was:" >&5
20508 sed 's/^/| /' conftest.$ac_ext >&5
20510 ac_cv_lib_krb5_krb5_init_context=no
20513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20514 conftest$ac_exeext conftest.$ac_ext
20515 LIBS=$ac_check_lib_save_LIBS
20517 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20518 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20519 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20520 cat >>confdefs.h <<_ACEOF
20521 #define HAVE_LIBKRB5 1
20522 _ACEOF
20524 LIBS="-lkrb5 $LIBS"
20528 if test "${with_kerberos5+set}" != set; then
20530 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20531 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20532 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20533 echo $ECHO_N "(cached) $ECHO_C" >&6
20534 else
20535 ac_check_lib_save_LIBS=$LIBS
20536 LIBS="-ldes425 $LIBS"
20537 cat >conftest.$ac_ext <<_ACEOF
20538 /* confdefs.h. */
20539 _ACEOF
20540 cat confdefs.h >>conftest.$ac_ext
20541 cat >>conftest.$ac_ext <<_ACEOF
20542 /* end confdefs.h. */
20544 /* Override any GCC internal prototype to avoid an error.
20545 Use char because int might match the return type of a GCC
20546 builtin and then its argument prototype would still apply. */
20547 #ifdef __cplusplus
20548 extern "C"
20549 #endif
20550 char des_cbc_encrypt ();
20552 main ()
20554 return des_cbc_encrypt ();
20556 return 0;
20558 _ACEOF
20559 rm -f conftest.$ac_objext conftest$ac_exeext
20560 if { (ac_try="$ac_link"
20561 case "(($ac_try" in
20562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20563 *) ac_try_echo=$ac_try;;
20564 esac
20565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20566 (eval "$ac_link") 2>conftest.er1
20567 ac_status=$?
20568 grep -v '^ *+' conftest.er1 >conftest.err
20569 rm -f conftest.er1
20570 cat conftest.err >&5
20571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572 (exit $ac_status); } && {
20573 test -z "$ac_c_werror_flag" ||
20574 test ! -s conftest.err
20575 } && test -s conftest$ac_exeext &&
20576 $as_test_x conftest$ac_exeext; then
20577 ac_cv_lib_des425_des_cbc_encrypt=yes
20578 else
20579 echo "$as_me: failed program was:" >&5
20580 sed 's/^/| /' conftest.$ac_ext >&5
20582 ac_cv_lib_des425_des_cbc_encrypt=no
20585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20586 conftest$ac_exeext conftest.$ac_ext
20587 LIBS=$ac_check_lib_save_LIBS
20589 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20590 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20591 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20592 cat >>confdefs.h <<_ACEOF
20593 #define HAVE_LIBDES425 1
20594 _ACEOF
20596 LIBS="-ldes425 $LIBS"
20598 else
20600 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20601 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20602 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20603 echo $ECHO_N "(cached) $ECHO_C" >&6
20604 else
20605 ac_check_lib_save_LIBS=$LIBS
20606 LIBS="-ldes $LIBS"
20607 cat >conftest.$ac_ext <<_ACEOF
20608 /* confdefs.h. */
20609 _ACEOF
20610 cat confdefs.h >>conftest.$ac_ext
20611 cat >>conftest.$ac_ext <<_ACEOF
20612 /* end confdefs.h. */
20614 /* Override any GCC internal prototype to avoid an error.
20615 Use char because int might match the return type of a GCC
20616 builtin and then its argument prototype would still apply. */
20617 #ifdef __cplusplus
20618 extern "C"
20619 #endif
20620 char des_cbc_encrypt ();
20622 main ()
20624 return des_cbc_encrypt ();
20626 return 0;
20628 _ACEOF
20629 rm -f conftest.$ac_objext conftest$ac_exeext
20630 if { (ac_try="$ac_link"
20631 case "(($ac_try" in
20632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20633 *) ac_try_echo=$ac_try;;
20634 esac
20635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20636 (eval "$ac_link") 2>conftest.er1
20637 ac_status=$?
20638 grep -v '^ *+' conftest.er1 >conftest.err
20639 rm -f conftest.er1
20640 cat conftest.err >&5
20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642 (exit $ac_status); } && {
20643 test -z "$ac_c_werror_flag" ||
20644 test ! -s conftest.err
20645 } && test -s conftest$ac_exeext &&
20646 $as_test_x conftest$ac_exeext; then
20647 ac_cv_lib_des_des_cbc_encrypt=yes
20648 else
20649 echo "$as_me: failed program was:" >&5
20650 sed 's/^/| /' conftest.$ac_ext >&5
20652 ac_cv_lib_des_des_cbc_encrypt=no
20655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20656 conftest$ac_exeext conftest.$ac_ext
20657 LIBS=$ac_check_lib_save_LIBS
20659 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20660 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20661 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20662 cat >>confdefs.h <<_ACEOF
20663 #define HAVE_LIBDES 1
20664 _ACEOF
20666 LIBS="-ldes $LIBS"
20673 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20674 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20675 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20676 echo $ECHO_N "(cached) $ECHO_C" >&6
20677 else
20678 ac_check_lib_save_LIBS=$LIBS
20679 LIBS="-lkrb4 $LIBS"
20680 cat >conftest.$ac_ext <<_ACEOF
20681 /* confdefs.h. */
20682 _ACEOF
20683 cat confdefs.h >>conftest.$ac_ext
20684 cat >>conftest.$ac_ext <<_ACEOF
20685 /* end confdefs.h. */
20687 /* Override any GCC internal prototype to avoid an error.
20688 Use char because int might match the return type of a GCC
20689 builtin and then its argument prototype would still apply. */
20690 #ifdef __cplusplus
20691 extern "C"
20692 #endif
20693 char krb_get_cred ();
20695 main ()
20697 return krb_get_cred ();
20699 return 0;
20701 _ACEOF
20702 rm -f conftest.$ac_objext conftest$ac_exeext
20703 if { (ac_try="$ac_link"
20704 case "(($ac_try" in
20705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20706 *) ac_try_echo=$ac_try;;
20707 esac
20708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20709 (eval "$ac_link") 2>conftest.er1
20710 ac_status=$?
20711 grep -v '^ *+' conftest.er1 >conftest.err
20712 rm -f conftest.er1
20713 cat conftest.err >&5
20714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20715 (exit $ac_status); } && {
20716 test -z "$ac_c_werror_flag" ||
20717 test ! -s conftest.err
20718 } && test -s conftest$ac_exeext &&
20719 $as_test_x conftest$ac_exeext; then
20720 ac_cv_lib_krb4_krb_get_cred=yes
20721 else
20722 echo "$as_me: failed program was:" >&5
20723 sed 's/^/| /' conftest.$ac_ext >&5
20725 ac_cv_lib_krb4_krb_get_cred=no
20728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20729 conftest$ac_exeext conftest.$ac_ext
20730 LIBS=$ac_check_lib_save_LIBS
20732 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20733 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20734 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20735 cat >>confdefs.h <<_ACEOF
20736 #define HAVE_LIBKRB4 1
20737 _ACEOF
20739 LIBS="-lkrb4 $LIBS"
20741 else
20743 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20744 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
20745 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20746 echo $ECHO_N "(cached) $ECHO_C" >&6
20747 else
20748 ac_check_lib_save_LIBS=$LIBS
20749 LIBS="-lkrb $LIBS"
20750 cat >conftest.$ac_ext <<_ACEOF
20751 /* confdefs.h. */
20752 _ACEOF
20753 cat confdefs.h >>conftest.$ac_ext
20754 cat >>conftest.$ac_ext <<_ACEOF
20755 /* end confdefs.h. */
20757 /* Override any GCC internal prototype to avoid an error.
20758 Use char because int might match the return type of a GCC
20759 builtin and then its argument prototype would still apply. */
20760 #ifdef __cplusplus
20761 extern "C"
20762 #endif
20763 char krb_get_cred ();
20765 main ()
20767 return krb_get_cred ();
20769 return 0;
20771 _ACEOF
20772 rm -f conftest.$ac_objext conftest$ac_exeext
20773 if { (ac_try="$ac_link"
20774 case "(($ac_try" in
20775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20776 *) ac_try_echo=$ac_try;;
20777 esac
20778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20779 (eval "$ac_link") 2>conftest.er1
20780 ac_status=$?
20781 grep -v '^ *+' conftest.er1 >conftest.err
20782 rm -f conftest.er1
20783 cat conftest.err >&5
20784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20785 (exit $ac_status); } && {
20786 test -z "$ac_c_werror_flag" ||
20787 test ! -s conftest.err
20788 } && test -s conftest$ac_exeext &&
20789 $as_test_x conftest$ac_exeext; then
20790 ac_cv_lib_krb_krb_get_cred=yes
20791 else
20792 echo "$as_me: failed program was:" >&5
20793 sed 's/^/| /' conftest.$ac_ext >&5
20795 ac_cv_lib_krb_krb_get_cred=no
20798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20799 conftest$ac_exeext conftest.$ac_ext
20800 LIBS=$ac_check_lib_save_LIBS
20802 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20803 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20804 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20805 cat >>confdefs.h <<_ACEOF
20806 #define HAVE_LIBKRB 1
20807 _ACEOF
20809 LIBS="-lkrb $LIBS"
20817 if test "${with_kerberos5+set}" = set; then
20819 for ac_header in krb5.h
20821 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20823 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20826 echo $ECHO_N "(cached) $ECHO_C" >&6
20828 ac_res=`eval echo '${'$as_ac_Header'}'`
20829 { echo "$as_me:$LINENO: result: $ac_res" >&5
20830 echo "${ECHO_T}$ac_res" >&6; }
20831 else
20832 # Is the header compilable?
20833 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20834 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20835 cat >conftest.$ac_ext <<_ACEOF
20836 /* confdefs.h. */
20837 _ACEOF
20838 cat confdefs.h >>conftest.$ac_ext
20839 cat >>conftest.$ac_ext <<_ACEOF
20840 /* end confdefs.h. */
20841 $ac_includes_default
20842 #include <$ac_header>
20843 _ACEOF
20844 rm -f conftest.$ac_objext
20845 if { (ac_try="$ac_compile"
20846 case "(($ac_try" in
20847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20848 *) ac_try_echo=$ac_try;;
20849 esac
20850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20851 (eval "$ac_compile") 2>conftest.er1
20852 ac_status=$?
20853 grep -v '^ *+' conftest.er1 >conftest.err
20854 rm -f conftest.er1
20855 cat conftest.err >&5
20856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857 (exit $ac_status); } && {
20858 test -z "$ac_c_werror_flag" ||
20859 test ! -s conftest.err
20860 } && test -s conftest.$ac_objext; then
20861 ac_header_compiler=yes
20862 else
20863 echo "$as_me: failed program was:" >&5
20864 sed 's/^/| /' conftest.$ac_ext >&5
20866 ac_header_compiler=no
20869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20870 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20871 echo "${ECHO_T}$ac_header_compiler" >&6; }
20873 # Is the header present?
20874 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20875 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20876 cat >conftest.$ac_ext <<_ACEOF
20877 /* confdefs.h. */
20878 _ACEOF
20879 cat confdefs.h >>conftest.$ac_ext
20880 cat >>conftest.$ac_ext <<_ACEOF
20881 /* end confdefs.h. */
20882 #include <$ac_header>
20883 _ACEOF
20884 if { (ac_try="$ac_cpp conftest.$ac_ext"
20885 case "(($ac_try" in
20886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20887 *) ac_try_echo=$ac_try;;
20888 esac
20889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20891 ac_status=$?
20892 grep -v '^ *+' conftest.er1 >conftest.err
20893 rm -f conftest.er1
20894 cat conftest.err >&5
20895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20896 (exit $ac_status); } >/dev/null && {
20897 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20898 test ! -s conftest.err
20899 }; then
20900 ac_header_preproc=yes
20901 else
20902 echo "$as_me: failed program was:" >&5
20903 sed 's/^/| /' conftest.$ac_ext >&5
20905 ac_header_preproc=no
20908 rm -f conftest.err conftest.$ac_ext
20909 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20910 echo "${ECHO_T}$ac_header_preproc" >&6; }
20912 # So? What about this header?
20913 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20914 yes:no: )
20915 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20916 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20918 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20919 ac_header_preproc=yes
20921 no:yes:* )
20922 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20923 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20924 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20925 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20926 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20927 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20928 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20929 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20930 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20931 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20932 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20933 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20936 esac
20937 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20940 echo $ECHO_N "(cached) $ECHO_C" >&6
20941 else
20942 eval "$as_ac_Header=\$ac_header_preproc"
20944 ac_res=`eval echo '${'$as_ac_Header'}'`
20945 { echo "$as_me:$LINENO: result: $ac_res" >&5
20946 echo "${ECHO_T}$ac_res" >&6; }
20949 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20950 cat >>confdefs.h <<_ACEOF
20951 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20952 _ACEOF
20956 done
20958 else
20960 for ac_header in des.h
20962 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20963 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20964 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20967 echo $ECHO_N "(cached) $ECHO_C" >&6
20969 ac_res=`eval echo '${'$as_ac_Header'}'`
20970 { echo "$as_me:$LINENO: result: $ac_res" >&5
20971 echo "${ECHO_T}$ac_res" >&6; }
20972 else
20973 # Is the header compilable?
20974 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20975 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20976 cat >conftest.$ac_ext <<_ACEOF
20977 /* confdefs.h. */
20978 _ACEOF
20979 cat confdefs.h >>conftest.$ac_ext
20980 cat >>conftest.$ac_ext <<_ACEOF
20981 /* end confdefs.h. */
20982 $ac_includes_default
20983 #include <$ac_header>
20984 _ACEOF
20985 rm -f conftest.$ac_objext
20986 if { (ac_try="$ac_compile"
20987 case "(($ac_try" in
20988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20989 *) ac_try_echo=$ac_try;;
20990 esac
20991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20992 (eval "$ac_compile") 2>conftest.er1
20993 ac_status=$?
20994 grep -v '^ *+' conftest.er1 >conftest.err
20995 rm -f conftest.er1
20996 cat conftest.err >&5
20997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998 (exit $ac_status); } && {
20999 test -z "$ac_c_werror_flag" ||
21000 test ! -s conftest.err
21001 } && test -s conftest.$ac_objext; then
21002 ac_header_compiler=yes
21003 else
21004 echo "$as_me: failed program was:" >&5
21005 sed 's/^/| /' conftest.$ac_ext >&5
21007 ac_header_compiler=no
21010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21011 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21012 echo "${ECHO_T}$ac_header_compiler" >&6; }
21014 # Is the header present?
21015 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21016 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21017 cat >conftest.$ac_ext <<_ACEOF
21018 /* confdefs.h. */
21019 _ACEOF
21020 cat confdefs.h >>conftest.$ac_ext
21021 cat >>conftest.$ac_ext <<_ACEOF
21022 /* end confdefs.h. */
21023 #include <$ac_header>
21024 _ACEOF
21025 if { (ac_try="$ac_cpp conftest.$ac_ext"
21026 case "(($ac_try" in
21027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21028 *) ac_try_echo=$ac_try;;
21029 esac
21030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21031 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21032 ac_status=$?
21033 grep -v '^ *+' conftest.er1 >conftest.err
21034 rm -f conftest.er1
21035 cat conftest.err >&5
21036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21037 (exit $ac_status); } >/dev/null && {
21038 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21039 test ! -s conftest.err
21040 }; then
21041 ac_header_preproc=yes
21042 else
21043 echo "$as_me: failed program was:" >&5
21044 sed 's/^/| /' conftest.$ac_ext >&5
21046 ac_header_preproc=no
21049 rm -f conftest.err conftest.$ac_ext
21050 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21051 echo "${ECHO_T}$ac_header_preproc" >&6; }
21053 # So? What about this header?
21054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21055 yes:no: )
21056 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21057 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21059 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21060 ac_header_preproc=yes
21062 no:yes:* )
21063 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21064 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21065 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21066 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21067 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21068 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21069 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21070 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21071 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21072 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21073 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21074 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21077 esac
21078 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21080 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21081 echo $ECHO_N "(cached) $ECHO_C" >&6
21082 else
21083 eval "$as_ac_Header=\$ac_header_preproc"
21085 ac_res=`eval echo '${'$as_ac_Header'}'`
21086 { echo "$as_me:$LINENO: result: $ac_res" >&5
21087 echo "${ECHO_T}$ac_res" >&6; }
21090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21091 cat >>confdefs.h <<_ACEOF
21092 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21093 _ACEOF
21095 else
21097 for ac_header in kerberosIV/des.h
21099 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21101 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21104 echo $ECHO_N "(cached) $ECHO_C" >&6
21106 ac_res=`eval echo '${'$as_ac_Header'}'`
21107 { echo "$as_me:$LINENO: result: $ac_res" >&5
21108 echo "${ECHO_T}$ac_res" >&6; }
21109 else
21110 # Is the header compilable?
21111 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21112 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21113 cat >conftest.$ac_ext <<_ACEOF
21114 /* confdefs.h. */
21115 _ACEOF
21116 cat confdefs.h >>conftest.$ac_ext
21117 cat >>conftest.$ac_ext <<_ACEOF
21118 /* end confdefs.h. */
21119 $ac_includes_default
21120 #include <$ac_header>
21121 _ACEOF
21122 rm -f conftest.$ac_objext
21123 if { (ac_try="$ac_compile"
21124 case "(($ac_try" in
21125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21126 *) ac_try_echo=$ac_try;;
21127 esac
21128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21129 (eval "$ac_compile") 2>conftest.er1
21130 ac_status=$?
21131 grep -v '^ *+' conftest.er1 >conftest.err
21132 rm -f conftest.er1
21133 cat conftest.err >&5
21134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21135 (exit $ac_status); } && {
21136 test -z "$ac_c_werror_flag" ||
21137 test ! -s conftest.err
21138 } && test -s conftest.$ac_objext; then
21139 ac_header_compiler=yes
21140 else
21141 echo "$as_me: failed program was:" >&5
21142 sed 's/^/| /' conftest.$ac_ext >&5
21144 ac_header_compiler=no
21147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21148 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21149 echo "${ECHO_T}$ac_header_compiler" >&6; }
21151 # Is the header present?
21152 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21153 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21154 cat >conftest.$ac_ext <<_ACEOF
21155 /* confdefs.h. */
21156 _ACEOF
21157 cat confdefs.h >>conftest.$ac_ext
21158 cat >>conftest.$ac_ext <<_ACEOF
21159 /* end confdefs.h. */
21160 #include <$ac_header>
21161 _ACEOF
21162 if { (ac_try="$ac_cpp conftest.$ac_ext"
21163 case "(($ac_try" in
21164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21165 *) ac_try_echo=$ac_try;;
21166 esac
21167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21168 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21169 ac_status=$?
21170 grep -v '^ *+' conftest.er1 >conftest.err
21171 rm -f conftest.er1
21172 cat conftest.err >&5
21173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21174 (exit $ac_status); } >/dev/null && {
21175 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21176 test ! -s conftest.err
21177 }; then
21178 ac_header_preproc=yes
21179 else
21180 echo "$as_me: failed program was:" >&5
21181 sed 's/^/| /' conftest.$ac_ext >&5
21183 ac_header_preproc=no
21186 rm -f conftest.err conftest.$ac_ext
21187 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21188 echo "${ECHO_T}$ac_header_preproc" >&6; }
21190 # So? What about this header?
21191 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21192 yes:no: )
21193 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21194 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21196 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21197 ac_header_preproc=yes
21199 no:yes:* )
21200 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21201 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21202 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21203 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21204 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21205 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21206 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21207 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21209 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21210 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21211 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21214 esac
21215 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21216 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21217 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21218 echo $ECHO_N "(cached) $ECHO_C" >&6
21219 else
21220 eval "$as_ac_Header=\$ac_header_preproc"
21222 ac_res=`eval echo '${'$as_ac_Header'}'`
21223 { echo "$as_me:$LINENO: result: $ac_res" >&5
21224 echo "${ECHO_T}$ac_res" >&6; }
21227 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21228 cat >>confdefs.h <<_ACEOF
21229 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21230 _ACEOF
21232 else
21234 for ac_header in kerberos/des.h
21236 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21238 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21241 echo $ECHO_N "(cached) $ECHO_C" >&6
21243 ac_res=`eval echo '${'$as_ac_Header'}'`
21244 { echo "$as_me:$LINENO: result: $ac_res" >&5
21245 echo "${ECHO_T}$ac_res" >&6; }
21246 else
21247 # Is the header compilable?
21248 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21249 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21250 cat >conftest.$ac_ext <<_ACEOF
21251 /* confdefs.h. */
21252 _ACEOF
21253 cat confdefs.h >>conftest.$ac_ext
21254 cat >>conftest.$ac_ext <<_ACEOF
21255 /* end confdefs.h. */
21256 $ac_includes_default
21257 #include <$ac_header>
21258 _ACEOF
21259 rm -f conftest.$ac_objext
21260 if { (ac_try="$ac_compile"
21261 case "(($ac_try" in
21262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21263 *) ac_try_echo=$ac_try;;
21264 esac
21265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21266 (eval "$ac_compile") 2>conftest.er1
21267 ac_status=$?
21268 grep -v '^ *+' conftest.er1 >conftest.err
21269 rm -f conftest.er1
21270 cat conftest.err >&5
21271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21272 (exit $ac_status); } && {
21273 test -z "$ac_c_werror_flag" ||
21274 test ! -s conftest.err
21275 } && test -s conftest.$ac_objext; then
21276 ac_header_compiler=yes
21277 else
21278 echo "$as_me: failed program was:" >&5
21279 sed 's/^/| /' conftest.$ac_ext >&5
21281 ac_header_compiler=no
21284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21285 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21286 echo "${ECHO_T}$ac_header_compiler" >&6; }
21288 # Is the header present?
21289 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21290 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21291 cat >conftest.$ac_ext <<_ACEOF
21292 /* confdefs.h. */
21293 _ACEOF
21294 cat confdefs.h >>conftest.$ac_ext
21295 cat >>conftest.$ac_ext <<_ACEOF
21296 /* end confdefs.h. */
21297 #include <$ac_header>
21298 _ACEOF
21299 if { (ac_try="$ac_cpp conftest.$ac_ext"
21300 case "(($ac_try" in
21301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21302 *) ac_try_echo=$ac_try;;
21303 esac
21304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21306 ac_status=$?
21307 grep -v '^ *+' conftest.er1 >conftest.err
21308 rm -f conftest.er1
21309 cat conftest.err >&5
21310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21311 (exit $ac_status); } >/dev/null && {
21312 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21313 test ! -s conftest.err
21314 }; then
21315 ac_header_preproc=yes
21316 else
21317 echo "$as_me: failed program was:" >&5
21318 sed 's/^/| /' conftest.$ac_ext >&5
21320 ac_header_preproc=no
21323 rm -f conftest.err conftest.$ac_ext
21324 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21325 echo "${ECHO_T}$ac_header_preproc" >&6; }
21327 # So? What about this header?
21328 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21329 yes:no: )
21330 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21331 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21333 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21334 ac_header_preproc=yes
21336 no:yes:* )
21337 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21338 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21339 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21340 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21341 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21342 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21343 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21344 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21346 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21347 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21348 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21351 esac
21352 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21355 echo $ECHO_N "(cached) $ECHO_C" >&6
21356 else
21357 eval "$as_ac_Header=\$ac_header_preproc"
21359 ac_res=`eval echo '${'$as_ac_Header'}'`
21360 { echo "$as_me:$LINENO: result: $ac_res" >&5
21361 echo "${ECHO_T}$ac_res" >&6; }
21364 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21365 cat >>confdefs.h <<_ACEOF
21366 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21367 _ACEOF
21371 done
21375 done
21379 done
21382 for ac_header in krb.h
21384 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21386 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21388 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21389 echo $ECHO_N "(cached) $ECHO_C" >&6
21391 ac_res=`eval echo '${'$as_ac_Header'}'`
21392 { echo "$as_me:$LINENO: result: $ac_res" >&5
21393 echo "${ECHO_T}$ac_res" >&6; }
21394 else
21395 # Is the header compilable?
21396 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21397 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21398 cat >conftest.$ac_ext <<_ACEOF
21399 /* confdefs.h. */
21400 _ACEOF
21401 cat confdefs.h >>conftest.$ac_ext
21402 cat >>conftest.$ac_ext <<_ACEOF
21403 /* end confdefs.h. */
21404 $ac_includes_default
21405 #include <$ac_header>
21406 _ACEOF
21407 rm -f conftest.$ac_objext
21408 if { (ac_try="$ac_compile"
21409 case "(($ac_try" in
21410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21411 *) ac_try_echo=$ac_try;;
21412 esac
21413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21414 (eval "$ac_compile") 2>conftest.er1
21415 ac_status=$?
21416 grep -v '^ *+' conftest.er1 >conftest.err
21417 rm -f conftest.er1
21418 cat conftest.err >&5
21419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21420 (exit $ac_status); } && {
21421 test -z "$ac_c_werror_flag" ||
21422 test ! -s conftest.err
21423 } && test -s conftest.$ac_objext; then
21424 ac_header_compiler=yes
21425 else
21426 echo "$as_me: failed program was:" >&5
21427 sed 's/^/| /' conftest.$ac_ext >&5
21429 ac_header_compiler=no
21432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21433 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21434 echo "${ECHO_T}$ac_header_compiler" >&6; }
21436 # Is the header present?
21437 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21438 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21439 cat >conftest.$ac_ext <<_ACEOF
21440 /* confdefs.h. */
21441 _ACEOF
21442 cat confdefs.h >>conftest.$ac_ext
21443 cat >>conftest.$ac_ext <<_ACEOF
21444 /* end confdefs.h. */
21445 #include <$ac_header>
21446 _ACEOF
21447 if { (ac_try="$ac_cpp conftest.$ac_ext"
21448 case "(($ac_try" in
21449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21450 *) ac_try_echo=$ac_try;;
21451 esac
21452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21453 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21454 ac_status=$?
21455 grep -v '^ *+' conftest.er1 >conftest.err
21456 rm -f conftest.er1
21457 cat conftest.err >&5
21458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21459 (exit $ac_status); } >/dev/null && {
21460 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21461 test ! -s conftest.err
21462 }; then
21463 ac_header_preproc=yes
21464 else
21465 echo "$as_me: failed program was:" >&5
21466 sed 's/^/| /' conftest.$ac_ext >&5
21468 ac_header_preproc=no
21471 rm -f conftest.err conftest.$ac_ext
21472 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21473 echo "${ECHO_T}$ac_header_preproc" >&6; }
21475 # So? What about this header?
21476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21477 yes:no: )
21478 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21479 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21481 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21482 ac_header_preproc=yes
21484 no:yes:* )
21485 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21486 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21487 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21488 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21489 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21490 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21491 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21492 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21494 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21495 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21496 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21499 esac
21500 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21503 echo $ECHO_N "(cached) $ECHO_C" >&6
21504 else
21505 eval "$as_ac_Header=\$ac_header_preproc"
21507 ac_res=`eval echo '${'$as_ac_Header'}'`
21508 { echo "$as_me:$LINENO: result: $ac_res" >&5
21509 echo "${ECHO_T}$ac_res" >&6; }
21512 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21513 cat >>confdefs.h <<_ACEOF
21514 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21515 _ACEOF
21517 else
21519 for ac_header in kerberosIV/krb.h
21521 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21523 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21526 echo $ECHO_N "(cached) $ECHO_C" >&6
21528 ac_res=`eval echo '${'$as_ac_Header'}'`
21529 { echo "$as_me:$LINENO: result: $ac_res" >&5
21530 echo "${ECHO_T}$ac_res" >&6; }
21531 else
21532 # Is the header compilable?
21533 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21534 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21535 cat >conftest.$ac_ext <<_ACEOF
21536 /* confdefs.h. */
21537 _ACEOF
21538 cat confdefs.h >>conftest.$ac_ext
21539 cat >>conftest.$ac_ext <<_ACEOF
21540 /* end confdefs.h. */
21541 $ac_includes_default
21542 #include <$ac_header>
21543 _ACEOF
21544 rm -f conftest.$ac_objext
21545 if { (ac_try="$ac_compile"
21546 case "(($ac_try" in
21547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21548 *) ac_try_echo=$ac_try;;
21549 esac
21550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21551 (eval "$ac_compile") 2>conftest.er1
21552 ac_status=$?
21553 grep -v '^ *+' conftest.er1 >conftest.err
21554 rm -f conftest.er1
21555 cat conftest.err >&5
21556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21557 (exit $ac_status); } && {
21558 test -z "$ac_c_werror_flag" ||
21559 test ! -s conftest.err
21560 } && test -s conftest.$ac_objext; then
21561 ac_header_compiler=yes
21562 else
21563 echo "$as_me: failed program was:" >&5
21564 sed 's/^/| /' conftest.$ac_ext >&5
21566 ac_header_compiler=no
21569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21570 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21571 echo "${ECHO_T}$ac_header_compiler" >&6; }
21573 # Is the header present?
21574 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21575 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21576 cat >conftest.$ac_ext <<_ACEOF
21577 /* confdefs.h. */
21578 _ACEOF
21579 cat confdefs.h >>conftest.$ac_ext
21580 cat >>conftest.$ac_ext <<_ACEOF
21581 /* end confdefs.h. */
21582 #include <$ac_header>
21583 _ACEOF
21584 if { (ac_try="$ac_cpp conftest.$ac_ext"
21585 case "(($ac_try" in
21586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21587 *) ac_try_echo=$ac_try;;
21588 esac
21589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21591 ac_status=$?
21592 grep -v '^ *+' conftest.er1 >conftest.err
21593 rm -f conftest.er1
21594 cat conftest.err >&5
21595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21596 (exit $ac_status); } >/dev/null && {
21597 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21598 test ! -s conftest.err
21599 }; then
21600 ac_header_preproc=yes
21601 else
21602 echo "$as_me: failed program was:" >&5
21603 sed 's/^/| /' conftest.$ac_ext >&5
21605 ac_header_preproc=no
21608 rm -f conftest.err conftest.$ac_ext
21609 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21610 echo "${ECHO_T}$ac_header_preproc" >&6; }
21612 # So? What about this header?
21613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21614 yes:no: )
21615 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21616 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21618 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21619 ac_header_preproc=yes
21621 no:yes:* )
21622 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21623 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21624 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21625 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21626 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21627 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21628 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21629 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21630 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21631 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21632 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21633 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21636 esac
21637 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21639 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21640 echo $ECHO_N "(cached) $ECHO_C" >&6
21641 else
21642 eval "$as_ac_Header=\$ac_header_preproc"
21644 ac_res=`eval echo '${'$as_ac_Header'}'`
21645 { echo "$as_me:$LINENO: result: $ac_res" >&5
21646 echo "${ECHO_T}$ac_res" >&6; }
21649 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21650 cat >>confdefs.h <<_ACEOF
21651 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21652 _ACEOF
21654 else
21656 for ac_header in kerberos/krb.h
21658 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21659 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21660 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21662 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21663 echo $ECHO_N "(cached) $ECHO_C" >&6
21665 ac_res=`eval echo '${'$as_ac_Header'}'`
21666 { echo "$as_me:$LINENO: result: $ac_res" >&5
21667 echo "${ECHO_T}$ac_res" >&6; }
21668 else
21669 # Is the header compilable?
21670 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21671 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21672 cat >conftest.$ac_ext <<_ACEOF
21673 /* confdefs.h. */
21674 _ACEOF
21675 cat confdefs.h >>conftest.$ac_ext
21676 cat >>conftest.$ac_ext <<_ACEOF
21677 /* end confdefs.h. */
21678 $ac_includes_default
21679 #include <$ac_header>
21680 _ACEOF
21681 rm -f conftest.$ac_objext
21682 if { (ac_try="$ac_compile"
21683 case "(($ac_try" in
21684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21685 *) ac_try_echo=$ac_try;;
21686 esac
21687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21688 (eval "$ac_compile") 2>conftest.er1
21689 ac_status=$?
21690 grep -v '^ *+' conftest.er1 >conftest.err
21691 rm -f conftest.er1
21692 cat conftest.err >&5
21693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21694 (exit $ac_status); } && {
21695 test -z "$ac_c_werror_flag" ||
21696 test ! -s conftest.err
21697 } && test -s conftest.$ac_objext; then
21698 ac_header_compiler=yes
21699 else
21700 echo "$as_me: failed program was:" >&5
21701 sed 's/^/| /' conftest.$ac_ext >&5
21703 ac_header_compiler=no
21706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21707 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21708 echo "${ECHO_T}$ac_header_compiler" >&6; }
21710 # Is the header present?
21711 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21712 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21713 cat >conftest.$ac_ext <<_ACEOF
21714 /* confdefs.h. */
21715 _ACEOF
21716 cat confdefs.h >>conftest.$ac_ext
21717 cat >>conftest.$ac_ext <<_ACEOF
21718 /* end confdefs.h. */
21719 #include <$ac_header>
21720 _ACEOF
21721 if { (ac_try="$ac_cpp conftest.$ac_ext"
21722 case "(($ac_try" in
21723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21724 *) ac_try_echo=$ac_try;;
21725 esac
21726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21727 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21728 ac_status=$?
21729 grep -v '^ *+' conftest.er1 >conftest.err
21730 rm -f conftest.er1
21731 cat conftest.err >&5
21732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21733 (exit $ac_status); } >/dev/null && {
21734 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21735 test ! -s conftest.err
21736 }; then
21737 ac_header_preproc=yes
21738 else
21739 echo "$as_me: failed program was:" >&5
21740 sed 's/^/| /' conftest.$ac_ext >&5
21742 ac_header_preproc=no
21745 rm -f conftest.err conftest.$ac_ext
21746 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21747 echo "${ECHO_T}$ac_header_preproc" >&6; }
21749 # So? What about this header?
21750 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21751 yes:no: )
21752 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21753 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21754 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21755 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21756 ac_header_preproc=yes
21758 no:yes:* )
21759 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21760 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21761 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21762 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21763 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21764 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21765 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21766 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21768 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21769 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21770 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21773 esac
21774 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21777 echo $ECHO_N "(cached) $ECHO_C" >&6
21778 else
21779 eval "$as_ac_Header=\$ac_header_preproc"
21781 ac_res=`eval echo '${'$as_ac_Header'}'`
21782 { echo "$as_me:$LINENO: result: $ac_res" >&5
21783 echo "${ECHO_T}$ac_res" >&6; }
21786 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21787 cat >>confdefs.h <<_ACEOF
21788 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21789 _ACEOF
21793 done
21797 done
21801 done
21805 for ac_header in com_err.h
21807 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21809 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21812 echo $ECHO_N "(cached) $ECHO_C" >&6
21814 ac_res=`eval echo '${'$as_ac_Header'}'`
21815 { echo "$as_me:$LINENO: result: $ac_res" >&5
21816 echo "${ECHO_T}$ac_res" >&6; }
21817 else
21818 # Is the header compilable?
21819 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21820 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21821 cat >conftest.$ac_ext <<_ACEOF
21822 /* confdefs.h. */
21823 _ACEOF
21824 cat confdefs.h >>conftest.$ac_ext
21825 cat >>conftest.$ac_ext <<_ACEOF
21826 /* end confdefs.h. */
21827 $ac_includes_default
21828 #include <$ac_header>
21829 _ACEOF
21830 rm -f conftest.$ac_objext
21831 if { (ac_try="$ac_compile"
21832 case "(($ac_try" in
21833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21834 *) ac_try_echo=$ac_try;;
21835 esac
21836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21837 (eval "$ac_compile") 2>conftest.er1
21838 ac_status=$?
21839 grep -v '^ *+' conftest.er1 >conftest.err
21840 rm -f conftest.er1
21841 cat conftest.err >&5
21842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843 (exit $ac_status); } && {
21844 test -z "$ac_c_werror_flag" ||
21845 test ! -s conftest.err
21846 } && test -s conftest.$ac_objext; then
21847 ac_header_compiler=yes
21848 else
21849 echo "$as_me: failed program was:" >&5
21850 sed 's/^/| /' conftest.$ac_ext >&5
21852 ac_header_compiler=no
21855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21856 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21857 echo "${ECHO_T}$ac_header_compiler" >&6; }
21859 # Is the header present?
21860 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21861 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21862 cat >conftest.$ac_ext <<_ACEOF
21863 /* confdefs.h. */
21864 _ACEOF
21865 cat confdefs.h >>conftest.$ac_ext
21866 cat >>conftest.$ac_ext <<_ACEOF
21867 /* end confdefs.h. */
21868 #include <$ac_header>
21869 _ACEOF
21870 if { (ac_try="$ac_cpp conftest.$ac_ext"
21871 case "(($ac_try" in
21872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21873 *) ac_try_echo=$ac_try;;
21874 esac
21875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21877 ac_status=$?
21878 grep -v '^ *+' conftest.er1 >conftest.err
21879 rm -f conftest.er1
21880 cat conftest.err >&5
21881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21882 (exit $ac_status); } >/dev/null && {
21883 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21884 test ! -s conftest.err
21885 }; then
21886 ac_header_preproc=yes
21887 else
21888 echo "$as_me: failed program was:" >&5
21889 sed 's/^/| /' conftest.$ac_ext >&5
21891 ac_header_preproc=no
21894 rm -f conftest.err conftest.$ac_ext
21895 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21896 echo "${ECHO_T}$ac_header_preproc" >&6; }
21898 # So? What about this header?
21899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21900 yes:no: )
21901 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21902 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21904 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21905 ac_header_preproc=yes
21907 no:yes:* )
21908 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21909 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21910 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21911 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21912 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21913 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21914 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21915 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21917 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21918 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21919 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21922 esac
21923 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21925 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21926 echo $ECHO_N "(cached) $ECHO_C" >&6
21927 else
21928 eval "$as_ac_Header=\$ac_header_preproc"
21930 ac_res=`eval echo '${'$as_ac_Header'}'`
21931 { echo "$as_me:$LINENO: result: $ac_res" >&5
21932 echo "${ECHO_T}$ac_res" >&6; }
21935 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21936 cat >>confdefs.h <<_ACEOF
21937 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21938 _ACEOF
21942 done
21946 # Solaris requires -lintl if you want strerror (which calls dgettext)
21947 # to return localized messages.
21949 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21950 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
21951 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21952 echo $ECHO_N "(cached) $ECHO_C" >&6
21953 else
21954 ac_check_lib_save_LIBS=$LIBS
21955 LIBS="-lintl $LIBS"
21956 cat >conftest.$ac_ext <<_ACEOF
21957 /* confdefs.h. */
21958 _ACEOF
21959 cat confdefs.h >>conftest.$ac_ext
21960 cat >>conftest.$ac_ext <<_ACEOF
21961 /* end confdefs.h. */
21963 /* Override any GCC internal prototype to avoid an error.
21964 Use char because int might match the return type of a GCC
21965 builtin and then its argument prototype would still apply. */
21966 #ifdef __cplusplus
21967 extern "C"
21968 #endif
21969 char dgettext ();
21971 main ()
21973 return dgettext ();
21975 return 0;
21977 _ACEOF
21978 rm -f conftest.$ac_objext conftest$ac_exeext
21979 if { (ac_try="$ac_link"
21980 case "(($ac_try" in
21981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21982 *) ac_try_echo=$ac_try;;
21983 esac
21984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21985 (eval "$ac_link") 2>conftest.er1
21986 ac_status=$?
21987 grep -v '^ *+' conftest.er1 >conftest.err
21988 rm -f conftest.er1
21989 cat conftest.err >&5
21990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21991 (exit $ac_status); } && {
21992 test -z "$ac_c_werror_flag" ||
21993 test ! -s conftest.err
21994 } && test -s conftest$ac_exeext &&
21995 $as_test_x conftest$ac_exeext; then
21996 ac_cv_lib_intl_dgettext=yes
21997 else
21998 echo "$as_me: failed program was:" >&5
21999 sed 's/^/| /' conftest.$ac_ext >&5
22001 ac_cv_lib_intl_dgettext=no
22004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22005 conftest$ac_exeext conftest.$ac_ext
22006 LIBS=$ac_check_lib_save_LIBS
22008 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
22009 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22010 if test $ac_cv_lib_intl_dgettext = yes; then
22011 cat >>confdefs.h <<_ACEOF
22012 #define HAVE_LIBINTL 1
22013 _ACEOF
22015 LIBS="-lintl $LIBS"
22020 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
22021 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
22022 if test "${emacs_cv_localtime_cache+set}" = set; then
22023 echo $ECHO_N "(cached) $ECHO_C" >&6
22024 else
22025 if test x$ac_cv_func_tzset = xyes; then
22026 if test "$cross_compiling" = yes; then
22027 # If we have tzset, assume the worst when cross-compiling.
22028 emacs_cv_localtime_cache=yes
22029 else
22030 cat >conftest.$ac_ext <<_ACEOF
22031 /* confdefs.h. */
22032 _ACEOF
22033 cat confdefs.h >>conftest.$ac_ext
22034 cat >>conftest.$ac_ext <<_ACEOF
22035 /* end confdefs.h. */
22036 #include <time.h>
22037 extern char **environ;
22038 unset_TZ ()
22040 char **from, **to;
22041 for (to = from = environ; (*to = *from); from++)
22042 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22043 to++;
22045 char TZ_GMT0[] = "TZ=GMT0";
22046 char TZ_PST8[] = "TZ=PST8";
22047 main()
22049 time_t now = time ((time_t *) 0);
22050 int hour_GMT0, hour_unset;
22051 if (putenv (TZ_GMT0) != 0)
22052 exit (1);
22053 hour_GMT0 = localtime (&now)->tm_hour;
22054 unset_TZ ();
22055 hour_unset = localtime (&now)->tm_hour;
22056 if (putenv (TZ_PST8) != 0)
22057 exit (1);
22058 if (localtime (&now)->tm_hour == hour_GMT0)
22059 exit (1);
22060 unset_TZ ();
22061 if (localtime (&now)->tm_hour != hour_unset)
22062 exit (1);
22063 exit (0);
22065 _ACEOF
22066 rm -f conftest$ac_exeext
22067 if { (ac_try="$ac_link"
22068 case "(($ac_try" in
22069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22070 *) ac_try_echo=$ac_try;;
22071 esac
22072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22073 (eval "$ac_link") 2>&5
22074 ac_status=$?
22075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22076 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22077 { (case "(($ac_try" in
22078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22079 *) ac_try_echo=$ac_try;;
22080 esac
22081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22082 (eval "$ac_try") 2>&5
22083 ac_status=$?
22084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22085 (exit $ac_status); }; }; then
22086 emacs_cv_localtime_cache=no
22087 else
22088 echo "$as_me: program exited with status $ac_status" >&5
22089 echo "$as_me: failed program was:" >&5
22090 sed 's/^/| /' conftest.$ac_ext >&5
22092 ( exit $ac_status )
22093 emacs_cv_localtime_cache=yes
22095 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22099 else
22100 # If we lack tzset, report that localtime does not cache TZ,
22101 # since we can't invalidate the cache if we don't have tzset.
22102 emacs_cv_localtime_cache=no
22105 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
22106 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22107 if test $emacs_cv_localtime_cache = yes; then
22109 cat >>confdefs.h <<\_ACEOF
22110 #define LOCALTIME_CACHE 1
22111 _ACEOF
22115 if test "x$HAVE_TIMEVAL" = xyes; then
22117 for ac_func in gettimeofday
22119 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22120 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22121 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22122 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22123 echo $ECHO_N "(cached) $ECHO_C" >&6
22124 else
22125 cat >conftest.$ac_ext <<_ACEOF
22126 /* confdefs.h. */
22127 _ACEOF
22128 cat confdefs.h >>conftest.$ac_ext
22129 cat >>conftest.$ac_ext <<_ACEOF
22130 /* end confdefs.h. */
22131 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22133 #define $ac_func innocuous_$ac_func
22135 /* System header to define __stub macros and hopefully few prototypes,
22136 which can conflict with char $ac_func (); below.
22137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22138 <limits.h> exists even on freestanding compilers. */
22140 #ifdef __STDC__
22141 # include <limits.h>
22142 #else
22143 # include <assert.h>
22144 #endif
22146 #undef $ac_func
22148 /* Override any GCC internal prototype to avoid an error.
22149 Use char because int might match the return type of a GCC
22150 builtin and then its argument prototype would still apply. */
22151 #ifdef __cplusplus
22152 extern "C"
22153 #endif
22154 char $ac_func ();
22155 /* The GNU C library defines this for functions which it implements
22156 to always fail with ENOSYS. Some functions are actually named
22157 something starting with __ and the normal name is an alias. */
22158 #if defined __stub_$ac_func || defined __stub___$ac_func
22159 choke me
22160 #endif
22163 main ()
22165 return $ac_func ();
22167 return 0;
22169 _ACEOF
22170 rm -f conftest.$ac_objext conftest$ac_exeext
22171 if { (ac_try="$ac_link"
22172 case "(($ac_try" in
22173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22174 *) ac_try_echo=$ac_try;;
22175 esac
22176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22177 (eval "$ac_link") 2>conftest.er1
22178 ac_status=$?
22179 grep -v '^ *+' conftest.er1 >conftest.err
22180 rm -f conftest.er1
22181 cat conftest.err >&5
22182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22183 (exit $ac_status); } && {
22184 test -z "$ac_c_werror_flag" ||
22185 test ! -s conftest.err
22186 } && test -s conftest$ac_exeext &&
22187 $as_test_x conftest$ac_exeext; then
22188 eval "$as_ac_var=yes"
22189 else
22190 echo "$as_me: failed program was:" >&5
22191 sed 's/^/| /' conftest.$ac_ext >&5
22193 eval "$as_ac_var=no"
22196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22197 conftest$ac_exeext conftest.$ac_ext
22199 ac_res=`eval echo '${'$as_ac_var'}'`
22200 { echo "$as_me:$LINENO: result: $ac_res" >&5
22201 echo "${ECHO_T}$ac_res" >&6; }
22202 if test `eval echo '${'$as_ac_var'}'` = yes; then
22203 cat >>confdefs.h <<_ACEOF
22204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22205 _ACEOF
22208 done
22210 if test $ac_cv_func_gettimeofday = yes; then
22211 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
22212 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
22213 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22214 echo $ECHO_N "(cached) $ECHO_C" >&6
22215 else
22216 cat >conftest.$ac_ext <<_ACEOF
22217 /* confdefs.h. */
22218 _ACEOF
22219 cat confdefs.h >>conftest.$ac_ext
22220 cat >>conftest.$ac_ext <<_ACEOF
22221 /* end confdefs.h. */
22223 #ifdef TIME_WITH_SYS_TIME
22224 #include <sys/time.h>
22225 #include <time.h>
22226 #else
22227 #ifdef HAVE_SYS_TIME_H
22228 #include <sys/time.h>
22229 #else
22230 #include <time.h>
22231 #endif
22232 #endif
22234 main ()
22236 struct timeval time;
22237 gettimeofday (&time, 0);
22239 return 0;
22241 _ACEOF
22242 rm -f conftest.$ac_objext
22243 if { (ac_try="$ac_compile"
22244 case "(($ac_try" in
22245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22246 *) ac_try_echo=$ac_try;;
22247 esac
22248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22249 (eval "$ac_compile") 2>conftest.er1
22250 ac_status=$?
22251 grep -v '^ *+' conftest.er1 >conftest.err
22252 rm -f conftest.er1
22253 cat conftest.err >&5
22254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22255 (exit $ac_status); } && {
22256 test -z "$ac_c_werror_flag" ||
22257 test ! -s conftest.err
22258 } && test -s conftest.$ac_objext; then
22259 emacs_cv_gettimeofday_two_arguments=yes
22260 else
22261 echo "$as_me: failed program was:" >&5
22262 sed 's/^/| /' conftest.$ac_ext >&5
22264 emacs_cv_gettimeofday_two_arguments=no
22267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22269 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
22270 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22271 if test $emacs_cv_gettimeofday_two_arguments = no; then
22273 cat >>confdefs.h <<\_ACEOF
22274 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22275 _ACEOF
22281 ok_so_far=yes
22282 { echo "$as_me:$LINENO: checking for socket" >&5
22283 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
22284 if test "${ac_cv_func_socket+set}" = set; then
22285 echo $ECHO_N "(cached) $ECHO_C" >&6
22286 else
22287 cat >conftest.$ac_ext <<_ACEOF
22288 /* confdefs.h. */
22289 _ACEOF
22290 cat confdefs.h >>conftest.$ac_ext
22291 cat >>conftest.$ac_ext <<_ACEOF
22292 /* end confdefs.h. */
22293 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22294 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22295 #define socket innocuous_socket
22297 /* System header to define __stub macros and hopefully few prototypes,
22298 which can conflict with char socket (); below.
22299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22300 <limits.h> exists even on freestanding compilers. */
22302 #ifdef __STDC__
22303 # include <limits.h>
22304 #else
22305 # include <assert.h>
22306 #endif
22308 #undef socket
22310 /* Override any GCC internal prototype to avoid an error.
22311 Use char because int might match the return type of a GCC
22312 builtin and then its argument prototype would still apply. */
22313 #ifdef __cplusplus
22314 extern "C"
22315 #endif
22316 char socket ();
22317 /* The GNU C library defines this for functions which it implements
22318 to always fail with ENOSYS. Some functions are actually named
22319 something starting with __ and the normal name is an alias. */
22320 #if defined __stub_socket || defined __stub___socket
22321 choke me
22322 #endif
22325 main ()
22327 return socket ();
22329 return 0;
22331 _ACEOF
22332 rm -f conftest.$ac_objext conftest$ac_exeext
22333 if { (ac_try="$ac_link"
22334 case "(($ac_try" in
22335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22336 *) ac_try_echo=$ac_try;;
22337 esac
22338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22339 (eval "$ac_link") 2>conftest.er1
22340 ac_status=$?
22341 grep -v '^ *+' conftest.er1 >conftest.err
22342 rm -f conftest.er1
22343 cat conftest.err >&5
22344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22345 (exit $ac_status); } && {
22346 test -z "$ac_c_werror_flag" ||
22347 test ! -s conftest.err
22348 } && test -s conftest$ac_exeext &&
22349 $as_test_x conftest$ac_exeext; then
22350 ac_cv_func_socket=yes
22351 else
22352 echo "$as_me: failed program was:" >&5
22353 sed 's/^/| /' conftest.$ac_ext >&5
22355 ac_cv_func_socket=no
22358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22359 conftest$ac_exeext conftest.$ac_ext
22361 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22362 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22363 if test $ac_cv_func_socket = yes; then
22365 else
22366 ok_so_far=no
22369 if test $ok_so_far = yes; then
22370 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22371 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22372 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22373 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22374 echo $ECHO_N "(cached) $ECHO_C" >&6
22376 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22377 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22378 else
22379 # Is the header compilable?
22380 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22381 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
22382 cat >conftest.$ac_ext <<_ACEOF
22383 /* confdefs.h. */
22384 _ACEOF
22385 cat confdefs.h >>conftest.$ac_ext
22386 cat >>conftest.$ac_ext <<_ACEOF
22387 /* end confdefs.h. */
22388 $ac_includes_default
22389 #include <netinet/in.h>
22390 _ACEOF
22391 rm -f conftest.$ac_objext
22392 if { (ac_try="$ac_compile"
22393 case "(($ac_try" in
22394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22395 *) ac_try_echo=$ac_try;;
22396 esac
22397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22398 (eval "$ac_compile") 2>conftest.er1
22399 ac_status=$?
22400 grep -v '^ *+' conftest.er1 >conftest.err
22401 rm -f conftest.er1
22402 cat conftest.err >&5
22403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22404 (exit $ac_status); } && {
22405 test -z "$ac_c_werror_flag" ||
22406 test ! -s conftest.err
22407 } && test -s conftest.$ac_objext; then
22408 ac_header_compiler=yes
22409 else
22410 echo "$as_me: failed program was:" >&5
22411 sed 's/^/| /' conftest.$ac_ext >&5
22413 ac_header_compiler=no
22416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22417 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22418 echo "${ECHO_T}$ac_header_compiler" >&6; }
22420 # Is the header present?
22421 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22422 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
22423 cat >conftest.$ac_ext <<_ACEOF
22424 /* confdefs.h. */
22425 _ACEOF
22426 cat confdefs.h >>conftest.$ac_ext
22427 cat >>conftest.$ac_ext <<_ACEOF
22428 /* end confdefs.h. */
22429 #include <netinet/in.h>
22430 _ACEOF
22431 if { (ac_try="$ac_cpp conftest.$ac_ext"
22432 case "(($ac_try" in
22433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22434 *) ac_try_echo=$ac_try;;
22435 esac
22436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22437 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22438 ac_status=$?
22439 grep -v '^ *+' conftest.er1 >conftest.err
22440 rm -f conftest.er1
22441 cat conftest.err >&5
22442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22443 (exit $ac_status); } >/dev/null && {
22444 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22445 test ! -s conftest.err
22446 }; then
22447 ac_header_preproc=yes
22448 else
22449 echo "$as_me: failed program was:" >&5
22450 sed 's/^/| /' conftest.$ac_ext >&5
22452 ac_header_preproc=no
22455 rm -f conftest.err conftest.$ac_ext
22456 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22457 echo "${ECHO_T}$ac_header_preproc" >&6; }
22459 # So? What about this header?
22460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22461 yes:no: )
22462 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22463 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22464 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22465 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22466 ac_header_preproc=yes
22468 no:yes:* )
22469 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22470 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22471 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22472 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22473 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22474 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22475 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22476 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22477 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22478 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22479 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22480 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22483 esac
22484 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22485 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22486 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22487 echo $ECHO_N "(cached) $ECHO_C" >&6
22488 else
22489 ac_cv_header_netinet_in_h=$ac_header_preproc
22491 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22492 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22495 if test $ac_cv_header_netinet_in_h = yes; then
22497 else
22498 ok_so_far=no
22503 if test $ok_so_far = yes; then
22504 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22505 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22506 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22507 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22508 echo $ECHO_N "(cached) $ECHO_C" >&6
22510 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22511 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22512 else
22513 # Is the header compilable?
22514 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22515 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
22516 cat >conftest.$ac_ext <<_ACEOF
22517 /* confdefs.h. */
22518 _ACEOF
22519 cat confdefs.h >>conftest.$ac_ext
22520 cat >>conftest.$ac_ext <<_ACEOF
22521 /* end confdefs.h. */
22522 $ac_includes_default
22523 #include <arpa/inet.h>
22524 _ACEOF
22525 rm -f conftest.$ac_objext
22526 if { (ac_try="$ac_compile"
22527 case "(($ac_try" in
22528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22529 *) ac_try_echo=$ac_try;;
22530 esac
22531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22532 (eval "$ac_compile") 2>conftest.er1
22533 ac_status=$?
22534 grep -v '^ *+' conftest.er1 >conftest.err
22535 rm -f conftest.er1
22536 cat conftest.err >&5
22537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22538 (exit $ac_status); } && {
22539 test -z "$ac_c_werror_flag" ||
22540 test ! -s conftest.err
22541 } && test -s conftest.$ac_objext; then
22542 ac_header_compiler=yes
22543 else
22544 echo "$as_me: failed program was:" >&5
22545 sed 's/^/| /' conftest.$ac_ext >&5
22547 ac_header_compiler=no
22550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22551 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22552 echo "${ECHO_T}$ac_header_compiler" >&6; }
22554 # Is the header present?
22555 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22556 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
22557 cat >conftest.$ac_ext <<_ACEOF
22558 /* confdefs.h. */
22559 _ACEOF
22560 cat confdefs.h >>conftest.$ac_ext
22561 cat >>conftest.$ac_ext <<_ACEOF
22562 /* end confdefs.h. */
22563 #include <arpa/inet.h>
22564 _ACEOF
22565 if { (ac_try="$ac_cpp conftest.$ac_ext"
22566 case "(($ac_try" in
22567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22568 *) ac_try_echo=$ac_try;;
22569 esac
22570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22571 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22572 ac_status=$?
22573 grep -v '^ *+' conftest.er1 >conftest.err
22574 rm -f conftest.er1
22575 cat conftest.err >&5
22576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577 (exit $ac_status); } >/dev/null && {
22578 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22579 test ! -s conftest.err
22580 }; then
22581 ac_header_preproc=yes
22582 else
22583 echo "$as_me: failed program was:" >&5
22584 sed 's/^/| /' conftest.$ac_ext >&5
22586 ac_header_preproc=no
22589 rm -f conftest.err conftest.$ac_ext
22590 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22591 echo "${ECHO_T}$ac_header_preproc" >&6; }
22593 # So? What about this header?
22594 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22595 yes:no: )
22596 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
22597 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22598 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
22599 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
22600 ac_header_preproc=yes
22602 no:yes:* )
22603 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
22604 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
22605 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
22606 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
22607 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
22608 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
22609 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
22610 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
22611 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
22612 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
22613 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
22614 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
22617 esac
22618 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22619 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22620 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22621 echo $ECHO_N "(cached) $ECHO_C" >&6
22622 else
22623 ac_cv_header_arpa_inet_h=$ac_header_preproc
22625 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22626 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22629 if test $ac_cv_header_arpa_inet_h = yes; then
22631 else
22632 ok_so_far=no
22637 if test $ok_so_far = yes; then
22639 cat >>confdefs.h <<\_ACEOF
22640 #define HAVE_INET_SOCKETS 1
22641 _ACEOF
22646 for ac_header in sys/ioctl.h
22648 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22650 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22653 echo $ECHO_N "(cached) $ECHO_C" >&6
22655 ac_res=`eval echo '${'$as_ac_Header'}'`
22656 { echo "$as_me:$LINENO: result: $ac_res" >&5
22657 echo "${ECHO_T}$ac_res" >&6; }
22658 else
22659 # Is the header compilable?
22660 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22661 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22662 cat >conftest.$ac_ext <<_ACEOF
22663 /* confdefs.h. */
22664 _ACEOF
22665 cat confdefs.h >>conftest.$ac_ext
22666 cat >>conftest.$ac_ext <<_ACEOF
22667 /* end confdefs.h. */
22668 $ac_includes_default
22669 #include <$ac_header>
22670 _ACEOF
22671 rm -f conftest.$ac_objext
22672 if { (ac_try="$ac_compile"
22673 case "(($ac_try" in
22674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22675 *) ac_try_echo=$ac_try;;
22676 esac
22677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22678 (eval "$ac_compile") 2>conftest.er1
22679 ac_status=$?
22680 grep -v '^ *+' conftest.er1 >conftest.err
22681 rm -f conftest.er1
22682 cat conftest.err >&5
22683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22684 (exit $ac_status); } && {
22685 test -z "$ac_c_werror_flag" ||
22686 test ! -s conftest.err
22687 } && test -s conftest.$ac_objext; then
22688 ac_header_compiler=yes
22689 else
22690 echo "$as_me: failed program was:" >&5
22691 sed 's/^/| /' conftest.$ac_ext >&5
22693 ac_header_compiler=no
22696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22697 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22698 echo "${ECHO_T}$ac_header_compiler" >&6; }
22700 # Is the header present?
22701 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22702 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22703 cat >conftest.$ac_ext <<_ACEOF
22704 /* confdefs.h. */
22705 _ACEOF
22706 cat confdefs.h >>conftest.$ac_ext
22707 cat >>conftest.$ac_ext <<_ACEOF
22708 /* end confdefs.h. */
22709 #include <$ac_header>
22710 _ACEOF
22711 if { (ac_try="$ac_cpp conftest.$ac_ext"
22712 case "(($ac_try" in
22713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22714 *) ac_try_echo=$ac_try;;
22715 esac
22716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22718 ac_status=$?
22719 grep -v '^ *+' conftest.er1 >conftest.err
22720 rm -f conftest.er1
22721 cat conftest.err >&5
22722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22723 (exit $ac_status); } >/dev/null && {
22724 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22725 test ! -s conftest.err
22726 }; then
22727 ac_header_preproc=yes
22728 else
22729 echo "$as_me: failed program was:" >&5
22730 sed 's/^/| /' conftest.$ac_ext >&5
22732 ac_header_preproc=no
22735 rm -f conftest.err conftest.$ac_ext
22736 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22737 echo "${ECHO_T}$ac_header_preproc" >&6; }
22739 # So? What about this header?
22740 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22741 yes:no: )
22742 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22743 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22744 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22745 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22746 ac_header_preproc=yes
22748 no:yes:* )
22749 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22750 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22751 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22752 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22753 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22754 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22755 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22756 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22757 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22758 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22759 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22760 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22763 esac
22764 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22767 echo $ECHO_N "(cached) $ECHO_C" >&6
22768 else
22769 eval "$as_ac_Header=\$ac_header_preproc"
22771 ac_res=`eval echo '${'$as_ac_Header'}'`
22772 { echo "$as_me:$LINENO: result: $ac_res" >&5
22773 echo "${ECHO_T}$ac_res" >&6; }
22776 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22777 cat >>confdefs.h <<_ACEOF
22778 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22779 _ACEOF
22783 done
22786 if test -f /usr/lpp/X11/bin/smt.exp; then
22788 cat >>confdefs.h <<\_ACEOF
22789 #define HAVE_AIX_SMT_EXP 1
22790 _ACEOF
22794 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
22795 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
22796 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22797 { echo "$as_me:$LINENO: result: yes" >&5
22798 echo "${ECHO_T}yes" >&6; }
22800 cat >>confdefs.h <<\_ACEOF
22801 #define HAVE_DEV_PTMX 1
22802 _ACEOF
22804 else
22805 { echo "$as_me:$LINENO: result: no" >&5
22806 echo "${ECHO_T}no" >&6; }
22809 { echo "$as_me:$LINENO: checking for pid_t" >&5
22810 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22811 if test "${ac_cv_type_pid_t+set}" = set; then
22812 echo $ECHO_N "(cached) $ECHO_C" >&6
22813 else
22814 cat >conftest.$ac_ext <<_ACEOF
22815 /* confdefs.h. */
22816 _ACEOF
22817 cat confdefs.h >>conftest.$ac_ext
22818 cat >>conftest.$ac_ext <<_ACEOF
22819 /* end confdefs.h. */
22820 $ac_includes_default
22821 typedef pid_t ac__type_new_;
22823 main ()
22825 if ((ac__type_new_ *) 0)
22826 return 0;
22827 if (sizeof (ac__type_new_))
22828 return 0;
22830 return 0;
22832 _ACEOF
22833 rm -f conftest.$ac_objext
22834 if { (ac_try="$ac_compile"
22835 case "(($ac_try" in
22836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22837 *) ac_try_echo=$ac_try;;
22838 esac
22839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22840 (eval "$ac_compile") 2>conftest.er1
22841 ac_status=$?
22842 grep -v '^ *+' conftest.er1 >conftest.err
22843 rm -f conftest.er1
22844 cat conftest.err >&5
22845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22846 (exit $ac_status); } && {
22847 test -z "$ac_c_werror_flag" ||
22848 test ! -s conftest.err
22849 } && test -s conftest.$ac_objext; then
22850 ac_cv_type_pid_t=yes
22851 else
22852 echo "$as_me: failed program was:" >&5
22853 sed 's/^/| /' conftest.$ac_ext >&5
22855 ac_cv_type_pid_t=no
22858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22860 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22861 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22862 if test $ac_cv_type_pid_t = yes; then
22864 else
22866 cat >>confdefs.h <<_ACEOF
22867 #define pid_t int
22868 _ACEOF
22873 for ac_header in vfork.h
22875 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22876 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22877 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22880 echo $ECHO_N "(cached) $ECHO_C" >&6
22882 ac_res=`eval echo '${'$as_ac_Header'}'`
22883 { echo "$as_me:$LINENO: result: $ac_res" >&5
22884 echo "${ECHO_T}$ac_res" >&6; }
22885 else
22886 # Is the header compilable?
22887 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22888 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22889 cat >conftest.$ac_ext <<_ACEOF
22890 /* confdefs.h. */
22891 _ACEOF
22892 cat confdefs.h >>conftest.$ac_ext
22893 cat >>conftest.$ac_ext <<_ACEOF
22894 /* end confdefs.h. */
22895 $ac_includes_default
22896 #include <$ac_header>
22897 _ACEOF
22898 rm -f conftest.$ac_objext
22899 if { (ac_try="$ac_compile"
22900 case "(($ac_try" in
22901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22902 *) ac_try_echo=$ac_try;;
22903 esac
22904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22905 (eval "$ac_compile") 2>conftest.er1
22906 ac_status=$?
22907 grep -v '^ *+' conftest.er1 >conftest.err
22908 rm -f conftest.er1
22909 cat conftest.err >&5
22910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22911 (exit $ac_status); } && {
22912 test -z "$ac_c_werror_flag" ||
22913 test ! -s conftest.err
22914 } && test -s conftest.$ac_objext; then
22915 ac_header_compiler=yes
22916 else
22917 echo "$as_me: failed program was:" >&5
22918 sed 's/^/| /' conftest.$ac_ext >&5
22920 ac_header_compiler=no
22923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22924 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22925 echo "${ECHO_T}$ac_header_compiler" >&6; }
22927 # Is the header present?
22928 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22929 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22930 cat >conftest.$ac_ext <<_ACEOF
22931 /* confdefs.h. */
22932 _ACEOF
22933 cat confdefs.h >>conftest.$ac_ext
22934 cat >>conftest.$ac_ext <<_ACEOF
22935 /* end confdefs.h. */
22936 #include <$ac_header>
22937 _ACEOF
22938 if { (ac_try="$ac_cpp conftest.$ac_ext"
22939 case "(($ac_try" in
22940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22941 *) ac_try_echo=$ac_try;;
22942 esac
22943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22944 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22945 ac_status=$?
22946 grep -v '^ *+' conftest.er1 >conftest.err
22947 rm -f conftest.er1
22948 cat conftest.err >&5
22949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22950 (exit $ac_status); } >/dev/null && {
22951 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22952 test ! -s conftest.err
22953 }; then
22954 ac_header_preproc=yes
22955 else
22956 echo "$as_me: failed program was:" >&5
22957 sed 's/^/| /' conftest.$ac_ext >&5
22959 ac_header_preproc=no
22962 rm -f conftest.err conftest.$ac_ext
22963 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22964 echo "${ECHO_T}$ac_header_preproc" >&6; }
22966 # So? What about this header?
22967 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22968 yes:no: )
22969 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22970 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22971 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22972 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22973 ac_header_preproc=yes
22975 no:yes:* )
22976 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22977 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22978 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22979 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22980 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22981 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22982 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22983 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22984 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22985 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22986 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22987 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22990 esac
22991 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22993 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22994 echo $ECHO_N "(cached) $ECHO_C" >&6
22995 else
22996 eval "$as_ac_Header=\$ac_header_preproc"
22998 ac_res=`eval echo '${'$as_ac_Header'}'`
22999 { echo "$as_me:$LINENO: result: $ac_res" >&5
23000 echo "${ECHO_T}$ac_res" >&6; }
23003 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23004 cat >>confdefs.h <<_ACEOF
23005 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23006 _ACEOF
23010 done
23014 for ac_func in fork vfork
23016 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23017 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23018 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23019 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23020 echo $ECHO_N "(cached) $ECHO_C" >&6
23021 else
23022 cat >conftest.$ac_ext <<_ACEOF
23023 /* confdefs.h. */
23024 _ACEOF
23025 cat confdefs.h >>conftest.$ac_ext
23026 cat >>conftest.$ac_ext <<_ACEOF
23027 /* end confdefs.h. */
23028 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23030 #define $ac_func innocuous_$ac_func
23032 /* System header to define __stub macros and hopefully few prototypes,
23033 which can conflict with char $ac_func (); below.
23034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23035 <limits.h> exists even on freestanding compilers. */
23037 #ifdef __STDC__
23038 # include <limits.h>
23039 #else
23040 # include <assert.h>
23041 #endif
23043 #undef $ac_func
23045 /* Override any GCC internal prototype to avoid an error.
23046 Use char because int might match the return type of a GCC
23047 builtin and then its argument prototype would still apply. */
23048 #ifdef __cplusplus
23049 extern "C"
23050 #endif
23051 char $ac_func ();
23052 /* The GNU C library defines this for functions which it implements
23053 to always fail with ENOSYS. Some functions are actually named
23054 something starting with __ and the normal name is an alias. */
23055 #if defined __stub_$ac_func || defined __stub___$ac_func
23056 choke me
23057 #endif
23060 main ()
23062 return $ac_func ();
23064 return 0;
23066 _ACEOF
23067 rm -f conftest.$ac_objext conftest$ac_exeext
23068 if { (ac_try="$ac_link"
23069 case "(($ac_try" in
23070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23071 *) ac_try_echo=$ac_try;;
23072 esac
23073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23074 (eval "$ac_link") 2>conftest.er1
23075 ac_status=$?
23076 grep -v '^ *+' conftest.er1 >conftest.err
23077 rm -f conftest.er1
23078 cat conftest.err >&5
23079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23080 (exit $ac_status); } && {
23081 test -z "$ac_c_werror_flag" ||
23082 test ! -s conftest.err
23083 } && test -s conftest$ac_exeext &&
23084 $as_test_x conftest$ac_exeext; then
23085 eval "$as_ac_var=yes"
23086 else
23087 echo "$as_me: failed program was:" >&5
23088 sed 's/^/| /' conftest.$ac_ext >&5
23090 eval "$as_ac_var=no"
23093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23094 conftest$ac_exeext conftest.$ac_ext
23096 ac_res=`eval echo '${'$as_ac_var'}'`
23097 { echo "$as_me:$LINENO: result: $ac_res" >&5
23098 echo "${ECHO_T}$ac_res" >&6; }
23099 if test `eval echo '${'$as_ac_var'}'` = yes; then
23100 cat >>confdefs.h <<_ACEOF
23101 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23102 _ACEOF
23105 done
23107 if test "x$ac_cv_func_fork" = xyes; then
23108 { echo "$as_me:$LINENO: checking for working fork" >&5
23109 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
23110 if test "${ac_cv_func_fork_works+set}" = set; then
23111 echo $ECHO_N "(cached) $ECHO_C" >&6
23112 else
23113 if test "$cross_compiling" = yes; then
23114 ac_cv_func_fork_works=cross
23115 else
23116 cat >conftest.$ac_ext <<_ACEOF
23117 /* confdefs.h. */
23118 _ACEOF
23119 cat confdefs.h >>conftest.$ac_ext
23120 cat >>conftest.$ac_ext <<_ACEOF
23121 /* end confdefs.h. */
23122 $ac_includes_default
23124 main ()
23127 /* By Ruediger Kuhlmann. */
23128 return fork () < 0;
23131 return 0;
23133 _ACEOF
23134 rm -f conftest$ac_exeext
23135 if { (ac_try="$ac_link"
23136 case "(($ac_try" in
23137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23138 *) ac_try_echo=$ac_try;;
23139 esac
23140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23141 (eval "$ac_link") 2>&5
23142 ac_status=$?
23143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23144 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23145 { (case "(($ac_try" in
23146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23147 *) ac_try_echo=$ac_try;;
23148 esac
23149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23150 (eval "$ac_try") 2>&5
23151 ac_status=$?
23152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23153 (exit $ac_status); }; }; then
23154 ac_cv_func_fork_works=yes
23155 else
23156 echo "$as_me: program exited with status $ac_status" >&5
23157 echo "$as_me: failed program was:" >&5
23158 sed 's/^/| /' conftest.$ac_ext >&5
23160 ( exit $ac_status )
23161 ac_cv_func_fork_works=no
23163 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23168 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23169 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23171 else
23172 ac_cv_func_fork_works=$ac_cv_func_fork
23174 if test "x$ac_cv_func_fork_works" = xcross; then
23175 case $host in
23176 *-*-amigaos* | *-*-msdosdjgpp*)
23177 # Override, as these systems have only a dummy fork() stub
23178 ac_cv_func_fork_works=no
23181 ac_cv_func_fork_works=yes
23183 esac
23184 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23185 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23187 ac_cv_func_vfork_works=$ac_cv_func_vfork
23188 if test "x$ac_cv_func_vfork" = xyes; then
23189 { echo "$as_me:$LINENO: checking for working vfork" >&5
23190 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
23191 if test "${ac_cv_func_vfork_works+set}" = set; then
23192 echo $ECHO_N "(cached) $ECHO_C" >&6
23193 else
23194 if test "$cross_compiling" = yes; then
23195 ac_cv_func_vfork_works=cross
23196 else
23197 cat >conftest.$ac_ext <<_ACEOF
23198 /* confdefs.h. */
23199 _ACEOF
23200 cat confdefs.h >>conftest.$ac_ext
23201 cat >>conftest.$ac_ext <<_ACEOF
23202 /* end confdefs.h. */
23203 /* Thanks to Paul Eggert for this test. */
23204 $ac_includes_default
23205 #include <sys/wait.h>
23206 #ifdef HAVE_VFORK_H
23207 # include <vfork.h>
23208 #endif
23209 /* On some sparc systems, changes by the child to local and incoming
23210 argument registers are propagated back to the parent. The compiler
23211 is told about this with #include <vfork.h>, but some compilers
23212 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23213 static variable whose address is put into a register that is
23214 clobbered by the vfork. */
23215 static void
23216 #ifdef __cplusplus
23217 sparc_address_test (int arg)
23218 # else
23219 sparc_address_test (arg) int arg;
23220 #endif
23222 static pid_t child;
23223 if (!child) {
23224 child = vfork ();
23225 if (child < 0) {
23226 perror ("vfork");
23227 _exit(2);
23229 if (!child) {
23230 arg = getpid();
23231 write(-1, "", 0);
23232 _exit (arg);
23238 main ()
23240 pid_t parent = getpid ();
23241 pid_t child;
23243 sparc_address_test (0);
23245 child = vfork ();
23247 if (child == 0) {
23248 /* Here is another test for sparc vfork register problems. This
23249 test uses lots of local variables, at least as many local
23250 variables as main has allocated so far including compiler
23251 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23252 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23253 reuse the register of parent for one of the local variables,
23254 since it will think that parent can't possibly be used any more
23255 in this routine. Assigning to the local variable will thus
23256 munge parent in the parent process. */
23257 pid_t
23258 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23259 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23260 /* Convince the compiler that p..p7 are live; otherwise, it might
23261 use the same hardware register for all 8 local variables. */
23262 if (p != p1 || p != p2 || p != p3 || p != p4
23263 || p != p5 || p != p6 || p != p7)
23264 _exit(1);
23266 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23267 from child file descriptors. If the child closes a descriptor
23268 before it execs or exits, this munges the parent's descriptor
23269 as well. Test for this by closing stdout in the child. */
23270 _exit(close(fileno(stdout)) != 0);
23271 } else {
23272 int status;
23273 struct stat st;
23275 while (wait(&status) != child)
23277 return (
23278 /* Was there some problem with vforking? */
23279 child < 0
23281 /* Did the child fail? (This shouldn't happen.) */
23282 || status
23284 /* Did the vfork/compiler bug occur? */
23285 || parent != getpid()
23287 /* Did the file descriptor bug occur? */
23288 || fstat(fileno(stdout), &st) != 0
23292 _ACEOF
23293 rm -f conftest$ac_exeext
23294 if { (ac_try="$ac_link"
23295 case "(($ac_try" in
23296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23297 *) ac_try_echo=$ac_try;;
23298 esac
23299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23300 (eval "$ac_link") 2>&5
23301 ac_status=$?
23302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23303 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23304 { (case "(($ac_try" in
23305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23306 *) ac_try_echo=$ac_try;;
23307 esac
23308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23309 (eval "$ac_try") 2>&5
23310 ac_status=$?
23311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23312 (exit $ac_status); }; }; then
23313 ac_cv_func_vfork_works=yes
23314 else
23315 echo "$as_me: program exited with status $ac_status" >&5
23316 echo "$as_me: failed program was:" >&5
23317 sed 's/^/| /' conftest.$ac_ext >&5
23319 ( exit $ac_status )
23320 ac_cv_func_vfork_works=no
23322 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23327 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23328 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23331 if test "x$ac_cv_func_fork_works" = xcross; then
23332 ac_cv_func_vfork_works=$ac_cv_func_vfork
23333 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23334 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23337 if test "x$ac_cv_func_vfork_works" = xyes; then
23339 cat >>confdefs.h <<\_ACEOF
23340 #define HAVE_WORKING_VFORK 1
23341 _ACEOF
23343 else
23345 cat >>confdefs.h <<\_ACEOF
23346 #define vfork fork
23347 _ACEOF
23350 if test "x$ac_cv_func_fork_works" = xyes; then
23352 cat >>confdefs.h <<\_ACEOF
23353 #define HAVE_WORKING_FORK 1
23354 _ACEOF
23359 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23360 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
23361 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23362 echo $ECHO_N "(cached) $ECHO_C" >&6
23363 else
23364 cat >conftest.$ac_ext <<_ACEOF
23365 /* confdefs.h. */
23366 _ACEOF
23367 cat confdefs.h >>conftest.$ac_ext
23368 cat >>conftest.$ac_ext <<_ACEOF
23369 /* end confdefs.h. */
23370 #include <langinfo.h>
23372 main ()
23374 char* cs = nl_langinfo(CODESET);
23376 return 0;
23378 _ACEOF
23379 rm -f conftest.$ac_objext conftest$ac_exeext
23380 if { (ac_try="$ac_link"
23381 case "(($ac_try" in
23382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23383 *) ac_try_echo=$ac_try;;
23384 esac
23385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23386 (eval "$ac_link") 2>conftest.er1
23387 ac_status=$?
23388 grep -v '^ *+' conftest.er1 >conftest.err
23389 rm -f conftest.er1
23390 cat conftest.err >&5
23391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23392 (exit $ac_status); } && {
23393 test -z "$ac_c_werror_flag" ||
23394 test ! -s conftest.err
23395 } && test -s conftest$ac_exeext &&
23396 $as_test_x conftest$ac_exeext; then
23397 emacs_cv_langinfo_codeset=yes
23398 else
23399 echo "$as_me: failed program was:" >&5
23400 sed 's/^/| /' conftest.$ac_ext >&5
23402 emacs_cv_langinfo_codeset=no
23405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23406 conftest$ac_exeext conftest.$ac_ext
23409 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23410 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23411 if test $emacs_cv_langinfo_codeset = yes; then
23413 cat >>confdefs.h <<\_ACEOF
23414 #define HAVE_LANGINFO_CODESET 1
23415 _ACEOF
23419 { echo "$as_me:$LINENO: checking for size_t" >&5
23420 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23421 if test "${ac_cv_type_size_t+set}" = set; then
23422 echo $ECHO_N "(cached) $ECHO_C" >&6
23423 else
23424 cat >conftest.$ac_ext <<_ACEOF
23425 /* confdefs.h. */
23426 _ACEOF
23427 cat confdefs.h >>conftest.$ac_ext
23428 cat >>conftest.$ac_ext <<_ACEOF
23429 /* end confdefs.h. */
23430 $ac_includes_default
23431 typedef size_t ac__type_new_;
23433 main ()
23435 if ((ac__type_new_ *) 0)
23436 return 0;
23437 if (sizeof (ac__type_new_))
23438 return 0;
23440 return 0;
23442 _ACEOF
23443 rm -f conftest.$ac_objext
23444 if { (ac_try="$ac_compile"
23445 case "(($ac_try" in
23446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23447 *) ac_try_echo=$ac_try;;
23448 esac
23449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23450 (eval "$ac_compile") 2>conftest.er1
23451 ac_status=$?
23452 grep -v '^ *+' conftest.er1 >conftest.err
23453 rm -f conftest.er1
23454 cat conftest.err >&5
23455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23456 (exit $ac_status); } && {
23457 test -z "$ac_c_werror_flag" ||
23458 test ! -s conftest.err
23459 } && test -s conftest.$ac_objext; then
23460 ac_cv_type_size_t=yes
23461 else
23462 echo "$as_me: failed program was:" >&5
23463 sed 's/^/| /' conftest.$ac_ext >&5
23465 ac_cv_type_size_t=no
23468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23470 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23471 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23472 if test $ac_cv_type_size_t = yes; then
23474 cat >>confdefs.h <<_ACEOF
23475 #define HAVE_SIZE_T 1
23476 _ACEOF
23482 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23483 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23484 if test "${ac_cv_type_mbstate_t+set}" = set; then
23485 echo $ECHO_N "(cached) $ECHO_C" >&6
23486 else
23487 cat >conftest.$ac_ext <<_ACEOF
23488 /* confdefs.h. */
23489 _ACEOF
23490 cat confdefs.h >>conftest.$ac_ext
23491 cat >>conftest.$ac_ext <<_ACEOF
23492 /* end confdefs.h. */
23493 $ac_includes_default
23494 # include <wchar.h>
23496 main ()
23498 mbstate_t x; return sizeof x;
23500 return 0;
23502 _ACEOF
23503 rm -f conftest.$ac_objext
23504 if { (ac_try="$ac_compile"
23505 case "(($ac_try" in
23506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23507 *) ac_try_echo=$ac_try;;
23508 esac
23509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23510 (eval "$ac_compile") 2>conftest.er1
23511 ac_status=$?
23512 grep -v '^ *+' conftest.er1 >conftest.err
23513 rm -f conftest.er1
23514 cat conftest.err >&5
23515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23516 (exit $ac_status); } && {
23517 test -z "$ac_c_werror_flag" ||
23518 test ! -s conftest.err
23519 } && test -s conftest.$ac_objext; then
23520 ac_cv_type_mbstate_t=yes
23521 else
23522 echo "$as_me: failed program was:" >&5
23523 sed 's/^/| /' conftest.$ac_ext >&5
23525 ac_cv_type_mbstate_t=no
23528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23530 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23531 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23532 if test $ac_cv_type_mbstate_t = yes; then
23534 cat >>confdefs.h <<\_ACEOF
23535 #define HAVE_MBSTATE_T 1
23536 _ACEOF
23538 else
23540 cat >>confdefs.h <<\_ACEOF
23541 #define mbstate_t int
23542 _ACEOF
23546 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23547 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
23548 if test "${emacs_cv_c_restrict+set}" = set; then
23549 echo $ECHO_N "(cached) $ECHO_C" >&6
23550 else
23551 cat >conftest.$ac_ext <<_ACEOF
23552 /* confdefs.h. */
23553 _ACEOF
23554 cat confdefs.h >>conftest.$ac_ext
23555 cat >>conftest.$ac_ext <<_ACEOF
23556 /* end confdefs.h. */
23557 void fred (int *restrict x);
23559 main ()
23563 return 0;
23565 _ACEOF
23566 rm -f conftest.$ac_objext
23567 if { (ac_try="$ac_compile"
23568 case "(($ac_try" in
23569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23570 *) ac_try_echo=$ac_try;;
23571 esac
23572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23573 (eval "$ac_compile") 2>conftest.er1
23574 ac_status=$?
23575 grep -v '^ *+' conftest.er1 >conftest.err
23576 rm -f conftest.er1
23577 cat conftest.err >&5
23578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23579 (exit $ac_status); } && {
23580 test -z "$ac_c_werror_flag" ||
23581 test ! -s conftest.err
23582 } && test -s conftest.$ac_objext; then
23583 emacs_cv_c_restrict=yes
23584 else
23585 echo "$as_me: failed program was:" >&5
23586 sed 's/^/| /' conftest.$ac_ext >&5
23588 cat >conftest.$ac_ext <<_ACEOF
23589 /* confdefs.h. */
23590 _ACEOF
23591 cat confdefs.h >>conftest.$ac_ext
23592 cat >>conftest.$ac_ext <<_ACEOF
23593 /* end confdefs.h. */
23594 void fred (int *__restrict x);
23596 main ()
23600 return 0;
23602 _ACEOF
23603 rm -f conftest.$ac_objext
23604 if { (ac_try="$ac_compile"
23605 case "(($ac_try" in
23606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23607 *) ac_try_echo=$ac_try;;
23608 esac
23609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23610 (eval "$ac_compile") 2>conftest.er1
23611 ac_status=$?
23612 grep -v '^ *+' conftest.er1 >conftest.err
23613 rm -f conftest.er1
23614 cat conftest.err >&5
23615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23616 (exit $ac_status); } && {
23617 test -z "$ac_c_werror_flag" ||
23618 test ! -s conftest.err
23619 } && test -s conftest.$ac_objext; then
23620 emacs_cv_c_restrict=__restrict
23621 else
23622 echo "$as_me: failed program was:" >&5
23623 sed 's/^/| /' conftest.$ac_ext >&5
23625 emacs_cv_c_restrict=no
23628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23633 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
23634 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23635 case "$emacs_cv_c_restrict" in
23636 yes) emacs_restrict=restrict;;
23637 no) emacs_restrict="";;
23638 *) emacs_restrict="$emacs_cv_c_restrict";;
23639 esac
23640 if test "$emacs_restrict" != __restrict; then
23642 cat >>confdefs.h <<_ACEOF
23643 #define __restrict $emacs_restrict
23644 _ACEOF
23648 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
23649 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
23650 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23651 echo $ECHO_N "(cached) $ECHO_C" >&6
23652 else
23653 cat >conftest.$ac_ext <<_ACEOF
23654 /* confdefs.h. */
23655 _ACEOF
23656 cat confdefs.h >>conftest.$ac_ext
23657 cat >>conftest.$ac_ext <<_ACEOF
23658 /* end confdefs.h. */
23659 void fred (int x[__restrict]);
23661 main ()
23665 return 0;
23667 _ACEOF
23668 rm -f conftest.$ac_objext
23669 if { (ac_try="$ac_compile"
23670 case "(($ac_try" in
23671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23672 *) ac_try_echo=$ac_try;;
23673 esac
23674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23675 (eval "$ac_compile") 2>conftest.er1
23676 ac_status=$?
23677 grep -v '^ *+' conftest.er1 >conftest.err
23678 rm -f conftest.er1
23679 cat conftest.err >&5
23680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23681 (exit $ac_status); } && {
23682 test -z "$ac_c_werror_flag" ||
23683 test ! -s conftest.err
23684 } && test -s conftest.$ac_objext; then
23685 emacs_cv_c_restrict_arr=yes
23686 else
23687 echo "$as_me: failed program was:" >&5
23688 sed 's/^/| /' conftest.$ac_ext >&5
23690 emacs_cv_c_restrict_arr=no
23693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23695 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
23696 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23697 if test "$emacs_cv_c_restrict_arr" = yes; then
23699 cat >>confdefs.h <<\_ACEOF
23700 #define __restrict_arr __restrict
23701 _ACEOF
23707 # Set up the CFLAGS for real compilation, so we can substitute it.
23708 CFLAGS="$REAL_CFLAGS"
23709 CPPFLAGS="$REAL_CPPFLAGS"
23711 #### Find out which version of Emacs this is.
23712 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23713 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
23714 if test x"${version}" = x; then
23715 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
23716 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
23717 { (exit 1); exit 1; }; }
23720 ### Specify what sort of things we'll be editing into Makefile and config.h.
23721 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23757 cat >>confdefs.h <<_ACEOF
23758 #define EMACS_CONFIGURATION "${canonical}"
23759 _ACEOF
23762 cat >>confdefs.h <<_ACEOF
23763 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23764 _ACEOF
23767 cat >>confdefs.h <<_ACEOF
23768 #define config_machfile "${machfile}"
23769 _ACEOF
23772 cat >>confdefs.h <<_ACEOF
23773 #define config_opsysfile "${opsysfile}"
23774 _ACEOF
23777 cat >>confdefs.h <<_ACEOF
23778 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23779 _ACEOF
23782 cat >>confdefs.h <<_ACEOF
23783 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23784 _ACEOF
23787 cat >>confdefs.h <<_ACEOF
23788 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23789 _ACEOF
23792 cat >>confdefs.h <<_ACEOF
23793 #define UNEXEC_SRC ${UNEXEC_SRC}
23794 _ACEOF
23797 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23799 cat >>confdefs.h <<\_ACEOF
23800 #define HAVE_X_WINDOWS 1
23801 _ACEOF
23804 if test "${USE_X_TOOLKIT}" != "none" ; then
23806 cat >>confdefs.h <<\_ACEOF
23807 #define USE_X_TOOLKIT 1
23808 _ACEOF
23811 if test "${HAVE_X11}" = "yes" ; then
23813 cat >>confdefs.h <<\_ACEOF
23814 #define HAVE_X11 1
23815 _ACEOF
23818 if test "${HAVE_MENUS}" = "yes" ; then
23820 cat >>confdefs.h <<\_ACEOF
23821 #define HAVE_MENUS 1
23822 _ACEOF
23825 if test "${GNU_MALLOC}" = "yes" ; then
23827 cat >>confdefs.h <<\_ACEOF
23828 #define GNU_MALLOC 1
23829 _ACEOF
23832 if test "${REL_ALLOC}" = "yes" ; then
23834 cat >>confdefs.h <<\_ACEOF
23835 #define REL_ALLOC 1
23836 _ACEOF
23845 #### Report on what we decided to do.
23846 #### Report GTK as a toolkit, even if it doesn't use Xt.
23847 #### It makes printing result more understandable as using GTK sets
23848 #### toolkit_scroll_bars to yes by default.
23849 if test "${HAVE_GTK}" = "yes"; then
23850 USE_X_TOOLKIT=GTK
23853 echo "
23854 Configured for \`${canonical}'.
23856 Where should the build process find the source code? ${srcdir}
23857 What operating system and machine description files should Emacs use?
23858 \`${opsysfile}' and \`${machfile}'
23859 What compiler should emacs be built with? ${CC} ${CFLAGS}
23860 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23861 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23862 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23863 What window system should Emacs use? ${window_system}
23864 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23866 if test -n "${x_includes}"; then
23867 echo " Where do we find X Windows header files? ${x_includes}"
23868 else
23869 echo " Where do we find X Windows header files? Standard dirs"
23871 if test -n "${x_libraries}"; then
23872 echo " Where do we find X Windows libraries? ${x_libraries}"
23873 else
23874 echo " Where do we find X Windows libraries? Standard dirs"
23877 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23878 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23879 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23880 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23881 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
23882 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23883 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
23884 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
23885 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
23886 echo " Does Emacs use a font backend? ${USE_FONT_BACKEND}"
23888 if test "${USE_FONT_BACKEND}" = "yes"; then
23889 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
23890 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
23891 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
23892 echo " Does Emacs use -lxft? ${HAVE_XFT}"
23894 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23895 echo
23897 if test $USE_XASSERTS = yes; then
23898 echo " Compiling with asserts turned on."
23899 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23900 echo
23903 if test "$USE_X_TOOLKIT" = GTK; then
23904 case "$canonical" in
23905 *cygwin*)
23906 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
23907 will probably get a crash on startup. If this happens, please use another
23908 toolkit for Emacs. See etc/PROBLEMS for more information."
23910 esac
23914 if test "$HAVE_CARBON" = "yes"; then
23915 echo
23916 echo "Warning: The Mac Carbon port is currently unsupported and has
23917 known problems. It is not recommended for use by non-developers.
23918 Read the emacs-devel archives for more information."
23919 echo
23922 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
23923 echo "D-Bus integration has been tested for GNU/Linux only."
23924 echo
23928 # Remove any trailing slashes in these variables.
23929 test "${prefix}" != NONE &&
23930 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23931 test "${exec_prefix}" != NONE &&
23932 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23934 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23935 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23936 ## from Makefile.c can correctly provide the arg `-traditional' to the
23937 ## C preprocessor.
23939 cat >conftest.$ac_ext <<_ACEOF
23940 /* confdefs.h. */
23941 _ACEOF
23942 cat confdefs.h >>conftest.$ac_ext
23943 cat >>conftest.$ac_ext <<_ACEOF
23944 /* end confdefs.h. */
23945 yes..yes
23946 _ACEOF
23947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23948 $EGREP "yes..yes" >/dev/null 2>&1; then
23949 CPP_NEED_TRADITIONAL=no
23950 else
23951 CPP_NEED_TRADITIONAL=yes
23953 rm -f conftest*
23956 ac_config_files="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile.c:src/Makefile.in lwlib/Makefile lisp/Makefile leim/Makefile"
23958 ac_config_commands="$ac_config_commands default"
23960 cat >confcache <<\_ACEOF
23961 # This file is a shell script that caches the results of configure
23962 # tests run on this system so they can be shared between configure
23963 # scripts and configure runs, see configure's option --config-cache.
23964 # It is not useful on other systems. If it contains results you don't
23965 # want to keep, you may remove or edit it.
23967 # config.status only pays attention to the cache file if you give it
23968 # the --recheck option to rerun configure.
23970 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23971 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23972 # following values.
23974 _ACEOF
23976 # The following way of writing the cache mishandles newlines in values,
23977 # but we know of no workaround that is simple, portable, and efficient.
23978 # So, we kill variables containing newlines.
23979 # Ultrix sh set writes to stderr and can't be redirected directly,
23980 # and sets the high bit in the cache file unless we assign to the vars.
23982 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23983 eval ac_val=\$$ac_var
23984 case $ac_val in #(
23985 *${as_nl}*)
23986 case $ac_var in #(
23987 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23988 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23989 esac
23990 case $ac_var in #(
23991 _ | IFS | as_nl) ;; #(
23992 *) $as_unset $ac_var ;;
23993 esac ;;
23994 esac
23995 done
23997 (set) 2>&1 |
23998 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23999 *${as_nl}ac_space=\ *)
24000 # `set' does not quote correctly, so add quotes (double-quote
24001 # substitution turns \\\\ into \\, and sed turns \\ into \).
24002 sed -n \
24003 "s/'/'\\\\''/g;
24004 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24005 ;; #(
24007 # `set' quotes correctly as required by POSIX, so do not add quotes.
24008 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24010 esac |
24011 sort
24013 sed '
24014 /^ac_cv_env_/b end
24015 t clear
24016 :clear
24017 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24018 t end
24019 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24020 :end' >>confcache
24021 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24022 if test -w "$cache_file"; then
24023 test "x$cache_file" != "x/dev/null" &&
24024 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24025 echo "$as_me: updating cache $cache_file" >&6;}
24026 cat confcache >$cache_file
24027 else
24028 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24029 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24032 rm -f confcache
24034 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24035 # Let make expand exec_prefix.
24036 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24038 DEFS=-DHAVE_CONFIG_H
24040 ac_libobjs=
24041 ac_ltlibobjs=
24042 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24043 # 1. Remove the extension, and $U if already installed.
24044 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24045 ac_i=`echo "$ac_i" | sed "$ac_script"`
24046 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24047 # will be set to the directory where LIBOBJS objects are built.
24048 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24049 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24050 done
24051 LIBOBJS=$ac_libobjs
24053 LTLIBOBJS=$ac_ltlibobjs
24057 : ${CONFIG_STATUS=./config.status}
24058 ac_clean_files_save=$ac_clean_files
24059 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24060 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24061 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24062 cat >$CONFIG_STATUS <<_ACEOF
24063 #! $SHELL
24064 # Generated by $as_me.
24065 # Run this file to recreate the current configuration.
24066 # Compiler output produced by configure, useful for debugging
24067 # configure, is in config.log if it exists.
24069 debug=false
24070 ac_cs_recheck=false
24071 ac_cs_silent=false
24072 SHELL=\${CONFIG_SHELL-$SHELL}
24073 _ACEOF
24075 cat >>$CONFIG_STATUS <<\_ACEOF
24076 ## --------------------- ##
24077 ## M4sh Initialization. ##
24078 ## --------------------- ##
24080 # Be more Bourne compatible
24081 DUALCASE=1; export DUALCASE # for MKS sh
24082 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24083 emulate sh
24084 NULLCMD=:
24085 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24086 # is contrary to our usage. Disable this feature.
24087 alias -g '${1+"$@"}'='"$@"'
24088 setopt NO_GLOB_SUBST
24089 else
24090 case `(set -o) 2>/dev/null` in
24091 *posix*) set -o posix ;;
24092 esac
24099 # PATH needs CR
24100 # Avoid depending upon Character Ranges.
24101 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24102 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24103 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24104 as_cr_digits='0123456789'
24105 as_cr_alnum=$as_cr_Letters$as_cr_digits
24107 # The user is always right.
24108 if test "${PATH_SEPARATOR+set}" != set; then
24109 echo "#! /bin/sh" >conf$$.sh
24110 echo "exit 0" >>conf$$.sh
24111 chmod +x conf$$.sh
24112 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24113 PATH_SEPARATOR=';'
24114 else
24115 PATH_SEPARATOR=:
24117 rm -f conf$$.sh
24120 # Support unset when possible.
24121 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24122 as_unset=unset
24123 else
24124 as_unset=false
24128 # IFS
24129 # We need space, tab and new line, in precisely that order. Quoting is
24130 # there to prevent editors from complaining about space-tab.
24131 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24132 # splitting by setting IFS to empty value.)
24133 as_nl='
24135 IFS=" "" $as_nl"
24137 # Find who we are. Look in the path if we contain no directory separator.
24138 case $0 in
24139 *[\\/]* ) as_myself=$0 ;;
24140 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24141 for as_dir in $PATH
24143 IFS=$as_save_IFS
24144 test -z "$as_dir" && as_dir=.
24145 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24146 done
24147 IFS=$as_save_IFS
24150 esac
24151 # We did not find ourselves, most probably we were run as `sh COMMAND'
24152 # in which case we are not to be found in the path.
24153 if test "x$as_myself" = x; then
24154 as_myself=$0
24156 if test ! -f "$as_myself"; then
24157 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24158 { (exit 1); exit 1; }
24161 # Work around bugs in pre-3.0 UWIN ksh.
24162 for as_var in ENV MAIL MAILPATH
24163 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24164 done
24165 PS1='$ '
24166 PS2='> '
24167 PS4='+ '
24169 # NLS nuisances.
24170 for as_var in \
24171 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24172 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24173 LC_TELEPHONE LC_TIME
24175 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24176 eval $as_var=C; export $as_var
24177 else
24178 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24180 done
24182 # Required to use basename.
24183 if expr a : '\(a\)' >/dev/null 2>&1 &&
24184 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24185 as_expr=expr
24186 else
24187 as_expr=false
24190 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24191 as_basename=basename
24192 else
24193 as_basename=false
24197 # Name of the executable.
24198 as_me=`$as_basename -- "$0" ||
24199 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24200 X"$0" : 'X\(//\)$' \| \
24201 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24202 echo X/"$0" |
24203 sed '/^.*\/\([^/][^/]*\)\/*$/{
24204 s//\1/
24207 /^X\/\(\/\/\)$/{
24208 s//\1/
24211 /^X\/\(\/\).*/{
24212 s//\1/
24215 s/.*/./; q'`
24217 # CDPATH.
24218 $as_unset CDPATH
24222 as_lineno_1=$LINENO
24223 as_lineno_2=$LINENO
24224 test "x$as_lineno_1" != "x$as_lineno_2" &&
24225 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24227 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24228 # uniformly replaced by the line number. The first 'sed' inserts a
24229 # line-number line after each line using $LINENO; the second 'sed'
24230 # does the real work. The second script uses 'N' to pair each
24231 # line-number line with the line containing $LINENO, and appends
24232 # trailing '-' during substitution so that $LINENO is not a special
24233 # case at line end.
24234 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24235 # scripts with optimization help from Paolo Bonzini. Blame Lee
24236 # E. McMahon (1931-1989) for sed's syntax. :-)
24237 sed -n '
24239 /[$]LINENO/=
24240 ' <$as_myself |
24241 sed '
24242 s/[$]LINENO.*/&-/
24243 t lineno
24245 :lineno
24247 :loop
24248 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24249 t loop
24250 s/-\n.*//
24251 ' >$as_me.lineno &&
24252 chmod +x "$as_me.lineno" ||
24253 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24254 { (exit 1); exit 1; }; }
24256 # Don't try to exec as it changes $[0], causing all sort of problems
24257 # (the dirname of $[0] is not the place where we might find the
24258 # original and so on. Autoconf is especially sensitive to this).
24259 . "./$as_me.lineno"
24260 # Exit status is that of the last command.
24261 exit
24265 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24266 as_dirname=dirname
24267 else
24268 as_dirname=false
24271 ECHO_C= ECHO_N= ECHO_T=
24272 case `echo -n x` in
24273 -n*)
24274 case `echo 'x\c'` in
24275 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24276 *) ECHO_C='\c';;
24277 esac;;
24279 ECHO_N='-n';;
24280 esac
24282 if expr a : '\(a\)' >/dev/null 2>&1 &&
24283 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24284 as_expr=expr
24285 else
24286 as_expr=false
24289 rm -f conf$$ conf$$.exe conf$$.file
24290 if test -d conf$$.dir; then
24291 rm -f conf$$.dir/conf$$.file
24292 else
24293 rm -f conf$$.dir
24294 mkdir conf$$.dir
24296 echo >conf$$.file
24297 if ln -s conf$$.file conf$$ 2>/dev/null; then
24298 as_ln_s='ln -s'
24299 # ... but there are two gotchas:
24300 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24301 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24302 # In both cases, we have to default to `cp -p'.
24303 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24304 as_ln_s='cp -p'
24305 elif ln conf$$.file conf$$ 2>/dev/null; then
24306 as_ln_s=ln
24307 else
24308 as_ln_s='cp -p'
24310 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24311 rmdir conf$$.dir 2>/dev/null
24313 if mkdir -p . 2>/dev/null; then
24314 as_mkdir_p=:
24315 else
24316 test -d ./-p && rmdir ./-p
24317 as_mkdir_p=false
24320 if test -x / >/dev/null 2>&1; then
24321 as_test_x='test -x'
24322 else
24323 if ls -dL / >/dev/null 2>&1; then
24324 as_ls_L_option=L
24325 else
24326 as_ls_L_option=
24328 as_test_x='
24329 eval sh -c '\''
24330 if test -d "$1"; then
24331 test -d "$1/.";
24332 else
24333 case $1 in
24334 -*)set "./$1";;
24335 esac;
24336 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24337 ???[sx]*):;;*)false;;esac;fi
24338 '\'' sh
24341 as_executable_p=$as_test_x
24343 # Sed expression to map a string onto a valid CPP name.
24344 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24346 # Sed expression to map a string onto a valid variable name.
24347 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24350 exec 6>&1
24352 # Save the log message, to keep $[0] and so on meaningful, and to
24353 # report actual input values of CONFIG_FILES etc. instead of their
24354 # values after options handling.
24355 ac_log="
24356 This file was extended by emacs $as_me 23.0.50, which was
24357 generated by GNU Autoconf 2.61. Invocation command line was
24359 CONFIG_FILES = $CONFIG_FILES
24360 CONFIG_HEADERS = $CONFIG_HEADERS
24361 CONFIG_LINKS = $CONFIG_LINKS
24362 CONFIG_COMMANDS = $CONFIG_COMMANDS
24363 $ $0 $@
24365 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24368 _ACEOF
24370 cat >>$CONFIG_STATUS <<_ACEOF
24371 # Files that config.status was made for.
24372 config_files="$ac_config_files"
24373 config_headers="$ac_config_headers"
24374 config_commands="$ac_config_commands"
24376 _ACEOF
24378 cat >>$CONFIG_STATUS <<\_ACEOF
24379 ac_cs_usage="\
24380 \`$as_me' instantiates files from templates according to the
24381 current configuration.
24383 Usage: $0 [OPTIONS] [FILE]...
24385 -h, --help print this help, then exit
24386 -V, --version print version number and configuration settings, then exit
24387 -q, --quiet do not print progress messages
24388 -d, --debug don't remove temporary files
24389 --recheck update $as_me by reconfiguring in the same conditions
24390 --file=FILE[:TEMPLATE]
24391 instantiate the configuration file FILE
24392 --header=FILE[:TEMPLATE]
24393 instantiate the configuration header FILE
24395 Configuration files:
24396 $config_files
24398 Configuration headers:
24399 $config_headers
24401 Configuration commands:
24402 $config_commands
24404 Report bugs to <bug-autoconf@gnu.org>."
24406 _ACEOF
24407 cat >>$CONFIG_STATUS <<_ACEOF
24408 ac_cs_version="\\
24409 emacs config.status 23.0.50
24410 configured by $0, generated by GNU Autoconf 2.61,
24411 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24413 Copyright (C) 2006 Free Software Foundation, Inc.
24414 This config.status script is free software; the Free Software Foundation
24415 gives unlimited permission to copy, distribute and modify it."
24417 ac_pwd='$ac_pwd'
24418 srcdir='$srcdir'
24419 INSTALL='$INSTALL'
24420 _ACEOF
24422 cat >>$CONFIG_STATUS <<\_ACEOF
24423 # If no file are specified by the user, then we need to provide default
24424 # value. By we need to know if files were specified by the user.
24425 ac_need_defaults=:
24426 while test $# != 0
24428 case $1 in
24429 --*=*)
24430 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24431 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24432 ac_shift=:
24435 ac_option=$1
24436 ac_optarg=$2
24437 ac_shift=shift
24439 esac
24441 case $ac_option in
24442 # Handling of the options.
24443 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24444 ac_cs_recheck=: ;;
24445 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24446 echo "$ac_cs_version"; exit ;;
24447 --debug | --debu | --deb | --de | --d | -d )
24448 debug=: ;;
24449 --file | --fil | --fi | --f )
24450 $ac_shift
24451 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24452 ac_need_defaults=false;;
24453 --header | --heade | --head | --hea )
24454 $ac_shift
24455 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24456 ac_need_defaults=false;;
24457 --he | --h)
24458 # Conflict between --help and --header
24459 { echo "$as_me: error: ambiguous option: $1
24460 Try \`$0 --help' for more information." >&2
24461 { (exit 1); exit 1; }; };;
24462 --help | --hel | -h )
24463 echo "$ac_cs_usage"; exit ;;
24464 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24465 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24466 ac_cs_silent=: ;;
24468 # This is an error.
24469 -*) { echo "$as_me: error: unrecognized option: $1
24470 Try \`$0 --help' for more information." >&2
24471 { (exit 1); exit 1; }; } ;;
24473 *) ac_config_targets="$ac_config_targets $1"
24474 ac_need_defaults=false ;;
24476 esac
24477 shift
24478 done
24480 ac_configure_extra_args=
24482 if $ac_cs_silent; then
24483 exec 6>/dev/null
24484 ac_configure_extra_args="$ac_configure_extra_args --silent"
24487 _ACEOF
24488 cat >>$CONFIG_STATUS <<_ACEOF
24489 if \$ac_cs_recheck; then
24490 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24491 CONFIG_SHELL=$SHELL
24492 export CONFIG_SHELL
24493 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24496 _ACEOF
24497 cat >>$CONFIG_STATUS <<\_ACEOF
24498 exec 5>>config.log
24500 echo
24501 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24502 ## Running $as_me. ##
24503 _ASBOX
24504 echo "$ac_log"
24505 } >&5
24507 _ACEOF
24508 cat >>$CONFIG_STATUS <<_ACEOF
24510 # INIT-COMMANDS
24512 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24514 _ACEOF
24516 cat >>$CONFIG_STATUS <<\_ACEOF
24518 # Handling of arguments.
24519 for ac_config_target in $ac_config_targets
24521 case $ac_config_target in
24522 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24523 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24524 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24525 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24526 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
24527 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
24528 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
24529 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
24530 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24531 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24532 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/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 MAKEINFO!$MAKEINFO$ac_delim
24661 LIBSOUND!$LIBSOUND$ac_delim
24662 PKG_CONFIG!$PKG_CONFIG$ac_delim
24663 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24664 ALSA_LIBS!$ALSA_LIBS$ac_delim
24665 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24666 SET_MAKE!$SET_MAKE$ac_delim
24667 XMKMF!$XMKMF$ac_delim
24668 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24669 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
24670 RSVG_LIBS!$RSVG_LIBS$ac_delim
24671 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24672 GTK_LIBS!$GTK_LIBS$ac_delim
24673 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
24674 DBUS_LIBS!$DBUS_LIBS$ac_delim
24675 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24676 XFT_LIBS!$XFT_LIBS$ac_delim
24677 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
24678 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
24679 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
24680 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
24681 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
24682 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
24683 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
24684 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
24685 ALLOCA!$ALLOCA$ac_delim
24686 liblockfile!$liblockfile$ac_delim
24687 LIBOBJS!$LIBOBJS$ac_delim
24688 NEED_SETGID!$NEED_SETGID$ac_delim
24689 KMEM_GROUP!$KMEM_GROUP$ac_delim
24690 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24691 GETOPT_H!$GETOPT_H$ac_delim
24692 GETOPTOBJS!$GETOPTOBJS$ac_delim
24693 version!$version$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 configuration!$configuration$ac_delim
24736 canonical!$canonical$ac_delim
24737 srcdir!$srcdir$ac_delim
24738 lispdir!$lispdir$ac_delim
24739 locallisppath!$locallisppath$ac_delim
24740 lisppath!$lisppath$ac_delim
24741 x_default_search_path!$x_default_search_path$ac_delim
24742 etcdir!$etcdir$ac_delim
24743 archlibdir!$archlibdir$ac_delim
24744 bitmapdir!$bitmapdir$ac_delim
24745 gamedir!$gamedir$ac_delim
24746 gameuser!$gameuser$ac_delim
24747 c_switch_system!$c_switch_system$ac_delim
24748 c_switch_machine!$c_switch_machine$ac_delim
24749 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24750 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24751 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24752 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24753 machfile!$machfile$ac_delim
24754 opsysfile!$opsysfile$ac_delim
24755 carbon_appdir!$carbon_appdir$ac_delim
24756 LTLIBOBJS!$LTLIBOBJS$ac_delim
24757 _ACEOF
24759 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
24760 break
24761 elif $ac_last_try; then
24762 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24763 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24764 { (exit 1); exit 1; }; }
24765 else
24766 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24768 done
24770 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24771 if test -n "$ac_eof"; then
24772 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24773 ac_eof=`expr $ac_eof + 1`
24776 cat >>$CONFIG_STATUS <<_ACEOF
24777 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24778 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24779 _ACEOF
24780 sed '
24781 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24782 s/^/s,@/; s/!/@,|#_!!_#|/
24785 s/'"$ac_delim"'$/,g/; t
24786 s/$/\\/; p
24787 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24788 ' >>$CONFIG_STATUS <conf$$subs.sed
24789 rm -f conf$$subs.sed
24790 cat >>$CONFIG_STATUS <<_ACEOF
24791 :end
24792 s/|#_!!_#|//g
24793 CEOF$ac_eof
24794 _ACEOF
24797 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24798 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24799 # trailing colons and then remove the whole line if VPATH becomes empty
24800 # (actually we leave an empty line to preserve line numbers).
24801 if test "x$srcdir" = x.; then
24802 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24803 s/:*\$(srcdir):*/:/
24804 s/:*\${srcdir}:*/:/
24805 s/:*@srcdir@:*/:/
24806 s/^\([^=]*=[ ]*\):*/\1/
24807 s/:*$//
24808 s/^[^=]*=[ ]*$//
24812 cat >>$CONFIG_STATUS <<\_ACEOF
24813 fi # test -n "$CONFIG_FILES"
24816 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24818 case $ac_tag in
24819 :[FHLC]) ac_mode=$ac_tag; continue;;
24820 esac
24821 case $ac_mode$ac_tag in
24822 :[FHL]*:*);;
24823 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24824 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24825 { (exit 1); exit 1; }; };;
24826 :[FH]-) ac_tag=-:-;;
24827 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24828 esac
24829 ac_save_IFS=$IFS
24830 IFS=:
24831 set x $ac_tag
24832 IFS=$ac_save_IFS
24833 shift
24834 ac_file=$1
24835 shift
24837 case $ac_mode in
24838 :L) ac_source=$1;;
24839 :[FH])
24840 ac_file_inputs=
24841 for ac_f
24843 case $ac_f in
24844 -) ac_f="$tmp/stdin";;
24845 *) # Look for the file first in the build tree, then in the source tree
24846 # (if the path is not absolute). The absolute path cannot be DOS-style,
24847 # because $ac_f cannot contain `:'.
24848 test -f "$ac_f" ||
24849 case $ac_f in
24850 [\\/$]*) false;;
24851 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24852 esac ||
24853 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24854 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24855 { (exit 1); exit 1; }; };;
24856 esac
24857 ac_file_inputs="$ac_file_inputs $ac_f"
24858 done
24860 # Let's still pretend it is `configure' which instantiates (i.e., don't
24861 # use $as_me), people would be surprised to read:
24862 # /* config.h. Generated by config.status. */
24863 configure_input="Generated from "`IFS=:
24864 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24865 if test x"$ac_file" != x-; then
24866 configure_input="$ac_file. $configure_input"
24867 { echo "$as_me:$LINENO: creating $ac_file" >&5
24868 echo "$as_me: creating $ac_file" >&6;}
24871 case $ac_tag in
24872 *:-:* | *:-) cat >"$tmp/stdin";;
24873 esac
24875 esac
24877 ac_dir=`$as_dirname -- "$ac_file" ||
24878 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24879 X"$ac_file" : 'X\(//\)[^/]' \| \
24880 X"$ac_file" : 'X\(//\)$' \| \
24881 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24882 echo X"$ac_file" |
24883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24884 s//\1/
24887 /^X\(\/\/\)[^/].*/{
24888 s//\1/
24891 /^X\(\/\/\)$/{
24892 s//\1/
24895 /^X\(\/\).*/{
24896 s//\1/
24899 s/.*/./; q'`
24900 { as_dir="$ac_dir"
24901 case $as_dir in #(
24902 -*) as_dir=./$as_dir;;
24903 esac
24904 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24905 as_dirs=
24906 while :; do
24907 case $as_dir in #(
24908 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24909 *) as_qdir=$as_dir;;
24910 esac
24911 as_dirs="'$as_qdir' $as_dirs"
24912 as_dir=`$as_dirname -- "$as_dir" ||
24913 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24914 X"$as_dir" : 'X\(//\)[^/]' \| \
24915 X"$as_dir" : 'X\(//\)$' \| \
24916 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24917 echo X"$as_dir" |
24918 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24919 s//\1/
24922 /^X\(\/\/\)[^/].*/{
24923 s//\1/
24926 /^X\(\/\/\)$/{
24927 s//\1/
24930 /^X\(\/\).*/{
24931 s//\1/
24934 s/.*/./; q'`
24935 test -d "$as_dir" && break
24936 done
24937 test -z "$as_dirs" || eval "mkdir $as_dirs"
24938 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24939 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24940 { (exit 1); exit 1; }; }; }
24941 ac_builddir=.
24943 case "$ac_dir" in
24944 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24946 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24947 # A ".." for each directory in $ac_dir_suffix.
24948 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24949 case $ac_top_builddir_sub in
24950 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24951 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24952 esac ;;
24953 esac
24954 ac_abs_top_builddir=$ac_pwd
24955 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24956 # for backward compatibility:
24957 ac_top_builddir=$ac_top_build_prefix
24959 case $srcdir in
24960 .) # We are building in place.
24961 ac_srcdir=.
24962 ac_top_srcdir=$ac_top_builddir_sub
24963 ac_abs_top_srcdir=$ac_pwd ;;
24964 [\\/]* | ?:[\\/]* ) # Absolute name.
24965 ac_srcdir=$srcdir$ac_dir_suffix;
24966 ac_top_srcdir=$srcdir
24967 ac_abs_top_srcdir=$srcdir ;;
24968 *) # Relative name.
24969 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24970 ac_top_srcdir=$ac_top_build_prefix$srcdir
24971 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24972 esac
24973 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24976 case $ac_mode in
24979 # CONFIG_FILE
24982 case $INSTALL in
24983 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24984 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24985 esac
24986 _ACEOF
24988 cat >>$CONFIG_STATUS <<\_ACEOF
24989 # If the template does not know about datarootdir, expand it.
24990 # FIXME: This hack should be removed a few years after 2.60.
24991 ac_datarootdir_hack=; ac_datarootdir_seen=
24993 case `sed -n '/datarootdir/ {
24997 /@datadir@/p
24998 /@docdir@/p
24999 /@infodir@/p
25000 /@localedir@/p
25001 /@mandir@/p
25002 ' $ac_file_inputs` in
25003 *datarootdir*) ac_datarootdir_seen=yes;;
25004 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25005 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25006 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25007 _ACEOF
25008 cat >>$CONFIG_STATUS <<_ACEOF
25009 ac_datarootdir_hack='
25010 s&@datadir@&$datadir&g
25011 s&@docdir@&$docdir&g
25012 s&@infodir@&$infodir&g
25013 s&@localedir@&$localedir&g
25014 s&@mandir@&$mandir&g
25015 s&\\\${datarootdir}&$datarootdir&g' ;;
25016 esac
25017 _ACEOF
25019 # Neutralize VPATH when `$srcdir' = `.'.
25020 # Shell code in configure.ac might set extrasub.
25021 # FIXME: do we really want to maintain this feature?
25022 cat >>$CONFIG_STATUS <<_ACEOF
25023 sed "$ac_vpsub
25024 $extrasub
25025 _ACEOF
25026 cat >>$CONFIG_STATUS <<\_ACEOF
25028 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25029 s&@configure_input@&$configure_input&;t t
25030 s&@top_builddir@&$ac_top_builddir_sub&;t t
25031 s&@srcdir@&$ac_srcdir&;t t
25032 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25033 s&@top_srcdir@&$ac_top_srcdir&;t t
25034 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25035 s&@builddir@&$ac_builddir&;t t
25036 s&@abs_builddir@&$ac_abs_builddir&;t t
25037 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25038 s&@INSTALL@&$ac_INSTALL&;t t
25039 $ac_datarootdir_hack
25040 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25042 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25043 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25044 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25045 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25046 which seems to be undefined. Please make sure it is defined." >&5
25047 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25048 which seems to be undefined. Please make sure it is defined." >&2;}
25050 rm -f "$tmp/stdin"
25051 case $ac_file in
25052 -) cat "$tmp/out"; rm -f "$tmp/out";;
25053 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25054 esac
25058 # CONFIG_HEADER
25060 _ACEOF
25062 # Transform confdefs.h into a sed script `conftest.defines', that
25063 # substitutes the proper values into config.h.in to produce config.h.
25064 rm -f conftest.defines conftest.tail
25065 # First, append a space to every undef/define line, to ease matching.
25066 echo 's/$/ /' >conftest.defines
25067 # Then, protect against being on the right side of a sed subst, or in
25068 # an unquoted here document, in config.status. If some macros were
25069 # called several times there might be several #defines for the same
25070 # symbol, which is useless. But do not sort them, since the last
25071 # AC_DEFINE must be honored.
25072 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25073 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25074 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25075 # PARAMS is the parameter list in the macro definition--in most cases, it's
25076 # just an empty string.
25077 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25078 ac_dB='\\)[ (].*,\\1define\\2'
25079 ac_dC=' '
25080 ac_dD=' ,'
25082 uniq confdefs.h |
25083 sed -n '
25084 t rset
25085 :rset
25086 s/^[ ]*#[ ]*define[ ][ ]*//
25087 t ok
25090 s/[\\&,]/\\&/g
25091 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25092 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25093 ' >>conftest.defines
25095 # Remove the space that was appended to ease matching.
25096 # Then replace #undef with comments. This is necessary, for
25097 # example, in the case of _POSIX_SOURCE, which is predefined and required
25098 # on some systems where configure will not decide to define it.
25099 # (The regexp can be short, since the line contains either #define or #undef.)
25100 echo 's/ $//
25101 s,^[ #]*u.*,/* & */,' >>conftest.defines
25103 # Break up conftest.defines:
25104 ac_max_sed_lines=50
25106 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25107 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25108 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25109 # et cetera.
25110 ac_in='$ac_file_inputs'
25111 ac_out='"$tmp/out1"'
25112 ac_nxt='"$tmp/out2"'
25114 while :
25116 # Write a here document:
25117 cat >>$CONFIG_STATUS <<_ACEOF
25118 # First, check the format of the line:
25119 cat >"\$tmp/defines.sed" <<\\CEOF
25120 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25121 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25123 :def
25124 _ACEOF
25125 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25126 echo 'CEOF
25127 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25128 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25129 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25130 grep . conftest.tail >/dev/null || break
25131 rm -f conftest.defines
25132 mv conftest.tail conftest.defines
25133 done
25134 rm -f conftest.defines conftest.tail
25136 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25137 cat >>$CONFIG_STATUS <<\_ACEOF
25138 if test x"$ac_file" != x-; then
25139 echo "/* $configure_input */" >"$tmp/config.h"
25140 cat "$ac_result" >>"$tmp/config.h"
25141 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25142 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25143 echo "$as_me: $ac_file is unchanged" >&6;}
25144 else
25145 rm -f $ac_file
25146 mv "$tmp/config.h" $ac_file
25148 else
25149 echo "/* $configure_input */"
25150 cat "$ac_result"
25152 rm -f "$tmp/out12"
25155 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25156 echo "$as_me: executing $ac_file commands" >&6;}
25158 esac
25161 case $ac_file$ac_mode in
25162 "default":C)
25164 ### Make the necessary directories, if they don't exist.
25165 for dir in etc lisp ; do
25166 test -d ${dir} || mkdir ${dir}
25167 done
25169 # Build src/Makefile from ${srcdir}/src/Makefile.c
25170 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25171 # This must be done after src/config.h is built, since we rely on that file.
25173 # Now get this: Some word that is part of the ${srcdir} directory name
25174 # or the ${configuration} value might, just might, happen to be an
25175 # identifier like `sun4' or `i386' or something, and be predefined by
25176 # the C preprocessor to some helpful value like 1, or maybe the empty
25177 # string. Needless to say consequent macro substitutions are less
25178 # than conducive to the makefile finding the correct directory.
25179 undefs="`echo $top_srcdir $configuration $canonical |
25180 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25181 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
25184 echo creating src/epaths.h
25185 ${MAKE-make} epaths-force
25187 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25188 # `..' to `. .' unless invoked with -traditional
25190 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
25191 CPPFLAGS="$CPPFLAGS -traditional"
25194 echo creating lib-src/Makefile
25195 ( cd lib-src
25196 rm -f junk.c junk1.c junk2.c
25197 sed -e '/start of cpp stuff/q' \
25198 < Makefile.c > junk1.c
25199 sed -e '1,/start of cpp stuff/d'\
25200 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25201 < Makefile.c > junk.c
25202 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25203 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25204 cat junk1.c junk2.c > Makefile.new
25205 rm -f junk.c junk1.c junk2.c
25206 chmod 444 Makefile.new
25207 mv -f Makefile.new Makefile
25210 echo creating src/Makefile
25211 ( cd src
25212 rm -f junk.c junk1.c junk2.c
25213 sed -e '/start of cpp stuff/q' \
25214 < Makefile.c > junk1.c
25215 sed -e '1,/start of cpp stuff/d'\
25216 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25217 < Makefile.c > junk.c
25218 if test -f ${srcdir}/admin/unidata/UnicodeData.txt; then
25219 echo creating ${srcdir}/admin/unidata/Makefile
25220 cp ${srcdir}/admin/unidata/Makefile.in ${srcdir}/admin/unidata/Makefile
25221 CPPFLAGS="$CPPFLAGS -DHAVE_UNIDATA"
25223 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25224 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25225 cat junk1.c junk2.c > Makefile.new
25226 rm -f junk.c junk1.c junk2.c
25227 chmod 444 Makefile.new
25228 mv -f Makefile.new Makefile
25231 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25232 echo creating src/.gdbinit
25233 echo source $srcdir/src/.gdbinit > src/.gdbinit
25236 # This is how we know whether to re-run configure in certain cases.
25237 touch src/config.stamp
25241 esac
25242 done # for ac_tag
25245 { (exit 0); exit 0; }
25246 _ACEOF
25247 chmod +x $CONFIG_STATUS
25248 ac_clean_files=$ac_clean_files_save
25251 # configure is writing to config.log, and then calls config.status.
25252 # config.status does its own redirection, appending to config.log.
25253 # Unfortunately, on DOS this fails, as config.log is still kept open
25254 # by configure, so config.status won't be able to write to it; its
25255 # output is simply discarded. So we exec the FD to /dev/null,
25256 # effectively closing config.log, so it can be properly (re)opened and
25257 # appended to by config.status. When coming back to configure, we
25258 # need to make the FD available again.
25259 if test "$no_create" != yes; then
25260 ac_cs_success=:
25261 ac_config_status_args=
25262 test "$silent" = yes &&
25263 ac_config_status_args="$ac_config_status_args --quiet"
25264 exec 5>/dev/null
25265 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25266 exec 5>>config.log
25267 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25268 # would make configure fail if this is the last instruction.
25269 $ac_cs_success || { (exit 1); exit 1; }