Fix merged ChangeLog dates
[emacs.git] / configure
blobf2c2110fabaacfa20f603bf93fd1211000315612
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 --disable-font-backend don't compile 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 ## Enabled by default.
2131 # Check whether --enable-font-backend was given.
2132 if test "${enable_font_backend+set}" = set; then
2133 enableval=$enable_font_backend; USE_FONT_BACKEND=$enableval
2134 else
2135 USE_FONT_BACKEND=yes
2139 # Check whether --enable-asserts was given.
2140 if test "${enable_asserts+set}" = set; then
2141 enableval=$enable_asserts; USE_XASSERTS=$enableval
2142 else
2143 USE_XASSERTS=no
2147 # Check whether --enable-maintainer-mode was given.
2148 if test "${enable_maintainer_mode+set}" = set; then
2149 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2150 else
2151 USE_MAINTAINER_MODE=no
2154 if test $USE_MAINTAINER_MODE = yes; then
2155 MAINT=
2156 else
2157 MAINT=#
2161 # Check whether --enable-locallisppath was given.
2162 if test "${enable_locallisppath+set}" = set; then
2163 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2164 locallisppath=
2165 elif test "${enableval}" != "yes"; then
2166 locallisppath=${enableval}
2171 #### Make srcdir absolute, if it isn't already. It's important to
2172 #### avoid running the path through pwd unnecessarily, since pwd can
2173 #### give you automounter prefixes, which can go away. We do all this
2174 #### so Emacs can find its files when run uninstalled.
2175 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2176 unset CDPATH
2177 case "${srcdir}" in
2178 /* ) ;;
2180 ## We may be able to use the $PWD environment variable to make this
2181 ## absolute. But sometimes PWD is inaccurate.
2182 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2183 ## but that tested only for a well-formed and valid PWD,
2184 ## it did not object when PWD was well-formed and valid but just wrong.
2185 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2186 then
2187 srcdir="$PWD"
2188 else
2189 srcdir="`(cd ${srcdir}; pwd)`"
2192 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2193 esac
2195 #### Check if the source directory already has a configured system in it.
2196 if test `pwd` != `(cd ${srcdir} && pwd)` \
2197 && test -f "${srcdir}/src/config.h" ; then
2198 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2199 as a build directory right now; it has been configured in its own
2200 right. To configure in another directory as well, you MUST
2201 use GNU make. If you do not have GNU make, then you must
2202 now do \`make distclean' in ${srcdir},
2203 and then run $0 again." >&5
2204 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2205 as a build directory right now; it has been configured in its own
2206 right. To configure in another directory as well, you MUST
2207 use GNU make. If you do not have GNU make, then you must
2208 now do \`make distclean' in ${srcdir},
2209 and then run $0 again." >&2;}
2212 #### Given the configuration name, set machfile and opsysfile to the
2213 #### names of the m/*.h and s/*.h files we should use.
2215 ### Canonicalize the configuration name.
2217 ac_aux_dir=
2218 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2219 if test -f "$ac_dir/install-sh"; then
2220 ac_aux_dir=$ac_dir
2221 ac_install_sh="$ac_aux_dir/install-sh -c"
2222 break
2223 elif test -f "$ac_dir/install.sh"; then
2224 ac_aux_dir=$ac_dir
2225 ac_install_sh="$ac_aux_dir/install.sh -c"
2226 break
2227 elif test -f "$ac_dir/shtool"; then
2228 ac_aux_dir=$ac_dir
2229 ac_install_sh="$ac_aux_dir/shtool install -c"
2230 break
2232 done
2233 if test -z "$ac_aux_dir"; then
2234 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2235 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2236 { (exit 1); exit 1; }; }
2239 # These three variables are undocumented and unsupported,
2240 # and are intended to be withdrawn in a future Autoconf release.
2241 # They can cause serious problems if a builder's source tree is in a directory
2242 # whose full name contains unusual characters.
2243 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2244 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2245 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2248 # Make sure we can run config.sub.
2249 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2250 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2251 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2252 { (exit 1); exit 1; }; }
2254 { echo "$as_me:$LINENO: checking build system type" >&5
2255 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2256 if test "${ac_cv_build+set}" = set; then
2257 echo $ECHO_N "(cached) $ECHO_C" >&6
2258 else
2259 ac_build_alias=$build_alias
2260 test "x$ac_build_alias" = x &&
2261 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2262 test "x$ac_build_alias" = x &&
2263 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2264 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2265 { (exit 1); exit 1; }; }
2266 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2267 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2268 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2269 { (exit 1); exit 1; }; }
2272 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2273 echo "${ECHO_T}$ac_cv_build" >&6; }
2274 case $ac_cv_build in
2275 *-*-*) ;;
2276 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2277 echo "$as_me: error: invalid value of canonical build" >&2;}
2278 { (exit 1); exit 1; }; };;
2279 esac
2280 build=$ac_cv_build
2281 ac_save_IFS=$IFS; IFS='-'
2282 set x $ac_cv_build
2283 shift
2284 build_cpu=$1
2285 build_vendor=$2
2286 shift; shift
2287 # Remember, the first character of IFS is used to create $*,
2288 # except with old shells:
2289 build_os=$*
2290 IFS=$ac_save_IFS
2291 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2294 { echo "$as_me:$LINENO: checking host system type" >&5
2295 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2296 if test "${ac_cv_host+set}" = set; then
2297 echo $ECHO_N "(cached) $ECHO_C" >&6
2298 else
2299 if test "x$host_alias" = x; then
2300 ac_cv_host=$ac_cv_build
2301 else
2302 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2303 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2304 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2305 { (exit 1); exit 1; }; }
2309 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2310 echo "${ECHO_T}$ac_cv_host" >&6; }
2311 case $ac_cv_host in
2312 *-*-*) ;;
2313 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2314 echo "$as_me: error: invalid value of canonical host" >&2;}
2315 { (exit 1); exit 1; }; };;
2316 esac
2317 host=$ac_cv_host
2318 ac_save_IFS=$IFS; IFS='-'
2319 set x $ac_cv_host
2320 shift
2321 host_cpu=$1
2322 host_vendor=$2
2323 shift; shift
2324 # Remember, the first character of IFS is used to create $*,
2325 # except with old shells:
2326 host_os=$*
2327 IFS=$ac_save_IFS
2328 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2331 canonical=$host
2332 configuration=${host_alias-${build_alias-$host}}
2336 ### If you add support for a new configuration, add code to this
2337 ### switch statement to recognize your configuration name and select
2338 ### the appropriate operating system and machine description files.
2340 ### You would hope that you could choose an m/*.h file pretty much
2341 ### based on the machine portion of the configuration name, and an s-
2342 ### file based on the operating system portion. However, it turns out
2343 ### that each m/*.h file is pretty manufacturer-specific - for
2344 ### example hp9000s300.h is a 68000 machine;
2345 ### mips.h, pmax.h are all MIPS
2346 ### machines. So we basically have to have a special case for each
2347 ### configuration name.
2349 ### As far as handling version numbers on operating systems is
2350 ### concerned, make sure things will fail in a fixable way. If
2351 ### /etc/MACHINES doesn't say anything about version numbers, be
2352 ### prepared to handle anything reasonably. If version numbers
2353 ### matter, be sure /etc/MACHINES says something about it.
2355 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2356 ### "System V Release 4"; he writes, "The old convention encouraged
2357 ### confusion between `system' and `release' levels'."
2359 machine='' opsys='' unported=no
2360 case "${canonical}" in
2362 ## FreeBSD ports
2363 *-*-freebsd* )
2364 opsys=freebsd
2365 case "${canonical}" in
2366 alpha*-*-freebsd*) machine=alpha ;;
2367 arm*-*-freebsd*) machine=arm ;;
2368 ia64-*-freebsd*) machine=ia64 ;;
2369 sparc64-*-freebsd*) machine=sparc ;;
2370 powerpc-*-freebsd*) machine=macppc ;;
2371 i[3456]86-*-freebsd*) machine=intel386 ;;
2372 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2373 esac
2376 ## FreeBSD kernel + glibc based userland
2377 *-*-kfreebsd*gnu* )
2378 opsys=gnu-kfreebsd
2379 case "${canonical}" in
2380 alpha*-*-kfreebsd*) machine=alpha ;;
2381 ia64-*-kfreebsd*) machine=ia64 ;;
2382 sparc64-*-kfreebsd*) machine=sparc ;;
2383 powerpc-*-kfreebsd*) machine=macppc ;;
2384 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2385 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2386 esac
2389 ## NetBSD ports
2390 *-*-netbsd* )
2391 opsys=netbsd
2392 if test -f /usr/lib/crti.o; then
2394 cat >>confdefs.h <<\_ACEOF
2395 #define HAVE_CRTIN
2396 _ACEOF
2400 case "${canonical}" in
2401 alpha*-*-netbsd*) machine=alpha ;;
2402 i[3456]86-*-netbsd*) machine=intel386 ;;
2403 m68k-*-netbsd*)
2404 # This is somewhat bogus.
2405 machine=hp9000s300 ;;
2406 mips-*-netbsd*) machine=pmax ;;
2407 mipsel-*-netbsd*) machine=pmax ;;
2408 mipseb-*-netbsd*) machine=pmax ;;
2409 powerpc-*-netbsd*) machine=macppc ;;
2410 sparc*-*-netbsd*) machine=sparc ;;
2411 vax-*-netbsd*) machine=vax ;;
2412 arm-*-netbsd*) machine=arm ;;
2413 x86_64-*-netbsd*) machine=amdx86-64 ;;
2414 hppa-*-netbsd*) machine=hp800 ;;
2415 esac
2418 ## OpenBSD ports
2419 *-*-openbsd* )
2420 opsys=openbsd
2421 case "${canonical}" in
2422 alpha*-*-openbsd*) machine=alpha ;;
2423 arm-*-openbsd*) machine=arm ;;
2424 hppa-*-openbsd*) machine=hp9000s300 ;;
2425 i386-*-openbsd*) machine=intel386 ;;
2426 m68k-*-openbsd*) machine=hp9000s300 ;;
2427 powerpc-*-openbsd*) machine=macppc ;;
2428 sparc*-*-openbsd*) machine=sparc ;;
2429 vax-*-openbsd*) machine=vax ;;
2430 x86_64-*-openbsd*) machine=amdx86-64 ;;
2431 esac
2434 ## LynxOS ports
2435 *-*-lynxos* )
2436 opsys=lynxos
2437 case "${canonical}" in
2438 i[3456]86-*-lynxos*) machine=intel386 ;;
2439 powerpc-*-lynxos*) machine=powerpc ;;
2440 esac
2443 ## BSDI ports
2444 *-*-bsdi* )
2445 opsys=bsdi
2446 case "${canonical}" in
2447 i[345]86-*-bsdi*) machine=intel386 ;;
2448 sparc-*-bsdi*) machine=sparc ;;
2449 powerpc-*-bsdi*) machine=macppc ;;
2450 esac
2451 case "${canonical}" in
2452 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2453 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2454 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2455 *-*-bsdi3* ) opsys=bsdos3 ;;
2456 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2457 esac
2460 alpha*-*-linux-gnu* )
2461 machine=alpha opsys=gnu-linux
2464 arm*-*-linux-gnu* )
2465 machine=arm opsys=gnu-linux
2468 ## Apple Darwin / Mac OS X
2469 *-apple-darwin* )
2470 case "${canonical}" in
2471 i[3456]86-* ) machine=intel386 ;;
2472 powerpc-* ) machine=powermac ;;
2473 * ) unported=yes ;;
2474 esac
2475 opsys=darwin
2476 # Define CPP as follows to make autoconf work correctly.
2477 CPP="${CC-cc} -E -no-cpp-precomp"
2478 # Use fink packages if available.
2479 if test -d /sw/include && test -d /sw/lib; then
2480 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2481 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2482 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2486 ## Cubix QBx/386
2487 i[3456]86-cubix-sysv* )
2488 machine=intel386 opsys=usg5-3
2491 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2492 machine=pmax opsys=bsd4-2
2494 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2495 machine=pmax opsys=bsd4-3
2497 mips-dec-ultrix* )
2498 machine=pmax opsys=ultrix4-3
2500 ## HP 9000 series 200 or 300
2501 m68*-hp-bsd* )
2502 machine=hp9000s300 opsys=bsd4-3
2504 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2505 m68*-hp-hpux* )
2506 case "`uname -r`" in
2507 ## Someone's system reports A.B8.05 for this.
2508 ## I wonder what other possibilities there are.
2509 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2510 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2511 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2512 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2513 *) machine=hp9000s300 opsys=hpux ;;
2514 esac
2517 ## HP 9000 series 700 and 800, running HP/UX
2518 hppa*-hp-hpux7* )
2519 machine=hp800 opsys=hpux
2521 hppa*-hp-hpux8* )
2522 machine=hp800 opsys=hpux8
2524 hppa*-hp-hpux9shr* )
2525 machine=hp800 opsys=hpux9shr
2527 hppa*-hp-hpux9* )
2528 machine=hp800 opsys=hpux9
2530 hppa*-hp-hpux10.2* )
2531 machine=hp800 opsys=hpux10-20
2533 hppa*-hp-hpux10* )
2534 machine=hp800 opsys=hpux10
2536 hppa*-hp-hpux1[1-9]* )
2537 machine=hp800 opsys=hpux11
2538 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2541 hppa*-*-linux-gnu* )
2542 machine=hp800 opsys=gnu-linux
2545 ## HP 9000 series 700 and 800, running HP/UX
2546 hppa*-hp-hpux* )
2547 ## Cross-compilation? Nah!
2548 case "`uname -r`" in
2549 ## Someone's system reports A.B8.05 for this.
2550 ## I wonder what other possibilities there are.
2551 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2552 *.08.* ) machine=hp800 opsys=hpux8 ;;
2553 *.09.* ) machine=hp800 opsys=hpux9 ;;
2554 *) machine=hp800 opsys=hpux10 ;;
2555 esac
2557 hppa*-*-nextstep* )
2558 machine=hp800 opsys=nextstep
2561 ## IBM machines
2562 i370-ibm-aix*)
2563 machine=ibm370aix opsys=usg5-3
2565 s390-*-linux-gnu* )
2566 machine=ibms390 opsys=gnu-linux
2568 s390x-*-linux-gnu* )
2569 machine=ibms390x opsys=gnu-linux
2571 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2572 machine=ibmrs6000 opsys=aix3-1
2574 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2575 machine=ibmrs6000 opsys=aix3-2-5
2577 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2578 machine=ibmrs6000 opsys=aix4-1
2580 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2581 machine=ibmrs6000 opsys=aix4-2
2583 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2584 machine=ibmrs6000 opsys=aix4-2
2586 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2587 machine=ibmrs6000 opsys=aix4-2
2589 rs6000-ibm-aix5* | powerpc-ibm-aix6* )
2590 machine=ibmrs6000 opsys=aix4-2
2592 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2593 machine=ibmrs6000 opsys=aix4
2595 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2596 machine=ibmrs6000 opsys=aix4-1
2598 rs6000-ibm-aix* | powerpc-ibm-aix* )
2599 machine=ibmrs6000 opsys=aix3-2
2602 ## Prime EXL
2603 i[3456]86-prime-sysv* )
2604 machine=i386 opsys=usg5-3
2607 ## ncr machine running svr4.3.
2608 i[3456]86-ncr-sysv4.3 )
2609 machine=ncr386 opsys=usg5-4-3
2612 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2613 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2614 i[3456]86-ncr-sysv* )
2615 machine=ncr386 opsys=usg5-4-2
2618 ## Macintosh PowerPC
2619 powerpc*-*-linux-gnu* )
2620 machine=macppc opsys=gnu-linux
2623 ## Workstations sold by MIPS
2624 ## This is not necessarily all workstations using the MIPS processor -
2625 ## Irises are produced by SGI, and DECstations by DEC.
2627 mips-mips-bsd* )
2628 machine=mips opsys=bsd4-3
2630 mips-mips-* )
2631 machine=mips opsys=usg5-2-2
2634 ## NeXT
2635 m68*-next-* | m68k-*-nextstep* )
2636 machine=m68k opsys=nextstep
2639 ## NEC EWS4800
2640 mips-nec-sysv4*)
2641 machine=ews4800 opsys=ux4800
2644 ## Siemens Nixdorf
2645 mips-siemens-sysv* | mips-sni-sysv*)
2646 machine=mips-siemens opsys=usg5-4
2647 NON_GNU_CC=/usr/ccs/bin/cc
2648 NON_GNU_CPP=/usr/ccs/lib/cpp
2651 ## Silicon Graphics machines
2652 ## Iris 4D
2653 mips-sgi-irix6.5 )
2654 machine=iris4d opsys=irix6-5
2655 # Without defining _LANGUAGE_C, things get masked out in the headers
2656 # so that, for instance, grepping for `free' in stdlib.h fails and
2657 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2658 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2659 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2662 ## Suns
2663 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2664 machine=sparc opsys=gnu-linux
2667 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2668 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2669 | rs6000-*-solaris2*)
2670 case "${canonical}" in
2671 i[3456]86-*-* ) machine=intel386 ;;
2672 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2673 powerpcle* ) machine=powerpcle ;;
2674 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2675 sparc* ) machine=sparc ;;
2676 * ) unported=yes ;;
2677 esac
2678 case "${canonical}" in
2679 *-sunos5.3* | *-solaris2.3* )
2680 opsys=sol2-3
2681 NON_GNU_CPP=/usr/ccs/lib/cpp
2683 *-sunos5.4* | *-solaris2.4* )
2684 opsys=sol2-4
2685 NON_GNU_CPP=/usr/ccs/lib/cpp
2686 RANLIB="ar -ts"
2688 *-sunos5.5* | *-solaris2.5* )
2689 opsys=sol2-5
2690 NON_GNU_CPP=/usr/ccs/lib/cpp
2691 RANLIB="ar -ts"
2693 *-sunos5.6* | *-solaris2.6* )
2694 opsys=sol2-6
2695 NON_GNU_CPP=/usr/ccs/lib/cpp
2696 RANLIB="ar -ts"
2698 *-sunos5* | *-solaris* )
2699 opsys=sol2-6
2700 emacs_check_sunpro_c=yes
2701 NON_GNU_CPP=/usr/ccs/lib/cpp
2703 * ) opsys=bsd4-2 ;;
2704 esac
2705 ## Watch out for a compiler that we know will not work.
2706 case "${canonical}" in
2707 *-solaris* | *-sunos5* )
2708 if [ "x$CC" = x/usr/ucb/cc ]; then
2709 ## /usr/ucb/cc doesn't work;
2710 ## we should find some other compiler that does work.
2711 unset CC
2714 *) ;;
2715 esac
2717 sparc-*-nextstep* )
2718 machine=sparc opsys=nextstep
2721 ## Tandem Integrity S2
2722 mips-tandem-sysv* )
2723 machine=tandem-s2 opsys=usg5-3
2726 ## Vaxen.
2727 vax-dec-* )
2728 machine=vax
2729 case "${canonical}" in
2730 *-bsd4.1* ) opsys=bsd4-1 ;;
2731 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2732 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2733 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2734 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2735 *-vms* ) opsys=vms ;;
2736 * ) unported=yes
2737 esac
2740 ## IA-64
2741 ia64*-*-linux* )
2742 machine=ia64 opsys=gnu-linux
2745 ## Intel 386 machines where we don't care about the manufacturer
2746 i[3456]86-*-* )
2747 machine=intel386
2748 case "${canonical}" in
2749 *-cygwin ) opsys=cygwin ;;
2750 *-darwin* ) opsys=darwin
2751 CPP="${CC-cc} -E -no-cpp-precomp"
2753 *-linux-gnu* ) opsys=gnu-linux ;;
2754 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2755 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2756 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2757 *-386bsd* ) opsys=386bsd ;;
2758 *-nextstep* ) opsys=nextstep ;;
2759 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2760 esac
2763 ## m68k Linux-based GNU system
2764 m68k-*-linux-gnu* )
2765 machine=m68k opsys=gnu-linux
2768 ## Mips Linux-based GNU system
2769 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2770 machine=mips opsys=gnu-linux
2773 ## UXP/DS
2774 sparc-fujitsu-sysv4* )
2775 machine=sparc opsys=uxpds
2776 NON_GNU_CPP=/usr/ccs/lib/cpp
2777 RANLIB="ar -ts"
2780 ## AMD x86-64 Linux-based GNU system
2781 x86_64-*-linux-gnu* )
2782 machine=amdx86-64 opsys=gnu-linux
2785 ## Tensilica Xtensa Linux-based GNU system
2786 xtensa*-*-linux-gnu* )
2787 machine=xtensa opsys=gnu-linux
2791 unported=yes
2793 esac
2795 ### If the code above didn't choose an operating system, just choose
2796 ### an operating system based on the configuration name. You really
2797 ### only want to use this when you have no idea what the right
2798 ### operating system is; if you know what operating systems a machine
2799 ### runs, it's cleaner to make it explicit in the case statement
2800 ### above.
2801 if test x"${opsys}" = x; then
2802 case "${canonical}" in
2803 *-gnu* ) opsys=gnu ;;
2804 *-bsd4.[01] ) opsys=bsd4-1 ;;
2805 *-bsd4.2 ) opsys=bsd4-2 ;;
2806 *-bsd4.3 ) opsys=bsd4-3 ;;
2807 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2808 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2809 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2810 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2811 *-sysv4.2uw* ) opsys=unixware ;;
2812 *-sysv5uw* ) opsys=unixware ;;
2813 *-sysv5OpenUNIX* ) opsys=unixware ;;
2814 *-sysv4.1* | *-sysvr4.1* )
2815 NON_GNU_CPP=/usr/lib/cpp
2816 opsys=usg5-4 ;;
2817 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2818 if [ x$NON_GNU_CPP = x ]; then
2819 if [ -f /usr/ccs/lib/cpp ]; then
2820 NON_GNU_CPP=/usr/ccs/lib/cpp
2821 else
2822 NON_GNU_CPP=/lib/cpp
2825 opsys=usg5-4-2 ;;
2826 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2828 unported=yes
2830 esac
2833 ### Tests for sytems that we beleive are obsolete and should be desupported.
2835 case "${machine}" in
2836 pmax | hp9000s300 | ibm370aix | ncr386 | ews4800 | mips-siemens | powerpcle | tandem-s2 )
2837 echo "The system that you are configuring on: ${canonical} is considered to be obsolete"
2838 echo "and it is planned to be desupported in the next version of Emacs"
2839 echo "Please email emacs-devel@gnu.org as soon as possible if this system is still in use."
2840 echo "The code is still functional, but you need to edit the 'configure' script and remove the"
2841 echo "exit 33 line. After that you can run configure again and 'complete' the build."
2842 exit 33
2844 esac
2846 case "${opsys}" in
2847 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 )
2848 echo "The system that you are configuring on: ${canonical} is considered to be obsolete"
2849 echo "and it is planned to be desupported in the next version of Emacs"
2850 echo "Please email emacs-devel@gnu.org as soon as possible if this system is still in use."
2851 echo "The code is still functional, but you need to edit the 'configure' script and remove the"
2852 echo "'exit 44' line. After that you can run 'configure' again and complete the build."
2853 exit 44
2855 esac
2859 if test $unported = yes; then
2860 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2861 Check \`etc/MACHINES' for recognized configuration names." >&5
2862 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2863 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2864 { (exit 1); exit 1; }; }
2867 machfile="m/${machine}.h"
2868 opsysfile="s/${opsys}.h"
2871 #### Choose a compiler.
2872 test -n "$CC" && cc_specified=yes
2874 # Save the value of CFLAGS that the user specified.
2875 SPECIFIED_CFLAGS="$CFLAGS"
2877 ac_ext=c
2878 ac_cpp='$CPP $CPPFLAGS'
2879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2882 if test -n "$ac_tool_prefix"; then
2883 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2884 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2885 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2887 if test "${ac_cv_prog_CC+set}" = set; then
2888 echo $ECHO_N "(cached) $ECHO_C" >&6
2889 else
2890 if test -n "$CC"; then
2891 ac_cv_prog_CC="$CC" # Let the user override the test.
2892 else
2893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2894 for as_dir in $PATH
2896 IFS=$as_save_IFS
2897 test -z "$as_dir" && as_dir=.
2898 for ac_exec_ext in '' $ac_executable_extensions; do
2899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2900 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2902 break 2
2904 done
2905 done
2906 IFS=$as_save_IFS
2910 CC=$ac_cv_prog_CC
2911 if test -n "$CC"; then
2912 { echo "$as_me:$LINENO: result: $CC" >&5
2913 echo "${ECHO_T}$CC" >&6; }
2914 else
2915 { echo "$as_me:$LINENO: result: no" >&5
2916 echo "${ECHO_T}no" >&6; }
2921 if test -z "$ac_cv_prog_CC"; then
2922 ac_ct_CC=$CC
2923 # Extract the first word of "gcc", so it can be a program name with args.
2924 set dummy gcc; ac_word=$2
2925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2927 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2928 echo $ECHO_N "(cached) $ECHO_C" >&6
2929 else
2930 if test -n "$ac_ct_CC"; then
2931 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2932 else
2933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934 for as_dir in $PATH
2936 IFS=$as_save_IFS
2937 test -z "$as_dir" && as_dir=.
2938 for ac_exec_ext in '' $ac_executable_extensions; do
2939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2940 ac_cv_prog_ac_ct_CC="gcc"
2941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2942 break 2
2944 done
2945 done
2946 IFS=$as_save_IFS
2950 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2951 if test -n "$ac_ct_CC"; then
2952 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2953 echo "${ECHO_T}$ac_ct_CC" >&6; }
2954 else
2955 { echo "$as_me:$LINENO: result: no" >&5
2956 echo "${ECHO_T}no" >&6; }
2959 if test "x$ac_ct_CC" = x; then
2960 CC=""
2961 else
2962 case $cross_compiling:$ac_tool_warned in
2963 yes:)
2964 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2965 whose name does not start with the host triplet. If you think this
2966 configuration is useful to you, please write to autoconf@gnu.org." >&5
2967 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2968 whose name does not start with the host triplet. If you think this
2969 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2970 ac_tool_warned=yes ;;
2971 esac
2972 CC=$ac_ct_CC
2974 else
2975 CC="$ac_cv_prog_CC"
2978 if test -z "$CC"; then
2979 if test -n "$ac_tool_prefix"; then
2980 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2981 set dummy ${ac_tool_prefix}cc; ac_word=$2
2982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2984 if test "${ac_cv_prog_CC+set}" = set; then
2985 echo $ECHO_N "(cached) $ECHO_C" >&6
2986 else
2987 if test -n "$CC"; then
2988 ac_cv_prog_CC="$CC" # Let the user override the test.
2989 else
2990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2991 for as_dir in $PATH
2993 IFS=$as_save_IFS
2994 test -z "$as_dir" && as_dir=.
2995 for ac_exec_ext in '' $ac_executable_extensions; do
2996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2997 ac_cv_prog_CC="${ac_tool_prefix}cc"
2998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2999 break 2
3001 done
3002 done
3003 IFS=$as_save_IFS
3007 CC=$ac_cv_prog_CC
3008 if test -n "$CC"; then
3009 { echo "$as_me:$LINENO: result: $CC" >&5
3010 echo "${ECHO_T}$CC" >&6; }
3011 else
3012 { echo "$as_me:$LINENO: result: no" >&5
3013 echo "${ECHO_T}no" >&6; }
3019 if test -z "$CC"; then
3020 # Extract the first word of "cc", so it can be a program name with args.
3021 set dummy cc; ac_word=$2
3022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3024 if test "${ac_cv_prog_CC+set}" = set; then
3025 echo $ECHO_N "(cached) $ECHO_C" >&6
3026 else
3027 if test -n "$CC"; then
3028 ac_cv_prog_CC="$CC" # Let the user override the test.
3029 else
3030 ac_prog_rejected=no
3031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3032 for as_dir in $PATH
3034 IFS=$as_save_IFS
3035 test -z "$as_dir" && as_dir=.
3036 for ac_exec_ext in '' $ac_executable_extensions; do
3037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3038 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3039 ac_prog_rejected=yes
3040 continue
3042 ac_cv_prog_CC="cc"
3043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3044 break 2
3046 done
3047 done
3048 IFS=$as_save_IFS
3050 if test $ac_prog_rejected = yes; then
3051 # We found a bogon in the path, so make sure we never use it.
3052 set dummy $ac_cv_prog_CC
3053 shift
3054 if test $# != 0; then
3055 # We chose a different compiler from the bogus one.
3056 # However, it has the same basename, so the bogon will be chosen
3057 # first if we set CC to just the basename; use the full file name.
3058 shift
3059 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3064 CC=$ac_cv_prog_CC
3065 if test -n "$CC"; then
3066 { echo "$as_me:$LINENO: result: $CC" >&5
3067 echo "${ECHO_T}$CC" >&6; }
3068 else
3069 { echo "$as_me:$LINENO: result: no" >&5
3070 echo "${ECHO_T}no" >&6; }
3075 if test -z "$CC"; then
3076 if test -n "$ac_tool_prefix"; then
3077 for ac_prog in cl.exe
3079 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3080 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3081 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3083 if test "${ac_cv_prog_CC+set}" = set; then
3084 echo $ECHO_N "(cached) $ECHO_C" >&6
3085 else
3086 if test -n "$CC"; then
3087 ac_cv_prog_CC="$CC" # Let the user override the test.
3088 else
3089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090 for as_dir in $PATH
3092 IFS=$as_save_IFS
3093 test -z "$as_dir" && as_dir=.
3094 for ac_exec_ext in '' $ac_executable_extensions; do
3095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3096 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3098 break 2
3100 done
3101 done
3102 IFS=$as_save_IFS
3106 CC=$ac_cv_prog_CC
3107 if test -n "$CC"; then
3108 { echo "$as_me:$LINENO: result: $CC" >&5
3109 echo "${ECHO_T}$CC" >&6; }
3110 else
3111 { echo "$as_me:$LINENO: result: no" >&5
3112 echo "${ECHO_T}no" >&6; }
3116 test -n "$CC" && break
3117 done
3119 if test -z "$CC"; then
3120 ac_ct_CC=$CC
3121 for ac_prog in cl.exe
3123 # Extract the first word of "$ac_prog", so it can be a program name with args.
3124 set dummy $ac_prog; ac_word=$2
3125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3127 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3128 echo $ECHO_N "(cached) $ECHO_C" >&6
3129 else
3130 if test -n "$ac_ct_CC"; then
3131 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3132 else
3133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3134 for as_dir in $PATH
3136 IFS=$as_save_IFS
3137 test -z "$as_dir" && as_dir=.
3138 for ac_exec_ext in '' $ac_executable_extensions; do
3139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3140 ac_cv_prog_ac_ct_CC="$ac_prog"
3141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3142 break 2
3144 done
3145 done
3146 IFS=$as_save_IFS
3150 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3151 if test -n "$ac_ct_CC"; then
3152 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3153 echo "${ECHO_T}$ac_ct_CC" >&6; }
3154 else
3155 { echo "$as_me:$LINENO: result: no" >&5
3156 echo "${ECHO_T}no" >&6; }
3160 test -n "$ac_ct_CC" && break
3161 done
3163 if test "x$ac_ct_CC" = x; then
3164 CC=""
3165 else
3166 case $cross_compiling:$ac_tool_warned in
3167 yes:)
3168 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3169 whose name does not start with the host triplet. If you think this
3170 configuration is useful to you, please write to autoconf@gnu.org." >&5
3171 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3172 whose name does not start with the host triplet. If you think this
3173 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3174 ac_tool_warned=yes ;;
3175 esac
3176 CC=$ac_ct_CC
3183 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3184 See \`config.log' for more details." >&5
3185 echo "$as_me: error: no acceptable C compiler found in \$PATH
3186 See \`config.log' for more details." >&2;}
3187 { (exit 1); exit 1; }; }
3189 # Provide some information about the compiler.
3190 echo "$as_me:$LINENO: checking for C compiler version" >&5
3191 ac_compiler=`set X $ac_compile; echo $2`
3192 { (ac_try="$ac_compiler --version >&5"
3193 case "(($ac_try" in
3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3196 esac
3197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3198 (eval "$ac_compiler --version >&5") 2>&5
3199 ac_status=$?
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); }
3202 { (ac_try="$ac_compiler -v >&5"
3203 case "(($ac_try" in
3204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3205 *) ac_try_echo=$ac_try;;
3206 esac
3207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3208 (eval "$ac_compiler -v >&5") 2>&5
3209 ac_status=$?
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); }
3212 { (ac_try="$ac_compiler -V >&5"
3213 case "(($ac_try" in
3214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3215 *) ac_try_echo=$ac_try;;
3216 esac
3217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3218 (eval "$ac_compiler -V >&5") 2>&5
3219 ac_status=$?
3220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221 (exit $ac_status); }
3223 cat >conftest.$ac_ext <<_ACEOF
3224 /* confdefs.h. */
3225 _ACEOF
3226 cat confdefs.h >>conftest.$ac_ext
3227 cat >>conftest.$ac_ext <<_ACEOF
3228 /* end confdefs.h. */
3231 main ()
3235 return 0;
3237 _ACEOF
3238 ac_clean_files_save=$ac_clean_files
3239 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3240 # Try to create an executable without -o first, disregard a.out.
3241 # It will help us diagnose broken compilers, and finding out an intuition
3242 # of exeext.
3243 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3244 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3245 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3247 # List of possible output files, starting from the most likely.
3248 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3249 # only as a last resort. b.out is created by i960 compilers.
3250 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3252 # The IRIX 6 linker writes into existing files which may not be
3253 # executable, retaining their permissions. Remove them first so a
3254 # subsequent execution test works.
3255 ac_rmfiles=
3256 for ac_file in $ac_files
3258 case $ac_file in
3259 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3260 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3261 esac
3262 done
3263 rm -f $ac_rmfiles
3265 if { (ac_try="$ac_link_default"
3266 case "(($ac_try" in
3267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268 *) ac_try_echo=$ac_try;;
3269 esac
3270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3271 (eval "$ac_link_default") 2>&5
3272 ac_status=$?
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); }; then
3275 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3276 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3277 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3278 # so that the user can short-circuit this test for compilers unknown to
3279 # Autoconf.
3280 for ac_file in $ac_files ''
3282 test -f "$ac_file" || continue
3283 case $ac_file in
3284 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3286 [ab].out )
3287 # We found the default executable, but exeext='' is most
3288 # certainly right.
3289 break;;
3290 *.* )
3291 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3292 then :; else
3293 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3295 # We set ac_cv_exeext here because the later test for it is not
3296 # safe: cross compilers may not add the suffix if given an `-o'
3297 # argument, so we may need to know it at that point already.
3298 # Even if this section looks crufty: it has the advantage of
3299 # actually working.
3300 break;;
3302 break;;
3303 esac
3304 done
3305 test "$ac_cv_exeext" = no && ac_cv_exeext=
3307 else
3308 ac_file=''
3311 { echo "$as_me:$LINENO: result: $ac_file" >&5
3312 echo "${ECHO_T}$ac_file" >&6; }
3313 if test -z "$ac_file"; then
3314 echo "$as_me: failed program was:" >&5
3315 sed 's/^/| /' conftest.$ac_ext >&5
3317 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3318 See \`config.log' for more details." >&5
3319 echo "$as_me: error: C compiler cannot create executables
3320 See \`config.log' for more details." >&2;}
3321 { (exit 77); exit 77; }; }
3324 ac_exeext=$ac_cv_exeext
3326 # Check that the compiler produces executables we can run. If not, either
3327 # the compiler is broken, or we cross compile.
3328 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3329 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3330 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3331 # If not cross compiling, check that we can run a simple program.
3332 if test "$cross_compiling" != yes; then
3333 if { ac_try='./$ac_file'
3334 { (case "(($ac_try" in
3335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3336 *) ac_try_echo=$ac_try;;
3337 esac
3338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3339 (eval "$ac_try") 2>&5
3340 ac_status=$?
3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); }; }; then
3343 cross_compiling=no
3344 else
3345 if test "$cross_compiling" = maybe; then
3346 cross_compiling=yes
3347 else
3348 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3349 If you meant to cross compile, use \`--host'.
3350 See \`config.log' for more details." >&5
3351 echo "$as_me: error: cannot run C compiled programs.
3352 If you meant to cross compile, use \`--host'.
3353 See \`config.log' for more details." >&2;}
3354 { (exit 1); exit 1; }; }
3358 { echo "$as_me:$LINENO: result: yes" >&5
3359 echo "${ECHO_T}yes" >&6; }
3361 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3362 ac_clean_files=$ac_clean_files_save
3363 # Check that the compiler produces executables we can run. If not, either
3364 # the compiler is broken, or we cross compile.
3365 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3366 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3367 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3368 echo "${ECHO_T}$cross_compiling" >&6; }
3370 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3371 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3372 if { (ac_try="$ac_link"
3373 case "(($ac_try" in
3374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375 *) ac_try_echo=$ac_try;;
3376 esac
3377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3378 (eval "$ac_link") 2>&5
3379 ac_status=$?
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); }; then
3382 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3383 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3384 # work properly (i.e., refer to `conftest.exe'), while it won't with
3385 # `rm'.
3386 for ac_file in conftest.exe conftest conftest.*; do
3387 test -f "$ac_file" || continue
3388 case $ac_file in
3389 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3390 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3391 break;;
3392 * ) break;;
3393 esac
3394 done
3395 else
3396 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3397 See \`config.log' for more details." >&5
3398 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3399 See \`config.log' for more details." >&2;}
3400 { (exit 1); exit 1; }; }
3403 rm -f conftest$ac_cv_exeext
3404 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3405 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3407 rm -f conftest.$ac_ext
3408 EXEEXT=$ac_cv_exeext
3409 ac_exeext=$EXEEXT
3410 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3411 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3412 if test "${ac_cv_objext+set}" = set; then
3413 echo $ECHO_N "(cached) $ECHO_C" >&6
3414 else
3415 cat >conftest.$ac_ext <<_ACEOF
3416 /* confdefs.h. */
3417 _ACEOF
3418 cat confdefs.h >>conftest.$ac_ext
3419 cat >>conftest.$ac_ext <<_ACEOF
3420 /* end confdefs.h. */
3423 main ()
3427 return 0;
3429 _ACEOF
3430 rm -f conftest.o conftest.obj
3431 if { (ac_try="$ac_compile"
3432 case "(($ac_try" in
3433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434 *) ac_try_echo=$ac_try;;
3435 esac
3436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3437 (eval "$ac_compile") 2>&5
3438 ac_status=$?
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); }; then
3441 for ac_file in conftest.o conftest.obj conftest.*; do
3442 test -f "$ac_file" || continue;
3443 case $ac_file in
3444 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3445 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3446 break;;
3447 esac
3448 done
3449 else
3450 echo "$as_me: failed program was:" >&5
3451 sed 's/^/| /' conftest.$ac_ext >&5
3453 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3454 See \`config.log' for more details." >&5
3455 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3456 See \`config.log' for more details." >&2;}
3457 { (exit 1); exit 1; }; }
3460 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3462 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3463 echo "${ECHO_T}$ac_cv_objext" >&6; }
3464 OBJEXT=$ac_cv_objext
3465 ac_objext=$OBJEXT
3466 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3467 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3468 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3469 echo $ECHO_N "(cached) $ECHO_C" >&6
3470 else
3471 cat >conftest.$ac_ext <<_ACEOF
3472 /* confdefs.h. */
3473 _ACEOF
3474 cat confdefs.h >>conftest.$ac_ext
3475 cat >>conftest.$ac_ext <<_ACEOF
3476 /* end confdefs.h. */
3479 main ()
3481 #ifndef __GNUC__
3482 choke me
3483 #endif
3486 return 0;
3488 _ACEOF
3489 rm -f conftest.$ac_objext
3490 if { (ac_try="$ac_compile"
3491 case "(($ac_try" in
3492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493 *) ac_try_echo=$ac_try;;
3494 esac
3495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3496 (eval "$ac_compile") 2>conftest.er1
3497 ac_status=$?
3498 grep -v '^ *+' conftest.er1 >conftest.err
3499 rm -f conftest.er1
3500 cat conftest.err >&5
3501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502 (exit $ac_status); } && {
3503 test -z "$ac_c_werror_flag" ||
3504 test ! -s conftest.err
3505 } && test -s conftest.$ac_objext; then
3506 ac_compiler_gnu=yes
3507 else
3508 echo "$as_me: failed program was:" >&5
3509 sed 's/^/| /' conftest.$ac_ext >&5
3511 ac_compiler_gnu=no
3514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3515 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3518 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3519 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3520 GCC=`test $ac_compiler_gnu = yes && echo yes`
3521 ac_test_CFLAGS=${CFLAGS+set}
3522 ac_save_CFLAGS=$CFLAGS
3523 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3524 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3525 if test "${ac_cv_prog_cc_g+set}" = set; then
3526 echo $ECHO_N "(cached) $ECHO_C" >&6
3527 else
3528 ac_save_c_werror_flag=$ac_c_werror_flag
3529 ac_c_werror_flag=yes
3530 ac_cv_prog_cc_g=no
3531 CFLAGS="-g"
3532 cat >conftest.$ac_ext <<_ACEOF
3533 /* confdefs.h. */
3534 _ACEOF
3535 cat confdefs.h >>conftest.$ac_ext
3536 cat >>conftest.$ac_ext <<_ACEOF
3537 /* end confdefs.h. */
3540 main ()
3544 return 0;
3546 _ACEOF
3547 rm -f conftest.$ac_objext
3548 if { (ac_try="$ac_compile"
3549 case "(($ac_try" in
3550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3551 *) ac_try_echo=$ac_try;;
3552 esac
3553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3554 (eval "$ac_compile") 2>conftest.er1
3555 ac_status=$?
3556 grep -v '^ *+' conftest.er1 >conftest.err
3557 rm -f conftest.er1
3558 cat conftest.err >&5
3559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560 (exit $ac_status); } && {
3561 test -z "$ac_c_werror_flag" ||
3562 test ! -s conftest.err
3563 } && test -s conftest.$ac_objext; then
3564 ac_cv_prog_cc_g=yes
3565 else
3566 echo "$as_me: failed program was:" >&5
3567 sed 's/^/| /' conftest.$ac_ext >&5
3569 CFLAGS=""
3570 cat >conftest.$ac_ext <<_ACEOF
3571 /* confdefs.h. */
3572 _ACEOF
3573 cat confdefs.h >>conftest.$ac_ext
3574 cat >>conftest.$ac_ext <<_ACEOF
3575 /* end confdefs.h. */
3578 main ()
3582 return 0;
3584 _ACEOF
3585 rm -f conftest.$ac_objext
3586 if { (ac_try="$ac_compile"
3587 case "(($ac_try" in
3588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589 *) ac_try_echo=$ac_try;;
3590 esac
3591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3592 (eval "$ac_compile") 2>conftest.er1
3593 ac_status=$?
3594 grep -v '^ *+' conftest.er1 >conftest.err
3595 rm -f conftest.er1
3596 cat conftest.err >&5
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); } && {
3599 test -z "$ac_c_werror_flag" ||
3600 test ! -s conftest.err
3601 } && test -s conftest.$ac_objext; then
3603 else
3604 echo "$as_me: failed program was:" >&5
3605 sed 's/^/| /' conftest.$ac_ext >&5
3607 ac_c_werror_flag=$ac_save_c_werror_flag
3608 CFLAGS="-g"
3609 cat >conftest.$ac_ext <<_ACEOF
3610 /* confdefs.h. */
3611 _ACEOF
3612 cat confdefs.h >>conftest.$ac_ext
3613 cat >>conftest.$ac_ext <<_ACEOF
3614 /* end confdefs.h. */
3617 main ()
3621 return 0;
3623 _ACEOF
3624 rm -f conftest.$ac_objext
3625 if { (ac_try="$ac_compile"
3626 case "(($ac_try" in
3627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3628 *) ac_try_echo=$ac_try;;
3629 esac
3630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3631 (eval "$ac_compile") 2>conftest.er1
3632 ac_status=$?
3633 grep -v '^ *+' conftest.er1 >conftest.err
3634 rm -f conftest.er1
3635 cat conftest.err >&5
3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 (exit $ac_status); } && {
3638 test -z "$ac_c_werror_flag" ||
3639 test ! -s conftest.err
3640 } && test -s conftest.$ac_objext; then
3641 ac_cv_prog_cc_g=yes
3642 else
3643 echo "$as_me: failed program was:" >&5
3644 sed 's/^/| /' conftest.$ac_ext >&5
3649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3656 ac_c_werror_flag=$ac_save_c_werror_flag
3658 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3659 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3660 if test "$ac_test_CFLAGS" = set; then
3661 CFLAGS=$ac_save_CFLAGS
3662 elif test $ac_cv_prog_cc_g = yes; then
3663 if test "$GCC" = yes; then
3664 CFLAGS="-g -O2"
3665 else
3666 CFLAGS="-g"
3668 else
3669 if test "$GCC" = yes; then
3670 CFLAGS="-O2"
3671 else
3672 CFLAGS=
3675 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3676 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3677 if test "${ac_cv_prog_cc_c89+set}" = set; then
3678 echo $ECHO_N "(cached) $ECHO_C" >&6
3679 else
3680 ac_cv_prog_cc_c89=no
3681 ac_save_CC=$CC
3682 cat >conftest.$ac_ext <<_ACEOF
3683 /* confdefs.h. */
3684 _ACEOF
3685 cat confdefs.h >>conftest.$ac_ext
3686 cat >>conftest.$ac_ext <<_ACEOF
3687 /* end confdefs.h. */
3688 #include <stdarg.h>
3689 #include <stdio.h>
3690 #include <sys/types.h>
3691 #include <sys/stat.h>
3692 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3693 struct buf { int x; };
3694 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3695 static char *e (p, i)
3696 char **p;
3697 int i;
3699 return p[i];
3701 static char *f (char * (*g) (char **, int), char **p, ...)
3703 char *s;
3704 va_list v;
3705 va_start (v,p);
3706 s = g (p, va_arg (v,int));
3707 va_end (v);
3708 return s;
3711 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3712 function prototypes and stuff, but not '\xHH' hex character constants.
3713 These don't provoke an error unfortunately, instead are silently treated
3714 as 'x'. The following induces an error, until -std is added to get
3715 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3716 array size at least. It's necessary to write '\x00'==0 to get something
3717 that's true only with -std. */
3718 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3720 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3721 inside strings and character constants. */
3722 #define FOO(x) 'x'
3723 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3725 int test (int i, double x);
3726 struct s1 {int (*f) (int a);};
3727 struct s2 {int (*f) (double a);};
3728 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3729 int argc;
3730 char **argv;
3732 main ()
3734 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3736 return 0;
3738 _ACEOF
3739 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3740 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3742 CC="$ac_save_CC $ac_arg"
3743 rm -f conftest.$ac_objext
3744 if { (ac_try="$ac_compile"
3745 case "(($ac_try" in
3746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3747 *) ac_try_echo=$ac_try;;
3748 esac
3749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3750 (eval "$ac_compile") 2>conftest.er1
3751 ac_status=$?
3752 grep -v '^ *+' conftest.er1 >conftest.err
3753 rm -f conftest.er1
3754 cat conftest.err >&5
3755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756 (exit $ac_status); } && {
3757 test -z "$ac_c_werror_flag" ||
3758 test ! -s conftest.err
3759 } && test -s conftest.$ac_objext; then
3760 ac_cv_prog_cc_c89=$ac_arg
3761 else
3762 echo "$as_me: failed program was:" >&5
3763 sed 's/^/| /' conftest.$ac_ext >&5
3768 rm -f core conftest.err conftest.$ac_objext
3769 test "x$ac_cv_prog_cc_c89" != "xno" && break
3770 done
3771 rm -f conftest.$ac_ext
3772 CC=$ac_save_CC
3775 # AC_CACHE_VAL
3776 case "x$ac_cv_prog_cc_c89" in
3778 { echo "$as_me:$LINENO: result: none needed" >&5
3779 echo "${ECHO_T}none needed" >&6; } ;;
3780 xno)
3781 { echo "$as_me:$LINENO: result: unsupported" >&5
3782 echo "${ECHO_T}unsupported" >&6; } ;;
3784 CC="$CC $ac_cv_prog_cc_c89"
3785 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3786 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3787 esac
3790 ac_ext=c
3791 ac_cpp='$CPP $CPPFLAGS'
3792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3797 # On Suns, sometimes $CPP names a directory.
3798 if test -n "$CPP" && test -d "$CPP"; then
3799 CPP=
3802 ## If not using gcc, and on Solaris, and no CPP specified, see if
3803 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3804 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3805 test x"$CPP" = x; then
3806 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3807 echo $ECHO_N "checking whether we are using a Sun C compiler... $ECHO_C" >&6; }
3809 if test "${emacs_cv_sunpro_c+set}" = set; then
3810 echo $ECHO_N "(cached) $ECHO_C" >&6
3811 else
3812 cat >conftest.$ac_ext <<_ACEOF
3813 /* confdefs.h. */
3814 _ACEOF
3815 cat confdefs.h >>conftest.$ac_ext
3816 cat >>conftest.$ac_ext <<_ACEOF
3817 /* end confdefs.h. */
3820 main ()
3822 #ifndef __SUNPRO_C
3823 fail;
3824 #endif
3827 return 0;
3829 _ACEOF
3830 rm -f conftest.$ac_objext conftest$ac_exeext
3831 if { (ac_try="$ac_link"
3832 case "(($ac_try" in
3833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3834 *) ac_try_echo=$ac_try;;
3835 esac
3836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3837 (eval "$ac_link") 2>conftest.er1
3838 ac_status=$?
3839 grep -v '^ *+' conftest.er1 >conftest.err
3840 rm -f conftest.er1
3841 cat conftest.err >&5
3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843 (exit $ac_status); } && {
3844 test -z "$ac_c_werror_flag" ||
3845 test ! -s conftest.err
3846 } && test -s conftest$ac_exeext &&
3847 $as_test_x conftest$ac_exeext; then
3848 emacs_cv_sunpro_c=yes
3849 else
3850 echo "$as_me: failed program was:" >&5
3851 sed 's/^/| /' conftest.$ac_ext >&5
3853 emacs_cv_sunpro_c=no
3856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3857 conftest$ac_exeext conftest.$ac_ext
3860 { echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
3861 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3863 if test x"$emacs_cv_sunpro_c" = xyes; then
3864 NON_GNU_CPP="$CC -E -Xs"
3868 #### Some systems specify a CPP to use unless we are using GCC.
3869 #### Now that we know whether we are using GCC, we can decide whether
3870 #### to use that one.
3871 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3872 then
3873 CPP="$NON_GNU_CPP"
3876 #### Some systems specify a CC to use unless we are using GCC.
3877 #### Now that we know whether we are using GCC, we can decide whether
3878 #### to use that one.
3879 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3880 test x$cc_specified != xyes
3881 then
3882 CC="$NON_GNU_CC"
3885 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3886 then
3887 CC="$CC $GCC_TEST_OPTIONS"
3890 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3891 then
3892 CC="$CC $NON_GCC_TEST_OPTIONS"
3895 ac_ext=c
3896 ac_cpp='$CPP $CPPFLAGS'
3897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3900 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3901 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3902 # On Suns, sometimes $CPP names a directory.
3903 if test -n "$CPP" && test -d "$CPP"; then
3904 CPP=
3906 if test -z "$CPP"; then
3907 if test "${ac_cv_prog_CPP+set}" = set; then
3908 echo $ECHO_N "(cached) $ECHO_C" >&6
3909 else
3910 # Double quotes because CPP needs to be expanded
3911 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3913 ac_preproc_ok=false
3914 for ac_c_preproc_warn_flag in '' yes
3916 # Use a header file that comes with gcc, so configuring glibc
3917 # with a fresh cross-compiler works.
3918 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3919 # <limits.h> exists even on freestanding compilers.
3920 # On the NeXT, cc -E runs the code through the compiler's parser,
3921 # not just through cpp. "Syntax error" is here to catch this case.
3922 cat >conftest.$ac_ext <<_ACEOF
3923 /* confdefs.h. */
3924 _ACEOF
3925 cat confdefs.h >>conftest.$ac_ext
3926 cat >>conftest.$ac_ext <<_ACEOF
3927 /* end confdefs.h. */
3928 #ifdef __STDC__
3929 # include <limits.h>
3930 #else
3931 # include <assert.h>
3932 #endif
3933 Syntax error
3934 _ACEOF
3935 if { (ac_try="$ac_cpp conftest.$ac_ext"
3936 case "(($ac_try" in
3937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3938 *) ac_try_echo=$ac_try;;
3939 esac
3940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3941 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3942 ac_status=$?
3943 grep -v '^ *+' conftest.er1 >conftest.err
3944 rm -f conftest.er1
3945 cat conftest.err >&5
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); } >/dev/null && {
3948 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3949 test ! -s conftest.err
3950 }; then
3952 else
3953 echo "$as_me: failed program was:" >&5
3954 sed 's/^/| /' conftest.$ac_ext >&5
3956 # Broken: fails on valid input.
3957 continue
3960 rm -f conftest.err conftest.$ac_ext
3962 # OK, works on sane cases. Now check whether nonexistent headers
3963 # can be detected and how.
3964 cat >conftest.$ac_ext <<_ACEOF
3965 /* confdefs.h. */
3966 _ACEOF
3967 cat confdefs.h >>conftest.$ac_ext
3968 cat >>conftest.$ac_ext <<_ACEOF
3969 /* end confdefs.h. */
3970 #include <ac_nonexistent.h>
3971 _ACEOF
3972 if { (ac_try="$ac_cpp conftest.$ac_ext"
3973 case "(($ac_try" in
3974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3975 *) ac_try_echo=$ac_try;;
3976 esac
3977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3978 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3979 ac_status=$?
3980 grep -v '^ *+' conftest.er1 >conftest.err
3981 rm -f conftest.er1
3982 cat conftest.err >&5
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); } >/dev/null && {
3985 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3986 test ! -s conftest.err
3987 }; then
3988 # Broken: success on invalid input.
3989 continue
3990 else
3991 echo "$as_me: failed program was:" >&5
3992 sed 's/^/| /' conftest.$ac_ext >&5
3994 # Passes both tests.
3995 ac_preproc_ok=:
3996 break
3999 rm -f conftest.err conftest.$ac_ext
4001 done
4002 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4003 rm -f conftest.err conftest.$ac_ext
4004 if $ac_preproc_ok; then
4005 break
4008 done
4009 ac_cv_prog_CPP=$CPP
4012 CPP=$ac_cv_prog_CPP
4013 else
4014 ac_cv_prog_CPP=$CPP
4016 { echo "$as_me:$LINENO: result: $CPP" >&5
4017 echo "${ECHO_T}$CPP" >&6; }
4018 ac_preproc_ok=false
4019 for ac_c_preproc_warn_flag in '' yes
4021 # Use a header file that comes with gcc, so configuring glibc
4022 # with a fresh cross-compiler works.
4023 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4024 # <limits.h> exists even on freestanding compilers.
4025 # On the NeXT, cc -E runs the code through the compiler's parser,
4026 # not just through cpp. "Syntax error" is here to catch this case.
4027 cat >conftest.$ac_ext <<_ACEOF
4028 /* confdefs.h. */
4029 _ACEOF
4030 cat confdefs.h >>conftest.$ac_ext
4031 cat >>conftest.$ac_ext <<_ACEOF
4032 /* end confdefs.h. */
4033 #ifdef __STDC__
4034 # include <limits.h>
4035 #else
4036 # include <assert.h>
4037 #endif
4038 Syntax error
4039 _ACEOF
4040 if { (ac_try="$ac_cpp conftest.$ac_ext"
4041 case "(($ac_try" in
4042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4043 *) ac_try_echo=$ac_try;;
4044 esac
4045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4046 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4047 ac_status=$?
4048 grep -v '^ *+' conftest.er1 >conftest.err
4049 rm -f conftest.er1
4050 cat conftest.err >&5
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); } >/dev/null && {
4053 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4054 test ! -s conftest.err
4055 }; then
4057 else
4058 echo "$as_me: failed program was:" >&5
4059 sed 's/^/| /' conftest.$ac_ext >&5
4061 # Broken: fails on valid input.
4062 continue
4065 rm -f conftest.err conftest.$ac_ext
4067 # OK, works on sane cases. Now check whether nonexistent headers
4068 # can be detected and how.
4069 cat >conftest.$ac_ext <<_ACEOF
4070 /* confdefs.h. */
4071 _ACEOF
4072 cat confdefs.h >>conftest.$ac_ext
4073 cat >>conftest.$ac_ext <<_ACEOF
4074 /* end confdefs.h. */
4075 #include <ac_nonexistent.h>
4076 _ACEOF
4077 if { (ac_try="$ac_cpp conftest.$ac_ext"
4078 case "(($ac_try" in
4079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4080 *) ac_try_echo=$ac_try;;
4081 esac
4082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4083 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4084 ac_status=$?
4085 grep -v '^ *+' conftest.er1 >conftest.err
4086 rm -f conftest.er1
4087 cat conftest.err >&5
4088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089 (exit $ac_status); } >/dev/null && {
4090 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4091 test ! -s conftest.err
4092 }; then
4093 # Broken: success on invalid input.
4094 continue
4095 else
4096 echo "$as_me: failed program was:" >&5
4097 sed 's/^/| /' conftest.$ac_ext >&5
4099 # Passes both tests.
4100 ac_preproc_ok=:
4101 break
4104 rm -f conftest.err conftest.$ac_ext
4106 done
4107 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4108 rm -f conftest.err conftest.$ac_ext
4109 if $ac_preproc_ok; then
4111 else
4112 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4113 See \`config.log' for more details." >&5
4114 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4115 See \`config.log' for more details." >&2;}
4116 { (exit 1); exit 1; }; }
4119 ac_ext=c
4120 ac_cpp='$CPP $CPPFLAGS'
4121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4126 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4127 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4128 if test "${ac_cv_path_GREP+set}" = set; then
4129 echo $ECHO_N "(cached) $ECHO_C" >&6
4130 else
4131 # Extract the first word of "grep ggrep" to use in msg output
4132 if test -z "$GREP"; then
4133 set dummy grep ggrep; ac_prog_name=$2
4134 if test "${ac_cv_path_GREP+set}" = set; then
4135 echo $ECHO_N "(cached) $ECHO_C" >&6
4136 else
4137 ac_path_GREP_found=false
4138 # Loop through the user's path and test for each of PROGNAME-LIST
4139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4140 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4142 IFS=$as_save_IFS
4143 test -z "$as_dir" && as_dir=.
4144 for ac_prog in grep ggrep; do
4145 for ac_exec_ext in '' $ac_executable_extensions; do
4146 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4147 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4148 # Check for GNU ac_path_GREP and select it if it is found.
4149 # Check for GNU $ac_path_GREP
4150 case `"$ac_path_GREP" --version 2>&1` in
4151 *GNU*)
4152 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4154 ac_count=0
4155 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4156 while :
4158 cat "conftest.in" "conftest.in" >"conftest.tmp"
4159 mv "conftest.tmp" "conftest.in"
4160 cp "conftest.in" "conftest.nl"
4161 echo 'GREP' >> "conftest.nl"
4162 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4163 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4164 ac_count=`expr $ac_count + 1`
4165 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4166 # Best one so far, save it but keep looking for a better one
4167 ac_cv_path_GREP="$ac_path_GREP"
4168 ac_path_GREP_max=$ac_count
4170 # 10*(2^10) chars as input seems more than enough
4171 test $ac_count -gt 10 && break
4172 done
4173 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4174 esac
4177 $ac_path_GREP_found && break 3
4178 done
4179 done
4181 done
4182 IFS=$as_save_IFS
4187 GREP="$ac_cv_path_GREP"
4188 if test -z "$GREP"; then
4189 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4190 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4191 { (exit 1); exit 1; }; }
4194 else
4195 ac_cv_path_GREP=$GREP
4200 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4201 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4202 GREP="$ac_cv_path_GREP"
4205 { echo "$as_me:$LINENO: checking for egrep" >&5
4206 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4207 if test "${ac_cv_path_EGREP+set}" = set; then
4208 echo $ECHO_N "(cached) $ECHO_C" >&6
4209 else
4210 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4211 then ac_cv_path_EGREP="$GREP -E"
4212 else
4213 # Extract the first word of "egrep" to use in msg output
4214 if test -z "$EGREP"; then
4215 set dummy egrep; ac_prog_name=$2
4216 if test "${ac_cv_path_EGREP+set}" = set; then
4217 echo $ECHO_N "(cached) $ECHO_C" >&6
4218 else
4219 ac_path_EGREP_found=false
4220 # Loop through the user's path and test for each of PROGNAME-LIST
4221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4222 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4224 IFS=$as_save_IFS
4225 test -z "$as_dir" && as_dir=.
4226 for ac_prog in egrep; do
4227 for ac_exec_ext in '' $ac_executable_extensions; do
4228 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4229 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4230 # Check for GNU ac_path_EGREP and select it if it is found.
4231 # Check for GNU $ac_path_EGREP
4232 case `"$ac_path_EGREP" --version 2>&1` in
4233 *GNU*)
4234 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4236 ac_count=0
4237 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4238 while :
4240 cat "conftest.in" "conftest.in" >"conftest.tmp"
4241 mv "conftest.tmp" "conftest.in"
4242 cp "conftest.in" "conftest.nl"
4243 echo 'EGREP' >> "conftest.nl"
4244 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4245 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4246 ac_count=`expr $ac_count + 1`
4247 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4248 # Best one so far, save it but keep looking for a better one
4249 ac_cv_path_EGREP="$ac_path_EGREP"
4250 ac_path_EGREP_max=$ac_count
4252 # 10*(2^10) chars as input seems more than enough
4253 test $ac_count -gt 10 && break
4254 done
4255 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4256 esac
4259 $ac_path_EGREP_found && break 3
4260 done
4261 done
4263 done
4264 IFS=$as_save_IFS
4269 EGREP="$ac_cv_path_EGREP"
4270 if test -z "$EGREP"; then
4271 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4272 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4273 { (exit 1); exit 1; }; }
4276 else
4277 ac_cv_path_EGREP=$EGREP
4283 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4284 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4285 EGREP="$ac_cv_path_EGREP"
4289 { echo "$as_me:$LINENO: checking for AIX" >&5
4290 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4291 cat >conftest.$ac_ext <<_ACEOF
4292 /* confdefs.h. */
4293 _ACEOF
4294 cat confdefs.h >>conftest.$ac_ext
4295 cat >>conftest.$ac_ext <<_ACEOF
4296 /* end confdefs.h. */
4297 #ifdef _AIX
4299 #endif
4301 _ACEOF
4302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4303 $EGREP "yes" >/dev/null 2>&1; then
4304 { echo "$as_me:$LINENO: result: yes" >&5
4305 echo "${ECHO_T}yes" >&6; }
4306 cat >>confdefs.h <<\_ACEOF
4307 #define _ALL_SOURCE 1
4308 _ACEOF
4310 else
4311 { echo "$as_me:$LINENO: result: no" >&5
4312 echo "${ECHO_T}no" >&6; }
4314 rm -f conftest*
4318 cat >>confdefs.h <<\_ACEOF
4319 #define _GNU_SOURCE 1
4320 _ACEOF
4324 ### Use -Wno-pointer-sign if the compiler supports it
4325 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4326 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4327 SAVE_CFLAGS="$CFLAGS"
4328 CFLAGS="$CFLAGS -Wno-pointer-sign"
4329 cat >conftest.$ac_ext <<_ACEOF
4330 /* confdefs.h. */
4331 _ACEOF
4332 cat confdefs.h >>conftest.$ac_ext
4333 cat >>conftest.$ac_ext <<_ACEOF
4334 /* end confdefs.h. */
4337 main ()
4341 return 0;
4343 _ACEOF
4344 rm -f conftest.$ac_objext
4345 if { (ac_try="$ac_compile"
4346 case "(($ac_try" in
4347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4348 *) ac_try_echo=$ac_try;;
4349 esac
4350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4351 (eval "$ac_compile") 2>conftest.er1
4352 ac_status=$?
4353 grep -v '^ *+' conftest.er1 >conftest.err
4354 rm -f conftest.er1
4355 cat conftest.err >&5
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); } && {
4358 test -z "$ac_c_werror_flag" ||
4359 test ! -s conftest.err
4360 } && test -s conftest.$ac_objext; then
4361 has_option=yes
4362 else
4363 echo "$as_me: failed program was:" >&5
4364 sed 's/^/| /' conftest.$ac_ext >&5
4366 has_option=no
4369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4370 if test $has_option = yes; then
4371 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4373 { echo "$as_me:$LINENO: result: $has_option" >&5
4374 echo "${ECHO_T}$has_option" >&6; }
4375 CFLAGS="$SAVE_CFLAGS"
4376 unset has_option
4377 unset SAVE_CFLAGS
4379 #### Some other nice autoconf tests.
4381 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4382 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4383 LN_S=$as_ln_s
4384 if test "$LN_S" = "ln -s"; then
4385 { echo "$as_me:$LINENO: result: yes" >&5
4386 echo "${ECHO_T}yes" >&6; }
4387 else
4388 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4389 echo "${ECHO_T}no, using $LN_S" >&6; }
4392 ac_ext=c
4393 ac_cpp='$CPP $CPPFLAGS'
4394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4397 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4398 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4399 # On Suns, sometimes $CPP names a directory.
4400 if test -n "$CPP" && test -d "$CPP"; then
4401 CPP=
4403 if test -z "$CPP"; then
4404 if test "${ac_cv_prog_CPP+set}" = set; then
4405 echo $ECHO_N "(cached) $ECHO_C" >&6
4406 else
4407 # Double quotes because CPP needs to be expanded
4408 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4410 ac_preproc_ok=false
4411 for ac_c_preproc_warn_flag in '' yes
4413 # Use a header file that comes with gcc, so configuring glibc
4414 # with a fresh cross-compiler works.
4415 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4416 # <limits.h> exists even on freestanding compilers.
4417 # On the NeXT, cc -E runs the code through the compiler's parser,
4418 # not just through cpp. "Syntax error" is here to catch this case.
4419 cat >conftest.$ac_ext <<_ACEOF
4420 /* confdefs.h. */
4421 _ACEOF
4422 cat confdefs.h >>conftest.$ac_ext
4423 cat >>conftest.$ac_ext <<_ACEOF
4424 /* end confdefs.h. */
4425 #ifdef __STDC__
4426 # include <limits.h>
4427 #else
4428 # include <assert.h>
4429 #endif
4430 Syntax error
4431 _ACEOF
4432 if { (ac_try="$ac_cpp conftest.$ac_ext"
4433 case "(($ac_try" in
4434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4435 *) ac_try_echo=$ac_try;;
4436 esac
4437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4439 ac_status=$?
4440 grep -v '^ *+' conftest.er1 >conftest.err
4441 rm -f conftest.er1
4442 cat conftest.err >&5
4443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444 (exit $ac_status); } >/dev/null && {
4445 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4446 test ! -s conftest.err
4447 }; then
4449 else
4450 echo "$as_me: failed program was:" >&5
4451 sed 's/^/| /' conftest.$ac_ext >&5
4453 # Broken: fails on valid input.
4454 continue
4457 rm -f conftest.err conftest.$ac_ext
4459 # OK, works on sane cases. Now check whether nonexistent headers
4460 # can be detected and how.
4461 cat >conftest.$ac_ext <<_ACEOF
4462 /* confdefs.h. */
4463 _ACEOF
4464 cat confdefs.h >>conftest.$ac_ext
4465 cat >>conftest.$ac_ext <<_ACEOF
4466 /* end confdefs.h. */
4467 #include <ac_nonexistent.h>
4468 _ACEOF
4469 if { (ac_try="$ac_cpp conftest.$ac_ext"
4470 case "(($ac_try" in
4471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4472 *) ac_try_echo=$ac_try;;
4473 esac
4474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4476 ac_status=$?
4477 grep -v '^ *+' conftest.er1 >conftest.err
4478 rm -f conftest.er1
4479 cat conftest.err >&5
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); } >/dev/null && {
4482 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4483 test ! -s conftest.err
4484 }; then
4485 # Broken: success on invalid input.
4486 continue
4487 else
4488 echo "$as_me: failed program was:" >&5
4489 sed 's/^/| /' conftest.$ac_ext >&5
4491 # Passes both tests.
4492 ac_preproc_ok=:
4493 break
4496 rm -f conftest.err conftest.$ac_ext
4498 done
4499 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4500 rm -f conftest.err conftest.$ac_ext
4501 if $ac_preproc_ok; then
4502 break
4505 done
4506 ac_cv_prog_CPP=$CPP
4509 CPP=$ac_cv_prog_CPP
4510 else
4511 ac_cv_prog_CPP=$CPP
4513 { echo "$as_me:$LINENO: result: $CPP" >&5
4514 echo "${ECHO_T}$CPP" >&6; }
4515 ac_preproc_ok=false
4516 for ac_c_preproc_warn_flag in '' yes
4518 # Use a header file that comes with gcc, so configuring glibc
4519 # with a fresh cross-compiler works.
4520 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4521 # <limits.h> exists even on freestanding compilers.
4522 # On the NeXT, cc -E runs the code through the compiler's parser,
4523 # not just through cpp. "Syntax error" is here to catch this case.
4524 cat >conftest.$ac_ext <<_ACEOF
4525 /* confdefs.h. */
4526 _ACEOF
4527 cat confdefs.h >>conftest.$ac_ext
4528 cat >>conftest.$ac_ext <<_ACEOF
4529 /* end confdefs.h. */
4530 #ifdef __STDC__
4531 # include <limits.h>
4532 #else
4533 # include <assert.h>
4534 #endif
4535 Syntax error
4536 _ACEOF
4537 if { (ac_try="$ac_cpp conftest.$ac_ext"
4538 case "(($ac_try" in
4539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4540 *) ac_try_echo=$ac_try;;
4541 esac
4542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4543 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4544 ac_status=$?
4545 grep -v '^ *+' conftest.er1 >conftest.err
4546 rm -f conftest.er1
4547 cat conftest.err >&5
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); } >/dev/null && {
4550 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4551 test ! -s conftest.err
4552 }; then
4554 else
4555 echo "$as_me: failed program was:" >&5
4556 sed 's/^/| /' conftest.$ac_ext >&5
4558 # Broken: fails on valid input.
4559 continue
4562 rm -f conftest.err conftest.$ac_ext
4564 # OK, works on sane cases. Now check whether nonexistent headers
4565 # can be detected and how.
4566 cat >conftest.$ac_ext <<_ACEOF
4567 /* confdefs.h. */
4568 _ACEOF
4569 cat confdefs.h >>conftest.$ac_ext
4570 cat >>conftest.$ac_ext <<_ACEOF
4571 /* end confdefs.h. */
4572 #include <ac_nonexistent.h>
4573 _ACEOF
4574 if { (ac_try="$ac_cpp conftest.$ac_ext"
4575 case "(($ac_try" in
4576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4577 *) ac_try_echo=$ac_try;;
4578 esac
4579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4580 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4581 ac_status=$?
4582 grep -v '^ *+' conftest.er1 >conftest.err
4583 rm -f conftest.er1
4584 cat conftest.err >&5
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); } >/dev/null && {
4587 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4588 test ! -s conftest.err
4589 }; then
4590 # Broken: success on invalid input.
4591 continue
4592 else
4593 echo "$as_me: failed program was:" >&5
4594 sed 's/^/| /' conftest.$ac_ext >&5
4596 # Passes both tests.
4597 ac_preproc_ok=:
4598 break
4601 rm -f conftest.err conftest.$ac_ext
4603 done
4604 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4605 rm -f conftest.err conftest.$ac_ext
4606 if $ac_preproc_ok; then
4608 else
4609 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4610 See \`config.log' for more details." >&5
4611 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4612 See \`config.log' for more details." >&2;}
4613 { (exit 1); exit 1; }; }
4616 ac_ext=c
4617 ac_cpp='$CPP $CPPFLAGS'
4618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4622 # Find a good install program. We prefer a C program (faster),
4623 # so one script is as good as another. But avoid the broken or
4624 # incompatible versions:
4625 # SysV /etc/install, /usr/sbin/install
4626 # SunOS /usr/etc/install
4627 # IRIX /sbin/install
4628 # AIX /bin/install
4629 # AmigaOS /C/install, which installs bootblocks on floppy discs
4630 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4631 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4632 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4633 # OS/2's system install, which has a completely different semantic
4634 # ./install, which can be erroneously created by make from ./install.sh.
4635 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4636 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4637 if test -z "$INSTALL"; then
4638 if test "${ac_cv_path_install+set}" = set; then
4639 echo $ECHO_N "(cached) $ECHO_C" >&6
4640 else
4641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642 for as_dir in $PATH
4644 IFS=$as_save_IFS
4645 test -z "$as_dir" && as_dir=.
4646 # Account for people who put trailing slashes in PATH elements.
4647 case $as_dir/ in
4648 ./ | .// | /cC/* | \
4649 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4650 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4651 /usr/ucb/* ) ;;
4653 # OSF1 and SCO ODT 3.0 have their own names for install.
4654 # Don't use installbsd from OSF since it installs stuff as root
4655 # by default.
4656 for ac_prog in ginstall scoinst install; do
4657 for ac_exec_ext in '' $ac_executable_extensions; do
4658 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4659 if test $ac_prog = install &&
4660 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4661 # AIX install. It has an incompatible calling convention.
4663 elif test $ac_prog = install &&
4664 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4665 # program-specific install script used by HP pwplus--don't use.
4667 else
4668 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4669 break 3
4672 done
4673 done
4675 esac
4676 done
4677 IFS=$as_save_IFS
4681 if test "${ac_cv_path_install+set}" = set; then
4682 INSTALL=$ac_cv_path_install
4683 else
4684 # As a last resort, use the slow shell script. Don't cache a
4685 # value for INSTALL within a source directory, because that will
4686 # break other packages using the cache if that directory is
4687 # removed, or if the value is a relative name.
4688 INSTALL=$ac_install_sh
4691 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4692 echo "${ECHO_T}$INSTALL" >&6; }
4694 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4695 # It thinks the first close brace ends the variable substitution.
4696 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4698 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4700 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4702 if test "x$RANLIB" = x; then
4703 if test -n "$ac_tool_prefix"; then
4704 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4705 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4708 if test "${ac_cv_prog_RANLIB+set}" = set; then
4709 echo $ECHO_N "(cached) $ECHO_C" >&6
4710 else
4711 if test -n "$RANLIB"; then
4712 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4713 else
4714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4715 for as_dir in $PATH
4717 IFS=$as_save_IFS
4718 test -z "$as_dir" && as_dir=.
4719 for ac_exec_ext in '' $ac_executable_extensions; do
4720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4721 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4723 break 2
4725 done
4726 done
4727 IFS=$as_save_IFS
4731 RANLIB=$ac_cv_prog_RANLIB
4732 if test -n "$RANLIB"; then
4733 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4734 echo "${ECHO_T}$RANLIB" >&6; }
4735 else
4736 { echo "$as_me:$LINENO: result: no" >&5
4737 echo "${ECHO_T}no" >&6; }
4742 if test -z "$ac_cv_prog_RANLIB"; then
4743 ac_ct_RANLIB=$RANLIB
4744 # Extract the first word of "ranlib", so it can be a program name with args.
4745 set dummy ranlib; ac_word=$2
4746 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4748 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4749 echo $ECHO_N "(cached) $ECHO_C" >&6
4750 else
4751 if test -n "$ac_ct_RANLIB"; then
4752 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4753 else
4754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4755 for as_dir in $PATH
4757 IFS=$as_save_IFS
4758 test -z "$as_dir" && as_dir=.
4759 for ac_exec_ext in '' $ac_executable_extensions; do
4760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4761 ac_cv_prog_ac_ct_RANLIB="ranlib"
4762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4763 break 2
4765 done
4766 done
4767 IFS=$as_save_IFS
4771 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4772 if test -n "$ac_ct_RANLIB"; then
4773 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4774 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4775 else
4776 { echo "$as_me:$LINENO: result: no" >&5
4777 echo "${ECHO_T}no" >&6; }
4780 if test "x$ac_ct_RANLIB" = x; then
4781 RANLIB=":"
4782 else
4783 case $cross_compiling:$ac_tool_warned in
4784 yes:)
4785 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4786 whose name does not start with the host triplet. If you think this
4787 configuration is useful to you, please write to autoconf@gnu.org." >&5
4788 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4789 whose name does not start with the host triplet. If you think this
4790 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4791 ac_tool_warned=yes ;;
4792 esac
4793 RANLIB=$ac_ct_RANLIB
4795 else
4796 RANLIB="$ac_cv_prog_RANLIB"
4800 # Extract the first word of "install-info", so it can be a program name with args.
4801 set dummy install-info; ac_word=$2
4802 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4804 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4805 echo $ECHO_N "(cached) $ECHO_C" >&6
4806 else
4807 case $INSTALL_INFO in
4808 [\\/]* | ?:[\\/]*)
4809 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813 for as_dir in $PATH
4815 IFS=$as_save_IFS
4816 test -z "$as_dir" && as_dir=.
4817 for ac_exec_ext in '' $ac_executable_extensions; do
4818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4819 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4821 break 2
4823 done
4824 done
4825 IFS=$as_save_IFS
4828 esac
4830 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4831 if test -n "$INSTALL_INFO"; then
4832 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4833 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4834 else
4835 { echo "$as_me:$LINENO: result: no" >&5
4836 echo "${ECHO_T}no" >&6; }
4840 # Extract the first word of "install-info", so it can be a program name with args.
4841 set dummy install-info; ac_word=$2
4842 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4844 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4845 echo $ECHO_N "(cached) $ECHO_C" >&6
4846 else
4847 case $INSTALL_INFO in
4848 [\\/]* | ?:[\\/]*)
4849 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4853 for as_dir in /usr/sbin
4855 IFS=$as_save_IFS
4856 test -z "$as_dir" && as_dir=.
4857 for ac_exec_ext in '' $ac_executable_extensions; do
4858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4859 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4861 break 2
4863 done
4864 done
4865 IFS=$as_save_IFS
4868 esac
4870 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4871 if test -n "$INSTALL_INFO"; then
4872 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4873 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4874 else
4875 { echo "$as_me:$LINENO: result: no" >&5
4876 echo "${ECHO_T}no" >&6; }
4880 # Extract the first word of "install-info", so it can be a program name with args.
4881 set dummy install-info; ac_word=$2
4882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4884 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4885 echo $ECHO_N "(cached) $ECHO_C" >&6
4886 else
4887 case $INSTALL_INFO in
4888 [\\/]* | ?:[\\/]*)
4889 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4893 for as_dir in /sbin
4895 IFS=$as_save_IFS
4896 test -z "$as_dir" && as_dir=.
4897 for ac_exec_ext in '' $ac_executable_extensions; do
4898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4899 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4901 break 2
4903 done
4904 done
4905 IFS=$as_save_IFS
4907 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4909 esac
4911 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4912 if test -n "$INSTALL_INFO"; then
4913 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4914 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4915 else
4916 { echo "$as_me:$LINENO: result: no" >&5
4917 echo "${ECHO_T}no" >&6; }
4921 # Extract the first word of "gzip", so it can be a program name with args.
4922 set dummy gzip; ac_word=$2
4923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4925 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4926 echo $ECHO_N "(cached) $ECHO_C" >&6
4927 else
4928 case $GZIP_PROG in
4929 [\\/]* | ?:[\\/]*)
4930 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
4933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4934 for as_dir in $PATH
4936 IFS=$as_save_IFS
4937 test -z "$as_dir" && as_dir=.
4938 for ac_exec_ext in '' $ac_executable_extensions; do
4939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4940 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
4941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4942 break 2
4944 done
4945 done
4946 IFS=$as_save_IFS
4949 esac
4951 GZIP_PROG=$ac_cv_path_GZIP_PROG
4952 if test -n "$GZIP_PROG"; then
4953 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4954 echo "${ECHO_T}$GZIP_PROG" >&6; }
4955 else
4956 { echo "$as_me:$LINENO: result: no" >&5
4957 echo "${ECHO_T}no" >&6; }
4963 ## Need makeinfo >= 4.6 (?) to build the manuals.
4964 # Extract the first word of "makeinfo", so it can be a program name with args.
4965 set dummy makeinfo; ac_word=$2
4966 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4968 if test "${ac_cv_path_MAKEINFO+set}" = set; then
4969 echo $ECHO_N "(cached) $ECHO_C" >&6
4970 else
4971 case $MAKEINFO in
4972 [\\/]* | ?:[\\/]*)
4973 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
4976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977 for as_dir in $PATH
4979 IFS=$as_save_IFS
4980 test -z "$as_dir" && as_dir=.
4981 for ac_exec_ext in '' $ac_executable_extensions; do
4982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4983 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
4984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4985 break 2
4987 done
4988 done
4989 IFS=$as_save_IFS
4991 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
4993 esac
4995 MAKEINFO=$ac_cv_path_MAKEINFO
4996 if test -n "$MAKEINFO"; then
4997 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
4998 echo "${ECHO_T}$MAKEINFO" >&6; }
4999 else
5000 { echo "$as_me:$LINENO: result: no" >&5
5001 echo "${ECHO_T}no" >&6; }
5005 if test "$MAKEINFO" != "no" && \
5006 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
5007 MAKEINFO=no
5010 if test "$MAKEINFO" = "no"; then
5011 { { echo "$as_me:$LINENO: error: makeinfo >= 4.6 is required " >&5
5012 echo "$as_me: error: makeinfo >= 4.6 is required " >&2;}
5013 { (exit 1); exit 1; }; }
5018 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5019 then
5020 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5023 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5024 then
5025 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5029 late_LDFLAGS=$LDFLAGS
5030 if test "$GCC" = yes; then
5031 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5032 else
5033 LDFLAGS="$LDFLAGS -znocombreloc"
5036 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5037 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5038 cat >conftest.$ac_ext <<_ACEOF
5039 main(){return 0;}
5040 _ACEOF
5041 rm -f conftest.$ac_objext conftest$ac_exeext
5042 if { (ac_try="$ac_link"
5043 case "(($ac_try" in
5044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5045 *) ac_try_echo=$ac_try;;
5046 esac
5047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5048 (eval "$ac_link") 2>conftest.er1
5049 ac_status=$?
5050 grep -v '^ *+' conftest.er1 >conftest.err
5051 rm -f conftest.er1
5052 cat conftest.err >&5
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); } && {
5055 test -z "$ac_c_werror_flag" ||
5056 test ! -s conftest.err
5057 } && test -s conftest$ac_exeext &&
5058 $as_test_x conftest$ac_exeext; then
5059 { echo "$as_me:$LINENO: result: yes" >&5
5060 echo "${ECHO_T}yes" >&6; }
5061 else
5062 echo "$as_me: failed program was:" >&5
5063 sed 's/^/| /' conftest.$ac_ext >&5
5065 LDFLAGS=$late_LDFLAGS
5066 { echo "$as_me:$LINENO: result: no" >&5
5067 echo "${ECHO_T}no" >&6; }
5070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5071 conftest$ac_exeext conftest.$ac_ext
5073 #### Extract some information from the operating system and machine files.
5075 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5076 - which libraries the lib-src programs will want, and
5077 - whether the GNU malloc routines are usable..." >&5
5078 echo "$as_me: checking the machine- and system-dependent files to find out
5079 - which libraries the lib-src programs will want, and
5080 - whether the GNU malloc routines are usable..." >&6;}
5082 ### First figure out CFLAGS (which we use for running the compiler here)
5083 ### and REAL_CFLAGS (which we use for real compilation).
5084 ### The two are the same except on a few systems, where they are made
5085 ### different to work around various lossages. For example,
5086 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5087 ### as implying static linking.
5089 ### If the CFLAGS env var is specified, we use that value
5090 ### instead of the default.
5092 ### It's not important that this name contain the PID; you can't run
5093 ### two configures in the same directory and have anything work
5094 ### anyway.
5095 tempcname="conftest.c"
5097 echo '
5098 #include "'${srcdir}'/src/'${opsysfile}'"
5099 #include "'${srcdir}'/src/'${machfile}'"
5100 #ifndef LIBS_MACHINE
5101 #define LIBS_MACHINE
5102 #endif
5103 #ifndef LIBS_SYSTEM
5104 #define LIBS_SYSTEM
5105 #endif
5106 #ifndef C_SWITCH_SYSTEM
5107 #define C_SWITCH_SYSTEM
5108 #endif
5109 #ifndef C_SWITCH_MACHINE
5110 #define C_SWITCH_MACHINE
5111 #endif
5112 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5113 configure___ c_switch_system=C_SWITCH_SYSTEM
5114 configure___ c_switch_machine=C_SWITCH_MACHINE
5116 #ifndef LIB_X11_LIB
5117 #define LIB_X11_LIB -lX11
5118 #endif
5120 #ifndef LIBX11_SYSTEM
5121 #define LIBX11_SYSTEM
5122 #endif
5123 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5125 #ifdef UNEXEC
5126 configure___ unexec=UNEXEC
5127 #else
5128 configure___ unexec=unexec.o
5129 #endif
5131 #ifdef SYSTEM_MALLOC
5132 configure___ system_malloc=yes
5133 #else
5134 configure___ system_malloc=no
5135 #endif
5137 #ifdef USE_MMAP_FOR_BUFFERS
5138 configure___ use_mmap_for_buffers=yes
5139 #else
5140 configure___ use_mmap_for_buffers=no
5141 #endif
5143 #ifndef C_DEBUG_SWITCH
5144 #define C_DEBUG_SWITCH -g
5145 #endif
5147 #ifndef C_OPTIMIZE_SWITCH
5148 #ifdef __GNUC__
5149 #define C_OPTIMIZE_SWITCH -O2
5150 #else
5151 #define C_OPTIMIZE_SWITCH -O
5152 #endif
5153 #endif
5155 #ifndef C_WARNINGS_SWITCH
5156 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5157 #endif
5159 #ifndef LD_SWITCH_MACHINE
5160 #define LD_SWITCH_MACHINE
5161 #endif
5163 #ifndef LD_SWITCH_SYSTEM
5164 #define LD_SWITCH_SYSTEM
5165 #endif
5167 #ifndef LD_SWITCH_X_SITE_AUX
5168 #define LD_SWITCH_X_SITE_AUX
5169 #endif
5171 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5172 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5174 #ifdef THIS_IS_CONFIGURE
5176 /* Get the CFLAGS for tests in configure. */
5177 #ifdef __GNUC__
5178 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5179 #else
5180 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5181 #endif
5183 #else /* not THIS_IS_CONFIGURE */
5185 /* Get the CFLAGS for real compilation. */
5186 #ifdef __GNUC__
5187 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5188 #else
5189 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5190 #endif
5192 #endif /* not THIS_IS_CONFIGURE */
5193 ' > ${tempcname}
5195 # The value of CPP is a quoted variable reference, so we need to do this
5196 # to get its actual value...
5197 CPP=`eval "echo $CPP"`
5198 eval `${CPP} -Isrc ${tempcname} \
5199 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5200 if test "x$SPECIFIED_CFLAGS" = x; then
5201 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5202 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5203 else
5204 REAL_CFLAGS="$CFLAGS"
5206 rm ${tempcname}
5208 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5210 ### Make sure subsequent tests use flags consistent with the build flags.
5212 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5213 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5214 else
5215 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5220 # Check whether --enable-largefile was given.
5221 if test "${enable_largefile+set}" = set; then
5222 enableval=$enable_largefile;
5225 if test "$enable_largefile" != no; then
5227 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5228 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5229 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5230 echo $ECHO_N "(cached) $ECHO_C" >&6
5231 else
5232 ac_cv_sys_largefile_CC=no
5233 if test "$GCC" != yes; then
5234 ac_save_CC=$CC
5235 while :; do
5236 # IRIX 6.2 and later do not support large files by default,
5237 # so use the C compiler's -n32 option if that helps.
5238 cat >conftest.$ac_ext <<_ACEOF
5239 /* confdefs.h. */
5240 _ACEOF
5241 cat confdefs.h >>conftest.$ac_ext
5242 cat >>conftest.$ac_ext <<_ACEOF
5243 /* end confdefs.h. */
5244 #include <sys/types.h>
5245 /* Check that off_t can represent 2**63 - 1 correctly.
5246 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5247 since some C++ compilers masquerading as C compilers
5248 incorrectly reject 9223372036854775807. */
5249 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5250 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5251 && LARGE_OFF_T % 2147483647 == 1)
5252 ? 1 : -1];
5254 main ()
5258 return 0;
5260 _ACEOF
5261 rm -f conftest.$ac_objext
5262 if { (ac_try="$ac_compile"
5263 case "(($ac_try" in
5264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5265 *) ac_try_echo=$ac_try;;
5266 esac
5267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5268 (eval "$ac_compile") 2>conftest.er1
5269 ac_status=$?
5270 grep -v '^ *+' conftest.er1 >conftest.err
5271 rm -f conftest.er1
5272 cat conftest.err >&5
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); } && {
5275 test -z "$ac_c_werror_flag" ||
5276 test ! -s conftest.err
5277 } && test -s conftest.$ac_objext; then
5278 break
5279 else
5280 echo "$as_me: failed program was:" >&5
5281 sed 's/^/| /' conftest.$ac_ext >&5
5286 rm -f core conftest.err conftest.$ac_objext
5287 CC="$CC -n32"
5288 rm -f conftest.$ac_objext
5289 if { (ac_try="$ac_compile"
5290 case "(($ac_try" in
5291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5292 *) ac_try_echo=$ac_try;;
5293 esac
5294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5295 (eval "$ac_compile") 2>conftest.er1
5296 ac_status=$?
5297 grep -v '^ *+' conftest.er1 >conftest.err
5298 rm -f conftest.er1
5299 cat conftest.err >&5
5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301 (exit $ac_status); } && {
5302 test -z "$ac_c_werror_flag" ||
5303 test ! -s conftest.err
5304 } && test -s conftest.$ac_objext; then
5305 ac_cv_sys_largefile_CC=' -n32'; break
5306 else
5307 echo "$as_me: failed program was:" >&5
5308 sed 's/^/| /' conftest.$ac_ext >&5
5313 rm -f core conftest.err conftest.$ac_objext
5314 break
5315 done
5316 CC=$ac_save_CC
5317 rm -f conftest.$ac_ext
5320 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5321 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5322 if test "$ac_cv_sys_largefile_CC" != no; then
5323 CC=$CC$ac_cv_sys_largefile_CC
5326 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5327 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5328 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5329 echo $ECHO_N "(cached) $ECHO_C" >&6
5330 else
5331 while :; do
5332 cat >conftest.$ac_ext <<_ACEOF
5333 /* confdefs.h. */
5334 _ACEOF
5335 cat confdefs.h >>conftest.$ac_ext
5336 cat >>conftest.$ac_ext <<_ACEOF
5337 /* end confdefs.h. */
5338 #include <sys/types.h>
5339 /* Check that off_t can represent 2**63 - 1 correctly.
5340 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5341 since some C++ compilers masquerading as C compilers
5342 incorrectly reject 9223372036854775807. */
5343 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5344 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5345 && LARGE_OFF_T % 2147483647 == 1)
5346 ? 1 : -1];
5348 main ()
5352 return 0;
5354 _ACEOF
5355 rm -f conftest.$ac_objext
5356 if { (ac_try="$ac_compile"
5357 case "(($ac_try" in
5358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5359 *) ac_try_echo=$ac_try;;
5360 esac
5361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5362 (eval "$ac_compile") 2>conftest.er1
5363 ac_status=$?
5364 grep -v '^ *+' conftest.er1 >conftest.err
5365 rm -f conftest.er1
5366 cat conftest.err >&5
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); } && {
5369 test -z "$ac_c_werror_flag" ||
5370 test ! -s conftest.err
5371 } && test -s conftest.$ac_objext; then
5372 ac_cv_sys_file_offset_bits=no; break
5373 else
5374 echo "$as_me: failed program was:" >&5
5375 sed 's/^/| /' conftest.$ac_ext >&5
5380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5381 cat >conftest.$ac_ext <<_ACEOF
5382 /* confdefs.h. */
5383 _ACEOF
5384 cat confdefs.h >>conftest.$ac_ext
5385 cat >>conftest.$ac_ext <<_ACEOF
5386 /* end confdefs.h. */
5387 #define _FILE_OFFSET_BITS 64
5388 #include <sys/types.h>
5389 /* Check that off_t can represent 2**63 - 1 correctly.
5390 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5391 since some C++ compilers masquerading as C compilers
5392 incorrectly reject 9223372036854775807. */
5393 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5394 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5395 && LARGE_OFF_T % 2147483647 == 1)
5396 ? 1 : -1];
5398 main ()
5402 return 0;
5404 _ACEOF
5405 rm -f conftest.$ac_objext
5406 if { (ac_try="$ac_compile"
5407 case "(($ac_try" in
5408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5409 *) ac_try_echo=$ac_try;;
5410 esac
5411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5412 (eval "$ac_compile") 2>conftest.er1
5413 ac_status=$?
5414 grep -v '^ *+' conftest.er1 >conftest.err
5415 rm -f conftest.er1
5416 cat conftest.err >&5
5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418 (exit $ac_status); } && {
5419 test -z "$ac_c_werror_flag" ||
5420 test ! -s conftest.err
5421 } && test -s conftest.$ac_objext; then
5422 ac_cv_sys_file_offset_bits=64; break
5423 else
5424 echo "$as_me: failed program was:" >&5
5425 sed 's/^/| /' conftest.$ac_ext >&5
5430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5431 ac_cv_sys_file_offset_bits=unknown
5432 break
5433 done
5435 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5436 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5437 case $ac_cv_sys_file_offset_bits in #(
5438 no | unknown) ;;
5440 cat >>confdefs.h <<_ACEOF
5441 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5442 _ACEOF
5444 esac
5445 rm -f conftest*
5446 if test $ac_cv_sys_file_offset_bits = unknown; then
5447 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5448 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5449 if test "${ac_cv_sys_large_files+set}" = set; then
5450 echo $ECHO_N "(cached) $ECHO_C" >&6
5451 else
5452 while :; do
5453 cat >conftest.$ac_ext <<_ACEOF
5454 /* confdefs.h. */
5455 _ACEOF
5456 cat confdefs.h >>conftest.$ac_ext
5457 cat >>conftest.$ac_ext <<_ACEOF
5458 /* end confdefs.h. */
5459 #include <sys/types.h>
5460 /* Check that off_t can represent 2**63 - 1 correctly.
5461 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5462 since some C++ compilers masquerading as C compilers
5463 incorrectly reject 9223372036854775807. */
5464 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5465 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5466 && LARGE_OFF_T % 2147483647 == 1)
5467 ? 1 : -1];
5469 main ()
5473 return 0;
5475 _ACEOF
5476 rm -f conftest.$ac_objext
5477 if { (ac_try="$ac_compile"
5478 case "(($ac_try" in
5479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5480 *) ac_try_echo=$ac_try;;
5481 esac
5482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5483 (eval "$ac_compile") 2>conftest.er1
5484 ac_status=$?
5485 grep -v '^ *+' conftest.er1 >conftest.err
5486 rm -f conftest.er1
5487 cat conftest.err >&5
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); } && {
5490 test -z "$ac_c_werror_flag" ||
5491 test ! -s conftest.err
5492 } && test -s conftest.$ac_objext; then
5493 ac_cv_sys_large_files=no; break
5494 else
5495 echo "$as_me: failed program was:" >&5
5496 sed 's/^/| /' conftest.$ac_ext >&5
5501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5502 cat >conftest.$ac_ext <<_ACEOF
5503 /* confdefs.h. */
5504 _ACEOF
5505 cat confdefs.h >>conftest.$ac_ext
5506 cat >>conftest.$ac_ext <<_ACEOF
5507 /* end confdefs.h. */
5508 #define _LARGE_FILES 1
5509 #include <sys/types.h>
5510 /* Check that off_t can represent 2**63 - 1 correctly.
5511 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5512 since some C++ compilers masquerading as C compilers
5513 incorrectly reject 9223372036854775807. */
5514 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5515 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5516 && LARGE_OFF_T % 2147483647 == 1)
5517 ? 1 : -1];
5519 main ()
5523 return 0;
5525 _ACEOF
5526 rm -f conftest.$ac_objext
5527 if { (ac_try="$ac_compile"
5528 case "(($ac_try" in
5529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5530 *) ac_try_echo=$ac_try;;
5531 esac
5532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5533 (eval "$ac_compile") 2>conftest.er1
5534 ac_status=$?
5535 grep -v '^ *+' conftest.er1 >conftest.err
5536 rm -f conftest.er1
5537 cat conftest.err >&5
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); } && {
5540 test -z "$ac_c_werror_flag" ||
5541 test ! -s conftest.err
5542 } && test -s conftest.$ac_objext; then
5543 ac_cv_sys_large_files=1; break
5544 else
5545 echo "$as_me: failed program was:" >&5
5546 sed 's/^/| /' conftest.$ac_ext >&5
5551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5552 ac_cv_sys_large_files=unknown
5553 break
5554 done
5556 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5557 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5558 case $ac_cv_sys_large_files in #(
5559 no | unknown) ;;
5561 cat >>confdefs.h <<_ACEOF
5562 #define _LARGE_FILES $ac_cv_sys_large_files
5563 _ACEOF
5565 esac
5566 rm -f conftest*
5572 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5573 ### be located in either /usr/lib64 or /usr/lib.
5574 case "${canonical}" in
5575 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5576 if test -d /usr/lib64; then
5578 cat >>confdefs.h <<\_ACEOF
5579 #define HAVE_LIB64_DIR 1
5580 _ACEOF
5583 esac
5588 if test "${with_sound}" != "no"; then
5589 # Sound support for GNU/Linux and the free BSDs.
5590 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5591 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5592 if test "${ac_cv_header_stdc+set}" = set; then
5593 echo $ECHO_N "(cached) $ECHO_C" >&6
5594 else
5595 cat >conftest.$ac_ext <<_ACEOF
5596 /* confdefs.h. */
5597 _ACEOF
5598 cat confdefs.h >>conftest.$ac_ext
5599 cat >>conftest.$ac_ext <<_ACEOF
5600 /* end confdefs.h. */
5601 #include <stdlib.h>
5602 #include <stdarg.h>
5603 #include <string.h>
5604 #include <float.h>
5607 main ()
5611 return 0;
5613 _ACEOF
5614 rm -f conftest.$ac_objext
5615 if { (ac_try="$ac_compile"
5616 case "(($ac_try" in
5617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5618 *) ac_try_echo=$ac_try;;
5619 esac
5620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5621 (eval "$ac_compile") 2>conftest.er1
5622 ac_status=$?
5623 grep -v '^ *+' conftest.er1 >conftest.err
5624 rm -f conftest.er1
5625 cat conftest.err >&5
5626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); } && {
5628 test -z "$ac_c_werror_flag" ||
5629 test ! -s conftest.err
5630 } && test -s conftest.$ac_objext; then
5631 ac_cv_header_stdc=yes
5632 else
5633 echo "$as_me: failed program was:" >&5
5634 sed 's/^/| /' conftest.$ac_ext >&5
5636 ac_cv_header_stdc=no
5639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5641 if test $ac_cv_header_stdc = yes; then
5642 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5643 cat >conftest.$ac_ext <<_ACEOF
5644 /* confdefs.h. */
5645 _ACEOF
5646 cat confdefs.h >>conftest.$ac_ext
5647 cat >>conftest.$ac_ext <<_ACEOF
5648 /* end confdefs.h. */
5649 #include <string.h>
5651 _ACEOF
5652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5653 $EGREP "memchr" >/dev/null 2>&1; then
5655 else
5656 ac_cv_header_stdc=no
5658 rm -f conftest*
5662 if test $ac_cv_header_stdc = yes; then
5663 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5664 cat >conftest.$ac_ext <<_ACEOF
5665 /* confdefs.h. */
5666 _ACEOF
5667 cat confdefs.h >>conftest.$ac_ext
5668 cat >>conftest.$ac_ext <<_ACEOF
5669 /* end confdefs.h. */
5670 #include <stdlib.h>
5672 _ACEOF
5673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5674 $EGREP "free" >/dev/null 2>&1; then
5676 else
5677 ac_cv_header_stdc=no
5679 rm -f conftest*
5683 if test $ac_cv_header_stdc = yes; then
5684 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5685 if test "$cross_compiling" = yes; then
5687 else
5688 cat >conftest.$ac_ext <<_ACEOF
5689 /* confdefs.h. */
5690 _ACEOF
5691 cat confdefs.h >>conftest.$ac_ext
5692 cat >>conftest.$ac_ext <<_ACEOF
5693 /* end confdefs.h. */
5694 #include <ctype.h>
5695 #include <stdlib.h>
5696 #if ((' ' & 0x0FF) == 0x020)
5697 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5698 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5699 #else
5700 # define ISLOWER(c) \
5701 (('a' <= (c) && (c) <= 'i') \
5702 || ('j' <= (c) && (c) <= 'r') \
5703 || ('s' <= (c) && (c) <= 'z'))
5704 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5705 #endif
5707 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5709 main ()
5711 int i;
5712 for (i = 0; i < 256; i++)
5713 if (XOR (islower (i), ISLOWER (i))
5714 || toupper (i) != TOUPPER (i))
5715 return 2;
5716 return 0;
5718 _ACEOF
5719 rm -f conftest$ac_exeext
5720 if { (ac_try="$ac_link"
5721 case "(($ac_try" in
5722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5723 *) ac_try_echo=$ac_try;;
5724 esac
5725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5726 (eval "$ac_link") 2>&5
5727 ac_status=$?
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5730 { (case "(($ac_try" in
5731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5732 *) ac_try_echo=$ac_try;;
5733 esac
5734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5735 (eval "$ac_try") 2>&5
5736 ac_status=$?
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); }; }; then
5740 else
5741 echo "$as_me: program exited with status $ac_status" >&5
5742 echo "$as_me: failed program was:" >&5
5743 sed 's/^/| /' conftest.$ac_ext >&5
5745 ( exit $ac_status )
5746 ac_cv_header_stdc=no
5748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5754 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5755 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5756 if test $ac_cv_header_stdc = yes; then
5758 cat >>confdefs.h <<\_ACEOF
5759 #define STDC_HEADERS 1
5760 _ACEOF
5764 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5774 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5775 inttypes.h stdint.h unistd.h
5777 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5778 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5781 echo $ECHO_N "(cached) $ECHO_C" >&6
5782 else
5783 cat >conftest.$ac_ext <<_ACEOF
5784 /* confdefs.h. */
5785 _ACEOF
5786 cat confdefs.h >>conftest.$ac_ext
5787 cat >>conftest.$ac_ext <<_ACEOF
5788 /* end confdefs.h. */
5789 $ac_includes_default
5791 #include <$ac_header>
5792 _ACEOF
5793 rm -f conftest.$ac_objext
5794 if { (ac_try="$ac_compile"
5795 case "(($ac_try" in
5796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5797 *) ac_try_echo=$ac_try;;
5798 esac
5799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5800 (eval "$ac_compile") 2>conftest.er1
5801 ac_status=$?
5802 grep -v '^ *+' conftest.er1 >conftest.err
5803 rm -f conftest.er1
5804 cat conftest.err >&5
5805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806 (exit $ac_status); } && {
5807 test -z "$ac_c_werror_flag" ||
5808 test ! -s conftest.err
5809 } && test -s conftest.$ac_objext; then
5810 eval "$as_ac_Header=yes"
5811 else
5812 echo "$as_me: failed program was:" >&5
5813 sed 's/^/| /' conftest.$ac_ext >&5
5815 eval "$as_ac_Header=no"
5818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5820 ac_res=`eval echo '${'$as_ac_Header'}'`
5821 { echo "$as_me:$LINENO: result: $ac_res" >&5
5822 echo "${ECHO_T}$ac_res" >&6; }
5823 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5824 cat >>confdefs.h <<_ACEOF
5825 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5826 _ACEOF
5830 done
5836 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5838 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5840 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5843 echo $ECHO_N "(cached) $ECHO_C" >&6
5845 ac_res=`eval echo '${'$as_ac_Header'}'`
5846 { echo "$as_me:$LINENO: result: $ac_res" >&5
5847 echo "${ECHO_T}$ac_res" >&6; }
5848 else
5849 # Is the header compilable?
5850 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5851 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5852 cat >conftest.$ac_ext <<_ACEOF
5853 /* confdefs.h. */
5854 _ACEOF
5855 cat confdefs.h >>conftest.$ac_ext
5856 cat >>conftest.$ac_ext <<_ACEOF
5857 /* end confdefs.h. */
5858 $ac_includes_default
5859 #include <$ac_header>
5860 _ACEOF
5861 rm -f conftest.$ac_objext
5862 if { (ac_try="$ac_compile"
5863 case "(($ac_try" in
5864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5865 *) ac_try_echo=$ac_try;;
5866 esac
5867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5868 (eval "$ac_compile") 2>conftest.er1
5869 ac_status=$?
5870 grep -v '^ *+' conftest.er1 >conftest.err
5871 rm -f conftest.er1
5872 cat conftest.err >&5
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); } && {
5875 test -z "$ac_c_werror_flag" ||
5876 test ! -s conftest.err
5877 } && test -s conftest.$ac_objext; then
5878 ac_header_compiler=yes
5879 else
5880 echo "$as_me: failed program was:" >&5
5881 sed 's/^/| /' conftest.$ac_ext >&5
5883 ac_header_compiler=no
5886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5887 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5888 echo "${ECHO_T}$ac_header_compiler" >&6; }
5890 # Is the header present?
5891 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5892 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5893 cat >conftest.$ac_ext <<_ACEOF
5894 /* confdefs.h. */
5895 _ACEOF
5896 cat confdefs.h >>conftest.$ac_ext
5897 cat >>conftest.$ac_ext <<_ACEOF
5898 /* end confdefs.h. */
5899 #include <$ac_header>
5900 _ACEOF
5901 if { (ac_try="$ac_cpp conftest.$ac_ext"
5902 case "(($ac_try" in
5903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5904 *) ac_try_echo=$ac_try;;
5905 esac
5906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5907 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5908 ac_status=$?
5909 grep -v '^ *+' conftest.er1 >conftest.err
5910 rm -f conftest.er1
5911 cat conftest.err >&5
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); } >/dev/null && {
5914 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5915 test ! -s conftest.err
5916 }; then
5917 ac_header_preproc=yes
5918 else
5919 echo "$as_me: failed program was:" >&5
5920 sed 's/^/| /' conftest.$ac_ext >&5
5922 ac_header_preproc=no
5925 rm -f conftest.err conftest.$ac_ext
5926 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5927 echo "${ECHO_T}$ac_header_preproc" >&6; }
5929 # So? What about this header?
5930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5931 yes:no: )
5932 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5933 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5935 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5936 ac_header_preproc=yes
5938 no:yes:* )
5939 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5940 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5941 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5942 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5943 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5944 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5945 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5946 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5949 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5950 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5953 esac
5954 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5957 echo $ECHO_N "(cached) $ECHO_C" >&6
5958 else
5959 eval "$as_ac_Header=\$ac_header_preproc"
5961 ac_res=`eval echo '${'$as_ac_Header'}'`
5962 { echo "$as_me:$LINENO: result: $ac_res" >&5
5963 echo "${ECHO_T}$ac_res" >&6; }
5966 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5967 cat >>confdefs.h <<_ACEOF
5968 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5969 _ACEOF
5973 done
5975 # Emulation library used on NetBSD.
5976 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5977 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
5978 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5979 echo $ECHO_N "(cached) $ECHO_C" >&6
5980 else
5981 ac_check_lib_save_LIBS=$LIBS
5982 LIBS="-lossaudio $LIBS"
5983 cat >conftest.$ac_ext <<_ACEOF
5984 /* confdefs.h. */
5985 _ACEOF
5986 cat confdefs.h >>conftest.$ac_ext
5987 cat >>conftest.$ac_ext <<_ACEOF
5988 /* end confdefs.h. */
5990 /* Override any GCC internal prototype to avoid an error.
5991 Use char because int might match the return type of a GCC
5992 builtin and then its argument prototype would still apply. */
5993 #ifdef __cplusplus
5994 extern "C"
5995 #endif
5996 char _oss_ioctl ();
5998 main ()
6000 return _oss_ioctl ();
6002 return 0;
6004 _ACEOF
6005 rm -f conftest.$ac_objext conftest$ac_exeext
6006 if { (ac_try="$ac_link"
6007 case "(($ac_try" in
6008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6009 *) ac_try_echo=$ac_try;;
6010 esac
6011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6012 (eval "$ac_link") 2>conftest.er1
6013 ac_status=$?
6014 grep -v '^ *+' conftest.er1 >conftest.err
6015 rm -f conftest.er1
6016 cat conftest.err >&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); } && {
6019 test -z "$ac_c_werror_flag" ||
6020 test ! -s conftest.err
6021 } && test -s conftest$ac_exeext &&
6022 $as_test_x conftest$ac_exeext; then
6023 ac_cv_lib_ossaudio__oss_ioctl=yes
6024 else
6025 echo "$as_me: failed program was:" >&5
6026 sed 's/^/| /' conftest.$ac_ext >&5
6028 ac_cv_lib_ossaudio__oss_ioctl=no
6031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6032 conftest$ac_exeext conftest.$ac_ext
6033 LIBS=$ac_check_lib_save_LIBS
6035 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6036 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6037 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6038 LIBSOUND=-lossaudio
6039 else
6040 LIBSOUND=
6045 ALSA_REQUIRED=1.0.0
6046 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6048 succeeded=no
6050 # Extract the first word of "pkg-config", so it can be a program name with args.
6051 set dummy pkg-config; ac_word=$2
6052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6054 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6055 echo $ECHO_N "(cached) $ECHO_C" >&6
6056 else
6057 case $PKG_CONFIG in
6058 [\\/]* | ?:[\\/]*)
6059 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063 for as_dir in $PATH
6065 IFS=$as_save_IFS
6066 test -z "$as_dir" && as_dir=.
6067 for ac_exec_ext in '' $ac_executable_extensions; do
6068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6069 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6071 break 2
6073 done
6074 done
6075 IFS=$as_save_IFS
6077 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6079 esac
6081 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6082 if test -n "$PKG_CONFIG"; then
6083 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6084 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6085 else
6086 { echo "$as_me:$LINENO: result: no" >&5
6087 echo "${ECHO_T}no" >&6; }
6092 if test "$PKG_CONFIG" = "no" ; then
6093 HAVE_ALSA=no
6094 else
6095 PKG_CONFIG_MIN_VERSION=0.9.0
6096 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6097 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6098 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6100 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6101 { echo "$as_me:$LINENO: result: yes" >&5
6102 echo "${ECHO_T}yes" >&6; }
6103 succeeded=yes
6105 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6106 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6107 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6108 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6109 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6111 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6112 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6113 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6114 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6115 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6116 else
6117 { echo "$as_me:$LINENO: result: no" >&5
6118 echo "${ECHO_T}no" >&6; }
6119 ALSA_CFLAGS=""
6120 ALSA_LIBS=""
6121 ## If we have a custom action on failure, don't print errors, but
6122 ## do set a variable so people can do so.
6123 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6129 else
6130 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6131 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6135 if test $succeeded = yes; then
6136 HAVE_ALSA=yes
6137 else
6138 HAVE_ALSA=no
6141 if test $HAVE_ALSA = yes; then
6142 SAVE_CFLAGS="$CFLAGS"
6143 SAVE_LDFLAGS="$LDFLAGS"
6144 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6145 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6146 cat >conftest.$ac_ext <<_ACEOF
6147 /* confdefs.h. */
6148 _ACEOF
6149 cat confdefs.h >>conftest.$ac_ext
6150 cat >>conftest.$ac_ext <<_ACEOF
6151 /* end confdefs.h. */
6152 #include <asoundlib.h>
6154 main ()
6156 snd_lib_error_set_handler (0);
6158 return 0;
6160 _ACEOF
6161 rm -f conftest.$ac_objext
6162 if { (ac_try="$ac_compile"
6163 case "(($ac_try" in
6164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6165 *) ac_try_echo=$ac_try;;
6166 esac
6167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6168 (eval "$ac_compile") 2>conftest.er1
6169 ac_status=$?
6170 grep -v '^ *+' conftest.er1 >conftest.err
6171 rm -f conftest.er1
6172 cat conftest.err >&5
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); } && {
6175 test -z "$ac_c_werror_flag" ||
6176 test ! -s conftest.err
6177 } && test -s conftest.$ac_objext; then
6178 emacs_alsa_normal=yes
6179 else
6180 echo "$as_me: failed program was:" >&5
6181 sed 's/^/| /' conftest.$ac_ext >&5
6183 emacs_alsa_normal=no
6186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6187 if test "$emacs_alsa_normal" != yes; then
6188 cat >conftest.$ac_ext <<_ACEOF
6189 /* confdefs.h. */
6190 _ACEOF
6191 cat confdefs.h >>conftest.$ac_ext
6192 cat >>conftest.$ac_ext <<_ACEOF
6193 /* end confdefs.h. */
6194 #include <alsa/asoundlib.h>
6196 main ()
6198 snd_lib_error_set_handler (0);
6200 return 0;
6202 _ACEOF
6203 rm -f conftest.$ac_objext
6204 if { (ac_try="$ac_compile"
6205 case "(($ac_try" in
6206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6207 *) ac_try_echo=$ac_try;;
6208 esac
6209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6210 (eval "$ac_compile") 2>conftest.er1
6211 ac_status=$?
6212 grep -v '^ *+' conftest.er1 >conftest.err
6213 rm -f conftest.er1
6214 cat conftest.err >&5
6215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); } && {
6217 test -z "$ac_c_werror_flag" ||
6218 test ! -s conftest.err
6219 } && test -s conftest.$ac_objext; then
6220 emacs_alsa_subdir=yes
6221 else
6222 echo "$as_me: failed program was:" >&5
6223 sed 's/^/| /' conftest.$ac_ext >&5
6225 emacs_alsa_subdir=no
6228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6229 if test "$emacs_alsa_subdir" != yes; then
6230 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6231 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6232 { (exit 1); exit 1; }; }
6234 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6237 CFLAGS="$SAVE_CFLAGS"
6238 LDFLAGS="$SAVE_LDFLAGS"
6239 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6240 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6242 cat >>confdefs.h <<\_ACEOF
6243 #define HAVE_ALSA 1
6244 _ACEOF
6275 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6276 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6277 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6278 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6279 sys/utsname.h pwd.h
6281 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6283 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6286 echo $ECHO_N "(cached) $ECHO_C" >&6
6288 ac_res=`eval echo '${'$as_ac_Header'}'`
6289 { echo "$as_me:$LINENO: result: $ac_res" >&5
6290 echo "${ECHO_T}$ac_res" >&6; }
6291 else
6292 # Is the header compilable?
6293 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6294 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6295 cat >conftest.$ac_ext <<_ACEOF
6296 /* confdefs.h. */
6297 _ACEOF
6298 cat confdefs.h >>conftest.$ac_ext
6299 cat >>conftest.$ac_ext <<_ACEOF
6300 /* end confdefs.h. */
6301 $ac_includes_default
6302 #include <$ac_header>
6303 _ACEOF
6304 rm -f conftest.$ac_objext
6305 if { (ac_try="$ac_compile"
6306 case "(($ac_try" in
6307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6308 *) ac_try_echo=$ac_try;;
6309 esac
6310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6311 (eval "$ac_compile") 2>conftest.er1
6312 ac_status=$?
6313 grep -v '^ *+' conftest.er1 >conftest.err
6314 rm -f conftest.er1
6315 cat conftest.err >&5
6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317 (exit $ac_status); } && {
6318 test -z "$ac_c_werror_flag" ||
6319 test ! -s conftest.err
6320 } && test -s conftest.$ac_objext; then
6321 ac_header_compiler=yes
6322 else
6323 echo "$as_me: failed program was:" >&5
6324 sed 's/^/| /' conftest.$ac_ext >&5
6326 ac_header_compiler=no
6329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6330 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6331 echo "${ECHO_T}$ac_header_compiler" >&6; }
6333 # Is the header present?
6334 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6335 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6336 cat >conftest.$ac_ext <<_ACEOF
6337 /* confdefs.h. */
6338 _ACEOF
6339 cat confdefs.h >>conftest.$ac_ext
6340 cat >>conftest.$ac_ext <<_ACEOF
6341 /* end confdefs.h. */
6342 #include <$ac_header>
6343 _ACEOF
6344 if { (ac_try="$ac_cpp conftest.$ac_ext"
6345 case "(($ac_try" in
6346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6347 *) ac_try_echo=$ac_try;;
6348 esac
6349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6350 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6351 ac_status=$?
6352 grep -v '^ *+' conftest.er1 >conftest.err
6353 rm -f conftest.er1
6354 cat conftest.err >&5
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); } >/dev/null && {
6357 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6358 test ! -s conftest.err
6359 }; then
6360 ac_header_preproc=yes
6361 else
6362 echo "$as_me: failed program was:" >&5
6363 sed 's/^/| /' conftest.$ac_ext >&5
6365 ac_header_preproc=no
6368 rm -f conftest.err conftest.$ac_ext
6369 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6370 echo "${ECHO_T}$ac_header_preproc" >&6; }
6372 # So? What about this header?
6373 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6374 yes:no: )
6375 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6376 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6377 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6378 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6379 ac_header_preproc=yes
6381 no:yes:* )
6382 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6383 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6384 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6385 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6386 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6387 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6388 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6389 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6390 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6391 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6392 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6393 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6396 esac
6397 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6400 echo $ECHO_N "(cached) $ECHO_C" >&6
6401 else
6402 eval "$as_ac_Header=\$ac_header_preproc"
6404 ac_res=`eval echo '${'$as_ac_Header'}'`
6405 { echo "$as_me:$LINENO: result: $ac_res" >&5
6406 echo "${ECHO_T}$ac_res" >&6; }
6409 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6410 cat >>confdefs.h <<_ACEOF
6411 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6412 _ACEOF
6416 done
6419 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6420 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6421 cat >conftest.$ac_ext <<_ACEOF
6422 /* confdefs.h. */
6423 _ACEOF
6424 cat confdefs.h >>conftest.$ac_ext
6425 cat >>conftest.$ac_ext <<_ACEOF
6426 /* end confdefs.h. */
6427 #include <sys/personality.h>
6429 main ()
6431 personality (PER_LINUX32)
6433 return 0;
6435 _ACEOF
6436 rm -f conftest.$ac_objext
6437 if { (ac_try="$ac_compile"
6438 case "(($ac_try" in
6439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6440 *) ac_try_echo=$ac_try;;
6441 esac
6442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6443 (eval "$ac_compile") 2>conftest.er1
6444 ac_status=$?
6445 grep -v '^ *+' conftest.er1 >conftest.err
6446 rm -f conftest.er1
6447 cat conftest.err >&5
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); } && {
6450 test -z "$ac_c_werror_flag" ||
6451 test ! -s conftest.err
6452 } && test -s conftest.$ac_objext; then
6453 emacs_cv_personality_linux32=yes
6454 else
6455 echo "$as_me: failed program was:" >&5
6456 sed 's/^/| /' conftest.$ac_ext >&5
6458 emacs_cv_personality_linux32=no
6461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6462 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6463 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6465 if test $emacs_cv_personality_linux32 = yes; then
6467 cat >>confdefs.h <<\_ACEOF
6468 #define HAVE_PERSONALITY_LINUX32 1
6469 _ACEOF
6474 for ac_header in term.h
6476 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6477 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6479 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6480 echo $ECHO_N "(cached) $ECHO_C" >&6
6481 else
6482 cat >conftest.$ac_ext <<_ACEOF
6483 /* confdefs.h. */
6484 _ACEOF
6485 cat confdefs.h >>conftest.$ac_ext
6486 cat >>conftest.$ac_ext <<_ACEOF
6487 /* end confdefs.h. */
6488 #include <$ac_header>
6489 _ACEOF
6490 if { (ac_try="$ac_cpp conftest.$ac_ext"
6491 case "(($ac_try" in
6492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6493 *) ac_try_echo=$ac_try;;
6494 esac
6495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6496 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6497 ac_status=$?
6498 grep -v '^ *+' conftest.er1 >conftest.err
6499 rm -f conftest.er1
6500 cat conftest.err >&5
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); } >/dev/null && {
6503 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6504 test ! -s conftest.err
6505 }; then
6506 eval "$as_ac_Header=yes"
6507 else
6508 echo "$as_me: failed program was:" >&5
6509 sed 's/^/| /' conftest.$ac_ext >&5
6511 eval "$as_ac_Header=no"
6514 rm -f conftest.err conftest.$ac_ext
6516 ac_res=`eval echo '${'$as_ac_Header'}'`
6517 { echo "$as_me:$LINENO: result: $ac_res" >&5
6518 echo "${ECHO_T}$ac_res" >&6; }
6519 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6520 cat >>confdefs.h <<_ACEOF
6521 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6522 _ACEOF
6526 done
6528 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6529 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6530 if test "${ac_cv_header_stdc+set}" = set; then
6531 echo $ECHO_N "(cached) $ECHO_C" >&6
6532 else
6533 cat >conftest.$ac_ext <<_ACEOF
6534 /* confdefs.h. */
6535 _ACEOF
6536 cat confdefs.h >>conftest.$ac_ext
6537 cat >>conftest.$ac_ext <<_ACEOF
6538 /* end confdefs.h. */
6539 #include <stdlib.h>
6540 #include <stdarg.h>
6541 #include <string.h>
6542 #include <float.h>
6545 main ()
6549 return 0;
6551 _ACEOF
6552 rm -f conftest.$ac_objext
6553 if { (ac_try="$ac_compile"
6554 case "(($ac_try" in
6555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6556 *) ac_try_echo=$ac_try;;
6557 esac
6558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6559 (eval "$ac_compile") 2>conftest.er1
6560 ac_status=$?
6561 grep -v '^ *+' conftest.er1 >conftest.err
6562 rm -f conftest.er1
6563 cat conftest.err >&5
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); } && {
6566 test -z "$ac_c_werror_flag" ||
6567 test ! -s conftest.err
6568 } && test -s conftest.$ac_objext; then
6569 ac_cv_header_stdc=yes
6570 else
6571 echo "$as_me: failed program was:" >&5
6572 sed 's/^/| /' conftest.$ac_ext >&5
6574 ac_cv_header_stdc=no
6577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6579 if test $ac_cv_header_stdc = yes; then
6580 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6581 cat >conftest.$ac_ext <<_ACEOF
6582 /* confdefs.h. */
6583 _ACEOF
6584 cat confdefs.h >>conftest.$ac_ext
6585 cat >>conftest.$ac_ext <<_ACEOF
6586 /* end confdefs.h. */
6587 #include <string.h>
6589 _ACEOF
6590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6591 $EGREP "memchr" >/dev/null 2>&1; then
6593 else
6594 ac_cv_header_stdc=no
6596 rm -f conftest*
6600 if test $ac_cv_header_stdc = yes; then
6601 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6602 cat >conftest.$ac_ext <<_ACEOF
6603 /* confdefs.h. */
6604 _ACEOF
6605 cat confdefs.h >>conftest.$ac_ext
6606 cat >>conftest.$ac_ext <<_ACEOF
6607 /* end confdefs.h. */
6608 #include <stdlib.h>
6610 _ACEOF
6611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6612 $EGREP "free" >/dev/null 2>&1; then
6614 else
6615 ac_cv_header_stdc=no
6617 rm -f conftest*
6621 if test $ac_cv_header_stdc = yes; then
6622 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6623 if test "$cross_compiling" = yes; then
6625 else
6626 cat >conftest.$ac_ext <<_ACEOF
6627 /* confdefs.h. */
6628 _ACEOF
6629 cat confdefs.h >>conftest.$ac_ext
6630 cat >>conftest.$ac_ext <<_ACEOF
6631 /* end confdefs.h. */
6632 #include <ctype.h>
6633 #include <stdlib.h>
6634 #if ((' ' & 0x0FF) == 0x020)
6635 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6636 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6637 #else
6638 # define ISLOWER(c) \
6639 (('a' <= (c) && (c) <= 'i') \
6640 || ('j' <= (c) && (c) <= 'r') \
6641 || ('s' <= (c) && (c) <= 'z'))
6642 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6643 #endif
6645 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6647 main ()
6649 int i;
6650 for (i = 0; i < 256; i++)
6651 if (XOR (islower (i), ISLOWER (i))
6652 || toupper (i) != TOUPPER (i))
6653 return 2;
6654 return 0;
6656 _ACEOF
6657 rm -f conftest$ac_exeext
6658 if { (ac_try="$ac_link"
6659 case "(($ac_try" in
6660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6661 *) ac_try_echo=$ac_try;;
6662 esac
6663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6664 (eval "$ac_link") 2>&5
6665 ac_status=$?
6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6668 { (case "(($ac_try" in
6669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6670 *) ac_try_echo=$ac_try;;
6671 esac
6672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6673 (eval "$ac_try") 2>&5
6674 ac_status=$?
6675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 (exit $ac_status); }; }; then
6678 else
6679 echo "$as_me: program exited with status $ac_status" >&5
6680 echo "$as_me: failed program was:" >&5
6681 sed 's/^/| /' conftest.$ac_ext >&5
6683 ( exit $ac_status )
6684 ac_cv_header_stdc=no
6686 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6692 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6693 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6694 if test $ac_cv_header_stdc = yes; then
6696 cat >>confdefs.h <<\_ACEOF
6697 #define STDC_HEADERS 1
6698 _ACEOF
6702 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6703 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6704 if test "${ac_cv_header_time+set}" = set; then
6705 echo $ECHO_N "(cached) $ECHO_C" >&6
6706 else
6707 cat >conftest.$ac_ext <<_ACEOF
6708 /* confdefs.h. */
6709 _ACEOF
6710 cat confdefs.h >>conftest.$ac_ext
6711 cat >>conftest.$ac_ext <<_ACEOF
6712 /* end confdefs.h. */
6713 #include <sys/types.h>
6714 #include <sys/time.h>
6715 #include <time.h>
6718 main ()
6720 if ((struct tm *) 0)
6721 return 0;
6723 return 0;
6725 _ACEOF
6726 rm -f conftest.$ac_objext
6727 if { (ac_try="$ac_compile"
6728 case "(($ac_try" in
6729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6730 *) ac_try_echo=$ac_try;;
6731 esac
6732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6733 (eval "$ac_compile") 2>conftest.er1
6734 ac_status=$?
6735 grep -v '^ *+' conftest.er1 >conftest.err
6736 rm -f conftest.er1
6737 cat conftest.err >&5
6738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739 (exit $ac_status); } && {
6740 test -z "$ac_c_werror_flag" ||
6741 test ! -s conftest.err
6742 } && test -s conftest.$ac_objext; then
6743 ac_cv_header_time=yes
6744 else
6745 echo "$as_me: failed program was:" >&5
6746 sed 's/^/| /' conftest.$ac_ext >&5
6748 ac_cv_header_time=no
6751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6753 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6754 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6755 if test $ac_cv_header_time = yes; then
6757 cat >>confdefs.h <<\_ACEOF
6758 #define TIME_WITH_SYS_TIME 1
6759 _ACEOF
6763 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6764 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6765 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6766 echo $ECHO_N "(cached) $ECHO_C" >&6
6767 else
6768 cat >conftest.$ac_ext <<_ACEOF
6769 /* confdefs.h. */
6770 _ACEOF
6771 cat confdefs.h >>conftest.$ac_ext
6772 cat >>conftest.$ac_ext <<_ACEOF
6773 /* end confdefs.h. */
6774 $ac_includes_default
6776 main ()
6778 #ifndef sys_siglist
6779 (void) sys_siglist;
6780 #endif
6783 return 0;
6785 _ACEOF
6786 rm -f conftest.$ac_objext
6787 if { (ac_try="$ac_compile"
6788 case "(($ac_try" in
6789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6790 *) ac_try_echo=$ac_try;;
6791 esac
6792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6793 (eval "$ac_compile") 2>conftest.er1
6794 ac_status=$?
6795 grep -v '^ *+' conftest.er1 >conftest.err
6796 rm -f conftest.er1
6797 cat conftest.err >&5
6798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799 (exit $ac_status); } && {
6800 test -z "$ac_c_werror_flag" ||
6801 test ! -s conftest.err
6802 } && test -s conftest.$ac_objext; then
6803 ac_cv_have_decl_sys_siglist=yes
6804 else
6805 echo "$as_me: failed program was:" >&5
6806 sed 's/^/| /' conftest.$ac_ext >&5
6808 ac_cv_have_decl_sys_siglist=no
6811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6813 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6814 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6815 if test $ac_cv_have_decl_sys_siglist = yes; then
6817 cat >>confdefs.h <<_ACEOF
6818 #define HAVE_DECL_SYS_SIGLIST 1
6819 _ACEOF
6822 else
6823 cat >>confdefs.h <<_ACEOF
6824 #define HAVE_DECL_SYS_SIGLIST 0
6825 _ACEOF
6831 if test $ac_cv_have_decl_sys_siglist != yes; then
6832 # For Tru64, at least:
6833 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6834 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
6835 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6836 echo $ECHO_N "(cached) $ECHO_C" >&6
6837 else
6838 cat >conftest.$ac_ext <<_ACEOF
6839 /* confdefs.h. */
6840 _ACEOF
6841 cat confdefs.h >>conftest.$ac_ext
6842 cat >>conftest.$ac_ext <<_ACEOF
6843 /* end confdefs.h. */
6844 $ac_includes_default
6846 main ()
6848 #ifndef __sys_siglist
6849 (void) __sys_siglist;
6850 #endif
6853 return 0;
6855 _ACEOF
6856 rm -f conftest.$ac_objext
6857 if { (ac_try="$ac_compile"
6858 case "(($ac_try" in
6859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6860 *) ac_try_echo=$ac_try;;
6861 esac
6862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6863 (eval "$ac_compile") 2>conftest.er1
6864 ac_status=$?
6865 grep -v '^ *+' conftest.er1 >conftest.err
6866 rm -f conftest.er1
6867 cat conftest.err >&5
6868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869 (exit $ac_status); } && {
6870 test -z "$ac_c_werror_flag" ||
6871 test ! -s conftest.err
6872 } && test -s conftest.$ac_objext; then
6873 ac_cv_have_decl___sys_siglist=yes
6874 else
6875 echo "$as_me: failed program was:" >&5
6876 sed 's/^/| /' conftest.$ac_ext >&5
6878 ac_cv_have_decl___sys_siglist=no
6881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6883 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6884 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
6885 if test $ac_cv_have_decl___sys_siglist = yes; then
6887 cat >>confdefs.h <<_ACEOF
6888 #define HAVE_DECL___SYS_SIGLIST 1
6889 _ACEOF
6892 else
6893 cat >>confdefs.h <<_ACEOF
6894 #define HAVE_DECL___SYS_SIGLIST 0
6895 _ACEOF
6901 if test $ac_cv_have_decl___sys_siglist = yes; then
6903 cat >>confdefs.h <<\_ACEOF
6904 #define sys_siglist __sys_siglist
6905 _ACEOF
6909 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6910 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6911 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6912 echo $ECHO_N "(cached) $ECHO_C" >&6
6913 else
6914 cat >conftest.$ac_ext <<_ACEOF
6915 /* confdefs.h. */
6916 _ACEOF
6917 cat confdefs.h >>conftest.$ac_ext
6918 cat >>conftest.$ac_ext <<_ACEOF
6919 /* end confdefs.h. */
6920 #include <sys/types.h>
6921 #include <sys/wait.h>
6922 #ifndef WEXITSTATUS
6923 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6924 #endif
6925 #ifndef WIFEXITED
6926 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6927 #endif
6930 main ()
6932 int s;
6933 wait (&s);
6934 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6936 return 0;
6938 _ACEOF
6939 rm -f conftest.$ac_objext
6940 if { (ac_try="$ac_compile"
6941 case "(($ac_try" in
6942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6943 *) ac_try_echo=$ac_try;;
6944 esac
6945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6946 (eval "$ac_compile") 2>conftest.er1
6947 ac_status=$?
6948 grep -v '^ *+' conftest.er1 >conftest.err
6949 rm -f conftest.er1
6950 cat conftest.err >&5
6951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952 (exit $ac_status); } && {
6953 test -z "$ac_c_werror_flag" ||
6954 test ! -s conftest.err
6955 } && test -s conftest.$ac_objext; then
6956 ac_cv_header_sys_wait_h=yes
6957 else
6958 echo "$as_me: failed program was:" >&5
6959 sed 's/^/| /' conftest.$ac_ext >&5
6961 ac_cv_header_sys_wait_h=no
6964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6966 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6967 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6968 if test $ac_cv_header_sys_wait_h = yes; then
6970 cat >>confdefs.h <<\_ACEOF
6971 #define HAVE_SYS_WAIT_H 1
6972 _ACEOF
6977 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6978 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
6979 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6980 echo $ECHO_N "(cached) $ECHO_C" >&6
6981 else
6982 cat >conftest.$ac_ext <<_ACEOF
6983 /* confdefs.h. */
6984 _ACEOF
6985 cat confdefs.h >>conftest.$ac_ext
6986 cat >>conftest.$ac_ext <<_ACEOF
6987 /* end confdefs.h. */
6988 #ifdef TIME_WITH_SYS_TIME
6989 #include <sys/time.h>
6990 #include <time.h>
6991 #else
6992 #ifdef HAVE_SYS_TIME_H
6993 #include <sys/time.h>
6994 #else
6995 #include <time.h>
6996 #endif
6997 #endif
6998 #ifdef HAVE_UTIME_H
6999 #include <utime.h>
7000 #endif
7002 main ()
7004 static struct utimbuf x; x.actime = x.modtime;
7006 return 0;
7008 _ACEOF
7009 rm -f conftest.$ac_objext
7010 if { (ac_try="$ac_compile"
7011 case "(($ac_try" in
7012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7013 *) ac_try_echo=$ac_try;;
7014 esac
7015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7016 (eval "$ac_compile") 2>conftest.er1
7017 ac_status=$?
7018 grep -v '^ *+' conftest.er1 >conftest.err
7019 rm -f conftest.er1
7020 cat conftest.err >&5
7021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022 (exit $ac_status); } && {
7023 test -z "$ac_c_werror_flag" ||
7024 test ! -s conftest.err
7025 } && test -s conftest.$ac_objext; then
7026 emacs_cv_struct_utimbuf=yes
7027 else
7028 echo "$as_me: failed program was:" >&5
7029 sed 's/^/| /' conftest.$ac_ext >&5
7031 emacs_cv_struct_utimbuf=no
7034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7036 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7037 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7038 if test $emacs_cv_struct_utimbuf = yes; then
7040 cat >>confdefs.h <<\_ACEOF
7041 #define HAVE_STRUCT_UTIMBUF 1
7042 _ACEOF
7046 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7047 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7048 if test "${ac_cv_type_signal+set}" = set; then
7049 echo $ECHO_N "(cached) $ECHO_C" >&6
7050 else
7051 cat >conftest.$ac_ext <<_ACEOF
7052 /* confdefs.h. */
7053 _ACEOF
7054 cat confdefs.h >>conftest.$ac_ext
7055 cat >>conftest.$ac_ext <<_ACEOF
7056 /* end confdefs.h. */
7057 #include <sys/types.h>
7058 #include <signal.h>
7061 main ()
7063 return *(signal (0, 0)) (0) == 1;
7065 return 0;
7067 _ACEOF
7068 rm -f conftest.$ac_objext
7069 if { (ac_try="$ac_compile"
7070 case "(($ac_try" in
7071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7072 *) ac_try_echo=$ac_try;;
7073 esac
7074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7075 (eval "$ac_compile") 2>conftest.er1
7076 ac_status=$?
7077 grep -v '^ *+' conftest.er1 >conftest.err
7078 rm -f conftest.er1
7079 cat conftest.err >&5
7080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); } && {
7082 test -z "$ac_c_werror_flag" ||
7083 test ! -s conftest.err
7084 } && test -s conftest.$ac_objext; then
7085 ac_cv_type_signal=int
7086 else
7087 echo "$as_me: failed program was:" >&5
7088 sed 's/^/| /' conftest.$ac_ext >&5
7090 ac_cv_type_signal=void
7093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7095 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7096 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7098 cat >>confdefs.h <<_ACEOF
7099 #define RETSIGTYPE $ac_cv_type_signal
7100 _ACEOF
7104 { echo "$as_me:$LINENO: checking for speed_t" >&5
7105 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7106 if test "${emacs_cv_speed_t+set}" = set; then
7107 echo $ECHO_N "(cached) $ECHO_C" >&6
7108 else
7109 cat >conftest.$ac_ext <<_ACEOF
7110 /* confdefs.h. */
7111 _ACEOF
7112 cat confdefs.h >>conftest.$ac_ext
7113 cat >>conftest.$ac_ext <<_ACEOF
7114 /* end confdefs.h. */
7115 #include <termios.h>
7117 main ()
7119 speed_t x = 1;
7121 return 0;
7123 _ACEOF
7124 rm -f conftest.$ac_objext
7125 if { (ac_try="$ac_compile"
7126 case "(($ac_try" in
7127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7128 *) ac_try_echo=$ac_try;;
7129 esac
7130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7131 (eval "$ac_compile") 2>conftest.er1
7132 ac_status=$?
7133 grep -v '^ *+' conftest.er1 >conftest.err
7134 rm -f conftest.er1
7135 cat conftest.err >&5
7136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137 (exit $ac_status); } && {
7138 test -z "$ac_c_werror_flag" ||
7139 test ! -s conftest.err
7140 } && test -s conftest.$ac_objext; then
7141 emacs_cv_speed_t=yes
7142 else
7143 echo "$as_me: failed program was:" >&5
7144 sed 's/^/| /' conftest.$ac_ext >&5
7146 emacs_cv_speed_t=no
7149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7151 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7152 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7153 if test $emacs_cv_speed_t = yes; then
7155 cat >>confdefs.h <<\_ACEOF
7156 #define HAVE_SPEED_T 1
7157 _ACEOF
7161 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7162 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7163 if test "${emacs_cv_struct_timeval+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7165 else
7166 cat >conftest.$ac_ext <<_ACEOF
7167 /* confdefs.h. */
7168 _ACEOF
7169 cat confdefs.h >>conftest.$ac_ext
7170 cat >>conftest.$ac_ext <<_ACEOF
7171 /* end confdefs.h. */
7172 #ifdef TIME_WITH_SYS_TIME
7173 #include <sys/time.h>
7174 #include <time.h>
7175 #else
7176 #ifdef HAVE_SYS_TIME_H
7177 #include <sys/time.h>
7178 #else
7179 #include <time.h>
7180 #endif
7181 #endif
7183 main ()
7185 static struct timeval x; x.tv_sec = x.tv_usec;
7187 return 0;
7189 _ACEOF
7190 rm -f conftest.$ac_objext
7191 if { (ac_try="$ac_compile"
7192 case "(($ac_try" in
7193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7194 *) ac_try_echo=$ac_try;;
7195 esac
7196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7197 (eval "$ac_compile") 2>conftest.er1
7198 ac_status=$?
7199 grep -v '^ *+' conftest.er1 >conftest.err
7200 rm -f conftest.er1
7201 cat conftest.err >&5
7202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203 (exit $ac_status); } && {
7204 test -z "$ac_c_werror_flag" ||
7205 test ! -s conftest.err
7206 } && test -s conftest.$ac_objext; then
7207 emacs_cv_struct_timeval=yes
7208 else
7209 echo "$as_me: failed program was:" >&5
7210 sed 's/^/| /' conftest.$ac_ext >&5
7212 emacs_cv_struct_timeval=no
7215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7217 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7218 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7219 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7220 if test $emacs_cv_struct_timeval = yes; then
7222 cat >>confdefs.h <<\_ACEOF
7223 #define HAVE_TIMEVAL 1
7224 _ACEOF
7228 { echo "$as_me:$LINENO: checking for struct exception" >&5
7229 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7230 if test "${emacs_cv_struct_exception+set}" = set; then
7231 echo $ECHO_N "(cached) $ECHO_C" >&6
7232 else
7233 cat >conftest.$ac_ext <<_ACEOF
7234 /* confdefs.h. */
7235 _ACEOF
7236 cat confdefs.h >>conftest.$ac_ext
7237 cat >>conftest.$ac_ext <<_ACEOF
7238 /* end confdefs.h. */
7239 #include <math.h>
7241 main ()
7243 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7245 return 0;
7247 _ACEOF
7248 rm -f conftest.$ac_objext
7249 if { (ac_try="$ac_compile"
7250 case "(($ac_try" in
7251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7252 *) ac_try_echo=$ac_try;;
7253 esac
7254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7255 (eval "$ac_compile") 2>conftest.er1
7256 ac_status=$?
7257 grep -v '^ *+' conftest.er1 >conftest.err
7258 rm -f conftest.er1
7259 cat conftest.err >&5
7260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261 (exit $ac_status); } && {
7262 test -z "$ac_c_werror_flag" ||
7263 test ! -s conftest.err
7264 } && test -s conftest.$ac_objext; then
7265 emacs_cv_struct_exception=yes
7266 else
7267 echo "$as_me: failed program was:" >&5
7268 sed 's/^/| /' conftest.$ac_ext >&5
7270 emacs_cv_struct_exception=no
7273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7275 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7276 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7277 HAVE_EXCEPTION=$emacs_cv_struct_exception
7278 if test $emacs_cv_struct_exception != yes; then
7280 cat >>confdefs.h <<\_ACEOF
7281 #define NO_MATHERR 1
7282 _ACEOF
7287 for ac_header in sys/socket.h
7289 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7290 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7291 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7294 echo $ECHO_N "(cached) $ECHO_C" >&6
7296 ac_res=`eval echo '${'$as_ac_Header'}'`
7297 { echo "$as_me:$LINENO: result: $ac_res" >&5
7298 echo "${ECHO_T}$ac_res" >&6; }
7299 else
7300 # Is the header compilable?
7301 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7302 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7303 cat >conftest.$ac_ext <<_ACEOF
7304 /* confdefs.h. */
7305 _ACEOF
7306 cat confdefs.h >>conftest.$ac_ext
7307 cat >>conftest.$ac_ext <<_ACEOF
7308 /* end confdefs.h. */
7309 $ac_includes_default
7310 #include <$ac_header>
7311 _ACEOF
7312 rm -f conftest.$ac_objext
7313 if { (ac_try="$ac_compile"
7314 case "(($ac_try" in
7315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7316 *) ac_try_echo=$ac_try;;
7317 esac
7318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7319 (eval "$ac_compile") 2>conftest.er1
7320 ac_status=$?
7321 grep -v '^ *+' conftest.er1 >conftest.err
7322 rm -f conftest.er1
7323 cat conftest.err >&5
7324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7325 (exit $ac_status); } && {
7326 test -z "$ac_c_werror_flag" ||
7327 test ! -s conftest.err
7328 } && test -s conftest.$ac_objext; then
7329 ac_header_compiler=yes
7330 else
7331 echo "$as_me: failed program was:" >&5
7332 sed 's/^/| /' conftest.$ac_ext >&5
7334 ac_header_compiler=no
7337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7338 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7339 echo "${ECHO_T}$ac_header_compiler" >&6; }
7341 # Is the header present?
7342 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7343 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7344 cat >conftest.$ac_ext <<_ACEOF
7345 /* confdefs.h. */
7346 _ACEOF
7347 cat confdefs.h >>conftest.$ac_ext
7348 cat >>conftest.$ac_ext <<_ACEOF
7349 /* end confdefs.h. */
7350 #include <$ac_header>
7351 _ACEOF
7352 if { (ac_try="$ac_cpp conftest.$ac_ext"
7353 case "(($ac_try" in
7354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7355 *) ac_try_echo=$ac_try;;
7356 esac
7357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7358 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7359 ac_status=$?
7360 grep -v '^ *+' conftest.er1 >conftest.err
7361 rm -f conftest.er1
7362 cat conftest.err >&5
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); } >/dev/null && {
7365 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7366 test ! -s conftest.err
7367 }; then
7368 ac_header_preproc=yes
7369 else
7370 echo "$as_me: failed program was:" >&5
7371 sed 's/^/| /' conftest.$ac_ext >&5
7373 ac_header_preproc=no
7376 rm -f conftest.err conftest.$ac_ext
7377 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7378 echo "${ECHO_T}$ac_header_preproc" >&6; }
7380 # So? What about this header?
7381 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7382 yes:no: )
7383 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7384 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7386 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7387 ac_header_preproc=yes
7389 no:yes:* )
7390 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7391 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7392 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7393 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7394 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7395 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7396 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7397 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7399 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7400 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7401 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7404 esac
7405 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7407 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7408 echo $ECHO_N "(cached) $ECHO_C" >&6
7409 else
7410 eval "$as_ac_Header=\$ac_header_preproc"
7412 ac_res=`eval echo '${'$as_ac_Header'}'`
7413 { echo "$as_me:$LINENO: result: $ac_res" >&5
7414 echo "${ECHO_T}$ac_res" >&6; }
7417 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7418 cat >>confdefs.h <<_ACEOF
7419 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7420 _ACEOF
7424 done
7427 for ac_header in net/if.h
7429 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7430 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7432 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7433 echo $ECHO_N "(cached) $ECHO_C" >&6
7434 else
7435 cat >conftest.$ac_ext <<_ACEOF
7436 /* confdefs.h. */
7437 _ACEOF
7438 cat confdefs.h >>conftest.$ac_ext
7439 cat >>conftest.$ac_ext <<_ACEOF
7440 /* end confdefs.h. */
7441 $ac_includes_default
7442 #if HAVE_SYS_SOCKET_H
7443 #include <sys/socket.h>
7444 #endif
7446 #include <$ac_header>
7447 _ACEOF
7448 rm -f conftest.$ac_objext
7449 if { (ac_try="$ac_compile"
7450 case "(($ac_try" in
7451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7452 *) ac_try_echo=$ac_try;;
7453 esac
7454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7455 (eval "$ac_compile") 2>conftest.er1
7456 ac_status=$?
7457 grep -v '^ *+' conftest.er1 >conftest.err
7458 rm -f conftest.er1
7459 cat conftest.err >&5
7460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461 (exit $ac_status); } && {
7462 test -z "$ac_c_werror_flag" ||
7463 test ! -s conftest.err
7464 } && test -s conftest.$ac_objext; then
7465 eval "$as_ac_Header=yes"
7466 else
7467 echo "$as_me: failed program was:" >&5
7468 sed 's/^/| /' conftest.$ac_ext >&5
7470 eval "$as_ac_Header=no"
7473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7475 ac_res=`eval echo '${'$as_ac_Header'}'`
7476 { echo "$as_me:$LINENO: result: $ac_res" >&5
7477 echo "${ECHO_T}$ac_res" >&6; }
7478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7479 cat >>confdefs.h <<_ACEOF
7480 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7481 _ACEOF
7485 done
7488 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7489 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7490 if test "${ac_cv_struct_tm+set}" = set; then
7491 echo $ECHO_N "(cached) $ECHO_C" >&6
7492 else
7493 cat >conftest.$ac_ext <<_ACEOF
7494 /* confdefs.h. */
7495 _ACEOF
7496 cat confdefs.h >>conftest.$ac_ext
7497 cat >>conftest.$ac_ext <<_ACEOF
7498 /* end confdefs.h. */
7499 #include <sys/types.h>
7500 #include <time.h>
7503 main ()
7505 struct tm tm;
7506 int *p = &tm.tm_sec;
7507 return !p;
7509 return 0;
7511 _ACEOF
7512 rm -f conftest.$ac_objext
7513 if { (ac_try="$ac_compile"
7514 case "(($ac_try" in
7515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7516 *) ac_try_echo=$ac_try;;
7517 esac
7518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7519 (eval "$ac_compile") 2>conftest.er1
7520 ac_status=$?
7521 grep -v '^ *+' conftest.er1 >conftest.err
7522 rm -f conftest.er1
7523 cat conftest.err >&5
7524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525 (exit $ac_status); } && {
7526 test -z "$ac_c_werror_flag" ||
7527 test ! -s conftest.err
7528 } && test -s conftest.$ac_objext; then
7529 ac_cv_struct_tm=time.h
7530 else
7531 echo "$as_me: failed program was:" >&5
7532 sed 's/^/| /' conftest.$ac_ext >&5
7534 ac_cv_struct_tm=sys/time.h
7537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7539 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7540 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7541 if test $ac_cv_struct_tm = sys/time.h; then
7543 cat >>confdefs.h <<\_ACEOF
7544 #define TM_IN_SYS_TIME 1
7545 _ACEOF
7549 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7550 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7551 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7552 echo $ECHO_N "(cached) $ECHO_C" >&6
7553 else
7554 cat >conftest.$ac_ext <<_ACEOF
7555 /* confdefs.h. */
7556 _ACEOF
7557 cat confdefs.h >>conftest.$ac_ext
7558 cat >>conftest.$ac_ext <<_ACEOF
7559 /* end confdefs.h. */
7560 #include <sys/types.h>
7561 #include <$ac_cv_struct_tm>
7565 main ()
7567 static struct tm ac_aggr;
7568 if (ac_aggr.tm_zone)
7569 return 0;
7571 return 0;
7573 _ACEOF
7574 rm -f conftest.$ac_objext
7575 if { (ac_try="$ac_compile"
7576 case "(($ac_try" in
7577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7578 *) ac_try_echo=$ac_try;;
7579 esac
7580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7581 (eval "$ac_compile") 2>conftest.er1
7582 ac_status=$?
7583 grep -v '^ *+' conftest.er1 >conftest.err
7584 rm -f conftest.er1
7585 cat conftest.err >&5
7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); } && {
7588 test -z "$ac_c_werror_flag" ||
7589 test ! -s conftest.err
7590 } && test -s conftest.$ac_objext; then
7591 ac_cv_member_struct_tm_tm_zone=yes
7592 else
7593 echo "$as_me: failed program was:" >&5
7594 sed 's/^/| /' conftest.$ac_ext >&5
7596 cat >conftest.$ac_ext <<_ACEOF
7597 /* confdefs.h. */
7598 _ACEOF
7599 cat confdefs.h >>conftest.$ac_ext
7600 cat >>conftest.$ac_ext <<_ACEOF
7601 /* end confdefs.h. */
7602 #include <sys/types.h>
7603 #include <$ac_cv_struct_tm>
7607 main ()
7609 static struct tm ac_aggr;
7610 if (sizeof ac_aggr.tm_zone)
7611 return 0;
7613 return 0;
7615 _ACEOF
7616 rm -f conftest.$ac_objext
7617 if { (ac_try="$ac_compile"
7618 case "(($ac_try" in
7619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7620 *) ac_try_echo=$ac_try;;
7621 esac
7622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7623 (eval "$ac_compile") 2>conftest.er1
7624 ac_status=$?
7625 grep -v '^ *+' conftest.er1 >conftest.err
7626 rm -f conftest.er1
7627 cat conftest.err >&5
7628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629 (exit $ac_status); } && {
7630 test -z "$ac_c_werror_flag" ||
7631 test ! -s conftest.err
7632 } && test -s conftest.$ac_objext; then
7633 ac_cv_member_struct_tm_tm_zone=yes
7634 else
7635 echo "$as_me: failed program was:" >&5
7636 sed 's/^/| /' conftest.$ac_ext >&5
7638 ac_cv_member_struct_tm_tm_zone=no
7641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7646 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7647 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7648 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7650 cat >>confdefs.h <<_ACEOF
7651 #define HAVE_STRUCT_TM_TM_ZONE 1
7652 _ACEOF
7657 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7659 cat >>confdefs.h <<\_ACEOF
7660 #define HAVE_TM_ZONE 1
7661 _ACEOF
7663 else
7664 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7665 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7666 if test "${ac_cv_have_decl_tzname+set}" = set; then
7667 echo $ECHO_N "(cached) $ECHO_C" >&6
7668 else
7669 cat >conftest.$ac_ext <<_ACEOF
7670 /* confdefs.h. */
7671 _ACEOF
7672 cat confdefs.h >>conftest.$ac_ext
7673 cat >>conftest.$ac_ext <<_ACEOF
7674 /* end confdefs.h. */
7675 #include <time.h>
7678 main ()
7680 #ifndef tzname
7681 (void) tzname;
7682 #endif
7685 return 0;
7687 _ACEOF
7688 rm -f conftest.$ac_objext
7689 if { (ac_try="$ac_compile"
7690 case "(($ac_try" in
7691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7692 *) ac_try_echo=$ac_try;;
7693 esac
7694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7695 (eval "$ac_compile") 2>conftest.er1
7696 ac_status=$?
7697 grep -v '^ *+' conftest.er1 >conftest.err
7698 rm -f conftest.er1
7699 cat conftest.err >&5
7700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); } && {
7702 test -z "$ac_c_werror_flag" ||
7703 test ! -s conftest.err
7704 } && test -s conftest.$ac_objext; then
7705 ac_cv_have_decl_tzname=yes
7706 else
7707 echo "$as_me: failed program was:" >&5
7708 sed 's/^/| /' conftest.$ac_ext >&5
7710 ac_cv_have_decl_tzname=no
7713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7715 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7716 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7717 if test $ac_cv_have_decl_tzname = yes; then
7719 cat >>confdefs.h <<_ACEOF
7720 #define HAVE_DECL_TZNAME 1
7721 _ACEOF
7724 else
7725 cat >>confdefs.h <<_ACEOF
7726 #define HAVE_DECL_TZNAME 0
7727 _ACEOF
7733 { echo "$as_me:$LINENO: checking for tzname" >&5
7734 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7735 if test "${ac_cv_var_tzname+set}" = set; then
7736 echo $ECHO_N "(cached) $ECHO_C" >&6
7737 else
7738 cat >conftest.$ac_ext <<_ACEOF
7739 /* confdefs.h. */
7740 _ACEOF
7741 cat confdefs.h >>conftest.$ac_ext
7742 cat >>conftest.$ac_ext <<_ACEOF
7743 /* end confdefs.h. */
7744 #include <time.h>
7745 #if !HAVE_DECL_TZNAME
7746 extern char *tzname[];
7747 #endif
7750 main ()
7752 return tzname[0][0];
7754 return 0;
7756 _ACEOF
7757 rm -f conftest.$ac_objext conftest$ac_exeext
7758 if { (ac_try="$ac_link"
7759 case "(($ac_try" in
7760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7761 *) ac_try_echo=$ac_try;;
7762 esac
7763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7764 (eval "$ac_link") 2>conftest.er1
7765 ac_status=$?
7766 grep -v '^ *+' conftest.er1 >conftest.err
7767 rm -f conftest.er1
7768 cat conftest.err >&5
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 (exit $ac_status); } && {
7771 test -z "$ac_c_werror_flag" ||
7772 test ! -s conftest.err
7773 } && test -s conftest$ac_exeext &&
7774 $as_test_x conftest$ac_exeext; then
7775 ac_cv_var_tzname=yes
7776 else
7777 echo "$as_me: failed program was:" >&5
7778 sed 's/^/| /' conftest.$ac_ext >&5
7780 ac_cv_var_tzname=no
7783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7784 conftest$ac_exeext conftest.$ac_ext
7786 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7787 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7788 if test $ac_cv_var_tzname = yes; then
7790 cat >>confdefs.h <<\_ACEOF
7791 #define HAVE_TZNAME 1
7792 _ACEOF
7797 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7798 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7799 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7800 echo $ECHO_N "(cached) $ECHO_C" >&6
7801 else
7802 cat >conftest.$ac_ext <<_ACEOF
7803 /* confdefs.h. */
7804 _ACEOF
7805 cat confdefs.h >>conftest.$ac_ext
7806 cat >>conftest.$ac_ext <<_ACEOF
7807 /* end confdefs.h. */
7808 #include <time.h>
7811 main ()
7813 static struct tm ac_aggr;
7814 if (ac_aggr.tm_gmtoff)
7815 return 0;
7817 return 0;
7819 _ACEOF
7820 rm -f conftest.$ac_objext
7821 if { (ac_try="$ac_compile"
7822 case "(($ac_try" in
7823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7824 *) ac_try_echo=$ac_try;;
7825 esac
7826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7827 (eval "$ac_compile") 2>conftest.er1
7828 ac_status=$?
7829 grep -v '^ *+' conftest.er1 >conftest.err
7830 rm -f conftest.er1
7831 cat conftest.err >&5
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); } && {
7834 test -z "$ac_c_werror_flag" ||
7835 test ! -s conftest.err
7836 } && test -s conftest.$ac_objext; then
7837 ac_cv_member_struct_tm_tm_gmtoff=yes
7838 else
7839 echo "$as_me: failed program was:" >&5
7840 sed 's/^/| /' conftest.$ac_ext >&5
7842 cat >conftest.$ac_ext <<_ACEOF
7843 /* confdefs.h. */
7844 _ACEOF
7845 cat confdefs.h >>conftest.$ac_ext
7846 cat >>conftest.$ac_ext <<_ACEOF
7847 /* end confdefs.h. */
7848 #include <time.h>
7851 main ()
7853 static struct tm ac_aggr;
7854 if (sizeof ac_aggr.tm_gmtoff)
7855 return 0;
7857 return 0;
7859 _ACEOF
7860 rm -f conftest.$ac_objext
7861 if { (ac_try="$ac_compile"
7862 case "(($ac_try" in
7863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7864 *) ac_try_echo=$ac_try;;
7865 esac
7866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7867 (eval "$ac_compile") 2>conftest.er1
7868 ac_status=$?
7869 grep -v '^ *+' conftest.er1 >conftest.err
7870 rm -f conftest.er1
7871 cat conftest.err >&5
7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); } && {
7874 test -z "$ac_c_werror_flag" ||
7875 test ! -s conftest.err
7876 } && test -s conftest.$ac_objext; then
7877 ac_cv_member_struct_tm_tm_gmtoff=yes
7878 else
7879 echo "$as_me: failed program was:" >&5
7880 sed 's/^/| /' conftest.$ac_ext >&5
7882 ac_cv_member_struct_tm_tm_gmtoff=no
7885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7890 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7891 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7892 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7894 cat >>confdefs.h <<\_ACEOF
7895 #define HAVE_TM_GMTOFF 1
7896 _ACEOF
7900 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7901 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
7902 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7903 echo $ECHO_N "(cached) $ECHO_C" >&6
7904 else
7905 cat >conftest.$ac_ext <<_ACEOF
7906 /* confdefs.h. */
7907 _ACEOF
7908 cat confdefs.h >>conftest.$ac_ext
7909 cat >>conftest.$ac_ext <<_ACEOF
7910 /* end confdefs.h. */
7911 $ac_includes_default
7912 #if HAVE_SYS_SOCKET_H
7913 #include <sys/socket.h>
7914 #endif
7915 #if HAVE_NET_IF_H
7916 #include <net/if.h>
7917 #endif
7920 main ()
7922 static struct ifreq ac_aggr;
7923 if (ac_aggr.ifr_flags)
7924 return 0;
7926 return 0;
7928 _ACEOF
7929 rm -f conftest.$ac_objext
7930 if { (ac_try="$ac_compile"
7931 case "(($ac_try" in
7932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7933 *) ac_try_echo=$ac_try;;
7934 esac
7935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7936 (eval "$ac_compile") 2>conftest.er1
7937 ac_status=$?
7938 grep -v '^ *+' conftest.er1 >conftest.err
7939 rm -f conftest.er1
7940 cat conftest.err >&5
7941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942 (exit $ac_status); } && {
7943 test -z "$ac_c_werror_flag" ||
7944 test ! -s conftest.err
7945 } && test -s conftest.$ac_objext; then
7946 ac_cv_member_struct_ifreq_ifr_flags=yes
7947 else
7948 echo "$as_me: failed program was:" >&5
7949 sed 's/^/| /' conftest.$ac_ext >&5
7951 cat >conftest.$ac_ext <<_ACEOF
7952 /* confdefs.h. */
7953 _ACEOF
7954 cat confdefs.h >>conftest.$ac_ext
7955 cat >>conftest.$ac_ext <<_ACEOF
7956 /* end confdefs.h. */
7957 $ac_includes_default
7958 #if HAVE_SYS_SOCKET_H
7959 #include <sys/socket.h>
7960 #endif
7961 #if HAVE_NET_IF_H
7962 #include <net/if.h>
7963 #endif
7966 main ()
7968 static struct ifreq ac_aggr;
7969 if (sizeof ac_aggr.ifr_flags)
7970 return 0;
7972 return 0;
7974 _ACEOF
7975 rm -f conftest.$ac_objext
7976 if { (ac_try="$ac_compile"
7977 case "(($ac_try" in
7978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7979 *) ac_try_echo=$ac_try;;
7980 esac
7981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7982 (eval "$ac_compile") 2>conftest.er1
7983 ac_status=$?
7984 grep -v '^ *+' conftest.er1 >conftest.err
7985 rm -f conftest.er1
7986 cat conftest.err >&5
7987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988 (exit $ac_status); } && {
7989 test -z "$ac_c_werror_flag" ||
7990 test ! -s conftest.err
7991 } && test -s conftest.$ac_objext; then
7992 ac_cv_member_struct_ifreq_ifr_flags=yes
7993 else
7994 echo "$as_me: failed program was:" >&5
7995 sed 's/^/| /' conftest.$ac_ext >&5
7997 ac_cv_member_struct_ifreq_ifr_flags=no
8000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8005 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8006 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8007 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8009 cat >>confdefs.h <<_ACEOF
8010 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8011 _ACEOF
8015 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8016 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8017 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8018 echo $ECHO_N "(cached) $ECHO_C" >&6
8019 else
8020 cat >conftest.$ac_ext <<_ACEOF
8021 /* confdefs.h. */
8022 _ACEOF
8023 cat confdefs.h >>conftest.$ac_ext
8024 cat >>conftest.$ac_ext <<_ACEOF
8025 /* end confdefs.h. */
8026 $ac_includes_default
8027 #if HAVE_SYS_SOCKET_H
8028 #include <sys/socket.h>
8029 #endif
8030 #if HAVE_NET_IF_H
8031 #include <net/if.h>
8032 #endif
8035 main ()
8037 static struct ifreq ac_aggr;
8038 if (ac_aggr.ifr_hwaddr)
8039 return 0;
8041 return 0;
8043 _ACEOF
8044 rm -f conftest.$ac_objext
8045 if { (ac_try="$ac_compile"
8046 case "(($ac_try" in
8047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8048 *) ac_try_echo=$ac_try;;
8049 esac
8050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8051 (eval "$ac_compile") 2>conftest.er1
8052 ac_status=$?
8053 grep -v '^ *+' conftest.er1 >conftest.err
8054 rm -f conftest.er1
8055 cat conftest.err >&5
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); } && {
8058 test -z "$ac_c_werror_flag" ||
8059 test ! -s conftest.err
8060 } && test -s conftest.$ac_objext; then
8061 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8062 else
8063 echo "$as_me: failed program was:" >&5
8064 sed 's/^/| /' conftest.$ac_ext >&5
8066 cat >conftest.$ac_ext <<_ACEOF
8067 /* confdefs.h. */
8068 _ACEOF
8069 cat confdefs.h >>conftest.$ac_ext
8070 cat >>conftest.$ac_ext <<_ACEOF
8071 /* end confdefs.h. */
8072 $ac_includes_default
8073 #if HAVE_SYS_SOCKET_H
8074 #include <sys/socket.h>
8075 #endif
8076 #if HAVE_NET_IF_H
8077 #include <net/if.h>
8078 #endif
8081 main ()
8083 static struct ifreq ac_aggr;
8084 if (sizeof ac_aggr.ifr_hwaddr)
8085 return 0;
8087 return 0;
8089 _ACEOF
8090 rm -f conftest.$ac_objext
8091 if { (ac_try="$ac_compile"
8092 case "(($ac_try" in
8093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8094 *) ac_try_echo=$ac_try;;
8095 esac
8096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8097 (eval "$ac_compile") 2>conftest.er1
8098 ac_status=$?
8099 grep -v '^ *+' conftest.er1 >conftest.err
8100 rm -f conftest.er1
8101 cat conftest.err >&5
8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); } && {
8104 test -z "$ac_c_werror_flag" ||
8105 test ! -s conftest.err
8106 } && test -s conftest.$ac_objext; then
8107 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8108 else
8109 echo "$as_me: failed program was:" >&5
8110 sed 's/^/| /' conftest.$ac_ext >&5
8112 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8120 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8121 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8122 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8124 cat >>confdefs.h <<_ACEOF
8125 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8126 _ACEOF
8130 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8131 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8132 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8133 echo $ECHO_N "(cached) $ECHO_C" >&6
8134 else
8135 cat >conftest.$ac_ext <<_ACEOF
8136 /* confdefs.h. */
8137 _ACEOF
8138 cat confdefs.h >>conftest.$ac_ext
8139 cat >>conftest.$ac_ext <<_ACEOF
8140 /* end confdefs.h. */
8141 $ac_includes_default
8142 #if HAVE_SYS_SOCKET_H
8143 #include <sys/socket.h>
8144 #endif
8145 #if HAVE_NET_IF_H
8146 #include <net/if.h>
8147 #endif
8150 main ()
8152 static struct ifreq ac_aggr;
8153 if (ac_aggr.ifr_netmask)
8154 return 0;
8156 return 0;
8158 _ACEOF
8159 rm -f conftest.$ac_objext
8160 if { (ac_try="$ac_compile"
8161 case "(($ac_try" in
8162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8163 *) ac_try_echo=$ac_try;;
8164 esac
8165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8166 (eval "$ac_compile") 2>conftest.er1
8167 ac_status=$?
8168 grep -v '^ *+' conftest.er1 >conftest.err
8169 rm -f conftest.er1
8170 cat conftest.err >&5
8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172 (exit $ac_status); } && {
8173 test -z "$ac_c_werror_flag" ||
8174 test ! -s conftest.err
8175 } && test -s conftest.$ac_objext; then
8176 ac_cv_member_struct_ifreq_ifr_netmask=yes
8177 else
8178 echo "$as_me: failed program was:" >&5
8179 sed 's/^/| /' conftest.$ac_ext >&5
8181 cat >conftest.$ac_ext <<_ACEOF
8182 /* confdefs.h. */
8183 _ACEOF
8184 cat confdefs.h >>conftest.$ac_ext
8185 cat >>conftest.$ac_ext <<_ACEOF
8186 /* end confdefs.h. */
8187 $ac_includes_default
8188 #if HAVE_SYS_SOCKET_H
8189 #include <sys/socket.h>
8190 #endif
8191 #if HAVE_NET_IF_H
8192 #include <net/if.h>
8193 #endif
8196 main ()
8198 static struct ifreq ac_aggr;
8199 if (sizeof ac_aggr.ifr_netmask)
8200 return 0;
8202 return 0;
8204 _ACEOF
8205 rm -f conftest.$ac_objext
8206 if { (ac_try="$ac_compile"
8207 case "(($ac_try" in
8208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8209 *) ac_try_echo=$ac_try;;
8210 esac
8211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8212 (eval "$ac_compile") 2>conftest.er1
8213 ac_status=$?
8214 grep -v '^ *+' conftest.er1 >conftest.err
8215 rm -f conftest.er1
8216 cat conftest.err >&5
8217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218 (exit $ac_status); } && {
8219 test -z "$ac_c_werror_flag" ||
8220 test ! -s conftest.err
8221 } && test -s conftest.$ac_objext; then
8222 ac_cv_member_struct_ifreq_ifr_netmask=yes
8223 else
8224 echo "$as_me: failed program was:" >&5
8225 sed 's/^/| /' conftest.$ac_ext >&5
8227 ac_cv_member_struct_ifreq_ifr_netmask=no
8230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8235 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8236 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8237 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8239 cat >>confdefs.h <<_ACEOF
8240 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8241 _ACEOF
8245 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8246 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8247 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8248 echo $ECHO_N "(cached) $ECHO_C" >&6
8249 else
8250 cat >conftest.$ac_ext <<_ACEOF
8251 /* confdefs.h. */
8252 _ACEOF
8253 cat confdefs.h >>conftest.$ac_ext
8254 cat >>conftest.$ac_ext <<_ACEOF
8255 /* end confdefs.h. */
8256 $ac_includes_default
8257 #if HAVE_SYS_SOCKET_H
8258 #include <sys/socket.h>
8259 #endif
8260 #if HAVE_NET_IF_H
8261 #include <net/if.h>
8262 #endif
8265 main ()
8267 static struct ifreq ac_aggr;
8268 if (ac_aggr.ifr_broadaddr)
8269 return 0;
8271 return 0;
8273 _ACEOF
8274 rm -f conftest.$ac_objext
8275 if { (ac_try="$ac_compile"
8276 case "(($ac_try" in
8277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8278 *) ac_try_echo=$ac_try;;
8279 esac
8280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8281 (eval "$ac_compile") 2>conftest.er1
8282 ac_status=$?
8283 grep -v '^ *+' conftest.er1 >conftest.err
8284 rm -f conftest.er1
8285 cat conftest.err >&5
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); } && {
8288 test -z "$ac_c_werror_flag" ||
8289 test ! -s conftest.err
8290 } && test -s conftest.$ac_objext; then
8291 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8292 else
8293 echo "$as_me: failed program was:" >&5
8294 sed 's/^/| /' conftest.$ac_ext >&5
8296 cat >conftest.$ac_ext <<_ACEOF
8297 /* confdefs.h. */
8298 _ACEOF
8299 cat confdefs.h >>conftest.$ac_ext
8300 cat >>conftest.$ac_ext <<_ACEOF
8301 /* end confdefs.h. */
8302 $ac_includes_default
8303 #if HAVE_SYS_SOCKET_H
8304 #include <sys/socket.h>
8305 #endif
8306 #if HAVE_NET_IF_H
8307 #include <net/if.h>
8308 #endif
8311 main ()
8313 static struct ifreq ac_aggr;
8314 if (sizeof ac_aggr.ifr_broadaddr)
8315 return 0;
8317 return 0;
8319 _ACEOF
8320 rm -f conftest.$ac_objext
8321 if { (ac_try="$ac_compile"
8322 case "(($ac_try" in
8323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8324 *) ac_try_echo=$ac_try;;
8325 esac
8326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8327 (eval "$ac_compile") 2>conftest.er1
8328 ac_status=$?
8329 grep -v '^ *+' conftest.er1 >conftest.err
8330 rm -f conftest.er1
8331 cat conftest.err >&5
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); } && {
8334 test -z "$ac_c_werror_flag" ||
8335 test ! -s conftest.err
8336 } && test -s conftest.$ac_objext; then
8337 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8338 else
8339 echo "$as_me: failed program was:" >&5
8340 sed 's/^/| /' conftest.$ac_ext >&5
8342 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8350 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8351 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8352 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8354 cat >>confdefs.h <<_ACEOF
8355 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8356 _ACEOF
8360 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8361 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8362 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8363 echo $ECHO_N "(cached) $ECHO_C" >&6
8364 else
8365 cat >conftest.$ac_ext <<_ACEOF
8366 /* confdefs.h. */
8367 _ACEOF
8368 cat confdefs.h >>conftest.$ac_ext
8369 cat >>conftest.$ac_ext <<_ACEOF
8370 /* end confdefs.h. */
8371 $ac_includes_default
8372 #if HAVE_SYS_SOCKET_H
8373 #include <sys/socket.h>
8374 #endif
8375 #if HAVE_NET_IF_H
8376 #include <net/if.h>
8377 #endif
8380 main ()
8382 static struct ifreq ac_aggr;
8383 if (ac_aggr.ifr_addr)
8384 return 0;
8386 return 0;
8388 _ACEOF
8389 rm -f conftest.$ac_objext
8390 if { (ac_try="$ac_compile"
8391 case "(($ac_try" in
8392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8393 *) ac_try_echo=$ac_try;;
8394 esac
8395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8396 (eval "$ac_compile") 2>conftest.er1
8397 ac_status=$?
8398 grep -v '^ *+' conftest.er1 >conftest.err
8399 rm -f conftest.er1
8400 cat conftest.err >&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); } && {
8403 test -z "$ac_c_werror_flag" ||
8404 test ! -s conftest.err
8405 } && test -s conftest.$ac_objext; then
8406 ac_cv_member_struct_ifreq_ifr_addr=yes
8407 else
8408 echo "$as_me: failed program was:" >&5
8409 sed 's/^/| /' conftest.$ac_ext >&5
8411 cat >conftest.$ac_ext <<_ACEOF
8412 /* confdefs.h. */
8413 _ACEOF
8414 cat confdefs.h >>conftest.$ac_ext
8415 cat >>conftest.$ac_ext <<_ACEOF
8416 /* end confdefs.h. */
8417 $ac_includes_default
8418 #if HAVE_SYS_SOCKET_H
8419 #include <sys/socket.h>
8420 #endif
8421 #if HAVE_NET_IF_H
8422 #include <net/if.h>
8423 #endif
8426 main ()
8428 static struct ifreq ac_aggr;
8429 if (sizeof ac_aggr.ifr_addr)
8430 return 0;
8432 return 0;
8434 _ACEOF
8435 rm -f conftest.$ac_objext
8436 if { (ac_try="$ac_compile"
8437 case "(($ac_try" in
8438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8439 *) ac_try_echo=$ac_try;;
8440 esac
8441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8442 (eval "$ac_compile") 2>conftest.er1
8443 ac_status=$?
8444 grep -v '^ *+' conftest.er1 >conftest.err
8445 rm -f conftest.er1
8446 cat conftest.err >&5
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); } && {
8449 test -z "$ac_c_werror_flag" ||
8450 test ! -s conftest.err
8451 } && test -s conftest.$ac_objext; then
8452 ac_cv_member_struct_ifreq_ifr_addr=yes
8453 else
8454 echo "$as_me: failed program was:" >&5
8455 sed 's/^/| /' conftest.$ac_ext >&5
8457 ac_cv_member_struct_ifreq_ifr_addr=no
8460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8465 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8466 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8467 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8469 cat >>confdefs.h <<_ACEOF
8470 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8471 _ACEOF
8478 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8479 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8480 if test "$ac_cv_prog_cc_c89" != no; then
8481 { echo "$as_me:$LINENO: result: yes" >&5
8482 echo "${ECHO_T}yes" >&6; }
8484 cat >>confdefs.h <<\_ACEOF
8485 #define PROTOTYPES 1
8486 _ACEOF
8489 cat >>confdefs.h <<\_ACEOF
8490 #define __PROTOTYPES 1
8491 _ACEOF
8493 else
8494 { echo "$as_me:$LINENO: result: no" >&5
8495 echo "${ECHO_T}no" >&6; }
8498 { echo "$as_me:$LINENO: checking for working volatile" >&5
8499 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8500 if test "${ac_cv_c_volatile+set}" = set; then
8501 echo $ECHO_N "(cached) $ECHO_C" >&6
8502 else
8503 cat >conftest.$ac_ext <<_ACEOF
8504 /* confdefs.h. */
8505 _ACEOF
8506 cat confdefs.h >>conftest.$ac_ext
8507 cat >>conftest.$ac_ext <<_ACEOF
8508 /* end confdefs.h. */
8511 main ()
8514 volatile int x;
8515 int * volatile y = (int *) 0;
8516 return !x && !y;
8518 return 0;
8520 _ACEOF
8521 rm -f conftest.$ac_objext
8522 if { (ac_try="$ac_compile"
8523 case "(($ac_try" in
8524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8525 *) ac_try_echo=$ac_try;;
8526 esac
8527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8528 (eval "$ac_compile") 2>conftest.er1
8529 ac_status=$?
8530 grep -v '^ *+' conftest.er1 >conftest.err
8531 rm -f conftest.er1
8532 cat conftest.err >&5
8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); } && {
8535 test -z "$ac_c_werror_flag" ||
8536 test ! -s conftest.err
8537 } && test -s conftest.$ac_objext; then
8538 ac_cv_c_volatile=yes
8539 else
8540 echo "$as_me: failed program was:" >&5
8541 sed 's/^/| /' conftest.$ac_ext >&5
8543 ac_cv_c_volatile=no
8546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8548 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8549 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8550 if test $ac_cv_c_volatile = no; then
8552 cat >>confdefs.h <<\_ACEOF
8553 #define volatile
8554 _ACEOF
8558 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8559 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8560 if test "${ac_cv_c_const+set}" = set; then
8561 echo $ECHO_N "(cached) $ECHO_C" >&6
8562 else
8563 cat >conftest.$ac_ext <<_ACEOF
8564 /* confdefs.h. */
8565 _ACEOF
8566 cat confdefs.h >>conftest.$ac_ext
8567 cat >>conftest.$ac_ext <<_ACEOF
8568 /* end confdefs.h. */
8571 main ()
8573 /* FIXME: Include the comments suggested by Paul. */
8574 #ifndef __cplusplus
8575 /* Ultrix mips cc rejects this. */
8576 typedef int charset[2];
8577 const charset cs;
8578 /* SunOS 4.1.1 cc rejects this. */
8579 char const *const *pcpcc;
8580 char **ppc;
8581 /* NEC SVR4.0.2 mips cc rejects this. */
8582 struct point {int x, y;};
8583 static struct point const zero = {0,0};
8584 /* AIX XL C 1.02.0.0 rejects this.
8585 It does not let you subtract one const X* pointer from another in
8586 an arm of an if-expression whose if-part is not a constant
8587 expression */
8588 const char *g = "string";
8589 pcpcc = &g + (g ? g-g : 0);
8590 /* HPUX 7.0 cc rejects these. */
8591 ++pcpcc;
8592 ppc = (char**) pcpcc;
8593 pcpcc = (char const *const *) ppc;
8594 { /* SCO 3.2v4 cc rejects this. */
8595 char *t;
8596 char const *s = 0 ? (char *) 0 : (char const *) 0;
8598 *t++ = 0;
8599 if (s) return 0;
8601 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8602 int x[] = {25, 17};
8603 const int *foo = &x[0];
8604 ++foo;
8606 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8607 typedef const int *iptr;
8608 iptr p = 0;
8609 ++p;
8611 { /* AIX XL C 1.02.0.0 rejects this saying
8612 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8613 struct s { int j; const int *ap[3]; };
8614 struct s *b; b->j = 5;
8616 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8617 const int foo = 10;
8618 if (!foo) return 0;
8620 return !cs[0] && !zero.x;
8621 #endif
8624 return 0;
8626 _ACEOF
8627 rm -f conftest.$ac_objext
8628 if { (ac_try="$ac_compile"
8629 case "(($ac_try" in
8630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8631 *) ac_try_echo=$ac_try;;
8632 esac
8633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8634 (eval "$ac_compile") 2>conftest.er1
8635 ac_status=$?
8636 grep -v '^ *+' conftest.er1 >conftest.err
8637 rm -f conftest.er1
8638 cat conftest.err >&5
8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 (exit $ac_status); } && {
8641 test -z "$ac_c_werror_flag" ||
8642 test ! -s conftest.err
8643 } && test -s conftest.$ac_objext; then
8644 ac_cv_c_const=yes
8645 else
8646 echo "$as_me: failed program was:" >&5
8647 sed 's/^/| /' conftest.$ac_ext >&5
8649 ac_cv_c_const=no
8652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8654 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8655 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8656 if test $ac_cv_c_const = no; then
8658 cat >>confdefs.h <<\_ACEOF
8659 #define const
8660 _ACEOF
8664 { echo "$as_me:$LINENO: checking for void * support" >&5
8665 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8666 if test "${emacs_cv_void_star+set}" = set; then
8667 echo $ECHO_N "(cached) $ECHO_C" >&6
8668 else
8669 cat >conftest.$ac_ext <<_ACEOF
8670 /* confdefs.h. */
8671 _ACEOF
8672 cat confdefs.h >>conftest.$ac_ext
8673 cat >>conftest.$ac_ext <<_ACEOF
8674 /* end confdefs.h. */
8677 main ()
8679 void * foo;
8681 return 0;
8683 _ACEOF
8684 rm -f conftest.$ac_objext
8685 if { (ac_try="$ac_compile"
8686 case "(($ac_try" in
8687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8688 *) ac_try_echo=$ac_try;;
8689 esac
8690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8691 (eval "$ac_compile") 2>conftest.er1
8692 ac_status=$?
8693 grep -v '^ *+' conftest.er1 >conftest.err
8694 rm -f conftest.er1
8695 cat conftest.err >&5
8696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697 (exit $ac_status); } && {
8698 test -z "$ac_c_werror_flag" ||
8699 test ! -s conftest.err
8700 } && test -s conftest.$ac_objext; then
8701 emacs_cv_void_star=yes
8702 else
8703 echo "$as_me: failed program was:" >&5
8704 sed 's/^/| /' conftest.$ac_ext >&5
8706 emacs_cv_void_star=no
8709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8711 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8712 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8713 if test $emacs_cv_void_star = yes; then
8714 cat >>confdefs.h <<\_ACEOF
8715 #define POINTER_TYPE void
8716 _ACEOF
8718 else
8719 cat >>confdefs.h <<\_ACEOF
8720 #define POINTER_TYPE char
8721 _ACEOF
8729 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8730 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8731 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8732 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8733 echo $ECHO_N "(cached) $ECHO_C" >&6
8734 else
8735 cat >conftest.make <<\_ACEOF
8736 SHELL = /bin/sh
8737 all:
8738 @echo '@@@%%%=$(MAKE)=@@@%%%'
8739 _ACEOF
8740 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8741 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8742 *@@@%%%=?*=@@@%%%*)
8743 eval ac_cv_prog_make_${ac_make}_set=yes;;
8745 eval ac_cv_prog_make_${ac_make}_set=no;;
8746 esac
8747 rm -f conftest.make
8749 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8750 { echo "$as_me:$LINENO: result: yes" >&5
8751 echo "${ECHO_T}yes" >&6; }
8752 SET_MAKE=
8753 else
8754 { echo "$as_me:$LINENO: result: no" >&5
8755 echo "${ECHO_T}no" >&6; }
8756 SET_MAKE="MAKE=${MAKE-make}"
8760 { echo "$as_me:$LINENO: checking for long file names" >&5
8761 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8762 if test "${ac_cv_sys_long_file_names+set}" = set; then
8763 echo $ECHO_N "(cached) $ECHO_C" >&6
8764 else
8765 ac_cv_sys_long_file_names=yes
8766 # Test for long file names in all the places we know might matter:
8767 # . the current directory, where building will happen
8768 # $prefix/lib where we will be installing things
8769 # $exec_prefix/lib likewise
8770 # $TMPDIR if set, where it might want to write temporary files
8771 # /tmp where it might want to write temporary files
8772 # /var/tmp likewise
8773 # /usr/tmp likewise
8774 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8775 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8776 # in the usual case where exec_prefix is '${prefix}'.
8777 case $ac_dir in #(
8778 . | /* | ?:[\\/]*) ;; #(
8779 *) continue;;
8780 esac
8781 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8782 ac_xdir=$ac_dir/cf$$
8783 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8784 ac_tf1=$ac_xdir/conftest9012345
8785 ac_tf2=$ac_xdir/conftest9012346
8786 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8787 ac_cv_sys_long_file_names=no
8788 rm -f -r "$ac_xdir" 2>/dev/null
8789 test $ac_cv_sys_long_file_names = no && break
8790 done
8792 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8793 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8794 if test $ac_cv_sys_long_file_names = yes; then
8796 cat >>confdefs.h <<\_ACEOF
8797 #define HAVE_LONG_FILE_NAMES 1
8798 _ACEOF
8803 #### Choose a window system.
8805 { echo "$as_me:$LINENO: checking for X" >&5
8806 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8809 # Check whether --with-x was given.
8810 if test "${with_x+set}" = set; then
8811 withval=$with_x;
8814 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8815 if test "x$with_x" = xno; then
8816 # The user explicitly disabled X.
8817 have_x=disabled
8818 else
8819 case $x_includes,$x_libraries in #(
8820 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8821 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8822 { (exit 1); exit 1; }; };; #(
8823 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8824 echo $ECHO_N "(cached) $ECHO_C" >&6
8825 else
8826 # One or both of the vars are not set, and there is no cached value.
8827 ac_x_includes=no ac_x_libraries=no
8828 rm -f -r conftest.dir
8829 if mkdir conftest.dir; then
8830 cd conftest.dir
8831 cat >Imakefile <<'_ACEOF'
8832 incroot:
8833 @echo incroot='${INCROOT}'
8834 usrlibdir:
8835 @echo usrlibdir='${USRLIBDIR}'
8836 libdir:
8837 @echo libdir='${LIBDIR}'
8838 _ACEOF
8839 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8840 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8841 for ac_var in incroot usrlibdir libdir; do
8842 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8843 done
8844 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8845 for ac_extension in a so sl; do
8846 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8847 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8848 ac_im_usrlibdir=$ac_im_libdir; break
8850 done
8851 # Screen out bogus values from the imake configuration. They are
8852 # bogus both because they are the default anyway, and because
8853 # using them would break gcc on systems where it needs fixed includes.
8854 case $ac_im_incroot in
8855 /usr/include) ac_x_includes= ;;
8856 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8857 esac
8858 case $ac_im_usrlibdir in
8859 /usr/lib | /lib) ;;
8860 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8861 esac
8863 cd ..
8864 rm -f -r conftest.dir
8867 # Standard set of common directories for X headers.
8868 # Check X11 before X11Rn because it is often a symlink to the current release.
8869 ac_x_header_dirs='
8870 /usr/X11/include
8871 /usr/X11R6/include
8872 /usr/X11R5/include
8873 /usr/X11R4/include
8875 /usr/include/X11
8876 /usr/include/X11R6
8877 /usr/include/X11R5
8878 /usr/include/X11R4
8880 /usr/local/X11/include
8881 /usr/local/X11R6/include
8882 /usr/local/X11R5/include
8883 /usr/local/X11R4/include
8885 /usr/local/include/X11
8886 /usr/local/include/X11R6
8887 /usr/local/include/X11R5
8888 /usr/local/include/X11R4
8890 /usr/X386/include
8891 /usr/x386/include
8892 /usr/XFree86/include/X11
8894 /usr/include
8895 /usr/local/include
8896 /usr/unsupported/include
8897 /usr/athena/include
8898 /usr/local/x11r5/include
8899 /usr/lpp/Xamples/include
8901 /usr/openwin/include
8902 /usr/openwin/share/include'
8904 if test "$ac_x_includes" = no; then
8905 # Guess where to find include files, by looking for Xlib.h.
8906 # First, try using that file with no special directory specified.
8907 cat >conftest.$ac_ext <<_ACEOF
8908 /* confdefs.h. */
8909 _ACEOF
8910 cat confdefs.h >>conftest.$ac_ext
8911 cat >>conftest.$ac_ext <<_ACEOF
8912 /* end confdefs.h. */
8913 #include <X11/Xlib.h>
8914 _ACEOF
8915 if { (ac_try="$ac_cpp conftest.$ac_ext"
8916 case "(($ac_try" in
8917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8918 *) ac_try_echo=$ac_try;;
8919 esac
8920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8921 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8922 ac_status=$?
8923 grep -v '^ *+' conftest.er1 >conftest.err
8924 rm -f conftest.er1
8925 cat conftest.err >&5
8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 (exit $ac_status); } >/dev/null && {
8928 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8929 test ! -s conftest.err
8930 }; then
8931 # We can compile using X headers with no special include directory.
8932 ac_x_includes=
8933 else
8934 echo "$as_me: failed program was:" >&5
8935 sed 's/^/| /' conftest.$ac_ext >&5
8937 for ac_dir in $ac_x_header_dirs; do
8938 if test -r "$ac_dir/X11/Xlib.h"; then
8939 ac_x_includes=$ac_dir
8940 break
8942 done
8945 rm -f conftest.err conftest.$ac_ext
8946 fi # $ac_x_includes = no
8948 if test "$ac_x_libraries" = no; then
8949 # Check for the libraries.
8950 # See if we find them without any special options.
8951 # Don't add to $LIBS permanently.
8952 ac_save_LIBS=$LIBS
8953 LIBS="-lX11 $LIBS"
8954 cat >conftest.$ac_ext <<_ACEOF
8955 /* confdefs.h. */
8956 _ACEOF
8957 cat confdefs.h >>conftest.$ac_ext
8958 cat >>conftest.$ac_ext <<_ACEOF
8959 /* end confdefs.h. */
8960 #include <X11/Xlib.h>
8962 main ()
8964 XrmInitialize ()
8966 return 0;
8968 _ACEOF
8969 rm -f conftest.$ac_objext conftest$ac_exeext
8970 if { (ac_try="$ac_link"
8971 case "(($ac_try" in
8972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8973 *) ac_try_echo=$ac_try;;
8974 esac
8975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8976 (eval "$ac_link") 2>conftest.er1
8977 ac_status=$?
8978 grep -v '^ *+' conftest.er1 >conftest.err
8979 rm -f conftest.er1
8980 cat conftest.err >&5
8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982 (exit $ac_status); } && {
8983 test -z "$ac_c_werror_flag" ||
8984 test ! -s conftest.err
8985 } && test -s conftest$ac_exeext &&
8986 $as_test_x conftest$ac_exeext; then
8987 LIBS=$ac_save_LIBS
8988 # We can link X programs with no special library path.
8989 ac_x_libraries=
8990 else
8991 echo "$as_me: failed program was:" >&5
8992 sed 's/^/| /' conftest.$ac_ext >&5
8994 LIBS=$ac_save_LIBS
8995 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8997 # Don't even attempt the hair of trying to link an X program!
8998 for ac_extension in a so sl; do
8999 if test -r "$ac_dir/libX11.$ac_extension"; then
9000 ac_x_libraries=$ac_dir
9001 break 2
9003 done
9004 done
9007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9008 conftest$ac_exeext conftest.$ac_ext
9009 fi # $ac_x_libraries = no
9011 case $ac_x_includes,$ac_x_libraries in #(
9012 no,* | *,no | *\'*)
9013 # Didn't find X, or a directory has "'" in its name.
9014 ac_cv_have_x="have_x=no";; #(
9016 # Record where we found X for the cache.
9017 ac_cv_have_x="have_x=yes\
9018 ac_x_includes='$ac_x_includes'\
9019 ac_x_libraries='$ac_x_libraries'"
9020 esac
9022 ;; #(
9023 *) have_x=yes;;
9024 esac
9025 eval "$ac_cv_have_x"
9026 fi # $with_x != no
9028 if test "$have_x" != yes; then
9029 { echo "$as_me:$LINENO: result: $have_x" >&5
9030 echo "${ECHO_T}$have_x" >&6; }
9031 no_x=yes
9032 else
9033 # If each of the values was on the command line, it overrides each guess.
9034 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9035 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9036 # Update the cache value to reflect the command line values.
9037 ac_cv_have_x="have_x=yes\
9038 ac_x_includes='$x_includes'\
9039 ac_x_libraries='$x_libraries'"
9040 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9041 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9044 if test "$no_x" = yes; then
9045 window_system=none
9046 else
9047 window_system=x11
9050 if test "${x_libraries}" != NONE; then
9051 if test -n "${x_libraries}"; then
9052 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9053 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9055 x_default_search_path=""
9056 x_search_path=${x_libraries}
9057 if test -z "${x_search_path}"; then
9058 x_search_path=/usr/lib
9060 for x_library in `echo ${x_search_path}: | \
9061 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9062 x_search_path="\
9063 ${x_library}/X11/%L/%T/%N%C%S:\
9064 ${x_library}/X11/%l/%T/%N%C%S:\
9065 ${x_library}/X11/%T/%N%C%S:\
9066 ${x_library}/X11/%L/%T/%N%S:\
9067 ${x_library}/X11/%l/%T/%N%S:\
9068 ${x_library}/X11/%T/%N%S"
9069 if test x"${x_default_search_path}" = x; then
9070 x_default_search_path=${x_search_path}
9071 else
9072 x_default_search_path="${x_search_path}:${x_default_search_path}"
9074 done
9076 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9077 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9080 if test x"${x_includes}" = x; then
9081 bitmapdir=/usr/include/X11/bitmaps
9082 else
9083 # accumulate include directories that have X11 bitmap subdirectories
9084 bmd_acc="dummyval"
9085 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9086 if test -d "${bmd}/X11/bitmaps"; then
9087 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9089 if test -d "${bmd}/bitmaps"; then
9090 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9092 done
9093 if test ${bmd_acc} != "dummyval"; then
9094 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9098 HAVE_CARBON=no
9099 if test "${with_carbon}" != no; then
9100 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9101 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9102 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9103 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9104 echo $ECHO_N "(cached) $ECHO_C" >&6
9106 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9107 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9108 else
9109 # Is the header compilable?
9110 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9111 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9112 cat >conftest.$ac_ext <<_ACEOF
9113 /* confdefs.h. */
9114 _ACEOF
9115 cat confdefs.h >>conftest.$ac_ext
9116 cat >>conftest.$ac_ext <<_ACEOF
9117 /* end confdefs.h. */
9118 $ac_includes_default
9119 #include <Carbon/Carbon.h>
9120 _ACEOF
9121 rm -f conftest.$ac_objext
9122 if { (ac_try="$ac_compile"
9123 case "(($ac_try" in
9124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9125 *) ac_try_echo=$ac_try;;
9126 esac
9127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9128 (eval "$ac_compile") 2>conftest.er1
9129 ac_status=$?
9130 grep -v '^ *+' conftest.er1 >conftest.err
9131 rm -f conftest.er1
9132 cat conftest.err >&5
9133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134 (exit $ac_status); } && {
9135 test -z "$ac_c_werror_flag" ||
9136 test ! -s conftest.err
9137 } && test -s conftest.$ac_objext; then
9138 ac_header_compiler=yes
9139 else
9140 echo "$as_me: failed program was:" >&5
9141 sed 's/^/| /' conftest.$ac_ext >&5
9143 ac_header_compiler=no
9146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9147 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9148 echo "${ECHO_T}$ac_header_compiler" >&6; }
9150 # Is the header present?
9151 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9152 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9153 cat >conftest.$ac_ext <<_ACEOF
9154 /* confdefs.h. */
9155 _ACEOF
9156 cat confdefs.h >>conftest.$ac_ext
9157 cat >>conftest.$ac_ext <<_ACEOF
9158 /* end confdefs.h. */
9159 #include <Carbon/Carbon.h>
9160 _ACEOF
9161 if { (ac_try="$ac_cpp conftest.$ac_ext"
9162 case "(($ac_try" in
9163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9164 *) ac_try_echo=$ac_try;;
9165 esac
9166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9167 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9168 ac_status=$?
9169 grep -v '^ *+' conftest.er1 >conftest.err
9170 rm -f conftest.er1
9171 cat conftest.err >&5
9172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9173 (exit $ac_status); } >/dev/null && {
9174 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9175 test ! -s conftest.err
9176 }; then
9177 ac_header_preproc=yes
9178 else
9179 echo "$as_me: failed program was:" >&5
9180 sed 's/^/| /' conftest.$ac_ext >&5
9182 ac_header_preproc=no
9185 rm -f conftest.err conftest.$ac_ext
9186 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9187 echo "${ECHO_T}$ac_header_preproc" >&6; }
9189 # So? What about this header?
9190 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9191 yes:no: )
9192 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9193 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9194 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9195 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9196 ac_header_preproc=yes
9198 no:yes:* )
9199 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9200 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9201 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9202 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9203 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9204 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9205 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9206 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9207 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9208 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9209 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9210 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9213 esac
9214 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9215 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9216 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9217 echo $ECHO_N "(cached) $ECHO_C" >&6
9218 else
9219 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9221 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9222 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9225 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9226 HAVE_CARBON=yes
9231 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9232 if test "${with_carbon+set}" != set \
9233 && test "${carbon_appdir_x+set}" != set; then
9234 for var in with_x with_x_toolkit with_xim \
9235 with_xpm with_jpeg with_tiff with_gif with_png; do
9236 if eval test \"\${$var+set}\" = set; then
9237 HAVE_CARBON=no
9238 break
9240 done
9243 if test "${HAVE_CARBON}" = yes; then
9244 window_system=mac
9247 case "${window_system}" in
9248 x11 )
9249 HAVE_X_WINDOWS=yes
9250 HAVE_X11=yes
9251 case "${with_x_toolkit}" in
9252 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9253 motif ) USE_X_TOOLKIT=MOTIF ;;
9254 gtk ) with_gtk=yes
9255 USE_X_TOOLKIT=none ;;
9256 no ) USE_X_TOOLKIT=none ;;
9257 * ) USE_X_TOOLKIT=maybe ;;
9258 esac
9260 mac | none )
9261 HAVE_X_WINDOWS=no
9262 HAVE_X11=no
9263 USE_X_TOOLKIT=none
9265 esac
9267 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9268 # Extract the first word of "X", so it can be a program name with args.
9269 set dummy X; ac_word=$2
9270 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9272 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9273 echo $ECHO_N "(cached) $ECHO_C" >&6
9274 else
9275 if test -n "$HAVE_XSERVER"; then
9276 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9277 else
9278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9279 for as_dir in $PATH
9281 IFS=$as_save_IFS
9282 test -z "$as_dir" && as_dir=.
9283 for ac_exec_ext in '' $ac_executable_extensions; do
9284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9285 ac_cv_prog_HAVE_XSERVER="true"
9286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9287 break 2
9289 done
9290 done
9291 IFS=$as_save_IFS
9293 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9296 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9297 if test -n "$HAVE_XSERVER"; then
9298 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9299 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9300 else
9301 { echo "$as_me:$LINENO: result: no" >&5
9302 echo "${ECHO_T}no" >&6; }
9306 if test "$HAVE_XSERVER" = true ||
9307 test -n "$DISPLAY" ||
9308 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9309 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9310 were found. You should install the relevant development files for X
9311 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9312 sure you have development files for image handling, i.e.
9313 tiff, gif, jpeg, png and xpm.
9314 If you are sure you want Emacs compiled without X window support, pass
9315 --without-x
9316 to configure." >&5
9317 echo "$as_me: error: You seem to be running X, but no X development libraries
9318 were found. You should install the relevant development files for X
9319 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9320 sure you have development files for image handling, i.e.
9321 tiff, gif, jpeg, png and xpm.
9322 If you are sure you want Emacs compiled without X window support, pass
9323 --without-x
9324 to configure." >&2;}
9325 { (exit 1); exit 1; }; }
9329 ### If we're using X11, we should use the X menu package.
9330 HAVE_MENUS=no
9331 case ${HAVE_X11} in
9332 yes ) HAVE_MENUS=yes ;;
9333 esac
9335 ### Compute the unexec source name from the object name.
9336 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9338 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9339 # Assume not, until told otherwise.
9340 GNU_MALLOC=yes
9341 doug_lea_malloc=yes
9342 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9343 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9344 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9345 echo $ECHO_N "(cached) $ECHO_C" >&6
9346 else
9347 cat >conftest.$ac_ext <<_ACEOF
9348 /* confdefs.h. */
9349 _ACEOF
9350 cat confdefs.h >>conftest.$ac_ext
9351 cat >>conftest.$ac_ext <<_ACEOF
9352 /* end confdefs.h. */
9353 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9355 #define malloc_get_state innocuous_malloc_get_state
9357 /* System header to define __stub macros and hopefully few prototypes,
9358 which can conflict with char malloc_get_state (); below.
9359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9360 <limits.h> exists even on freestanding compilers. */
9362 #ifdef __STDC__
9363 # include <limits.h>
9364 #else
9365 # include <assert.h>
9366 #endif
9368 #undef malloc_get_state
9370 /* Override any GCC internal prototype to avoid an error.
9371 Use char because int might match the return type of a GCC
9372 builtin and then its argument prototype would still apply. */
9373 #ifdef __cplusplus
9374 extern "C"
9375 #endif
9376 char malloc_get_state ();
9377 /* The GNU C library defines this for functions which it implements
9378 to always fail with ENOSYS. Some functions are actually named
9379 something starting with __ and the normal name is an alias. */
9380 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9381 choke me
9382 #endif
9385 main ()
9387 return malloc_get_state ();
9389 return 0;
9391 _ACEOF
9392 rm -f conftest.$ac_objext conftest$ac_exeext
9393 if { (ac_try="$ac_link"
9394 case "(($ac_try" in
9395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9396 *) ac_try_echo=$ac_try;;
9397 esac
9398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9399 (eval "$ac_link") 2>conftest.er1
9400 ac_status=$?
9401 grep -v '^ *+' conftest.er1 >conftest.err
9402 rm -f conftest.er1
9403 cat conftest.err >&5
9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); } && {
9406 test -z "$ac_c_werror_flag" ||
9407 test ! -s conftest.err
9408 } && test -s conftest$ac_exeext &&
9409 $as_test_x conftest$ac_exeext; then
9410 ac_cv_func_malloc_get_state=yes
9411 else
9412 echo "$as_me: failed program was:" >&5
9413 sed 's/^/| /' conftest.$ac_ext >&5
9415 ac_cv_func_malloc_get_state=no
9418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9419 conftest$ac_exeext conftest.$ac_ext
9421 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9422 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9423 if test $ac_cv_func_malloc_get_state = yes; then
9425 else
9426 doug_lea_malloc=no
9429 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9430 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9431 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9432 echo $ECHO_N "(cached) $ECHO_C" >&6
9433 else
9434 cat >conftest.$ac_ext <<_ACEOF
9435 /* confdefs.h. */
9436 _ACEOF
9437 cat confdefs.h >>conftest.$ac_ext
9438 cat >>conftest.$ac_ext <<_ACEOF
9439 /* end confdefs.h. */
9440 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9441 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9442 #define malloc_set_state innocuous_malloc_set_state
9444 /* System header to define __stub macros and hopefully few prototypes,
9445 which can conflict with char malloc_set_state (); below.
9446 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9447 <limits.h> exists even on freestanding compilers. */
9449 #ifdef __STDC__
9450 # include <limits.h>
9451 #else
9452 # include <assert.h>
9453 #endif
9455 #undef malloc_set_state
9457 /* Override any GCC internal prototype to avoid an error.
9458 Use char because int might match the return type of a GCC
9459 builtin and then its argument prototype would still apply. */
9460 #ifdef __cplusplus
9461 extern "C"
9462 #endif
9463 char malloc_set_state ();
9464 /* The GNU C library defines this for functions which it implements
9465 to always fail with ENOSYS. Some functions are actually named
9466 something starting with __ and the normal name is an alias. */
9467 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9468 choke me
9469 #endif
9472 main ()
9474 return malloc_set_state ();
9476 return 0;
9478 _ACEOF
9479 rm -f conftest.$ac_objext conftest$ac_exeext
9480 if { (ac_try="$ac_link"
9481 case "(($ac_try" in
9482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9483 *) ac_try_echo=$ac_try;;
9484 esac
9485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9486 (eval "$ac_link") 2>conftest.er1
9487 ac_status=$?
9488 grep -v '^ *+' conftest.er1 >conftest.err
9489 rm -f conftest.er1
9490 cat conftest.err >&5
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); } && {
9493 test -z "$ac_c_werror_flag" ||
9494 test ! -s conftest.err
9495 } && test -s conftest$ac_exeext &&
9496 $as_test_x conftest$ac_exeext; then
9497 ac_cv_func_malloc_set_state=yes
9498 else
9499 echo "$as_me: failed program was:" >&5
9500 sed 's/^/| /' conftest.$ac_ext >&5
9502 ac_cv_func_malloc_set_state=no
9505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9506 conftest$ac_exeext conftest.$ac_ext
9508 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9509 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9510 if test $ac_cv_func_malloc_set_state = yes; then
9512 else
9513 doug_lea_malloc=no
9516 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9517 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9518 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9519 echo $ECHO_N "(cached) $ECHO_C" >&6
9520 else
9521 cat >conftest.$ac_ext <<_ACEOF
9522 /* confdefs.h. */
9523 _ACEOF
9524 cat confdefs.h >>conftest.$ac_ext
9525 cat >>conftest.$ac_ext <<_ACEOF
9526 /* end confdefs.h. */
9527 extern void (* __after_morecore_hook)();
9529 main ()
9531 __after_morecore_hook = 0
9533 return 0;
9535 _ACEOF
9536 rm -f conftest.$ac_objext conftest$ac_exeext
9537 if { (ac_try="$ac_link"
9538 case "(($ac_try" in
9539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9540 *) ac_try_echo=$ac_try;;
9541 esac
9542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9543 (eval "$ac_link") 2>conftest.er1
9544 ac_status=$?
9545 grep -v '^ *+' conftest.er1 >conftest.err
9546 rm -f conftest.er1
9547 cat conftest.err >&5
9548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549 (exit $ac_status); } && {
9550 test -z "$ac_c_werror_flag" ||
9551 test ! -s conftest.err
9552 } && test -s conftest$ac_exeext &&
9553 $as_test_x conftest$ac_exeext; then
9554 emacs_cv_var___after_morecore_hook=yes
9555 else
9556 echo "$as_me: failed program was:" >&5
9557 sed 's/^/| /' conftest.$ac_ext >&5
9559 emacs_cv_var___after_morecore_hook=no
9562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9563 conftest$ac_exeext conftest.$ac_ext
9565 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9566 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9567 if test $emacs_cv_var___after_morecore_hook = no; then
9568 doug_lea_malloc=no
9570 if test "${system_malloc}" = "yes"; then
9571 GNU_MALLOC=no
9572 GNU_MALLOC_reason="
9573 (The GNU allocators don't work with this system configuration.)"
9575 if test "$doug_lea_malloc" = "yes" ; then
9576 if test "$GNU_MALLOC" = yes ; then
9577 GNU_MALLOC_reason="
9578 (Using Doug Lea's new malloc from the GNU C Library.)"
9581 cat >>confdefs.h <<\_ACEOF
9582 #define DOUG_LEA_MALLOC 1
9583 _ACEOF
9587 if test x"${REL_ALLOC}" = x; then
9588 REL_ALLOC=${GNU_MALLOC}
9594 for ac_header in stdlib.h unistd.h
9596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9598 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9601 echo $ECHO_N "(cached) $ECHO_C" >&6
9603 ac_res=`eval echo '${'$as_ac_Header'}'`
9604 { echo "$as_me:$LINENO: result: $ac_res" >&5
9605 echo "${ECHO_T}$ac_res" >&6; }
9606 else
9607 # Is the header compilable?
9608 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9609 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9610 cat >conftest.$ac_ext <<_ACEOF
9611 /* confdefs.h. */
9612 _ACEOF
9613 cat confdefs.h >>conftest.$ac_ext
9614 cat >>conftest.$ac_ext <<_ACEOF
9615 /* end confdefs.h. */
9616 $ac_includes_default
9617 #include <$ac_header>
9618 _ACEOF
9619 rm -f conftest.$ac_objext
9620 if { (ac_try="$ac_compile"
9621 case "(($ac_try" in
9622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9623 *) ac_try_echo=$ac_try;;
9624 esac
9625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9626 (eval "$ac_compile") 2>conftest.er1
9627 ac_status=$?
9628 grep -v '^ *+' conftest.er1 >conftest.err
9629 rm -f conftest.er1
9630 cat conftest.err >&5
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); } && {
9633 test -z "$ac_c_werror_flag" ||
9634 test ! -s conftest.err
9635 } && test -s conftest.$ac_objext; then
9636 ac_header_compiler=yes
9637 else
9638 echo "$as_me: failed program was:" >&5
9639 sed 's/^/| /' conftest.$ac_ext >&5
9641 ac_header_compiler=no
9644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9645 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9646 echo "${ECHO_T}$ac_header_compiler" >&6; }
9648 # Is the header present?
9649 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9651 cat >conftest.$ac_ext <<_ACEOF
9652 /* confdefs.h. */
9653 _ACEOF
9654 cat confdefs.h >>conftest.$ac_ext
9655 cat >>conftest.$ac_ext <<_ACEOF
9656 /* end confdefs.h. */
9657 #include <$ac_header>
9658 _ACEOF
9659 if { (ac_try="$ac_cpp conftest.$ac_ext"
9660 case "(($ac_try" in
9661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9662 *) ac_try_echo=$ac_try;;
9663 esac
9664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9666 ac_status=$?
9667 grep -v '^ *+' conftest.er1 >conftest.err
9668 rm -f conftest.er1
9669 cat conftest.err >&5
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 (exit $ac_status); } >/dev/null && {
9672 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9673 test ! -s conftest.err
9674 }; then
9675 ac_header_preproc=yes
9676 else
9677 echo "$as_me: failed program was:" >&5
9678 sed 's/^/| /' conftest.$ac_ext >&5
9680 ac_header_preproc=no
9683 rm -f conftest.err conftest.$ac_ext
9684 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9685 echo "${ECHO_T}$ac_header_preproc" >&6; }
9687 # So? What about this header?
9688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9689 yes:no: )
9690 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9691 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9693 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9694 ac_header_preproc=yes
9696 no:yes:* )
9697 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9699 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9700 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9701 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9702 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9703 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9704 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9707 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9708 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9711 esac
9712 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9715 echo $ECHO_N "(cached) $ECHO_C" >&6
9716 else
9717 eval "$as_ac_Header=\$ac_header_preproc"
9719 ac_res=`eval echo '${'$as_ac_Header'}'`
9720 { echo "$as_me:$LINENO: result: $ac_res" >&5
9721 echo "${ECHO_T}$ac_res" >&6; }
9724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9725 cat >>confdefs.h <<_ACEOF
9726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9727 _ACEOF
9731 done
9734 for ac_func in getpagesize
9736 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9737 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9738 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9739 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9740 echo $ECHO_N "(cached) $ECHO_C" >&6
9741 else
9742 cat >conftest.$ac_ext <<_ACEOF
9743 /* confdefs.h. */
9744 _ACEOF
9745 cat confdefs.h >>conftest.$ac_ext
9746 cat >>conftest.$ac_ext <<_ACEOF
9747 /* end confdefs.h. */
9748 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9750 #define $ac_func innocuous_$ac_func
9752 /* System header to define __stub macros and hopefully few prototypes,
9753 which can conflict with char $ac_func (); below.
9754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9755 <limits.h> exists even on freestanding compilers. */
9757 #ifdef __STDC__
9758 # include <limits.h>
9759 #else
9760 # include <assert.h>
9761 #endif
9763 #undef $ac_func
9765 /* Override any GCC internal prototype to avoid an error.
9766 Use char because int might match the return type of a GCC
9767 builtin and then its argument prototype would still apply. */
9768 #ifdef __cplusplus
9769 extern "C"
9770 #endif
9771 char $ac_func ();
9772 /* The GNU C library defines this for functions which it implements
9773 to always fail with ENOSYS. Some functions are actually named
9774 something starting with __ and the normal name is an alias. */
9775 #if defined __stub_$ac_func || defined __stub___$ac_func
9776 choke me
9777 #endif
9780 main ()
9782 return $ac_func ();
9784 return 0;
9786 _ACEOF
9787 rm -f conftest.$ac_objext conftest$ac_exeext
9788 if { (ac_try="$ac_link"
9789 case "(($ac_try" in
9790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9791 *) ac_try_echo=$ac_try;;
9792 esac
9793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9794 (eval "$ac_link") 2>conftest.er1
9795 ac_status=$?
9796 grep -v '^ *+' conftest.er1 >conftest.err
9797 rm -f conftest.er1
9798 cat conftest.err >&5
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); } && {
9801 test -z "$ac_c_werror_flag" ||
9802 test ! -s conftest.err
9803 } && test -s conftest$ac_exeext &&
9804 $as_test_x conftest$ac_exeext; then
9805 eval "$as_ac_var=yes"
9806 else
9807 echo "$as_me: failed program was:" >&5
9808 sed 's/^/| /' conftest.$ac_ext >&5
9810 eval "$as_ac_var=no"
9813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9814 conftest$ac_exeext conftest.$ac_ext
9816 ac_res=`eval echo '${'$as_ac_var'}'`
9817 { echo "$as_me:$LINENO: result: $ac_res" >&5
9818 echo "${ECHO_T}$ac_res" >&6; }
9819 if test `eval echo '${'$as_ac_var'}'` = yes; then
9820 cat >>confdefs.h <<_ACEOF
9821 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9822 _ACEOF
9825 done
9827 { echo "$as_me:$LINENO: checking for working mmap" >&5
9828 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9829 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9830 echo $ECHO_N "(cached) $ECHO_C" >&6
9831 else
9832 if test "$cross_compiling" = yes; then
9833 ac_cv_func_mmap_fixed_mapped=no
9834 else
9835 cat >conftest.$ac_ext <<_ACEOF
9836 /* confdefs.h. */
9837 _ACEOF
9838 cat confdefs.h >>conftest.$ac_ext
9839 cat >>conftest.$ac_ext <<_ACEOF
9840 /* end confdefs.h. */
9841 $ac_includes_default
9842 /* malloc might have been renamed as rpl_malloc. */
9843 #undef malloc
9845 /* Thanks to Mike Haertel and Jim Avera for this test.
9846 Here is a matrix of mmap possibilities:
9847 mmap private not fixed
9848 mmap private fixed at somewhere currently unmapped
9849 mmap private fixed at somewhere already mapped
9850 mmap shared not fixed
9851 mmap shared fixed at somewhere currently unmapped
9852 mmap shared fixed at somewhere already mapped
9853 For private mappings, we should verify that changes cannot be read()
9854 back from the file, nor mmap's back from the file at a different
9855 address. (There have been systems where private was not correctly
9856 implemented like the infamous i386 svr4.0, and systems where the
9857 VM page cache was not coherent with the file system buffer cache
9858 like early versions of FreeBSD and possibly contemporary NetBSD.)
9859 For shared mappings, we should conversely verify that changes get
9860 propagated back to all the places they're supposed to be.
9862 Grep wants private fixed already mapped.
9863 The main things grep needs to know about mmap are:
9864 * does it exist and is it safe to write into the mmap'd area
9865 * how to use it (BSD variants) */
9867 #include <fcntl.h>
9868 #include <sys/mman.h>
9870 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9871 char *malloc ();
9872 #endif
9874 /* This mess was copied from the GNU getpagesize.h. */
9875 #ifndef HAVE_GETPAGESIZE
9876 /* Assume that all systems that can run configure have sys/param.h. */
9877 # ifndef HAVE_SYS_PARAM_H
9878 # define HAVE_SYS_PARAM_H 1
9879 # endif
9881 # ifdef _SC_PAGESIZE
9882 # define getpagesize() sysconf(_SC_PAGESIZE)
9883 # else /* no _SC_PAGESIZE */
9884 # ifdef HAVE_SYS_PARAM_H
9885 # include <sys/param.h>
9886 # ifdef EXEC_PAGESIZE
9887 # define getpagesize() EXEC_PAGESIZE
9888 # else /* no EXEC_PAGESIZE */
9889 # ifdef NBPG
9890 # define getpagesize() NBPG * CLSIZE
9891 # ifndef CLSIZE
9892 # define CLSIZE 1
9893 # endif /* no CLSIZE */
9894 # else /* no NBPG */
9895 # ifdef NBPC
9896 # define getpagesize() NBPC
9897 # else /* no NBPC */
9898 # ifdef PAGESIZE
9899 # define getpagesize() PAGESIZE
9900 # endif /* PAGESIZE */
9901 # endif /* no NBPC */
9902 # endif /* no NBPG */
9903 # endif /* no EXEC_PAGESIZE */
9904 # else /* no HAVE_SYS_PARAM_H */
9905 # define getpagesize() 8192 /* punt totally */
9906 # endif /* no HAVE_SYS_PARAM_H */
9907 # endif /* no _SC_PAGESIZE */
9909 #endif /* no HAVE_GETPAGESIZE */
9912 main ()
9914 char *data, *data2, *data3;
9915 int i, pagesize;
9916 int fd;
9918 pagesize = getpagesize ();
9920 /* First, make a file with some known garbage in it. */
9921 data = (char *) malloc (pagesize);
9922 if (!data)
9923 return 1;
9924 for (i = 0; i < pagesize; ++i)
9925 *(data + i) = rand ();
9926 umask (0);
9927 fd = creat ("conftest.mmap", 0600);
9928 if (fd < 0)
9929 return 1;
9930 if (write (fd, data, pagesize) != pagesize)
9931 return 1;
9932 close (fd);
9934 /* Next, try to mmap the file at a fixed address which already has
9935 something else allocated at it. If we can, also make sure that
9936 we see the same garbage. */
9937 fd = open ("conftest.mmap", O_RDWR);
9938 if (fd < 0)
9939 return 1;
9940 data2 = (char *) malloc (2 * pagesize);
9941 if (!data2)
9942 return 1;
9943 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9944 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9945 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9946 return 1;
9947 for (i = 0; i < pagesize; ++i)
9948 if (*(data + i) != *(data2 + i))
9949 return 1;
9951 /* Finally, make sure that changes to the mapped area do not
9952 percolate back to the file as seen by read(). (This is a bug on
9953 some variants of i386 svr4.0.) */
9954 for (i = 0; i < pagesize; ++i)
9955 *(data2 + i) = *(data2 + i) + 1;
9956 data3 = (char *) malloc (pagesize);
9957 if (!data3)
9958 return 1;
9959 if (read (fd, data3, pagesize) != pagesize)
9960 return 1;
9961 for (i = 0; i < pagesize; ++i)
9962 if (*(data + i) != *(data3 + i))
9963 return 1;
9964 close (fd);
9965 return 0;
9967 _ACEOF
9968 rm -f conftest$ac_exeext
9969 if { (ac_try="$ac_link"
9970 case "(($ac_try" in
9971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9972 *) ac_try_echo=$ac_try;;
9973 esac
9974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9975 (eval "$ac_link") 2>&5
9976 ac_status=$?
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9979 { (case "(($ac_try" in
9980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9981 *) ac_try_echo=$ac_try;;
9982 esac
9983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9984 (eval "$ac_try") 2>&5
9985 ac_status=$?
9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 (exit $ac_status); }; }; then
9988 ac_cv_func_mmap_fixed_mapped=yes
9989 else
9990 echo "$as_me: program exited with status $ac_status" >&5
9991 echo "$as_me: failed program was:" >&5
9992 sed 's/^/| /' conftest.$ac_ext >&5
9994 ( exit $ac_status )
9995 ac_cv_func_mmap_fixed_mapped=no
9997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10002 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10003 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10004 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10006 cat >>confdefs.h <<\_ACEOF
10007 #define HAVE_MMAP 1
10008 _ACEOF
10011 rm -f conftest.mmap
10013 if test $use_mmap_for_buffers = yes; then
10014 REL_ALLOC=no
10017 LIBS="$libsrc_libs $LIBS"
10020 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10021 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10022 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10023 echo $ECHO_N "(cached) $ECHO_C" >&6
10024 else
10025 ac_check_lib_save_LIBS=$LIBS
10026 LIBS="-ldnet $LIBS"
10027 cat >conftest.$ac_ext <<_ACEOF
10028 /* confdefs.h. */
10029 _ACEOF
10030 cat confdefs.h >>conftest.$ac_ext
10031 cat >>conftest.$ac_ext <<_ACEOF
10032 /* end confdefs.h. */
10034 /* Override any GCC internal prototype to avoid an error.
10035 Use char because int might match the return type of a GCC
10036 builtin and then its argument prototype would still apply. */
10037 #ifdef __cplusplus
10038 extern "C"
10039 #endif
10040 char dnet_ntoa ();
10042 main ()
10044 return dnet_ntoa ();
10046 return 0;
10048 _ACEOF
10049 rm -f conftest.$ac_objext conftest$ac_exeext
10050 if { (ac_try="$ac_link"
10051 case "(($ac_try" in
10052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10053 *) ac_try_echo=$ac_try;;
10054 esac
10055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10056 (eval "$ac_link") 2>conftest.er1
10057 ac_status=$?
10058 grep -v '^ *+' conftest.er1 >conftest.err
10059 rm -f conftest.er1
10060 cat conftest.err >&5
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); } && {
10063 test -z "$ac_c_werror_flag" ||
10064 test ! -s conftest.err
10065 } && test -s conftest$ac_exeext &&
10066 $as_test_x conftest$ac_exeext; then
10067 ac_cv_lib_dnet_dnet_ntoa=yes
10068 else
10069 echo "$as_me: failed program was:" >&5
10070 sed 's/^/| /' conftest.$ac_ext >&5
10072 ac_cv_lib_dnet_dnet_ntoa=no
10075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10076 conftest$ac_exeext conftest.$ac_ext
10077 LIBS=$ac_check_lib_save_LIBS
10079 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10080 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10081 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10082 cat >>confdefs.h <<_ACEOF
10083 #define HAVE_LIBDNET 1
10084 _ACEOF
10086 LIBS="-ldnet $LIBS"
10091 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10092 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10093 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10094 echo $ECHO_N "(cached) $ECHO_C" >&6
10095 else
10096 ac_check_lib_save_LIBS=$LIBS
10097 LIBS="-lXbsd $LIBS"
10098 cat >conftest.$ac_ext <<_ACEOF
10099 /* confdefs.h. */
10100 _ACEOF
10101 cat confdefs.h >>conftest.$ac_ext
10102 cat >>conftest.$ac_ext <<_ACEOF
10103 /* end confdefs.h. */
10107 main ()
10109 return main ();
10111 return 0;
10113 _ACEOF
10114 rm -f conftest.$ac_objext conftest$ac_exeext
10115 if { (ac_try="$ac_link"
10116 case "(($ac_try" in
10117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10118 *) ac_try_echo=$ac_try;;
10119 esac
10120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10121 (eval "$ac_link") 2>conftest.er1
10122 ac_status=$?
10123 grep -v '^ *+' conftest.er1 >conftest.err
10124 rm -f conftest.er1
10125 cat conftest.err >&5
10126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127 (exit $ac_status); } && {
10128 test -z "$ac_c_werror_flag" ||
10129 test ! -s conftest.err
10130 } && test -s conftest$ac_exeext &&
10131 $as_test_x conftest$ac_exeext; then
10132 ac_cv_lib_Xbsd_main=yes
10133 else
10134 echo "$as_me: failed program was:" >&5
10135 sed 's/^/| /' conftest.$ac_ext >&5
10137 ac_cv_lib_Xbsd_main=no
10140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10141 conftest$ac_exeext conftest.$ac_ext
10142 LIBS=$ac_check_lib_save_LIBS
10144 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10145 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10146 if test $ac_cv_lib_Xbsd_main = yes; then
10147 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10152 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10153 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10154 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10155 echo $ECHO_N "(cached) $ECHO_C" >&6
10156 else
10157 ac_check_lib_save_LIBS=$LIBS
10158 LIBS="-lpthreads $LIBS"
10159 cat >conftest.$ac_ext <<_ACEOF
10160 /* confdefs.h. */
10161 _ACEOF
10162 cat confdefs.h >>conftest.$ac_ext
10163 cat >>conftest.$ac_ext <<_ACEOF
10164 /* end confdefs.h. */
10166 /* Override any GCC internal prototype to avoid an error.
10167 Use char because int might match the return type of a GCC
10168 builtin and then its argument prototype would still apply. */
10169 #ifdef __cplusplus
10170 extern "C"
10171 #endif
10172 char cma_open ();
10174 main ()
10176 return cma_open ();
10178 return 0;
10180 _ACEOF
10181 rm -f conftest.$ac_objext conftest$ac_exeext
10182 if { (ac_try="$ac_link"
10183 case "(($ac_try" in
10184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10185 *) ac_try_echo=$ac_try;;
10186 esac
10187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10188 (eval "$ac_link") 2>conftest.er1
10189 ac_status=$?
10190 grep -v '^ *+' conftest.er1 >conftest.err
10191 rm -f conftest.er1
10192 cat conftest.err >&5
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); } && {
10195 test -z "$ac_c_werror_flag" ||
10196 test ! -s conftest.err
10197 } && test -s conftest$ac_exeext &&
10198 $as_test_x conftest$ac_exeext; then
10199 ac_cv_lib_pthreads_cma_open=yes
10200 else
10201 echo "$as_me: failed program was:" >&5
10202 sed 's/^/| /' conftest.$ac_ext >&5
10204 ac_cv_lib_pthreads_cma_open=no
10207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10208 conftest$ac_exeext conftest.$ac_ext
10209 LIBS=$ac_check_lib_save_LIBS
10211 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10212 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10213 if test $ac_cv_lib_pthreads_cma_open = yes; then
10214 cat >>confdefs.h <<_ACEOF
10215 #define HAVE_LIBPTHREADS 1
10216 _ACEOF
10218 LIBS="-lpthreads $LIBS"
10224 case ${host_os} in
10225 aix*)
10226 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10227 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10228 if test "${gdb_cv_bigtoc+set}" = set; then
10229 echo $ECHO_N "(cached) $ECHO_C" >&6
10230 else
10232 case $GCC in
10233 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10234 *) gdb_cv_bigtoc=-bbigtoc ;;
10235 esac
10237 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10238 cat >conftest.$ac_ext <<_ACEOF
10239 /* confdefs.h. */
10240 _ACEOF
10241 cat confdefs.h >>conftest.$ac_ext
10242 cat >>conftest.$ac_ext <<_ACEOF
10243 /* end confdefs.h. */
10246 main ()
10248 int i;
10250 return 0;
10252 _ACEOF
10253 rm -f conftest.$ac_objext conftest$ac_exeext
10254 if { (ac_try="$ac_link"
10255 case "(($ac_try" in
10256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10257 *) ac_try_echo=$ac_try;;
10258 esac
10259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10260 (eval "$ac_link") 2>conftest.er1
10261 ac_status=$?
10262 grep -v '^ *+' conftest.er1 >conftest.err
10263 rm -f conftest.er1
10264 cat conftest.err >&5
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); } && {
10267 test -z "$ac_c_werror_flag" ||
10268 test ! -s conftest.err
10269 } && test -s conftest$ac_exeext &&
10270 $as_test_x conftest$ac_exeext; then
10272 else
10273 echo "$as_me: failed program was:" >&5
10274 sed 's/^/| /' conftest.$ac_ext >&5
10276 gdb_cv_bigtoc=
10279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10280 conftest$ac_exeext conftest.$ac_ext
10283 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10284 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10286 esac
10288 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10289 # used for the tests that follow. We set them back to REAL_CFLAGS and
10290 # REAL_CPPFLAGS later on.
10292 REAL_CPPFLAGS="$CPPFLAGS"
10294 if test "${HAVE_X11}" = "yes"; then
10295 DEFS="$C_SWITCH_X_SITE $DEFS"
10296 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10297 LIBS="$LIBX $LIBS"
10298 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10299 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10301 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10302 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10303 # but it's more convenient here to set LD_RUN_PATH
10304 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10305 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10306 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10307 export LD_RUN_PATH
10310 if test "${opsys}" = "gnu-linux"; then
10311 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10312 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10313 cat >conftest.$ac_ext <<_ACEOF
10314 /* confdefs.h. */
10315 _ACEOF
10316 cat confdefs.h >>conftest.$ac_ext
10317 cat >>conftest.$ac_ext <<_ACEOF
10318 /* end confdefs.h. */
10321 main ()
10323 XOpenDisplay ("foo");
10325 return 0;
10327 _ACEOF
10328 rm -f conftest.$ac_objext conftest$ac_exeext
10329 if { (ac_try="$ac_link"
10330 case "(($ac_try" in
10331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10332 *) ac_try_echo=$ac_try;;
10333 esac
10334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10335 (eval "$ac_link") 2>conftest.er1
10336 ac_status=$?
10337 grep -v '^ *+' conftest.er1 >conftest.err
10338 rm -f conftest.er1
10339 cat conftest.err >&5
10340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341 (exit $ac_status); } && {
10342 test -z "$ac_c_werror_flag" ||
10343 test ! -s conftest.err
10344 } && test -s conftest$ac_exeext &&
10345 $as_test_x conftest$ac_exeext; then
10346 xlinux_first_failure=no
10347 else
10348 echo "$as_me: failed program was:" >&5
10349 sed 's/^/| /' conftest.$ac_ext >&5
10351 xlinux_first_failure=yes
10354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10355 conftest$ac_exeext conftest.$ac_ext
10356 if test "${xlinux_first_failure}" = "yes"; then
10357 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10358 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10359 OLD_CPPFLAGS="$CPPFLAGS"
10360 OLD_LIBS="$LIBS"
10361 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10362 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10363 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10364 LIBS="$LIBS -b i486-linuxaout"
10365 cat >conftest.$ac_ext <<_ACEOF
10366 /* confdefs.h. */
10367 _ACEOF
10368 cat confdefs.h >>conftest.$ac_ext
10369 cat >>conftest.$ac_ext <<_ACEOF
10370 /* end confdefs.h. */
10373 main ()
10375 XOpenDisplay ("foo");
10377 return 0;
10379 _ACEOF
10380 rm -f conftest.$ac_objext conftest$ac_exeext
10381 if { (ac_try="$ac_link"
10382 case "(($ac_try" in
10383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10384 *) ac_try_echo=$ac_try;;
10385 esac
10386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10387 (eval "$ac_link") 2>conftest.er1
10388 ac_status=$?
10389 grep -v '^ *+' conftest.er1 >conftest.err
10390 rm -f conftest.er1
10391 cat conftest.err >&5
10392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393 (exit $ac_status); } && {
10394 test -z "$ac_c_werror_flag" ||
10395 test ! -s conftest.err
10396 } && test -s conftest$ac_exeext &&
10397 $as_test_x conftest$ac_exeext; then
10398 xlinux_second_failure=no
10399 else
10400 echo "$as_me: failed program was:" >&5
10401 sed 's/^/| /' conftest.$ac_ext >&5
10403 xlinux_second_failure=yes
10406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10407 conftest$ac_exeext conftest.$ac_ext
10408 if test "${xlinux_second_failure}" = "yes"; then
10409 # If we get the same failure with -b, there is no use adding -b.
10410 # So take it out. This plays safe.
10411 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10412 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10413 CPPFLAGS="$OLD_CPPFLAGS"
10414 LIBS="$OLD_LIBS"
10415 { echo "$as_me:$LINENO: result: no" >&5
10416 echo "${ECHO_T}no" >&6; }
10417 else
10418 { echo "$as_me:$LINENO: result: yes" >&5
10419 echo "${ECHO_T}yes" >&6; }
10421 else
10422 { echo "$as_me:$LINENO: result: no" >&5
10423 echo "${ECHO_T}no" >&6; }
10427 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10428 # header files included from there.
10429 { echo "$as_me:$LINENO: checking for Xkb" >&5
10430 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10431 cat >conftest.$ac_ext <<_ACEOF
10432 /* confdefs.h. */
10433 _ACEOF
10434 cat confdefs.h >>conftest.$ac_ext
10435 cat >>conftest.$ac_ext <<_ACEOF
10436 /* end confdefs.h. */
10437 #include <X11/Xlib.h>
10438 #include <X11/XKBlib.h>
10440 main ()
10442 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10444 return 0;
10446 _ACEOF
10447 rm -f conftest.$ac_objext conftest$ac_exeext
10448 if { (ac_try="$ac_link"
10449 case "(($ac_try" in
10450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10451 *) ac_try_echo=$ac_try;;
10452 esac
10453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10454 (eval "$ac_link") 2>conftest.er1
10455 ac_status=$?
10456 grep -v '^ *+' conftest.er1 >conftest.err
10457 rm -f conftest.er1
10458 cat conftest.err >&5
10459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460 (exit $ac_status); } && {
10461 test -z "$ac_c_werror_flag" ||
10462 test ! -s conftest.err
10463 } && test -s conftest$ac_exeext &&
10464 $as_test_x conftest$ac_exeext; then
10465 emacs_xkb=yes
10466 else
10467 echo "$as_me: failed program was:" >&5
10468 sed 's/^/| /' conftest.$ac_ext >&5
10470 emacs_xkb=no
10473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10474 conftest$ac_exeext conftest.$ac_ext
10475 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10476 echo "${ECHO_T}$emacs_xkb" >&6; }
10477 if test $emacs_xkb = yes; then
10479 cat >>confdefs.h <<\_ACEOF
10480 #define HAVE_XKBGETKEYBOARD 1
10481 _ACEOF
10489 for ac_func in XrmSetDatabase XScreenResourceString \
10490 XScreenNumberOfScreen XSetWMProtocols
10492 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10493 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10494 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10495 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10496 echo $ECHO_N "(cached) $ECHO_C" >&6
10497 else
10498 cat >conftest.$ac_ext <<_ACEOF
10499 /* confdefs.h. */
10500 _ACEOF
10501 cat confdefs.h >>conftest.$ac_ext
10502 cat >>conftest.$ac_ext <<_ACEOF
10503 /* end confdefs.h. */
10504 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10505 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10506 #define $ac_func innocuous_$ac_func
10508 /* System header to define __stub macros and hopefully few prototypes,
10509 which can conflict with char $ac_func (); below.
10510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10511 <limits.h> exists even on freestanding compilers. */
10513 #ifdef __STDC__
10514 # include <limits.h>
10515 #else
10516 # include <assert.h>
10517 #endif
10519 #undef $ac_func
10521 /* Override any GCC internal prototype to avoid an error.
10522 Use char because int might match the return type of a GCC
10523 builtin and then its argument prototype would still apply. */
10524 #ifdef __cplusplus
10525 extern "C"
10526 #endif
10527 char $ac_func ();
10528 /* The GNU C library defines this for functions which it implements
10529 to always fail with ENOSYS. Some functions are actually named
10530 something starting with __ and the normal name is an alias. */
10531 #if defined __stub_$ac_func || defined __stub___$ac_func
10532 choke me
10533 #endif
10536 main ()
10538 return $ac_func ();
10540 return 0;
10542 _ACEOF
10543 rm -f conftest.$ac_objext conftest$ac_exeext
10544 if { (ac_try="$ac_link"
10545 case "(($ac_try" in
10546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10547 *) ac_try_echo=$ac_try;;
10548 esac
10549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10550 (eval "$ac_link") 2>conftest.er1
10551 ac_status=$?
10552 grep -v '^ *+' conftest.er1 >conftest.err
10553 rm -f conftest.er1
10554 cat conftest.err >&5
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); } && {
10557 test -z "$ac_c_werror_flag" ||
10558 test ! -s conftest.err
10559 } && test -s conftest$ac_exeext &&
10560 $as_test_x conftest$ac_exeext; then
10561 eval "$as_ac_var=yes"
10562 else
10563 echo "$as_me: failed program was:" >&5
10564 sed 's/^/| /' conftest.$ac_ext >&5
10566 eval "$as_ac_var=no"
10569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10570 conftest$ac_exeext conftest.$ac_ext
10572 ac_res=`eval echo '${'$as_ac_var'}'`
10573 { echo "$as_me:$LINENO: result: $ac_res" >&5
10574 echo "${ECHO_T}$ac_res" >&6; }
10575 if test `eval echo '${'$as_ac_var'}'` = yes; then
10576 cat >>confdefs.h <<_ACEOF
10577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10578 _ACEOF
10581 done
10585 if test "${window_system}" = "x11"; then
10586 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10587 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10588 if test "${emacs_cv_x11_version_6+set}" = set; then
10589 echo $ECHO_N "(cached) $ECHO_C" >&6
10590 else
10591 cat >conftest.$ac_ext <<_ACEOF
10592 /* confdefs.h. */
10593 _ACEOF
10594 cat confdefs.h >>conftest.$ac_ext
10595 cat >>conftest.$ac_ext <<_ACEOF
10596 /* end confdefs.h. */
10597 #include <X11/Xlib.h>
10599 main ()
10601 #if XlibSpecificationRelease < 6
10602 fail;
10603 #endif
10606 return 0;
10608 _ACEOF
10609 rm -f conftest.$ac_objext conftest$ac_exeext
10610 if { (ac_try="$ac_link"
10611 case "(($ac_try" in
10612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10613 *) ac_try_echo=$ac_try;;
10614 esac
10615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10616 (eval "$ac_link") 2>conftest.er1
10617 ac_status=$?
10618 grep -v '^ *+' conftest.er1 >conftest.err
10619 rm -f conftest.er1
10620 cat conftest.err >&5
10621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 (exit $ac_status); } && {
10623 test -z "$ac_c_werror_flag" ||
10624 test ! -s conftest.err
10625 } && test -s conftest$ac_exeext &&
10626 $as_test_x conftest$ac_exeext; then
10627 emacs_cv_x11_version_6=yes
10628 else
10629 echo "$as_me: failed program was:" >&5
10630 sed 's/^/| /' conftest.$ac_ext >&5
10632 emacs_cv_x11_version_6=no
10635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10636 conftest$ac_exeext conftest.$ac_ext
10639 if test $emacs_cv_x11_version_6 = yes; then
10640 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10641 echo "${ECHO_T}6 or newer" >&6; }
10643 cat >>confdefs.h <<\_ACEOF
10644 #define HAVE_X11R6 1
10645 _ACEOF
10647 else
10648 { echo "$as_me:$LINENO: result: before 6" >&5
10649 echo "${ECHO_T}before 6" >&6; }
10654 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10655 HAVE_RSVG=no
10656 if test "${HAVE_X11}" = "yes" || test "${HAVE_CARBON}" = "yes"; then
10657 if test "${with_rsvg}" != "no"; then
10658 RSVG_REQUIRED=2.0.0
10659 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10662 succeeded=no
10664 # Extract the first word of "pkg-config", so it can be a program name with args.
10665 set dummy pkg-config; ac_word=$2
10666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10668 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10669 echo $ECHO_N "(cached) $ECHO_C" >&6
10670 else
10671 case $PKG_CONFIG in
10672 [\\/]* | ?:[\\/]*)
10673 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10677 for as_dir in $PATH
10679 IFS=$as_save_IFS
10680 test -z "$as_dir" && as_dir=.
10681 for ac_exec_ext in '' $ac_executable_extensions; do
10682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10683 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10685 break 2
10687 done
10688 done
10689 IFS=$as_save_IFS
10691 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10693 esac
10695 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10696 if test -n "$PKG_CONFIG"; then
10697 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10698 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10699 else
10700 { echo "$as_me:$LINENO: result: no" >&5
10701 echo "${ECHO_T}no" >&6; }
10706 if test "$PKG_CONFIG" = "no" ; then
10708 else
10709 PKG_CONFIG_MIN_VERSION=0.9.0
10710 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10711 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10712 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10714 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10715 { echo "$as_me:$LINENO: result: yes" >&5
10716 echo "${ECHO_T}yes" >&6; }
10717 succeeded=yes
10719 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
10720 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
10721 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10722 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
10723 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10725 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
10726 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
10727 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10728 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
10729 echo "${ECHO_T}$RSVG_LIBS" >&6; }
10730 else
10731 { echo "$as_me:$LINENO: result: no" >&5
10732 echo "${ECHO_T}no" >&6; }
10733 RSVG_CFLAGS=""
10734 RSVG_LIBS=""
10735 ## If we have a custom action on failure, don't print errors, but
10736 ## do set a variable so people can do so.
10737 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10743 else
10744 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10745 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10749 if test $succeeded = yes; then
10751 else
10758 if test ".${RSVG_CFLAGS}" != "."; then
10759 HAVE_RSVG=yes
10761 cat >>confdefs.h <<\_ACEOF
10762 #define HAVE_RSVG 1
10763 _ACEOF
10765 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10766 LIBS="$RSVG_LIBS $LIBS"
10772 HAVE_GTK=no
10773 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10774 GLIB_REQUIRED=2.6
10775 GTK_REQUIRED=2.6
10776 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10779 succeeded=no
10781 # Extract the first word of "pkg-config", so it can be a program name with args.
10782 set dummy pkg-config; ac_word=$2
10783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10785 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10786 echo $ECHO_N "(cached) $ECHO_C" >&6
10787 else
10788 case $PKG_CONFIG in
10789 [\\/]* | ?:[\\/]*)
10790 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10794 for as_dir in $PATH
10796 IFS=$as_save_IFS
10797 test -z "$as_dir" && as_dir=.
10798 for ac_exec_ext in '' $ac_executable_extensions; do
10799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10800 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10802 break 2
10804 done
10805 done
10806 IFS=$as_save_IFS
10808 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10810 esac
10812 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10813 if test -n "$PKG_CONFIG"; then
10814 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10815 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10816 else
10817 { echo "$as_me:$LINENO: result: no" >&5
10818 echo "${ECHO_T}no" >&6; }
10823 if test "$PKG_CONFIG" = "no" ; then
10824 pkg_check_gtk=no
10825 else
10826 PKG_CONFIG_MIN_VERSION=0.9.0
10827 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10828 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10829 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10831 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10832 { echo "$as_me:$LINENO: result: yes" >&5
10833 echo "${ECHO_T}yes" >&6; }
10834 succeeded=yes
10836 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10837 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10838 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10839 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10840 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10842 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10843 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10844 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10845 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10846 echo "${ECHO_T}$GTK_LIBS" >&6; }
10847 else
10848 { echo "$as_me:$LINENO: result: no" >&5
10849 echo "${ECHO_T}no" >&6; }
10850 GTK_CFLAGS=""
10851 GTK_LIBS=""
10852 ## If we have a custom action on failure, don't print errors, but
10853 ## do set a variable so people can do so.
10854 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10860 else
10861 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10862 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10866 if test $succeeded = yes; then
10867 pkg_check_gtk=yes
10868 else
10869 pkg_check_gtk=no
10872 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10873 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
10874 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
10875 { (exit 1); exit 1; }; }
10880 if test x"$pkg_check_gtk" = xyes; then
10884 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10885 CFLAGS="$CFLAGS $GTK_CFLAGS"
10886 LIBS="$GTK_LIBS $LIBS"
10887 GTK_COMPILES=no
10889 for ac_func in gtk_main
10891 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10892 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10893 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10894 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10895 echo $ECHO_N "(cached) $ECHO_C" >&6
10896 else
10897 cat >conftest.$ac_ext <<_ACEOF
10898 /* confdefs.h. */
10899 _ACEOF
10900 cat confdefs.h >>conftest.$ac_ext
10901 cat >>conftest.$ac_ext <<_ACEOF
10902 /* end confdefs.h. */
10903 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10905 #define $ac_func innocuous_$ac_func
10907 /* System header to define __stub macros and hopefully few prototypes,
10908 which can conflict with char $ac_func (); below.
10909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10910 <limits.h> exists even on freestanding compilers. */
10912 #ifdef __STDC__
10913 # include <limits.h>
10914 #else
10915 # include <assert.h>
10916 #endif
10918 #undef $ac_func
10920 /* Override any GCC internal prototype to avoid an error.
10921 Use char because int might match the return type of a GCC
10922 builtin and then its argument prototype would still apply. */
10923 #ifdef __cplusplus
10924 extern "C"
10925 #endif
10926 char $ac_func ();
10927 /* The GNU C library defines this for functions which it implements
10928 to always fail with ENOSYS. Some functions are actually named
10929 something starting with __ and the normal name is an alias. */
10930 #if defined __stub_$ac_func || defined __stub___$ac_func
10931 choke me
10932 #endif
10935 main ()
10937 return $ac_func ();
10939 return 0;
10941 _ACEOF
10942 rm -f conftest.$ac_objext conftest$ac_exeext
10943 if { (ac_try="$ac_link"
10944 case "(($ac_try" in
10945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10946 *) ac_try_echo=$ac_try;;
10947 esac
10948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10949 (eval "$ac_link") 2>conftest.er1
10950 ac_status=$?
10951 grep -v '^ *+' conftest.er1 >conftest.err
10952 rm -f conftest.er1
10953 cat conftest.err >&5
10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); } && {
10956 test -z "$ac_c_werror_flag" ||
10957 test ! -s conftest.err
10958 } && test -s conftest$ac_exeext &&
10959 $as_test_x conftest$ac_exeext; then
10960 eval "$as_ac_var=yes"
10961 else
10962 echo "$as_me: failed program was:" >&5
10963 sed 's/^/| /' conftest.$ac_ext >&5
10965 eval "$as_ac_var=no"
10968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10969 conftest$ac_exeext conftest.$ac_ext
10971 ac_res=`eval echo '${'$as_ac_var'}'`
10972 { echo "$as_me:$LINENO: result: $ac_res" >&5
10973 echo "${ECHO_T}$ac_res" >&6; }
10974 if test `eval echo '${'$as_ac_var'}'` = yes; then
10975 cat >>confdefs.h <<_ACEOF
10976 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10977 _ACEOF
10978 GTK_COMPILES=yes
10980 done
10982 if test "${GTK_COMPILES}" != "yes"; then
10983 if test "$USE_X_TOOLKIT" != "maybe"; then
10984 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
10985 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
10986 { (exit 1); exit 1; }; };
10988 else
10989 HAVE_GTK=yes
10991 cat >>confdefs.h <<\_ACEOF
10992 #define HAVE_GTK 1
10993 _ACEOF
10995 USE_X_TOOLKIT=none
10996 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
10998 else
10999 { echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11000 closing open displays. This is no problem if you just use
11001 one display, but if you use more than one and close one of them
11002 Emacs may crash." >&5
11003 echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11004 closing open displays. This is no problem if you just use
11005 one display, but if you use more than one and close one of them
11006 Emacs may crash." >&2;}
11007 sleep 3
11014 if test "${HAVE_GTK}" = "yes"; then
11016 if test "$with_toolkit_scroll_bars" != no; then
11017 with_toolkit_scroll_bars=yes
11020 HAVE_GTK_MULTIDISPLAY=no
11022 for ac_func in gdk_display_open
11024 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11025 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11026 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11027 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11028 echo $ECHO_N "(cached) $ECHO_C" >&6
11029 else
11030 cat >conftest.$ac_ext <<_ACEOF
11031 /* confdefs.h. */
11032 _ACEOF
11033 cat confdefs.h >>conftest.$ac_ext
11034 cat >>conftest.$ac_ext <<_ACEOF
11035 /* end confdefs.h. */
11036 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11037 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11038 #define $ac_func innocuous_$ac_func
11040 /* System header to define __stub macros and hopefully few prototypes,
11041 which can conflict with char $ac_func (); below.
11042 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11043 <limits.h> exists even on freestanding compilers. */
11045 #ifdef __STDC__
11046 # include <limits.h>
11047 #else
11048 # include <assert.h>
11049 #endif
11051 #undef $ac_func
11053 /* Override any GCC internal prototype to avoid an error.
11054 Use char because int might match the return type of a GCC
11055 builtin and then its argument prototype would still apply. */
11056 #ifdef __cplusplus
11057 extern "C"
11058 #endif
11059 char $ac_func ();
11060 /* The GNU C library defines this for functions which it implements
11061 to always fail with ENOSYS. Some functions are actually named
11062 something starting with __ and the normal name is an alias. */
11063 #if defined __stub_$ac_func || defined __stub___$ac_func
11064 choke me
11065 #endif
11068 main ()
11070 return $ac_func ();
11072 return 0;
11074 _ACEOF
11075 rm -f conftest.$ac_objext conftest$ac_exeext
11076 if { (ac_try="$ac_link"
11077 case "(($ac_try" in
11078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11079 *) ac_try_echo=$ac_try;;
11080 esac
11081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11082 (eval "$ac_link") 2>conftest.er1
11083 ac_status=$?
11084 grep -v '^ *+' conftest.er1 >conftest.err
11085 rm -f conftest.er1
11086 cat conftest.err >&5
11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); } && {
11089 test -z "$ac_c_werror_flag" ||
11090 test ! -s conftest.err
11091 } && test -s conftest$ac_exeext &&
11092 $as_test_x conftest$ac_exeext; then
11093 eval "$as_ac_var=yes"
11094 else
11095 echo "$as_me: failed program was:" >&5
11096 sed 's/^/| /' conftest.$ac_ext >&5
11098 eval "$as_ac_var=no"
11101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11102 conftest$ac_exeext conftest.$ac_ext
11104 ac_res=`eval echo '${'$as_ac_var'}'`
11105 { echo "$as_me:$LINENO: result: $ac_res" >&5
11106 echo "${ECHO_T}$ac_res" >&6; }
11107 if test `eval echo '${'$as_ac_var'}'` = yes; then
11108 cat >>confdefs.h <<_ACEOF
11109 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11110 _ACEOF
11111 HAVE_GTK_MULTIDISPLAY=yes
11113 done
11115 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11117 cat >>confdefs.h <<\_ACEOF
11118 #define HAVE_GTK_MULTIDISPLAY 1
11119 _ACEOF
11123 HAVE_GTK_FILE_SELECTION=no
11125 for ac_func in gtk_file_selection_new
11127 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11128 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11129 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11130 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11131 echo $ECHO_N "(cached) $ECHO_C" >&6
11132 else
11133 cat >conftest.$ac_ext <<_ACEOF
11134 /* confdefs.h. */
11135 _ACEOF
11136 cat confdefs.h >>conftest.$ac_ext
11137 cat >>conftest.$ac_ext <<_ACEOF
11138 /* end confdefs.h. */
11139 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11140 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11141 #define $ac_func innocuous_$ac_func
11143 /* System header to define __stub macros and hopefully few prototypes,
11144 which can conflict with char $ac_func (); below.
11145 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11146 <limits.h> exists even on freestanding compilers. */
11148 #ifdef __STDC__
11149 # include <limits.h>
11150 #else
11151 # include <assert.h>
11152 #endif
11154 #undef $ac_func
11156 /* Override any GCC internal prototype to avoid an error.
11157 Use char because int might match the return type of a GCC
11158 builtin and then its argument prototype would still apply. */
11159 #ifdef __cplusplus
11160 extern "C"
11161 #endif
11162 char $ac_func ();
11163 /* The GNU C library defines this for functions which it implements
11164 to always fail with ENOSYS. Some functions are actually named
11165 something starting with __ and the normal name is an alias. */
11166 #if defined __stub_$ac_func || defined __stub___$ac_func
11167 choke me
11168 #endif
11171 main ()
11173 return $ac_func ();
11175 return 0;
11177 _ACEOF
11178 rm -f conftest.$ac_objext conftest$ac_exeext
11179 if { (ac_try="$ac_link"
11180 case "(($ac_try" in
11181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11182 *) ac_try_echo=$ac_try;;
11183 esac
11184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11185 (eval "$ac_link") 2>conftest.er1
11186 ac_status=$?
11187 grep -v '^ *+' conftest.er1 >conftest.err
11188 rm -f conftest.er1
11189 cat conftest.err >&5
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); } && {
11192 test -z "$ac_c_werror_flag" ||
11193 test ! -s conftest.err
11194 } && test -s conftest$ac_exeext &&
11195 $as_test_x conftest$ac_exeext; then
11196 eval "$as_ac_var=yes"
11197 else
11198 echo "$as_me: failed program was:" >&5
11199 sed 's/^/| /' conftest.$ac_ext >&5
11201 eval "$as_ac_var=no"
11204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11205 conftest$ac_exeext conftest.$ac_ext
11207 ac_res=`eval echo '${'$as_ac_var'}'`
11208 { echo "$as_me:$LINENO: result: $ac_res" >&5
11209 echo "${ECHO_T}$ac_res" >&6; }
11210 if test `eval echo '${'$as_ac_var'}'` = yes; then
11211 cat >>confdefs.h <<_ACEOF
11212 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11213 _ACEOF
11214 HAVE_GTK_FILE_SELECTION=yes
11216 done
11219 HAVE_GTK_FILE_CHOOSER=no
11221 for ac_func in gtk_file_chooser_dialog_new
11223 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11224 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11225 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11226 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11227 echo $ECHO_N "(cached) $ECHO_C" >&6
11228 else
11229 cat >conftest.$ac_ext <<_ACEOF
11230 /* confdefs.h. */
11231 _ACEOF
11232 cat confdefs.h >>conftest.$ac_ext
11233 cat >>conftest.$ac_ext <<_ACEOF
11234 /* end confdefs.h. */
11235 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11236 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11237 #define $ac_func innocuous_$ac_func
11239 /* System header to define __stub macros and hopefully few prototypes,
11240 which can conflict with char $ac_func (); below.
11241 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11242 <limits.h> exists even on freestanding compilers. */
11244 #ifdef __STDC__
11245 # include <limits.h>
11246 #else
11247 # include <assert.h>
11248 #endif
11250 #undef $ac_func
11252 /* Override any GCC internal prototype to avoid an error.
11253 Use char because int might match the return type of a GCC
11254 builtin and then its argument prototype would still apply. */
11255 #ifdef __cplusplus
11256 extern "C"
11257 #endif
11258 char $ac_func ();
11259 /* The GNU C library defines this for functions which it implements
11260 to always fail with ENOSYS. Some functions are actually named
11261 something starting with __ and the normal name is an alias. */
11262 #if defined __stub_$ac_func || defined __stub___$ac_func
11263 choke me
11264 #endif
11267 main ()
11269 return $ac_func ();
11271 return 0;
11273 _ACEOF
11274 rm -f conftest.$ac_objext conftest$ac_exeext
11275 if { (ac_try="$ac_link"
11276 case "(($ac_try" in
11277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11278 *) ac_try_echo=$ac_try;;
11279 esac
11280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11281 (eval "$ac_link") 2>conftest.er1
11282 ac_status=$?
11283 grep -v '^ *+' conftest.er1 >conftest.err
11284 rm -f conftest.er1
11285 cat conftest.err >&5
11286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287 (exit $ac_status); } && {
11288 test -z "$ac_c_werror_flag" ||
11289 test ! -s conftest.err
11290 } && test -s conftest$ac_exeext &&
11291 $as_test_x conftest$ac_exeext; then
11292 eval "$as_ac_var=yes"
11293 else
11294 echo "$as_me: failed program was:" >&5
11295 sed 's/^/| /' conftest.$ac_ext >&5
11297 eval "$as_ac_var=no"
11300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11301 conftest$ac_exeext conftest.$ac_ext
11303 ac_res=`eval echo '${'$as_ac_var'}'`
11304 { echo "$as_me:$LINENO: result: $ac_res" >&5
11305 echo "${ECHO_T}$ac_res" >&6; }
11306 if test `eval echo '${'$as_ac_var'}'` = yes; then
11307 cat >>confdefs.h <<_ACEOF
11308 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11309 _ACEOF
11310 HAVE_GTK_FILE_CHOOSER=yes
11312 done
11315 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11316 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11318 cat >>confdefs.h <<\_ACEOF
11319 #define HAVE_GTK_FILE_BOTH 1
11320 _ACEOF
11324 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11325 HAVE_GTK_AND_PTHREAD=no
11327 for ac_header in pthread.h
11329 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11331 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11334 echo $ECHO_N "(cached) $ECHO_C" >&6
11336 ac_res=`eval echo '${'$as_ac_Header'}'`
11337 { echo "$as_me:$LINENO: result: $ac_res" >&5
11338 echo "${ECHO_T}$ac_res" >&6; }
11339 else
11340 # Is the header compilable?
11341 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11342 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11343 cat >conftest.$ac_ext <<_ACEOF
11344 /* confdefs.h. */
11345 _ACEOF
11346 cat confdefs.h >>conftest.$ac_ext
11347 cat >>conftest.$ac_ext <<_ACEOF
11348 /* end confdefs.h. */
11349 $ac_includes_default
11350 #include <$ac_header>
11351 _ACEOF
11352 rm -f conftest.$ac_objext
11353 if { (ac_try="$ac_compile"
11354 case "(($ac_try" in
11355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11356 *) ac_try_echo=$ac_try;;
11357 esac
11358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11359 (eval "$ac_compile") 2>conftest.er1
11360 ac_status=$?
11361 grep -v '^ *+' conftest.er1 >conftest.err
11362 rm -f conftest.er1
11363 cat conftest.err >&5
11364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365 (exit $ac_status); } && {
11366 test -z "$ac_c_werror_flag" ||
11367 test ! -s conftest.err
11368 } && test -s conftest.$ac_objext; then
11369 ac_header_compiler=yes
11370 else
11371 echo "$as_me: failed program was:" >&5
11372 sed 's/^/| /' conftest.$ac_ext >&5
11374 ac_header_compiler=no
11377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11378 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11379 echo "${ECHO_T}$ac_header_compiler" >&6; }
11381 # Is the header present?
11382 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11384 cat >conftest.$ac_ext <<_ACEOF
11385 /* confdefs.h. */
11386 _ACEOF
11387 cat confdefs.h >>conftest.$ac_ext
11388 cat >>conftest.$ac_ext <<_ACEOF
11389 /* end confdefs.h. */
11390 #include <$ac_header>
11391 _ACEOF
11392 if { (ac_try="$ac_cpp conftest.$ac_ext"
11393 case "(($ac_try" in
11394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11395 *) ac_try_echo=$ac_try;;
11396 esac
11397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11399 ac_status=$?
11400 grep -v '^ *+' conftest.er1 >conftest.err
11401 rm -f conftest.er1
11402 cat conftest.err >&5
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); } >/dev/null && {
11405 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11406 test ! -s conftest.err
11407 }; then
11408 ac_header_preproc=yes
11409 else
11410 echo "$as_me: failed program was:" >&5
11411 sed 's/^/| /' conftest.$ac_ext >&5
11413 ac_header_preproc=no
11416 rm -f conftest.err conftest.$ac_ext
11417 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11418 echo "${ECHO_T}$ac_header_preproc" >&6; }
11420 # So? What about this header?
11421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11422 yes:no: )
11423 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11424 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11426 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11427 ac_header_preproc=yes
11429 no:yes:* )
11430 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11431 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11432 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11433 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11434 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11435 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11436 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11437 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11439 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11440 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11441 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11444 esac
11445 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11448 echo $ECHO_N "(cached) $ECHO_C" >&6
11449 else
11450 eval "$as_ac_Header=\$ac_header_preproc"
11452 ac_res=`eval echo '${'$as_ac_Header'}'`
11453 { echo "$as_me:$LINENO: result: $ac_res" >&5
11454 echo "${ECHO_T}$ac_res" >&6; }
11457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11458 cat >>confdefs.h <<_ACEOF
11459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11460 _ACEOF
11464 done
11466 if test "$ac_cv_header_pthread_h"; then
11467 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11468 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11469 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11470 echo $ECHO_N "(cached) $ECHO_C" >&6
11471 else
11472 ac_check_lib_save_LIBS=$LIBS
11473 LIBS="-lpthread $LIBS"
11474 cat >conftest.$ac_ext <<_ACEOF
11475 /* confdefs.h. */
11476 _ACEOF
11477 cat confdefs.h >>conftest.$ac_ext
11478 cat >>conftest.$ac_ext <<_ACEOF
11479 /* end confdefs.h. */
11481 /* Override any GCC internal prototype to avoid an error.
11482 Use char because int might match the return type of a GCC
11483 builtin and then its argument prototype would still apply. */
11484 #ifdef __cplusplus
11485 extern "C"
11486 #endif
11487 char pthread_self ();
11489 main ()
11491 return pthread_self ();
11493 return 0;
11495 _ACEOF
11496 rm -f conftest.$ac_objext conftest$ac_exeext
11497 if { (ac_try="$ac_link"
11498 case "(($ac_try" in
11499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11500 *) ac_try_echo=$ac_try;;
11501 esac
11502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11503 (eval "$ac_link") 2>conftest.er1
11504 ac_status=$?
11505 grep -v '^ *+' conftest.er1 >conftest.err
11506 rm -f conftest.er1
11507 cat conftest.err >&5
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); } && {
11510 test -z "$ac_c_werror_flag" ||
11511 test ! -s conftest.err
11512 } && test -s conftest$ac_exeext &&
11513 $as_test_x conftest$ac_exeext; then
11514 ac_cv_lib_pthread_pthread_self=yes
11515 else
11516 echo "$as_me: failed program was:" >&5
11517 sed 's/^/| /' conftest.$ac_ext >&5
11519 ac_cv_lib_pthread_pthread_self=no
11522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11523 conftest$ac_exeext conftest.$ac_ext
11524 LIBS=$ac_check_lib_save_LIBS
11526 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11527 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11528 if test $ac_cv_lib_pthread_pthread_self = yes; then
11529 HAVE_GTK_AND_PTHREAD=yes
11533 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11534 case "${canonical}" in
11535 *-hpux*) ;;
11536 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11537 esac
11539 cat >>confdefs.h <<\_ACEOF
11540 #define HAVE_GTK_AND_PTHREAD 1
11541 _ACEOF
11547 HAVE_DBUS=no
11548 if test "${with_dbus}" = "yes"; then
11550 succeeded=no
11552 # Extract the first word of "pkg-config", so it can be a program name with args.
11553 set dummy pkg-config; ac_word=$2
11554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11556 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11557 echo $ECHO_N "(cached) $ECHO_C" >&6
11558 else
11559 case $PKG_CONFIG in
11560 [\\/]* | ?:[\\/]*)
11561 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11565 for as_dir in $PATH
11567 IFS=$as_save_IFS
11568 test -z "$as_dir" && as_dir=.
11569 for ac_exec_ext in '' $ac_executable_extensions; do
11570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11571 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11573 break 2
11575 done
11576 done
11577 IFS=$as_save_IFS
11579 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11581 esac
11583 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11584 if test -n "$PKG_CONFIG"; then
11585 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11586 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11587 else
11588 { echo "$as_me:$LINENO: result: no" >&5
11589 echo "${ECHO_T}no" >&6; }
11594 if test "$PKG_CONFIG" = "no" ; then
11595 HAVE_DBUS=no
11596 else
11597 PKG_CONFIG_MIN_VERSION=0.9.0
11598 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11599 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11600 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11602 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11603 { echo "$as_me:$LINENO: result: yes" >&5
11604 echo "${ECHO_T}yes" >&6; }
11605 succeeded=yes
11607 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11608 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11609 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11610 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11611 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11613 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11614 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11615 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11616 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11617 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11618 else
11619 { echo "$as_me:$LINENO: result: no" >&5
11620 echo "${ECHO_T}no" >&6; }
11621 DBUS_CFLAGS=""
11622 DBUS_LIBS=""
11623 ## If we have a custom action on failure, don't print errors, but
11624 ## do set a variable so people can do so.
11625 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11631 else
11632 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11633 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11637 if test $succeeded = yes; then
11638 HAVE_DBUS=yes
11639 else
11640 HAVE_DBUS=no
11643 if test "$HAVE_DBUS" = yes; then
11645 cat >>confdefs.h <<\_ACEOF
11646 #define HAVE_DBUS 1
11647 _ACEOF
11652 HAVE_XAW3D=no
11653 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11654 if test "$with_xaw3d" != no; then
11655 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11656 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11657 if test "${emacs_cv_xaw3d+set}" = set; then
11658 echo $ECHO_N "(cached) $ECHO_C" >&6
11659 else
11660 cat >conftest.$ac_ext <<_ACEOF
11661 /* confdefs.h. */
11662 _ACEOF
11663 cat confdefs.h >>conftest.$ac_ext
11664 cat >>conftest.$ac_ext <<_ACEOF
11665 /* end confdefs.h. */
11667 #include <X11/Intrinsic.h>
11668 #include <X11/Xaw3d/Simple.h>
11670 main ()
11674 return 0;
11676 _ACEOF
11677 rm -f conftest.$ac_objext conftest$ac_exeext
11678 if { (ac_try="$ac_link"
11679 case "(($ac_try" in
11680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11681 *) ac_try_echo=$ac_try;;
11682 esac
11683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11684 (eval "$ac_link") 2>conftest.er1
11685 ac_status=$?
11686 grep -v '^ *+' conftest.er1 >conftest.err
11687 rm -f conftest.er1
11688 cat conftest.err >&5
11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 (exit $ac_status); } && {
11691 test -z "$ac_c_werror_flag" ||
11692 test ! -s conftest.err
11693 } && test -s conftest$ac_exeext &&
11694 $as_test_x conftest$ac_exeext; then
11695 emacs_cv_xaw3d=yes
11696 else
11697 echo "$as_me: failed program was:" >&5
11698 sed 's/^/| /' conftest.$ac_ext >&5
11700 emacs_cv_xaw3d=no
11703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11704 conftest$ac_exeext conftest.$ac_ext
11707 else
11708 emacs_cv_xaw3d=no
11710 if test $emacs_cv_xaw3d = yes; then
11711 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11712 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11713 USE_X_TOOLKIT=LUCID
11714 HAVE_XAW3D=yes
11716 cat >>confdefs.h <<\_ACEOF
11717 #define HAVE_XAW3D 1
11718 _ACEOF
11720 else
11721 { echo "$as_me:$LINENO: result: no" >&5
11722 echo "${ECHO_T}no" >&6; }
11723 { echo "$as_me:$LINENO: checking for libXaw" >&5
11724 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
11725 if test "${emacs_cv_xaw+set}" = set; then
11726 echo $ECHO_N "(cached) $ECHO_C" >&6
11727 else
11728 cat >conftest.$ac_ext <<_ACEOF
11729 /* confdefs.h. */
11730 _ACEOF
11731 cat confdefs.h >>conftest.$ac_ext
11732 cat >>conftest.$ac_ext <<_ACEOF
11733 /* end confdefs.h. */
11735 #include <X11/Intrinsic.h>
11736 #include <X11/Xaw/Simple.h>
11738 main ()
11742 return 0;
11744 _ACEOF
11745 rm -f conftest.$ac_objext conftest$ac_exeext
11746 if { (ac_try="$ac_link"
11747 case "(($ac_try" in
11748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11749 *) ac_try_echo=$ac_try;;
11750 esac
11751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11752 (eval "$ac_link") 2>conftest.er1
11753 ac_status=$?
11754 grep -v '^ *+' conftest.er1 >conftest.err
11755 rm -f conftest.er1
11756 cat conftest.err >&5
11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); } && {
11759 test -z "$ac_c_werror_flag" ||
11760 test ! -s conftest.err
11761 } && test -s conftest$ac_exeext &&
11762 $as_test_x conftest$ac_exeext; then
11763 emacs_cv_xaw=yes
11764 else
11765 echo "$as_me: failed program was:" >&5
11766 sed 's/^/| /' conftest.$ac_ext >&5
11768 emacs_cv_xaw=no
11771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11772 conftest$ac_exeext conftest.$ac_ext
11775 if test $emacs_cv_xaw = yes; then
11776 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11777 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11778 USE_X_TOOLKIT=LUCID
11779 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11780 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
11781 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
11782 { (exit 1); exit 1; }; }
11783 else
11784 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
11785 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
11786 USE_X_TOOLKIT=none
11791 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11793 if test "${USE_X_TOOLKIT}" != "none"; then
11794 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11795 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11796 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11797 echo $ECHO_N "(cached) $ECHO_C" >&6
11798 else
11799 cat >conftest.$ac_ext <<_ACEOF
11800 /* confdefs.h. */
11801 _ACEOF
11802 cat confdefs.h >>conftest.$ac_ext
11803 cat >>conftest.$ac_ext <<_ACEOF
11804 /* end confdefs.h. */
11805 #include <X11/Intrinsic.h>
11807 main ()
11809 #if XtSpecificationRelease < 6
11810 fail;
11811 #endif
11814 return 0;
11816 _ACEOF
11817 rm -f conftest.$ac_objext conftest$ac_exeext
11818 if { (ac_try="$ac_link"
11819 case "(($ac_try" in
11820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11821 *) ac_try_echo=$ac_try;;
11822 esac
11823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11824 (eval "$ac_link") 2>conftest.er1
11825 ac_status=$?
11826 grep -v '^ *+' conftest.er1 >conftest.err
11827 rm -f conftest.er1
11828 cat conftest.err >&5
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); } && {
11831 test -z "$ac_c_werror_flag" ||
11832 test ! -s conftest.err
11833 } && test -s conftest$ac_exeext &&
11834 $as_test_x conftest$ac_exeext; then
11835 emacs_cv_x11_toolkit_version_6=yes
11836 else
11837 echo "$as_me: failed program was:" >&5
11838 sed 's/^/| /' conftest.$ac_ext >&5
11840 emacs_cv_x11_toolkit_version_6=no
11843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11844 conftest$ac_exeext conftest.$ac_ext
11847 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11848 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11849 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11850 echo "${ECHO_T}6 or newer" >&6; }
11852 cat >>confdefs.h <<\_ACEOF
11853 #define HAVE_X11XTR6 1
11854 _ACEOF
11856 else
11857 { echo "$as_me:$LINENO: result: before 6" >&5
11858 echo "${ECHO_T}before 6" >&6; }
11861 OLDLIBS="$LIBS"
11862 if test x$HAVE_X11XTR6 = xyes; then
11863 LIBS="-lXt -lSM -lICE $LIBS"
11864 else
11865 LIBS="-lXt $LIBS"
11868 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11869 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
11870 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11871 echo $ECHO_N "(cached) $ECHO_C" >&6
11872 else
11873 ac_check_lib_save_LIBS=$LIBS
11874 LIBS="-lXmu $LIBS"
11875 cat >conftest.$ac_ext <<_ACEOF
11876 /* confdefs.h. */
11877 _ACEOF
11878 cat confdefs.h >>conftest.$ac_ext
11879 cat >>conftest.$ac_ext <<_ACEOF
11880 /* end confdefs.h. */
11882 /* Override any GCC internal prototype to avoid an error.
11883 Use char because int might match the return type of a GCC
11884 builtin and then its argument prototype would still apply. */
11885 #ifdef __cplusplus
11886 extern "C"
11887 #endif
11888 char XmuConvertStandardSelection ();
11890 main ()
11892 return XmuConvertStandardSelection ();
11894 return 0;
11896 _ACEOF
11897 rm -f conftest.$ac_objext conftest$ac_exeext
11898 if { (ac_try="$ac_link"
11899 case "(($ac_try" in
11900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11901 *) ac_try_echo=$ac_try;;
11902 esac
11903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11904 (eval "$ac_link") 2>conftest.er1
11905 ac_status=$?
11906 grep -v '^ *+' conftest.er1 >conftest.err
11907 rm -f conftest.er1
11908 cat conftest.err >&5
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); } && {
11911 test -z "$ac_c_werror_flag" ||
11912 test ! -s conftest.err
11913 } && test -s conftest$ac_exeext &&
11914 $as_test_x conftest$ac_exeext; then
11915 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11916 else
11917 echo "$as_me: failed program was:" >&5
11918 sed 's/^/| /' conftest.$ac_ext >&5
11920 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11924 conftest$ac_exeext conftest.$ac_ext
11925 LIBS=$ac_check_lib_save_LIBS
11927 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11928 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11929 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11930 cat >>confdefs.h <<_ACEOF
11931 #define HAVE_LIBXMU 1
11932 _ACEOF
11934 LIBS="-lXmu $LIBS"
11938 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11941 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11942 if test "${HAVE_X11}" = "yes"; then
11943 if test "${USE_X_TOOLKIT}" != "none"; then
11945 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11946 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
11947 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11948 echo $ECHO_N "(cached) $ECHO_C" >&6
11949 else
11950 ac_check_lib_save_LIBS=$LIBS
11951 LIBS="-lXext $LIBS"
11952 cat >conftest.$ac_ext <<_ACEOF
11953 /* confdefs.h. */
11954 _ACEOF
11955 cat confdefs.h >>conftest.$ac_ext
11956 cat >>conftest.$ac_ext <<_ACEOF
11957 /* end confdefs.h. */
11959 /* Override any GCC internal prototype to avoid an error.
11960 Use char because int might match the return type of a GCC
11961 builtin and then its argument prototype would still apply. */
11962 #ifdef __cplusplus
11963 extern "C"
11964 #endif
11965 char XShapeQueryExtension ();
11967 main ()
11969 return XShapeQueryExtension ();
11971 return 0;
11973 _ACEOF
11974 rm -f conftest.$ac_objext conftest$ac_exeext
11975 if { (ac_try="$ac_link"
11976 case "(($ac_try" in
11977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11978 *) ac_try_echo=$ac_try;;
11979 esac
11980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11981 (eval "$ac_link") 2>conftest.er1
11982 ac_status=$?
11983 grep -v '^ *+' conftest.er1 >conftest.err
11984 rm -f conftest.er1
11985 cat conftest.err >&5
11986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987 (exit $ac_status); } && {
11988 test -z "$ac_c_werror_flag" ||
11989 test ! -s conftest.err
11990 } && test -s conftest$ac_exeext &&
11991 $as_test_x conftest$ac_exeext; then
11992 ac_cv_lib_Xext_XShapeQueryExtension=yes
11993 else
11994 echo "$as_me: failed program was:" >&5
11995 sed 's/^/| /' conftest.$ac_ext >&5
11997 ac_cv_lib_Xext_XShapeQueryExtension=no
12000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12001 conftest$ac_exeext conftest.$ac_ext
12002 LIBS=$ac_check_lib_save_LIBS
12004 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12005 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12006 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12007 cat >>confdefs.h <<_ACEOF
12008 #define HAVE_LIBXEXT 1
12009 _ACEOF
12011 LIBS="-lXext $LIBS"
12018 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12019 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12020 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12021 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12022 echo $ECHO_N "(cached) $ECHO_C" >&6
12023 else
12024 cat >conftest.$ac_ext <<_ACEOF
12025 /* confdefs.h. */
12026 _ACEOF
12027 cat confdefs.h >>conftest.$ac_ext
12028 cat >>conftest.$ac_ext <<_ACEOF
12029 /* end confdefs.h. */
12030 #include <Xm/Xm.h>
12032 main ()
12034 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12035 int x = 5;
12036 #else
12037 Motif version prior to 2.1.
12038 #endif
12040 return 0;
12042 _ACEOF
12043 rm -f conftest.$ac_objext
12044 if { (ac_try="$ac_compile"
12045 case "(($ac_try" in
12046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12047 *) ac_try_echo=$ac_try;;
12048 esac
12049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12050 (eval "$ac_compile") 2>conftest.er1
12051 ac_status=$?
12052 grep -v '^ *+' conftest.er1 >conftest.err
12053 rm -f conftest.er1
12054 cat conftest.err >&5
12055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056 (exit $ac_status); } && {
12057 test -z "$ac_c_werror_flag" ||
12058 test ! -s conftest.err
12059 } && test -s conftest.$ac_objext; then
12060 emacs_cv_motif_version_2_1=yes
12061 else
12062 echo "$as_me: failed program was:" >&5
12063 sed 's/^/| /' conftest.$ac_ext >&5
12065 emacs_cv_motif_version_2_1=no
12068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12070 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12071 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12072 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12073 if test $emacs_cv_motif_version_2_1 = yes; then
12074 HAVE_LIBXP=no
12076 cat >>confdefs.h <<\_ACEOF
12077 #define HAVE_MOTIF_2_1 1
12078 _ACEOF
12080 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12081 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12082 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12083 echo $ECHO_N "(cached) $ECHO_C" >&6
12084 else
12085 ac_check_lib_save_LIBS=$LIBS
12086 LIBS="-lXp $LIBS"
12087 cat >conftest.$ac_ext <<_ACEOF
12088 /* confdefs.h. */
12089 _ACEOF
12090 cat confdefs.h >>conftest.$ac_ext
12091 cat >>conftest.$ac_ext <<_ACEOF
12092 /* end confdefs.h. */
12094 /* Override any GCC internal prototype to avoid an error.
12095 Use char because int might match the return type of a GCC
12096 builtin and then its argument prototype would still apply. */
12097 #ifdef __cplusplus
12098 extern "C"
12099 #endif
12100 char XpCreateContext ();
12102 main ()
12104 return XpCreateContext ();
12106 return 0;
12108 _ACEOF
12109 rm -f conftest.$ac_objext conftest$ac_exeext
12110 if { (ac_try="$ac_link"
12111 case "(($ac_try" in
12112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12113 *) ac_try_echo=$ac_try;;
12114 esac
12115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12116 (eval "$ac_link") 2>conftest.er1
12117 ac_status=$?
12118 grep -v '^ *+' conftest.er1 >conftest.err
12119 rm -f conftest.er1
12120 cat conftest.err >&5
12121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122 (exit $ac_status); } && {
12123 test -z "$ac_c_werror_flag" ||
12124 test ! -s conftest.err
12125 } && test -s conftest$ac_exeext &&
12126 $as_test_x conftest$ac_exeext; then
12127 ac_cv_lib_Xp_XpCreateContext=yes
12128 else
12129 echo "$as_me: failed program was:" >&5
12130 sed 's/^/| /' conftest.$ac_ext >&5
12132 ac_cv_lib_Xp_XpCreateContext=no
12135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12136 conftest$ac_exeext conftest.$ac_ext
12137 LIBS=$ac_check_lib_save_LIBS
12139 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12140 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12141 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12142 HAVE_LIBXP=yes
12145 if test ${HAVE_LIBXP} = yes; then
12147 cat >>confdefs.h <<\_ACEOF
12148 #define HAVE_LIBXP 1
12149 _ACEOF
12152 else
12153 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12154 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12155 if test "${emacs_cv_lesstif+set}" = set; then
12156 echo $ECHO_N "(cached) $ECHO_C" >&6
12157 else
12158 # We put this in CFLAGS temporarily to precede other -I options
12159 # that might be in CFLAGS temporarily.
12160 # We put this in CPPFLAGS where it precedes the other -I options.
12161 OLD_CPPFLAGS=$CPPFLAGS
12162 OLD_CFLAGS=$CFLAGS
12163 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12164 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12165 cat >conftest.$ac_ext <<_ACEOF
12166 /* confdefs.h. */
12167 _ACEOF
12168 cat confdefs.h >>conftest.$ac_ext
12169 cat >>conftest.$ac_ext <<_ACEOF
12170 /* end confdefs.h. */
12171 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12173 main ()
12175 int x = 5;
12177 return 0;
12179 _ACEOF
12180 rm -f conftest.$ac_objext
12181 if { (ac_try="$ac_compile"
12182 case "(($ac_try" in
12183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12184 *) ac_try_echo=$ac_try;;
12185 esac
12186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12187 (eval "$ac_compile") 2>conftest.er1
12188 ac_status=$?
12189 grep -v '^ *+' conftest.er1 >conftest.err
12190 rm -f conftest.er1
12191 cat conftest.err >&5
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); } && {
12194 test -z "$ac_c_werror_flag" ||
12195 test ! -s conftest.err
12196 } && test -s conftest.$ac_objext; then
12197 emacs_cv_lesstif=yes
12198 else
12199 echo "$as_me: failed program was:" >&5
12200 sed 's/^/| /' conftest.$ac_ext >&5
12202 emacs_cv_lesstif=no
12205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12207 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12208 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12209 if test $emacs_cv_lesstif = yes; then
12210 # Make sure this -I option remains in CPPFLAGS after it is set
12211 # back to REAL_CPPFLAGS.
12212 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12213 # have those other -I options anyway. Ultimately, having this
12214 # directory ultimately in CPPFLAGS will be enough.
12215 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12216 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12217 else
12218 CFLAGS=$OLD_CFLAGS
12219 CPPFLAGS=$OLD_CPPFLAGS
12226 USE_TOOLKIT_SCROLL_BARS=no
12227 if test "${with_toolkit_scroll_bars}" != "no"; then
12228 if test "${USE_X_TOOLKIT}" != "none"; then
12229 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12230 cat >>confdefs.h <<\_ACEOF
12231 #define USE_TOOLKIT_SCROLL_BARS 1
12232 _ACEOF
12234 HAVE_XAW3D=no
12235 USE_TOOLKIT_SCROLL_BARS=yes
12236 elif test "${HAVE_XAW3D}" = "yes"; then
12237 cat >>confdefs.h <<\_ACEOF
12238 #define USE_TOOLKIT_SCROLL_BARS 1
12239 _ACEOF
12241 USE_TOOLKIT_SCROLL_BARS=yes
12243 elif test "${HAVE_GTK}" = "yes"; then
12244 cat >>confdefs.h <<\_ACEOF
12245 #define USE_TOOLKIT_SCROLL_BARS 1
12246 _ACEOF
12248 USE_TOOLKIT_SCROLL_BARS=yes
12249 elif test "${HAVE_CARBON}" = "yes"; then
12250 cat >>confdefs.h <<\_ACEOF
12251 #define USE_TOOLKIT_SCROLL_BARS 1
12252 _ACEOF
12254 USE_TOOLKIT_SCROLL_BARS=yes
12258 cat >conftest.$ac_ext <<_ACEOF
12259 /* confdefs.h. */
12260 _ACEOF
12261 cat confdefs.h >>conftest.$ac_ext
12262 cat >>conftest.$ac_ext <<_ACEOF
12263 /* end confdefs.h. */
12265 #include <X11/Xlib.h>
12266 #include <X11/Xresource.h>
12268 main ()
12270 XIMProc callback;
12272 return 0;
12274 _ACEOF
12275 rm -f conftest.$ac_objext
12276 if { (ac_try="$ac_compile"
12277 case "(($ac_try" in
12278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12279 *) ac_try_echo=$ac_try;;
12280 esac
12281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12282 (eval "$ac_compile") 2>conftest.er1
12283 ac_status=$?
12284 grep -v '^ *+' conftest.er1 >conftest.err
12285 rm -f conftest.er1
12286 cat conftest.err >&5
12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); } && {
12289 test -z "$ac_c_werror_flag" ||
12290 test ! -s conftest.err
12291 } && test -s conftest.$ac_objext; then
12292 HAVE_XIM=yes
12294 cat >>confdefs.h <<\_ACEOF
12295 #define HAVE_XIM 1
12296 _ACEOF
12298 else
12299 echo "$as_me: failed program was:" >&5
12300 sed 's/^/| /' conftest.$ac_ext >&5
12302 HAVE_XIM=no
12305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12308 if test "${with_xim}" != "no"; then
12310 cat >>confdefs.h <<\_ACEOF
12311 #define USE_XIM 1
12312 _ACEOF
12317 if test "${HAVE_XIM}" != "no"; then
12318 late_CFLAGS=$CFLAGS
12319 if test "$GCC" = yes; then
12320 CFLAGS="$CFLAGS --pedantic-errors"
12322 cat >conftest.$ac_ext <<_ACEOF
12323 /* confdefs.h. */
12324 _ACEOF
12325 cat confdefs.h >>conftest.$ac_ext
12326 cat >>conftest.$ac_ext <<_ACEOF
12327 /* end confdefs.h. */
12329 #include <X11/Xlib.h>
12330 #include <X11/Xresource.h>
12332 main ()
12334 Display *display;
12335 XrmDatabase db;
12336 char *res_name;
12337 char *res_class;
12338 XIMProc callback;
12339 XPointer *client_data;
12340 #ifndef __GNUC__
12341 /* If we're not using GCC, it's probably not XFree86, and this is
12342 probably right, but we can't use something like --pedantic-errors. */
12343 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12344 char*, XIMProc, XPointer*);
12345 #endif
12346 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12347 client_data);
12349 return 0;
12351 _ACEOF
12352 rm -f conftest.$ac_objext
12353 if { (ac_try="$ac_compile"
12354 case "(($ac_try" in
12355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12356 *) ac_try_echo=$ac_try;;
12357 esac
12358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12359 (eval "$ac_compile") 2>conftest.er1
12360 ac_status=$?
12361 grep -v '^ *+' conftest.er1 >conftest.err
12362 rm -f conftest.er1
12363 cat conftest.err >&5
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); } && {
12366 test -z "$ac_c_werror_flag" ||
12367 test ! -s conftest.err
12368 } && test -s conftest.$ac_objext; then
12369 emacs_cv_arg6_star=yes
12370 else
12371 echo "$as_me: failed program was:" >&5
12372 sed 's/^/| /' conftest.$ac_ext >&5
12377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12379 if test "$emacs_cv_arg6_star" = yes; then
12380 cat >>confdefs.h <<\_ACEOF
12381 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12382 _ACEOF
12384 else
12385 cat >>confdefs.h <<\_ACEOF
12386 #define XRegisterIMInstantiateCallback_arg6 XPointer
12387 _ACEOF
12390 CFLAGS=$late_CFLAGS
12393 ### Start of font-backend section.
12394 if test "${HAVE_X11}" != "yes"; then
12395 USE_FONT_BACKEND=no
12398 if test "${USE_FONT_BACKEND}" = "yes"; then
12400 cat >>confdefs.h <<\_ACEOF
12401 #define USE_FONT_BACKEND 1
12402 _ACEOF
12405 ## Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
12406 HAVE_XFT=maybe
12407 if test "x${with_freetype}" = "xno"; then
12408 with_xft="no";
12410 if test "x${with_xft}" != "xno"; then
12413 succeeded=no
12415 # Extract the first word of "pkg-config", so it can be a program name with args.
12416 set dummy pkg-config; ac_word=$2
12417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12419 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12420 echo $ECHO_N "(cached) $ECHO_C" >&6
12421 else
12422 case $PKG_CONFIG in
12423 [\\/]* | ?:[\\/]*)
12424 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12428 for as_dir in $PATH
12430 IFS=$as_save_IFS
12431 test -z "$as_dir" && as_dir=.
12432 for ac_exec_ext in '' $ac_executable_extensions; do
12433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12434 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12436 break 2
12438 done
12439 done
12440 IFS=$as_save_IFS
12442 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12444 esac
12446 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12447 if test -n "$PKG_CONFIG"; then
12448 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12449 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12450 else
12451 { echo "$as_me:$LINENO: result: no" >&5
12452 echo "${ECHO_T}no" >&6; }
12457 if test "$PKG_CONFIG" = "no" ; then
12458 HAVE_XFT=no
12459 else
12460 PKG_CONFIG_MIN_VERSION=0.9.0
12461 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12462 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12463 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12465 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12466 { echo "$as_me:$LINENO: result: yes" >&5
12467 echo "${ECHO_T}yes" >&6; }
12468 succeeded=yes
12470 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12471 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12472 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12473 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12474 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12476 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12477 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12478 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12479 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12480 echo "${ECHO_T}$XFT_LIBS" >&6; }
12481 else
12482 { echo "$as_me:$LINENO: result: no" >&5
12483 echo "${ECHO_T}no" >&6; }
12484 XFT_CFLAGS=""
12485 XFT_LIBS=""
12486 ## If we have a custom action on failure, don't print errors, but
12487 ## do set a variable so people can do so.
12488 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12494 else
12495 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12496 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12500 if test $succeeded = yes; then
12502 else
12503 HAVE_XFT=no
12506 if test "$HAVE_XFT" != no; then
12507 OLD_CPPFLAGS="$CPPFLAGS"
12508 OLD_CFLAGS="$CFLAGS"
12509 OLD_LIBS="$LIBS"
12510 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12511 CFLAGS="$CFLAGS $XFT_CFLAGS"
12512 LIBS="$XFT_LIBS $LIBS"
12513 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12514 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12515 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12516 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12517 echo $ECHO_N "(cached) $ECHO_C" >&6
12519 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12520 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12521 else
12522 # Is the header compilable?
12523 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12524 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12525 cat >conftest.$ac_ext <<_ACEOF
12526 /* confdefs.h. */
12527 _ACEOF
12528 cat confdefs.h >>conftest.$ac_ext
12529 cat >>conftest.$ac_ext <<_ACEOF
12530 /* end confdefs.h. */
12531 $ac_includes_default
12532 #include <X11/Xft/Xft.h>
12533 _ACEOF
12534 rm -f conftest.$ac_objext
12535 if { (ac_try="$ac_compile"
12536 case "(($ac_try" in
12537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12538 *) ac_try_echo=$ac_try;;
12539 esac
12540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12541 (eval "$ac_compile") 2>conftest.er1
12542 ac_status=$?
12543 grep -v '^ *+' conftest.er1 >conftest.err
12544 rm -f conftest.er1
12545 cat conftest.err >&5
12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); } && {
12548 test -z "$ac_c_werror_flag" ||
12549 test ! -s conftest.err
12550 } && test -s conftest.$ac_objext; then
12551 ac_header_compiler=yes
12552 else
12553 echo "$as_me: failed program was:" >&5
12554 sed 's/^/| /' conftest.$ac_ext >&5
12556 ac_header_compiler=no
12559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12560 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12561 echo "${ECHO_T}$ac_header_compiler" >&6; }
12563 # Is the header present?
12564 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12565 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12566 cat >conftest.$ac_ext <<_ACEOF
12567 /* confdefs.h. */
12568 _ACEOF
12569 cat confdefs.h >>conftest.$ac_ext
12570 cat >>conftest.$ac_ext <<_ACEOF
12571 /* end confdefs.h. */
12572 #include <X11/Xft/Xft.h>
12573 _ACEOF
12574 if { (ac_try="$ac_cpp conftest.$ac_ext"
12575 case "(($ac_try" in
12576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12577 *) ac_try_echo=$ac_try;;
12578 esac
12579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12580 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12581 ac_status=$?
12582 grep -v '^ *+' conftest.er1 >conftest.err
12583 rm -f conftest.er1
12584 cat conftest.err >&5
12585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586 (exit $ac_status); } >/dev/null && {
12587 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12588 test ! -s conftest.err
12589 }; then
12590 ac_header_preproc=yes
12591 else
12592 echo "$as_me: failed program was:" >&5
12593 sed 's/^/| /' conftest.$ac_ext >&5
12595 ac_header_preproc=no
12598 rm -f conftest.err conftest.$ac_ext
12599 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12600 echo "${ECHO_T}$ac_header_preproc" >&6; }
12602 # So? What about this header?
12603 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12604 yes:no: )
12605 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12606 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12607 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12608 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12609 ac_header_preproc=yes
12611 no:yes:* )
12612 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12613 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12614 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12615 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12616 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12617 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12618 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12619 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12620 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12621 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12622 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12623 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12626 esac
12627 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12628 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12629 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12630 echo $ECHO_N "(cached) $ECHO_C" >&6
12631 else
12632 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12634 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12635 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12638 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12639 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12640 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12641 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12642 echo $ECHO_N "(cached) $ECHO_C" >&6
12643 else
12644 ac_check_lib_save_LIBS=$LIBS
12645 LIBS="-lXft $XFT_LIBS $LIBS"
12646 cat >conftest.$ac_ext <<_ACEOF
12647 /* confdefs.h. */
12648 _ACEOF
12649 cat confdefs.h >>conftest.$ac_ext
12650 cat >>conftest.$ac_ext <<_ACEOF
12651 /* end confdefs.h. */
12653 /* Override any GCC internal prototype to avoid an error.
12654 Use char because int might match the return type of a GCC
12655 builtin and then its argument prototype would still apply. */
12656 #ifdef __cplusplus
12657 extern "C"
12658 #endif
12659 char XftFontOpen ();
12661 main ()
12663 return XftFontOpen ();
12665 return 0;
12667 _ACEOF
12668 rm -f conftest.$ac_objext conftest$ac_exeext
12669 if { (ac_try="$ac_link"
12670 case "(($ac_try" in
12671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12672 *) ac_try_echo=$ac_try;;
12673 esac
12674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12675 (eval "$ac_link") 2>conftest.er1
12676 ac_status=$?
12677 grep -v '^ *+' conftest.er1 >conftest.err
12678 rm -f conftest.er1
12679 cat conftest.err >&5
12680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 (exit $ac_status); } && {
12682 test -z "$ac_c_werror_flag" ||
12683 test ! -s conftest.err
12684 } && test -s conftest$ac_exeext &&
12685 $as_test_x conftest$ac_exeext; then
12686 ac_cv_lib_Xft_XftFontOpen=yes
12687 else
12688 echo "$as_me: failed program was:" >&5
12689 sed 's/^/| /' conftest.$ac_ext >&5
12691 ac_cv_lib_Xft_XftFontOpen=no
12694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12695 conftest$ac_exeext conftest.$ac_ext
12696 LIBS=$ac_check_lib_save_LIBS
12698 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12699 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12700 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12701 HAVE_XFT=yes
12708 if test "${HAVE_XFT}" = "yes"; then
12710 cat >>confdefs.h <<\_ACEOF
12711 #define HAVE_XFT 1
12712 _ACEOF
12715 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12716 else
12717 CPPFLAGS="$OLD_CPPFLAGS"
12718 CFLAGS="$OLD_CFLAGS"
12719 LIBS="$OLD_LIBS"
12720 fi # "${HAVE_XFT}" = "yes"
12721 fi # "$HAVE_XFT" != no
12722 fi # "x${with_xft}" != "xno"
12724 if test "$HAVE_XFT" != "yes"; then
12725 HAVE_XFT=no
12729 HAVE_FREETYPE=no
12730 ### Use -lfreetype if available, unless `--with-freetype=no'.
12731 if test "${HAVE_XFT}" = "yes"; then
12732 HAVE_FREETYPE=yes
12733 elif test "x${with_freetype}" != "xno"; then
12736 succeeded=no
12738 # Extract the first word of "pkg-config", so it can be a program name with args.
12739 set dummy pkg-config; ac_word=$2
12740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12742 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12743 echo $ECHO_N "(cached) $ECHO_C" >&6
12744 else
12745 case $PKG_CONFIG in
12746 [\\/]* | ?:[\\/]*)
12747 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12751 for as_dir in $PATH
12753 IFS=$as_save_IFS
12754 test -z "$as_dir" && as_dir=.
12755 for ac_exec_ext in '' $ac_executable_extensions; do
12756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12757 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12759 break 2
12761 done
12762 done
12763 IFS=$as_save_IFS
12765 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12767 esac
12769 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12770 if test -n "$PKG_CONFIG"; then
12771 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12772 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12773 else
12774 { echo "$as_me:$LINENO: result: no" >&5
12775 echo "${ECHO_T}no" >&6; }
12780 if test "$PKG_CONFIG" = "no" ; then
12781 HAVE_FREETYPE=no
12782 else
12783 PKG_CONFIG_MIN_VERSION=0.9.0
12784 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12785 { echo "$as_me:$LINENO: checking for freetype2" >&5
12786 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
12788 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12789 { echo "$as_me:$LINENO: result: yes" >&5
12790 echo "${ECHO_T}yes" >&6; }
12791 succeeded=yes
12793 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12794 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
12795 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
12796 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12797 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
12799 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12800 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
12801 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
12802 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12803 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
12804 else
12805 { echo "$as_me:$LINENO: result: no" >&5
12806 echo "${ECHO_T}no" >&6; }
12807 FREETYPE_CFLAGS=""
12808 FREETYPE_LIBS=""
12809 ## If we have a custom action on failure, don't print errors, but
12810 ## do set a variable so people can do so.
12811 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12817 else
12818 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12819 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12823 if test $succeeded = yes; then
12824 HAVE_FREETYPE=yes
12825 else
12826 HAVE_FREETYPE=no
12829 if test "${HAVE_FREETYPE}" = "yes"; then
12831 succeeded=no
12833 # Extract the first word of "pkg-config", so it can be a program name with args.
12834 set dummy pkg-config; ac_word=$2
12835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12837 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12838 echo $ECHO_N "(cached) $ECHO_C" >&6
12839 else
12840 case $PKG_CONFIG in
12841 [\\/]* | ?:[\\/]*)
12842 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12846 for as_dir in $PATH
12848 IFS=$as_save_IFS
12849 test -z "$as_dir" && as_dir=.
12850 for ac_exec_ext in '' $ac_executable_extensions; do
12851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12852 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12854 break 2
12856 done
12857 done
12858 IFS=$as_save_IFS
12860 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12862 esac
12864 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12865 if test -n "$PKG_CONFIG"; then
12866 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12867 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12868 else
12869 { echo "$as_me:$LINENO: result: no" >&5
12870 echo "${ECHO_T}no" >&6; }
12875 if test "$PKG_CONFIG" = "no" ; then
12876 HAVE_FC=no
12877 else
12878 PKG_CONFIG_MIN_VERSION=0.9.0
12879 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12880 { echo "$as_me:$LINENO: checking for fontconfig" >&5
12881 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
12883 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
12884 { echo "$as_me:$LINENO: result: yes" >&5
12885 echo "${ECHO_T}yes" >&6; }
12886 succeeded=yes
12888 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
12889 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
12890 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
12891 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
12892 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
12894 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
12895 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
12896 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
12897 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
12898 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
12899 else
12900 { echo "$as_me:$LINENO: result: no" >&5
12901 echo "${ECHO_T}no" >&6; }
12902 FONTCONFIG_CFLAGS=""
12903 FONTCONFIG_LIBS=""
12904 ## If we have a custom action on failure, don't print errors, but
12905 ## do set a variable so people can do so.
12906 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
12912 else
12913 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12914 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12918 if test $succeeded = yes; then
12919 HAVE_FC=yes
12920 else
12921 HAVE_FC=no
12924 if test "${HAVE_FC}" = "no"; then
12925 HAVE_FREETYPE=no
12930 HAVE_LIBOTF=no
12931 if test "${HAVE_FREETYPE}" = "yes"; then
12933 cat >>confdefs.h <<\_ACEOF
12934 #define HAVE_FREETYPE 1
12935 _ACEOF
12937 if test "${with_libotf}" != "no"; then
12939 succeeded=no
12941 # Extract the first word of "pkg-config", so it can be a program name with args.
12942 set dummy pkg-config; ac_word=$2
12943 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12945 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12946 echo $ECHO_N "(cached) $ECHO_C" >&6
12947 else
12948 case $PKG_CONFIG in
12949 [\\/]* | ?:[\\/]*)
12950 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12954 for as_dir in $PATH
12956 IFS=$as_save_IFS
12957 test -z "$as_dir" && as_dir=.
12958 for ac_exec_ext in '' $ac_executable_extensions; do
12959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12960 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12962 break 2
12964 done
12965 done
12966 IFS=$as_save_IFS
12968 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12970 esac
12972 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12973 if test -n "$PKG_CONFIG"; then
12974 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12975 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12976 else
12977 { echo "$as_me:$LINENO: result: no" >&5
12978 echo "${ECHO_T}no" >&6; }
12983 if test "$PKG_CONFIG" = "no" ; then
12984 HAVE_LIBOTF=no
12985 else
12986 PKG_CONFIG_MIN_VERSION=0.9.0
12987 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12988 { echo "$as_me:$LINENO: checking for libotf" >&5
12989 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
12991 if $PKG_CONFIG --exists "libotf" 2>&5; then
12992 { echo "$as_me:$LINENO: result: yes" >&5
12993 echo "${ECHO_T}yes" >&6; }
12994 succeeded=yes
12996 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
12997 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
12998 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
12999 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13000 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13002 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13003 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
13004 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13005 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13006 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13007 else
13008 { echo "$as_me:$LINENO: result: no" >&5
13009 echo "${ECHO_T}no" >&6; }
13010 LIBOTF_CFLAGS=""
13011 LIBOTF_LIBS=""
13012 ## If we have a custom action on failure, don't print errors, but
13013 ## do set a variable so people can do so.
13014 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13020 else
13021 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13022 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13026 if test $succeeded = yes; then
13027 HAVE_LIBOTF=yes
13028 else
13029 HAVE_LIBOTF=no
13032 if test "$HAVE_LIBOTF" = "yes"; then
13034 cat >>confdefs.h <<\_ACEOF
13035 #define HAVE_LIBOTF 1
13036 _ACEOF
13042 HAVE_M17N_FLT=no
13043 if test "${with_m17n_flt}" != "no"; then
13045 succeeded=no
13047 # Extract the first word of "pkg-config", so it can be a program name with args.
13048 set dummy pkg-config; ac_word=$2
13049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13051 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13052 echo $ECHO_N "(cached) $ECHO_C" >&6
13053 else
13054 case $PKG_CONFIG in
13055 [\\/]* | ?:[\\/]*)
13056 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13060 for as_dir in $PATH
13062 IFS=$as_save_IFS
13063 test -z "$as_dir" && as_dir=.
13064 for ac_exec_ext in '' $ac_executable_extensions; do
13065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13066 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13068 break 2
13070 done
13071 done
13072 IFS=$as_save_IFS
13074 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13076 esac
13078 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13079 if test -n "$PKG_CONFIG"; then
13080 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13081 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13082 else
13083 { echo "$as_me:$LINENO: result: no" >&5
13084 echo "${ECHO_T}no" >&6; }
13089 if test "$PKG_CONFIG" = "no" ; then
13090 HAVE_M17N_FLT=no
13091 else
13092 PKG_CONFIG_MIN_VERSION=0.9.0
13093 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13094 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13095 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13097 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13098 { echo "$as_me:$LINENO: result: yes" >&5
13099 echo "${ECHO_T}yes" >&6; }
13100 succeeded=yes
13102 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13103 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13104 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13105 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13106 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13108 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13109 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13110 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13111 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13112 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13113 else
13114 { echo "$as_me:$LINENO: result: no" >&5
13115 echo "${ECHO_T}no" >&6; }
13116 M17N_FLT_CFLAGS=""
13117 M17N_FLT_LIBS=""
13118 ## If we have a custom action on failure, don't print errors, but
13119 ## do set a variable so people can do so.
13120 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13126 else
13127 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13128 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13132 if test $succeeded = yes; then
13133 HAVE_M17N_FLT=yes
13134 else
13135 HAVE_M17N_FLT=no
13138 if test "$HAVE_M17N_FLT" = "yes"; then
13140 cat >>confdefs.h <<\_ACEOF
13141 #define HAVE_M17N_FLT 1
13142 _ACEOF
13156 fi # "${USE_FONT_BACKEND}" = "yes"
13157 ### End of font-backend section.
13159 ### Use -lXpm if available, unless `--with-xpm=no'.
13160 HAVE_XPM=no
13161 if test "${HAVE_X11}" = "yes"; then
13162 if test "${with_xpm}" != "no"; then
13163 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13164 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13165 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13166 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13167 echo $ECHO_N "(cached) $ECHO_C" >&6
13169 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13170 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13171 else
13172 # Is the header compilable?
13173 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13174 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13175 cat >conftest.$ac_ext <<_ACEOF
13176 /* confdefs.h. */
13177 _ACEOF
13178 cat confdefs.h >>conftest.$ac_ext
13179 cat >>conftest.$ac_ext <<_ACEOF
13180 /* end confdefs.h. */
13181 $ac_includes_default
13182 #include <X11/xpm.h>
13183 _ACEOF
13184 rm -f conftest.$ac_objext
13185 if { (ac_try="$ac_compile"
13186 case "(($ac_try" in
13187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13188 *) ac_try_echo=$ac_try;;
13189 esac
13190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13191 (eval "$ac_compile") 2>conftest.er1
13192 ac_status=$?
13193 grep -v '^ *+' conftest.er1 >conftest.err
13194 rm -f conftest.er1
13195 cat conftest.err >&5
13196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197 (exit $ac_status); } && {
13198 test -z "$ac_c_werror_flag" ||
13199 test ! -s conftest.err
13200 } && test -s conftest.$ac_objext; then
13201 ac_header_compiler=yes
13202 else
13203 echo "$as_me: failed program was:" >&5
13204 sed 's/^/| /' conftest.$ac_ext >&5
13206 ac_header_compiler=no
13209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13210 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13211 echo "${ECHO_T}$ac_header_compiler" >&6; }
13213 # Is the header present?
13214 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13215 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13216 cat >conftest.$ac_ext <<_ACEOF
13217 /* confdefs.h. */
13218 _ACEOF
13219 cat confdefs.h >>conftest.$ac_ext
13220 cat >>conftest.$ac_ext <<_ACEOF
13221 /* end confdefs.h. */
13222 #include <X11/xpm.h>
13223 _ACEOF
13224 if { (ac_try="$ac_cpp conftest.$ac_ext"
13225 case "(($ac_try" in
13226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13227 *) ac_try_echo=$ac_try;;
13228 esac
13229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13230 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13231 ac_status=$?
13232 grep -v '^ *+' conftest.er1 >conftest.err
13233 rm -f conftest.er1
13234 cat conftest.err >&5
13235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236 (exit $ac_status); } >/dev/null && {
13237 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13238 test ! -s conftest.err
13239 }; then
13240 ac_header_preproc=yes
13241 else
13242 echo "$as_me: failed program was:" >&5
13243 sed 's/^/| /' conftest.$ac_ext >&5
13245 ac_header_preproc=no
13248 rm -f conftest.err conftest.$ac_ext
13249 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13250 echo "${ECHO_T}$ac_header_preproc" >&6; }
13252 # So? What about this header?
13253 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13254 yes:no: )
13255 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13256 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13257 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13258 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13259 ac_header_preproc=yes
13261 no:yes:* )
13262 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13263 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13264 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13265 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13266 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13267 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13268 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13269 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13270 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13271 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13272 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13273 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13276 esac
13277 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13278 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13279 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13280 echo $ECHO_N "(cached) $ECHO_C" >&6
13281 else
13282 ac_cv_header_X11_xpm_h=$ac_header_preproc
13284 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13285 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13288 if test $ac_cv_header_X11_xpm_h = yes; then
13289 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13290 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13291 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13292 echo $ECHO_N "(cached) $ECHO_C" >&6
13293 else
13294 ac_check_lib_save_LIBS=$LIBS
13295 LIBS="-lXpm -lX11 $LIBS"
13296 cat >conftest.$ac_ext <<_ACEOF
13297 /* confdefs.h. */
13298 _ACEOF
13299 cat confdefs.h >>conftest.$ac_ext
13300 cat >>conftest.$ac_ext <<_ACEOF
13301 /* end confdefs.h. */
13303 /* Override any GCC internal prototype to avoid an error.
13304 Use char because int might match the return type of a GCC
13305 builtin and then its argument prototype would still apply. */
13306 #ifdef __cplusplus
13307 extern "C"
13308 #endif
13309 char XpmReadFileToPixmap ();
13311 main ()
13313 return XpmReadFileToPixmap ();
13315 return 0;
13317 _ACEOF
13318 rm -f conftest.$ac_objext conftest$ac_exeext
13319 if { (ac_try="$ac_link"
13320 case "(($ac_try" in
13321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13322 *) ac_try_echo=$ac_try;;
13323 esac
13324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13325 (eval "$ac_link") 2>conftest.er1
13326 ac_status=$?
13327 grep -v '^ *+' conftest.er1 >conftest.err
13328 rm -f conftest.er1
13329 cat conftest.err >&5
13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331 (exit $ac_status); } && {
13332 test -z "$ac_c_werror_flag" ||
13333 test ! -s conftest.err
13334 } && test -s conftest$ac_exeext &&
13335 $as_test_x conftest$ac_exeext; then
13336 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13337 else
13338 echo "$as_me: failed program was:" >&5
13339 sed 's/^/| /' conftest.$ac_ext >&5
13341 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13345 conftest$ac_exeext conftest.$ac_ext
13346 LIBS=$ac_check_lib_save_LIBS
13348 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13349 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13350 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13351 HAVE_XPM=yes
13357 if test "${HAVE_XPM}" = "yes"; then
13358 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13359 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13360 cat >conftest.$ac_ext <<_ACEOF
13361 /* confdefs.h. */
13362 _ACEOF
13363 cat confdefs.h >>conftest.$ac_ext
13364 cat >>conftest.$ac_ext <<_ACEOF
13365 /* end confdefs.h. */
13366 #include "X11/xpm.h"
13367 #ifndef XpmReturnAllocPixels
13368 no_return_alloc_pixels
13369 #endif
13371 _ACEOF
13372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13373 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13374 HAVE_XPM=no
13375 else
13376 HAVE_XPM=yes
13378 rm -f conftest*
13381 if test "${HAVE_XPM}" = "yes"; then
13382 { echo "$as_me:$LINENO: result: yes" >&5
13383 echo "${ECHO_T}yes" >&6; }
13384 else
13385 { echo "$as_me:$LINENO: result: no" >&5
13386 echo "${ECHO_T}no" >&6; }
13391 if test "${HAVE_XPM}" = "yes"; then
13393 cat >>confdefs.h <<\_ACEOF
13394 #define HAVE_XPM 1
13395 _ACEOF
13400 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13401 HAVE_JPEG=no
13402 if test "${HAVE_X11}" = "yes"; then
13403 if test "${with_jpeg}" != "no"; then
13404 if test "${ac_cv_header_jerror_h+set}" = set; then
13405 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13406 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13407 if test "${ac_cv_header_jerror_h+set}" = set; then
13408 echo $ECHO_N "(cached) $ECHO_C" >&6
13410 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13411 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13412 else
13413 # Is the header compilable?
13414 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13415 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13416 cat >conftest.$ac_ext <<_ACEOF
13417 /* confdefs.h. */
13418 _ACEOF
13419 cat confdefs.h >>conftest.$ac_ext
13420 cat >>conftest.$ac_ext <<_ACEOF
13421 /* end confdefs.h. */
13422 $ac_includes_default
13423 #include <jerror.h>
13424 _ACEOF
13425 rm -f conftest.$ac_objext
13426 if { (ac_try="$ac_compile"
13427 case "(($ac_try" in
13428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13429 *) ac_try_echo=$ac_try;;
13430 esac
13431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13432 (eval "$ac_compile") 2>conftest.er1
13433 ac_status=$?
13434 grep -v '^ *+' conftest.er1 >conftest.err
13435 rm -f conftest.er1
13436 cat conftest.err >&5
13437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438 (exit $ac_status); } && {
13439 test -z "$ac_c_werror_flag" ||
13440 test ! -s conftest.err
13441 } && test -s conftest.$ac_objext; then
13442 ac_header_compiler=yes
13443 else
13444 echo "$as_me: failed program was:" >&5
13445 sed 's/^/| /' conftest.$ac_ext >&5
13447 ac_header_compiler=no
13450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13451 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13452 echo "${ECHO_T}$ac_header_compiler" >&6; }
13454 # Is the header present?
13455 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13456 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13457 cat >conftest.$ac_ext <<_ACEOF
13458 /* confdefs.h. */
13459 _ACEOF
13460 cat confdefs.h >>conftest.$ac_ext
13461 cat >>conftest.$ac_ext <<_ACEOF
13462 /* end confdefs.h. */
13463 #include <jerror.h>
13464 _ACEOF
13465 if { (ac_try="$ac_cpp conftest.$ac_ext"
13466 case "(($ac_try" in
13467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13468 *) ac_try_echo=$ac_try;;
13469 esac
13470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13471 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13472 ac_status=$?
13473 grep -v '^ *+' conftest.er1 >conftest.err
13474 rm -f conftest.er1
13475 cat conftest.err >&5
13476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477 (exit $ac_status); } >/dev/null && {
13478 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13479 test ! -s conftest.err
13480 }; then
13481 ac_header_preproc=yes
13482 else
13483 echo "$as_me: failed program was:" >&5
13484 sed 's/^/| /' conftest.$ac_ext >&5
13486 ac_header_preproc=no
13489 rm -f conftest.err conftest.$ac_ext
13490 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13491 echo "${ECHO_T}$ac_header_preproc" >&6; }
13493 # So? What about this header?
13494 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13495 yes:no: )
13496 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13497 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13498 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13499 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13500 ac_header_preproc=yes
13502 no:yes:* )
13503 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13504 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13505 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13506 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13507 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13508 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13509 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13510 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13511 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13512 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13513 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13514 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13517 esac
13518 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13519 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13520 if test "${ac_cv_header_jerror_h+set}" = set; then
13521 echo $ECHO_N "(cached) $ECHO_C" >&6
13522 else
13523 ac_cv_header_jerror_h=$ac_header_preproc
13525 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13526 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13529 if test $ac_cv_header_jerror_h = yes; then
13530 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13531 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13532 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13533 echo $ECHO_N "(cached) $ECHO_C" >&6
13534 else
13535 ac_check_lib_save_LIBS=$LIBS
13536 LIBS="-ljpeg $LIBS"
13537 cat >conftest.$ac_ext <<_ACEOF
13538 /* confdefs.h. */
13539 _ACEOF
13540 cat confdefs.h >>conftest.$ac_ext
13541 cat >>conftest.$ac_ext <<_ACEOF
13542 /* end confdefs.h. */
13544 /* Override any GCC internal prototype to avoid an error.
13545 Use char because int might match the return type of a GCC
13546 builtin and then its argument prototype would still apply. */
13547 #ifdef __cplusplus
13548 extern "C"
13549 #endif
13550 char jpeg_destroy_compress ();
13552 main ()
13554 return jpeg_destroy_compress ();
13556 return 0;
13558 _ACEOF
13559 rm -f conftest.$ac_objext conftest$ac_exeext
13560 if { (ac_try="$ac_link"
13561 case "(($ac_try" in
13562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13563 *) ac_try_echo=$ac_try;;
13564 esac
13565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13566 (eval "$ac_link") 2>conftest.er1
13567 ac_status=$?
13568 grep -v '^ *+' conftest.er1 >conftest.err
13569 rm -f conftest.er1
13570 cat conftest.err >&5
13571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572 (exit $ac_status); } && {
13573 test -z "$ac_c_werror_flag" ||
13574 test ! -s conftest.err
13575 } && test -s conftest$ac_exeext &&
13576 $as_test_x conftest$ac_exeext; then
13577 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13578 else
13579 echo "$as_me: failed program was:" >&5
13580 sed 's/^/| /' conftest.$ac_ext >&5
13582 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13586 conftest$ac_exeext conftest.$ac_ext
13587 LIBS=$ac_check_lib_save_LIBS
13589 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13590 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13591 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13592 HAVE_JPEG=yes
13601 if test "${HAVE_JPEG}" = "yes"; then
13602 cat >>confdefs.h <<\_ACEOF
13603 #define HAVE_JPEG 1
13604 _ACEOF
13606 cat >conftest.$ac_ext <<_ACEOF
13607 /* confdefs.h. */
13608 _ACEOF
13609 cat confdefs.h >>conftest.$ac_ext
13610 cat >>conftest.$ac_ext <<_ACEOF
13611 /* end confdefs.h. */
13612 #include <jpeglib.h>
13613 version=JPEG_LIB_VERSION
13615 _ACEOF
13616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13617 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13618 cat >>confdefs.h <<\_ACEOF
13619 #define HAVE_JPEG 1
13620 _ACEOF
13622 else
13623 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13624 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13625 HAVE_JPEG=no
13627 rm -f conftest*
13632 ### Use -lpng if available, unless `--with-png=no'.
13633 HAVE_PNG=no
13634 if test "${HAVE_X11}" = "yes"; then
13635 if test "${with_png}" != "no"; then
13636 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13637 # in /usr/include/libpng.
13640 for ac_header in png.h libpng/png.h
13642 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13644 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13647 echo $ECHO_N "(cached) $ECHO_C" >&6
13649 ac_res=`eval echo '${'$as_ac_Header'}'`
13650 { echo "$as_me:$LINENO: result: $ac_res" >&5
13651 echo "${ECHO_T}$ac_res" >&6; }
13652 else
13653 # Is the header compilable?
13654 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13655 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13656 cat >conftest.$ac_ext <<_ACEOF
13657 /* confdefs.h. */
13658 _ACEOF
13659 cat confdefs.h >>conftest.$ac_ext
13660 cat >>conftest.$ac_ext <<_ACEOF
13661 /* end confdefs.h. */
13662 $ac_includes_default
13663 #include <$ac_header>
13664 _ACEOF
13665 rm -f conftest.$ac_objext
13666 if { (ac_try="$ac_compile"
13667 case "(($ac_try" in
13668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13669 *) ac_try_echo=$ac_try;;
13670 esac
13671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13672 (eval "$ac_compile") 2>conftest.er1
13673 ac_status=$?
13674 grep -v '^ *+' conftest.er1 >conftest.err
13675 rm -f conftest.er1
13676 cat conftest.err >&5
13677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678 (exit $ac_status); } && {
13679 test -z "$ac_c_werror_flag" ||
13680 test ! -s conftest.err
13681 } && test -s conftest.$ac_objext; then
13682 ac_header_compiler=yes
13683 else
13684 echo "$as_me: failed program was:" >&5
13685 sed 's/^/| /' conftest.$ac_ext >&5
13687 ac_header_compiler=no
13690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13691 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13692 echo "${ECHO_T}$ac_header_compiler" >&6; }
13694 # Is the header present?
13695 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13696 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13697 cat >conftest.$ac_ext <<_ACEOF
13698 /* confdefs.h. */
13699 _ACEOF
13700 cat confdefs.h >>conftest.$ac_ext
13701 cat >>conftest.$ac_ext <<_ACEOF
13702 /* end confdefs.h. */
13703 #include <$ac_header>
13704 _ACEOF
13705 if { (ac_try="$ac_cpp conftest.$ac_ext"
13706 case "(($ac_try" in
13707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13708 *) ac_try_echo=$ac_try;;
13709 esac
13710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13712 ac_status=$?
13713 grep -v '^ *+' conftest.er1 >conftest.err
13714 rm -f conftest.er1
13715 cat conftest.err >&5
13716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717 (exit $ac_status); } >/dev/null && {
13718 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13719 test ! -s conftest.err
13720 }; then
13721 ac_header_preproc=yes
13722 else
13723 echo "$as_me: failed program was:" >&5
13724 sed 's/^/| /' conftest.$ac_ext >&5
13726 ac_header_preproc=no
13729 rm -f conftest.err conftest.$ac_ext
13730 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13731 echo "${ECHO_T}$ac_header_preproc" >&6; }
13733 # So? What about this header?
13734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13735 yes:no: )
13736 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13737 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13739 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13740 ac_header_preproc=yes
13742 no:yes:* )
13743 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13744 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13745 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13746 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13747 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13748 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13749 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13750 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13752 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13753 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13754 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13757 esac
13758 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13761 echo $ECHO_N "(cached) $ECHO_C" >&6
13762 else
13763 eval "$as_ac_Header=\$ac_header_preproc"
13765 ac_res=`eval echo '${'$as_ac_Header'}'`
13766 { echo "$as_me:$LINENO: result: $ac_res" >&5
13767 echo "${ECHO_T}$ac_res" >&6; }
13770 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13771 cat >>confdefs.h <<_ACEOF
13772 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13773 _ACEOF
13777 done
13779 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13780 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13781 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13782 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13783 echo $ECHO_N "(cached) $ECHO_C" >&6
13784 else
13785 ac_check_lib_save_LIBS=$LIBS
13786 LIBS="-lpng -lz -lm $LIBS"
13787 cat >conftest.$ac_ext <<_ACEOF
13788 /* confdefs.h. */
13789 _ACEOF
13790 cat confdefs.h >>conftest.$ac_ext
13791 cat >>conftest.$ac_ext <<_ACEOF
13792 /* end confdefs.h. */
13794 /* Override any GCC internal prototype to avoid an error.
13795 Use char because int might match the return type of a GCC
13796 builtin and then its argument prototype would still apply. */
13797 #ifdef __cplusplus
13798 extern "C"
13799 #endif
13800 char png_get_channels ();
13802 main ()
13804 return png_get_channels ();
13806 return 0;
13808 _ACEOF
13809 rm -f conftest.$ac_objext conftest$ac_exeext
13810 if { (ac_try="$ac_link"
13811 case "(($ac_try" in
13812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13813 *) ac_try_echo=$ac_try;;
13814 esac
13815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13816 (eval "$ac_link") 2>conftest.er1
13817 ac_status=$?
13818 grep -v '^ *+' conftest.er1 >conftest.err
13819 rm -f conftest.er1
13820 cat conftest.err >&5
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); } && {
13823 test -z "$ac_c_werror_flag" ||
13824 test ! -s conftest.err
13825 } && test -s conftest$ac_exeext &&
13826 $as_test_x conftest$ac_exeext; then
13827 ac_cv_lib_png_png_get_channels=yes
13828 else
13829 echo "$as_me: failed program was:" >&5
13830 sed 's/^/| /' conftest.$ac_ext >&5
13832 ac_cv_lib_png_png_get_channels=no
13835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13836 conftest$ac_exeext conftest.$ac_ext
13837 LIBS=$ac_check_lib_save_LIBS
13839 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13840 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13841 if test $ac_cv_lib_png_png_get_channels = yes; then
13842 HAVE_PNG=yes
13848 if test "${HAVE_PNG}" = "yes"; then
13850 cat >>confdefs.h <<\_ACEOF
13851 #define HAVE_PNG 1
13852 _ACEOF
13857 ### Use -ltiff if available, unless `--with-tiff=no'.
13858 HAVE_TIFF=no
13859 if test "${HAVE_X11}" = "yes"; then
13860 if test "${with_tiff}" != "no"; then
13861 if test "${ac_cv_header_tiffio_h+set}" = set; then
13862 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13863 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13864 if test "${ac_cv_header_tiffio_h+set}" = set; then
13865 echo $ECHO_N "(cached) $ECHO_C" >&6
13867 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13868 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13869 else
13870 # Is the header compilable?
13871 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13872 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13873 cat >conftest.$ac_ext <<_ACEOF
13874 /* confdefs.h. */
13875 _ACEOF
13876 cat confdefs.h >>conftest.$ac_ext
13877 cat >>conftest.$ac_ext <<_ACEOF
13878 /* end confdefs.h. */
13879 $ac_includes_default
13880 #include <tiffio.h>
13881 _ACEOF
13882 rm -f conftest.$ac_objext
13883 if { (ac_try="$ac_compile"
13884 case "(($ac_try" in
13885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13886 *) ac_try_echo=$ac_try;;
13887 esac
13888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13889 (eval "$ac_compile") 2>conftest.er1
13890 ac_status=$?
13891 grep -v '^ *+' conftest.er1 >conftest.err
13892 rm -f conftest.er1
13893 cat conftest.err >&5
13894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895 (exit $ac_status); } && {
13896 test -z "$ac_c_werror_flag" ||
13897 test ! -s conftest.err
13898 } && test -s conftest.$ac_objext; then
13899 ac_header_compiler=yes
13900 else
13901 echo "$as_me: failed program was:" >&5
13902 sed 's/^/| /' conftest.$ac_ext >&5
13904 ac_header_compiler=no
13907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13908 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13909 echo "${ECHO_T}$ac_header_compiler" >&6; }
13911 # Is the header present?
13912 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13913 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13914 cat >conftest.$ac_ext <<_ACEOF
13915 /* confdefs.h. */
13916 _ACEOF
13917 cat confdefs.h >>conftest.$ac_ext
13918 cat >>conftest.$ac_ext <<_ACEOF
13919 /* end confdefs.h. */
13920 #include <tiffio.h>
13921 _ACEOF
13922 if { (ac_try="$ac_cpp conftest.$ac_ext"
13923 case "(($ac_try" in
13924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13925 *) ac_try_echo=$ac_try;;
13926 esac
13927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13928 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13929 ac_status=$?
13930 grep -v '^ *+' conftest.er1 >conftest.err
13931 rm -f conftest.er1
13932 cat conftest.err >&5
13933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934 (exit $ac_status); } >/dev/null && {
13935 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13936 test ! -s conftest.err
13937 }; then
13938 ac_header_preproc=yes
13939 else
13940 echo "$as_me: failed program was:" >&5
13941 sed 's/^/| /' conftest.$ac_ext >&5
13943 ac_header_preproc=no
13946 rm -f conftest.err conftest.$ac_ext
13947 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13948 echo "${ECHO_T}$ac_header_preproc" >&6; }
13950 # So? What about this header?
13951 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13952 yes:no: )
13953 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13954 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13955 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13956 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13957 ac_header_preproc=yes
13959 no:yes:* )
13960 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13961 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13962 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13963 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13964 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13965 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13966 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13967 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13968 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13969 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13970 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13971 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13974 esac
13975 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13976 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13977 if test "${ac_cv_header_tiffio_h+set}" = set; then
13978 echo $ECHO_N "(cached) $ECHO_C" >&6
13979 else
13980 ac_cv_header_tiffio_h=$ac_header_preproc
13982 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13983 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13986 if test $ac_cv_header_tiffio_h = yes; then
13987 tifflibs="-lz -lm"
13988 # At least one tiff package requires the jpeg library.
13989 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13990 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13991 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13992 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13993 echo $ECHO_N "(cached) $ECHO_C" >&6
13994 else
13995 ac_check_lib_save_LIBS=$LIBS
13996 LIBS="-ltiff $tifflibs $LIBS"
13997 cat >conftest.$ac_ext <<_ACEOF
13998 /* confdefs.h. */
13999 _ACEOF
14000 cat confdefs.h >>conftest.$ac_ext
14001 cat >>conftest.$ac_ext <<_ACEOF
14002 /* end confdefs.h. */
14004 /* Override any GCC internal prototype to avoid an error.
14005 Use char because int might match the return type of a GCC
14006 builtin and then its argument prototype would still apply. */
14007 #ifdef __cplusplus
14008 extern "C"
14009 #endif
14010 char TIFFGetVersion ();
14012 main ()
14014 return TIFFGetVersion ();
14016 return 0;
14018 _ACEOF
14019 rm -f conftest.$ac_objext conftest$ac_exeext
14020 if { (ac_try="$ac_link"
14021 case "(($ac_try" in
14022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14023 *) ac_try_echo=$ac_try;;
14024 esac
14025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14026 (eval "$ac_link") 2>conftest.er1
14027 ac_status=$?
14028 grep -v '^ *+' conftest.er1 >conftest.err
14029 rm -f conftest.er1
14030 cat conftest.err >&5
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 (exit $ac_status); } && {
14033 test -z "$ac_c_werror_flag" ||
14034 test ! -s conftest.err
14035 } && test -s conftest$ac_exeext &&
14036 $as_test_x conftest$ac_exeext; then
14037 ac_cv_lib_tiff_TIFFGetVersion=yes
14038 else
14039 echo "$as_me: failed program was:" >&5
14040 sed 's/^/| /' conftest.$ac_ext >&5
14042 ac_cv_lib_tiff_TIFFGetVersion=no
14045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14046 conftest$ac_exeext conftest.$ac_ext
14047 LIBS=$ac_check_lib_save_LIBS
14049 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14050 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14051 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14052 HAVE_TIFF=yes
14060 if test "${HAVE_TIFF}" = "yes"; then
14062 cat >>confdefs.h <<\_ACEOF
14063 #define HAVE_TIFF 1
14064 _ACEOF
14069 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14070 HAVE_GIF=no
14071 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14072 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14073 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14074 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14075 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14076 echo $ECHO_N "(cached) $ECHO_C" >&6
14078 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14079 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14080 else
14081 # Is the header compilable?
14082 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14083 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14084 cat >conftest.$ac_ext <<_ACEOF
14085 /* confdefs.h. */
14086 _ACEOF
14087 cat confdefs.h >>conftest.$ac_ext
14088 cat >>conftest.$ac_ext <<_ACEOF
14089 /* end confdefs.h. */
14090 $ac_includes_default
14091 #include <gif_lib.h>
14092 _ACEOF
14093 rm -f conftest.$ac_objext
14094 if { (ac_try="$ac_compile"
14095 case "(($ac_try" in
14096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14097 *) ac_try_echo=$ac_try;;
14098 esac
14099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14100 (eval "$ac_compile") 2>conftest.er1
14101 ac_status=$?
14102 grep -v '^ *+' conftest.er1 >conftest.err
14103 rm -f conftest.er1
14104 cat conftest.err >&5
14105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 (exit $ac_status); } && {
14107 test -z "$ac_c_werror_flag" ||
14108 test ! -s conftest.err
14109 } && test -s conftest.$ac_objext; then
14110 ac_header_compiler=yes
14111 else
14112 echo "$as_me: failed program was:" >&5
14113 sed 's/^/| /' conftest.$ac_ext >&5
14115 ac_header_compiler=no
14118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14119 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14120 echo "${ECHO_T}$ac_header_compiler" >&6; }
14122 # Is the header present?
14123 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14124 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14125 cat >conftest.$ac_ext <<_ACEOF
14126 /* confdefs.h. */
14127 _ACEOF
14128 cat confdefs.h >>conftest.$ac_ext
14129 cat >>conftest.$ac_ext <<_ACEOF
14130 /* end confdefs.h. */
14131 #include <gif_lib.h>
14132 _ACEOF
14133 if { (ac_try="$ac_cpp conftest.$ac_ext"
14134 case "(($ac_try" in
14135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14136 *) ac_try_echo=$ac_try;;
14137 esac
14138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14139 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14140 ac_status=$?
14141 grep -v '^ *+' conftest.er1 >conftest.err
14142 rm -f conftest.er1
14143 cat conftest.err >&5
14144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145 (exit $ac_status); } >/dev/null && {
14146 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14147 test ! -s conftest.err
14148 }; then
14149 ac_header_preproc=yes
14150 else
14151 echo "$as_me: failed program was:" >&5
14152 sed 's/^/| /' conftest.$ac_ext >&5
14154 ac_header_preproc=no
14157 rm -f conftest.err conftest.$ac_ext
14158 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14159 echo "${ECHO_T}$ac_header_preproc" >&6; }
14161 # So? What about this header?
14162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14163 yes:no: )
14164 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14165 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14166 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14167 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14168 ac_header_preproc=yes
14170 no:yes:* )
14171 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14172 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14173 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14174 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14175 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14176 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14177 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14178 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14179 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14180 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14181 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14182 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14185 esac
14186 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14187 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14188 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14189 echo $ECHO_N "(cached) $ECHO_C" >&6
14190 else
14191 ac_cv_header_gif_lib_h=$ac_header_preproc
14193 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14194 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14197 if test $ac_cv_header_gif_lib_h = yes; then
14198 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14199 # Earlier versions can crash Emacs.
14200 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14201 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14202 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14203 echo $ECHO_N "(cached) $ECHO_C" >&6
14204 else
14205 ac_check_lib_save_LIBS=$LIBS
14206 LIBS="-lgif $LIBS"
14207 cat >conftest.$ac_ext <<_ACEOF
14208 /* confdefs.h. */
14209 _ACEOF
14210 cat confdefs.h >>conftest.$ac_ext
14211 cat >>conftest.$ac_ext <<_ACEOF
14212 /* end confdefs.h. */
14214 /* Override any GCC internal prototype to avoid an error.
14215 Use char because int might match the return type of a GCC
14216 builtin and then its argument prototype would still apply. */
14217 #ifdef __cplusplus
14218 extern "C"
14219 #endif
14220 char EGifPutExtensionLast ();
14222 main ()
14224 return EGifPutExtensionLast ();
14226 return 0;
14228 _ACEOF
14229 rm -f conftest.$ac_objext conftest$ac_exeext
14230 if { (ac_try="$ac_link"
14231 case "(($ac_try" in
14232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14233 *) ac_try_echo=$ac_try;;
14234 esac
14235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14236 (eval "$ac_link") 2>conftest.er1
14237 ac_status=$?
14238 grep -v '^ *+' conftest.er1 >conftest.err
14239 rm -f conftest.er1
14240 cat conftest.err >&5
14241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242 (exit $ac_status); } && {
14243 test -z "$ac_c_werror_flag" ||
14244 test ! -s conftest.err
14245 } && test -s conftest$ac_exeext &&
14246 $as_test_x conftest$ac_exeext; then
14247 ac_cv_lib_gif_EGifPutExtensionLast=yes
14248 else
14249 echo "$as_me: failed program was:" >&5
14250 sed 's/^/| /' conftest.$ac_ext >&5
14252 ac_cv_lib_gif_EGifPutExtensionLast=no
14255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14256 conftest$ac_exeext conftest.$ac_ext
14257 LIBS=$ac_check_lib_save_LIBS
14259 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14260 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14261 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14262 HAVE_GIF=yes
14263 else
14264 try_libungif=yes
14271 if test "$HAVE_GIF" = yes; then
14272 ac_gif_lib_name="-lgif"
14275 # If gif_lib.h but no libgif, try libungif.
14276 if test x"$try_libungif" = xyes; then
14277 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14278 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14279 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14280 echo $ECHO_N "(cached) $ECHO_C" >&6
14281 else
14282 ac_check_lib_save_LIBS=$LIBS
14283 LIBS="-lungif $LIBS"
14284 cat >conftest.$ac_ext <<_ACEOF
14285 /* confdefs.h. */
14286 _ACEOF
14287 cat confdefs.h >>conftest.$ac_ext
14288 cat >>conftest.$ac_ext <<_ACEOF
14289 /* end confdefs.h. */
14291 /* Override any GCC internal prototype to avoid an error.
14292 Use char because int might match the return type of a GCC
14293 builtin and then its argument prototype would still apply. */
14294 #ifdef __cplusplus
14295 extern "C"
14296 #endif
14297 char EGifPutExtensionLast ();
14299 main ()
14301 return EGifPutExtensionLast ();
14303 return 0;
14305 _ACEOF
14306 rm -f conftest.$ac_objext conftest$ac_exeext
14307 if { (ac_try="$ac_link"
14308 case "(($ac_try" in
14309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14310 *) ac_try_echo=$ac_try;;
14311 esac
14312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14313 (eval "$ac_link") 2>conftest.er1
14314 ac_status=$?
14315 grep -v '^ *+' conftest.er1 >conftest.err
14316 rm -f conftest.er1
14317 cat conftest.err >&5
14318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); } && {
14320 test -z "$ac_c_werror_flag" ||
14321 test ! -s conftest.err
14322 } && test -s conftest$ac_exeext &&
14323 $as_test_x conftest$ac_exeext; then
14324 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14325 else
14326 echo "$as_me: failed program was:" >&5
14327 sed 's/^/| /' conftest.$ac_ext >&5
14329 ac_cv_lib_ungif_EGifPutExtensionLast=no
14332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14333 conftest$ac_exeext conftest.$ac_ext
14334 LIBS=$ac_check_lib_save_LIBS
14336 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14337 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14338 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14339 HAVE_GIF=yes
14343 if test "$HAVE_GIF" = yes; then
14345 cat >>confdefs.h <<\_ACEOF
14346 #define LIBGIF -lungif
14347 _ACEOF
14349 ac_gif_lib_name="-lungif"
14353 if test "${HAVE_GIF}" = "yes"; then
14355 cat >>confdefs.h <<\_ACEOF
14356 #define HAVE_GIF 1
14357 _ACEOF
14362 if test "${HAVE_X11}" = "yes"; then
14363 MISSING=""
14364 WITH_NO=""
14365 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14366 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14367 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14368 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
14369 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14370 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
14371 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14372 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
14373 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14374 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
14376 if test "X${MISSING}" != X; then
14377 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14378 $MISSING
14379 Maybe some development libraries/packages are missing?
14380 If you don't want to link with them give
14381 $WITH_NO
14382 as options to configure" >&5
14383 echo "$as_me: error: The following required libraries were not found:
14384 $MISSING
14385 Maybe some development libraries/packages are missing?
14386 If you don't want to link with them give
14387 $WITH_NO
14388 as options to configure" >&2;}
14389 { (exit 1); exit 1; }; }
14393 ### Use -lgpm if available, unless `--with-gpm=no'.
14394 HAVE_GPM=no
14395 if test "${with_gpm}" != "no"; then
14396 if test "${ac_cv_header_gpm_h+set}" = set; then
14397 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14398 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14399 if test "${ac_cv_header_gpm_h+set}" = set; then
14400 echo $ECHO_N "(cached) $ECHO_C" >&6
14402 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14403 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14404 else
14405 # Is the header compilable?
14406 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14407 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14408 cat >conftest.$ac_ext <<_ACEOF
14409 /* confdefs.h. */
14410 _ACEOF
14411 cat confdefs.h >>conftest.$ac_ext
14412 cat >>conftest.$ac_ext <<_ACEOF
14413 /* end confdefs.h. */
14414 $ac_includes_default
14415 #include <gpm.h>
14416 _ACEOF
14417 rm -f conftest.$ac_objext
14418 if { (ac_try="$ac_compile"
14419 case "(($ac_try" in
14420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14421 *) ac_try_echo=$ac_try;;
14422 esac
14423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14424 (eval "$ac_compile") 2>conftest.er1
14425 ac_status=$?
14426 grep -v '^ *+' conftest.er1 >conftest.err
14427 rm -f conftest.er1
14428 cat conftest.err >&5
14429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430 (exit $ac_status); } && {
14431 test -z "$ac_c_werror_flag" ||
14432 test ! -s conftest.err
14433 } && test -s conftest.$ac_objext; then
14434 ac_header_compiler=yes
14435 else
14436 echo "$as_me: failed program was:" >&5
14437 sed 's/^/| /' conftest.$ac_ext >&5
14439 ac_header_compiler=no
14442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14443 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14444 echo "${ECHO_T}$ac_header_compiler" >&6; }
14446 # Is the header present?
14447 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14448 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14449 cat >conftest.$ac_ext <<_ACEOF
14450 /* confdefs.h. */
14451 _ACEOF
14452 cat confdefs.h >>conftest.$ac_ext
14453 cat >>conftest.$ac_ext <<_ACEOF
14454 /* end confdefs.h. */
14455 #include <gpm.h>
14456 _ACEOF
14457 if { (ac_try="$ac_cpp conftest.$ac_ext"
14458 case "(($ac_try" in
14459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14460 *) ac_try_echo=$ac_try;;
14461 esac
14462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14464 ac_status=$?
14465 grep -v '^ *+' conftest.er1 >conftest.err
14466 rm -f conftest.er1
14467 cat conftest.err >&5
14468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14469 (exit $ac_status); } >/dev/null && {
14470 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14471 test ! -s conftest.err
14472 }; then
14473 ac_header_preproc=yes
14474 else
14475 echo "$as_me: failed program was:" >&5
14476 sed 's/^/| /' conftest.$ac_ext >&5
14478 ac_header_preproc=no
14481 rm -f conftest.err conftest.$ac_ext
14482 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14483 echo "${ECHO_T}$ac_header_preproc" >&6; }
14485 # So? What about this header?
14486 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14487 yes:no: )
14488 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14489 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14490 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14491 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14492 ac_header_preproc=yes
14494 no:yes:* )
14495 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14496 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14497 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14498 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14499 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14500 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14501 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14502 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14503 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14504 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14505 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14506 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14509 esac
14510 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14511 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14512 if test "${ac_cv_header_gpm_h+set}" = set; then
14513 echo $ECHO_N "(cached) $ECHO_C" >&6
14514 else
14515 ac_cv_header_gpm_h=$ac_header_preproc
14517 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14518 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14521 if test $ac_cv_header_gpm_h = yes; then
14522 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14523 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14524 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14525 echo $ECHO_N "(cached) $ECHO_C" >&6
14526 else
14527 ac_check_lib_save_LIBS=$LIBS
14528 LIBS="-lgpm $LIBS"
14529 cat >conftest.$ac_ext <<_ACEOF
14530 /* confdefs.h. */
14531 _ACEOF
14532 cat confdefs.h >>conftest.$ac_ext
14533 cat >>conftest.$ac_ext <<_ACEOF
14534 /* end confdefs.h. */
14536 /* Override any GCC internal prototype to avoid an error.
14537 Use char because int might match the return type of a GCC
14538 builtin and then its argument prototype would still apply. */
14539 #ifdef __cplusplus
14540 extern "C"
14541 #endif
14542 char Gpm_Open ();
14544 main ()
14546 return Gpm_Open ();
14548 return 0;
14550 _ACEOF
14551 rm -f conftest.$ac_objext conftest$ac_exeext
14552 if { (ac_try="$ac_link"
14553 case "(($ac_try" in
14554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14555 *) ac_try_echo=$ac_try;;
14556 esac
14557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14558 (eval "$ac_link") 2>conftest.er1
14559 ac_status=$?
14560 grep -v '^ *+' conftest.er1 >conftest.err
14561 rm -f conftest.er1
14562 cat conftest.err >&5
14563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564 (exit $ac_status); } && {
14565 test -z "$ac_c_werror_flag" ||
14566 test ! -s conftest.err
14567 } && test -s conftest$ac_exeext &&
14568 $as_test_x conftest$ac_exeext; then
14569 ac_cv_lib_gpm_Gpm_Open=yes
14570 else
14571 echo "$as_me: failed program was:" >&5
14572 sed 's/^/| /' conftest.$ac_ext >&5
14574 ac_cv_lib_gpm_Gpm_Open=no
14577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14578 conftest$ac_exeext conftest.$ac_ext
14579 LIBS=$ac_check_lib_save_LIBS
14581 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14582 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14583 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14584 HAVE_GPM=yes
14592 if test "${HAVE_GPM}" = "yes"; then
14594 cat >>confdefs.h <<\_ACEOF
14595 #define HAVE_GPM 1
14596 _ACEOF
14600 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14601 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14602 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14603 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14604 echo $ECHO_N "(cached) $ECHO_C" >&6
14606 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14607 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14608 else
14609 # Is the header compilable?
14610 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14611 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14612 cat >conftest.$ac_ext <<_ACEOF
14613 /* confdefs.h. */
14614 _ACEOF
14615 cat confdefs.h >>conftest.$ac_ext
14616 cat >>conftest.$ac_ext <<_ACEOF
14617 /* end confdefs.h. */
14618 $ac_includes_default
14619 #include <malloc/malloc.h>
14620 _ACEOF
14621 rm -f conftest.$ac_objext
14622 if { (ac_try="$ac_compile"
14623 case "(($ac_try" in
14624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14625 *) ac_try_echo=$ac_try;;
14626 esac
14627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14628 (eval "$ac_compile") 2>conftest.er1
14629 ac_status=$?
14630 grep -v '^ *+' conftest.er1 >conftest.err
14631 rm -f conftest.er1
14632 cat conftest.err >&5
14633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634 (exit $ac_status); } && {
14635 test -z "$ac_c_werror_flag" ||
14636 test ! -s conftest.err
14637 } && test -s conftest.$ac_objext; then
14638 ac_header_compiler=yes
14639 else
14640 echo "$as_me: failed program was:" >&5
14641 sed 's/^/| /' conftest.$ac_ext >&5
14643 ac_header_compiler=no
14646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14647 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14648 echo "${ECHO_T}$ac_header_compiler" >&6; }
14650 # Is the header present?
14651 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14652 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14653 cat >conftest.$ac_ext <<_ACEOF
14654 /* confdefs.h. */
14655 _ACEOF
14656 cat confdefs.h >>conftest.$ac_ext
14657 cat >>conftest.$ac_ext <<_ACEOF
14658 /* end confdefs.h. */
14659 #include <malloc/malloc.h>
14660 _ACEOF
14661 if { (ac_try="$ac_cpp conftest.$ac_ext"
14662 case "(($ac_try" in
14663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14664 *) ac_try_echo=$ac_try;;
14665 esac
14666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14668 ac_status=$?
14669 grep -v '^ *+' conftest.er1 >conftest.err
14670 rm -f conftest.er1
14671 cat conftest.err >&5
14672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673 (exit $ac_status); } >/dev/null && {
14674 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14675 test ! -s conftest.err
14676 }; then
14677 ac_header_preproc=yes
14678 else
14679 echo "$as_me: failed program was:" >&5
14680 sed 's/^/| /' conftest.$ac_ext >&5
14682 ac_header_preproc=no
14685 rm -f conftest.err conftest.$ac_ext
14686 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14687 echo "${ECHO_T}$ac_header_preproc" >&6; }
14689 # So? What about this header?
14690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14691 yes:no: )
14692 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14693 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14694 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14695 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14696 ac_header_preproc=yes
14698 no:yes:* )
14699 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14700 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14701 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14702 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14703 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14704 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14705 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14706 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14707 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14708 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14709 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14710 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14713 esac
14714 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14715 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14716 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14717 echo $ECHO_N "(cached) $ECHO_C" >&6
14718 else
14719 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14721 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14722 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14725 if test $ac_cv_header_malloc_malloc_h = yes; then
14727 cat >>confdefs.h <<\_ACEOF
14728 #define HAVE_MALLOC_MALLOC_H 1
14729 _ACEOF
14735 ### Use Mac OS X Carbon API to implement GUI.
14736 if test "${HAVE_CARBON}" = "yes"; then
14738 cat >>confdefs.h <<\_ACEOF
14739 #define HAVE_CARBON 1
14740 _ACEOF
14742 ## Specify the install directory
14743 carbon_appdir=
14744 if test "${carbon_appdir_x}" != ""; then
14745 case ${carbon_appdir_x} in
14746 y | ye | yes) carbon_appdir=/Applications ;;
14747 * ) carbon_appdir=${carbon_appdir_x} ;;
14748 esac
14750 # We also have mouse menus.
14751 HAVE_MENUS=yes
14754 ### Use session management (-lSM -lICE) if available
14755 HAVE_X_SM=no
14756 if test "${HAVE_X11}" = "yes"; then
14757 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14758 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14759 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14760 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14761 echo $ECHO_N "(cached) $ECHO_C" >&6
14763 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14764 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14765 else
14766 # Is the header compilable?
14767 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14768 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14769 cat >conftest.$ac_ext <<_ACEOF
14770 /* confdefs.h. */
14771 _ACEOF
14772 cat confdefs.h >>conftest.$ac_ext
14773 cat >>conftest.$ac_ext <<_ACEOF
14774 /* end confdefs.h. */
14775 $ac_includes_default
14776 #include <X11/SM/SMlib.h>
14777 _ACEOF
14778 rm -f conftest.$ac_objext
14779 if { (ac_try="$ac_compile"
14780 case "(($ac_try" in
14781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14782 *) ac_try_echo=$ac_try;;
14783 esac
14784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14785 (eval "$ac_compile") 2>conftest.er1
14786 ac_status=$?
14787 grep -v '^ *+' conftest.er1 >conftest.err
14788 rm -f conftest.er1
14789 cat conftest.err >&5
14790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791 (exit $ac_status); } && {
14792 test -z "$ac_c_werror_flag" ||
14793 test ! -s conftest.err
14794 } && test -s conftest.$ac_objext; then
14795 ac_header_compiler=yes
14796 else
14797 echo "$as_me: failed program was:" >&5
14798 sed 's/^/| /' conftest.$ac_ext >&5
14800 ac_header_compiler=no
14803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14804 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14805 echo "${ECHO_T}$ac_header_compiler" >&6; }
14807 # Is the header present?
14808 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14809 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14810 cat >conftest.$ac_ext <<_ACEOF
14811 /* confdefs.h. */
14812 _ACEOF
14813 cat confdefs.h >>conftest.$ac_ext
14814 cat >>conftest.$ac_ext <<_ACEOF
14815 /* end confdefs.h. */
14816 #include <X11/SM/SMlib.h>
14817 _ACEOF
14818 if { (ac_try="$ac_cpp conftest.$ac_ext"
14819 case "(($ac_try" in
14820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14821 *) ac_try_echo=$ac_try;;
14822 esac
14823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14824 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14825 ac_status=$?
14826 grep -v '^ *+' conftest.er1 >conftest.err
14827 rm -f conftest.er1
14828 cat conftest.err >&5
14829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14830 (exit $ac_status); } >/dev/null && {
14831 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14832 test ! -s conftest.err
14833 }; then
14834 ac_header_preproc=yes
14835 else
14836 echo "$as_me: failed program was:" >&5
14837 sed 's/^/| /' conftest.$ac_ext >&5
14839 ac_header_preproc=no
14842 rm -f conftest.err conftest.$ac_ext
14843 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14844 echo "${ECHO_T}$ac_header_preproc" >&6; }
14846 # So? What about this header?
14847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14848 yes:no: )
14849 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14850 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14851 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14852 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14853 ac_header_preproc=yes
14855 no:yes:* )
14856 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14857 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14858 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14859 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14860 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14861 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14862 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14863 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14864 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14865 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14866 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14867 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14870 esac
14871 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14872 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14873 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14874 echo $ECHO_N "(cached) $ECHO_C" >&6
14875 else
14876 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14878 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14879 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14882 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14883 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14884 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14885 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14886 echo $ECHO_N "(cached) $ECHO_C" >&6
14887 else
14888 ac_check_lib_save_LIBS=$LIBS
14889 LIBS="-lSM -lICE $LIBS"
14890 cat >conftest.$ac_ext <<_ACEOF
14891 /* confdefs.h. */
14892 _ACEOF
14893 cat confdefs.h >>conftest.$ac_ext
14894 cat >>conftest.$ac_ext <<_ACEOF
14895 /* end confdefs.h. */
14897 /* Override any GCC internal prototype to avoid an error.
14898 Use char because int might match the return type of a GCC
14899 builtin and then its argument prototype would still apply. */
14900 #ifdef __cplusplus
14901 extern "C"
14902 #endif
14903 char SmcOpenConnection ();
14905 main ()
14907 return SmcOpenConnection ();
14909 return 0;
14911 _ACEOF
14912 rm -f conftest.$ac_objext conftest$ac_exeext
14913 if { (ac_try="$ac_link"
14914 case "(($ac_try" in
14915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14916 *) ac_try_echo=$ac_try;;
14917 esac
14918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14919 (eval "$ac_link") 2>conftest.er1
14920 ac_status=$?
14921 grep -v '^ *+' conftest.er1 >conftest.err
14922 rm -f conftest.er1
14923 cat conftest.err >&5
14924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925 (exit $ac_status); } && {
14926 test -z "$ac_c_werror_flag" ||
14927 test ! -s conftest.err
14928 } && test -s conftest$ac_exeext &&
14929 $as_test_x conftest$ac_exeext; then
14930 ac_cv_lib_SM_SmcOpenConnection=yes
14931 else
14932 echo "$as_me: failed program was:" >&5
14933 sed 's/^/| /' conftest.$ac_ext >&5
14935 ac_cv_lib_SM_SmcOpenConnection=no
14938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14939 conftest$ac_exeext conftest.$ac_ext
14940 LIBS=$ac_check_lib_save_LIBS
14942 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14943 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14944 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14945 HAVE_X_SM=yes
14952 if test "${HAVE_X_SM}" = "yes"; then
14954 cat >>confdefs.h <<\_ACEOF
14955 #define HAVE_X_SM 1
14956 _ACEOF
14958 case "$LIBS" in
14959 *-lSM*) ;;
14960 *) LIBS="-lSM -lICE $LIBS" ;;
14961 esac
14965 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14966 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14967 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14968 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14969 echo $ECHO_N "(cached) $ECHO_C" >&6
14970 else
14971 cat >conftest.$ac_ext <<_ACEOF
14972 /* confdefs.h. */
14973 _ACEOF
14974 cat confdefs.h >>conftest.$ac_ext
14975 cat >>conftest.$ac_ext <<_ACEOF
14976 /* end confdefs.h. */
14977 #include <netdb.h>
14979 main ()
14981 return h_errno;
14983 return 0;
14985 _ACEOF
14986 rm -f conftest.$ac_objext conftest$ac_exeext
14987 if { (ac_try="$ac_link"
14988 case "(($ac_try" in
14989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14990 *) ac_try_echo=$ac_try;;
14991 esac
14992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14993 (eval "$ac_link") 2>conftest.er1
14994 ac_status=$?
14995 grep -v '^ *+' conftest.er1 >conftest.err
14996 rm -f conftest.er1
14997 cat conftest.err >&5
14998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999 (exit $ac_status); } && {
15000 test -z "$ac_c_werror_flag" ||
15001 test ! -s conftest.err
15002 } && test -s conftest$ac_exeext &&
15003 $as_test_x conftest$ac_exeext; then
15004 emacs_cv_netdb_declares_h_errno=yes
15005 else
15006 echo "$as_me: failed program was:" >&5
15007 sed 's/^/| /' conftest.$ac_ext >&5
15009 emacs_cv_netdb_declares_h_errno=no
15012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15013 conftest$ac_exeext conftest.$ac_ext
15015 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15016 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15017 if test $emacs_cv_netdb_declares_h_errno = yes; then
15019 cat >>confdefs.h <<\_ACEOF
15020 #define HAVE_H_ERRNO 1
15021 _ACEOF
15025 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15026 # for constant arguments. Useless!
15027 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15028 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15029 if test "${ac_cv_working_alloca_h+set}" = set; then
15030 echo $ECHO_N "(cached) $ECHO_C" >&6
15031 else
15032 cat >conftest.$ac_ext <<_ACEOF
15033 /* confdefs.h. */
15034 _ACEOF
15035 cat confdefs.h >>conftest.$ac_ext
15036 cat >>conftest.$ac_ext <<_ACEOF
15037 /* end confdefs.h. */
15038 #include <alloca.h>
15040 main ()
15042 char *p = (char *) alloca (2 * sizeof (int));
15043 if (p) return 0;
15045 return 0;
15047 _ACEOF
15048 rm -f conftest.$ac_objext conftest$ac_exeext
15049 if { (ac_try="$ac_link"
15050 case "(($ac_try" in
15051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15052 *) ac_try_echo=$ac_try;;
15053 esac
15054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15055 (eval "$ac_link") 2>conftest.er1
15056 ac_status=$?
15057 grep -v '^ *+' conftest.er1 >conftest.err
15058 rm -f conftest.er1
15059 cat conftest.err >&5
15060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061 (exit $ac_status); } && {
15062 test -z "$ac_c_werror_flag" ||
15063 test ! -s conftest.err
15064 } && test -s conftest$ac_exeext &&
15065 $as_test_x conftest$ac_exeext; then
15066 ac_cv_working_alloca_h=yes
15067 else
15068 echo "$as_me: failed program was:" >&5
15069 sed 's/^/| /' conftest.$ac_ext >&5
15071 ac_cv_working_alloca_h=no
15074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15075 conftest$ac_exeext conftest.$ac_ext
15077 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15078 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15079 if test $ac_cv_working_alloca_h = yes; then
15081 cat >>confdefs.h <<\_ACEOF
15082 #define HAVE_ALLOCA_H 1
15083 _ACEOF
15087 { echo "$as_me:$LINENO: checking for alloca" >&5
15088 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15089 if test "${ac_cv_func_alloca_works+set}" = set; then
15090 echo $ECHO_N "(cached) $ECHO_C" >&6
15091 else
15092 cat >conftest.$ac_ext <<_ACEOF
15093 /* confdefs.h. */
15094 _ACEOF
15095 cat confdefs.h >>conftest.$ac_ext
15096 cat >>conftest.$ac_ext <<_ACEOF
15097 /* end confdefs.h. */
15098 #ifdef __GNUC__
15099 # define alloca __builtin_alloca
15100 #else
15101 # ifdef _MSC_VER
15102 # include <malloc.h>
15103 # define alloca _alloca
15104 # else
15105 # ifdef HAVE_ALLOCA_H
15106 # include <alloca.h>
15107 # else
15108 # ifdef _AIX
15109 #pragma alloca
15110 # else
15111 # ifndef alloca /* predefined by HP cc +Olibcalls */
15112 char *alloca ();
15113 # endif
15114 # endif
15115 # endif
15116 # endif
15117 #endif
15120 main ()
15122 char *p = (char *) alloca (1);
15123 if (p) return 0;
15125 return 0;
15127 _ACEOF
15128 rm -f conftest.$ac_objext conftest$ac_exeext
15129 if { (ac_try="$ac_link"
15130 case "(($ac_try" in
15131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15132 *) ac_try_echo=$ac_try;;
15133 esac
15134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15135 (eval "$ac_link") 2>conftest.er1
15136 ac_status=$?
15137 grep -v '^ *+' conftest.er1 >conftest.err
15138 rm -f conftest.er1
15139 cat conftest.err >&5
15140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141 (exit $ac_status); } && {
15142 test -z "$ac_c_werror_flag" ||
15143 test ! -s conftest.err
15144 } && test -s conftest$ac_exeext &&
15145 $as_test_x conftest$ac_exeext; then
15146 ac_cv_func_alloca_works=yes
15147 else
15148 echo "$as_me: failed program was:" >&5
15149 sed 's/^/| /' conftest.$ac_ext >&5
15151 ac_cv_func_alloca_works=no
15154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15155 conftest$ac_exeext conftest.$ac_ext
15157 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15158 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15160 if test $ac_cv_func_alloca_works = yes; then
15162 cat >>confdefs.h <<\_ACEOF
15163 #define HAVE_ALLOCA 1
15164 _ACEOF
15166 else
15167 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15168 # that cause trouble. Some versions do not even contain alloca or
15169 # contain a buggy version. If you still want to use their alloca,
15170 # use ar to extract alloca.o from them instead of compiling alloca.c.
15172 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15174 cat >>confdefs.h <<\_ACEOF
15175 #define C_ALLOCA 1
15176 _ACEOF
15179 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15180 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
15181 if test "${ac_cv_os_cray+set}" = set; then
15182 echo $ECHO_N "(cached) $ECHO_C" >&6
15183 else
15184 cat >conftest.$ac_ext <<_ACEOF
15185 /* confdefs.h. */
15186 _ACEOF
15187 cat confdefs.h >>conftest.$ac_ext
15188 cat >>conftest.$ac_ext <<_ACEOF
15189 /* end confdefs.h. */
15190 #if defined CRAY && ! defined CRAY2
15191 webecray
15192 #else
15193 wenotbecray
15194 #endif
15196 _ACEOF
15197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15198 $EGREP "webecray" >/dev/null 2>&1; then
15199 ac_cv_os_cray=yes
15200 else
15201 ac_cv_os_cray=no
15203 rm -f conftest*
15206 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15207 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15208 if test $ac_cv_os_cray = yes; then
15209 for ac_func in _getb67 GETB67 getb67; do
15210 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15211 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15212 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15213 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15214 echo $ECHO_N "(cached) $ECHO_C" >&6
15215 else
15216 cat >conftest.$ac_ext <<_ACEOF
15217 /* confdefs.h. */
15218 _ACEOF
15219 cat confdefs.h >>conftest.$ac_ext
15220 cat >>conftest.$ac_ext <<_ACEOF
15221 /* end confdefs.h. */
15222 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15223 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15224 #define $ac_func innocuous_$ac_func
15226 /* System header to define __stub macros and hopefully few prototypes,
15227 which can conflict with char $ac_func (); below.
15228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15229 <limits.h> exists even on freestanding compilers. */
15231 #ifdef __STDC__
15232 # include <limits.h>
15233 #else
15234 # include <assert.h>
15235 #endif
15237 #undef $ac_func
15239 /* Override any GCC internal prototype to avoid an error.
15240 Use char because int might match the return type of a GCC
15241 builtin and then its argument prototype would still apply. */
15242 #ifdef __cplusplus
15243 extern "C"
15244 #endif
15245 char $ac_func ();
15246 /* The GNU C library defines this for functions which it implements
15247 to always fail with ENOSYS. Some functions are actually named
15248 something starting with __ and the normal name is an alias. */
15249 #if defined __stub_$ac_func || defined __stub___$ac_func
15250 choke me
15251 #endif
15254 main ()
15256 return $ac_func ();
15258 return 0;
15260 _ACEOF
15261 rm -f conftest.$ac_objext conftest$ac_exeext
15262 if { (ac_try="$ac_link"
15263 case "(($ac_try" in
15264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15265 *) ac_try_echo=$ac_try;;
15266 esac
15267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15268 (eval "$ac_link") 2>conftest.er1
15269 ac_status=$?
15270 grep -v '^ *+' conftest.er1 >conftest.err
15271 rm -f conftest.er1
15272 cat conftest.err >&5
15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); } && {
15275 test -z "$ac_c_werror_flag" ||
15276 test ! -s conftest.err
15277 } && test -s conftest$ac_exeext &&
15278 $as_test_x conftest$ac_exeext; then
15279 eval "$as_ac_var=yes"
15280 else
15281 echo "$as_me: failed program was:" >&5
15282 sed 's/^/| /' conftest.$ac_ext >&5
15284 eval "$as_ac_var=no"
15287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15288 conftest$ac_exeext conftest.$ac_ext
15290 ac_res=`eval echo '${'$as_ac_var'}'`
15291 { echo "$as_me:$LINENO: result: $ac_res" >&5
15292 echo "${ECHO_T}$ac_res" >&6; }
15293 if test `eval echo '${'$as_ac_var'}'` = yes; then
15295 cat >>confdefs.h <<_ACEOF
15296 #define CRAY_STACKSEG_END $ac_func
15297 _ACEOF
15299 break
15302 done
15305 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15306 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
15307 if test "${ac_cv_c_stack_direction+set}" = set; then
15308 echo $ECHO_N "(cached) $ECHO_C" >&6
15309 else
15310 if test "$cross_compiling" = yes; then
15311 ac_cv_c_stack_direction=0
15312 else
15313 cat >conftest.$ac_ext <<_ACEOF
15314 /* confdefs.h. */
15315 _ACEOF
15316 cat confdefs.h >>conftest.$ac_ext
15317 cat >>conftest.$ac_ext <<_ACEOF
15318 /* end confdefs.h. */
15319 $ac_includes_default
15321 find_stack_direction ()
15323 static char *addr = 0;
15324 auto char dummy;
15325 if (addr == 0)
15327 addr = &dummy;
15328 return find_stack_direction ();
15330 else
15331 return (&dummy > addr) ? 1 : -1;
15335 main ()
15337 return find_stack_direction () < 0;
15339 _ACEOF
15340 rm -f conftest$ac_exeext
15341 if { (ac_try="$ac_link"
15342 case "(($ac_try" in
15343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15344 *) ac_try_echo=$ac_try;;
15345 esac
15346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15347 (eval "$ac_link") 2>&5
15348 ac_status=$?
15349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15350 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15351 { (case "(($ac_try" in
15352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15353 *) ac_try_echo=$ac_try;;
15354 esac
15355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15356 (eval "$ac_try") 2>&5
15357 ac_status=$?
15358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15359 (exit $ac_status); }; }; then
15360 ac_cv_c_stack_direction=1
15361 else
15362 echo "$as_me: program exited with status $ac_status" >&5
15363 echo "$as_me: failed program was:" >&5
15364 sed 's/^/| /' conftest.$ac_ext >&5
15366 ( exit $ac_status )
15367 ac_cv_c_stack_direction=-1
15369 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15374 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15375 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15377 cat >>confdefs.h <<_ACEOF
15378 #define STACK_DIRECTION $ac_cv_c_stack_direction
15379 _ACEOF
15385 if test x"$ac_cv_func_alloca_works" != xyes; then
15386 { { echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
15387 echo "$as_me: error: a system implementation of alloca is required " >&2;}
15388 { (exit 1); exit 1; }; }
15391 # fmod, logb, and frexp are found in -lm on most systems.
15392 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15394 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15395 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15396 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15397 echo $ECHO_N "(cached) $ECHO_C" >&6
15398 else
15399 ac_check_lib_save_LIBS=$LIBS
15400 LIBS="-lm $LIBS"
15401 cat >conftest.$ac_ext <<_ACEOF
15402 /* confdefs.h. */
15403 _ACEOF
15404 cat confdefs.h >>conftest.$ac_ext
15405 cat >>conftest.$ac_ext <<_ACEOF
15406 /* end confdefs.h. */
15408 /* Override any GCC internal prototype to avoid an error.
15409 Use char because int might match the return type of a GCC
15410 builtin and then its argument prototype would still apply. */
15411 #ifdef __cplusplus
15412 extern "C"
15413 #endif
15414 char sqrt ();
15416 main ()
15418 return sqrt ();
15420 return 0;
15422 _ACEOF
15423 rm -f conftest.$ac_objext conftest$ac_exeext
15424 if { (ac_try="$ac_link"
15425 case "(($ac_try" in
15426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15427 *) ac_try_echo=$ac_try;;
15428 esac
15429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15430 (eval "$ac_link") 2>conftest.er1
15431 ac_status=$?
15432 grep -v '^ *+' conftest.er1 >conftest.err
15433 rm -f conftest.er1
15434 cat conftest.err >&5
15435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436 (exit $ac_status); } && {
15437 test -z "$ac_c_werror_flag" ||
15438 test ! -s conftest.err
15439 } && test -s conftest$ac_exeext &&
15440 $as_test_x conftest$ac_exeext; then
15441 ac_cv_lib_m_sqrt=yes
15442 else
15443 echo "$as_me: failed program was:" >&5
15444 sed 's/^/| /' conftest.$ac_ext >&5
15446 ac_cv_lib_m_sqrt=no
15449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15450 conftest$ac_exeext conftest.$ac_ext
15451 LIBS=$ac_check_lib_save_LIBS
15453 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15454 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15455 if test $ac_cv_lib_m_sqrt = yes; then
15456 cat >>confdefs.h <<_ACEOF
15457 #define HAVE_LIBM 1
15458 _ACEOF
15460 LIBS="-lm $LIBS"
15465 # Check for mail-locking functions in a "mail" library. Probably this should
15466 # have the same check as for liblockfile below.
15468 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15469 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15470 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15471 echo $ECHO_N "(cached) $ECHO_C" >&6
15472 else
15473 ac_check_lib_save_LIBS=$LIBS
15474 LIBS="-lmail $LIBS"
15475 cat >conftest.$ac_ext <<_ACEOF
15476 /* confdefs.h. */
15477 _ACEOF
15478 cat confdefs.h >>conftest.$ac_ext
15479 cat >>conftest.$ac_ext <<_ACEOF
15480 /* end confdefs.h. */
15482 /* Override any GCC internal prototype to avoid an error.
15483 Use char because int might match the return type of a GCC
15484 builtin and then its argument prototype would still apply. */
15485 #ifdef __cplusplus
15486 extern "C"
15487 #endif
15488 char maillock ();
15490 main ()
15492 return maillock ();
15494 return 0;
15496 _ACEOF
15497 rm -f conftest.$ac_objext conftest$ac_exeext
15498 if { (ac_try="$ac_link"
15499 case "(($ac_try" in
15500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15501 *) ac_try_echo=$ac_try;;
15502 esac
15503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15504 (eval "$ac_link") 2>conftest.er1
15505 ac_status=$?
15506 grep -v '^ *+' conftest.er1 >conftest.err
15507 rm -f conftest.er1
15508 cat conftest.err >&5
15509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510 (exit $ac_status); } && {
15511 test -z "$ac_c_werror_flag" ||
15512 test ! -s conftest.err
15513 } && test -s conftest$ac_exeext &&
15514 $as_test_x conftest$ac_exeext; then
15515 ac_cv_lib_mail_maillock=yes
15516 else
15517 echo "$as_me: failed program was:" >&5
15518 sed 's/^/| /' conftest.$ac_ext >&5
15520 ac_cv_lib_mail_maillock=no
15523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15524 conftest$ac_exeext conftest.$ac_ext
15525 LIBS=$ac_check_lib_save_LIBS
15527 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15528 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15529 if test $ac_cv_lib_mail_maillock = yes; then
15530 cat >>confdefs.h <<_ACEOF
15531 #define HAVE_LIBMAIL 1
15532 _ACEOF
15534 LIBS="-lmail $LIBS"
15539 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15540 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15541 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15542 echo $ECHO_N "(cached) $ECHO_C" >&6
15543 else
15544 ac_check_lib_save_LIBS=$LIBS
15545 LIBS="-llockfile $LIBS"
15546 cat >conftest.$ac_ext <<_ACEOF
15547 /* confdefs.h. */
15548 _ACEOF
15549 cat confdefs.h >>conftest.$ac_ext
15550 cat >>conftest.$ac_ext <<_ACEOF
15551 /* end confdefs.h. */
15553 /* Override any GCC internal prototype to avoid an error.
15554 Use char because int might match the return type of a GCC
15555 builtin and then its argument prototype would still apply. */
15556 #ifdef __cplusplus
15557 extern "C"
15558 #endif
15559 char maillock ();
15561 main ()
15563 return maillock ();
15565 return 0;
15567 _ACEOF
15568 rm -f conftest.$ac_objext conftest$ac_exeext
15569 if { (ac_try="$ac_link"
15570 case "(($ac_try" in
15571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15572 *) ac_try_echo=$ac_try;;
15573 esac
15574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15575 (eval "$ac_link") 2>conftest.er1
15576 ac_status=$?
15577 grep -v '^ *+' conftest.er1 >conftest.err
15578 rm -f conftest.er1
15579 cat conftest.err >&5
15580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581 (exit $ac_status); } && {
15582 test -z "$ac_c_werror_flag" ||
15583 test ! -s conftest.err
15584 } && test -s conftest$ac_exeext &&
15585 $as_test_x conftest$ac_exeext; then
15586 ac_cv_lib_lockfile_maillock=yes
15587 else
15588 echo "$as_me: failed program was:" >&5
15589 sed 's/^/| /' conftest.$ac_ext >&5
15591 ac_cv_lib_lockfile_maillock=no
15594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15595 conftest$ac_exeext conftest.$ac_ext
15596 LIBS=$ac_check_lib_save_LIBS
15598 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15599 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15600 if test $ac_cv_lib_lockfile_maillock = yes; then
15601 cat >>confdefs.h <<_ACEOF
15602 #define HAVE_LIBLOCKFILE 1
15603 _ACEOF
15605 LIBS="-llockfile $LIBS"
15609 # If we have the shared liblockfile, assume we must use it for mail
15610 # locking (e.g. Debian). If we couldn't link against liblockfile
15611 # (no liblockfile.a installed), ensure that we don't need to.
15612 if test "$ac_cv_lib_lockfile_maillock" = no; then
15613 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15614 set dummy liblockfile.so; ac_word=$2
15615 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15617 if test "${ac_cv_prog_liblockfile+set}" = set; then
15618 echo $ECHO_N "(cached) $ECHO_C" >&6
15619 else
15620 if test -n "$liblockfile"; then
15621 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15622 else
15623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15624 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15625 for as_dir in $as_dummy
15627 IFS=$as_save_IFS
15628 test -z "$as_dir" && as_dir=.
15629 for ac_exec_ext in '' $ac_executable_extensions; do
15630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15631 ac_cv_prog_liblockfile="yes"
15632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15633 break 2
15635 done
15636 done
15637 IFS=$as_save_IFS
15639 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15642 liblockfile=$ac_cv_prog_liblockfile
15643 if test -n "$liblockfile"; then
15644 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15645 echo "${ECHO_T}$liblockfile" >&6; }
15646 else
15647 { echo "$as_me:$LINENO: result: no" >&5
15648 echo "${ECHO_T}no" >&6; }
15652 if test $ac_cv_prog_liblockfile = yes; then
15653 { { echo "$as_me:$LINENO: 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." >&5
15656 echo "$as_me: error: Shared liblockfile found but can't link against it.
15657 This probably means that movemail could lose mail.
15658 There may be a \`development' package to install containing liblockfile." >&2;}
15659 { (exit 1); exit 1; }; }
15660 else :
15664 for ac_func in touchlock
15666 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15667 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15668 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15669 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15670 echo $ECHO_N "(cached) $ECHO_C" >&6
15671 else
15672 cat >conftest.$ac_ext <<_ACEOF
15673 /* confdefs.h. */
15674 _ACEOF
15675 cat confdefs.h >>conftest.$ac_ext
15676 cat >>conftest.$ac_ext <<_ACEOF
15677 /* end confdefs.h. */
15678 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15679 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15680 #define $ac_func innocuous_$ac_func
15682 /* System header to define __stub macros and hopefully few prototypes,
15683 which can conflict with char $ac_func (); below.
15684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15685 <limits.h> exists even on freestanding compilers. */
15687 #ifdef __STDC__
15688 # include <limits.h>
15689 #else
15690 # include <assert.h>
15691 #endif
15693 #undef $ac_func
15695 /* Override any GCC internal prototype to avoid an error.
15696 Use char because int might match the return type of a GCC
15697 builtin and then its argument prototype would still apply. */
15698 #ifdef __cplusplus
15699 extern "C"
15700 #endif
15701 char $ac_func ();
15702 /* The GNU C library defines this for functions which it implements
15703 to always fail with ENOSYS. Some functions are actually named
15704 something starting with __ and the normal name is an alias. */
15705 #if defined __stub_$ac_func || defined __stub___$ac_func
15706 choke me
15707 #endif
15710 main ()
15712 return $ac_func ();
15714 return 0;
15716 _ACEOF
15717 rm -f conftest.$ac_objext conftest$ac_exeext
15718 if { (ac_try="$ac_link"
15719 case "(($ac_try" in
15720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15721 *) ac_try_echo=$ac_try;;
15722 esac
15723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15724 (eval "$ac_link") 2>conftest.er1
15725 ac_status=$?
15726 grep -v '^ *+' conftest.er1 >conftest.err
15727 rm -f conftest.er1
15728 cat conftest.err >&5
15729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730 (exit $ac_status); } && {
15731 test -z "$ac_c_werror_flag" ||
15732 test ! -s conftest.err
15733 } && test -s conftest$ac_exeext &&
15734 $as_test_x conftest$ac_exeext; then
15735 eval "$as_ac_var=yes"
15736 else
15737 echo "$as_me: failed program was:" >&5
15738 sed 's/^/| /' conftest.$ac_ext >&5
15740 eval "$as_ac_var=no"
15743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15744 conftest$ac_exeext conftest.$ac_ext
15746 ac_res=`eval echo '${'$as_ac_var'}'`
15747 { echo "$as_me:$LINENO: result: $ac_res" >&5
15748 echo "${ECHO_T}$ac_res" >&6; }
15749 if test `eval echo '${'$as_ac_var'}'` = yes; then
15750 cat >>confdefs.h <<_ACEOF
15751 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15752 _ACEOF
15755 done
15758 for ac_header in maillock.h
15760 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15761 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15762 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15765 echo $ECHO_N "(cached) $ECHO_C" >&6
15767 ac_res=`eval echo '${'$as_ac_Header'}'`
15768 { echo "$as_me:$LINENO: result: $ac_res" >&5
15769 echo "${ECHO_T}$ac_res" >&6; }
15770 else
15771 # Is the header compilable?
15772 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15773 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15774 cat >conftest.$ac_ext <<_ACEOF
15775 /* confdefs.h. */
15776 _ACEOF
15777 cat confdefs.h >>conftest.$ac_ext
15778 cat >>conftest.$ac_ext <<_ACEOF
15779 /* end confdefs.h. */
15780 $ac_includes_default
15781 #include <$ac_header>
15782 _ACEOF
15783 rm -f conftest.$ac_objext
15784 if { (ac_try="$ac_compile"
15785 case "(($ac_try" in
15786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15787 *) ac_try_echo=$ac_try;;
15788 esac
15789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15790 (eval "$ac_compile") 2>conftest.er1
15791 ac_status=$?
15792 grep -v '^ *+' conftest.er1 >conftest.err
15793 rm -f conftest.er1
15794 cat conftest.err >&5
15795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15796 (exit $ac_status); } && {
15797 test -z "$ac_c_werror_flag" ||
15798 test ! -s conftest.err
15799 } && test -s conftest.$ac_objext; then
15800 ac_header_compiler=yes
15801 else
15802 echo "$as_me: failed program was:" >&5
15803 sed 's/^/| /' conftest.$ac_ext >&5
15805 ac_header_compiler=no
15808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15809 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15810 echo "${ECHO_T}$ac_header_compiler" >&6; }
15812 # Is the header present?
15813 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15814 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15815 cat >conftest.$ac_ext <<_ACEOF
15816 /* confdefs.h. */
15817 _ACEOF
15818 cat confdefs.h >>conftest.$ac_ext
15819 cat >>conftest.$ac_ext <<_ACEOF
15820 /* end confdefs.h. */
15821 #include <$ac_header>
15822 _ACEOF
15823 if { (ac_try="$ac_cpp conftest.$ac_ext"
15824 case "(($ac_try" in
15825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15826 *) ac_try_echo=$ac_try;;
15827 esac
15828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15829 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15830 ac_status=$?
15831 grep -v '^ *+' conftest.er1 >conftest.err
15832 rm -f conftest.er1
15833 cat conftest.err >&5
15834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 (exit $ac_status); } >/dev/null && {
15836 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15837 test ! -s conftest.err
15838 }; then
15839 ac_header_preproc=yes
15840 else
15841 echo "$as_me: failed program was:" >&5
15842 sed 's/^/| /' conftest.$ac_ext >&5
15844 ac_header_preproc=no
15847 rm -f conftest.err conftest.$ac_ext
15848 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15849 echo "${ECHO_T}$ac_header_preproc" >&6; }
15851 # So? What about this header?
15852 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15853 yes:no: )
15854 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15855 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15856 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15857 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15858 ac_header_preproc=yes
15860 no:yes:* )
15861 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15862 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15863 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15864 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15865 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15866 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15867 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15868 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15870 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15871 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15872 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15875 esac
15876 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15879 echo $ECHO_N "(cached) $ECHO_C" >&6
15880 else
15881 eval "$as_ac_Header=\$ac_header_preproc"
15883 ac_res=`eval echo '${'$as_ac_Header'}'`
15884 { echo "$as_me:$LINENO: result: $ac_res" >&5
15885 echo "${ECHO_T}$ac_res" >&6; }
15888 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15889 cat >>confdefs.h <<_ACEOF
15890 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15891 _ACEOF
15895 done
15966 for ac_func in gethostname getdomainname dup2 \
15967 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15968 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
15969 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15970 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15971 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15972 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15973 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15974 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15976 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15977 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15979 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15980 echo $ECHO_N "(cached) $ECHO_C" >&6
15981 else
15982 cat >conftest.$ac_ext <<_ACEOF
15983 /* confdefs.h. */
15984 _ACEOF
15985 cat confdefs.h >>conftest.$ac_ext
15986 cat >>conftest.$ac_ext <<_ACEOF
15987 /* end confdefs.h. */
15988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15990 #define $ac_func innocuous_$ac_func
15992 /* System header to define __stub macros and hopefully few prototypes,
15993 which can conflict with char $ac_func (); below.
15994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15995 <limits.h> exists even on freestanding compilers. */
15997 #ifdef __STDC__
15998 # include <limits.h>
15999 #else
16000 # include <assert.h>
16001 #endif
16003 #undef $ac_func
16005 /* Override any GCC internal prototype to avoid an error.
16006 Use char because int might match the return type of a GCC
16007 builtin and then its argument prototype would still apply. */
16008 #ifdef __cplusplus
16009 extern "C"
16010 #endif
16011 char $ac_func ();
16012 /* The GNU C library defines this for functions which it implements
16013 to always fail with ENOSYS. Some functions are actually named
16014 something starting with __ and the normal name is an alias. */
16015 #if defined __stub_$ac_func || defined __stub___$ac_func
16016 choke me
16017 #endif
16020 main ()
16022 return $ac_func ();
16024 return 0;
16026 _ACEOF
16027 rm -f conftest.$ac_objext conftest$ac_exeext
16028 if { (ac_try="$ac_link"
16029 case "(($ac_try" in
16030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16031 *) ac_try_echo=$ac_try;;
16032 esac
16033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16034 (eval "$ac_link") 2>conftest.er1
16035 ac_status=$?
16036 grep -v '^ *+' conftest.er1 >conftest.err
16037 rm -f conftest.er1
16038 cat conftest.err >&5
16039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16040 (exit $ac_status); } && {
16041 test -z "$ac_c_werror_flag" ||
16042 test ! -s conftest.err
16043 } && test -s conftest$ac_exeext &&
16044 $as_test_x conftest$ac_exeext; then
16045 eval "$as_ac_var=yes"
16046 else
16047 echo "$as_me: failed program was:" >&5
16048 sed 's/^/| /' conftest.$ac_ext >&5
16050 eval "$as_ac_var=no"
16053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16054 conftest$ac_exeext conftest.$ac_ext
16056 ac_res=`eval echo '${'$as_ac_var'}'`
16057 { echo "$as_me:$LINENO: result: $ac_res" >&5
16058 echo "${ECHO_T}$ac_res" >&6; }
16059 if test `eval echo '${'$as_ac_var'}'` = yes; then
16060 cat >>confdefs.h <<_ACEOF
16061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16062 _ACEOF
16065 done
16069 for ac_header in sys/un.h
16071 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16072 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16073 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16075 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16076 echo $ECHO_N "(cached) $ECHO_C" >&6
16078 ac_res=`eval echo '${'$as_ac_Header'}'`
16079 { echo "$as_me:$LINENO: result: $ac_res" >&5
16080 echo "${ECHO_T}$ac_res" >&6; }
16081 else
16082 # Is the header compilable?
16083 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16084 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16085 cat >conftest.$ac_ext <<_ACEOF
16086 /* confdefs.h. */
16087 _ACEOF
16088 cat confdefs.h >>conftest.$ac_ext
16089 cat >>conftest.$ac_ext <<_ACEOF
16090 /* end confdefs.h. */
16091 $ac_includes_default
16092 #include <$ac_header>
16093 _ACEOF
16094 rm -f conftest.$ac_objext
16095 if { (ac_try="$ac_compile"
16096 case "(($ac_try" in
16097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16098 *) ac_try_echo=$ac_try;;
16099 esac
16100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16101 (eval "$ac_compile") 2>conftest.er1
16102 ac_status=$?
16103 grep -v '^ *+' conftest.er1 >conftest.err
16104 rm -f conftest.er1
16105 cat conftest.err >&5
16106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107 (exit $ac_status); } && {
16108 test -z "$ac_c_werror_flag" ||
16109 test ! -s conftest.err
16110 } && test -s conftest.$ac_objext; then
16111 ac_header_compiler=yes
16112 else
16113 echo "$as_me: failed program was:" >&5
16114 sed 's/^/| /' conftest.$ac_ext >&5
16116 ac_header_compiler=no
16119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16120 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16121 echo "${ECHO_T}$ac_header_compiler" >&6; }
16123 # Is the header present?
16124 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16125 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16126 cat >conftest.$ac_ext <<_ACEOF
16127 /* confdefs.h. */
16128 _ACEOF
16129 cat confdefs.h >>conftest.$ac_ext
16130 cat >>conftest.$ac_ext <<_ACEOF
16131 /* end confdefs.h. */
16132 #include <$ac_header>
16133 _ACEOF
16134 if { (ac_try="$ac_cpp conftest.$ac_ext"
16135 case "(($ac_try" in
16136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16137 *) ac_try_echo=$ac_try;;
16138 esac
16139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16140 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16141 ac_status=$?
16142 grep -v '^ *+' conftest.er1 >conftest.err
16143 rm -f conftest.er1
16144 cat conftest.err >&5
16145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146 (exit $ac_status); } >/dev/null && {
16147 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16148 test ! -s conftest.err
16149 }; then
16150 ac_header_preproc=yes
16151 else
16152 echo "$as_me: failed program was:" >&5
16153 sed 's/^/| /' conftest.$ac_ext >&5
16155 ac_header_preproc=no
16158 rm -f conftest.err conftest.$ac_ext
16159 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16160 echo "${ECHO_T}$ac_header_preproc" >&6; }
16162 # So? What about this header?
16163 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16164 yes:no: )
16165 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16166 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16168 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16169 ac_header_preproc=yes
16171 no:yes:* )
16172 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16173 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16174 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16175 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16176 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16177 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16178 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16179 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16181 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16182 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16183 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16186 esac
16187 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16190 echo $ECHO_N "(cached) $ECHO_C" >&6
16191 else
16192 eval "$as_ac_Header=\$ac_header_preproc"
16194 ac_res=`eval echo '${'$as_ac_Header'}'`
16195 { echo "$as_me:$LINENO: result: $ac_res" >&5
16196 echo "${ECHO_T}$ac_res" >&6; }
16199 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16200 cat >>confdefs.h <<_ACEOF
16201 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16202 _ACEOF
16206 done
16213 for ac_header in $ac_header_list
16215 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16217 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16220 echo $ECHO_N "(cached) $ECHO_C" >&6
16222 ac_res=`eval echo '${'$as_ac_Header'}'`
16223 { echo "$as_me:$LINENO: result: $ac_res" >&5
16224 echo "${ECHO_T}$ac_res" >&6; }
16225 else
16226 # Is the header compilable?
16227 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16228 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16229 cat >conftest.$ac_ext <<_ACEOF
16230 /* confdefs.h. */
16231 _ACEOF
16232 cat confdefs.h >>conftest.$ac_ext
16233 cat >>conftest.$ac_ext <<_ACEOF
16234 /* end confdefs.h. */
16235 $ac_includes_default
16236 #include <$ac_header>
16237 _ACEOF
16238 rm -f conftest.$ac_objext
16239 if { (ac_try="$ac_compile"
16240 case "(($ac_try" in
16241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16242 *) ac_try_echo=$ac_try;;
16243 esac
16244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16245 (eval "$ac_compile") 2>conftest.er1
16246 ac_status=$?
16247 grep -v '^ *+' conftest.er1 >conftest.err
16248 rm -f conftest.er1
16249 cat conftest.err >&5
16250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251 (exit $ac_status); } && {
16252 test -z "$ac_c_werror_flag" ||
16253 test ! -s conftest.err
16254 } && test -s conftest.$ac_objext; then
16255 ac_header_compiler=yes
16256 else
16257 echo "$as_me: failed program was:" >&5
16258 sed 's/^/| /' conftest.$ac_ext >&5
16260 ac_header_compiler=no
16263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16264 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16265 echo "${ECHO_T}$ac_header_compiler" >&6; }
16267 # Is the header present?
16268 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16269 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16270 cat >conftest.$ac_ext <<_ACEOF
16271 /* confdefs.h. */
16272 _ACEOF
16273 cat confdefs.h >>conftest.$ac_ext
16274 cat >>conftest.$ac_ext <<_ACEOF
16275 /* end confdefs.h. */
16276 #include <$ac_header>
16277 _ACEOF
16278 if { (ac_try="$ac_cpp conftest.$ac_ext"
16279 case "(($ac_try" in
16280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16281 *) ac_try_echo=$ac_try;;
16282 esac
16283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16284 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16285 ac_status=$?
16286 grep -v '^ *+' conftest.er1 >conftest.err
16287 rm -f conftest.er1
16288 cat conftest.err >&5
16289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290 (exit $ac_status); } >/dev/null && {
16291 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16292 test ! -s conftest.err
16293 }; then
16294 ac_header_preproc=yes
16295 else
16296 echo "$as_me: failed program was:" >&5
16297 sed 's/^/| /' conftest.$ac_ext >&5
16299 ac_header_preproc=no
16302 rm -f conftest.err conftest.$ac_ext
16303 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16304 echo "${ECHO_T}$ac_header_preproc" >&6; }
16306 # So? What about this header?
16307 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16308 yes:no: )
16309 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16310 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16311 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16312 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16313 ac_header_preproc=yes
16315 no:yes:* )
16316 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16317 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16318 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16319 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16320 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16321 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16322 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16323 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16325 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16326 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16327 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16330 esac
16331 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16334 echo $ECHO_N "(cached) $ECHO_C" >&6
16335 else
16336 eval "$as_ac_Header=\$ac_header_preproc"
16338 ac_res=`eval echo '${'$as_ac_Header'}'`
16339 { echo "$as_me:$LINENO: result: $ac_res" >&5
16340 echo "${ECHO_T}$ac_res" >&6; }
16343 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16344 cat >>confdefs.h <<_ACEOF
16345 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16346 _ACEOF
16350 done
16360 for ac_func in $ac_func_list
16362 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16363 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16364 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16365 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16366 echo $ECHO_N "(cached) $ECHO_C" >&6
16367 else
16368 cat >conftest.$ac_ext <<_ACEOF
16369 /* confdefs.h. */
16370 _ACEOF
16371 cat confdefs.h >>conftest.$ac_ext
16372 cat >>conftest.$ac_ext <<_ACEOF
16373 /* end confdefs.h. */
16374 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16376 #define $ac_func innocuous_$ac_func
16378 /* System header to define __stub macros and hopefully few prototypes,
16379 which can conflict with char $ac_func (); below.
16380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16381 <limits.h> exists even on freestanding compilers. */
16383 #ifdef __STDC__
16384 # include <limits.h>
16385 #else
16386 # include <assert.h>
16387 #endif
16389 #undef $ac_func
16391 /* Override any GCC internal prototype to avoid an error.
16392 Use char because int might match the return type of a GCC
16393 builtin and then its argument prototype would still apply. */
16394 #ifdef __cplusplus
16395 extern "C"
16396 #endif
16397 char $ac_func ();
16398 /* The GNU C library defines this for functions which it implements
16399 to always fail with ENOSYS. Some functions are actually named
16400 something starting with __ and the normal name is an alias. */
16401 #if defined __stub_$ac_func || defined __stub___$ac_func
16402 choke me
16403 #endif
16406 main ()
16408 return $ac_func ();
16410 return 0;
16412 _ACEOF
16413 rm -f conftest.$ac_objext conftest$ac_exeext
16414 if { (ac_try="$ac_link"
16415 case "(($ac_try" in
16416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16417 *) ac_try_echo=$ac_try;;
16418 esac
16419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16420 (eval "$ac_link") 2>conftest.er1
16421 ac_status=$?
16422 grep -v '^ *+' conftest.er1 >conftest.err
16423 rm -f conftest.er1
16424 cat conftest.err >&5
16425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426 (exit $ac_status); } && {
16427 test -z "$ac_c_werror_flag" ||
16428 test ! -s conftest.err
16429 } && test -s conftest$ac_exeext &&
16430 $as_test_x conftest$ac_exeext; then
16431 eval "$as_ac_var=yes"
16432 else
16433 echo "$as_me: failed program was:" >&5
16434 sed 's/^/| /' conftest.$ac_ext >&5
16436 eval "$as_ac_var=no"
16439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16440 conftest$ac_exeext conftest.$ac_ext
16442 ac_res=`eval echo '${'$as_ac_var'}'`
16443 { echo "$as_me:$LINENO: result: $ac_res" >&5
16444 echo "${ECHO_T}$ac_res" >&6; }
16445 if test `eval echo '${'$as_ac_var'}'` = yes; then
16446 cat >>confdefs.h <<_ACEOF
16447 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16448 _ACEOF
16451 done
16469 { echo "$as_me:$LINENO: checking for working mktime" >&5
16470 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16471 if test "${ac_cv_func_working_mktime+set}" = set; then
16472 echo $ECHO_N "(cached) $ECHO_C" >&6
16473 else
16474 if test "$cross_compiling" = yes; then
16475 ac_cv_func_working_mktime=no
16476 else
16477 cat >conftest.$ac_ext <<_ACEOF
16478 /* confdefs.h. */
16479 _ACEOF
16480 cat confdefs.h >>conftest.$ac_ext
16481 cat >>conftest.$ac_ext <<_ACEOF
16482 /* end confdefs.h. */
16483 /* Test program from Paul Eggert and Tony Leneis. */
16484 #ifdef TIME_WITH_SYS_TIME
16485 # include <sys/time.h>
16486 # include <time.h>
16487 #else
16488 # ifdef HAVE_SYS_TIME_H
16489 # include <sys/time.h>
16490 # else
16491 # include <time.h>
16492 # endif
16493 #endif
16495 #include <stdlib.h>
16497 #ifdef HAVE_UNISTD_H
16498 # include <unistd.h>
16499 #endif
16501 #ifndef HAVE_ALARM
16502 # define alarm(X) /* empty */
16503 #endif
16505 /* Work around redefinition to rpl_putenv by other config tests. */
16506 #undef putenv
16508 static time_t time_t_max;
16509 static time_t time_t_min;
16511 /* Values we'll use to set the TZ environment variable. */
16512 static char *tz_strings[] = {
16513 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16514 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16516 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16518 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16519 Based on a problem report from Andreas Jaeger. */
16520 static int
16521 spring_forward_gap ()
16523 /* glibc (up to about 1998-10-07) failed this test. */
16524 struct tm tm;
16526 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16527 instead of "TZ=America/Vancouver" in order to detect the bug even
16528 on systems that don't support the Olson extension, or don't have the
16529 full zoneinfo tables installed. */
16530 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16532 tm.tm_year = 98;
16533 tm.tm_mon = 3;
16534 tm.tm_mday = 5;
16535 tm.tm_hour = 2;
16536 tm.tm_min = 0;
16537 tm.tm_sec = 0;
16538 tm.tm_isdst = -1;
16539 return mktime (&tm) != (time_t) -1;
16542 static int
16543 mktime_test1 (now)
16544 time_t now;
16546 struct tm *lt;
16547 return ! (lt = localtime (&now)) || mktime (lt) == now;
16550 static int
16551 mktime_test (now)
16552 time_t now;
16554 return (mktime_test1 (now)
16555 && mktime_test1 ((time_t) (time_t_max - now))
16556 && mktime_test1 ((time_t) (time_t_min + now)));
16559 static int
16560 irix_6_4_bug ()
16562 /* Based on code from Ariel Faigon. */
16563 struct tm tm;
16564 tm.tm_year = 96;
16565 tm.tm_mon = 3;
16566 tm.tm_mday = 0;
16567 tm.tm_hour = 0;
16568 tm.tm_min = 0;
16569 tm.tm_sec = 0;
16570 tm.tm_isdst = -1;
16571 mktime (&tm);
16572 return tm.tm_mon == 2 && tm.tm_mday == 31;
16575 static int
16576 bigtime_test (j)
16577 int j;
16579 struct tm tm;
16580 time_t now;
16581 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16582 now = mktime (&tm);
16583 if (now != (time_t) -1)
16585 struct tm *lt = localtime (&now);
16586 if (! (lt
16587 && lt->tm_year == tm.tm_year
16588 && lt->tm_mon == tm.tm_mon
16589 && lt->tm_mday == tm.tm_mday
16590 && lt->tm_hour == tm.tm_hour
16591 && lt->tm_min == tm.tm_min
16592 && lt->tm_sec == tm.tm_sec
16593 && lt->tm_yday == tm.tm_yday
16594 && lt->tm_wday == tm.tm_wday
16595 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16596 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16597 return 0;
16599 return 1;
16602 static int
16603 year_2050_test ()
16605 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16606 ignoring leap seconds. */
16607 unsigned long int answer = 2527315200UL;
16609 struct tm tm;
16610 time_t t;
16611 tm.tm_year = 2050 - 1900;
16612 tm.tm_mon = 2 - 1;
16613 tm.tm_mday = 1;
16614 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16615 tm.tm_isdst = -1;
16617 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16618 instead of "TZ=America/Vancouver" in order to detect the bug even
16619 on systems that don't support the Olson extension, or don't have the
16620 full zoneinfo tables installed. */
16621 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16623 t = mktime (&tm);
16625 /* Check that the result is either a failure, or close enough
16626 to the correct answer that we can assume the discrepancy is
16627 due to leap seconds. */
16628 return (t == (time_t) -1
16629 || (0 < t && answer - 120 <= t && t <= answer + 120));
16633 main ()
16635 time_t t, delta;
16636 int i, j;
16638 /* This test makes some buggy mktime implementations loop.
16639 Give up after 60 seconds; a mktime slower than that
16640 isn't worth using anyway. */
16641 alarm (60);
16643 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16644 continue;
16645 time_t_max--;
16646 if ((time_t) -1 < 0)
16647 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16648 continue;
16649 delta = time_t_max / 997; /* a suitable prime number */
16650 for (i = 0; i < N_STRINGS; i++)
16652 if (tz_strings[i])
16653 putenv (tz_strings[i]);
16655 for (t = 0; t <= time_t_max - delta; t += delta)
16656 if (! mktime_test (t))
16657 return 1;
16658 if (! (mktime_test ((time_t) 1)
16659 && mktime_test ((time_t) (60 * 60))
16660 && mktime_test ((time_t) (60 * 60 * 24))))
16661 return 1;
16663 for (j = 1; 0 < j; j *= 2)
16664 if (! bigtime_test (j))
16665 return 1;
16666 if (! bigtime_test (j - 1))
16667 return 1;
16669 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16671 _ACEOF
16672 rm -f conftest$ac_exeext
16673 if { (ac_try="$ac_link"
16674 case "(($ac_try" in
16675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16676 *) ac_try_echo=$ac_try;;
16677 esac
16678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16679 (eval "$ac_link") 2>&5
16680 ac_status=$?
16681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16683 { (case "(($ac_try" in
16684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16685 *) ac_try_echo=$ac_try;;
16686 esac
16687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16688 (eval "$ac_try") 2>&5
16689 ac_status=$?
16690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691 (exit $ac_status); }; }; then
16692 ac_cv_func_working_mktime=yes
16693 else
16694 echo "$as_me: program exited with status $ac_status" >&5
16695 echo "$as_me: failed program was:" >&5
16696 sed 's/^/| /' conftest.$ac_ext >&5
16698 ( exit $ac_status )
16699 ac_cv_func_working_mktime=no
16701 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16706 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16707 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16708 if test $ac_cv_func_working_mktime = no; then
16709 case " $LIBOBJS " in
16710 *" mktime.$ac_objext "* ) ;;
16711 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16713 esac
16717 if test "$ac_cv_func_working_mktime" = no; then
16719 cat >>confdefs.h <<\_ACEOF
16720 #define BROKEN_MKTIME 1
16721 _ACEOF
16725 ac_have_func=no # yes means we've found a way to get the load average.
16727 # Make sure getloadavg.c is where it belongs, at configure-time.
16728 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16729 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16730 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16731 { (exit 1); exit 1; }; }
16733 ac_save_LIBS=$LIBS
16735 # Check for getloadavg, but be sure not to touch the cache variable.
16736 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16737 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16738 if test "${ac_cv_func_getloadavg+set}" = set; then
16739 echo $ECHO_N "(cached) $ECHO_C" >&6
16740 else
16741 cat >conftest.$ac_ext <<_ACEOF
16742 /* confdefs.h. */
16743 _ACEOF
16744 cat confdefs.h >>conftest.$ac_ext
16745 cat >>conftest.$ac_ext <<_ACEOF
16746 /* end confdefs.h. */
16747 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16748 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16749 #define getloadavg innocuous_getloadavg
16751 /* System header to define __stub macros and hopefully few prototypes,
16752 which can conflict with char getloadavg (); below.
16753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16754 <limits.h> exists even on freestanding compilers. */
16756 #ifdef __STDC__
16757 # include <limits.h>
16758 #else
16759 # include <assert.h>
16760 #endif
16762 #undef getloadavg
16764 /* Override any GCC internal prototype to avoid an error.
16765 Use char because int might match the return type of a GCC
16766 builtin and then its argument prototype would still apply. */
16767 #ifdef __cplusplus
16768 extern "C"
16769 #endif
16770 char getloadavg ();
16771 /* The GNU C library defines this for functions which it implements
16772 to always fail with ENOSYS. Some functions are actually named
16773 something starting with __ and the normal name is an alias. */
16774 #if defined __stub_getloadavg || defined __stub___getloadavg
16775 choke me
16776 #endif
16779 main ()
16781 return getloadavg ();
16783 return 0;
16785 _ACEOF
16786 rm -f conftest.$ac_objext conftest$ac_exeext
16787 if { (ac_try="$ac_link"
16788 case "(($ac_try" in
16789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16790 *) ac_try_echo=$ac_try;;
16791 esac
16792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16793 (eval "$ac_link") 2>conftest.er1
16794 ac_status=$?
16795 grep -v '^ *+' conftest.er1 >conftest.err
16796 rm -f conftest.er1
16797 cat conftest.err >&5
16798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16799 (exit $ac_status); } && {
16800 test -z "$ac_c_werror_flag" ||
16801 test ! -s conftest.err
16802 } && test -s conftest$ac_exeext &&
16803 $as_test_x conftest$ac_exeext; then
16804 ac_cv_func_getloadavg=yes
16805 else
16806 echo "$as_me: failed program was:" >&5
16807 sed 's/^/| /' conftest.$ac_ext >&5
16809 ac_cv_func_getloadavg=no
16812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16813 conftest$ac_exeext conftest.$ac_ext
16815 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16816 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16817 if test $ac_cv_func_getloadavg = yes; then
16818 exit 0
16819 else
16820 exit 1
16822 ) && ac_have_func=yes
16824 # On HPUX9, an unprivileged user can get load averages through this function.
16826 for ac_func in pstat_getdynamic
16828 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16829 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16830 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16831 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16832 echo $ECHO_N "(cached) $ECHO_C" >&6
16833 else
16834 cat >conftest.$ac_ext <<_ACEOF
16835 /* confdefs.h. */
16836 _ACEOF
16837 cat confdefs.h >>conftest.$ac_ext
16838 cat >>conftest.$ac_ext <<_ACEOF
16839 /* end confdefs.h. */
16840 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16842 #define $ac_func innocuous_$ac_func
16844 /* System header to define __stub macros and hopefully few prototypes,
16845 which can conflict with char $ac_func (); below.
16846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16847 <limits.h> exists even on freestanding compilers. */
16849 #ifdef __STDC__
16850 # include <limits.h>
16851 #else
16852 # include <assert.h>
16853 #endif
16855 #undef $ac_func
16857 /* Override any GCC internal prototype to avoid an error.
16858 Use char because int might match the return type of a GCC
16859 builtin and then its argument prototype would still apply. */
16860 #ifdef __cplusplus
16861 extern "C"
16862 #endif
16863 char $ac_func ();
16864 /* The GNU C library defines this for functions which it implements
16865 to always fail with ENOSYS. Some functions are actually named
16866 something starting with __ and the normal name is an alias. */
16867 #if defined __stub_$ac_func || defined __stub___$ac_func
16868 choke me
16869 #endif
16872 main ()
16874 return $ac_func ();
16876 return 0;
16878 _ACEOF
16879 rm -f conftest.$ac_objext conftest$ac_exeext
16880 if { (ac_try="$ac_link"
16881 case "(($ac_try" in
16882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16883 *) ac_try_echo=$ac_try;;
16884 esac
16885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16886 (eval "$ac_link") 2>conftest.er1
16887 ac_status=$?
16888 grep -v '^ *+' conftest.er1 >conftest.err
16889 rm -f conftest.er1
16890 cat conftest.err >&5
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); } && {
16893 test -z "$ac_c_werror_flag" ||
16894 test ! -s conftest.err
16895 } && test -s conftest$ac_exeext &&
16896 $as_test_x conftest$ac_exeext; then
16897 eval "$as_ac_var=yes"
16898 else
16899 echo "$as_me: failed program was:" >&5
16900 sed 's/^/| /' conftest.$ac_ext >&5
16902 eval "$as_ac_var=no"
16905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16906 conftest$ac_exeext conftest.$ac_ext
16908 ac_res=`eval echo '${'$as_ac_var'}'`
16909 { echo "$as_me:$LINENO: result: $ac_res" >&5
16910 echo "${ECHO_T}$ac_res" >&6; }
16911 if test `eval echo '${'$as_ac_var'}'` = yes; then
16912 cat >>confdefs.h <<_ACEOF
16913 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16914 _ACEOF
16917 done
16920 # Solaris has libkstat which does not require root.
16922 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16923 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
16924 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16925 echo $ECHO_N "(cached) $ECHO_C" >&6
16926 else
16927 ac_check_lib_save_LIBS=$LIBS
16928 LIBS="-lkstat $LIBS"
16929 cat >conftest.$ac_ext <<_ACEOF
16930 /* confdefs.h. */
16931 _ACEOF
16932 cat confdefs.h >>conftest.$ac_ext
16933 cat >>conftest.$ac_ext <<_ACEOF
16934 /* end confdefs.h. */
16936 /* Override any GCC internal prototype to avoid an error.
16937 Use char because int might match the return type of a GCC
16938 builtin and then its argument prototype would still apply. */
16939 #ifdef __cplusplus
16940 extern "C"
16941 #endif
16942 char kstat_open ();
16944 main ()
16946 return kstat_open ();
16948 return 0;
16950 _ACEOF
16951 rm -f conftest.$ac_objext conftest$ac_exeext
16952 if { (ac_try="$ac_link"
16953 case "(($ac_try" in
16954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16955 *) ac_try_echo=$ac_try;;
16956 esac
16957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16958 (eval "$ac_link") 2>conftest.er1
16959 ac_status=$?
16960 grep -v '^ *+' conftest.er1 >conftest.err
16961 rm -f conftest.er1
16962 cat conftest.err >&5
16963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964 (exit $ac_status); } && {
16965 test -z "$ac_c_werror_flag" ||
16966 test ! -s conftest.err
16967 } && test -s conftest$ac_exeext &&
16968 $as_test_x conftest$ac_exeext; then
16969 ac_cv_lib_kstat_kstat_open=yes
16970 else
16971 echo "$as_me: failed program was:" >&5
16972 sed 's/^/| /' conftest.$ac_ext >&5
16974 ac_cv_lib_kstat_kstat_open=no
16977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16978 conftest$ac_exeext conftest.$ac_ext
16979 LIBS=$ac_check_lib_save_LIBS
16981 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
16982 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16983 if test $ac_cv_lib_kstat_kstat_open = yes; then
16984 cat >>confdefs.h <<_ACEOF
16985 #define HAVE_LIBKSTAT 1
16986 _ACEOF
16988 LIBS="-lkstat $LIBS"
16992 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16994 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16995 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16996 # to get the right answer into the cache.
16997 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16998 if test $ac_have_func = no; then
16999 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17000 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
17001 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17002 echo $ECHO_N "(cached) $ECHO_C" >&6
17003 else
17004 ac_check_lib_save_LIBS=$LIBS
17005 LIBS="-lelf $LIBS"
17006 cat >conftest.$ac_ext <<_ACEOF
17007 /* confdefs.h. */
17008 _ACEOF
17009 cat confdefs.h >>conftest.$ac_ext
17010 cat >>conftest.$ac_ext <<_ACEOF
17011 /* end confdefs.h. */
17013 /* Override any GCC internal prototype to avoid an error.
17014 Use char because int might match the return type of a GCC
17015 builtin and then its argument prototype would still apply. */
17016 #ifdef __cplusplus
17017 extern "C"
17018 #endif
17019 char elf_begin ();
17021 main ()
17023 return elf_begin ();
17025 return 0;
17027 _ACEOF
17028 rm -f conftest.$ac_objext conftest$ac_exeext
17029 if { (ac_try="$ac_link"
17030 case "(($ac_try" in
17031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17032 *) ac_try_echo=$ac_try;;
17033 esac
17034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17035 (eval "$ac_link") 2>conftest.er1
17036 ac_status=$?
17037 grep -v '^ *+' conftest.er1 >conftest.err
17038 rm -f conftest.er1
17039 cat conftest.err >&5
17040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041 (exit $ac_status); } && {
17042 test -z "$ac_c_werror_flag" ||
17043 test ! -s conftest.err
17044 } && test -s conftest$ac_exeext &&
17045 $as_test_x conftest$ac_exeext; then
17046 ac_cv_lib_elf_elf_begin=yes
17047 else
17048 echo "$as_me: failed program was:" >&5
17049 sed 's/^/| /' conftest.$ac_ext >&5
17051 ac_cv_lib_elf_elf_begin=no
17054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17055 conftest$ac_exeext conftest.$ac_ext
17056 LIBS=$ac_check_lib_save_LIBS
17058 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
17059 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17060 if test $ac_cv_lib_elf_elf_begin = yes; then
17061 LIBS="-lelf $LIBS"
17065 if test $ac_have_func = no; then
17066 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17067 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
17068 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17069 echo $ECHO_N "(cached) $ECHO_C" >&6
17070 else
17071 ac_check_lib_save_LIBS=$LIBS
17072 LIBS="-lkvm $LIBS"
17073 cat >conftest.$ac_ext <<_ACEOF
17074 /* confdefs.h. */
17075 _ACEOF
17076 cat confdefs.h >>conftest.$ac_ext
17077 cat >>conftest.$ac_ext <<_ACEOF
17078 /* end confdefs.h. */
17080 /* Override any GCC internal prototype to avoid an error.
17081 Use char because int might match the return type of a GCC
17082 builtin and then its argument prototype would still apply. */
17083 #ifdef __cplusplus
17084 extern "C"
17085 #endif
17086 char kvm_open ();
17088 main ()
17090 return kvm_open ();
17092 return 0;
17094 _ACEOF
17095 rm -f conftest.$ac_objext conftest$ac_exeext
17096 if { (ac_try="$ac_link"
17097 case "(($ac_try" in
17098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17099 *) ac_try_echo=$ac_try;;
17100 esac
17101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17102 (eval "$ac_link") 2>conftest.er1
17103 ac_status=$?
17104 grep -v '^ *+' conftest.er1 >conftest.err
17105 rm -f conftest.er1
17106 cat conftest.err >&5
17107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17108 (exit $ac_status); } && {
17109 test -z "$ac_c_werror_flag" ||
17110 test ! -s conftest.err
17111 } && test -s conftest$ac_exeext &&
17112 $as_test_x conftest$ac_exeext; then
17113 ac_cv_lib_kvm_kvm_open=yes
17114 else
17115 echo "$as_me: failed program was:" >&5
17116 sed 's/^/| /' conftest.$ac_ext >&5
17118 ac_cv_lib_kvm_kvm_open=no
17121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17122 conftest$ac_exeext conftest.$ac_ext
17123 LIBS=$ac_check_lib_save_LIBS
17125 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
17126 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17127 if test $ac_cv_lib_kvm_kvm_open = yes; then
17128 LIBS="-lkvm $LIBS"
17131 # Check for the 4.4BSD definition of getloadavg.
17132 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
17133 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
17134 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17135 echo $ECHO_N "(cached) $ECHO_C" >&6
17136 else
17137 ac_check_lib_save_LIBS=$LIBS
17138 LIBS="-lutil $LIBS"
17139 cat >conftest.$ac_ext <<_ACEOF
17140 /* confdefs.h. */
17141 _ACEOF
17142 cat confdefs.h >>conftest.$ac_ext
17143 cat >>conftest.$ac_ext <<_ACEOF
17144 /* end confdefs.h. */
17146 /* Override any GCC internal prototype to avoid an error.
17147 Use char because int might match the return type of a GCC
17148 builtin and then its argument prototype would still apply. */
17149 #ifdef __cplusplus
17150 extern "C"
17151 #endif
17152 char getloadavg ();
17154 main ()
17156 return getloadavg ();
17158 return 0;
17160 _ACEOF
17161 rm -f conftest.$ac_objext conftest$ac_exeext
17162 if { (ac_try="$ac_link"
17163 case "(($ac_try" in
17164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17165 *) ac_try_echo=$ac_try;;
17166 esac
17167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17168 (eval "$ac_link") 2>conftest.er1
17169 ac_status=$?
17170 grep -v '^ *+' conftest.er1 >conftest.err
17171 rm -f conftest.er1
17172 cat conftest.err >&5
17173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174 (exit $ac_status); } && {
17175 test -z "$ac_c_werror_flag" ||
17176 test ! -s conftest.err
17177 } && test -s conftest$ac_exeext &&
17178 $as_test_x conftest$ac_exeext; then
17179 ac_cv_lib_util_getloadavg=yes
17180 else
17181 echo "$as_me: failed program was:" >&5
17182 sed 's/^/| /' conftest.$ac_ext >&5
17184 ac_cv_lib_util_getloadavg=no
17187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17188 conftest$ac_exeext conftest.$ac_ext
17189 LIBS=$ac_check_lib_save_LIBS
17191 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
17192 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17193 if test $ac_cv_lib_util_getloadavg = yes; then
17194 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17199 if test $ac_have_func = no; then
17200 # There is a commonly available library for RS/6000 AIX.
17201 # Since it is not a standard part of AIX, it might be installed locally.
17202 ac_getloadavg_LIBS=$LIBS
17203 LIBS="-L/usr/local/lib $LIBS"
17204 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
17205 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
17206 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17207 echo $ECHO_N "(cached) $ECHO_C" >&6
17208 else
17209 ac_check_lib_save_LIBS=$LIBS
17210 LIBS="-lgetloadavg $LIBS"
17211 cat >conftest.$ac_ext <<_ACEOF
17212 /* confdefs.h. */
17213 _ACEOF
17214 cat confdefs.h >>conftest.$ac_ext
17215 cat >>conftest.$ac_ext <<_ACEOF
17216 /* end confdefs.h. */
17218 /* Override any GCC internal prototype to avoid an error.
17219 Use char because int might match the return type of a GCC
17220 builtin and then its argument prototype would still apply. */
17221 #ifdef __cplusplus
17222 extern "C"
17223 #endif
17224 char getloadavg ();
17226 main ()
17228 return getloadavg ();
17230 return 0;
17232 _ACEOF
17233 rm -f conftest.$ac_objext conftest$ac_exeext
17234 if { (ac_try="$ac_link"
17235 case "(($ac_try" in
17236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17237 *) ac_try_echo=$ac_try;;
17238 esac
17239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17240 (eval "$ac_link") 2>conftest.er1
17241 ac_status=$?
17242 grep -v '^ *+' conftest.er1 >conftest.err
17243 rm -f conftest.er1
17244 cat conftest.err >&5
17245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246 (exit $ac_status); } && {
17247 test -z "$ac_c_werror_flag" ||
17248 test ! -s conftest.err
17249 } && test -s conftest$ac_exeext &&
17250 $as_test_x conftest$ac_exeext; then
17251 ac_cv_lib_getloadavg_getloadavg=yes
17252 else
17253 echo "$as_me: failed program was:" >&5
17254 sed 's/^/| /' conftest.$ac_ext >&5
17256 ac_cv_lib_getloadavg_getloadavg=no
17259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17260 conftest$ac_exeext conftest.$ac_ext
17261 LIBS=$ac_check_lib_save_LIBS
17263 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
17264 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17265 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17266 LIBS="-lgetloadavg $LIBS"
17267 else
17268 LIBS=$ac_getloadavg_LIBS
17273 # Make sure it is really in the library, if we think we found it,
17274 # otherwise set up the replacement function.
17276 for ac_func in getloadavg
17278 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17279 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17280 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17281 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17282 echo $ECHO_N "(cached) $ECHO_C" >&6
17283 else
17284 cat >conftest.$ac_ext <<_ACEOF
17285 /* confdefs.h. */
17286 _ACEOF
17287 cat confdefs.h >>conftest.$ac_ext
17288 cat >>conftest.$ac_ext <<_ACEOF
17289 /* end confdefs.h. */
17290 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17291 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17292 #define $ac_func innocuous_$ac_func
17294 /* System header to define __stub macros and hopefully few prototypes,
17295 which can conflict with char $ac_func (); below.
17296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17297 <limits.h> exists even on freestanding compilers. */
17299 #ifdef __STDC__
17300 # include <limits.h>
17301 #else
17302 # include <assert.h>
17303 #endif
17305 #undef $ac_func
17307 /* Override any GCC internal prototype to avoid an error.
17308 Use char because int might match the return type of a GCC
17309 builtin and then its argument prototype would still apply. */
17310 #ifdef __cplusplus
17311 extern "C"
17312 #endif
17313 char $ac_func ();
17314 /* The GNU C library defines this for functions which it implements
17315 to always fail with ENOSYS. Some functions are actually named
17316 something starting with __ and the normal name is an alias. */
17317 #if defined __stub_$ac_func || defined __stub___$ac_func
17318 choke me
17319 #endif
17322 main ()
17324 return $ac_func ();
17326 return 0;
17328 _ACEOF
17329 rm -f conftest.$ac_objext conftest$ac_exeext
17330 if { (ac_try="$ac_link"
17331 case "(($ac_try" in
17332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17333 *) ac_try_echo=$ac_try;;
17334 esac
17335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17336 (eval "$ac_link") 2>conftest.er1
17337 ac_status=$?
17338 grep -v '^ *+' conftest.er1 >conftest.err
17339 rm -f conftest.er1
17340 cat conftest.err >&5
17341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342 (exit $ac_status); } && {
17343 test -z "$ac_c_werror_flag" ||
17344 test ! -s conftest.err
17345 } && test -s conftest$ac_exeext &&
17346 $as_test_x conftest$ac_exeext; then
17347 eval "$as_ac_var=yes"
17348 else
17349 echo "$as_me: failed program was:" >&5
17350 sed 's/^/| /' conftest.$ac_ext >&5
17352 eval "$as_ac_var=no"
17355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17356 conftest$ac_exeext conftest.$ac_ext
17358 ac_res=`eval echo '${'$as_ac_var'}'`
17359 { echo "$as_me:$LINENO: result: $ac_res" >&5
17360 echo "${ECHO_T}$ac_res" >&6; }
17361 if test `eval echo '${'$as_ac_var'}'` = yes; then
17362 cat >>confdefs.h <<_ACEOF
17363 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17364 _ACEOF
17366 else
17367 case " $LIBOBJS " in
17368 *" getloadavg.$ac_objext "* ) ;;
17369 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17371 esac
17374 cat >>confdefs.h <<\_ACEOF
17375 #define C_GETLOADAVG 1
17376 _ACEOF
17378 # Figure out what our getloadavg.c needs.
17379 ac_have_func=no
17380 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17381 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17382 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17383 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17384 echo $ECHO_N "(cached) $ECHO_C" >&6
17386 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17387 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17388 else
17389 # Is the header compilable?
17390 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17391 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17392 cat >conftest.$ac_ext <<_ACEOF
17393 /* confdefs.h. */
17394 _ACEOF
17395 cat confdefs.h >>conftest.$ac_ext
17396 cat >>conftest.$ac_ext <<_ACEOF
17397 /* end confdefs.h. */
17398 $ac_includes_default
17399 #include <sys/dg_sys_info.h>
17400 _ACEOF
17401 rm -f conftest.$ac_objext
17402 if { (ac_try="$ac_compile"
17403 case "(($ac_try" in
17404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17405 *) ac_try_echo=$ac_try;;
17406 esac
17407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17408 (eval "$ac_compile") 2>conftest.er1
17409 ac_status=$?
17410 grep -v '^ *+' conftest.er1 >conftest.err
17411 rm -f conftest.er1
17412 cat conftest.err >&5
17413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414 (exit $ac_status); } && {
17415 test -z "$ac_c_werror_flag" ||
17416 test ! -s conftest.err
17417 } && test -s conftest.$ac_objext; then
17418 ac_header_compiler=yes
17419 else
17420 echo "$as_me: failed program was:" >&5
17421 sed 's/^/| /' conftest.$ac_ext >&5
17423 ac_header_compiler=no
17426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17427 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17428 echo "${ECHO_T}$ac_header_compiler" >&6; }
17430 # Is the header present?
17431 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17432 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17433 cat >conftest.$ac_ext <<_ACEOF
17434 /* confdefs.h. */
17435 _ACEOF
17436 cat confdefs.h >>conftest.$ac_ext
17437 cat >>conftest.$ac_ext <<_ACEOF
17438 /* end confdefs.h. */
17439 #include <sys/dg_sys_info.h>
17440 _ACEOF
17441 if { (ac_try="$ac_cpp conftest.$ac_ext"
17442 case "(($ac_try" in
17443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17444 *) ac_try_echo=$ac_try;;
17445 esac
17446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17447 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17448 ac_status=$?
17449 grep -v '^ *+' conftest.er1 >conftest.err
17450 rm -f conftest.er1
17451 cat conftest.err >&5
17452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17453 (exit $ac_status); } >/dev/null && {
17454 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17455 test ! -s conftest.err
17456 }; then
17457 ac_header_preproc=yes
17458 else
17459 echo "$as_me: failed program was:" >&5
17460 sed 's/^/| /' conftest.$ac_ext >&5
17462 ac_header_preproc=no
17465 rm -f conftest.err conftest.$ac_ext
17466 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17467 echo "${ECHO_T}$ac_header_preproc" >&6; }
17469 # So? What about this header?
17470 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17471 yes:no: )
17472 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17473 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17474 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17475 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17476 ac_header_preproc=yes
17478 no:yes:* )
17479 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17480 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17481 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17482 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17483 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17484 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17485 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17486 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17487 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17488 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17489 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17490 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17493 esac
17494 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17495 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17496 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17497 echo $ECHO_N "(cached) $ECHO_C" >&6
17498 else
17499 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17501 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17502 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17505 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17506 ac_have_func=yes
17508 cat >>confdefs.h <<\_ACEOF
17509 #define DGUX 1
17510 _ACEOF
17513 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17514 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17515 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17516 echo $ECHO_N "(cached) $ECHO_C" >&6
17517 else
17518 ac_check_lib_save_LIBS=$LIBS
17519 LIBS="-ldgc $LIBS"
17520 cat >conftest.$ac_ext <<_ACEOF
17521 /* confdefs.h. */
17522 _ACEOF
17523 cat confdefs.h >>conftest.$ac_ext
17524 cat >>conftest.$ac_ext <<_ACEOF
17525 /* end confdefs.h. */
17527 /* Override any GCC internal prototype to avoid an error.
17528 Use char because int might match the return type of a GCC
17529 builtin and then its argument prototype would still apply. */
17530 #ifdef __cplusplus
17531 extern "C"
17532 #endif
17533 char dg_sys_info ();
17535 main ()
17537 return dg_sys_info ();
17539 return 0;
17541 _ACEOF
17542 rm -f conftest.$ac_objext conftest$ac_exeext
17543 if { (ac_try="$ac_link"
17544 case "(($ac_try" in
17545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17546 *) ac_try_echo=$ac_try;;
17547 esac
17548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17549 (eval "$ac_link") 2>conftest.er1
17550 ac_status=$?
17551 grep -v '^ *+' conftest.er1 >conftest.err
17552 rm -f conftest.er1
17553 cat conftest.err >&5
17554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555 (exit $ac_status); } && {
17556 test -z "$ac_c_werror_flag" ||
17557 test ! -s conftest.err
17558 } && test -s conftest$ac_exeext &&
17559 $as_test_x conftest$ac_exeext; then
17560 ac_cv_lib_dgc_dg_sys_info=yes
17561 else
17562 echo "$as_me: failed program was:" >&5
17563 sed 's/^/| /' conftest.$ac_ext >&5
17565 ac_cv_lib_dgc_dg_sys_info=no
17568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17569 conftest$ac_exeext conftest.$ac_ext
17570 LIBS=$ac_check_lib_save_LIBS
17572 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17573 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17574 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17575 cat >>confdefs.h <<_ACEOF
17576 #define HAVE_LIBDGC 1
17577 _ACEOF
17579 LIBS="-ldgc $LIBS"
17587 if test "${ac_cv_header_locale_h+set}" = set; then
17588 { echo "$as_me:$LINENO: checking for locale.h" >&5
17589 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17590 if test "${ac_cv_header_locale_h+set}" = set; then
17591 echo $ECHO_N "(cached) $ECHO_C" >&6
17593 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17594 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17595 else
17596 # Is the header compilable?
17597 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17598 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17599 cat >conftest.$ac_ext <<_ACEOF
17600 /* confdefs.h. */
17601 _ACEOF
17602 cat confdefs.h >>conftest.$ac_ext
17603 cat >>conftest.$ac_ext <<_ACEOF
17604 /* end confdefs.h. */
17605 $ac_includes_default
17606 #include <locale.h>
17607 _ACEOF
17608 rm -f conftest.$ac_objext
17609 if { (ac_try="$ac_compile"
17610 case "(($ac_try" in
17611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17612 *) ac_try_echo=$ac_try;;
17613 esac
17614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17615 (eval "$ac_compile") 2>conftest.er1
17616 ac_status=$?
17617 grep -v '^ *+' conftest.er1 >conftest.err
17618 rm -f conftest.er1
17619 cat conftest.err >&5
17620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621 (exit $ac_status); } && {
17622 test -z "$ac_c_werror_flag" ||
17623 test ! -s conftest.err
17624 } && test -s conftest.$ac_objext; then
17625 ac_header_compiler=yes
17626 else
17627 echo "$as_me: failed program was:" >&5
17628 sed 's/^/| /' conftest.$ac_ext >&5
17630 ac_header_compiler=no
17633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17634 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17635 echo "${ECHO_T}$ac_header_compiler" >&6; }
17637 # Is the header present?
17638 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17639 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17640 cat >conftest.$ac_ext <<_ACEOF
17641 /* confdefs.h. */
17642 _ACEOF
17643 cat confdefs.h >>conftest.$ac_ext
17644 cat >>conftest.$ac_ext <<_ACEOF
17645 /* end confdefs.h. */
17646 #include <locale.h>
17647 _ACEOF
17648 if { (ac_try="$ac_cpp conftest.$ac_ext"
17649 case "(($ac_try" in
17650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17651 *) ac_try_echo=$ac_try;;
17652 esac
17653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17654 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17655 ac_status=$?
17656 grep -v '^ *+' conftest.er1 >conftest.err
17657 rm -f conftest.er1
17658 cat conftest.err >&5
17659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660 (exit $ac_status); } >/dev/null && {
17661 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17662 test ! -s conftest.err
17663 }; then
17664 ac_header_preproc=yes
17665 else
17666 echo "$as_me: failed program was:" >&5
17667 sed 's/^/| /' conftest.$ac_ext >&5
17669 ac_header_preproc=no
17672 rm -f conftest.err conftest.$ac_ext
17673 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17674 echo "${ECHO_T}$ac_header_preproc" >&6; }
17676 # So? What about this header?
17677 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17678 yes:no: )
17679 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17680 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17681 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17682 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17683 ac_header_preproc=yes
17685 no:yes:* )
17686 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17687 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17688 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17689 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17690 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17691 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17692 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17693 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17694 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17695 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17696 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17697 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17700 esac
17701 { echo "$as_me:$LINENO: checking for locale.h" >&5
17702 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17703 if test "${ac_cv_header_locale_h+set}" = set; then
17704 echo $ECHO_N "(cached) $ECHO_C" >&6
17705 else
17706 ac_cv_header_locale_h=$ac_header_preproc
17708 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17709 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17715 for ac_func in setlocale
17717 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17718 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17719 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17720 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17721 echo $ECHO_N "(cached) $ECHO_C" >&6
17722 else
17723 cat >conftest.$ac_ext <<_ACEOF
17724 /* confdefs.h. */
17725 _ACEOF
17726 cat confdefs.h >>conftest.$ac_ext
17727 cat >>conftest.$ac_ext <<_ACEOF
17728 /* end confdefs.h. */
17729 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17730 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17731 #define $ac_func innocuous_$ac_func
17733 /* System header to define __stub macros and hopefully few prototypes,
17734 which can conflict with char $ac_func (); below.
17735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17736 <limits.h> exists even on freestanding compilers. */
17738 #ifdef __STDC__
17739 # include <limits.h>
17740 #else
17741 # include <assert.h>
17742 #endif
17744 #undef $ac_func
17746 /* Override any GCC internal prototype to avoid an error.
17747 Use char because int might match the return type of a GCC
17748 builtin and then its argument prototype would still apply. */
17749 #ifdef __cplusplus
17750 extern "C"
17751 #endif
17752 char $ac_func ();
17753 /* The GNU C library defines this for functions which it implements
17754 to always fail with ENOSYS. Some functions are actually named
17755 something starting with __ and the normal name is an alias. */
17756 #if defined __stub_$ac_func || defined __stub___$ac_func
17757 choke me
17758 #endif
17761 main ()
17763 return $ac_func ();
17765 return 0;
17767 _ACEOF
17768 rm -f conftest.$ac_objext conftest$ac_exeext
17769 if { (ac_try="$ac_link"
17770 case "(($ac_try" in
17771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17772 *) ac_try_echo=$ac_try;;
17773 esac
17774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17775 (eval "$ac_link") 2>conftest.er1
17776 ac_status=$?
17777 grep -v '^ *+' conftest.er1 >conftest.err
17778 rm -f conftest.er1
17779 cat conftest.err >&5
17780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781 (exit $ac_status); } && {
17782 test -z "$ac_c_werror_flag" ||
17783 test ! -s conftest.err
17784 } && test -s conftest$ac_exeext &&
17785 $as_test_x conftest$ac_exeext; then
17786 eval "$as_ac_var=yes"
17787 else
17788 echo "$as_me: failed program was:" >&5
17789 sed 's/^/| /' conftest.$ac_ext >&5
17791 eval "$as_ac_var=no"
17794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17795 conftest$ac_exeext conftest.$ac_ext
17797 ac_res=`eval echo '${'$as_ac_var'}'`
17798 { echo "$as_me:$LINENO: result: $ac_res" >&5
17799 echo "${ECHO_T}$ac_res" >&6; }
17800 if test `eval echo '${'$as_ac_var'}'` = yes; then
17801 cat >>confdefs.h <<_ACEOF
17802 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17803 _ACEOF
17806 done
17809 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17810 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17811 # Irix 4.0.5F has the header but not the library.
17812 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17813 ac_have_func=yes
17815 cat >>confdefs.h <<\_ACEOF
17816 #define SVR4 1
17817 _ACEOF
17821 if test $ac_have_func = no; then
17822 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17823 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17824 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17825 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17826 echo $ECHO_N "(cached) $ECHO_C" >&6
17828 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17829 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17830 else
17831 # Is the header compilable?
17832 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17833 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
17834 cat >conftest.$ac_ext <<_ACEOF
17835 /* confdefs.h. */
17836 _ACEOF
17837 cat confdefs.h >>conftest.$ac_ext
17838 cat >>conftest.$ac_ext <<_ACEOF
17839 /* end confdefs.h. */
17840 $ac_includes_default
17841 #include <inq_stats/cpustats.h>
17842 _ACEOF
17843 rm -f conftest.$ac_objext
17844 if { (ac_try="$ac_compile"
17845 case "(($ac_try" in
17846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17847 *) ac_try_echo=$ac_try;;
17848 esac
17849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17850 (eval "$ac_compile") 2>conftest.er1
17851 ac_status=$?
17852 grep -v '^ *+' conftest.er1 >conftest.err
17853 rm -f conftest.er1
17854 cat conftest.err >&5
17855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856 (exit $ac_status); } && {
17857 test -z "$ac_c_werror_flag" ||
17858 test ! -s conftest.err
17859 } && test -s conftest.$ac_objext; then
17860 ac_header_compiler=yes
17861 else
17862 echo "$as_me: failed program was:" >&5
17863 sed 's/^/| /' conftest.$ac_ext >&5
17865 ac_header_compiler=no
17868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17869 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17870 echo "${ECHO_T}$ac_header_compiler" >&6; }
17872 # Is the header present?
17873 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17874 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
17875 cat >conftest.$ac_ext <<_ACEOF
17876 /* confdefs.h. */
17877 _ACEOF
17878 cat confdefs.h >>conftest.$ac_ext
17879 cat >>conftest.$ac_ext <<_ACEOF
17880 /* end confdefs.h. */
17881 #include <inq_stats/cpustats.h>
17882 _ACEOF
17883 if { (ac_try="$ac_cpp conftest.$ac_ext"
17884 case "(($ac_try" in
17885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17886 *) ac_try_echo=$ac_try;;
17887 esac
17888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17889 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17890 ac_status=$?
17891 grep -v '^ *+' conftest.er1 >conftest.err
17892 rm -f conftest.er1
17893 cat conftest.err >&5
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); } >/dev/null && {
17896 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17897 test ! -s conftest.err
17898 }; then
17899 ac_header_preproc=yes
17900 else
17901 echo "$as_me: failed program was:" >&5
17902 sed 's/^/| /' conftest.$ac_ext >&5
17904 ac_header_preproc=no
17907 rm -f conftest.err conftest.$ac_ext
17908 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17909 echo "${ECHO_T}$ac_header_preproc" >&6; }
17911 # So? What about this header?
17912 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17913 yes:no: )
17914 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17915 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17916 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17917 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17918 ac_header_preproc=yes
17920 no:yes:* )
17921 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17922 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17923 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17924 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17925 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17926 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17927 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17928 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17929 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17930 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17931 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17932 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17935 esac
17936 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17937 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17938 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17939 echo $ECHO_N "(cached) $ECHO_C" >&6
17940 else
17941 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17943 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17944 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17947 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17948 ac_have_func=yes
17950 cat >>confdefs.h <<\_ACEOF
17951 #define UMAX 1
17952 _ACEOF
17955 cat >>confdefs.h <<\_ACEOF
17956 #define UMAX4_3 1
17957 _ACEOF
17964 if test $ac_have_func = no; then
17965 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17966 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17967 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17968 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17969 echo $ECHO_N "(cached) $ECHO_C" >&6
17971 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17972 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17973 else
17974 # Is the header compilable?
17975 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
17976 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
17977 cat >conftest.$ac_ext <<_ACEOF
17978 /* confdefs.h. */
17979 _ACEOF
17980 cat confdefs.h >>conftest.$ac_ext
17981 cat >>conftest.$ac_ext <<_ACEOF
17982 /* end confdefs.h. */
17983 $ac_includes_default
17984 #include <sys/cpustats.h>
17985 _ACEOF
17986 rm -f conftest.$ac_objext
17987 if { (ac_try="$ac_compile"
17988 case "(($ac_try" in
17989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17990 *) ac_try_echo=$ac_try;;
17991 esac
17992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17993 (eval "$ac_compile") 2>conftest.er1
17994 ac_status=$?
17995 grep -v '^ *+' conftest.er1 >conftest.err
17996 rm -f conftest.er1
17997 cat conftest.err >&5
17998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999 (exit $ac_status); } && {
18000 test -z "$ac_c_werror_flag" ||
18001 test ! -s conftest.err
18002 } && test -s conftest.$ac_objext; then
18003 ac_header_compiler=yes
18004 else
18005 echo "$as_me: failed program was:" >&5
18006 sed 's/^/| /' conftest.$ac_ext >&5
18008 ac_header_compiler=no
18011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18012 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18013 echo "${ECHO_T}$ac_header_compiler" >&6; }
18015 # Is the header present?
18016 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
18017 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
18018 cat >conftest.$ac_ext <<_ACEOF
18019 /* confdefs.h. */
18020 _ACEOF
18021 cat confdefs.h >>conftest.$ac_ext
18022 cat >>conftest.$ac_ext <<_ACEOF
18023 /* end confdefs.h. */
18024 #include <sys/cpustats.h>
18025 _ACEOF
18026 if { (ac_try="$ac_cpp conftest.$ac_ext"
18027 case "(($ac_try" in
18028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18029 *) ac_try_echo=$ac_try;;
18030 esac
18031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18032 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18033 ac_status=$?
18034 grep -v '^ *+' conftest.er1 >conftest.err
18035 rm -f conftest.er1
18036 cat conftest.err >&5
18037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18038 (exit $ac_status); } >/dev/null && {
18039 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18040 test ! -s conftest.err
18041 }; then
18042 ac_header_preproc=yes
18043 else
18044 echo "$as_me: failed program was:" >&5
18045 sed 's/^/| /' conftest.$ac_ext >&5
18047 ac_header_preproc=no
18050 rm -f conftest.err conftest.$ac_ext
18051 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18052 echo "${ECHO_T}$ac_header_preproc" >&6; }
18054 # So? What about this header?
18055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18056 yes:no: )
18057 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18058 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18059 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
18060 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
18061 ac_header_preproc=yes
18063 no:yes:* )
18064 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
18065 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
18066 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
18067 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
18068 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
18069 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
18070 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18071 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18072 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
18073 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
18074 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
18075 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
18078 esac
18079 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18080 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18081 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18082 echo $ECHO_N "(cached) $ECHO_C" >&6
18083 else
18084 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18086 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18087 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18090 if test $ac_cv_header_sys_cpustats_h = yes; then
18091 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18092 #define UMAX 1
18093 _ACEOF
18100 if test $ac_have_func = no; then
18102 for ac_header in mach/mach.h
18104 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18106 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18109 echo $ECHO_N "(cached) $ECHO_C" >&6
18111 ac_res=`eval echo '${'$as_ac_Header'}'`
18112 { echo "$as_me:$LINENO: result: $ac_res" >&5
18113 echo "${ECHO_T}$ac_res" >&6; }
18114 else
18115 # Is the header compilable?
18116 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18117 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18118 cat >conftest.$ac_ext <<_ACEOF
18119 /* confdefs.h. */
18120 _ACEOF
18121 cat confdefs.h >>conftest.$ac_ext
18122 cat >>conftest.$ac_ext <<_ACEOF
18123 /* end confdefs.h. */
18124 $ac_includes_default
18125 #include <$ac_header>
18126 _ACEOF
18127 rm -f conftest.$ac_objext
18128 if { (ac_try="$ac_compile"
18129 case "(($ac_try" in
18130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18131 *) ac_try_echo=$ac_try;;
18132 esac
18133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18134 (eval "$ac_compile") 2>conftest.er1
18135 ac_status=$?
18136 grep -v '^ *+' conftest.er1 >conftest.err
18137 rm -f conftest.er1
18138 cat conftest.err >&5
18139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18140 (exit $ac_status); } && {
18141 test -z "$ac_c_werror_flag" ||
18142 test ! -s conftest.err
18143 } && test -s conftest.$ac_objext; then
18144 ac_header_compiler=yes
18145 else
18146 echo "$as_me: failed program was:" >&5
18147 sed 's/^/| /' conftest.$ac_ext >&5
18149 ac_header_compiler=no
18152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18153 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18154 echo "${ECHO_T}$ac_header_compiler" >&6; }
18156 # Is the header present?
18157 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18158 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18159 cat >conftest.$ac_ext <<_ACEOF
18160 /* confdefs.h. */
18161 _ACEOF
18162 cat confdefs.h >>conftest.$ac_ext
18163 cat >>conftest.$ac_ext <<_ACEOF
18164 /* end confdefs.h. */
18165 #include <$ac_header>
18166 _ACEOF
18167 if { (ac_try="$ac_cpp conftest.$ac_ext"
18168 case "(($ac_try" in
18169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18170 *) ac_try_echo=$ac_try;;
18171 esac
18172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18173 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18174 ac_status=$?
18175 grep -v '^ *+' conftest.er1 >conftest.err
18176 rm -f conftest.er1
18177 cat conftest.err >&5
18178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18179 (exit $ac_status); } >/dev/null && {
18180 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18181 test ! -s conftest.err
18182 }; then
18183 ac_header_preproc=yes
18184 else
18185 echo "$as_me: failed program was:" >&5
18186 sed 's/^/| /' conftest.$ac_ext >&5
18188 ac_header_preproc=no
18191 rm -f conftest.err conftest.$ac_ext
18192 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18193 echo "${ECHO_T}$ac_header_preproc" >&6; }
18195 # So? What about this header?
18196 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18197 yes:no: )
18198 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18199 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18201 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18202 ac_header_preproc=yes
18204 no:yes:* )
18205 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18206 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18207 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18208 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18209 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18210 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18211 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18212 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18214 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18215 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18216 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18219 esac
18220 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18223 echo $ECHO_N "(cached) $ECHO_C" >&6
18224 else
18225 eval "$as_ac_Header=\$ac_header_preproc"
18227 ac_res=`eval echo '${'$as_ac_Header'}'`
18228 { echo "$as_me:$LINENO: result: $ac_res" >&5
18229 echo "${ECHO_T}$ac_res" >&6; }
18232 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18233 cat >>confdefs.h <<_ACEOF
18234 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18235 _ACEOF
18239 done
18244 for ac_header in nlist.h
18246 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18248 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18251 echo $ECHO_N "(cached) $ECHO_C" >&6
18253 ac_res=`eval echo '${'$as_ac_Header'}'`
18254 { echo "$as_me:$LINENO: result: $ac_res" >&5
18255 echo "${ECHO_T}$ac_res" >&6; }
18256 else
18257 # Is the header compilable?
18258 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18259 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18260 cat >conftest.$ac_ext <<_ACEOF
18261 /* confdefs.h. */
18262 _ACEOF
18263 cat confdefs.h >>conftest.$ac_ext
18264 cat >>conftest.$ac_ext <<_ACEOF
18265 /* end confdefs.h. */
18266 $ac_includes_default
18267 #include <$ac_header>
18268 _ACEOF
18269 rm -f conftest.$ac_objext
18270 if { (ac_try="$ac_compile"
18271 case "(($ac_try" in
18272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18273 *) ac_try_echo=$ac_try;;
18274 esac
18275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18276 (eval "$ac_compile") 2>conftest.er1
18277 ac_status=$?
18278 grep -v '^ *+' conftest.er1 >conftest.err
18279 rm -f conftest.er1
18280 cat conftest.err >&5
18281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282 (exit $ac_status); } && {
18283 test -z "$ac_c_werror_flag" ||
18284 test ! -s conftest.err
18285 } && test -s conftest.$ac_objext; then
18286 ac_header_compiler=yes
18287 else
18288 echo "$as_me: failed program was:" >&5
18289 sed 's/^/| /' conftest.$ac_ext >&5
18291 ac_header_compiler=no
18294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18295 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18296 echo "${ECHO_T}$ac_header_compiler" >&6; }
18298 # Is the header present?
18299 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18300 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18301 cat >conftest.$ac_ext <<_ACEOF
18302 /* confdefs.h. */
18303 _ACEOF
18304 cat confdefs.h >>conftest.$ac_ext
18305 cat >>conftest.$ac_ext <<_ACEOF
18306 /* end confdefs.h. */
18307 #include <$ac_header>
18308 _ACEOF
18309 if { (ac_try="$ac_cpp conftest.$ac_ext"
18310 case "(($ac_try" in
18311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18312 *) ac_try_echo=$ac_try;;
18313 esac
18314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18315 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18316 ac_status=$?
18317 grep -v '^ *+' conftest.er1 >conftest.err
18318 rm -f conftest.er1
18319 cat conftest.err >&5
18320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18321 (exit $ac_status); } >/dev/null && {
18322 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18323 test ! -s conftest.err
18324 }; then
18325 ac_header_preproc=yes
18326 else
18327 echo "$as_me: failed program was:" >&5
18328 sed 's/^/| /' conftest.$ac_ext >&5
18330 ac_header_preproc=no
18333 rm -f conftest.err conftest.$ac_ext
18334 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18335 echo "${ECHO_T}$ac_header_preproc" >&6; }
18337 # So? What about this header?
18338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18339 yes:no: )
18340 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18341 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18343 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18344 ac_header_preproc=yes
18346 no:yes:* )
18347 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18348 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18349 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18350 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18351 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18352 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18353 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18354 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18356 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18357 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18358 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18361 esac
18362 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18365 echo $ECHO_N "(cached) $ECHO_C" >&6
18366 else
18367 eval "$as_ac_Header=\$ac_header_preproc"
18369 ac_res=`eval echo '${'$as_ac_Header'}'`
18370 { echo "$as_me:$LINENO: result: $ac_res" >&5
18371 echo "${ECHO_T}$ac_res" >&6; }
18374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18375 cat >>confdefs.h <<_ACEOF
18376 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18377 _ACEOF
18378 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18379 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18380 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18381 echo $ECHO_N "(cached) $ECHO_C" >&6
18382 else
18383 cat >conftest.$ac_ext <<_ACEOF
18384 /* confdefs.h. */
18385 _ACEOF
18386 cat confdefs.h >>conftest.$ac_ext
18387 cat >>conftest.$ac_ext <<_ACEOF
18388 /* end confdefs.h. */
18389 #include <nlist.h>
18392 main ()
18394 static struct nlist ac_aggr;
18395 if (ac_aggr.n_un.n_name)
18396 return 0;
18398 return 0;
18400 _ACEOF
18401 rm -f conftest.$ac_objext
18402 if { (ac_try="$ac_compile"
18403 case "(($ac_try" in
18404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18405 *) ac_try_echo=$ac_try;;
18406 esac
18407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18408 (eval "$ac_compile") 2>conftest.er1
18409 ac_status=$?
18410 grep -v '^ *+' conftest.er1 >conftest.err
18411 rm -f conftest.er1
18412 cat conftest.err >&5
18413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18414 (exit $ac_status); } && {
18415 test -z "$ac_c_werror_flag" ||
18416 test ! -s conftest.err
18417 } && test -s conftest.$ac_objext; then
18418 ac_cv_member_struct_nlist_n_un_n_name=yes
18419 else
18420 echo "$as_me: failed program was:" >&5
18421 sed 's/^/| /' conftest.$ac_ext >&5
18423 cat >conftest.$ac_ext <<_ACEOF
18424 /* confdefs.h. */
18425 _ACEOF
18426 cat confdefs.h >>conftest.$ac_ext
18427 cat >>conftest.$ac_ext <<_ACEOF
18428 /* end confdefs.h. */
18429 #include <nlist.h>
18432 main ()
18434 static struct nlist ac_aggr;
18435 if (sizeof ac_aggr.n_un.n_name)
18436 return 0;
18438 return 0;
18440 _ACEOF
18441 rm -f conftest.$ac_objext
18442 if { (ac_try="$ac_compile"
18443 case "(($ac_try" in
18444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18445 *) ac_try_echo=$ac_try;;
18446 esac
18447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18448 (eval "$ac_compile") 2>conftest.er1
18449 ac_status=$?
18450 grep -v '^ *+' conftest.er1 >conftest.err
18451 rm -f conftest.er1
18452 cat conftest.err >&5
18453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18454 (exit $ac_status); } && {
18455 test -z "$ac_c_werror_flag" ||
18456 test ! -s conftest.err
18457 } && test -s conftest.$ac_objext; then
18458 ac_cv_member_struct_nlist_n_un_n_name=yes
18459 else
18460 echo "$as_me: failed program was:" >&5
18461 sed 's/^/| /' conftest.$ac_ext >&5
18463 ac_cv_member_struct_nlist_n_un_n_name=no
18466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18471 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18472 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18473 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18475 cat >>confdefs.h <<_ACEOF
18476 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18477 _ACEOF
18480 cat >>confdefs.h <<\_ACEOF
18481 #define NLIST_NAME_UNION 1
18482 _ACEOF
18489 done
18492 done
18495 # Some definitions of getloadavg require that the program be installed setgid.
18496 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18497 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18498 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18499 echo $ECHO_N "(cached) $ECHO_C" >&6
18500 else
18501 cat >conftest.$ac_ext <<_ACEOF
18502 /* confdefs.h. */
18503 _ACEOF
18504 cat confdefs.h >>conftest.$ac_ext
18505 cat >>conftest.$ac_ext <<_ACEOF
18506 /* end confdefs.h. */
18507 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18508 #ifdef LDAV_PRIVILEGED
18509 Yowza Am I SETGID yet
18510 #endif
18511 _ACEOF
18512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18513 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18514 ac_cv_func_getloadavg_setgid=yes
18515 else
18516 ac_cv_func_getloadavg_setgid=no
18518 rm -f conftest*
18521 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18522 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18523 if test $ac_cv_func_getloadavg_setgid = yes; then
18524 NEED_SETGID=true
18526 cat >>confdefs.h <<\_ACEOF
18527 #define GETLOADAVG_PRIVILEGED 1
18528 _ACEOF
18530 else
18531 NEED_SETGID=false
18534 if test $ac_cv_func_getloadavg_setgid = yes; then
18535 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18536 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18537 if test "${ac_cv_group_kmem+set}" = set; then
18538 echo $ECHO_N "(cached) $ECHO_C" >&6
18539 else
18540 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18541 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18542 # If we got an error (system does not support symlinks), try without -L.
18543 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18544 ac_cv_group_kmem=`echo $ac_ls_output \
18545 | sed -ne 's/[ ][ ]*/ /g;
18546 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18547 / /s/.* //;p;'`
18550 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18551 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18552 KMEM_GROUP=$ac_cv_group_kmem
18554 if test "x$ac_save_LIBS" = x; then
18555 GETLOADAVG_LIBS=$LIBS
18556 else
18557 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18559 LIBS=$ac_save_LIBS
18563 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18564 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18565 if test "${ac_cv_sys_largefile_source+set}" = set; then
18566 echo $ECHO_N "(cached) $ECHO_C" >&6
18567 else
18568 while :; do
18569 cat >conftest.$ac_ext <<_ACEOF
18570 /* confdefs.h. */
18571 _ACEOF
18572 cat confdefs.h >>conftest.$ac_ext
18573 cat >>conftest.$ac_ext <<_ACEOF
18574 /* end confdefs.h. */
18575 #include <stdio.h>
18577 main ()
18579 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18581 return 0;
18583 _ACEOF
18584 rm -f conftest.$ac_objext conftest$ac_exeext
18585 if { (ac_try="$ac_link"
18586 case "(($ac_try" in
18587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18588 *) ac_try_echo=$ac_try;;
18589 esac
18590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18591 (eval "$ac_link") 2>conftest.er1
18592 ac_status=$?
18593 grep -v '^ *+' conftest.er1 >conftest.err
18594 rm -f conftest.er1
18595 cat conftest.err >&5
18596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18597 (exit $ac_status); } && {
18598 test -z "$ac_c_werror_flag" ||
18599 test ! -s conftest.err
18600 } && test -s conftest$ac_exeext &&
18601 $as_test_x conftest$ac_exeext; then
18602 ac_cv_sys_largefile_source=no; break
18603 else
18604 echo "$as_me: failed program was:" >&5
18605 sed 's/^/| /' conftest.$ac_ext >&5
18610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18611 conftest$ac_exeext conftest.$ac_ext
18612 cat >conftest.$ac_ext <<_ACEOF
18613 /* confdefs.h. */
18614 _ACEOF
18615 cat confdefs.h >>conftest.$ac_ext
18616 cat >>conftest.$ac_ext <<_ACEOF
18617 /* end confdefs.h. */
18618 #define _LARGEFILE_SOURCE 1
18619 #include <stdio.h>
18621 main ()
18623 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18625 return 0;
18627 _ACEOF
18628 rm -f conftest.$ac_objext conftest$ac_exeext
18629 if { (ac_try="$ac_link"
18630 case "(($ac_try" in
18631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18632 *) ac_try_echo=$ac_try;;
18633 esac
18634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18635 (eval "$ac_link") 2>conftest.er1
18636 ac_status=$?
18637 grep -v '^ *+' conftest.er1 >conftest.err
18638 rm -f conftest.er1
18639 cat conftest.err >&5
18640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18641 (exit $ac_status); } && {
18642 test -z "$ac_c_werror_flag" ||
18643 test ! -s conftest.err
18644 } && test -s conftest$ac_exeext &&
18645 $as_test_x conftest$ac_exeext; then
18646 ac_cv_sys_largefile_source=1; break
18647 else
18648 echo "$as_me: failed program was:" >&5
18649 sed 's/^/| /' conftest.$ac_ext >&5
18654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18655 conftest$ac_exeext conftest.$ac_ext
18656 ac_cv_sys_largefile_source=unknown
18657 break
18658 done
18660 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18661 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18662 case $ac_cv_sys_largefile_source in #(
18663 no | unknown) ;;
18665 cat >>confdefs.h <<_ACEOF
18666 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18667 _ACEOF
18669 esac
18670 rm -f conftest*
18672 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18673 # in glibc 2.1.3, but that breaks too many other things.
18674 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18675 if test $ac_cv_sys_largefile_source != unknown; then
18677 cat >>confdefs.h <<\_ACEOF
18678 #define HAVE_FSEEKO 1
18679 _ACEOF
18684 # Configure getopt.
18685 # getopt.m4 serial 10
18687 # The getopt module assume you want GNU getopt, with getopt_long etc,
18688 # rather than vanilla POSIX getopt. This means your your code should
18689 # always include <getopt.h> for the getopt prototypes.
18701 # Prerequisites of lib/getopt*.
18706 GETOPT_H=
18708 for ac_header in getopt.h
18710 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18712 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18715 echo $ECHO_N "(cached) $ECHO_C" >&6
18717 ac_res=`eval echo '${'$as_ac_Header'}'`
18718 { echo "$as_me:$LINENO: result: $ac_res" >&5
18719 echo "${ECHO_T}$ac_res" >&6; }
18720 else
18721 # Is the header compilable?
18722 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18723 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18724 cat >conftest.$ac_ext <<_ACEOF
18725 /* confdefs.h. */
18726 _ACEOF
18727 cat confdefs.h >>conftest.$ac_ext
18728 cat >>conftest.$ac_ext <<_ACEOF
18729 /* end confdefs.h. */
18730 $ac_includes_default
18731 #include <$ac_header>
18732 _ACEOF
18733 rm -f conftest.$ac_objext
18734 if { (ac_try="$ac_compile"
18735 case "(($ac_try" in
18736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18737 *) ac_try_echo=$ac_try;;
18738 esac
18739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18740 (eval "$ac_compile") 2>conftest.er1
18741 ac_status=$?
18742 grep -v '^ *+' conftest.er1 >conftest.err
18743 rm -f conftest.er1
18744 cat conftest.err >&5
18745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18746 (exit $ac_status); } && {
18747 test -z "$ac_c_werror_flag" ||
18748 test ! -s conftest.err
18749 } && test -s conftest.$ac_objext; then
18750 ac_header_compiler=yes
18751 else
18752 echo "$as_me: failed program was:" >&5
18753 sed 's/^/| /' conftest.$ac_ext >&5
18755 ac_header_compiler=no
18758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18759 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18760 echo "${ECHO_T}$ac_header_compiler" >&6; }
18762 # Is the header present?
18763 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18764 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18765 cat >conftest.$ac_ext <<_ACEOF
18766 /* confdefs.h. */
18767 _ACEOF
18768 cat confdefs.h >>conftest.$ac_ext
18769 cat >>conftest.$ac_ext <<_ACEOF
18770 /* end confdefs.h. */
18771 #include <$ac_header>
18772 _ACEOF
18773 if { (ac_try="$ac_cpp conftest.$ac_ext"
18774 case "(($ac_try" in
18775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18776 *) ac_try_echo=$ac_try;;
18777 esac
18778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18779 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18780 ac_status=$?
18781 grep -v '^ *+' conftest.er1 >conftest.err
18782 rm -f conftest.er1
18783 cat conftest.err >&5
18784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18785 (exit $ac_status); } >/dev/null && {
18786 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18787 test ! -s conftest.err
18788 }; then
18789 ac_header_preproc=yes
18790 else
18791 echo "$as_me: failed program was:" >&5
18792 sed 's/^/| /' conftest.$ac_ext >&5
18794 ac_header_preproc=no
18797 rm -f conftest.err conftest.$ac_ext
18798 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18799 echo "${ECHO_T}$ac_header_preproc" >&6; }
18801 # So? What about this header?
18802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18803 yes:no: )
18804 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18805 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18807 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18808 ac_header_preproc=yes
18810 no:yes:* )
18811 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18812 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18813 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18814 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18815 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18816 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18817 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18818 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18819 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18820 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18821 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18822 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18825 esac
18826 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18829 echo $ECHO_N "(cached) $ECHO_C" >&6
18830 else
18831 eval "$as_ac_Header=\$ac_header_preproc"
18833 ac_res=`eval echo '${'$as_ac_Header'}'`
18834 { echo "$as_me:$LINENO: result: $ac_res" >&5
18835 echo "${ECHO_T}$ac_res" >&6; }
18838 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18839 cat >>confdefs.h <<_ACEOF
18840 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18841 _ACEOF
18843 else
18844 GETOPT_H=getopt.h
18847 done
18849 if test -z "$GETOPT_H"; then
18851 for ac_func in getopt_long_only
18853 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18854 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18855 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18856 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18857 echo $ECHO_N "(cached) $ECHO_C" >&6
18858 else
18859 cat >conftest.$ac_ext <<_ACEOF
18860 /* confdefs.h. */
18861 _ACEOF
18862 cat confdefs.h >>conftest.$ac_ext
18863 cat >>conftest.$ac_ext <<_ACEOF
18864 /* end confdefs.h. */
18865 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18867 #define $ac_func innocuous_$ac_func
18869 /* System header to define __stub macros and hopefully few prototypes,
18870 which can conflict with char $ac_func (); below.
18871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18872 <limits.h> exists even on freestanding compilers. */
18874 #ifdef __STDC__
18875 # include <limits.h>
18876 #else
18877 # include <assert.h>
18878 #endif
18880 #undef $ac_func
18882 /* Override any GCC internal prototype to avoid an error.
18883 Use char because int might match the return type of a GCC
18884 builtin and then its argument prototype would still apply. */
18885 #ifdef __cplusplus
18886 extern "C"
18887 #endif
18888 char $ac_func ();
18889 /* The GNU C library defines this for functions which it implements
18890 to always fail with ENOSYS. Some functions are actually named
18891 something starting with __ and the normal name is an alias. */
18892 #if defined __stub_$ac_func || defined __stub___$ac_func
18893 choke me
18894 #endif
18897 main ()
18899 return $ac_func ();
18901 return 0;
18903 _ACEOF
18904 rm -f conftest.$ac_objext conftest$ac_exeext
18905 if { (ac_try="$ac_link"
18906 case "(($ac_try" in
18907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18908 *) ac_try_echo=$ac_try;;
18909 esac
18910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18911 (eval "$ac_link") 2>conftest.er1
18912 ac_status=$?
18913 grep -v '^ *+' conftest.er1 >conftest.err
18914 rm -f conftest.er1
18915 cat conftest.err >&5
18916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18917 (exit $ac_status); } && {
18918 test -z "$ac_c_werror_flag" ||
18919 test ! -s conftest.err
18920 } && test -s conftest$ac_exeext &&
18921 $as_test_x conftest$ac_exeext; then
18922 eval "$as_ac_var=yes"
18923 else
18924 echo "$as_me: failed program was:" >&5
18925 sed 's/^/| /' conftest.$ac_ext >&5
18927 eval "$as_ac_var=no"
18930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18931 conftest$ac_exeext conftest.$ac_ext
18933 ac_res=`eval echo '${'$as_ac_var'}'`
18934 { echo "$as_me:$LINENO: result: $ac_res" >&5
18935 echo "${ECHO_T}$ac_res" >&6; }
18936 if test `eval echo '${'$as_ac_var'}'` = yes; then
18937 cat >>confdefs.h <<_ACEOF
18938 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18939 _ACEOF
18941 else
18942 GETOPT_H=getopt.h
18944 done
18948 if test -z "$GETOPT_H"; then
18949 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
18950 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
18951 if test "${ac_cv_have_decl_optreset+set}" = set; then
18952 echo $ECHO_N "(cached) $ECHO_C" >&6
18953 else
18954 cat >conftest.$ac_ext <<_ACEOF
18955 /* confdefs.h. */
18956 _ACEOF
18957 cat confdefs.h >>conftest.$ac_ext
18958 cat >>conftest.$ac_ext <<_ACEOF
18959 /* end confdefs.h. */
18960 #include <getopt.h>
18963 main ()
18965 #ifndef optreset
18966 (void) optreset;
18967 #endif
18970 return 0;
18972 _ACEOF
18973 rm -f conftest.$ac_objext
18974 if { (ac_try="$ac_compile"
18975 case "(($ac_try" in
18976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18977 *) ac_try_echo=$ac_try;;
18978 esac
18979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18980 (eval "$ac_compile") 2>conftest.er1
18981 ac_status=$?
18982 grep -v '^ *+' conftest.er1 >conftest.err
18983 rm -f conftest.er1
18984 cat conftest.err >&5
18985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986 (exit $ac_status); } && {
18987 test -z "$ac_c_werror_flag" ||
18988 test ! -s conftest.err
18989 } && test -s conftest.$ac_objext; then
18990 ac_cv_have_decl_optreset=yes
18991 else
18992 echo "$as_me: failed program was:" >&5
18993 sed 's/^/| /' conftest.$ac_ext >&5
18995 ac_cv_have_decl_optreset=no
18998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19000 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
19001 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19002 if test $ac_cv_have_decl_optreset = yes; then
19003 GETOPT_H=getopt.h
19008 if test -z "$GETOPT_H"; then
19009 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
19010 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
19011 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19012 echo $ECHO_N "(cached) $ECHO_C" >&6
19013 else
19014 if test "$cross_compiling" = yes; then
19015 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
19016 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
19017 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19018 echo $ECHO_N "(cached) $ECHO_C" >&6
19019 else
19020 cat >conftest.$ac_ext <<_ACEOF
19021 /* confdefs.h. */
19022 _ACEOF
19023 cat confdefs.h >>conftest.$ac_ext
19024 cat >>conftest.$ac_ext <<_ACEOF
19025 /* end confdefs.h. */
19026 #include <getopt.h>
19029 main ()
19031 #ifndef getopt_clip
19032 (void) getopt_clip;
19033 #endif
19036 return 0;
19038 _ACEOF
19039 rm -f conftest.$ac_objext
19040 if { (ac_try="$ac_compile"
19041 case "(($ac_try" in
19042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19043 *) ac_try_echo=$ac_try;;
19044 esac
19045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19046 (eval "$ac_compile") 2>conftest.er1
19047 ac_status=$?
19048 grep -v '^ *+' conftest.er1 >conftest.err
19049 rm -f conftest.er1
19050 cat conftest.err >&5
19051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19052 (exit $ac_status); } && {
19053 test -z "$ac_c_werror_flag" ||
19054 test ! -s conftest.err
19055 } && test -s conftest.$ac_objext; then
19056 ac_cv_have_decl_getopt_clip=yes
19057 else
19058 echo "$as_me: failed program was:" >&5
19059 sed 's/^/| /' conftest.$ac_ext >&5
19061 ac_cv_have_decl_getopt_clip=no
19064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19066 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
19067 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19068 if test $ac_cv_have_decl_getopt_clip = yes; then
19069 gl_cv_func_gnu_getopt=no
19070 else
19071 gl_cv_func_gnu_getopt=yes
19074 else
19075 cat >conftest.$ac_ext <<_ACEOF
19076 /* confdefs.h. */
19077 _ACEOF
19078 cat confdefs.h >>conftest.$ac_ext
19079 cat >>conftest.$ac_ext <<_ACEOF
19080 /* end confdefs.h. */
19081 #include <getopt.h>
19083 main ()
19086 char *myargv[3];
19087 myargv[0] = "conftest";
19088 myargv[1] = "-+";
19089 myargv[2] = 0;
19090 return getopt (2, myargv, "+a") != '?';
19093 return 0;
19095 _ACEOF
19096 rm -f conftest$ac_exeext
19097 if { (ac_try="$ac_link"
19098 case "(($ac_try" in
19099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19100 *) ac_try_echo=$ac_try;;
19101 esac
19102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19103 (eval "$ac_link") 2>&5
19104 ac_status=$?
19105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19106 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19107 { (case "(($ac_try" in
19108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19109 *) ac_try_echo=$ac_try;;
19110 esac
19111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19112 (eval "$ac_try") 2>&5
19113 ac_status=$?
19114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115 (exit $ac_status); }; }; then
19116 gl_cv_func_gnu_getopt=yes
19117 else
19118 echo "$as_me: program exited with status $ac_status" >&5
19119 echo "$as_me: failed program was:" >&5
19120 sed 's/^/| /' conftest.$ac_ext >&5
19122 ( exit $ac_status )
19123 gl_cv_func_gnu_getopt=no
19125 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19130 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
19131 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19132 if test "$gl_cv_func_gnu_getopt" = "no"; then
19133 GETOPT_H=getopt.h
19139 if test -n "$GETOPT_H"; then
19142 GETOPT_H=getopt.h
19144 cat >>confdefs.h <<\_ACEOF
19145 #define __GETOPT_PREFIX rpl_
19146 _ACEOF
19151 GETOPTOBJS='getopt.o getopt1.o'
19158 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
19159 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
19160 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19161 echo $ECHO_N "(cached) $ECHO_C" >&6
19162 else
19163 # Use it with a single arg.
19164 cat >conftest.$ac_ext <<_ACEOF
19165 /* confdefs.h. */
19166 _ACEOF
19167 cat confdefs.h >>conftest.$ac_ext
19168 cat >>conftest.$ac_ext <<_ACEOF
19169 /* end confdefs.h. */
19170 $ac_includes_default
19172 main ()
19174 getpgrp (0);
19176 return 0;
19178 _ACEOF
19179 rm -f conftest.$ac_objext
19180 if { (ac_try="$ac_compile"
19181 case "(($ac_try" in
19182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19183 *) ac_try_echo=$ac_try;;
19184 esac
19185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19186 (eval "$ac_compile") 2>conftest.er1
19187 ac_status=$?
19188 grep -v '^ *+' conftest.er1 >conftest.err
19189 rm -f conftest.er1
19190 cat conftest.err >&5
19191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192 (exit $ac_status); } && {
19193 test -z "$ac_c_werror_flag" ||
19194 test ! -s conftest.err
19195 } && test -s conftest.$ac_objext; then
19196 ac_cv_func_getpgrp_void=no
19197 else
19198 echo "$as_me: failed program was:" >&5
19199 sed 's/^/| /' conftest.$ac_ext >&5
19201 ac_cv_func_getpgrp_void=yes
19204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19207 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
19208 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19209 if test $ac_cv_func_getpgrp_void = yes; then
19211 cat >>confdefs.h <<\_ACEOF
19212 #define GETPGRP_VOID 1
19213 _ACEOF
19219 for ac_func in strftime
19221 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19222 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19223 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19224 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19225 echo $ECHO_N "(cached) $ECHO_C" >&6
19226 else
19227 cat >conftest.$ac_ext <<_ACEOF
19228 /* confdefs.h. */
19229 _ACEOF
19230 cat confdefs.h >>conftest.$ac_ext
19231 cat >>conftest.$ac_ext <<_ACEOF
19232 /* end confdefs.h. */
19233 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19234 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19235 #define $ac_func innocuous_$ac_func
19237 /* System header to define __stub macros and hopefully few prototypes,
19238 which can conflict with char $ac_func (); below.
19239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19240 <limits.h> exists even on freestanding compilers. */
19242 #ifdef __STDC__
19243 # include <limits.h>
19244 #else
19245 # include <assert.h>
19246 #endif
19248 #undef $ac_func
19250 /* Override any GCC internal prototype to avoid an error.
19251 Use char because int might match the return type of a GCC
19252 builtin and then its argument prototype would still apply. */
19253 #ifdef __cplusplus
19254 extern "C"
19255 #endif
19256 char $ac_func ();
19257 /* The GNU C library defines this for functions which it implements
19258 to always fail with ENOSYS. Some functions are actually named
19259 something starting with __ and the normal name is an alias. */
19260 #if defined __stub_$ac_func || defined __stub___$ac_func
19261 choke me
19262 #endif
19265 main ()
19267 return $ac_func ();
19269 return 0;
19271 _ACEOF
19272 rm -f conftest.$ac_objext conftest$ac_exeext
19273 if { (ac_try="$ac_link"
19274 case "(($ac_try" in
19275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19276 *) ac_try_echo=$ac_try;;
19277 esac
19278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19279 (eval "$ac_link") 2>conftest.er1
19280 ac_status=$?
19281 grep -v '^ *+' conftest.er1 >conftest.err
19282 rm -f conftest.er1
19283 cat conftest.err >&5
19284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19285 (exit $ac_status); } && {
19286 test -z "$ac_c_werror_flag" ||
19287 test ! -s conftest.err
19288 } && test -s conftest$ac_exeext &&
19289 $as_test_x conftest$ac_exeext; then
19290 eval "$as_ac_var=yes"
19291 else
19292 echo "$as_me: failed program was:" >&5
19293 sed 's/^/| /' conftest.$ac_ext >&5
19295 eval "$as_ac_var=no"
19298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19299 conftest$ac_exeext conftest.$ac_ext
19301 ac_res=`eval echo '${'$as_ac_var'}'`
19302 { echo "$as_me:$LINENO: result: $ac_res" >&5
19303 echo "${ECHO_T}$ac_res" >&6; }
19304 if test `eval echo '${'$as_ac_var'}'` = yes; then
19305 cat >>confdefs.h <<_ACEOF
19306 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19307 _ACEOF
19309 else
19310 # strftime is in -lintl on SCO UNIX.
19311 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19312 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
19313 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19314 echo $ECHO_N "(cached) $ECHO_C" >&6
19315 else
19316 ac_check_lib_save_LIBS=$LIBS
19317 LIBS="-lintl $LIBS"
19318 cat >conftest.$ac_ext <<_ACEOF
19319 /* confdefs.h. */
19320 _ACEOF
19321 cat confdefs.h >>conftest.$ac_ext
19322 cat >>conftest.$ac_ext <<_ACEOF
19323 /* end confdefs.h. */
19325 /* Override any GCC internal prototype to avoid an error.
19326 Use char because int might match the return type of a GCC
19327 builtin and then its argument prototype would still apply. */
19328 #ifdef __cplusplus
19329 extern "C"
19330 #endif
19331 char strftime ();
19333 main ()
19335 return strftime ();
19337 return 0;
19339 _ACEOF
19340 rm -f conftest.$ac_objext conftest$ac_exeext
19341 if { (ac_try="$ac_link"
19342 case "(($ac_try" in
19343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19344 *) ac_try_echo=$ac_try;;
19345 esac
19346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19347 (eval "$ac_link") 2>conftest.er1
19348 ac_status=$?
19349 grep -v '^ *+' conftest.er1 >conftest.err
19350 rm -f conftest.er1
19351 cat conftest.err >&5
19352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19353 (exit $ac_status); } && {
19354 test -z "$ac_c_werror_flag" ||
19355 test ! -s conftest.err
19356 } && test -s conftest$ac_exeext &&
19357 $as_test_x conftest$ac_exeext; then
19358 ac_cv_lib_intl_strftime=yes
19359 else
19360 echo "$as_me: failed program was:" >&5
19361 sed 's/^/| /' conftest.$ac_ext >&5
19363 ac_cv_lib_intl_strftime=no
19366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19367 conftest$ac_exeext conftest.$ac_ext
19368 LIBS=$ac_check_lib_save_LIBS
19370 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19371 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19372 if test $ac_cv_lib_intl_strftime = yes; then
19373 cat >>confdefs.h <<\_ACEOF
19374 #define HAVE_STRFTIME 1
19375 _ACEOF
19377 LIBS="-lintl $LIBS"
19381 done
19384 # UNIX98 PTYs.
19386 for ac_func in grantpt
19388 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19389 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19390 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19391 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19392 echo $ECHO_N "(cached) $ECHO_C" >&6
19393 else
19394 cat >conftest.$ac_ext <<_ACEOF
19395 /* confdefs.h. */
19396 _ACEOF
19397 cat confdefs.h >>conftest.$ac_ext
19398 cat >>conftest.$ac_ext <<_ACEOF
19399 /* end confdefs.h. */
19400 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19402 #define $ac_func innocuous_$ac_func
19404 /* System header to define __stub macros and hopefully few prototypes,
19405 which can conflict with char $ac_func (); below.
19406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19407 <limits.h> exists even on freestanding compilers. */
19409 #ifdef __STDC__
19410 # include <limits.h>
19411 #else
19412 # include <assert.h>
19413 #endif
19415 #undef $ac_func
19417 /* Override any GCC internal prototype to avoid an error.
19418 Use char because int might match the return type of a GCC
19419 builtin and then its argument prototype would still apply. */
19420 #ifdef __cplusplus
19421 extern "C"
19422 #endif
19423 char $ac_func ();
19424 /* The GNU C library defines this for functions which it implements
19425 to always fail with ENOSYS. Some functions are actually named
19426 something starting with __ and the normal name is an alias. */
19427 #if defined __stub_$ac_func || defined __stub___$ac_func
19428 choke me
19429 #endif
19432 main ()
19434 return $ac_func ();
19436 return 0;
19438 _ACEOF
19439 rm -f conftest.$ac_objext conftest$ac_exeext
19440 if { (ac_try="$ac_link"
19441 case "(($ac_try" in
19442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19443 *) ac_try_echo=$ac_try;;
19444 esac
19445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19446 (eval "$ac_link") 2>conftest.er1
19447 ac_status=$?
19448 grep -v '^ *+' conftest.er1 >conftest.err
19449 rm -f conftest.er1
19450 cat conftest.err >&5
19451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452 (exit $ac_status); } && {
19453 test -z "$ac_c_werror_flag" ||
19454 test ! -s conftest.err
19455 } && test -s conftest$ac_exeext &&
19456 $as_test_x conftest$ac_exeext; then
19457 eval "$as_ac_var=yes"
19458 else
19459 echo "$as_me: failed program was:" >&5
19460 sed 's/^/| /' conftest.$ac_ext >&5
19462 eval "$as_ac_var=no"
19465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19466 conftest$ac_exeext conftest.$ac_ext
19468 ac_res=`eval echo '${'$as_ac_var'}'`
19469 { echo "$as_me:$LINENO: result: $ac_res" >&5
19470 echo "${ECHO_T}$ac_res" >&6; }
19471 if test `eval echo '${'$as_ac_var'}'` = yes; then
19472 cat >>confdefs.h <<_ACEOF
19473 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19474 _ACEOF
19477 done
19480 # PTY-related GNU extensions.
19482 for ac_func in getpt
19484 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19485 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19487 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19488 echo $ECHO_N "(cached) $ECHO_C" >&6
19489 else
19490 cat >conftest.$ac_ext <<_ACEOF
19491 /* confdefs.h. */
19492 _ACEOF
19493 cat confdefs.h >>conftest.$ac_ext
19494 cat >>conftest.$ac_ext <<_ACEOF
19495 /* end confdefs.h. */
19496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19498 #define $ac_func innocuous_$ac_func
19500 /* System header to define __stub macros and hopefully few prototypes,
19501 which can conflict with char $ac_func (); below.
19502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19503 <limits.h> exists even on freestanding compilers. */
19505 #ifdef __STDC__
19506 # include <limits.h>
19507 #else
19508 # include <assert.h>
19509 #endif
19511 #undef $ac_func
19513 /* Override any GCC internal prototype to avoid an error.
19514 Use char because int might match the return type of a GCC
19515 builtin and then its argument prototype would still apply. */
19516 #ifdef __cplusplus
19517 extern "C"
19518 #endif
19519 char $ac_func ();
19520 /* The GNU C library defines this for functions which it implements
19521 to always fail with ENOSYS. Some functions are actually named
19522 something starting with __ and the normal name is an alias. */
19523 #if defined __stub_$ac_func || defined __stub___$ac_func
19524 choke me
19525 #endif
19528 main ()
19530 return $ac_func ();
19532 return 0;
19534 _ACEOF
19535 rm -f conftest.$ac_objext conftest$ac_exeext
19536 if { (ac_try="$ac_link"
19537 case "(($ac_try" in
19538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19539 *) ac_try_echo=$ac_try;;
19540 esac
19541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19542 (eval "$ac_link") 2>conftest.er1
19543 ac_status=$?
19544 grep -v '^ *+' conftest.er1 >conftest.err
19545 rm -f conftest.er1
19546 cat conftest.err >&5
19547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19548 (exit $ac_status); } && {
19549 test -z "$ac_c_werror_flag" ||
19550 test ! -s conftest.err
19551 } && test -s conftest$ac_exeext &&
19552 $as_test_x conftest$ac_exeext; then
19553 eval "$as_ac_var=yes"
19554 else
19555 echo "$as_me: failed program was:" >&5
19556 sed 's/^/| /' conftest.$ac_ext >&5
19558 eval "$as_ac_var=no"
19561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19562 conftest$ac_exeext conftest.$ac_ext
19564 ac_res=`eval echo '${'$as_ac_var'}'`
19565 { echo "$as_me:$LINENO: result: $ac_res" >&5
19566 echo "${ECHO_T}$ac_res" >&6; }
19567 if test `eval echo '${'$as_ac_var'}'` = yes; then
19568 cat >>confdefs.h <<_ACEOF
19569 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19570 _ACEOF
19573 done
19576 # Check this now, so that we will NOT find the above functions in ncurses.
19577 # That is because we have not set up to link ncurses in lib-src.
19578 # It's better to believe a function is not available
19579 # than to expect to find it in ncurses.
19581 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19582 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19583 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19584 echo $ECHO_N "(cached) $ECHO_C" >&6
19585 else
19586 ac_check_lib_save_LIBS=$LIBS
19587 LIBS="-lncurses $LIBS"
19588 cat >conftest.$ac_ext <<_ACEOF
19589 /* confdefs.h. */
19590 _ACEOF
19591 cat confdefs.h >>conftest.$ac_ext
19592 cat >>conftest.$ac_ext <<_ACEOF
19593 /* end confdefs.h. */
19595 /* Override any GCC internal prototype to avoid an error.
19596 Use char because int might match the return type of a GCC
19597 builtin and then its argument prototype would still apply. */
19598 #ifdef __cplusplus
19599 extern "C"
19600 #endif
19601 char tparm ();
19603 main ()
19605 return tparm ();
19607 return 0;
19609 _ACEOF
19610 rm -f conftest.$ac_objext conftest$ac_exeext
19611 if { (ac_try="$ac_link"
19612 case "(($ac_try" in
19613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19614 *) ac_try_echo=$ac_try;;
19615 esac
19616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19617 (eval "$ac_link") 2>conftest.er1
19618 ac_status=$?
19619 grep -v '^ *+' conftest.er1 >conftest.err
19620 rm -f conftest.er1
19621 cat conftest.err >&5
19622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19623 (exit $ac_status); } && {
19624 test -z "$ac_c_werror_flag" ||
19625 test ! -s conftest.err
19626 } && test -s conftest$ac_exeext &&
19627 $as_test_x conftest$ac_exeext; then
19628 ac_cv_lib_ncurses_tparm=yes
19629 else
19630 echo "$as_me: failed program was:" >&5
19631 sed 's/^/| /' conftest.$ac_ext >&5
19633 ac_cv_lib_ncurses_tparm=no
19636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19637 conftest$ac_exeext conftest.$ac_ext
19638 LIBS=$ac_check_lib_save_LIBS
19640 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19641 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19642 if test $ac_cv_lib_ncurses_tparm = yes; then
19643 cat >>confdefs.h <<_ACEOF
19644 #define HAVE_LIBNCURSES 1
19645 _ACEOF
19647 LIBS="-lncurses $LIBS"
19652 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19654 resolv=no
19655 cat >conftest.$ac_ext <<_ACEOF
19656 /* confdefs.h. */
19657 _ACEOF
19658 cat confdefs.h >>conftest.$ac_ext
19659 cat >>conftest.$ac_ext <<_ACEOF
19660 /* end confdefs.h. */
19661 #include <netinet/in.h>
19662 #include <arpa/nameser.h>
19663 #include <resolv.h>
19665 main ()
19667 return res_init();
19669 return 0;
19671 _ACEOF
19672 rm -f conftest.$ac_objext conftest$ac_exeext
19673 if { (ac_try="$ac_link"
19674 case "(($ac_try" in
19675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19676 *) ac_try_echo=$ac_try;;
19677 esac
19678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19679 (eval "$ac_link") 2>conftest.er1
19680 ac_status=$?
19681 grep -v '^ *+' conftest.er1 >conftest.err
19682 rm -f conftest.er1
19683 cat conftest.err >&5
19684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19685 (exit $ac_status); } && {
19686 test -z "$ac_c_werror_flag" ||
19687 test ! -s conftest.err
19688 } && test -s conftest$ac_exeext &&
19689 $as_test_x conftest$ac_exeext; then
19690 have_res_init=yes
19691 else
19692 echo "$as_me: failed program was:" >&5
19693 sed 's/^/| /' conftest.$ac_ext >&5
19695 have_res_init=no
19698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19699 conftest$ac_exeext conftest.$ac_ext
19700 if test "$have_res_init" = no; then
19701 OLIBS="$LIBS"
19702 LIBS="$LIBS -lresolv"
19703 { echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
19704 echo $ECHO_N "checking for res_init with -lresolv... $ECHO_C" >&6; }
19705 cat >conftest.$ac_ext <<_ACEOF
19706 /* confdefs.h. */
19707 _ACEOF
19708 cat confdefs.h >>conftest.$ac_ext
19709 cat >>conftest.$ac_ext <<_ACEOF
19710 /* end confdefs.h. */
19711 #include <netinet/in.h>
19712 #include <arpa/nameser.h>
19713 #include <resolv.h>
19715 main ()
19717 return res_init();
19719 return 0;
19721 _ACEOF
19722 rm -f conftest.$ac_objext conftest$ac_exeext
19723 if { (ac_try="$ac_link"
19724 case "(($ac_try" in
19725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19726 *) ac_try_echo=$ac_try;;
19727 esac
19728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19729 (eval "$ac_link") 2>conftest.er1
19730 ac_status=$?
19731 grep -v '^ *+' conftest.er1 >conftest.err
19732 rm -f conftest.er1
19733 cat conftest.err >&5
19734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735 (exit $ac_status); } && {
19736 test -z "$ac_c_werror_flag" ||
19737 test ! -s conftest.err
19738 } && test -s conftest$ac_exeext &&
19739 $as_test_x conftest$ac_exeext; then
19740 have_res_init=yes
19741 else
19742 echo "$as_me: failed program was:" >&5
19743 sed 's/^/| /' conftest.$ac_ext >&5
19745 have_res_init=no
19748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19749 conftest$ac_exeext conftest.$ac_ext
19750 { echo "$as_me:$LINENO: result: $have_res_init" >&5
19751 echo "${ECHO_T}$have_res_init" >&6; }
19752 if test "$have_res_init" = yes ; then
19753 resolv=yes
19755 LIBS="$OLIBS"
19758 if test "$have_res_init" = yes; then
19760 cat >>confdefs.h <<\_ACEOF
19761 #define HAVE_RES_INIT 1
19762 _ACEOF
19766 # Do we need the Hesiod library to provide the support routines?
19767 if test "$with_hesiod" = yes ; then
19768 # Don't set $LIBS here -- see comments above.
19769 { echo "$as_me:$LINENO: checking for res_send" >&5
19770 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
19771 if test "${ac_cv_func_res_send+set}" = set; then
19772 echo $ECHO_N "(cached) $ECHO_C" >&6
19773 else
19774 cat >conftest.$ac_ext <<_ACEOF
19775 /* confdefs.h. */
19776 _ACEOF
19777 cat confdefs.h >>conftest.$ac_ext
19778 cat >>conftest.$ac_ext <<_ACEOF
19779 /* end confdefs.h. */
19780 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19782 #define res_send innocuous_res_send
19784 /* System header to define __stub macros and hopefully few prototypes,
19785 which can conflict with char res_send (); below.
19786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19787 <limits.h> exists even on freestanding compilers. */
19789 #ifdef __STDC__
19790 # include <limits.h>
19791 #else
19792 # include <assert.h>
19793 #endif
19795 #undef res_send
19797 /* Override any GCC internal prototype to avoid an error.
19798 Use char because int might match the return type of a GCC
19799 builtin and then its argument prototype would still apply. */
19800 #ifdef __cplusplus
19801 extern "C"
19802 #endif
19803 char res_send ();
19804 /* The GNU C library defines this for functions which it implements
19805 to always fail with ENOSYS. Some functions are actually named
19806 something starting with __ and the normal name is an alias. */
19807 #if defined __stub_res_send || defined __stub___res_send
19808 choke me
19809 #endif
19812 main ()
19814 return res_send ();
19816 return 0;
19818 _ACEOF
19819 rm -f conftest.$ac_objext conftest$ac_exeext
19820 if { (ac_try="$ac_link"
19821 case "(($ac_try" in
19822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19823 *) ac_try_echo=$ac_try;;
19824 esac
19825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19826 (eval "$ac_link") 2>conftest.er1
19827 ac_status=$?
19828 grep -v '^ *+' conftest.er1 >conftest.err
19829 rm -f conftest.er1
19830 cat conftest.err >&5
19831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832 (exit $ac_status); } && {
19833 test -z "$ac_c_werror_flag" ||
19834 test ! -s conftest.err
19835 } && test -s conftest$ac_exeext &&
19836 $as_test_x conftest$ac_exeext; then
19837 ac_cv_func_res_send=yes
19838 else
19839 echo "$as_me: failed program was:" >&5
19840 sed 's/^/| /' conftest.$ac_ext >&5
19842 ac_cv_func_res_send=no
19845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19846 conftest$ac_exeext conftest.$ac_ext
19848 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19849 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19850 if test $ac_cv_func_res_send = yes; then
19852 else
19853 { echo "$as_me:$LINENO: checking for __res_send" >&5
19854 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
19855 if test "${ac_cv_func___res_send+set}" = set; then
19856 echo $ECHO_N "(cached) $ECHO_C" >&6
19857 else
19858 cat >conftest.$ac_ext <<_ACEOF
19859 /* confdefs.h. */
19860 _ACEOF
19861 cat confdefs.h >>conftest.$ac_ext
19862 cat >>conftest.$ac_ext <<_ACEOF
19863 /* end confdefs.h. */
19864 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19866 #define __res_send innocuous___res_send
19868 /* System header to define __stub macros and hopefully few prototypes,
19869 which can conflict with char __res_send (); below.
19870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19871 <limits.h> exists even on freestanding compilers. */
19873 #ifdef __STDC__
19874 # include <limits.h>
19875 #else
19876 # include <assert.h>
19877 #endif
19879 #undef __res_send
19881 /* Override any GCC internal prototype to avoid an error.
19882 Use char because int might match the return type of a GCC
19883 builtin and then its argument prototype would still apply. */
19884 #ifdef __cplusplus
19885 extern "C"
19886 #endif
19887 char __res_send ();
19888 /* The GNU C library defines this for functions which it implements
19889 to always fail with ENOSYS. Some functions are actually named
19890 something starting with __ and the normal name is an alias. */
19891 #if defined __stub___res_send || defined __stub_____res_send
19892 choke me
19893 #endif
19896 main ()
19898 return __res_send ();
19900 return 0;
19902 _ACEOF
19903 rm -f conftest.$ac_objext conftest$ac_exeext
19904 if { (ac_try="$ac_link"
19905 case "(($ac_try" in
19906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19907 *) ac_try_echo=$ac_try;;
19908 esac
19909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19910 (eval "$ac_link") 2>conftest.er1
19911 ac_status=$?
19912 grep -v '^ *+' conftest.er1 >conftest.err
19913 rm -f conftest.er1
19914 cat conftest.err >&5
19915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916 (exit $ac_status); } && {
19917 test -z "$ac_c_werror_flag" ||
19918 test ! -s conftest.err
19919 } && test -s conftest$ac_exeext &&
19920 $as_test_x conftest$ac_exeext; then
19921 ac_cv_func___res_send=yes
19922 else
19923 echo "$as_me: failed program was:" >&5
19924 sed 's/^/| /' conftest.$ac_ext >&5
19926 ac_cv_func___res_send=no
19929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19930 conftest$ac_exeext conftest.$ac_ext
19932 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
19933 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19934 if test $ac_cv_func___res_send = yes; then
19936 else
19937 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
19938 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
19939 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19940 echo $ECHO_N "(cached) $ECHO_C" >&6
19941 else
19942 ac_check_lib_save_LIBS=$LIBS
19943 LIBS="-lresolv $LIBS"
19944 cat >conftest.$ac_ext <<_ACEOF
19945 /* confdefs.h. */
19946 _ACEOF
19947 cat confdefs.h >>conftest.$ac_ext
19948 cat >>conftest.$ac_ext <<_ACEOF
19949 /* end confdefs.h. */
19951 /* Override any GCC internal prototype to avoid an error.
19952 Use char because int might match the return type of a GCC
19953 builtin and then its argument prototype would still apply. */
19954 #ifdef __cplusplus
19955 extern "C"
19956 #endif
19957 char res_send ();
19959 main ()
19961 return res_send ();
19963 return 0;
19965 _ACEOF
19966 rm -f conftest.$ac_objext conftest$ac_exeext
19967 if { (ac_try="$ac_link"
19968 case "(($ac_try" in
19969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19970 *) ac_try_echo=$ac_try;;
19971 esac
19972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19973 (eval "$ac_link") 2>conftest.er1
19974 ac_status=$?
19975 grep -v '^ *+' conftest.er1 >conftest.err
19976 rm -f conftest.er1
19977 cat conftest.err >&5
19978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979 (exit $ac_status); } && {
19980 test -z "$ac_c_werror_flag" ||
19981 test ! -s conftest.err
19982 } && test -s conftest$ac_exeext &&
19983 $as_test_x conftest$ac_exeext; then
19984 ac_cv_lib_resolv_res_send=yes
19985 else
19986 echo "$as_me: failed program was:" >&5
19987 sed 's/^/| /' conftest.$ac_ext >&5
19989 ac_cv_lib_resolv_res_send=no
19992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19993 conftest$ac_exeext conftest.$ac_ext
19994 LIBS=$ac_check_lib_save_LIBS
19996 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
19997 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19998 if test $ac_cv_lib_resolv_res_send = yes; then
19999 resolv=yes
20000 else
20001 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
20002 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
20003 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20004 echo $ECHO_N "(cached) $ECHO_C" >&6
20005 else
20006 ac_check_lib_save_LIBS=$LIBS
20007 LIBS="-lresolv $LIBS"
20008 cat >conftest.$ac_ext <<_ACEOF
20009 /* confdefs.h. */
20010 _ACEOF
20011 cat confdefs.h >>conftest.$ac_ext
20012 cat >>conftest.$ac_ext <<_ACEOF
20013 /* end confdefs.h. */
20015 /* Override any GCC internal prototype to avoid an error.
20016 Use char because int might match the return type of a GCC
20017 builtin and then its argument prototype would still apply. */
20018 #ifdef __cplusplus
20019 extern "C"
20020 #endif
20021 char __res_send ();
20023 main ()
20025 return __res_send ();
20027 return 0;
20029 _ACEOF
20030 rm -f conftest.$ac_objext conftest$ac_exeext
20031 if { (ac_try="$ac_link"
20032 case "(($ac_try" in
20033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20034 *) ac_try_echo=$ac_try;;
20035 esac
20036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20037 (eval "$ac_link") 2>conftest.er1
20038 ac_status=$?
20039 grep -v '^ *+' conftest.er1 >conftest.err
20040 rm -f conftest.er1
20041 cat conftest.err >&5
20042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20043 (exit $ac_status); } && {
20044 test -z "$ac_c_werror_flag" ||
20045 test ! -s conftest.err
20046 } && test -s conftest$ac_exeext &&
20047 $as_test_x conftest$ac_exeext; then
20048 ac_cv_lib_resolv___res_send=yes
20049 else
20050 echo "$as_me: failed program was:" >&5
20051 sed 's/^/| /' conftest.$ac_ext >&5
20053 ac_cv_lib_resolv___res_send=no
20056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20057 conftest$ac_exeext conftest.$ac_ext
20058 LIBS=$ac_check_lib_save_LIBS
20060 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
20061 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20062 if test $ac_cv_lib_resolv___res_send = yes; then
20063 resolv=yes
20072 if test "$resolv" = yes ; then
20073 RESOLVLIB=-lresolv
20074 else
20075 RESOLVLIB=
20077 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
20078 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
20079 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20080 echo $ECHO_N "(cached) $ECHO_C" >&6
20081 else
20082 cat >conftest.$ac_ext <<_ACEOF
20083 /* confdefs.h. */
20084 _ACEOF
20085 cat confdefs.h >>conftest.$ac_ext
20086 cat >>conftest.$ac_ext <<_ACEOF
20087 /* end confdefs.h. */
20088 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20089 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20090 #define hes_getmailhost innocuous_hes_getmailhost
20092 /* System header to define __stub macros and hopefully few prototypes,
20093 which can conflict with char hes_getmailhost (); below.
20094 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20095 <limits.h> exists even on freestanding compilers. */
20097 #ifdef __STDC__
20098 # include <limits.h>
20099 #else
20100 # include <assert.h>
20101 #endif
20103 #undef hes_getmailhost
20105 /* Override any GCC internal prototype to avoid an error.
20106 Use char because int might match the return type of a GCC
20107 builtin and then its argument prototype would still apply. */
20108 #ifdef __cplusplus
20109 extern "C"
20110 #endif
20111 char hes_getmailhost ();
20112 /* The GNU C library defines this for functions which it implements
20113 to always fail with ENOSYS. Some functions are actually named
20114 something starting with __ and the normal name is an alias. */
20115 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20116 choke me
20117 #endif
20120 main ()
20122 return hes_getmailhost ();
20124 return 0;
20126 _ACEOF
20127 rm -f conftest.$ac_objext conftest$ac_exeext
20128 if { (ac_try="$ac_link"
20129 case "(($ac_try" in
20130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20131 *) ac_try_echo=$ac_try;;
20132 esac
20133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20134 (eval "$ac_link") 2>conftest.er1
20135 ac_status=$?
20136 grep -v '^ *+' conftest.er1 >conftest.err
20137 rm -f conftest.er1
20138 cat conftest.err >&5
20139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140 (exit $ac_status); } && {
20141 test -z "$ac_c_werror_flag" ||
20142 test ! -s conftest.err
20143 } && test -s conftest$ac_exeext &&
20144 $as_test_x conftest$ac_exeext; then
20145 ac_cv_func_hes_getmailhost=yes
20146 else
20147 echo "$as_me: failed program was:" >&5
20148 sed 's/^/| /' conftest.$ac_ext >&5
20150 ac_cv_func_hes_getmailhost=no
20153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20154 conftest$ac_exeext conftest.$ac_ext
20156 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
20157 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20158 if test $ac_cv_func_hes_getmailhost = yes; then
20160 else
20161 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
20162 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
20163 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20164 echo $ECHO_N "(cached) $ECHO_C" >&6
20165 else
20166 ac_check_lib_save_LIBS=$LIBS
20167 LIBS="-lhesiod $RESOLVLIB $LIBS"
20168 cat >conftest.$ac_ext <<_ACEOF
20169 /* confdefs.h. */
20170 _ACEOF
20171 cat confdefs.h >>conftest.$ac_ext
20172 cat >>conftest.$ac_ext <<_ACEOF
20173 /* end confdefs.h. */
20175 /* Override any GCC internal prototype to avoid an error.
20176 Use char because int might match the return type of a GCC
20177 builtin and then its argument prototype would still apply. */
20178 #ifdef __cplusplus
20179 extern "C"
20180 #endif
20181 char hes_getmailhost ();
20183 main ()
20185 return hes_getmailhost ();
20187 return 0;
20189 _ACEOF
20190 rm -f conftest.$ac_objext conftest$ac_exeext
20191 if { (ac_try="$ac_link"
20192 case "(($ac_try" in
20193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20194 *) ac_try_echo=$ac_try;;
20195 esac
20196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20197 (eval "$ac_link") 2>conftest.er1
20198 ac_status=$?
20199 grep -v '^ *+' conftest.er1 >conftest.err
20200 rm -f conftest.er1
20201 cat conftest.err >&5
20202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203 (exit $ac_status); } && {
20204 test -z "$ac_c_werror_flag" ||
20205 test ! -s conftest.err
20206 } && test -s conftest$ac_exeext &&
20207 $as_test_x conftest$ac_exeext; then
20208 ac_cv_lib_hesiod_hes_getmailhost=yes
20209 else
20210 echo "$as_me: failed program was:" >&5
20211 sed 's/^/| /' conftest.$ac_ext >&5
20213 ac_cv_lib_hesiod_hes_getmailhost=no
20216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20217 conftest$ac_exeext conftest.$ac_ext
20218 LIBS=$ac_check_lib_save_LIBS
20220 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20221 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20222 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20224 cat >>confdefs.h <<\_ACEOF
20225 #define HAVE_LIBHESIOD 1
20226 _ACEOF
20228 else
20236 # Do we need libresolv (due to res_init or Hesiod)?
20237 if test "$resolv" = yes ; then
20239 cat >>confdefs.h <<\_ACEOF
20240 #define HAVE_LIBRESOLV 1
20241 _ACEOF
20245 # These tell us which Kerberos-related libraries to use.
20246 if test "${with_kerberos+set}" = set; then
20248 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
20249 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
20250 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20251 echo $ECHO_N "(cached) $ECHO_C" >&6
20252 else
20253 ac_check_lib_save_LIBS=$LIBS
20254 LIBS="-lcom_err $LIBS"
20255 cat >conftest.$ac_ext <<_ACEOF
20256 /* confdefs.h. */
20257 _ACEOF
20258 cat confdefs.h >>conftest.$ac_ext
20259 cat >>conftest.$ac_ext <<_ACEOF
20260 /* end confdefs.h. */
20262 /* Override any GCC internal prototype to avoid an error.
20263 Use char because int might match the return type of a GCC
20264 builtin and then its argument prototype would still apply. */
20265 #ifdef __cplusplus
20266 extern "C"
20267 #endif
20268 char com_err ();
20270 main ()
20272 return com_err ();
20274 return 0;
20276 _ACEOF
20277 rm -f conftest.$ac_objext conftest$ac_exeext
20278 if { (ac_try="$ac_link"
20279 case "(($ac_try" in
20280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20281 *) ac_try_echo=$ac_try;;
20282 esac
20283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20284 (eval "$ac_link") 2>conftest.er1
20285 ac_status=$?
20286 grep -v '^ *+' conftest.er1 >conftest.err
20287 rm -f conftest.er1
20288 cat conftest.err >&5
20289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20290 (exit $ac_status); } && {
20291 test -z "$ac_c_werror_flag" ||
20292 test ! -s conftest.err
20293 } && test -s conftest$ac_exeext &&
20294 $as_test_x conftest$ac_exeext; then
20295 ac_cv_lib_com_err_com_err=yes
20296 else
20297 echo "$as_me: failed program was:" >&5
20298 sed 's/^/| /' conftest.$ac_ext >&5
20300 ac_cv_lib_com_err_com_err=no
20303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20304 conftest$ac_exeext conftest.$ac_ext
20305 LIBS=$ac_check_lib_save_LIBS
20307 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
20308 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20309 if test $ac_cv_lib_com_err_com_err = yes; then
20310 cat >>confdefs.h <<_ACEOF
20311 #define HAVE_LIBCOM_ERR 1
20312 _ACEOF
20314 LIBS="-lcom_err $LIBS"
20319 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
20320 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
20321 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20322 echo $ECHO_N "(cached) $ECHO_C" >&6
20323 else
20324 ac_check_lib_save_LIBS=$LIBS
20325 LIBS="-lk5crypto $LIBS"
20326 cat >conftest.$ac_ext <<_ACEOF
20327 /* confdefs.h. */
20328 _ACEOF
20329 cat confdefs.h >>conftest.$ac_ext
20330 cat >>conftest.$ac_ext <<_ACEOF
20331 /* end confdefs.h. */
20333 /* Override any GCC internal prototype to avoid an error.
20334 Use char because int might match the return type of a GCC
20335 builtin and then its argument prototype would still apply. */
20336 #ifdef __cplusplus
20337 extern "C"
20338 #endif
20339 char mit_des_cbc_encrypt ();
20341 main ()
20343 return mit_des_cbc_encrypt ();
20345 return 0;
20347 _ACEOF
20348 rm -f conftest.$ac_objext conftest$ac_exeext
20349 if { (ac_try="$ac_link"
20350 case "(($ac_try" in
20351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20352 *) ac_try_echo=$ac_try;;
20353 esac
20354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20355 (eval "$ac_link") 2>conftest.er1
20356 ac_status=$?
20357 grep -v '^ *+' conftest.er1 >conftest.err
20358 rm -f conftest.er1
20359 cat conftest.err >&5
20360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20361 (exit $ac_status); } && {
20362 test -z "$ac_c_werror_flag" ||
20363 test ! -s conftest.err
20364 } && test -s conftest$ac_exeext &&
20365 $as_test_x conftest$ac_exeext; then
20366 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20367 else
20368 echo "$as_me: failed program was:" >&5
20369 sed 's/^/| /' conftest.$ac_ext >&5
20371 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20375 conftest$ac_exeext conftest.$ac_ext
20376 LIBS=$ac_check_lib_save_LIBS
20378 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20379 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20380 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20381 cat >>confdefs.h <<_ACEOF
20382 #define HAVE_LIBK5CRYPTO 1
20383 _ACEOF
20385 LIBS="-lk5crypto $LIBS"
20390 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
20391 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
20392 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20393 echo $ECHO_N "(cached) $ECHO_C" >&6
20394 else
20395 ac_check_lib_save_LIBS=$LIBS
20396 LIBS="-lcrypto $LIBS"
20397 cat >conftest.$ac_ext <<_ACEOF
20398 /* confdefs.h. */
20399 _ACEOF
20400 cat confdefs.h >>conftest.$ac_ext
20401 cat >>conftest.$ac_ext <<_ACEOF
20402 /* end confdefs.h. */
20404 /* Override any GCC internal prototype to avoid an error.
20405 Use char because int might match the return type of a GCC
20406 builtin and then its argument prototype would still apply. */
20407 #ifdef __cplusplus
20408 extern "C"
20409 #endif
20410 char mit_des_cbc_encrypt ();
20412 main ()
20414 return mit_des_cbc_encrypt ();
20416 return 0;
20418 _ACEOF
20419 rm -f conftest.$ac_objext conftest$ac_exeext
20420 if { (ac_try="$ac_link"
20421 case "(($ac_try" in
20422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20423 *) ac_try_echo=$ac_try;;
20424 esac
20425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20426 (eval "$ac_link") 2>conftest.er1
20427 ac_status=$?
20428 grep -v '^ *+' conftest.er1 >conftest.err
20429 rm -f conftest.er1
20430 cat conftest.err >&5
20431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432 (exit $ac_status); } && {
20433 test -z "$ac_c_werror_flag" ||
20434 test ! -s conftest.err
20435 } && test -s conftest$ac_exeext &&
20436 $as_test_x conftest$ac_exeext; then
20437 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20438 else
20439 echo "$as_me: failed program was:" >&5
20440 sed 's/^/| /' conftest.$ac_ext >&5
20442 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20446 conftest$ac_exeext conftest.$ac_ext
20447 LIBS=$ac_check_lib_save_LIBS
20449 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20450 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20451 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20452 cat >>confdefs.h <<_ACEOF
20453 #define HAVE_LIBCRYPTO 1
20454 _ACEOF
20456 LIBS="-lcrypto $LIBS"
20461 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20462 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20463 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20464 echo $ECHO_N "(cached) $ECHO_C" >&6
20465 else
20466 ac_check_lib_save_LIBS=$LIBS
20467 LIBS="-lkrb5 $LIBS"
20468 cat >conftest.$ac_ext <<_ACEOF
20469 /* confdefs.h. */
20470 _ACEOF
20471 cat confdefs.h >>conftest.$ac_ext
20472 cat >>conftest.$ac_ext <<_ACEOF
20473 /* end confdefs.h. */
20475 /* Override any GCC internal prototype to avoid an error.
20476 Use char because int might match the return type of a GCC
20477 builtin and then its argument prototype would still apply. */
20478 #ifdef __cplusplus
20479 extern "C"
20480 #endif
20481 char krb5_init_context ();
20483 main ()
20485 return krb5_init_context ();
20487 return 0;
20489 _ACEOF
20490 rm -f conftest.$ac_objext conftest$ac_exeext
20491 if { (ac_try="$ac_link"
20492 case "(($ac_try" in
20493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20494 *) ac_try_echo=$ac_try;;
20495 esac
20496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20497 (eval "$ac_link") 2>conftest.er1
20498 ac_status=$?
20499 grep -v '^ *+' conftest.er1 >conftest.err
20500 rm -f conftest.er1
20501 cat conftest.err >&5
20502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20503 (exit $ac_status); } && {
20504 test -z "$ac_c_werror_flag" ||
20505 test ! -s conftest.err
20506 } && test -s conftest$ac_exeext &&
20507 $as_test_x conftest$ac_exeext; then
20508 ac_cv_lib_krb5_krb5_init_context=yes
20509 else
20510 echo "$as_me: failed program was:" >&5
20511 sed 's/^/| /' conftest.$ac_ext >&5
20513 ac_cv_lib_krb5_krb5_init_context=no
20516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20517 conftest$ac_exeext conftest.$ac_ext
20518 LIBS=$ac_check_lib_save_LIBS
20520 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20521 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20522 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20523 cat >>confdefs.h <<_ACEOF
20524 #define HAVE_LIBKRB5 1
20525 _ACEOF
20527 LIBS="-lkrb5 $LIBS"
20531 if test "${with_kerberos5+set}" != set; then
20533 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20534 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20535 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20536 echo $ECHO_N "(cached) $ECHO_C" >&6
20537 else
20538 ac_check_lib_save_LIBS=$LIBS
20539 LIBS="-ldes425 $LIBS"
20540 cat >conftest.$ac_ext <<_ACEOF
20541 /* confdefs.h. */
20542 _ACEOF
20543 cat confdefs.h >>conftest.$ac_ext
20544 cat >>conftest.$ac_ext <<_ACEOF
20545 /* end confdefs.h. */
20547 /* Override any GCC internal prototype to avoid an error.
20548 Use char because int might match the return type of a GCC
20549 builtin and then its argument prototype would still apply. */
20550 #ifdef __cplusplus
20551 extern "C"
20552 #endif
20553 char des_cbc_encrypt ();
20555 main ()
20557 return des_cbc_encrypt ();
20559 return 0;
20561 _ACEOF
20562 rm -f conftest.$ac_objext conftest$ac_exeext
20563 if { (ac_try="$ac_link"
20564 case "(($ac_try" in
20565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20566 *) ac_try_echo=$ac_try;;
20567 esac
20568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20569 (eval "$ac_link") 2>conftest.er1
20570 ac_status=$?
20571 grep -v '^ *+' conftest.er1 >conftest.err
20572 rm -f conftest.er1
20573 cat conftest.err >&5
20574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20575 (exit $ac_status); } && {
20576 test -z "$ac_c_werror_flag" ||
20577 test ! -s conftest.err
20578 } && test -s conftest$ac_exeext &&
20579 $as_test_x conftest$ac_exeext; then
20580 ac_cv_lib_des425_des_cbc_encrypt=yes
20581 else
20582 echo "$as_me: failed program was:" >&5
20583 sed 's/^/| /' conftest.$ac_ext >&5
20585 ac_cv_lib_des425_des_cbc_encrypt=no
20588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20589 conftest$ac_exeext conftest.$ac_ext
20590 LIBS=$ac_check_lib_save_LIBS
20592 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20593 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20594 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20595 cat >>confdefs.h <<_ACEOF
20596 #define HAVE_LIBDES425 1
20597 _ACEOF
20599 LIBS="-ldes425 $LIBS"
20601 else
20603 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20604 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20605 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20606 echo $ECHO_N "(cached) $ECHO_C" >&6
20607 else
20608 ac_check_lib_save_LIBS=$LIBS
20609 LIBS="-ldes $LIBS"
20610 cat >conftest.$ac_ext <<_ACEOF
20611 /* confdefs.h. */
20612 _ACEOF
20613 cat confdefs.h >>conftest.$ac_ext
20614 cat >>conftest.$ac_ext <<_ACEOF
20615 /* end confdefs.h. */
20617 /* Override any GCC internal prototype to avoid an error.
20618 Use char because int might match the return type of a GCC
20619 builtin and then its argument prototype would still apply. */
20620 #ifdef __cplusplus
20621 extern "C"
20622 #endif
20623 char des_cbc_encrypt ();
20625 main ()
20627 return des_cbc_encrypt ();
20629 return 0;
20631 _ACEOF
20632 rm -f conftest.$ac_objext conftest$ac_exeext
20633 if { (ac_try="$ac_link"
20634 case "(($ac_try" in
20635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20636 *) ac_try_echo=$ac_try;;
20637 esac
20638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20639 (eval "$ac_link") 2>conftest.er1
20640 ac_status=$?
20641 grep -v '^ *+' conftest.er1 >conftest.err
20642 rm -f conftest.er1
20643 cat conftest.err >&5
20644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20645 (exit $ac_status); } && {
20646 test -z "$ac_c_werror_flag" ||
20647 test ! -s conftest.err
20648 } && test -s conftest$ac_exeext &&
20649 $as_test_x conftest$ac_exeext; then
20650 ac_cv_lib_des_des_cbc_encrypt=yes
20651 else
20652 echo "$as_me: failed program was:" >&5
20653 sed 's/^/| /' conftest.$ac_ext >&5
20655 ac_cv_lib_des_des_cbc_encrypt=no
20658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20659 conftest$ac_exeext conftest.$ac_ext
20660 LIBS=$ac_check_lib_save_LIBS
20662 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20663 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20664 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20665 cat >>confdefs.h <<_ACEOF
20666 #define HAVE_LIBDES 1
20667 _ACEOF
20669 LIBS="-ldes $LIBS"
20676 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20677 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20678 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20679 echo $ECHO_N "(cached) $ECHO_C" >&6
20680 else
20681 ac_check_lib_save_LIBS=$LIBS
20682 LIBS="-lkrb4 $LIBS"
20683 cat >conftest.$ac_ext <<_ACEOF
20684 /* confdefs.h. */
20685 _ACEOF
20686 cat confdefs.h >>conftest.$ac_ext
20687 cat >>conftest.$ac_ext <<_ACEOF
20688 /* end confdefs.h. */
20690 /* Override any GCC internal prototype to avoid an error.
20691 Use char because int might match the return type of a GCC
20692 builtin and then its argument prototype would still apply. */
20693 #ifdef __cplusplus
20694 extern "C"
20695 #endif
20696 char krb_get_cred ();
20698 main ()
20700 return krb_get_cred ();
20702 return 0;
20704 _ACEOF
20705 rm -f conftest.$ac_objext conftest$ac_exeext
20706 if { (ac_try="$ac_link"
20707 case "(($ac_try" in
20708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20709 *) ac_try_echo=$ac_try;;
20710 esac
20711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20712 (eval "$ac_link") 2>conftest.er1
20713 ac_status=$?
20714 grep -v '^ *+' conftest.er1 >conftest.err
20715 rm -f conftest.er1
20716 cat conftest.err >&5
20717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20718 (exit $ac_status); } && {
20719 test -z "$ac_c_werror_flag" ||
20720 test ! -s conftest.err
20721 } && test -s conftest$ac_exeext &&
20722 $as_test_x conftest$ac_exeext; then
20723 ac_cv_lib_krb4_krb_get_cred=yes
20724 else
20725 echo "$as_me: failed program was:" >&5
20726 sed 's/^/| /' conftest.$ac_ext >&5
20728 ac_cv_lib_krb4_krb_get_cred=no
20731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20732 conftest$ac_exeext conftest.$ac_ext
20733 LIBS=$ac_check_lib_save_LIBS
20735 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20736 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20737 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20738 cat >>confdefs.h <<_ACEOF
20739 #define HAVE_LIBKRB4 1
20740 _ACEOF
20742 LIBS="-lkrb4 $LIBS"
20744 else
20746 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20747 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
20748 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20749 echo $ECHO_N "(cached) $ECHO_C" >&6
20750 else
20751 ac_check_lib_save_LIBS=$LIBS
20752 LIBS="-lkrb $LIBS"
20753 cat >conftest.$ac_ext <<_ACEOF
20754 /* confdefs.h. */
20755 _ACEOF
20756 cat confdefs.h >>conftest.$ac_ext
20757 cat >>conftest.$ac_ext <<_ACEOF
20758 /* end confdefs.h. */
20760 /* Override any GCC internal prototype to avoid an error.
20761 Use char because int might match the return type of a GCC
20762 builtin and then its argument prototype would still apply. */
20763 #ifdef __cplusplus
20764 extern "C"
20765 #endif
20766 char krb_get_cred ();
20768 main ()
20770 return krb_get_cred ();
20772 return 0;
20774 _ACEOF
20775 rm -f conftest.$ac_objext conftest$ac_exeext
20776 if { (ac_try="$ac_link"
20777 case "(($ac_try" in
20778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20779 *) ac_try_echo=$ac_try;;
20780 esac
20781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20782 (eval "$ac_link") 2>conftest.er1
20783 ac_status=$?
20784 grep -v '^ *+' conftest.er1 >conftest.err
20785 rm -f conftest.er1
20786 cat conftest.err >&5
20787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788 (exit $ac_status); } && {
20789 test -z "$ac_c_werror_flag" ||
20790 test ! -s conftest.err
20791 } && test -s conftest$ac_exeext &&
20792 $as_test_x conftest$ac_exeext; then
20793 ac_cv_lib_krb_krb_get_cred=yes
20794 else
20795 echo "$as_me: failed program was:" >&5
20796 sed 's/^/| /' conftest.$ac_ext >&5
20798 ac_cv_lib_krb_krb_get_cred=no
20801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20802 conftest$ac_exeext conftest.$ac_ext
20803 LIBS=$ac_check_lib_save_LIBS
20805 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20806 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20807 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20808 cat >>confdefs.h <<_ACEOF
20809 #define HAVE_LIBKRB 1
20810 _ACEOF
20812 LIBS="-lkrb $LIBS"
20820 if test "${with_kerberos5+set}" = set; then
20822 for ac_header in krb5.h
20824 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20826 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20829 echo $ECHO_N "(cached) $ECHO_C" >&6
20831 ac_res=`eval echo '${'$as_ac_Header'}'`
20832 { echo "$as_me:$LINENO: result: $ac_res" >&5
20833 echo "${ECHO_T}$ac_res" >&6; }
20834 else
20835 # Is the header compilable?
20836 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20837 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20838 cat >conftest.$ac_ext <<_ACEOF
20839 /* confdefs.h. */
20840 _ACEOF
20841 cat confdefs.h >>conftest.$ac_ext
20842 cat >>conftest.$ac_ext <<_ACEOF
20843 /* end confdefs.h. */
20844 $ac_includes_default
20845 #include <$ac_header>
20846 _ACEOF
20847 rm -f conftest.$ac_objext
20848 if { (ac_try="$ac_compile"
20849 case "(($ac_try" in
20850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20851 *) ac_try_echo=$ac_try;;
20852 esac
20853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20854 (eval "$ac_compile") 2>conftest.er1
20855 ac_status=$?
20856 grep -v '^ *+' conftest.er1 >conftest.err
20857 rm -f conftest.er1
20858 cat conftest.err >&5
20859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20860 (exit $ac_status); } && {
20861 test -z "$ac_c_werror_flag" ||
20862 test ! -s conftest.err
20863 } && test -s conftest.$ac_objext; then
20864 ac_header_compiler=yes
20865 else
20866 echo "$as_me: failed program was:" >&5
20867 sed 's/^/| /' conftest.$ac_ext >&5
20869 ac_header_compiler=no
20872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20873 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20874 echo "${ECHO_T}$ac_header_compiler" >&6; }
20876 # Is the header present?
20877 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20878 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20879 cat >conftest.$ac_ext <<_ACEOF
20880 /* confdefs.h. */
20881 _ACEOF
20882 cat confdefs.h >>conftest.$ac_ext
20883 cat >>conftest.$ac_ext <<_ACEOF
20884 /* end confdefs.h. */
20885 #include <$ac_header>
20886 _ACEOF
20887 if { (ac_try="$ac_cpp conftest.$ac_ext"
20888 case "(($ac_try" in
20889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20890 *) ac_try_echo=$ac_try;;
20891 esac
20892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20894 ac_status=$?
20895 grep -v '^ *+' conftest.er1 >conftest.err
20896 rm -f conftest.er1
20897 cat conftest.err >&5
20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899 (exit $ac_status); } >/dev/null && {
20900 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20901 test ! -s conftest.err
20902 }; then
20903 ac_header_preproc=yes
20904 else
20905 echo "$as_me: failed program was:" >&5
20906 sed 's/^/| /' conftest.$ac_ext >&5
20908 ac_header_preproc=no
20911 rm -f conftest.err conftest.$ac_ext
20912 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20913 echo "${ECHO_T}$ac_header_preproc" >&6; }
20915 # So? What about this header?
20916 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20917 yes:no: )
20918 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20919 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20921 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20922 ac_header_preproc=yes
20924 no:yes:* )
20925 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20926 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20927 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20928 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20929 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20930 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20931 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20932 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20934 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20935 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20936 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20939 esac
20940 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20943 echo $ECHO_N "(cached) $ECHO_C" >&6
20944 else
20945 eval "$as_ac_Header=\$ac_header_preproc"
20947 ac_res=`eval echo '${'$as_ac_Header'}'`
20948 { echo "$as_me:$LINENO: result: $ac_res" >&5
20949 echo "${ECHO_T}$ac_res" >&6; }
20952 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20953 cat >>confdefs.h <<_ACEOF
20954 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20955 _ACEOF
20959 done
20961 else
20963 for ac_header in des.h
20965 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20967 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20969 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20970 echo $ECHO_N "(cached) $ECHO_C" >&6
20972 ac_res=`eval echo '${'$as_ac_Header'}'`
20973 { echo "$as_me:$LINENO: result: $ac_res" >&5
20974 echo "${ECHO_T}$ac_res" >&6; }
20975 else
20976 # Is the header compilable?
20977 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20978 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20979 cat >conftest.$ac_ext <<_ACEOF
20980 /* confdefs.h. */
20981 _ACEOF
20982 cat confdefs.h >>conftest.$ac_ext
20983 cat >>conftest.$ac_ext <<_ACEOF
20984 /* end confdefs.h. */
20985 $ac_includes_default
20986 #include <$ac_header>
20987 _ACEOF
20988 rm -f conftest.$ac_objext
20989 if { (ac_try="$ac_compile"
20990 case "(($ac_try" in
20991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20992 *) ac_try_echo=$ac_try;;
20993 esac
20994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20995 (eval "$ac_compile") 2>conftest.er1
20996 ac_status=$?
20997 grep -v '^ *+' conftest.er1 >conftest.err
20998 rm -f conftest.er1
20999 cat conftest.err >&5
21000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001 (exit $ac_status); } && {
21002 test -z "$ac_c_werror_flag" ||
21003 test ! -s conftest.err
21004 } && test -s conftest.$ac_objext; then
21005 ac_header_compiler=yes
21006 else
21007 echo "$as_me: failed program was:" >&5
21008 sed 's/^/| /' conftest.$ac_ext >&5
21010 ac_header_compiler=no
21013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21014 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21015 echo "${ECHO_T}$ac_header_compiler" >&6; }
21017 # Is the header present?
21018 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21019 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21020 cat >conftest.$ac_ext <<_ACEOF
21021 /* confdefs.h. */
21022 _ACEOF
21023 cat confdefs.h >>conftest.$ac_ext
21024 cat >>conftest.$ac_ext <<_ACEOF
21025 /* end confdefs.h. */
21026 #include <$ac_header>
21027 _ACEOF
21028 if { (ac_try="$ac_cpp conftest.$ac_ext"
21029 case "(($ac_try" in
21030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21031 *) ac_try_echo=$ac_try;;
21032 esac
21033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21034 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21035 ac_status=$?
21036 grep -v '^ *+' conftest.er1 >conftest.err
21037 rm -f conftest.er1
21038 cat conftest.err >&5
21039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21040 (exit $ac_status); } >/dev/null && {
21041 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21042 test ! -s conftest.err
21043 }; then
21044 ac_header_preproc=yes
21045 else
21046 echo "$as_me: failed program was:" >&5
21047 sed 's/^/| /' conftest.$ac_ext >&5
21049 ac_header_preproc=no
21052 rm -f conftest.err conftest.$ac_ext
21053 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21054 echo "${ECHO_T}$ac_header_preproc" >&6; }
21056 # So? What about this header?
21057 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21058 yes:no: )
21059 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21060 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21062 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21063 ac_header_preproc=yes
21065 no:yes:* )
21066 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21067 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21068 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21069 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21070 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21071 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21072 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21073 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21075 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21076 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21077 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21080 esac
21081 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21083 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21084 echo $ECHO_N "(cached) $ECHO_C" >&6
21085 else
21086 eval "$as_ac_Header=\$ac_header_preproc"
21088 ac_res=`eval echo '${'$as_ac_Header'}'`
21089 { echo "$as_me:$LINENO: result: $ac_res" >&5
21090 echo "${ECHO_T}$ac_res" >&6; }
21093 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21094 cat >>confdefs.h <<_ACEOF
21095 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21096 _ACEOF
21098 else
21100 for ac_header in kerberosIV/des.h
21102 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21104 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21107 echo $ECHO_N "(cached) $ECHO_C" >&6
21109 ac_res=`eval echo '${'$as_ac_Header'}'`
21110 { echo "$as_me:$LINENO: result: $ac_res" >&5
21111 echo "${ECHO_T}$ac_res" >&6; }
21112 else
21113 # Is the header compilable?
21114 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21115 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21116 cat >conftest.$ac_ext <<_ACEOF
21117 /* confdefs.h. */
21118 _ACEOF
21119 cat confdefs.h >>conftest.$ac_ext
21120 cat >>conftest.$ac_ext <<_ACEOF
21121 /* end confdefs.h. */
21122 $ac_includes_default
21123 #include <$ac_header>
21124 _ACEOF
21125 rm -f conftest.$ac_objext
21126 if { (ac_try="$ac_compile"
21127 case "(($ac_try" in
21128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21129 *) ac_try_echo=$ac_try;;
21130 esac
21131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21132 (eval "$ac_compile") 2>conftest.er1
21133 ac_status=$?
21134 grep -v '^ *+' conftest.er1 >conftest.err
21135 rm -f conftest.er1
21136 cat conftest.err >&5
21137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21138 (exit $ac_status); } && {
21139 test -z "$ac_c_werror_flag" ||
21140 test ! -s conftest.err
21141 } && test -s conftest.$ac_objext; then
21142 ac_header_compiler=yes
21143 else
21144 echo "$as_me: failed program was:" >&5
21145 sed 's/^/| /' conftest.$ac_ext >&5
21147 ac_header_compiler=no
21150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21151 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21152 echo "${ECHO_T}$ac_header_compiler" >&6; }
21154 # Is the header present?
21155 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21156 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21157 cat >conftest.$ac_ext <<_ACEOF
21158 /* confdefs.h. */
21159 _ACEOF
21160 cat confdefs.h >>conftest.$ac_ext
21161 cat >>conftest.$ac_ext <<_ACEOF
21162 /* end confdefs.h. */
21163 #include <$ac_header>
21164 _ACEOF
21165 if { (ac_try="$ac_cpp conftest.$ac_ext"
21166 case "(($ac_try" in
21167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21168 *) ac_try_echo=$ac_try;;
21169 esac
21170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21171 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21172 ac_status=$?
21173 grep -v '^ *+' conftest.er1 >conftest.err
21174 rm -f conftest.er1
21175 cat conftest.err >&5
21176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21177 (exit $ac_status); } >/dev/null && {
21178 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21179 test ! -s conftest.err
21180 }; then
21181 ac_header_preproc=yes
21182 else
21183 echo "$as_me: failed program was:" >&5
21184 sed 's/^/| /' conftest.$ac_ext >&5
21186 ac_header_preproc=no
21189 rm -f conftest.err conftest.$ac_ext
21190 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21191 echo "${ECHO_T}$ac_header_preproc" >&6; }
21193 # So? What about this header?
21194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21195 yes:no: )
21196 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21197 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21199 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21200 ac_header_preproc=yes
21202 no:yes:* )
21203 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21204 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21205 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21206 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21207 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21208 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21209 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21210 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21212 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21213 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21214 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21217 esac
21218 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21221 echo $ECHO_N "(cached) $ECHO_C" >&6
21222 else
21223 eval "$as_ac_Header=\$ac_header_preproc"
21225 ac_res=`eval echo '${'$as_ac_Header'}'`
21226 { echo "$as_me:$LINENO: result: $ac_res" >&5
21227 echo "${ECHO_T}$ac_res" >&6; }
21230 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21231 cat >>confdefs.h <<_ACEOF
21232 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21233 _ACEOF
21235 else
21237 for ac_header in kerberos/des.h
21239 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21241 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21244 echo $ECHO_N "(cached) $ECHO_C" >&6
21246 ac_res=`eval echo '${'$as_ac_Header'}'`
21247 { echo "$as_me:$LINENO: result: $ac_res" >&5
21248 echo "${ECHO_T}$ac_res" >&6; }
21249 else
21250 # Is the header compilable?
21251 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21252 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21253 cat >conftest.$ac_ext <<_ACEOF
21254 /* confdefs.h. */
21255 _ACEOF
21256 cat confdefs.h >>conftest.$ac_ext
21257 cat >>conftest.$ac_ext <<_ACEOF
21258 /* end confdefs.h. */
21259 $ac_includes_default
21260 #include <$ac_header>
21261 _ACEOF
21262 rm -f conftest.$ac_objext
21263 if { (ac_try="$ac_compile"
21264 case "(($ac_try" in
21265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21266 *) ac_try_echo=$ac_try;;
21267 esac
21268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21269 (eval "$ac_compile") 2>conftest.er1
21270 ac_status=$?
21271 grep -v '^ *+' conftest.er1 >conftest.err
21272 rm -f conftest.er1
21273 cat conftest.err >&5
21274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21275 (exit $ac_status); } && {
21276 test -z "$ac_c_werror_flag" ||
21277 test ! -s conftest.err
21278 } && test -s conftest.$ac_objext; then
21279 ac_header_compiler=yes
21280 else
21281 echo "$as_me: failed program was:" >&5
21282 sed 's/^/| /' conftest.$ac_ext >&5
21284 ac_header_compiler=no
21287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21288 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21289 echo "${ECHO_T}$ac_header_compiler" >&6; }
21291 # Is the header present?
21292 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21293 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21294 cat >conftest.$ac_ext <<_ACEOF
21295 /* confdefs.h. */
21296 _ACEOF
21297 cat confdefs.h >>conftest.$ac_ext
21298 cat >>conftest.$ac_ext <<_ACEOF
21299 /* end confdefs.h. */
21300 #include <$ac_header>
21301 _ACEOF
21302 if { (ac_try="$ac_cpp conftest.$ac_ext"
21303 case "(($ac_try" in
21304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21305 *) ac_try_echo=$ac_try;;
21306 esac
21307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21308 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21309 ac_status=$?
21310 grep -v '^ *+' conftest.er1 >conftest.err
21311 rm -f conftest.er1
21312 cat conftest.err >&5
21313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21314 (exit $ac_status); } >/dev/null && {
21315 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21316 test ! -s conftest.err
21317 }; then
21318 ac_header_preproc=yes
21319 else
21320 echo "$as_me: failed program was:" >&5
21321 sed 's/^/| /' conftest.$ac_ext >&5
21323 ac_header_preproc=no
21326 rm -f conftest.err conftest.$ac_ext
21327 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21328 echo "${ECHO_T}$ac_header_preproc" >&6; }
21330 # So? What about this header?
21331 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21332 yes:no: )
21333 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21334 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21336 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21337 ac_header_preproc=yes
21339 no:yes:* )
21340 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21341 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21342 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21343 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21344 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21345 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21346 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21347 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21349 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21350 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21351 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21354 esac
21355 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21358 echo $ECHO_N "(cached) $ECHO_C" >&6
21359 else
21360 eval "$as_ac_Header=\$ac_header_preproc"
21362 ac_res=`eval echo '${'$as_ac_Header'}'`
21363 { echo "$as_me:$LINENO: result: $ac_res" >&5
21364 echo "${ECHO_T}$ac_res" >&6; }
21367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21368 cat >>confdefs.h <<_ACEOF
21369 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21370 _ACEOF
21374 done
21378 done
21382 done
21385 for ac_header in krb.h
21387 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21388 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21389 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21391 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21392 echo $ECHO_N "(cached) $ECHO_C" >&6
21394 ac_res=`eval echo '${'$as_ac_Header'}'`
21395 { echo "$as_me:$LINENO: result: $ac_res" >&5
21396 echo "${ECHO_T}$ac_res" >&6; }
21397 else
21398 # Is the header compilable?
21399 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21400 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21401 cat >conftest.$ac_ext <<_ACEOF
21402 /* confdefs.h. */
21403 _ACEOF
21404 cat confdefs.h >>conftest.$ac_ext
21405 cat >>conftest.$ac_ext <<_ACEOF
21406 /* end confdefs.h. */
21407 $ac_includes_default
21408 #include <$ac_header>
21409 _ACEOF
21410 rm -f conftest.$ac_objext
21411 if { (ac_try="$ac_compile"
21412 case "(($ac_try" in
21413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21414 *) ac_try_echo=$ac_try;;
21415 esac
21416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21417 (eval "$ac_compile") 2>conftest.er1
21418 ac_status=$?
21419 grep -v '^ *+' conftest.er1 >conftest.err
21420 rm -f conftest.er1
21421 cat conftest.err >&5
21422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21423 (exit $ac_status); } && {
21424 test -z "$ac_c_werror_flag" ||
21425 test ! -s conftest.err
21426 } && test -s conftest.$ac_objext; then
21427 ac_header_compiler=yes
21428 else
21429 echo "$as_me: failed program was:" >&5
21430 sed 's/^/| /' conftest.$ac_ext >&5
21432 ac_header_compiler=no
21435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21436 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21437 echo "${ECHO_T}$ac_header_compiler" >&6; }
21439 # Is the header present?
21440 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21441 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21442 cat >conftest.$ac_ext <<_ACEOF
21443 /* confdefs.h. */
21444 _ACEOF
21445 cat confdefs.h >>conftest.$ac_ext
21446 cat >>conftest.$ac_ext <<_ACEOF
21447 /* end confdefs.h. */
21448 #include <$ac_header>
21449 _ACEOF
21450 if { (ac_try="$ac_cpp conftest.$ac_ext"
21451 case "(($ac_try" in
21452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21453 *) ac_try_echo=$ac_try;;
21454 esac
21455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21456 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21457 ac_status=$?
21458 grep -v '^ *+' conftest.er1 >conftest.err
21459 rm -f conftest.er1
21460 cat conftest.err >&5
21461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462 (exit $ac_status); } >/dev/null && {
21463 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21464 test ! -s conftest.err
21465 }; then
21466 ac_header_preproc=yes
21467 else
21468 echo "$as_me: failed program was:" >&5
21469 sed 's/^/| /' conftest.$ac_ext >&5
21471 ac_header_preproc=no
21474 rm -f conftest.err conftest.$ac_ext
21475 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21476 echo "${ECHO_T}$ac_header_preproc" >&6; }
21478 # So? What about this header?
21479 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21480 yes:no: )
21481 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21482 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21484 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21485 ac_header_preproc=yes
21487 no:yes:* )
21488 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21489 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21490 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21491 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21492 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21493 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21494 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21495 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21496 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21497 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21498 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21499 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21502 esac
21503 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21506 echo $ECHO_N "(cached) $ECHO_C" >&6
21507 else
21508 eval "$as_ac_Header=\$ac_header_preproc"
21510 ac_res=`eval echo '${'$as_ac_Header'}'`
21511 { echo "$as_me:$LINENO: result: $ac_res" >&5
21512 echo "${ECHO_T}$ac_res" >&6; }
21515 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21516 cat >>confdefs.h <<_ACEOF
21517 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21518 _ACEOF
21520 else
21522 for ac_header in kerberosIV/krb.h
21524 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21526 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21528 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21529 echo $ECHO_N "(cached) $ECHO_C" >&6
21531 ac_res=`eval echo '${'$as_ac_Header'}'`
21532 { echo "$as_me:$LINENO: result: $ac_res" >&5
21533 echo "${ECHO_T}$ac_res" >&6; }
21534 else
21535 # Is the header compilable?
21536 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21537 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21538 cat >conftest.$ac_ext <<_ACEOF
21539 /* confdefs.h. */
21540 _ACEOF
21541 cat confdefs.h >>conftest.$ac_ext
21542 cat >>conftest.$ac_ext <<_ACEOF
21543 /* end confdefs.h. */
21544 $ac_includes_default
21545 #include <$ac_header>
21546 _ACEOF
21547 rm -f conftest.$ac_objext
21548 if { (ac_try="$ac_compile"
21549 case "(($ac_try" in
21550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21551 *) ac_try_echo=$ac_try;;
21552 esac
21553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21554 (eval "$ac_compile") 2>conftest.er1
21555 ac_status=$?
21556 grep -v '^ *+' conftest.er1 >conftest.err
21557 rm -f conftest.er1
21558 cat conftest.err >&5
21559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21560 (exit $ac_status); } && {
21561 test -z "$ac_c_werror_flag" ||
21562 test ! -s conftest.err
21563 } && test -s conftest.$ac_objext; then
21564 ac_header_compiler=yes
21565 else
21566 echo "$as_me: failed program was:" >&5
21567 sed 's/^/| /' conftest.$ac_ext >&5
21569 ac_header_compiler=no
21572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21573 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21574 echo "${ECHO_T}$ac_header_compiler" >&6; }
21576 # Is the header present?
21577 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21578 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21579 cat >conftest.$ac_ext <<_ACEOF
21580 /* confdefs.h. */
21581 _ACEOF
21582 cat confdefs.h >>conftest.$ac_ext
21583 cat >>conftest.$ac_ext <<_ACEOF
21584 /* end confdefs.h. */
21585 #include <$ac_header>
21586 _ACEOF
21587 if { (ac_try="$ac_cpp conftest.$ac_ext"
21588 case "(($ac_try" in
21589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21590 *) ac_try_echo=$ac_try;;
21591 esac
21592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21594 ac_status=$?
21595 grep -v '^ *+' conftest.er1 >conftest.err
21596 rm -f conftest.er1
21597 cat conftest.err >&5
21598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21599 (exit $ac_status); } >/dev/null && {
21600 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21601 test ! -s conftest.err
21602 }; then
21603 ac_header_preproc=yes
21604 else
21605 echo "$as_me: failed program was:" >&5
21606 sed 's/^/| /' conftest.$ac_ext >&5
21608 ac_header_preproc=no
21611 rm -f conftest.err conftest.$ac_ext
21612 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21613 echo "${ECHO_T}$ac_header_preproc" >&6; }
21615 # So? What about this header?
21616 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21617 yes:no: )
21618 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21619 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21621 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21622 ac_header_preproc=yes
21624 no:yes:* )
21625 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21626 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21627 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21628 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21629 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21630 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21631 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21632 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21634 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21635 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21636 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21639 esac
21640 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21643 echo $ECHO_N "(cached) $ECHO_C" >&6
21644 else
21645 eval "$as_ac_Header=\$ac_header_preproc"
21647 ac_res=`eval echo '${'$as_ac_Header'}'`
21648 { echo "$as_me:$LINENO: result: $ac_res" >&5
21649 echo "${ECHO_T}$ac_res" >&6; }
21652 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21653 cat >>confdefs.h <<_ACEOF
21654 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21655 _ACEOF
21657 else
21659 for ac_header in kerberos/krb.h
21661 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21662 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21663 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21666 echo $ECHO_N "(cached) $ECHO_C" >&6
21668 ac_res=`eval echo '${'$as_ac_Header'}'`
21669 { echo "$as_me:$LINENO: result: $ac_res" >&5
21670 echo "${ECHO_T}$ac_res" >&6; }
21671 else
21672 # Is the header compilable?
21673 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21674 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21675 cat >conftest.$ac_ext <<_ACEOF
21676 /* confdefs.h. */
21677 _ACEOF
21678 cat confdefs.h >>conftest.$ac_ext
21679 cat >>conftest.$ac_ext <<_ACEOF
21680 /* end confdefs.h. */
21681 $ac_includes_default
21682 #include <$ac_header>
21683 _ACEOF
21684 rm -f conftest.$ac_objext
21685 if { (ac_try="$ac_compile"
21686 case "(($ac_try" in
21687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21688 *) ac_try_echo=$ac_try;;
21689 esac
21690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21691 (eval "$ac_compile") 2>conftest.er1
21692 ac_status=$?
21693 grep -v '^ *+' conftest.er1 >conftest.err
21694 rm -f conftest.er1
21695 cat conftest.err >&5
21696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21697 (exit $ac_status); } && {
21698 test -z "$ac_c_werror_flag" ||
21699 test ! -s conftest.err
21700 } && test -s conftest.$ac_objext; then
21701 ac_header_compiler=yes
21702 else
21703 echo "$as_me: failed program was:" >&5
21704 sed 's/^/| /' conftest.$ac_ext >&5
21706 ac_header_compiler=no
21709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21710 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21711 echo "${ECHO_T}$ac_header_compiler" >&6; }
21713 # Is the header present?
21714 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21715 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21716 cat >conftest.$ac_ext <<_ACEOF
21717 /* confdefs.h. */
21718 _ACEOF
21719 cat confdefs.h >>conftest.$ac_ext
21720 cat >>conftest.$ac_ext <<_ACEOF
21721 /* end confdefs.h. */
21722 #include <$ac_header>
21723 _ACEOF
21724 if { (ac_try="$ac_cpp conftest.$ac_ext"
21725 case "(($ac_try" in
21726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21727 *) ac_try_echo=$ac_try;;
21728 esac
21729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21731 ac_status=$?
21732 grep -v '^ *+' conftest.er1 >conftest.err
21733 rm -f conftest.er1
21734 cat conftest.err >&5
21735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21736 (exit $ac_status); } >/dev/null && {
21737 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21738 test ! -s conftest.err
21739 }; then
21740 ac_header_preproc=yes
21741 else
21742 echo "$as_me: failed program was:" >&5
21743 sed 's/^/| /' conftest.$ac_ext >&5
21745 ac_header_preproc=no
21748 rm -f conftest.err conftest.$ac_ext
21749 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21750 echo "${ECHO_T}$ac_header_preproc" >&6; }
21752 # So? What about this header?
21753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21754 yes:no: )
21755 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21756 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21757 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21758 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21759 ac_header_preproc=yes
21761 no:yes:* )
21762 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21763 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21764 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21765 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21766 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21767 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21768 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21769 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21770 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21771 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21772 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21773 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21776 esac
21777 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21780 echo $ECHO_N "(cached) $ECHO_C" >&6
21781 else
21782 eval "$as_ac_Header=\$ac_header_preproc"
21784 ac_res=`eval echo '${'$as_ac_Header'}'`
21785 { echo "$as_me:$LINENO: result: $ac_res" >&5
21786 echo "${ECHO_T}$ac_res" >&6; }
21789 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21790 cat >>confdefs.h <<_ACEOF
21791 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21792 _ACEOF
21796 done
21800 done
21804 done
21808 for ac_header in com_err.h
21810 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21812 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21815 echo $ECHO_N "(cached) $ECHO_C" >&6
21817 ac_res=`eval echo '${'$as_ac_Header'}'`
21818 { echo "$as_me:$LINENO: result: $ac_res" >&5
21819 echo "${ECHO_T}$ac_res" >&6; }
21820 else
21821 # Is the header compilable?
21822 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21823 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21824 cat >conftest.$ac_ext <<_ACEOF
21825 /* confdefs.h. */
21826 _ACEOF
21827 cat confdefs.h >>conftest.$ac_ext
21828 cat >>conftest.$ac_ext <<_ACEOF
21829 /* end confdefs.h. */
21830 $ac_includes_default
21831 #include <$ac_header>
21832 _ACEOF
21833 rm -f conftest.$ac_objext
21834 if { (ac_try="$ac_compile"
21835 case "(($ac_try" in
21836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21837 *) ac_try_echo=$ac_try;;
21838 esac
21839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21840 (eval "$ac_compile") 2>conftest.er1
21841 ac_status=$?
21842 grep -v '^ *+' conftest.er1 >conftest.err
21843 rm -f conftest.er1
21844 cat conftest.err >&5
21845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21846 (exit $ac_status); } && {
21847 test -z "$ac_c_werror_flag" ||
21848 test ! -s conftest.err
21849 } && test -s conftest.$ac_objext; then
21850 ac_header_compiler=yes
21851 else
21852 echo "$as_me: failed program was:" >&5
21853 sed 's/^/| /' conftest.$ac_ext >&5
21855 ac_header_compiler=no
21858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21859 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21860 echo "${ECHO_T}$ac_header_compiler" >&6; }
21862 # Is the header present?
21863 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21864 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21865 cat >conftest.$ac_ext <<_ACEOF
21866 /* confdefs.h. */
21867 _ACEOF
21868 cat confdefs.h >>conftest.$ac_ext
21869 cat >>conftest.$ac_ext <<_ACEOF
21870 /* end confdefs.h. */
21871 #include <$ac_header>
21872 _ACEOF
21873 if { (ac_try="$ac_cpp conftest.$ac_ext"
21874 case "(($ac_try" in
21875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21876 *) ac_try_echo=$ac_try;;
21877 esac
21878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21879 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21880 ac_status=$?
21881 grep -v '^ *+' conftest.er1 >conftest.err
21882 rm -f conftest.er1
21883 cat conftest.err >&5
21884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21885 (exit $ac_status); } >/dev/null && {
21886 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21887 test ! -s conftest.err
21888 }; then
21889 ac_header_preproc=yes
21890 else
21891 echo "$as_me: failed program was:" >&5
21892 sed 's/^/| /' conftest.$ac_ext >&5
21894 ac_header_preproc=no
21897 rm -f conftest.err conftest.$ac_ext
21898 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21899 echo "${ECHO_T}$ac_header_preproc" >&6; }
21901 # So? What about this header?
21902 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21903 yes:no: )
21904 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21905 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21906 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21907 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21908 ac_header_preproc=yes
21910 no:yes:* )
21911 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21912 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21913 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21914 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21915 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21916 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21917 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21918 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21920 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21921 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21922 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21925 esac
21926 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21928 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21929 echo $ECHO_N "(cached) $ECHO_C" >&6
21930 else
21931 eval "$as_ac_Header=\$ac_header_preproc"
21933 ac_res=`eval echo '${'$as_ac_Header'}'`
21934 { echo "$as_me:$LINENO: result: $ac_res" >&5
21935 echo "${ECHO_T}$ac_res" >&6; }
21938 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21939 cat >>confdefs.h <<_ACEOF
21940 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21941 _ACEOF
21945 done
21949 # Solaris requires -lintl if you want strerror (which calls dgettext)
21950 # to return localized messages.
21952 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21953 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
21954 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21955 echo $ECHO_N "(cached) $ECHO_C" >&6
21956 else
21957 ac_check_lib_save_LIBS=$LIBS
21958 LIBS="-lintl $LIBS"
21959 cat >conftest.$ac_ext <<_ACEOF
21960 /* confdefs.h. */
21961 _ACEOF
21962 cat confdefs.h >>conftest.$ac_ext
21963 cat >>conftest.$ac_ext <<_ACEOF
21964 /* end confdefs.h. */
21966 /* Override any GCC internal prototype to avoid an error.
21967 Use char because int might match the return type of a GCC
21968 builtin and then its argument prototype would still apply. */
21969 #ifdef __cplusplus
21970 extern "C"
21971 #endif
21972 char dgettext ();
21974 main ()
21976 return dgettext ();
21978 return 0;
21980 _ACEOF
21981 rm -f conftest.$ac_objext conftest$ac_exeext
21982 if { (ac_try="$ac_link"
21983 case "(($ac_try" in
21984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21985 *) ac_try_echo=$ac_try;;
21986 esac
21987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21988 (eval "$ac_link") 2>conftest.er1
21989 ac_status=$?
21990 grep -v '^ *+' conftest.er1 >conftest.err
21991 rm -f conftest.er1
21992 cat conftest.err >&5
21993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994 (exit $ac_status); } && {
21995 test -z "$ac_c_werror_flag" ||
21996 test ! -s conftest.err
21997 } && test -s conftest$ac_exeext &&
21998 $as_test_x conftest$ac_exeext; then
21999 ac_cv_lib_intl_dgettext=yes
22000 else
22001 echo "$as_me: failed program was:" >&5
22002 sed 's/^/| /' conftest.$ac_ext >&5
22004 ac_cv_lib_intl_dgettext=no
22007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22008 conftest$ac_exeext conftest.$ac_ext
22009 LIBS=$ac_check_lib_save_LIBS
22011 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
22012 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22013 if test $ac_cv_lib_intl_dgettext = yes; then
22014 cat >>confdefs.h <<_ACEOF
22015 #define HAVE_LIBINTL 1
22016 _ACEOF
22018 LIBS="-lintl $LIBS"
22023 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
22024 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
22025 if test "${emacs_cv_localtime_cache+set}" = set; then
22026 echo $ECHO_N "(cached) $ECHO_C" >&6
22027 else
22028 if test x$ac_cv_func_tzset = xyes; then
22029 if test "$cross_compiling" = yes; then
22030 # If we have tzset, assume the worst when cross-compiling.
22031 emacs_cv_localtime_cache=yes
22032 else
22033 cat >conftest.$ac_ext <<_ACEOF
22034 /* confdefs.h. */
22035 _ACEOF
22036 cat confdefs.h >>conftest.$ac_ext
22037 cat >>conftest.$ac_ext <<_ACEOF
22038 /* end confdefs.h. */
22039 #include <time.h>
22040 extern char **environ;
22041 unset_TZ ()
22043 char **from, **to;
22044 for (to = from = environ; (*to = *from); from++)
22045 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22046 to++;
22048 char TZ_GMT0[] = "TZ=GMT0";
22049 char TZ_PST8[] = "TZ=PST8";
22050 main()
22052 time_t now = time ((time_t *) 0);
22053 int hour_GMT0, hour_unset;
22054 if (putenv (TZ_GMT0) != 0)
22055 exit (1);
22056 hour_GMT0 = localtime (&now)->tm_hour;
22057 unset_TZ ();
22058 hour_unset = localtime (&now)->tm_hour;
22059 if (putenv (TZ_PST8) != 0)
22060 exit (1);
22061 if (localtime (&now)->tm_hour == hour_GMT0)
22062 exit (1);
22063 unset_TZ ();
22064 if (localtime (&now)->tm_hour != hour_unset)
22065 exit (1);
22066 exit (0);
22068 _ACEOF
22069 rm -f conftest$ac_exeext
22070 if { (ac_try="$ac_link"
22071 case "(($ac_try" in
22072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22073 *) ac_try_echo=$ac_try;;
22074 esac
22075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22076 (eval "$ac_link") 2>&5
22077 ac_status=$?
22078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22079 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22080 { (case "(($ac_try" in
22081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22082 *) ac_try_echo=$ac_try;;
22083 esac
22084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22085 (eval "$ac_try") 2>&5
22086 ac_status=$?
22087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22088 (exit $ac_status); }; }; then
22089 emacs_cv_localtime_cache=no
22090 else
22091 echo "$as_me: program exited with status $ac_status" >&5
22092 echo "$as_me: failed program was:" >&5
22093 sed 's/^/| /' conftest.$ac_ext >&5
22095 ( exit $ac_status )
22096 emacs_cv_localtime_cache=yes
22098 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22102 else
22103 # If we lack tzset, report that localtime does not cache TZ,
22104 # since we can't invalidate the cache if we don't have tzset.
22105 emacs_cv_localtime_cache=no
22108 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
22109 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22110 if test $emacs_cv_localtime_cache = yes; then
22112 cat >>confdefs.h <<\_ACEOF
22113 #define LOCALTIME_CACHE 1
22114 _ACEOF
22118 if test "x$HAVE_TIMEVAL" = xyes; then
22120 for ac_func in gettimeofday
22122 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22123 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22124 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22125 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22126 echo $ECHO_N "(cached) $ECHO_C" >&6
22127 else
22128 cat >conftest.$ac_ext <<_ACEOF
22129 /* confdefs.h. */
22130 _ACEOF
22131 cat confdefs.h >>conftest.$ac_ext
22132 cat >>conftest.$ac_ext <<_ACEOF
22133 /* end confdefs.h. */
22134 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22135 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22136 #define $ac_func innocuous_$ac_func
22138 /* System header to define __stub macros and hopefully few prototypes,
22139 which can conflict with char $ac_func (); below.
22140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22141 <limits.h> exists even on freestanding compilers. */
22143 #ifdef __STDC__
22144 # include <limits.h>
22145 #else
22146 # include <assert.h>
22147 #endif
22149 #undef $ac_func
22151 /* Override any GCC internal prototype to avoid an error.
22152 Use char because int might match the return type of a GCC
22153 builtin and then its argument prototype would still apply. */
22154 #ifdef __cplusplus
22155 extern "C"
22156 #endif
22157 char $ac_func ();
22158 /* The GNU C library defines this for functions which it implements
22159 to always fail with ENOSYS. Some functions are actually named
22160 something starting with __ and the normal name is an alias. */
22161 #if defined __stub_$ac_func || defined __stub___$ac_func
22162 choke me
22163 #endif
22166 main ()
22168 return $ac_func ();
22170 return 0;
22172 _ACEOF
22173 rm -f conftest.$ac_objext conftest$ac_exeext
22174 if { (ac_try="$ac_link"
22175 case "(($ac_try" in
22176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22177 *) ac_try_echo=$ac_try;;
22178 esac
22179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22180 (eval "$ac_link") 2>conftest.er1
22181 ac_status=$?
22182 grep -v '^ *+' conftest.er1 >conftest.err
22183 rm -f conftest.er1
22184 cat conftest.err >&5
22185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22186 (exit $ac_status); } && {
22187 test -z "$ac_c_werror_flag" ||
22188 test ! -s conftest.err
22189 } && test -s conftest$ac_exeext &&
22190 $as_test_x conftest$ac_exeext; then
22191 eval "$as_ac_var=yes"
22192 else
22193 echo "$as_me: failed program was:" >&5
22194 sed 's/^/| /' conftest.$ac_ext >&5
22196 eval "$as_ac_var=no"
22199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22200 conftest$ac_exeext conftest.$ac_ext
22202 ac_res=`eval echo '${'$as_ac_var'}'`
22203 { echo "$as_me:$LINENO: result: $ac_res" >&5
22204 echo "${ECHO_T}$ac_res" >&6; }
22205 if test `eval echo '${'$as_ac_var'}'` = yes; then
22206 cat >>confdefs.h <<_ACEOF
22207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22208 _ACEOF
22211 done
22213 if test $ac_cv_func_gettimeofday = yes; then
22214 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
22215 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
22216 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22217 echo $ECHO_N "(cached) $ECHO_C" >&6
22218 else
22219 cat >conftest.$ac_ext <<_ACEOF
22220 /* confdefs.h. */
22221 _ACEOF
22222 cat confdefs.h >>conftest.$ac_ext
22223 cat >>conftest.$ac_ext <<_ACEOF
22224 /* end confdefs.h. */
22226 #ifdef TIME_WITH_SYS_TIME
22227 #include <sys/time.h>
22228 #include <time.h>
22229 #else
22230 #ifdef HAVE_SYS_TIME_H
22231 #include <sys/time.h>
22232 #else
22233 #include <time.h>
22234 #endif
22235 #endif
22237 main ()
22239 struct timeval time;
22240 gettimeofday (&time, 0);
22242 return 0;
22244 _ACEOF
22245 rm -f conftest.$ac_objext
22246 if { (ac_try="$ac_compile"
22247 case "(($ac_try" in
22248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22249 *) ac_try_echo=$ac_try;;
22250 esac
22251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22252 (eval "$ac_compile") 2>conftest.er1
22253 ac_status=$?
22254 grep -v '^ *+' conftest.er1 >conftest.err
22255 rm -f conftest.er1
22256 cat conftest.err >&5
22257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22258 (exit $ac_status); } && {
22259 test -z "$ac_c_werror_flag" ||
22260 test ! -s conftest.err
22261 } && test -s conftest.$ac_objext; then
22262 emacs_cv_gettimeofday_two_arguments=yes
22263 else
22264 echo "$as_me: failed program was:" >&5
22265 sed 's/^/| /' conftest.$ac_ext >&5
22267 emacs_cv_gettimeofday_two_arguments=no
22270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22272 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
22273 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22274 if test $emacs_cv_gettimeofday_two_arguments = no; then
22276 cat >>confdefs.h <<\_ACEOF
22277 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22278 _ACEOF
22284 ok_so_far=yes
22285 { echo "$as_me:$LINENO: checking for socket" >&5
22286 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
22287 if test "${ac_cv_func_socket+set}" = set; then
22288 echo $ECHO_N "(cached) $ECHO_C" >&6
22289 else
22290 cat >conftest.$ac_ext <<_ACEOF
22291 /* confdefs.h. */
22292 _ACEOF
22293 cat confdefs.h >>conftest.$ac_ext
22294 cat >>conftest.$ac_ext <<_ACEOF
22295 /* end confdefs.h. */
22296 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22297 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22298 #define socket innocuous_socket
22300 /* System header to define __stub macros and hopefully few prototypes,
22301 which can conflict with char socket (); below.
22302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22303 <limits.h> exists even on freestanding compilers. */
22305 #ifdef __STDC__
22306 # include <limits.h>
22307 #else
22308 # include <assert.h>
22309 #endif
22311 #undef socket
22313 /* Override any GCC internal prototype to avoid an error.
22314 Use char because int might match the return type of a GCC
22315 builtin and then its argument prototype would still apply. */
22316 #ifdef __cplusplus
22317 extern "C"
22318 #endif
22319 char socket ();
22320 /* The GNU C library defines this for functions which it implements
22321 to always fail with ENOSYS. Some functions are actually named
22322 something starting with __ and the normal name is an alias. */
22323 #if defined __stub_socket || defined __stub___socket
22324 choke me
22325 #endif
22328 main ()
22330 return socket ();
22332 return 0;
22334 _ACEOF
22335 rm -f conftest.$ac_objext conftest$ac_exeext
22336 if { (ac_try="$ac_link"
22337 case "(($ac_try" in
22338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22339 *) ac_try_echo=$ac_try;;
22340 esac
22341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22342 (eval "$ac_link") 2>conftest.er1
22343 ac_status=$?
22344 grep -v '^ *+' conftest.er1 >conftest.err
22345 rm -f conftest.er1
22346 cat conftest.err >&5
22347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22348 (exit $ac_status); } && {
22349 test -z "$ac_c_werror_flag" ||
22350 test ! -s conftest.err
22351 } && test -s conftest$ac_exeext &&
22352 $as_test_x conftest$ac_exeext; then
22353 ac_cv_func_socket=yes
22354 else
22355 echo "$as_me: failed program was:" >&5
22356 sed 's/^/| /' conftest.$ac_ext >&5
22358 ac_cv_func_socket=no
22361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22362 conftest$ac_exeext conftest.$ac_ext
22364 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22365 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22366 if test $ac_cv_func_socket = yes; then
22368 else
22369 ok_so_far=no
22372 if test $ok_so_far = yes; then
22373 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22374 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22375 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22376 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22377 echo $ECHO_N "(cached) $ECHO_C" >&6
22379 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22380 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22381 else
22382 # Is the header compilable?
22383 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22384 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
22385 cat >conftest.$ac_ext <<_ACEOF
22386 /* confdefs.h. */
22387 _ACEOF
22388 cat confdefs.h >>conftest.$ac_ext
22389 cat >>conftest.$ac_ext <<_ACEOF
22390 /* end confdefs.h. */
22391 $ac_includes_default
22392 #include <netinet/in.h>
22393 _ACEOF
22394 rm -f conftest.$ac_objext
22395 if { (ac_try="$ac_compile"
22396 case "(($ac_try" in
22397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22398 *) ac_try_echo=$ac_try;;
22399 esac
22400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22401 (eval "$ac_compile") 2>conftest.er1
22402 ac_status=$?
22403 grep -v '^ *+' conftest.er1 >conftest.err
22404 rm -f conftest.er1
22405 cat conftest.err >&5
22406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22407 (exit $ac_status); } && {
22408 test -z "$ac_c_werror_flag" ||
22409 test ! -s conftest.err
22410 } && test -s conftest.$ac_objext; then
22411 ac_header_compiler=yes
22412 else
22413 echo "$as_me: failed program was:" >&5
22414 sed 's/^/| /' conftest.$ac_ext >&5
22416 ac_header_compiler=no
22419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22420 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22421 echo "${ECHO_T}$ac_header_compiler" >&6; }
22423 # Is the header present?
22424 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22425 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
22426 cat >conftest.$ac_ext <<_ACEOF
22427 /* confdefs.h. */
22428 _ACEOF
22429 cat confdefs.h >>conftest.$ac_ext
22430 cat >>conftest.$ac_ext <<_ACEOF
22431 /* end confdefs.h. */
22432 #include <netinet/in.h>
22433 _ACEOF
22434 if { (ac_try="$ac_cpp conftest.$ac_ext"
22435 case "(($ac_try" in
22436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22437 *) ac_try_echo=$ac_try;;
22438 esac
22439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22440 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22441 ac_status=$?
22442 grep -v '^ *+' conftest.er1 >conftest.err
22443 rm -f conftest.er1
22444 cat conftest.err >&5
22445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22446 (exit $ac_status); } >/dev/null && {
22447 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22448 test ! -s conftest.err
22449 }; then
22450 ac_header_preproc=yes
22451 else
22452 echo "$as_me: failed program was:" >&5
22453 sed 's/^/| /' conftest.$ac_ext >&5
22455 ac_header_preproc=no
22458 rm -f conftest.err conftest.$ac_ext
22459 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22460 echo "${ECHO_T}$ac_header_preproc" >&6; }
22462 # So? What about this header?
22463 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22464 yes:no: )
22465 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22466 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22467 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22468 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22469 ac_header_preproc=yes
22471 no:yes:* )
22472 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22473 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22474 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22475 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22476 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22477 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22478 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22479 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22480 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22481 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22482 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22483 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22486 esac
22487 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22488 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22489 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22490 echo $ECHO_N "(cached) $ECHO_C" >&6
22491 else
22492 ac_cv_header_netinet_in_h=$ac_header_preproc
22494 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22495 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22498 if test $ac_cv_header_netinet_in_h = yes; then
22500 else
22501 ok_so_far=no
22506 if test $ok_so_far = yes; then
22507 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22508 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22509 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22510 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22511 echo $ECHO_N "(cached) $ECHO_C" >&6
22513 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22514 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22515 else
22516 # Is the header compilable?
22517 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22518 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
22519 cat >conftest.$ac_ext <<_ACEOF
22520 /* confdefs.h. */
22521 _ACEOF
22522 cat confdefs.h >>conftest.$ac_ext
22523 cat >>conftest.$ac_ext <<_ACEOF
22524 /* end confdefs.h. */
22525 $ac_includes_default
22526 #include <arpa/inet.h>
22527 _ACEOF
22528 rm -f conftest.$ac_objext
22529 if { (ac_try="$ac_compile"
22530 case "(($ac_try" in
22531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22532 *) ac_try_echo=$ac_try;;
22533 esac
22534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22535 (eval "$ac_compile") 2>conftest.er1
22536 ac_status=$?
22537 grep -v '^ *+' conftest.er1 >conftest.err
22538 rm -f conftest.er1
22539 cat conftest.err >&5
22540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22541 (exit $ac_status); } && {
22542 test -z "$ac_c_werror_flag" ||
22543 test ! -s conftest.err
22544 } && test -s conftest.$ac_objext; then
22545 ac_header_compiler=yes
22546 else
22547 echo "$as_me: failed program was:" >&5
22548 sed 's/^/| /' conftest.$ac_ext >&5
22550 ac_header_compiler=no
22553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22554 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22555 echo "${ECHO_T}$ac_header_compiler" >&6; }
22557 # Is the header present?
22558 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22559 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
22560 cat >conftest.$ac_ext <<_ACEOF
22561 /* confdefs.h. */
22562 _ACEOF
22563 cat confdefs.h >>conftest.$ac_ext
22564 cat >>conftest.$ac_ext <<_ACEOF
22565 /* end confdefs.h. */
22566 #include <arpa/inet.h>
22567 _ACEOF
22568 if { (ac_try="$ac_cpp conftest.$ac_ext"
22569 case "(($ac_try" in
22570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22571 *) ac_try_echo=$ac_try;;
22572 esac
22573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22575 ac_status=$?
22576 grep -v '^ *+' conftest.er1 >conftest.err
22577 rm -f conftest.er1
22578 cat conftest.err >&5
22579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22580 (exit $ac_status); } >/dev/null && {
22581 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22582 test ! -s conftest.err
22583 }; then
22584 ac_header_preproc=yes
22585 else
22586 echo "$as_me: failed program was:" >&5
22587 sed 's/^/| /' conftest.$ac_ext >&5
22589 ac_header_preproc=no
22592 rm -f conftest.err conftest.$ac_ext
22593 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22594 echo "${ECHO_T}$ac_header_preproc" >&6; }
22596 # So? What about this header?
22597 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22598 yes:no: )
22599 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
22600 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22601 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
22602 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
22603 ac_header_preproc=yes
22605 no:yes:* )
22606 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
22607 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
22608 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
22609 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
22610 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
22611 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
22612 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
22613 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
22614 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
22615 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
22616 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
22617 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
22620 esac
22621 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22622 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22623 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22624 echo $ECHO_N "(cached) $ECHO_C" >&6
22625 else
22626 ac_cv_header_arpa_inet_h=$ac_header_preproc
22628 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22629 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22632 if test $ac_cv_header_arpa_inet_h = yes; then
22634 else
22635 ok_so_far=no
22640 if test $ok_so_far = yes; then
22642 cat >>confdefs.h <<\_ACEOF
22643 #define HAVE_INET_SOCKETS 1
22644 _ACEOF
22649 for ac_header in sys/ioctl.h
22651 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22653 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22656 echo $ECHO_N "(cached) $ECHO_C" >&6
22658 ac_res=`eval echo '${'$as_ac_Header'}'`
22659 { echo "$as_me:$LINENO: result: $ac_res" >&5
22660 echo "${ECHO_T}$ac_res" >&6; }
22661 else
22662 # Is the header compilable?
22663 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22664 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22665 cat >conftest.$ac_ext <<_ACEOF
22666 /* confdefs.h. */
22667 _ACEOF
22668 cat confdefs.h >>conftest.$ac_ext
22669 cat >>conftest.$ac_ext <<_ACEOF
22670 /* end confdefs.h. */
22671 $ac_includes_default
22672 #include <$ac_header>
22673 _ACEOF
22674 rm -f conftest.$ac_objext
22675 if { (ac_try="$ac_compile"
22676 case "(($ac_try" in
22677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22678 *) ac_try_echo=$ac_try;;
22679 esac
22680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22681 (eval "$ac_compile") 2>conftest.er1
22682 ac_status=$?
22683 grep -v '^ *+' conftest.er1 >conftest.err
22684 rm -f conftest.er1
22685 cat conftest.err >&5
22686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22687 (exit $ac_status); } && {
22688 test -z "$ac_c_werror_flag" ||
22689 test ! -s conftest.err
22690 } && test -s conftest.$ac_objext; then
22691 ac_header_compiler=yes
22692 else
22693 echo "$as_me: failed program was:" >&5
22694 sed 's/^/| /' conftest.$ac_ext >&5
22696 ac_header_compiler=no
22699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22700 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22701 echo "${ECHO_T}$ac_header_compiler" >&6; }
22703 # Is the header present?
22704 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22705 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22706 cat >conftest.$ac_ext <<_ACEOF
22707 /* confdefs.h. */
22708 _ACEOF
22709 cat confdefs.h >>conftest.$ac_ext
22710 cat >>conftest.$ac_ext <<_ACEOF
22711 /* end confdefs.h. */
22712 #include <$ac_header>
22713 _ACEOF
22714 if { (ac_try="$ac_cpp conftest.$ac_ext"
22715 case "(($ac_try" in
22716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22717 *) ac_try_echo=$ac_try;;
22718 esac
22719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22720 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22721 ac_status=$?
22722 grep -v '^ *+' conftest.er1 >conftest.err
22723 rm -f conftest.er1
22724 cat conftest.err >&5
22725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22726 (exit $ac_status); } >/dev/null && {
22727 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22728 test ! -s conftest.err
22729 }; then
22730 ac_header_preproc=yes
22731 else
22732 echo "$as_me: failed program was:" >&5
22733 sed 's/^/| /' conftest.$ac_ext >&5
22735 ac_header_preproc=no
22738 rm -f conftest.err conftest.$ac_ext
22739 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22740 echo "${ECHO_T}$ac_header_preproc" >&6; }
22742 # So? What about this header?
22743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22744 yes:no: )
22745 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22746 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22748 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22749 ac_header_preproc=yes
22751 no:yes:* )
22752 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22753 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22754 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22755 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22756 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22757 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22758 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22759 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22761 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22762 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22763 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22766 esac
22767 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22770 echo $ECHO_N "(cached) $ECHO_C" >&6
22771 else
22772 eval "$as_ac_Header=\$ac_header_preproc"
22774 ac_res=`eval echo '${'$as_ac_Header'}'`
22775 { echo "$as_me:$LINENO: result: $ac_res" >&5
22776 echo "${ECHO_T}$ac_res" >&6; }
22779 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22780 cat >>confdefs.h <<_ACEOF
22781 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22782 _ACEOF
22786 done
22789 if test -f /usr/lpp/X11/bin/smt.exp; then
22791 cat >>confdefs.h <<\_ACEOF
22792 #define HAVE_AIX_SMT_EXP 1
22793 _ACEOF
22797 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
22798 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
22799 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22800 { echo "$as_me:$LINENO: result: yes" >&5
22801 echo "${ECHO_T}yes" >&6; }
22803 cat >>confdefs.h <<\_ACEOF
22804 #define HAVE_DEV_PTMX 1
22805 _ACEOF
22807 else
22808 { echo "$as_me:$LINENO: result: no" >&5
22809 echo "${ECHO_T}no" >&6; }
22812 { echo "$as_me:$LINENO: checking for pid_t" >&5
22813 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22814 if test "${ac_cv_type_pid_t+set}" = set; then
22815 echo $ECHO_N "(cached) $ECHO_C" >&6
22816 else
22817 cat >conftest.$ac_ext <<_ACEOF
22818 /* confdefs.h. */
22819 _ACEOF
22820 cat confdefs.h >>conftest.$ac_ext
22821 cat >>conftest.$ac_ext <<_ACEOF
22822 /* end confdefs.h. */
22823 $ac_includes_default
22824 typedef pid_t ac__type_new_;
22826 main ()
22828 if ((ac__type_new_ *) 0)
22829 return 0;
22830 if (sizeof (ac__type_new_))
22831 return 0;
22833 return 0;
22835 _ACEOF
22836 rm -f conftest.$ac_objext
22837 if { (ac_try="$ac_compile"
22838 case "(($ac_try" in
22839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22840 *) ac_try_echo=$ac_try;;
22841 esac
22842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22843 (eval "$ac_compile") 2>conftest.er1
22844 ac_status=$?
22845 grep -v '^ *+' conftest.er1 >conftest.err
22846 rm -f conftest.er1
22847 cat conftest.err >&5
22848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22849 (exit $ac_status); } && {
22850 test -z "$ac_c_werror_flag" ||
22851 test ! -s conftest.err
22852 } && test -s conftest.$ac_objext; then
22853 ac_cv_type_pid_t=yes
22854 else
22855 echo "$as_me: failed program was:" >&5
22856 sed 's/^/| /' conftest.$ac_ext >&5
22858 ac_cv_type_pid_t=no
22861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22863 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22864 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22865 if test $ac_cv_type_pid_t = yes; then
22867 else
22869 cat >>confdefs.h <<_ACEOF
22870 #define pid_t int
22871 _ACEOF
22876 for ac_header in vfork.h
22878 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22880 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22883 echo $ECHO_N "(cached) $ECHO_C" >&6
22885 ac_res=`eval echo '${'$as_ac_Header'}'`
22886 { echo "$as_me:$LINENO: result: $ac_res" >&5
22887 echo "${ECHO_T}$ac_res" >&6; }
22888 else
22889 # Is the header compilable?
22890 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22891 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22892 cat >conftest.$ac_ext <<_ACEOF
22893 /* confdefs.h. */
22894 _ACEOF
22895 cat confdefs.h >>conftest.$ac_ext
22896 cat >>conftest.$ac_ext <<_ACEOF
22897 /* end confdefs.h. */
22898 $ac_includes_default
22899 #include <$ac_header>
22900 _ACEOF
22901 rm -f conftest.$ac_objext
22902 if { (ac_try="$ac_compile"
22903 case "(($ac_try" in
22904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22905 *) ac_try_echo=$ac_try;;
22906 esac
22907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22908 (eval "$ac_compile") 2>conftest.er1
22909 ac_status=$?
22910 grep -v '^ *+' conftest.er1 >conftest.err
22911 rm -f conftest.er1
22912 cat conftest.err >&5
22913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22914 (exit $ac_status); } && {
22915 test -z "$ac_c_werror_flag" ||
22916 test ! -s conftest.err
22917 } && test -s conftest.$ac_objext; then
22918 ac_header_compiler=yes
22919 else
22920 echo "$as_me: failed program was:" >&5
22921 sed 's/^/| /' conftest.$ac_ext >&5
22923 ac_header_compiler=no
22926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22927 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22928 echo "${ECHO_T}$ac_header_compiler" >&6; }
22930 # Is the header present?
22931 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22932 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22933 cat >conftest.$ac_ext <<_ACEOF
22934 /* confdefs.h. */
22935 _ACEOF
22936 cat confdefs.h >>conftest.$ac_ext
22937 cat >>conftest.$ac_ext <<_ACEOF
22938 /* end confdefs.h. */
22939 #include <$ac_header>
22940 _ACEOF
22941 if { (ac_try="$ac_cpp conftest.$ac_ext"
22942 case "(($ac_try" in
22943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22944 *) ac_try_echo=$ac_try;;
22945 esac
22946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22947 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22948 ac_status=$?
22949 grep -v '^ *+' conftest.er1 >conftest.err
22950 rm -f conftest.er1
22951 cat conftest.err >&5
22952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22953 (exit $ac_status); } >/dev/null && {
22954 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22955 test ! -s conftest.err
22956 }; then
22957 ac_header_preproc=yes
22958 else
22959 echo "$as_me: failed program was:" >&5
22960 sed 's/^/| /' conftest.$ac_ext >&5
22962 ac_header_preproc=no
22965 rm -f conftest.err conftest.$ac_ext
22966 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22967 echo "${ECHO_T}$ac_header_preproc" >&6; }
22969 # So? What about this header?
22970 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22971 yes:no: )
22972 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22973 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22974 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22975 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22976 ac_header_preproc=yes
22978 no:yes:* )
22979 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22980 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22981 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22982 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22983 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22984 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22985 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22986 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22988 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22989 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22990 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22993 esac
22994 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22996 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22997 echo $ECHO_N "(cached) $ECHO_C" >&6
22998 else
22999 eval "$as_ac_Header=\$ac_header_preproc"
23001 ac_res=`eval echo '${'$as_ac_Header'}'`
23002 { echo "$as_me:$LINENO: result: $ac_res" >&5
23003 echo "${ECHO_T}$ac_res" >&6; }
23006 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23007 cat >>confdefs.h <<_ACEOF
23008 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23009 _ACEOF
23013 done
23017 for ac_func in fork vfork
23019 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23020 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23021 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23022 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23023 echo $ECHO_N "(cached) $ECHO_C" >&6
23024 else
23025 cat >conftest.$ac_ext <<_ACEOF
23026 /* confdefs.h. */
23027 _ACEOF
23028 cat confdefs.h >>conftest.$ac_ext
23029 cat >>conftest.$ac_ext <<_ACEOF
23030 /* end confdefs.h. */
23031 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23032 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23033 #define $ac_func innocuous_$ac_func
23035 /* System header to define __stub macros and hopefully few prototypes,
23036 which can conflict with char $ac_func (); below.
23037 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23038 <limits.h> exists even on freestanding compilers. */
23040 #ifdef __STDC__
23041 # include <limits.h>
23042 #else
23043 # include <assert.h>
23044 #endif
23046 #undef $ac_func
23048 /* Override any GCC internal prototype to avoid an error.
23049 Use char because int might match the return type of a GCC
23050 builtin and then its argument prototype would still apply. */
23051 #ifdef __cplusplus
23052 extern "C"
23053 #endif
23054 char $ac_func ();
23055 /* The GNU C library defines this for functions which it implements
23056 to always fail with ENOSYS. Some functions are actually named
23057 something starting with __ and the normal name is an alias. */
23058 #if defined __stub_$ac_func || defined __stub___$ac_func
23059 choke me
23060 #endif
23063 main ()
23065 return $ac_func ();
23067 return 0;
23069 _ACEOF
23070 rm -f conftest.$ac_objext conftest$ac_exeext
23071 if { (ac_try="$ac_link"
23072 case "(($ac_try" in
23073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23074 *) ac_try_echo=$ac_try;;
23075 esac
23076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23077 (eval "$ac_link") 2>conftest.er1
23078 ac_status=$?
23079 grep -v '^ *+' conftest.er1 >conftest.err
23080 rm -f conftest.er1
23081 cat conftest.err >&5
23082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23083 (exit $ac_status); } && {
23084 test -z "$ac_c_werror_flag" ||
23085 test ! -s conftest.err
23086 } && test -s conftest$ac_exeext &&
23087 $as_test_x conftest$ac_exeext; then
23088 eval "$as_ac_var=yes"
23089 else
23090 echo "$as_me: failed program was:" >&5
23091 sed 's/^/| /' conftest.$ac_ext >&5
23093 eval "$as_ac_var=no"
23096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23097 conftest$ac_exeext conftest.$ac_ext
23099 ac_res=`eval echo '${'$as_ac_var'}'`
23100 { echo "$as_me:$LINENO: result: $ac_res" >&5
23101 echo "${ECHO_T}$ac_res" >&6; }
23102 if test `eval echo '${'$as_ac_var'}'` = yes; then
23103 cat >>confdefs.h <<_ACEOF
23104 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23105 _ACEOF
23108 done
23110 if test "x$ac_cv_func_fork" = xyes; then
23111 { echo "$as_me:$LINENO: checking for working fork" >&5
23112 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
23113 if test "${ac_cv_func_fork_works+set}" = set; then
23114 echo $ECHO_N "(cached) $ECHO_C" >&6
23115 else
23116 if test "$cross_compiling" = yes; then
23117 ac_cv_func_fork_works=cross
23118 else
23119 cat >conftest.$ac_ext <<_ACEOF
23120 /* confdefs.h. */
23121 _ACEOF
23122 cat confdefs.h >>conftest.$ac_ext
23123 cat >>conftest.$ac_ext <<_ACEOF
23124 /* end confdefs.h. */
23125 $ac_includes_default
23127 main ()
23130 /* By Ruediger Kuhlmann. */
23131 return fork () < 0;
23134 return 0;
23136 _ACEOF
23137 rm -f conftest$ac_exeext
23138 if { (ac_try="$ac_link"
23139 case "(($ac_try" in
23140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23141 *) ac_try_echo=$ac_try;;
23142 esac
23143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23144 (eval "$ac_link") 2>&5
23145 ac_status=$?
23146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23147 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23148 { (case "(($ac_try" in
23149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23150 *) ac_try_echo=$ac_try;;
23151 esac
23152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23153 (eval "$ac_try") 2>&5
23154 ac_status=$?
23155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23156 (exit $ac_status); }; }; then
23157 ac_cv_func_fork_works=yes
23158 else
23159 echo "$as_me: program exited with status $ac_status" >&5
23160 echo "$as_me: failed program was:" >&5
23161 sed 's/^/| /' conftest.$ac_ext >&5
23163 ( exit $ac_status )
23164 ac_cv_func_fork_works=no
23166 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23171 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23172 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23174 else
23175 ac_cv_func_fork_works=$ac_cv_func_fork
23177 if test "x$ac_cv_func_fork_works" = xcross; then
23178 case $host in
23179 *-*-amigaos* | *-*-msdosdjgpp*)
23180 # Override, as these systems have only a dummy fork() stub
23181 ac_cv_func_fork_works=no
23184 ac_cv_func_fork_works=yes
23186 esac
23187 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23188 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23190 ac_cv_func_vfork_works=$ac_cv_func_vfork
23191 if test "x$ac_cv_func_vfork" = xyes; then
23192 { echo "$as_me:$LINENO: checking for working vfork" >&5
23193 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
23194 if test "${ac_cv_func_vfork_works+set}" = set; then
23195 echo $ECHO_N "(cached) $ECHO_C" >&6
23196 else
23197 if test "$cross_compiling" = yes; then
23198 ac_cv_func_vfork_works=cross
23199 else
23200 cat >conftest.$ac_ext <<_ACEOF
23201 /* confdefs.h. */
23202 _ACEOF
23203 cat confdefs.h >>conftest.$ac_ext
23204 cat >>conftest.$ac_ext <<_ACEOF
23205 /* end confdefs.h. */
23206 /* Thanks to Paul Eggert for this test. */
23207 $ac_includes_default
23208 #include <sys/wait.h>
23209 #ifdef HAVE_VFORK_H
23210 # include <vfork.h>
23211 #endif
23212 /* On some sparc systems, changes by the child to local and incoming
23213 argument registers are propagated back to the parent. The compiler
23214 is told about this with #include <vfork.h>, but some compilers
23215 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23216 static variable whose address is put into a register that is
23217 clobbered by the vfork. */
23218 static void
23219 #ifdef __cplusplus
23220 sparc_address_test (int arg)
23221 # else
23222 sparc_address_test (arg) int arg;
23223 #endif
23225 static pid_t child;
23226 if (!child) {
23227 child = vfork ();
23228 if (child < 0) {
23229 perror ("vfork");
23230 _exit(2);
23232 if (!child) {
23233 arg = getpid();
23234 write(-1, "", 0);
23235 _exit (arg);
23241 main ()
23243 pid_t parent = getpid ();
23244 pid_t child;
23246 sparc_address_test (0);
23248 child = vfork ();
23250 if (child == 0) {
23251 /* Here is another test for sparc vfork register problems. This
23252 test uses lots of local variables, at least as many local
23253 variables as main has allocated so far including compiler
23254 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23255 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23256 reuse the register of parent for one of the local variables,
23257 since it will think that parent can't possibly be used any more
23258 in this routine. Assigning to the local variable will thus
23259 munge parent in the parent process. */
23260 pid_t
23261 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23262 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23263 /* Convince the compiler that p..p7 are live; otherwise, it might
23264 use the same hardware register for all 8 local variables. */
23265 if (p != p1 || p != p2 || p != p3 || p != p4
23266 || p != p5 || p != p6 || p != p7)
23267 _exit(1);
23269 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23270 from child file descriptors. If the child closes a descriptor
23271 before it execs or exits, this munges the parent's descriptor
23272 as well. Test for this by closing stdout in the child. */
23273 _exit(close(fileno(stdout)) != 0);
23274 } else {
23275 int status;
23276 struct stat st;
23278 while (wait(&status) != child)
23280 return (
23281 /* Was there some problem with vforking? */
23282 child < 0
23284 /* Did the child fail? (This shouldn't happen.) */
23285 || status
23287 /* Did the vfork/compiler bug occur? */
23288 || parent != getpid()
23290 /* Did the file descriptor bug occur? */
23291 || fstat(fileno(stdout), &st) != 0
23295 _ACEOF
23296 rm -f conftest$ac_exeext
23297 if { (ac_try="$ac_link"
23298 case "(($ac_try" in
23299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23300 *) ac_try_echo=$ac_try;;
23301 esac
23302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23303 (eval "$ac_link") 2>&5
23304 ac_status=$?
23305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23306 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23307 { (case "(($ac_try" in
23308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23309 *) ac_try_echo=$ac_try;;
23310 esac
23311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23312 (eval "$ac_try") 2>&5
23313 ac_status=$?
23314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23315 (exit $ac_status); }; }; then
23316 ac_cv_func_vfork_works=yes
23317 else
23318 echo "$as_me: program exited with status $ac_status" >&5
23319 echo "$as_me: failed program was:" >&5
23320 sed 's/^/| /' conftest.$ac_ext >&5
23322 ( exit $ac_status )
23323 ac_cv_func_vfork_works=no
23325 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23330 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23331 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23334 if test "x$ac_cv_func_fork_works" = xcross; then
23335 ac_cv_func_vfork_works=$ac_cv_func_vfork
23336 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23337 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23340 if test "x$ac_cv_func_vfork_works" = xyes; then
23342 cat >>confdefs.h <<\_ACEOF
23343 #define HAVE_WORKING_VFORK 1
23344 _ACEOF
23346 else
23348 cat >>confdefs.h <<\_ACEOF
23349 #define vfork fork
23350 _ACEOF
23353 if test "x$ac_cv_func_fork_works" = xyes; then
23355 cat >>confdefs.h <<\_ACEOF
23356 #define HAVE_WORKING_FORK 1
23357 _ACEOF
23362 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23363 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
23364 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23365 echo $ECHO_N "(cached) $ECHO_C" >&6
23366 else
23367 cat >conftest.$ac_ext <<_ACEOF
23368 /* confdefs.h. */
23369 _ACEOF
23370 cat confdefs.h >>conftest.$ac_ext
23371 cat >>conftest.$ac_ext <<_ACEOF
23372 /* end confdefs.h. */
23373 #include <langinfo.h>
23375 main ()
23377 char* cs = nl_langinfo(CODESET);
23379 return 0;
23381 _ACEOF
23382 rm -f conftest.$ac_objext conftest$ac_exeext
23383 if { (ac_try="$ac_link"
23384 case "(($ac_try" in
23385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23386 *) ac_try_echo=$ac_try;;
23387 esac
23388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23389 (eval "$ac_link") 2>conftest.er1
23390 ac_status=$?
23391 grep -v '^ *+' conftest.er1 >conftest.err
23392 rm -f conftest.er1
23393 cat conftest.err >&5
23394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23395 (exit $ac_status); } && {
23396 test -z "$ac_c_werror_flag" ||
23397 test ! -s conftest.err
23398 } && test -s conftest$ac_exeext &&
23399 $as_test_x conftest$ac_exeext; then
23400 emacs_cv_langinfo_codeset=yes
23401 else
23402 echo "$as_me: failed program was:" >&5
23403 sed 's/^/| /' conftest.$ac_ext >&5
23405 emacs_cv_langinfo_codeset=no
23408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23409 conftest$ac_exeext conftest.$ac_ext
23412 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23413 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23414 if test $emacs_cv_langinfo_codeset = yes; then
23416 cat >>confdefs.h <<\_ACEOF
23417 #define HAVE_LANGINFO_CODESET 1
23418 _ACEOF
23422 { echo "$as_me:$LINENO: checking for size_t" >&5
23423 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23424 if test "${ac_cv_type_size_t+set}" = set; then
23425 echo $ECHO_N "(cached) $ECHO_C" >&6
23426 else
23427 cat >conftest.$ac_ext <<_ACEOF
23428 /* confdefs.h. */
23429 _ACEOF
23430 cat confdefs.h >>conftest.$ac_ext
23431 cat >>conftest.$ac_ext <<_ACEOF
23432 /* end confdefs.h. */
23433 $ac_includes_default
23434 typedef size_t ac__type_new_;
23436 main ()
23438 if ((ac__type_new_ *) 0)
23439 return 0;
23440 if (sizeof (ac__type_new_))
23441 return 0;
23443 return 0;
23445 _ACEOF
23446 rm -f conftest.$ac_objext
23447 if { (ac_try="$ac_compile"
23448 case "(($ac_try" in
23449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23450 *) ac_try_echo=$ac_try;;
23451 esac
23452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23453 (eval "$ac_compile") 2>conftest.er1
23454 ac_status=$?
23455 grep -v '^ *+' conftest.er1 >conftest.err
23456 rm -f conftest.er1
23457 cat conftest.err >&5
23458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23459 (exit $ac_status); } && {
23460 test -z "$ac_c_werror_flag" ||
23461 test ! -s conftest.err
23462 } && test -s conftest.$ac_objext; then
23463 ac_cv_type_size_t=yes
23464 else
23465 echo "$as_me: failed program was:" >&5
23466 sed 's/^/| /' conftest.$ac_ext >&5
23468 ac_cv_type_size_t=no
23471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23473 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23474 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23475 if test $ac_cv_type_size_t = yes; then
23477 cat >>confdefs.h <<_ACEOF
23478 #define HAVE_SIZE_T 1
23479 _ACEOF
23485 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23486 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23487 if test "${ac_cv_type_mbstate_t+set}" = set; then
23488 echo $ECHO_N "(cached) $ECHO_C" >&6
23489 else
23490 cat >conftest.$ac_ext <<_ACEOF
23491 /* confdefs.h. */
23492 _ACEOF
23493 cat confdefs.h >>conftest.$ac_ext
23494 cat >>conftest.$ac_ext <<_ACEOF
23495 /* end confdefs.h. */
23496 $ac_includes_default
23497 # include <wchar.h>
23499 main ()
23501 mbstate_t x; return sizeof x;
23503 return 0;
23505 _ACEOF
23506 rm -f conftest.$ac_objext
23507 if { (ac_try="$ac_compile"
23508 case "(($ac_try" in
23509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23510 *) ac_try_echo=$ac_try;;
23511 esac
23512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23513 (eval "$ac_compile") 2>conftest.er1
23514 ac_status=$?
23515 grep -v '^ *+' conftest.er1 >conftest.err
23516 rm -f conftest.er1
23517 cat conftest.err >&5
23518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23519 (exit $ac_status); } && {
23520 test -z "$ac_c_werror_flag" ||
23521 test ! -s conftest.err
23522 } && test -s conftest.$ac_objext; then
23523 ac_cv_type_mbstate_t=yes
23524 else
23525 echo "$as_me: failed program was:" >&5
23526 sed 's/^/| /' conftest.$ac_ext >&5
23528 ac_cv_type_mbstate_t=no
23531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23533 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23534 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23535 if test $ac_cv_type_mbstate_t = yes; then
23537 cat >>confdefs.h <<\_ACEOF
23538 #define HAVE_MBSTATE_T 1
23539 _ACEOF
23541 else
23543 cat >>confdefs.h <<\_ACEOF
23544 #define mbstate_t int
23545 _ACEOF
23549 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23550 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
23551 if test "${emacs_cv_c_restrict+set}" = set; then
23552 echo $ECHO_N "(cached) $ECHO_C" >&6
23553 else
23554 cat >conftest.$ac_ext <<_ACEOF
23555 /* confdefs.h. */
23556 _ACEOF
23557 cat confdefs.h >>conftest.$ac_ext
23558 cat >>conftest.$ac_ext <<_ACEOF
23559 /* end confdefs.h. */
23560 void fred (int *restrict x);
23562 main ()
23566 return 0;
23568 _ACEOF
23569 rm -f conftest.$ac_objext
23570 if { (ac_try="$ac_compile"
23571 case "(($ac_try" in
23572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23573 *) ac_try_echo=$ac_try;;
23574 esac
23575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23576 (eval "$ac_compile") 2>conftest.er1
23577 ac_status=$?
23578 grep -v '^ *+' conftest.er1 >conftest.err
23579 rm -f conftest.er1
23580 cat conftest.err >&5
23581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23582 (exit $ac_status); } && {
23583 test -z "$ac_c_werror_flag" ||
23584 test ! -s conftest.err
23585 } && test -s conftest.$ac_objext; then
23586 emacs_cv_c_restrict=yes
23587 else
23588 echo "$as_me: failed program was:" >&5
23589 sed 's/^/| /' conftest.$ac_ext >&5
23591 cat >conftest.$ac_ext <<_ACEOF
23592 /* confdefs.h. */
23593 _ACEOF
23594 cat confdefs.h >>conftest.$ac_ext
23595 cat >>conftest.$ac_ext <<_ACEOF
23596 /* end confdefs.h. */
23597 void fred (int *__restrict x);
23599 main ()
23603 return 0;
23605 _ACEOF
23606 rm -f conftest.$ac_objext
23607 if { (ac_try="$ac_compile"
23608 case "(($ac_try" in
23609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23610 *) ac_try_echo=$ac_try;;
23611 esac
23612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23613 (eval "$ac_compile") 2>conftest.er1
23614 ac_status=$?
23615 grep -v '^ *+' conftest.er1 >conftest.err
23616 rm -f conftest.er1
23617 cat conftest.err >&5
23618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23619 (exit $ac_status); } && {
23620 test -z "$ac_c_werror_flag" ||
23621 test ! -s conftest.err
23622 } && test -s conftest.$ac_objext; then
23623 emacs_cv_c_restrict=__restrict
23624 else
23625 echo "$as_me: failed program was:" >&5
23626 sed 's/^/| /' conftest.$ac_ext >&5
23628 emacs_cv_c_restrict=no
23631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23636 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
23637 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23638 case "$emacs_cv_c_restrict" in
23639 yes) emacs_restrict=restrict;;
23640 no) emacs_restrict="";;
23641 *) emacs_restrict="$emacs_cv_c_restrict";;
23642 esac
23643 if test "$emacs_restrict" != __restrict; then
23645 cat >>confdefs.h <<_ACEOF
23646 #define __restrict $emacs_restrict
23647 _ACEOF
23651 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
23652 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
23653 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23654 echo $ECHO_N "(cached) $ECHO_C" >&6
23655 else
23656 cat >conftest.$ac_ext <<_ACEOF
23657 /* confdefs.h. */
23658 _ACEOF
23659 cat confdefs.h >>conftest.$ac_ext
23660 cat >>conftest.$ac_ext <<_ACEOF
23661 /* end confdefs.h. */
23662 void fred (int x[__restrict]);
23664 main ()
23668 return 0;
23670 _ACEOF
23671 rm -f conftest.$ac_objext
23672 if { (ac_try="$ac_compile"
23673 case "(($ac_try" in
23674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23675 *) ac_try_echo=$ac_try;;
23676 esac
23677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23678 (eval "$ac_compile") 2>conftest.er1
23679 ac_status=$?
23680 grep -v '^ *+' conftest.er1 >conftest.err
23681 rm -f conftest.er1
23682 cat conftest.err >&5
23683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23684 (exit $ac_status); } && {
23685 test -z "$ac_c_werror_flag" ||
23686 test ! -s conftest.err
23687 } && test -s conftest.$ac_objext; then
23688 emacs_cv_c_restrict_arr=yes
23689 else
23690 echo "$as_me: failed program was:" >&5
23691 sed 's/^/| /' conftest.$ac_ext >&5
23693 emacs_cv_c_restrict_arr=no
23696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23698 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
23699 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23700 if test "$emacs_cv_c_restrict_arr" = yes; then
23702 cat >>confdefs.h <<\_ACEOF
23703 #define __restrict_arr __restrict
23704 _ACEOF
23710 # Set up the CFLAGS for real compilation, so we can substitute it.
23711 CFLAGS="$REAL_CFLAGS"
23712 CPPFLAGS="$REAL_CPPFLAGS"
23714 #### Find out which version of Emacs this is.
23715 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23716 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
23717 if test x"${version}" = x; then
23718 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
23719 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
23720 { (exit 1); exit 1; }; }
23723 ### Specify what sort of things we'll be editing into Makefile and config.h.
23724 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23760 cat >>confdefs.h <<_ACEOF
23761 #define EMACS_CONFIGURATION "${canonical}"
23762 _ACEOF
23765 cat >>confdefs.h <<_ACEOF
23766 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23767 _ACEOF
23770 cat >>confdefs.h <<_ACEOF
23771 #define config_machfile "${machfile}"
23772 _ACEOF
23775 cat >>confdefs.h <<_ACEOF
23776 #define config_opsysfile "${opsysfile}"
23777 _ACEOF
23780 cat >>confdefs.h <<_ACEOF
23781 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23782 _ACEOF
23785 cat >>confdefs.h <<_ACEOF
23786 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23787 _ACEOF
23790 cat >>confdefs.h <<_ACEOF
23791 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23792 _ACEOF
23795 cat >>confdefs.h <<_ACEOF
23796 #define UNEXEC_SRC ${UNEXEC_SRC}
23797 _ACEOF
23800 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23802 cat >>confdefs.h <<\_ACEOF
23803 #define HAVE_X_WINDOWS 1
23804 _ACEOF
23807 if test "${USE_X_TOOLKIT}" != "none" ; then
23809 cat >>confdefs.h <<\_ACEOF
23810 #define USE_X_TOOLKIT 1
23811 _ACEOF
23814 if test "${HAVE_X11}" = "yes" ; then
23816 cat >>confdefs.h <<\_ACEOF
23817 #define HAVE_X11 1
23818 _ACEOF
23821 if test "${HAVE_MENUS}" = "yes" ; then
23823 cat >>confdefs.h <<\_ACEOF
23824 #define HAVE_MENUS 1
23825 _ACEOF
23828 if test "${GNU_MALLOC}" = "yes" ; then
23830 cat >>confdefs.h <<\_ACEOF
23831 #define GNU_MALLOC 1
23832 _ACEOF
23835 if test "${REL_ALLOC}" = "yes" ; then
23837 cat >>confdefs.h <<\_ACEOF
23838 #define REL_ALLOC 1
23839 _ACEOF
23848 #### Report on what we decided to do.
23849 #### Report GTK as a toolkit, even if it doesn't use Xt.
23850 #### It makes printing result more understandable as using GTK sets
23851 #### toolkit_scroll_bars to yes by default.
23852 if test "${HAVE_GTK}" = "yes"; then
23853 USE_X_TOOLKIT=GTK
23856 echo "
23857 Configured for \`${canonical}'.
23859 Where should the build process find the source code? ${srcdir}
23860 What operating system and machine description files should Emacs use?
23861 \`${opsysfile}' and \`${machfile}'
23862 What compiler should emacs be built with? ${CC} ${CFLAGS}
23863 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23864 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23865 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23866 What window system should Emacs use? ${window_system}
23867 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23869 if test -n "${x_includes}"; then
23870 echo " Where do we find X Windows header files? ${x_includes}"
23871 else
23872 echo " Where do we find X Windows header files? Standard dirs"
23874 if test -n "${x_libraries}"; then
23875 echo " Where do we find X Windows libraries? ${x_libraries}"
23876 else
23877 echo " Where do we find X Windows libraries? Standard dirs"
23880 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23881 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23882 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23883 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23884 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
23885 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23886 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
23887 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
23888 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
23889 echo " Does Emacs use a font backend? ${USE_FONT_BACKEND}"
23891 if test "${USE_FONT_BACKEND}" = "yes"; then
23892 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
23893 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
23894 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
23895 echo " Does Emacs use -lxft? ${HAVE_XFT}"
23897 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23898 echo
23900 if test $USE_XASSERTS = yes; then
23901 echo " Compiling with asserts turned on."
23902 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23903 echo
23906 if test "$USE_X_TOOLKIT" = GTK; then
23907 case "$canonical" in
23908 *cygwin*)
23909 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
23910 will probably get a crash on startup. If this happens, please use another
23911 toolkit for Emacs. See etc/PROBLEMS for more information."
23913 esac
23917 if test "$HAVE_CARBON" = "yes"; then
23918 echo
23919 echo "Warning: The Mac Carbon port is currently unsupported and has
23920 known problems. It is not recommended for use by non-developers.
23921 Read the emacs-devel archives for more information."
23922 echo
23925 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
23926 echo "D-Bus integration has been tested for GNU/Linux only."
23927 echo
23931 # Remove any trailing slashes in these variables.
23932 test "${prefix}" != NONE &&
23933 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23934 test "${exec_prefix}" != NONE &&
23935 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23937 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23938 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23939 ## from Makefile.c can correctly provide the arg `-traditional' to the
23940 ## C preprocessor.
23942 cat >conftest.$ac_ext <<_ACEOF
23943 /* confdefs.h. */
23944 _ACEOF
23945 cat confdefs.h >>conftest.$ac_ext
23946 cat >>conftest.$ac_ext <<_ACEOF
23947 /* end confdefs.h. */
23948 yes..yes
23949 _ACEOF
23950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23951 $EGREP "yes..yes" >/dev/null 2>&1; then
23952 CPP_NEED_TRADITIONAL=no
23953 else
23954 CPP_NEED_TRADITIONAL=yes
23956 rm -f conftest*
23959 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"
23961 ac_config_commands="$ac_config_commands default"
23963 cat >confcache <<\_ACEOF
23964 # This file is a shell script that caches the results of configure
23965 # tests run on this system so they can be shared between configure
23966 # scripts and configure runs, see configure's option --config-cache.
23967 # It is not useful on other systems. If it contains results you don't
23968 # want to keep, you may remove or edit it.
23970 # config.status only pays attention to the cache file if you give it
23971 # the --recheck option to rerun configure.
23973 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23974 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23975 # following values.
23977 _ACEOF
23979 # The following way of writing the cache mishandles newlines in values,
23980 # but we know of no workaround that is simple, portable, and efficient.
23981 # So, we kill variables containing newlines.
23982 # Ultrix sh set writes to stderr and can't be redirected directly,
23983 # and sets the high bit in the cache file unless we assign to the vars.
23985 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23986 eval ac_val=\$$ac_var
23987 case $ac_val in #(
23988 *${as_nl}*)
23989 case $ac_var in #(
23990 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23991 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23992 esac
23993 case $ac_var in #(
23994 _ | IFS | as_nl) ;; #(
23995 *) $as_unset $ac_var ;;
23996 esac ;;
23997 esac
23998 done
24000 (set) 2>&1 |
24001 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24002 *${as_nl}ac_space=\ *)
24003 # `set' does not quote correctly, so add quotes (double-quote
24004 # substitution turns \\\\ into \\, and sed turns \\ into \).
24005 sed -n \
24006 "s/'/'\\\\''/g;
24007 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24008 ;; #(
24010 # `set' quotes correctly as required by POSIX, so do not add quotes.
24011 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24013 esac |
24014 sort
24016 sed '
24017 /^ac_cv_env_/b end
24018 t clear
24019 :clear
24020 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24021 t end
24022 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24023 :end' >>confcache
24024 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24025 if test -w "$cache_file"; then
24026 test "x$cache_file" != "x/dev/null" &&
24027 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24028 echo "$as_me: updating cache $cache_file" >&6;}
24029 cat confcache >$cache_file
24030 else
24031 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24032 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24035 rm -f confcache
24037 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24038 # Let make expand exec_prefix.
24039 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24041 DEFS=-DHAVE_CONFIG_H
24043 ac_libobjs=
24044 ac_ltlibobjs=
24045 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24046 # 1. Remove the extension, and $U if already installed.
24047 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24048 ac_i=`echo "$ac_i" | sed "$ac_script"`
24049 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24050 # will be set to the directory where LIBOBJS objects are built.
24051 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24052 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24053 done
24054 LIBOBJS=$ac_libobjs
24056 LTLIBOBJS=$ac_ltlibobjs
24060 : ${CONFIG_STATUS=./config.status}
24061 ac_clean_files_save=$ac_clean_files
24062 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24063 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24064 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24065 cat >$CONFIG_STATUS <<_ACEOF
24066 #! $SHELL
24067 # Generated by $as_me.
24068 # Run this file to recreate the current configuration.
24069 # Compiler output produced by configure, useful for debugging
24070 # configure, is in config.log if it exists.
24072 debug=false
24073 ac_cs_recheck=false
24074 ac_cs_silent=false
24075 SHELL=\${CONFIG_SHELL-$SHELL}
24076 _ACEOF
24078 cat >>$CONFIG_STATUS <<\_ACEOF
24079 ## --------------------- ##
24080 ## M4sh Initialization. ##
24081 ## --------------------- ##
24083 # Be more Bourne compatible
24084 DUALCASE=1; export DUALCASE # for MKS sh
24085 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24086 emulate sh
24087 NULLCMD=:
24088 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24089 # is contrary to our usage. Disable this feature.
24090 alias -g '${1+"$@"}'='"$@"'
24091 setopt NO_GLOB_SUBST
24092 else
24093 case `(set -o) 2>/dev/null` in
24094 *posix*) set -o posix ;;
24095 esac
24102 # PATH needs CR
24103 # Avoid depending upon Character Ranges.
24104 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24105 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24106 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24107 as_cr_digits='0123456789'
24108 as_cr_alnum=$as_cr_Letters$as_cr_digits
24110 # The user is always right.
24111 if test "${PATH_SEPARATOR+set}" != set; then
24112 echo "#! /bin/sh" >conf$$.sh
24113 echo "exit 0" >>conf$$.sh
24114 chmod +x conf$$.sh
24115 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24116 PATH_SEPARATOR=';'
24117 else
24118 PATH_SEPARATOR=:
24120 rm -f conf$$.sh
24123 # Support unset when possible.
24124 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24125 as_unset=unset
24126 else
24127 as_unset=false
24131 # IFS
24132 # We need space, tab and new line, in precisely that order. Quoting is
24133 # there to prevent editors from complaining about space-tab.
24134 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24135 # splitting by setting IFS to empty value.)
24136 as_nl='
24138 IFS=" "" $as_nl"
24140 # Find who we are. Look in the path if we contain no directory separator.
24141 case $0 in
24142 *[\\/]* ) as_myself=$0 ;;
24143 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24144 for as_dir in $PATH
24146 IFS=$as_save_IFS
24147 test -z "$as_dir" && as_dir=.
24148 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24149 done
24150 IFS=$as_save_IFS
24153 esac
24154 # We did not find ourselves, most probably we were run as `sh COMMAND'
24155 # in which case we are not to be found in the path.
24156 if test "x$as_myself" = x; then
24157 as_myself=$0
24159 if test ! -f "$as_myself"; then
24160 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24161 { (exit 1); exit 1; }
24164 # Work around bugs in pre-3.0 UWIN ksh.
24165 for as_var in ENV MAIL MAILPATH
24166 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24167 done
24168 PS1='$ '
24169 PS2='> '
24170 PS4='+ '
24172 # NLS nuisances.
24173 for as_var in \
24174 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24175 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24176 LC_TELEPHONE LC_TIME
24178 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24179 eval $as_var=C; export $as_var
24180 else
24181 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24183 done
24185 # Required to use basename.
24186 if expr a : '\(a\)' >/dev/null 2>&1 &&
24187 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24188 as_expr=expr
24189 else
24190 as_expr=false
24193 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24194 as_basename=basename
24195 else
24196 as_basename=false
24200 # Name of the executable.
24201 as_me=`$as_basename -- "$0" ||
24202 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24203 X"$0" : 'X\(//\)$' \| \
24204 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24205 echo X/"$0" |
24206 sed '/^.*\/\([^/][^/]*\)\/*$/{
24207 s//\1/
24210 /^X\/\(\/\/\)$/{
24211 s//\1/
24214 /^X\/\(\/\).*/{
24215 s//\1/
24218 s/.*/./; q'`
24220 # CDPATH.
24221 $as_unset CDPATH
24225 as_lineno_1=$LINENO
24226 as_lineno_2=$LINENO
24227 test "x$as_lineno_1" != "x$as_lineno_2" &&
24228 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24230 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24231 # uniformly replaced by the line number. The first 'sed' inserts a
24232 # line-number line after each line using $LINENO; the second 'sed'
24233 # does the real work. The second script uses 'N' to pair each
24234 # line-number line with the line containing $LINENO, and appends
24235 # trailing '-' during substitution so that $LINENO is not a special
24236 # case at line end.
24237 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24238 # scripts with optimization help from Paolo Bonzini. Blame Lee
24239 # E. McMahon (1931-1989) for sed's syntax. :-)
24240 sed -n '
24242 /[$]LINENO/=
24243 ' <$as_myself |
24244 sed '
24245 s/[$]LINENO.*/&-/
24246 t lineno
24248 :lineno
24250 :loop
24251 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24252 t loop
24253 s/-\n.*//
24254 ' >$as_me.lineno &&
24255 chmod +x "$as_me.lineno" ||
24256 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24257 { (exit 1); exit 1; }; }
24259 # Don't try to exec as it changes $[0], causing all sort of problems
24260 # (the dirname of $[0] is not the place where we might find the
24261 # original and so on. Autoconf is especially sensitive to this).
24262 . "./$as_me.lineno"
24263 # Exit status is that of the last command.
24264 exit
24268 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24269 as_dirname=dirname
24270 else
24271 as_dirname=false
24274 ECHO_C= ECHO_N= ECHO_T=
24275 case `echo -n x` in
24276 -n*)
24277 case `echo 'x\c'` in
24278 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24279 *) ECHO_C='\c';;
24280 esac;;
24282 ECHO_N='-n';;
24283 esac
24285 if expr a : '\(a\)' >/dev/null 2>&1 &&
24286 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24287 as_expr=expr
24288 else
24289 as_expr=false
24292 rm -f conf$$ conf$$.exe conf$$.file
24293 if test -d conf$$.dir; then
24294 rm -f conf$$.dir/conf$$.file
24295 else
24296 rm -f conf$$.dir
24297 mkdir conf$$.dir
24299 echo >conf$$.file
24300 if ln -s conf$$.file conf$$ 2>/dev/null; then
24301 as_ln_s='ln -s'
24302 # ... but there are two gotchas:
24303 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24304 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24305 # In both cases, we have to default to `cp -p'.
24306 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24307 as_ln_s='cp -p'
24308 elif ln conf$$.file conf$$ 2>/dev/null; then
24309 as_ln_s=ln
24310 else
24311 as_ln_s='cp -p'
24313 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24314 rmdir conf$$.dir 2>/dev/null
24316 if mkdir -p . 2>/dev/null; then
24317 as_mkdir_p=:
24318 else
24319 test -d ./-p && rmdir ./-p
24320 as_mkdir_p=false
24323 if test -x / >/dev/null 2>&1; then
24324 as_test_x='test -x'
24325 else
24326 if ls -dL / >/dev/null 2>&1; then
24327 as_ls_L_option=L
24328 else
24329 as_ls_L_option=
24331 as_test_x='
24332 eval sh -c '\''
24333 if test -d "$1"; then
24334 test -d "$1/.";
24335 else
24336 case $1 in
24337 -*)set "./$1";;
24338 esac;
24339 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24340 ???[sx]*):;;*)false;;esac;fi
24341 '\'' sh
24344 as_executable_p=$as_test_x
24346 # Sed expression to map a string onto a valid CPP name.
24347 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24349 # Sed expression to map a string onto a valid variable name.
24350 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24353 exec 6>&1
24355 # Save the log message, to keep $[0] and so on meaningful, and to
24356 # report actual input values of CONFIG_FILES etc. instead of their
24357 # values after options handling.
24358 ac_log="
24359 This file was extended by emacs $as_me 23.0.50, which was
24360 generated by GNU Autoconf 2.61. Invocation command line was
24362 CONFIG_FILES = $CONFIG_FILES
24363 CONFIG_HEADERS = $CONFIG_HEADERS
24364 CONFIG_LINKS = $CONFIG_LINKS
24365 CONFIG_COMMANDS = $CONFIG_COMMANDS
24366 $ $0 $@
24368 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24371 _ACEOF
24373 cat >>$CONFIG_STATUS <<_ACEOF
24374 # Files that config.status was made for.
24375 config_files="$ac_config_files"
24376 config_headers="$ac_config_headers"
24377 config_commands="$ac_config_commands"
24379 _ACEOF
24381 cat >>$CONFIG_STATUS <<\_ACEOF
24382 ac_cs_usage="\
24383 \`$as_me' instantiates files from templates according to the
24384 current configuration.
24386 Usage: $0 [OPTIONS] [FILE]...
24388 -h, --help print this help, then exit
24389 -V, --version print version number and configuration settings, then exit
24390 -q, --quiet do not print progress messages
24391 -d, --debug don't remove temporary files
24392 --recheck update $as_me by reconfiguring in the same conditions
24393 --file=FILE[:TEMPLATE]
24394 instantiate the configuration file FILE
24395 --header=FILE[:TEMPLATE]
24396 instantiate the configuration header FILE
24398 Configuration files:
24399 $config_files
24401 Configuration headers:
24402 $config_headers
24404 Configuration commands:
24405 $config_commands
24407 Report bugs to <bug-autoconf@gnu.org>."
24409 _ACEOF
24410 cat >>$CONFIG_STATUS <<_ACEOF
24411 ac_cs_version="\\
24412 emacs config.status 23.0.50
24413 configured by $0, generated by GNU Autoconf 2.61,
24414 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24416 Copyright (C) 2006 Free Software Foundation, Inc.
24417 This config.status script is free software; the Free Software Foundation
24418 gives unlimited permission to copy, distribute and modify it."
24420 ac_pwd='$ac_pwd'
24421 srcdir='$srcdir'
24422 INSTALL='$INSTALL'
24423 _ACEOF
24425 cat >>$CONFIG_STATUS <<\_ACEOF
24426 # If no file are specified by the user, then we need to provide default
24427 # value. By we need to know if files were specified by the user.
24428 ac_need_defaults=:
24429 while test $# != 0
24431 case $1 in
24432 --*=*)
24433 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24434 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24435 ac_shift=:
24438 ac_option=$1
24439 ac_optarg=$2
24440 ac_shift=shift
24442 esac
24444 case $ac_option in
24445 # Handling of the options.
24446 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24447 ac_cs_recheck=: ;;
24448 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24449 echo "$ac_cs_version"; exit ;;
24450 --debug | --debu | --deb | --de | --d | -d )
24451 debug=: ;;
24452 --file | --fil | --fi | --f )
24453 $ac_shift
24454 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24455 ac_need_defaults=false;;
24456 --header | --heade | --head | --hea )
24457 $ac_shift
24458 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24459 ac_need_defaults=false;;
24460 --he | --h)
24461 # Conflict between --help and --header
24462 { echo "$as_me: error: ambiguous option: $1
24463 Try \`$0 --help' for more information." >&2
24464 { (exit 1); exit 1; }; };;
24465 --help | --hel | -h )
24466 echo "$ac_cs_usage"; exit ;;
24467 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24468 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24469 ac_cs_silent=: ;;
24471 # This is an error.
24472 -*) { echo "$as_me: error: unrecognized option: $1
24473 Try \`$0 --help' for more information." >&2
24474 { (exit 1); exit 1; }; } ;;
24476 *) ac_config_targets="$ac_config_targets $1"
24477 ac_need_defaults=false ;;
24479 esac
24480 shift
24481 done
24483 ac_configure_extra_args=
24485 if $ac_cs_silent; then
24486 exec 6>/dev/null
24487 ac_configure_extra_args="$ac_configure_extra_args --silent"
24490 _ACEOF
24491 cat >>$CONFIG_STATUS <<_ACEOF
24492 if \$ac_cs_recheck; then
24493 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24494 CONFIG_SHELL=$SHELL
24495 export CONFIG_SHELL
24496 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24499 _ACEOF
24500 cat >>$CONFIG_STATUS <<\_ACEOF
24501 exec 5>>config.log
24503 echo
24504 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24505 ## Running $as_me. ##
24506 _ASBOX
24507 echo "$ac_log"
24508 } >&5
24510 _ACEOF
24511 cat >>$CONFIG_STATUS <<_ACEOF
24513 # INIT-COMMANDS
24515 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24517 _ACEOF
24519 cat >>$CONFIG_STATUS <<\_ACEOF
24521 # Handling of arguments.
24522 for ac_config_target in $ac_config_targets
24524 case $ac_config_target in
24525 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24526 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24527 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24528 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24529 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
24530 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
24531 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
24532 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
24533 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24534 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24535 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24536 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24537 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24539 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24540 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24541 { (exit 1); exit 1; }; };;
24542 esac
24543 done
24546 # If the user did not use the arguments to specify the items to instantiate,
24547 # then the envvar interface is used. Set only those that are not.
24548 # We use the long form for the default assignment because of an extremely
24549 # bizarre bug on SunOS 4.1.3.
24550 if $ac_need_defaults; then
24551 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24552 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24553 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24556 # Have a temporary directory for convenience. Make it in the build tree
24557 # simply because there is no reason against having it here, and in addition,
24558 # creating and moving files from /tmp can sometimes cause problems.
24559 # Hook for its removal unless debugging.
24560 # Note that there is a small window in which the directory will not be cleaned:
24561 # after its creation but before its name has been assigned to `$tmp'.
24562 $debug ||
24564 tmp=
24565 trap 'exit_status=$?
24566 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24568 trap '{ (exit 1); exit 1; }' 1 2 13 15
24570 # Create a (secure) tmp directory for tmp files.
24573 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24574 test -n "$tmp" && test -d "$tmp"
24575 } ||
24577 tmp=./conf$$-$RANDOM
24578 (umask 077 && mkdir "$tmp")
24579 } ||
24581 echo "$me: cannot create a temporary directory in ." >&2
24582 { (exit 1); exit 1; }
24586 # Set up the sed scripts for CONFIG_FILES section.
24589 # No need to generate the scripts if there are no CONFIG_FILES.
24590 # This happens for instance when ./config.status config.h
24591 if test -n "$CONFIG_FILES"; then
24593 _ACEOF
24597 ac_delim='%!_!# '
24598 for ac_last_try in false false false false false :; do
24599 cat >conf$$subs.sed <<_ACEOF
24600 SHELL!$SHELL$ac_delim
24601 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24602 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24603 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24604 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24605 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24606 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24607 exec_prefix!$exec_prefix$ac_delim
24608 prefix!$prefix$ac_delim
24609 program_transform_name!$program_transform_name$ac_delim
24610 bindir!$bindir$ac_delim
24611 sbindir!$sbindir$ac_delim
24612 libexecdir!$libexecdir$ac_delim
24613 datarootdir!$datarootdir$ac_delim
24614 datadir!$datadir$ac_delim
24615 sysconfdir!$sysconfdir$ac_delim
24616 sharedstatedir!$sharedstatedir$ac_delim
24617 localstatedir!$localstatedir$ac_delim
24618 includedir!$includedir$ac_delim
24619 oldincludedir!$oldincludedir$ac_delim
24620 docdir!$docdir$ac_delim
24621 infodir!$infodir$ac_delim
24622 htmldir!$htmldir$ac_delim
24623 dvidir!$dvidir$ac_delim
24624 pdfdir!$pdfdir$ac_delim
24625 psdir!$psdir$ac_delim
24626 libdir!$libdir$ac_delim
24627 localedir!$localedir$ac_delim
24628 mandir!$mandir$ac_delim
24629 DEFS!$DEFS$ac_delim
24630 ECHO_C!$ECHO_C$ac_delim
24631 ECHO_N!$ECHO_N$ac_delim
24632 ECHO_T!$ECHO_T$ac_delim
24633 LIBS!$LIBS$ac_delim
24634 build_alias!$build_alias$ac_delim
24635 host_alias!$host_alias$ac_delim
24636 target_alias!$target_alias$ac_delim
24637 MAINT!$MAINT$ac_delim
24638 build!$build$ac_delim
24639 build_cpu!$build_cpu$ac_delim
24640 build_vendor!$build_vendor$ac_delim
24641 build_os!$build_os$ac_delim
24642 host!$host$ac_delim
24643 host_cpu!$host_cpu$ac_delim
24644 host_vendor!$host_vendor$ac_delim
24645 host_os!$host_os$ac_delim
24646 CC!$CC$ac_delim
24647 CFLAGS!$CFLAGS$ac_delim
24648 LDFLAGS!$LDFLAGS$ac_delim
24649 CPPFLAGS!$CPPFLAGS$ac_delim
24650 ac_ct_CC!$ac_ct_CC$ac_delim
24651 EXEEXT!$EXEEXT$ac_delim
24652 OBJEXT!$OBJEXT$ac_delim
24653 CPP!$CPP$ac_delim
24654 GREP!$GREP$ac_delim
24655 EGREP!$EGREP$ac_delim
24656 LN_S!$LN_S$ac_delim
24657 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24658 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24659 INSTALL_DATA!$INSTALL_DATA$ac_delim
24660 RANLIB!$RANLIB$ac_delim
24661 INSTALL_INFO!$INSTALL_INFO$ac_delim
24662 GZIP_PROG!$GZIP_PROG$ac_delim
24663 MAKEINFO!$MAKEINFO$ac_delim
24664 LIBSOUND!$LIBSOUND$ac_delim
24665 PKG_CONFIG!$PKG_CONFIG$ac_delim
24666 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24667 ALSA_LIBS!$ALSA_LIBS$ac_delim
24668 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24669 SET_MAKE!$SET_MAKE$ac_delim
24670 XMKMF!$XMKMF$ac_delim
24671 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24672 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
24673 RSVG_LIBS!$RSVG_LIBS$ac_delim
24674 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24675 GTK_LIBS!$GTK_LIBS$ac_delim
24676 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
24677 DBUS_LIBS!$DBUS_LIBS$ac_delim
24678 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24679 XFT_LIBS!$XFT_LIBS$ac_delim
24680 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
24681 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
24682 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
24683 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
24684 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
24685 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
24686 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
24687 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
24688 ALLOCA!$ALLOCA$ac_delim
24689 liblockfile!$liblockfile$ac_delim
24690 LIBOBJS!$LIBOBJS$ac_delim
24691 NEED_SETGID!$NEED_SETGID$ac_delim
24692 KMEM_GROUP!$KMEM_GROUP$ac_delim
24693 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24694 GETOPT_H!$GETOPT_H$ac_delim
24695 GETOPTOBJS!$GETOPTOBJS$ac_delim
24696 version!$version$ac_delim
24697 _ACEOF
24699 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24700 break
24701 elif $ac_last_try; then
24702 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24703 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24704 { (exit 1); exit 1; }; }
24705 else
24706 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24708 done
24710 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24711 if test -n "$ac_eof"; then
24712 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24713 ac_eof=`expr $ac_eof + 1`
24716 cat >>$CONFIG_STATUS <<_ACEOF
24717 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24718 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24719 _ACEOF
24720 sed '
24721 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24722 s/^/s,@/; s/!/@,|#_!!_#|/
24725 s/'"$ac_delim"'$/,g/; t
24726 s/$/\\/; p
24727 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24728 ' >>$CONFIG_STATUS <conf$$subs.sed
24729 rm -f conf$$subs.sed
24730 cat >>$CONFIG_STATUS <<_ACEOF
24731 CEOF$ac_eof
24732 _ACEOF
24735 ac_delim='%!_!# '
24736 for ac_last_try in false false false false false :; do
24737 cat >conf$$subs.sed <<_ACEOF
24738 configuration!$configuration$ac_delim
24739 canonical!$canonical$ac_delim
24740 srcdir!$srcdir$ac_delim
24741 lispdir!$lispdir$ac_delim
24742 locallisppath!$locallisppath$ac_delim
24743 lisppath!$lisppath$ac_delim
24744 x_default_search_path!$x_default_search_path$ac_delim
24745 etcdir!$etcdir$ac_delim
24746 archlibdir!$archlibdir$ac_delim
24747 bitmapdir!$bitmapdir$ac_delim
24748 gamedir!$gamedir$ac_delim
24749 gameuser!$gameuser$ac_delim
24750 c_switch_system!$c_switch_system$ac_delim
24751 c_switch_machine!$c_switch_machine$ac_delim
24752 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24753 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24754 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24755 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24756 machfile!$machfile$ac_delim
24757 opsysfile!$opsysfile$ac_delim
24758 carbon_appdir!$carbon_appdir$ac_delim
24759 LTLIBOBJS!$LTLIBOBJS$ac_delim
24760 _ACEOF
24762 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
24763 break
24764 elif $ac_last_try; then
24765 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24766 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24767 { (exit 1); exit 1; }; }
24768 else
24769 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24771 done
24773 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24774 if test -n "$ac_eof"; then
24775 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24776 ac_eof=`expr $ac_eof + 1`
24779 cat >>$CONFIG_STATUS <<_ACEOF
24780 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24781 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24782 _ACEOF
24783 sed '
24784 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24785 s/^/s,@/; s/!/@,|#_!!_#|/
24788 s/'"$ac_delim"'$/,g/; t
24789 s/$/\\/; p
24790 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24791 ' >>$CONFIG_STATUS <conf$$subs.sed
24792 rm -f conf$$subs.sed
24793 cat >>$CONFIG_STATUS <<_ACEOF
24794 :end
24795 s/|#_!!_#|//g
24796 CEOF$ac_eof
24797 _ACEOF
24800 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24801 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24802 # trailing colons and then remove the whole line if VPATH becomes empty
24803 # (actually we leave an empty line to preserve line numbers).
24804 if test "x$srcdir" = x.; then
24805 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24806 s/:*\$(srcdir):*/:/
24807 s/:*\${srcdir}:*/:/
24808 s/:*@srcdir@:*/:/
24809 s/^\([^=]*=[ ]*\):*/\1/
24810 s/:*$//
24811 s/^[^=]*=[ ]*$//
24815 cat >>$CONFIG_STATUS <<\_ACEOF
24816 fi # test -n "$CONFIG_FILES"
24819 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24821 case $ac_tag in
24822 :[FHLC]) ac_mode=$ac_tag; continue;;
24823 esac
24824 case $ac_mode$ac_tag in
24825 :[FHL]*:*);;
24826 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24827 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24828 { (exit 1); exit 1; }; };;
24829 :[FH]-) ac_tag=-:-;;
24830 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24831 esac
24832 ac_save_IFS=$IFS
24833 IFS=:
24834 set x $ac_tag
24835 IFS=$ac_save_IFS
24836 shift
24837 ac_file=$1
24838 shift
24840 case $ac_mode in
24841 :L) ac_source=$1;;
24842 :[FH])
24843 ac_file_inputs=
24844 for ac_f
24846 case $ac_f in
24847 -) ac_f="$tmp/stdin";;
24848 *) # Look for the file first in the build tree, then in the source tree
24849 # (if the path is not absolute). The absolute path cannot be DOS-style,
24850 # because $ac_f cannot contain `:'.
24851 test -f "$ac_f" ||
24852 case $ac_f in
24853 [\\/$]*) false;;
24854 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24855 esac ||
24856 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24857 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24858 { (exit 1); exit 1; }; };;
24859 esac
24860 ac_file_inputs="$ac_file_inputs $ac_f"
24861 done
24863 # Let's still pretend it is `configure' which instantiates (i.e., don't
24864 # use $as_me), people would be surprised to read:
24865 # /* config.h. Generated by config.status. */
24866 configure_input="Generated from "`IFS=:
24867 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24868 if test x"$ac_file" != x-; then
24869 configure_input="$ac_file. $configure_input"
24870 { echo "$as_me:$LINENO: creating $ac_file" >&5
24871 echo "$as_me: creating $ac_file" >&6;}
24874 case $ac_tag in
24875 *:-:* | *:-) cat >"$tmp/stdin";;
24876 esac
24878 esac
24880 ac_dir=`$as_dirname -- "$ac_file" ||
24881 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24882 X"$ac_file" : 'X\(//\)[^/]' \| \
24883 X"$ac_file" : 'X\(//\)$' \| \
24884 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24885 echo X"$ac_file" |
24886 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24887 s//\1/
24890 /^X\(\/\/\)[^/].*/{
24891 s//\1/
24894 /^X\(\/\/\)$/{
24895 s//\1/
24898 /^X\(\/\).*/{
24899 s//\1/
24902 s/.*/./; q'`
24903 { as_dir="$ac_dir"
24904 case $as_dir in #(
24905 -*) as_dir=./$as_dir;;
24906 esac
24907 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24908 as_dirs=
24909 while :; do
24910 case $as_dir in #(
24911 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24912 *) as_qdir=$as_dir;;
24913 esac
24914 as_dirs="'$as_qdir' $as_dirs"
24915 as_dir=`$as_dirname -- "$as_dir" ||
24916 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24917 X"$as_dir" : 'X\(//\)[^/]' \| \
24918 X"$as_dir" : 'X\(//\)$' \| \
24919 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24920 echo X"$as_dir" |
24921 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24922 s//\1/
24925 /^X\(\/\/\)[^/].*/{
24926 s//\1/
24929 /^X\(\/\/\)$/{
24930 s//\1/
24933 /^X\(\/\).*/{
24934 s//\1/
24937 s/.*/./; q'`
24938 test -d "$as_dir" && break
24939 done
24940 test -z "$as_dirs" || eval "mkdir $as_dirs"
24941 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24942 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24943 { (exit 1); exit 1; }; }; }
24944 ac_builddir=.
24946 case "$ac_dir" in
24947 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24949 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24950 # A ".." for each directory in $ac_dir_suffix.
24951 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24952 case $ac_top_builddir_sub in
24953 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24954 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24955 esac ;;
24956 esac
24957 ac_abs_top_builddir=$ac_pwd
24958 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24959 # for backward compatibility:
24960 ac_top_builddir=$ac_top_build_prefix
24962 case $srcdir in
24963 .) # We are building in place.
24964 ac_srcdir=.
24965 ac_top_srcdir=$ac_top_builddir_sub
24966 ac_abs_top_srcdir=$ac_pwd ;;
24967 [\\/]* | ?:[\\/]* ) # Absolute name.
24968 ac_srcdir=$srcdir$ac_dir_suffix;
24969 ac_top_srcdir=$srcdir
24970 ac_abs_top_srcdir=$srcdir ;;
24971 *) # Relative name.
24972 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24973 ac_top_srcdir=$ac_top_build_prefix$srcdir
24974 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24975 esac
24976 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24979 case $ac_mode in
24982 # CONFIG_FILE
24985 case $INSTALL in
24986 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24987 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24988 esac
24989 _ACEOF
24991 cat >>$CONFIG_STATUS <<\_ACEOF
24992 # If the template does not know about datarootdir, expand it.
24993 # FIXME: This hack should be removed a few years after 2.60.
24994 ac_datarootdir_hack=; ac_datarootdir_seen=
24996 case `sed -n '/datarootdir/ {
25000 /@datadir@/p
25001 /@docdir@/p
25002 /@infodir@/p
25003 /@localedir@/p
25004 /@mandir@/p
25005 ' $ac_file_inputs` in
25006 *datarootdir*) ac_datarootdir_seen=yes;;
25007 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25008 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25009 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25010 _ACEOF
25011 cat >>$CONFIG_STATUS <<_ACEOF
25012 ac_datarootdir_hack='
25013 s&@datadir@&$datadir&g
25014 s&@docdir@&$docdir&g
25015 s&@infodir@&$infodir&g
25016 s&@localedir@&$localedir&g
25017 s&@mandir@&$mandir&g
25018 s&\\\${datarootdir}&$datarootdir&g' ;;
25019 esac
25020 _ACEOF
25022 # Neutralize VPATH when `$srcdir' = `.'.
25023 # Shell code in configure.ac might set extrasub.
25024 # FIXME: do we really want to maintain this feature?
25025 cat >>$CONFIG_STATUS <<_ACEOF
25026 sed "$ac_vpsub
25027 $extrasub
25028 _ACEOF
25029 cat >>$CONFIG_STATUS <<\_ACEOF
25031 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25032 s&@configure_input@&$configure_input&;t t
25033 s&@top_builddir@&$ac_top_builddir_sub&;t t
25034 s&@srcdir@&$ac_srcdir&;t t
25035 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25036 s&@top_srcdir@&$ac_top_srcdir&;t t
25037 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25038 s&@builddir@&$ac_builddir&;t t
25039 s&@abs_builddir@&$ac_abs_builddir&;t t
25040 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25041 s&@INSTALL@&$ac_INSTALL&;t t
25042 $ac_datarootdir_hack
25043 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25045 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25046 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25047 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25048 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25049 which seems to be undefined. Please make sure it is defined." >&5
25050 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25051 which seems to be undefined. Please make sure it is defined." >&2;}
25053 rm -f "$tmp/stdin"
25054 case $ac_file in
25055 -) cat "$tmp/out"; rm -f "$tmp/out";;
25056 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25057 esac
25061 # CONFIG_HEADER
25063 _ACEOF
25065 # Transform confdefs.h into a sed script `conftest.defines', that
25066 # substitutes the proper values into config.h.in to produce config.h.
25067 rm -f conftest.defines conftest.tail
25068 # First, append a space to every undef/define line, to ease matching.
25069 echo 's/$/ /' >conftest.defines
25070 # Then, protect against being on the right side of a sed subst, or in
25071 # an unquoted here document, in config.status. If some macros were
25072 # called several times there might be several #defines for the same
25073 # symbol, which is useless. But do not sort them, since the last
25074 # AC_DEFINE must be honored.
25075 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25076 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25077 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25078 # PARAMS is the parameter list in the macro definition--in most cases, it's
25079 # just an empty string.
25080 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25081 ac_dB='\\)[ (].*,\\1define\\2'
25082 ac_dC=' '
25083 ac_dD=' ,'
25085 uniq confdefs.h |
25086 sed -n '
25087 t rset
25088 :rset
25089 s/^[ ]*#[ ]*define[ ][ ]*//
25090 t ok
25093 s/[\\&,]/\\&/g
25094 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25095 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25096 ' >>conftest.defines
25098 # Remove the space that was appended to ease matching.
25099 # Then replace #undef with comments. This is necessary, for
25100 # example, in the case of _POSIX_SOURCE, which is predefined and required
25101 # on some systems where configure will not decide to define it.
25102 # (The regexp can be short, since the line contains either #define or #undef.)
25103 echo 's/ $//
25104 s,^[ #]*u.*,/* & */,' >>conftest.defines
25106 # Break up conftest.defines:
25107 ac_max_sed_lines=50
25109 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25110 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25111 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25112 # et cetera.
25113 ac_in='$ac_file_inputs'
25114 ac_out='"$tmp/out1"'
25115 ac_nxt='"$tmp/out2"'
25117 while :
25119 # Write a here document:
25120 cat >>$CONFIG_STATUS <<_ACEOF
25121 # First, check the format of the line:
25122 cat >"\$tmp/defines.sed" <<\\CEOF
25123 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25124 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25126 :def
25127 _ACEOF
25128 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25129 echo 'CEOF
25130 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25131 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25132 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25133 grep . conftest.tail >/dev/null || break
25134 rm -f conftest.defines
25135 mv conftest.tail conftest.defines
25136 done
25137 rm -f conftest.defines conftest.tail
25139 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25140 cat >>$CONFIG_STATUS <<\_ACEOF
25141 if test x"$ac_file" != x-; then
25142 echo "/* $configure_input */" >"$tmp/config.h"
25143 cat "$ac_result" >>"$tmp/config.h"
25144 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25145 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25146 echo "$as_me: $ac_file is unchanged" >&6;}
25147 else
25148 rm -f $ac_file
25149 mv "$tmp/config.h" $ac_file
25151 else
25152 echo "/* $configure_input */"
25153 cat "$ac_result"
25155 rm -f "$tmp/out12"
25158 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25159 echo "$as_me: executing $ac_file commands" >&6;}
25161 esac
25164 case $ac_file$ac_mode in
25165 "default":C)
25167 ### Make the necessary directories, if they don't exist.
25168 for dir in etc lisp ; do
25169 test -d ${dir} || mkdir ${dir}
25170 done
25172 # Build src/Makefile from ${srcdir}/src/Makefile.c
25173 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25174 # This must be done after src/config.h is built, since we rely on that file.
25176 # Now get this: Some word that is part of the ${srcdir} directory name
25177 # or the ${configuration} value might, just might, happen to be an
25178 # identifier like `sun4' or `i386' or something, and be predefined by
25179 # the C preprocessor to some helpful value like 1, or maybe the empty
25180 # string. Needless to say consequent macro substitutions are less
25181 # than conducive to the makefile finding the correct directory.
25182 undefs="`echo $top_srcdir $configuration $canonical |
25183 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25184 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
25187 echo creating src/epaths.h
25188 ${MAKE-make} epaths-force
25190 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25191 # `..' to `. .' unless invoked with -traditional
25193 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
25194 CPPFLAGS="$CPPFLAGS -traditional"
25197 echo creating lib-src/Makefile
25198 ( cd lib-src
25199 rm -f junk.c junk1.c junk2.c
25200 sed -e '/start of cpp stuff/q' \
25201 < Makefile.c > junk1.c
25202 sed -e '1,/start of cpp stuff/d'\
25203 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25204 < Makefile.c > junk.c
25205 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25206 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25207 cat junk1.c junk2.c > Makefile.new
25208 rm -f junk.c junk1.c junk2.c
25209 chmod 444 Makefile.new
25210 mv -f Makefile.new Makefile
25213 echo creating src/Makefile
25214 ( cd src
25215 rm -f junk.c junk1.c junk2.c
25216 sed -e '/start of cpp stuff/q' \
25217 < Makefile.c > junk1.c
25218 sed -e '1,/start of cpp stuff/d'\
25219 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25220 < Makefile.c > junk.c
25221 if test -f ${srcdir}/admin/unidata/UnicodeData.txt; then
25222 echo creating ${srcdir}/admin/unidata/Makefile
25223 cp ${srcdir}/admin/unidata/Makefile.in ${srcdir}/admin/unidata/Makefile
25224 CPPFLAGS="$CPPFLAGS -DHAVE_UNIDATA"
25226 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25227 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25228 cat junk1.c junk2.c > Makefile.new
25229 rm -f junk.c junk1.c junk2.c
25230 chmod 444 Makefile.new
25231 mv -f Makefile.new Makefile
25234 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25235 echo creating src/.gdbinit
25236 echo source $srcdir/src/.gdbinit > src/.gdbinit
25239 # This is how we know whether to re-run configure in certain cases.
25240 touch src/config.stamp
25244 esac
25245 done # for ac_tag
25248 { (exit 0); exit 0; }
25249 _ACEOF
25250 chmod +x $CONFIG_STATUS
25251 ac_clean_files=$ac_clean_files_save
25254 # configure is writing to config.log, and then calls config.status.
25255 # config.status does its own redirection, appending to config.log.
25256 # Unfortunately, on DOS this fails, as config.log is still kept open
25257 # by configure, so config.status won't be able to write to it; its
25258 # output is simply discarded. So we exec the FD to /dev/null,
25259 # effectively closing config.log, so it can be properly (re)opened and
25260 # appended to by config.status. When coming back to configure, we
25261 # need to make the FD available again.
25262 if test "$no_create" != yes; then
25263 ac_cs_success=:
25264 ac_config_status_args=
25265 test "$silent" = yes &&
25266 ac_config_status_args="$ac_config_status_args --quiet"
25267 exec 5>/dev/null
25268 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25269 exec 5>>config.log
25270 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25271 # would make configure fail if this is the last instruction.
25272 $ac_cs_success || { (exit 1); exit 1; }