(eshell-parse-argument-hook): Put `number' property on entire argument
[emacs.git] / configure
blob42111988396106b292c3d5f413f6906844170775
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for emacs 23.1.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.1.50'
576 PACKAGE_STRING='emacs 23.1.50'
577 PACKAGE_BUGREPORT=''
579 ac_unique_file="src/lisp.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
616 ac_config_libobj_dir=src
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 FONTCONFIG_CFLAGS
698 FONTCONFIG_LIBS
699 XFT_CFLAGS
700 XFT_LIBS
701 LIBOTF_CFLAGS
702 LIBOTF_LIBS
703 M17N_FLT_CFLAGS
704 M17N_FLT_LIBS
705 FREETYPE_CFLAGS
706 FREETYPE_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 ns_appdir
737 ns_appbindir
738 ns_appresdir
739 ns_appsrc
740 GNUSTEP_MAKEFILES
741 GNUSTEP_SYSTEM_HEADERS
742 GNUSTEP_SYSTEM_LIBRARIES
743 GNU_OBJC_CFLAGS
744 LIB_SRC_EXTRA_INSTALLABLES
745 LTLIBOBJS'
746 ac_subst_files=''
747 ac_precious_vars='build_alias
748 host_alias
749 target_alias
751 CFLAGS
752 LDFLAGS
753 LIBS
754 CPPFLAGS
756 XMKMF'
759 # Initialize some variables set by options.
760 ac_init_help=
761 ac_init_version=false
762 # The variables have the same names as the options, with
763 # dashes changed to underlines.
764 cache_file=/dev/null
765 exec_prefix=NONE
766 no_create=
767 no_recursion=
768 prefix=NONE
769 program_prefix=NONE
770 program_suffix=NONE
771 program_transform_name=s,x,x,
772 silent=
773 site=
774 srcdir=
775 verbose=
776 x_includes=NONE
777 x_libraries=NONE
779 # Installation directory options.
780 # These are left unexpanded so users can "make install exec_prefix=/foo"
781 # and all the variables that are supposed to be based on exec_prefix
782 # by default will actually change.
783 # Use braces instead of parens because sh, perl, etc. also accept them.
784 # (The list follows the same order as the GNU Coding Standards.)
785 bindir='${exec_prefix}/bin'
786 sbindir='${exec_prefix}/sbin'
787 libexecdir='${exec_prefix}/libexec'
788 datarootdir='${prefix}/share'
789 datadir='${datarootdir}'
790 sysconfdir='${prefix}/etc'
791 sharedstatedir='${prefix}/com'
792 localstatedir='${prefix}/var'
793 includedir='${prefix}/include'
794 oldincludedir='/usr/include'
795 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
796 infodir='${datarootdir}/info'
797 htmldir='${docdir}'
798 dvidir='${docdir}'
799 pdfdir='${docdir}'
800 psdir='${docdir}'
801 libdir='${exec_prefix}/lib'
802 localedir='${datarootdir}/locale'
803 mandir='${datarootdir}/man'
805 ac_prev=
806 ac_dashdash=
807 for ac_option
809 # If the previous option needs an argument, assign it.
810 if test -n "$ac_prev"; then
811 eval $ac_prev=\$ac_option
812 ac_prev=
813 continue
816 case $ac_option in
817 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
818 *) ac_optarg=yes ;;
819 esac
821 # Accept the important Cygnus configure options, so we can diagnose typos.
823 case $ac_dashdash$ac_option in
825 ac_dashdash=yes ;;
827 -bindir | --bindir | --bindi | --bind | --bin | --bi)
828 ac_prev=bindir ;;
829 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
830 bindir=$ac_optarg ;;
832 -build | --build | --buil | --bui | --bu)
833 ac_prev=build_alias ;;
834 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
835 build_alias=$ac_optarg ;;
837 -cache-file | --cache-file | --cache-fil | --cache-fi \
838 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
839 ac_prev=cache_file ;;
840 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
841 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
842 cache_file=$ac_optarg ;;
844 --config-cache | -C)
845 cache_file=config.cache ;;
847 -datadir | --datadir | --datadi | --datad)
848 ac_prev=datadir ;;
849 -datadir=* | --datadir=* | --datadi=* | --datad=*)
850 datadir=$ac_optarg ;;
852 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
853 | --dataroo | --dataro | --datar)
854 ac_prev=datarootdir ;;
855 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
856 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
857 datarootdir=$ac_optarg ;;
859 -disable-* | --disable-*)
860 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
861 # Reject names that are not valid shell variable names.
862 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
863 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
864 { (exit 1); exit 1; }; }
865 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
866 eval enable_$ac_feature=no ;;
868 -docdir | --docdir | --docdi | --doc | --do)
869 ac_prev=docdir ;;
870 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
871 docdir=$ac_optarg ;;
873 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
874 ac_prev=dvidir ;;
875 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
876 dvidir=$ac_optarg ;;
878 -enable-* | --enable-*)
879 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
880 # Reject names that are not valid shell variable names.
881 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
882 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
883 { (exit 1); exit 1; }; }
884 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
885 eval enable_$ac_feature=\$ac_optarg ;;
887 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
888 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
889 | --exec | --exe | --ex)
890 ac_prev=exec_prefix ;;
891 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
892 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
893 | --exec=* | --exe=* | --ex=*)
894 exec_prefix=$ac_optarg ;;
896 -gas | --gas | --ga | --g)
897 # Obsolete; use --with-gas.
898 with_gas=yes ;;
900 -help | --help | --hel | --he | -h)
901 ac_init_help=long ;;
902 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
903 ac_init_help=recursive ;;
904 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
905 ac_init_help=short ;;
907 -host | --host | --hos | --ho)
908 ac_prev=host_alias ;;
909 -host=* | --host=* | --hos=* | --ho=*)
910 host_alias=$ac_optarg ;;
912 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
913 ac_prev=htmldir ;;
914 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
915 | --ht=*)
916 htmldir=$ac_optarg ;;
918 -includedir | --includedir | --includedi | --included | --include \
919 | --includ | --inclu | --incl | --inc)
920 ac_prev=includedir ;;
921 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
922 | --includ=* | --inclu=* | --incl=* | --inc=*)
923 includedir=$ac_optarg ;;
925 -infodir | --infodir | --infodi | --infod | --info | --inf)
926 ac_prev=infodir ;;
927 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
928 infodir=$ac_optarg ;;
930 -libdir | --libdir | --libdi | --libd)
931 ac_prev=libdir ;;
932 -libdir=* | --libdir=* | --libdi=* | --libd=*)
933 libdir=$ac_optarg ;;
935 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
936 | --libexe | --libex | --libe)
937 ac_prev=libexecdir ;;
938 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
939 | --libexe=* | --libex=* | --libe=*)
940 libexecdir=$ac_optarg ;;
942 -localedir | --localedir | --localedi | --localed | --locale)
943 ac_prev=localedir ;;
944 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
945 localedir=$ac_optarg ;;
947 -localstatedir | --localstatedir | --localstatedi | --localstated \
948 | --localstate | --localstat | --localsta | --localst | --locals)
949 ac_prev=localstatedir ;;
950 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
951 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
952 localstatedir=$ac_optarg ;;
954 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
955 ac_prev=mandir ;;
956 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
957 mandir=$ac_optarg ;;
959 -nfp | --nfp | --nf)
960 # Obsolete; use --without-fp.
961 with_fp=no ;;
963 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
964 | --no-cr | --no-c | -n)
965 no_create=yes ;;
967 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
968 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
969 no_recursion=yes ;;
971 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
972 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
973 | --oldin | --oldi | --old | --ol | --o)
974 ac_prev=oldincludedir ;;
975 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
976 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
977 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
978 oldincludedir=$ac_optarg ;;
980 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
981 ac_prev=prefix ;;
982 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
983 prefix=$ac_optarg ;;
985 -program-prefix | --program-prefix | --program-prefi | --program-pref \
986 | --program-pre | --program-pr | --program-p)
987 ac_prev=program_prefix ;;
988 -program-prefix=* | --program-prefix=* | --program-prefi=* \
989 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
990 program_prefix=$ac_optarg ;;
992 -program-suffix | --program-suffix | --program-suffi | --program-suff \
993 | --program-suf | --program-su | --program-s)
994 ac_prev=program_suffix ;;
995 -program-suffix=* | --program-suffix=* | --program-suffi=* \
996 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
997 program_suffix=$ac_optarg ;;
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 ac_prev=program_transform_name ;;
1007 -program-transform-name=* | --program-transform-name=* \
1008 | --program-transform-nam=* | --program-transform-na=* \
1009 | --program-transform-n=* | --program-transform-=* \
1010 | --program-transform=* | --program-transfor=* \
1011 | --program-transfo=* | --program-transf=* \
1012 | --program-trans=* | --program-tran=* \
1013 | --progr-tra=* | --program-tr=* | --program-t=*)
1014 program_transform_name=$ac_optarg ;;
1016 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1017 ac_prev=pdfdir ;;
1018 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1019 pdfdir=$ac_optarg ;;
1021 -psdir | --psdir | --psdi | --psd | --ps)
1022 ac_prev=psdir ;;
1023 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1024 psdir=$ac_optarg ;;
1026 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1027 | -silent | --silent | --silen | --sile | --sil)
1028 silent=yes ;;
1030 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1031 ac_prev=sbindir ;;
1032 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1033 | --sbi=* | --sb=*)
1034 sbindir=$ac_optarg ;;
1036 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1037 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1038 | --sharedst | --shareds | --shared | --share | --shar \
1039 | --sha | --sh)
1040 ac_prev=sharedstatedir ;;
1041 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1042 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1043 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1044 | --sha=* | --sh=*)
1045 sharedstatedir=$ac_optarg ;;
1047 -site | --site | --sit)
1048 ac_prev=site ;;
1049 -site=* | --site=* | --sit=*)
1050 site=$ac_optarg ;;
1052 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1053 ac_prev=srcdir ;;
1054 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1055 srcdir=$ac_optarg ;;
1057 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1058 | --syscon | --sysco | --sysc | --sys | --sy)
1059 ac_prev=sysconfdir ;;
1060 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1061 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1062 sysconfdir=$ac_optarg ;;
1064 -target | --target | --targe | --targ | --tar | --ta | --t)
1065 ac_prev=target_alias ;;
1066 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1067 target_alias=$ac_optarg ;;
1069 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1070 verbose=yes ;;
1072 -version | --version | --versio | --versi | --vers | -V)
1073 ac_init_version=: ;;
1075 -with-* | --with-*)
1076 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1079 { echo "$as_me: error: invalid package name: $ac_package" >&2
1080 { (exit 1); exit 1; }; }
1081 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1082 eval with_$ac_package=\$ac_optarg ;;
1084 -without-* | --without-*)
1085 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1086 # Reject names that are not valid shell variable names.
1087 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1088 { echo "$as_me: error: invalid package name: $ac_package" >&2
1089 { (exit 1); exit 1; }; }
1090 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1091 eval with_$ac_package=no ;;
1093 --x)
1094 # Obsolete; use --with-x.
1095 with_x=yes ;;
1097 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1098 | --x-incl | --x-inc | --x-in | --x-i)
1099 ac_prev=x_includes ;;
1100 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1101 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1102 x_includes=$ac_optarg ;;
1104 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1105 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1106 ac_prev=x_libraries ;;
1107 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1108 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1109 x_libraries=$ac_optarg ;;
1111 -*) { echo "$as_me: error: unrecognized option: $ac_option
1112 Try \`$0 --help' for more information." >&2
1113 { (exit 1); exit 1; }; }
1116 *=*)
1117 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1118 # Reject names that are not valid shell variable names.
1119 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1120 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1121 { (exit 1); exit 1; }; }
1122 eval $ac_envvar=\$ac_optarg
1123 export $ac_envvar ;;
1126 # FIXME: should be removed in autoconf 3.0.
1127 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1128 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1129 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1130 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1133 esac
1134 done
1136 if test -n "$ac_prev"; then
1137 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1138 { echo "$as_me: error: missing argument to $ac_option" >&2
1139 { (exit 1); exit 1; }; }
1142 # Be sure to have absolute directory names.
1143 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1144 datadir sysconfdir sharedstatedir localstatedir includedir \
1145 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1146 libdir localedir mandir
1148 eval ac_val=\$$ac_var
1149 case $ac_val in
1150 [\\/$]* | ?:[\\/]* ) continue;;
1151 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1152 esac
1153 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1154 { (exit 1); exit 1; }; }
1155 done
1157 # There might be people who depend on the old broken behavior: `$host'
1158 # used to hold the argument of --host etc.
1159 # FIXME: To remove some day.
1160 build=$build_alias
1161 host=$host_alias
1162 target=$target_alias
1164 # FIXME: To remove some day.
1165 if test "x$host_alias" != x; then
1166 if test "x$build_alias" = x; then
1167 cross_compiling=maybe
1168 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1169 If a cross compiler is detected then cross compile mode will be used." >&2
1170 elif test "x$build_alias" != "x$host_alias"; then
1171 cross_compiling=yes
1175 ac_tool_prefix=
1176 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1178 test "$silent" = yes && exec 6>/dev/null
1181 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1182 ac_ls_di=`ls -di .` &&
1183 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1184 { echo "$as_me: error: Working directory cannot be determined" >&2
1185 { (exit 1); exit 1; }; }
1186 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1187 { echo "$as_me: error: pwd does not report name of working directory" >&2
1188 { (exit 1); exit 1; }; }
1191 # Find the source files, if location was not specified.
1192 if test -z "$srcdir"; then
1193 ac_srcdir_defaulted=yes
1194 # Try the directory containing this script, then the parent directory.
1195 ac_confdir=`$as_dirname -- "$0" ||
1196 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1197 X"$0" : 'X\(//\)[^/]' \| \
1198 X"$0" : 'X\(//\)$' \| \
1199 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1200 echo X"$0" |
1201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1202 s//\1/
1205 /^X\(\/\/\)[^/].*/{
1206 s//\1/
1209 /^X\(\/\/\)$/{
1210 s//\1/
1213 /^X\(\/\).*/{
1214 s//\1/
1217 s/.*/./; q'`
1218 srcdir=$ac_confdir
1219 if test ! -r "$srcdir/$ac_unique_file"; then
1220 srcdir=..
1222 else
1223 ac_srcdir_defaulted=no
1225 if test ! -r "$srcdir/$ac_unique_file"; then
1226 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1227 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1228 { (exit 1); exit 1; }; }
1230 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1231 ac_abs_confdir=`(
1232 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1233 { (exit 1); exit 1; }; }
1234 pwd)`
1235 # When building in place, set srcdir=.
1236 if test "$ac_abs_confdir" = "$ac_pwd"; then
1237 srcdir=.
1239 # Remove unnecessary trailing slashes from srcdir.
1240 # Double slashes in file names in object file debugging info
1241 # mess up M-x gdb in Emacs.
1242 case $srcdir in
1243 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1244 esac
1245 for ac_var in $ac_precious_vars; do
1246 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1247 eval ac_env_${ac_var}_value=\$${ac_var}
1248 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1249 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1250 done
1253 # Report the --help message.
1255 if test "$ac_init_help" = "long"; then
1256 # Omit some internal or obsolete options to make the list less imposing.
1257 # This message is too long to be a string in the A/UX 3.1 sh.
1258 cat <<_ACEOF
1259 \`configure' configures emacs 23.1.50 to adapt to many kinds of systems.
1261 Usage: $0 [OPTION]... [VAR=VALUE]...
1263 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1264 VAR=VALUE. See below for descriptions of some of the useful variables.
1266 Defaults for the options are specified in brackets.
1268 Configuration:
1269 -h, --help display this help and exit
1270 --help=short display options specific to this package
1271 --help=recursive display the short help of all the included packages
1272 -V, --version display version information and exit
1273 -q, --quiet, --silent do not print \`checking...' messages
1274 --cache-file=FILE cache test results in FILE [disabled]
1275 -C, --config-cache alias for \`--cache-file=config.cache'
1276 -n, --no-create do not create output files
1277 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1279 Installation directories:
1280 --prefix=PREFIX install architecture-independent files in PREFIX
1281 [$ac_default_prefix]
1282 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1283 [PREFIX]
1285 By default, \`make install' will install all the files in
1286 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1287 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1288 for instance \`--prefix=\$HOME'.
1290 For better control, use the options below.
1292 Fine tuning of the installation directories:
1293 --bindir=DIR user executables [EPREFIX/bin]
1294 --sbindir=DIR system admin executables [EPREFIX/sbin]
1295 --libexecdir=DIR program executables [EPREFIX/libexec]
1296 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1297 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1298 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1299 --libdir=DIR object code libraries [EPREFIX/lib]
1300 --includedir=DIR C header files [PREFIX/include]
1301 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1302 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1303 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1304 --infodir=DIR info documentation [DATAROOTDIR/info]
1305 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1306 --mandir=DIR man documentation [DATAROOTDIR/man]
1307 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1308 --htmldir=DIR html documentation [DOCDIR]
1309 --dvidir=DIR dvi documentation [DOCDIR]
1310 --pdfdir=DIR pdf documentation [DOCDIR]
1311 --psdir=DIR ps documentation [DOCDIR]
1312 _ACEOF
1314 cat <<\_ACEOF
1316 Program names:
1317 --program-prefix=PREFIX prepend PREFIX to installed program names
1318 --program-suffix=SUFFIX append SUFFIX to installed program names
1319 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1321 X features:
1322 --x-includes=DIR X include files are in DIR
1323 --x-libraries=DIR X library files are in DIR
1325 System types:
1326 --build=BUILD configure for building on BUILD [guessed]
1327 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1328 _ACEOF
1331 if test -n "$ac_init_help"; then
1332 case $ac_init_help in
1333 short | recursive ) echo "Configuration of emacs 23.1.50:";;
1334 esac
1335 cat <<\_ACEOF
1337 Optional Features:
1338 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1339 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1340 --disable-ns-self-contained
1341 disable self contained build under NeXTstep
1342 --enable-asserts compile code with asserts enabled
1343 --enable-maintainer-mode
1344 enable make rules and dependencies not useful (and
1345 sometimes confusing) to the casual installer
1346 --enable-locallisppath=PATH
1347 directories Emacs should search for lisp files
1348 specific to this site
1349 --enable-checking[=LIST]
1350 enable expensive run-time checks. With LIST, enable
1351 only specific categories of checks. Categories are:
1352 all,yes,no. Flags are: stringbytes, stringoverrun,
1353 stringfreelist, xmallocoverrun, conslist
1354 --enable-profiling build emacs with profiling support. This might not
1355 work on all platforms
1356 --disable-largefile omit support for large files
1358 Optional Packages:
1359 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1360 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1361 --without-pop don't support POP mail retrieval with movemail
1362 --with-kerberos support Kerberos-authenticated POP
1363 --with-kerberos5 support Kerberos version 5 authenticated POP
1364 --with-hesiod support Hesiod to get the POP server host
1365 --without-sound don't compile with sound support
1366 --without-sync-input process async input synchronously
1367 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1368 motif, gtk, no)
1369 --without-xpm don't compile with XPM image support
1370 --without-jpeg don't compile with JPEG image support
1371 --without-tiff don't compile with TIFF image support
1372 --without-gif don't compile with GIF image support
1373 --without-png don't compile with PNG image support
1374 --without-rsvg don't compile with SVG image support
1375 --without-xft don't use XFT for anti aliased fonts
1376 --without-libotf don't use libotf for OpenType font support
1377 --without-m17n-flt don't use m17n-flt for text shaping
1378 --without-toolkit-scroll-bars
1379 don't use Motif or Xaw3d scroll bars
1380 --without-xaw3d don't use Xaw3d
1381 --without-xim don't use X11 XIM
1382 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1383 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1384 console
1385 --without-dbus don't compile with D-Bus support
1386 --without-makeinfo don't require makeinfo for building manuals
1388 --with-pkg-config-prog=PATH
1389 path to pkg-config for finding GTK and librsvg
1390 --with-gnustep-conf=PATH
1391 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1392 or /etc/GNUstep/GNUstep.conf
1393 --with-x use the X Window System
1395 Some influential environment variables:
1396 CC C compiler command
1397 CFLAGS C compiler flags
1398 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1399 nonstandard directory <lib dir>
1400 LIBS libraries to pass to the linker, e.g. -l<library>
1401 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1402 you have headers in a nonstandard directory <include dir>
1403 CPP C preprocessor
1404 XMKMF Path to xmkmf, Makefile generator for X Window System
1406 Use these variables to override the choices made by `configure' or to help
1407 it to find libraries and programs with nonstandard names/locations.
1409 _ACEOF
1410 ac_status=$?
1413 if test "$ac_init_help" = "recursive"; then
1414 # If there are subdirs, report their specific --help.
1415 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1416 test -d "$ac_dir" || continue
1417 ac_builddir=.
1419 case "$ac_dir" in
1420 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1422 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1423 # A ".." for each directory in $ac_dir_suffix.
1424 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1425 case $ac_top_builddir_sub in
1426 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1427 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1428 esac ;;
1429 esac
1430 ac_abs_top_builddir=$ac_pwd
1431 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1432 # for backward compatibility:
1433 ac_top_builddir=$ac_top_build_prefix
1435 case $srcdir in
1436 .) # We are building in place.
1437 ac_srcdir=.
1438 ac_top_srcdir=$ac_top_builddir_sub
1439 ac_abs_top_srcdir=$ac_pwd ;;
1440 [\\/]* | ?:[\\/]* ) # Absolute name.
1441 ac_srcdir=$srcdir$ac_dir_suffix;
1442 ac_top_srcdir=$srcdir
1443 ac_abs_top_srcdir=$srcdir ;;
1444 *) # Relative name.
1445 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1446 ac_top_srcdir=$ac_top_build_prefix$srcdir
1447 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1448 esac
1449 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1451 cd "$ac_dir" || { ac_status=$?; continue; }
1452 # Check for guested configure.
1453 if test -f "$ac_srcdir/configure.gnu"; then
1454 echo &&
1455 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1456 elif test -f "$ac_srcdir/configure"; then
1457 echo &&
1458 $SHELL "$ac_srcdir/configure" --help=recursive
1459 else
1460 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1461 fi || ac_status=$?
1462 cd "$ac_pwd" || { ac_status=$?; break; }
1463 done
1466 test -n "$ac_init_help" && exit $ac_status
1467 if $ac_init_version; then
1468 cat <<\_ACEOF
1469 emacs configure 23.1.50
1470 generated by GNU Autoconf 2.61
1472 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1473 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1474 This configure script is free software; the Free Software Foundation
1475 gives unlimited permission to copy, distribute and modify it.
1476 _ACEOF
1477 exit
1479 cat >config.log <<_ACEOF
1480 This file contains any messages produced by compilers while
1481 running configure, to aid debugging if configure makes a mistake.
1483 It was created by emacs $as_me 23.1.50, which was
1484 generated by GNU Autoconf 2.61. Invocation command line was
1486 $ $0 $@
1488 _ACEOF
1489 exec 5>>config.log
1491 cat <<_ASUNAME
1492 ## --------- ##
1493 ## Platform. ##
1494 ## --------- ##
1496 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1497 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1498 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1499 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1500 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1502 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1503 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1505 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1506 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1507 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1508 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1509 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1510 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1511 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1513 _ASUNAME
1515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1516 for as_dir in $PATH
1518 IFS=$as_save_IFS
1519 test -z "$as_dir" && as_dir=.
1520 echo "PATH: $as_dir"
1521 done
1522 IFS=$as_save_IFS
1524 } >&5
1526 cat >&5 <<_ACEOF
1529 ## ----------- ##
1530 ## Core tests. ##
1531 ## ----------- ##
1533 _ACEOF
1536 # Keep a trace of the command line.
1537 # Strip out --no-create and --no-recursion so they do not pile up.
1538 # Strip out --silent because we don't want to record it for future runs.
1539 # Also quote any args containing shell meta-characters.
1540 # Make two passes to allow for proper duplicate-argument suppression.
1541 ac_configure_args=
1542 ac_configure_args0=
1543 ac_configure_args1=
1544 ac_must_keep_next=false
1545 for ac_pass in 1 2
1547 for ac_arg
1549 case $ac_arg in
1550 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1551 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1552 | -silent | --silent | --silen | --sile | --sil)
1553 continue ;;
1554 *\'*)
1555 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1556 esac
1557 case $ac_pass in
1558 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1560 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1561 if test $ac_must_keep_next = true; then
1562 ac_must_keep_next=false # Got value, back to normal.
1563 else
1564 case $ac_arg in
1565 *=* | --config-cache | -C | -disable-* | --disable-* \
1566 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1567 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1568 | -with-* | --with-* | -without-* | --without-* | --x)
1569 case "$ac_configure_args0 " in
1570 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1571 esac
1573 -* ) ac_must_keep_next=true ;;
1574 esac
1576 ac_configure_args="$ac_configure_args '$ac_arg'"
1578 esac
1579 done
1580 done
1581 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1582 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1584 # When interrupted or exit'd, cleanup temporary files, and complete
1585 # config.log. We remove comments because anyway the quotes in there
1586 # would cause problems or look ugly.
1587 # WARNING: Use '\'' to represent an apostrophe within the trap.
1588 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1589 trap 'exit_status=$?
1590 # Save into config.log some information that might help in debugging.
1592 echo
1594 cat <<\_ASBOX
1595 ## ---------------- ##
1596 ## Cache variables. ##
1597 ## ---------------- ##
1598 _ASBOX
1599 echo
1600 # The following way of writing the cache mishandles newlines in values,
1602 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1603 eval ac_val=\$$ac_var
1604 case $ac_val in #(
1605 *${as_nl}*)
1606 case $ac_var in #(
1607 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1608 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1609 esac
1610 case $ac_var in #(
1611 _ | IFS | as_nl) ;; #(
1612 *) $as_unset $ac_var ;;
1613 esac ;;
1614 esac
1615 done
1616 (set) 2>&1 |
1617 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1618 *${as_nl}ac_space=\ *)
1619 sed -n \
1620 "s/'\''/'\''\\\\'\'''\''/g;
1621 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1622 ;; #(
1624 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1626 esac |
1627 sort
1629 echo
1631 cat <<\_ASBOX
1632 ## ----------------- ##
1633 ## Output variables. ##
1634 ## ----------------- ##
1635 _ASBOX
1636 echo
1637 for ac_var in $ac_subst_vars
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
1647 if test -n "$ac_subst_files"; then
1648 cat <<\_ASBOX
1649 ## ------------------- ##
1650 ## File substitutions. ##
1651 ## ------------------- ##
1652 _ASBOX
1653 echo
1654 for ac_var in $ac_subst_files
1656 eval ac_val=\$$ac_var
1657 case $ac_val in
1658 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1659 esac
1660 echo "$ac_var='\''$ac_val'\''"
1661 done | sort
1662 echo
1665 if test -s confdefs.h; then
1666 cat <<\_ASBOX
1667 ## ----------- ##
1668 ## confdefs.h. ##
1669 ## ----------- ##
1670 _ASBOX
1671 echo
1672 cat confdefs.h
1673 echo
1675 test "$ac_signal" != 0 &&
1676 echo "$as_me: caught signal $ac_signal"
1677 echo "$as_me: exit $exit_status"
1678 } >&5
1679 rm -f core *.core core.conftest.* &&
1680 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1681 exit $exit_status
1683 for ac_signal in 1 2 13 15; do
1684 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1685 done
1686 ac_signal=0
1688 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1689 rm -f -r conftest* confdefs.h
1691 # Predefined preprocessor variables.
1693 cat >>confdefs.h <<_ACEOF
1694 #define PACKAGE_NAME "$PACKAGE_NAME"
1695 _ACEOF
1698 cat >>confdefs.h <<_ACEOF
1699 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1700 _ACEOF
1703 cat >>confdefs.h <<_ACEOF
1704 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1705 _ACEOF
1708 cat >>confdefs.h <<_ACEOF
1709 #define PACKAGE_STRING "$PACKAGE_STRING"
1710 _ACEOF
1713 cat >>confdefs.h <<_ACEOF
1714 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1715 _ACEOF
1718 # Let the site file select an alternate cache file if it wants to.
1719 # Prefer explicitly selected file to automatically selected ones.
1720 if test -n "$CONFIG_SITE"; then
1721 set x "$CONFIG_SITE"
1722 elif test "x$prefix" != xNONE; then
1723 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1724 else
1725 set x "$ac_default_prefix/share/config.site" \
1726 "$ac_default_prefix/etc/config.site"
1728 shift
1729 for ac_site_file
1731 if test -r "$ac_site_file"; then
1732 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1733 echo "$as_me: loading site script $ac_site_file" >&6;}
1734 sed 's/^/| /' "$ac_site_file" >&5
1735 . "$ac_site_file"
1737 done
1739 if test -r "$cache_file"; then
1740 # Some versions of bash will fail to source /dev/null (special
1741 # files actually), so we avoid doing that.
1742 if test -f "$cache_file"; then
1743 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1744 echo "$as_me: loading cache $cache_file" >&6;}
1745 case $cache_file in
1746 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1747 *) . "./$cache_file";;
1748 esac
1750 else
1751 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1752 echo "$as_me: creating cache $cache_file" >&6;}
1753 >$cache_file
1756 ac_header_list="$ac_header_list sys/time.h"
1757 ac_header_list="$ac_header_list unistd.h"
1758 ac_func_list="$ac_func_list alarm"
1759 # Check that the precious variables saved in the cache have kept the same
1760 # value.
1761 ac_cache_corrupted=false
1762 for ac_var in $ac_precious_vars; do
1763 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1764 eval ac_new_set=\$ac_env_${ac_var}_set
1765 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1766 eval ac_new_val=\$ac_env_${ac_var}_value
1767 case $ac_old_set,$ac_new_set in
1768 set,)
1769 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1770 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1771 ac_cache_corrupted=: ;;
1772 ,set)
1773 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1774 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1775 ac_cache_corrupted=: ;;
1776 ,);;
1778 if test "x$ac_old_val" != "x$ac_new_val"; then
1779 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1780 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1781 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1782 echo "$as_me: former value: $ac_old_val" >&2;}
1783 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1784 echo "$as_me: current value: $ac_new_val" >&2;}
1785 ac_cache_corrupted=:
1786 fi;;
1787 esac
1788 # Pass precious variables to config.status.
1789 if test "$ac_new_set" = set; then
1790 case $ac_new_val in
1791 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1792 *) ac_arg=$ac_var=$ac_new_val ;;
1793 esac
1794 case " $ac_configure_args " in
1795 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1796 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1797 esac
1799 done
1800 if $ac_cache_corrupted; then
1801 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1802 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1803 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1804 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1805 { (exit 1); exit 1; }; }
1832 ac_ext=c
1833 ac_cpp='$CPP $CPPFLAGS'
1834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1839 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1843 test "$program_prefix" != NONE &&
1844 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1845 # Use a double $ so make ignores it.
1846 test "$program_suffix" != NONE &&
1847 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1848 # Double any \ or $. echo might interpret backslashes.
1849 # By default was `s,x,x', remove it if useless.
1850 cat <<\_ACEOF >conftest.sed
1851 s/[\\$]/&&/g;s/;s,x,x,$//
1852 _ACEOF
1853 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1854 rm -f conftest.sed
1857 lispdir='${datadir}/emacs/${version}/lisp'
1858 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1859 '${datadir}/emacs/site-lisp'
1860 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1861 etcdir='${datadir}/emacs/${version}/etc'
1862 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1863 docdir='${datadir}/emacs/${version}/etc'
1864 gamedir='${localstatedir}/games/emacs'
1866 gameuser=games
1871 # Check whether --with-pop was given.
1872 if test "${with_pop+set}" = set; then
1873 withval=$with_pop;
1874 else
1875 with_pop=yes
1878 if test "$with_pop" = yes; then
1879 cat >>confdefs.h <<\_ACEOF
1880 #define MAIL_USE_POP 1
1881 _ACEOF
1887 # Check whether --with-kerberos was given.
1888 if test "${with_kerberos+set}" = set; then
1889 withval=$with_kerberos;
1890 else
1891 with_kerberos=no
1894 if test "$with_kerberos" != no; then
1895 cat >>confdefs.h <<\_ACEOF
1896 #define KERBEROS 1
1897 _ACEOF
1903 # Check whether --with-kerberos5 was given.
1904 if test "${with_kerberos5+set}" = set; then
1905 withval=$with_kerberos5;
1906 else
1907 with_kerberos5=no
1910 if test "${with_kerberos5}" != no; then
1911 if test "${with_kerberos}" = no; then
1912 with_kerberos=yes
1913 cat >>confdefs.h <<\_ACEOF
1914 #define KERBEROS 1
1915 _ACEOF
1919 cat >>confdefs.h <<\_ACEOF
1920 #define KERBEROS5 1
1921 _ACEOF
1926 # Check whether --with-hesiod was given.
1927 if test "${with_hesiod+set}" = set; then
1928 withval=$with_hesiod;
1929 else
1930 with_hesiod=no
1933 if test "$with_hesiod" != no; then
1935 cat >>confdefs.h <<\_ACEOF
1936 #define HESIOD 1
1937 _ACEOF
1942 # Check whether --with-sound was given.
1943 if test "${with_sound+set}" = set; then
1944 withval=$with_sound;
1945 else
1946 with_sound=yes
1951 # Check whether --with-sync-input was given.
1952 if test "${with_sync_input+set}" = set; then
1953 withval=$with_sync_input;
1954 else
1955 with_sync_input=yes
1958 if test "$with_sync_input" = yes; then
1960 cat >>confdefs.h <<\_ACEOF
1961 #define SYNC_INPUT 1
1962 _ACEOF
1967 # Check whether --with-x-toolkit was given.
1968 if test "${with_x_toolkit+set}" = set; then
1969 withval=$with_x_toolkit; case "${withval}" in
1970 y | ye | yes ) val=gtk ;;
1971 n | no ) val=no ;;
1972 l | lu | luc | luci | lucid ) val=lucid ;;
1973 a | at | ath | athe | athen | athena ) val=athena ;;
1974 m | mo | mot | moti | motif ) val=motif ;;
1975 g | gt | gtk ) val=gtk ;;
1977 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1978 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1979 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1980 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1981 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1982 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1983 { (exit 1); exit 1; }; }
1985 esac
1986 with_x_toolkit=$val
1992 # Check whether --with-xpm was given.
1993 if test "${with_xpm+set}" = set; then
1994 withval=$with_xpm;
1995 else
1996 with_xpm=yes
2000 # Check whether --with-jpeg was given.
2001 if test "${with_jpeg+set}" = set; then
2002 withval=$with_jpeg;
2003 else
2004 with_jpeg=yes
2008 # Check whether --with-tiff was given.
2009 if test "${with_tiff+set}" = set; then
2010 withval=$with_tiff;
2011 else
2012 with_tiff=yes
2016 # Check whether --with-gif was given.
2017 if test "${with_gif+set}" = set; then
2018 withval=$with_gif;
2019 else
2020 with_gif=yes
2024 # Check whether --with-png was given.
2025 if test "${with_png+set}" = set; then
2026 withval=$with_png;
2027 else
2028 with_png=yes
2032 # Check whether --with-rsvg was given.
2033 if test "${with_rsvg+set}" = set; then
2034 withval=$with_rsvg;
2035 else
2036 with_rsvg=yes
2041 # Check whether --with-xft was given.
2042 if test "${with_xft+set}" = set; then
2043 withval=$with_xft;
2044 else
2045 with_xft=yes
2049 # Check whether --with-libotf was given.
2050 if test "${with_libotf+set}" = set; then
2051 withval=$with_libotf;
2052 else
2053 with_libotf=yes
2057 # Check whether --with-m17n-flt was given.
2058 if test "${with_m17n_flt+set}" = set; then
2059 withval=$with_m17n_flt;
2060 else
2061 with_m17n_flt=yes
2066 # Check whether --with-toolkit-scroll-bars was given.
2067 if test "${with_toolkit_scroll_bars+set}" = set; then
2068 withval=$with_toolkit_scroll_bars;
2069 else
2070 with_toolkit_scroll_bars=yes
2074 # Check whether --with-xaw3d was given.
2075 if test "${with_xaw3d+set}" = set; then
2076 withval=$with_xaw3d;
2077 else
2078 with_xaw3d=yes
2082 # Check whether --with-xim was given.
2083 if test "${with_xim+set}" = set; then
2084 withval=$with_xim;
2085 else
2086 with_xim=yes
2090 # Check whether --with-ns was given.
2091 if test "${with_ns+set}" = set; then
2092 withval=$with_ns;
2093 else
2094 with_ns=no
2099 # Check whether --with-gpm was given.
2100 if test "${with_gpm+set}" = set; then
2101 withval=$with_gpm;
2102 else
2103 with_gpm=yes
2107 # Check whether --with-dbus was given.
2108 if test "${with_dbus+set}" = set; then
2109 withval=$with_dbus;
2110 else
2111 with_dbus=yes
2115 ## For the times when you want to build Emacs but don't have
2116 ## a suitable makeinfo, and can live without the manuals.
2118 # Check whether --with-makeinfo was given.
2119 if test "${with_makeinfo+set}" = set; then
2120 withval=$with_makeinfo;
2121 else
2122 with_makeinfo=yes
2127 # Check whether --with-gtk was given.
2128 if test "${with_gtk+set}" = set; then
2129 withval=$with_gtk; { { echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2130 specify a toolkit." >&5
2131 echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2132 specify a toolkit." >&2;}
2133 { (exit 1); exit 1; }; }
2138 # Check whether --with-gcc was given.
2139 if test "${with_gcc+set}" = set; then
2140 withval=$with_gcc; { { echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2141 variable to specify a compiler." >&5
2142 echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2143 variable to specify a compiler." >&2;}
2144 { (exit 1); exit 1; }; }
2149 # Check whether --with-pkg-config-prog was given.
2150 if test "${with_pkg_config_prog+set}" = set; then
2151 withval=$with_pkg_config_prog;
2154 if test "X${with_pkg_config_prog}" != X; then
2155 if test "${with_pkg_config_prog}" != yes; then
2156 PKG_CONFIG="${with_pkg_config_prog}"
2161 # Check whether --with-gnustep-conf was given.
2162 if test "${with_gnustep_conf+set}" = set; then
2163 withval=$with_gnustep_conf;
2166 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2167 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2168 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2169 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2171 # Check whether --enable-ns-self-contained was given.
2172 if test "${enable_ns_self_contained+set}" = set; then
2173 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2174 else
2175 EN_NS_SELF_CONTAINED=yes
2179 # Check whether --enable-asserts was given.
2180 if test "${enable_asserts+set}" = set; then
2181 enableval=$enable_asserts; USE_XASSERTS=$enableval
2182 else
2183 USE_XASSERTS=no
2187 # Check whether --enable-maintainer-mode was given.
2188 if test "${enable_maintainer_mode+set}" = set; then
2189 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2190 else
2191 USE_MAINTAINER_MODE=no
2194 if test $USE_MAINTAINER_MODE = yes; then
2195 MAINT=
2196 else
2197 MAINT=#
2201 # Check whether --enable-locallisppath was given.
2202 if test "${enable_locallisppath+set}" = set; then
2203 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2204 locallisppath=
2205 elif test "${enableval}" != "yes"; then
2206 locallisppath=${enableval}
2211 # Check whether --enable-checking was given.
2212 if test "${enable_checking+set}" = set; then
2213 enableval=$enable_checking; ac_checking_flags="${enableval}"
2216 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2217 for check in $ac_checking_flags
2219 case $check in
2220 # these set all the flags to specific states
2221 yes) ac_enable_checking=1 ;;
2222 no) ac_enable_checking= ;
2223 ac_gc_check_stringbytes= ;
2224 ac_gc_check_string_overrun= ;
2225 ac_gc_check_string_free_list= ;
2226 ac_xmalloc_overrun= ;
2227 ac_gc_check_cons_list= ;;
2228 all) ac_enable_checking=1 ;
2229 ac_gc_check_stringbytes=1 ;
2230 ac_gc_check_string_overrun=1 ;
2231 ac_gc_check_string_free_list=1 ;
2232 ac_xmalloc_overrun=1 ;
2233 ac_gc_check_cons_list=1 ;;
2234 # these enable particular checks
2235 stringbytes) ac_gc_check_stringbytes=1 ;;
2236 stringoverrun) ac_gc_check_string_overrun=1 ;;
2237 stringfreelist) ac_gc_check_string_free_list=1 ;;
2238 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2239 conslist) ac_gc_check_cons_list=1 ;;
2240 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
2241 echo "$as_me: error: unknown check category $check" >&2;}
2242 { (exit 1); exit 1; }; } ;;
2243 esac
2244 done
2245 IFS="$ac_save_IFS"
2247 if test x$ac_enable_checking != x ; then
2249 cat >>confdefs.h <<\_ACEOF
2250 #define ENABLE_CHECKING 1
2251 _ACEOF
2254 if test x$ac_gc_check_stringbytes != x ; then
2256 cat >>confdefs.h <<\_ACEOF
2257 #define GC_CHECK_STRING_BYTES 1
2258 _ACEOF
2261 if test x$ac_gc_check_stringoverrun != x ; then
2263 cat >>confdefs.h <<\_ACEOF
2264 #define GC_CHECK_STRING_OVERRUN 1
2265 _ACEOF
2268 if test x$ac_gc_check_string_free_list != x ; then
2270 cat >>confdefs.h <<\_ACEOF
2271 #define GC_CHECK_STRING_FREE_LIST 1
2272 _ACEOF
2275 if test x$ac_xmalloc_overrun != x ; then
2277 cat >>confdefs.h <<\_ACEOF
2278 #define XMALLOC_OVERRUN_CHECK 1
2279 _ACEOF
2282 if test x$ac_gc_check_cons_list != x ; then
2284 cat >>confdefs.h <<\_ACEOF
2285 #define GC_CHECK_CONS_LIST 1
2286 _ACEOF
2290 # Check whether --enable-profiling was given.
2291 if test "${enable_profiling+set}" = set; then
2292 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
2295 if test x$ac_enable_profiling != x ; then
2296 PROFILING_CFLAGS="-DPROFILING=1 -pg"
2297 PROFILING_LDFLAGS="-pg"
2298 else
2299 PROFILING_CFLAGS=
2300 PROFILING_LDFLAGS=
2303 #### Make srcdir absolute, if it isn't already. It's important to
2304 #### avoid running the path through pwd unnecessarily, since pwd can
2305 #### give you automounter prefixes, which can go away. We do all this
2306 #### so Emacs can find its files when run uninstalled.
2307 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2308 unset CDPATH
2309 case "${srcdir}" in
2310 /* ) ;;
2312 ## We may be able to use the $PWD environment variable to make this
2313 ## absolute. But sometimes PWD is inaccurate.
2314 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2315 ## but that tested only for a well-formed and valid PWD,
2316 ## it did not object when PWD was well-formed and valid but just wrong.
2317 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2318 then
2319 srcdir="$PWD"
2320 else
2321 srcdir="`(cd ${srcdir}; pwd)`"
2324 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2325 esac
2327 #### Check if the source directory already has a configured system in it.
2328 if test `pwd` != `(cd ${srcdir} && pwd)` \
2329 && test -f "${srcdir}/src/config.h" ; then
2330 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2331 as a build directory right now; it has been configured in its own
2332 right. To configure in another directory as well, you MUST
2333 use GNU make. If you do not have GNU make, then you must
2334 now do \`make distclean' in ${srcdir},
2335 and then run $0 again." >&5
2336 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2337 as a build directory right now; it has been configured in its own
2338 right. To configure in another directory as well, you MUST
2339 use GNU make. If you do not have GNU make, then you must
2340 now do \`make distclean' in ${srcdir},
2341 and then run $0 again." >&2;}
2344 #### Given the configuration name, set machfile and opsysfile to the
2345 #### names of the m/*.h and s/*.h files we should use.
2347 ### Canonicalize the configuration name.
2349 ac_aux_dir=
2350 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2351 if test -f "$ac_dir/install-sh"; then
2352 ac_aux_dir=$ac_dir
2353 ac_install_sh="$ac_aux_dir/install-sh -c"
2354 break
2355 elif test -f "$ac_dir/install.sh"; then
2356 ac_aux_dir=$ac_dir
2357 ac_install_sh="$ac_aux_dir/install.sh -c"
2358 break
2359 elif test -f "$ac_dir/shtool"; then
2360 ac_aux_dir=$ac_dir
2361 ac_install_sh="$ac_aux_dir/shtool install -c"
2362 break
2364 done
2365 if test -z "$ac_aux_dir"; then
2366 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2367 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2368 { (exit 1); exit 1; }; }
2371 # These three variables are undocumented and unsupported,
2372 # and are intended to be withdrawn in a future Autoconf release.
2373 # They can cause serious problems if a builder's source tree is in a directory
2374 # whose full name contains unusual characters.
2375 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2376 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2377 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2380 # Make sure we can run config.sub.
2381 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2382 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2383 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2384 { (exit 1); exit 1; }; }
2386 { echo "$as_me:$LINENO: checking build system type" >&5
2387 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2388 if test "${ac_cv_build+set}" = set; then
2389 echo $ECHO_N "(cached) $ECHO_C" >&6
2390 else
2391 ac_build_alias=$build_alias
2392 test "x$ac_build_alias" = x &&
2393 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2394 test "x$ac_build_alias" = x &&
2395 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2396 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2397 { (exit 1); exit 1; }; }
2398 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2399 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2400 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2401 { (exit 1); exit 1; }; }
2404 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2405 echo "${ECHO_T}$ac_cv_build" >&6; }
2406 case $ac_cv_build in
2407 *-*-*) ;;
2408 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2409 echo "$as_me: error: invalid value of canonical build" >&2;}
2410 { (exit 1); exit 1; }; };;
2411 esac
2412 build=$ac_cv_build
2413 ac_save_IFS=$IFS; IFS='-'
2414 set x $ac_cv_build
2415 shift
2416 build_cpu=$1
2417 build_vendor=$2
2418 shift; shift
2419 # Remember, the first character of IFS is used to create $*,
2420 # except with old shells:
2421 build_os=$*
2422 IFS=$ac_save_IFS
2423 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2426 { echo "$as_me:$LINENO: checking host system type" >&5
2427 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2428 if test "${ac_cv_host+set}" = set; then
2429 echo $ECHO_N "(cached) $ECHO_C" >&6
2430 else
2431 if test "x$host_alias" = x; then
2432 ac_cv_host=$ac_cv_build
2433 else
2434 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2435 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2436 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2437 { (exit 1); exit 1; }; }
2441 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2442 echo "${ECHO_T}$ac_cv_host" >&6; }
2443 case $ac_cv_host in
2444 *-*-*) ;;
2445 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2446 echo "$as_me: error: invalid value of canonical host" >&2;}
2447 { (exit 1); exit 1; }; };;
2448 esac
2449 host=$ac_cv_host
2450 ac_save_IFS=$IFS; IFS='-'
2451 set x $ac_cv_host
2452 shift
2453 host_cpu=$1
2454 host_vendor=$2
2455 shift; shift
2456 # Remember, the first character of IFS is used to create $*,
2457 # except with old shells:
2458 host_os=$*
2459 IFS=$ac_save_IFS
2460 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2463 canonical=$host
2464 configuration=${host_alias-${build_alias-$host}}
2468 ### If you add support for a new configuration, add code to this
2469 ### switch statement to recognize your configuration name and select
2470 ### the appropriate operating system and machine description files.
2472 ### You would hope that you could choose an m/*.h file pretty much
2473 ### based on the machine portion of the configuration name, and an s-
2474 ### file based on the operating system portion. However, it turns out
2475 ### that each m/*.h file is pretty manufacturer-specific - for
2476 ### example mips.h is MIPS
2477 ### So we basically have to have a special case for each
2478 ### configuration name.
2480 ### As far as handling version numbers on operating systems is
2481 ### concerned, make sure things will fail in a fixable way. If
2482 ### /etc/MACHINES doesn't say anything about version numbers, be
2483 ### prepared to handle anything reasonably. If version numbers
2484 ### matter, be sure /etc/MACHINES says something about it.
2486 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2487 ### "System V Release 4"; he writes, "The old convention encouraged
2488 ### confusion between `system' and `release' levels'."
2490 machine='' opsys='' unported=no
2491 case "${canonical}" in
2493 ## FreeBSD ports
2494 *-*-freebsd* )
2495 opsys=freebsd
2496 case "${canonical}" in
2497 alpha*-*-freebsd*) machine=alpha ;;
2498 arm*-*-freebsd*) machine=arm ;;
2499 ia64-*-freebsd*) machine=ia64 ;;
2500 sparc-*-freebsd*) machine=sparc ;;
2501 sparc64-*-freebsd*) machine=sparc ;;
2502 powerpc-*-freebsd*) machine=macppc ;;
2503 i[3456]86-*-freebsd*) machine=intel386 ;;
2504 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2505 esac
2508 ## FreeBSD kernel + glibc based userland
2509 *-*-kfreebsd*gnu* )
2510 opsys=gnu-kfreebsd
2511 case "${canonical}" in
2512 alpha*-*-kfreebsd*) machine=alpha ;;
2513 ia64-*-kfreebsd*) machine=ia64 ;;
2514 sparc-*-kfreebsd*) machine=sparc ;;
2515 sparc64-*-kfreebsd*) machine=sparc ;;
2516 powerpc-*-kfreebsd*) machine=macppc ;;
2517 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2518 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2519 esac
2522 ## NetBSD ports
2523 *-*-netbsd* )
2524 opsys=netbsd
2525 if test -f /usr/lib/crti.o; then
2527 cat >>confdefs.h <<\_ACEOF
2528 #define HAVE_CRTIN
2529 _ACEOF
2533 case "${canonical}" in
2534 alpha*-*-netbsd*) machine=alpha ;;
2535 i[3456]86-*-netbsd*) machine=intel386 ;;
2536 mips-*-netbsd*) machine=mips ;;
2537 mipsel-*-netbsd*) machine=mips ;;
2538 mipseb-*-netbsd*) machine=mips ;;
2539 powerpc-*-netbsd*) machine=macppc ;;
2540 sparc*-*-netbsd*) machine=sparc ;;
2541 vax-*-netbsd*) machine=vax ;;
2542 arm-*-netbsd*) machine=arm ;;
2543 x86_64-*-netbsd*) machine=amdx86-64 ;;
2544 hppa-*-netbsd*) machine=hp800 ;;
2545 m68k-*-netbsd*) machine=m68k ;;
2546 esac
2549 ## OpenBSD ports
2550 *-*-openbsd* )
2551 opsys=openbsd
2552 case "${canonical}" in
2553 alpha*-*-openbsd*) machine=alpha ;;
2554 arm-*-openbsd*) machine=arm ;;
2555 i386-*-openbsd*) machine=intel386 ;;
2556 powerpc-*-openbsd*) machine=macppc ;;
2557 sparc*-*-openbsd*) machine=sparc ;;
2558 vax-*-openbsd*) machine=vax ;;
2559 x86_64-*-openbsd*) machine=amdx86-64 ;;
2560 hppa-*-openbsd*) machine=hp800 ;;
2561 esac
2564 ## LynxOS ports
2565 *-*-lynxos* )
2566 opsys=lynxos
2567 case "${canonical}" in
2568 i[3456]86-*-lynxos*) machine=intel386 ;;
2569 powerpc-*-lynxos*) machine=powerpc ;;
2570 esac
2573 alpha*-*-linux-gnu* )
2574 machine=alpha opsys=gnu-linux
2577 arm*-*-linux-gnu* )
2578 machine=arm opsys=gnu-linux
2581 ## Apple Darwin / Mac OS X
2582 *-apple-darwin* )
2583 case "${canonical}" in
2584 i[3456]86-* ) machine=intel386 ;;
2585 powerpc-* ) machine=macppc ;;
2586 * ) unported=yes ;;
2587 esac
2588 opsys=darwin
2589 # Define CPP as follows to make autoconf work correctly.
2590 CPP="${CC-cc} -E -no-cpp-precomp"
2591 # Use fink packages if available.
2592 if test -d /sw/include && test -d /sw/lib; then
2593 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2594 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2595 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2599 ## HP 9000 series 700 and 800, running HP/UX
2600 hppa*-hp-hpux10.2* )
2601 machine=hp800 opsys=hpux10-20
2603 hppa*-hp-hpux1[1-9]* )
2604 machine=hp800 opsys=hpux11
2605 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2608 hppa*-*-linux-gnu* )
2609 machine=hp800 opsys=gnu-linux
2612 ## IBM machines
2613 s390-*-linux-gnu* )
2614 machine=ibms390 opsys=gnu-linux
2616 s390x-*-linux-gnu* )
2617 machine=ibms390x opsys=gnu-linux
2619 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2620 machine=ibmrs6000 opsys=aix4-2
2622 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2623 machine=ibmrs6000 opsys=aix4-2
2625 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2626 machine=ibmrs6000 opsys=aix4-2
2628 rs6000-ibm-aix6* | powerpc-ibm-aix6* )
2629 machine=ibmrs6000 opsys=aix4-2
2632 ## Macintosh PowerPC
2633 powerpc*-*-linux-gnu* )
2634 machine=macppc opsys=gnu-linux
2637 ## Silicon Graphics machines
2638 ## Iris 4D
2639 mips-sgi-irix6.5 )
2640 machine=iris4d opsys=irix6-5
2641 # Without defining _LANGUAGE_C, things get masked out in the headers
2642 # so that, for instance, grepping for `free' in stdlib.h fails and
2643 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2644 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2645 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2648 ## Suns
2649 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2650 machine=sparc opsys=gnu-linux
2653 *-sun-solaris* \
2654 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
2655 | x86_64-*-solaris2* | x86_64-*-sunos5* \
2656 | powerpc*-*-solaris2* | rs6000-*-solaris2*)
2657 case "${canonical}" in
2658 i[3456]86-*-* ) machine=intel386 ;;
2659 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2660 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2661 sparc* ) machine=sparc ;;
2662 * ) unported=yes ;;
2663 esac
2664 case "${canonical}" in
2665 *-sunos5.3* | *-solaris2.3* )
2666 opsys=sol2-3
2667 NON_GNU_CPP=/usr/ccs/lib/cpp
2669 *-sunos5.4* | *-solaris2.4* )
2670 opsys=sol2-4
2671 NON_GNU_CPP=/usr/ccs/lib/cpp
2672 RANLIB="ar -ts"
2674 *-sunos5.5* | *-solaris2.5* )
2675 opsys=sol2-5
2676 NON_GNU_CPP=/usr/ccs/lib/cpp
2677 RANLIB="ar -ts"
2679 *-sunos5.6* | *-solaris2.6* )
2680 opsys=sol2-6
2681 NON_GNU_CPP=/usr/ccs/lib/cpp
2682 RANLIB="ar -ts"
2684 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
2685 opsys=sol2-6
2686 emacs_check_sunpro_c=yes
2687 NON_GNU_CPP=/usr/ccs/lib/cpp
2689 *-sunos5* | *-solaris* )
2690 opsys=sol2-10
2691 emacs_check_sunpro_c=yes
2692 NON_GNU_CPP=/usr/ccs/lib/cpp
2694 esac
2695 ## Watch out for a compiler that we know will not work.
2696 case "${canonical}" in
2697 *-solaris* | *-sunos5* )
2698 if [ "x$CC" = x/usr/ucb/cc ]; then
2699 ## /usr/ucb/cc doesn't work;
2700 ## we should find some other compiler that does work.
2701 unset CC
2704 *) ;;
2705 esac
2708 ## Vaxen.
2709 vax-dec-* )
2710 machine=vax
2711 case "${canonical}" in
2712 *-vms* ) opsys=vms ;;
2713 * ) unported=yes
2714 esac
2717 ## IA-64
2718 ia64*-*-linux* )
2719 machine=ia64 opsys=gnu-linux
2722 ## Intel 386 machines where we don't care about the manufacturer
2723 i[3456]86-*-* )
2724 machine=intel386
2725 case "${canonical}" in
2726 *-cygwin ) opsys=cygwin ;;
2727 *-darwin* ) opsys=darwin
2728 CPP="${CC-cc} -E -no-cpp-precomp"
2730 *-linux-gnu* ) opsys=gnu-linux ;;
2731 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2732 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2733 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2734 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2735 esac
2738 ## m68k Linux-based GNU system
2739 m68k-*-linux-gnu* )
2740 machine=m68k opsys=gnu-linux
2743 ## Mips Linux-based GNU system
2744 mips-*-linux-gnu* | mipsel-*-linux-gnu* \
2745 | mips64-*-linux-gnu* | mips64el-*-linux-gnu* )
2746 machine=mips opsys=gnu-linux
2749 ## AMD x86-64 Linux-based GNU system
2750 x86_64-*-linux-gnu* )
2751 machine=amdx86-64 opsys=gnu-linux
2754 ## Tensilica Xtensa Linux-based GNU system
2755 xtensa*-*-linux-gnu* )
2756 machine=xtensa opsys=gnu-linux
2759 ## SuperH Linux-based GNU system
2760 sh[34]*-*-linux-gnu* )
2761 machine=sh3 opsys=gnu-linux
2765 unported=yes
2767 esac
2769 ### If the code above didn't choose an operating system, just choose
2770 ### an operating system based on the configuration name. You really
2771 ### only want to use this when you have no idea what the right
2772 ### operating system is; if you know what operating systems a machine
2773 ### runs, it's cleaner to make it explicit in the case statement
2774 ### above.
2775 if test x"${opsys}" = x; then
2776 case "${canonical}" in
2777 *-gnu* ) opsys=gnu ;;
2778 *-sysv4.2uw* ) opsys=unixware ;;
2779 *-sysv5uw* ) opsys=unixware ;;
2780 *-sysv5OpenUNIX* ) opsys=unixware ;;
2781 *-sysv4.1* | *-sysvr4.1* )
2782 NON_GNU_CPP=/usr/lib/cpp
2783 opsys=usg5-4 ;;
2784 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2785 if [ x$NON_GNU_CPP = x ]; then
2786 if [ -f /usr/ccs/lib/cpp ]; then
2787 NON_GNU_CPP=/usr/ccs/lib/cpp
2788 else
2789 NON_GNU_CPP=/lib/cpp
2792 opsys=usg5-4-2 ;;
2793 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2795 unported=yes
2797 esac
2802 if test $unported = yes; then
2803 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2804 Check \`etc/MACHINES' for recognized configuration names." >&5
2805 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2806 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2807 { (exit 1); exit 1; }; }
2810 machfile="m/${machine}.h"
2811 opsysfile="s/${opsys}.h"
2814 #### Choose a compiler.
2815 test -n "$CC" && cc_specified=yes
2817 # Save the value of CFLAGS that the user specified.
2818 SPECIFIED_CFLAGS="$CFLAGS"
2820 ac_ext=c
2821 ac_cpp='$CPP $CPPFLAGS'
2822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2825 if test -n "$ac_tool_prefix"; then
2826 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2827 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2830 if test "${ac_cv_prog_CC+set}" = set; then
2831 echo $ECHO_N "(cached) $ECHO_C" >&6
2832 else
2833 if test -n "$CC"; then
2834 ac_cv_prog_CC="$CC" # Let the user override the test.
2835 else
2836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837 for as_dir in $PATH
2839 IFS=$as_save_IFS
2840 test -z "$as_dir" && as_dir=.
2841 for ac_exec_ext in '' $ac_executable_extensions; do
2842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2843 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2845 break 2
2847 done
2848 done
2849 IFS=$as_save_IFS
2853 CC=$ac_cv_prog_CC
2854 if test -n "$CC"; then
2855 { echo "$as_me:$LINENO: result: $CC" >&5
2856 echo "${ECHO_T}$CC" >&6; }
2857 else
2858 { echo "$as_me:$LINENO: result: no" >&5
2859 echo "${ECHO_T}no" >&6; }
2864 if test -z "$ac_cv_prog_CC"; then
2865 ac_ct_CC=$CC
2866 # Extract the first word of "gcc", so it can be a program name with args.
2867 set dummy gcc; ac_word=$2
2868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2870 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2871 echo $ECHO_N "(cached) $ECHO_C" >&6
2872 else
2873 if test -n "$ac_ct_CC"; then
2874 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2875 else
2876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877 for as_dir in $PATH
2879 IFS=$as_save_IFS
2880 test -z "$as_dir" && as_dir=.
2881 for ac_exec_ext in '' $ac_executable_extensions; do
2882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2883 ac_cv_prog_ac_ct_CC="gcc"
2884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2885 break 2
2887 done
2888 done
2889 IFS=$as_save_IFS
2893 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2894 if test -n "$ac_ct_CC"; then
2895 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2896 echo "${ECHO_T}$ac_ct_CC" >&6; }
2897 else
2898 { echo "$as_me:$LINENO: result: no" >&5
2899 echo "${ECHO_T}no" >&6; }
2902 if test "x$ac_ct_CC" = x; then
2903 CC=""
2904 else
2905 case $cross_compiling:$ac_tool_warned in
2906 yes:)
2907 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2908 whose name does not start with the host triplet. If you think this
2909 configuration is useful to you, please write to autoconf@gnu.org." >&5
2910 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2911 whose name does not start with the host triplet. If you think this
2912 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2913 ac_tool_warned=yes ;;
2914 esac
2915 CC=$ac_ct_CC
2917 else
2918 CC="$ac_cv_prog_CC"
2921 if test -z "$CC"; then
2922 if test -n "$ac_tool_prefix"; then
2923 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2924 set dummy ${ac_tool_prefix}cc; 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_CC+set}" = set; then
2928 echo $ECHO_N "(cached) $ECHO_C" >&6
2929 else
2930 if test -n "$CC"; then
2931 ac_cv_prog_CC="$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_CC="${ac_tool_prefix}cc"
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 CC=$ac_cv_prog_CC
2951 if test -n "$CC"; then
2952 { echo "$as_me:$LINENO: result: $CC" >&5
2953 echo "${ECHO_T}$CC" >&6; }
2954 else
2955 { echo "$as_me:$LINENO: result: no" >&5
2956 echo "${ECHO_T}no" >&6; }
2962 if test -z "$CC"; then
2963 # Extract the first word of "cc", so it can be a program name with args.
2964 set dummy cc; ac_word=$2
2965 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2967 if test "${ac_cv_prog_CC+set}" = set; then
2968 echo $ECHO_N "(cached) $ECHO_C" >&6
2969 else
2970 if test -n "$CC"; then
2971 ac_cv_prog_CC="$CC" # Let the user override the test.
2972 else
2973 ac_prog_rejected=no
2974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975 for as_dir in $PATH
2977 IFS=$as_save_IFS
2978 test -z "$as_dir" && as_dir=.
2979 for ac_exec_ext in '' $ac_executable_extensions; do
2980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2981 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2982 ac_prog_rejected=yes
2983 continue
2985 ac_cv_prog_CC="cc"
2986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2987 break 2
2989 done
2990 done
2991 IFS=$as_save_IFS
2993 if test $ac_prog_rejected = yes; then
2994 # We found a bogon in the path, so make sure we never use it.
2995 set dummy $ac_cv_prog_CC
2996 shift
2997 if test $# != 0; then
2998 # We chose a different compiler from the bogus one.
2999 # However, it has the same basename, so the bogon will be chosen
3000 # first if we set CC to just the basename; use the full file name.
3001 shift
3002 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
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; }
3018 if test -z "$CC"; then
3019 if test -n "$ac_tool_prefix"; then
3020 for ac_prog in cl.exe
3022 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3023 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3026 if test "${ac_cv_prog_CC+set}" = set; then
3027 echo $ECHO_N "(cached) $ECHO_C" >&6
3028 else
3029 if test -n "$CC"; then
3030 ac_cv_prog_CC="$CC" # Let the user override the test.
3031 else
3032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033 for as_dir in $PATH
3035 IFS=$as_save_IFS
3036 test -z "$as_dir" && as_dir=.
3037 for ac_exec_ext in '' $ac_executable_extensions; do
3038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3039 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3041 break 2
3043 done
3044 done
3045 IFS=$as_save_IFS
3049 CC=$ac_cv_prog_CC
3050 if test -n "$CC"; then
3051 { echo "$as_me:$LINENO: result: $CC" >&5
3052 echo "${ECHO_T}$CC" >&6; }
3053 else
3054 { echo "$as_me:$LINENO: result: no" >&5
3055 echo "${ECHO_T}no" >&6; }
3059 test -n "$CC" && break
3060 done
3062 if test -z "$CC"; then
3063 ac_ct_CC=$CC
3064 for ac_prog in cl.exe
3066 # Extract the first word of "$ac_prog", so it can be a program name with args.
3067 set dummy $ac_prog; ac_word=$2
3068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3070 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3071 echo $ECHO_N "(cached) $ECHO_C" >&6
3072 else
3073 if test -n "$ac_ct_CC"; then
3074 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3075 else
3076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3077 for as_dir in $PATH
3079 IFS=$as_save_IFS
3080 test -z "$as_dir" && as_dir=.
3081 for ac_exec_ext in '' $ac_executable_extensions; do
3082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3083 ac_cv_prog_ac_ct_CC="$ac_prog"
3084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3085 break 2
3087 done
3088 done
3089 IFS=$as_save_IFS
3093 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3094 if test -n "$ac_ct_CC"; then
3095 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3096 echo "${ECHO_T}$ac_ct_CC" >&6; }
3097 else
3098 { echo "$as_me:$LINENO: result: no" >&5
3099 echo "${ECHO_T}no" >&6; }
3103 test -n "$ac_ct_CC" && break
3104 done
3106 if test "x$ac_ct_CC" = x; then
3107 CC=""
3108 else
3109 case $cross_compiling:$ac_tool_warned in
3110 yes:)
3111 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3112 whose name does not start with the host triplet. If you think this
3113 configuration is useful to you, please write to autoconf@gnu.org." >&5
3114 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3115 whose name does not start with the host triplet. If you think this
3116 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3117 ac_tool_warned=yes ;;
3118 esac
3119 CC=$ac_ct_CC
3126 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3127 See \`config.log' for more details." >&5
3128 echo "$as_me: error: no acceptable C compiler found in \$PATH
3129 See \`config.log' for more details." >&2;}
3130 { (exit 1); exit 1; }; }
3132 # Provide some information about the compiler.
3133 echo "$as_me:$LINENO: checking for C compiler version" >&5
3134 ac_compiler=`set X $ac_compile; echo $2`
3135 { (ac_try="$ac_compiler --version >&5"
3136 case "(($ac_try" in
3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138 *) ac_try_echo=$ac_try;;
3139 esac
3140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3141 (eval "$ac_compiler --version >&5") 2>&5
3142 ac_status=$?
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); }
3145 { (ac_try="$ac_compiler -v >&5"
3146 case "(($ac_try" in
3147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148 *) ac_try_echo=$ac_try;;
3149 esac
3150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3151 (eval "$ac_compiler -v >&5") 2>&5
3152 ac_status=$?
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); }
3155 { (ac_try="$ac_compiler -V >&5"
3156 case "(($ac_try" in
3157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158 *) ac_try_echo=$ac_try;;
3159 esac
3160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161 (eval "$ac_compiler -V >&5") 2>&5
3162 ac_status=$?
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }
3166 cat >conftest.$ac_ext <<_ACEOF
3167 /* confdefs.h. */
3168 _ACEOF
3169 cat confdefs.h >>conftest.$ac_ext
3170 cat >>conftest.$ac_ext <<_ACEOF
3171 /* end confdefs.h. */
3174 main ()
3178 return 0;
3180 _ACEOF
3181 ac_clean_files_save=$ac_clean_files
3182 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3183 # Try to create an executable without -o first, disregard a.out.
3184 # It will help us diagnose broken compilers, and finding out an intuition
3185 # of exeext.
3186 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3187 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3188 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3190 # List of possible output files, starting from the most likely.
3191 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3192 # only as a last resort. b.out is created by i960 compilers.
3193 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3195 # The IRIX 6 linker writes into existing files which may not be
3196 # executable, retaining their permissions. Remove them first so a
3197 # subsequent execution test works.
3198 ac_rmfiles=
3199 for ac_file in $ac_files
3201 case $ac_file in
3202 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3203 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3204 esac
3205 done
3206 rm -f $ac_rmfiles
3208 if { (ac_try="$ac_link_default"
3209 case "(($ac_try" in
3210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3211 *) ac_try_echo=$ac_try;;
3212 esac
3213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3214 (eval "$ac_link_default") 2>&5
3215 ac_status=$?
3216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217 (exit $ac_status); }; then
3218 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3219 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3220 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3221 # so that the user can short-circuit this test for compilers unknown to
3222 # Autoconf.
3223 for ac_file in $ac_files ''
3225 test -f "$ac_file" || continue
3226 case $ac_file in
3227 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3229 [ab].out )
3230 # We found the default executable, but exeext='' is most
3231 # certainly right.
3232 break;;
3233 *.* )
3234 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3235 then :; else
3236 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3238 # We set ac_cv_exeext here because the later test for it is not
3239 # safe: cross compilers may not add the suffix if given an `-o'
3240 # argument, so we may need to know it at that point already.
3241 # Even if this section looks crufty: it has the advantage of
3242 # actually working.
3243 break;;
3245 break;;
3246 esac
3247 done
3248 test "$ac_cv_exeext" = no && ac_cv_exeext=
3250 else
3251 ac_file=''
3254 { echo "$as_me:$LINENO: result: $ac_file" >&5
3255 echo "${ECHO_T}$ac_file" >&6; }
3256 if test -z "$ac_file"; then
3257 echo "$as_me: failed program was:" >&5
3258 sed 's/^/| /' conftest.$ac_ext >&5
3260 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3261 See \`config.log' for more details." >&5
3262 echo "$as_me: error: C compiler cannot create executables
3263 See \`config.log' for more details." >&2;}
3264 { (exit 77); exit 77; }; }
3267 ac_exeext=$ac_cv_exeext
3269 # Check that the compiler produces executables we can run. If not, either
3270 # the compiler is broken, or we cross compile.
3271 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3272 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3273 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3274 # If not cross compiling, check that we can run a simple program.
3275 if test "$cross_compiling" != yes; then
3276 if { ac_try='./$ac_file'
3277 { (case "(($ac_try" in
3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279 *) ac_try_echo=$ac_try;;
3280 esac
3281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3282 (eval "$ac_try") 2>&5
3283 ac_status=$?
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); }; }; then
3286 cross_compiling=no
3287 else
3288 if test "$cross_compiling" = maybe; then
3289 cross_compiling=yes
3290 else
3291 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3292 If you meant to cross compile, use \`--host'.
3293 See \`config.log' for more details." >&5
3294 echo "$as_me: error: cannot run C compiled programs.
3295 If you meant to cross compile, use \`--host'.
3296 See \`config.log' for more details." >&2;}
3297 { (exit 1); exit 1; }; }
3301 { echo "$as_me:$LINENO: result: yes" >&5
3302 echo "${ECHO_T}yes" >&6; }
3304 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3305 ac_clean_files=$ac_clean_files_save
3306 # Check that the compiler produces executables we can run. If not, either
3307 # the compiler is broken, or we cross compile.
3308 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3309 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3310 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3311 echo "${ECHO_T}$cross_compiling" >&6; }
3313 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3314 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3315 if { (ac_try="$ac_link"
3316 case "(($ac_try" in
3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318 *) ac_try_echo=$ac_try;;
3319 esac
3320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3321 (eval "$ac_link") 2>&5
3322 ac_status=$?
3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); }; then
3325 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3326 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3327 # work properly (i.e., refer to `conftest.exe'), while it won't with
3328 # `rm'.
3329 for ac_file in conftest.exe conftest conftest.*; do
3330 test -f "$ac_file" || continue
3331 case $ac_file in
3332 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3333 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3334 break;;
3335 * ) break;;
3336 esac
3337 done
3338 else
3339 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3340 See \`config.log' for more details." >&5
3341 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3342 See \`config.log' for more details." >&2;}
3343 { (exit 1); exit 1; }; }
3346 rm -f conftest$ac_cv_exeext
3347 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3348 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3350 rm -f conftest.$ac_ext
3351 EXEEXT=$ac_cv_exeext
3352 ac_exeext=$EXEEXT
3353 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3354 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3355 if test "${ac_cv_objext+set}" = set; then
3356 echo $ECHO_N "(cached) $ECHO_C" >&6
3357 else
3358 cat >conftest.$ac_ext <<_ACEOF
3359 /* confdefs.h. */
3360 _ACEOF
3361 cat confdefs.h >>conftest.$ac_ext
3362 cat >>conftest.$ac_ext <<_ACEOF
3363 /* end confdefs.h. */
3366 main ()
3370 return 0;
3372 _ACEOF
3373 rm -f conftest.o conftest.obj
3374 if { (ac_try="$ac_compile"
3375 case "(($ac_try" in
3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3378 esac
3379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3380 (eval "$ac_compile") 2>&5
3381 ac_status=$?
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); }; then
3384 for ac_file in conftest.o conftest.obj conftest.*; do
3385 test -f "$ac_file" || continue;
3386 case $ac_file in
3387 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3388 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3389 break;;
3390 esac
3391 done
3392 else
3393 echo "$as_me: failed program was:" >&5
3394 sed 's/^/| /' conftest.$ac_ext >&5
3396 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3397 See \`config.log' for more details." >&5
3398 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3399 See \`config.log' for more details." >&2;}
3400 { (exit 1); exit 1; }; }
3403 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3405 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3406 echo "${ECHO_T}$ac_cv_objext" >&6; }
3407 OBJEXT=$ac_cv_objext
3408 ac_objext=$OBJEXT
3409 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3410 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3411 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
3413 else
3414 cat >conftest.$ac_ext <<_ACEOF
3415 /* confdefs.h. */
3416 _ACEOF
3417 cat confdefs.h >>conftest.$ac_ext
3418 cat >>conftest.$ac_ext <<_ACEOF
3419 /* end confdefs.h. */
3422 main ()
3424 #ifndef __GNUC__
3425 choke me
3426 #endif
3429 return 0;
3431 _ACEOF
3432 rm -f conftest.$ac_objext
3433 if { (ac_try="$ac_compile"
3434 case "(($ac_try" in
3435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436 *) ac_try_echo=$ac_try;;
3437 esac
3438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3439 (eval "$ac_compile") 2>conftest.er1
3440 ac_status=$?
3441 grep -v '^ *+' conftest.er1 >conftest.err
3442 rm -f conftest.er1
3443 cat conftest.err >&5
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); } && {
3446 test -z "$ac_c_werror_flag" ||
3447 test ! -s conftest.err
3448 } && test -s conftest.$ac_objext; then
3449 ac_compiler_gnu=yes
3450 else
3451 echo "$as_me: failed program was:" >&5
3452 sed 's/^/| /' conftest.$ac_ext >&5
3454 ac_compiler_gnu=no
3457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3458 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3461 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3462 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3463 GCC=`test $ac_compiler_gnu = yes && echo yes`
3464 ac_test_CFLAGS=${CFLAGS+set}
3465 ac_save_CFLAGS=$CFLAGS
3466 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3467 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3468 if test "${ac_cv_prog_cc_g+set}" = set; then
3469 echo $ECHO_N "(cached) $ECHO_C" >&6
3470 else
3471 ac_save_c_werror_flag=$ac_c_werror_flag
3472 ac_c_werror_flag=yes
3473 ac_cv_prog_cc_g=no
3474 CFLAGS="-g"
3475 cat >conftest.$ac_ext <<_ACEOF
3476 /* confdefs.h. */
3477 _ACEOF
3478 cat confdefs.h >>conftest.$ac_ext
3479 cat >>conftest.$ac_ext <<_ACEOF
3480 /* end confdefs.h. */
3483 main ()
3487 return 0;
3489 _ACEOF
3490 rm -f conftest.$ac_objext
3491 if { (ac_try="$ac_compile"
3492 case "(($ac_try" in
3493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3494 *) ac_try_echo=$ac_try;;
3495 esac
3496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3497 (eval "$ac_compile") 2>conftest.er1
3498 ac_status=$?
3499 grep -v '^ *+' conftest.er1 >conftest.err
3500 rm -f conftest.er1
3501 cat conftest.err >&5
3502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503 (exit $ac_status); } && {
3504 test -z "$ac_c_werror_flag" ||
3505 test ! -s conftest.err
3506 } && test -s conftest.$ac_objext; then
3507 ac_cv_prog_cc_g=yes
3508 else
3509 echo "$as_me: failed program was:" >&5
3510 sed 's/^/| /' conftest.$ac_ext >&5
3512 CFLAGS=""
3513 cat >conftest.$ac_ext <<_ACEOF
3514 /* confdefs.h. */
3515 _ACEOF
3516 cat confdefs.h >>conftest.$ac_ext
3517 cat >>conftest.$ac_ext <<_ACEOF
3518 /* end confdefs.h. */
3521 main ()
3525 return 0;
3527 _ACEOF
3528 rm -f conftest.$ac_objext
3529 if { (ac_try="$ac_compile"
3530 case "(($ac_try" in
3531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3532 *) ac_try_echo=$ac_try;;
3533 esac
3534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3535 (eval "$ac_compile") 2>conftest.er1
3536 ac_status=$?
3537 grep -v '^ *+' conftest.er1 >conftest.err
3538 rm -f conftest.er1
3539 cat conftest.err >&5
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); } && {
3542 test -z "$ac_c_werror_flag" ||
3543 test ! -s conftest.err
3544 } && test -s conftest.$ac_objext; then
3546 else
3547 echo "$as_me: failed program was:" >&5
3548 sed 's/^/| /' conftest.$ac_ext >&5
3550 ac_c_werror_flag=$ac_save_c_werror_flag
3551 CFLAGS="-g"
3552 cat >conftest.$ac_ext <<_ACEOF
3553 /* confdefs.h. */
3554 _ACEOF
3555 cat confdefs.h >>conftest.$ac_ext
3556 cat >>conftest.$ac_ext <<_ACEOF
3557 /* end confdefs.h. */
3560 main ()
3564 return 0;
3566 _ACEOF
3567 rm -f conftest.$ac_objext
3568 if { (ac_try="$ac_compile"
3569 case "(($ac_try" in
3570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571 *) ac_try_echo=$ac_try;;
3572 esac
3573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3574 (eval "$ac_compile") 2>conftest.er1
3575 ac_status=$?
3576 grep -v '^ *+' conftest.er1 >conftest.err
3577 rm -f conftest.er1
3578 cat conftest.err >&5
3579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); } && {
3581 test -z "$ac_c_werror_flag" ||
3582 test ! -s conftest.err
3583 } && test -s conftest.$ac_objext; then
3584 ac_cv_prog_cc_g=yes
3585 else
3586 echo "$as_me: failed program was:" >&5
3587 sed 's/^/| /' conftest.$ac_ext >&5
3592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3599 ac_c_werror_flag=$ac_save_c_werror_flag
3601 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3602 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3603 if test "$ac_test_CFLAGS" = set; then
3604 CFLAGS=$ac_save_CFLAGS
3605 elif test $ac_cv_prog_cc_g = yes; then
3606 if test "$GCC" = yes; then
3607 CFLAGS="-g -O2"
3608 else
3609 CFLAGS="-g"
3611 else
3612 if test "$GCC" = yes; then
3613 CFLAGS="-O2"
3614 else
3615 CFLAGS=
3618 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3619 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3620 if test "${ac_cv_prog_cc_c89+set}" = set; then
3621 echo $ECHO_N "(cached) $ECHO_C" >&6
3622 else
3623 ac_cv_prog_cc_c89=no
3624 ac_save_CC=$CC
3625 cat >conftest.$ac_ext <<_ACEOF
3626 /* confdefs.h. */
3627 _ACEOF
3628 cat confdefs.h >>conftest.$ac_ext
3629 cat >>conftest.$ac_ext <<_ACEOF
3630 /* end confdefs.h. */
3631 #include <stdarg.h>
3632 #include <stdio.h>
3633 #include <sys/types.h>
3634 #include <sys/stat.h>
3635 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3636 struct buf { int x; };
3637 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3638 static char *e (p, i)
3639 char **p;
3640 int i;
3642 return p[i];
3644 static char *f (char * (*g) (char **, int), char **p, ...)
3646 char *s;
3647 va_list v;
3648 va_start (v,p);
3649 s = g (p, va_arg (v,int));
3650 va_end (v);
3651 return s;
3654 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3655 function prototypes and stuff, but not '\xHH' hex character constants.
3656 These don't provoke an error unfortunately, instead are silently treated
3657 as 'x'. The following induces an error, until -std is added to get
3658 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3659 array size at least. It's necessary to write '\x00'==0 to get something
3660 that's true only with -std. */
3661 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3663 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3664 inside strings and character constants. */
3665 #define FOO(x) 'x'
3666 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3668 int test (int i, double x);
3669 struct s1 {int (*f) (int a);};
3670 struct s2 {int (*f) (double a);};
3671 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3672 int argc;
3673 char **argv;
3675 main ()
3677 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3679 return 0;
3681 _ACEOF
3682 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3683 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3685 CC="$ac_save_CC $ac_arg"
3686 rm -f conftest.$ac_objext
3687 if { (ac_try="$ac_compile"
3688 case "(($ac_try" in
3689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3690 *) ac_try_echo=$ac_try;;
3691 esac
3692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3693 (eval "$ac_compile") 2>conftest.er1
3694 ac_status=$?
3695 grep -v '^ *+' conftest.er1 >conftest.err
3696 rm -f conftest.er1
3697 cat conftest.err >&5
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); } && {
3700 test -z "$ac_c_werror_flag" ||
3701 test ! -s conftest.err
3702 } && test -s conftest.$ac_objext; then
3703 ac_cv_prog_cc_c89=$ac_arg
3704 else
3705 echo "$as_me: failed program was:" >&5
3706 sed 's/^/| /' conftest.$ac_ext >&5
3711 rm -f core conftest.err conftest.$ac_objext
3712 test "x$ac_cv_prog_cc_c89" != "xno" && break
3713 done
3714 rm -f conftest.$ac_ext
3715 CC=$ac_save_CC
3718 # AC_CACHE_VAL
3719 case "x$ac_cv_prog_cc_c89" in
3721 { echo "$as_me:$LINENO: result: none needed" >&5
3722 echo "${ECHO_T}none needed" >&6; } ;;
3723 xno)
3724 { echo "$as_me:$LINENO: result: unsupported" >&5
3725 echo "${ECHO_T}unsupported" >&6; } ;;
3727 CC="$CC $ac_cv_prog_cc_c89"
3728 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3729 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3730 esac
3733 ac_ext=c
3734 ac_cpp='$CPP $CPPFLAGS'
3735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3740 # On Suns, sometimes $CPP names a directory.
3741 if test -n "$CPP" && test -d "$CPP"; then
3742 CPP=
3745 ## If not using gcc, and on Solaris, and no CPP specified, see if
3746 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3747 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3748 test x"$CPP" = x; then
3749 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3750 echo $ECHO_N "checking whether we are using a Sun C compiler... $ECHO_C" >&6; }
3752 if test "${emacs_cv_sunpro_c+set}" = set; then
3753 echo $ECHO_N "(cached) $ECHO_C" >&6
3754 else
3755 cat >conftest.$ac_ext <<_ACEOF
3756 /* confdefs.h. */
3757 _ACEOF
3758 cat confdefs.h >>conftest.$ac_ext
3759 cat >>conftest.$ac_ext <<_ACEOF
3760 /* end confdefs.h. */
3763 main ()
3765 #ifndef __SUNPRO_C
3766 fail;
3767 #endif
3770 return 0;
3772 _ACEOF
3773 rm -f conftest.$ac_objext conftest$ac_exeext
3774 if { (ac_try="$ac_link"
3775 case "(($ac_try" in
3776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3777 *) ac_try_echo=$ac_try;;
3778 esac
3779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3780 (eval "$ac_link") 2>conftest.er1
3781 ac_status=$?
3782 grep -v '^ *+' conftest.er1 >conftest.err
3783 rm -f conftest.er1
3784 cat conftest.err >&5
3785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786 (exit $ac_status); } && {
3787 test -z "$ac_c_werror_flag" ||
3788 test ! -s conftest.err
3789 } && test -s conftest$ac_exeext &&
3790 $as_test_x conftest$ac_exeext; then
3791 emacs_cv_sunpro_c=yes
3792 else
3793 echo "$as_me: failed program was:" >&5
3794 sed 's/^/| /' conftest.$ac_ext >&5
3796 emacs_cv_sunpro_c=no
3799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3800 conftest$ac_exeext conftest.$ac_ext
3803 { echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
3804 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3806 if test x"$emacs_cv_sunpro_c" = xyes; then
3807 NON_GNU_CPP="$CC -E -Xs"
3811 #### Some systems specify a CPP to use unless we are using GCC.
3812 #### Now that we know whether we are using GCC, we can decide whether
3813 #### to use that one.
3814 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3815 then
3816 CPP="$NON_GNU_CPP"
3819 #### Some systems specify a CC to use unless we are using GCC.
3820 #### Now that we know whether we are using GCC, we can decide whether
3821 #### to use that one.
3822 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3823 test x$cc_specified != xyes
3824 then
3825 CC="$NON_GNU_CC"
3828 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3829 then
3830 CC="$CC $GCC_TEST_OPTIONS"
3833 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3834 then
3835 CC="$CC $NON_GCC_TEST_OPTIONS"
3839 cat >>confdefs.h <<\_ACEOF
3840 #define _GNU_SOURCE 1
3841 _ACEOF
3844 ac_ext=c
3845 ac_cpp='$CPP $CPPFLAGS'
3846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3849 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3850 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3851 # On Suns, sometimes $CPP names a directory.
3852 if test -n "$CPP" && test -d "$CPP"; then
3853 CPP=
3855 if test -z "$CPP"; then
3856 if test "${ac_cv_prog_CPP+set}" = set; then
3857 echo $ECHO_N "(cached) $ECHO_C" >&6
3858 else
3859 # Double quotes because CPP needs to be expanded
3860 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3862 ac_preproc_ok=false
3863 for ac_c_preproc_warn_flag in '' yes
3865 # Use a header file that comes with gcc, so configuring glibc
3866 # with a fresh cross-compiler works.
3867 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3868 # <limits.h> exists even on freestanding compilers.
3869 # On the NeXT, cc -E runs the code through the compiler's parser,
3870 # not just through cpp. "Syntax error" is here to catch this case.
3871 cat >conftest.$ac_ext <<_ACEOF
3872 /* confdefs.h. */
3873 _ACEOF
3874 cat confdefs.h >>conftest.$ac_ext
3875 cat >>conftest.$ac_ext <<_ACEOF
3876 /* end confdefs.h. */
3877 #ifdef __STDC__
3878 # include <limits.h>
3879 #else
3880 # include <assert.h>
3881 #endif
3882 Syntax error
3883 _ACEOF
3884 if { (ac_try="$ac_cpp conftest.$ac_ext"
3885 case "(($ac_try" in
3886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3887 *) ac_try_echo=$ac_try;;
3888 esac
3889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3891 ac_status=$?
3892 grep -v '^ *+' conftest.er1 >conftest.err
3893 rm -f conftest.er1
3894 cat conftest.err >&5
3895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896 (exit $ac_status); } >/dev/null && {
3897 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3898 test ! -s conftest.err
3899 }; then
3901 else
3902 echo "$as_me: failed program was:" >&5
3903 sed 's/^/| /' conftest.$ac_ext >&5
3905 # Broken: fails on valid input.
3906 continue
3909 rm -f conftest.err conftest.$ac_ext
3911 # OK, works on sane cases. Now check whether nonexistent headers
3912 # can be detected and how.
3913 cat >conftest.$ac_ext <<_ACEOF
3914 /* confdefs.h. */
3915 _ACEOF
3916 cat confdefs.h >>conftest.$ac_ext
3917 cat >>conftest.$ac_ext <<_ACEOF
3918 /* end confdefs.h. */
3919 #include <ac_nonexistent.h>
3920 _ACEOF
3921 if { (ac_try="$ac_cpp conftest.$ac_ext"
3922 case "(($ac_try" in
3923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3924 *) ac_try_echo=$ac_try;;
3925 esac
3926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3927 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3928 ac_status=$?
3929 grep -v '^ *+' conftest.er1 >conftest.err
3930 rm -f conftest.er1
3931 cat conftest.err >&5
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); } >/dev/null && {
3934 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3935 test ! -s conftest.err
3936 }; then
3937 # Broken: success on invalid input.
3938 continue
3939 else
3940 echo "$as_me: failed program was:" >&5
3941 sed 's/^/| /' conftest.$ac_ext >&5
3943 # Passes both tests.
3944 ac_preproc_ok=:
3945 break
3948 rm -f conftest.err conftest.$ac_ext
3950 done
3951 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3952 rm -f conftest.err conftest.$ac_ext
3953 if $ac_preproc_ok; then
3954 break
3957 done
3958 ac_cv_prog_CPP=$CPP
3961 CPP=$ac_cv_prog_CPP
3962 else
3963 ac_cv_prog_CPP=$CPP
3965 { echo "$as_me:$LINENO: result: $CPP" >&5
3966 echo "${ECHO_T}$CPP" >&6; }
3967 ac_preproc_ok=false
3968 for ac_c_preproc_warn_flag in '' yes
3970 # Use a header file that comes with gcc, so configuring glibc
3971 # with a fresh cross-compiler works.
3972 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3973 # <limits.h> exists even on freestanding compilers.
3974 # On the NeXT, cc -E runs the code through the compiler's parser,
3975 # not just through cpp. "Syntax error" is here to catch this case.
3976 cat >conftest.$ac_ext <<_ACEOF
3977 /* confdefs.h. */
3978 _ACEOF
3979 cat confdefs.h >>conftest.$ac_ext
3980 cat >>conftest.$ac_ext <<_ACEOF
3981 /* end confdefs.h. */
3982 #ifdef __STDC__
3983 # include <limits.h>
3984 #else
3985 # include <assert.h>
3986 #endif
3987 Syntax error
3988 _ACEOF
3989 if { (ac_try="$ac_cpp conftest.$ac_ext"
3990 case "(($ac_try" in
3991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3992 *) ac_try_echo=$ac_try;;
3993 esac
3994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3995 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3996 ac_status=$?
3997 grep -v '^ *+' conftest.er1 >conftest.err
3998 rm -f conftest.er1
3999 cat conftest.err >&5
4000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001 (exit $ac_status); } >/dev/null && {
4002 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4003 test ! -s conftest.err
4004 }; then
4006 else
4007 echo "$as_me: failed program was:" >&5
4008 sed 's/^/| /' conftest.$ac_ext >&5
4010 # Broken: fails on valid input.
4011 continue
4014 rm -f conftest.err conftest.$ac_ext
4016 # OK, works on sane cases. Now check whether nonexistent headers
4017 # can be detected and how.
4018 cat >conftest.$ac_ext <<_ACEOF
4019 /* confdefs.h. */
4020 _ACEOF
4021 cat confdefs.h >>conftest.$ac_ext
4022 cat >>conftest.$ac_ext <<_ACEOF
4023 /* end confdefs.h. */
4024 #include <ac_nonexistent.h>
4025 _ACEOF
4026 if { (ac_try="$ac_cpp conftest.$ac_ext"
4027 case "(($ac_try" in
4028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4029 *) ac_try_echo=$ac_try;;
4030 esac
4031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4032 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4033 ac_status=$?
4034 grep -v '^ *+' conftest.er1 >conftest.err
4035 rm -f conftest.er1
4036 cat conftest.err >&5
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); } >/dev/null && {
4039 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4040 test ! -s conftest.err
4041 }; then
4042 # Broken: success on invalid input.
4043 continue
4044 else
4045 echo "$as_me: failed program was:" >&5
4046 sed 's/^/| /' conftest.$ac_ext >&5
4048 # Passes both tests.
4049 ac_preproc_ok=:
4050 break
4053 rm -f conftest.err conftest.$ac_ext
4055 done
4056 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4057 rm -f conftest.err conftest.$ac_ext
4058 if $ac_preproc_ok; then
4060 else
4061 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4062 See \`config.log' for more details." >&5
4063 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4064 See \`config.log' for more details." >&2;}
4065 { (exit 1); exit 1; }; }
4068 ac_ext=c
4069 ac_cpp='$CPP $CPPFLAGS'
4070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4075 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4076 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4077 if test "${ac_cv_path_GREP+set}" = set; then
4078 echo $ECHO_N "(cached) $ECHO_C" >&6
4079 else
4080 # Extract the first word of "grep ggrep" to use in msg output
4081 if test -z "$GREP"; then
4082 set dummy grep ggrep; ac_prog_name=$2
4083 if test "${ac_cv_path_GREP+set}" = set; then
4084 echo $ECHO_N "(cached) $ECHO_C" >&6
4085 else
4086 ac_path_GREP_found=false
4087 # Loop through the user's path and test for each of PROGNAME-LIST
4088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4089 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4091 IFS=$as_save_IFS
4092 test -z "$as_dir" && as_dir=.
4093 for ac_prog in grep ggrep; do
4094 for ac_exec_ext in '' $ac_executable_extensions; do
4095 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4096 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4097 # Check for GNU ac_path_GREP and select it if it is found.
4098 # Check for GNU $ac_path_GREP
4099 case `"$ac_path_GREP" --version 2>&1` in
4100 *GNU*)
4101 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4103 ac_count=0
4104 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4105 while :
4107 cat "conftest.in" "conftest.in" >"conftest.tmp"
4108 mv "conftest.tmp" "conftest.in"
4109 cp "conftest.in" "conftest.nl"
4110 echo 'GREP' >> "conftest.nl"
4111 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4112 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4113 ac_count=`expr $ac_count + 1`
4114 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4115 # Best one so far, save it but keep looking for a better one
4116 ac_cv_path_GREP="$ac_path_GREP"
4117 ac_path_GREP_max=$ac_count
4119 # 10*(2^10) chars as input seems more than enough
4120 test $ac_count -gt 10 && break
4121 done
4122 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4123 esac
4126 $ac_path_GREP_found && break 3
4127 done
4128 done
4130 done
4131 IFS=$as_save_IFS
4136 GREP="$ac_cv_path_GREP"
4137 if test -z "$GREP"; then
4138 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4139 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4140 { (exit 1); exit 1; }; }
4143 else
4144 ac_cv_path_GREP=$GREP
4149 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4150 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4151 GREP="$ac_cv_path_GREP"
4154 { echo "$as_me:$LINENO: checking for egrep" >&5
4155 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4156 if test "${ac_cv_path_EGREP+set}" = set; then
4157 echo $ECHO_N "(cached) $ECHO_C" >&6
4158 else
4159 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4160 then ac_cv_path_EGREP="$GREP -E"
4161 else
4162 # Extract the first word of "egrep" to use in msg output
4163 if test -z "$EGREP"; then
4164 set dummy egrep; ac_prog_name=$2
4165 if test "${ac_cv_path_EGREP+set}" = set; then
4166 echo $ECHO_N "(cached) $ECHO_C" >&6
4167 else
4168 ac_path_EGREP_found=false
4169 # Loop through the user's path and test for each of PROGNAME-LIST
4170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4173 IFS=$as_save_IFS
4174 test -z "$as_dir" && as_dir=.
4175 for ac_prog in egrep; do
4176 for ac_exec_ext in '' $ac_executable_extensions; do
4177 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4178 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4179 # Check for GNU ac_path_EGREP and select it if it is found.
4180 # Check for GNU $ac_path_EGREP
4181 case `"$ac_path_EGREP" --version 2>&1` in
4182 *GNU*)
4183 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4185 ac_count=0
4186 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4187 while :
4189 cat "conftest.in" "conftest.in" >"conftest.tmp"
4190 mv "conftest.tmp" "conftest.in"
4191 cp "conftest.in" "conftest.nl"
4192 echo 'EGREP' >> "conftest.nl"
4193 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4194 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4195 ac_count=`expr $ac_count + 1`
4196 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4197 # Best one so far, save it but keep looking for a better one
4198 ac_cv_path_EGREP="$ac_path_EGREP"
4199 ac_path_EGREP_max=$ac_count
4201 # 10*(2^10) chars as input seems more than enough
4202 test $ac_count -gt 10 && break
4203 done
4204 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4205 esac
4208 $ac_path_EGREP_found && break 3
4209 done
4210 done
4212 done
4213 IFS=$as_save_IFS
4218 EGREP="$ac_cv_path_EGREP"
4219 if test -z "$EGREP"; then
4220 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4221 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4222 { (exit 1); exit 1; }; }
4225 else
4226 ac_cv_path_EGREP=$EGREP
4232 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4233 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4234 EGREP="$ac_cv_path_EGREP"
4238 { echo "$as_me:$LINENO: checking for AIX" >&5
4239 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4240 cat >conftest.$ac_ext <<_ACEOF
4241 /* confdefs.h. */
4242 _ACEOF
4243 cat confdefs.h >>conftest.$ac_ext
4244 cat >>conftest.$ac_ext <<_ACEOF
4245 /* end confdefs.h. */
4246 #ifdef _AIX
4248 #endif
4250 _ACEOF
4251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4252 $EGREP "yes" >/dev/null 2>&1; then
4253 { echo "$as_me:$LINENO: result: yes" >&5
4254 echo "${ECHO_T}yes" >&6; }
4255 cat >>confdefs.h <<\_ACEOF
4256 #define _ALL_SOURCE 1
4257 _ACEOF
4259 else
4260 { echo "$as_me:$LINENO: result: no" >&5
4261 echo "${ECHO_T}no" >&6; }
4263 rm -f conftest*
4266 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4267 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4268 if test "${ac_cv_header_stdc+set}" = set; then
4269 echo $ECHO_N "(cached) $ECHO_C" >&6
4270 else
4271 cat >conftest.$ac_ext <<_ACEOF
4272 /* confdefs.h. */
4273 _ACEOF
4274 cat confdefs.h >>conftest.$ac_ext
4275 cat >>conftest.$ac_ext <<_ACEOF
4276 /* end confdefs.h. */
4277 #include <stdlib.h>
4278 #include <stdarg.h>
4279 #include <string.h>
4280 #include <float.h>
4283 main ()
4287 return 0;
4289 _ACEOF
4290 rm -f conftest.$ac_objext
4291 if { (ac_try="$ac_compile"
4292 case "(($ac_try" in
4293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294 *) ac_try_echo=$ac_try;;
4295 esac
4296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4297 (eval "$ac_compile") 2>conftest.er1
4298 ac_status=$?
4299 grep -v '^ *+' conftest.er1 >conftest.err
4300 rm -f conftest.er1
4301 cat conftest.err >&5
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); } && {
4304 test -z "$ac_c_werror_flag" ||
4305 test ! -s conftest.err
4306 } && test -s conftest.$ac_objext; then
4307 ac_cv_header_stdc=yes
4308 else
4309 echo "$as_me: failed program was:" >&5
4310 sed 's/^/| /' conftest.$ac_ext >&5
4312 ac_cv_header_stdc=no
4315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4317 if test $ac_cv_header_stdc = yes; then
4318 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4319 cat >conftest.$ac_ext <<_ACEOF
4320 /* confdefs.h. */
4321 _ACEOF
4322 cat confdefs.h >>conftest.$ac_ext
4323 cat >>conftest.$ac_ext <<_ACEOF
4324 /* end confdefs.h. */
4325 #include <string.h>
4327 _ACEOF
4328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4329 $EGREP "memchr" >/dev/null 2>&1; then
4331 else
4332 ac_cv_header_stdc=no
4334 rm -f conftest*
4338 if test $ac_cv_header_stdc = yes; then
4339 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4340 cat >conftest.$ac_ext <<_ACEOF
4341 /* confdefs.h. */
4342 _ACEOF
4343 cat confdefs.h >>conftest.$ac_ext
4344 cat >>conftest.$ac_ext <<_ACEOF
4345 /* end confdefs.h. */
4346 #include <stdlib.h>
4348 _ACEOF
4349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4350 $EGREP "free" >/dev/null 2>&1; then
4352 else
4353 ac_cv_header_stdc=no
4355 rm -f conftest*
4359 if test $ac_cv_header_stdc = yes; then
4360 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4361 if test "$cross_compiling" = yes; then
4363 else
4364 cat >conftest.$ac_ext <<_ACEOF
4365 /* confdefs.h. */
4366 _ACEOF
4367 cat confdefs.h >>conftest.$ac_ext
4368 cat >>conftest.$ac_ext <<_ACEOF
4369 /* end confdefs.h. */
4370 #include <ctype.h>
4371 #include <stdlib.h>
4372 #if ((' ' & 0x0FF) == 0x020)
4373 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4374 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4375 #else
4376 # define ISLOWER(c) \
4377 (('a' <= (c) && (c) <= 'i') \
4378 || ('j' <= (c) && (c) <= 'r') \
4379 || ('s' <= (c) && (c) <= 'z'))
4380 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4381 #endif
4383 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4385 main ()
4387 int i;
4388 for (i = 0; i < 256; i++)
4389 if (XOR (islower (i), ISLOWER (i))
4390 || toupper (i) != TOUPPER (i))
4391 return 2;
4392 return 0;
4394 _ACEOF
4395 rm -f conftest$ac_exeext
4396 if { (ac_try="$ac_link"
4397 case "(($ac_try" in
4398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4399 *) ac_try_echo=$ac_try;;
4400 esac
4401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4402 (eval "$ac_link") 2>&5
4403 ac_status=$?
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4406 { (case "(($ac_try" in
4407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4408 *) ac_try_echo=$ac_try;;
4409 esac
4410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4411 (eval "$ac_try") 2>&5
4412 ac_status=$?
4413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414 (exit $ac_status); }; }; then
4416 else
4417 echo "$as_me: program exited with status $ac_status" >&5
4418 echo "$as_me: failed program was:" >&5
4419 sed 's/^/| /' conftest.$ac_ext >&5
4421 ( exit $ac_status )
4422 ac_cv_header_stdc=no
4424 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4430 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4431 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4432 if test $ac_cv_header_stdc = yes; then
4434 cat >>confdefs.h <<\_ACEOF
4435 #define STDC_HEADERS 1
4436 _ACEOF
4440 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4450 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4451 inttypes.h stdint.h unistd.h
4453 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4454 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4457 echo $ECHO_N "(cached) $ECHO_C" >&6
4458 else
4459 cat >conftest.$ac_ext <<_ACEOF
4460 /* confdefs.h. */
4461 _ACEOF
4462 cat confdefs.h >>conftest.$ac_ext
4463 cat >>conftest.$ac_ext <<_ACEOF
4464 /* end confdefs.h. */
4465 $ac_includes_default
4467 #include <$ac_header>
4468 _ACEOF
4469 rm -f conftest.$ac_objext
4470 if { (ac_try="$ac_compile"
4471 case "(($ac_try" in
4472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4473 *) ac_try_echo=$ac_try;;
4474 esac
4475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4476 (eval "$ac_compile") 2>conftest.er1
4477 ac_status=$?
4478 grep -v '^ *+' conftest.er1 >conftest.err
4479 rm -f conftest.er1
4480 cat conftest.err >&5
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); } && {
4483 test -z "$ac_c_werror_flag" ||
4484 test ! -s conftest.err
4485 } && test -s conftest.$ac_objext; then
4486 eval "$as_ac_Header=yes"
4487 else
4488 echo "$as_me: failed program was:" >&5
4489 sed 's/^/| /' conftest.$ac_ext >&5
4491 eval "$as_ac_Header=no"
4494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4496 ac_res=`eval echo '${'$as_ac_Header'}'`
4497 { echo "$as_me:$LINENO: result: $ac_res" >&5
4498 echo "${ECHO_T}$ac_res" >&6; }
4499 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4500 cat >>confdefs.h <<_ACEOF
4501 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4502 _ACEOF
4506 done
4509 if test "${ac_cv_header_minix_config_h+set}" = set; then
4510 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4511 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4512 if test "${ac_cv_header_minix_config_h+set}" = set; then
4513 echo $ECHO_N "(cached) $ECHO_C" >&6
4515 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4516 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4517 else
4518 # Is the header compilable?
4519 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4520 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4521 cat >conftest.$ac_ext <<_ACEOF
4522 /* confdefs.h. */
4523 _ACEOF
4524 cat confdefs.h >>conftest.$ac_ext
4525 cat >>conftest.$ac_ext <<_ACEOF
4526 /* end confdefs.h. */
4527 $ac_includes_default
4528 #include <minix/config.h>
4529 _ACEOF
4530 rm -f conftest.$ac_objext
4531 if { (ac_try="$ac_compile"
4532 case "(($ac_try" in
4533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4534 *) ac_try_echo=$ac_try;;
4535 esac
4536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4537 (eval "$ac_compile") 2>conftest.er1
4538 ac_status=$?
4539 grep -v '^ *+' conftest.er1 >conftest.err
4540 rm -f conftest.er1
4541 cat conftest.err >&5
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); } && {
4544 test -z "$ac_c_werror_flag" ||
4545 test ! -s conftest.err
4546 } && test -s conftest.$ac_objext; then
4547 ac_header_compiler=yes
4548 else
4549 echo "$as_me: failed program was:" >&5
4550 sed 's/^/| /' conftest.$ac_ext >&5
4552 ac_header_compiler=no
4555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4556 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4557 echo "${ECHO_T}$ac_header_compiler" >&6; }
4559 # Is the header present?
4560 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4561 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4562 cat >conftest.$ac_ext <<_ACEOF
4563 /* confdefs.h. */
4564 _ACEOF
4565 cat confdefs.h >>conftest.$ac_ext
4566 cat >>conftest.$ac_ext <<_ACEOF
4567 /* end confdefs.h. */
4568 #include <minix/config.h>
4569 _ACEOF
4570 if { (ac_try="$ac_cpp conftest.$ac_ext"
4571 case "(($ac_try" in
4572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4573 *) ac_try_echo=$ac_try;;
4574 esac
4575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4576 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4577 ac_status=$?
4578 grep -v '^ *+' conftest.er1 >conftest.err
4579 rm -f conftest.er1
4580 cat conftest.err >&5
4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); } >/dev/null && {
4583 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4584 test ! -s conftest.err
4585 }; then
4586 ac_header_preproc=yes
4587 else
4588 echo "$as_me: failed program was:" >&5
4589 sed 's/^/| /' conftest.$ac_ext >&5
4591 ac_header_preproc=no
4594 rm -f conftest.err conftest.$ac_ext
4595 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4596 echo "${ECHO_T}$ac_header_preproc" >&6; }
4598 # So? What about this header?
4599 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4600 yes:no: )
4601 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4602 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4603 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4604 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4605 ac_header_preproc=yes
4607 no:yes:* )
4608 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4609 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4610 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4611 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4612 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4613 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4614 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4615 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4616 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4617 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4618 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4619 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4622 esac
4623 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4624 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4625 if test "${ac_cv_header_minix_config_h+set}" = set; then
4626 echo $ECHO_N "(cached) $ECHO_C" >&6
4627 else
4628 ac_cv_header_minix_config_h=$ac_header_preproc
4630 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4631 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4634 if test $ac_cv_header_minix_config_h = yes; then
4635 MINIX=yes
4636 else
4637 MINIX=
4641 if test "$MINIX" = yes; then
4643 cat >>confdefs.h <<\_ACEOF
4644 #define _POSIX_SOURCE 1
4645 _ACEOF
4648 cat >>confdefs.h <<\_ACEOF
4649 #define _POSIX_1_SOURCE 2
4650 _ACEOF
4653 cat >>confdefs.h <<\_ACEOF
4654 #define _MINIX 1
4655 _ACEOF
4669 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4670 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4671 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4672 echo $ECHO_N "(cached) $ECHO_C" >&6
4673 else
4674 cat >conftest.$ac_ext <<_ACEOF
4675 /* confdefs.h. */
4676 _ACEOF
4677 cat confdefs.h >>conftest.$ac_ext
4678 cat >>conftest.$ac_ext <<_ACEOF
4679 /* end confdefs.h. */
4681 # define __EXTENSIONS__ 1
4682 $ac_includes_default
4684 main ()
4688 return 0;
4690 _ACEOF
4691 rm -f conftest.$ac_objext
4692 if { (ac_try="$ac_compile"
4693 case "(($ac_try" in
4694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4695 *) ac_try_echo=$ac_try;;
4696 esac
4697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4698 (eval "$ac_compile") 2>conftest.er1
4699 ac_status=$?
4700 grep -v '^ *+' conftest.er1 >conftest.err
4701 rm -f conftest.er1
4702 cat conftest.err >&5
4703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704 (exit $ac_status); } && {
4705 test -z "$ac_c_werror_flag" ||
4706 test ! -s conftest.err
4707 } && test -s conftest.$ac_objext; then
4708 ac_cv_safe_to_define___extensions__=yes
4709 else
4710 echo "$as_me: failed program was:" >&5
4711 sed 's/^/| /' conftest.$ac_ext >&5
4713 ac_cv_safe_to_define___extensions__=no
4716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4718 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4719 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4720 test $ac_cv_safe_to_define___extensions__ = yes &&
4721 cat >>confdefs.h <<\_ACEOF
4722 #define __EXTENSIONS__ 1
4723 _ACEOF
4725 cat >>confdefs.h <<\_ACEOF
4726 #define _POSIX_PTHREAD_SEMANTICS 1
4727 _ACEOF
4729 cat >>confdefs.h <<\_ACEOF
4730 #define _TANDEM_SOURCE 1
4731 _ACEOF
4735 ### Use -Wno-pointer-sign if the compiler supports it
4736 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4737 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4738 SAVE_CFLAGS="$CFLAGS"
4739 CFLAGS="$CFLAGS -Wno-pointer-sign"
4740 cat >conftest.$ac_ext <<_ACEOF
4741 /* confdefs.h. */
4742 _ACEOF
4743 cat confdefs.h >>conftest.$ac_ext
4744 cat >>conftest.$ac_ext <<_ACEOF
4745 /* end confdefs.h. */
4748 main ()
4752 return 0;
4754 _ACEOF
4755 rm -f conftest.$ac_objext
4756 if { (ac_try="$ac_compile"
4757 case "(($ac_try" in
4758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4759 *) ac_try_echo=$ac_try;;
4760 esac
4761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4762 (eval "$ac_compile") 2>conftest.er1
4763 ac_status=$?
4764 grep -v '^ *+' conftest.er1 >conftest.err
4765 rm -f conftest.er1
4766 cat conftest.err >&5
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); } && {
4769 test -z "$ac_c_werror_flag" ||
4770 test ! -s conftest.err
4771 } && test -s conftest.$ac_objext; then
4772 has_option=yes
4773 else
4774 echo "$as_me: failed program was:" >&5
4775 sed 's/^/| /' conftest.$ac_ext >&5
4777 has_option=no
4780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4781 if test $has_option = yes; then
4782 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4784 { echo "$as_me:$LINENO: result: $has_option" >&5
4785 echo "${ECHO_T}$has_option" >&6; }
4786 CFLAGS="$SAVE_CFLAGS"
4787 unset has_option
4788 unset SAVE_CFLAGS
4790 #### Some other nice autoconf tests.
4792 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4793 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4794 LN_S=$as_ln_s
4795 if test "$LN_S" = "ln -s"; then
4796 { echo "$as_me:$LINENO: result: yes" >&5
4797 echo "${ECHO_T}yes" >&6; }
4798 else
4799 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4800 echo "${ECHO_T}no, using $LN_S" >&6; }
4803 ac_ext=c
4804 ac_cpp='$CPP $CPPFLAGS'
4805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4808 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4809 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4810 # On Suns, sometimes $CPP names a directory.
4811 if test -n "$CPP" && test -d "$CPP"; then
4812 CPP=
4814 if test -z "$CPP"; then
4815 if test "${ac_cv_prog_CPP+set}" = set; then
4816 echo $ECHO_N "(cached) $ECHO_C" >&6
4817 else
4818 # Double quotes because CPP needs to be expanded
4819 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4821 ac_preproc_ok=false
4822 for ac_c_preproc_warn_flag in '' yes
4824 # Use a header file that comes with gcc, so configuring glibc
4825 # with a fresh cross-compiler works.
4826 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4827 # <limits.h> exists even on freestanding compilers.
4828 # On the NeXT, cc -E runs the code through the compiler's parser,
4829 # not just through cpp. "Syntax error" is here to catch this case.
4830 cat >conftest.$ac_ext <<_ACEOF
4831 /* confdefs.h. */
4832 _ACEOF
4833 cat confdefs.h >>conftest.$ac_ext
4834 cat >>conftest.$ac_ext <<_ACEOF
4835 /* end confdefs.h. */
4836 #ifdef __STDC__
4837 # include <limits.h>
4838 #else
4839 # include <assert.h>
4840 #endif
4841 Syntax error
4842 _ACEOF
4843 if { (ac_try="$ac_cpp conftest.$ac_ext"
4844 case "(($ac_try" in
4845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4846 *) ac_try_echo=$ac_try;;
4847 esac
4848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4850 ac_status=$?
4851 grep -v '^ *+' conftest.er1 >conftest.err
4852 rm -f conftest.er1
4853 cat conftest.err >&5
4854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855 (exit $ac_status); } >/dev/null && {
4856 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4857 test ! -s conftest.err
4858 }; then
4860 else
4861 echo "$as_me: failed program was:" >&5
4862 sed 's/^/| /' conftest.$ac_ext >&5
4864 # Broken: fails on valid input.
4865 continue
4868 rm -f conftest.err conftest.$ac_ext
4870 # OK, works on sane cases. Now check whether nonexistent headers
4871 # can be detected and how.
4872 cat >conftest.$ac_ext <<_ACEOF
4873 /* confdefs.h. */
4874 _ACEOF
4875 cat confdefs.h >>conftest.$ac_ext
4876 cat >>conftest.$ac_ext <<_ACEOF
4877 /* end confdefs.h. */
4878 #include <ac_nonexistent.h>
4879 _ACEOF
4880 if { (ac_try="$ac_cpp conftest.$ac_ext"
4881 case "(($ac_try" in
4882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4883 *) ac_try_echo=$ac_try;;
4884 esac
4885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4887 ac_status=$?
4888 grep -v '^ *+' conftest.er1 >conftest.err
4889 rm -f conftest.er1
4890 cat conftest.err >&5
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); } >/dev/null && {
4893 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4894 test ! -s conftest.err
4895 }; then
4896 # Broken: success on invalid input.
4897 continue
4898 else
4899 echo "$as_me: failed program was:" >&5
4900 sed 's/^/| /' conftest.$ac_ext >&5
4902 # Passes both tests.
4903 ac_preproc_ok=:
4904 break
4907 rm -f conftest.err conftest.$ac_ext
4909 done
4910 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4911 rm -f conftest.err conftest.$ac_ext
4912 if $ac_preproc_ok; then
4913 break
4916 done
4917 ac_cv_prog_CPP=$CPP
4920 CPP=$ac_cv_prog_CPP
4921 else
4922 ac_cv_prog_CPP=$CPP
4924 { echo "$as_me:$LINENO: result: $CPP" >&5
4925 echo "${ECHO_T}$CPP" >&6; }
4926 ac_preproc_ok=false
4927 for ac_c_preproc_warn_flag in '' yes
4929 # Use a header file that comes with gcc, so configuring glibc
4930 # with a fresh cross-compiler works.
4931 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4932 # <limits.h> exists even on freestanding compilers.
4933 # On the NeXT, cc -E runs the code through the compiler's parser,
4934 # not just through cpp. "Syntax error" is here to catch this case.
4935 cat >conftest.$ac_ext <<_ACEOF
4936 /* confdefs.h. */
4937 _ACEOF
4938 cat confdefs.h >>conftest.$ac_ext
4939 cat >>conftest.$ac_ext <<_ACEOF
4940 /* end confdefs.h. */
4941 #ifdef __STDC__
4942 # include <limits.h>
4943 #else
4944 # include <assert.h>
4945 #endif
4946 Syntax error
4947 _ACEOF
4948 if { (ac_try="$ac_cpp conftest.$ac_ext"
4949 case "(($ac_try" in
4950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4951 *) ac_try_echo=$ac_try;;
4952 esac
4953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4954 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4955 ac_status=$?
4956 grep -v '^ *+' conftest.er1 >conftest.err
4957 rm -f conftest.er1
4958 cat conftest.err >&5
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); } >/dev/null && {
4961 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4962 test ! -s conftest.err
4963 }; then
4965 else
4966 echo "$as_me: failed program was:" >&5
4967 sed 's/^/| /' conftest.$ac_ext >&5
4969 # Broken: fails on valid input.
4970 continue
4973 rm -f conftest.err conftest.$ac_ext
4975 # OK, works on sane cases. Now check whether nonexistent headers
4976 # can be detected and how.
4977 cat >conftest.$ac_ext <<_ACEOF
4978 /* confdefs.h. */
4979 _ACEOF
4980 cat confdefs.h >>conftest.$ac_ext
4981 cat >>conftest.$ac_ext <<_ACEOF
4982 /* end confdefs.h. */
4983 #include <ac_nonexistent.h>
4984 _ACEOF
4985 if { (ac_try="$ac_cpp conftest.$ac_ext"
4986 case "(($ac_try" in
4987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4988 *) ac_try_echo=$ac_try;;
4989 esac
4990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4991 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4992 ac_status=$?
4993 grep -v '^ *+' conftest.er1 >conftest.err
4994 rm -f conftest.er1
4995 cat conftest.err >&5
4996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); } >/dev/null && {
4998 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4999 test ! -s conftest.err
5000 }; then
5001 # Broken: success on invalid input.
5002 continue
5003 else
5004 echo "$as_me: failed program was:" >&5
5005 sed 's/^/| /' conftest.$ac_ext >&5
5007 # Passes both tests.
5008 ac_preproc_ok=:
5009 break
5012 rm -f conftest.err conftest.$ac_ext
5014 done
5015 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5016 rm -f conftest.err conftest.$ac_ext
5017 if $ac_preproc_ok; then
5019 else
5020 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5021 See \`config.log' for more details." >&5
5022 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5023 See \`config.log' for more details." >&2;}
5024 { (exit 1); exit 1; }; }
5027 ac_ext=c
5028 ac_cpp='$CPP $CPPFLAGS'
5029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5033 # Find a good install program. We prefer a C program (faster),
5034 # so one script is as good as another. But avoid the broken or
5035 # incompatible versions:
5036 # SysV /etc/install, /usr/sbin/install
5037 # SunOS /usr/etc/install
5038 # IRIX /sbin/install
5039 # AIX /bin/install
5040 # AmigaOS /C/install, which installs bootblocks on floppy discs
5041 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5042 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5043 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5044 # OS/2's system install, which has a completely different semantic
5045 # ./install, which can be erroneously created by make from ./install.sh.
5046 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5047 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5048 if test -z "$INSTALL"; then
5049 if test "${ac_cv_path_install+set}" = set; then
5050 echo $ECHO_N "(cached) $ECHO_C" >&6
5051 else
5052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053 for as_dir in $PATH
5055 IFS=$as_save_IFS
5056 test -z "$as_dir" && as_dir=.
5057 # Account for people who put trailing slashes in PATH elements.
5058 case $as_dir/ in
5059 ./ | .// | /cC/* | \
5060 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5061 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5062 /usr/ucb/* ) ;;
5064 # OSF1 and SCO ODT 3.0 have their own names for install.
5065 # Don't use installbsd from OSF since it installs stuff as root
5066 # by default.
5067 for ac_prog in ginstall scoinst install; do
5068 for ac_exec_ext in '' $ac_executable_extensions; do
5069 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5070 if test $ac_prog = install &&
5071 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5072 # AIX install. It has an incompatible calling convention.
5074 elif test $ac_prog = install &&
5075 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5076 # program-specific install script used by HP pwplus--don't use.
5078 else
5079 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5080 break 3
5083 done
5084 done
5086 esac
5087 done
5088 IFS=$as_save_IFS
5092 if test "${ac_cv_path_install+set}" = set; then
5093 INSTALL=$ac_cv_path_install
5094 else
5095 # As a last resort, use the slow shell script. Don't cache a
5096 # value for INSTALL within a source directory, because that will
5097 # break other packages using the cache if that directory is
5098 # removed, or if the value is a relative name.
5099 INSTALL=$ac_install_sh
5102 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5103 echo "${ECHO_T}$INSTALL" >&6; }
5105 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5106 # It thinks the first close brace ends the variable substitution.
5107 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5109 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5111 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5113 if test "x$RANLIB" = x; then
5114 if test -n "$ac_tool_prefix"; then
5115 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5116 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5117 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5119 if test "${ac_cv_prog_RANLIB+set}" = set; then
5120 echo $ECHO_N "(cached) $ECHO_C" >&6
5121 else
5122 if test -n "$RANLIB"; then
5123 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5124 else
5125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5126 for as_dir in $PATH
5128 IFS=$as_save_IFS
5129 test -z "$as_dir" && as_dir=.
5130 for ac_exec_ext in '' $ac_executable_extensions; do
5131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5132 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5134 break 2
5136 done
5137 done
5138 IFS=$as_save_IFS
5142 RANLIB=$ac_cv_prog_RANLIB
5143 if test -n "$RANLIB"; then
5144 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5145 echo "${ECHO_T}$RANLIB" >&6; }
5146 else
5147 { echo "$as_me:$LINENO: result: no" >&5
5148 echo "${ECHO_T}no" >&6; }
5153 if test -z "$ac_cv_prog_RANLIB"; then
5154 ac_ct_RANLIB=$RANLIB
5155 # Extract the first word of "ranlib", so it can be a program name with args.
5156 set dummy ranlib; ac_word=$2
5157 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5159 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5160 echo $ECHO_N "(cached) $ECHO_C" >&6
5161 else
5162 if test -n "$ac_ct_RANLIB"; then
5163 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5164 else
5165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5166 for as_dir in $PATH
5168 IFS=$as_save_IFS
5169 test -z "$as_dir" && as_dir=.
5170 for ac_exec_ext in '' $ac_executable_extensions; do
5171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5172 ac_cv_prog_ac_ct_RANLIB="ranlib"
5173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5174 break 2
5176 done
5177 done
5178 IFS=$as_save_IFS
5182 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5183 if test -n "$ac_ct_RANLIB"; then
5184 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5185 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5186 else
5187 { echo "$as_me:$LINENO: result: no" >&5
5188 echo "${ECHO_T}no" >&6; }
5191 if test "x$ac_ct_RANLIB" = x; then
5192 RANLIB=":"
5193 else
5194 case $cross_compiling:$ac_tool_warned in
5195 yes:)
5196 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5197 whose name does not start with the host triplet. If you think this
5198 configuration is useful to you, please write to autoconf@gnu.org." >&5
5199 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5200 whose name does not start with the host triplet. If you think this
5201 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5202 ac_tool_warned=yes ;;
5203 esac
5204 RANLIB=$ac_ct_RANLIB
5206 else
5207 RANLIB="$ac_cv_prog_RANLIB"
5211 # Extract the first word of "install-info", so it can be a program name with args.
5212 set dummy install-info; ac_word=$2
5213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5215 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5216 echo $ECHO_N "(cached) $ECHO_C" >&6
5217 else
5218 case $INSTALL_INFO in
5219 [\\/]* | ?:[\\/]*)
5220 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5224 for as_dir in $PATH
5226 IFS=$as_save_IFS
5227 test -z "$as_dir" && as_dir=.
5228 for ac_exec_ext in '' $ac_executable_extensions; do
5229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5230 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5232 break 2
5234 done
5235 done
5236 IFS=$as_save_IFS
5239 esac
5241 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5242 if test -n "$INSTALL_INFO"; then
5243 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5244 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5245 else
5246 { echo "$as_me:$LINENO: result: no" >&5
5247 echo "${ECHO_T}no" >&6; }
5251 # Extract the first word of "install-info", so it can be a program name with args.
5252 set dummy install-info; ac_word=$2
5253 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5255 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5256 echo $ECHO_N "(cached) $ECHO_C" >&6
5257 else
5258 case $INSTALL_INFO in
5259 [\\/]* | ?:[\\/]*)
5260 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5264 for as_dir in /usr/sbin
5266 IFS=$as_save_IFS
5267 test -z "$as_dir" && as_dir=.
5268 for ac_exec_ext in '' $ac_executable_extensions; do
5269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5270 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5272 break 2
5274 done
5275 done
5276 IFS=$as_save_IFS
5279 esac
5281 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5282 if test -n "$INSTALL_INFO"; then
5283 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5284 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5285 else
5286 { echo "$as_me:$LINENO: result: no" >&5
5287 echo "${ECHO_T}no" >&6; }
5291 # Extract the first word of "install-info", so it can be a program name with args.
5292 set dummy install-info; ac_word=$2
5293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5295 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5296 echo $ECHO_N "(cached) $ECHO_C" >&6
5297 else
5298 case $INSTALL_INFO in
5299 [\\/]* | ?:[\\/]*)
5300 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5304 for as_dir in /sbin
5306 IFS=$as_save_IFS
5307 test -z "$as_dir" && as_dir=.
5308 for ac_exec_ext in '' $ac_executable_extensions; do
5309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5310 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5312 break 2
5314 done
5315 done
5316 IFS=$as_save_IFS
5318 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5320 esac
5322 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5323 if test -n "$INSTALL_INFO"; then
5324 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5325 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5326 else
5327 { echo "$as_me:$LINENO: result: no" >&5
5328 echo "${ECHO_T}no" >&6; }
5332 # Extract the first word of "gzip", so it can be a program name with args.
5333 set dummy gzip; ac_word=$2
5334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5336 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5337 echo $ECHO_N "(cached) $ECHO_C" >&6
5338 else
5339 case $GZIP_PROG in
5340 [\\/]* | ?:[\\/]*)
5341 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5345 for as_dir in $PATH
5347 IFS=$as_save_IFS
5348 test -z "$as_dir" && as_dir=.
5349 for ac_exec_ext in '' $ac_executable_extensions; do
5350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5351 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5353 break 2
5355 done
5356 done
5357 IFS=$as_save_IFS
5360 esac
5362 GZIP_PROG=$ac_cv_path_GZIP_PROG
5363 if test -n "$GZIP_PROG"; then
5364 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5365 echo "${ECHO_T}$GZIP_PROG" >&6; }
5366 else
5367 { echo "$as_me:$LINENO: result: no" >&5
5368 echo "${ECHO_T}no" >&6; }
5374 ## Need makeinfo >= 4.6 (?) to build the manuals.
5375 # Extract the first word of "makeinfo", so it can be a program name with args.
5376 set dummy makeinfo; ac_word=$2
5377 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5379 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5380 echo $ECHO_N "(cached) $ECHO_C" >&6
5381 else
5382 case $MAKEINFO in
5383 [\\/]* | ?:[\\/]*)
5384 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5388 for as_dir in $PATH
5390 IFS=$as_save_IFS
5391 test -z "$as_dir" && as_dir=.
5392 for ac_exec_ext in '' $ac_executable_extensions; do
5393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5394 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5396 break 2
5398 done
5399 done
5400 IFS=$as_save_IFS
5402 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5404 esac
5406 MAKEINFO=$ac_cv_path_MAKEINFO
5407 if test -n "$MAKEINFO"; then
5408 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5409 echo "${ECHO_T}$MAKEINFO" >&6; }
5410 else
5411 { echo "$as_me:$LINENO: result: no" >&5
5412 echo "${ECHO_T}no" >&6; }
5416 if test "$MAKEINFO" != "no" && \
5417 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
5418 MAKEINFO=no
5421 ## Makeinfo is unusual. For a released Emacs, the manuals are
5422 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5423 ## therefore in the category of "special tools" not normally required, which
5424 ## configure does not have to check for (eg autoconf itself).
5425 ## In a CVS checkout on the other hand, the manuals are not included.
5426 ## So makeinfo is a requirement to build from CVS, and configure
5427 ## should test for it as it does for any other build requirement.
5428 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5429 ## with pre-built manuals, from a CVS checkout.
5430 if test "$MAKEINFO" = "no"; then
5431 if test "x${with_makeinfo}" = "xno"; then
5432 MAKEINFO=off
5433 elif ! test -e $srcdir/info/emacs; then
5434 { { echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5435 source tree does not seem to have pre-built manuals in the \`info' directory.
5436 Either install a suitable version of makeinfo, or re-run configure
5437 with the \`--without-makeinfo' option to build without the manuals. " >&5
5438 echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5439 source tree does not seem to have pre-built manuals in the \`info' directory.
5440 Either install a suitable version of makeinfo, or re-run configure
5441 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5442 { (exit 1); exit 1; }; }
5447 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5448 then
5449 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5452 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5453 then
5454 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5458 late_LDFLAGS=$LDFLAGS
5459 if test "$GCC" = yes; then
5460 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5461 else
5462 LDFLAGS="$LDFLAGS -znocombreloc"
5465 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5466 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5467 cat >conftest.$ac_ext <<_ACEOF
5468 main(){return 0;}
5469 _ACEOF
5470 rm -f conftest.$ac_objext conftest$ac_exeext
5471 if { (ac_try="$ac_link"
5472 case "(($ac_try" in
5473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5474 *) ac_try_echo=$ac_try;;
5475 esac
5476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5477 (eval "$ac_link") 2>conftest.er1
5478 ac_status=$?
5479 grep -v '^ *+' conftest.er1 >conftest.err
5480 rm -f conftest.er1
5481 cat conftest.err >&5
5482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483 (exit $ac_status); } && {
5484 test -z "$ac_c_werror_flag" ||
5485 test ! -s conftest.err
5486 } && test -s conftest$ac_exeext &&
5487 $as_test_x conftest$ac_exeext; then
5488 { echo "$as_me:$LINENO: result: yes" >&5
5489 echo "${ECHO_T}yes" >&6; }
5490 else
5491 echo "$as_me: failed program was:" >&5
5492 sed 's/^/| /' conftest.$ac_ext >&5
5494 LDFLAGS=$late_LDFLAGS
5495 { echo "$as_me:$LINENO: result: no" >&5
5496 echo "${ECHO_T}no" >&6; }
5499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5500 conftest$ac_exeext conftest.$ac_ext
5502 #### Extract some information from the operating system and machine files.
5504 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5505 - which libraries the lib-src programs will want, and
5506 - whether the GNU malloc routines are usable..." >&5
5507 echo "$as_me: checking the machine- and system-dependent files to find out
5508 - which libraries the lib-src programs will want, and
5509 - whether the GNU malloc routines are usable..." >&6;}
5511 ### First figure out CFLAGS (which we use for running the compiler here)
5512 ### and REAL_CFLAGS (which we use for real compilation).
5513 ### The two are the same except on a few systems, where they are made
5514 ### different to work around various lossages. For example,
5515 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5516 ### as implying static linking.
5518 ### If the CFLAGS env var is specified, we use that value
5519 ### instead of the default.
5521 ### It's not important that this name contain the PID; you can't run
5522 ### two configures in the same directory and have anything work
5523 ### anyway.
5524 tempcname="conftest.c"
5526 echo '
5527 #include "'${srcdir}'/src/'${opsysfile}'"
5528 #include "'${srcdir}'/src/'${machfile}'"
5529 #ifndef LIBS_MACHINE
5530 #define LIBS_MACHINE
5531 #endif
5532 #ifndef LIBS_SYSTEM
5533 #define LIBS_SYSTEM
5534 #endif
5535 #ifndef C_SWITCH_SYSTEM
5536 #define C_SWITCH_SYSTEM
5537 #endif
5538 #ifndef C_SWITCH_MACHINE
5539 #define C_SWITCH_MACHINE
5540 #endif
5541 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5542 configure___ c_switch_system=C_SWITCH_SYSTEM
5543 configure___ c_switch_machine=C_SWITCH_MACHINE
5545 #ifndef LIB_X11_LIB
5546 #define LIB_X11_LIB -lX11
5547 #endif
5549 #ifndef LIBX11_SYSTEM
5550 #define LIBX11_SYSTEM
5551 #endif
5552 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5554 #ifdef UNEXEC
5555 configure___ unexec=UNEXEC
5556 #else
5557 configure___ unexec=unexec.o
5558 #endif
5560 #ifdef SYSTEM_MALLOC
5561 configure___ system_malloc=yes
5562 #else
5563 configure___ system_malloc=no
5564 #endif
5566 #ifdef USE_MMAP_FOR_BUFFERS
5567 configure___ use_mmap_for_buffers=yes
5568 #else
5569 configure___ use_mmap_for_buffers=no
5570 #endif
5572 #ifndef C_DEBUG_SWITCH
5573 #define C_DEBUG_SWITCH -g
5574 #endif
5576 #ifndef C_OPTIMIZE_SWITCH
5577 #ifdef __GNUC__
5578 #define C_OPTIMIZE_SWITCH -O2
5579 #else
5580 #define C_OPTIMIZE_SWITCH -O
5581 #endif
5582 #endif
5584 #ifndef C_WARNINGS_SWITCH
5585 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5586 #endif
5588 #ifndef LD_SWITCH_MACHINE
5589 #define LD_SWITCH_MACHINE
5590 #endif
5592 #ifndef LD_SWITCH_SYSTEM
5593 #define LD_SWITCH_SYSTEM
5594 #endif
5596 #ifndef LD_SWITCH_X_SITE_AUX
5597 #define LD_SWITCH_X_SITE_AUX
5598 #endif
5600 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5601 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5603 #ifdef THIS_IS_CONFIGURE
5605 /* Get the CFLAGS for tests in configure. */
5606 #ifdef __GNUC__
5607 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5608 #else
5609 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5610 #endif
5612 #else /* not THIS_IS_CONFIGURE */
5614 /* Get the CFLAGS for real compilation. */
5615 #ifdef __GNUC__
5616 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5617 #else
5618 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5619 #endif
5621 #endif /* not THIS_IS_CONFIGURE */
5622 ' > ${tempcname}
5624 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5626 # The value of CPP is a quoted variable reference, so we need to do this
5627 # to get its actual value...
5628 CPP=`eval "echo $CPP"`
5629 eval `${CPP} -Isrc ${tempcname} \
5630 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5631 if test "x$SPECIFIED_CFLAGS" = x; then
5632 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5633 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5634 else
5635 REAL_CFLAGS="$CFLAGS"
5637 rm ${tempcname}
5639 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5641 ### Make sure subsequent tests use flags consistent with the build flags.
5643 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5644 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5645 else
5646 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5651 # Check whether --enable-largefile was given.
5652 if test "${enable_largefile+set}" = set; then
5653 enableval=$enable_largefile;
5656 if test "$enable_largefile" != no; then
5658 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5659 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5660 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5661 echo $ECHO_N "(cached) $ECHO_C" >&6
5662 else
5663 ac_cv_sys_largefile_CC=no
5664 if test "$GCC" != yes; then
5665 ac_save_CC=$CC
5666 while :; do
5667 # IRIX 6.2 and later do not support large files by default,
5668 # so use the C compiler's -n32 option if that helps.
5669 cat >conftest.$ac_ext <<_ACEOF
5670 /* confdefs.h. */
5671 _ACEOF
5672 cat confdefs.h >>conftest.$ac_ext
5673 cat >>conftest.$ac_ext <<_ACEOF
5674 /* end confdefs.h. */
5675 #include <sys/types.h>
5676 /* Check that off_t can represent 2**63 - 1 correctly.
5677 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5678 since some C++ compilers masquerading as C compilers
5679 incorrectly reject 9223372036854775807. */
5680 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5681 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5682 && LARGE_OFF_T % 2147483647 == 1)
5683 ? 1 : -1];
5685 main ()
5689 return 0;
5691 _ACEOF
5692 rm -f conftest.$ac_objext
5693 if { (ac_try="$ac_compile"
5694 case "(($ac_try" in
5695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5696 *) ac_try_echo=$ac_try;;
5697 esac
5698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5699 (eval "$ac_compile") 2>conftest.er1
5700 ac_status=$?
5701 grep -v '^ *+' conftest.er1 >conftest.err
5702 rm -f conftest.er1
5703 cat conftest.err >&5
5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); } && {
5706 test -z "$ac_c_werror_flag" ||
5707 test ! -s conftest.err
5708 } && test -s conftest.$ac_objext; then
5709 break
5710 else
5711 echo "$as_me: failed program was:" >&5
5712 sed 's/^/| /' conftest.$ac_ext >&5
5717 rm -f core conftest.err conftest.$ac_objext
5718 CC="$CC -n32"
5719 rm -f conftest.$ac_objext
5720 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
5727 ac_status=$?
5728 grep -v '^ *+' conftest.er1 >conftest.err
5729 rm -f conftest.er1
5730 cat conftest.err >&5
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); } && {
5733 test -z "$ac_c_werror_flag" ||
5734 test ! -s conftest.err
5735 } && test -s conftest.$ac_objext; then
5736 ac_cv_sys_largefile_CC=' -n32'; break
5737 else
5738 echo "$as_me: failed program was:" >&5
5739 sed 's/^/| /' conftest.$ac_ext >&5
5744 rm -f core conftest.err conftest.$ac_objext
5745 break
5746 done
5747 CC=$ac_save_CC
5748 rm -f conftest.$ac_ext
5751 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5752 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5753 if test "$ac_cv_sys_largefile_CC" != no; then
5754 CC=$CC$ac_cv_sys_largefile_CC
5757 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5758 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5759 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5760 echo $ECHO_N "(cached) $ECHO_C" >&6
5761 else
5762 while :; do
5763 cat >conftest.$ac_ext <<_ACEOF
5764 /* confdefs.h. */
5765 _ACEOF
5766 cat confdefs.h >>conftest.$ac_ext
5767 cat >>conftest.$ac_ext <<_ACEOF
5768 /* end confdefs.h. */
5769 #include <sys/types.h>
5770 /* Check that off_t can represent 2**63 - 1 correctly.
5771 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5772 since some C++ compilers masquerading as C compilers
5773 incorrectly reject 9223372036854775807. */
5774 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5775 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5776 && LARGE_OFF_T % 2147483647 == 1)
5777 ? 1 : -1];
5779 main ()
5783 return 0;
5785 _ACEOF
5786 rm -f conftest.$ac_objext
5787 if { (ac_try="$ac_compile"
5788 case "(($ac_try" in
5789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5790 *) ac_try_echo=$ac_try;;
5791 esac
5792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5793 (eval "$ac_compile") 2>conftest.er1
5794 ac_status=$?
5795 grep -v '^ *+' conftest.er1 >conftest.err
5796 rm -f conftest.er1
5797 cat conftest.err >&5
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); } && {
5800 test -z "$ac_c_werror_flag" ||
5801 test ! -s conftest.err
5802 } && test -s conftest.$ac_objext; then
5803 ac_cv_sys_file_offset_bits=no; break
5804 else
5805 echo "$as_me: failed program was:" >&5
5806 sed 's/^/| /' conftest.$ac_ext >&5
5811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5812 cat >conftest.$ac_ext <<_ACEOF
5813 /* confdefs.h. */
5814 _ACEOF
5815 cat confdefs.h >>conftest.$ac_ext
5816 cat >>conftest.$ac_ext <<_ACEOF
5817 /* end confdefs.h. */
5818 #define _FILE_OFFSET_BITS 64
5819 #include <sys/types.h>
5820 /* Check that off_t can represent 2**63 - 1 correctly.
5821 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5822 since some C++ compilers masquerading as C compilers
5823 incorrectly reject 9223372036854775807. */
5824 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5825 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5826 && LARGE_OFF_T % 2147483647 == 1)
5827 ? 1 : -1];
5829 main ()
5833 return 0;
5835 _ACEOF
5836 rm -f conftest.$ac_objext
5837 if { (ac_try="$ac_compile"
5838 case "(($ac_try" in
5839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5840 *) ac_try_echo=$ac_try;;
5841 esac
5842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5843 (eval "$ac_compile") 2>conftest.er1
5844 ac_status=$?
5845 grep -v '^ *+' conftest.er1 >conftest.err
5846 rm -f conftest.er1
5847 cat conftest.err >&5
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); } && {
5850 test -z "$ac_c_werror_flag" ||
5851 test ! -s conftest.err
5852 } && test -s conftest.$ac_objext; then
5853 ac_cv_sys_file_offset_bits=64; break
5854 else
5855 echo "$as_me: failed program was:" >&5
5856 sed 's/^/| /' conftest.$ac_ext >&5
5861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5862 ac_cv_sys_file_offset_bits=unknown
5863 break
5864 done
5866 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5867 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5868 case $ac_cv_sys_file_offset_bits in #(
5869 no | unknown) ;;
5871 cat >>confdefs.h <<_ACEOF
5872 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5873 _ACEOF
5875 esac
5876 rm -f conftest*
5877 if test $ac_cv_sys_file_offset_bits = unknown; then
5878 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5879 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5880 if test "${ac_cv_sys_large_files+set}" = set; then
5881 echo $ECHO_N "(cached) $ECHO_C" >&6
5882 else
5883 while :; do
5884 cat >conftest.$ac_ext <<_ACEOF
5885 /* confdefs.h. */
5886 _ACEOF
5887 cat confdefs.h >>conftest.$ac_ext
5888 cat >>conftest.$ac_ext <<_ACEOF
5889 /* end confdefs.h. */
5890 #include <sys/types.h>
5891 /* Check that off_t can represent 2**63 - 1 correctly.
5892 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5893 since some C++ compilers masquerading as C compilers
5894 incorrectly reject 9223372036854775807. */
5895 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5896 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5897 && LARGE_OFF_T % 2147483647 == 1)
5898 ? 1 : -1];
5900 main ()
5904 return 0;
5906 _ACEOF
5907 rm -f conftest.$ac_objext
5908 if { (ac_try="$ac_compile"
5909 case "(($ac_try" in
5910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5911 *) ac_try_echo=$ac_try;;
5912 esac
5913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5914 (eval "$ac_compile") 2>conftest.er1
5915 ac_status=$?
5916 grep -v '^ *+' conftest.er1 >conftest.err
5917 rm -f conftest.er1
5918 cat conftest.err >&5
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); } && {
5921 test -z "$ac_c_werror_flag" ||
5922 test ! -s conftest.err
5923 } && test -s conftest.$ac_objext; then
5924 ac_cv_sys_large_files=no; break
5925 else
5926 echo "$as_me: failed program was:" >&5
5927 sed 's/^/| /' conftest.$ac_ext >&5
5932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5933 cat >conftest.$ac_ext <<_ACEOF
5934 /* confdefs.h. */
5935 _ACEOF
5936 cat confdefs.h >>conftest.$ac_ext
5937 cat >>conftest.$ac_ext <<_ACEOF
5938 /* end confdefs.h. */
5939 #define _LARGE_FILES 1
5940 #include <sys/types.h>
5941 /* Check that off_t can represent 2**63 - 1 correctly.
5942 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5943 since some C++ compilers masquerading as C compilers
5944 incorrectly reject 9223372036854775807. */
5945 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5946 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5947 && LARGE_OFF_T % 2147483647 == 1)
5948 ? 1 : -1];
5950 main ()
5954 return 0;
5956 _ACEOF
5957 rm -f conftest.$ac_objext
5958 if { (ac_try="$ac_compile"
5959 case "(($ac_try" in
5960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5961 *) ac_try_echo=$ac_try;;
5962 esac
5963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5964 (eval "$ac_compile") 2>conftest.er1
5965 ac_status=$?
5966 grep -v '^ *+' conftest.er1 >conftest.err
5967 rm -f conftest.er1
5968 cat conftest.err >&5
5969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970 (exit $ac_status); } && {
5971 test -z "$ac_c_werror_flag" ||
5972 test ! -s conftest.err
5973 } && test -s conftest.$ac_objext; then
5974 ac_cv_sys_large_files=1; break
5975 else
5976 echo "$as_me: failed program was:" >&5
5977 sed 's/^/| /' conftest.$ac_ext >&5
5982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5983 ac_cv_sys_large_files=unknown
5984 break
5985 done
5987 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5988 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5989 case $ac_cv_sys_large_files in #(
5990 no | unknown) ;;
5992 cat >>confdefs.h <<_ACEOF
5993 #define _LARGE_FILES $ac_cv_sys_large_files
5994 _ACEOF
5996 esac
5997 rm -f conftest*
6003 ### The standard library on x86-64 and s390x GNU/Linux distributions can
6004 ### be located in either /usr/lib64 or /usr/lib.
6005 ### In some rare cases, /usr/lib64 exists but does not contain the
6006 ### relevant files (bug#1287). Hence test for crtn.o.
6007 case "${canonical}" in
6008 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
6009 if test -e /usr/lib64/crtn.o; then
6011 cat >>confdefs.h <<\_ACEOF
6012 #define HAVE_LIB64_DIR 1
6013 _ACEOF
6016 esac
6021 if test "${with_sound}" != "no"; then
6022 # Sound support for GNU/Linux and the free BSDs.
6026 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6028 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6030 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6033 echo $ECHO_N "(cached) $ECHO_C" >&6
6035 ac_res=`eval echo '${'$as_ac_Header'}'`
6036 { echo "$as_me:$LINENO: result: $ac_res" >&5
6037 echo "${ECHO_T}$ac_res" >&6; }
6038 else
6039 # Is the header compilable?
6040 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6041 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6042 cat >conftest.$ac_ext <<_ACEOF
6043 /* confdefs.h. */
6044 _ACEOF
6045 cat confdefs.h >>conftest.$ac_ext
6046 cat >>conftest.$ac_ext <<_ACEOF
6047 /* end confdefs.h. */
6048 $ac_includes_default
6049 #include <$ac_header>
6050 _ACEOF
6051 rm -f conftest.$ac_objext
6052 if { (ac_try="$ac_compile"
6053 case "(($ac_try" in
6054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6055 *) ac_try_echo=$ac_try;;
6056 esac
6057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6058 (eval "$ac_compile") 2>conftest.er1
6059 ac_status=$?
6060 grep -v '^ *+' conftest.er1 >conftest.err
6061 rm -f conftest.er1
6062 cat conftest.err >&5
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); } && {
6065 test -z "$ac_c_werror_flag" ||
6066 test ! -s conftest.err
6067 } && test -s conftest.$ac_objext; then
6068 ac_header_compiler=yes
6069 else
6070 echo "$as_me: failed program was:" >&5
6071 sed 's/^/| /' conftest.$ac_ext >&5
6073 ac_header_compiler=no
6076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6077 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6078 echo "${ECHO_T}$ac_header_compiler" >&6; }
6080 # Is the header present?
6081 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6082 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6083 cat >conftest.$ac_ext <<_ACEOF
6084 /* confdefs.h. */
6085 _ACEOF
6086 cat confdefs.h >>conftest.$ac_ext
6087 cat >>conftest.$ac_ext <<_ACEOF
6088 /* end confdefs.h. */
6089 #include <$ac_header>
6090 _ACEOF
6091 if { (ac_try="$ac_cpp conftest.$ac_ext"
6092 case "(($ac_try" in
6093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6094 *) ac_try_echo=$ac_try;;
6095 esac
6096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6098 ac_status=$?
6099 grep -v '^ *+' conftest.er1 >conftest.err
6100 rm -f conftest.er1
6101 cat conftest.err >&5
6102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103 (exit $ac_status); } >/dev/null && {
6104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6105 test ! -s conftest.err
6106 }; then
6107 ac_header_preproc=yes
6108 else
6109 echo "$as_me: failed program was:" >&5
6110 sed 's/^/| /' conftest.$ac_ext >&5
6112 ac_header_preproc=no
6115 rm -f conftest.err conftest.$ac_ext
6116 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6117 echo "${ECHO_T}$ac_header_preproc" >&6; }
6119 # So? What about this header?
6120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6121 yes:no: )
6122 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6123 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6125 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6126 ac_header_preproc=yes
6128 no:yes:* )
6129 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6130 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6131 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6132 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6133 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6134 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6135 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6136 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6138 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6139 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6140 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6143 esac
6144 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6147 echo $ECHO_N "(cached) $ECHO_C" >&6
6148 else
6149 eval "$as_ac_Header=\$ac_header_preproc"
6151 ac_res=`eval echo '${'$as_ac_Header'}'`
6152 { echo "$as_me:$LINENO: result: $ac_res" >&5
6153 echo "${ECHO_T}$ac_res" >&6; }
6156 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6157 cat >>confdefs.h <<_ACEOF
6158 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6159 _ACEOF
6163 done
6165 # Emulation library used on NetBSD.
6166 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6167 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6168 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6169 echo $ECHO_N "(cached) $ECHO_C" >&6
6170 else
6171 ac_check_lib_save_LIBS=$LIBS
6172 LIBS="-lossaudio $LIBS"
6173 cat >conftest.$ac_ext <<_ACEOF
6174 /* confdefs.h. */
6175 _ACEOF
6176 cat confdefs.h >>conftest.$ac_ext
6177 cat >>conftest.$ac_ext <<_ACEOF
6178 /* end confdefs.h. */
6180 /* Override any GCC internal prototype to avoid an error.
6181 Use char because int might match the return type of a GCC
6182 builtin and then its argument prototype would still apply. */
6183 #ifdef __cplusplus
6184 extern "C"
6185 #endif
6186 char _oss_ioctl ();
6188 main ()
6190 return _oss_ioctl ();
6192 return 0;
6194 _ACEOF
6195 rm -f conftest.$ac_objext conftest$ac_exeext
6196 if { (ac_try="$ac_link"
6197 case "(($ac_try" in
6198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6199 *) ac_try_echo=$ac_try;;
6200 esac
6201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6202 (eval "$ac_link") 2>conftest.er1
6203 ac_status=$?
6204 grep -v '^ *+' conftest.er1 >conftest.err
6205 rm -f conftest.er1
6206 cat conftest.err >&5
6207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208 (exit $ac_status); } && {
6209 test -z "$ac_c_werror_flag" ||
6210 test ! -s conftest.err
6211 } && test -s conftest$ac_exeext &&
6212 $as_test_x conftest$ac_exeext; then
6213 ac_cv_lib_ossaudio__oss_ioctl=yes
6214 else
6215 echo "$as_me: failed program was:" >&5
6216 sed 's/^/| /' conftest.$ac_ext >&5
6218 ac_cv_lib_ossaudio__oss_ioctl=no
6221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6222 conftest$ac_exeext conftest.$ac_ext
6223 LIBS=$ac_check_lib_save_LIBS
6225 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6226 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6227 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6228 LIBSOUND=-lossaudio
6229 else
6230 LIBSOUND=
6235 ALSA_REQUIRED=1.0.0
6236 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6238 succeeded=no
6240 # Extract the first word of "pkg-config", so it can be a program name with args.
6241 set dummy pkg-config; ac_word=$2
6242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6244 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6245 echo $ECHO_N "(cached) $ECHO_C" >&6
6246 else
6247 case $PKG_CONFIG in
6248 [\\/]* | ?:[\\/]*)
6249 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6253 for as_dir in $PATH
6255 IFS=$as_save_IFS
6256 test -z "$as_dir" && as_dir=.
6257 for ac_exec_ext in '' $ac_executable_extensions; do
6258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6259 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6261 break 2
6263 done
6264 done
6265 IFS=$as_save_IFS
6267 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6269 esac
6271 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6272 if test -n "$PKG_CONFIG"; then
6273 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6274 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6275 else
6276 { echo "$as_me:$LINENO: result: no" >&5
6277 echo "${ECHO_T}no" >&6; }
6282 if test "$PKG_CONFIG" = "no" ; then
6283 HAVE_ALSA=no
6284 else
6285 PKG_CONFIG_MIN_VERSION=0.9.0
6286 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6287 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6288 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6290 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6291 { echo "$as_me:$LINENO: result: yes" >&5
6292 echo "${ECHO_T}yes" >&6; }
6293 succeeded=yes
6295 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6296 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6297 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6298 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6299 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6301 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6302 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6303 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6304 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6305 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6306 else
6307 { echo "$as_me:$LINENO: result: no" >&5
6308 echo "${ECHO_T}no" >&6; }
6309 ALSA_CFLAGS=""
6310 ALSA_LIBS=""
6311 ## If we have a custom action on failure, don't print errors, but
6312 ## do set a variable so people can do so.
6313 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6319 else
6320 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6321 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6325 if test $succeeded = yes; then
6326 HAVE_ALSA=yes
6327 else
6328 HAVE_ALSA=no
6331 if test $HAVE_ALSA = yes; then
6332 SAVE_CFLAGS="$CFLAGS"
6333 SAVE_LDFLAGS="$LDFLAGS"
6334 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6335 LDFLAGS="$ALSA_LIBS $LDFLAGS"
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 <asoundlib.h>
6344 main ()
6346 snd_lib_error_set_handler (0);
6348 return 0;
6350 _ACEOF
6351 rm -f conftest.$ac_objext
6352 if { (ac_try="$ac_compile"
6353 case "(($ac_try" in
6354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6355 *) ac_try_echo=$ac_try;;
6356 esac
6357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6358 (eval "$ac_compile") 2>conftest.er1
6359 ac_status=$?
6360 grep -v '^ *+' conftest.er1 >conftest.err
6361 rm -f conftest.er1
6362 cat conftest.err >&5
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); } && {
6365 test -z "$ac_c_werror_flag" ||
6366 test ! -s conftest.err
6367 } && test -s conftest.$ac_objext; then
6368 emacs_alsa_normal=yes
6369 else
6370 echo "$as_me: failed program was:" >&5
6371 sed 's/^/| /' conftest.$ac_ext >&5
6373 emacs_alsa_normal=no
6376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6377 if test "$emacs_alsa_normal" != yes; then
6378 cat >conftest.$ac_ext <<_ACEOF
6379 /* confdefs.h. */
6380 _ACEOF
6381 cat confdefs.h >>conftest.$ac_ext
6382 cat >>conftest.$ac_ext <<_ACEOF
6383 /* end confdefs.h. */
6384 #include <alsa/asoundlib.h>
6386 main ()
6388 snd_lib_error_set_handler (0);
6390 return 0;
6392 _ACEOF
6393 rm -f conftest.$ac_objext
6394 if { (ac_try="$ac_compile"
6395 case "(($ac_try" in
6396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6397 *) ac_try_echo=$ac_try;;
6398 esac
6399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6400 (eval "$ac_compile") 2>conftest.er1
6401 ac_status=$?
6402 grep -v '^ *+' conftest.er1 >conftest.err
6403 rm -f conftest.er1
6404 cat conftest.err >&5
6405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406 (exit $ac_status); } && {
6407 test -z "$ac_c_werror_flag" ||
6408 test ! -s conftest.err
6409 } && test -s conftest.$ac_objext; then
6410 emacs_alsa_subdir=yes
6411 else
6412 echo "$as_me: failed program was:" >&5
6413 sed 's/^/| /' conftest.$ac_ext >&5
6415 emacs_alsa_subdir=no
6418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6419 if test "$emacs_alsa_subdir" != yes; then
6420 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6421 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6422 { (exit 1); exit 1; }; }
6424 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6427 CFLAGS="$SAVE_CFLAGS"
6428 LDFLAGS="$SAVE_LDFLAGS"
6429 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6430 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6432 cat >>confdefs.h <<\_ACEOF
6433 #define HAVE_ALSA 1
6434 _ACEOF
6465 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6466 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6467 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6468 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6469 sys/utsname.h pwd.h
6471 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6473 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6476 echo $ECHO_N "(cached) $ECHO_C" >&6
6478 ac_res=`eval echo '${'$as_ac_Header'}'`
6479 { echo "$as_me:$LINENO: result: $ac_res" >&5
6480 echo "${ECHO_T}$ac_res" >&6; }
6481 else
6482 # Is the header compilable?
6483 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6484 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6485 cat >conftest.$ac_ext <<_ACEOF
6486 /* confdefs.h. */
6487 _ACEOF
6488 cat confdefs.h >>conftest.$ac_ext
6489 cat >>conftest.$ac_ext <<_ACEOF
6490 /* end confdefs.h. */
6491 $ac_includes_default
6492 #include <$ac_header>
6493 _ACEOF
6494 rm -f conftest.$ac_objext
6495 if { (ac_try="$ac_compile"
6496 case "(($ac_try" in
6497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6498 *) ac_try_echo=$ac_try;;
6499 esac
6500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6501 (eval "$ac_compile") 2>conftest.er1
6502 ac_status=$?
6503 grep -v '^ *+' conftest.er1 >conftest.err
6504 rm -f conftest.er1
6505 cat conftest.err >&5
6506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507 (exit $ac_status); } && {
6508 test -z "$ac_c_werror_flag" ||
6509 test ! -s conftest.err
6510 } && test -s conftest.$ac_objext; then
6511 ac_header_compiler=yes
6512 else
6513 echo "$as_me: failed program was:" >&5
6514 sed 's/^/| /' conftest.$ac_ext >&5
6516 ac_header_compiler=no
6519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6520 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6521 echo "${ECHO_T}$ac_header_compiler" >&6; }
6523 # Is the header present?
6524 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6525 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6526 cat >conftest.$ac_ext <<_ACEOF
6527 /* confdefs.h. */
6528 _ACEOF
6529 cat confdefs.h >>conftest.$ac_ext
6530 cat >>conftest.$ac_ext <<_ACEOF
6531 /* end confdefs.h. */
6532 #include <$ac_header>
6533 _ACEOF
6534 if { (ac_try="$ac_cpp conftest.$ac_ext"
6535 case "(($ac_try" in
6536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6537 *) ac_try_echo=$ac_try;;
6538 esac
6539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6541 ac_status=$?
6542 grep -v '^ *+' conftest.er1 >conftest.err
6543 rm -f conftest.er1
6544 cat conftest.err >&5
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546 (exit $ac_status); } >/dev/null && {
6547 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6548 test ! -s conftest.err
6549 }; then
6550 ac_header_preproc=yes
6551 else
6552 echo "$as_me: failed program was:" >&5
6553 sed 's/^/| /' conftest.$ac_ext >&5
6555 ac_header_preproc=no
6558 rm -f conftest.err conftest.$ac_ext
6559 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6560 echo "${ECHO_T}$ac_header_preproc" >&6; }
6562 # So? What about this header?
6563 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6564 yes:no: )
6565 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6566 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6568 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6569 ac_header_preproc=yes
6571 no:yes:* )
6572 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6573 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6574 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6575 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6576 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6577 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6578 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6579 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6581 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6582 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6583 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6586 esac
6587 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6589 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6590 echo $ECHO_N "(cached) $ECHO_C" >&6
6591 else
6592 eval "$as_ac_Header=\$ac_header_preproc"
6594 ac_res=`eval echo '${'$as_ac_Header'}'`
6595 { echo "$as_me:$LINENO: result: $ac_res" >&5
6596 echo "${ECHO_T}$ac_res" >&6; }
6599 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6600 cat >>confdefs.h <<_ACEOF
6601 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6602 _ACEOF
6606 done
6609 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6610 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6611 cat >conftest.$ac_ext <<_ACEOF
6612 /* confdefs.h. */
6613 _ACEOF
6614 cat confdefs.h >>conftest.$ac_ext
6615 cat >>conftest.$ac_ext <<_ACEOF
6616 /* end confdefs.h. */
6617 #include <sys/personality.h>
6619 main ()
6621 personality (PER_LINUX32)
6623 return 0;
6625 _ACEOF
6626 rm -f conftest.$ac_objext
6627 if { (ac_try="$ac_compile"
6628 case "(($ac_try" in
6629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6630 *) ac_try_echo=$ac_try;;
6631 esac
6632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6633 (eval "$ac_compile") 2>conftest.er1
6634 ac_status=$?
6635 grep -v '^ *+' conftest.er1 >conftest.err
6636 rm -f conftest.er1
6637 cat conftest.err >&5
6638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639 (exit $ac_status); } && {
6640 test -z "$ac_c_werror_flag" ||
6641 test ! -s conftest.err
6642 } && test -s conftest.$ac_objext; then
6643 emacs_cv_personality_linux32=yes
6644 else
6645 echo "$as_me: failed program was:" >&5
6646 sed 's/^/| /' conftest.$ac_ext >&5
6648 emacs_cv_personality_linux32=no
6651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6652 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6653 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6655 if test $emacs_cv_personality_linux32 = yes; then
6657 cat >>confdefs.h <<\_ACEOF
6658 #define HAVE_PERSONALITY_LINUX32 1
6659 _ACEOF
6664 for ac_header in term.h
6666 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6667 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6668 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6670 echo $ECHO_N "(cached) $ECHO_C" >&6
6671 else
6672 cat >conftest.$ac_ext <<_ACEOF
6673 /* confdefs.h. */
6674 _ACEOF
6675 cat confdefs.h >>conftest.$ac_ext
6676 cat >>conftest.$ac_ext <<_ACEOF
6677 /* end confdefs.h. */
6678 #include <$ac_header>
6679 _ACEOF
6680 if { (ac_try="$ac_cpp conftest.$ac_ext"
6681 case "(($ac_try" in
6682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6683 *) ac_try_echo=$ac_try;;
6684 esac
6685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6687 ac_status=$?
6688 grep -v '^ *+' conftest.er1 >conftest.err
6689 rm -f conftest.er1
6690 cat conftest.err >&5
6691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692 (exit $ac_status); } >/dev/null && {
6693 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6694 test ! -s conftest.err
6695 }; then
6696 eval "$as_ac_Header=yes"
6697 else
6698 echo "$as_me: failed program was:" >&5
6699 sed 's/^/| /' conftest.$ac_ext >&5
6701 eval "$as_ac_Header=no"
6704 rm -f conftest.err conftest.$ac_ext
6706 ac_res=`eval echo '${'$as_ac_Header'}'`
6707 { echo "$as_me:$LINENO: result: $ac_res" >&5
6708 echo "${ECHO_T}$ac_res" >&6; }
6709 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6710 cat >>confdefs.h <<_ACEOF
6711 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6712 _ACEOF
6716 done
6718 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6719 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6720 if test "${ac_cv_header_stdc+set}" = set; then
6721 echo $ECHO_N "(cached) $ECHO_C" >&6
6722 else
6723 cat >conftest.$ac_ext <<_ACEOF
6724 /* confdefs.h. */
6725 _ACEOF
6726 cat confdefs.h >>conftest.$ac_ext
6727 cat >>conftest.$ac_ext <<_ACEOF
6728 /* end confdefs.h. */
6729 #include <stdlib.h>
6730 #include <stdarg.h>
6731 #include <string.h>
6732 #include <float.h>
6735 main ()
6739 return 0;
6741 _ACEOF
6742 rm -f conftest.$ac_objext
6743 if { (ac_try="$ac_compile"
6744 case "(($ac_try" in
6745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6746 *) ac_try_echo=$ac_try;;
6747 esac
6748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6749 (eval "$ac_compile") 2>conftest.er1
6750 ac_status=$?
6751 grep -v '^ *+' conftest.er1 >conftest.err
6752 rm -f conftest.er1
6753 cat conftest.err >&5
6754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755 (exit $ac_status); } && {
6756 test -z "$ac_c_werror_flag" ||
6757 test ! -s conftest.err
6758 } && test -s conftest.$ac_objext; then
6759 ac_cv_header_stdc=yes
6760 else
6761 echo "$as_me: failed program was:" >&5
6762 sed 's/^/| /' conftest.$ac_ext >&5
6764 ac_cv_header_stdc=no
6767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6769 if test $ac_cv_header_stdc = yes; then
6770 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6771 cat >conftest.$ac_ext <<_ACEOF
6772 /* confdefs.h. */
6773 _ACEOF
6774 cat confdefs.h >>conftest.$ac_ext
6775 cat >>conftest.$ac_ext <<_ACEOF
6776 /* end confdefs.h. */
6777 #include <string.h>
6779 _ACEOF
6780 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6781 $EGREP "memchr" >/dev/null 2>&1; then
6783 else
6784 ac_cv_header_stdc=no
6786 rm -f conftest*
6790 if test $ac_cv_header_stdc = yes; then
6791 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6792 cat >conftest.$ac_ext <<_ACEOF
6793 /* confdefs.h. */
6794 _ACEOF
6795 cat confdefs.h >>conftest.$ac_ext
6796 cat >>conftest.$ac_ext <<_ACEOF
6797 /* end confdefs.h. */
6798 #include <stdlib.h>
6800 _ACEOF
6801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6802 $EGREP "free" >/dev/null 2>&1; then
6804 else
6805 ac_cv_header_stdc=no
6807 rm -f conftest*
6811 if test $ac_cv_header_stdc = yes; then
6812 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6813 if test "$cross_compiling" = yes; then
6815 else
6816 cat >conftest.$ac_ext <<_ACEOF
6817 /* confdefs.h. */
6818 _ACEOF
6819 cat confdefs.h >>conftest.$ac_ext
6820 cat >>conftest.$ac_ext <<_ACEOF
6821 /* end confdefs.h. */
6822 #include <ctype.h>
6823 #include <stdlib.h>
6824 #if ((' ' & 0x0FF) == 0x020)
6825 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6826 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6827 #else
6828 # define ISLOWER(c) \
6829 (('a' <= (c) && (c) <= 'i') \
6830 || ('j' <= (c) && (c) <= 'r') \
6831 || ('s' <= (c) && (c) <= 'z'))
6832 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6833 #endif
6835 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6837 main ()
6839 int i;
6840 for (i = 0; i < 256; i++)
6841 if (XOR (islower (i), ISLOWER (i))
6842 || toupper (i) != TOUPPER (i))
6843 return 2;
6844 return 0;
6846 _ACEOF
6847 rm -f conftest$ac_exeext
6848 if { (ac_try="$ac_link"
6849 case "(($ac_try" in
6850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6851 *) ac_try_echo=$ac_try;;
6852 esac
6853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6854 (eval "$ac_link") 2>&5
6855 ac_status=$?
6856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
6864 ac_status=$?
6865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866 (exit $ac_status); }; }; then
6868 else
6869 echo "$as_me: program exited with status $ac_status" >&5
6870 echo "$as_me: failed program was:" >&5
6871 sed 's/^/| /' conftest.$ac_ext >&5
6873 ( exit $ac_status )
6874 ac_cv_header_stdc=no
6876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6882 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6883 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6884 if test $ac_cv_header_stdc = yes; then
6886 cat >>confdefs.h <<\_ACEOF
6887 #define STDC_HEADERS 1
6888 _ACEOF
6892 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6893 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6894 if test "${ac_cv_header_time+set}" = set; then
6895 echo $ECHO_N "(cached) $ECHO_C" >&6
6896 else
6897 cat >conftest.$ac_ext <<_ACEOF
6898 /* confdefs.h. */
6899 _ACEOF
6900 cat confdefs.h >>conftest.$ac_ext
6901 cat >>conftest.$ac_ext <<_ACEOF
6902 /* end confdefs.h. */
6903 #include <sys/types.h>
6904 #include <sys/time.h>
6905 #include <time.h>
6908 main ()
6910 if ((struct tm *) 0)
6911 return 0;
6913 return 0;
6915 _ACEOF
6916 rm -f conftest.$ac_objext
6917 if { (ac_try="$ac_compile"
6918 case "(($ac_try" in
6919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6920 *) ac_try_echo=$ac_try;;
6921 esac
6922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6923 (eval "$ac_compile") 2>conftest.er1
6924 ac_status=$?
6925 grep -v '^ *+' conftest.er1 >conftest.err
6926 rm -f conftest.er1
6927 cat conftest.err >&5
6928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929 (exit $ac_status); } && {
6930 test -z "$ac_c_werror_flag" ||
6931 test ! -s conftest.err
6932 } && test -s conftest.$ac_objext; then
6933 ac_cv_header_time=yes
6934 else
6935 echo "$as_me: failed program was:" >&5
6936 sed 's/^/| /' conftest.$ac_ext >&5
6938 ac_cv_header_time=no
6941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6943 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6944 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6945 if test $ac_cv_header_time = yes; then
6947 cat >>confdefs.h <<\_ACEOF
6948 #define TIME_WITH_SYS_TIME 1
6949 _ACEOF
6953 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6954 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6955 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6956 echo $ECHO_N "(cached) $ECHO_C" >&6
6957 else
6958 cat >conftest.$ac_ext <<_ACEOF
6959 /* confdefs.h. */
6960 _ACEOF
6961 cat confdefs.h >>conftest.$ac_ext
6962 cat >>conftest.$ac_ext <<_ACEOF
6963 /* end confdefs.h. */
6964 $ac_includes_default
6966 main ()
6968 #ifndef sys_siglist
6969 (void) sys_siglist;
6970 #endif
6973 return 0;
6975 _ACEOF
6976 rm -f conftest.$ac_objext
6977 if { (ac_try="$ac_compile"
6978 case "(($ac_try" in
6979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6980 *) ac_try_echo=$ac_try;;
6981 esac
6982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6983 (eval "$ac_compile") 2>conftest.er1
6984 ac_status=$?
6985 grep -v '^ *+' conftest.er1 >conftest.err
6986 rm -f conftest.er1
6987 cat conftest.err >&5
6988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989 (exit $ac_status); } && {
6990 test -z "$ac_c_werror_flag" ||
6991 test ! -s conftest.err
6992 } && test -s conftest.$ac_objext; then
6993 ac_cv_have_decl_sys_siglist=yes
6994 else
6995 echo "$as_me: failed program was:" >&5
6996 sed 's/^/| /' conftest.$ac_ext >&5
6998 ac_cv_have_decl_sys_siglist=no
7001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7003 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7004 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7005 if test $ac_cv_have_decl_sys_siglist = yes; then
7007 cat >>confdefs.h <<_ACEOF
7008 #define HAVE_DECL_SYS_SIGLIST 1
7009 _ACEOF
7012 else
7013 cat >>confdefs.h <<_ACEOF
7014 #define HAVE_DECL_SYS_SIGLIST 0
7015 _ACEOF
7021 if test $ac_cv_have_decl_sys_siglist != yes; then
7022 # For Tru64, at least:
7023 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7024 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7025 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7026 echo $ECHO_N "(cached) $ECHO_C" >&6
7027 else
7028 cat >conftest.$ac_ext <<_ACEOF
7029 /* confdefs.h. */
7030 _ACEOF
7031 cat confdefs.h >>conftest.$ac_ext
7032 cat >>conftest.$ac_ext <<_ACEOF
7033 /* end confdefs.h. */
7034 $ac_includes_default
7036 main ()
7038 #ifndef __sys_siglist
7039 (void) __sys_siglist;
7040 #endif
7043 return 0;
7045 _ACEOF
7046 rm -f conftest.$ac_objext
7047 if { (ac_try="$ac_compile"
7048 case "(($ac_try" in
7049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7050 *) ac_try_echo=$ac_try;;
7051 esac
7052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7053 (eval "$ac_compile") 2>conftest.er1
7054 ac_status=$?
7055 grep -v '^ *+' conftest.er1 >conftest.err
7056 rm -f conftest.er1
7057 cat conftest.err >&5
7058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059 (exit $ac_status); } && {
7060 test -z "$ac_c_werror_flag" ||
7061 test ! -s conftest.err
7062 } && test -s conftest.$ac_objext; then
7063 ac_cv_have_decl___sys_siglist=yes
7064 else
7065 echo "$as_me: failed program was:" >&5
7066 sed 's/^/| /' conftest.$ac_ext >&5
7068 ac_cv_have_decl___sys_siglist=no
7071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7073 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7074 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7075 if test $ac_cv_have_decl___sys_siglist = yes; then
7077 cat >>confdefs.h <<_ACEOF
7078 #define HAVE_DECL___SYS_SIGLIST 1
7079 _ACEOF
7082 else
7083 cat >>confdefs.h <<_ACEOF
7084 #define HAVE_DECL___SYS_SIGLIST 0
7085 _ACEOF
7091 if test $ac_cv_have_decl___sys_siglist = yes; then
7093 cat >>confdefs.h <<\_ACEOF
7094 #define sys_siglist __sys_siglist
7095 _ACEOF
7099 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7100 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7101 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7102 echo $ECHO_N "(cached) $ECHO_C" >&6
7103 else
7104 cat >conftest.$ac_ext <<_ACEOF
7105 /* confdefs.h. */
7106 _ACEOF
7107 cat confdefs.h >>conftest.$ac_ext
7108 cat >>conftest.$ac_ext <<_ACEOF
7109 /* end confdefs.h. */
7110 #include <sys/types.h>
7111 #include <sys/wait.h>
7112 #ifndef WEXITSTATUS
7113 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7114 #endif
7115 #ifndef WIFEXITED
7116 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7117 #endif
7120 main ()
7122 int s;
7123 wait (&s);
7124 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7126 return 0;
7128 _ACEOF
7129 rm -f conftest.$ac_objext
7130 if { (ac_try="$ac_compile"
7131 case "(($ac_try" in
7132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7133 *) ac_try_echo=$ac_try;;
7134 esac
7135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7136 (eval "$ac_compile") 2>conftest.er1
7137 ac_status=$?
7138 grep -v '^ *+' conftest.er1 >conftest.err
7139 rm -f conftest.er1
7140 cat conftest.err >&5
7141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142 (exit $ac_status); } && {
7143 test -z "$ac_c_werror_flag" ||
7144 test ! -s conftest.err
7145 } && test -s conftest.$ac_objext; then
7146 ac_cv_header_sys_wait_h=yes
7147 else
7148 echo "$as_me: failed program was:" >&5
7149 sed 's/^/| /' conftest.$ac_ext >&5
7151 ac_cv_header_sys_wait_h=no
7154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7156 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7157 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7158 if test $ac_cv_header_sys_wait_h = yes; then
7160 cat >>confdefs.h <<\_ACEOF
7161 #define HAVE_SYS_WAIT_H 1
7162 _ACEOF
7167 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7168 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7169 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7170 echo $ECHO_N "(cached) $ECHO_C" >&6
7171 else
7172 cat >conftest.$ac_ext <<_ACEOF
7173 /* confdefs.h. */
7174 _ACEOF
7175 cat confdefs.h >>conftest.$ac_ext
7176 cat >>conftest.$ac_ext <<_ACEOF
7177 /* end confdefs.h. */
7178 #ifdef TIME_WITH_SYS_TIME
7179 #include <sys/time.h>
7180 #include <time.h>
7181 #else
7182 #ifdef HAVE_SYS_TIME_H
7183 #include <sys/time.h>
7184 #else
7185 #include <time.h>
7186 #endif
7187 #endif
7188 #ifdef HAVE_UTIME_H
7189 #include <utime.h>
7190 #endif
7192 main ()
7194 static struct utimbuf x; x.actime = x.modtime;
7196 return 0;
7198 _ACEOF
7199 rm -f conftest.$ac_objext
7200 if { (ac_try="$ac_compile"
7201 case "(($ac_try" in
7202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7203 *) ac_try_echo=$ac_try;;
7204 esac
7205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7206 (eval "$ac_compile") 2>conftest.er1
7207 ac_status=$?
7208 grep -v '^ *+' conftest.er1 >conftest.err
7209 rm -f conftest.er1
7210 cat conftest.err >&5
7211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212 (exit $ac_status); } && {
7213 test -z "$ac_c_werror_flag" ||
7214 test ! -s conftest.err
7215 } && test -s conftest.$ac_objext; then
7216 emacs_cv_struct_utimbuf=yes
7217 else
7218 echo "$as_me: failed program was:" >&5
7219 sed 's/^/| /' conftest.$ac_ext >&5
7221 emacs_cv_struct_utimbuf=no
7224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7226 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7227 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7228 if test $emacs_cv_struct_utimbuf = yes; then
7230 cat >>confdefs.h <<\_ACEOF
7231 #define HAVE_STRUCT_UTIMBUF 1
7232 _ACEOF
7236 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7237 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7238 if test "${ac_cv_type_signal+set}" = set; then
7239 echo $ECHO_N "(cached) $ECHO_C" >&6
7240 else
7241 cat >conftest.$ac_ext <<_ACEOF
7242 /* confdefs.h. */
7243 _ACEOF
7244 cat confdefs.h >>conftest.$ac_ext
7245 cat >>conftest.$ac_ext <<_ACEOF
7246 /* end confdefs.h. */
7247 #include <sys/types.h>
7248 #include <signal.h>
7251 main ()
7253 return *(signal (0, 0)) (0) == 1;
7255 return 0;
7257 _ACEOF
7258 rm -f conftest.$ac_objext
7259 if { (ac_try="$ac_compile"
7260 case "(($ac_try" in
7261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7262 *) ac_try_echo=$ac_try;;
7263 esac
7264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7265 (eval "$ac_compile") 2>conftest.er1
7266 ac_status=$?
7267 grep -v '^ *+' conftest.er1 >conftest.err
7268 rm -f conftest.er1
7269 cat conftest.err >&5
7270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); } && {
7272 test -z "$ac_c_werror_flag" ||
7273 test ! -s conftest.err
7274 } && test -s conftest.$ac_objext; then
7275 ac_cv_type_signal=int
7276 else
7277 echo "$as_me: failed program was:" >&5
7278 sed 's/^/| /' conftest.$ac_ext >&5
7280 ac_cv_type_signal=void
7283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7285 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7286 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7288 cat >>confdefs.h <<_ACEOF
7289 #define RETSIGTYPE $ac_cv_type_signal
7290 _ACEOF
7294 { echo "$as_me:$LINENO: checking for speed_t" >&5
7295 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7296 if test "${emacs_cv_speed_t+set}" = set; then
7297 echo $ECHO_N "(cached) $ECHO_C" >&6
7298 else
7299 cat >conftest.$ac_ext <<_ACEOF
7300 /* confdefs.h. */
7301 _ACEOF
7302 cat confdefs.h >>conftest.$ac_ext
7303 cat >>conftest.$ac_ext <<_ACEOF
7304 /* end confdefs.h. */
7305 #include <termios.h>
7307 main ()
7309 speed_t x = 1;
7311 return 0;
7313 _ACEOF
7314 rm -f conftest.$ac_objext
7315 if { (ac_try="$ac_compile"
7316 case "(($ac_try" in
7317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7318 *) ac_try_echo=$ac_try;;
7319 esac
7320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7321 (eval "$ac_compile") 2>conftest.er1
7322 ac_status=$?
7323 grep -v '^ *+' conftest.er1 >conftest.err
7324 rm -f conftest.er1
7325 cat conftest.err >&5
7326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327 (exit $ac_status); } && {
7328 test -z "$ac_c_werror_flag" ||
7329 test ! -s conftest.err
7330 } && test -s conftest.$ac_objext; then
7331 emacs_cv_speed_t=yes
7332 else
7333 echo "$as_me: failed program was:" >&5
7334 sed 's/^/| /' conftest.$ac_ext >&5
7336 emacs_cv_speed_t=no
7339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7341 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7342 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7343 if test $emacs_cv_speed_t = yes; then
7345 cat >>confdefs.h <<\_ACEOF
7346 #define HAVE_SPEED_T 1
7347 _ACEOF
7351 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7352 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7353 if test "${emacs_cv_struct_timeval+set}" = set; then
7354 echo $ECHO_N "(cached) $ECHO_C" >&6
7355 else
7356 cat >conftest.$ac_ext <<_ACEOF
7357 /* confdefs.h. */
7358 _ACEOF
7359 cat confdefs.h >>conftest.$ac_ext
7360 cat >>conftest.$ac_ext <<_ACEOF
7361 /* end confdefs.h. */
7362 #ifdef TIME_WITH_SYS_TIME
7363 #include <sys/time.h>
7364 #include <time.h>
7365 #else
7366 #ifdef HAVE_SYS_TIME_H
7367 #include <sys/time.h>
7368 #else
7369 #include <time.h>
7370 #endif
7371 #endif
7373 main ()
7375 static struct timeval x; x.tv_sec = x.tv_usec;
7377 return 0;
7379 _ACEOF
7380 rm -f conftest.$ac_objext
7381 if { (ac_try="$ac_compile"
7382 case "(($ac_try" in
7383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7384 *) ac_try_echo=$ac_try;;
7385 esac
7386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7387 (eval "$ac_compile") 2>conftest.er1
7388 ac_status=$?
7389 grep -v '^ *+' conftest.er1 >conftest.err
7390 rm -f conftest.er1
7391 cat conftest.err >&5
7392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393 (exit $ac_status); } && {
7394 test -z "$ac_c_werror_flag" ||
7395 test ! -s conftest.err
7396 } && test -s conftest.$ac_objext; then
7397 emacs_cv_struct_timeval=yes
7398 else
7399 echo "$as_me: failed program was:" >&5
7400 sed 's/^/| /' conftest.$ac_ext >&5
7402 emacs_cv_struct_timeval=no
7405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7407 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7408 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7409 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7410 if test $emacs_cv_struct_timeval = yes; then
7412 cat >>confdefs.h <<\_ACEOF
7413 #define HAVE_TIMEVAL 1
7414 _ACEOF
7418 { echo "$as_me:$LINENO: checking for struct exception" >&5
7419 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7420 if test "${emacs_cv_struct_exception+set}" = set; then
7421 echo $ECHO_N "(cached) $ECHO_C" >&6
7422 else
7423 cat >conftest.$ac_ext <<_ACEOF
7424 /* confdefs.h. */
7425 _ACEOF
7426 cat confdefs.h >>conftest.$ac_ext
7427 cat >>conftest.$ac_ext <<_ACEOF
7428 /* end confdefs.h. */
7429 #include <math.h>
7431 main ()
7433 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7435 return 0;
7437 _ACEOF
7438 rm -f conftest.$ac_objext
7439 if { (ac_try="$ac_compile"
7440 case "(($ac_try" in
7441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7442 *) ac_try_echo=$ac_try;;
7443 esac
7444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7445 (eval "$ac_compile") 2>conftest.er1
7446 ac_status=$?
7447 grep -v '^ *+' conftest.er1 >conftest.err
7448 rm -f conftest.er1
7449 cat conftest.err >&5
7450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 (exit $ac_status); } && {
7452 test -z "$ac_c_werror_flag" ||
7453 test ! -s conftest.err
7454 } && test -s conftest.$ac_objext; then
7455 emacs_cv_struct_exception=yes
7456 else
7457 echo "$as_me: failed program was:" >&5
7458 sed 's/^/| /' conftest.$ac_ext >&5
7460 emacs_cv_struct_exception=no
7463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7465 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7466 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7467 HAVE_EXCEPTION=$emacs_cv_struct_exception
7468 if test $emacs_cv_struct_exception != yes; then
7470 cat >>confdefs.h <<\_ACEOF
7471 #define NO_MATHERR 1
7472 _ACEOF
7477 for ac_header in sys/socket.h
7479 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7481 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7483 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7484 echo $ECHO_N "(cached) $ECHO_C" >&6
7486 ac_res=`eval echo '${'$as_ac_Header'}'`
7487 { echo "$as_me:$LINENO: result: $ac_res" >&5
7488 echo "${ECHO_T}$ac_res" >&6; }
7489 else
7490 # Is the header compilable?
7491 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7492 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
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 $ac_includes_default
7500 #include <$ac_header>
7501 _ACEOF
7502 rm -f conftest.$ac_objext
7503 if { (ac_try="$ac_compile"
7504 case "(($ac_try" in
7505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7506 *) ac_try_echo=$ac_try;;
7507 esac
7508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7509 (eval "$ac_compile") 2>conftest.er1
7510 ac_status=$?
7511 grep -v '^ *+' conftest.er1 >conftest.err
7512 rm -f conftest.er1
7513 cat conftest.err >&5
7514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515 (exit $ac_status); } && {
7516 test -z "$ac_c_werror_flag" ||
7517 test ! -s conftest.err
7518 } && test -s conftest.$ac_objext; then
7519 ac_header_compiler=yes
7520 else
7521 echo "$as_me: failed program was:" >&5
7522 sed 's/^/| /' conftest.$ac_ext >&5
7524 ac_header_compiler=no
7527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7528 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7529 echo "${ECHO_T}$ac_header_compiler" >&6; }
7531 # Is the header present?
7532 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7533 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7534 cat >conftest.$ac_ext <<_ACEOF
7535 /* confdefs.h. */
7536 _ACEOF
7537 cat confdefs.h >>conftest.$ac_ext
7538 cat >>conftest.$ac_ext <<_ACEOF
7539 /* end confdefs.h. */
7540 #include <$ac_header>
7541 _ACEOF
7542 if { (ac_try="$ac_cpp conftest.$ac_ext"
7543 case "(($ac_try" in
7544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7545 *) ac_try_echo=$ac_try;;
7546 esac
7547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7548 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7549 ac_status=$?
7550 grep -v '^ *+' conftest.er1 >conftest.err
7551 rm -f conftest.er1
7552 cat conftest.err >&5
7553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554 (exit $ac_status); } >/dev/null && {
7555 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7556 test ! -s conftest.err
7557 }; then
7558 ac_header_preproc=yes
7559 else
7560 echo "$as_me: failed program was:" >&5
7561 sed 's/^/| /' conftest.$ac_ext >&5
7563 ac_header_preproc=no
7566 rm -f conftest.err conftest.$ac_ext
7567 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7568 echo "${ECHO_T}$ac_header_preproc" >&6; }
7570 # So? What about this header?
7571 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7572 yes:no: )
7573 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7574 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7575 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7576 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7577 ac_header_preproc=yes
7579 no:yes:* )
7580 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7581 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7582 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7583 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7584 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7585 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7586 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7587 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7588 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7589 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7590 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7591 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7594 esac
7595 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7598 echo $ECHO_N "(cached) $ECHO_C" >&6
7599 else
7600 eval "$as_ac_Header=\$ac_header_preproc"
7602 ac_res=`eval echo '${'$as_ac_Header'}'`
7603 { echo "$as_me:$LINENO: result: $ac_res" >&5
7604 echo "${ECHO_T}$ac_res" >&6; }
7607 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7608 cat >>confdefs.h <<_ACEOF
7609 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7610 _ACEOF
7614 done
7617 for ac_header in net/if.h
7619 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7620 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7623 echo $ECHO_N "(cached) $ECHO_C" >&6
7624 else
7625 cat >conftest.$ac_ext <<_ACEOF
7626 /* confdefs.h. */
7627 _ACEOF
7628 cat confdefs.h >>conftest.$ac_ext
7629 cat >>conftest.$ac_ext <<_ACEOF
7630 /* end confdefs.h. */
7631 $ac_includes_default
7632 #if HAVE_SYS_SOCKET_H
7633 #include <sys/socket.h>
7634 #endif
7636 #include <$ac_header>
7637 _ACEOF
7638 rm -f conftest.$ac_objext
7639 if { (ac_try="$ac_compile"
7640 case "(($ac_try" in
7641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7642 *) ac_try_echo=$ac_try;;
7643 esac
7644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7645 (eval "$ac_compile") 2>conftest.er1
7646 ac_status=$?
7647 grep -v '^ *+' conftest.er1 >conftest.err
7648 rm -f conftest.er1
7649 cat conftest.err >&5
7650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651 (exit $ac_status); } && {
7652 test -z "$ac_c_werror_flag" ||
7653 test ! -s conftest.err
7654 } && test -s conftest.$ac_objext; then
7655 eval "$as_ac_Header=yes"
7656 else
7657 echo "$as_me: failed program was:" >&5
7658 sed 's/^/| /' conftest.$ac_ext >&5
7660 eval "$as_ac_Header=no"
7663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7665 ac_res=`eval echo '${'$as_ac_Header'}'`
7666 { echo "$as_me:$LINENO: result: $ac_res" >&5
7667 echo "${ECHO_T}$ac_res" >&6; }
7668 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7669 cat >>confdefs.h <<_ACEOF
7670 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7671 _ACEOF
7675 done
7678 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7679 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7680 if test "${ac_cv_struct_tm+set}" = set; then
7681 echo $ECHO_N "(cached) $ECHO_C" >&6
7682 else
7683 cat >conftest.$ac_ext <<_ACEOF
7684 /* confdefs.h. */
7685 _ACEOF
7686 cat confdefs.h >>conftest.$ac_ext
7687 cat >>conftest.$ac_ext <<_ACEOF
7688 /* end confdefs.h. */
7689 #include <sys/types.h>
7690 #include <time.h>
7693 main ()
7695 struct tm tm;
7696 int *p = &tm.tm_sec;
7697 return !p;
7699 return 0;
7701 _ACEOF
7702 rm -f conftest.$ac_objext
7703 if { (ac_try="$ac_compile"
7704 case "(($ac_try" in
7705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7706 *) ac_try_echo=$ac_try;;
7707 esac
7708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7709 (eval "$ac_compile") 2>conftest.er1
7710 ac_status=$?
7711 grep -v '^ *+' conftest.er1 >conftest.err
7712 rm -f conftest.er1
7713 cat conftest.err >&5
7714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715 (exit $ac_status); } && {
7716 test -z "$ac_c_werror_flag" ||
7717 test ! -s conftest.err
7718 } && test -s conftest.$ac_objext; then
7719 ac_cv_struct_tm=time.h
7720 else
7721 echo "$as_me: failed program was:" >&5
7722 sed 's/^/| /' conftest.$ac_ext >&5
7724 ac_cv_struct_tm=sys/time.h
7727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7729 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7730 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7731 if test $ac_cv_struct_tm = sys/time.h; then
7733 cat >>confdefs.h <<\_ACEOF
7734 #define TM_IN_SYS_TIME 1
7735 _ACEOF
7739 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7740 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7741 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7742 echo $ECHO_N "(cached) $ECHO_C" >&6
7743 else
7744 cat >conftest.$ac_ext <<_ACEOF
7745 /* confdefs.h. */
7746 _ACEOF
7747 cat confdefs.h >>conftest.$ac_ext
7748 cat >>conftest.$ac_ext <<_ACEOF
7749 /* end confdefs.h. */
7750 #include <sys/types.h>
7751 #include <$ac_cv_struct_tm>
7755 main ()
7757 static struct tm ac_aggr;
7758 if (ac_aggr.tm_zone)
7759 return 0;
7761 return 0;
7763 _ACEOF
7764 rm -f conftest.$ac_objext
7765 if { (ac_try="$ac_compile"
7766 case "(($ac_try" in
7767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7768 *) ac_try_echo=$ac_try;;
7769 esac
7770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7771 (eval "$ac_compile") 2>conftest.er1
7772 ac_status=$?
7773 grep -v '^ *+' conftest.er1 >conftest.err
7774 rm -f conftest.er1
7775 cat conftest.err >&5
7776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777 (exit $ac_status); } && {
7778 test -z "$ac_c_werror_flag" ||
7779 test ! -s conftest.err
7780 } && test -s conftest.$ac_objext; then
7781 ac_cv_member_struct_tm_tm_zone=yes
7782 else
7783 echo "$as_me: failed program was:" >&5
7784 sed 's/^/| /' conftest.$ac_ext >&5
7786 cat >conftest.$ac_ext <<_ACEOF
7787 /* confdefs.h. */
7788 _ACEOF
7789 cat confdefs.h >>conftest.$ac_ext
7790 cat >>conftest.$ac_ext <<_ACEOF
7791 /* end confdefs.h. */
7792 #include <sys/types.h>
7793 #include <$ac_cv_struct_tm>
7797 main ()
7799 static struct tm ac_aggr;
7800 if (sizeof ac_aggr.tm_zone)
7801 return 0;
7803 return 0;
7805 _ACEOF
7806 rm -f conftest.$ac_objext
7807 if { (ac_try="$ac_compile"
7808 case "(($ac_try" in
7809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7810 *) ac_try_echo=$ac_try;;
7811 esac
7812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7813 (eval "$ac_compile") 2>conftest.er1
7814 ac_status=$?
7815 grep -v '^ *+' conftest.er1 >conftest.err
7816 rm -f conftest.er1
7817 cat conftest.err >&5
7818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 (exit $ac_status); } && {
7820 test -z "$ac_c_werror_flag" ||
7821 test ! -s conftest.err
7822 } && test -s conftest.$ac_objext; then
7823 ac_cv_member_struct_tm_tm_zone=yes
7824 else
7825 echo "$as_me: failed program was:" >&5
7826 sed 's/^/| /' conftest.$ac_ext >&5
7828 ac_cv_member_struct_tm_tm_zone=no
7831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7836 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7837 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7838 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7840 cat >>confdefs.h <<_ACEOF
7841 #define HAVE_STRUCT_TM_TM_ZONE 1
7842 _ACEOF
7847 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7849 cat >>confdefs.h <<\_ACEOF
7850 #define HAVE_TM_ZONE 1
7851 _ACEOF
7853 else
7854 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7855 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7856 if test "${ac_cv_have_decl_tzname+set}" = set; then
7857 echo $ECHO_N "(cached) $ECHO_C" >&6
7858 else
7859 cat >conftest.$ac_ext <<_ACEOF
7860 /* confdefs.h. */
7861 _ACEOF
7862 cat confdefs.h >>conftest.$ac_ext
7863 cat >>conftest.$ac_ext <<_ACEOF
7864 /* end confdefs.h. */
7865 #include <time.h>
7868 main ()
7870 #ifndef tzname
7871 (void) tzname;
7872 #endif
7875 return 0;
7877 _ACEOF
7878 rm -f conftest.$ac_objext
7879 if { (ac_try="$ac_compile"
7880 case "(($ac_try" in
7881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7882 *) ac_try_echo=$ac_try;;
7883 esac
7884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7885 (eval "$ac_compile") 2>conftest.er1
7886 ac_status=$?
7887 grep -v '^ *+' conftest.er1 >conftest.err
7888 rm -f conftest.er1
7889 cat conftest.err >&5
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); } && {
7892 test -z "$ac_c_werror_flag" ||
7893 test ! -s conftest.err
7894 } && test -s conftest.$ac_objext; then
7895 ac_cv_have_decl_tzname=yes
7896 else
7897 echo "$as_me: failed program was:" >&5
7898 sed 's/^/| /' conftest.$ac_ext >&5
7900 ac_cv_have_decl_tzname=no
7903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7905 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7906 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7907 if test $ac_cv_have_decl_tzname = yes; then
7909 cat >>confdefs.h <<_ACEOF
7910 #define HAVE_DECL_TZNAME 1
7911 _ACEOF
7914 else
7915 cat >>confdefs.h <<_ACEOF
7916 #define HAVE_DECL_TZNAME 0
7917 _ACEOF
7923 { echo "$as_me:$LINENO: checking for tzname" >&5
7924 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7925 if test "${ac_cv_var_tzname+set}" = set; then
7926 echo $ECHO_N "(cached) $ECHO_C" >&6
7927 else
7928 cat >conftest.$ac_ext <<_ACEOF
7929 /* confdefs.h. */
7930 _ACEOF
7931 cat confdefs.h >>conftest.$ac_ext
7932 cat >>conftest.$ac_ext <<_ACEOF
7933 /* end confdefs.h. */
7934 #include <time.h>
7935 #if !HAVE_DECL_TZNAME
7936 extern char *tzname[];
7937 #endif
7940 main ()
7942 return tzname[0][0];
7944 return 0;
7946 _ACEOF
7947 rm -f conftest.$ac_objext conftest$ac_exeext
7948 if { (ac_try="$ac_link"
7949 case "(($ac_try" in
7950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7951 *) ac_try_echo=$ac_try;;
7952 esac
7953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7954 (eval "$ac_link") 2>conftest.er1
7955 ac_status=$?
7956 grep -v '^ *+' conftest.er1 >conftest.err
7957 rm -f conftest.er1
7958 cat conftest.err >&5
7959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 (exit $ac_status); } && {
7961 test -z "$ac_c_werror_flag" ||
7962 test ! -s conftest.err
7963 } && test -s conftest$ac_exeext &&
7964 $as_test_x conftest$ac_exeext; then
7965 ac_cv_var_tzname=yes
7966 else
7967 echo "$as_me: failed program was:" >&5
7968 sed 's/^/| /' conftest.$ac_ext >&5
7970 ac_cv_var_tzname=no
7973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7974 conftest$ac_exeext conftest.$ac_ext
7976 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7977 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7978 if test $ac_cv_var_tzname = yes; then
7980 cat >>confdefs.h <<\_ACEOF
7981 #define HAVE_TZNAME 1
7982 _ACEOF
7987 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7988 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7989 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7990 echo $ECHO_N "(cached) $ECHO_C" >&6
7991 else
7992 cat >conftest.$ac_ext <<_ACEOF
7993 /* confdefs.h. */
7994 _ACEOF
7995 cat confdefs.h >>conftest.$ac_ext
7996 cat >>conftest.$ac_ext <<_ACEOF
7997 /* end confdefs.h. */
7998 #include <time.h>
8001 main ()
8003 static struct tm ac_aggr;
8004 if (ac_aggr.tm_gmtoff)
8005 return 0;
8007 return 0;
8009 _ACEOF
8010 rm -f conftest.$ac_objext
8011 if { (ac_try="$ac_compile"
8012 case "(($ac_try" in
8013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8014 *) ac_try_echo=$ac_try;;
8015 esac
8016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8017 (eval "$ac_compile") 2>conftest.er1
8018 ac_status=$?
8019 grep -v '^ *+' conftest.er1 >conftest.err
8020 rm -f conftest.er1
8021 cat conftest.err >&5
8022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023 (exit $ac_status); } && {
8024 test -z "$ac_c_werror_flag" ||
8025 test ! -s conftest.err
8026 } && test -s conftest.$ac_objext; then
8027 ac_cv_member_struct_tm_tm_gmtoff=yes
8028 else
8029 echo "$as_me: failed program was:" >&5
8030 sed 's/^/| /' conftest.$ac_ext >&5
8032 cat >conftest.$ac_ext <<_ACEOF
8033 /* confdefs.h. */
8034 _ACEOF
8035 cat confdefs.h >>conftest.$ac_ext
8036 cat >>conftest.$ac_ext <<_ACEOF
8037 /* end confdefs.h. */
8038 #include <time.h>
8041 main ()
8043 static struct tm ac_aggr;
8044 if (sizeof ac_aggr.tm_gmtoff)
8045 return 0;
8047 return 0;
8049 _ACEOF
8050 rm -f conftest.$ac_objext
8051 if { (ac_try="$ac_compile"
8052 case "(($ac_try" in
8053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8054 *) ac_try_echo=$ac_try;;
8055 esac
8056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8057 (eval "$ac_compile") 2>conftest.er1
8058 ac_status=$?
8059 grep -v '^ *+' conftest.er1 >conftest.err
8060 rm -f conftest.er1
8061 cat conftest.err >&5
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); } && {
8064 test -z "$ac_c_werror_flag" ||
8065 test ! -s conftest.err
8066 } && test -s conftest.$ac_objext; then
8067 ac_cv_member_struct_tm_tm_gmtoff=yes
8068 else
8069 echo "$as_me: failed program was:" >&5
8070 sed 's/^/| /' conftest.$ac_ext >&5
8072 ac_cv_member_struct_tm_tm_gmtoff=no
8075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8080 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8081 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8082 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8084 cat >>confdefs.h <<\_ACEOF
8085 #define HAVE_TM_GMTOFF 1
8086 _ACEOF
8090 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8091 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8092 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8093 echo $ECHO_N "(cached) $ECHO_C" >&6
8094 else
8095 cat >conftest.$ac_ext <<_ACEOF
8096 /* confdefs.h. */
8097 _ACEOF
8098 cat confdefs.h >>conftest.$ac_ext
8099 cat >>conftest.$ac_ext <<_ACEOF
8100 /* end confdefs.h. */
8101 $ac_includes_default
8102 #if HAVE_SYS_SOCKET_H
8103 #include <sys/socket.h>
8104 #endif
8105 #if HAVE_NET_IF_H
8106 #include <net/if.h>
8107 #endif
8110 main ()
8112 static struct ifreq ac_aggr;
8113 if (ac_aggr.ifr_flags)
8114 return 0;
8116 return 0;
8118 _ACEOF
8119 rm -f conftest.$ac_objext
8120 if { (ac_try="$ac_compile"
8121 case "(($ac_try" in
8122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8123 *) ac_try_echo=$ac_try;;
8124 esac
8125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8126 (eval "$ac_compile") 2>conftest.er1
8127 ac_status=$?
8128 grep -v '^ *+' conftest.er1 >conftest.err
8129 rm -f conftest.er1
8130 cat conftest.err >&5
8131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132 (exit $ac_status); } && {
8133 test -z "$ac_c_werror_flag" ||
8134 test ! -s conftest.err
8135 } && test -s conftest.$ac_objext; then
8136 ac_cv_member_struct_ifreq_ifr_flags=yes
8137 else
8138 echo "$as_me: failed program was:" >&5
8139 sed 's/^/| /' conftest.$ac_ext >&5
8141 cat >conftest.$ac_ext <<_ACEOF
8142 /* confdefs.h. */
8143 _ACEOF
8144 cat confdefs.h >>conftest.$ac_ext
8145 cat >>conftest.$ac_ext <<_ACEOF
8146 /* end confdefs.h. */
8147 $ac_includes_default
8148 #if HAVE_SYS_SOCKET_H
8149 #include <sys/socket.h>
8150 #endif
8151 #if HAVE_NET_IF_H
8152 #include <net/if.h>
8153 #endif
8156 main ()
8158 static struct ifreq ac_aggr;
8159 if (sizeof ac_aggr.ifr_flags)
8160 return 0;
8162 return 0;
8164 _ACEOF
8165 rm -f conftest.$ac_objext
8166 if { (ac_try="$ac_compile"
8167 case "(($ac_try" in
8168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8169 *) ac_try_echo=$ac_try;;
8170 esac
8171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8172 (eval "$ac_compile") 2>conftest.er1
8173 ac_status=$?
8174 grep -v '^ *+' conftest.er1 >conftest.err
8175 rm -f conftest.er1
8176 cat conftest.err >&5
8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); } && {
8179 test -z "$ac_c_werror_flag" ||
8180 test ! -s conftest.err
8181 } && test -s conftest.$ac_objext; then
8182 ac_cv_member_struct_ifreq_ifr_flags=yes
8183 else
8184 echo "$as_me: failed program was:" >&5
8185 sed 's/^/| /' conftest.$ac_ext >&5
8187 ac_cv_member_struct_ifreq_ifr_flags=no
8190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8195 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8196 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8197 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8199 cat >>confdefs.h <<_ACEOF
8200 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8201 _ACEOF
8205 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8206 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8207 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8208 echo $ECHO_N "(cached) $ECHO_C" >&6
8209 else
8210 cat >conftest.$ac_ext <<_ACEOF
8211 /* confdefs.h. */
8212 _ACEOF
8213 cat confdefs.h >>conftest.$ac_ext
8214 cat >>conftest.$ac_ext <<_ACEOF
8215 /* end confdefs.h. */
8216 $ac_includes_default
8217 #if HAVE_SYS_SOCKET_H
8218 #include <sys/socket.h>
8219 #endif
8220 #if HAVE_NET_IF_H
8221 #include <net/if.h>
8222 #endif
8225 main ()
8227 static struct ifreq ac_aggr;
8228 if (ac_aggr.ifr_hwaddr)
8229 return 0;
8231 return 0;
8233 _ACEOF
8234 rm -f conftest.$ac_objext
8235 if { (ac_try="$ac_compile"
8236 case "(($ac_try" in
8237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8238 *) ac_try_echo=$ac_try;;
8239 esac
8240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8241 (eval "$ac_compile") 2>conftest.er1
8242 ac_status=$?
8243 grep -v '^ *+' conftest.er1 >conftest.err
8244 rm -f conftest.er1
8245 cat conftest.err >&5
8246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247 (exit $ac_status); } && {
8248 test -z "$ac_c_werror_flag" ||
8249 test ! -s conftest.err
8250 } && test -s conftest.$ac_objext; then
8251 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8252 else
8253 echo "$as_me: failed program was:" >&5
8254 sed 's/^/| /' conftest.$ac_ext >&5
8256 cat >conftest.$ac_ext <<_ACEOF
8257 /* confdefs.h. */
8258 _ACEOF
8259 cat confdefs.h >>conftest.$ac_ext
8260 cat >>conftest.$ac_ext <<_ACEOF
8261 /* end confdefs.h. */
8262 $ac_includes_default
8263 #if HAVE_SYS_SOCKET_H
8264 #include <sys/socket.h>
8265 #endif
8266 #if HAVE_NET_IF_H
8267 #include <net/if.h>
8268 #endif
8271 main ()
8273 static struct ifreq ac_aggr;
8274 if (sizeof ac_aggr.ifr_hwaddr)
8275 return 0;
8277 return 0;
8279 _ACEOF
8280 rm -f conftest.$ac_objext
8281 if { (ac_try="$ac_compile"
8282 case "(($ac_try" in
8283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8284 *) ac_try_echo=$ac_try;;
8285 esac
8286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8287 (eval "$ac_compile") 2>conftest.er1
8288 ac_status=$?
8289 grep -v '^ *+' conftest.er1 >conftest.err
8290 rm -f conftest.er1
8291 cat conftest.err >&5
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); } && {
8294 test -z "$ac_c_werror_flag" ||
8295 test ! -s conftest.err
8296 } && test -s conftest.$ac_objext; then
8297 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8298 else
8299 echo "$as_me: failed program was:" >&5
8300 sed 's/^/| /' conftest.$ac_ext >&5
8302 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8310 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8311 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8312 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8314 cat >>confdefs.h <<_ACEOF
8315 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8316 _ACEOF
8320 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8321 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8322 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8323 echo $ECHO_N "(cached) $ECHO_C" >&6
8324 else
8325 cat >conftest.$ac_ext <<_ACEOF
8326 /* confdefs.h. */
8327 _ACEOF
8328 cat confdefs.h >>conftest.$ac_ext
8329 cat >>conftest.$ac_ext <<_ACEOF
8330 /* end confdefs.h. */
8331 $ac_includes_default
8332 #if HAVE_SYS_SOCKET_H
8333 #include <sys/socket.h>
8334 #endif
8335 #if HAVE_NET_IF_H
8336 #include <net/if.h>
8337 #endif
8340 main ()
8342 static struct ifreq ac_aggr;
8343 if (ac_aggr.ifr_netmask)
8344 return 0;
8346 return 0;
8348 _ACEOF
8349 rm -f conftest.$ac_objext
8350 if { (ac_try="$ac_compile"
8351 case "(($ac_try" in
8352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8353 *) ac_try_echo=$ac_try;;
8354 esac
8355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8356 (eval "$ac_compile") 2>conftest.er1
8357 ac_status=$?
8358 grep -v '^ *+' conftest.er1 >conftest.err
8359 rm -f conftest.er1
8360 cat conftest.err >&5
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); } && {
8363 test -z "$ac_c_werror_flag" ||
8364 test ! -s conftest.err
8365 } && test -s conftest.$ac_objext; then
8366 ac_cv_member_struct_ifreq_ifr_netmask=yes
8367 else
8368 echo "$as_me: failed program was:" >&5
8369 sed 's/^/| /' conftest.$ac_ext >&5
8371 cat >conftest.$ac_ext <<_ACEOF
8372 /* confdefs.h. */
8373 _ACEOF
8374 cat confdefs.h >>conftest.$ac_ext
8375 cat >>conftest.$ac_ext <<_ACEOF
8376 /* end confdefs.h. */
8377 $ac_includes_default
8378 #if HAVE_SYS_SOCKET_H
8379 #include <sys/socket.h>
8380 #endif
8381 #if HAVE_NET_IF_H
8382 #include <net/if.h>
8383 #endif
8386 main ()
8388 static struct ifreq ac_aggr;
8389 if (sizeof ac_aggr.ifr_netmask)
8390 return 0;
8392 return 0;
8394 _ACEOF
8395 rm -f conftest.$ac_objext
8396 if { (ac_try="$ac_compile"
8397 case "(($ac_try" in
8398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8399 *) ac_try_echo=$ac_try;;
8400 esac
8401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8402 (eval "$ac_compile") 2>conftest.er1
8403 ac_status=$?
8404 grep -v '^ *+' conftest.er1 >conftest.err
8405 rm -f conftest.er1
8406 cat conftest.err >&5
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); } && {
8409 test -z "$ac_c_werror_flag" ||
8410 test ! -s conftest.err
8411 } && test -s conftest.$ac_objext; then
8412 ac_cv_member_struct_ifreq_ifr_netmask=yes
8413 else
8414 echo "$as_me: failed program was:" >&5
8415 sed 's/^/| /' conftest.$ac_ext >&5
8417 ac_cv_member_struct_ifreq_ifr_netmask=no
8420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8425 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8426 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8427 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8429 cat >>confdefs.h <<_ACEOF
8430 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8431 _ACEOF
8435 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8436 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8437 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8438 echo $ECHO_N "(cached) $ECHO_C" >&6
8439 else
8440 cat >conftest.$ac_ext <<_ACEOF
8441 /* confdefs.h. */
8442 _ACEOF
8443 cat confdefs.h >>conftest.$ac_ext
8444 cat >>conftest.$ac_ext <<_ACEOF
8445 /* end confdefs.h. */
8446 $ac_includes_default
8447 #if HAVE_SYS_SOCKET_H
8448 #include <sys/socket.h>
8449 #endif
8450 #if HAVE_NET_IF_H
8451 #include <net/if.h>
8452 #endif
8455 main ()
8457 static struct ifreq ac_aggr;
8458 if (ac_aggr.ifr_broadaddr)
8459 return 0;
8461 return 0;
8463 _ACEOF
8464 rm -f conftest.$ac_objext
8465 if { (ac_try="$ac_compile"
8466 case "(($ac_try" in
8467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8468 *) ac_try_echo=$ac_try;;
8469 esac
8470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8471 (eval "$ac_compile") 2>conftest.er1
8472 ac_status=$?
8473 grep -v '^ *+' conftest.er1 >conftest.err
8474 rm -f conftest.er1
8475 cat conftest.err >&5
8476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477 (exit $ac_status); } && {
8478 test -z "$ac_c_werror_flag" ||
8479 test ! -s conftest.err
8480 } && test -s conftest.$ac_objext; then
8481 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8482 else
8483 echo "$as_me: failed program was:" >&5
8484 sed 's/^/| /' conftest.$ac_ext >&5
8486 cat >conftest.$ac_ext <<_ACEOF
8487 /* confdefs.h. */
8488 _ACEOF
8489 cat confdefs.h >>conftest.$ac_ext
8490 cat >>conftest.$ac_ext <<_ACEOF
8491 /* end confdefs.h. */
8492 $ac_includes_default
8493 #if HAVE_SYS_SOCKET_H
8494 #include <sys/socket.h>
8495 #endif
8496 #if HAVE_NET_IF_H
8497 #include <net/if.h>
8498 #endif
8501 main ()
8503 static struct ifreq ac_aggr;
8504 if (sizeof ac_aggr.ifr_broadaddr)
8505 return 0;
8507 return 0;
8509 _ACEOF
8510 rm -f conftest.$ac_objext
8511 if { (ac_try="$ac_compile"
8512 case "(($ac_try" in
8513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8514 *) ac_try_echo=$ac_try;;
8515 esac
8516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8517 (eval "$ac_compile") 2>conftest.er1
8518 ac_status=$?
8519 grep -v '^ *+' conftest.er1 >conftest.err
8520 rm -f conftest.er1
8521 cat conftest.err >&5
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); } && {
8524 test -z "$ac_c_werror_flag" ||
8525 test ! -s conftest.err
8526 } && test -s conftest.$ac_objext; then
8527 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8528 else
8529 echo "$as_me: failed program was:" >&5
8530 sed 's/^/| /' conftest.$ac_ext >&5
8532 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8540 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8541 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8542 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8544 cat >>confdefs.h <<_ACEOF
8545 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8546 _ACEOF
8550 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8551 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8552 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8553 echo $ECHO_N "(cached) $ECHO_C" >&6
8554 else
8555 cat >conftest.$ac_ext <<_ACEOF
8556 /* confdefs.h. */
8557 _ACEOF
8558 cat confdefs.h >>conftest.$ac_ext
8559 cat >>conftest.$ac_ext <<_ACEOF
8560 /* end confdefs.h. */
8561 $ac_includes_default
8562 #if HAVE_SYS_SOCKET_H
8563 #include <sys/socket.h>
8564 #endif
8565 #if HAVE_NET_IF_H
8566 #include <net/if.h>
8567 #endif
8570 main ()
8572 static struct ifreq ac_aggr;
8573 if (ac_aggr.ifr_addr)
8574 return 0;
8576 return 0;
8578 _ACEOF
8579 rm -f conftest.$ac_objext
8580 if { (ac_try="$ac_compile"
8581 case "(($ac_try" in
8582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8583 *) ac_try_echo=$ac_try;;
8584 esac
8585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8586 (eval "$ac_compile") 2>conftest.er1
8587 ac_status=$?
8588 grep -v '^ *+' conftest.er1 >conftest.err
8589 rm -f conftest.er1
8590 cat conftest.err >&5
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); } && {
8593 test -z "$ac_c_werror_flag" ||
8594 test ! -s conftest.err
8595 } && test -s conftest.$ac_objext; then
8596 ac_cv_member_struct_ifreq_ifr_addr=yes
8597 else
8598 echo "$as_me: failed program was:" >&5
8599 sed 's/^/| /' conftest.$ac_ext >&5
8601 cat >conftest.$ac_ext <<_ACEOF
8602 /* confdefs.h. */
8603 _ACEOF
8604 cat confdefs.h >>conftest.$ac_ext
8605 cat >>conftest.$ac_ext <<_ACEOF
8606 /* end confdefs.h. */
8607 $ac_includes_default
8608 #if HAVE_SYS_SOCKET_H
8609 #include <sys/socket.h>
8610 #endif
8611 #if HAVE_NET_IF_H
8612 #include <net/if.h>
8613 #endif
8616 main ()
8618 static struct ifreq ac_aggr;
8619 if (sizeof ac_aggr.ifr_addr)
8620 return 0;
8622 return 0;
8624 _ACEOF
8625 rm -f conftest.$ac_objext
8626 if { (ac_try="$ac_compile"
8627 case "(($ac_try" in
8628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8629 *) ac_try_echo=$ac_try;;
8630 esac
8631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8632 (eval "$ac_compile") 2>conftest.er1
8633 ac_status=$?
8634 grep -v '^ *+' conftest.er1 >conftest.err
8635 rm -f conftest.er1
8636 cat conftest.err >&5
8637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638 (exit $ac_status); } && {
8639 test -z "$ac_c_werror_flag" ||
8640 test ! -s conftest.err
8641 } && test -s conftest.$ac_objext; then
8642 ac_cv_member_struct_ifreq_ifr_addr=yes
8643 else
8644 echo "$as_me: failed program was:" >&5
8645 sed 's/^/| /' conftest.$ac_ext >&5
8647 ac_cv_member_struct_ifreq_ifr_addr=no
8650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8655 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8656 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8657 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8659 cat >>confdefs.h <<_ACEOF
8660 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8661 _ACEOF
8668 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8669 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8670 if test "$ac_cv_prog_cc_c89" != no; then
8671 { echo "$as_me:$LINENO: result: yes" >&5
8672 echo "${ECHO_T}yes" >&6; }
8674 cat >>confdefs.h <<\_ACEOF
8675 #define PROTOTYPES 1
8676 _ACEOF
8679 cat >>confdefs.h <<\_ACEOF
8680 #define __PROTOTYPES 1
8681 _ACEOF
8683 else
8684 { echo "$as_me:$LINENO: result: no" >&5
8685 echo "${ECHO_T}no" >&6; }
8688 { echo "$as_me:$LINENO: checking for working volatile" >&5
8689 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8690 if test "${ac_cv_c_volatile+set}" = set; then
8691 echo $ECHO_N "(cached) $ECHO_C" >&6
8692 else
8693 cat >conftest.$ac_ext <<_ACEOF
8694 /* confdefs.h. */
8695 _ACEOF
8696 cat confdefs.h >>conftest.$ac_ext
8697 cat >>conftest.$ac_ext <<_ACEOF
8698 /* end confdefs.h. */
8701 main ()
8704 volatile int x;
8705 int * volatile y = (int *) 0;
8706 return !x && !y;
8708 return 0;
8710 _ACEOF
8711 rm -f conftest.$ac_objext
8712 if { (ac_try="$ac_compile"
8713 case "(($ac_try" in
8714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8715 *) ac_try_echo=$ac_try;;
8716 esac
8717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8718 (eval "$ac_compile") 2>conftest.er1
8719 ac_status=$?
8720 grep -v '^ *+' conftest.er1 >conftest.err
8721 rm -f conftest.er1
8722 cat conftest.err >&5
8723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8724 (exit $ac_status); } && {
8725 test -z "$ac_c_werror_flag" ||
8726 test ! -s conftest.err
8727 } && test -s conftest.$ac_objext; then
8728 ac_cv_c_volatile=yes
8729 else
8730 echo "$as_me: failed program was:" >&5
8731 sed 's/^/| /' conftest.$ac_ext >&5
8733 ac_cv_c_volatile=no
8736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8738 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8739 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8740 if test $ac_cv_c_volatile = no; then
8742 cat >>confdefs.h <<\_ACEOF
8743 #define volatile
8744 _ACEOF
8748 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8749 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8750 if test "${ac_cv_c_const+set}" = set; then
8751 echo $ECHO_N "(cached) $ECHO_C" >&6
8752 else
8753 cat >conftest.$ac_ext <<_ACEOF
8754 /* confdefs.h. */
8755 _ACEOF
8756 cat confdefs.h >>conftest.$ac_ext
8757 cat >>conftest.$ac_ext <<_ACEOF
8758 /* end confdefs.h. */
8761 main ()
8763 /* FIXME: Include the comments suggested by Paul. */
8764 #ifndef __cplusplus
8765 /* Ultrix mips cc rejects this. */
8766 typedef int charset[2];
8767 const charset cs;
8768 /* SunOS 4.1.1 cc rejects this. */
8769 char const *const *pcpcc;
8770 char **ppc;
8771 /* NEC SVR4.0.2 mips cc rejects this. */
8772 struct point {int x, y;};
8773 static struct point const zero = {0,0};
8774 /* AIX XL C 1.02.0.0 rejects this.
8775 It does not let you subtract one const X* pointer from another in
8776 an arm of an if-expression whose if-part is not a constant
8777 expression */
8778 const char *g = "string";
8779 pcpcc = &g + (g ? g-g : 0);
8780 /* HPUX 7.0 cc rejects these. */
8781 ++pcpcc;
8782 ppc = (char**) pcpcc;
8783 pcpcc = (char const *const *) ppc;
8784 { /* SCO 3.2v4 cc rejects this. */
8785 char *t;
8786 char const *s = 0 ? (char *) 0 : (char const *) 0;
8788 *t++ = 0;
8789 if (s) return 0;
8791 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8792 int x[] = {25, 17};
8793 const int *foo = &x[0];
8794 ++foo;
8796 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8797 typedef const int *iptr;
8798 iptr p = 0;
8799 ++p;
8801 { /* AIX XL C 1.02.0.0 rejects this saying
8802 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8803 struct s { int j; const int *ap[3]; };
8804 struct s *b; b->j = 5;
8806 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8807 const int foo = 10;
8808 if (!foo) return 0;
8810 return !cs[0] && !zero.x;
8811 #endif
8814 return 0;
8816 _ACEOF
8817 rm -f conftest.$ac_objext
8818 if { (ac_try="$ac_compile"
8819 case "(($ac_try" in
8820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8821 *) ac_try_echo=$ac_try;;
8822 esac
8823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8824 (eval "$ac_compile") 2>conftest.er1
8825 ac_status=$?
8826 grep -v '^ *+' conftest.er1 >conftest.err
8827 rm -f conftest.er1
8828 cat conftest.err >&5
8829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830 (exit $ac_status); } && {
8831 test -z "$ac_c_werror_flag" ||
8832 test ! -s conftest.err
8833 } && test -s conftest.$ac_objext; then
8834 ac_cv_c_const=yes
8835 else
8836 echo "$as_me: failed program was:" >&5
8837 sed 's/^/| /' conftest.$ac_ext >&5
8839 ac_cv_c_const=no
8842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8844 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8845 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8846 if test $ac_cv_c_const = no; then
8848 cat >>confdefs.h <<\_ACEOF
8849 #define const
8850 _ACEOF
8854 { echo "$as_me:$LINENO: checking for void * support" >&5
8855 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8856 if test "${emacs_cv_void_star+set}" = set; then
8857 echo $ECHO_N "(cached) $ECHO_C" >&6
8858 else
8859 cat >conftest.$ac_ext <<_ACEOF
8860 /* confdefs.h. */
8861 _ACEOF
8862 cat confdefs.h >>conftest.$ac_ext
8863 cat >>conftest.$ac_ext <<_ACEOF
8864 /* end confdefs.h. */
8867 main ()
8869 void * foo;
8871 return 0;
8873 _ACEOF
8874 rm -f conftest.$ac_objext
8875 if { (ac_try="$ac_compile"
8876 case "(($ac_try" in
8877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8878 *) ac_try_echo=$ac_try;;
8879 esac
8880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8881 (eval "$ac_compile") 2>conftest.er1
8882 ac_status=$?
8883 grep -v '^ *+' conftest.er1 >conftest.err
8884 rm -f conftest.er1
8885 cat conftest.err >&5
8886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887 (exit $ac_status); } && {
8888 test -z "$ac_c_werror_flag" ||
8889 test ! -s conftest.err
8890 } && test -s conftest.$ac_objext; then
8891 emacs_cv_void_star=yes
8892 else
8893 echo "$as_me: failed program was:" >&5
8894 sed 's/^/| /' conftest.$ac_ext >&5
8896 emacs_cv_void_star=no
8899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8901 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8902 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8903 if test $emacs_cv_void_star = yes; then
8904 cat >>confdefs.h <<\_ACEOF
8905 #define POINTER_TYPE void
8906 _ACEOF
8908 else
8909 cat >>confdefs.h <<\_ACEOF
8910 #define POINTER_TYPE char
8911 _ACEOF
8919 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8920 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8921 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8922 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8923 echo $ECHO_N "(cached) $ECHO_C" >&6
8924 else
8925 cat >conftest.make <<\_ACEOF
8926 SHELL = /bin/sh
8927 all:
8928 @echo '@@@%%%=$(MAKE)=@@@%%%'
8929 _ACEOF
8930 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8931 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8932 *@@@%%%=?*=@@@%%%*)
8933 eval ac_cv_prog_make_${ac_make}_set=yes;;
8935 eval ac_cv_prog_make_${ac_make}_set=no;;
8936 esac
8937 rm -f conftest.make
8939 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8940 { echo "$as_me:$LINENO: result: yes" >&5
8941 echo "${ECHO_T}yes" >&6; }
8942 SET_MAKE=
8943 else
8944 { echo "$as_me:$LINENO: result: no" >&5
8945 echo "${ECHO_T}no" >&6; }
8946 SET_MAKE="MAKE=${MAKE-make}"
8950 { echo "$as_me:$LINENO: checking for long file names" >&5
8951 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8952 if test "${ac_cv_sys_long_file_names+set}" = set; then
8953 echo $ECHO_N "(cached) $ECHO_C" >&6
8954 else
8955 ac_cv_sys_long_file_names=yes
8956 # Test for long file names in all the places we know might matter:
8957 # . the current directory, where building will happen
8958 # $prefix/lib where we will be installing things
8959 # $exec_prefix/lib likewise
8960 # $TMPDIR if set, where it might want to write temporary files
8961 # /tmp where it might want to write temporary files
8962 # /var/tmp likewise
8963 # /usr/tmp likewise
8964 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8965 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8966 # in the usual case where exec_prefix is '${prefix}'.
8967 case $ac_dir in #(
8968 . | /* | ?:[\\/]*) ;; #(
8969 *) continue;;
8970 esac
8971 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8972 ac_xdir=$ac_dir/cf$$
8973 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8974 ac_tf1=$ac_xdir/conftest9012345
8975 ac_tf2=$ac_xdir/conftest9012346
8976 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8977 ac_cv_sys_long_file_names=no
8978 rm -f -r "$ac_xdir" 2>/dev/null
8979 test $ac_cv_sys_long_file_names = no && break
8980 done
8982 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8983 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8984 if test $ac_cv_sys_long_file_names = yes; then
8986 cat >>confdefs.h <<\_ACEOF
8987 #define HAVE_LONG_FILE_NAMES 1
8988 _ACEOF
8993 #### Choose a window system.
8995 { echo "$as_me:$LINENO: checking for X" >&5
8996 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8999 # Check whether --with-x was given.
9000 if test "${with_x+set}" = set; then
9001 withval=$with_x;
9004 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9005 if test "x$with_x" = xno; then
9006 # The user explicitly disabled X.
9007 have_x=disabled
9008 else
9009 case $x_includes,$x_libraries in #(
9010 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9011 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9012 { (exit 1); exit 1; }; };; #(
9013 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9014 echo $ECHO_N "(cached) $ECHO_C" >&6
9015 else
9016 # One or both of the vars are not set, and there is no cached value.
9017 ac_x_includes=no ac_x_libraries=no
9018 rm -f -r conftest.dir
9019 if mkdir conftest.dir; then
9020 cd conftest.dir
9021 cat >Imakefile <<'_ACEOF'
9022 incroot:
9023 @echo incroot='${INCROOT}'
9024 usrlibdir:
9025 @echo usrlibdir='${USRLIBDIR}'
9026 libdir:
9027 @echo libdir='${LIBDIR}'
9028 _ACEOF
9029 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9030 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9031 for ac_var in incroot usrlibdir libdir; do
9032 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9033 done
9034 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9035 for ac_extension in a so sl; do
9036 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9037 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9038 ac_im_usrlibdir=$ac_im_libdir; break
9040 done
9041 # Screen out bogus values from the imake configuration. They are
9042 # bogus both because they are the default anyway, and because
9043 # using them would break gcc on systems where it needs fixed includes.
9044 case $ac_im_incroot in
9045 /usr/include) ac_x_includes= ;;
9046 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9047 esac
9048 case $ac_im_usrlibdir in
9049 /usr/lib | /lib) ;;
9050 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9051 esac
9053 cd ..
9054 rm -f -r conftest.dir
9057 # Standard set of common directories for X headers.
9058 # Check X11 before X11Rn because it is often a symlink to the current release.
9059 ac_x_header_dirs='
9060 /usr/X11/include
9061 /usr/X11R6/include
9062 /usr/X11R5/include
9063 /usr/X11R4/include
9065 /usr/include/X11
9066 /usr/include/X11R6
9067 /usr/include/X11R5
9068 /usr/include/X11R4
9070 /usr/local/X11/include
9071 /usr/local/X11R6/include
9072 /usr/local/X11R5/include
9073 /usr/local/X11R4/include
9075 /usr/local/include/X11
9076 /usr/local/include/X11R6
9077 /usr/local/include/X11R5
9078 /usr/local/include/X11R4
9080 /usr/X386/include
9081 /usr/x386/include
9082 /usr/XFree86/include/X11
9084 /usr/include
9085 /usr/local/include
9086 /usr/unsupported/include
9087 /usr/athena/include
9088 /usr/local/x11r5/include
9089 /usr/lpp/Xamples/include
9091 /usr/openwin/include
9092 /usr/openwin/share/include'
9094 if test "$ac_x_includes" = no; then
9095 # Guess where to find include files, by looking for Xlib.h.
9096 # First, try using that file with no special directory specified.
9097 cat >conftest.$ac_ext <<_ACEOF
9098 /* confdefs.h. */
9099 _ACEOF
9100 cat confdefs.h >>conftest.$ac_ext
9101 cat >>conftest.$ac_ext <<_ACEOF
9102 /* end confdefs.h. */
9103 #include <X11/Xlib.h>
9104 _ACEOF
9105 if { (ac_try="$ac_cpp conftest.$ac_ext"
9106 case "(($ac_try" in
9107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9108 *) ac_try_echo=$ac_try;;
9109 esac
9110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9111 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9112 ac_status=$?
9113 grep -v '^ *+' conftest.er1 >conftest.err
9114 rm -f conftest.er1
9115 cat conftest.err >&5
9116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117 (exit $ac_status); } >/dev/null && {
9118 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9119 test ! -s conftest.err
9120 }; then
9121 # We can compile using X headers with no special include directory.
9122 ac_x_includes=
9123 else
9124 echo "$as_me: failed program was:" >&5
9125 sed 's/^/| /' conftest.$ac_ext >&5
9127 for ac_dir in $ac_x_header_dirs; do
9128 if test -r "$ac_dir/X11/Xlib.h"; then
9129 ac_x_includes=$ac_dir
9130 break
9132 done
9135 rm -f conftest.err conftest.$ac_ext
9136 fi # $ac_x_includes = no
9138 if test "$ac_x_libraries" = no; then
9139 # Check for the libraries.
9140 # See if we find them without any special options.
9141 # Don't add to $LIBS permanently.
9142 ac_save_LIBS=$LIBS
9143 LIBS="-lX11 $LIBS"
9144 cat >conftest.$ac_ext <<_ACEOF
9145 /* confdefs.h. */
9146 _ACEOF
9147 cat confdefs.h >>conftest.$ac_ext
9148 cat >>conftest.$ac_ext <<_ACEOF
9149 /* end confdefs.h. */
9150 #include <X11/Xlib.h>
9152 main ()
9154 XrmInitialize ()
9156 return 0;
9158 _ACEOF
9159 rm -f conftest.$ac_objext conftest$ac_exeext
9160 if { (ac_try="$ac_link"
9161 case "(($ac_try" in
9162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9163 *) ac_try_echo=$ac_try;;
9164 esac
9165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9166 (eval "$ac_link") 2>conftest.er1
9167 ac_status=$?
9168 grep -v '^ *+' conftest.er1 >conftest.err
9169 rm -f conftest.er1
9170 cat conftest.err >&5
9171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172 (exit $ac_status); } && {
9173 test -z "$ac_c_werror_flag" ||
9174 test ! -s conftest.err
9175 } && test -s conftest$ac_exeext &&
9176 $as_test_x conftest$ac_exeext; then
9177 LIBS=$ac_save_LIBS
9178 # We can link X programs with no special library path.
9179 ac_x_libraries=
9180 else
9181 echo "$as_me: failed program was:" >&5
9182 sed 's/^/| /' conftest.$ac_ext >&5
9184 LIBS=$ac_save_LIBS
9185 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9187 # Don't even attempt the hair of trying to link an X program!
9188 for ac_extension in a so sl; do
9189 if test -r "$ac_dir/libX11.$ac_extension"; then
9190 ac_x_libraries=$ac_dir
9191 break 2
9193 done
9194 done
9197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9198 conftest$ac_exeext conftest.$ac_ext
9199 fi # $ac_x_libraries = no
9201 case $ac_x_includes,$ac_x_libraries in #(
9202 no,* | *,no | *\'*)
9203 # Didn't find X, or a directory has "'" in its name.
9204 ac_cv_have_x="have_x=no";; #(
9206 # Record where we found X for the cache.
9207 ac_cv_have_x="have_x=yes\
9208 ac_x_includes='$ac_x_includes'\
9209 ac_x_libraries='$ac_x_libraries'"
9210 esac
9212 ;; #(
9213 *) have_x=yes;;
9214 esac
9215 eval "$ac_cv_have_x"
9216 fi # $with_x != no
9218 if test "$have_x" != yes; then
9219 { echo "$as_me:$LINENO: result: $have_x" >&5
9220 echo "${ECHO_T}$have_x" >&6; }
9221 no_x=yes
9222 else
9223 # If each of the values was on the command line, it overrides each guess.
9224 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9225 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9226 # Update the cache value to reflect the command line values.
9227 ac_cv_have_x="have_x=yes\
9228 ac_x_includes='$x_includes'\
9229 ac_x_libraries='$x_libraries'"
9230 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9231 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9234 if test "$no_x" = yes; then
9235 window_system=none
9236 else
9237 window_system=x11
9240 ## Workaround for bug in autoconf <= 2.62.
9241 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9242 ## No need to do anything special for these standard directories.
9243 ## This is an experiment, take it out if it causes problems.
9244 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9246 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9250 if test "${x_libraries}" != NONE; then
9251 if test -n "${x_libraries}"; then
9252 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9253 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9255 x_default_search_path=""
9256 x_search_path=${x_libraries}
9257 if test -z "${x_search_path}"; then
9258 x_search_path=/usr/lib
9260 for x_library in `echo ${x_search_path}: | \
9261 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9262 x_search_path="\
9263 ${x_library}/X11/%L/%T/%N%C%S:\
9264 ${x_library}/X11/%l/%T/%N%C%S:\
9265 ${x_library}/X11/%T/%N%C%S:\
9266 ${x_library}/X11/%L/%T/%N%S:\
9267 ${x_library}/X11/%l/%T/%N%S:\
9268 ${x_library}/X11/%T/%N%S"
9269 if test x"${x_default_search_path}" = x; then
9270 x_default_search_path=${x_search_path}
9271 else
9272 x_default_search_path="${x_search_path}:${x_default_search_path}"
9274 done
9276 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9277 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9280 if test x"${x_includes}" = x; then
9281 bitmapdir=/usr/include/X11/bitmaps
9282 else
9283 # accumulate include directories that have X11 bitmap subdirectories
9284 bmd_acc="dummyval"
9285 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9286 if test -d "${bmd}/X11/bitmaps"; then
9287 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9289 if test -d "${bmd}/bitmaps"; then
9290 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9292 done
9293 if test ${bmd_acc} != "dummyval"; then
9294 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9298 HAVE_NS=no
9299 NS_IMPL_COCOA=no
9300 NS_IMPL_GNUSTEP=no
9301 tmp_CPPFLAGS="$CPPFLAGS"
9302 tmp_CFLAGS="$CFLAGS"
9303 CPPFLAGS="$CPPFLAGS -x objective-c"
9304 CFLAGS="$CFLAGS -x objective-c"
9305 if test "${with_ns}" != no; then
9306 if test "${opsys}" = darwin; then
9307 NS_IMPL_COCOA=yes
9308 ns_appdir=`pwd`/nextstep/Emacs.app
9309 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9310 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9311 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9312 elif test -f $GNUSTEP_CONFIG_FILE; then
9313 NS_IMPL_GNUSTEP=yes
9314 ns_appdir=`pwd`/nextstep/Emacs.app
9315 ns_appbindir=`pwd`/nextstep/Emacs.app
9316 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9317 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9318 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9319 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9320 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9321 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9322 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9323 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9324 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9326 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9327 { echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9328 echo $ECHO_N "checking for AppKit/AppKit.h... $ECHO_C" >&6; }
9329 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9330 echo $ECHO_N "(cached) $ECHO_C" >&6
9332 { echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9333 echo "${ECHO_T}$ac_cv_header_AppKit_AppKit_h" >&6; }
9334 else
9335 # Is the header compilable?
9336 { echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9337 echo $ECHO_N "checking AppKit/AppKit.h usability... $ECHO_C" >&6; }
9338 cat >conftest.$ac_ext <<_ACEOF
9339 /* confdefs.h. */
9340 _ACEOF
9341 cat confdefs.h >>conftest.$ac_ext
9342 cat >>conftest.$ac_ext <<_ACEOF
9343 /* end confdefs.h. */
9344 $ac_includes_default
9345 #include <AppKit/AppKit.h>
9346 _ACEOF
9347 rm -f conftest.$ac_objext
9348 if { (ac_try="$ac_compile"
9349 case "(($ac_try" in
9350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9351 *) ac_try_echo=$ac_try;;
9352 esac
9353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9354 (eval "$ac_compile") 2>conftest.er1
9355 ac_status=$?
9356 grep -v '^ *+' conftest.er1 >conftest.err
9357 rm -f conftest.er1
9358 cat conftest.err >&5
9359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 (exit $ac_status); } && {
9361 test -z "$ac_c_werror_flag" ||
9362 test ! -s conftest.err
9363 } && test -s conftest.$ac_objext; then
9364 ac_header_compiler=yes
9365 else
9366 echo "$as_me: failed program was:" >&5
9367 sed 's/^/| /' conftest.$ac_ext >&5
9369 ac_header_compiler=no
9372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9373 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9374 echo "${ECHO_T}$ac_header_compiler" >&6; }
9376 # Is the header present?
9377 { echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9378 echo $ECHO_N "checking AppKit/AppKit.h presence... $ECHO_C" >&6; }
9379 cat >conftest.$ac_ext <<_ACEOF
9380 /* confdefs.h. */
9381 _ACEOF
9382 cat confdefs.h >>conftest.$ac_ext
9383 cat >>conftest.$ac_ext <<_ACEOF
9384 /* end confdefs.h. */
9385 #include <AppKit/AppKit.h>
9386 _ACEOF
9387 if { (ac_try="$ac_cpp conftest.$ac_ext"
9388 case "(($ac_try" in
9389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9390 *) ac_try_echo=$ac_try;;
9391 esac
9392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9393 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9394 ac_status=$?
9395 grep -v '^ *+' conftest.er1 >conftest.err
9396 rm -f conftest.er1
9397 cat conftest.err >&5
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); } >/dev/null && {
9400 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9401 test ! -s conftest.err
9402 }; then
9403 ac_header_preproc=yes
9404 else
9405 echo "$as_me: failed program was:" >&5
9406 sed 's/^/| /' conftest.$ac_ext >&5
9408 ac_header_preproc=no
9411 rm -f conftest.err conftest.$ac_ext
9412 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9413 echo "${ECHO_T}$ac_header_preproc" >&6; }
9415 # So? What about this header?
9416 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9417 yes:no: )
9418 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9419 echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9420 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9421 echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9422 ac_header_preproc=yes
9424 no:yes:* )
9425 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9426 echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9427 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9428 echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9429 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9430 echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9431 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9432 echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9433 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9434 echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9435 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9436 echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9439 esac
9440 { echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9441 echo $ECHO_N "checking for AppKit/AppKit.h... $ECHO_C" >&6; }
9442 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9443 echo $ECHO_N "(cached) $ECHO_C" >&6
9444 else
9445 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9447 { echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9448 echo "${ECHO_T}$ac_cv_header_AppKit_AppKit_h" >&6; }
9451 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9452 HAVE_NS=yes
9453 else
9454 { { echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
9455 files are missing or cannot be compiled." >&5
9456 echo "$as_me: error: \`--with-ns' was specified, but the include
9457 files are missing or cannot be compiled." >&2;}
9458 { (exit 1); exit 1; }; }
9462 NS_HAVE_NSINTEGER=yes
9463 cat >conftest.$ac_ext <<_ACEOF
9464 /* confdefs.h. */
9465 _ACEOF
9466 cat confdefs.h >>conftest.$ac_ext
9467 cat >>conftest.$ac_ext <<_ACEOF
9468 /* end confdefs.h. */
9469 #include <Foundation/NSObjCRuntime.h>
9471 main ()
9473 NSInteger i;
9475 return 0;
9477 _ACEOF
9478 rm -f conftest.$ac_objext
9479 if { (ac_try="$ac_compile"
9480 case "(($ac_try" in
9481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9482 *) ac_try_echo=$ac_try;;
9483 esac
9484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9485 (eval "$ac_compile") 2>conftest.er1
9486 ac_status=$?
9487 grep -v '^ *+' conftest.er1 >conftest.err
9488 rm -f conftest.er1
9489 cat conftest.err >&5
9490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491 (exit $ac_status); } && {
9492 test -z "$ac_c_werror_flag" ||
9493 test ! -s conftest.err
9494 } && test -s conftest.$ac_objext; then
9495 ns_have_nsinteger=yes
9496 else
9497 echo "$as_me: failed program was:" >&5
9498 sed 's/^/| /' conftest.$ac_ext >&5
9500 ns_have_nsinteger=no
9503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9504 if test $ns_have_nsinteger = no; then
9505 NS_HAVE_NSINTEGER=no
9508 if test "${HAVE_NS}" = yes; then
9509 window_system=nextstep
9510 with_xft=no
9511 # set up packaging dirs
9512 exec_prefix=${ns_appbindir}
9513 libexecdir=${ns_appbindir}/libexec
9514 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9515 prefix=${ns_appresdir}
9518 CFLAGS="$tmp_CFLAGS"
9519 CPPFLAGS="$tmp_CPPFLAGS"
9521 case "${window_system}" in
9522 x11 )
9523 HAVE_X_WINDOWS=yes
9524 HAVE_X11=yes
9525 case "${with_x_toolkit}" in
9526 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9527 motif ) USE_X_TOOLKIT=MOTIF ;;
9528 gtk ) with_gtk=yes
9529 USE_X_TOOLKIT=none ;;
9530 no ) USE_X_TOOLKIT=none ;;
9531 * ) USE_X_TOOLKIT=maybe ;;
9532 esac
9534 nextstep | none )
9535 HAVE_X_WINDOWS=no
9536 HAVE_X11=no
9537 USE_X_TOOLKIT=none
9539 esac
9541 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9542 # Extract the first word of "X", so it can be a program name with args.
9543 set dummy X; ac_word=$2
9544 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9546 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9547 echo $ECHO_N "(cached) $ECHO_C" >&6
9548 else
9549 if test -n "$HAVE_XSERVER"; then
9550 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9551 else
9552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9553 for as_dir in $PATH
9555 IFS=$as_save_IFS
9556 test -z "$as_dir" && as_dir=.
9557 for ac_exec_ext in '' $ac_executable_extensions; do
9558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9559 ac_cv_prog_HAVE_XSERVER="true"
9560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9561 break 2
9563 done
9564 done
9565 IFS=$as_save_IFS
9567 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9570 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9571 if test -n "$HAVE_XSERVER"; then
9572 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9573 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9574 else
9575 { echo "$as_me:$LINENO: result: no" >&5
9576 echo "${ECHO_T}no" >&6; }
9580 if test "$HAVE_XSERVER" = true ||
9581 test -n "$DISPLAY" ||
9582 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9583 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9584 were found. You should install the relevant development files for X
9585 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9586 sure you have development files for image handling, i.e.
9587 tiff, gif, jpeg, png and xpm.
9588 If you are sure you want Emacs compiled without X window support, pass
9589 --without-x
9590 to configure." >&5
9591 echo "$as_me: error: You seem to be running X, but no X development libraries
9592 were found. You should install the relevant development files for X
9593 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9594 sure you have development files for image handling, i.e.
9595 tiff, gif, jpeg, png and xpm.
9596 If you are sure you want Emacs compiled without X window support, pass
9597 --without-x
9598 to configure." >&2;}
9599 { (exit 1); exit 1; }; }
9603 ### If we're using X11, we should use the X menu package.
9604 HAVE_MENUS=no
9605 case ${HAVE_X11} in
9606 yes ) HAVE_MENUS=yes ;;
9607 esac
9609 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9610 # Assume not, until told otherwise.
9611 GNU_MALLOC=yes
9612 doug_lea_malloc=yes
9613 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9614 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9615 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9616 echo $ECHO_N "(cached) $ECHO_C" >&6
9617 else
9618 cat >conftest.$ac_ext <<_ACEOF
9619 /* confdefs.h. */
9620 _ACEOF
9621 cat confdefs.h >>conftest.$ac_ext
9622 cat >>conftest.$ac_ext <<_ACEOF
9623 /* end confdefs.h. */
9624 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9625 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9626 #define malloc_get_state innocuous_malloc_get_state
9628 /* System header to define __stub macros and hopefully few prototypes,
9629 which can conflict with char malloc_get_state (); below.
9630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9631 <limits.h> exists even on freestanding compilers. */
9633 #ifdef __STDC__
9634 # include <limits.h>
9635 #else
9636 # include <assert.h>
9637 #endif
9639 #undef malloc_get_state
9641 /* Override any GCC internal prototype to avoid an error.
9642 Use char because int might match the return type of a GCC
9643 builtin and then its argument prototype would still apply. */
9644 #ifdef __cplusplus
9645 extern "C"
9646 #endif
9647 char malloc_get_state ();
9648 /* The GNU C library defines this for functions which it implements
9649 to always fail with ENOSYS. Some functions are actually named
9650 something starting with __ and the normal name is an alias. */
9651 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9652 choke me
9653 #endif
9656 main ()
9658 return malloc_get_state ();
9660 return 0;
9662 _ACEOF
9663 rm -f conftest.$ac_objext conftest$ac_exeext
9664 if { (ac_try="$ac_link"
9665 case "(($ac_try" in
9666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9667 *) ac_try_echo=$ac_try;;
9668 esac
9669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9670 (eval "$ac_link") 2>conftest.er1
9671 ac_status=$?
9672 grep -v '^ *+' conftest.er1 >conftest.err
9673 rm -f conftest.er1
9674 cat conftest.err >&5
9675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 (exit $ac_status); } && {
9677 test -z "$ac_c_werror_flag" ||
9678 test ! -s conftest.err
9679 } && test -s conftest$ac_exeext &&
9680 $as_test_x conftest$ac_exeext; then
9681 ac_cv_func_malloc_get_state=yes
9682 else
9683 echo "$as_me: failed program was:" >&5
9684 sed 's/^/| /' conftest.$ac_ext >&5
9686 ac_cv_func_malloc_get_state=no
9689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9690 conftest$ac_exeext conftest.$ac_ext
9692 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9693 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9694 if test $ac_cv_func_malloc_get_state = yes; then
9696 else
9697 doug_lea_malloc=no
9700 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9701 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9702 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9703 echo $ECHO_N "(cached) $ECHO_C" >&6
9704 else
9705 cat >conftest.$ac_ext <<_ACEOF
9706 /* confdefs.h. */
9707 _ACEOF
9708 cat confdefs.h >>conftest.$ac_ext
9709 cat >>conftest.$ac_ext <<_ACEOF
9710 /* end confdefs.h. */
9711 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9713 #define malloc_set_state innocuous_malloc_set_state
9715 /* System header to define __stub macros and hopefully few prototypes,
9716 which can conflict with char malloc_set_state (); below.
9717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9718 <limits.h> exists even on freestanding compilers. */
9720 #ifdef __STDC__
9721 # include <limits.h>
9722 #else
9723 # include <assert.h>
9724 #endif
9726 #undef malloc_set_state
9728 /* Override any GCC internal prototype to avoid an error.
9729 Use char because int might match the return type of a GCC
9730 builtin and then its argument prototype would still apply. */
9731 #ifdef __cplusplus
9732 extern "C"
9733 #endif
9734 char malloc_set_state ();
9735 /* The GNU C library defines this for functions which it implements
9736 to always fail with ENOSYS. Some functions are actually named
9737 something starting with __ and the normal name is an alias. */
9738 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9739 choke me
9740 #endif
9743 main ()
9745 return malloc_set_state ();
9747 return 0;
9749 _ACEOF
9750 rm -f conftest.$ac_objext conftest$ac_exeext
9751 if { (ac_try="$ac_link"
9752 case "(($ac_try" in
9753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9754 *) ac_try_echo=$ac_try;;
9755 esac
9756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9757 (eval "$ac_link") 2>conftest.er1
9758 ac_status=$?
9759 grep -v '^ *+' conftest.er1 >conftest.err
9760 rm -f conftest.er1
9761 cat conftest.err >&5
9762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763 (exit $ac_status); } && {
9764 test -z "$ac_c_werror_flag" ||
9765 test ! -s conftest.err
9766 } && test -s conftest$ac_exeext &&
9767 $as_test_x conftest$ac_exeext; then
9768 ac_cv_func_malloc_set_state=yes
9769 else
9770 echo "$as_me: failed program was:" >&5
9771 sed 's/^/| /' conftest.$ac_ext >&5
9773 ac_cv_func_malloc_set_state=no
9776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9777 conftest$ac_exeext conftest.$ac_ext
9779 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9780 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9781 if test $ac_cv_func_malloc_set_state = yes; then
9783 else
9784 doug_lea_malloc=no
9787 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9788 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9789 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9790 echo $ECHO_N "(cached) $ECHO_C" >&6
9791 else
9792 cat >conftest.$ac_ext <<_ACEOF
9793 /* confdefs.h. */
9794 _ACEOF
9795 cat confdefs.h >>conftest.$ac_ext
9796 cat >>conftest.$ac_ext <<_ACEOF
9797 /* end confdefs.h. */
9798 extern void (* __after_morecore_hook)();
9800 main ()
9802 __after_morecore_hook = 0
9804 return 0;
9806 _ACEOF
9807 rm -f conftest.$ac_objext conftest$ac_exeext
9808 if { (ac_try="$ac_link"
9809 case "(($ac_try" in
9810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9811 *) ac_try_echo=$ac_try;;
9812 esac
9813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9814 (eval "$ac_link") 2>conftest.er1
9815 ac_status=$?
9816 grep -v '^ *+' conftest.er1 >conftest.err
9817 rm -f conftest.er1
9818 cat conftest.err >&5
9819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820 (exit $ac_status); } && {
9821 test -z "$ac_c_werror_flag" ||
9822 test ! -s conftest.err
9823 } && test -s conftest$ac_exeext &&
9824 $as_test_x conftest$ac_exeext; then
9825 emacs_cv_var___after_morecore_hook=yes
9826 else
9827 echo "$as_me: failed program was:" >&5
9828 sed 's/^/| /' conftest.$ac_ext >&5
9830 emacs_cv_var___after_morecore_hook=no
9833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9834 conftest$ac_exeext conftest.$ac_ext
9836 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9837 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9838 if test $emacs_cv_var___after_morecore_hook = no; then
9839 doug_lea_malloc=no
9841 if test "${system_malloc}" = "yes"; then
9842 GNU_MALLOC=no
9843 GNU_MALLOC_reason="
9844 (The GNU allocators don't work with this system configuration.)"
9846 if test "$doug_lea_malloc" = "yes" ; then
9847 if test "$GNU_MALLOC" = yes ; then
9848 GNU_MALLOC_reason="
9849 (Using Doug Lea's new malloc from the GNU C Library.)"
9852 cat >>confdefs.h <<\_ACEOF
9853 #define DOUG_LEA_MALLOC 1
9854 _ACEOF
9858 if test x"${REL_ALLOC}" = x; then
9859 REL_ALLOC=${GNU_MALLOC}
9865 for ac_header in stdlib.h unistd.h
9867 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9868 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9869 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9871 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9872 echo $ECHO_N "(cached) $ECHO_C" >&6
9874 ac_res=`eval echo '${'$as_ac_Header'}'`
9875 { echo "$as_me:$LINENO: result: $ac_res" >&5
9876 echo "${ECHO_T}$ac_res" >&6; }
9877 else
9878 # Is the header compilable?
9879 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9880 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9881 cat >conftest.$ac_ext <<_ACEOF
9882 /* confdefs.h. */
9883 _ACEOF
9884 cat confdefs.h >>conftest.$ac_ext
9885 cat >>conftest.$ac_ext <<_ACEOF
9886 /* end confdefs.h. */
9887 $ac_includes_default
9888 #include <$ac_header>
9889 _ACEOF
9890 rm -f conftest.$ac_objext
9891 if { (ac_try="$ac_compile"
9892 case "(($ac_try" in
9893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9894 *) ac_try_echo=$ac_try;;
9895 esac
9896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9897 (eval "$ac_compile") 2>conftest.er1
9898 ac_status=$?
9899 grep -v '^ *+' conftest.er1 >conftest.err
9900 rm -f conftest.er1
9901 cat conftest.err >&5
9902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903 (exit $ac_status); } && {
9904 test -z "$ac_c_werror_flag" ||
9905 test ! -s conftest.err
9906 } && test -s conftest.$ac_objext; then
9907 ac_header_compiler=yes
9908 else
9909 echo "$as_me: failed program was:" >&5
9910 sed 's/^/| /' conftest.$ac_ext >&5
9912 ac_header_compiler=no
9915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9916 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9917 echo "${ECHO_T}$ac_header_compiler" >&6; }
9919 # Is the header present?
9920 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9921 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9922 cat >conftest.$ac_ext <<_ACEOF
9923 /* confdefs.h. */
9924 _ACEOF
9925 cat confdefs.h >>conftest.$ac_ext
9926 cat >>conftest.$ac_ext <<_ACEOF
9927 /* end confdefs.h. */
9928 #include <$ac_header>
9929 _ACEOF
9930 if { (ac_try="$ac_cpp conftest.$ac_ext"
9931 case "(($ac_try" in
9932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9933 *) ac_try_echo=$ac_try;;
9934 esac
9935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9936 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9937 ac_status=$?
9938 grep -v '^ *+' conftest.er1 >conftest.err
9939 rm -f conftest.er1
9940 cat conftest.err >&5
9941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942 (exit $ac_status); } >/dev/null && {
9943 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9944 test ! -s conftest.err
9945 }; then
9946 ac_header_preproc=yes
9947 else
9948 echo "$as_me: failed program was:" >&5
9949 sed 's/^/| /' conftest.$ac_ext >&5
9951 ac_header_preproc=no
9954 rm -f conftest.err conftest.$ac_ext
9955 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9956 echo "${ECHO_T}$ac_header_preproc" >&6; }
9958 # So? What about this header?
9959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9960 yes:no: )
9961 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9962 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9964 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9965 ac_header_preproc=yes
9967 no:yes:* )
9968 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9969 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9970 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9971 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9972 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9973 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9974 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9975 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9976 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9977 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9978 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9979 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9982 esac
9983 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9986 echo $ECHO_N "(cached) $ECHO_C" >&6
9987 else
9988 eval "$as_ac_Header=\$ac_header_preproc"
9990 ac_res=`eval echo '${'$as_ac_Header'}'`
9991 { echo "$as_me:$LINENO: result: $ac_res" >&5
9992 echo "${ECHO_T}$ac_res" >&6; }
9995 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9996 cat >>confdefs.h <<_ACEOF
9997 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9998 _ACEOF
10002 done
10005 for ac_func in getpagesize
10007 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10008 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10009 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10010 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10011 echo $ECHO_N "(cached) $ECHO_C" >&6
10012 else
10013 cat >conftest.$ac_ext <<_ACEOF
10014 /* confdefs.h. */
10015 _ACEOF
10016 cat confdefs.h >>conftest.$ac_ext
10017 cat >>conftest.$ac_ext <<_ACEOF
10018 /* end confdefs.h. */
10019 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10020 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10021 #define $ac_func innocuous_$ac_func
10023 /* System header to define __stub macros and hopefully few prototypes,
10024 which can conflict with char $ac_func (); below.
10025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10026 <limits.h> exists even on freestanding compilers. */
10028 #ifdef __STDC__
10029 # include <limits.h>
10030 #else
10031 # include <assert.h>
10032 #endif
10034 #undef $ac_func
10036 /* Override any GCC internal prototype to avoid an error.
10037 Use char because int might match the return type of a GCC
10038 builtin and then its argument prototype would still apply. */
10039 #ifdef __cplusplus
10040 extern "C"
10041 #endif
10042 char $ac_func ();
10043 /* The GNU C library defines this for functions which it implements
10044 to always fail with ENOSYS. Some functions are actually named
10045 something starting with __ and the normal name is an alias. */
10046 #if defined __stub_$ac_func || defined __stub___$ac_func
10047 choke me
10048 #endif
10051 main ()
10053 return $ac_func ();
10055 return 0;
10057 _ACEOF
10058 rm -f conftest.$ac_objext conftest$ac_exeext
10059 if { (ac_try="$ac_link"
10060 case "(($ac_try" in
10061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10062 *) ac_try_echo=$ac_try;;
10063 esac
10064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10065 (eval "$ac_link") 2>conftest.er1
10066 ac_status=$?
10067 grep -v '^ *+' conftest.er1 >conftest.err
10068 rm -f conftest.er1
10069 cat conftest.err >&5
10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071 (exit $ac_status); } && {
10072 test -z "$ac_c_werror_flag" ||
10073 test ! -s conftest.err
10074 } && test -s conftest$ac_exeext &&
10075 $as_test_x conftest$ac_exeext; then
10076 eval "$as_ac_var=yes"
10077 else
10078 echo "$as_me: failed program was:" >&5
10079 sed 's/^/| /' conftest.$ac_ext >&5
10081 eval "$as_ac_var=no"
10084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10085 conftest$ac_exeext conftest.$ac_ext
10087 ac_res=`eval echo '${'$as_ac_var'}'`
10088 { echo "$as_me:$LINENO: result: $ac_res" >&5
10089 echo "${ECHO_T}$ac_res" >&6; }
10090 if test `eval echo '${'$as_ac_var'}'` = yes; then
10091 cat >>confdefs.h <<_ACEOF
10092 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10093 _ACEOF
10096 done
10098 { echo "$as_me:$LINENO: checking for working mmap" >&5
10099 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10100 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10101 echo $ECHO_N "(cached) $ECHO_C" >&6
10102 else
10103 if test "$cross_compiling" = yes; then
10104 ac_cv_func_mmap_fixed_mapped=no
10105 else
10106 cat >conftest.$ac_ext <<_ACEOF
10107 /* confdefs.h. */
10108 _ACEOF
10109 cat confdefs.h >>conftest.$ac_ext
10110 cat >>conftest.$ac_ext <<_ACEOF
10111 /* end confdefs.h. */
10112 $ac_includes_default
10113 /* malloc might have been renamed as rpl_malloc. */
10114 #undef malloc
10116 /* Thanks to Mike Haertel and Jim Avera for this test.
10117 Here is a matrix of mmap possibilities:
10118 mmap private not fixed
10119 mmap private fixed at somewhere currently unmapped
10120 mmap private fixed at somewhere already mapped
10121 mmap shared not fixed
10122 mmap shared fixed at somewhere currently unmapped
10123 mmap shared fixed at somewhere already mapped
10124 For private mappings, we should verify that changes cannot be read()
10125 back from the file, nor mmap's back from the file at a different
10126 address. (There have been systems where private was not correctly
10127 implemented like the infamous i386 svr4.0, and systems where the
10128 VM page cache was not coherent with the file system buffer cache
10129 like early versions of FreeBSD and possibly contemporary NetBSD.)
10130 For shared mappings, we should conversely verify that changes get
10131 propagated back to all the places they're supposed to be.
10133 Grep wants private fixed already mapped.
10134 The main things grep needs to know about mmap are:
10135 * does it exist and is it safe to write into the mmap'd area
10136 * how to use it (BSD variants) */
10138 #include <fcntl.h>
10139 #include <sys/mman.h>
10141 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10142 char *malloc ();
10143 #endif
10145 /* This mess was copied from the GNU getpagesize.h. */
10146 #ifndef HAVE_GETPAGESIZE
10147 /* Assume that all systems that can run configure have sys/param.h. */
10148 # ifndef HAVE_SYS_PARAM_H
10149 # define HAVE_SYS_PARAM_H 1
10150 # endif
10152 # ifdef _SC_PAGESIZE
10153 # define getpagesize() sysconf(_SC_PAGESIZE)
10154 # else /* no _SC_PAGESIZE */
10155 # ifdef HAVE_SYS_PARAM_H
10156 # include <sys/param.h>
10157 # ifdef EXEC_PAGESIZE
10158 # define getpagesize() EXEC_PAGESIZE
10159 # else /* no EXEC_PAGESIZE */
10160 # ifdef NBPG
10161 # define getpagesize() NBPG * CLSIZE
10162 # ifndef CLSIZE
10163 # define CLSIZE 1
10164 # endif /* no CLSIZE */
10165 # else /* no NBPG */
10166 # ifdef NBPC
10167 # define getpagesize() NBPC
10168 # else /* no NBPC */
10169 # ifdef PAGESIZE
10170 # define getpagesize() PAGESIZE
10171 # endif /* PAGESIZE */
10172 # endif /* no NBPC */
10173 # endif /* no NBPG */
10174 # endif /* no EXEC_PAGESIZE */
10175 # else /* no HAVE_SYS_PARAM_H */
10176 # define getpagesize() 8192 /* punt totally */
10177 # endif /* no HAVE_SYS_PARAM_H */
10178 # endif /* no _SC_PAGESIZE */
10180 #endif /* no HAVE_GETPAGESIZE */
10183 main ()
10185 char *data, *data2, *data3;
10186 int i, pagesize;
10187 int fd;
10189 pagesize = getpagesize ();
10191 /* First, make a file with some known garbage in it. */
10192 data = (char *) malloc (pagesize);
10193 if (!data)
10194 return 1;
10195 for (i = 0; i < pagesize; ++i)
10196 *(data + i) = rand ();
10197 umask (0);
10198 fd = creat ("conftest.mmap", 0600);
10199 if (fd < 0)
10200 return 1;
10201 if (write (fd, data, pagesize) != pagesize)
10202 return 1;
10203 close (fd);
10205 /* Next, try to mmap the file at a fixed address which already has
10206 something else allocated at it. If we can, also make sure that
10207 we see the same garbage. */
10208 fd = open ("conftest.mmap", O_RDWR);
10209 if (fd < 0)
10210 return 1;
10211 data2 = (char *) malloc (2 * pagesize);
10212 if (!data2)
10213 return 1;
10214 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10215 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10216 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10217 return 1;
10218 for (i = 0; i < pagesize; ++i)
10219 if (*(data + i) != *(data2 + i))
10220 return 1;
10222 /* Finally, make sure that changes to the mapped area do not
10223 percolate back to the file as seen by read(). (This is a bug on
10224 some variants of i386 svr4.0.) */
10225 for (i = 0; i < pagesize; ++i)
10226 *(data2 + i) = *(data2 + i) + 1;
10227 data3 = (char *) malloc (pagesize);
10228 if (!data3)
10229 return 1;
10230 if (read (fd, data3, pagesize) != pagesize)
10231 return 1;
10232 for (i = 0; i < pagesize; ++i)
10233 if (*(data + i) != *(data3 + i))
10234 return 1;
10235 close (fd);
10236 return 0;
10238 _ACEOF
10239 rm -f conftest$ac_exeext
10240 if { (ac_try="$ac_link"
10241 case "(($ac_try" in
10242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10243 *) ac_try_echo=$ac_try;;
10244 esac
10245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10246 (eval "$ac_link") 2>&5
10247 ac_status=$?
10248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10250 { (case "(($ac_try" in
10251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10252 *) ac_try_echo=$ac_try;;
10253 esac
10254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10255 (eval "$ac_try") 2>&5
10256 ac_status=$?
10257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258 (exit $ac_status); }; }; then
10259 ac_cv_func_mmap_fixed_mapped=yes
10260 else
10261 echo "$as_me: program exited with status $ac_status" >&5
10262 echo "$as_me: failed program was:" >&5
10263 sed 's/^/| /' conftest.$ac_ext >&5
10265 ( exit $ac_status )
10266 ac_cv_func_mmap_fixed_mapped=no
10268 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10273 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10274 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10275 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10277 cat >>confdefs.h <<\_ACEOF
10278 #define HAVE_MMAP 1
10279 _ACEOF
10282 rm -f conftest.mmap
10284 if test $use_mmap_for_buffers = yes; then
10285 REL_ALLOC=no
10288 LIBS="$libsrc_libs $LIBS"
10291 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10292 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10293 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10294 echo $ECHO_N "(cached) $ECHO_C" >&6
10295 else
10296 ac_check_lib_save_LIBS=$LIBS
10297 LIBS="-ldnet $LIBS"
10298 cat >conftest.$ac_ext <<_ACEOF
10299 /* confdefs.h. */
10300 _ACEOF
10301 cat confdefs.h >>conftest.$ac_ext
10302 cat >>conftest.$ac_ext <<_ACEOF
10303 /* end confdefs.h. */
10305 /* Override any GCC internal prototype to avoid an error.
10306 Use char because int might match the return type of a GCC
10307 builtin and then its argument prototype would still apply. */
10308 #ifdef __cplusplus
10309 extern "C"
10310 #endif
10311 char dnet_ntoa ();
10313 main ()
10315 return dnet_ntoa ();
10317 return 0;
10319 _ACEOF
10320 rm -f conftest.$ac_objext conftest$ac_exeext
10321 if { (ac_try="$ac_link"
10322 case "(($ac_try" in
10323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10324 *) ac_try_echo=$ac_try;;
10325 esac
10326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10327 (eval "$ac_link") 2>conftest.er1
10328 ac_status=$?
10329 grep -v '^ *+' conftest.er1 >conftest.err
10330 rm -f conftest.er1
10331 cat conftest.err >&5
10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333 (exit $ac_status); } && {
10334 test -z "$ac_c_werror_flag" ||
10335 test ! -s conftest.err
10336 } && test -s conftest$ac_exeext &&
10337 $as_test_x conftest$ac_exeext; then
10338 ac_cv_lib_dnet_dnet_ntoa=yes
10339 else
10340 echo "$as_me: failed program was:" >&5
10341 sed 's/^/| /' conftest.$ac_ext >&5
10343 ac_cv_lib_dnet_dnet_ntoa=no
10346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10347 conftest$ac_exeext conftest.$ac_ext
10348 LIBS=$ac_check_lib_save_LIBS
10350 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10351 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10352 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10353 cat >>confdefs.h <<_ACEOF
10354 #define HAVE_LIBDNET 1
10355 _ACEOF
10357 LIBS="-ldnet $LIBS"
10362 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10363 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10364 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10365 echo $ECHO_N "(cached) $ECHO_C" >&6
10366 else
10367 ac_check_lib_save_LIBS=$LIBS
10368 LIBS="-lXbsd $LIBS"
10369 cat >conftest.$ac_ext <<_ACEOF
10370 /* confdefs.h. */
10371 _ACEOF
10372 cat confdefs.h >>conftest.$ac_ext
10373 cat >>conftest.$ac_ext <<_ACEOF
10374 /* end confdefs.h. */
10378 main ()
10380 return main ();
10382 return 0;
10384 _ACEOF
10385 rm -f conftest.$ac_objext conftest$ac_exeext
10386 if { (ac_try="$ac_link"
10387 case "(($ac_try" in
10388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10389 *) ac_try_echo=$ac_try;;
10390 esac
10391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10392 (eval "$ac_link") 2>conftest.er1
10393 ac_status=$?
10394 grep -v '^ *+' conftest.er1 >conftest.err
10395 rm -f conftest.er1
10396 cat conftest.err >&5
10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398 (exit $ac_status); } && {
10399 test -z "$ac_c_werror_flag" ||
10400 test ! -s conftest.err
10401 } && test -s conftest$ac_exeext &&
10402 $as_test_x conftest$ac_exeext; then
10403 ac_cv_lib_Xbsd_main=yes
10404 else
10405 echo "$as_me: failed program was:" >&5
10406 sed 's/^/| /' conftest.$ac_ext >&5
10408 ac_cv_lib_Xbsd_main=no
10411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10412 conftest$ac_exeext conftest.$ac_ext
10413 LIBS=$ac_check_lib_save_LIBS
10415 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10416 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10417 if test $ac_cv_lib_Xbsd_main = yes; then
10418 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10423 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10424 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10425 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10426 echo $ECHO_N "(cached) $ECHO_C" >&6
10427 else
10428 ac_check_lib_save_LIBS=$LIBS
10429 LIBS="-lpthreads $LIBS"
10430 cat >conftest.$ac_ext <<_ACEOF
10431 /* confdefs.h. */
10432 _ACEOF
10433 cat confdefs.h >>conftest.$ac_ext
10434 cat >>conftest.$ac_ext <<_ACEOF
10435 /* end confdefs.h. */
10437 /* Override any GCC internal prototype to avoid an error.
10438 Use char because int might match the return type of a GCC
10439 builtin and then its argument prototype would still apply. */
10440 #ifdef __cplusplus
10441 extern "C"
10442 #endif
10443 char cma_open ();
10445 main ()
10447 return cma_open ();
10449 return 0;
10451 _ACEOF
10452 rm -f conftest.$ac_objext conftest$ac_exeext
10453 if { (ac_try="$ac_link"
10454 case "(($ac_try" in
10455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10456 *) ac_try_echo=$ac_try;;
10457 esac
10458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10459 (eval "$ac_link") 2>conftest.er1
10460 ac_status=$?
10461 grep -v '^ *+' conftest.er1 >conftest.err
10462 rm -f conftest.er1
10463 cat conftest.err >&5
10464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465 (exit $ac_status); } && {
10466 test -z "$ac_c_werror_flag" ||
10467 test ! -s conftest.err
10468 } && test -s conftest$ac_exeext &&
10469 $as_test_x conftest$ac_exeext; then
10470 ac_cv_lib_pthreads_cma_open=yes
10471 else
10472 echo "$as_me: failed program was:" >&5
10473 sed 's/^/| /' conftest.$ac_ext >&5
10475 ac_cv_lib_pthreads_cma_open=no
10478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10479 conftest$ac_exeext conftest.$ac_ext
10480 LIBS=$ac_check_lib_save_LIBS
10482 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10483 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10484 if test $ac_cv_lib_pthreads_cma_open = yes; then
10485 cat >>confdefs.h <<_ACEOF
10486 #define HAVE_LIBPTHREADS 1
10487 _ACEOF
10489 LIBS="-lpthreads $LIBS"
10495 case ${host_os} in
10496 aix*)
10497 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10498 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10499 if test "${gdb_cv_bigtoc+set}" = set; then
10500 echo $ECHO_N "(cached) $ECHO_C" >&6
10501 else
10503 case $GCC in
10504 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10505 *) gdb_cv_bigtoc=-bbigtoc ;;
10506 esac
10508 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10509 cat >conftest.$ac_ext <<_ACEOF
10510 /* confdefs.h. */
10511 _ACEOF
10512 cat confdefs.h >>conftest.$ac_ext
10513 cat >>conftest.$ac_ext <<_ACEOF
10514 /* end confdefs.h. */
10517 main ()
10519 int i;
10521 return 0;
10523 _ACEOF
10524 rm -f conftest.$ac_objext conftest$ac_exeext
10525 if { (ac_try="$ac_link"
10526 case "(($ac_try" in
10527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10528 *) ac_try_echo=$ac_try;;
10529 esac
10530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10531 (eval "$ac_link") 2>conftest.er1
10532 ac_status=$?
10533 grep -v '^ *+' conftest.er1 >conftest.err
10534 rm -f conftest.er1
10535 cat conftest.err >&5
10536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10537 (exit $ac_status); } && {
10538 test -z "$ac_c_werror_flag" ||
10539 test ! -s conftest.err
10540 } && test -s conftest$ac_exeext &&
10541 $as_test_x conftest$ac_exeext; then
10543 else
10544 echo "$as_me: failed program was:" >&5
10545 sed 's/^/| /' conftest.$ac_ext >&5
10547 gdb_cv_bigtoc=
10550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10551 conftest$ac_exeext conftest.$ac_ext
10554 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10555 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10557 esac
10559 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10560 # used for the tests that follow. We set them back to REAL_CFLAGS and
10561 # REAL_CPPFLAGS later on.
10563 REAL_CPPFLAGS="$CPPFLAGS"
10565 if test "${HAVE_X11}" = "yes"; then
10566 DEFS="$C_SWITCH_X_SITE $DEFS"
10567 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10568 LIBS="$LIBX $LIBS"
10569 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10570 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10572 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10573 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10574 # but it's more convenient here to set LD_RUN_PATH
10575 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10576 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10577 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10578 export LD_RUN_PATH
10581 if test "${opsys}" = "gnu-linux"; then
10582 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10583 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10584 cat >conftest.$ac_ext <<_ACEOF
10585 /* confdefs.h. */
10586 _ACEOF
10587 cat confdefs.h >>conftest.$ac_ext
10588 cat >>conftest.$ac_ext <<_ACEOF
10589 /* end confdefs.h. */
10592 main ()
10594 XOpenDisplay ("foo");
10596 return 0;
10598 _ACEOF
10599 rm -f conftest.$ac_objext conftest$ac_exeext
10600 if { (ac_try="$ac_link"
10601 case "(($ac_try" in
10602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10603 *) ac_try_echo=$ac_try;;
10604 esac
10605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10606 (eval "$ac_link") 2>conftest.er1
10607 ac_status=$?
10608 grep -v '^ *+' conftest.er1 >conftest.err
10609 rm -f conftest.er1
10610 cat conftest.err >&5
10611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612 (exit $ac_status); } && {
10613 test -z "$ac_c_werror_flag" ||
10614 test ! -s conftest.err
10615 } && test -s conftest$ac_exeext &&
10616 $as_test_x conftest$ac_exeext; then
10617 xlinux_first_failure=no
10618 else
10619 echo "$as_me: failed program was:" >&5
10620 sed 's/^/| /' conftest.$ac_ext >&5
10622 xlinux_first_failure=yes
10625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10626 conftest$ac_exeext conftest.$ac_ext
10627 if test "${xlinux_first_failure}" = "yes"; then
10628 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10629 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10630 OLD_CPPFLAGS="$CPPFLAGS"
10631 OLD_LIBS="$LIBS"
10632 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10633 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10634 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10635 LIBS="$LIBS -b i486-linuxaout"
10636 cat >conftest.$ac_ext <<_ACEOF
10637 /* confdefs.h. */
10638 _ACEOF
10639 cat confdefs.h >>conftest.$ac_ext
10640 cat >>conftest.$ac_ext <<_ACEOF
10641 /* end confdefs.h. */
10644 main ()
10646 XOpenDisplay ("foo");
10648 return 0;
10650 _ACEOF
10651 rm -f conftest.$ac_objext conftest$ac_exeext
10652 if { (ac_try="$ac_link"
10653 case "(($ac_try" in
10654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10655 *) ac_try_echo=$ac_try;;
10656 esac
10657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10658 (eval "$ac_link") 2>conftest.er1
10659 ac_status=$?
10660 grep -v '^ *+' conftest.er1 >conftest.err
10661 rm -f conftest.er1
10662 cat conftest.err >&5
10663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664 (exit $ac_status); } && {
10665 test -z "$ac_c_werror_flag" ||
10666 test ! -s conftest.err
10667 } && test -s conftest$ac_exeext &&
10668 $as_test_x conftest$ac_exeext; then
10669 xlinux_second_failure=no
10670 else
10671 echo "$as_me: failed program was:" >&5
10672 sed 's/^/| /' conftest.$ac_ext >&5
10674 xlinux_second_failure=yes
10677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10678 conftest$ac_exeext conftest.$ac_ext
10679 if test "${xlinux_second_failure}" = "yes"; then
10680 # If we get the same failure with -b, there is no use adding -b.
10681 # So take it out. This plays safe.
10682 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10683 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10684 CPPFLAGS="$OLD_CPPFLAGS"
10685 LIBS="$OLD_LIBS"
10686 { echo "$as_me:$LINENO: result: no" >&5
10687 echo "${ECHO_T}no" >&6; }
10688 else
10689 { echo "$as_me:$LINENO: result: yes" >&5
10690 echo "${ECHO_T}yes" >&6; }
10692 else
10693 { echo "$as_me:$LINENO: result: no" >&5
10694 echo "${ECHO_T}no" >&6; }
10698 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10699 # header files included from there.
10700 { echo "$as_me:$LINENO: checking for Xkb" >&5
10701 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10702 cat >conftest.$ac_ext <<_ACEOF
10703 /* confdefs.h. */
10704 _ACEOF
10705 cat confdefs.h >>conftest.$ac_ext
10706 cat >>conftest.$ac_ext <<_ACEOF
10707 /* end confdefs.h. */
10708 #include <X11/Xlib.h>
10709 #include <X11/XKBlib.h>
10711 main ()
10713 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10715 return 0;
10717 _ACEOF
10718 rm -f conftest.$ac_objext conftest$ac_exeext
10719 if { (ac_try="$ac_link"
10720 case "(($ac_try" in
10721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10722 *) ac_try_echo=$ac_try;;
10723 esac
10724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10725 (eval "$ac_link") 2>conftest.er1
10726 ac_status=$?
10727 grep -v '^ *+' conftest.er1 >conftest.err
10728 rm -f conftest.er1
10729 cat conftest.err >&5
10730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); } && {
10732 test -z "$ac_c_werror_flag" ||
10733 test ! -s conftest.err
10734 } && test -s conftest$ac_exeext &&
10735 $as_test_x conftest$ac_exeext; then
10736 emacs_xkb=yes
10737 else
10738 echo "$as_me: failed program was:" >&5
10739 sed 's/^/| /' conftest.$ac_ext >&5
10741 emacs_xkb=no
10744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10745 conftest$ac_exeext conftest.$ac_ext
10746 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10747 echo "${ECHO_T}$emacs_xkb" >&6; }
10748 if test $emacs_xkb = yes; then
10750 cat >>confdefs.h <<\_ACEOF
10751 #define HAVE_XKBGETKEYBOARD 1
10752 _ACEOF
10760 for ac_func in XrmSetDatabase XScreenResourceString \
10761 XScreenNumberOfScreen XSetWMProtocols
10763 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10764 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10765 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10766 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10767 echo $ECHO_N "(cached) $ECHO_C" >&6
10768 else
10769 cat >conftest.$ac_ext <<_ACEOF
10770 /* confdefs.h. */
10771 _ACEOF
10772 cat confdefs.h >>conftest.$ac_ext
10773 cat >>conftest.$ac_ext <<_ACEOF
10774 /* end confdefs.h. */
10775 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10776 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10777 #define $ac_func innocuous_$ac_func
10779 /* System header to define __stub macros and hopefully few prototypes,
10780 which can conflict with char $ac_func (); below.
10781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10782 <limits.h> exists even on freestanding compilers. */
10784 #ifdef __STDC__
10785 # include <limits.h>
10786 #else
10787 # include <assert.h>
10788 #endif
10790 #undef $ac_func
10792 /* Override any GCC internal prototype to avoid an error.
10793 Use char because int might match the return type of a GCC
10794 builtin and then its argument prototype would still apply. */
10795 #ifdef __cplusplus
10796 extern "C"
10797 #endif
10798 char $ac_func ();
10799 /* The GNU C library defines this for functions which it implements
10800 to always fail with ENOSYS. Some functions are actually named
10801 something starting with __ and the normal name is an alias. */
10802 #if defined __stub_$ac_func || defined __stub___$ac_func
10803 choke me
10804 #endif
10807 main ()
10809 return $ac_func ();
10811 return 0;
10813 _ACEOF
10814 rm -f conftest.$ac_objext conftest$ac_exeext
10815 if { (ac_try="$ac_link"
10816 case "(($ac_try" in
10817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10818 *) ac_try_echo=$ac_try;;
10819 esac
10820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10821 (eval "$ac_link") 2>conftest.er1
10822 ac_status=$?
10823 grep -v '^ *+' conftest.er1 >conftest.err
10824 rm -f conftest.er1
10825 cat conftest.err >&5
10826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827 (exit $ac_status); } && {
10828 test -z "$ac_c_werror_flag" ||
10829 test ! -s conftest.err
10830 } && test -s conftest$ac_exeext &&
10831 $as_test_x conftest$ac_exeext; then
10832 eval "$as_ac_var=yes"
10833 else
10834 echo "$as_me: failed program was:" >&5
10835 sed 's/^/| /' conftest.$ac_ext >&5
10837 eval "$as_ac_var=no"
10840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10841 conftest$ac_exeext conftest.$ac_ext
10843 ac_res=`eval echo '${'$as_ac_var'}'`
10844 { echo "$as_me:$LINENO: result: $ac_res" >&5
10845 echo "${ECHO_T}$ac_res" >&6; }
10846 if test `eval echo '${'$as_ac_var'}'` = yes; then
10847 cat >>confdefs.h <<_ACEOF
10848 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10849 _ACEOF
10852 done
10856 if test "${window_system}" = "x11"; then
10857 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10858 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10859 if test "${emacs_cv_x11_version_6+set}" = set; then
10860 echo $ECHO_N "(cached) $ECHO_C" >&6
10861 else
10862 cat >conftest.$ac_ext <<_ACEOF
10863 /* confdefs.h. */
10864 _ACEOF
10865 cat confdefs.h >>conftest.$ac_ext
10866 cat >>conftest.$ac_ext <<_ACEOF
10867 /* end confdefs.h. */
10868 #include <X11/Xlib.h>
10870 main ()
10872 #if XlibSpecificationRelease < 6
10873 fail;
10874 #endif
10877 return 0;
10879 _ACEOF
10880 rm -f conftest.$ac_objext conftest$ac_exeext
10881 if { (ac_try="$ac_link"
10882 case "(($ac_try" in
10883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10884 *) ac_try_echo=$ac_try;;
10885 esac
10886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10887 (eval "$ac_link") 2>conftest.er1
10888 ac_status=$?
10889 grep -v '^ *+' conftest.er1 >conftest.err
10890 rm -f conftest.er1
10891 cat conftest.err >&5
10892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893 (exit $ac_status); } && {
10894 test -z "$ac_c_werror_flag" ||
10895 test ! -s conftest.err
10896 } && test -s conftest$ac_exeext &&
10897 $as_test_x conftest$ac_exeext; then
10898 emacs_cv_x11_version_6=yes
10899 else
10900 echo "$as_me: failed program was:" >&5
10901 sed 's/^/| /' conftest.$ac_ext >&5
10903 emacs_cv_x11_version_6=no
10906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10907 conftest$ac_exeext conftest.$ac_ext
10910 if test $emacs_cv_x11_version_6 = yes; then
10911 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10912 echo "${ECHO_T}6 or newer" >&6; }
10914 cat >>confdefs.h <<\_ACEOF
10915 #define HAVE_X11R6 1
10916 _ACEOF
10918 else
10919 { echo "$as_me:$LINENO: result: before 6" >&5
10920 echo "${ECHO_T}before 6" >&6; }
10925 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10926 HAVE_RSVG=no
10927 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
10928 if test "${with_rsvg}" != "no"; then
10929 RSVG_REQUIRED=2.11.0
10930 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10933 succeeded=no
10935 # Extract the first word of "pkg-config", so it can be a program name with args.
10936 set dummy pkg-config; ac_word=$2
10937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10939 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10940 echo $ECHO_N "(cached) $ECHO_C" >&6
10941 else
10942 case $PKG_CONFIG in
10943 [\\/]* | ?:[\\/]*)
10944 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10948 for as_dir in $PATH
10950 IFS=$as_save_IFS
10951 test -z "$as_dir" && as_dir=.
10952 for ac_exec_ext in '' $ac_executable_extensions; do
10953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10954 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10956 break 2
10958 done
10959 done
10960 IFS=$as_save_IFS
10962 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10964 esac
10966 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10967 if test -n "$PKG_CONFIG"; then
10968 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10969 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10970 else
10971 { echo "$as_me:$LINENO: result: no" >&5
10972 echo "${ECHO_T}no" >&6; }
10977 if test "$PKG_CONFIG" = "no" ; then
10979 else
10980 PKG_CONFIG_MIN_VERSION=0.9.0
10981 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10982 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10983 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10985 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10986 { echo "$as_me:$LINENO: result: yes" >&5
10987 echo "${ECHO_T}yes" >&6; }
10988 succeeded=yes
10990 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
10991 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
10992 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10993 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
10994 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10996 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
10997 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
10998 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10999 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11000 echo "${ECHO_T}$RSVG_LIBS" >&6; }
11001 else
11002 { echo "$as_me:$LINENO: result: no" >&5
11003 echo "${ECHO_T}no" >&6; }
11004 RSVG_CFLAGS=""
11005 RSVG_LIBS=""
11006 ## If we have a custom action on failure, don't print errors, but
11007 ## do set a variable so people can do so.
11008 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11014 else
11015 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11016 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11020 if test $succeeded = yes; then
11022 else
11029 if test ".${RSVG_CFLAGS}" != "."; then
11030 HAVE_RSVG=yes
11032 cat >>confdefs.h <<\_ACEOF
11033 #define HAVE_RSVG 1
11034 _ACEOF
11036 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11037 LIBS="$RSVG_LIBS $LIBS"
11043 HAVE_GTK=no
11044 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11045 GLIB_REQUIRED=2.6
11046 GTK_REQUIRED=2.6
11047 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11050 succeeded=no
11052 # Extract the first word of "pkg-config", so it can be a program name with args.
11053 set dummy pkg-config; ac_word=$2
11054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11056 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11057 echo $ECHO_N "(cached) $ECHO_C" >&6
11058 else
11059 case $PKG_CONFIG in
11060 [\\/]* | ?:[\\/]*)
11061 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11065 for as_dir in $PATH
11067 IFS=$as_save_IFS
11068 test -z "$as_dir" && as_dir=.
11069 for ac_exec_ext in '' $ac_executable_extensions; do
11070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11071 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11073 break 2
11075 done
11076 done
11077 IFS=$as_save_IFS
11079 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11081 esac
11083 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11084 if test -n "$PKG_CONFIG"; then
11085 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11086 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11087 else
11088 { echo "$as_me:$LINENO: result: no" >&5
11089 echo "${ECHO_T}no" >&6; }
11094 if test "$PKG_CONFIG" = "no" ; then
11095 pkg_check_gtk=no
11096 else
11097 PKG_CONFIG_MIN_VERSION=0.9.0
11098 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11099 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11100 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11102 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11103 { echo "$as_me:$LINENO: result: yes" >&5
11104 echo "${ECHO_T}yes" >&6; }
11105 succeeded=yes
11107 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11108 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11109 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11110 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11111 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11113 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11114 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11115 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11116 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11117 echo "${ECHO_T}$GTK_LIBS" >&6; }
11118 else
11119 { echo "$as_me:$LINENO: result: no" >&5
11120 echo "${ECHO_T}no" >&6; }
11121 GTK_CFLAGS=""
11122 GTK_LIBS=""
11123 ## If we have a custom action on failure, don't print errors, but
11124 ## do set a variable so people can do so.
11125 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11131 else
11132 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11133 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11137 if test $succeeded = yes; then
11138 pkg_check_gtk=yes
11139 else
11140 pkg_check_gtk=no
11143 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11144 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11145 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11146 { (exit 1); exit 1; }; }
11151 if test x"$pkg_check_gtk" = xyes; then
11155 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11156 CFLAGS="$CFLAGS $GTK_CFLAGS"
11157 LIBS="$GTK_LIBS $LIBS"
11158 GTK_COMPILES=no
11160 for ac_func in gtk_main
11162 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11163 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11164 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11165 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11166 echo $ECHO_N "(cached) $ECHO_C" >&6
11167 else
11168 cat >conftest.$ac_ext <<_ACEOF
11169 /* confdefs.h. */
11170 _ACEOF
11171 cat confdefs.h >>conftest.$ac_ext
11172 cat >>conftest.$ac_ext <<_ACEOF
11173 /* end confdefs.h. */
11174 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11176 #define $ac_func innocuous_$ac_func
11178 /* System header to define __stub macros and hopefully few prototypes,
11179 which can conflict with char $ac_func (); below.
11180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11181 <limits.h> exists even on freestanding compilers. */
11183 #ifdef __STDC__
11184 # include <limits.h>
11185 #else
11186 # include <assert.h>
11187 #endif
11189 #undef $ac_func
11191 /* Override any GCC internal prototype to avoid an error.
11192 Use char because int might match the return type of a GCC
11193 builtin and then its argument prototype would still apply. */
11194 #ifdef __cplusplus
11195 extern "C"
11196 #endif
11197 char $ac_func ();
11198 /* The GNU C library defines this for functions which it implements
11199 to always fail with ENOSYS. Some functions are actually named
11200 something starting with __ and the normal name is an alias. */
11201 #if defined __stub_$ac_func || defined __stub___$ac_func
11202 choke me
11203 #endif
11206 main ()
11208 return $ac_func ();
11210 return 0;
11212 _ACEOF
11213 rm -f conftest.$ac_objext conftest$ac_exeext
11214 if { (ac_try="$ac_link"
11215 case "(($ac_try" in
11216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11217 *) ac_try_echo=$ac_try;;
11218 esac
11219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11220 (eval "$ac_link") 2>conftest.er1
11221 ac_status=$?
11222 grep -v '^ *+' conftest.er1 >conftest.err
11223 rm -f conftest.er1
11224 cat conftest.err >&5
11225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226 (exit $ac_status); } && {
11227 test -z "$ac_c_werror_flag" ||
11228 test ! -s conftest.err
11229 } && test -s conftest$ac_exeext &&
11230 $as_test_x conftest$ac_exeext; then
11231 eval "$as_ac_var=yes"
11232 else
11233 echo "$as_me: failed program was:" >&5
11234 sed 's/^/| /' conftest.$ac_ext >&5
11236 eval "$as_ac_var=no"
11239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11240 conftest$ac_exeext conftest.$ac_ext
11242 ac_res=`eval echo '${'$as_ac_var'}'`
11243 { echo "$as_me:$LINENO: result: $ac_res" >&5
11244 echo "${ECHO_T}$ac_res" >&6; }
11245 if test `eval echo '${'$as_ac_var'}'` = yes; then
11246 cat >>confdefs.h <<_ACEOF
11247 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11248 _ACEOF
11249 GTK_COMPILES=yes
11251 done
11253 if test "${GTK_COMPILES}" != "yes"; then
11254 if test "$USE_X_TOOLKIT" != "maybe"; then
11255 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11256 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11257 { (exit 1); exit 1; }; };
11259 else
11260 HAVE_GTK=yes
11262 cat >>confdefs.h <<\_ACEOF
11263 #define USE_GTK 1
11264 _ACEOF
11266 USE_X_TOOLKIT=none
11267 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11269 else
11270 { echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11271 closing open displays. This is no problem if you just use
11272 one display, but if you use more than one and close one of them
11273 Emacs may crash." >&5
11274 echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11275 closing open displays. This is no problem if you just use
11276 one display, but if you use more than one and close one of them
11277 Emacs may crash." >&2;}
11278 sleep 3
11285 if test "${HAVE_GTK}" = "yes"; then
11287 if test "$with_toolkit_scroll_bars" != no; then
11288 with_toolkit_scroll_bars=yes
11291 HAVE_GTK_MULTIDISPLAY=no
11293 for ac_func in gdk_display_open
11295 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11296 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11297 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11298 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11299 echo $ECHO_N "(cached) $ECHO_C" >&6
11300 else
11301 cat >conftest.$ac_ext <<_ACEOF
11302 /* confdefs.h. */
11303 _ACEOF
11304 cat confdefs.h >>conftest.$ac_ext
11305 cat >>conftest.$ac_ext <<_ACEOF
11306 /* end confdefs.h. */
11307 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11309 #define $ac_func innocuous_$ac_func
11311 /* System header to define __stub macros and hopefully few prototypes,
11312 which can conflict with char $ac_func (); below.
11313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11314 <limits.h> exists even on freestanding compilers. */
11316 #ifdef __STDC__
11317 # include <limits.h>
11318 #else
11319 # include <assert.h>
11320 #endif
11322 #undef $ac_func
11324 /* Override any GCC internal prototype to avoid an error.
11325 Use char because int might match the return type of a GCC
11326 builtin and then its argument prototype would still apply. */
11327 #ifdef __cplusplus
11328 extern "C"
11329 #endif
11330 char $ac_func ();
11331 /* The GNU C library defines this for functions which it implements
11332 to always fail with ENOSYS. Some functions are actually named
11333 something starting with __ and the normal name is an alias. */
11334 #if defined __stub_$ac_func || defined __stub___$ac_func
11335 choke me
11336 #endif
11339 main ()
11341 return $ac_func ();
11343 return 0;
11345 _ACEOF
11346 rm -f conftest.$ac_objext conftest$ac_exeext
11347 if { (ac_try="$ac_link"
11348 case "(($ac_try" in
11349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11350 *) ac_try_echo=$ac_try;;
11351 esac
11352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11353 (eval "$ac_link") 2>conftest.er1
11354 ac_status=$?
11355 grep -v '^ *+' conftest.er1 >conftest.err
11356 rm -f conftest.er1
11357 cat conftest.err >&5
11358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359 (exit $ac_status); } && {
11360 test -z "$ac_c_werror_flag" ||
11361 test ! -s conftest.err
11362 } && test -s conftest$ac_exeext &&
11363 $as_test_x conftest$ac_exeext; then
11364 eval "$as_ac_var=yes"
11365 else
11366 echo "$as_me: failed program was:" >&5
11367 sed 's/^/| /' conftest.$ac_ext >&5
11369 eval "$as_ac_var=no"
11372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11373 conftest$ac_exeext conftest.$ac_ext
11375 ac_res=`eval echo '${'$as_ac_var'}'`
11376 { echo "$as_me:$LINENO: result: $ac_res" >&5
11377 echo "${ECHO_T}$ac_res" >&6; }
11378 if test `eval echo '${'$as_ac_var'}'` = yes; then
11379 cat >>confdefs.h <<_ACEOF
11380 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11381 _ACEOF
11382 HAVE_GTK_MULTIDISPLAY=yes
11384 done
11386 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11388 cat >>confdefs.h <<\_ACEOF
11389 #define HAVE_GTK_MULTIDISPLAY 1
11390 _ACEOF
11394 HAVE_GTK_FILE_SELECTION=no
11395 { echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
11396 echo $ECHO_N "checking whether GTK_TYPE_FILE_SELECTION is declared... $ECHO_C" >&6; }
11397 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
11398 echo $ECHO_N "(cached) $ECHO_C" >&6
11399 else
11400 cat >conftest.$ac_ext <<_ACEOF
11401 /* confdefs.h. */
11402 _ACEOF
11403 cat confdefs.h >>conftest.$ac_ext
11404 cat >>conftest.$ac_ext <<_ACEOF
11405 /* end confdefs.h. */
11406 $ac_includes_default
11407 #include <gtk/gtk.h>
11410 main ()
11412 #ifndef GTK_TYPE_FILE_SELECTION
11413 (void) GTK_TYPE_FILE_SELECTION;
11414 #endif
11417 return 0;
11419 _ACEOF
11420 rm -f conftest.$ac_objext
11421 if { (ac_try="$ac_compile"
11422 case "(($ac_try" in
11423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11424 *) ac_try_echo=$ac_try;;
11425 esac
11426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11427 (eval "$ac_compile") 2>conftest.er1
11428 ac_status=$?
11429 grep -v '^ *+' conftest.er1 >conftest.err
11430 rm -f conftest.er1
11431 cat conftest.err >&5
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); } && {
11434 test -z "$ac_c_werror_flag" ||
11435 test ! -s conftest.err
11436 } && test -s conftest.$ac_objext; then
11437 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
11438 else
11439 echo "$as_me: failed program was:" >&5
11440 sed 's/^/| /' conftest.$ac_ext >&5
11442 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
11445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11447 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
11448 echo "${ECHO_T}$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
11449 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
11450 HAVE_GTK_FILE_SELECTION=yes
11451 else
11452 HAVE_GTK_FILE_SELECTION=no
11455 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11457 for ac_func in gtk_file_selection_new
11459 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11460 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11461 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11462 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11463 echo $ECHO_N "(cached) $ECHO_C" >&6
11464 else
11465 cat >conftest.$ac_ext <<_ACEOF
11466 /* confdefs.h. */
11467 _ACEOF
11468 cat confdefs.h >>conftest.$ac_ext
11469 cat >>conftest.$ac_ext <<_ACEOF
11470 /* end confdefs.h. */
11471 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11472 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11473 #define $ac_func innocuous_$ac_func
11475 /* System header to define __stub macros and hopefully few prototypes,
11476 which can conflict with char $ac_func (); below.
11477 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11478 <limits.h> exists even on freestanding compilers. */
11480 #ifdef __STDC__
11481 # include <limits.h>
11482 #else
11483 # include <assert.h>
11484 #endif
11486 #undef $ac_func
11488 /* Override any GCC internal prototype to avoid an error.
11489 Use char because int might match the return type of a GCC
11490 builtin and then its argument prototype would still apply. */
11491 #ifdef __cplusplus
11492 extern "C"
11493 #endif
11494 char $ac_func ();
11495 /* The GNU C library defines this for functions which it implements
11496 to always fail with ENOSYS. Some functions are actually named
11497 something starting with __ and the normal name is an alias. */
11498 #if defined __stub_$ac_func || defined __stub___$ac_func
11499 choke me
11500 #endif
11503 main ()
11505 return $ac_func ();
11507 return 0;
11509 _ACEOF
11510 rm -f conftest.$ac_objext conftest$ac_exeext
11511 if { (ac_try="$ac_link"
11512 case "(($ac_try" in
11513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11514 *) ac_try_echo=$ac_try;;
11515 esac
11516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11517 (eval "$ac_link") 2>conftest.er1
11518 ac_status=$?
11519 grep -v '^ *+' conftest.er1 >conftest.err
11520 rm -f conftest.er1
11521 cat conftest.err >&5
11522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 (exit $ac_status); } && {
11524 test -z "$ac_c_werror_flag" ||
11525 test ! -s conftest.err
11526 } && test -s conftest$ac_exeext &&
11527 $as_test_x conftest$ac_exeext; then
11528 eval "$as_ac_var=yes"
11529 else
11530 echo "$as_me: failed program was:" >&5
11531 sed 's/^/| /' conftest.$ac_ext >&5
11533 eval "$as_ac_var=no"
11536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11537 conftest$ac_exeext conftest.$ac_ext
11539 ac_res=`eval echo '${'$as_ac_var'}'`
11540 { echo "$as_me:$LINENO: result: $ac_res" >&5
11541 echo "${ECHO_T}$ac_res" >&6; }
11542 if test `eval echo '${'$as_ac_var'}'` = yes; then
11543 cat >>confdefs.h <<_ACEOF
11544 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11545 _ACEOF
11546 HAVE_GTK_FILE_SELECTION=yes
11547 else
11548 HAVE_GTK_FILE_SELECTION=no
11550 done
11554 HAVE_GTK_FILE_CHOOSER=no
11555 { echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
11556 echo $ECHO_N "checking whether GTK_TYPE_FILE_CHOOSER is declared... $ECHO_C" >&6; }
11557 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
11558 echo $ECHO_N "(cached) $ECHO_C" >&6
11559 else
11560 cat >conftest.$ac_ext <<_ACEOF
11561 /* confdefs.h. */
11562 _ACEOF
11563 cat confdefs.h >>conftest.$ac_ext
11564 cat >>conftest.$ac_ext <<_ACEOF
11565 /* end confdefs.h. */
11566 $ac_includes_default
11567 #include <gtk/gtk.h>
11570 main ()
11572 #ifndef GTK_TYPE_FILE_CHOOSER
11573 (void) GTK_TYPE_FILE_CHOOSER;
11574 #endif
11577 return 0;
11579 _ACEOF
11580 rm -f conftest.$ac_objext
11581 if { (ac_try="$ac_compile"
11582 case "(($ac_try" in
11583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11584 *) ac_try_echo=$ac_try;;
11585 esac
11586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11587 (eval "$ac_compile") 2>conftest.er1
11588 ac_status=$?
11589 grep -v '^ *+' conftest.er1 >conftest.err
11590 rm -f conftest.er1
11591 cat conftest.err >&5
11592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593 (exit $ac_status); } && {
11594 test -z "$ac_c_werror_flag" ||
11595 test ! -s conftest.err
11596 } && test -s conftest.$ac_objext; then
11597 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
11598 else
11599 echo "$as_me: failed program was:" >&5
11600 sed 's/^/| /' conftest.$ac_ext >&5
11602 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
11605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11607 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
11608 echo "${ECHO_T}$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
11609 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
11610 HAVE_GTK_FILE_CHOOSER=yes
11611 else
11612 HAVE_GTK_FILE_CHOOSER=no
11615 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11617 for ac_func in gtk_file_chooser_dialog_new
11619 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11620 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11621 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11622 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11623 echo $ECHO_N "(cached) $ECHO_C" >&6
11624 else
11625 cat >conftest.$ac_ext <<_ACEOF
11626 /* confdefs.h. */
11627 _ACEOF
11628 cat confdefs.h >>conftest.$ac_ext
11629 cat >>conftest.$ac_ext <<_ACEOF
11630 /* end confdefs.h. */
11631 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11632 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11633 #define $ac_func innocuous_$ac_func
11635 /* System header to define __stub macros and hopefully few prototypes,
11636 which can conflict with char $ac_func (); below.
11637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11638 <limits.h> exists even on freestanding compilers. */
11640 #ifdef __STDC__
11641 # include <limits.h>
11642 #else
11643 # include <assert.h>
11644 #endif
11646 #undef $ac_func
11648 /* Override any GCC internal prototype to avoid an error.
11649 Use char because int might match the return type of a GCC
11650 builtin and then its argument prototype would still apply. */
11651 #ifdef __cplusplus
11652 extern "C"
11653 #endif
11654 char $ac_func ();
11655 /* The GNU C library defines this for functions which it implements
11656 to always fail with ENOSYS. Some functions are actually named
11657 something starting with __ and the normal name is an alias. */
11658 #if defined __stub_$ac_func || defined __stub___$ac_func
11659 choke me
11660 #endif
11663 main ()
11665 return $ac_func ();
11667 return 0;
11669 _ACEOF
11670 rm -f conftest.$ac_objext conftest$ac_exeext
11671 if { (ac_try="$ac_link"
11672 case "(($ac_try" in
11673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11674 *) ac_try_echo=$ac_try;;
11675 esac
11676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11677 (eval "$ac_link") 2>conftest.er1
11678 ac_status=$?
11679 grep -v '^ *+' conftest.er1 >conftest.err
11680 rm -f conftest.er1
11681 cat conftest.err >&5
11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); } && {
11684 test -z "$ac_c_werror_flag" ||
11685 test ! -s conftest.err
11686 } && test -s conftest$ac_exeext &&
11687 $as_test_x conftest$ac_exeext; then
11688 eval "$as_ac_var=yes"
11689 else
11690 echo "$as_me: failed program was:" >&5
11691 sed 's/^/| /' conftest.$ac_ext >&5
11693 eval "$as_ac_var=no"
11696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11697 conftest$ac_exeext conftest.$ac_ext
11699 ac_res=`eval echo '${'$as_ac_var'}'`
11700 { echo "$as_me:$LINENO: result: $ac_res" >&5
11701 echo "${ECHO_T}$ac_res" >&6; }
11702 if test `eval echo '${'$as_ac_var'}'` = yes; then
11703 cat >>confdefs.h <<_ACEOF
11704 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11705 _ACEOF
11706 HAVE_GTK_FILE_CHOOSER=yes
11707 else
11708 HAVE_GTK_FILE_CHOOSER=no
11710 done
11714 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11715 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11717 cat >>confdefs.h <<\_ACEOF
11718 #define HAVE_GTK_FILE_BOTH 1
11719 _ACEOF
11723 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11724 HAVE_GTK_AND_PTHREAD=no
11726 for ac_header in pthread.h
11728 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11730 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11733 echo $ECHO_N "(cached) $ECHO_C" >&6
11735 ac_res=`eval echo '${'$as_ac_Header'}'`
11736 { echo "$as_me:$LINENO: result: $ac_res" >&5
11737 echo "${ECHO_T}$ac_res" >&6; }
11738 else
11739 # Is the header compilable?
11740 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11741 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11742 cat >conftest.$ac_ext <<_ACEOF
11743 /* confdefs.h. */
11744 _ACEOF
11745 cat confdefs.h >>conftest.$ac_ext
11746 cat >>conftest.$ac_ext <<_ACEOF
11747 /* end confdefs.h. */
11748 $ac_includes_default
11749 #include <$ac_header>
11750 _ACEOF
11751 rm -f conftest.$ac_objext
11752 if { (ac_try="$ac_compile"
11753 case "(($ac_try" in
11754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11755 *) ac_try_echo=$ac_try;;
11756 esac
11757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11758 (eval "$ac_compile") 2>conftest.er1
11759 ac_status=$?
11760 grep -v '^ *+' conftest.er1 >conftest.err
11761 rm -f conftest.er1
11762 cat conftest.err >&5
11763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764 (exit $ac_status); } && {
11765 test -z "$ac_c_werror_flag" ||
11766 test ! -s conftest.err
11767 } && test -s conftest.$ac_objext; then
11768 ac_header_compiler=yes
11769 else
11770 echo "$as_me: failed program was:" >&5
11771 sed 's/^/| /' conftest.$ac_ext >&5
11773 ac_header_compiler=no
11776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11777 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11778 echo "${ECHO_T}$ac_header_compiler" >&6; }
11780 # Is the header present?
11781 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11782 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11783 cat >conftest.$ac_ext <<_ACEOF
11784 /* confdefs.h. */
11785 _ACEOF
11786 cat confdefs.h >>conftest.$ac_ext
11787 cat >>conftest.$ac_ext <<_ACEOF
11788 /* end confdefs.h. */
11789 #include <$ac_header>
11790 _ACEOF
11791 if { (ac_try="$ac_cpp conftest.$ac_ext"
11792 case "(($ac_try" in
11793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11794 *) ac_try_echo=$ac_try;;
11795 esac
11796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11797 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11798 ac_status=$?
11799 grep -v '^ *+' conftest.er1 >conftest.err
11800 rm -f conftest.er1
11801 cat conftest.err >&5
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); } >/dev/null && {
11804 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11805 test ! -s conftest.err
11806 }; then
11807 ac_header_preproc=yes
11808 else
11809 echo "$as_me: failed program was:" >&5
11810 sed 's/^/| /' conftest.$ac_ext >&5
11812 ac_header_preproc=no
11815 rm -f conftest.err conftest.$ac_ext
11816 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11817 echo "${ECHO_T}$ac_header_preproc" >&6; }
11819 # So? What about this header?
11820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11821 yes:no: )
11822 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11823 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11824 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11825 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11826 ac_header_preproc=yes
11828 no:yes:* )
11829 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11830 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11831 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11832 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11833 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11834 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11835 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11836 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11838 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11839 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11840 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11843 esac
11844 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11845 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11847 echo $ECHO_N "(cached) $ECHO_C" >&6
11848 else
11849 eval "$as_ac_Header=\$ac_header_preproc"
11851 ac_res=`eval echo '${'$as_ac_Header'}'`
11852 { echo "$as_me:$LINENO: result: $ac_res" >&5
11853 echo "${ECHO_T}$ac_res" >&6; }
11856 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11857 cat >>confdefs.h <<_ACEOF
11858 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11859 _ACEOF
11863 done
11865 if test "$ac_cv_header_pthread_h"; then
11866 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11867 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11868 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11869 echo $ECHO_N "(cached) $ECHO_C" >&6
11870 else
11871 ac_check_lib_save_LIBS=$LIBS
11872 LIBS="-lpthread $LIBS"
11873 cat >conftest.$ac_ext <<_ACEOF
11874 /* confdefs.h. */
11875 _ACEOF
11876 cat confdefs.h >>conftest.$ac_ext
11877 cat >>conftest.$ac_ext <<_ACEOF
11878 /* end confdefs.h. */
11880 /* Override any GCC internal prototype to avoid an error.
11881 Use char because int might match the return type of a GCC
11882 builtin and then its argument prototype would still apply. */
11883 #ifdef __cplusplus
11884 extern "C"
11885 #endif
11886 char pthread_self ();
11888 main ()
11890 return pthread_self ();
11892 return 0;
11894 _ACEOF
11895 rm -f conftest.$ac_objext conftest$ac_exeext
11896 if { (ac_try="$ac_link"
11897 case "(($ac_try" in
11898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11899 *) ac_try_echo=$ac_try;;
11900 esac
11901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11902 (eval "$ac_link") 2>conftest.er1
11903 ac_status=$?
11904 grep -v '^ *+' conftest.er1 >conftest.err
11905 rm -f conftest.er1
11906 cat conftest.err >&5
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); } && {
11909 test -z "$ac_c_werror_flag" ||
11910 test ! -s conftest.err
11911 } && test -s conftest$ac_exeext &&
11912 $as_test_x conftest$ac_exeext; then
11913 ac_cv_lib_pthread_pthread_self=yes
11914 else
11915 echo "$as_me: failed program was:" >&5
11916 sed 's/^/| /' conftest.$ac_ext >&5
11918 ac_cv_lib_pthread_pthread_self=no
11921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11922 conftest$ac_exeext conftest.$ac_ext
11923 LIBS=$ac_check_lib_save_LIBS
11925 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11926 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11927 if test $ac_cv_lib_pthread_pthread_self = yes; then
11928 HAVE_GTK_AND_PTHREAD=yes
11932 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11933 case "${canonical}" in
11934 *-hpux*) ;;
11935 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11936 esac
11938 cat >>confdefs.h <<\_ACEOF
11939 #define HAVE_GTK_AND_PTHREAD 1
11940 _ACEOF
11946 HAVE_DBUS=no
11947 if test "${with_dbus}" = "yes"; then
11949 succeeded=no
11951 # Extract the first word of "pkg-config", so it can be a program name with args.
11952 set dummy pkg-config; ac_word=$2
11953 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11955 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11956 echo $ECHO_N "(cached) $ECHO_C" >&6
11957 else
11958 case $PKG_CONFIG in
11959 [\\/]* | ?:[\\/]*)
11960 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11964 for as_dir in $PATH
11966 IFS=$as_save_IFS
11967 test -z "$as_dir" && as_dir=.
11968 for ac_exec_ext in '' $ac_executable_extensions; do
11969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11970 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11972 break 2
11974 done
11975 done
11976 IFS=$as_save_IFS
11978 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11980 esac
11982 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11983 if test -n "$PKG_CONFIG"; then
11984 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11985 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11986 else
11987 { echo "$as_me:$LINENO: result: no" >&5
11988 echo "${ECHO_T}no" >&6; }
11993 if test "$PKG_CONFIG" = "no" ; then
11994 HAVE_DBUS=no
11995 else
11996 PKG_CONFIG_MIN_VERSION=0.9.0
11997 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11998 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11999 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
12001 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12002 { echo "$as_me:$LINENO: result: yes" >&5
12003 echo "${ECHO_T}yes" >&6; }
12004 succeeded=yes
12006 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12007 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
12008 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12009 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12010 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
12012 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12013 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
12014 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12015 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12016 echo "${ECHO_T}$DBUS_LIBS" >&6; }
12017 else
12018 { echo "$as_me:$LINENO: result: no" >&5
12019 echo "${ECHO_T}no" >&6; }
12020 DBUS_CFLAGS=""
12021 DBUS_LIBS=""
12022 ## If we have a custom action on failure, don't print errors, but
12023 ## do set a variable so people can do so.
12024 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12030 else
12031 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12032 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12036 if test $succeeded = yes; then
12037 HAVE_DBUS=yes
12038 else
12039 HAVE_DBUS=no
12042 if test "$HAVE_DBUS" = yes; then
12044 cat >>confdefs.h <<\_ACEOF
12045 #define HAVE_DBUS 1
12046 _ACEOF
12051 HAVE_XAW3D=no
12052 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12053 if test "$with_xaw3d" != no; then
12054 { echo "$as_me:$LINENO: checking for xaw3d" >&5
12055 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
12056 if test "${emacs_cv_xaw3d+set}" = set; then
12057 echo $ECHO_N "(cached) $ECHO_C" >&6
12058 else
12059 cat >conftest.$ac_ext <<_ACEOF
12060 /* confdefs.h. */
12061 _ACEOF
12062 cat confdefs.h >>conftest.$ac_ext
12063 cat >>conftest.$ac_ext <<_ACEOF
12064 /* end confdefs.h. */
12066 #include <X11/Intrinsic.h>
12067 #include <X11/Xaw3d/Simple.h>
12069 main ()
12073 return 0;
12075 _ACEOF
12076 rm -f conftest.$ac_objext conftest$ac_exeext
12077 if { (ac_try="$ac_link"
12078 case "(($ac_try" in
12079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12080 *) ac_try_echo=$ac_try;;
12081 esac
12082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12083 (eval "$ac_link") 2>conftest.er1
12084 ac_status=$?
12085 grep -v '^ *+' conftest.er1 >conftest.err
12086 rm -f conftest.er1
12087 cat conftest.err >&5
12088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089 (exit $ac_status); } && {
12090 test -z "$ac_c_werror_flag" ||
12091 test ! -s conftest.err
12092 } && test -s conftest$ac_exeext &&
12093 $as_test_x conftest$ac_exeext; then
12094 emacs_cv_xaw3d=yes
12095 else
12096 echo "$as_me: failed program was:" >&5
12097 sed 's/^/| /' conftest.$ac_ext >&5
12099 emacs_cv_xaw3d=no
12102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12103 conftest$ac_exeext conftest.$ac_ext
12106 else
12107 emacs_cv_xaw3d=no
12109 if test $emacs_cv_xaw3d = yes; then
12110 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12111 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12112 USE_X_TOOLKIT=LUCID
12113 HAVE_XAW3D=yes
12115 cat >>confdefs.h <<\_ACEOF
12116 #define HAVE_XAW3D 1
12117 _ACEOF
12119 else
12120 { echo "$as_me:$LINENO: result: no" >&5
12121 echo "${ECHO_T}no" >&6; }
12122 { echo "$as_me:$LINENO: checking for libXaw" >&5
12123 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
12124 if test "${emacs_cv_xaw+set}" = set; then
12125 echo $ECHO_N "(cached) $ECHO_C" >&6
12126 else
12127 cat >conftest.$ac_ext <<_ACEOF
12128 /* confdefs.h. */
12129 _ACEOF
12130 cat confdefs.h >>conftest.$ac_ext
12131 cat >>conftest.$ac_ext <<_ACEOF
12132 /* end confdefs.h. */
12134 #include <X11/Intrinsic.h>
12135 #include <X11/Xaw/Simple.h>
12137 main ()
12141 return 0;
12143 _ACEOF
12144 rm -f conftest.$ac_objext conftest$ac_exeext
12145 if { (ac_try="$ac_link"
12146 case "(($ac_try" in
12147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12148 *) ac_try_echo=$ac_try;;
12149 esac
12150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12151 (eval "$ac_link") 2>conftest.er1
12152 ac_status=$?
12153 grep -v '^ *+' conftest.er1 >conftest.err
12154 rm -f conftest.er1
12155 cat conftest.err >&5
12156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157 (exit $ac_status); } && {
12158 test -z "$ac_c_werror_flag" ||
12159 test ! -s conftest.err
12160 } && test -s conftest$ac_exeext &&
12161 $as_test_x conftest$ac_exeext; then
12162 emacs_cv_xaw=yes
12163 else
12164 echo "$as_me: failed program was:" >&5
12165 sed 's/^/| /' conftest.$ac_ext >&5
12167 emacs_cv_xaw=no
12170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12171 conftest$ac_exeext conftest.$ac_ext
12174 if test $emacs_cv_xaw = yes; then
12175 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12176 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12177 USE_X_TOOLKIT=LUCID
12178 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12179 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12180 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12181 { (exit 1); exit 1; }; }
12182 else
12183 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12184 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
12185 USE_X_TOOLKIT=none
12190 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12192 if test "${USE_X_TOOLKIT}" != "none"; then
12193 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12194 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12195 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12196 echo $ECHO_N "(cached) $ECHO_C" >&6
12197 else
12198 cat >conftest.$ac_ext <<_ACEOF
12199 /* confdefs.h. */
12200 _ACEOF
12201 cat confdefs.h >>conftest.$ac_ext
12202 cat >>conftest.$ac_ext <<_ACEOF
12203 /* end confdefs.h. */
12204 #include <X11/Intrinsic.h>
12206 main ()
12208 #if XtSpecificationRelease < 6
12209 fail;
12210 #endif
12213 return 0;
12215 _ACEOF
12216 rm -f conftest.$ac_objext conftest$ac_exeext
12217 if { (ac_try="$ac_link"
12218 case "(($ac_try" in
12219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12220 *) ac_try_echo=$ac_try;;
12221 esac
12222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12223 (eval "$ac_link") 2>conftest.er1
12224 ac_status=$?
12225 grep -v '^ *+' conftest.er1 >conftest.err
12226 rm -f conftest.er1
12227 cat conftest.err >&5
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); } && {
12230 test -z "$ac_c_werror_flag" ||
12231 test ! -s conftest.err
12232 } && test -s conftest$ac_exeext &&
12233 $as_test_x conftest$ac_exeext; then
12234 emacs_cv_x11_toolkit_version_6=yes
12235 else
12236 echo "$as_me: failed program was:" >&5
12237 sed 's/^/| /' conftest.$ac_ext >&5
12239 emacs_cv_x11_toolkit_version_6=no
12242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12243 conftest$ac_exeext conftest.$ac_ext
12246 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12247 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12248 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12249 echo "${ECHO_T}6 or newer" >&6; }
12251 cat >>confdefs.h <<\_ACEOF
12252 #define HAVE_X11XTR6 1
12253 _ACEOF
12255 else
12256 { echo "$as_me:$LINENO: result: before 6" >&5
12257 echo "${ECHO_T}before 6" >&6; }
12260 OLDLIBS="$LIBS"
12261 if test x$HAVE_X11XTR6 = xyes; then
12262 LIBS="-lXt -lSM -lICE $LIBS"
12263 else
12264 LIBS="-lXt $LIBS"
12267 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12268 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12269 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12270 echo $ECHO_N "(cached) $ECHO_C" >&6
12271 else
12272 ac_check_lib_save_LIBS=$LIBS
12273 LIBS="-lXmu $LIBS"
12274 cat >conftest.$ac_ext <<_ACEOF
12275 /* confdefs.h. */
12276 _ACEOF
12277 cat confdefs.h >>conftest.$ac_ext
12278 cat >>conftest.$ac_ext <<_ACEOF
12279 /* end confdefs.h. */
12281 /* Override any GCC internal prototype to avoid an error.
12282 Use char because int might match the return type of a GCC
12283 builtin and then its argument prototype would still apply. */
12284 #ifdef __cplusplus
12285 extern "C"
12286 #endif
12287 char XmuConvertStandardSelection ();
12289 main ()
12291 return XmuConvertStandardSelection ();
12293 return 0;
12295 _ACEOF
12296 rm -f conftest.$ac_objext conftest$ac_exeext
12297 if { (ac_try="$ac_link"
12298 case "(($ac_try" in
12299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12300 *) ac_try_echo=$ac_try;;
12301 esac
12302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12303 (eval "$ac_link") 2>conftest.er1
12304 ac_status=$?
12305 grep -v '^ *+' conftest.er1 >conftest.err
12306 rm -f conftest.er1
12307 cat conftest.err >&5
12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 (exit $ac_status); } && {
12310 test -z "$ac_c_werror_flag" ||
12311 test ! -s conftest.err
12312 } && test -s conftest$ac_exeext &&
12313 $as_test_x conftest$ac_exeext; then
12314 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12315 else
12316 echo "$as_me: failed program was:" >&5
12317 sed 's/^/| /' conftest.$ac_ext >&5
12319 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12323 conftest$ac_exeext conftest.$ac_ext
12324 LIBS=$ac_check_lib_save_LIBS
12326 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12327 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12328 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12329 cat >>confdefs.h <<_ACEOF
12330 #define HAVE_LIBXMU 1
12331 _ACEOF
12333 LIBS="-lXmu $LIBS"
12337 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12340 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12341 if test "${HAVE_X11}" = "yes"; then
12342 if test "${USE_X_TOOLKIT}" != "none"; then
12344 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12345 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12346 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12347 echo $ECHO_N "(cached) $ECHO_C" >&6
12348 else
12349 ac_check_lib_save_LIBS=$LIBS
12350 LIBS="-lXext $LIBS"
12351 cat >conftest.$ac_ext <<_ACEOF
12352 /* confdefs.h. */
12353 _ACEOF
12354 cat confdefs.h >>conftest.$ac_ext
12355 cat >>conftest.$ac_ext <<_ACEOF
12356 /* end confdefs.h. */
12358 /* Override any GCC internal prototype to avoid an error.
12359 Use char because int might match the return type of a GCC
12360 builtin and then its argument prototype would still apply. */
12361 #ifdef __cplusplus
12362 extern "C"
12363 #endif
12364 char XShapeQueryExtension ();
12366 main ()
12368 return XShapeQueryExtension ();
12370 return 0;
12372 _ACEOF
12373 rm -f conftest.$ac_objext conftest$ac_exeext
12374 if { (ac_try="$ac_link"
12375 case "(($ac_try" in
12376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12377 *) ac_try_echo=$ac_try;;
12378 esac
12379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12380 (eval "$ac_link") 2>conftest.er1
12381 ac_status=$?
12382 grep -v '^ *+' conftest.er1 >conftest.err
12383 rm -f conftest.er1
12384 cat conftest.err >&5
12385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386 (exit $ac_status); } && {
12387 test -z "$ac_c_werror_flag" ||
12388 test ! -s conftest.err
12389 } && test -s conftest$ac_exeext &&
12390 $as_test_x conftest$ac_exeext; then
12391 ac_cv_lib_Xext_XShapeQueryExtension=yes
12392 else
12393 echo "$as_me: failed program was:" >&5
12394 sed 's/^/| /' conftest.$ac_ext >&5
12396 ac_cv_lib_Xext_XShapeQueryExtension=no
12399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12400 conftest$ac_exeext conftest.$ac_ext
12401 LIBS=$ac_check_lib_save_LIBS
12403 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12404 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12405 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12406 cat >>confdefs.h <<_ACEOF
12407 #define HAVE_LIBXEXT 1
12408 _ACEOF
12410 LIBS="-lXext $LIBS"
12417 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12418 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12419 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12420 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12421 echo $ECHO_N "(cached) $ECHO_C" >&6
12422 else
12423 cat >conftest.$ac_ext <<_ACEOF
12424 /* confdefs.h. */
12425 _ACEOF
12426 cat confdefs.h >>conftest.$ac_ext
12427 cat >>conftest.$ac_ext <<_ACEOF
12428 /* end confdefs.h. */
12429 #include <Xm/Xm.h>
12431 main ()
12433 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12434 int x = 5;
12435 #else
12436 Motif version prior to 2.1.
12437 #endif
12439 return 0;
12441 _ACEOF
12442 rm -f conftest.$ac_objext
12443 if { (ac_try="$ac_compile"
12444 case "(($ac_try" in
12445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12446 *) ac_try_echo=$ac_try;;
12447 esac
12448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12449 (eval "$ac_compile") 2>conftest.er1
12450 ac_status=$?
12451 grep -v '^ *+' conftest.er1 >conftest.err
12452 rm -f conftest.er1
12453 cat conftest.err >&5
12454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455 (exit $ac_status); } && {
12456 test -z "$ac_c_werror_flag" ||
12457 test ! -s conftest.err
12458 } && test -s conftest.$ac_objext; then
12459 emacs_cv_motif_version_2_1=yes
12460 else
12461 echo "$as_me: failed program was:" >&5
12462 sed 's/^/| /' conftest.$ac_ext >&5
12464 emacs_cv_motif_version_2_1=no
12467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12469 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12470 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12471 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12472 if test $emacs_cv_motif_version_2_1 = yes; then
12473 HAVE_LIBXP=no
12475 cat >>confdefs.h <<\_ACEOF
12476 #define HAVE_MOTIF_2_1 1
12477 _ACEOF
12479 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12480 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12481 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12482 echo $ECHO_N "(cached) $ECHO_C" >&6
12483 else
12484 ac_check_lib_save_LIBS=$LIBS
12485 LIBS="-lXp $LIBS"
12486 cat >conftest.$ac_ext <<_ACEOF
12487 /* confdefs.h. */
12488 _ACEOF
12489 cat confdefs.h >>conftest.$ac_ext
12490 cat >>conftest.$ac_ext <<_ACEOF
12491 /* end confdefs.h. */
12493 /* Override any GCC internal prototype to avoid an error.
12494 Use char because int might match the return type of a GCC
12495 builtin and then its argument prototype would still apply. */
12496 #ifdef __cplusplus
12497 extern "C"
12498 #endif
12499 char XpCreateContext ();
12501 main ()
12503 return XpCreateContext ();
12505 return 0;
12507 _ACEOF
12508 rm -f conftest.$ac_objext conftest$ac_exeext
12509 if { (ac_try="$ac_link"
12510 case "(($ac_try" in
12511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12512 *) ac_try_echo=$ac_try;;
12513 esac
12514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12515 (eval "$ac_link") 2>conftest.er1
12516 ac_status=$?
12517 grep -v '^ *+' conftest.er1 >conftest.err
12518 rm -f conftest.er1
12519 cat conftest.err >&5
12520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521 (exit $ac_status); } && {
12522 test -z "$ac_c_werror_flag" ||
12523 test ! -s conftest.err
12524 } && test -s conftest$ac_exeext &&
12525 $as_test_x conftest$ac_exeext; then
12526 ac_cv_lib_Xp_XpCreateContext=yes
12527 else
12528 echo "$as_me: failed program was:" >&5
12529 sed 's/^/| /' conftest.$ac_ext >&5
12531 ac_cv_lib_Xp_XpCreateContext=no
12534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12535 conftest$ac_exeext conftest.$ac_ext
12536 LIBS=$ac_check_lib_save_LIBS
12538 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12539 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12540 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12541 HAVE_LIBXP=yes
12544 if test ${HAVE_LIBXP} = yes; then
12546 cat >>confdefs.h <<\_ACEOF
12547 #define HAVE_LIBXP 1
12548 _ACEOF
12551 else
12552 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12553 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12554 if test "${emacs_cv_lesstif+set}" = set; then
12555 echo $ECHO_N "(cached) $ECHO_C" >&6
12556 else
12557 # We put this in CFLAGS temporarily to precede other -I options
12558 # that might be in CFLAGS temporarily.
12559 # We put this in CPPFLAGS where it precedes the other -I options.
12560 OLD_CPPFLAGS=$CPPFLAGS
12561 OLD_CFLAGS=$CFLAGS
12562 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12563 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12564 cat >conftest.$ac_ext <<_ACEOF
12565 /* confdefs.h. */
12566 _ACEOF
12567 cat confdefs.h >>conftest.$ac_ext
12568 cat >>conftest.$ac_ext <<_ACEOF
12569 /* end confdefs.h. */
12570 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12572 main ()
12574 int x = 5;
12576 return 0;
12578 _ACEOF
12579 rm -f conftest.$ac_objext
12580 if { (ac_try="$ac_compile"
12581 case "(($ac_try" in
12582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12583 *) ac_try_echo=$ac_try;;
12584 esac
12585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12586 (eval "$ac_compile") 2>conftest.er1
12587 ac_status=$?
12588 grep -v '^ *+' conftest.er1 >conftest.err
12589 rm -f conftest.er1
12590 cat conftest.err >&5
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); } && {
12593 test -z "$ac_c_werror_flag" ||
12594 test ! -s conftest.err
12595 } && test -s conftest.$ac_objext; then
12596 emacs_cv_lesstif=yes
12597 else
12598 echo "$as_me: failed program was:" >&5
12599 sed 's/^/| /' conftest.$ac_ext >&5
12601 emacs_cv_lesstif=no
12604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12606 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12607 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12608 if test $emacs_cv_lesstif = yes; then
12609 # Make sure this -I option remains in CPPFLAGS after it is set
12610 # back to REAL_CPPFLAGS.
12611 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12612 # have those other -I options anyway. Ultimately, having this
12613 # directory ultimately in CPPFLAGS will be enough.
12614 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12615 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12616 else
12617 CFLAGS=$OLD_CFLAGS
12618 CPPFLAGS=$OLD_CPPFLAGS
12625 USE_TOOLKIT_SCROLL_BARS=no
12626 if test "${with_toolkit_scroll_bars}" != "no"; then
12627 if test "${USE_X_TOOLKIT}" != "none"; then
12628 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12629 cat >>confdefs.h <<\_ACEOF
12630 #define USE_TOOLKIT_SCROLL_BARS 1
12631 _ACEOF
12633 HAVE_XAW3D=no
12634 USE_TOOLKIT_SCROLL_BARS=yes
12635 elif test "${HAVE_XAW3D}" = "yes"; then
12636 cat >>confdefs.h <<\_ACEOF
12637 #define USE_TOOLKIT_SCROLL_BARS 1
12638 _ACEOF
12640 USE_TOOLKIT_SCROLL_BARS=yes
12642 elif test "${HAVE_GTK}" = "yes"; then
12643 cat >>confdefs.h <<\_ACEOF
12644 #define USE_TOOLKIT_SCROLL_BARS 1
12645 _ACEOF
12647 USE_TOOLKIT_SCROLL_BARS=yes
12648 elif test "${HAVE_NS}" = "yes"; then
12649 cat >>confdefs.h <<\_ACEOF
12650 #define USE_TOOLKIT_SCROLL_BARS 1
12651 _ACEOF
12653 USE_TOOLKIT_SCROLL_BARS=yes
12657 cat >conftest.$ac_ext <<_ACEOF
12658 /* confdefs.h. */
12659 _ACEOF
12660 cat confdefs.h >>conftest.$ac_ext
12661 cat >>conftest.$ac_ext <<_ACEOF
12662 /* end confdefs.h. */
12664 #include <X11/Xlib.h>
12665 #include <X11/Xresource.h>
12667 main ()
12669 XIMProc callback;
12671 return 0;
12673 _ACEOF
12674 rm -f conftest.$ac_objext
12675 if { (ac_try="$ac_compile"
12676 case "(($ac_try" in
12677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12678 *) ac_try_echo=$ac_try;;
12679 esac
12680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12681 (eval "$ac_compile") 2>conftest.er1
12682 ac_status=$?
12683 grep -v '^ *+' conftest.er1 >conftest.err
12684 rm -f conftest.er1
12685 cat conftest.err >&5
12686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687 (exit $ac_status); } && {
12688 test -z "$ac_c_werror_flag" ||
12689 test ! -s conftest.err
12690 } && test -s conftest.$ac_objext; then
12691 HAVE_XIM=yes
12693 cat >>confdefs.h <<\_ACEOF
12694 #define HAVE_XIM 1
12695 _ACEOF
12697 else
12698 echo "$as_me: failed program was:" >&5
12699 sed 's/^/| /' conftest.$ac_ext >&5
12701 HAVE_XIM=no
12704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12707 if test "${with_xim}" != "no"; then
12709 cat >>confdefs.h <<\_ACEOF
12710 #define USE_XIM 1
12711 _ACEOF
12716 if test "${HAVE_XIM}" != "no"; then
12717 late_CFLAGS=$CFLAGS
12718 if test "$GCC" = yes; then
12719 CFLAGS="$CFLAGS --pedantic-errors"
12721 cat >conftest.$ac_ext <<_ACEOF
12722 /* confdefs.h. */
12723 _ACEOF
12724 cat confdefs.h >>conftest.$ac_ext
12725 cat >>conftest.$ac_ext <<_ACEOF
12726 /* end confdefs.h. */
12728 #include <X11/Xlib.h>
12729 #include <X11/Xresource.h>
12731 main ()
12733 Display *display;
12734 XrmDatabase db;
12735 char *res_name;
12736 char *res_class;
12737 XIMProc callback;
12738 XPointer *client_data;
12739 #ifndef __GNUC__
12740 /* If we're not using GCC, it's probably not XFree86, and this is
12741 probably right, but we can't use something like --pedantic-errors. */
12742 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12743 char*, XIMProc, XPointer*);
12744 #endif
12745 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12746 client_data);
12748 return 0;
12750 _ACEOF
12751 rm -f conftest.$ac_objext
12752 if { (ac_try="$ac_compile"
12753 case "(($ac_try" in
12754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12755 *) ac_try_echo=$ac_try;;
12756 esac
12757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12758 (eval "$ac_compile") 2>conftest.er1
12759 ac_status=$?
12760 grep -v '^ *+' conftest.er1 >conftest.err
12761 rm -f conftest.er1
12762 cat conftest.err >&5
12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); } && {
12765 test -z "$ac_c_werror_flag" ||
12766 test ! -s conftest.err
12767 } && test -s conftest.$ac_objext; then
12768 emacs_cv_arg6_star=yes
12769 else
12770 echo "$as_me: failed program was:" >&5
12771 sed 's/^/| /' conftest.$ac_ext >&5
12776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12778 if test "$emacs_cv_arg6_star" = yes; then
12779 cat >>confdefs.h <<\_ACEOF
12780 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12781 _ACEOF
12783 else
12784 cat >>confdefs.h <<\_ACEOF
12785 #define XRegisterIMInstantiateCallback_arg6 XPointer
12786 _ACEOF
12789 CFLAGS=$late_CFLAGS
12792 ### Start of font-backend (under any platform) section.
12793 # (nothing here yet -- this is a placeholder)
12794 ### End of font-backend (under any platform) section.
12796 ### Start of font-backend (under X11) section.
12797 if test "${HAVE_X11}" = "yes"; then
12799 succeeded=no
12801 # Extract the first word of "pkg-config", so it can be a program name with args.
12802 set dummy pkg-config; ac_word=$2
12803 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12805 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12806 echo $ECHO_N "(cached) $ECHO_C" >&6
12807 else
12808 case $PKG_CONFIG in
12809 [\\/]* | ?:[\\/]*)
12810 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12814 for as_dir in $PATH
12816 IFS=$as_save_IFS
12817 test -z "$as_dir" && as_dir=.
12818 for ac_exec_ext in '' $ac_executable_extensions; do
12819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12820 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12822 break 2
12824 done
12825 done
12826 IFS=$as_save_IFS
12828 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12830 esac
12832 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12833 if test -n "$PKG_CONFIG"; then
12834 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12835 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12836 else
12837 { echo "$as_me:$LINENO: result: no" >&5
12838 echo "${ECHO_T}no" >&6; }
12843 if test "$PKG_CONFIG" = "no" ; then
12844 HAVE_FC=no
12845 else
12846 PKG_CONFIG_MIN_VERSION=0.9.0
12847 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12848 { echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
12849 echo $ECHO_N "checking for fontconfig >= 2.2.0... $ECHO_C" >&6; }
12851 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
12852 { echo "$as_me:$LINENO: result: yes" >&5
12853 echo "${ECHO_T}yes" >&6; }
12854 succeeded=yes
12856 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
12857 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
12858 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
12859 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
12860 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
12862 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
12863 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
12864 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
12865 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
12866 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
12867 else
12868 { echo "$as_me:$LINENO: result: no" >&5
12869 echo "${ECHO_T}no" >&6; }
12870 FONTCONFIG_CFLAGS=""
12871 FONTCONFIG_LIBS=""
12872 ## If we have a custom action on failure, don't print errors, but
12873 ## do set a variable so people can do so.
12874 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
12880 else
12881 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12882 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12886 if test $succeeded = yes; then
12887 HAVE_FC=yes
12888 else
12889 HAVE_FC=no
12893 ## Use -lXft if available, unless `--with-xft=no'.
12894 HAVE_XFT=maybe
12895 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
12896 with_xft="no";
12898 if test "x${with_xft}" != "xno"; then
12901 succeeded=no
12903 # Extract the first word of "pkg-config", so it can be a program name with args.
12904 set dummy pkg-config; ac_word=$2
12905 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12907 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12908 echo $ECHO_N "(cached) $ECHO_C" >&6
12909 else
12910 case $PKG_CONFIG in
12911 [\\/]* | ?:[\\/]*)
12912 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12916 for as_dir in $PATH
12918 IFS=$as_save_IFS
12919 test -z "$as_dir" && as_dir=.
12920 for ac_exec_ext in '' $ac_executable_extensions; do
12921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12922 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12924 break 2
12926 done
12927 done
12928 IFS=$as_save_IFS
12930 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12932 esac
12934 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12935 if test -n "$PKG_CONFIG"; then
12936 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12937 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12938 else
12939 { echo "$as_me:$LINENO: result: no" >&5
12940 echo "${ECHO_T}no" >&6; }
12945 if test "$PKG_CONFIG" = "no" ; then
12946 HAVE_XFT=no
12947 else
12948 PKG_CONFIG_MIN_VERSION=0.9.0
12949 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12950 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12951 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12953 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12954 { echo "$as_me:$LINENO: result: yes" >&5
12955 echo "${ECHO_T}yes" >&6; }
12956 succeeded=yes
12958 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12959 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12960 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12961 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12962 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12964 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12965 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12966 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12967 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12968 echo "${ECHO_T}$XFT_LIBS" >&6; }
12969 else
12970 { echo "$as_me:$LINENO: result: no" >&5
12971 echo "${ECHO_T}no" >&6; }
12972 XFT_CFLAGS=""
12973 XFT_LIBS=""
12974 ## If we have a custom action on failure, don't print errors, but
12975 ## do set a variable so people can do so.
12976 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12982 else
12983 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12984 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12988 if test $succeeded = yes; then
12990 else
12991 HAVE_XFT=no
12994 if test "$HAVE_XFT" != no; then
12995 OLD_CPPFLAGS="$CPPFLAGS"
12996 OLD_CFLAGS="$CFLAGS"
12997 OLD_LIBS="$LIBS"
12998 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12999 CFLAGS="$CFLAGS $XFT_CFLAGS"
13000 LIBS="$XFT_LIBS $LIBS"
13001 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13002 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13003 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
13004 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13005 echo $ECHO_N "(cached) $ECHO_C" >&6
13007 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13008 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
13009 else
13010 # Is the header compilable?
13011 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
13012 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
13013 cat >conftest.$ac_ext <<_ACEOF
13014 /* confdefs.h. */
13015 _ACEOF
13016 cat confdefs.h >>conftest.$ac_ext
13017 cat >>conftest.$ac_ext <<_ACEOF
13018 /* end confdefs.h. */
13019 $ac_includes_default
13020 #include <X11/Xft/Xft.h>
13021 _ACEOF
13022 rm -f conftest.$ac_objext
13023 if { (ac_try="$ac_compile"
13024 case "(($ac_try" in
13025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13026 *) ac_try_echo=$ac_try;;
13027 esac
13028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13029 (eval "$ac_compile") 2>conftest.er1
13030 ac_status=$?
13031 grep -v '^ *+' conftest.er1 >conftest.err
13032 rm -f conftest.er1
13033 cat conftest.err >&5
13034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035 (exit $ac_status); } && {
13036 test -z "$ac_c_werror_flag" ||
13037 test ! -s conftest.err
13038 } && test -s conftest.$ac_objext; then
13039 ac_header_compiler=yes
13040 else
13041 echo "$as_me: failed program was:" >&5
13042 sed 's/^/| /' conftest.$ac_ext >&5
13044 ac_header_compiler=no
13047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13048 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13049 echo "${ECHO_T}$ac_header_compiler" >&6; }
13051 # Is the header present?
13052 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
13053 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
13054 cat >conftest.$ac_ext <<_ACEOF
13055 /* confdefs.h. */
13056 _ACEOF
13057 cat confdefs.h >>conftest.$ac_ext
13058 cat >>conftest.$ac_ext <<_ACEOF
13059 /* end confdefs.h. */
13060 #include <X11/Xft/Xft.h>
13061 _ACEOF
13062 if { (ac_try="$ac_cpp conftest.$ac_ext"
13063 case "(($ac_try" in
13064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13065 *) ac_try_echo=$ac_try;;
13066 esac
13067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13068 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13069 ac_status=$?
13070 grep -v '^ *+' conftest.er1 >conftest.err
13071 rm -f conftest.er1
13072 cat conftest.err >&5
13073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074 (exit $ac_status); } >/dev/null && {
13075 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13076 test ! -s conftest.err
13077 }; then
13078 ac_header_preproc=yes
13079 else
13080 echo "$as_me: failed program was:" >&5
13081 sed 's/^/| /' conftest.$ac_ext >&5
13083 ac_header_preproc=no
13086 rm -f conftest.err conftest.$ac_ext
13087 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13088 echo "${ECHO_T}$ac_header_preproc" >&6; }
13090 # So? What about this header?
13091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13092 yes:no: )
13093 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
13094 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13095 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
13096 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
13097 ac_header_preproc=yes
13099 no:yes:* )
13100 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
13101 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
13102 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
13103 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
13104 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
13105 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
13106 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
13107 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
13108 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
13109 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
13110 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
13111 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
13114 esac
13115 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13116 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
13117 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13118 echo $ECHO_N "(cached) $ECHO_C" >&6
13119 else
13120 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
13122 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13123 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
13126 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
13127 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
13128 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
13129 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
13130 echo $ECHO_N "(cached) $ECHO_C" >&6
13131 else
13132 ac_check_lib_save_LIBS=$LIBS
13133 LIBS="-lXft $XFT_LIBS $LIBS"
13134 cat >conftest.$ac_ext <<_ACEOF
13135 /* confdefs.h. */
13136 _ACEOF
13137 cat confdefs.h >>conftest.$ac_ext
13138 cat >>conftest.$ac_ext <<_ACEOF
13139 /* end confdefs.h. */
13141 /* Override any GCC internal prototype to avoid an error.
13142 Use char because int might match the return type of a GCC
13143 builtin and then its argument prototype would still apply. */
13144 #ifdef __cplusplus
13145 extern "C"
13146 #endif
13147 char XftFontOpen ();
13149 main ()
13151 return XftFontOpen ();
13153 return 0;
13155 _ACEOF
13156 rm -f conftest.$ac_objext conftest$ac_exeext
13157 if { (ac_try="$ac_link"
13158 case "(($ac_try" in
13159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13160 *) ac_try_echo=$ac_try;;
13161 esac
13162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13163 (eval "$ac_link") 2>conftest.er1
13164 ac_status=$?
13165 grep -v '^ *+' conftest.er1 >conftest.err
13166 rm -f conftest.er1
13167 cat conftest.err >&5
13168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169 (exit $ac_status); } && {
13170 test -z "$ac_c_werror_flag" ||
13171 test ! -s conftest.err
13172 } && test -s conftest$ac_exeext &&
13173 $as_test_x conftest$ac_exeext; then
13174 ac_cv_lib_Xft_XftFontOpen=yes
13175 else
13176 echo "$as_me: failed program was:" >&5
13177 sed 's/^/| /' conftest.$ac_ext >&5
13179 ac_cv_lib_Xft_XftFontOpen=no
13182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13183 conftest$ac_exeext conftest.$ac_ext
13184 LIBS=$ac_check_lib_save_LIBS
13186 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
13187 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
13188 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
13189 HAVE_XFT=yes
13196 if test "${HAVE_XFT}" = "yes"; then
13198 cat >>confdefs.h <<\_ACEOF
13199 #define HAVE_XFT 1
13200 _ACEOF
13203 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
13204 else
13205 CPPFLAGS="$OLD_CPPFLAGS"
13206 CFLAGS="$OLD_CFLAGS"
13207 LIBS="$OLD_LIBS"
13208 fi # "${HAVE_XFT}" = "yes"
13209 fi # "$HAVE_XFT" != no
13210 fi # "x${with_xft}" != "xno"
13212 if test "$HAVE_XFT" != "yes"; then
13213 HAVE_XFT=no
13217 HAVE_FREETYPE=no
13218 ## We used to allow building with FreeType and without Xft.
13219 ## However, the ftx font backend driver is not in good shape.
13220 if test "${HAVE_XFT}" = "yes"; then
13221 HAVE_FREETYPE=yes
13222 FONTCONFIG_CFLAGS=
13223 FONTCONFIG_LIBS=
13226 HAVE_LIBOTF=no
13227 if test "${HAVE_FREETYPE}" = "yes"; then
13229 cat >>confdefs.h <<\_ACEOF
13230 #define HAVE_FREETYPE 1
13231 _ACEOF
13233 if test "${with_libotf}" != "no"; then
13235 succeeded=no
13237 # Extract the first word of "pkg-config", so it can be a program name with args.
13238 set dummy pkg-config; ac_word=$2
13239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13241 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13242 echo $ECHO_N "(cached) $ECHO_C" >&6
13243 else
13244 case $PKG_CONFIG in
13245 [\\/]* | ?:[\\/]*)
13246 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13250 for as_dir in $PATH
13252 IFS=$as_save_IFS
13253 test -z "$as_dir" && as_dir=.
13254 for ac_exec_ext in '' $ac_executable_extensions; do
13255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13256 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13258 break 2
13260 done
13261 done
13262 IFS=$as_save_IFS
13264 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13266 esac
13268 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13269 if test -n "$PKG_CONFIG"; then
13270 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13271 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13272 else
13273 { echo "$as_me:$LINENO: result: no" >&5
13274 echo "${ECHO_T}no" >&6; }
13279 if test "$PKG_CONFIG" = "no" ; then
13280 HAVE_LIBOTF=no
13281 else
13282 PKG_CONFIG_MIN_VERSION=0.9.0
13283 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13284 { echo "$as_me:$LINENO: checking for libotf" >&5
13285 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
13287 if $PKG_CONFIG --exists "libotf" 2>&5; then
13288 { echo "$as_me:$LINENO: result: yes" >&5
13289 echo "${ECHO_T}yes" >&6; }
13290 succeeded=yes
13292 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13293 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
13294 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13295 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13296 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13298 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13299 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
13300 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13301 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13302 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13303 else
13304 { echo "$as_me:$LINENO: result: no" >&5
13305 echo "${ECHO_T}no" >&6; }
13306 LIBOTF_CFLAGS=""
13307 LIBOTF_LIBS=""
13308 ## If we have a custom action on failure, don't print errors, but
13309 ## do set a variable so people can do so.
13310 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13316 else
13317 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13318 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13322 if test $succeeded = yes; then
13323 HAVE_LIBOTF=yes
13324 else
13325 HAVE_LIBOTF=no
13328 if test "$HAVE_LIBOTF" = "yes"; then
13330 cat >>confdefs.h <<\_ACEOF
13331 #define HAVE_LIBOTF 1
13332 _ACEOF
13334 { echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
13335 echo $ECHO_N "checking for OTF_get_variation_glyphs in -lotf... $ECHO_C" >&6; }
13336 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
13337 echo $ECHO_N "(cached) $ECHO_C" >&6
13338 else
13339 ac_check_lib_save_LIBS=$LIBS
13340 LIBS="-lotf $LIBS"
13341 cat >conftest.$ac_ext <<_ACEOF
13342 /* confdefs.h. */
13343 _ACEOF
13344 cat confdefs.h >>conftest.$ac_ext
13345 cat >>conftest.$ac_ext <<_ACEOF
13346 /* end confdefs.h. */
13348 /* Override any GCC internal prototype to avoid an error.
13349 Use char because int might match the return type of a GCC
13350 builtin and then its argument prototype would still apply. */
13351 #ifdef __cplusplus
13352 extern "C"
13353 #endif
13354 char OTF_get_variation_glyphs ();
13356 main ()
13358 return OTF_get_variation_glyphs ();
13360 return 0;
13362 _ACEOF
13363 rm -f conftest.$ac_objext conftest$ac_exeext
13364 if { (ac_try="$ac_link"
13365 case "(($ac_try" in
13366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13367 *) ac_try_echo=$ac_try;;
13368 esac
13369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13370 (eval "$ac_link") 2>conftest.er1
13371 ac_status=$?
13372 grep -v '^ *+' conftest.er1 >conftest.err
13373 rm -f conftest.er1
13374 cat conftest.err >&5
13375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376 (exit $ac_status); } && {
13377 test -z "$ac_c_werror_flag" ||
13378 test ! -s conftest.err
13379 } && test -s conftest$ac_exeext &&
13380 $as_test_x conftest$ac_exeext; then
13381 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
13382 else
13383 echo "$as_me: failed program was:" >&5
13384 sed 's/^/| /' conftest.$ac_ext >&5
13386 ac_cv_lib_otf_OTF_get_variation_glyphs=no
13389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13390 conftest$ac_exeext conftest.$ac_ext
13391 LIBS=$ac_check_lib_save_LIBS
13393 { echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
13394 echo "${ECHO_T}$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
13395 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
13396 HAVE_OTF_GET_VARIATION_GLYPHS=yes
13397 else
13398 HAVE_OTF_GET_VARIATION_GLYPHS=no
13401 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
13403 cat >>confdefs.h <<\_ACEOF
13404 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
13405 _ACEOF
13412 HAVE_M17N_FLT=no
13413 if test "${HAVE_LIBOTF}" = yes; then
13414 if test "${with_m17n_flt}" != "no"; then
13416 succeeded=no
13418 # Extract the first word of "pkg-config", so it can be a program name with args.
13419 set dummy pkg-config; ac_word=$2
13420 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13422 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13423 echo $ECHO_N "(cached) $ECHO_C" >&6
13424 else
13425 case $PKG_CONFIG in
13426 [\\/]* | ?:[\\/]*)
13427 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13431 for as_dir in $PATH
13433 IFS=$as_save_IFS
13434 test -z "$as_dir" && as_dir=.
13435 for ac_exec_ext in '' $ac_executable_extensions; do
13436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13437 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13439 break 2
13441 done
13442 done
13443 IFS=$as_save_IFS
13445 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13447 esac
13449 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13450 if test -n "$PKG_CONFIG"; then
13451 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13452 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13453 else
13454 { echo "$as_me:$LINENO: result: no" >&5
13455 echo "${ECHO_T}no" >&6; }
13460 if test "$PKG_CONFIG" = "no" ; then
13461 HAVE_M17N_FLT=no
13462 else
13463 PKG_CONFIG_MIN_VERSION=0.9.0
13464 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13465 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13466 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13468 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13469 { echo "$as_me:$LINENO: result: yes" >&5
13470 echo "${ECHO_T}yes" >&6; }
13471 succeeded=yes
13473 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13474 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13475 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13476 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13477 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13479 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13480 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13481 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13482 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13483 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13484 else
13485 { echo "$as_me:$LINENO: result: no" >&5
13486 echo "${ECHO_T}no" >&6; }
13487 M17N_FLT_CFLAGS=""
13488 M17N_FLT_LIBS=""
13489 ## If we have a custom action on failure, don't print errors, but
13490 ## do set a variable so people can do so.
13491 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13497 else
13498 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13499 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13503 if test $succeeded = yes; then
13504 HAVE_M17N_FLT=yes
13505 else
13506 HAVE_M17N_FLT=no
13509 if test "$HAVE_M17N_FLT" = "yes"; then
13511 cat >>confdefs.h <<\_ACEOF
13512 #define HAVE_M17N_FLT 1
13513 _ACEOF
13518 else
13519 HAVE_XFT=no
13520 HAVE_FREETYPE=no
13521 HAVE_LIBOTF=no
13522 HAVE_M17N_FLT=no
13524 ### End of font-backend (under X11) section.
13535 ### Use -lXpm if available, unless `--with-xpm=no'.
13536 HAVE_XPM=no
13537 if test "${HAVE_X11}" = "yes"; then
13538 if test "${with_xpm}" != "no"; then
13539 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13540 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13541 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13542 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13543 echo $ECHO_N "(cached) $ECHO_C" >&6
13545 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13546 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13547 else
13548 # Is the header compilable?
13549 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13550 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13551 cat >conftest.$ac_ext <<_ACEOF
13552 /* confdefs.h. */
13553 _ACEOF
13554 cat confdefs.h >>conftest.$ac_ext
13555 cat >>conftest.$ac_ext <<_ACEOF
13556 /* end confdefs.h. */
13557 $ac_includes_default
13558 #include <X11/xpm.h>
13559 _ACEOF
13560 rm -f conftest.$ac_objext
13561 if { (ac_try="$ac_compile"
13562 case "(($ac_try" in
13563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13564 *) ac_try_echo=$ac_try;;
13565 esac
13566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13567 (eval "$ac_compile") 2>conftest.er1
13568 ac_status=$?
13569 grep -v '^ *+' conftest.er1 >conftest.err
13570 rm -f conftest.er1
13571 cat conftest.err >&5
13572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573 (exit $ac_status); } && {
13574 test -z "$ac_c_werror_flag" ||
13575 test ! -s conftest.err
13576 } && test -s conftest.$ac_objext; then
13577 ac_header_compiler=yes
13578 else
13579 echo "$as_me: failed program was:" >&5
13580 sed 's/^/| /' conftest.$ac_ext >&5
13582 ac_header_compiler=no
13585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13586 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13587 echo "${ECHO_T}$ac_header_compiler" >&6; }
13589 # Is the header present?
13590 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13591 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13592 cat >conftest.$ac_ext <<_ACEOF
13593 /* confdefs.h. */
13594 _ACEOF
13595 cat confdefs.h >>conftest.$ac_ext
13596 cat >>conftest.$ac_ext <<_ACEOF
13597 /* end confdefs.h. */
13598 #include <X11/xpm.h>
13599 _ACEOF
13600 if { (ac_try="$ac_cpp conftest.$ac_ext"
13601 case "(($ac_try" in
13602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13603 *) ac_try_echo=$ac_try;;
13604 esac
13605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13607 ac_status=$?
13608 grep -v '^ *+' conftest.er1 >conftest.err
13609 rm -f conftest.er1
13610 cat conftest.err >&5
13611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612 (exit $ac_status); } >/dev/null && {
13613 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13614 test ! -s conftest.err
13615 }; then
13616 ac_header_preproc=yes
13617 else
13618 echo "$as_me: failed program was:" >&5
13619 sed 's/^/| /' conftest.$ac_ext >&5
13621 ac_header_preproc=no
13624 rm -f conftest.err conftest.$ac_ext
13625 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13626 echo "${ECHO_T}$ac_header_preproc" >&6; }
13628 # So? What about this header?
13629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13630 yes:no: )
13631 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13632 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13633 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13634 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13635 ac_header_preproc=yes
13637 no:yes:* )
13638 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13639 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13640 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13641 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13642 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13643 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13644 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13645 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13646 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13647 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13648 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13649 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13652 esac
13653 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13654 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13655 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13656 echo $ECHO_N "(cached) $ECHO_C" >&6
13657 else
13658 ac_cv_header_X11_xpm_h=$ac_header_preproc
13660 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13661 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13664 if test $ac_cv_header_X11_xpm_h = yes; then
13665 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13666 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13667 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13668 echo $ECHO_N "(cached) $ECHO_C" >&6
13669 else
13670 ac_check_lib_save_LIBS=$LIBS
13671 LIBS="-lXpm -lX11 $LIBS"
13672 cat >conftest.$ac_ext <<_ACEOF
13673 /* confdefs.h. */
13674 _ACEOF
13675 cat confdefs.h >>conftest.$ac_ext
13676 cat >>conftest.$ac_ext <<_ACEOF
13677 /* end confdefs.h. */
13679 /* Override any GCC internal prototype to avoid an error.
13680 Use char because int might match the return type of a GCC
13681 builtin and then its argument prototype would still apply. */
13682 #ifdef __cplusplus
13683 extern "C"
13684 #endif
13685 char XpmReadFileToPixmap ();
13687 main ()
13689 return XpmReadFileToPixmap ();
13691 return 0;
13693 _ACEOF
13694 rm -f conftest.$ac_objext conftest$ac_exeext
13695 if { (ac_try="$ac_link"
13696 case "(($ac_try" in
13697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13698 *) ac_try_echo=$ac_try;;
13699 esac
13700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13701 (eval "$ac_link") 2>conftest.er1
13702 ac_status=$?
13703 grep -v '^ *+' conftest.er1 >conftest.err
13704 rm -f conftest.er1
13705 cat conftest.err >&5
13706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707 (exit $ac_status); } && {
13708 test -z "$ac_c_werror_flag" ||
13709 test ! -s conftest.err
13710 } && test -s conftest$ac_exeext &&
13711 $as_test_x conftest$ac_exeext; then
13712 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13713 else
13714 echo "$as_me: failed program was:" >&5
13715 sed 's/^/| /' conftest.$ac_ext >&5
13717 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13721 conftest$ac_exeext conftest.$ac_ext
13722 LIBS=$ac_check_lib_save_LIBS
13724 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13725 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13726 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13727 HAVE_XPM=yes
13733 if test "${HAVE_XPM}" = "yes"; then
13734 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13735 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13736 cat >conftest.$ac_ext <<_ACEOF
13737 /* confdefs.h. */
13738 _ACEOF
13739 cat confdefs.h >>conftest.$ac_ext
13740 cat >>conftest.$ac_ext <<_ACEOF
13741 /* end confdefs.h. */
13742 #include "X11/xpm.h"
13743 #ifndef XpmReturnAllocPixels
13744 no_return_alloc_pixels
13745 #endif
13747 _ACEOF
13748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13749 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13750 HAVE_XPM=no
13751 else
13752 HAVE_XPM=yes
13754 rm -f conftest*
13757 if test "${HAVE_XPM}" = "yes"; then
13758 { echo "$as_me:$LINENO: result: yes" >&5
13759 echo "${ECHO_T}yes" >&6; }
13760 else
13761 { echo "$as_me:$LINENO: result: no" >&5
13762 echo "${ECHO_T}no" >&6; }
13767 if test "${HAVE_XPM}" = "yes"; then
13769 cat >>confdefs.h <<\_ACEOF
13770 #define HAVE_XPM 1
13771 _ACEOF
13776 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13777 HAVE_JPEG=no
13778 if test "${HAVE_X11}" = "yes"; then
13779 if test "${with_jpeg}" != "no"; then
13780 if test "${ac_cv_header_jerror_h+set}" = set; then
13781 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13782 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13783 if test "${ac_cv_header_jerror_h+set}" = set; then
13784 echo $ECHO_N "(cached) $ECHO_C" >&6
13786 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13787 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13788 else
13789 # Is the header compilable?
13790 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13791 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13792 cat >conftest.$ac_ext <<_ACEOF
13793 /* confdefs.h. */
13794 _ACEOF
13795 cat confdefs.h >>conftest.$ac_ext
13796 cat >>conftest.$ac_ext <<_ACEOF
13797 /* end confdefs.h. */
13798 $ac_includes_default
13799 #include <jerror.h>
13800 _ACEOF
13801 rm -f conftest.$ac_objext
13802 if { (ac_try="$ac_compile"
13803 case "(($ac_try" in
13804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13805 *) ac_try_echo=$ac_try;;
13806 esac
13807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13808 (eval "$ac_compile") 2>conftest.er1
13809 ac_status=$?
13810 grep -v '^ *+' conftest.er1 >conftest.err
13811 rm -f conftest.er1
13812 cat conftest.err >&5
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); } && {
13815 test -z "$ac_c_werror_flag" ||
13816 test ! -s conftest.err
13817 } && test -s conftest.$ac_objext; then
13818 ac_header_compiler=yes
13819 else
13820 echo "$as_me: failed program was:" >&5
13821 sed 's/^/| /' conftest.$ac_ext >&5
13823 ac_header_compiler=no
13826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13827 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13828 echo "${ECHO_T}$ac_header_compiler" >&6; }
13830 # Is the header present?
13831 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13832 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13833 cat >conftest.$ac_ext <<_ACEOF
13834 /* confdefs.h. */
13835 _ACEOF
13836 cat confdefs.h >>conftest.$ac_ext
13837 cat >>conftest.$ac_ext <<_ACEOF
13838 /* end confdefs.h. */
13839 #include <jerror.h>
13840 _ACEOF
13841 if { (ac_try="$ac_cpp conftest.$ac_ext"
13842 case "(($ac_try" in
13843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13844 *) ac_try_echo=$ac_try;;
13845 esac
13846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13848 ac_status=$?
13849 grep -v '^ *+' conftest.er1 >conftest.err
13850 rm -f conftest.er1
13851 cat conftest.err >&5
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); } >/dev/null && {
13854 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13855 test ! -s conftest.err
13856 }; then
13857 ac_header_preproc=yes
13858 else
13859 echo "$as_me: failed program was:" >&5
13860 sed 's/^/| /' conftest.$ac_ext >&5
13862 ac_header_preproc=no
13865 rm -f conftest.err conftest.$ac_ext
13866 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13867 echo "${ECHO_T}$ac_header_preproc" >&6; }
13869 # So? What about this header?
13870 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13871 yes:no: )
13872 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13873 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13874 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13875 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13876 ac_header_preproc=yes
13878 no:yes:* )
13879 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13880 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13881 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13882 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13883 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13884 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13885 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13886 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13887 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13888 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13889 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13890 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13893 esac
13894 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13895 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13896 if test "${ac_cv_header_jerror_h+set}" = set; then
13897 echo $ECHO_N "(cached) $ECHO_C" >&6
13898 else
13899 ac_cv_header_jerror_h=$ac_header_preproc
13901 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13902 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13905 if test $ac_cv_header_jerror_h = yes; then
13906 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13907 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13908 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13909 echo $ECHO_N "(cached) $ECHO_C" >&6
13910 else
13911 ac_check_lib_save_LIBS=$LIBS
13912 LIBS="-ljpeg $LIBS"
13913 cat >conftest.$ac_ext <<_ACEOF
13914 /* confdefs.h. */
13915 _ACEOF
13916 cat confdefs.h >>conftest.$ac_ext
13917 cat >>conftest.$ac_ext <<_ACEOF
13918 /* end confdefs.h. */
13920 /* Override any GCC internal prototype to avoid an error.
13921 Use char because int might match the return type of a GCC
13922 builtin and then its argument prototype would still apply. */
13923 #ifdef __cplusplus
13924 extern "C"
13925 #endif
13926 char jpeg_destroy_compress ();
13928 main ()
13930 return jpeg_destroy_compress ();
13932 return 0;
13934 _ACEOF
13935 rm -f conftest.$ac_objext conftest$ac_exeext
13936 if { (ac_try="$ac_link"
13937 case "(($ac_try" in
13938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13939 *) ac_try_echo=$ac_try;;
13940 esac
13941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13942 (eval "$ac_link") 2>conftest.er1
13943 ac_status=$?
13944 grep -v '^ *+' conftest.er1 >conftest.err
13945 rm -f conftest.er1
13946 cat conftest.err >&5
13947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948 (exit $ac_status); } && {
13949 test -z "$ac_c_werror_flag" ||
13950 test ! -s conftest.err
13951 } && test -s conftest$ac_exeext &&
13952 $as_test_x conftest$ac_exeext; then
13953 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13954 else
13955 echo "$as_me: failed program was:" >&5
13956 sed 's/^/| /' conftest.$ac_ext >&5
13958 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13961 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13962 conftest$ac_exeext conftest.$ac_ext
13963 LIBS=$ac_check_lib_save_LIBS
13965 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13966 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13967 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13968 HAVE_JPEG=yes
13977 if test "${HAVE_JPEG}" = "yes"; then
13978 cat >>confdefs.h <<\_ACEOF
13979 #define HAVE_JPEG 1
13980 _ACEOF
13982 cat >conftest.$ac_ext <<_ACEOF
13983 /* confdefs.h. */
13984 _ACEOF
13985 cat confdefs.h >>conftest.$ac_ext
13986 cat >>conftest.$ac_ext <<_ACEOF
13987 /* end confdefs.h. */
13988 #include <jpeglib.h>
13989 version=JPEG_LIB_VERSION
13991 _ACEOF
13992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13993 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13994 cat >>confdefs.h <<\_ACEOF
13995 #define HAVE_JPEG 1
13996 _ACEOF
13998 else
13999 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
14000 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
14001 HAVE_JPEG=no
14003 rm -f conftest*
14008 ### Use -lpng if available, unless `--with-png=no'.
14009 HAVE_PNG=no
14010 if test "${HAVE_X11}" = "yes"; then
14011 if test "${with_png}" != "no"; then
14012 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
14013 # in /usr/include/libpng.
14016 for ac_header in png.h libpng/png.h
14018 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14019 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14020 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14021 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14022 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14023 echo $ECHO_N "(cached) $ECHO_C" >&6
14025 ac_res=`eval echo '${'$as_ac_Header'}'`
14026 { echo "$as_me:$LINENO: result: $ac_res" >&5
14027 echo "${ECHO_T}$ac_res" >&6; }
14028 else
14029 # Is the header compilable?
14030 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14031 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14032 cat >conftest.$ac_ext <<_ACEOF
14033 /* confdefs.h. */
14034 _ACEOF
14035 cat confdefs.h >>conftest.$ac_ext
14036 cat >>conftest.$ac_ext <<_ACEOF
14037 /* end confdefs.h. */
14038 $ac_includes_default
14039 #include <$ac_header>
14040 _ACEOF
14041 rm -f conftest.$ac_objext
14042 if { (ac_try="$ac_compile"
14043 case "(($ac_try" in
14044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14045 *) ac_try_echo=$ac_try;;
14046 esac
14047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14048 (eval "$ac_compile") 2>conftest.er1
14049 ac_status=$?
14050 grep -v '^ *+' conftest.er1 >conftest.err
14051 rm -f conftest.er1
14052 cat conftest.err >&5
14053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054 (exit $ac_status); } && {
14055 test -z "$ac_c_werror_flag" ||
14056 test ! -s conftest.err
14057 } && test -s conftest.$ac_objext; then
14058 ac_header_compiler=yes
14059 else
14060 echo "$as_me: failed program was:" >&5
14061 sed 's/^/| /' conftest.$ac_ext >&5
14063 ac_header_compiler=no
14066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14067 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14068 echo "${ECHO_T}$ac_header_compiler" >&6; }
14070 # Is the header present?
14071 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14072 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14073 cat >conftest.$ac_ext <<_ACEOF
14074 /* confdefs.h. */
14075 _ACEOF
14076 cat confdefs.h >>conftest.$ac_ext
14077 cat >>conftest.$ac_ext <<_ACEOF
14078 /* end confdefs.h. */
14079 #include <$ac_header>
14080 _ACEOF
14081 if { (ac_try="$ac_cpp conftest.$ac_ext"
14082 case "(($ac_try" in
14083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14084 *) ac_try_echo=$ac_try;;
14085 esac
14086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14087 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14088 ac_status=$?
14089 grep -v '^ *+' conftest.er1 >conftest.err
14090 rm -f conftest.er1
14091 cat conftest.err >&5
14092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14093 (exit $ac_status); } >/dev/null && {
14094 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14095 test ! -s conftest.err
14096 }; then
14097 ac_header_preproc=yes
14098 else
14099 echo "$as_me: failed program was:" >&5
14100 sed 's/^/| /' conftest.$ac_ext >&5
14102 ac_header_preproc=no
14105 rm -f conftest.err conftest.$ac_ext
14106 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14107 echo "${ECHO_T}$ac_header_preproc" >&6; }
14109 # So? What about this header?
14110 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14111 yes:no: )
14112 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14113 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14115 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14116 ac_header_preproc=yes
14118 no:yes:* )
14119 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14120 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14121 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14122 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14123 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14124 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14125 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14126 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14127 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14128 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14129 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14130 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14133 esac
14134 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14135 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14137 echo $ECHO_N "(cached) $ECHO_C" >&6
14138 else
14139 eval "$as_ac_Header=\$ac_header_preproc"
14141 ac_res=`eval echo '${'$as_ac_Header'}'`
14142 { echo "$as_me:$LINENO: result: $ac_res" >&5
14143 echo "${ECHO_T}$ac_res" >&6; }
14146 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14147 cat >>confdefs.h <<_ACEOF
14148 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14149 _ACEOF
14153 done
14155 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
14156 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
14157 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
14158 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
14159 echo $ECHO_N "(cached) $ECHO_C" >&6
14160 else
14161 ac_check_lib_save_LIBS=$LIBS
14162 LIBS="-lpng -lz -lm $LIBS"
14163 cat >conftest.$ac_ext <<_ACEOF
14164 /* confdefs.h. */
14165 _ACEOF
14166 cat confdefs.h >>conftest.$ac_ext
14167 cat >>conftest.$ac_ext <<_ACEOF
14168 /* end confdefs.h. */
14170 /* Override any GCC internal prototype to avoid an error.
14171 Use char because int might match the return type of a GCC
14172 builtin and then its argument prototype would still apply. */
14173 #ifdef __cplusplus
14174 extern "C"
14175 #endif
14176 char png_get_channels ();
14178 main ()
14180 return png_get_channels ();
14182 return 0;
14184 _ACEOF
14185 rm -f conftest.$ac_objext conftest$ac_exeext
14186 if { (ac_try="$ac_link"
14187 case "(($ac_try" in
14188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14189 *) ac_try_echo=$ac_try;;
14190 esac
14191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14192 (eval "$ac_link") 2>conftest.er1
14193 ac_status=$?
14194 grep -v '^ *+' conftest.er1 >conftest.err
14195 rm -f conftest.er1
14196 cat conftest.err >&5
14197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198 (exit $ac_status); } && {
14199 test -z "$ac_c_werror_flag" ||
14200 test ! -s conftest.err
14201 } && test -s conftest$ac_exeext &&
14202 $as_test_x conftest$ac_exeext; then
14203 ac_cv_lib_png_png_get_channels=yes
14204 else
14205 echo "$as_me: failed program was:" >&5
14206 sed 's/^/| /' conftest.$ac_ext >&5
14208 ac_cv_lib_png_png_get_channels=no
14211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14212 conftest$ac_exeext conftest.$ac_ext
14213 LIBS=$ac_check_lib_save_LIBS
14215 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
14216 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
14217 if test $ac_cv_lib_png_png_get_channels = yes; then
14218 HAVE_PNG=yes
14224 if test "${HAVE_PNG}" = "yes"; then
14226 cat >>confdefs.h <<\_ACEOF
14227 #define HAVE_PNG 1
14228 _ACEOF
14233 ### Use -ltiff if available, unless `--with-tiff=no'.
14234 HAVE_TIFF=no
14235 if test "${HAVE_X11}" = "yes"; then
14236 if test "${with_tiff}" != "no"; then
14237 if test "${ac_cv_header_tiffio_h+set}" = set; then
14238 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14239 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14240 if test "${ac_cv_header_tiffio_h+set}" = set; then
14241 echo $ECHO_N "(cached) $ECHO_C" >&6
14243 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14244 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14245 else
14246 # Is the header compilable?
14247 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
14248 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
14249 cat >conftest.$ac_ext <<_ACEOF
14250 /* confdefs.h. */
14251 _ACEOF
14252 cat confdefs.h >>conftest.$ac_ext
14253 cat >>conftest.$ac_ext <<_ACEOF
14254 /* end confdefs.h. */
14255 $ac_includes_default
14256 #include <tiffio.h>
14257 _ACEOF
14258 rm -f conftest.$ac_objext
14259 if { (ac_try="$ac_compile"
14260 case "(($ac_try" in
14261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14262 *) ac_try_echo=$ac_try;;
14263 esac
14264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14265 (eval "$ac_compile") 2>conftest.er1
14266 ac_status=$?
14267 grep -v '^ *+' conftest.er1 >conftest.err
14268 rm -f conftest.er1
14269 cat conftest.err >&5
14270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271 (exit $ac_status); } && {
14272 test -z "$ac_c_werror_flag" ||
14273 test ! -s conftest.err
14274 } && test -s conftest.$ac_objext; then
14275 ac_header_compiler=yes
14276 else
14277 echo "$as_me: failed program was:" >&5
14278 sed 's/^/| /' conftest.$ac_ext >&5
14280 ac_header_compiler=no
14283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14284 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14285 echo "${ECHO_T}$ac_header_compiler" >&6; }
14287 # Is the header present?
14288 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14289 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
14290 cat >conftest.$ac_ext <<_ACEOF
14291 /* confdefs.h. */
14292 _ACEOF
14293 cat confdefs.h >>conftest.$ac_ext
14294 cat >>conftest.$ac_ext <<_ACEOF
14295 /* end confdefs.h. */
14296 #include <tiffio.h>
14297 _ACEOF
14298 if { (ac_try="$ac_cpp conftest.$ac_ext"
14299 case "(($ac_try" in
14300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14301 *) ac_try_echo=$ac_try;;
14302 esac
14303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14304 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14305 ac_status=$?
14306 grep -v '^ *+' conftest.er1 >conftest.err
14307 rm -f conftest.er1
14308 cat conftest.err >&5
14309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310 (exit $ac_status); } >/dev/null && {
14311 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14312 test ! -s conftest.err
14313 }; then
14314 ac_header_preproc=yes
14315 else
14316 echo "$as_me: failed program was:" >&5
14317 sed 's/^/| /' conftest.$ac_ext >&5
14319 ac_header_preproc=no
14322 rm -f conftest.err conftest.$ac_ext
14323 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14324 echo "${ECHO_T}$ac_header_preproc" >&6; }
14326 # So? What about this header?
14327 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14328 yes:no: )
14329 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14330 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14331 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
14332 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
14333 ac_header_preproc=yes
14335 no:yes:* )
14336 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14337 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14338 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14339 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14340 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14341 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14342 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14343 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14344 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
14345 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
14346 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14347 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14350 esac
14351 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14352 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14353 if test "${ac_cv_header_tiffio_h+set}" = set; then
14354 echo $ECHO_N "(cached) $ECHO_C" >&6
14355 else
14356 ac_cv_header_tiffio_h=$ac_header_preproc
14358 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14359 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14362 if test $ac_cv_header_tiffio_h = yes; then
14363 tifflibs="-lz -lm"
14364 # At least one tiff package requires the jpeg library.
14365 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14366 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14367 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14368 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14369 echo $ECHO_N "(cached) $ECHO_C" >&6
14370 else
14371 ac_check_lib_save_LIBS=$LIBS
14372 LIBS="-ltiff $tifflibs $LIBS"
14373 cat >conftest.$ac_ext <<_ACEOF
14374 /* confdefs.h. */
14375 _ACEOF
14376 cat confdefs.h >>conftest.$ac_ext
14377 cat >>conftest.$ac_ext <<_ACEOF
14378 /* end confdefs.h. */
14380 /* Override any GCC internal prototype to avoid an error.
14381 Use char because int might match the return type of a GCC
14382 builtin and then its argument prototype would still apply. */
14383 #ifdef __cplusplus
14384 extern "C"
14385 #endif
14386 char TIFFGetVersion ();
14388 main ()
14390 return TIFFGetVersion ();
14392 return 0;
14394 _ACEOF
14395 rm -f conftest.$ac_objext conftest$ac_exeext
14396 if { (ac_try="$ac_link"
14397 case "(($ac_try" in
14398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14399 *) ac_try_echo=$ac_try;;
14400 esac
14401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14402 (eval "$ac_link") 2>conftest.er1
14403 ac_status=$?
14404 grep -v '^ *+' conftest.er1 >conftest.err
14405 rm -f conftest.er1
14406 cat conftest.err >&5
14407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408 (exit $ac_status); } && {
14409 test -z "$ac_c_werror_flag" ||
14410 test ! -s conftest.err
14411 } && test -s conftest$ac_exeext &&
14412 $as_test_x conftest$ac_exeext; then
14413 ac_cv_lib_tiff_TIFFGetVersion=yes
14414 else
14415 echo "$as_me: failed program was:" >&5
14416 sed 's/^/| /' conftest.$ac_ext >&5
14418 ac_cv_lib_tiff_TIFFGetVersion=no
14421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14422 conftest$ac_exeext conftest.$ac_ext
14423 LIBS=$ac_check_lib_save_LIBS
14425 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14426 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14427 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14428 HAVE_TIFF=yes
14436 if test "${HAVE_TIFF}" = "yes"; then
14438 cat >>confdefs.h <<\_ACEOF
14439 #define HAVE_TIFF 1
14440 _ACEOF
14445 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14446 HAVE_GIF=no
14447 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14448 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14449 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14450 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14451 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14452 echo $ECHO_N "(cached) $ECHO_C" >&6
14454 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14455 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14456 else
14457 # Is the header compilable?
14458 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14459 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14460 cat >conftest.$ac_ext <<_ACEOF
14461 /* confdefs.h. */
14462 _ACEOF
14463 cat confdefs.h >>conftest.$ac_ext
14464 cat >>conftest.$ac_ext <<_ACEOF
14465 /* end confdefs.h. */
14466 $ac_includes_default
14467 #include <gif_lib.h>
14468 _ACEOF
14469 rm -f conftest.$ac_objext
14470 if { (ac_try="$ac_compile"
14471 case "(($ac_try" in
14472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14473 *) ac_try_echo=$ac_try;;
14474 esac
14475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14476 (eval "$ac_compile") 2>conftest.er1
14477 ac_status=$?
14478 grep -v '^ *+' conftest.er1 >conftest.err
14479 rm -f conftest.er1
14480 cat conftest.err >&5
14481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482 (exit $ac_status); } && {
14483 test -z "$ac_c_werror_flag" ||
14484 test ! -s conftest.err
14485 } && test -s conftest.$ac_objext; then
14486 ac_header_compiler=yes
14487 else
14488 echo "$as_me: failed program was:" >&5
14489 sed 's/^/| /' conftest.$ac_ext >&5
14491 ac_header_compiler=no
14494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14495 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14496 echo "${ECHO_T}$ac_header_compiler" >&6; }
14498 # Is the header present?
14499 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14500 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14501 cat >conftest.$ac_ext <<_ACEOF
14502 /* confdefs.h. */
14503 _ACEOF
14504 cat confdefs.h >>conftest.$ac_ext
14505 cat >>conftest.$ac_ext <<_ACEOF
14506 /* end confdefs.h. */
14507 #include <gif_lib.h>
14508 _ACEOF
14509 if { (ac_try="$ac_cpp conftest.$ac_ext"
14510 case "(($ac_try" in
14511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14512 *) ac_try_echo=$ac_try;;
14513 esac
14514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14515 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14516 ac_status=$?
14517 grep -v '^ *+' conftest.er1 >conftest.err
14518 rm -f conftest.er1
14519 cat conftest.err >&5
14520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521 (exit $ac_status); } >/dev/null && {
14522 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14523 test ! -s conftest.err
14524 }; then
14525 ac_header_preproc=yes
14526 else
14527 echo "$as_me: failed program was:" >&5
14528 sed 's/^/| /' conftest.$ac_ext >&5
14530 ac_header_preproc=no
14533 rm -f conftest.err conftest.$ac_ext
14534 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14535 echo "${ECHO_T}$ac_header_preproc" >&6; }
14537 # So? What about this header?
14538 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14539 yes:no: )
14540 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14541 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14542 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14543 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14544 ac_header_preproc=yes
14546 no:yes:* )
14547 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14548 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14549 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14550 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14551 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14552 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14553 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14554 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14555 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14556 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14557 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14558 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14561 esac
14562 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14563 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14564 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14565 echo $ECHO_N "(cached) $ECHO_C" >&6
14566 else
14567 ac_cv_header_gif_lib_h=$ac_header_preproc
14569 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14570 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14573 if test $ac_cv_header_gif_lib_h = yes; then
14574 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14575 # Earlier versions can crash Emacs.
14576 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14577 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14578 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14579 echo $ECHO_N "(cached) $ECHO_C" >&6
14580 else
14581 ac_check_lib_save_LIBS=$LIBS
14582 LIBS="-lgif $LIBS"
14583 cat >conftest.$ac_ext <<_ACEOF
14584 /* confdefs.h. */
14585 _ACEOF
14586 cat confdefs.h >>conftest.$ac_ext
14587 cat >>conftest.$ac_ext <<_ACEOF
14588 /* end confdefs.h. */
14590 /* Override any GCC internal prototype to avoid an error.
14591 Use char because int might match the return type of a GCC
14592 builtin and then its argument prototype would still apply. */
14593 #ifdef __cplusplus
14594 extern "C"
14595 #endif
14596 char EGifPutExtensionLast ();
14598 main ()
14600 return EGifPutExtensionLast ();
14602 return 0;
14604 _ACEOF
14605 rm -f conftest.$ac_objext conftest$ac_exeext
14606 if { (ac_try="$ac_link"
14607 case "(($ac_try" in
14608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14609 *) ac_try_echo=$ac_try;;
14610 esac
14611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14612 (eval "$ac_link") 2>conftest.er1
14613 ac_status=$?
14614 grep -v '^ *+' conftest.er1 >conftest.err
14615 rm -f conftest.er1
14616 cat conftest.err >&5
14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618 (exit $ac_status); } && {
14619 test -z "$ac_c_werror_flag" ||
14620 test ! -s conftest.err
14621 } && test -s conftest$ac_exeext &&
14622 $as_test_x conftest$ac_exeext; then
14623 ac_cv_lib_gif_EGifPutExtensionLast=yes
14624 else
14625 echo "$as_me: failed program was:" >&5
14626 sed 's/^/| /' conftest.$ac_ext >&5
14628 ac_cv_lib_gif_EGifPutExtensionLast=no
14631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14632 conftest$ac_exeext conftest.$ac_ext
14633 LIBS=$ac_check_lib_save_LIBS
14635 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14636 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14637 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14638 HAVE_GIF=yes
14639 else
14640 try_libungif=yes
14647 if test "$HAVE_GIF" = yes; then
14648 ac_gif_lib_name="-lgif"
14651 # If gif_lib.h but no libgif, try libungif.
14652 if test x"$try_libungif" = xyes; then
14653 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14654 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14655 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14656 echo $ECHO_N "(cached) $ECHO_C" >&6
14657 else
14658 ac_check_lib_save_LIBS=$LIBS
14659 LIBS="-lungif $LIBS"
14660 cat >conftest.$ac_ext <<_ACEOF
14661 /* confdefs.h. */
14662 _ACEOF
14663 cat confdefs.h >>conftest.$ac_ext
14664 cat >>conftest.$ac_ext <<_ACEOF
14665 /* end confdefs.h. */
14667 /* Override any GCC internal prototype to avoid an error.
14668 Use char because int might match the return type of a GCC
14669 builtin and then its argument prototype would still apply. */
14670 #ifdef __cplusplus
14671 extern "C"
14672 #endif
14673 char EGifPutExtensionLast ();
14675 main ()
14677 return EGifPutExtensionLast ();
14679 return 0;
14681 _ACEOF
14682 rm -f conftest.$ac_objext conftest$ac_exeext
14683 if { (ac_try="$ac_link"
14684 case "(($ac_try" in
14685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14686 *) ac_try_echo=$ac_try;;
14687 esac
14688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14689 (eval "$ac_link") 2>conftest.er1
14690 ac_status=$?
14691 grep -v '^ *+' conftest.er1 >conftest.err
14692 rm -f conftest.er1
14693 cat conftest.err >&5
14694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14695 (exit $ac_status); } && {
14696 test -z "$ac_c_werror_flag" ||
14697 test ! -s conftest.err
14698 } && test -s conftest$ac_exeext &&
14699 $as_test_x conftest$ac_exeext; then
14700 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14701 else
14702 echo "$as_me: failed program was:" >&5
14703 sed 's/^/| /' conftest.$ac_ext >&5
14705 ac_cv_lib_ungif_EGifPutExtensionLast=no
14708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14709 conftest$ac_exeext conftest.$ac_ext
14710 LIBS=$ac_check_lib_save_LIBS
14712 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14713 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14714 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14715 HAVE_GIF=yes
14719 if test "$HAVE_GIF" = yes; then
14721 cat >>confdefs.h <<\_ACEOF
14722 #define LIBGIF -lungif
14723 _ACEOF
14725 ac_gif_lib_name="-lungif"
14729 if test "${HAVE_GIF}" = "yes"; then
14731 cat >>confdefs.h <<\_ACEOF
14732 #define HAVE_GIF 1
14733 _ACEOF
14738 if test "${HAVE_X11}" = "yes"; then
14739 MISSING=""
14740 WITH_NO=""
14741 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14742 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14743 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14744 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
14745 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14746 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
14747 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14748 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
14749 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14750 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
14752 if test "X${MISSING}" != X; then
14753 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14754 $MISSING
14755 Maybe some development libraries/packages are missing?
14756 If you don't want to link with them give
14757 $WITH_NO
14758 as options to configure" >&5
14759 echo "$as_me: error: The following required libraries were not found:
14760 $MISSING
14761 Maybe some development libraries/packages are missing?
14762 If you don't want to link with them give
14763 $WITH_NO
14764 as options to configure" >&2;}
14765 { (exit 1); exit 1; }; }
14769 ### Use -lgpm if available, unless `--with-gpm=no'.
14770 HAVE_GPM=no
14771 if test "${with_gpm}" != "no"; then
14772 if test "${ac_cv_header_gpm_h+set}" = set; then
14773 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14774 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14775 if test "${ac_cv_header_gpm_h+set}" = set; then
14776 echo $ECHO_N "(cached) $ECHO_C" >&6
14778 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14779 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14780 else
14781 # Is the header compilable?
14782 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14783 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14784 cat >conftest.$ac_ext <<_ACEOF
14785 /* confdefs.h. */
14786 _ACEOF
14787 cat confdefs.h >>conftest.$ac_ext
14788 cat >>conftest.$ac_ext <<_ACEOF
14789 /* end confdefs.h. */
14790 $ac_includes_default
14791 #include <gpm.h>
14792 _ACEOF
14793 rm -f conftest.$ac_objext
14794 if { (ac_try="$ac_compile"
14795 case "(($ac_try" in
14796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14797 *) ac_try_echo=$ac_try;;
14798 esac
14799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14800 (eval "$ac_compile") 2>conftest.er1
14801 ac_status=$?
14802 grep -v '^ *+' conftest.er1 >conftest.err
14803 rm -f conftest.er1
14804 cat conftest.err >&5
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); } && {
14807 test -z "$ac_c_werror_flag" ||
14808 test ! -s conftest.err
14809 } && test -s conftest.$ac_objext; then
14810 ac_header_compiler=yes
14811 else
14812 echo "$as_me: failed program was:" >&5
14813 sed 's/^/| /' conftest.$ac_ext >&5
14815 ac_header_compiler=no
14818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14819 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14820 echo "${ECHO_T}$ac_header_compiler" >&6; }
14822 # Is the header present?
14823 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14824 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14825 cat >conftest.$ac_ext <<_ACEOF
14826 /* confdefs.h. */
14827 _ACEOF
14828 cat confdefs.h >>conftest.$ac_ext
14829 cat >>conftest.$ac_ext <<_ACEOF
14830 /* end confdefs.h. */
14831 #include <gpm.h>
14832 _ACEOF
14833 if { (ac_try="$ac_cpp conftest.$ac_ext"
14834 case "(($ac_try" in
14835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14836 *) ac_try_echo=$ac_try;;
14837 esac
14838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14839 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14840 ac_status=$?
14841 grep -v '^ *+' conftest.er1 >conftest.err
14842 rm -f conftest.er1
14843 cat conftest.err >&5
14844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); } >/dev/null && {
14846 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14847 test ! -s conftest.err
14848 }; then
14849 ac_header_preproc=yes
14850 else
14851 echo "$as_me: failed program was:" >&5
14852 sed 's/^/| /' conftest.$ac_ext >&5
14854 ac_header_preproc=no
14857 rm -f conftest.err conftest.$ac_ext
14858 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14859 echo "${ECHO_T}$ac_header_preproc" >&6; }
14861 # So? What about this header?
14862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14863 yes:no: )
14864 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14865 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14866 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14867 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14868 ac_header_preproc=yes
14870 no:yes:* )
14871 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14872 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14873 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14874 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14875 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14876 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14877 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14878 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14879 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14880 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14881 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14882 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14885 esac
14886 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14887 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14888 if test "${ac_cv_header_gpm_h+set}" = set; then
14889 echo $ECHO_N "(cached) $ECHO_C" >&6
14890 else
14891 ac_cv_header_gpm_h=$ac_header_preproc
14893 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14894 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14897 if test $ac_cv_header_gpm_h = yes; then
14898 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14899 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14900 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14901 echo $ECHO_N "(cached) $ECHO_C" >&6
14902 else
14903 ac_check_lib_save_LIBS=$LIBS
14904 LIBS="-lgpm $LIBS"
14905 cat >conftest.$ac_ext <<_ACEOF
14906 /* confdefs.h. */
14907 _ACEOF
14908 cat confdefs.h >>conftest.$ac_ext
14909 cat >>conftest.$ac_ext <<_ACEOF
14910 /* end confdefs.h. */
14912 /* Override any GCC internal prototype to avoid an error.
14913 Use char because int might match the return type of a GCC
14914 builtin and then its argument prototype would still apply. */
14915 #ifdef __cplusplus
14916 extern "C"
14917 #endif
14918 char Gpm_Open ();
14920 main ()
14922 return Gpm_Open ();
14924 return 0;
14926 _ACEOF
14927 rm -f conftest.$ac_objext conftest$ac_exeext
14928 if { (ac_try="$ac_link"
14929 case "(($ac_try" in
14930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14931 *) ac_try_echo=$ac_try;;
14932 esac
14933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14934 (eval "$ac_link") 2>conftest.er1
14935 ac_status=$?
14936 grep -v '^ *+' conftest.er1 >conftest.err
14937 rm -f conftest.er1
14938 cat conftest.err >&5
14939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940 (exit $ac_status); } && {
14941 test -z "$ac_c_werror_flag" ||
14942 test ! -s conftest.err
14943 } && test -s conftest$ac_exeext &&
14944 $as_test_x conftest$ac_exeext; then
14945 ac_cv_lib_gpm_Gpm_Open=yes
14946 else
14947 echo "$as_me: failed program was:" >&5
14948 sed 's/^/| /' conftest.$ac_ext >&5
14950 ac_cv_lib_gpm_Gpm_Open=no
14953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14954 conftest$ac_exeext conftest.$ac_ext
14955 LIBS=$ac_check_lib_save_LIBS
14957 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14958 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14959 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14960 HAVE_GPM=yes
14968 if test "${HAVE_GPM}" = "yes"; then
14970 cat >>confdefs.h <<\_ACEOF
14971 #define HAVE_GPM 1
14972 _ACEOF
14976 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14977 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14978 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14979 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14980 echo $ECHO_N "(cached) $ECHO_C" >&6
14982 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14983 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14984 else
14985 # Is the header compilable?
14986 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14987 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14988 cat >conftest.$ac_ext <<_ACEOF
14989 /* confdefs.h. */
14990 _ACEOF
14991 cat confdefs.h >>conftest.$ac_ext
14992 cat >>conftest.$ac_ext <<_ACEOF
14993 /* end confdefs.h. */
14994 $ac_includes_default
14995 #include <malloc/malloc.h>
14996 _ACEOF
14997 rm -f conftest.$ac_objext
14998 if { (ac_try="$ac_compile"
14999 case "(($ac_try" in
15000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15001 *) ac_try_echo=$ac_try;;
15002 esac
15003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15004 (eval "$ac_compile") 2>conftest.er1
15005 ac_status=$?
15006 grep -v '^ *+' conftest.er1 >conftest.err
15007 rm -f conftest.er1
15008 cat conftest.err >&5
15009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010 (exit $ac_status); } && {
15011 test -z "$ac_c_werror_flag" ||
15012 test ! -s conftest.err
15013 } && test -s conftest.$ac_objext; then
15014 ac_header_compiler=yes
15015 else
15016 echo "$as_me: failed program was:" >&5
15017 sed 's/^/| /' conftest.$ac_ext >&5
15019 ac_header_compiler=no
15022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15023 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15024 echo "${ECHO_T}$ac_header_compiler" >&6; }
15026 # Is the header present?
15027 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
15028 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
15029 cat >conftest.$ac_ext <<_ACEOF
15030 /* confdefs.h. */
15031 _ACEOF
15032 cat confdefs.h >>conftest.$ac_ext
15033 cat >>conftest.$ac_ext <<_ACEOF
15034 /* end confdefs.h. */
15035 #include <malloc/malloc.h>
15036 _ACEOF
15037 if { (ac_try="$ac_cpp conftest.$ac_ext"
15038 case "(($ac_try" in
15039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15040 *) ac_try_echo=$ac_try;;
15041 esac
15042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15043 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15044 ac_status=$?
15045 grep -v '^ *+' conftest.er1 >conftest.err
15046 rm -f conftest.er1
15047 cat conftest.err >&5
15048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049 (exit $ac_status); } >/dev/null && {
15050 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15051 test ! -s conftest.err
15052 }; then
15053 ac_header_preproc=yes
15054 else
15055 echo "$as_me: failed program was:" >&5
15056 sed 's/^/| /' conftest.$ac_ext >&5
15058 ac_header_preproc=no
15061 rm -f conftest.err conftest.$ac_ext
15062 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15063 echo "${ECHO_T}$ac_header_preproc" >&6; }
15065 # So? What about this header?
15066 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15067 yes:no: )
15068 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
15069 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15070 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
15071 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
15072 ac_header_preproc=yes
15074 no:yes:* )
15075 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
15076 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
15077 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
15078 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
15079 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
15080 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
15081 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
15082 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
15083 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
15084 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
15085 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
15086 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
15089 esac
15090 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15091 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
15092 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15093 echo $ECHO_N "(cached) $ECHO_C" >&6
15094 else
15095 ac_cv_header_malloc_malloc_h=$ac_header_preproc
15097 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15098 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
15101 if test $ac_cv_header_malloc_malloc_h = yes; then
15103 cat >>confdefs.h <<\_ACEOF
15104 #define HAVE_MALLOC_MALLOC_H 1
15105 _ACEOF
15111 ### Use NeXTstep API to implement GUI.
15112 if test "${HAVE_NS}" = "yes"; then
15114 cat >>confdefs.h <<\_ACEOF
15115 #define HAVE_NS 1
15116 _ACEOF
15118 if test "${NS_IMPL_COCOA}" = "yes"; then
15120 cat >>confdefs.h <<\_ACEOF
15121 #define NS_IMPL_COCOA 1
15122 _ACEOF
15124 GNU_OBJC_CFLAGS=
15126 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
15128 cat >>confdefs.h <<\_ACEOF
15129 #define NS_IMPL_GNUSTEP 1
15130 _ACEOF
15132 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
15134 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
15136 cat >>confdefs.h <<\_ACEOF
15137 #define NS_HAVE_NSINTEGER 1
15138 _ACEOF
15141 # We also have mouse menus.
15142 HAVE_MENUS=yes
15146 ### Use session management (-lSM -lICE) if available
15147 HAVE_X_SM=no
15148 if test "${HAVE_X11}" = "yes"; then
15149 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15150 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15151 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15152 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15153 echo $ECHO_N "(cached) $ECHO_C" >&6
15155 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15156 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15157 else
15158 # Is the header compilable?
15159 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
15160 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
15161 cat >conftest.$ac_ext <<_ACEOF
15162 /* confdefs.h. */
15163 _ACEOF
15164 cat confdefs.h >>conftest.$ac_ext
15165 cat >>conftest.$ac_ext <<_ACEOF
15166 /* end confdefs.h. */
15167 $ac_includes_default
15168 #include <X11/SM/SMlib.h>
15169 _ACEOF
15170 rm -f conftest.$ac_objext
15171 if { (ac_try="$ac_compile"
15172 case "(($ac_try" in
15173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15174 *) ac_try_echo=$ac_try;;
15175 esac
15176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15177 (eval "$ac_compile") 2>conftest.er1
15178 ac_status=$?
15179 grep -v '^ *+' conftest.er1 >conftest.err
15180 rm -f conftest.er1
15181 cat conftest.err >&5
15182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183 (exit $ac_status); } && {
15184 test -z "$ac_c_werror_flag" ||
15185 test ! -s conftest.err
15186 } && test -s conftest.$ac_objext; then
15187 ac_header_compiler=yes
15188 else
15189 echo "$as_me: failed program was:" >&5
15190 sed 's/^/| /' conftest.$ac_ext >&5
15192 ac_header_compiler=no
15195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15196 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15197 echo "${ECHO_T}$ac_header_compiler" >&6; }
15199 # Is the header present?
15200 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
15201 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
15202 cat >conftest.$ac_ext <<_ACEOF
15203 /* confdefs.h. */
15204 _ACEOF
15205 cat confdefs.h >>conftest.$ac_ext
15206 cat >>conftest.$ac_ext <<_ACEOF
15207 /* end confdefs.h. */
15208 #include <X11/SM/SMlib.h>
15209 _ACEOF
15210 if { (ac_try="$ac_cpp conftest.$ac_ext"
15211 case "(($ac_try" in
15212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15213 *) ac_try_echo=$ac_try;;
15214 esac
15215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15217 ac_status=$?
15218 grep -v '^ *+' conftest.er1 >conftest.err
15219 rm -f conftest.er1
15220 cat conftest.err >&5
15221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15222 (exit $ac_status); } >/dev/null && {
15223 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15224 test ! -s conftest.err
15225 }; then
15226 ac_header_preproc=yes
15227 else
15228 echo "$as_me: failed program was:" >&5
15229 sed 's/^/| /' conftest.$ac_ext >&5
15231 ac_header_preproc=no
15234 rm -f conftest.err conftest.$ac_ext
15235 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15236 echo "${ECHO_T}$ac_header_preproc" >&6; }
15238 # So? What about this header?
15239 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15240 yes:no: )
15241 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15242 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15243 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
15244 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
15245 ac_header_preproc=yes
15247 no:yes:* )
15248 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
15249 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
15250 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
15251 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
15252 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
15253 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
15254 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
15255 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15256 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
15257 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
15258 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
15259 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
15262 esac
15263 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15264 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15265 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15266 echo $ECHO_N "(cached) $ECHO_C" >&6
15267 else
15268 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15270 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15271 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15274 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15275 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
15276 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
15277 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15278 echo $ECHO_N "(cached) $ECHO_C" >&6
15279 else
15280 ac_check_lib_save_LIBS=$LIBS
15281 LIBS="-lSM -lICE $LIBS"
15282 cat >conftest.$ac_ext <<_ACEOF
15283 /* confdefs.h. */
15284 _ACEOF
15285 cat confdefs.h >>conftest.$ac_ext
15286 cat >>conftest.$ac_ext <<_ACEOF
15287 /* end confdefs.h. */
15289 /* Override any GCC internal prototype to avoid an error.
15290 Use char because int might match the return type of a GCC
15291 builtin and then its argument prototype would still apply. */
15292 #ifdef __cplusplus
15293 extern "C"
15294 #endif
15295 char SmcOpenConnection ();
15297 main ()
15299 return SmcOpenConnection ();
15301 return 0;
15303 _ACEOF
15304 rm -f conftest.$ac_objext conftest$ac_exeext
15305 if { (ac_try="$ac_link"
15306 case "(($ac_try" in
15307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15308 *) ac_try_echo=$ac_try;;
15309 esac
15310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15311 (eval "$ac_link") 2>conftest.er1
15312 ac_status=$?
15313 grep -v '^ *+' conftest.er1 >conftest.err
15314 rm -f conftest.er1
15315 cat conftest.err >&5
15316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317 (exit $ac_status); } && {
15318 test -z "$ac_c_werror_flag" ||
15319 test ! -s conftest.err
15320 } && test -s conftest$ac_exeext &&
15321 $as_test_x conftest$ac_exeext; then
15322 ac_cv_lib_SM_SmcOpenConnection=yes
15323 else
15324 echo "$as_me: failed program was:" >&5
15325 sed 's/^/| /' conftest.$ac_ext >&5
15327 ac_cv_lib_SM_SmcOpenConnection=no
15330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15331 conftest$ac_exeext conftest.$ac_ext
15332 LIBS=$ac_check_lib_save_LIBS
15334 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15335 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15336 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15337 HAVE_X_SM=yes
15344 if test "${HAVE_X_SM}" = "yes"; then
15346 cat >>confdefs.h <<\_ACEOF
15347 #define HAVE_X_SM 1
15348 _ACEOF
15350 case "$LIBS" in
15351 *-lSM*) ;;
15352 *) LIBS="-lSM -lICE $LIBS" ;;
15353 esac
15357 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15358 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15359 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
15360 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15361 echo $ECHO_N "(cached) $ECHO_C" >&6
15362 else
15363 cat >conftest.$ac_ext <<_ACEOF
15364 /* confdefs.h. */
15365 _ACEOF
15366 cat confdefs.h >>conftest.$ac_ext
15367 cat >>conftest.$ac_ext <<_ACEOF
15368 /* end confdefs.h. */
15369 #include <netdb.h>
15371 main ()
15373 return h_errno;
15375 return 0;
15377 _ACEOF
15378 rm -f conftest.$ac_objext conftest$ac_exeext
15379 if { (ac_try="$ac_link"
15380 case "(($ac_try" in
15381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15382 *) ac_try_echo=$ac_try;;
15383 esac
15384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15385 (eval "$ac_link") 2>conftest.er1
15386 ac_status=$?
15387 grep -v '^ *+' conftest.er1 >conftest.err
15388 rm -f conftest.er1
15389 cat conftest.err >&5
15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); } && {
15392 test -z "$ac_c_werror_flag" ||
15393 test ! -s conftest.err
15394 } && test -s conftest$ac_exeext &&
15395 $as_test_x conftest$ac_exeext; then
15396 emacs_cv_netdb_declares_h_errno=yes
15397 else
15398 echo "$as_me: failed program was:" >&5
15399 sed 's/^/| /' conftest.$ac_ext >&5
15401 emacs_cv_netdb_declares_h_errno=no
15404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15405 conftest$ac_exeext conftest.$ac_ext
15407 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15408 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15409 if test $emacs_cv_netdb_declares_h_errno = yes; then
15411 cat >>confdefs.h <<\_ACEOF
15412 #define HAVE_H_ERRNO 1
15413 _ACEOF
15417 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15418 # for constant arguments. Useless!
15419 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15420 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15421 if test "${ac_cv_working_alloca_h+set}" = set; then
15422 echo $ECHO_N "(cached) $ECHO_C" >&6
15423 else
15424 cat >conftest.$ac_ext <<_ACEOF
15425 /* confdefs.h. */
15426 _ACEOF
15427 cat confdefs.h >>conftest.$ac_ext
15428 cat >>conftest.$ac_ext <<_ACEOF
15429 /* end confdefs.h. */
15430 #include <alloca.h>
15432 main ()
15434 char *p = (char *) alloca (2 * sizeof (int));
15435 if (p) return 0;
15437 return 0;
15439 _ACEOF
15440 rm -f conftest.$ac_objext conftest$ac_exeext
15441 if { (ac_try="$ac_link"
15442 case "(($ac_try" in
15443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15444 *) ac_try_echo=$ac_try;;
15445 esac
15446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15447 (eval "$ac_link") 2>conftest.er1
15448 ac_status=$?
15449 grep -v '^ *+' conftest.er1 >conftest.err
15450 rm -f conftest.er1
15451 cat conftest.err >&5
15452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453 (exit $ac_status); } && {
15454 test -z "$ac_c_werror_flag" ||
15455 test ! -s conftest.err
15456 } && test -s conftest$ac_exeext &&
15457 $as_test_x conftest$ac_exeext; then
15458 ac_cv_working_alloca_h=yes
15459 else
15460 echo "$as_me: failed program was:" >&5
15461 sed 's/^/| /' conftest.$ac_ext >&5
15463 ac_cv_working_alloca_h=no
15466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15467 conftest$ac_exeext conftest.$ac_ext
15469 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15470 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15471 if test $ac_cv_working_alloca_h = yes; then
15473 cat >>confdefs.h <<\_ACEOF
15474 #define HAVE_ALLOCA_H 1
15475 _ACEOF
15479 { echo "$as_me:$LINENO: checking for alloca" >&5
15480 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15481 if test "${ac_cv_func_alloca_works+set}" = set; then
15482 echo $ECHO_N "(cached) $ECHO_C" >&6
15483 else
15484 cat >conftest.$ac_ext <<_ACEOF
15485 /* confdefs.h. */
15486 _ACEOF
15487 cat confdefs.h >>conftest.$ac_ext
15488 cat >>conftest.$ac_ext <<_ACEOF
15489 /* end confdefs.h. */
15490 #ifdef __GNUC__
15491 # define alloca __builtin_alloca
15492 #else
15493 # ifdef _MSC_VER
15494 # include <malloc.h>
15495 # define alloca _alloca
15496 # else
15497 # ifdef HAVE_ALLOCA_H
15498 # include <alloca.h>
15499 # else
15500 # ifdef _AIX
15501 #pragma alloca
15502 # else
15503 # ifndef alloca /* predefined by HP cc +Olibcalls */
15504 char *alloca ();
15505 # endif
15506 # endif
15507 # endif
15508 # endif
15509 #endif
15512 main ()
15514 char *p = (char *) alloca (1);
15515 if (p) return 0;
15517 return 0;
15519 _ACEOF
15520 rm -f conftest.$ac_objext conftest$ac_exeext
15521 if { (ac_try="$ac_link"
15522 case "(($ac_try" in
15523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15524 *) ac_try_echo=$ac_try;;
15525 esac
15526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15527 (eval "$ac_link") 2>conftest.er1
15528 ac_status=$?
15529 grep -v '^ *+' conftest.er1 >conftest.err
15530 rm -f conftest.er1
15531 cat conftest.err >&5
15532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533 (exit $ac_status); } && {
15534 test -z "$ac_c_werror_flag" ||
15535 test ! -s conftest.err
15536 } && test -s conftest$ac_exeext &&
15537 $as_test_x conftest$ac_exeext; then
15538 ac_cv_func_alloca_works=yes
15539 else
15540 echo "$as_me: failed program was:" >&5
15541 sed 's/^/| /' conftest.$ac_ext >&5
15543 ac_cv_func_alloca_works=no
15546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15547 conftest$ac_exeext conftest.$ac_ext
15549 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15550 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15552 if test $ac_cv_func_alloca_works = yes; then
15554 cat >>confdefs.h <<\_ACEOF
15555 #define HAVE_ALLOCA 1
15556 _ACEOF
15558 else
15559 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15560 # that cause trouble. Some versions do not even contain alloca or
15561 # contain a buggy version. If you still want to use their alloca,
15562 # use ar to extract alloca.o from them instead of compiling alloca.c.
15564 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15566 cat >>confdefs.h <<\_ACEOF
15567 #define C_ALLOCA 1
15568 _ACEOF
15571 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15572 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
15573 if test "${ac_cv_os_cray+set}" = set; then
15574 echo $ECHO_N "(cached) $ECHO_C" >&6
15575 else
15576 cat >conftest.$ac_ext <<_ACEOF
15577 /* confdefs.h. */
15578 _ACEOF
15579 cat confdefs.h >>conftest.$ac_ext
15580 cat >>conftest.$ac_ext <<_ACEOF
15581 /* end confdefs.h. */
15582 #if defined CRAY && ! defined CRAY2
15583 webecray
15584 #else
15585 wenotbecray
15586 #endif
15588 _ACEOF
15589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15590 $EGREP "webecray" >/dev/null 2>&1; then
15591 ac_cv_os_cray=yes
15592 else
15593 ac_cv_os_cray=no
15595 rm -f conftest*
15598 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15599 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15600 if test $ac_cv_os_cray = yes; then
15601 for ac_func in _getb67 GETB67 getb67; do
15602 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15603 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15604 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15605 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15606 echo $ECHO_N "(cached) $ECHO_C" >&6
15607 else
15608 cat >conftest.$ac_ext <<_ACEOF
15609 /* confdefs.h. */
15610 _ACEOF
15611 cat confdefs.h >>conftest.$ac_ext
15612 cat >>conftest.$ac_ext <<_ACEOF
15613 /* end confdefs.h. */
15614 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15615 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15616 #define $ac_func innocuous_$ac_func
15618 /* System header to define __stub macros and hopefully few prototypes,
15619 which can conflict with char $ac_func (); below.
15620 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15621 <limits.h> exists even on freestanding compilers. */
15623 #ifdef __STDC__
15624 # include <limits.h>
15625 #else
15626 # include <assert.h>
15627 #endif
15629 #undef $ac_func
15631 /* Override any GCC internal prototype to avoid an error.
15632 Use char because int might match the return type of a GCC
15633 builtin and then its argument prototype would still apply. */
15634 #ifdef __cplusplus
15635 extern "C"
15636 #endif
15637 char $ac_func ();
15638 /* The GNU C library defines this for functions which it implements
15639 to always fail with ENOSYS. Some functions are actually named
15640 something starting with __ and the normal name is an alias. */
15641 #if defined __stub_$ac_func || defined __stub___$ac_func
15642 choke me
15643 #endif
15646 main ()
15648 return $ac_func ();
15650 return 0;
15652 _ACEOF
15653 rm -f conftest.$ac_objext conftest$ac_exeext
15654 if { (ac_try="$ac_link"
15655 case "(($ac_try" in
15656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15657 *) ac_try_echo=$ac_try;;
15658 esac
15659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15660 (eval "$ac_link") 2>conftest.er1
15661 ac_status=$?
15662 grep -v '^ *+' conftest.er1 >conftest.err
15663 rm -f conftest.er1
15664 cat conftest.err >&5
15665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666 (exit $ac_status); } && {
15667 test -z "$ac_c_werror_flag" ||
15668 test ! -s conftest.err
15669 } && test -s conftest$ac_exeext &&
15670 $as_test_x conftest$ac_exeext; then
15671 eval "$as_ac_var=yes"
15672 else
15673 echo "$as_me: failed program was:" >&5
15674 sed 's/^/| /' conftest.$ac_ext >&5
15676 eval "$as_ac_var=no"
15679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15680 conftest$ac_exeext conftest.$ac_ext
15682 ac_res=`eval echo '${'$as_ac_var'}'`
15683 { echo "$as_me:$LINENO: result: $ac_res" >&5
15684 echo "${ECHO_T}$ac_res" >&6; }
15685 if test `eval echo '${'$as_ac_var'}'` = yes; then
15687 cat >>confdefs.h <<_ACEOF
15688 #define CRAY_STACKSEG_END $ac_func
15689 _ACEOF
15691 break
15694 done
15697 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15698 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
15699 if test "${ac_cv_c_stack_direction+set}" = set; then
15700 echo $ECHO_N "(cached) $ECHO_C" >&6
15701 else
15702 if test "$cross_compiling" = yes; then
15703 ac_cv_c_stack_direction=0
15704 else
15705 cat >conftest.$ac_ext <<_ACEOF
15706 /* confdefs.h. */
15707 _ACEOF
15708 cat confdefs.h >>conftest.$ac_ext
15709 cat >>conftest.$ac_ext <<_ACEOF
15710 /* end confdefs.h. */
15711 $ac_includes_default
15713 find_stack_direction ()
15715 static char *addr = 0;
15716 auto char dummy;
15717 if (addr == 0)
15719 addr = &dummy;
15720 return find_stack_direction ();
15722 else
15723 return (&dummy > addr) ? 1 : -1;
15727 main ()
15729 return find_stack_direction () < 0;
15731 _ACEOF
15732 rm -f conftest$ac_exeext
15733 if { (ac_try="$ac_link"
15734 case "(($ac_try" in
15735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15736 *) ac_try_echo=$ac_try;;
15737 esac
15738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15739 (eval "$ac_link") 2>&5
15740 ac_status=$?
15741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15743 { (case "(($ac_try" in
15744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15745 *) ac_try_echo=$ac_try;;
15746 esac
15747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15748 (eval "$ac_try") 2>&5
15749 ac_status=$?
15750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15751 (exit $ac_status); }; }; then
15752 ac_cv_c_stack_direction=1
15753 else
15754 echo "$as_me: program exited with status $ac_status" >&5
15755 echo "$as_me: failed program was:" >&5
15756 sed 's/^/| /' conftest.$ac_ext >&5
15758 ( exit $ac_status )
15759 ac_cv_c_stack_direction=-1
15761 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15766 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15767 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15769 cat >>confdefs.h <<_ACEOF
15770 #define STACK_DIRECTION $ac_cv_c_stack_direction
15771 _ACEOF
15777 if test x"$ac_cv_func_alloca_works" != xyes; then
15778 { { echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
15779 echo "$as_me: error: a system implementation of alloca is required " >&2;}
15780 { (exit 1); exit 1; }; }
15783 # fmod, logb, and frexp are found in -lm on most systems.
15784 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15786 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15787 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15788 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15789 echo $ECHO_N "(cached) $ECHO_C" >&6
15790 else
15791 ac_check_lib_save_LIBS=$LIBS
15792 LIBS="-lm $LIBS"
15793 cat >conftest.$ac_ext <<_ACEOF
15794 /* confdefs.h. */
15795 _ACEOF
15796 cat confdefs.h >>conftest.$ac_ext
15797 cat >>conftest.$ac_ext <<_ACEOF
15798 /* end confdefs.h. */
15800 /* Override any GCC internal prototype to avoid an error.
15801 Use char because int might match the return type of a GCC
15802 builtin and then its argument prototype would still apply. */
15803 #ifdef __cplusplus
15804 extern "C"
15805 #endif
15806 char sqrt ();
15808 main ()
15810 return sqrt ();
15812 return 0;
15814 _ACEOF
15815 rm -f conftest.$ac_objext conftest$ac_exeext
15816 if { (ac_try="$ac_link"
15817 case "(($ac_try" in
15818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15819 *) ac_try_echo=$ac_try;;
15820 esac
15821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15822 (eval "$ac_link") 2>conftest.er1
15823 ac_status=$?
15824 grep -v '^ *+' conftest.er1 >conftest.err
15825 rm -f conftest.er1
15826 cat conftest.err >&5
15827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15828 (exit $ac_status); } && {
15829 test -z "$ac_c_werror_flag" ||
15830 test ! -s conftest.err
15831 } && test -s conftest$ac_exeext &&
15832 $as_test_x conftest$ac_exeext; then
15833 ac_cv_lib_m_sqrt=yes
15834 else
15835 echo "$as_me: failed program was:" >&5
15836 sed 's/^/| /' conftest.$ac_ext >&5
15838 ac_cv_lib_m_sqrt=no
15841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15842 conftest$ac_exeext conftest.$ac_ext
15843 LIBS=$ac_check_lib_save_LIBS
15845 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15846 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15847 if test $ac_cv_lib_m_sqrt = yes; then
15848 cat >>confdefs.h <<_ACEOF
15849 #define HAVE_LIBM 1
15850 _ACEOF
15852 LIBS="-lm $LIBS"
15857 # Check for mail-locking functions in a "mail" library. Probably this should
15858 # have the same check as for liblockfile below.
15860 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15861 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15862 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15863 echo $ECHO_N "(cached) $ECHO_C" >&6
15864 else
15865 ac_check_lib_save_LIBS=$LIBS
15866 LIBS="-lmail $LIBS"
15867 cat >conftest.$ac_ext <<_ACEOF
15868 /* confdefs.h. */
15869 _ACEOF
15870 cat confdefs.h >>conftest.$ac_ext
15871 cat >>conftest.$ac_ext <<_ACEOF
15872 /* end confdefs.h. */
15874 /* Override any GCC internal prototype to avoid an error.
15875 Use char because int might match the return type of a GCC
15876 builtin and then its argument prototype would still apply. */
15877 #ifdef __cplusplus
15878 extern "C"
15879 #endif
15880 char maillock ();
15882 main ()
15884 return maillock ();
15886 return 0;
15888 _ACEOF
15889 rm -f conftest.$ac_objext conftest$ac_exeext
15890 if { (ac_try="$ac_link"
15891 case "(($ac_try" in
15892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15893 *) ac_try_echo=$ac_try;;
15894 esac
15895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15896 (eval "$ac_link") 2>conftest.er1
15897 ac_status=$?
15898 grep -v '^ *+' conftest.er1 >conftest.err
15899 rm -f conftest.er1
15900 cat conftest.err >&5
15901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902 (exit $ac_status); } && {
15903 test -z "$ac_c_werror_flag" ||
15904 test ! -s conftest.err
15905 } && test -s conftest$ac_exeext &&
15906 $as_test_x conftest$ac_exeext; then
15907 ac_cv_lib_mail_maillock=yes
15908 else
15909 echo "$as_me: failed program was:" >&5
15910 sed 's/^/| /' conftest.$ac_ext >&5
15912 ac_cv_lib_mail_maillock=no
15915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15916 conftest$ac_exeext conftest.$ac_ext
15917 LIBS=$ac_check_lib_save_LIBS
15919 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15920 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15921 if test $ac_cv_lib_mail_maillock = yes; then
15922 cat >>confdefs.h <<_ACEOF
15923 #define HAVE_LIBMAIL 1
15924 _ACEOF
15926 LIBS="-lmail $LIBS"
15931 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15932 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15933 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15934 echo $ECHO_N "(cached) $ECHO_C" >&6
15935 else
15936 ac_check_lib_save_LIBS=$LIBS
15937 LIBS="-llockfile $LIBS"
15938 cat >conftest.$ac_ext <<_ACEOF
15939 /* confdefs.h. */
15940 _ACEOF
15941 cat confdefs.h >>conftest.$ac_ext
15942 cat >>conftest.$ac_ext <<_ACEOF
15943 /* end confdefs.h. */
15945 /* Override any GCC internal prototype to avoid an error.
15946 Use char because int might match the return type of a GCC
15947 builtin and then its argument prototype would still apply. */
15948 #ifdef __cplusplus
15949 extern "C"
15950 #endif
15951 char maillock ();
15953 main ()
15955 return maillock ();
15957 return 0;
15959 _ACEOF
15960 rm -f conftest.$ac_objext conftest$ac_exeext
15961 if { (ac_try="$ac_link"
15962 case "(($ac_try" in
15963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15964 *) ac_try_echo=$ac_try;;
15965 esac
15966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15967 (eval "$ac_link") 2>conftest.er1
15968 ac_status=$?
15969 grep -v '^ *+' conftest.er1 >conftest.err
15970 rm -f conftest.er1
15971 cat conftest.err >&5
15972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15973 (exit $ac_status); } && {
15974 test -z "$ac_c_werror_flag" ||
15975 test ! -s conftest.err
15976 } && test -s conftest$ac_exeext &&
15977 $as_test_x conftest$ac_exeext; then
15978 ac_cv_lib_lockfile_maillock=yes
15979 else
15980 echo "$as_me: failed program was:" >&5
15981 sed 's/^/| /' conftest.$ac_ext >&5
15983 ac_cv_lib_lockfile_maillock=no
15986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15987 conftest$ac_exeext conftest.$ac_ext
15988 LIBS=$ac_check_lib_save_LIBS
15990 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15991 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15992 if test $ac_cv_lib_lockfile_maillock = yes; then
15993 cat >>confdefs.h <<_ACEOF
15994 #define HAVE_LIBLOCKFILE 1
15995 _ACEOF
15997 LIBS="-llockfile $LIBS"
16001 # If we have the shared liblockfile, assume we must use it for mail
16002 # locking (e.g. Debian). If we couldn't link against liblockfile
16003 # (no liblockfile.a installed), ensure that we don't need to.
16004 if test "$ac_cv_lib_lockfile_maillock" = no; then
16005 # Extract the first word of "liblockfile.so", so it can be a program name with args.
16006 set dummy liblockfile.so; ac_word=$2
16007 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16009 if test "${ac_cv_prog_liblockfile+set}" = set; then
16010 echo $ECHO_N "(cached) $ECHO_C" >&6
16011 else
16012 if test -n "$liblockfile"; then
16013 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
16014 else
16015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16016 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
16017 for as_dir in $as_dummy
16019 IFS=$as_save_IFS
16020 test -z "$as_dir" && as_dir=.
16021 for ac_exec_ext in '' $ac_executable_extensions; do
16022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16023 ac_cv_prog_liblockfile="yes"
16024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16025 break 2
16027 done
16028 done
16029 IFS=$as_save_IFS
16031 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
16034 liblockfile=$ac_cv_prog_liblockfile
16035 if test -n "$liblockfile"; then
16036 { echo "$as_me:$LINENO: result: $liblockfile" >&5
16037 echo "${ECHO_T}$liblockfile" >&6; }
16038 else
16039 { echo "$as_me:$LINENO: result: no" >&5
16040 echo "${ECHO_T}no" >&6; }
16044 if test $ac_cv_prog_liblockfile = yes; then
16045 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
16046 This probably means that movemail could lose mail.
16047 There may be a \`development' package to install containing liblockfile." >&5
16048 echo "$as_me: error: Shared liblockfile found but can't link against it.
16049 This probably means that movemail could lose mail.
16050 There may be a \`development' package to install containing liblockfile." >&2;}
16051 { (exit 1); exit 1; }; }
16052 else :
16056 for ac_func in touchlock
16058 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16059 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16060 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16061 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16062 echo $ECHO_N "(cached) $ECHO_C" >&6
16063 else
16064 cat >conftest.$ac_ext <<_ACEOF
16065 /* confdefs.h. */
16066 _ACEOF
16067 cat confdefs.h >>conftest.$ac_ext
16068 cat >>conftest.$ac_ext <<_ACEOF
16069 /* end confdefs.h. */
16070 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16071 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16072 #define $ac_func innocuous_$ac_func
16074 /* System header to define __stub macros and hopefully few prototypes,
16075 which can conflict with char $ac_func (); below.
16076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16077 <limits.h> exists even on freestanding compilers. */
16079 #ifdef __STDC__
16080 # include <limits.h>
16081 #else
16082 # include <assert.h>
16083 #endif
16085 #undef $ac_func
16087 /* Override any GCC internal prototype to avoid an error.
16088 Use char because int might match the return type of a GCC
16089 builtin and then its argument prototype would still apply. */
16090 #ifdef __cplusplus
16091 extern "C"
16092 #endif
16093 char $ac_func ();
16094 /* The GNU C library defines this for functions which it implements
16095 to always fail with ENOSYS. Some functions are actually named
16096 something starting with __ and the normal name is an alias. */
16097 #if defined __stub_$ac_func || defined __stub___$ac_func
16098 choke me
16099 #endif
16102 main ()
16104 return $ac_func ();
16106 return 0;
16108 _ACEOF
16109 rm -f conftest.$ac_objext conftest$ac_exeext
16110 if { (ac_try="$ac_link"
16111 case "(($ac_try" in
16112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16113 *) ac_try_echo=$ac_try;;
16114 esac
16115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16116 (eval "$ac_link") 2>conftest.er1
16117 ac_status=$?
16118 grep -v '^ *+' conftest.er1 >conftest.err
16119 rm -f conftest.er1
16120 cat conftest.err >&5
16121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16122 (exit $ac_status); } && {
16123 test -z "$ac_c_werror_flag" ||
16124 test ! -s conftest.err
16125 } && test -s conftest$ac_exeext &&
16126 $as_test_x conftest$ac_exeext; then
16127 eval "$as_ac_var=yes"
16128 else
16129 echo "$as_me: failed program was:" >&5
16130 sed 's/^/| /' conftest.$ac_ext >&5
16132 eval "$as_ac_var=no"
16135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16136 conftest$ac_exeext conftest.$ac_ext
16138 ac_res=`eval echo '${'$as_ac_var'}'`
16139 { echo "$as_me:$LINENO: result: $ac_res" >&5
16140 echo "${ECHO_T}$ac_res" >&6; }
16141 if test `eval echo '${'$as_ac_var'}'` = yes; then
16142 cat >>confdefs.h <<_ACEOF
16143 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16144 _ACEOF
16147 done
16150 for ac_header in maillock.h
16152 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16154 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16157 echo $ECHO_N "(cached) $ECHO_C" >&6
16159 ac_res=`eval echo '${'$as_ac_Header'}'`
16160 { echo "$as_me:$LINENO: result: $ac_res" >&5
16161 echo "${ECHO_T}$ac_res" >&6; }
16162 else
16163 # Is the header compilable?
16164 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16165 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16166 cat >conftest.$ac_ext <<_ACEOF
16167 /* confdefs.h. */
16168 _ACEOF
16169 cat confdefs.h >>conftest.$ac_ext
16170 cat >>conftest.$ac_ext <<_ACEOF
16171 /* end confdefs.h. */
16172 $ac_includes_default
16173 #include <$ac_header>
16174 _ACEOF
16175 rm -f conftest.$ac_objext
16176 if { (ac_try="$ac_compile"
16177 case "(($ac_try" in
16178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16179 *) ac_try_echo=$ac_try;;
16180 esac
16181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16182 (eval "$ac_compile") 2>conftest.er1
16183 ac_status=$?
16184 grep -v '^ *+' conftest.er1 >conftest.err
16185 rm -f conftest.er1
16186 cat conftest.err >&5
16187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188 (exit $ac_status); } && {
16189 test -z "$ac_c_werror_flag" ||
16190 test ! -s conftest.err
16191 } && test -s conftest.$ac_objext; then
16192 ac_header_compiler=yes
16193 else
16194 echo "$as_me: failed program was:" >&5
16195 sed 's/^/| /' conftest.$ac_ext >&5
16197 ac_header_compiler=no
16200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16201 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16202 echo "${ECHO_T}$ac_header_compiler" >&6; }
16204 # Is the header present?
16205 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16206 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16207 cat >conftest.$ac_ext <<_ACEOF
16208 /* confdefs.h. */
16209 _ACEOF
16210 cat confdefs.h >>conftest.$ac_ext
16211 cat >>conftest.$ac_ext <<_ACEOF
16212 /* end confdefs.h. */
16213 #include <$ac_header>
16214 _ACEOF
16215 if { (ac_try="$ac_cpp conftest.$ac_ext"
16216 case "(($ac_try" in
16217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16218 *) ac_try_echo=$ac_try;;
16219 esac
16220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16221 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16222 ac_status=$?
16223 grep -v '^ *+' conftest.er1 >conftest.err
16224 rm -f conftest.er1
16225 cat conftest.err >&5
16226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227 (exit $ac_status); } >/dev/null && {
16228 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16229 test ! -s conftest.err
16230 }; then
16231 ac_header_preproc=yes
16232 else
16233 echo "$as_me: failed program was:" >&5
16234 sed 's/^/| /' conftest.$ac_ext >&5
16236 ac_header_preproc=no
16239 rm -f conftest.err conftest.$ac_ext
16240 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16241 echo "${ECHO_T}$ac_header_preproc" >&6; }
16243 # So? What about this header?
16244 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16245 yes:no: )
16246 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16247 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16248 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16249 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16250 ac_header_preproc=yes
16252 no:yes:* )
16253 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16254 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16255 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16256 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16257 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16258 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16259 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16260 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16262 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16263 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16264 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16267 esac
16268 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16271 echo $ECHO_N "(cached) $ECHO_C" >&6
16272 else
16273 eval "$as_ac_Header=\$ac_header_preproc"
16275 ac_res=`eval echo '${'$as_ac_Header'}'`
16276 { echo "$as_me:$LINENO: result: $ac_res" >&5
16277 echo "${ECHO_T}$ac_res" >&6; }
16280 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16281 cat >>confdefs.h <<_ACEOF
16282 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16283 _ACEOF
16287 done
16361 for ac_func in gethostname getdomainname dup2 \
16362 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16363 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16364 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16365 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16366 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16367 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16368 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16369 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
16370 cfmakeraw cfsetspeed
16372 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16373 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16374 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16375 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16376 echo $ECHO_N "(cached) $ECHO_C" >&6
16377 else
16378 cat >conftest.$ac_ext <<_ACEOF
16379 /* confdefs.h. */
16380 _ACEOF
16381 cat confdefs.h >>conftest.$ac_ext
16382 cat >>conftest.$ac_ext <<_ACEOF
16383 /* end confdefs.h. */
16384 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16386 #define $ac_func innocuous_$ac_func
16388 /* System header to define __stub macros and hopefully few prototypes,
16389 which can conflict with char $ac_func (); below.
16390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16391 <limits.h> exists even on freestanding compilers. */
16393 #ifdef __STDC__
16394 # include <limits.h>
16395 #else
16396 # include <assert.h>
16397 #endif
16399 #undef $ac_func
16401 /* Override any GCC internal prototype to avoid an error.
16402 Use char because int might match the return type of a GCC
16403 builtin and then its argument prototype would still apply. */
16404 #ifdef __cplusplus
16405 extern "C"
16406 #endif
16407 char $ac_func ();
16408 /* The GNU C library defines this for functions which it implements
16409 to always fail with ENOSYS. Some functions are actually named
16410 something starting with __ and the normal name is an alias. */
16411 #if defined __stub_$ac_func || defined __stub___$ac_func
16412 choke me
16413 #endif
16416 main ()
16418 return $ac_func ();
16420 return 0;
16422 _ACEOF
16423 rm -f conftest.$ac_objext conftest$ac_exeext
16424 if { (ac_try="$ac_link"
16425 case "(($ac_try" in
16426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16427 *) ac_try_echo=$ac_try;;
16428 esac
16429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16430 (eval "$ac_link") 2>conftest.er1
16431 ac_status=$?
16432 grep -v '^ *+' conftest.er1 >conftest.err
16433 rm -f conftest.er1
16434 cat conftest.err >&5
16435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436 (exit $ac_status); } && {
16437 test -z "$ac_c_werror_flag" ||
16438 test ! -s conftest.err
16439 } && test -s conftest$ac_exeext &&
16440 $as_test_x conftest$ac_exeext; then
16441 eval "$as_ac_var=yes"
16442 else
16443 echo "$as_me: failed program was:" >&5
16444 sed 's/^/| /' conftest.$ac_ext >&5
16446 eval "$as_ac_var=no"
16449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16450 conftest$ac_exeext conftest.$ac_ext
16452 ac_res=`eval echo '${'$as_ac_var'}'`
16453 { echo "$as_me:$LINENO: result: $ac_res" >&5
16454 echo "${ECHO_T}$ac_res" >&6; }
16455 if test `eval echo '${'$as_ac_var'}'` = yes; then
16456 cat >>confdefs.h <<_ACEOF
16457 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16458 _ACEOF
16461 done
16465 for ac_header in sys/un.h
16467 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16469 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16472 echo $ECHO_N "(cached) $ECHO_C" >&6
16474 ac_res=`eval echo '${'$as_ac_Header'}'`
16475 { echo "$as_me:$LINENO: result: $ac_res" >&5
16476 echo "${ECHO_T}$ac_res" >&6; }
16477 else
16478 # Is the header compilable?
16479 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16480 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16481 cat >conftest.$ac_ext <<_ACEOF
16482 /* confdefs.h. */
16483 _ACEOF
16484 cat confdefs.h >>conftest.$ac_ext
16485 cat >>conftest.$ac_ext <<_ACEOF
16486 /* end confdefs.h. */
16487 $ac_includes_default
16488 #include <$ac_header>
16489 _ACEOF
16490 rm -f conftest.$ac_objext
16491 if { (ac_try="$ac_compile"
16492 case "(($ac_try" in
16493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16494 *) ac_try_echo=$ac_try;;
16495 esac
16496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16497 (eval "$ac_compile") 2>conftest.er1
16498 ac_status=$?
16499 grep -v '^ *+' conftest.er1 >conftest.err
16500 rm -f conftest.er1
16501 cat conftest.err >&5
16502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503 (exit $ac_status); } && {
16504 test -z "$ac_c_werror_flag" ||
16505 test ! -s conftest.err
16506 } && test -s conftest.$ac_objext; then
16507 ac_header_compiler=yes
16508 else
16509 echo "$as_me: failed program was:" >&5
16510 sed 's/^/| /' conftest.$ac_ext >&5
16512 ac_header_compiler=no
16515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16516 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16517 echo "${ECHO_T}$ac_header_compiler" >&6; }
16519 # Is the header present?
16520 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16521 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16522 cat >conftest.$ac_ext <<_ACEOF
16523 /* confdefs.h. */
16524 _ACEOF
16525 cat confdefs.h >>conftest.$ac_ext
16526 cat >>conftest.$ac_ext <<_ACEOF
16527 /* end confdefs.h. */
16528 #include <$ac_header>
16529 _ACEOF
16530 if { (ac_try="$ac_cpp conftest.$ac_ext"
16531 case "(($ac_try" in
16532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16533 *) ac_try_echo=$ac_try;;
16534 esac
16535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16536 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16537 ac_status=$?
16538 grep -v '^ *+' conftest.er1 >conftest.err
16539 rm -f conftest.er1
16540 cat conftest.err >&5
16541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542 (exit $ac_status); } >/dev/null && {
16543 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16544 test ! -s conftest.err
16545 }; then
16546 ac_header_preproc=yes
16547 else
16548 echo "$as_me: failed program was:" >&5
16549 sed 's/^/| /' conftest.$ac_ext >&5
16551 ac_header_preproc=no
16554 rm -f conftest.err conftest.$ac_ext
16555 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16556 echo "${ECHO_T}$ac_header_preproc" >&6; }
16558 # So? What about this header?
16559 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16560 yes:no: )
16561 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16562 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16564 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16565 ac_header_preproc=yes
16567 no:yes:* )
16568 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16569 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16570 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16571 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16572 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16573 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16574 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16575 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16577 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16578 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16579 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16582 esac
16583 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16586 echo $ECHO_N "(cached) $ECHO_C" >&6
16587 else
16588 eval "$as_ac_Header=\$ac_header_preproc"
16590 ac_res=`eval echo '${'$as_ac_Header'}'`
16591 { echo "$as_me:$LINENO: result: $ac_res" >&5
16592 echo "${ECHO_T}$ac_res" >&6; }
16595 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16596 cat >>confdefs.h <<_ACEOF
16597 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16598 _ACEOF
16602 done
16609 for ac_header in $ac_header_list
16611 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16612 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16613 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16615 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16616 echo $ECHO_N "(cached) $ECHO_C" >&6
16618 ac_res=`eval echo '${'$as_ac_Header'}'`
16619 { echo "$as_me:$LINENO: result: $ac_res" >&5
16620 echo "${ECHO_T}$ac_res" >&6; }
16621 else
16622 # Is the header compilable?
16623 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16624 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16625 cat >conftest.$ac_ext <<_ACEOF
16626 /* confdefs.h. */
16627 _ACEOF
16628 cat confdefs.h >>conftest.$ac_ext
16629 cat >>conftest.$ac_ext <<_ACEOF
16630 /* end confdefs.h. */
16631 $ac_includes_default
16632 #include <$ac_header>
16633 _ACEOF
16634 rm -f conftest.$ac_objext
16635 if { (ac_try="$ac_compile"
16636 case "(($ac_try" in
16637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16638 *) ac_try_echo=$ac_try;;
16639 esac
16640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16641 (eval "$ac_compile") 2>conftest.er1
16642 ac_status=$?
16643 grep -v '^ *+' conftest.er1 >conftest.err
16644 rm -f conftest.er1
16645 cat conftest.err >&5
16646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647 (exit $ac_status); } && {
16648 test -z "$ac_c_werror_flag" ||
16649 test ! -s conftest.err
16650 } && test -s conftest.$ac_objext; then
16651 ac_header_compiler=yes
16652 else
16653 echo "$as_me: failed program was:" >&5
16654 sed 's/^/| /' conftest.$ac_ext >&5
16656 ac_header_compiler=no
16659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16660 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16661 echo "${ECHO_T}$ac_header_compiler" >&6; }
16663 # Is the header present?
16664 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16665 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16666 cat >conftest.$ac_ext <<_ACEOF
16667 /* confdefs.h. */
16668 _ACEOF
16669 cat confdefs.h >>conftest.$ac_ext
16670 cat >>conftest.$ac_ext <<_ACEOF
16671 /* end confdefs.h. */
16672 #include <$ac_header>
16673 _ACEOF
16674 if { (ac_try="$ac_cpp conftest.$ac_ext"
16675 case "(($ac_try" in
16676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16677 *) ac_try_echo=$ac_try;;
16678 esac
16679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16680 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16681 ac_status=$?
16682 grep -v '^ *+' conftest.er1 >conftest.err
16683 rm -f conftest.er1
16684 cat conftest.err >&5
16685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16686 (exit $ac_status); } >/dev/null && {
16687 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16688 test ! -s conftest.err
16689 }; then
16690 ac_header_preproc=yes
16691 else
16692 echo "$as_me: failed program was:" >&5
16693 sed 's/^/| /' conftest.$ac_ext >&5
16695 ac_header_preproc=no
16698 rm -f conftest.err conftest.$ac_ext
16699 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16700 echo "${ECHO_T}$ac_header_preproc" >&6; }
16702 # So? What about this header?
16703 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16704 yes:no: )
16705 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16706 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16708 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16709 ac_header_preproc=yes
16711 no:yes:* )
16712 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16713 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16714 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16715 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16716 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16717 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16718 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16719 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16720 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16721 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16722 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16723 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16726 esac
16727 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16730 echo $ECHO_N "(cached) $ECHO_C" >&6
16731 else
16732 eval "$as_ac_Header=\$ac_header_preproc"
16734 ac_res=`eval echo '${'$as_ac_Header'}'`
16735 { echo "$as_me:$LINENO: result: $ac_res" >&5
16736 echo "${ECHO_T}$ac_res" >&6; }
16739 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16740 cat >>confdefs.h <<_ACEOF
16741 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16742 _ACEOF
16746 done
16756 for ac_func in $ac_func_list
16758 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16759 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16760 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16761 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16762 echo $ECHO_N "(cached) $ECHO_C" >&6
16763 else
16764 cat >conftest.$ac_ext <<_ACEOF
16765 /* confdefs.h. */
16766 _ACEOF
16767 cat confdefs.h >>conftest.$ac_ext
16768 cat >>conftest.$ac_ext <<_ACEOF
16769 /* end confdefs.h. */
16770 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16772 #define $ac_func innocuous_$ac_func
16774 /* System header to define __stub macros and hopefully few prototypes,
16775 which can conflict with char $ac_func (); below.
16776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16777 <limits.h> exists even on freestanding compilers. */
16779 #ifdef __STDC__
16780 # include <limits.h>
16781 #else
16782 # include <assert.h>
16783 #endif
16785 #undef $ac_func
16787 /* Override any GCC internal prototype to avoid an error.
16788 Use char because int might match the return type of a GCC
16789 builtin and then its argument prototype would still apply. */
16790 #ifdef __cplusplus
16791 extern "C"
16792 #endif
16793 char $ac_func ();
16794 /* The GNU C library defines this for functions which it implements
16795 to always fail with ENOSYS. Some functions are actually named
16796 something starting with __ and the normal name is an alias. */
16797 #if defined __stub_$ac_func || defined __stub___$ac_func
16798 choke me
16799 #endif
16802 main ()
16804 return $ac_func ();
16806 return 0;
16808 _ACEOF
16809 rm -f conftest.$ac_objext conftest$ac_exeext
16810 if { (ac_try="$ac_link"
16811 case "(($ac_try" in
16812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16813 *) ac_try_echo=$ac_try;;
16814 esac
16815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16816 (eval "$ac_link") 2>conftest.er1
16817 ac_status=$?
16818 grep -v '^ *+' conftest.er1 >conftest.err
16819 rm -f conftest.er1
16820 cat conftest.err >&5
16821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822 (exit $ac_status); } && {
16823 test -z "$ac_c_werror_flag" ||
16824 test ! -s conftest.err
16825 } && test -s conftest$ac_exeext &&
16826 $as_test_x conftest$ac_exeext; then
16827 eval "$as_ac_var=yes"
16828 else
16829 echo "$as_me: failed program was:" >&5
16830 sed 's/^/| /' conftest.$ac_ext >&5
16832 eval "$as_ac_var=no"
16835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16836 conftest$ac_exeext conftest.$ac_ext
16838 ac_res=`eval echo '${'$as_ac_var'}'`
16839 { echo "$as_me:$LINENO: result: $ac_res" >&5
16840 echo "${ECHO_T}$ac_res" >&6; }
16841 if test `eval echo '${'$as_ac_var'}'` = yes; then
16842 cat >>confdefs.h <<_ACEOF
16843 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16844 _ACEOF
16847 done
16865 { echo "$as_me:$LINENO: checking for working mktime" >&5
16866 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16867 if test "${ac_cv_func_working_mktime+set}" = set; then
16868 echo $ECHO_N "(cached) $ECHO_C" >&6
16869 else
16870 if test "$cross_compiling" = yes; then
16871 ac_cv_func_working_mktime=no
16872 else
16873 cat >conftest.$ac_ext <<_ACEOF
16874 /* confdefs.h. */
16875 _ACEOF
16876 cat confdefs.h >>conftest.$ac_ext
16877 cat >>conftest.$ac_ext <<_ACEOF
16878 /* end confdefs.h. */
16879 /* Test program from Paul Eggert and Tony Leneis. */
16880 #ifdef TIME_WITH_SYS_TIME
16881 # include <sys/time.h>
16882 # include <time.h>
16883 #else
16884 # ifdef HAVE_SYS_TIME_H
16885 # include <sys/time.h>
16886 # else
16887 # include <time.h>
16888 # endif
16889 #endif
16891 #include <limits.h>
16892 #include <stdlib.h>
16894 #ifdef HAVE_UNISTD_H
16895 # include <unistd.h>
16896 #endif
16898 #ifndef HAVE_ALARM
16899 # define alarm(X) /* empty */
16900 #endif
16902 /* Work around redefinition to rpl_putenv by other config tests. */
16903 #undef putenv
16905 static time_t time_t_max;
16906 static time_t time_t_min;
16908 /* Values we'll use to set the TZ environment variable. */
16909 static char *tz_strings[] = {
16910 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16911 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16913 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16915 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16916 Based on a problem report from Andreas Jaeger. */
16917 static int
16918 spring_forward_gap ()
16920 /* glibc (up to about 1998-10-07) failed this test. */
16921 struct tm tm;
16923 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16924 instead of "TZ=America/Vancouver" in order to detect the bug even
16925 on systems that don't support the Olson extension, or don't have the
16926 full zoneinfo tables installed. */
16927 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16929 tm.tm_year = 98;
16930 tm.tm_mon = 3;
16931 tm.tm_mday = 5;
16932 tm.tm_hour = 2;
16933 tm.tm_min = 0;
16934 tm.tm_sec = 0;
16935 tm.tm_isdst = -1;
16936 return mktime (&tm) != (time_t) -1;
16939 static int
16940 mktime_test1 (now)
16941 time_t now;
16943 struct tm *lt;
16944 return ! (lt = localtime (&now)) || mktime (lt) == now;
16947 static int
16948 mktime_test (now)
16949 time_t now;
16951 return (mktime_test1 (now)
16952 && mktime_test1 ((time_t) (time_t_max - now))
16953 && mktime_test1 ((time_t) (time_t_min + now)));
16956 static int
16957 irix_6_4_bug ()
16959 /* Based on code from Ariel Faigon. */
16960 struct tm tm;
16961 tm.tm_year = 96;
16962 tm.tm_mon = 3;
16963 tm.tm_mday = 0;
16964 tm.tm_hour = 0;
16965 tm.tm_min = 0;
16966 tm.tm_sec = 0;
16967 tm.tm_isdst = -1;
16968 mktime (&tm);
16969 return tm.tm_mon == 2 && tm.tm_mday == 31;
16972 static int
16973 bigtime_test (j)
16974 int j;
16976 struct tm tm;
16977 time_t now;
16978 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16979 now = mktime (&tm);
16980 if (now != (time_t) -1)
16982 struct tm *lt = localtime (&now);
16983 if (! (lt
16984 && lt->tm_year == tm.tm_year
16985 && lt->tm_mon == tm.tm_mon
16986 && lt->tm_mday == tm.tm_mday
16987 && lt->tm_hour == tm.tm_hour
16988 && lt->tm_min == tm.tm_min
16989 && lt->tm_sec == tm.tm_sec
16990 && lt->tm_yday == tm.tm_yday
16991 && lt->tm_wday == tm.tm_wday
16992 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16993 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16994 return 0;
16996 return 1;
16999 static int
17000 year_2050_test ()
17002 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
17003 ignoring leap seconds. */
17004 unsigned long int answer = 2527315200UL;
17006 struct tm tm;
17007 time_t t;
17008 tm.tm_year = 2050 - 1900;
17009 tm.tm_mon = 2 - 1;
17010 tm.tm_mday = 1;
17011 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
17012 tm.tm_isdst = -1;
17014 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17015 instead of "TZ=America/Vancouver" in order to detect the bug even
17016 on systems that don't support the Olson extension, or don't have the
17017 full zoneinfo tables installed. */
17018 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17020 t = mktime (&tm);
17022 /* Check that the result is either a failure, or close enough
17023 to the correct answer that we can assume the discrepancy is
17024 due to leap seconds. */
17025 return (t == (time_t) -1
17026 || (0 < t && answer - 120 <= t && t <= answer + 120));
17030 main ()
17032 time_t t, delta;
17033 int i, j;
17035 /* This test makes some buggy mktime implementations loop.
17036 Give up after 60 seconds; a mktime slower than that
17037 isn't worth using anyway. */
17038 alarm (60);
17040 for (;;)
17042 t = (time_t_max << 1) + 1;
17043 if (t <= time_t_max)
17044 break;
17045 time_t_max = t;
17047 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
17049 delta = time_t_max / 997; /* a suitable prime number */
17050 for (i = 0; i < N_STRINGS; i++)
17052 if (tz_strings[i])
17053 putenv (tz_strings[i]);
17055 for (t = 0; t <= time_t_max - delta; t += delta)
17056 if (! mktime_test (t))
17057 return 1;
17058 if (! (mktime_test ((time_t) 1)
17059 && mktime_test ((time_t) (60 * 60))
17060 && mktime_test ((time_t) (60 * 60 * 24))))
17061 return 1;
17063 for (j = 1; ; j <<= 1)
17064 if (! bigtime_test (j))
17065 return 1;
17066 else if (INT_MAX / 2 < j)
17067 break;
17068 if (! bigtime_test (INT_MAX))
17069 return 1;
17071 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
17073 _ACEOF
17074 rm -f conftest$ac_exeext
17075 if { (ac_try="$ac_link"
17076 case "(($ac_try" in
17077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17078 *) ac_try_echo=$ac_try;;
17079 esac
17080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17081 (eval "$ac_link") 2>&5
17082 ac_status=$?
17083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17085 { (case "(($ac_try" in
17086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17087 *) ac_try_echo=$ac_try;;
17088 esac
17089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17090 (eval "$ac_try") 2>&5
17091 ac_status=$?
17092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17093 (exit $ac_status); }; }; then
17094 ac_cv_func_working_mktime=yes
17095 else
17096 echo "$as_me: program exited with status $ac_status" >&5
17097 echo "$as_me: failed program was:" >&5
17098 sed 's/^/| /' conftest.$ac_ext >&5
17100 ( exit $ac_status )
17101 ac_cv_func_working_mktime=no
17103 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17108 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
17109 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
17110 if test $ac_cv_func_working_mktime = no; then
17111 case " $LIBOBJS " in
17112 *" mktime.$ac_objext "* ) ;;
17113 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
17115 esac
17119 if test "$ac_cv_func_working_mktime" = no; then
17121 cat >>confdefs.h <<\_ACEOF
17122 #define BROKEN_MKTIME 1
17123 _ACEOF
17127 ac_have_func=no # yes means we've found a way to get the load average.
17129 # Make sure getloadavg.c is where it belongs, at configure-time.
17130 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
17131 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
17132 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
17133 { (exit 1); exit 1; }; }
17135 ac_save_LIBS=$LIBS
17137 # Check for getloadavg, but be sure not to touch the cache variable.
17138 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
17139 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
17140 if test "${ac_cv_func_getloadavg+set}" = set; then
17141 echo $ECHO_N "(cached) $ECHO_C" >&6
17142 else
17143 cat >conftest.$ac_ext <<_ACEOF
17144 /* confdefs.h. */
17145 _ACEOF
17146 cat confdefs.h >>conftest.$ac_ext
17147 cat >>conftest.$ac_ext <<_ACEOF
17148 /* end confdefs.h. */
17149 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
17150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17151 #define getloadavg innocuous_getloadavg
17153 /* System header to define __stub macros and hopefully few prototypes,
17154 which can conflict with char getloadavg (); below.
17155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17156 <limits.h> exists even on freestanding compilers. */
17158 #ifdef __STDC__
17159 # include <limits.h>
17160 #else
17161 # include <assert.h>
17162 #endif
17164 #undef getloadavg
17166 /* Override any GCC internal prototype to avoid an error.
17167 Use char because int might match the return type of a GCC
17168 builtin and then its argument prototype would still apply. */
17169 #ifdef __cplusplus
17170 extern "C"
17171 #endif
17172 char getloadavg ();
17173 /* The GNU C library defines this for functions which it implements
17174 to always fail with ENOSYS. Some functions are actually named
17175 something starting with __ and the normal name is an alias. */
17176 #if defined __stub_getloadavg || defined __stub___getloadavg
17177 choke me
17178 #endif
17181 main ()
17183 return getloadavg ();
17185 return 0;
17187 _ACEOF
17188 rm -f conftest.$ac_objext conftest$ac_exeext
17189 if { (ac_try="$ac_link"
17190 case "(($ac_try" in
17191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17192 *) ac_try_echo=$ac_try;;
17193 esac
17194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17195 (eval "$ac_link") 2>conftest.er1
17196 ac_status=$?
17197 grep -v '^ *+' conftest.er1 >conftest.err
17198 rm -f conftest.er1
17199 cat conftest.err >&5
17200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201 (exit $ac_status); } && {
17202 test -z "$ac_c_werror_flag" ||
17203 test ! -s conftest.err
17204 } && test -s conftest$ac_exeext &&
17205 $as_test_x conftest$ac_exeext; then
17206 ac_cv_func_getloadavg=yes
17207 else
17208 echo "$as_me: failed program was:" >&5
17209 sed 's/^/| /' conftest.$ac_ext >&5
17211 ac_cv_func_getloadavg=no
17214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17215 conftest$ac_exeext conftest.$ac_ext
17217 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
17218 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
17219 if test $ac_cv_func_getloadavg = yes; then
17220 exit 0
17221 else
17222 exit 1
17224 ) && ac_have_func=yes
17226 # On HPUX9, an unprivileged user can get load averages through this function.
17228 for ac_func in pstat_getdynamic
17230 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17231 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17232 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17233 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17234 echo $ECHO_N "(cached) $ECHO_C" >&6
17235 else
17236 cat >conftest.$ac_ext <<_ACEOF
17237 /* confdefs.h. */
17238 _ACEOF
17239 cat confdefs.h >>conftest.$ac_ext
17240 cat >>conftest.$ac_ext <<_ACEOF
17241 /* end confdefs.h. */
17242 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17243 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17244 #define $ac_func innocuous_$ac_func
17246 /* System header to define __stub macros and hopefully few prototypes,
17247 which can conflict with char $ac_func (); below.
17248 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17249 <limits.h> exists even on freestanding compilers. */
17251 #ifdef __STDC__
17252 # include <limits.h>
17253 #else
17254 # include <assert.h>
17255 #endif
17257 #undef $ac_func
17259 /* Override any GCC internal prototype to avoid an error.
17260 Use char because int might match the return type of a GCC
17261 builtin and then its argument prototype would still apply. */
17262 #ifdef __cplusplus
17263 extern "C"
17264 #endif
17265 char $ac_func ();
17266 /* The GNU C library defines this for functions which it implements
17267 to always fail with ENOSYS. Some functions are actually named
17268 something starting with __ and the normal name is an alias. */
17269 #if defined __stub_$ac_func || defined __stub___$ac_func
17270 choke me
17271 #endif
17274 main ()
17276 return $ac_func ();
17278 return 0;
17280 _ACEOF
17281 rm -f conftest.$ac_objext conftest$ac_exeext
17282 if { (ac_try="$ac_link"
17283 case "(($ac_try" in
17284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17285 *) ac_try_echo=$ac_try;;
17286 esac
17287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17288 (eval "$ac_link") 2>conftest.er1
17289 ac_status=$?
17290 grep -v '^ *+' conftest.er1 >conftest.err
17291 rm -f conftest.er1
17292 cat conftest.err >&5
17293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294 (exit $ac_status); } && {
17295 test -z "$ac_c_werror_flag" ||
17296 test ! -s conftest.err
17297 } && test -s conftest$ac_exeext &&
17298 $as_test_x conftest$ac_exeext; then
17299 eval "$as_ac_var=yes"
17300 else
17301 echo "$as_me: failed program was:" >&5
17302 sed 's/^/| /' conftest.$ac_ext >&5
17304 eval "$as_ac_var=no"
17307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17308 conftest$ac_exeext conftest.$ac_ext
17310 ac_res=`eval echo '${'$as_ac_var'}'`
17311 { echo "$as_me:$LINENO: result: $ac_res" >&5
17312 echo "${ECHO_T}$ac_res" >&6; }
17313 if test `eval echo '${'$as_ac_var'}'` = yes; then
17314 cat >>confdefs.h <<_ACEOF
17315 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17316 _ACEOF
17319 done
17322 # Solaris has libkstat which does not require root.
17324 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
17325 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
17326 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17327 echo $ECHO_N "(cached) $ECHO_C" >&6
17328 else
17329 ac_check_lib_save_LIBS=$LIBS
17330 LIBS="-lkstat $LIBS"
17331 cat >conftest.$ac_ext <<_ACEOF
17332 /* confdefs.h. */
17333 _ACEOF
17334 cat confdefs.h >>conftest.$ac_ext
17335 cat >>conftest.$ac_ext <<_ACEOF
17336 /* end confdefs.h. */
17338 /* Override any GCC internal prototype to avoid an error.
17339 Use char because int might match the return type of a GCC
17340 builtin and then its argument prototype would still apply. */
17341 #ifdef __cplusplus
17342 extern "C"
17343 #endif
17344 char kstat_open ();
17346 main ()
17348 return kstat_open ();
17350 return 0;
17352 _ACEOF
17353 rm -f conftest.$ac_objext conftest$ac_exeext
17354 if { (ac_try="$ac_link"
17355 case "(($ac_try" in
17356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17357 *) ac_try_echo=$ac_try;;
17358 esac
17359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17360 (eval "$ac_link") 2>conftest.er1
17361 ac_status=$?
17362 grep -v '^ *+' conftest.er1 >conftest.err
17363 rm -f conftest.er1
17364 cat conftest.err >&5
17365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366 (exit $ac_status); } && {
17367 test -z "$ac_c_werror_flag" ||
17368 test ! -s conftest.err
17369 } && test -s conftest$ac_exeext &&
17370 $as_test_x conftest$ac_exeext; then
17371 ac_cv_lib_kstat_kstat_open=yes
17372 else
17373 echo "$as_me: failed program was:" >&5
17374 sed 's/^/| /' conftest.$ac_ext >&5
17376 ac_cv_lib_kstat_kstat_open=no
17379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17380 conftest$ac_exeext conftest.$ac_ext
17381 LIBS=$ac_check_lib_save_LIBS
17383 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
17384 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17385 if test $ac_cv_lib_kstat_kstat_open = yes; then
17386 cat >>confdefs.h <<_ACEOF
17387 #define HAVE_LIBKSTAT 1
17388 _ACEOF
17390 LIBS="-lkstat $LIBS"
17394 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17396 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17397 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17398 # to get the right answer into the cache.
17399 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17400 if test $ac_have_func = no; then
17401 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17402 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
17403 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17404 echo $ECHO_N "(cached) $ECHO_C" >&6
17405 else
17406 ac_check_lib_save_LIBS=$LIBS
17407 LIBS="-lelf $LIBS"
17408 cat >conftest.$ac_ext <<_ACEOF
17409 /* confdefs.h. */
17410 _ACEOF
17411 cat confdefs.h >>conftest.$ac_ext
17412 cat >>conftest.$ac_ext <<_ACEOF
17413 /* end confdefs.h. */
17415 /* Override any GCC internal prototype to avoid an error.
17416 Use char because int might match the return type of a GCC
17417 builtin and then its argument prototype would still apply. */
17418 #ifdef __cplusplus
17419 extern "C"
17420 #endif
17421 char elf_begin ();
17423 main ()
17425 return elf_begin ();
17427 return 0;
17429 _ACEOF
17430 rm -f conftest.$ac_objext conftest$ac_exeext
17431 if { (ac_try="$ac_link"
17432 case "(($ac_try" in
17433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17434 *) ac_try_echo=$ac_try;;
17435 esac
17436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17437 (eval "$ac_link") 2>conftest.er1
17438 ac_status=$?
17439 grep -v '^ *+' conftest.er1 >conftest.err
17440 rm -f conftest.er1
17441 cat conftest.err >&5
17442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443 (exit $ac_status); } && {
17444 test -z "$ac_c_werror_flag" ||
17445 test ! -s conftest.err
17446 } && test -s conftest$ac_exeext &&
17447 $as_test_x conftest$ac_exeext; then
17448 ac_cv_lib_elf_elf_begin=yes
17449 else
17450 echo "$as_me: failed program was:" >&5
17451 sed 's/^/| /' conftest.$ac_ext >&5
17453 ac_cv_lib_elf_elf_begin=no
17456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17457 conftest$ac_exeext conftest.$ac_ext
17458 LIBS=$ac_check_lib_save_LIBS
17460 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
17461 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17462 if test $ac_cv_lib_elf_elf_begin = yes; then
17463 LIBS="-lelf $LIBS"
17467 if test $ac_have_func = no; then
17468 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17469 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
17470 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17471 echo $ECHO_N "(cached) $ECHO_C" >&6
17472 else
17473 ac_check_lib_save_LIBS=$LIBS
17474 LIBS="-lkvm $LIBS"
17475 cat >conftest.$ac_ext <<_ACEOF
17476 /* confdefs.h. */
17477 _ACEOF
17478 cat confdefs.h >>conftest.$ac_ext
17479 cat >>conftest.$ac_ext <<_ACEOF
17480 /* end confdefs.h. */
17482 /* Override any GCC internal prototype to avoid an error.
17483 Use char because int might match the return type of a GCC
17484 builtin and then its argument prototype would still apply. */
17485 #ifdef __cplusplus
17486 extern "C"
17487 #endif
17488 char kvm_open ();
17490 main ()
17492 return kvm_open ();
17494 return 0;
17496 _ACEOF
17497 rm -f conftest.$ac_objext conftest$ac_exeext
17498 if { (ac_try="$ac_link"
17499 case "(($ac_try" in
17500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17501 *) ac_try_echo=$ac_try;;
17502 esac
17503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17504 (eval "$ac_link") 2>conftest.er1
17505 ac_status=$?
17506 grep -v '^ *+' conftest.er1 >conftest.err
17507 rm -f conftest.er1
17508 cat conftest.err >&5
17509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510 (exit $ac_status); } && {
17511 test -z "$ac_c_werror_flag" ||
17512 test ! -s conftest.err
17513 } && test -s conftest$ac_exeext &&
17514 $as_test_x conftest$ac_exeext; then
17515 ac_cv_lib_kvm_kvm_open=yes
17516 else
17517 echo "$as_me: failed program was:" >&5
17518 sed 's/^/| /' conftest.$ac_ext >&5
17520 ac_cv_lib_kvm_kvm_open=no
17523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17524 conftest$ac_exeext conftest.$ac_ext
17525 LIBS=$ac_check_lib_save_LIBS
17527 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
17528 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17529 if test $ac_cv_lib_kvm_kvm_open = yes; then
17530 LIBS="-lkvm $LIBS"
17533 # Check for the 4.4BSD definition of getloadavg.
17534 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
17535 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
17536 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17537 echo $ECHO_N "(cached) $ECHO_C" >&6
17538 else
17539 ac_check_lib_save_LIBS=$LIBS
17540 LIBS="-lutil $LIBS"
17541 cat >conftest.$ac_ext <<_ACEOF
17542 /* confdefs.h. */
17543 _ACEOF
17544 cat confdefs.h >>conftest.$ac_ext
17545 cat >>conftest.$ac_ext <<_ACEOF
17546 /* end confdefs.h. */
17548 /* Override any GCC internal prototype to avoid an error.
17549 Use char because int might match the return type of a GCC
17550 builtin and then its argument prototype would still apply. */
17551 #ifdef __cplusplus
17552 extern "C"
17553 #endif
17554 char getloadavg ();
17556 main ()
17558 return getloadavg ();
17560 return 0;
17562 _ACEOF
17563 rm -f conftest.$ac_objext conftest$ac_exeext
17564 if { (ac_try="$ac_link"
17565 case "(($ac_try" in
17566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17567 *) ac_try_echo=$ac_try;;
17568 esac
17569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17570 (eval "$ac_link") 2>conftest.er1
17571 ac_status=$?
17572 grep -v '^ *+' conftest.er1 >conftest.err
17573 rm -f conftest.er1
17574 cat conftest.err >&5
17575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576 (exit $ac_status); } && {
17577 test -z "$ac_c_werror_flag" ||
17578 test ! -s conftest.err
17579 } && test -s conftest$ac_exeext &&
17580 $as_test_x conftest$ac_exeext; then
17581 ac_cv_lib_util_getloadavg=yes
17582 else
17583 echo "$as_me: failed program was:" >&5
17584 sed 's/^/| /' conftest.$ac_ext >&5
17586 ac_cv_lib_util_getloadavg=no
17589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17590 conftest$ac_exeext conftest.$ac_ext
17591 LIBS=$ac_check_lib_save_LIBS
17593 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
17594 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17595 if test $ac_cv_lib_util_getloadavg = yes; then
17596 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17601 if test $ac_have_func = no; then
17602 # There is a commonly available library for RS/6000 AIX.
17603 # Since it is not a standard part of AIX, it might be installed locally.
17604 ac_getloadavg_LIBS=$LIBS
17605 LIBS="-L/usr/local/lib $LIBS"
17606 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
17607 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
17608 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17609 echo $ECHO_N "(cached) $ECHO_C" >&6
17610 else
17611 ac_check_lib_save_LIBS=$LIBS
17612 LIBS="-lgetloadavg $LIBS"
17613 cat >conftest.$ac_ext <<_ACEOF
17614 /* confdefs.h. */
17615 _ACEOF
17616 cat confdefs.h >>conftest.$ac_ext
17617 cat >>conftest.$ac_ext <<_ACEOF
17618 /* end confdefs.h. */
17620 /* Override any GCC internal prototype to avoid an error.
17621 Use char because int might match the return type of a GCC
17622 builtin and then its argument prototype would still apply. */
17623 #ifdef __cplusplus
17624 extern "C"
17625 #endif
17626 char getloadavg ();
17628 main ()
17630 return getloadavg ();
17632 return 0;
17634 _ACEOF
17635 rm -f conftest.$ac_objext conftest$ac_exeext
17636 if { (ac_try="$ac_link"
17637 case "(($ac_try" in
17638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17639 *) ac_try_echo=$ac_try;;
17640 esac
17641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17642 (eval "$ac_link") 2>conftest.er1
17643 ac_status=$?
17644 grep -v '^ *+' conftest.er1 >conftest.err
17645 rm -f conftest.er1
17646 cat conftest.err >&5
17647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648 (exit $ac_status); } && {
17649 test -z "$ac_c_werror_flag" ||
17650 test ! -s conftest.err
17651 } && test -s conftest$ac_exeext &&
17652 $as_test_x conftest$ac_exeext; then
17653 ac_cv_lib_getloadavg_getloadavg=yes
17654 else
17655 echo "$as_me: failed program was:" >&5
17656 sed 's/^/| /' conftest.$ac_ext >&5
17658 ac_cv_lib_getloadavg_getloadavg=no
17661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17662 conftest$ac_exeext conftest.$ac_ext
17663 LIBS=$ac_check_lib_save_LIBS
17665 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
17666 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17667 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17668 LIBS="-lgetloadavg $LIBS"
17669 else
17670 LIBS=$ac_getloadavg_LIBS
17675 # Make sure it is really in the library, if we think we found it,
17676 # otherwise set up the replacement function.
17678 for ac_func in getloadavg
17680 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17681 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17682 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17683 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17684 echo $ECHO_N "(cached) $ECHO_C" >&6
17685 else
17686 cat >conftest.$ac_ext <<_ACEOF
17687 /* confdefs.h. */
17688 _ACEOF
17689 cat confdefs.h >>conftest.$ac_ext
17690 cat >>conftest.$ac_ext <<_ACEOF
17691 /* end confdefs.h. */
17692 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17694 #define $ac_func innocuous_$ac_func
17696 /* System header to define __stub macros and hopefully few prototypes,
17697 which can conflict with char $ac_func (); below.
17698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17699 <limits.h> exists even on freestanding compilers. */
17701 #ifdef __STDC__
17702 # include <limits.h>
17703 #else
17704 # include <assert.h>
17705 #endif
17707 #undef $ac_func
17709 /* Override any GCC internal prototype to avoid an error.
17710 Use char because int might match the return type of a GCC
17711 builtin and then its argument prototype would still apply. */
17712 #ifdef __cplusplus
17713 extern "C"
17714 #endif
17715 char $ac_func ();
17716 /* The GNU C library defines this for functions which it implements
17717 to always fail with ENOSYS. Some functions are actually named
17718 something starting with __ and the normal name is an alias. */
17719 #if defined __stub_$ac_func || defined __stub___$ac_func
17720 choke me
17721 #endif
17724 main ()
17726 return $ac_func ();
17728 return 0;
17730 _ACEOF
17731 rm -f conftest.$ac_objext conftest$ac_exeext
17732 if { (ac_try="$ac_link"
17733 case "(($ac_try" in
17734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17735 *) ac_try_echo=$ac_try;;
17736 esac
17737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17738 (eval "$ac_link") 2>conftest.er1
17739 ac_status=$?
17740 grep -v '^ *+' conftest.er1 >conftest.err
17741 rm -f conftest.er1
17742 cat conftest.err >&5
17743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744 (exit $ac_status); } && {
17745 test -z "$ac_c_werror_flag" ||
17746 test ! -s conftest.err
17747 } && test -s conftest$ac_exeext &&
17748 $as_test_x conftest$ac_exeext; then
17749 eval "$as_ac_var=yes"
17750 else
17751 echo "$as_me: failed program was:" >&5
17752 sed 's/^/| /' conftest.$ac_ext >&5
17754 eval "$as_ac_var=no"
17757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17758 conftest$ac_exeext conftest.$ac_ext
17760 ac_res=`eval echo '${'$as_ac_var'}'`
17761 { echo "$as_me:$LINENO: result: $ac_res" >&5
17762 echo "${ECHO_T}$ac_res" >&6; }
17763 if test `eval echo '${'$as_ac_var'}'` = yes; then
17764 cat >>confdefs.h <<_ACEOF
17765 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17766 _ACEOF
17768 else
17769 case " $LIBOBJS " in
17770 *" getloadavg.$ac_objext "* ) ;;
17771 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17773 esac
17776 cat >>confdefs.h <<\_ACEOF
17777 #define C_GETLOADAVG 1
17778 _ACEOF
17780 # Figure out what our getloadavg.c needs.
17781 ac_have_func=no
17782 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17783 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17784 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17785 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17786 echo $ECHO_N "(cached) $ECHO_C" >&6
17788 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17789 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17790 else
17791 # Is the header compilable?
17792 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17793 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17794 cat >conftest.$ac_ext <<_ACEOF
17795 /* confdefs.h. */
17796 _ACEOF
17797 cat confdefs.h >>conftest.$ac_ext
17798 cat >>conftest.$ac_ext <<_ACEOF
17799 /* end confdefs.h. */
17800 $ac_includes_default
17801 #include <sys/dg_sys_info.h>
17802 _ACEOF
17803 rm -f conftest.$ac_objext
17804 if { (ac_try="$ac_compile"
17805 case "(($ac_try" in
17806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17807 *) ac_try_echo=$ac_try;;
17808 esac
17809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17810 (eval "$ac_compile") 2>conftest.er1
17811 ac_status=$?
17812 grep -v '^ *+' conftest.er1 >conftest.err
17813 rm -f conftest.er1
17814 cat conftest.err >&5
17815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17816 (exit $ac_status); } && {
17817 test -z "$ac_c_werror_flag" ||
17818 test ! -s conftest.err
17819 } && test -s conftest.$ac_objext; then
17820 ac_header_compiler=yes
17821 else
17822 echo "$as_me: failed program was:" >&5
17823 sed 's/^/| /' conftest.$ac_ext >&5
17825 ac_header_compiler=no
17828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17829 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17830 echo "${ECHO_T}$ac_header_compiler" >&6; }
17832 # Is the header present?
17833 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17834 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17835 cat >conftest.$ac_ext <<_ACEOF
17836 /* confdefs.h. */
17837 _ACEOF
17838 cat confdefs.h >>conftest.$ac_ext
17839 cat >>conftest.$ac_ext <<_ACEOF
17840 /* end confdefs.h. */
17841 #include <sys/dg_sys_info.h>
17842 _ACEOF
17843 if { (ac_try="$ac_cpp conftest.$ac_ext"
17844 case "(($ac_try" in
17845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17846 *) ac_try_echo=$ac_try;;
17847 esac
17848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17850 ac_status=$?
17851 grep -v '^ *+' conftest.er1 >conftest.err
17852 rm -f conftest.er1
17853 cat conftest.err >&5
17854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855 (exit $ac_status); } >/dev/null && {
17856 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17857 test ! -s conftest.err
17858 }; then
17859 ac_header_preproc=yes
17860 else
17861 echo "$as_me: failed program was:" >&5
17862 sed 's/^/| /' conftest.$ac_ext >&5
17864 ac_header_preproc=no
17867 rm -f conftest.err conftest.$ac_ext
17868 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17869 echo "${ECHO_T}$ac_header_preproc" >&6; }
17871 # So? What about this header?
17872 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17873 yes:no: )
17874 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17875 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17876 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17877 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17878 ac_header_preproc=yes
17880 no:yes:* )
17881 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17882 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17883 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17884 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17885 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17886 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17887 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17888 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17889 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17890 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17891 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17892 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17895 esac
17896 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17897 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17898 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17899 echo $ECHO_N "(cached) $ECHO_C" >&6
17900 else
17901 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17903 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17904 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17907 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17908 ac_have_func=yes
17910 cat >>confdefs.h <<\_ACEOF
17911 #define DGUX 1
17912 _ACEOF
17915 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17916 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17917 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17918 echo $ECHO_N "(cached) $ECHO_C" >&6
17919 else
17920 ac_check_lib_save_LIBS=$LIBS
17921 LIBS="-ldgc $LIBS"
17922 cat >conftest.$ac_ext <<_ACEOF
17923 /* confdefs.h. */
17924 _ACEOF
17925 cat confdefs.h >>conftest.$ac_ext
17926 cat >>conftest.$ac_ext <<_ACEOF
17927 /* end confdefs.h. */
17929 /* Override any GCC internal prototype to avoid an error.
17930 Use char because int might match the return type of a GCC
17931 builtin and then its argument prototype would still apply. */
17932 #ifdef __cplusplus
17933 extern "C"
17934 #endif
17935 char dg_sys_info ();
17937 main ()
17939 return dg_sys_info ();
17941 return 0;
17943 _ACEOF
17944 rm -f conftest.$ac_objext conftest$ac_exeext
17945 if { (ac_try="$ac_link"
17946 case "(($ac_try" in
17947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17948 *) ac_try_echo=$ac_try;;
17949 esac
17950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17951 (eval "$ac_link") 2>conftest.er1
17952 ac_status=$?
17953 grep -v '^ *+' conftest.er1 >conftest.err
17954 rm -f conftest.er1
17955 cat conftest.err >&5
17956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17957 (exit $ac_status); } && {
17958 test -z "$ac_c_werror_flag" ||
17959 test ! -s conftest.err
17960 } && test -s conftest$ac_exeext &&
17961 $as_test_x conftest$ac_exeext; then
17962 ac_cv_lib_dgc_dg_sys_info=yes
17963 else
17964 echo "$as_me: failed program was:" >&5
17965 sed 's/^/| /' conftest.$ac_ext >&5
17967 ac_cv_lib_dgc_dg_sys_info=no
17970 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17971 conftest$ac_exeext conftest.$ac_ext
17972 LIBS=$ac_check_lib_save_LIBS
17974 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17975 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17976 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17977 cat >>confdefs.h <<_ACEOF
17978 #define HAVE_LIBDGC 1
17979 _ACEOF
17981 LIBS="-ldgc $LIBS"
17989 if test "${ac_cv_header_locale_h+set}" = set; then
17990 { echo "$as_me:$LINENO: checking for locale.h" >&5
17991 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17992 if test "${ac_cv_header_locale_h+set}" = set; then
17993 echo $ECHO_N "(cached) $ECHO_C" >&6
17995 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17996 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17997 else
17998 # Is the header compilable?
17999 { echo "$as_me:$LINENO: checking locale.h usability" >&5
18000 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
18001 cat >conftest.$ac_ext <<_ACEOF
18002 /* confdefs.h. */
18003 _ACEOF
18004 cat confdefs.h >>conftest.$ac_ext
18005 cat >>conftest.$ac_ext <<_ACEOF
18006 /* end confdefs.h. */
18007 $ac_includes_default
18008 #include <locale.h>
18009 _ACEOF
18010 rm -f conftest.$ac_objext
18011 if { (ac_try="$ac_compile"
18012 case "(($ac_try" in
18013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18014 *) ac_try_echo=$ac_try;;
18015 esac
18016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18017 (eval "$ac_compile") 2>conftest.er1
18018 ac_status=$?
18019 grep -v '^ *+' conftest.er1 >conftest.err
18020 rm -f conftest.er1
18021 cat conftest.err >&5
18022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023 (exit $ac_status); } && {
18024 test -z "$ac_c_werror_flag" ||
18025 test ! -s conftest.err
18026 } && test -s conftest.$ac_objext; then
18027 ac_header_compiler=yes
18028 else
18029 echo "$as_me: failed program was:" >&5
18030 sed 's/^/| /' conftest.$ac_ext >&5
18032 ac_header_compiler=no
18035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18036 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18037 echo "${ECHO_T}$ac_header_compiler" >&6; }
18039 # Is the header present?
18040 { echo "$as_me:$LINENO: checking locale.h presence" >&5
18041 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
18042 cat >conftest.$ac_ext <<_ACEOF
18043 /* confdefs.h. */
18044 _ACEOF
18045 cat confdefs.h >>conftest.$ac_ext
18046 cat >>conftest.$ac_ext <<_ACEOF
18047 /* end confdefs.h. */
18048 #include <locale.h>
18049 _ACEOF
18050 if { (ac_try="$ac_cpp conftest.$ac_ext"
18051 case "(($ac_try" in
18052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18053 *) ac_try_echo=$ac_try;;
18054 esac
18055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18056 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18057 ac_status=$?
18058 grep -v '^ *+' conftest.er1 >conftest.err
18059 rm -f conftest.er1
18060 cat conftest.err >&5
18061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062 (exit $ac_status); } >/dev/null && {
18063 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18064 test ! -s conftest.err
18065 }; then
18066 ac_header_preproc=yes
18067 else
18068 echo "$as_me: failed program was:" >&5
18069 sed 's/^/| /' conftest.$ac_ext >&5
18071 ac_header_preproc=no
18074 rm -f conftest.err conftest.$ac_ext
18075 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18076 echo "${ECHO_T}$ac_header_preproc" >&6; }
18078 # So? What about this header?
18079 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18080 yes:no: )
18081 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
18082 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18083 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
18084 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
18085 ac_header_preproc=yes
18087 no:yes:* )
18088 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
18089 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
18090 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
18091 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
18092 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
18093 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
18094 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
18095 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
18096 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
18097 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
18098 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
18099 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
18102 esac
18103 { echo "$as_me:$LINENO: checking for locale.h" >&5
18104 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
18105 if test "${ac_cv_header_locale_h+set}" = set; then
18106 echo $ECHO_N "(cached) $ECHO_C" >&6
18107 else
18108 ac_cv_header_locale_h=$ac_header_preproc
18110 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
18111 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
18117 for ac_func in setlocale
18119 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18120 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18121 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18122 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18123 echo $ECHO_N "(cached) $ECHO_C" >&6
18124 else
18125 cat >conftest.$ac_ext <<_ACEOF
18126 /* confdefs.h. */
18127 _ACEOF
18128 cat confdefs.h >>conftest.$ac_ext
18129 cat >>conftest.$ac_ext <<_ACEOF
18130 /* end confdefs.h. */
18131 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18133 #define $ac_func innocuous_$ac_func
18135 /* System header to define __stub macros and hopefully few prototypes,
18136 which can conflict with char $ac_func (); below.
18137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18138 <limits.h> exists even on freestanding compilers. */
18140 #ifdef __STDC__
18141 # include <limits.h>
18142 #else
18143 # include <assert.h>
18144 #endif
18146 #undef $ac_func
18148 /* Override any GCC internal prototype to avoid an error.
18149 Use char because int might match the return type of a GCC
18150 builtin and then its argument prototype would still apply. */
18151 #ifdef __cplusplus
18152 extern "C"
18153 #endif
18154 char $ac_func ();
18155 /* The GNU C library defines this for functions which it implements
18156 to always fail with ENOSYS. Some functions are actually named
18157 something starting with __ and the normal name is an alias. */
18158 #if defined __stub_$ac_func || defined __stub___$ac_func
18159 choke me
18160 #endif
18163 main ()
18165 return $ac_func ();
18167 return 0;
18169 _ACEOF
18170 rm -f conftest.$ac_objext conftest$ac_exeext
18171 if { (ac_try="$ac_link"
18172 case "(($ac_try" in
18173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18174 *) ac_try_echo=$ac_try;;
18175 esac
18176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18177 (eval "$ac_link") 2>conftest.er1
18178 ac_status=$?
18179 grep -v '^ *+' conftest.er1 >conftest.err
18180 rm -f conftest.er1
18181 cat conftest.err >&5
18182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183 (exit $ac_status); } && {
18184 test -z "$ac_c_werror_flag" ||
18185 test ! -s conftest.err
18186 } && test -s conftest$ac_exeext &&
18187 $as_test_x conftest$ac_exeext; then
18188 eval "$as_ac_var=yes"
18189 else
18190 echo "$as_me: failed program was:" >&5
18191 sed 's/^/| /' conftest.$ac_ext >&5
18193 eval "$as_ac_var=no"
18196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18197 conftest$ac_exeext conftest.$ac_ext
18199 ac_res=`eval echo '${'$as_ac_var'}'`
18200 { echo "$as_me:$LINENO: result: $ac_res" >&5
18201 echo "${ECHO_T}$ac_res" >&6; }
18202 if test `eval echo '${'$as_ac_var'}'` = yes; then
18203 cat >>confdefs.h <<_ACEOF
18204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18205 _ACEOF
18208 done
18211 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18212 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
18213 # Irix 4.0.5F has the header but not the library.
18214 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
18215 ac_have_func=yes
18217 cat >>confdefs.h <<\_ACEOF
18218 #define SVR4 1
18219 _ACEOF
18223 if test $ac_have_func = no; then
18224 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18225 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18226 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18227 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18228 echo $ECHO_N "(cached) $ECHO_C" >&6
18230 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18231 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18232 else
18233 # Is the header compilable?
18234 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
18235 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
18236 cat >conftest.$ac_ext <<_ACEOF
18237 /* confdefs.h. */
18238 _ACEOF
18239 cat confdefs.h >>conftest.$ac_ext
18240 cat >>conftest.$ac_ext <<_ACEOF
18241 /* end confdefs.h. */
18242 $ac_includes_default
18243 #include <inq_stats/cpustats.h>
18244 _ACEOF
18245 rm -f conftest.$ac_objext
18246 if { (ac_try="$ac_compile"
18247 case "(($ac_try" in
18248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18249 *) ac_try_echo=$ac_try;;
18250 esac
18251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18252 (eval "$ac_compile") 2>conftest.er1
18253 ac_status=$?
18254 grep -v '^ *+' conftest.er1 >conftest.err
18255 rm -f conftest.er1
18256 cat conftest.err >&5
18257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258 (exit $ac_status); } && {
18259 test -z "$ac_c_werror_flag" ||
18260 test ! -s conftest.err
18261 } && test -s conftest.$ac_objext; then
18262 ac_header_compiler=yes
18263 else
18264 echo "$as_me: failed program was:" >&5
18265 sed 's/^/| /' conftest.$ac_ext >&5
18267 ac_header_compiler=no
18270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18271 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18272 echo "${ECHO_T}$ac_header_compiler" >&6; }
18274 # Is the header present?
18275 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
18276 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
18277 cat >conftest.$ac_ext <<_ACEOF
18278 /* confdefs.h. */
18279 _ACEOF
18280 cat confdefs.h >>conftest.$ac_ext
18281 cat >>conftest.$ac_ext <<_ACEOF
18282 /* end confdefs.h. */
18283 #include <inq_stats/cpustats.h>
18284 _ACEOF
18285 if { (ac_try="$ac_cpp conftest.$ac_ext"
18286 case "(($ac_try" in
18287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18288 *) ac_try_echo=$ac_try;;
18289 esac
18290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18291 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18292 ac_status=$?
18293 grep -v '^ *+' conftest.er1 >conftest.err
18294 rm -f conftest.er1
18295 cat conftest.err >&5
18296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18297 (exit $ac_status); } >/dev/null && {
18298 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18299 test ! -s conftest.err
18300 }; then
18301 ac_header_preproc=yes
18302 else
18303 echo "$as_me: failed program was:" >&5
18304 sed 's/^/| /' conftest.$ac_ext >&5
18306 ac_header_preproc=no
18309 rm -f conftest.err conftest.$ac_ext
18310 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18311 echo "${ECHO_T}$ac_header_preproc" >&6; }
18313 # So? What about this header?
18314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18315 yes:no: )
18316 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18317 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18318 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
18319 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
18320 ac_header_preproc=yes
18322 no:yes:* )
18323 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
18324 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
18325 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
18326 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
18327 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
18328 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
18329 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18330 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18331 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
18332 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
18333 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
18334 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
18337 esac
18338 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18339 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18340 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18341 echo $ECHO_N "(cached) $ECHO_C" >&6
18342 else
18343 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18345 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18346 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18349 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18350 ac_have_func=yes
18352 cat >>confdefs.h <<\_ACEOF
18353 #define UMAX 1
18354 _ACEOF
18357 cat >>confdefs.h <<\_ACEOF
18358 #define UMAX4_3 1
18359 _ACEOF
18366 if test $ac_have_func = no; then
18367 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18368 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18369 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18370 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18371 echo $ECHO_N "(cached) $ECHO_C" >&6
18373 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18374 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18375 else
18376 # Is the header compilable?
18377 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
18378 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
18379 cat >conftest.$ac_ext <<_ACEOF
18380 /* confdefs.h. */
18381 _ACEOF
18382 cat confdefs.h >>conftest.$ac_ext
18383 cat >>conftest.$ac_ext <<_ACEOF
18384 /* end confdefs.h. */
18385 $ac_includes_default
18386 #include <sys/cpustats.h>
18387 _ACEOF
18388 rm -f conftest.$ac_objext
18389 if { (ac_try="$ac_compile"
18390 case "(($ac_try" in
18391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18392 *) ac_try_echo=$ac_try;;
18393 esac
18394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18395 (eval "$ac_compile") 2>conftest.er1
18396 ac_status=$?
18397 grep -v '^ *+' conftest.er1 >conftest.err
18398 rm -f conftest.er1
18399 cat conftest.err >&5
18400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401 (exit $ac_status); } && {
18402 test -z "$ac_c_werror_flag" ||
18403 test ! -s conftest.err
18404 } && test -s conftest.$ac_objext; then
18405 ac_header_compiler=yes
18406 else
18407 echo "$as_me: failed program was:" >&5
18408 sed 's/^/| /' conftest.$ac_ext >&5
18410 ac_header_compiler=no
18413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18414 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18415 echo "${ECHO_T}$ac_header_compiler" >&6; }
18417 # Is the header present?
18418 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
18419 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
18420 cat >conftest.$ac_ext <<_ACEOF
18421 /* confdefs.h. */
18422 _ACEOF
18423 cat confdefs.h >>conftest.$ac_ext
18424 cat >>conftest.$ac_ext <<_ACEOF
18425 /* end confdefs.h. */
18426 #include <sys/cpustats.h>
18427 _ACEOF
18428 if { (ac_try="$ac_cpp conftest.$ac_ext"
18429 case "(($ac_try" in
18430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18431 *) ac_try_echo=$ac_try;;
18432 esac
18433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18435 ac_status=$?
18436 grep -v '^ *+' conftest.er1 >conftest.err
18437 rm -f conftest.er1
18438 cat conftest.err >&5
18439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440 (exit $ac_status); } >/dev/null && {
18441 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18442 test ! -s conftest.err
18443 }; then
18444 ac_header_preproc=yes
18445 else
18446 echo "$as_me: failed program was:" >&5
18447 sed 's/^/| /' conftest.$ac_ext >&5
18449 ac_header_preproc=no
18452 rm -f conftest.err conftest.$ac_ext
18453 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18454 echo "${ECHO_T}$ac_header_preproc" >&6; }
18456 # So? What about this header?
18457 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18458 yes:no: )
18459 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18460 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18461 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
18462 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
18463 ac_header_preproc=yes
18465 no:yes:* )
18466 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
18467 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
18468 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
18469 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
18470 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
18471 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
18472 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18473 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18474 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
18475 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
18476 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
18477 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
18480 esac
18481 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18482 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18483 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18484 echo $ECHO_N "(cached) $ECHO_C" >&6
18485 else
18486 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18488 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18489 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18492 if test $ac_cv_header_sys_cpustats_h = yes; then
18493 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18494 #define UMAX 1
18495 _ACEOF
18502 if test $ac_have_func = no; then
18504 for ac_header in mach/mach.h
18506 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18508 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18511 echo $ECHO_N "(cached) $ECHO_C" >&6
18513 ac_res=`eval echo '${'$as_ac_Header'}'`
18514 { echo "$as_me:$LINENO: result: $ac_res" >&5
18515 echo "${ECHO_T}$ac_res" >&6; }
18516 else
18517 # Is the header compilable?
18518 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18519 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18520 cat >conftest.$ac_ext <<_ACEOF
18521 /* confdefs.h. */
18522 _ACEOF
18523 cat confdefs.h >>conftest.$ac_ext
18524 cat >>conftest.$ac_ext <<_ACEOF
18525 /* end confdefs.h. */
18526 $ac_includes_default
18527 #include <$ac_header>
18528 _ACEOF
18529 rm -f conftest.$ac_objext
18530 if { (ac_try="$ac_compile"
18531 case "(($ac_try" in
18532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18533 *) ac_try_echo=$ac_try;;
18534 esac
18535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18536 (eval "$ac_compile") 2>conftest.er1
18537 ac_status=$?
18538 grep -v '^ *+' conftest.er1 >conftest.err
18539 rm -f conftest.er1
18540 cat conftest.err >&5
18541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542 (exit $ac_status); } && {
18543 test -z "$ac_c_werror_flag" ||
18544 test ! -s conftest.err
18545 } && test -s conftest.$ac_objext; then
18546 ac_header_compiler=yes
18547 else
18548 echo "$as_me: failed program was:" >&5
18549 sed 's/^/| /' conftest.$ac_ext >&5
18551 ac_header_compiler=no
18554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18555 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18556 echo "${ECHO_T}$ac_header_compiler" >&6; }
18558 # Is the header present?
18559 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18560 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18561 cat >conftest.$ac_ext <<_ACEOF
18562 /* confdefs.h. */
18563 _ACEOF
18564 cat confdefs.h >>conftest.$ac_ext
18565 cat >>conftest.$ac_ext <<_ACEOF
18566 /* end confdefs.h. */
18567 #include <$ac_header>
18568 _ACEOF
18569 if { (ac_try="$ac_cpp conftest.$ac_ext"
18570 case "(($ac_try" in
18571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18572 *) ac_try_echo=$ac_try;;
18573 esac
18574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18575 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18576 ac_status=$?
18577 grep -v '^ *+' conftest.er1 >conftest.err
18578 rm -f conftest.er1
18579 cat conftest.err >&5
18580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581 (exit $ac_status); } >/dev/null && {
18582 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18583 test ! -s conftest.err
18584 }; then
18585 ac_header_preproc=yes
18586 else
18587 echo "$as_me: failed program was:" >&5
18588 sed 's/^/| /' conftest.$ac_ext >&5
18590 ac_header_preproc=no
18593 rm -f conftest.err conftest.$ac_ext
18594 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18595 echo "${ECHO_T}$ac_header_preproc" >&6; }
18597 # So? What about this header?
18598 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18599 yes:no: )
18600 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18601 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18603 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18604 ac_header_preproc=yes
18606 no:yes:* )
18607 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18608 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18609 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18610 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18611 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18612 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18613 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18614 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18616 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18617 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18618 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18621 esac
18622 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18625 echo $ECHO_N "(cached) $ECHO_C" >&6
18626 else
18627 eval "$as_ac_Header=\$ac_header_preproc"
18629 ac_res=`eval echo '${'$as_ac_Header'}'`
18630 { echo "$as_me:$LINENO: result: $ac_res" >&5
18631 echo "${ECHO_T}$ac_res" >&6; }
18634 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18635 cat >>confdefs.h <<_ACEOF
18636 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18637 _ACEOF
18641 done
18646 for ac_header in nlist.h
18648 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18650 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18653 echo $ECHO_N "(cached) $ECHO_C" >&6
18655 ac_res=`eval echo '${'$as_ac_Header'}'`
18656 { echo "$as_me:$LINENO: result: $ac_res" >&5
18657 echo "${ECHO_T}$ac_res" >&6; }
18658 else
18659 # Is the header compilable?
18660 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18661 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18662 cat >conftest.$ac_ext <<_ACEOF
18663 /* confdefs.h. */
18664 _ACEOF
18665 cat confdefs.h >>conftest.$ac_ext
18666 cat >>conftest.$ac_ext <<_ACEOF
18667 /* end confdefs.h. */
18668 $ac_includes_default
18669 #include <$ac_header>
18670 _ACEOF
18671 rm -f conftest.$ac_objext
18672 if { (ac_try="$ac_compile"
18673 case "(($ac_try" in
18674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18675 *) ac_try_echo=$ac_try;;
18676 esac
18677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18678 (eval "$ac_compile") 2>conftest.er1
18679 ac_status=$?
18680 grep -v '^ *+' conftest.er1 >conftest.err
18681 rm -f conftest.er1
18682 cat conftest.err >&5
18683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684 (exit $ac_status); } && {
18685 test -z "$ac_c_werror_flag" ||
18686 test ! -s conftest.err
18687 } && test -s conftest.$ac_objext; then
18688 ac_header_compiler=yes
18689 else
18690 echo "$as_me: failed program was:" >&5
18691 sed 's/^/| /' conftest.$ac_ext >&5
18693 ac_header_compiler=no
18696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18697 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18698 echo "${ECHO_T}$ac_header_compiler" >&6; }
18700 # Is the header present?
18701 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18702 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18703 cat >conftest.$ac_ext <<_ACEOF
18704 /* confdefs.h. */
18705 _ACEOF
18706 cat confdefs.h >>conftest.$ac_ext
18707 cat >>conftest.$ac_ext <<_ACEOF
18708 /* end confdefs.h. */
18709 #include <$ac_header>
18710 _ACEOF
18711 if { (ac_try="$ac_cpp conftest.$ac_ext"
18712 case "(($ac_try" in
18713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18714 *) ac_try_echo=$ac_try;;
18715 esac
18716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18718 ac_status=$?
18719 grep -v '^ *+' conftest.er1 >conftest.err
18720 rm -f conftest.er1
18721 cat conftest.err >&5
18722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723 (exit $ac_status); } >/dev/null && {
18724 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18725 test ! -s conftest.err
18726 }; then
18727 ac_header_preproc=yes
18728 else
18729 echo "$as_me: failed program was:" >&5
18730 sed 's/^/| /' conftest.$ac_ext >&5
18732 ac_header_preproc=no
18735 rm -f conftest.err conftest.$ac_ext
18736 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18737 echo "${ECHO_T}$ac_header_preproc" >&6; }
18739 # So? What about this header?
18740 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18741 yes:no: )
18742 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18743 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18744 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18745 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18746 ac_header_preproc=yes
18748 no:yes:* )
18749 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18750 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18751 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18752 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18753 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18754 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18755 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18756 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18757 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18758 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18759 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18760 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18763 esac
18764 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18767 echo $ECHO_N "(cached) $ECHO_C" >&6
18768 else
18769 eval "$as_ac_Header=\$ac_header_preproc"
18771 ac_res=`eval echo '${'$as_ac_Header'}'`
18772 { echo "$as_me:$LINENO: result: $ac_res" >&5
18773 echo "${ECHO_T}$ac_res" >&6; }
18776 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18777 cat >>confdefs.h <<_ACEOF
18778 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18779 _ACEOF
18780 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18781 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18782 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18783 echo $ECHO_N "(cached) $ECHO_C" >&6
18784 else
18785 cat >conftest.$ac_ext <<_ACEOF
18786 /* confdefs.h. */
18787 _ACEOF
18788 cat confdefs.h >>conftest.$ac_ext
18789 cat >>conftest.$ac_ext <<_ACEOF
18790 /* end confdefs.h. */
18791 #include <nlist.h>
18794 main ()
18796 static struct nlist ac_aggr;
18797 if (ac_aggr.n_un.n_name)
18798 return 0;
18800 return 0;
18802 _ACEOF
18803 rm -f conftest.$ac_objext
18804 if { (ac_try="$ac_compile"
18805 case "(($ac_try" in
18806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18807 *) ac_try_echo=$ac_try;;
18808 esac
18809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18810 (eval "$ac_compile") 2>conftest.er1
18811 ac_status=$?
18812 grep -v '^ *+' conftest.er1 >conftest.err
18813 rm -f conftest.er1
18814 cat conftest.err >&5
18815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816 (exit $ac_status); } && {
18817 test -z "$ac_c_werror_flag" ||
18818 test ! -s conftest.err
18819 } && test -s conftest.$ac_objext; then
18820 ac_cv_member_struct_nlist_n_un_n_name=yes
18821 else
18822 echo "$as_me: failed program was:" >&5
18823 sed 's/^/| /' conftest.$ac_ext >&5
18825 cat >conftest.$ac_ext <<_ACEOF
18826 /* confdefs.h. */
18827 _ACEOF
18828 cat confdefs.h >>conftest.$ac_ext
18829 cat >>conftest.$ac_ext <<_ACEOF
18830 /* end confdefs.h. */
18831 #include <nlist.h>
18834 main ()
18836 static struct nlist ac_aggr;
18837 if (sizeof ac_aggr.n_un.n_name)
18838 return 0;
18840 return 0;
18842 _ACEOF
18843 rm -f conftest.$ac_objext
18844 if { (ac_try="$ac_compile"
18845 case "(($ac_try" in
18846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18847 *) ac_try_echo=$ac_try;;
18848 esac
18849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18850 (eval "$ac_compile") 2>conftest.er1
18851 ac_status=$?
18852 grep -v '^ *+' conftest.er1 >conftest.err
18853 rm -f conftest.er1
18854 cat conftest.err >&5
18855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18856 (exit $ac_status); } && {
18857 test -z "$ac_c_werror_flag" ||
18858 test ! -s conftest.err
18859 } && test -s conftest.$ac_objext; then
18860 ac_cv_member_struct_nlist_n_un_n_name=yes
18861 else
18862 echo "$as_me: failed program was:" >&5
18863 sed 's/^/| /' conftest.$ac_ext >&5
18865 ac_cv_member_struct_nlist_n_un_n_name=no
18868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18873 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18874 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18875 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18877 cat >>confdefs.h <<_ACEOF
18878 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18879 _ACEOF
18882 cat >>confdefs.h <<\_ACEOF
18883 #define NLIST_NAME_UNION 1
18884 _ACEOF
18891 done
18894 done
18897 # Some definitions of getloadavg require that the program be installed setgid.
18898 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18899 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18900 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18901 echo $ECHO_N "(cached) $ECHO_C" >&6
18902 else
18903 cat >conftest.$ac_ext <<_ACEOF
18904 /* confdefs.h. */
18905 _ACEOF
18906 cat confdefs.h >>conftest.$ac_ext
18907 cat >>conftest.$ac_ext <<_ACEOF
18908 /* end confdefs.h. */
18909 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18910 #ifdef LDAV_PRIVILEGED
18911 Yowza Am I SETGID yet
18912 #endif
18913 _ACEOF
18914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18915 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18916 ac_cv_func_getloadavg_setgid=yes
18917 else
18918 ac_cv_func_getloadavg_setgid=no
18920 rm -f conftest*
18923 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18924 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18925 if test $ac_cv_func_getloadavg_setgid = yes; then
18926 NEED_SETGID=true
18928 cat >>confdefs.h <<\_ACEOF
18929 #define GETLOADAVG_PRIVILEGED 1
18930 _ACEOF
18932 else
18933 NEED_SETGID=false
18936 if test $ac_cv_func_getloadavg_setgid = yes; then
18937 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18938 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18939 if test "${ac_cv_group_kmem+set}" = set; then
18940 echo $ECHO_N "(cached) $ECHO_C" >&6
18941 else
18942 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18943 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18944 # If we got an error (system does not support symlinks), try without -L.
18945 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18946 ac_cv_group_kmem=`echo $ac_ls_output \
18947 | sed -ne 's/[ ][ ]*/ /g;
18948 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18949 / /s/.* //;p;'`
18952 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18953 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18954 KMEM_GROUP=$ac_cv_group_kmem
18956 if test "x$ac_save_LIBS" = x; then
18957 GETLOADAVG_LIBS=$LIBS
18958 else
18959 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18961 LIBS=$ac_save_LIBS
18965 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18966 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18967 if test "${ac_cv_sys_largefile_source+set}" = set; then
18968 echo $ECHO_N "(cached) $ECHO_C" >&6
18969 else
18970 while :; do
18971 cat >conftest.$ac_ext <<_ACEOF
18972 /* confdefs.h. */
18973 _ACEOF
18974 cat confdefs.h >>conftest.$ac_ext
18975 cat >>conftest.$ac_ext <<_ACEOF
18976 /* end confdefs.h. */
18977 #include <stdio.h>
18979 main ()
18981 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18983 return 0;
18985 _ACEOF
18986 rm -f conftest.$ac_objext conftest$ac_exeext
18987 if { (ac_try="$ac_link"
18988 case "(($ac_try" in
18989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18990 *) ac_try_echo=$ac_try;;
18991 esac
18992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18993 (eval "$ac_link") 2>conftest.er1
18994 ac_status=$?
18995 grep -v '^ *+' conftest.er1 >conftest.err
18996 rm -f conftest.er1
18997 cat conftest.err >&5
18998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18999 (exit $ac_status); } && {
19000 test -z "$ac_c_werror_flag" ||
19001 test ! -s conftest.err
19002 } && test -s conftest$ac_exeext &&
19003 $as_test_x conftest$ac_exeext; then
19004 ac_cv_sys_largefile_source=no; break
19005 else
19006 echo "$as_me: failed program was:" >&5
19007 sed 's/^/| /' conftest.$ac_ext >&5
19012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19013 conftest$ac_exeext conftest.$ac_ext
19014 cat >conftest.$ac_ext <<_ACEOF
19015 /* confdefs.h. */
19016 _ACEOF
19017 cat confdefs.h >>conftest.$ac_ext
19018 cat >>conftest.$ac_ext <<_ACEOF
19019 /* end confdefs.h. */
19020 #define _LARGEFILE_SOURCE 1
19021 #include <stdio.h>
19023 main ()
19025 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
19027 return 0;
19029 _ACEOF
19030 rm -f conftest.$ac_objext conftest$ac_exeext
19031 if { (ac_try="$ac_link"
19032 case "(($ac_try" in
19033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19034 *) ac_try_echo=$ac_try;;
19035 esac
19036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19037 (eval "$ac_link") 2>conftest.er1
19038 ac_status=$?
19039 grep -v '^ *+' conftest.er1 >conftest.err
19040 rm -f conftest.er1
19041 cat conftest.err >&5
19042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19043 (exit $ac_status); } && {
19044 test -z "$ac_c_werror_flag" ||
19045 test ! -s conftest.err
19046 } && test -s conftest$ac_exeext &&
19047 $as_test_x conftest$ac_exeext; then
19048 ac_cv_sys_largefile_source=1; break
19049 else
19050 echo "$as_me: failed program was:" >&5
19051 sed 's/^/| /' conftest.$ac_ext >&5
19056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19057 conftest$ac_exeext conftest.$ac_ext
19058 ac_cv_sys_largefile_source=unknown
19059 break
19060 done
19062 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19063 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
19064 case $ac_cv_sys_largefile_source in #(
19065 no | unknown) ;;
19067 cat >>confdefs.h <<_ACEOF
19068 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19069 _ACEOF
19071 esac
19072 rm -f conftest*
19074 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19075 # in glibc 2.1.3, but that breaks too many other things.
19076 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19077 if test $ac_cv_sys_largefile_source != unknown; then
19079 cat >>confdefs.h <<\_ACEOF
19080 #define HAVE_FSEEKO 1
19081 _ACEOF
19086 # Configure getopt.
19087 # getopt.m4 serial 10
19089 # The getopt module assume you want GNU getopt, with getopt_long etc,
19090 # rather than vanilla POSIX getopt. This means your your code should
19091 # always include <getopt.h> for the getopt prototypes.
19103 # Prerequisites of lib/getopt*.
19108 GETOPT_H=
19110 for ac_header in getopt.h
19112 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19114 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19116 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19117 echo $ECHO_N "(cached) $ECHO_C" >&6
19119 ac_res=`eval echo '${'$as_ac_Header'}'`
19120 { echo "$as_me:$LINENO: result: $ac_res" >&5
19121 echo "${ECHO_T}$ac_res" >&6; }
19122 else
19123 # Is the header compilable?
19124 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19125 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19126 cat >conftest.$ac_ext <<_ACEOF
19127 /* confdefs.h. */
19128 _ACEOF
19129 cat confdefs.h >>conftest.$ac_ext
19130 cat >>conftest.$ac_ext <<_ACEOF
19131 /* end confdefs.h. */
19132 $ac_includes_default
19133 #include <$ac_header>
19134 _ACEOF
19135 rm -f conftest.$ac_objext
19136 if { (ac_try="$ac_compile"
19137 case "(($ac_try" in
19138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19139 *) ac_try_echo=$ac_try;;
19140 esac
19141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19142 (eval "$ac_compile") 2>conftest.er1
19143 ac_status=$?
19144 grep -v '^ *+' conftest.er1 >conftest.err
19145 rm -f conftest.er1
19146 cat conftest.err >&5
19147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19148 (exit $ac_status); } && {
19149 test -z "$ac_c_werror_flag" ||
19150 test ! -s conftest.err
19151 } && test -s conftest.$ac_objext; then
19152 ac_header_compiler=yes
19153 else
19154 echo "$as_me: failed program was:" >&5
19155 sed 's/^/| /' conftest.$ac_ext >&5
19157 ac_header_compiler=no
19160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19161 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19162 echo "${ECHO_T}$ac_header_compiler" >&6; }
19164 # Is the header present?
19165 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19166 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19167 cat >conftest.$ac_ext <<_ACEOF
19168 /* confdefs.h. */
19169 _ACEOF
19170 cat confdefs.h >>conftest.$ac_ext
19171 cat >>conftest.$ac_ext <<_ACEOF
19172 /* end confdefs.h. */
19173 #include <$ac_header>
19174 _ACEOF
19175 if { (ac_try="$ac_cpp conftest.$ac_ext"
19176 case "(($ac_try" in
19177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19178 *) ac_try_echo=$ac_try;;
19179 esac
19180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19181 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19182 ac_status=$?
19183 grep -v '^ *+' conftest.er1 >conftest.err
19184 rm -f conftest.er1
19185 cat conftest.err >&5
19186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187 (exit $ac_status); } >/dev/null && {
19188 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19189 test ! -s conftest.err
19190 }; then
19191 ac_header_preproc=yes
19192 else
19193 echo "$as_me: failed program was:" >&5
19194 sed 's/^/| /' conftest.$ac_ext >&5
19196 ac_header_preproc=no
19199 rm -f conftest.err conftest.$ac_ext
19200 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19201 echo "${ECHO_T}$ac_header_preproc" >&6; }
19203 # So? What about this header?
19204 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19205 yes:no: )
19206 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19207 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19209 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19210 ac_header_preproc=yes
19212 no:yes:* )
19213 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19214 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19215 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19216 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19217 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19218 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19219 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19220 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19222 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19223 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19224 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19227 esac
19228 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19231 echo $ECHO_N "(cached) $ECHO_C" >&6
19232 else
19233 eval "$as_ac_Header=\$ac_header_preproc"
19235 ac_res=`eval echo '${'$as_ac_Header'}'`
19236 { echo "$as_me:$LINENO: result: $ac_res" >&5
19237 echo "${ECHO_T}$ac_res" >&6; }
19240 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19241 cat >>confdefs.h <<_ACEOF
19242 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19243 _ACEOF
19245 else
19246 GETOPT_H=getopt.h
19249 done
19251 if test -z "$GETOPT_H"; then
19253 for ac_func in getopt_long_only
19255 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19256 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19257 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19258 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19259 echo $ECHO_N "(cached) $ECHO_C" >&6
19260 else
19261 cat >conftest.$ac_ext <<_ACEOF
19262 /* confdefs.h. */
19263 _ACEOF
19264 cat confdefs.h >>conftest.$ac_ext
19265 cat >>conftest.$ac_ext <<_ACEOF
19266 /* end confdefs.h. */
19267 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19268 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19269 #define $ac_func innocuous_$ac_func
19271 /* System header to define __stub macros and hopefully few prototypes,
19272 which can conflict with char $ac_func (); below.
19273 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19274 <limits.h> exists even on freestanding compilers. */
19276 #ifdef __STDC__
19277 # include <limits.h>
19278 #else
19279 # include <assert.h>
19280 #endif
19282 #undef $ac_func
19284 /* Override any GCC internal prototype to avoid an error.
19285 Use char because int might match the return type of a GCC
19286 builtin and then its argument prototype would still apply. */
19287 #ifdef __cplusplus
19288 extern "C"
19289 #endif
19290 char $ac_func ();
19291 /* The GNU C library defines this for functions which it implements
19292 to always fail with ENOSYS. Some functions are actually named
19293 something starting with __ and the normal name is an alias. */
19294 #if defined __stub_$ac_func || defined __stub___$ac_func
19295 choke me
19296 #endif
19299 main ()
19301 return $ac_func ();
19303 return 0;
19305 _ACEOF
19306 rm -f conftest.$ac_objext conftest$ac_exeext
19307 if { (ac_try="$ac_link"
19308 case "(($ac_try" in
19309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19310 *) ac_try_echo=$ac_try;;
19311 esac
19312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19313 (eval "$ac_link") 2>conftest.er1
19314 ac_status=$?
19315 grep -v '^ *+' conftest.er1 >conftest.err
19316 rm -f conftest.er1
19317 cat conftest.err >&5
19318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319 (exit $ac_status); } && {
19320 test -z "$ac_c_werror_flag" ||
19321 test ! -s conftest.err
19322 } && test -s conftest$ac_exeext &&
19323 $as_test_x conftest$ac_exeext; then
19324 eval "$as_ac_var=yes"
19325 else
19326 echo "$as_me: failed program was:" >&5
19327 sed 's/^/| /' conftest.$ac_ext >&5
19329 eval "$as_ac_var=no"
19332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19333 conftest$ac_exeext conftest.$ac_ext
19335 ac_res=`eval echo '${'$as_ac_var'}'`
19336 { echo "$as_me:$LINENO: result: $ac_res" >&5
19337 echo "${ECHO_T}$ac_res" >&6; }
19338 if test `eval echo '${'$as_ac_var'}'` = yes; then
19339 cat >>confdefs.h <<_ACEOF
19340 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19341 _ACEOF
19343 else
19344 GETOPT_H=getopt.h
19346 done
19350 if test -z "$GETOPT_H"; then
19351 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
19352 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
19353 if test "${ac_cv_have_decl_optreset+set}" = set; then
19354 echo $ECHO_N "(cached) $ECHO_C" >&6
19355 else
19356 cat >conftest.$ac_ext <<_ACEOF
19357 /* confdefs.h. */
19358 _ACEOF
19359 cat confdefs.h >>conftest.$ac_ext
19360 cat >>conftest.$ac_ext <<_ACEOF
19361 /* end confdefs.h. */
19362 #include <getopt.h>
19365 main ()
19367 #ifndef optreset
19368 (void) optreset;
19369 #endif
19372 return 0;
19374 _ACEOF
19375 rm -f conftest.$ac_objext
19376 if { (ac_try="$ac_compile"
19377 case "(($ac_try" in
19378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19379 *) ac_try_echo=$ac_try;;
19380 esac
19381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19382 (eval "$ac_compile") 2>conftest.er1
19383 ac_status=$?
19384 grep -v '^ *+' conftest.er1 >conftest.err
19385 rm -f conftest.er1
19386 cat conftest.err >&5
19387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388 (exit $ac_status); } && {
19389 test -z "$ac_c_werror_flag" ||
19390 test ! -s conftest.err
19391 } && test -s conftest.$ac_objext; then
19392 ac_cv_have_decl_optreset=yes
19393 else
19394 echo "$as_me: failed program was:" >&5
19395 sed 's/^/| /' conftest.$ac_ext >&5
19397 ac_cv_have_decl_optreset=no
19400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19402 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
19403 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19404 if test $ac_cv_have_decl_optreset = yes; then
19405 GETOPT_H=getopt.h
19410 if test -z "$GETOPT_H"; then
19411 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
19412 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
19413 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19414 echo $ECHO_N "(cached) $ECHO_C" >&6
19415 else
19416 if test "$cross_compiling" = yes; then
19417 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
19418 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
19419 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19420 echo $ECHO_N "(cached) $ECHO_C" >&6
19421 else
19422 cat >conftest.$ac_ext <<_ACEOF
19423 /* confdefs.h. */
19424 _ACEOF
19425 cat confdefs.h >>conftest.$ac_ext
19426 cat >>conftest.$ac_ext <<_ACEOF
19427 /* end confdefs.h. */
19428 #include <getopt.h>
19431 main ()
19433 #ifndef getopt_clip
19434 (void) getopt_clip;
19435 #endif
19438 return 0;
19440 _ACEOF
19441 rm -f conftest.$ac_objext
19442 if { (ac_try="$ac_compile"
19443 case "(($ac_try" in
19444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19445 *) ac_try_echo=$ac_try;;
19446 esac
19447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19448 (eval "$ac_compile") 2>conftest.er1
19449 ac_status=$?
19450 grep -v '^ *+' conftest.er1 >conftest.err
19451 rm -f conftest.er1
19452 cat conftest.err >&5
19453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19454 (exit $ac_status); } && {
19455 test -z "$ac_c_werror_flag" ||
19456 test ! -s conftest.err
19457 } && test -s conftest.$ac_objext; then
19458 ac_cv_have_decl_getopt_clip=yes
19459 else
19460 echo "$as_me: failed program was:" >&5
19461 sed 's/^/| /' conftest.$ac_ext >&5
19463 ac_cv_have_decl_getopt_clip=no
19466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19468 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
19469 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19470 if test $ac_cv_have_decl_getopt_clip = yes; then
19471 gl_cv_func_gnu_getopt=no
19472 else
19473 gl_cv_func_gnu_getopt=yes
19476 else
19477 cat >conftest.$ac_ext <<_ACEOF
19478 /* confdefs.h. */
19479 _ACEOF
19480 cat confdefs.h >>conftest.$ac_ext
19481 cat >>conftest.$ac_ext <<_ACEOF
19482 /* end confdefs.h. */
19483 #include <getopt.h>
19485 main ()
19488 char *myargv[3];
19489 myargv[0] = "conftest";
19490 myargv[1] = "-+";
19491 myargv[2] = 0;
19492 return getopt (2, myargv, "+a") != '?';
19495 return 0;
19497 _ACEOF
19498 rm -f conftest$ac_exeext
19499 if { (ac_try="$ac_link"
19500 case "(($ac_try" in
19501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19502 *) ac_try_echo=$ac_try;;
19503 esac
19504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19505 (eval "$ac_link") 2>&5
19506 ac_status=$?
19507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19508 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19509 { (case "(($ac_try" in
19510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19511 *) ac_try_echo=$ac_try;;
19512 esac
19513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19514 (eval "$ac_try") 2>&5
19515 ac_status=$?
19516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); }; }; then
19518 gl_cv_func_gnu_getopt=yes
19519 else
19520 echo "$as_me: program exited with status $ac_status" >&5
19521 echo "$as_me: failed program was:" >&5
19522 sed 's/^/| /' conftest.$ac_ext >&5
19524 ( exit $ac_status )
19525 gl_cv_func_gnu_getopt=no
19527 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19532 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
19533 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19534 if test "$gl_cv_func_gnu_getopt" = "no"; then
19535 GETOPT_H=getopt.h
19541 if test -n "$GETOPT_H"; then
19544 GETOPT_H=getopt.h
19546 cat >>confdefs.h <<\_ACEOF
19547 #define __GETOPT_PREFIX rpl_
19548 _ACEOF
19553 GETOPTOBJS='getopt.o getopt1.o'
19560 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
19561 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
19562 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19563 echo $ECHO_N "(cached) $ECHO_C" >&6
19564 else
19565 # Use it with a single arg.
19566 cat >conftest.$ac_ext <<_ACEOF
19567 /* confdefs.h. */
19568 _ACEOF
19569 cat confdefs.h >>conftest.$ac_ext
19570 cat >>conftest.$ac_ext <<_ACEOF
19571 /* end confdefs.h. */
19572 $ac_includes_default
19574 main ()
19576 getpgrp (0);
19578 return 0;
19580 _ACEOF
19581 rm -f conftest.$ac_objext
19582 if { (ac_try="$ac_compile"
19583 case "(($ac_try" in
19584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19585 *) ac_try_echo=$ac_try;;
19586 esac
19587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19588 (eval "$ac_compile") 2>conftest.er1
19589 ac_status=$?
19590 grep -v '^ *+' conftest.er1 >conftest.err
19591 rm -f conftest.er1
19592 cat conftest.err >&5
19593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19594 (exit $ac_status); } && {
19595 test -z "$ac_c_werror_flag" ||
19596 test ! -s conftest.err
19597 } && test -s conftest.$ac_objext; then
19598 ac_cv_func_getpgrp_void=no
19599 else
19600 echo "$as_me: failed program was:" >&5
19601 sed 's/^/| /' conftest.$ac_ext >&5
19603 ac_cv_func_getpgrp_void=yes
19606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19609 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
19610 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19611 if test $ac_cv_func_getpgrp_void = yes; then
19613 cat >>confdefs.h <<\_ACEOF
19614 #define GETPGRP_VOID 1
19615 _ACEOF
19621 for ac_func in strftime
19623 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19624 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19625 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19626 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19627 echo $ECHO_N "(cached) $ECHO_C" >&6
19628 else
19629 cat >conftest.$ac_ext <<_ACEOF
19630 /* confdefs.h. */
19631 _ACEOF
19632 cat confdefs.h >>conftest.$ac_ext
19633 cat >>conftest.$ac_ext <<_ACEOF
19634 /* end confdefs.h. */
19635 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19636 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19637 #define $ac_func innocuous_$ac_func
19639 /* System header to define __stub macros and hopefully few prototypes,
19640 which can conflict with char $ac_func (); below.
19641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19642 <limits.h> exists even on freestanding compilers. */
19644 #ifdef __STDC__
19645 # include <limits.h>
19646 #else
19647 # include <assert.h>
19648 #endif
19650 #undef $ac_func
19652 /* Override any GCC internal prototype to avoid an error.
19653 Use char because int might match the return type of a GCC
19654 builtin and then its argument prototype would still apply. */
19655 #ifdef __cplusplus
19656 extern "C"
19657 #endif
19658 char $ac_func ();
19659 /* The GNU C library defines this for functions which it implements
19660 to always fail with ENOSYS. Some functions are actually named
19661 something starting with __ and the normal name is an alias. */
19662 #if defined __stub_$ac_func || defined __stub___$ac_func
19663 choke me
19664 #endif
19667 main ()
19669 return $ac_func ();
19671 return 0;
19673 _ACEOF
19674 rm -f conftest.$ac_objext conftest$ac_exeext
19675 if { (ac_try="$ac_link"
19676 case "(($ac_try" in
19677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19678 *) ac_try_echo=$ac_try;;
19679 esac
19680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19681 (eval "$ac_link") 2>conftest.er1
19682 ac_status=$?
19683 grep -v '^ *+' conftest.er1 >conftest.err
19684 rm -f conftest.er1
19685 cat conftest.err >&5
19686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19687 (exit $ac_status); } && {
19688 test -z "$ac_c_werror_flag" ||
19689 test ! -s conftest.err
19690 } && test -s conftest$ac_exeext &&
19691 $as_test_x conftest$ac_exeext; then
19692 eval "$as_ac_var=yes"
19693 else
19694 echo "$as_me: failed program was:" >&5
19695 sed 's/^/| /' conftest.$ac_ext >&5
19697 eval "$as_ac_var=no"
19700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19701 conftest$ac_exeext conftest.$ac_ext
19703 ac_res=`eval echo '${'$as_ac_var'}'`
19704 { echo "$as_me:$LINENO: result: $ac_res" >&5
19705 echo "${ECHO_T}$ac_res" >&6; }
19706 if test `eval echo '${'$as_ac_var'}'` = yes; then
19707 cat >>confdefs.h <<_ACEOF
19708 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19709 _ACEOF
19711 else
19712 # strftime is in -lintl on SCO UNIX.
19713 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19714 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
19715 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19716 echo $ECHO_N "(cached) $ECHO_C" >&6
19717 else
19718 ac_check_lib_save_LIBS=$LIBS
19719 LIBS="-lintl $LIBS"
19720 cat >conftest.$ac_ext <<_ACEOF
19721 /* confdefs.h. */
19722 _ACEOF
19723 cat confdefs.h >>conftest.$ac_ext
19724 cat >>conftest.$ac_ext <<_ACEOF
19725 /* end confdefs.h. */
19727 /* Override any GCC internal prototype to avoid an error.
19728 Use char because int might match the return type of a GCC
19729 builtin and then its argument prototype would still apply. */
19730 #ifdef __cplusplus
19731 extern "C"
19732 #endif
19733 char strftime ();
19735 main ()
19737 return strftime ();
19739 return 0;
19741 _ACEOF
19742 rm -f conftest.$ac_objext conftest$ac_exeext
19743 if { (ac_try="$ac_link"
19744 case "(($ac_try" in
19745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19746 *) ac_try_echo=$ac_try;;
19747 esac
19748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19749 (eval "$ac_link") 2>conftest.er1
19750 ac_status=$?
19751 grep -v '^ *+' conftest.er1 >conftest.err
19752 rm -f conftest.er1
19753 cat conftest.err >&5
19754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19755 (exit $ac_status); } && {
19756 test -z "$ac_c_werror_flag" ||
19757 test ! -s conftest.err
19758 } && test -s conftest$ac_exeext &&
19759 $as_test_x conftest$ac_exeext; then
19760 ac_cv_lib_intl_strftime=yes
19761 else
19762 echo "$as_me: failed program was:" >&5
19763 sed 's/^/| /' conftest.$ac_ext >&5
19765 ac_cv_lib_intl_strftime=no
19768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19769 conftest$ac_exeext conftest.$ac_ext
19770 LIBS=$ac_check_lib_save_LIBS
19772 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19773 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19774 if test $ac_cv_lib_intl_strftime = yes; then
19775 cat >>confdefs.h <<\_ACEOF
19776 #define HAVE_STRFTIME 1
19777 _ACEOF
19779 LIBS="-lintl $LIBS"
19783 done
19786 # UNIX98 PTYs.
19788 for ac_func in grantpt
19790 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19791 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19792 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19793 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19794 echo $ECHO_N "(cached) $ECHO_C" >&6
19795 else
19796 cat >conftest.$ac_ext <<_ACEOF
19797 /* confdefs.h. */
19798 _ACEOF
19799 cat confdefs.h >>conftest.$ac_ext
19800 cat >>conftest.$ac_ext <<_ACEOF
19801 /* end confdefs.h. */
19802 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19803 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19804 #define $ac_func innocuous_$ac_func
19806 /* System header to define __stub macros and hopefully few prototypes,
19807 which can conflict with char $ac_func (); below.
19808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19809 <limits.h> exists even on freestanding compilers. */
19811 #ifdef __STDC__
19812 # include <limits.h>
19813 #else
19814 # include <assert.h>
19815 #endif
19817 #undef $ac_func
19819 /* Override any GCC internal prototype to avoid an error.
19820 Use char because int might match the return type of a GCC
19821 builtin and then its argument prototype would still apply. */
19822 #ifdef __cplusplus
19823 extern "C"
19824 #endif
19825 char $ac_func ();
19826 /* The GNU C library defines this for functions which it implements
19827 to always fail with ENOSYS. Some functions are actually named
19828 something starting with __ and the normal name is an alias. */
19829 #if defined __stub_$ac_func || defined __stub___$ac_func
19830 choke me
19831 #endif
19834 main ()
19836 return $ac_func ();
19838 return 0;
19840 _ACEOF
19841 rm -f conftest.$ac_objext conftest$ac_exeext
19842 if { (ac_try="$ac_link"
19843 case "(($ac_try" in
19844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19845 *) ac_try_echo=$ac_try;;
19846 esac
19847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19848 (eval "$ac_link") 2>conftest.er1
19849 ac_status=$?
19850 grep -v '^ *+' conftest.er1 >conftest.err
19851 rm -f conftest.er1
19852 cat conftest.err >&5
19853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854 (exit $ac_status); } && {
19855 test -z "$ac_c_werror_flag" ||
19856 test ! -s conftest.err
19857 } && test -s conftest$ac_exeext &&
19858 $as_test_x conftest$ac_exeext; then
19859 eval "$as_ac_var=yes"
19860 else
19861 echo "$as_me: failed program was:" >&5
19862 sed 's/^/| /' conftest.$ac_ext >&5
19864 eval "$as_ac_var=no"
19867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19868 conftest$ac_exeext conftest.$ac_ext
19870 ac_res=`eval echo '${'$as_ac_var'}'`
19871 { echo "$as_me:$LINENO: result: $ac_res" >&5
19872 echo "${ECHO_T}$ac_res" >&6; }
19873 if test `eval echo '${'$as_ac_var'}'` = yes; then
19874 cat >>confdefs.h <<_ACEOF
19875 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19876 _ACEOF
19879 done
19882 # PTY-related GNU extensions.
19884 for ac_func in getpt
19886 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19887 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19888 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19889 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19890 echo $ECHO_N "(cached) $ECHO_C" >&6
19891 else
19892 cat >conftest.$ac_ext <<_ACEOF
19893 /* confdefs.h. */
19894 _ACEOF
19895 cat confdefs.h >>conftest.$ac_ext
19896 cat >>conftest.$ac_ext <<_ACEOF
19897 /* end confdefs.h. */
19898 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19899 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19900 #define $ac_func innocuous_$ac_func
19902 /* System header to define __stub macros and hopefully few prototypes,
19903 which can conflict with char $ac_func (); below.
19904 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19905 <limits.h> exists even on freestanding compilers. */
19907 #ifdef __STDC__
19908 # include <limits.h>
19909 #else
19910 # include <assert.h>
19911 #endif
19913 #undef $ac_func
19915 /* Override any GCC internal prototype to avoid an error.
19916 Use char because int might match the return type of a GCC
19917 builtin and then its argument prototype would still apply. */
19918 #ifdef __cplusplus
19919 extern "C"
19920 #endif
19921 char $ac_func ();
19922 /* The GNU C library defines this for functions which it implements
19923 to always fail with ENOSYS. Some functions are actually named
19924 something starting with __ and the normal name is an alias. */
19925 #if defined __stub_$ac_func || defined __stub___$ac_func
19926 choke me
19927 #endif
19930 main ()
19932 return $ac_func ();
19934 return 0;
19936 _ACEOF
19937 rm -f conftest.$ac_objext conftest$ac_exeext
19938 if { (ac_try="$ac_link"
19939 case "(($ac_try" in
19940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19941 *) ac_try_echo=$ac_try;;
19942 esac
19943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19944 (eval "$ac_link") 2>conftest.er1
19945 ac_status=$?
19946 grep -v '^ *+' conftest.er1 >conftest.err
19947 rm -f conftest.er1
19948 cat conftest.err >&5
19949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950 (exit $ac_status); } && {
19951 test -z "$ac_c_werror_flag" ||
19952 test ! -s conftest.err
19953 } && test -s conftest$ac_exeext &&
19954 $as_test_x conftest$ac_exeext; then
19955 eval "$as_ac_var=yes"
19956 else
19957 echo "$as_me: failed program was:" >&5
19958 sed 's/^/| /' conftest.$ac_ext >&5
19960 eval "$as_ac_var=no"
19963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19964 conftest$ac_exeext conftest.$ac_ext
19966 ac_res=`eval echo '${'$as_ac_var'}'`
19967 { echo "$as_me:$LINENO: result: $ac_res" >&5
19968 echo "${ECHO_T}$ac_res" >&6; }
19969 if test `eval echo '${'$as_ac_var'}'` = yes; then
19970 cat >>confdefs.h <<_ACEOF
19971 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19972 _ACEOF
19975 done
19978 # Check this now, so that we will NOT find the above functions in ncurses.
19979 # That is because we have not set up to link ncurses in lib-src.
19980 # It's better to believe a function is not available
19981 # than to expect to find it in ncurses.
19983 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19984 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19985 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19986 echo $ECHO_N "(cached) $ECHO_C" >&6
19987 else
19988 ac_check_lib_save_LIBS=$LIBS
19989 LIBS="-lncurses $LIBS"
19990 cat >conftest.$ac_ext <<_ACEOF
19991 /* confdefs.h. */
19992 _ACEOF
19993 cat confdefs.h >>conftest.$ac_ext
19994 cat >>conftest.$ac_ext <<_ACEOF
19995 /* end confdefs.h. */
19997 /* Override any GCC internal prototype to avoid an error.
19998 Use char because int might match the return type of a GCC
19999 builtin and then its argument prototype would still apply. */
20000 #ifdef __cplusplus
20001 extern "C"
20002 #endif
20003 char tparm ();
20005 main ()
20007 return tparm ();
20009 return 0;
20011 _ACEOF
20012 rm -f conftest.$ac_objext conftest$ac_exeext
20013 if { (ac_try="$ac_link"
20014 case "(($ac_try" in
20015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20016 *) ac_try_echo=$ac_try;;
20017 esac
20018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20019 (eval "$ac_link") 2>conftest.er1
20020 ac_status=$?
20021 grep -v '^ *+' conftest.er1 >conftest.err
20022 rm -f conftest.er1
20023 cat conftest.err >&5
20024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20025 (exit $ac_status); } && {
20026 test -z "$ac_c_werror_flag" ||
20027 test ! -s conftest.err
20028 } && test -s conftest$ac_exeext &&
20029 $as_test_x conftest$ac_exeext; then
20030 ac_cv_lib_ncurses_tparm=yes
20031 else
20032 echo "$as_me: failed program was:" >&5
20033 sed 's/^/| /' conftest.$ac_ext >&5
20035 ac_cv_lib_ncurses_tparm=no
20038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20039 conftest$ac_exeext conftest.$ac_ext
20040 LIBS=$ac_check_lib_save_LIBS
20042 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
20043 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
20044 if test $ac_cv_lib_ncurses_tparm = yes; then
20045 cat >>confdefs.h <<_ACEOF
20046 #define HAVE_LIBNCURSES 1
20047 _ACEOF
20049 LIBS="-lncurses $LIBS"
20054 # Do we have res_init, for detecting changes in /etc/resolv.conf?
20056 resolv=no
20057 cat >conftest.$ac_ext <<_ACEOF
20058 /* confdefs.h. */
20059 _ACEOF
20060 cat confdefs.h >>conftest.$ac_ext
20061 cat >>conftest.$ac_ext <<_ACEOF
20062 /* end confdefs.h. */
20063 #include <netinet/in.h>
20064 #include <arpa/nameser.h>
20065 #include <resolv.h>
20067 main ()
20069 return res_init();
20071 return 0;
20073 _ACEOF
20074 rm -f conftest.$ac_objext conftest$ac_exeext
20075 if { (ac_try="$ac_link"
20076 case "(($ac_try" in
20077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20078 *) ac_try_echo=$ac_try;;
20079 esac
20080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20081 (eval "$ac_link") 2>conftest.er1
20082 ac_status=$?
20083 grep -v '^ *+' conftest.er1 >conftest.err
20084 rm -f conftest.er1
20085 cat conftest.err >&5
20086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20087 (exit $ac_status); } && {
20088 test -z "$ac_c_werror_flag" ||
20089 test ! -s conftest.err
20090 } && test -s conftest$ac_exeext &&
20091 $as_test_x conftest$ac_exeext; then
20092 have_res_init=yes
20093 else
20094 echo "$as_me: failed program was:" >&5
20095 sed 's/^/| /' conftest.$ac_ext >&5
20097 have_res_init=no
20100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20101 conftest$ac_exeext conftest.$ac_ext
20102 if test "$have_res_init" = no; then
20103 OLIBS="$LIBS"
20104 LIBS="$LIBS -lresolv"
20105 { echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
20106 echo $ECHO_N "checking for res_init with -lresolv... $ECHO_C" >&6; }
20107 cat >conftest.$ac_ext <<_ACEOF
20108 /* confdefs.h. */
20109 _ACEOF
20110 cat confdefs.h >>conftest.$ac_ext
20111 cat >>conftest.$ac_ext <<_ACEOF
20112 /* end confdefs.h. */
20113 #include <netinet/in.h>
20114 #include <arpa/nameser.h>
20115 #include <resolv.h>
20117 main ()
20119 return res_init();
20121 return 0;
20123 _ACEOF
20124 rm -f conftest.$ac_objext conftest$ac_exeext
20125 if { (ac_try="$ac_link"
20126 case "(($ac_try" in
20127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20128 *) ac_try_echo=$ac_try;;
20129 esac
20130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20131 (eval "$ac_link") 2>conftest.er1
20132 ac_status=$?
20133 grep -v '^ *+' conftest.er1 >conftest.err
20134 rm -f conftest.er1
20135 cat conftest.err >&5
20136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20137 (exit $ac_status); } && {
20138 test -z "$ac_c_werror_flag" ||
20139 test ! -s conftest.err
20140 } && test -s conftest$ac_exeext &&
20141 $as_test_x conftest$ac_exeext; then
20142 have_res_init=yes
20143 else
20144 echo "$as_me: failed program was:" >&5
20145 sed 's/^/| /' conftest.$ac_ext >&5
20147 have_res_init=no
20150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20151 conftest$ac_exeext conftest.$ac_ext
20152 { echo "$as_me:$LINENO: result: $have_res_init" >&5
20153 echo "${ECHO_T}$have_res_init" >&6; }
20154 if test "$have_res_init" = yes ; then
20155 resolv=yes
20157 LIBS="$OLIBS"
20160 if test "$have_res_init" = yes; then
20162 cat >>confdefs.h <<\_ACEOF
20163 #define HAVE_RES_INIT 1
20164 _ACEOF
20168 # Do we need the Hesiod library to provide the support routines?
20169 if test "$with_hesiod" != no ; then
20170 # Don't set $LIBS here -- see comments above.
20171 { echo "$as_me:$LINENO: checking for res_send" >&5
20172 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
20173 if test "${ac_cv_func_res_send+set}" = set; then
20174 echo $ECHO_N "(cached) $ECHO_C" >&6
20175 else
20176 cat >conftest.$ac_ext <<_ACEOF
20177 /* confdefs.h. */
20178 _ACEOF
20179 cat confdefs.h >>conftest.$ac_ext
20180 cat >>conftest.$ac_ext <<_ACEOF
20181 /* end confdefs.h. */
20182 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
20183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20184 #define res_send innocuous_res_send
20186 /* System header to define __stub macros and hopefully few prototypes,
20187 which can conflict with char res_send (); below.
20188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20189 <limits.h> exists even on freestanding compilers. */
20191 #ifdef __STDC__
20192 # include <limits.h>
20193 #else
20194 # include <assert.h>
20195 #endif
20197 #undef res_send
20199 /* Override any GCC internal prototype to avoid an error.
20200 Use char because int might match the return type of a GCC
20201 builtin and then its argument prototype would still apply. */
20202 #ifdef __cplusplus
20203 extern "C"
20204 #endif
20205 char res_send ();
20206 /* The GNU C library defines this for functions which it implements
20207 to always fail with ENOSYS. Some functions are actually named
20208 something starting with __ and the normal name is an alias. */
20209 #if defined __stub_res_send || defined __stub___res_send
20210 choke me
20211 #endif
20214 main ()
20216 return res_send ();
20218 return 0;
20220 _ACEOF
20221 rm -f conftest.$ac_objext conftest$ac_exeext
20222 if { (ac_try="$ac_link"
20223 case "(($ac_try" in
20224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20225 *) ac_try_echo=$ac_try;;
20226 esac
20227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20228 (eval "$ac_link") 2>conftest.er1
20229 ac_status=$?
20230 grep -v '^ *+' conftest.er1 >conftest.err
20231 rm -f conftest.er1
20232 cat conftest.err >&5
20233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234 (exit $ac_status); } && {
20235 test -z "$ac_c_werror_flag" ||
20236 test ! -s conftest.err
20237 } && test -s conftest$ac_exeext &&
20238 $as_test_x conftest$ac_exeext; then
20239 ac_cv_func_res_send=yes
20240 else
20241 echo "$as_me: failed program was:" >&5
20242 sed 's/^/| /' conftest.$ac_ext >&5
20244 ac_cv_func_res_send=no
20247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20248 conftest$ac_exeext conftest.$ac_ext
20250 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
20251 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
20252 if test $ac_cv_func_res_send = yes; then
20254 else
20255 { echo "$as_me:$LINENO: checking for __res_send" >&5
20256 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
20257 if test "${ac_cv_func___res_send+set}" = set; then
20258 echo $ECHO_N "(cached) $ECHO_C" >&6
20259 else
20260 cat >conftest.$ac_ext <<_ACEOF
20261 /* confdefs.h. */
20262 _ACEOF
20263 cat confdefs.h >>conftest.$ac_ext
20264 cat >>conftest.$ac_ext <<_ACEOF
20265 /* end confdefs.h. */
20266 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
20267 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20268 #define __res_send innocuous___res_send
20270 /* System header to define __stub macros and hopefully few prototypes,
20271 which can conflict with char __res_send (); below.
20272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20273 <limits.h> exists even on freestanding compilers. */
20275 #ifdef __STDC__
20276 # include <limits.h>
20277 #else
20278 # include <assert.h>
20279 #endif
20281 #undef __res_send
20283 /* Override any GCC internal prototype to avoid an error.
20284 Use char because int might match the return type of a GCC
20285 builtin and then its argument prototype would still apply. */
20286 #ifdef __cplusplus
20287 extern "C"
20288 #endif
20289 char __res_send ();
20290 /* The GNU C library defines this for functions which it implements
20291 to always fail with ENOSYS. Some functions are actually named
20292 something starting with __ and the normal name is an alias. */
20293 #if defined __stub___res_send || defined __stub_____res_send
20294 choke me
20295 #endif
20298 main ()
20300 return __res_send ();
20302 return 0;
20304 _ACEOF
20305 rm -f conftest.$ac_objext conftest$ac_exeext
20306 if { (ac_try="$ac_link"
20307 case "(($ac_try" in
20308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20309 *) ac_try_echo=$ac_try;;
20310 esac
20311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20312 (eval "$ac_link") 2>conftest.er1
20313 ac_status=$?
20314 grep -v '^ *+' conftest.er1 >conftest.err
20315 rm -f conftest.er1
20316 cat conftest.err >&5
20317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20318 (exit $ac_status); } && {
20319 test -z "$ac_c_werror_flag" ||
20320 test ! -s conftest.err
20321 } && test -s conftest$ac_exeext &&
20322 $as_test_x conftest$ac_exeext; then
20323 ac_cv_func___res_send=yes
20324 else
20325 echo "$as_me: failed program was:" >&5
20326 sed 's/^/| /' conftest.$ac_ext >&5
20328 ac_cv_func___res_send=no
20331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20332 conftest$ac_exeext conftest.$ac_ext
20334 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
20335 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
20336 if test $ac_cv_func___res_send = yes; then
20338 else
20339 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
20340 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
20341 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20342 echo $ECHO_N "(cached) $ECHO_C" >&6
20343 else
20344 ac_check_lib_save_LIBS=$LIBS
20345 LIBS="-lresolv $LIBS"
20346 cat >conftest.$ac_ext <<_ACEOF
20347 /* confdefs.h. */
20348 _ACEOF
20349 cat confdefs.h >>conftest.$ac_ext
20350 cat >>conftest.$ac_ext <<_ACEOF
20351 /* end confdefs.h. */
20353 /* Override any GCC internal prototype to avoid an error.
20354 Use char because int might match the return type of a GCC
20355 builtin and then its argument prototype would still apply. */
20356 #ifdef __cplusplus
20357 extern "C"
20358 #endif
20359 char res_send ();
20361 main ()
20363 return res_send ();
20365 return 0;
20367 _ACEOF
20368 rm -f conftest.$ac_objext conftest$ac_exeext
20369 if { (ac_try="$ac_link"
20370 case "(($ac_try" in
20371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20372 *) ac_try_echo=$ac_try;;
20373 esac
20374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20375 (eval "$ac_link") 2>conftest.er1
20376 ac_status=$?
20377 grep -v '^ *+' conftest.er1 >conftest.err
20378 rm -f conftest.er1
20379 cat conftest.err >&5
20380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381 (exit $ac_status); } && {
20382 test -z "$ac_c_werror_flag" ||
20383 test ! -s conftest.err
20384 } && test -s conftest$ac_exeext &&
20385 $as_test_x conftest$ac_exeext; then
20386 ac_cv_lib_resolv_res_send=yes
20387 else
20388 echo "$as_me: failed program was:" >&5
20389 sed 's/^/| /' conftest.$ac_ext >&5
20391 ac_cv_lib_resolv_res_send=no
20394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20395 conftest$ac_exeext conftest.$ac_ext
20396 LIBS=$ac_check_lib_save_LIBS
20398 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
20399 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20400 if test $ac_cv_lib_resolv_res_send = yes; then
20401 resolv=yes
20402 else
20403 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
20404 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
20405 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20406 echo $ECHO_N "(cached) $ECHO_C" >&6
20407 else
20408 ac_check_lib_save_LIBS=$LIBS
20409 LIBS="-lresolv $LIBS"
20410 cat >conftest.$ac_ext <<_ACEOF
20411 /* confdefs.h. */
20412 _ACEOF
20413 cat confdefs.h >>conftest.$ac_ext
20414 cat >>conftest.$ac_ext <<_ACEOF
20415 /* end confdefs.h. */
20417 /* Override any GCC internal prototype to avoid an error.
20418 Use char because int might match the return type of a GCC
20419 builtin and then its argument prototype would still apply. */
20420 #ifdef __cplusplus
20421 extern "C"
20422 #endif
20423 char __res_send ();
20425 main ()
20427 return __res_send ();
20429 return 0;
20431 _ACEOF
20432 rm -f conftest.$ac_objext conftest$ac_exeext
20433 if { (ac_try="$ac_link"
20434 case "(($ac_try" in
20435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20436 *) ac_try_echo=$ac_try;;
20437 esac
20438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20439 (eval "$ac_link") 2>conftest.er1
20440 ac_status=$?
20441 grep -v '^ *+' conftest.er1 >conftest.err
20442 rm -f conftest.er1
20443 cat conftest.err >&5
20444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20445 (exit $ac_status); } && {
20446 test -z "$ac_c_werror_flag" ||
20447 test ! -s conftest.err
20448 } && test -s conftest$ac_exeext &&
20449 $as_test_x conftest$ac_exeext; then
20450 ac_cv_lib_resolv___res_send=yes
20451 else
20452 echo "$as_me: failed program was:" >&5
20453 sed 's/^/| /' conftest.$ac_ext >&5
20455 ac_cv_lib_resolv___res_send=no
20458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20459 conftest$ac_exeext conftest.$ac_ext
20460 LIBS=$ac_check_lib_save_LIBS
20462 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
20463 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20464 if test $ac_cv_lib_resolv___res_send = yes; then
20465 resolv=yes
20474 if test "$resolv" = yes ; then
20475 RESOLVLIB=-lresolv
20476 else
20477 RESOLVLIB=
20479 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
20480 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
20481 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20482 echo $ECHO_N "(cached) $ECHO_C" >&6
20483 else
20484 cat >conftest.$ac_ext <<_ACEOF
20485 /* confdefs.h. */
20486 _ACEOF
20487 cat confdefs.h >>conftest.$ac_ext
20488 cat >>conftest.$ac_ext <<_ACEOF
20489 /* end confdefs.h. */
20490 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20491 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20492 #define hes_getmailhost innocuous_hes_getmailhost
20494 /* System header to define __stub macros and hopefully few prototypes,
20495 which can conflict with char hes_getmailhost (); below.
20496 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20497 <limits.h> exists even on freestanding compilers. */
20499 #ifdef __STDC__
20500 # include <limits.h>
20501 #else
20502 # include <assert.h>
20503 #endif
20505 #undef hes_getmailhost
20507 /* Override any GCC internal prototype to avoid an error.
20508 Use char because int might match the return type of a GCC
20509 builtin and then its argument prototype would still apply. */
20510 #ifdef __cplusplus
20511 extern "C"
20512 #endif
20513 char hes_getmailhost ();
20514 /* The GNU C library defines this for functions which it implements
20515 to always fail with ENOSYS. Some functions are actually named
20516 something starting with __ and the normal name is an alias. */
20517 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20518 choke me
20519 #endif
20522 main ()
20524 return hes_getmailhost ();
20526 return 0;
20528 _ACEOF
20529 rm -f conftest.$ac_objext conftest$ac_exeext
20530 if { (ac_try="$ac_link"
20531 case "(($ac_try" in
20532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20533 *) ac_try_echo=$ac_try;;
20534 esac
20535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20536 (eval "$ac_link") 2>conftest.er1
20537 ac_status=$?
20538 grep -v '^ *+' conftest.er1 >conftest.err
20539 rm -f conftest.er1
20540 cat conftest.err >&5
20541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542 (exit $ac_status); } && {
20543 test -z "$ac_c_werror_flag" ||
20544 test ! -s conftest.err
20545 } && test -s conftest$ac_exeext &&
20546 $as_test_x conftest$ac_exeext; then
20547 ac_cv_func_hes_getmailhost=yes
20548 else
20549 echo "$as_me: failed program was:" >&5
20550 sed 's/^/| /' conftest.$ac_ext >&5
20552 ac_cv_func_hes_getmailhost=no
20555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20556 conftest$ac_exeext conftest.$ac_ext
20558 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
20559 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20560 if test $ac_cv_func_hes_getmailhost = yes; then
20562 else
20563 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
20564 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
20565 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20566 echo $ECHO_N "(cached) $ECHO_C" >&6
20567 else
20568 ac_check_lib_save_LIBS=$LIBS
20569 LIBS="-lhesiod $RESOLVLIB $LIBS"
20570 cat >conftest.$ac_ext <<_ACEOF
20571 /* confdefs.h. */
20572 _ACEOF
20573 cat confdefs.h >>conftest.$ac_ext
20574 cat >>conftest.$ac_ext <<_ACEOF
20575 /* end confdefs.h. */
20577 /* Override any GCC internal prototype to avoid an error.
20578 Use char because int might match the return type of a GCC
20579 builtin and then its argument prototype would still apply. */
20580 #ifdef __cplusplus
20581 extern "C"
20582 #endif
20583 char hes_getmailhost ();
20585 main ()
20587 return hes_getmailhost ();
20589 return 0;
20591 _ACEOF
20592 rm -f conftest.$ac_objext conftest$ac_exeext
20593 if { (ac_try="$ac_link"
20594 case "(($ac_try" in
20595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20596 *) ac_try_echo=$ac_try;;
20597 esac
20598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20599 (eval "$ac_link") 2>conftest.er1
20600 ac_status=$?
20601 grep -v '^ *+' conftest.er1 >conftest.err
20602 rm -f conftest.er1
20603 cat conftest.err >&5
20604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20605 (exit $ac_status); } && {
20606 test -z "$ac_c_werror_flag" ||
20607 test ! -s conftest.err
20608 } && test -s conftest$ac_exeext &&
20609 $as_test_x conftest$ac_exeext; then
20610 ac_cv_lib_hesiod_hes_getmailhost=yes
20611 else
20612 echo "$as_me: failed program was:" >&5
20613 sed 's/^/| /' conftest.$ac_ext >&5
20615 ac_cv_lib_hesiod_hes_getmailhost=no
20618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20619 conftest$ac_exeext conftest.$ac_ext
20620 LIBS=$ac_check_lib_save_LIBS
20622 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20623 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20624 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20626 cat >>confdefs.h <<\_ACEOF
20627 #define HAVE_LIBHESIOD 1
20628 _ACEOF
20630 else
20638 # Do we need libresolv (due to res_init or Hesiod)?
20639 if test "$resolv" = yes ; then
20641 cat >>confdefs.h <<\_ACEOF
20642 #define HAVE_LIBRESOLV 1
20643 _ACEOF
20647 # These tell us which Kerberos-related libraries to use.
20648 if test "${with_kerberos}" != no; then
20650 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
20651 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
20652 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20653 echo $ECHO_N "(cached) $ECHO_C" >&6
20654 else
20655 ac_check_lib_save_LIBS=$LIBS
20656 LIBS="-lcom_err $LIBS"
20657 cat >conftest.$ac_ext <<_ACEOF
20658 /* confdefs.h. */
20659 _ACEOF
20660 cat confdefs.h >>conftest.$ac_ext
20661 cat >>conftest.$ac_ext <<_ACEOF
20662 /* end confdefs.h. */
20664 /* Override any GCC internal prototype to avoid an error.
20665 Use char because int might match the return type of a GCC
20666 builtin and then its argument prototype would still apply. */
20667 #ifdef __cplusplus
20668 extern "C"
20669 #endif
20670 char com_err ();
20672 main ()
20674 return com_err ();
20676 return 0;
20678 _ACEOF
20679 rm -f conftest.$ac_objext conftest$ac_exeext
20680 if { (ac_try="$ac_link"
20681 case "(($ac_try" in
20682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20683 *) ac_try_echo=$ac_try;;
20684 esac
20685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20686 (eval "$ac_link") 2>conftest.er1
20687 ac_status=$?
20688 grep -v '^ *+' conftest.er1 >conftest.err
20689 rm -f conftest.er1
20690 cat conftest.err >&5
20691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20692 (exit $ac_status); } && {
20693 test -z "$ac_c_werror_flag" ||
20694 test ! -s conftest.err
20695 } && test -s conftest$ac_exeext &&
20696 $as_test_x conftest$ac_exeext; then
20697 ac_cv_lib_com_err_com_err=yes
20698 else
20699 echo "$as_me: failed program was:" >&5
20700 sed 's/^/| /' conftest.$ac_ext >&5
20702 ac_cv_lib_com_err_com_err=no
20705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20706 conftest$ac_exeext conftest.$ac_ext
20707 LIBS=$ac_check_lib_save_LIBS
20709 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
20710 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20711 if test $ac_cv_lib_com_err_com_err = yes; then
20712 cat >>confdefs.h <<_ACEOF
20713 #define HAVE_LIBCOM_ERR 1
20714 _ACEOF
20716 LIBS="-lcom_err $LIBS"
20721 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
20722 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
20723 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20724 echo $ECHO_N "(cached) $ECHO_C" >&6
20725 else
20726 ac_check_lib_save_LIBS=$LIBS
20727 LIBS="-lk5crypto $LIBS"
20728 cat >conftest.$ac_ext <<_ACEOF
20729 /* confdefs.h. */
20730 _ACEOF
20731 cat confdefs.h >>conftest.$ac_ext
20732 cat >>conftest.$ac_ext <<_ACEOF
20733 /* end confdefs.h. */
20735 /* Override any GCC internal prototype to avoid an error.
20736 Use char because int might match the return type of a GCC
20737 builtin and then its argument prototype would still apply. */
20738 #ifdef __cplusplus
20739 extern "C"
20740 #endif
20741 char mit_des_cbc_encrypt ();
20743 main ()
20745 return mit_des_cbc_encrypt ();
20747 return 0;
20749 _ACEOF
20750 rm -f conftest.$ac_objext conftest$ac_exeext
20751 if { (ac_try="$ac_link"
20752 case "(($ac_try" in
20753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20754 *) ac_try_echo=$ac_try;;
20755 esac
20756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20757 (eval "$ac_link") 2>conftest.er1
20758 ac_status=$?
20759 grep -v '^ *+' conftest.er1 >conftest.err
20760 rm -f conftest.er1
20761 cat conftest.err >&5
20762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20763 (exit $ac_status); } && {
20764 test -z "$ac_c_werror_flag" ||
20765 test ! -s conftest.err
20766 } && test -s conftest$ac_exeext &&
20767 $as_test_x conftest$ac_exeext; then
20768 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20769 else
20770 echo "$as_me: failed program was:" >&5
20771 sed 's/^/| /' conftest.$ac_ext >&5
20773 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20777 conftest$ac_exeext conftest.$ac_ext
20778 LIBS=$ac_check_lib_save_LIBS
20780 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20781 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20782 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20783 cat >>confdefs.h <<_ACEOF
20784 #define HAVE_LIBK5CRYPTO 1
20785 _ACEOF
20787 LIBS="-lk5crypto $LIBS"
20792 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
20793 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
20794 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20795 echo $ECHO_N "(cached) $ECHO_C" >&6
20796 else
20797 ac_check_lib_save_LIBS=$LIBS
20798 LIBS="-lcrypto $LIBS"
20799 cat >conftest.$ac_ext <<_ACEOF
20800 /* confdefs.h. */
20801 _ACEOF
20802 cat confdefs.h >>conftest.$ac_ext
20803 cat >>conftest.$ac_ext <<_ACEOF
20804 /* end confdefs.h. */
20806 /* Override any GCC internal prototype to avoid an error.
20807 Use char because int might match the return type of a GCC
20808 builtin and then its argument prototype would still apply. */
20809 #ifdef __cplusplus
20810 extern "C"
20811 #endif
20812 char mit_des_cbc_encrypt ();
20814 main ()
20816 return mit_des_cbc_encrypt ();
20818 return 0;
20820 _ACEOF
20821 rm -f conftest.$ac_objext conftest$ac_exeext
20822 if { (ac_try="$ac_link"
20823 case "(($ac_try" in
20824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20825 *) ac_try_echo=$ac_try;;
20826 esac
20827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20828 (eval "$ac_link") 2>conftest.er1
20829 ac_status=$?
20830 grep -v '^ *+' conftest.er1 >conftest.err
20831 rm -f conftest.er1
20832 cat conftest.err >&5
20833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20834 (exit $ac_status); } && {
20835 test -z "$ac_c_werror_flag" ||
20836 test ! -s conftest.err
20837 } && test -s conftest$ac_exeext &&
20838 $as_test_x conftest$ac_exeext; then
20839 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20840 else
20841 echo "$as_me: failed program was:" >&5
20842 sed 's/^/| /' conftest.$ac_ext >&5
20844 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20848 conftest$ac_exeext conftest.$ac_ext
20849 LIBS=$ac_check_lib_save_LIBS
20851 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20852 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20853 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20854 cat >>confdefs.h <<_ACEOF
20855 #define HAVE_LIBCRYPTO 1
20856 _ACEOF
20858 LIBS="-lcrypto $LIBS"
20863 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20864 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20865 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20866 echo $ECHO_N "(cached) $ECHO_C" >&6
20867 else
20868 ac_check_lib_save_LIBS=$LIBS
20869 LIBS="-lkrb5 $LIBS"
20870 cat >conftest.$ac_ext <<_ACEOF
20871 /* confdefs.h. */
20872 _ACEOF
20873 cat confdefs.h >>conftest.$ac_ext
20874 cat >>conftest.$ac_ext <<_ACEOF
20875 /* end confdefs.h. */
20877 /* Override any GCC internal prototype to avoid an error.
20878 Use char because int might match the return type of a GCC
20879 builtin and then its argument prototype would still apply. */
20880 #ifdef __cplusplus
20881 extern "C"
20882 #endif
20883 char krb5_init_context ();
20885 main ()
20887 return krb5_init_context ();
20889 return 0;
20891 _ACEOF
20892 rm -f conftest.$ac_objext conftest$ac_exeext
20893 if { (ac_try="$ac_link"
20894 case "(($ac_try" in
20895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20896 *) ac_try_echo=$ac_try;;
20897 esac
20898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20899 (eval "$ac_link") 2>conftest.er1
20900 ac_status=$?
20901 grep -v '^ *+' conftest.er1 >conftest.err
20902 rm -f conftest.er1
20903 cat conftest.err >&5
20904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905 (exit $ac_status); } && {
20906 test -z "$ac_c_werror_flag" ||
20907 test ! -s conftest.err
20908 } && test -s conftest$ac_exeext &&
20909 $as_test_x conftest$ac_exeext; then
20910 ac_cv_lib_krb5_krb5_init_context=yes
20911 else
20912 echo "$as_me: failed program was:" >&5
20913 sed 's/^/| /' conftest.$ac_ext >&5
20915 ac_cv_lib_krb5_krb5_init_context=no
20918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20919 conftest$ac_exeext conftest.$ac_ext
20920 LIBS=$ac_check_lib_save_LIBS
20922 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20923 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20924 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20925 cat >>confdefs.h <<_ACEOF
20926 #define HAVE_LIBKRB5 1
20927 _ACEOF
20929 LIBS="-lkrb5 $LIBS"
20933 if test "${with_kerberos5}" = no; then
20935 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20936 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20937 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20938 echo $ECHO_N "(cached) $ECHO_C" >&6
20939 else
20940 ac_check_lib_save_LIBS=$LIBS
20941 LIBS="-ldes425 $LIBS"
20942 cat >conftest.$ac_ext <<_ACEOF
20943 /* confdefs.h. */
20944 _ACEOF
20945 cat confdefs.h >>conftest.$ac_ext
20946 cat >>conftest.$ac_ext <<_ACEOF
20947 /* end confdefs.h. */
20949 /* Override any GCC internal prototype to avoid an error.
20950 Use char because int might match the return type of a GCC
20951 builtin and then its argument prototype would still apply. */
20952 #ifdef __cplusplus
20953 extern "C"
20954 #endif
20955 char des_cbc_encrypt ();
20957 main ()
20959 return des_cbc_encrypt ();
20961 return 0;
20963 _ACEOF
20964 rm -f conftest.$ac_objext conftest$ac_exeext
20965 if { (ac_try="$ac_link"
20966 case "(($ac_try" in
20967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20968 *) ac_try_echo=$ac_try;;
20969 esac
20970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20971 (eval "$ac_link") 2>conftest.er1
20972 ac_status=$?
20973 grep -v '^ *+' conftest.er1 >conftest.err
20974 rm -f conftest.er1
20975 cat conftest.err >&5
20976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977 (exit $ac_status); } && {
20978 test -z "$ac_c_werror_flag" ||
20979 test ! -s conftest.err
20980 } && test -s conftest$ac_exeext &&
20981 $as_test_x conftest$ac_exeext; then
20982 ac_cv_lib_des425_des_cbc_encrypt=yes
20983 else
20984 echo "$as_me: failed program was:" >&5
20985 sed 's/^/| /' conftest.$ac_ext >&5
20987 ac_cv_lib_des425_des_cbc_encrypt=no
20990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20991 conftest$ac_exeext conftest.$ac_ext
20992 LIBS=$ac_check_lib_save_LIBS
20994 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20995 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20996 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20997 cat >>confdefs.h <<_ACEOF
20998 #define HAVE_LIBDES425 1
20999 _ACEOF
21001 LIBS="-ldes425 $LIBS"
21003 else
21005 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
21006 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
21007 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
21008 echo $ECHO_N "(cached) $ECHO_C" >&6
21009 else
21010 ac_check_lib_save_LIBS=$LIBS
21011 LIBS="-ldes $LIBS"
21012 cat >conftest.$ac_ext <<_ACEOF
21013 /* confdefs.h. */
21014 _ACEOF
21015 cat confdefs.h >>conftest.$ac_ext
21016 cat >>conftest.$ac_ext <<_ACEOF
21017 /* end confdefs.h. */
21019 /* Override any GCC internal prototype to avoid an error.
21020 Use char because int might match the return type of a GCC
21021 builtin and then its argument prototype would still apply. */
21022 #ifdef __cplusplus
21023 extern "C"
21024 #endif
21025 char des_cbc_encrypt ();
21027 main ()
21029 return des_cbc_encrypt ();
21031 return 0;
21033 _ACEOF
21034 rm -f conftest.$ac_objext conftest$ac_exeext
21035 if { (ac_try="$ac_link"
21036 case "(($ac_try" in
21037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21038 *) ac_try_echo=$ac_try;;
21039 esac
21040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21041 (eval "$ac_link") 2>conftest.er1
21042 ac_status=$?
21043 grep -v '^ *+' conftest.er1 >conftest.err
21044 rm -f conftest.er1
21045 cat conftest.err >&5
21046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21047 (exit $ac_status); } && {
21048 test -z "$ac_c_werror_flag" ||
21049 test ! -s conftest.err
21050 } && test -s conftest$ac_exeext &&
21051 $as_test_x conftest$ac_exeext; then
21052 ac_cv_lib_des_des_cbc_encrypt=yes
21053 else
21054 echo "$as_me: failed program was:" >&5
21055 sed 's/^/| /' conftest.$ac_ext >&5
21057 ac_cv_lib_des_des_cbc_encrypt=no
21060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21061 conftest$ac_exeext conftest.$ac_ext
21062 LIBS=$ac_check_lib_save_LIBS
21064 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
21065 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
21066 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
21067 cat >>confdefs.h <<_ACEOF
21068 #define HAVE_LIBDES 1
21069 _ACEOF
21071 LIBS="-ldes $LIBS"
21078 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
21079 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
21080 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
21081 echo $ECHO_N "(cached) $ECHO_C" >&6
21082 else
21083 ac_check_lib_save_LIBS=$LIBS
21084 LIBS="-lkrb4 $LIBS"
21085 cat >conftest.$ac_ext <<_ACEOF
21086 /* confdefs.h. */
21087 _ACEOF
21088 cat confdefs.h >>conftest.$ac_ext
21089 cat >>conftest.$ac_ext <<_ACEOF
21090 /* end confdefs.h. */
21092 /* Override any GCC internal prototype to avoid an error.
21093 Use char because int might match the return type of a GCC
21094 builtin and then its argument prototype would still apply. */
21095 #ifdef __cplusplus
21096 extern "C"
21097 #endif
21098 char krb_get_cred ();
21100 main ()
21102 return krb_get_cred ();
21104 return 0;
21106 _ACEOF
21107 rm -f conftest.$ac_objext conftest$ac_exeext
21108 if { (ac_try="$ac_link"
21109 case "(($ac_try" in
21110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21111 *) ac_try_echo=$ac_try;;
21112 esac
21113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21114 (eval "$ac_link") 2>conftest.er1
21115 ac_status=$?
21116 grep -v '^ *+' conftest.er1 >conftest.err
21117 rm -f conftest.er1
21118 cat conftest.err >&5
21119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21120 (exit $ac_status); } && {
21121 test -z "$ac_c_werror_flag" ||
21122 test ! -s conftest.err
21123 } && test -s conftest$ac_exeext &&
21124 $as_test_x conftest$ac_exeext; then
21125 ac_cv_lib_krb4_krb_get_cred=yes
21126 else
21127 echo "$as_me: failed program was:" >&5
21128 sed 's/^/| /' conftest.$ac_ext >&5
21130 ac_cv_lib_krb4_krb_get_cred=no
21133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21134 conftest$ac_exeext conftest.$ac_ext
21135 LIBS=$ac_check_lib_save_LIBS
21137 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
21138 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
21139 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
21140 cat >>confdefs.h <<_ACEOF
21141 #define HAVE_LIBKRB4 1
21142 _ACEOF
21144 LIBS="-lkrb4 $LIBS"
21146 else
21148 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
21149 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
21150 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
21151 echo $ECHO_N "(cached) $ECHO_C" >&6
21152 else
21153 ac_check_lib_save_LIBS=$LIBS
21154 LIBS="-lkrb $LIBS"
21155 cat >conftest.$ac_ext <<_ACEOF
21156 /* confdefs.h. */
21157 _ACEOF
21158 cat confdefs.h >>conftest.$ac_ext
21159 cat >>conftest.$ac_ext <<_ACEOF
21160 /* end confdefs.h. */
21162 /* Override any GCC internal prototype to avoid an error.
21163 Use char because int might match the return type of a GCC
21164 builtin and then its argument prototype would still apply. */
21165 #ifdef __cplusplus
21166 extern "C"
21167 #endif
21168 char krb_get_cred ();
21170 main ()
21172 return krb_get_cred ();
21174 return 0;
21176 _ACEOF
21177 rm -f conftest.$ac_objext conftest$ac_exeext
21178 if { (ac_try="$ac_link"
21179 case "(($ac_try" in
21180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21181 *) ac_try_echo=$ac_try;;
21182 esac
21183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21184 (eval "$ac_link") 2>conftest.er1
21185 ac_status=$?
21186 grep -v '^ *+' conftest.er1 >conftest.err
21187 rm -f conftest.er1
21188 cat conftest.err >&5
21189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190 (exit $ac_status); } && {
21191 test -z "$ac_c_werror_flag" ||
21192 test ! -s conftest.err
21193 } && test -s conftest$ac_exeext &&
21194 $as_test_x conftest$ac_exeext; then
21195 ac_cv_lib_krb_krb_get_cred=yes
21196 else
21197 echo "$as_me: failed program was:" >&5
21198 sed 's/^/| /' conftest.$ac_ext >&5
21200 ac_cv_lib_krb_krb_get_cred=no
21203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21204 conftest$ac_exeext conftest.$ac_ext
21205 LIBS=$ac_check_lib_save_LIBS
21207 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
21208 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
21209 if test $ac_cv_lib_krb_krb_get_cred = yes; then
21210 cat >>confdefs.h <<_ACEOF
21211 #define HAVE_LIBKRB 1
21212 _ACEOF
21214 LIBS="-lkrb $LIBS"
21222 if test "${with_kerberos5}" != no; then
21224 for ac_header in krb5.h
21226 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21228 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21231 echo $ECHO_N "(cached) $ECHO_C" >&6
21233 ac_res=`eval echo '${'$as_ac_Header'}'`
21234 { echo "$as_me:$LINENO: result: $ac_res" >&5
21235 echo "${ECHO_T}$ac_res" >&6; }
21236 else
21237 # Is the header compilable?
21238 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21239 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21240 cat >conftest.$ac_ext <<_ACEOF
21241 /* confdefs.h. */
21242 _ACEOF
21243 cat confdefs.h >>conftest.$ac_ext
21244 cat >>conftest.$ac_ext <<_ACEOF
21245 /* end confdefs.h. */
21246 $ac_includes_default
21247 #include <$ac_header>
21248 _ACEOF
21249 rm -f conftest.$ac_objext
21250 if { (ac_try="$ac_compile"
21251 case "(($ac_try" in
21252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21253 *) ac_try_echo=$ac_try;;
21254 esac
21255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21256 (eval "$ac_compile") 2>conftest.er1
21257 ac_status=$?
21258 grep -v '^ *+' conftest.er1 >conftest.err
21259 rm -f conftest.er1
21260 cat conftest.err >&5
21261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21262 (exit $ac_status); } && {
21263 test -z "$ac_c_werror_flag" ||
21264 test ! -s conftest.err
21265 } && test -s conftest.$ac_objext; then
21266 ac_header_compiler=yes
21267 else
21268 echo "$as_me: failed program was:" >&5
21269 sed 's/^/| /' conftest.$ac_ext >&5
21271 ac_header_compiler=no
21274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21275 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21276 echo "${ECHO_T}$ac_header_compiler" >&6; }
21278 # Is the header present?
21279 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21280 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21281 cat >conftest.$ac_ext <<_ACEOF
21282 /* confdefs.h. */
21283 _ACEOF
21284 cat confdefs.h >>conftest.$ac_ext
21285 cat >>conftest.$ac_ext <<_ACEOF
21286 /* end confdefs.h. */
21287 #include <$ac_header>
21288 _ACEOF
21289 if { (ac_try="$ac_cpp conftest.$ac_ext"
21290 case "(($ac_try" in
21291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21292 *) ac_try_echo=$ac_try;;
21293 esac
21294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21295 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21296 ac_status=$?
21297 grep -v '^ *+' conftest.er1 >conftest.err
21298 rm -f conftest.er1
21299 cat conftest.err >&5
21300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21301 (exit $ac_status); } >/dev/null && {
21302 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21303 test ! -s conftest.err
21304 }; then
21305 ac_header_preproc=yes
21306 else
21307 echo "$as_me: failed program was:" >&5
21308 sed 's/^/| /' conftest.$ac_ext >&5
21310 ac_header_preproc=no
21313 rm -f conftest.err conftest.$ac_ext
21314 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21315 echo "${ECHO_T}$ac_header_preproc" >&6; }
21317 # So? What about this header?
21318 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21319 yes:no: )
21320 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21321 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21322 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21323 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21324 ac_header_preproc=yes
21326 no:yes:* )
21327 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21328 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21329 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21330 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21331 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21332 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21333 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21334 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21336 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21337 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21338 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21341 esac
21342 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21344 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21345 echo $ECHO_N "(cached) $ECHO_C" >&6
21346 else
21347 eval "$as_ac_Header=\$ac_header_preproc"
21349 ac_res=`eval echo '${'$as_ac_Header'}'`
21350 { echo "$as_me:$LINENO: result: $ac_res" >&5
21351 echo "${ECHO_T}$ac_res" >&6; }
21354 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21355 cat >>confdefs.h <<_ACEOF
21356 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21357 _ACEOF
21358 { echo "$as_me:$LINENO: checking for krb5_error.text" >&5
21359 echo $ECHO_N "checking for krb5_error.text... $ECHO_C" >&6; }
21360 if test "${ac_cv_member_krb5_error_text+set}" = set; then
21361 echo $ECHO_N "(cached) $ECHO_C" >&6
21362 else
21363 cat >conftest.$ac_ext <<_ACEOF
21364 /* confdefs.h. */
21365 _ACEOF
21366 cat confdefs.h >>conftest.$ac_ext
21367 cat >>conftest.$ac_ext <<_ACEOF
21368 /* end confdefs.h. */
21369 #include <krb5.h>
21372 main ()
21374 static krb5_error ac_aggr;
21375 if (ac_aggr.text)
21376 return 0;
21378 return 0;
21380 _ACEOF
21381 rm -f conftest.$ac_objext
21382 if { (ac_try="$ac_compile"
21383 case "(($ac_try" in
21384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21385 *) ac_try_echo=$ac_try;;
21386 esac
21387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21388 (eval "$ac_compile") 2>conftest.er1
21389 ac_status=$?
21390 grep -v '^ *+' conftest.er1 >conftest.err
21391 rm -f conftest.er1
21392 cat conftest.err >&5
21393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21394 (exit $ac_status); } && {
21395 test -z "$ac_c_werror_flag" ||
21396 test ! -s conftest.err
21397 } && test -s conftest.$ac_objext; then
21398 ac_cv_member_krb5_error_text=yes
21399 else
21400 echo "$as_me: failed program was:" >&5
21401 sed 's/^/| /' conftest.$ac_ext >&5
21403 cat >conftest.$ac_ext <<_ACEOF
21404 /* confdefs.h. */
21405 _ACEOF
21406 cat confdefs.h >>conftest.$ac_ext
21407 cat >>conftest.$ac_ext <<_ACEOF
21408 /* end confdefs.h. */
21409 #include <krb5.h>
21412 main ()
21414 static krb5_error ac_aggr;
21415 if (sizeof ac_aggr.text)
21416 return 0;
21418 return 0;
21420 _ACEOF
21421 rm -f conftest.$ac_objext
21422 if { (ac_try="$ac_compile"
21423 case "(($ac_try" in
21424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21425 *) ac_try_echo=$ac_try;;
21426 esac
21427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21428 (eval "$ac_compile") 2>conftest.er1
21429 ac_status=$?
21430 grep -v '^ *+' conftest.er1 >conftest.err
21431 rm -f conftest.er1
21432 cat conftest.err >&5
21433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21434 (exit $ac_status); } && {
21435 test -z "$ac_c_werror_flag" ||
21436 test ! -s conftest.err
21437 } && test -s conftest.$ac_objext; then
21438 ac_cv_member_krb5_error_text=yes
21439 else
21440 echo "$as_me: failed program was:" >&5
21441 sed 's/^/| /' conftest.$ac_ext >&5
21443 ac_cv_member_krb5_error_text=no
21446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21451 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
21452 echo "${ECHO_T}$ac_cv_member_krb5_error_text" >&6; }
21453 if test $ac_cv_member_krb5_error_text = yes; then
21455 cat >>confdefs.h <<_ACEOF
21456 #define HAVE_KRB5_ERROR_TEXT 1
21457 _ACEOF
21461 { echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
21462 echo $ECHO_N "checking for krb5_error.e_text... $ECHO_C" >&6; }
21463 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
21464 echo $ECHO_N "(cached) $ECHO_C" >&6
21465 else
21466 cat >conftest.$ac_ext <<_ACEOF
21467 /* confdefs.h. */
21468 _ACEOF
21469 cat confdefs.h >>conftest.$ac_ext
21470 cat >>conftest.$ac_ext <<_ACEOF
21471 /* end confdefs.h. */
21472 #include <krb5.h>
21475 main ()
21477 static krb5_error ac_aggr;
21478 if (ac_aggr.e_text)
21479 return 0;
21481 return 0;
21483 _ACEOF
21484 rm -f conftest.$ac_objext
21485 if { (ac_try="$ac_compile"
21486 case "(($ac_try" in
21487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21488 *) ac_try_echo=$ac_try;;
21489 esac
21490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21491 (eval "$ac_compile") 2>conftest.er1
21492 ac_status=$?
21493 grep -v '^ *+' conftest.er1 >conftest.err
21494 rm -f conftest.er1
21495 cat conftest.err >&5
21496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497 (exit $ac_status); } && {
21498 test -z "$ac_c_werror_flag" ||
21499 test ! -s conftest.err
21500 } && test -s conftest.$ac_objext; then
21501 ac_cv_member_krb5_error_e_text=yes
21502 else
21503 echo "$as_me: failed program was:" >&5
21504 sed 's/^/| /' conftest.$ac_ext >&5
21506 cat >conftest.$ac_ext <<_ACEOF
21507 /* confdefs.h. */
21508 _ACEOF
21509 cat confdefs.h >>conftest.$ac_ext
21510 cat >>conftest.$ac_ext <<_ACEOF
21511 /* end confdefs.h. */
21512 #include <krb5.h>
21515 main ()
21517 static krb5_error ac_aggr;
21518 if (sizeof ac_aggr.e_text)
21519 return 0;
21521 return 0;
21523 _ACEOF
21524 rm -f conftest.$ac_objext
21525 if { (ac_try="$ac_compile"
21526 case "(($ac_try" in
21527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21528 *) ac_try_echo=$ac_try;;
21529 esac
21530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21531 (eval "$ac_compile") 2>conftest.er1
21532 ac_status=$?
21533 grep -v '^ *+' conftest.er1 >conftest.err
21534 rm -f conftest.er1
21535 cat conftest.err >&5
21536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537 (exit $ac_status); } && {
21538 test -z "$ac_c_werror_flag" ||
21539 test ! -s conftest.err
21540 } && test -s conftest.$ac_objext; then
21541 ac_cv_member_krb5_error_e_text=yes
21542 else
21543 echo "$as_me: failed program was:" >&5
21544 sed 's/^/| /' conftest.$ac_ext >&5
21546 ac_cv_member_krb5_error_e_text=no
21549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21554 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
21555 echo "${ECHO_T}$ac_cv_member_krb5_error_e_text" >&6; }
21556 if test $ac_cv_member_krb5_error_e_text = yes; then
21558 cat >>confdefs.h <<_ACEOF
21559 #define HAVE_KRB5_ERROR_E_TEXT 1
21560 _ACEOF
21567 done
21569 else
21571 for ac_header in des.h
21573 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21575 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21576 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21577 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21578 echo $ECHO_N "(cached) $ECHO_C" >&6
21580 ac_res=`eval echo '${'$as_ac_Header'}'`
21581 { echo "$as_me:$LINENO: result: $ac_res" >&5
21582 echo "${ECHO_T}$ac_res" >&6; }
21583 else
21584 # Is the header compilable?
21585 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21586 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21587 cat >conftest.$ac_ext <<_ACEOF
21588 /* confdefs.h. */
21589 _ACEOF
21590 cat confdefs.h >>conftest.$ac_ext
21591 cat >>conftest.$ac_ext <<_ACEOF
21592 /* end confdefs.h. */
21593 $ac_includes_default
21594 #include <$ac_header>
21595 _ACEOF
21596 rm -f conftest.$ac_objext
21597 if { (ac_try="$ac_compile"
21598 case "(($ac_try" in
21599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21600 *) ac_try_echo=$ac_try;;
21601 esac
21602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21603 (eval "$ac_compile") 2>conftest.er1
21604 ac_status=$?
21605 grep -v '^ *+' conftest.er1 >conftest.err
21606 rm -f conftest.er1
21607 cat conftest.err >&5
21608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21609 (exit $ac_status); } && {
21610 test -z "$ac_c_werror_flag" ||
21611 test ! -s conftest.err
21612 } && test -s conftest.$ac_objext; then
21613 ac_header_compiler=yes
21614 else
21615 echo "$as_me: failed program was:" >&5
21616 sed 's/^/| /' conftest.$ac_ext >&5
21618 ac_header_compiler=no
21621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21622 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21623 echo "${ECHO_T}$ac_header_compiler" >&6; }
21625 # Is the header present?
21626 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21627 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21628 cat >conftest.$ac_ext <<_ACEOF
21629 /* confdefs.h. */
21630 _ACEOF
21631 cat confdefs.h >>conftest.$ac_ext
21632 cat >>conftest.$ac_ext <<_ACEOF
21633 /* end confdefs.h. */
21634 #include <$ac_header>
21635 _ACEOF
21636 if { (ac_try="$ac_cpp conftest.$ac_ext"
21637 case "(($ac_try" in
21638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21639 *) ac_try_echo=$ac_try;;
21640 esac
21641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21642 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21643 ac_status=$?
21644 grep -v '^ *+' conftest.er1 >conftest.err
21645 rm -f conftest.er1
21646 cat conftest.err >&5
21647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21648 (exit $ac_status); } >/dev/null && {
21649 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21650 test ! -s conftest.err
21651 }; then
21652 ac_header_preproc=yes
21653 else
21654 echo "$as_me: failed program was:" >&5
21655 sed 's/^/| /' conftest.$ac_ext >&5
21657 ac_header_preproc=no
21660 rm -f conftest.err conftest.$ac_ext
21661 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21662 echo "${ECHO_T}$ac_header_preproc" >&6; }
21664 # So? What about this header?
21665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21666 yes:no: )
21667 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21668 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21670 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21671 ac_header_preproc=yes
21673 no:yes:* )
21674 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21675 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21676 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21677 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21678 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21679 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21680 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21681 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21683 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21684 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21685 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21688 esac
21689 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21692 echo $ECHO_N "(cached) $ECHO_C" >&6
21693 else
21694 eval "$as_ac_Header=\$ac_header_preproc"
21696 ac_res=`eval echo '${'$as_ac_Header'}'`
21697 { echo "$as_me:$LINENO: result: $ac_res" >&5
21698 echo "${ECHO_T}$ac_res" >&6; }
21701 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21702 cat >>confdefs.h <<_ACEOF
21703 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21704 _ACEOF
21706 else
21708 for ac_header in kerberosIV/des.h
21710 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21712 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21715 echo $ECHO_N "(cached) $ECHO_C" >&6
21717 ac_res=`eval echo '${'$as_ac_Header'}'`
21718 { echo "$as_me:$LINENO: result: $ac_res" >&5
21719 echo "${ECHO_T}$ac_res" >&6; }
21720 else
21721 # Is the header compilable?
21722 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21723 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21724 cat >conftest.$ac_ext <<_ACEOF
21725 /* confdefs.h. */
21726 _ACEOF
21727 cat confdefs.h >>conftest.$ac_ext
21728 cat >>conftest.$ac_ext <<_ACEOF
21729 /* end confdefs.h. */
21730 $ac_includes_default
21731 #include <$ac_header>
21732 _ACEOF
21733 rm -f conftest.$ac_objext
21734 if { (ac_try="$ac_compile"
21735 case "(($ac_try" in
21736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21737 *) ac_try_echo=$ac_try;;
21738 esac
21739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21740 (eval "$ac_compile") 2>conftest.er1
21741 ac_status=$?
21742 grep -v '^ *+' conftest.er1 >conftest.err
21743 rm -f conftest.er1
21744 cat conftest.err >&5
21745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21746 (exit $ac_status); } && {
21747 test -z "$ac_c_werror_flag" ||
21748 test ! -s conftest.err
21749 } && test -s conftest.$ac_objext; then
21750 ac_header_compiler=yes
21751 else
21752 echo "$as_me: failed program was:" >&5
21753 sed 's/^/| /' conftest.$ac_ext >&5
21755 ac_header_compiler=no
21758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21759 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21760 echo "${ECHO_T}$ac_header_compiler" >&6; }
21762 # Is the header present?
21763 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21764 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21765 cat >conftest.$ac_ext <<_ACEOF
21766 /* confdefs.h. */
21767 _ACEOF
21768 cat confdefs.h >>conftest.$ac_ext
21769 cat >>conftest.$ac_ext <<_ACEOF
21770 /* end confdefs.h. */
21771 #include <$ac_header>
21772 _ACEOF
21773 if { (ac_try="$ac_cpp conftest.$ac_ext"
21774 case "(($ac_try" in
21775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21776 *) ac_try_echo=$ac_try;;
21777 esac
21778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21779 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21780 ac_status=$?
21781 grep -v '^ *+' conftest.er1 >conftest.err
21782 rm -f conftest.er1
21783 cat conftest.err >&5
21784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21785 (exit $ac_status); } >/dev/null && {
21786 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21787 test ! -s conftest.err
21788 }; then
21789 ac_header_preproc=yes
21790 else
21791 echo "$as_me: failed program was:" >&5
21792 sed 's/^/| /' conftest.$ac_ext >&5
21794 ac_header_preproc=no
21797 rm -f conftest.err conftest.$ac_ext
21798 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21799 echo "${ECHO_T}$ac_header_preproc" >&6; }
21801 # So? What about this header?
21802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21803 yes:no: )
21804 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21805 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21807 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21808 ac_header_preproc=yes
21810 no:yes:* )
21811 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21812 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21813 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21814 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21815 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21816 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21817 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21818 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21819 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21820 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21821 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21822 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21825 esac
21826 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21829 echo $ECHO_N "(cached) $ECHO_C" >&6
21830 else
21831 eval "$as_ac_Header=\$ac_header_preproc"
21833 ac_res=`eval echo '${'$as_ac_Header'}'`
21834 { echo "$as_me:$LINENO: result: $ac_res" >&5
21835 echo "${ECHO_T}$ac_res" >&6; }
21838 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21839 cat >>confdefs.h <<_ACEOF
21840 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21841 _ACEOF
21843 else
21845 for ac_header in kerberos/des.h
21847 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21848 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21849 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21851 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21852 echo $ECHO_N "(cached) $ECHO_C" >&6
21854 ac_res=`eval echo '${'$as_ac_Header'}'`
21855 { echo "$as_me:$LINENO: result: $ac_res" >&5
21856 echo "${ECHO_T}$ac_res" >&6; }
21857 else
21858 # Is the header compilable?
21859 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21860 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21861 cat >conftest.$ac_ext <<_ACEOF
21862 /* confdefs.h. */
21863 _ACEOF
21864 cat confdefs.h >>conftest.$ac_ext
21865 cat >>conftest.$ac_ext <<_ACEOF
21866 /* end confdefs.h. */
21867 $ac_includes_default
21868 #include <$ac_header>
21869 _ACEOF
21870 rm -f conftest.$ac_objext
21871 if { (ac_try="$ac_compile"
21872 case "(($ac_try" in
21873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21874 *) ac_try_echo=$ac_try;;
21875 esac
21876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21877 (eval "$ac_compile") 2>conftest.er1
21878 ac_status=$?
21879 grep -v '^ *+' conftest.er1 >conftest.err
21880 rm -f conftest.er1
21881 cat conftest.err >&5
21882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21883 (exit $ac_status); } && {
21884 test -z "$ac_c_werror_flag" ||
21885 test ! -s conftest.err
21886 } && test -s conftest.$ac_objext; then
21887 ac_header_compiler=yes
21888 else
21889 echo "$as_me: failed program was:" >&5
21890 sed 's/^/| /' conftest.$ac_ext >&5
21892 ac_header_compiler=no
21895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21896 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21897 echo "${ECHO_T}$ac_header_compiler" >&6; }
21899 # Is the header present?
21900 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21901 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21902 cat >conftest.$ac_ext <<_ACEOF
21903 /* confdefs.h. */
21904 _ACEOF
21905 cat confdefs.h >>conftest.$ac_ext
21906 cat >>conftest.$ac_ext <<_ACEOF
21907 /* end confdefs.h. */
21908 #include <$ac_header>
21909 _ACEOF
21910 if { (ac_try="$ac_cpp conftest.$ac_ext"
21911 case "(($ac_try" in
21912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21913 *) ac_try_echo=$ac_try;;
21914 esac
21915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21916 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21917 ac_status=$?
21918 grep -v '^ *+' conftest.er1 >conftest.err
21919 rm -f conftest.er1
21920 cat conftest.err >&5
21921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21922 (exit $ac_status); } >/dev/null && {
21923 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21924 test ! -s conftest.err
21925 }; then
21926 ac_header_preproc=yes
21927 else
21928 echo "$as_me: failed program was:" >&5
21929 sed 's/^/| /' conftest.$ac_ext >&5
21931 ac_header_preproc=no
21934 rm -f conftest.err conftest.$ac_ext
21935 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21936 echo "${ECHO_T}$ac_header_preproc" >&6; }
21938 # So? What about this header?
21939 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21940 yes:no: )
21941 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21942 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21943 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21944 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21945 ac_header_preproc=yes
21947 no:yes:* )
21948 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21949 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21950 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21951 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21952 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21953 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21954 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21955 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21956 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21957 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21958 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21959 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21962 esac
21963 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21966 echo $ECHO_N "(cached) $ECHO_C" >&6
21967 else
21968 eval "$as_ac_Header=\$ac_header_preproc"
21970 ac_res=`eval echo '${'$as_ac_Header'}'`
21971 { echo "$as_me:$LINENO: result: $ac_res" >&5
21972 echo "${ECHO_T}$ac_res" >&6; }
21975 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21976 cat >>confdefs.h <<_ACEOF
21977 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21978 _ACEOF
21982 done
21986 done
21990 done
21993 for ac_header in krb.h
21995 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21996 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21997 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22000 echo $ECHO_N "(cached) $ECHO_C" >&6
22002 ac_res=`eval echo '${'$as_ac_Header'}'`
22003 { echo "$as_me:$LINENO: result: $ac_res" >&5
22004 echo "${ECHO_T}$ac_res" >&6; }
22005 else
22006 # Is the header compilable?
22007 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22008 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22009 cat >conftest.$ac_ext <<_ACEOF
22010 /* confdefs.h. */
22011 _ACEOF
22012 cat confdefs.h >>conftest.$ac_ext
22013 cat >>conftest.$ac_ext <<_ACEOF
22014 /* end confdefs.h. */
22015 $ac_includes_default
22016 #include <$ac_header>
22017 _ACEOF
22018 rm -f conftest.$ac_objext
22019 if { (ac_try="$ac_compile"
22020 case "(($ac_try" in
22021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22022 *) ac_try_echo=$ac_try;;
22023 esac
22024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22025 (eval "$ac_compile") 2>conftest.er1
22026 ac_status=$?
22027 grep -v '^ *+' conftest.er1 >conftest.err
22028 rm -f conftest.er1
22029 cat conftest.err >&5
22030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22031 (exit $ac_status); } && {
22032 test -z "$ac_c_werror_flag" ||
22033 test ! -s conftest.err
22034 } && test -s conftest.$ac_objext; then
22035 ac_header_compiler=yes
22036 else
22037 echo "$as_me: failed program was:" >&5
22038 sed 's/^/| /' conftest.$ac_ext >&5
22040 ac_header_compiler=no
22043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22044 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22045 echo "${ECHO_T}$ac_header_compiler" >&6; }
22047 # Is the header present?
22048 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22049 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22050 cat >conftest.$ac_ext <<_ACEOF
22051 /* confdefs.h. */
22052 _ACEOF
22053 cat confdefs.h >>conftest.$ac_ext
22054 cat >>conftest.$ac_ext <<_ACEOF
22055 /* end confdefs.h. */
22056 #include <$ac_header>
22057 _ACEOF
22058 if { (ac_try="$ac_cpp conftest.$ac_ext"
22059 case "(($ac_try" in
22060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22061 *) ac_try_echo=$ac_try;;
22062 esac
22063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22064 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22065 ac_status=$?
22066 grep -v '^ *+' conftest.er1 >conftest.err
22067 rm -f conftest.er1
22068 cat conftest.err >&5
22069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22070 (exit $ac_status); } >/dev/null && {
22071 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22072 test ! -s conftest.err
22073 }; then
22074 ac_header_preproc=yes
22075 else
22076 echo "$as_me: failed program was:" >&5
22077 sed 's/^/| /' conftest.$ac_ext >&5
22079 ac_header_preproc=no
22082 rm -f conftest.err conftest.$ac_ext
22083 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22084 echo "${ECHO_T}$ac_header_preproc" >&6; }
22086 # So? What about this header?
22087 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22088 yes:no: )
22089 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22090 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22091 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22092 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22093 ac_header_preproc=yes
22095 no:yes:* )
22096 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22097 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22098 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22099 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22100 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22101 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22102 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22103 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22104 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22105 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22106 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22107 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22110 esac
22111 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22114 echo $ECHO_N "(cached) $ECHO_C" >&6
22115 else
22116 eval "$as_ac_Header=\$ac_header_preproc"
22118 ac_res=`eval echo '${'$as_ac_Header'}'`
22119 { echo "$as_me:$LINENO: result: $ac_res" >&5
22120 echo "${ECHO_T}$ac_res" >&6; }
22123 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22124 cat >>confdefs.h <<_ACEOF
22125 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22126 _ACEOF
22128 else
22130 for ac_header in kerberosIV/krb.h
22132 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22133 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22134 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22135 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22137 echo $ECHO_N "(cached) $ECHO_C" >&6
22139 ac_res=`eval echo '${'$as_ac_Header'}'`
22140 { echo "$as_me:$LINENO: result: $ac_res" >&5
22141 echo "${ECHO_T}$ac_res" >&6; }
22142 else
22143 # Is the header compilable?
22144 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22145 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22146 cat >conftest.$ac_ext <<_ACEOF
22147 /* confdefs.h. */
22148 _ACEOF
22149 cat confdefs.h >>conftest.$ac_ext
22150 cat >>conftest.$ac_ext <<_ACEOF
22151 /* end confdefs.h. */
22152 $ac_includes_default
22153 #include <$ac_header>
22154 _ACEOF
22155 rm -f conftest.$ac_objext
22156 if { (ac_try="$ac_compile"
22157 case "(($ac_try" in
22158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22159 *) ac_try_echo=$ac_try;;
22160 esac
22161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22162 (eval "$ac_compile") 2>conftest.er1
22163 ac_status=$?
22164 grep -v '^ *+' conftest.er1 >conftest.err
22165 rm -f conftest.er1
22166 cat conftest.err >&5
22167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22168 (exit $ac_status); } && {
22169 test -z "$ac_c_werror_flag" ||
22170 test ! -s conftest.err
22171 } && test -s conftest.$ac_objext; then
22172 ac_header_compiler=yes
22173 else
22174 echo "$as_me: failed program was:" >&5
22175 sed 's/^/| /' conftest.$ac_ext >&5
22177 ac_header_compiler=no
22180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22181 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22182 echo "${ECHO_T}$ac_header_compiler" >&6; }
22184 # Is the header present?
22185 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22186 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22187 cat >conftest.$ac_ext <<_ACEOF
22188 /* confdefs.h. */
22189 _ACEOF
22190 cat confdefs.h >>conftest.$ac_ext
22191 cat >>conftest.$ac_ext <<_ACEOF
22192 /* end confdefs.h. */
22193 #include <$ac_header>
22194 _ACEOF
22195 if { (ac_try="$ac_cpp conftest.$ac_ext"
22196 case "(($ac_try" in
22197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22198 *) ac_try_echo=$ac_try;;
22199 esac
22200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22201 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22202 ac_status=$?
22203 grep -v '^ *+' conftest.er1 >conftest.err
22204 rm -f conftest.er1
22205 cat conftest.err >&5
22206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22207 (exit $ac_status); } >/dev/null && {
22208 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22209 test ! -s conftest.err
22210 }; then
22211 ac_header_preproc=yes
22212 else
22213 echo "$as_me: failed program was:" >&5
22214 sed 's/^/| /' conftest.$ac_ext >&5
22216 ac_header_preproc=no
22219 rm -f conftest.err conftest.$ac_ext
22220 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22221 echo "${ECHO_T}$ac_header_preproc" >&6; }
22223 # So? What about this header?
22224 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22225 yes:no: )
22226 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22227 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22228 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22229 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22230 ac_header_preproc=yes
22232 no:yes:* )
22233 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22234 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22235 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22236 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22237 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22238 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22239 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22240 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22241 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22242 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22243 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22244 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22247 esac
22248 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22251 echo $ECHO_N "(cached) $ECHO_C" >&6
22252 else
22253 eval "$as_ac_Header=\$ac_header_preproc"
22255 ac_res=`eval echo '${'$as_ac_Header'}'`
22256 { echo "$as_me:$LINENO: result: $ac_res" >&5
22257 echo "${ECHO_T}$ac_res" >&6; }
22260 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22261 cat >>confdefs.h <<_ACEOF
22262 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22263 _ACEOF
22265 else
22267 for ac_header in kerberos/krb.h
22269 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22271 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22274 echo $ECHO_N "(cached) $ECHO_C" >&6
22276 ac_res=`eval echo '${'$as_ac_Header'}'`
22277 { echo "$as_me:$LINENO: result: $ac_res" >&5
22278 echo "${ECHO_T}$ac_res" >&6; }
22279 else
22280 # Is the header compilable?
22281 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22282 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22283 cat >conftest.$ac_ext <<_ACEOF
22284 /* confdefs.h. */
22285 _ACEOF
22286 cat confdefs.h >>conftest.$ac_ext
22287 cat >>conftest.$ac_ext <<_ACEOF
22288 /* end confdefs.h. */
22289 $ac_includes_default
22290 #include <$ac_header>
22291 _ACEOF
22292 rm -f conftest.$ac_objext
22293 if { (ac_try="$ac_compile"
22294 case "(($ac_try" in
22295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22296 *) ac_try_echo=$ac_try;;
22297 esac
22298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22299 (eval "$ac_compile") 2>conftest.er1
22300 ac_status=$?
22301 grep -v '^ *+' conftest.er1 >conftest.err
22302 rm -f conftest.er1
22303 cat conftest.err >&5
22304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22305 (exit $ac_status); } && {
22306 test -z "$ac_c_werror_flag" ||
22307 test ! -s conftest.err
22308 } && test -s conftest.$ac_objext; then
22309 ac_header_compiler=yes
22310 else
22311 echo "$as_me: failed program was:" >&5
22312 sed 's/^/| /' conftest.$ac_ext >&5
22314 ac_header_compiler=no
22317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22318 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22319 echo "${ECHO_T}$ac_header_compiler" >&6; }
22321 # Is the header present?
22322 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22323 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22324 cat >conftest.$ac_ext <<_ACEOF
22325 /* confdefs.h. */
22326 _ACEOF
22327 cat confdefs.h >>conftest.$ac_ext
22328 cat >>conftest.$ac_ext <<_ACEOF
22329 /* end confdefs.h. */
22330 #include <$ac_header>
22331 _ACEOF
22332 if { (ac_try="$ac_cpp conftest.$ac_ext"
22333 case "(($ac_try" in
22334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22335 *) ac_try_echo=$ac_try;;
22336 esac
22337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22338 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22339 ac_status=$?
22340 grep -v '^ *+' conftest.er1 >conftest.err
22341 rm -f conftest.er1
22342 cat conftest.err >&5
22343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22344 (exit $ac_status); } >/dev/null && {
22345 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22346 test ! -s conftest.err
22347 }; then
22348 ac_header_preproc=yes
22349 else
22350 echo "$as_me: failed program was:" >&5
22351 sed 's/^/| /' conftest.$ac_ext >&5
22353 ac_header_preproc=no
22356 rm -f conftest.err conftest.$ac_ext
22357 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22358 echo "${ECHO_T}$ac_header_preproc" >&6; }
22360 # So? What about this header?
22361 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22362 yes:no: )
22363 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22364 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22366 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22367 ac_header_preproc=yes
22369 no:yes:* )
22370 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22371 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22372 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22373 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22374 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22375 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22376 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22377 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22378 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22379 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22380 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22381 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22384 esac
22385 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22388 echo $ECHO_N "(cached) $ECHO_C" >&6
22389 else
22390 eval "$as_ac_Header=\$ac_header_preproc"
22392 ac_res=`eval echo '${'$as_ac_Header'}'`
22393 { echo "$as_me:$LINENO: result: $ac_res" >&5
22394 echo "${ECHO_T}$ac_res" >&6; }
22397 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22398 cat >>confdefs.h <<_ACEOF
22399 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22400 _ACEOF
22404 done
22408 done
22412 done
22416 for ac_header in com_err.h
22418 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22420 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22423 echo $ECHO_N "(cached) $ECHO_C" >&6
22425 ac_res=`eval echo '${'$as_ac_Header'}'`
22426 { echo "$as_me:$LINENO: result: $ac_res" >&5
22427 echo "${ECHO_T}$ac_res" >&6; }
22428 else
22429 # Is the header compilable?
22430 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22431 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22432 cat >conftest.$ac_ext <<_ACEOF
22433 /* confdefs.h. */
22434 _ACEOF
22435 cat confdefs.h >>conftest.$ac_ext
22436 cat >>conftest.$ac_ext <<_ACEOF
22437 /* end confdefs.h. */
22438 $ac_includes_default
22439 #include <$ac_header>
22440 _ACEOF
22441 rm -f conftest.$ac_objext
22442 if { (ac_try="$ac_compile"
22443 case "(($ac_try" in
22444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22445 *) ac_try_echo=$ac_try;;
22446 esac
22447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22448 (eval "$ac_compile") 2>conftest.er1
22449 ac_status=$?
22450 grep -v '^ *+' conftest.er1 >conftest.err
22451 rm -f conftest.er1
22452 cat conftest.err >&5
22453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22454 (exit $ac_status); } && {
22455 test -z "$ac_c_werror_flag" ||
22456 test ! -s conftest.err
22457 } && test -s conftest.$ac_objext; then
22458 ac_header_compiler=yes
22459 else
22460 echo "$as_me: failed program was:" >&5
22461 sed 's/^/| /' conftest.$ac_ext >&5
22463 ac_header_compiler=no
22466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22467 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22468 echo "${ECHO_T}$ac_header_compiler" >&6; }
22470 # Is the header present?
22471 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22472 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22473 cat >conftest.$ac_ext <<_ACEOF
22474 /* confdefs.h. */
22475 _ACEOF
22476 cat confdefs.h >>conftest.$ac_ext
22477 cat >>conftest.$ac_ext <<_ACEOF
22478 /* end confdefs.h. */
22479 #include <$ac_header>
22480 _ACEOF
22481 if { (ac_try="$ac_cpp conftest.$ac_ext"
22482 case "(($ac_try" in
22483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22484 *) ac_try_echo=$ac_try;;
22485 esac
22486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22487 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22488 ac_status=$?
22489 grep -v '^ *+' conftest.er1 >conftest.err
22490 rm -f conftest.er1
22491 cat conftest.err >&5
22492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22493 (exit $ac_status); } >/dev/null && {
22494 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22495 test ! -s conftest.err
22496 }; then
22497 ac_header_preproc=yes
22498 else
22499 echo "$as_me: failed program was:" >&5
22500 sed 's/^/| /' conftest.$ac_ext >&5
22502 ac_header_preproc=no
22505 rm -f conftest.err conftest.$ac_ext
22506 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22507 echo "${ECHO_T}$ac_header_preproc" >&6; }
22509 # So? What about this header?
22510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22511 yes:no: )
22512 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22513 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22515 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22516 ac_header_preproc=yes
22518 no:yes:* )
22519 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22520 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22521 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22522 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22523 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22524 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22525 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22526 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22528 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22529 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22530 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22533 esac
22534 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22537 echo $ECHO_N "(cached) $ECHO_C" >&6
22538 else
22539 eval "$as_ac_Header=\$ac_header_preproc"
22541 ac_res=`eval echo '${'$as_ac_Header'}'`
22542 { echo "$as_me:$LINENO: result: $ac_res" >&5
22543 echo "${ECHO_T}$ac_res" >&6; }
22546 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22547 cat >>confdefs.h <<_ACEOF
22548 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22549 _ACEOF
22553 done
22557 # Solaris requires -lintl if you want strerror (which calls dgettext)
22558 # to return localized messages.
22560 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
22561 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
22562 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
22563 echo $ECHO_N "(cached) $ECHO_C" >&6
22564 else
22565 ac_check_lib_save_LIBS=$LIBS
22566 LIBS="-lintl $LIBS"
22567 cat >conftest.$ac_ext <<_ACEOF
22568 /* confdefs.h. */
22569 _ACEOF
22570 cat confdefs.h >>conftest.$ac_ext
22571 cat >>conftest.$ac_ext <<_ACEOF
22572 /* end confdefs.h. */
22574 /* Override any GCC internal prototype to avoid an error.
22575 Use char because int might match the return type of a GCC
22576 builtin and then its argument prototype would still apply. */
22577 #ifdef __cplusplus
22578 extern "C"
22579 #endif
22580 char dgettext ();
22582 main ()
22584 return dgettext ();
22586 return 0;
22588 _ACEOF
22589 rm -f conftest.$ac_objext conftest$ac_exeext
22590 if { (ac_try="$ac_link"
22591 case "(($ac_try" in
22592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22593 *) ac_try_echo=$ac_try;;
22594 esac
22595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22596 (eval "$ac_link") 2>conftest.er1
22597 ac_status=$?
22598 grep -v '^ *+' conftest.er1 >conftest.err
22599 rm -f conftest.er1
22600 cat conftest.err >&5
22601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22602 (exit $ac_status); } && {
22603 test -z "$ac_c_werror_flag" ||
22604 test ! -s conftest.err
22605 } && test -s conftest$ac_exeext &&
22606 $as_test_x conftest$ac_exeext; then
22607 ac_cv_lib_intl_dgettext=yes
22608 else
22609 echo "$as_me: failed program was:" >&5
22610 sed 's/^/| /' conftest.$ac_ext >&5
22612 ac_cv_lib_intl_dgettext=no
22615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22616 conftest$ac_exeext conftest.$ac_ext
22617 LIBS=$ac_check_lib_save_LIBS
22619 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
22620 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22621 if test $ac_cv_lib_intl_dgettext = yes; then
22622 cat >>confdefs.h <<_ACEOF
22623 #define HAVE_LIBINTL 1
22624 _ACEOF
22626 LIBS="-lintl $LIBS"
22631 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
22632 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
22633 if test "${emacs_cv_localtime_cache+set}" = set; then
22634 echo $ECHO_N "(cached) $ECHO_C" >&6
22635 else
22636 if test x$ac_cv_func_tzset = xyes; then
22637 if test "$cross_compiling" = yes; then
22638 # If we have tzset, assume the worst when cross-compiling.
22639 emacs_cv_localtime_cache=yes
22640 else
22641 cat >conftest.$ac_ext <<_ACEOF
22642 /* confdefs.h. */
22643 _ACEOF
22644 cat confdefs.h >>conftest.$ac_ext
22645 cat >>conftest.$ac_ext <<_ACEOF
22646 /* end confdefs.h. */
22647 #include <time.h>
22648 extern char **environ;
22649 unset_TZ ()
22651 char **from, **to;
22652 for (to = from = environ; (*to = *from); from++)
22653 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22654 to++;
22656 char TZ_GMT0[] = "TZ=GMT0";
22657 char TZ_PST8[] = "TZ=PST8";
22658 main()
22660 time_t now = time ((time_t *) 0);
22661 int hour_GMT0, hour_unset;
22662 if (putenv (TZ_GMT0) != 0)
22663 exit (1);
22664 hour_GMT0 = localtime (&now)->tm_hour;
22665 unset_TZ ();
22666 hour_unset = localtime (&now)->tm_hour;
22667 if (putenv (TZ_PST8) != 0)
22668 exit (1);
22669 if (localtime (&now)->tm_hour == hour_GMT0)
22670 exit (1);
22671 unset_TZ ();
22672 if (localtime (&now)->tm_hour != hour_unset)
22673 exit (1);
22674 exit (0);
22676 _ACEOF
22677 rm -f conftest$ac_exeext
22678 if { (ac_try="$ac_link"
22679 case "(($ac_try" in
22680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22681 *) ac_try_echo=$ac_try;;
22682 esac
22683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22684 (eval "$ac_link") 2>&5
22685 ac_status=$?
22686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22687 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22688 { (case "(($ac_try" in
22689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22690 *) ac_try_echo=$ac_try;;
22691 esac
22692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22693 (eval "$ac_try") 2>&5
22694 ac_status=$?
22695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22696 (exit $ac_status); }; }; then
22697 emacs_cv_localtime_cache=no
22698 else
22699 echo "$as_me: program exited with status $ac_status" >&5
22700 echo "$as_me: failed program was:" >&5
22701 sed 's/^/| /' conftest.$ac_ext >&5
22703 ( exit $ac_status )
22704 emacs_cv_localtime_cache=yes
22706 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22710 else
22711 # If we lack tzset, report that localtime does not cache TZ,
22712 # since we can't invalidate the cache if we don't have tzset.
22713 emacs_cv_localtime_cache=no
22716 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
22717 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22718 if test $emacs_cv_localtime_cache = yes; then
22720 cat >>confdefs.h <<\_ACEOF
22721 #define LOCALTIME_CACHE 1
22722 _ACEOF
22726 if test "x$HAVE_TIMEVAL" = xyes; then
22728 for ac_func in gettimeofday
22730 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22731 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22732 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22733 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22734 echo $ECHO_N "(cached) $ECHO_C" >&6
22735 else
22736 cat >conftest.$ac_ext <<_ACEOF
22737 /* confdefs.h. */
22738 _ACEOF
22739 cat confdefs.h >>conftest.$ac_ext
22740 cat >>conftest.$ac_ext <<_ACEOF
22741 /* end confdefs.h. */
22742 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22744 #define $ac_func innocuous_$ac_func
22746 /* System header to define __stub macros and hopefully few prototypes,
22747 which can conflict with char $ac_func (); below.
22748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22749 <limits.h> exists even on freestanding compilers. */
22751 #ifdef __STDC__
22752 # include <limits.h>
22753 #else
22754 # include <assert.h>
22755 #endif
22757 #undef $ac_func
22759 /* Override any GCC internal prototype to avoid an error.
22760 Use char because int might match the return type of a GCC
22761 builtin and then its argument prototype would still apply. */
22762 #ifdef __cplusplus
22763 extern "C"
22764 #endif
22765 char $ac_func ();
22766 /* The GNU C library defines this for functions which it implements
22767 to always fail with ENOSYS. Some functions are actually named
22768 something starting with __ and the normal name is an alias. */
22769 #if defined __stub_$ac_func || defined __stub___$ac_func
22770 choke me
22771 #endif
22774 main ()
22776 return $ac_func ();
22778 return 0;
22780 _ACEOF
22781 rm -f conftest.$ac_objext conftest$ac_exeext
22782 if { (ac_try="$ac_link"
22783 case "(($ac_try" in
22784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22785 *) ac_try_echo=$ac_try;;
22786 esac
22787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22788 (eval "$ac_link") 2>conftest.er1
22789 ac_status=$?
22790 grep -v '^ *+' conftest.er1 >conftest.err
22791 rm -f conftest.er1
22792 cat conftest.err >&5
22793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22794 (exit $ac_status); } && {
22795 test -z "$ac_c_werror_flag" ||
22796 test ! -s conftest.err
22797 } && test -s conftest$ac_exeext &&
22798 $as_test_x conftest$ac_exeext; then
22799 eval "$as_ac_var=yes"
22800 else
22801 echo "$as_me: failed program was:" >&5
22802 sed 's/^/| /' conftest.$ac_ext >&5
22804 eval "$as_ac_var=no"
22807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22808 conftest$ac_exeext conftest.$ac_ext
22810 ac_res=`eval echo '${'$as_ac_var'}'`
22811 { echo "$as_me:$LINENO: result: $ac_res" >&5
22812 echo "${ECHO_T}$ac_res" >&6; }
22813 if test `eval echo '${'$as_ac_var'}'` = yes; then
22814 cat >>confdefs.h <<_ACEOF
22815 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22816 _ACEOF
22819 done
22821 if test $ac_cv_func_gettimeofday = yes; then
22822 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
22823 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
22824 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22825 echo $ECHO_N "(cached) $ECHO_C" >&6
22826 else
22827 cat >conftest.$ac_ext <<_ACEOF
22828 /* confdefs.h. */
22829 _ACEOF
22830 cat confdefs.h >>conftest.$ac_ext
22831 cat >>conftest.$ac_ext <<_ACEOF
22832 /* end confdefs.h. */
22834 #ifdef TIME_WITH_SYS_TIME
22835 #include <sys/time.h>
22836 #include <time.h>
22837 #else
22838 #ifdef HAVE_SYS_TIME_H
22839 #include <sys/time.h>
22840 #else
22841 #include <time.h>
22842 #endif
22843 #endif
22845 main ()
22847 struct timeval time;
22848 gettimeofday (&time, 0);
22850 return 0;
22852 _ACEOF
22853 rm -f conftest.$ac_objext
22854 if { (ac_try="$ac_compile"
22855 case "(($ac_try" in
22856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22857 *) ac_try_echo=$ac_try;;
22858 esac
22859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22860 (eval "$ac_compile") 2>conftest.er1
22861 ac_status=$?
22862 grep -v '^ *+' conftest.er1 >conftest.err
22863 rm -f conftest.er1
22864 cat conftest.err >&5
22865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22866 (exit $ac_status); } && {
22867 test -z "$ac_c_werror_flag" ||
22868 test ! -s conftest.err
22869 } && test -s conftest.$ac_objext; then
22870 emacs_cv_gettimeofday_two_arguments=yes
22871 else
22872 echo "$as_me: failed program was:" >&5
22873 sed 's/^/| /' conftest.$ac_ext >&5
22875 emacs_cv_gettimeofday_two_arguments=no
22878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22880 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
22881 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22882 if test $emacs_cv_gettimeofday_two_arguments = no; then
22884 cat >>confdefs.h <<\_ACEOF
22885 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22886 _ACEOF
22892 ok_so_far=yes
22893 { echo "$as_me:$LINENO: checking for socket" >&5
22894 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
22895 if test "${ac_cv_func_socket+set}" = set; then
22896 echo $ECHO_N "(cached) $ECHO_C" >&6
22897 else
22898 cat >conftest.$ac_ext <<_ACEOF
22899 /* confdefs.h. */
22900 _ACEOF
22901 cat confdefs.h >>conftest.$ac_ext
22902 cat >>conftest.$ac_ext <<_ACEOF
22903 /* end confdefs.h. */
22904 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22906 #define socket innocuous_socket
22908 /* System header to define __stub macros and hopefully few prototypes,
22909 which can conflict with char socket (); below.
22910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22911 <limits.h> exists even on freestanding compilers. */
22913 #ifdef __STDC__
22914 # include <limits.h>
22915 #else
22916 # include <assert.h>
22917 #endif
22919 #undef socket
22921 /* Override any GCC internal prototype to avoid an error.
22922 Use char because int might match the return type of a GCC
22923 builtin and then its argument prototype would still apply. */
22924 #ifdef __cplusplus
22925 extern "C"
22926 #endif
22927 char socket ();
22928 /* The GNU C library defines this for functions which it implements
22929 to always fail with ENOSYS. Some functions are actually named
22930 something starting with __ and the normal name is an alias. */
22931 #if defined __stub_socket || defined __stub___socket
22932 choke me
22933 #endif
22936 main ()
22938 return socket ();
22940 return 0;
22942 _ACEOF
22943 rm -f conftest.$ac_objext conftest$ac_exeext
22944 if { (ac_try="$ac_link"
22945 case "(($ac_try" in
22946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22947 *) ac_try_echo=$ac_try;;
22948 esac
22949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22950 (eval "$ac_link") 2>conftest.er1
22951 ac_status=$?
22952 grep -v '^ *+' conftest.er1 >conftest.err
22953 rm -f conftest.er1
22954 cat conftest.err >&5
22955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22956 (exit $ac_status); } && {
22957 test -z "$ac_c_werror_flag" ||
22958 test ! -s conftest.err
22959 } && test -s conftest$ac_exeext &&
22960 $as_test_x conftest$ac_exeext; then
22961 ac_cv_func_socket=yes
22962 else
22963 echo "$as_me: failed program was:" >&5
22964 sed 's/^/| /' conftest.$ac_ext >&5
22966 ac_cv_func_socket=no
22969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22970 conftest$ac_exeext conftest.$ac_ext
22972 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22973 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22974 if test $ac_cv_func_socket = yes; then
22976 else
22977 ok_so_far=no
22980 if test $ok_so_far = yes; then
22981 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22982 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22983 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22984 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22985 echo $ECHO_N "(cached) $ECHO_C" >&6
22987 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22988 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22989 else
22990 # Is the header compilable?
22991 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22992 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
22993 cat >conftest.$ac_ext <<_ACEOF
22994 /* confdefs.h. */
22995 _ACEOF
22996 cat confdefs.h >>conftest.$ac_ext
22997 cat >>conftest.$ac_ext <<_ACEOF
22998 /* end confdefs.h. */
22999 $ac_includes_default
23000 #include <netinet/in.h>
23001 _ACEOF
23002 rm -f conftest.$ac_objext
23003 if { (ac_try="$ac_compile"
23004 case "(($ac_try" in
23005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23006 *) ac_try_echo=$ac_try;;
23007 esac
23008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23009 (eval "$ac_compile") 2>conftest.er1
23010 ac_status=$?
23011 grep -v '^ *+' conftest.er1 >conftest.err
23012 rm -f conftest.er1
23013 cat conftest.err >&5
23014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23015 (exit $ac_status); } && {
23016 test -z "$ac_c_werror_flag" ||
23017 test ! -s conftest.err
23018 } && test -s conftest.$ac_objext; then
23019 ac_header_compiler=yes
23020 else
23021 echo "$as_me: failed program was:" >&5
23022 sed 's/^/| /' conftest.$ac_ext >&5
23024 ac_header_compiler=no
23027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23028 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23029 echo "${ECHO_T}$ac_header_compiler" >&6; }
23031 # Is the header present?
23032 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
23033 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
23034 cat >conftest.$ac_ext <<_ACEOF
23035 /* confdefs.h. */
23036 _ACEOF
23037 cat confdefs.h >>conftest.$ac_ext
23038 cat >>conftest.$ac_ext <<_ACEOF
23039 /* end confdefs.h. */
23040 #include <netinet/in.h>
23041 _ACEOF
23042 if { (ac_try="$ac_cpp conftest.$ac_ext"
23043 case "(($ac_try" in
23044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23045 *) ac_try_echo=$ac_try;;
23046 esac
23047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23049 ac_status=$?
23050 grep -v '^ *+' conftest.er1 >conftest.err
23051 rm -f conftest.er1
23052 cat conftest.err >&5
23053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23054 (exit $ac_status); } >/dev/null && {
23055 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23056 test ! -s conftest.err
23057 }; then
23058 ac_header_preproc=yes
23059 else
23060 echo "$as_me: failed program was:" >&5
23061 sed 's/^/| /' conftest.$ac_ext >&5
23063 ac_header_preproc=no
23066 rm -f conftest.err conftest.$ac_ext
23067 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23068 echo "${ECHO_T}$ac_header_preproc" >&6; }
23070 # So? What about this header?
23071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23072 yes:no: )
23073 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
23074 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23075 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
23076 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
23077 ac_header_preproc=yes
23079 no:yes:* )
23080 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
23081 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
23082 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
23083 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
23084 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
23085 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
23086 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
23087 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
23088 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
23089 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
23090 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
23091 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
23094 esac
23095 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
23096 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
23097 if test "${ac_cv_header_netinet_in_h+set}" = set; then
23098 echo $ECHO_N "(cached) $ECHO_C" >&6
23099 else
23100 ac_cv_header_netinet_in_h=$ac_header_preproc
23102 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
23103 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
23106 if test $ac_cv_header_netinet_in_h = yes; then
23108 else
23109 ok_so_far=no
23114 if test $ok_so_far = yes; then
23115 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23116 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
23117 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
23118 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23119 echo $ECHO_N "(cached) $ECHO_C" >&6
23121 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
23122 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
23123 else
23124 # Is the header compilable?
23125 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
23126 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
23127 cat >conftest.$ac_ext <<_ACEOF
23128 /* confdefs.h. */
23129 _ACEOF
23130 cat confdefs.h >>conftest.$ac_ext
23131 cat >>conftest.$ac_ext <<_ACEOF
23132 /* end confdefs.h. */
23133 $ac_includes_default
23134 #include <arpa/inet.h>
23135 _ACEOF
23136 rm -f conftest.$ac_objext
23137 if { (ac_try="$ac_compile"
23138 case "(($ac_try" in
23139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23140 *) ac_try_echo=$ac_try;;
23141 esac
23142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23143 (eval "$ac_compile") 2>conftest.er1
23144 ac_status=$?
23145 grep -v '^ *+' conftest.er1 >conftest.err
23146 rm -f conftest.er1
23147 cat conftest.err >&5
23148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23149 (exit $ac_status); } && {
23150 test -z "$ac_c_werror_flag" ||
23151 test ! -s conftest.err
23152 } && test -s conftest.$ac_objext; then
23153 ac_header_compiler=yes
23154 else
23155 echo "$as_me: failed program was:" >&5
23156 sed 's/^/| /' conftest.$ac_ext >&5
23158 ac_header_compiler=no
23161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23162 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23163 echo "${ECHO_T}$ac_header_compiler" >&6; }
23165 # Is the header present?
23166 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
23167 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
23168 cat >conftest.$ac_ext <<_ACEOF
23169 /* confdefs.h. */
23170 _ACEOF
23171 cat confdefs.h >>conftest.$ac_ext
23172 cat >>conftest.$ac_ext <<_ACEOF
23173 /* end confdefs.h. */
23174 #include <arpa/inet.h>
23175 _ACEOF
23176 if { (ac_try="$ac_cpp conftest.$ac_ext"
23177 case "(($ac_try" in
23178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23179 *) ac_try_echo=$ac_try;;
23180 esac
23181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23182 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23183 ac_status=$?
23184 grep -v '^ *+' conftest.er1 >conftest.err
23185 rm -f conftest.er1
23186 cat conftest.err >&5
23187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23188 (exit $ac_status); } >/dev/null && {
23189 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23190 test ! -s conftest.err
23191 }; then
23192 ac_header_preproc=yes
23193 else
23194 echo "$as_me: failed program was:" >&5
23195 sed 's/^/| /' conftest.$ac_ext >&5
23197 ac_header_preproc=no
23200 rm -f conftest.err conftest.$ac_ext
23201 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23202 echo "${ECHO_T}$ac_header_preproc" >&6; }
23204 # So? What about this header?
23205 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23206 yes:no: )
23207 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
23208 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23209 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
23210 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
23211 ac_header_preproc=yes
23213 no:yes:* )
23214 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
23215 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
23216 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
23217 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
23218 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
23219 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
23220 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
23221 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
23222 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
23223 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
23224 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
23225 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
23228 esac
23229 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
23230 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
23231 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23232 echo $ECHO_N "(cached) $ECHO_C" >&6
23233 else
23234 ac_cv_header_arpa_inet_h=$ac_header_preproc
23236 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
23237 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
23240 if test $ac_cv_header_arpa_inet_h = yes; then
23242 else
23243 ok_so_far=no
23248 if test $ok_so_far = yes; then
23250 cat >>confdefs.h <<\_ACEOF
23251 #define HAVE_INET_SOCKETS 1
23252 _ACEOF
23257 for ac_header in sys/ioctl.h
23259 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23261 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23264 echo $ECHO_N "(cached) $ECHO_C" >&6
23266 ac_res=`eval echo '${'$as_ac_Header'}'`
23267 { echo "$as_me:$LINENO: result: $ac_res" >&5
23268 echo "${ECHO_T}$ac_res" >&6; }
23269 else
23270 # Is the header compilable?
23271 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23272 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23273 cat >conftest.$ac_ext <<_ACEOF
23274 /* confdefs.h. */
23275 _ACEOF
23276 cat confdefs.h >>conftest.$ac_ext
23277 cat >>conftest.$ac_ext <<_ACEOF
23278 /* end confdefs.h. */
23279 $ac_includes_default
23280 #include <$ac_header>
23281 _ACEOF
23282 rm -f conftest.$ac_objext
23283 if { (ac_try="$ac_compile"
23284 case "(($ac_try" in
23285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23286 *) ac_try_echo=$ac_try;;
23287 esac
23288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23289 (eval "$ac_compile") 2>conftest.er1
23290 ac_status=$?
23291 grep -v '^ *+' conftest.er1 >conftest.err
23292 rm -f conftest.er1
23293 cat conftest.err >&5
23294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23295 (exit $ac_status); } && {
23296 test -z "$ac_c_werror_flag" ||
23297 test ! -s conftest.err
23298 } && test -s conftest.$ac_objext; then
23299 ac_header_compiler=yes
23300 else
23301 echo "$as_me: failed program was:" >&5
23302 sed 's/^/| /' conftest.$ac_ext >&5
23304 ac_header_compiler=no
23307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23308 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23309 echo "${ECHO_T}$ac_header_compiler" >&6; }
23311 # Is the header present?
23312 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23313 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23314 cat >conftest.$ac_ext <<_ACEOF
23315 /* confdefs.h. */
23316 _ACEOF
23317 cat confdefs.h >>conftest.$ac_ext
23318 cat >>conftest.$ac_ext <<_ACEOF
23319 /* end confdefs.h. */
23320 #include <$ac_header>
23321 _ACEOF
23322 if { (ac_try="$ac_cpp conftest.$ac_ext"
23323 case "(($ac_try" in
23324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23325 *) ac_try_echo=$ac_try;;
23326 esac
23327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23328 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23329 ac_status=$?
23330 grep -v '^ *+' conftest.er1 >conftest.err
23331 rm -f conftest.er1
23332 cat conftest.err >&5
23333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23334 (exit $ac_status); } >/dev/null && {
23335 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23336 test ! -s conftest.err
23337 }; then
23338 ac_header_preproc=yes
23339 else
23340 echo "$as_me: failed program was:" >&5
23341 sed 's/^/| /' conftest.$ac_ext >&5
23343 ac_header_preproc=no
23346 rm -f conftest.err conftest.$ac_ext
23347 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23348 echo "${ECHO_T}$ac_header_preproc" >&6; }
23350 # So? What about this header?
23351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23352 yes:no: )
23353 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23354 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23356 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23357 ac_header_preproc=yes
23359 no:yes:* )
23360 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23361 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23362 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23363 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23364 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23365 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23366 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23367 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23369 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23370 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23371 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23374 esac
23375 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23378 echo $ECHO_N "(cached) $ECHO_C" >&6
23379 else
23380 eval "$as_ac_Header=\$ac_header_preproc"
23382 ac_res=`eval echo '${'$as_ac_Header'}'`
23383 { echo "$as_me:$LINENO: result: $ac_res" >&5
23384 echo "${ECHO_T}$ac_res" >&6; }
23387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23388 cat >>confdefs.h <<_ACEOF
23389 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23390 _ACEOF
23394 done
23397 if test -f /usr/lpp/X11/bin/smt.exp; then
23399 cat >>confdefs.h <<\_ACEOF
23400 #define HAVE_AIX_SMT_EXP 1
23401 _ACEOF
23405 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
23406 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
23407 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
23408 { echo "$as_me:$LINENO: result: yes" >&5
23409 echo "${ECHO_T}yes" >&6; }
23411 cat >>confdefs.h <<\_ACEOF
23412 #define HAVE_DEV_PTMX 1
23413 _ACEOF
23415 else
23416 { echo "$as_me:$LINENO: result: no" >&5
23417 echo "${ECHO_T}no" >&6; }
23420 { echo "$as_me:$LINENO: checking for pid_t" >&5
23421 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23422 if test "${ac_cv_type_pid_t+set}" = set; then
23423 echo $ECHO_N "(cached) $ECHO_C" >&6
23424 else
23425 cat >conftest.$ac_ext <<_ACEOF
23426 /* confdefs.h. */
23427 _ACEOF
23428 cat confdefs.h >>conftest.$ac_ext
23429 cat >>conftest.$ac_ext <<_ACEOF
23430 /* end confdefs.h. */
23431 $ac_includes_default
23432 typedef pid_t ac__type_new_;
23434 main ()
23436 if ((ac__type_new_ *) 0)
23437 return 0;
23438 if (sizeof (ac__type_new_))
23439 return 0;
23441 return 0;
23443 _ACEOF
23444 rm -f conftest.$ac_objext
23445 if { (ac_try="$ac_compile"
23446 case "(($ac_try" in
23447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23448 *) ac_try_echo=$ac_try;;
23449 esac
23450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23451 (eval "$ac_compile") 2>conftest.er1
23452 ac_status=$?
23453 grep -v '^ *+' conftest.er1 >conftest.err
23454 rm -f conftest.er1
23455 cat conftest.err >&5
23456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23457 (exit $ac_status); } && {
23458 test -z "$ac_c_werror_flag" ||
23459 test ! -s conftest.err
23460 } && test -s conftest.$ac_objext; then
23461 ac_cv_type_pid_t=yes
23462 else
23463 echo "$as_me: failed program was:" >&5
23464 sed 's/^/| /' conftest.$ac_ext >&5
23466 ac_cv_type_pid_t=no
23469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23471 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23472 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23473 if test $ac_cv_type_pid_t = yes; then
23475 else
23477 cat >>confdefs.h <<_ACEOF
23478 #define pid_t int
23479 _ACEOF
23484 for ac_header in vfork.h
23486 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23488 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23490 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23491 echo $ECHO_N "(cached) $ECHO_C" >&6
23493 ac_res=`eval echo '${'$as_ac_Header'}'`
23494 { echo "$as_me:$LINENO: result: $ac_res" >&5
23495 echo "${ECHO_T}$ac_res" >&6; }
23496 else
23497 # Is the header compilable?
23498 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23499 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23500 cat >conftest.$ac_ext <<_ACEOF
23501 /* confdefs.h. */
23502 _ACEOF
23503 cat confdefs.h >>conftest.$ac_ext
23504 cat >>conftest.$ac_ext <<_ACEOF
23505 /* end confdefs.h. */
23506 $ac_includes_default
23507 #include <$ac_header>
23508 _ACEOF
23509 rm -f conftest.$ac_objext
23510 if { (ac_try="$ac_compile"
23511 case "(($ac_try" in
23512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23513 *) ac_try_echo=$ac_try;;
23514 esac
23515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23516 (eval "$ac_compile") 2>conftest.er1
23517 ac_status=$?
23518 grep -v '^ *+' conftest.er1 >conftest.err
23519 rm -f conftest.er1
23520 cat conftest.err >&5
23521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23522 (exit $ac_status); } && {
23523 test -z "$ac_c_werror_flag" ||
23524 test ! -s conftest.err
23525 } && test -s conftest.$ac_objext; then
23526 ac_header_compiler=yes
23527 else
23528 echo "$as_me: failed program was:" >&5
23529 sed 's/^/| /' conftest.$ac_ext >&5
23531 ac_header_compiler=no
23534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23535 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23536 echo "${ECHO_T}$ac_header_compiler" >&6; }
23538 # Is the header present?
23539 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23540 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23541 cat >conftest.$ac_ext <<_ACEOF
23542 /* confdefs.h. */
23543 _ACEOF
23544 cat confdefs.h >>conftest.$ac_ext
23545 cat >>conftest.$ac_ext <<_ACEOF
23546 /* end confdefs.h. */
23547 #include <$ac_header>
23548 _ACEOF
23549 if { (ac_try="$ac_cpp conftest.$ac_ext"
23550 case "(($ac_try" in
23551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23552 *) ac_try_echo=$ac_try;;
23553 esac
23554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23555 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23556 ac_status=$?
23557 grep -v '^ *+' conftest.er1 >conftest.err
23558 rm -f conftest.er1
23559 cat conftest.err >&5
23560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23561 (exit $ac_status); } >/dev/null && {
23562 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23563 test ! -s conftest.err
23564 }; then
23565 ac_header_preproc=yes
23566 else
23567 echo "$as_me: failed program was:" >&5
23568 sed 's/^/| /' conftest.$ac_ext >&5
23570 ac_header_preproc=no
23573 rm -f conftest.err conftest.$ac_ext
23574 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23575 echo "${ECHO_T}$ac_header_preproc" >&6; }
23577 # So? What about this header?
23578 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23579 yes:no: )
23580 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23581 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23582 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23583 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23584 ac_header_preproc=yes
23586 no:yes:* )
23587 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23588 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23589 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23590 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23591 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23592 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23593 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23594 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23595 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23596 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23597 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23598 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23601 esac
23602 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23605 echo $ECHO_N "(cached) $ECHO_C" >&6
23606 else
23607 eval "$as_ac_Header=\$ac_header_preproc"
23609 ac_res=`eval echo '${'$as_ac_Header'}'`
23610 { echo "$as_me:$LINENO: result: $ac_res" >&5
23611 echo "${ECHO_T}$ac_res" >&6; }
23614 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23615 cat >>confdefs.h <<_ACEOF
23616 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23617 _ACEOF
23621 done
23625 for ac_func in fork vfork
23627 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23628 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23629 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23630 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23631 echo $ECHO_N "(cached) $ECHO_C" >&6
23632 else
23633 cat >conftest.$ac_ext <<_ACEOF
23634 /* confdefs.h. */
23635 _ACEOF
23636 cat confdefs.h >>conftest.$ac_ext
23637 cat >>conftest.$ac_ext <<_ACEOF
23638 /* end confdefs.h. */
23639 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23640 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23641 #define $ac_func innocuous_$ac_func
23643 /* System header to define __stub macros and hopefully few prototypes,
23644 which can conflict with char $ac_func (); below.
23645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23646 <limits.h> exists even on freestanding compilers. */
23648 #ifdef __STDC__
23649 # include <limits.h>
23650 #else
23651 # include <assert.h>
23652 #endif
23654 #undef $ac_func
23656 /* Override any GCC internal prototype to avoid an error.
23657 Use char because int might match the return type of a GCC
23658 builtin and then its argument prototype would still apply. */
23659 #ifdef __cplusplus
23660 extern "C"
23661 #endif
23662 char $ac_func ();
23663 /* The GNU C library defines this for functions which it implements
23664 to always fail with ENOSYS. Some functions are actually named
23665 something starting with __ and the normal name is an alias. */
23666 #if defined __stub_$ac_func || defined __stub___$ac_func
23667 choke me
23668 #endif
23671 main ()
23673 return $ac_func ();
23675 return 0;
23677 _ACEOF
23678 rm -f conftest.$ac_objext conftest$ac_exeext
23679 if { (ac_try="$ac_link"
23680 case "(($ac_try" in
23681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23682 *) ac_try_echo=$ac_try;;
23683 esac
23684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23685 (eval "$ac_link") 2>conftest.er1
23686 ac_status=$?
23687 grep -v '^ *+' conftest.er1 >conftest.err
23688 rm -f conftest.er1
23689 cat conftest.err >&5
23690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23691 (exit $ac_status); } && {
23692 test -z "$ac_c_werror_flag" ||
23693 test ! -s conftest.err
23694 } && test -s conftest$ac_exeext &&
23695 $as_test_x conftest$ac_exeext; then
23696 eval "$as_ac_var=yes"
23697 else
23698 echo "$as_me: failed program was:" >&5
23699 sed 's/^/| /' conftest.$ac_ext >&5
23701 eval "$as_ac_var=no"
23704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23705 conftest$ac_exeext conftest.$ac_ext
23707 ac_res=`eval echo '${'$as_ac_var'}'`
23708 { echo "$as_me:$LINENO: result: $ac_res" >&5
23709 echo "${ECHO_T}$ac_res" >&6; }
23710 if test `eval echo '${'$as_ac_var'}'` = yes; then
23711 cat >>confdefs.h <<_ACEOF
23712 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23713 _ACEOF
23716 done
23718 if test "x$ac_cv_func_fork" = xyes; then
23719 { echo "$as_me:$LINENO: checking for working fork" >&5
23720 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
23721 if test "${ac_cv_func_fork_works+set}" = set; then
23722 echo $ECHO_N "(cached) $ECHO_C" >&6
23723 else
23724 if test "$cross_compiling" = yes; then
23725 ac_cv_func_fork_works=cross
23726 else
23727 cat >conftest.$ac_ext <<_ACEOF
23728 /* confdefs.h. */
23729 _ACEOF
23730 cat confdefs.h >>conftest.$ac_ext
23731 cat >>conftest.$ac_ext <<_ACEOF
23732 /* end confdefs.h. */
23733 $ac_includes_default
23735 main ()
23738 /* By Ruediger Kuhlmann. */
23739 return fork () < 0;
23742 return 0;
23744 _ACEOF
23745 rm -f conftest$ac_exeext
23746 if { (ac_try="$ac_link"
23747 case "(($ac_try" in
23748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23749 *) ac_try_echo=$ac_try;;
23750 esac
23751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23752 (eval "$ac_link") 2>&5
23753 ac_status=$?
23754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23755 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23756 { (case "(($ac_try" in
23757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23758 *) ac_try_echo=$ac_try;;
23759 esac
23760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23761 (eval "$ac_try") 2>&5
23762 ac_status=$?
23763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23764 (exit $ac_status); }; }; then
23765 ac_cv_func_fork_works=yes
23766 else
23767 echo "$as_me: program exited with status $ac_status" >&5
23768 echo "$as_me: failed program was:" >&5
23769 sed 's/^/| /' conftest.$ac_ext >&5
23771 ( exit $ac_status )
23772 ac_cv_func_fork_works=no
23774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23779 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23780 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23782 else
23783 ac_cv_func_fork_works=$ac_cv_func_fork
23785 if test "x$ac_cv_func_fork_works" = xcross; then
23786 case $host in
23787 *-*-amigaos* | *-*-msdosdjgpp*)
23788 # Override, as these systems have only a dummy fork() stub
23789 ac_cv_func_fork_works=no
23792 ac_cv_func_fork_works=yes
23794 esac
23795 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23796 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23798 ac_cv_func_vfork_works=$ac_cv_func_vfork
23799 if test "x$ac_cv_func_vfork" = xyes; then
23800 { echo "$as_me:$LINENO: checking for working vfork" >&5
23801 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
23802 if test "${ac_cv_func_vfork_works+set}" = set; then
23803 echo $ECHO_N "(cached) $ECHO_C" >&6
23804 else
23805 if test "$cross_compiling" = yes; then
23806 ac_cv_func_vfork_works=cross
23807 else
23808 cat >conftest.$ac_ext <<_ACEOF
23809 /* confdefs.h. */
23810 _ACEOF
23811 cat confdefs.h >>conftest.$ac_ext
23812 cat >>conftest.$ac_ext <<_ACEOF
23813 /* end confdefs.h. */
23814 /* Thanks to Paul Eggert for this test. */
23815 $ac_includes_default
23816 #include <sys/wait.h>
23817 #ifdef HAVE_VFORK_H
23818 # include <vfork.h>
23819 #endif
23820 /* On some sparc systems, changes by the child to local and incoming
23821 argument registers are propagated back to the parent. The compiler
23822 is told about this with #include <vfork.h>, but some compilers
23823 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23824 static variable whose address is put into a register that is
23825 clobbered by the vfork. */
23826 static void
23827 #ifdef __cplusplus
23828 sparc_address_test (int arg)
23829 # else
23830 sparc_address_test (arg) int arg;
23831 #endif
23833 static pid_t child;
23834 if (!child) {
23835 child = vfork ();
23836 if (child < 0) {
23837 perror ("vfork");
23838 _exit(2);
23840 if (!child) {
23841 arg = getpid();
23842 write(-1, "", 0);
23843 _exit (arg);
23849 main ()
23851 pid_t parent = getpid ();
23852 pid_t child;
23854 sparc_address_test (0);
23856 child = vfork ();
23858 if (child == 0) {
23859 /* Here is another test for sparc vfork register problems. This
23860 test uses lots of local variables, at least as many local
23861 variables as main has allocated so far including compiler
23862 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23863 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23864 reuse the register of parent for one of the local variables,
23865 since it will think that parent can't possibly be used any more
23866 in this routine. Assigning to the local variable will thus
23867 munge parent in the parent process. */
23868 pid_t
23869 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23870 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23871 /* Convince the compiler that p..p7 are live; otherwise, it might
23872 use the same hardware register for all 8 local variables. */
23873 if (p != p1 || p != p2 || p != p3 || p != p4
23874 || p != p5 || p != p6 || p != p7)
23875 _exit(1);
23877 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23878 from child file descriptors. If the child closes a descriptor
23879 before it execs or exits, this munges the parent's descriptor
23880 as well. Test for this by closing stdout in the child. */
23881 _exit(close(fileno(stdout)) != 0);
23882 } else {
23883 int status;
23884 struct stat st;
23886 while (wait(&status) != child)
23888 return (
23889 /* Was there some problem with vforking? */
23890 child < 0
23892 /* Did the child fail? (This shouldn't happen.) */
23893 || status
23895 /* Did the vfork/compiler bug occur? */
23896 || parent != getpid()
23898 /* Did the file descriptor bug occur? */
23899 || fstat(fileno(stdout), &st) != 0
23903 _ACEOF
23904 rm -f conftest$ac_exeext
23905 if { (ac_try="$ac_link"
23906 case "(($ac_try" in
23907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23908 *) ac_try_echo=$ac_try;;
23909 esac
23910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23911 (eval "$ac_link") 2>&5
23912 ac_status=$?
23913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23914 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23915 { (case "(($ac_try" in
23916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23917 *) ac_try_echo=$ac_try;;
23918 esac
23919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23920 (eval "$ac_try") 2>&5
23921 ac_status=$?
23922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23923 (exit $ac_status); }; }; then
23924 ac_cv_func_vfork_works=yes
23925 else
23926 echo "$as_me: program exited with status $ac_status" >&5
23927 echo "$as_me: failed program was:" >&5
23928 sed 's/^/| /' conftest.$ac_ext >&5
23930 ( exit $ac_status )
23931 ac_cv_func_vfork_works=no
23933 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23938 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23939 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23942 if test "x$ac_cv_func_fork_works" = xcross; then
23943 ac_cv_func_vfork_works=$ac_cv_func_vfork
23944 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23945 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23948 if test "x$ac_cv_func_vfork_works" = xyes; then
23950 cat >>confdefs.h <<\_ACEOF
23951 #define HAVE_WORKING_VFORK 1
23952 _ACEOF
23954 else
23956 cat >>confdefs.h <<\_ACEOF
23957 #define vfork fork
23958 _ACEOF
23961 if test "x$ac_cv_func_fork_works" = xyes; then
23963 cat >>confdefs.h <<\_ACEOF
23964 #define HAVE_WORKING_FORK 1
23965 _ACEOF
23970 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23971 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
23972 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23973 echo $ECHO_N "(cached) $ECHO_C" >&6
23974 else
23975 cat >conftest.$ac_ext <<_ACEOF
23976 /* confdefs.h. */
23977 _ACEOF
23978 cat confdefs.h >>conftest.$ac_ext
23979 cat >>conftest.$ac_ext <<_ACEOF
23980 /* end confdefs.h. */
23981 #include <langinfo.h>
23983 main ()
23985 char* cs = nl_langinfo(CODESET);
23987 return 0;
23989 _ACEOF
23990 rm -f conftest.$ac_objext conftest$ac_exeext
23991 if { (ac_try="$ac_link"
23992 case "(($ac_try" in
23993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23994 *) ac_try_echo=$ac_try;;
23995 esac
23996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23997 (eval "$ac_link") 2>conftest.er1
23998 ac_status=$?
23999 grep -v '^ *+' conftest.er1 >conftest.err
24000 rm -f conftest.er1
24001 cat conftest.err >&5
24002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24003 (exit $ac_status); } && {
24004 test -z "$ac_c_werror_flag" ||
24005 test ! -s conftest.err
24006 } && test -s conftest$ac_exeext &&
24007 $as_test_x conftest$ac_exeext; then
24008 emacs_cv_langinfo_codeset=yes
24009 else
24010 echo "$as_me: failed program was:" >&5
24011 sed 's/^/| /' conftest.$ac_ext >&5
24013 emacs_cv_langinfo_codeset=no
24016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24017 conftest$ac_exeext conftest.$ac_ext
24020 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
24021 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
24022 if test $emacs_cv_langinfo_codeset = yes; then
24024 cat >>confdefs.h <<\_ACEOF
24025 #define HAVE_LANGINFO_CODESET 1
24026 _ACEOF
24030 { echo "$as_me:$LINENO: checking for size_t" >&5
24031 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
24032 if test "${ac_cv_type_size_t+set}" = set; then
24033 echo $ECHO_N "(cached) $ECHO_C" >&6
24034 else
24035 cat >conftest.$ac_ext <<_ACEOF
24036 /* confdefs.h. */
24037 _ACEOF
24038 cat confdefs.h >>conftest.$ac_ext
24039 cat >>conftest.$ac_ext <<_ACEOF
24040 /* end confdefs.h. */
24041 $ac_includes_default
24042 typedef size_t ac__type_new_;
24044 main ()
24046 if ((ac__type_new_ *) 0)
24047 return 0;
24048 if (sizeof (ac__type_new_))
24049 return 0;
24051 return 0;
24053 _ACEOF
24054 rm -f conftest.$ac_objext
24055 if { (ac_try="$ac_compile"
24056 case "(($ac_try" in
24057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24058 *) ac_try_echo=$ac_try;;
24059 esac
24060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24061 (eval "$ac_compile") 2>conftest.er1
24062 ac_status=$?
24063 grep -v '^ *+' conftest.er1 >conftest.err
24064 rm -f conftest.er1
24065 cat conftest.err >&5
24066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24067 (exit $ac_status); } && {
24068 test -z "$ac_c_werror_flag" ||
24069 test ! -s conftest.err
24070 } && test -s conftest.$ac_objext; then
24071 ac_cv_type_size_t=yes
24072 else
24073 echo "$as_me: failed program was:" >&5
24074 sed 's/^/| /' conftest.$ac_ext >&5
24076 ac_cv_type_size_t=no
24079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24081 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24082 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
24083 if test $ac_cv_type_size_t = yes; then
24085 cat >>confdefs.h <<_ACEOF
24086 #define HAVE_SIZE_T 1
24087 _ACEOF
24093 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
24094 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
24095 if test "${ac_cv_type_mbstate_t+set}" = set; then
24096 echo $ECHO_N "(cached) $ECHO_C" >&6
24097 else
24098 cat >conftest.$ac_ext <<_ACEOF
24099 /* confdefs.h. */
24100 _ACEOF
24101 cat confdefs.h >>conftest.$ac_ext
24102 cat >>conftest.$ac_ext <<_ACEOF
24103 /* end confdefs.h. */
24104 $ac_includes_default
24105 # include <wchar.h>
24107 main ()
24109 mbstate_t x; return sizeof x;
24111 return 0;
24113 _ACEOF
24114 rm -f conftest.$ac_objext
24115 if { (ac_try="$ac_compile"
24116 case "(($ac_try" in
24117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24118 *) ac_try_echo=$ac_try;;
24119 esac
24120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24121 (eval "$ac_compile") 2>conftest.er1
24122 ac_status=$?
24123 grep -v '^ *+' conftest.er1 >conftest.err
24124 rm -f conftest.er1
24125 cat conftest.err >&5
24126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24127 (exit $ac_status); } && {
24128 test -z "$ac_c_werror_flag" ||
24129 test ! -s conftest.err
24130 } && test -s conftest.$ac_objext; then
24131 ac_cv_type_mbstate_t=yes
24132 else
24133 echo "$as_me: failed program was:" >&5
24134 sed 's/^/| /' conftest.$ac_ext >&5
24136 ac_cv_type_mbstate_t=no
24139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24141 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
24142 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
24143 if test $ac_cv_type_mbstate_t = yes; then
24145 cat >>confdefs.h <<\_ACEOF
24146 #define HAVE_MBSTATE_T 1
24147 _ACEOF
24149 else
24151 cat >>confdefs.h <<\_ACEOF
24152 #define mbstate_t int
24153 _ACEOF
24157 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
24158 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
24159 if test "${emacs_cv_c_restrict+set}" = set; then
24160 echo $ECHO_N "(cached) $ECHO_C" >&6
24161 else
24162 cat >conftest.$ac_ext <<_ACEOF
24163 /* confdefs.h. */
24164 _ACEOF
24165 cat confdefs.h >>conftest.$ac_ext
24166 cat >>conftest.$ac_ext <<_ACEOF
24167 /* end confdefs.h. */
24168 void fred (int *restrict x);
24170 main ()
24174 return 0;
24176 _ACEOF
24177 rm -f conftest.$ac_objext
24178 if { (ac_try="$ac_compile"
24179 case "(($ac_try" in
24180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24181 *) ac_try_echo=$ac_try;;
24182 esac
24183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24184 (eval "$ac_compile") 2>conftest.er1
24185 ac_status=$?
24186 grep -v '^ *+' conftest.er1 >conftest.err
24187 rm -f conftest.er1
24188 cat conftest.err >&5
24189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24190 (exit $ac_status); } && {
24191 test -z "$ac_c_werror_flag" ||
24192 test ! -s conftest.err
24193 } && test -s conftest.$ac_objext; then
24194 emacs_cv_c_restrict=yes
24195 else
24196 echo "$as_me: failed program was:" >&5
24197 sed 's/^/| /' conftest.$ac_ext >&5
24199 cat >conftest.$ac_ext <<_ACEOF
24200 /* confdefs.h. */
24201 _ACEOF
24202 cat confdefs.h >>conftest.$ac_ext
24203 cat >>conftest.$ac_ext <<_ACEOF
24204 /* end confdefs.h. */
24205 void fred (int *__restrict x);
24207 main ()
24211 return 0;
24213 _ACEOF
24214 rm -f conftest.$ac_objext
24215 if { (ac_try="$ac_compile"
24216 case "(($ac_try" in
24217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24218 *) ac_try_echo=$ac_try;;
24219 esac
24220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24221 (eval "$ac_compile") 2>conftest.er1
24222 ac_status=$?
24223 grep -v '^ *+' conftest.er1 >conftest.err
24224 rm -f conftest.er1
24225 cat conftest.err >&5
24226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24227 (exit $ac_status); } && {
24228 test -z "$ac_c_werror_flag" ||
24229 test ! -s conftest.err
24230 } && test -s conftest.$ac_objext; then
24231 emacs_cv_c_restrict=__restrict
24232 else
24233 echo "$as_me: failed program was:" >&5
24234 sed 's/^/| /' conftest.$ac_ext >&5
24236 emacs_cv_c_restrict=no
24239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24244 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
24245 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
24246 case "$emacs_cv_c_restrict" in
24247 yes) emacs_restrict=restrict;;
24248 no) emacs_restrict="";;
24249 *) emacs_restrict="$emacs_cv_c_restrict";;
24250 esac
24251 if test "$emacs_restrict" != __restrict; then
24253 cat >>confdefs.h <<_ACEOF
24254 #define __restrict $emacs_restrict
24255 _ACEOF
24259 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
24260 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
24261 if test "${emacs_cv_c_restrict_arr+set}" = set; then
24262 echo $ECHO_N "(cached) $ECHO_C" >&6
24263 else
24264 cat >conftest.$ac_ext <<_ACEOF
24265 /* confdefs.h. */
24266 _ACEOF
24267 cat confdefs.h >>conftest.$ac_ext
24268 cat >>conftest.$ac_ext <<_ACEOF
24269 /* end confdefs.h. */
24270 void fred (int x[__restrict]);
24272 main ()
24276 return 0;
24278 _ACEOF
24279 rm -f conftest.$ac_objext
24280 if { (ac_try="$ac_compile"
24281 case "(($ac_try" in
24282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24283 *) ac_try_echo=$ac_try;;
24284 esac
24285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24286 (eval "$ac_compile") 2>conftest.er1
24287 ac_status=$?
24288 grep -v '^ *+' conftest.er1 >conftest.err
24289 rm -f conftest.er1
24290 cat conftest.err >&5
24291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24292 (exit $ac_status); } && {
24293 test -z "$ac_c_werror_flag" ||
24294 test ! -s conftest.err
24295 } && test -s conftest.$ac_objext; then
24296 emacs_cv_c_restrict_arr=yes
24297 else
24298 echo "$as_me: failed program was:" >&5
24299 sed 's/^/| /' conftest.$ac_ext >&5
24301 emacs_cv_c_restrict_arr=no
24304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24306 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
24307 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
24308 if test "$emacs_cv_c_restrict_arr" = yes; then
24310 cat >>confdefs.h <<\_ACEOF
24311 #define __restrict_arr __restrict
24312 _ACEOF
24318 # Set up the CFLAGS for real compilation, so we can substitute it.
24319 CFLAGS="$REAL_CFLAGS"
24320 CPPFLAGS="$REAL_CPPFLAGS"
24322 #### Find out which version of Emacs this is.
24323 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
24324 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
24325 if test x"${version}" = x; then
24326 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
24327 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
24328 { (exit 1); exit 1; }; }
24331 ### Specify what sort of things we'll be editing into Makefile and config.h.
24332 ### Use configuration here uncanonicalized to avoid exceeding size limits.
24376 cat >>confdefs.h <<_ACEOF
24377 #define EMACS_CONFIGURATION "${canonical}"
24378 _ACEOF
24381 cat >>confdefs.h <<_ACEOF
24382 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
24383 _ACEOF
24386 cat >>confdefs.h <<_ACEOF
24387 #define config_machfile "${machfile}"
24388 _ACEOF
24391 cat >>confdefs.h <<_ACEOF
24392 #define config_opsysfile "${opsysfile}"
24393 _ACEOF
24396 cat >>confdefs.h <<_ACEOF
24397 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
24398 _ACEOF
24401 cat >>confdefs.h <<_ACEOF
24402 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
24403 _ACEOF
24406 cat >>confdefs.h <<_ACEOF
24407 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
24408 _ACEOF
24411 cat >>confdefs.h <<_ACEOF
24412 #define UNEXEC_SRC ${UNEXEC_SRC}
24413 _ACEOF
24416 if test "${HAVE_X_WINDOWS}" = "yes" ; then
24418 cat >>confdefs.h <<\_ACEOF
24419 #define HAVE_X_WINDOWS 1
24420 _ACEOF
24423 if test "${USE_X_TOOLKIT}" != "none" ; then
24425 cat >>confdefs.h <<\_ACEOF
24426 #define USE_X_TOOLKIT 1
24427 _ACEOF
24429 if test "${USE_X_TOOLKIT}" = "LUCID"; then
24431 cat >>confdefs.h <<\_ACEOF
24432 #define USE_LUCID 1
24433 _ACEOF
24435 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
24437 cat >>confdefs.h <<\_ACEOF
24438 #define USE_MOTIF 1
24439 _ACEOF
24443 if test "${HAVE_X11}" = "yes" ; then
24445 cat >>confdefs.h <<\_ACEOF
24446 #define HAVE_X11 1
24447 _ACEOF
24450 if test "${HAVE_MENUS}" = "yes" ; then
24452 cat >>confdefs.h <<\_ACEOF
24453 #define HAVE_MENUS 1
24454 _ACEOF
24457 if test "${GNU_MALLOC}" = "yes" ; then
24459 cat >>confdefs.h <<\_ACEOF
24460 #define GNU_MALLOC 1
24461 _ACEOF
24464 if test "${REL_ALLOC}" = "yes" ; then
24466 cat >>confdefs.h <<\_ACEOF
24467 #define REL_ALLOC 1
24468 _ACEOF
24477 #### Report on what we decided to do.
24478 #### Report GTK as a toolkit, even if it doesn't use Xt.
24479 #### It makes printing result more understandable as using GTK sets
24480 #### toolkit_scroll_bars to yes by default.
24481 if test "${HAVE_GTK}" = "yes"; then
24482 USE_X_TOOLKIT=GTK
24485 echo "
24486 Configured for \`${canonical}'.
24488 Where should the build process find the source code? ${srcdir}
24489 What operating system and machine description files should Emacs use?
24490 \`${opsysfile}' and \`${machfile}'
24491 What compiler should emacs be built with? ${CC} ${CFLAGS}
24492 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
24493 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
24494 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
24495 What window system should Emacs use? ${window_system}
24496 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
24498 if test -n "${x_includes}"; then
24499 echo " Where do we find X Windows header files? ${x_includes}"
24500 else
24501 echo " Where do we find X Windows header files? Standard dirs"
24503 if test -n "${x_libraries}"; then
24504 echo " Where do we find X Windows libraries? ${x_libraries}"
24505 else
24506 echo " Where do we find X Windows libraries? Standard dirs"
24509 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
24510 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
24511 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
24512 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
24513 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
24514 echo " Does Emacs use -lpng? ${HAVE_PNG}"
24515 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
24516 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
24517 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
24519 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
24520 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
24521 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
24522 echo " Does Emacs use -lxft? ${HAVE_XFT}"
24524 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
24525 echo
24527 if test $USE_XASSERTS = yes; then
24528 echo " Compiling with asserts turned on."
24529 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
24532 echo
24534 if test "$USE_X_TOOLKIT" = GTK; then
24535 case "$canonical" in
24536 *cygwin*)
24537 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
24538 will probably get a crash on startup. If this happens, please use another
24539 toolkit for Emacs. See etc/PROBLEMS for more information."
24541 esac
24544 if test "$HAVE_NS" = "yes"; then
24545 echo
24546 echo "You must run \"make install\" in order to test the built application.
24547 The installed application will go to nextstep/Emacs.app and can be
24548 run or moved from there."
24549 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
24550 echo "The application will be fully self-contained."
24551 else
24552 echo "The lisp resources for the application will be installed under ${prefix}.
24553 You may need to run \"make install\" with sudo. The application will fail
24554 to run if these resources are not installed."
24556 echo
24559 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
24560 echo "D-Bus integration has been tested for GNU/Linux only."
24561 echo
24565 # Remove any trailing slashes in these variables.
24566 test "${prefix}" != NONE &&
24567 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24568 test "${exec_prefix}" != NONE &&
24569 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24571 # Now get this: Some word that is part of the ${srcdir} directory name
24572 # or the ${configuration} value might, just might, happen to be an
24573 # identifier like `sun4' or `i386' or something, and be predefined by
24574 # the C preprocessor to some helpful value like 1, or maybe the empty
24575 # string. Needless to say consequent macro substitutions are less
24576 # than conducive to the makefile finding the correct directory.
24577 cpp_undefs="`echo $srcdir $configuration $canonical |
24578 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24579 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
24581 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
24582 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
24583 ## from Makefile.c can correctly provide the arg `-traditional' to the
24584 ## C preprocessor.
24586 cat >conftest.$ac_ext <<_ACEOF
24587 /* confdefs.h. */
24588 _ACEOF
24589 cat confdefs.h >>conftest.$ac_ext
24590 cat >>conftest.$ac_ext <<_ACEOF
24591 /* end confdefs.h. */
24592 yes..yes
24593 _ACEOF
24594 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24595 $EGREP "yes..yes" >/dev/null 2>&1; then
24596 CPP_NEED_TRADITIONAL=no
24597 else
24598 CPP_NEED_TRADITIONAL=yes
24600 rm -f conftest*
24603 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"
24605 ac_config_commands="$ac_config_commands default"
24607 cat >confcache <<\_ACEOF
24608 # This file is a shell script that caches the results of configure
24609 # tests run on this system so they can be shared between configure
24610 # scripts and configure runs, see configure's option --config-cache.
24611 # It is not useful on other systems. If it contains results you don't
24612 # want to keep, you may remove or edit it.
24614 # config.status only pays attention to the cache file if you give it
24615 # the --recheck option to rerun configure.
24617 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24618 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24619 # following values.
24621 _ACEOF
24623 # The following way of writing the cache mishandles newlines in values,
24624 # but we know of no workaround that is simple, portable, and efficient.
24625 # So, we kill variables containing newlines.
24626 # Ultrix sh set writes to stderr and can't be redirected directly,
24627 # and sets the high bit in the cache file unless we assign to the vars.
24629 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24630 eval ac_val=\$$ac_var
24631 case $ac_val in #(
24632 *${as_nl}*)
24633 case $ac_var in #(
24634 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24635 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24636 esac
24637 case $ac_var in #(
24638 _ | IFS | as_nl) ;; #(
24639 *) $as_unset $ac_var ;;
24640 esac ;;
24641 esac
24642 done
24644 (set) 2>&1 |
24645 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24646 *${as_nl}ac_space=\ *)
24647 # `set' does not quote correctly, so add quotes (double-quote
24648 # substitution turns \\\\ into \\, and sed turns \\ into \).
24649 sed -n \
24650 "s/'/'\\\\''/g;
24651 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24652 ;; #(
24654 # `set' quotes correctly as required by POSIX, so do not add quotes.
24655 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24657 esac |
24658 sort
24660 sed '
24661 /^ac_cv_env_/b end
24662 t clear
24663 :clear
24664 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24665 t end
24666 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24667 :end' >>confcache
24668 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24669 if test -w "$cache_file"; then
24670 test "x$cache_file" != "x/dev/null" &&
24671 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24672 echo "$as_me: updating cache $cache_file" >&6;}
24673 cat confcache >$cache_file
24674 else
24675 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24676 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24679 rm -f confcache
24681 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24682 # Let make expand exec_prefix.
24683 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24685 DEFS=-DHAVE_CONFIG_H
24687 ac_libobjs=
24688 ac_ltlibobjs=
24689 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24690 # 1. Remove the extension, and $U if already installed.
24691 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24692 ac_i=`echo "$ac_i" | sed "$ac_script"`
24693 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24694 # will be set to the directory where LIBOBJS objects are built.
24695 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24696 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24697 done
24698 LIBOBJS=$ac_libobjs
24700 LTLIBOBJS=$ac_ltlibobjs
24704 : ${CONFIG_STATUS=./config.status}
24705 ac_clean_files_save=$ac_clean_files
24706 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24707 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24708 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24709 cat >$CONFIG_STATUS <<_ACEOF
24710 #! $SHELL
24711 # Generated by $as_me.
24712 # Run this file to recreate the current configuration.
24713 # Compiler output produced by configure, useful for debugging
24714 # configure, is in config.log if it exists.
24716 debug=false
24717 ac_cs_recheck=false
24718 ac_cs_silent=false
24719 SHELL=\${CONFIG_SHELL-$SHELL}
24720 _ACEOF
24722 cat >>$CONFIG_STATUS <<\_ACEOF
24723 ## --------------------- ##
24724 ## M4sh Initialization. ##
24725 ## --------------------- ##
24727 # Be more Bourne compatible
24728 DUALCASE=1; export DUALCASE # for MKS sh
24729 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24730 emulate sh
24731 NULLCMD=:
24732 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24733 # is contrary to our usage. Disable this feature.
24734 alias -g '${1+"$@"}'='"$@"'
24735 setopt NO_GLOB_SUBST
24736 else
24737 case `(set -o) 2>/dev/null` in
24738 *posix*) set -o posix ;;
24739 esac
24746 # PATH needs CR
24747 # Avoid depending upon Character Ranges.
24748 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24749 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24750 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24751 as_cr_digits='0123456789'
24752 as_cr_alnum=$as_cr_Letters$as_cr_digits
24754 # The user is always right.
24755 if test "${PATH_SEPARATOR+set}" != set; then
24756 echo "#! /bin/sh" >conf$$.sh
24757 echo "exit 0" >>conf$$.sh
24758 chmod +x conf$$.sh
24759 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24760 PATH_SEPARATOR=';'
24761 else
24762 PATH_SEPARATOR=:
24764 rm -f conf$$.sh
24767 # Support unset when possible.
24768 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24769 as_unset=unset
24770 else
24771 as_unset=false
24775 # IFS
24776 # We need space, tab and new line, in precisely that order. Quoting is
24777 # there to prevent editors from complaining about space-tab.
24778 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24779 # splitting by setting IFS to empty value.)
24780 as_nl='
24782 IFS=" "" $as_nl"
24784 # Find who we are. Look in the path if we contain no directory separator.
24785 case $0 in
24786 *[\\/]* ) as_myself=$0 ;;
24787 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24788 for as_dir in $PATH
24790 IFS=$as_save_IFS
24791 test -z "$as_dir" && as_dir=.
24792 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24793 done
24794 IFS=$as_save_IFS
24797 esac
24798 # We did not find ourselves, most probably we were run as `sh COMMAND'
24799 # in which case we are not to be found in the path.
24800 if test "x$as_myself" = x; then
24801 as_myself=$0
24803 if test ! -f "$as_myself"; then
24804 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24805 { (exit 1); exit 1; }
24808 # Work around bugs in pre-3.0 UWIN ksh.
24809 for as_var in ENV MAIL MAILPATH
24810 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24811 done
24812 PS1='$ '
24813 PS2='> '
24814 PS4='+ '
24816 # NLS nuisances.
24817 for as_var in \
24818 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24819 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24820 LC_TELEPHONE LC_TIME
24822 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24823 eval $as_var=C; export $as_var
24824 else
24825 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24827 done
24829 # Required to use basename.
24830 if expr a : '\(a\)' >/dev/null 2>&1 &&
24831 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24832 as_expr=expr
24833 else
24834 as_expr=false
24837 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24838 as_basename=basename
24839 else
24840 as_basename=false
24844 # Name of the executable.
24845 as_me=`$as_basename -- "$0" ||
24846 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24847 X"$0" : 'X\(//\)$' \| \
24848 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24849 echo X/"$0" |
24850 sed '/^.*\/\([^/][^/]*\)\/*$/{
24851 s//\1/
24854 /^X\/\(\/\/\)$/{
24855 s//\1/
24858 /^X\/\(\/\).*/{
24859 s//\1/
24862 s/.*/./; q'`
24864 # CDPATH.
24865 $as_unset CDPATH
24869 as_lineno_1=$LINENO
24870 as_lineno_2=$LINENO
24871 test "x$as_lineno_1" != "x$as_lineno_2" &&
24872 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24874 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24875 # uniformly replaced by the line number. The first 'sed' inserts a
24876 # line-number line after each line using $LINENO; the second 'sed'
24877 # does the real work. The second script uses 'N' to pair each
24878 # line-number line with the line containing $LINENO, and appends
24879 # trailing '-' during substitution so that $LINENO is not a special
24880 # case at line end.
24881 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24882 # scripts with optimization help from Paolo Bonzini. Blame Lee
24883 # E. McMahon (1931-1989) for sed's syntax. :-)
24884 sed -n '
24886 /[$]LINENO/=
24887 ' <$as_myself |
24888 sed '
24889 s/[$]LINENO.*/&-/
24890 t lineno
24892 :lineno
24894 :loop
24895 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24896 t loop
24897 s/-\n.*//
24898 ' >$as_me.lineno &&
24899 chmod +x "$as_me.lineno" ||
24900 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24901 { (exit 1); exit 1; }; }
24903 # Don't try to exec as it changes $[0], causing all sort of problems
24904 # (the dirname of $[0] is not the place where we might find the
24905 # original and so on. Autoconf is especially sensitive to this).
24906 . "./$as_me.lineno"
24907 # Exit status is that of the last command.
24908 exit
24912 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24913 as_dirname=dirname
24914 else
24915 as_dirname=false
24918 ECHO_C= ECHO_N= ECHO_T=
24919 case `echo -n x` in
24920 -n*)
24921 case `echo 'x\c'` in
24922 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24923 *) ECHO_C='\c';;
24924 esac;;
24926 ECHO_N='-n';;
24927 esac
24929 if expr a : '\(a\)' >/dev/null 2>&1 &&
24930 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24931 as_expr=expr
24932 else
24933 as_expr=false
24936 rm -f conf$$ conf$$.exe conf$$.file
24937 if test -d conf$$.dir; then
24938 rm -f conf$$.dir/conf$$.file
24939 else
24940 rm -f conf$$.dir
24941 mkdir conf$$.dir
24943 echo >conf$$.file
24944 if ln -s conf$$.file conf$$ 2>/dev/null; then
24945 as_ln_s='ln -s'
24946 # ... but there are two gotchas:
24947 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24948 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24949 # In both cases, we have to default to `cp -p'.
24950 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24951 as_ln_s='cp -p'
24952 elif ln conf$$.file conf$$ 2>/dev/null; then
24953 as_ln_s=ln
24954 else
24955 as_ln_s='cp -p'
24957 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24958 rmdir conf$$.dir 2>/dev/null
24960 if mkdir -p . 2>/dev/null; then
24961 as_mkdir_p=:
24962 else
24963 test -d ./-p && rmdir ./-p
24964 as_mkdir_p=false
24967 if test -x / >/dev/null 2>&1; then
24968 as_test_x='test -x'
24969 else
24970 if ls -dL / >/dev/null 2>&1; then
24971 as_ls_L_option=L
24972 else
24973 as_ls_L_option=
24975 as_test_x='
24976 eval sh -c '\''
24977 if test -d "$1"; then
24978 test -d "$1/.";
24979 else
24980 case $1 in
24981 -*)set "./$1";;
24982 esac;
24983 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24984 ???[sx]*):;;*)false;;esac;fi
24985 '\'' sh
24988 as_executable_p=$as_test_x
24990 # Sed expression to map a string onto a valid CPP name.
24991 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24993 # Sed expression to map a string onto a valid variable name.
24994 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24997 exec 6>&1
24999 # Save the log message, to keep $[0] and so on meaningful, and to
25000 # report actual input values of CONFIG_FILES etc. instead of their
25001 # values after options handling.
25002 ac_log="
25003 This file was extended by emacs $as_me 23.1.50, which was
25004 generated by GNU Autoconf 2.61. Invocation command line was
25006 CONFIG_FILES = $CONFIG_FILES
25007 CONFIG_HEADERS = $CONFIG_HEADERS
25008 CONFIG_LINKS = $CONFIG_LINKS
25009 CONFIG_COMMANDS = $CONFIG_COMMANDS
25010 $ $0 $@
25012 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25015 _ACEOF
25017 cat >>$CONFIG_STATUS <<_ACEOF
25018 # Files that config.status was made for.
25019 config_files="$ac_config_files"
25020 config_headers="$ac_config_headers"
25021 config_commands="$ac_config_commands"
25023 _ACEOF
25025 cat >>$CONFIG_STATUS <<\_ACEOF
25026 ac_cs_usage="\
25027 \`$as_me' instantiates files from templates according to the
25028 current configuration.
25030 Usage: $0 [OPTIONS] [FILE]...
25032 -h, --help print this help, then exit
25033 -V, --version print version number and configuration settings, then exit
25034 -q, --quiet do not print progress messages
25035 -d, --debug don't remove temporary files
25036 --recheck update $as_me by reconfiguring in the same conditions
25037 --file=FILE[:TEMPLATE]
25038 instantiate the configuration file FILE
25039 --header=FILE[:TEMPLATE]
25040 instantiate the configuration header FILE
25042 Configuration files:
25043 $config_files
25045 Configuration headers:
25046 $config_headers
25048 Configuration commands:
25049 $config_commands
25051 Report bugs to <bug-autoconf@gnu.org>."
25053 _ACEOF
25054 cat >>$CONFIG_STATUS <<_ACEOF
25055 ac_cs_version="\\
25056 emacs config.status 23.1.50
25057 configured by $0, generated by GNU Autoconf 2.61,
25058 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25060 Copyright (C) 2006 Free Software Foundation, Inc.
25061 This config.status script is free software; the Free Software Foundation
25062 gives unlimited permission to copy, distribute and modify it."
25064 ac_pwd='$ac_pwd'
25065 srcdir='$srcdir'
25066 INSTALL='$INSTALL'
25067 _ACEOF
25069 cat >>$CONFIG_STATUS <<\_ACEOF
25070 # If no file are specified by the user, then we need to provide default
25071 # value. By we need to know if files were specified by the user.
25072 ac_need_defaults=:
25073 while test $# != 0
25075 case $1 in
25076 --*=*)
25077 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25078 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25079 ac_shift=:
25082 ac_option=$1
25083 ac_optarg=$2
25084 ac_shift=shift
25086 esac
25088 case $ac_option in
25089 # Handling of the options.
25090 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25091 ac_cs_recheck=: ;;
25092 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25093 echo "$ac_cs_version"; exit ;;
25094 --debug | --debu | --deb | --de | --d | -d )
25095 debug=: ;;
25096 --file | --fil | --fi | --f )
25097 $ac_shift
25098 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25099 ac_need_defaults=false;;
25100 --header | --heade | --head | --hea )
25101 $ac_shift
25102 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25103 ac_need_defaults=false;;
25104 --he | --h)
25105 # Conflict between --help and --header
25106 { echo "$as_me: error: ambiguous option: $1
25107 Try \`$0 --help' for more information." >&2
25108 { (exit 1); exit 1; }; };;
25109 --help | --hel | -h )
25110 echo "$ac_cs_usage"; exit ;;
25111 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25112 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25113 ac_cs_silent=: ;;
25115 # This is an error.
25116 -*) { echo "$as_me: error: unrecognized option: $1
25117 Try \`$0 --help' for more information." >&2
25118 { (exit 1); exit 1; }; } ;;
25120 *) ac_config_targets="$ac_config_targets $1"
25121 ac_need_defaults=false ;;
25123 esac
25124 shift
25125 done
25127 ac_configure_extra_args=
25129 if $ac_cs_silent; then
25130 exec 6>/dev/null
25131 ac_configure_extra_args="$ac_configure_extra_args --silent"
25134 _ACEOF
25135 cat >>$CONFIG_STATUS <<_ACEOF
25136 if \$ac_cs_recheck; then
25137 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25138 CONFIG_SHELL=$SHELL
25139 export CONFIG_SHELL
25140 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25143 _ACEOF
25144 cat >>$CONFIG_STATUS <<\_ACEOF
25145 exec 5>>config.log
25147 echo
25148 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25149 ## Running $as_me. ##
25150 _ASBOX
25151 echo "$ac_log"
25152 } >&5
25154 _ACEOF
25155 cat >>$CONFIG_STATUS <<_ACEOF
25157 # INIT-COMMANDS
25159 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
25161 _ACEOF
25163 cat >>$CONFIG_STATUS <<\_ACEOF
25165 # Handling of arguments.
25166 for ac_config_target in $ac_config_targets
25168 case $ac_config_target in
25169 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
25170 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25171 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
25172 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
25173 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
25174 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
25175 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
25176 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
25177 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
25178 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
25179 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
25180 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
25181 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
25183 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25184 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25185 { (exit 1); exit 1; }; };;
25186 esac
25187 done
25190 # If the user did not use the arguments to specify the items to instantiate,
25191 # then the envvar interface is used. Set only those that are not.
25192 # We use the long form for the default assignment because of an extremely
25193 # bizarre bug on SunOS 4.1.3.
25194 if $ac_need_defaults; then
25195 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25196 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25197 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25200 # Have a temporary directory for convenience. Make it in the build tree
25201 # simply because there is no reason against having it here, and in addition,
25202 # creating and moving files from /tmp can sometimes cause problems.
25203 # Hook for its removal unless debugging.
25204 # Note that there is a small window in which the directory will not be cleaned:
25205 # after its creation but before its name has been assigned to `$tmp'.
25206 $debug ||
25208 tmp=
25209 trap 'exit_status=$?
25210 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25212 trap '{ (exit 1); exit 1; }' 1 2 13 15
25214 # Create a (secure) tmp directory for tmp files.
25217 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25218 test -n "$tmp" && test -d "$tmp"
25219 } ||
25221 tmp=./conf$$-$RANDOM
25222 (umask 077 && mkdir "$tmp")
25223 } ||
25225 echo "$me: cannot create a temporary directory in ." >&2
25226 { (exit 1); exit 1; }
25230 # Set up the sed scripts for CONFIG_FILES section.
25233 # No need to generate the scripts if there are no CONFIG_FILES.
25234 # This happens for instance when ./config.status config.h
25235 if test -n "$CONFIG_FILES"; then
25237 _ACEOF
25241 ac_delim='%!_!# '
25242 for ac_last_try in false false false false false :; do
25243 cat >conf$$subs.sed <<_ACEOF
25244 SHELL!$SHELL$ac_delim
25245 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25246 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25247 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25248 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25249 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25250 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25251 exec_prefix!$exec_prefix$ac_delim
25252 prefix!$prefix$ac_delim
25253 program_transform_name!$program_transform_name$ac_delim
25254 bindir!$bindir$ac_delim
25255 sbindir!$sbindir$ac_delim
25256 libexecdir!$libexecdir$ac_delim
25257 datarootdir!$datarootdir$ac_delim
25258 datadir!$datadir$ac_delim
25259 sysconfdir!$sysconfdir$ac_delim
25260 sharedstatedir!$sharedstatedir$ac_delim
25261 localstatedir!$localstatedir$ac_delim
25262 includedir!$includedir$ac_delim
25263 oldincludedir!$oldincludedir$ac_delim
25264 docdir!$docdir$ac_delim
25265 infodir!$infodir$ac_delim
25266 htmldir!$htmldir$ac_delim
25267 dvidir!$dvidir$ac_delim
25268 pdfdir!$pdfdir$ac_delim
25269 psdir!$psdir$ac_delim
25270 libdir!$libdir$ac_delim
25271 localedir!$localedir$ac_delim
25272 mandir!$mandir$ac_delim
25273 DEFS!$DEFS$ac_delim
25274 ECHO_C!$ECHO_C$ac_delim
25275 ECHO_N!$ECHO_N$ac_delim
25276 ECHO_T!$ECHO_T$ac_delim
25277 LIBS!$LIBS$ac_delim
25278 build_alias!$build_alias$ac_delim
25279 host_alias!$host_alias$ac_delim
25280 target_alias!$target_alias$ac_delim
25281 MAINT!$MAINT$ac_delim
25282 build!$build$ac_delim
25283 build_cpu!$build_cpu$ac_delim
25284 build_vendor!$build_vendor$ac_delim
25285 build_os!$build_os$ac_delim
25286 host!$host$ac_delim
25287 host_cpu!$host_cpu$ac_delim
25288 host_vendor!$host_vendor$ac_delim
25289 host_os!$host_os$ac_delim
25290 CC!$CC$ac_delim
25291 CFLAGS!$CFLAGS$ac_delim
25292 LDFLAGS!$LDFLAGS$ac_delim
25293 CPPFLAGS!$CPPFLAGS$ac_delim
25294 ac_ct_CC!$ac_ct_CC$ac_delim
25295 EXEEXT!$EXEEXT$ac_delim
25296 OBJEXT!$OBJEXT$ac_delim
25297 CPP!$CPP$ac_delim
25298 GREP!$GREP$ac_delim
25299 EGREP!$EGREP$ac_delim
25300 LN_S!$LN_S$ac_delim
25301 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25302 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25303 INSTALL_DATA!$INSTALL_DATA$ac_delim
25304 RANLIB!$RANLIB$ac_delim
25305 INSTALL_INFO!$INSTALL_INFO$ac_delim
25306 GZIP_PROG!$GZIP_PROG$ac_delim
25307 MAKEINFO!$MAKEINFO$ac_delim
25308 LIBSOUND!$LIBSOUND$ac_delim
25309 PKG_CONFIG!$PKG_CONFIG$ac_delim
25310 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
25311 ALSA_LIBS!$ALSA_LIBS$ac_delim
25312 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
25313 SET_MAKE!$SET_MAKE$ac_delim
25314 XMKMF!$XMKMF$ac_delim
25315 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
25316 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
25317 RSVG_LIBS!$RSVG_LIBS$ac_delim
25318 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
25319 GTK_LIBS!$GTK_LIBS$ac_delim
25320 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
25321 DBUS_LIBS!$DBUS_LIBS$ac_delim
25322 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
25323 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
25324 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
25325 XFT_LIBS!$XFT_LIBS$ac_delim
25326 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
25327 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
25328 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
25329 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
25330 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
25331 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
25332 ALLOCA!$ALLOCA$ac_delim
25333 liblockfile!$liblockfile$ac_delim
25334 LIBOBJS!$LIBOBJS$ac_delim
25335 NEED_SETGID!$NEED_SETGID$ac_delim
25336 KMEM_GROUP!$KMEM_GROUP$ac_delim
25337 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
25338 GETOPT_H!$GETOPT_H$ac_delim
25339 GETOPTOBJS!$GETOPTOBJS$ac_delim
25340 version!$version$ac_delim
25341 _ACEOF
25343 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25344 break
25345 elif $ac_last_try; then
25346 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25347 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25348 { (exit 1); exit 1; }; }
25349 else
25350 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25352 done
25354 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25355 if test -n "$ac_eof"; then
25356 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25357 ac_eof=`expr $ac_eof + 1`
25360 cat >>$CONFIG_STATUS <<_ACEOF
25361 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25362 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25363 _ACEOF
25364 sed '
25365 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25366 s/^/s,@/; s/!/@,|#_!!_#|/
25369 s/'"$ac_delim"'$/,g/; t
25370 s/$/\\/; p
25371 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25372 ' >>$CONFIG_STATUS <conf$$subs.sed
25373 rm -f conf$$subs.sed
25374 cat >>$CONFIG_STATUS <<_ACEOF
25375 CEOF$ac_eof
25376 _ACEOF
25379 ac_delim='%!_!# '
25380 for ac_last_try in false false false false false :; do
25381 cat >conf$$subs.sed <<_ACEOF
25382 configuration!$configuration$ac_delim
25383 canonical!$canonical$ac_delim
25384 srcdir!$srcdir$ac_delim
25385 lispdir!$lispdir$ac_delim
25386 locallisppath!$locallisppath$ac_delim
25387 lisppath!$lisppath$ac_delim
25388 x_default_search_path!$x_default_search_path$ac_delim
25389 etcdir!$etcdir$ac_delim
25390 archlibdir!$archlibdir$ac_delim
25391 bitmapdir!$bitmapdir$ac_delim
25392 gamedir!$gamedir$ac_delim
25393 gameuser!$gameuser$ac_delim
25394 c_switch_system!$c_switch_system$ac_delim
25395 c_switch_machine!$c_switch_machine$ac_delim
25396 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
25397 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
25398 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
25399 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
25400 machfile!$machfile$ac_delim
25401 opsysfile!$opsysfile$ac_delim
25402 ns_appdir!$ns_appdir$ac_delim
25403 ns_appbindir!$ns_appbindir$ac_delim
25404 ns_appresdir!$ns_appresdir$ac_delim
25405 ns_appsrc!$ns_appsrc$ac_delim
25406 GNUSTEP_MAKEFILES!$GNUSTEP_MAKEFILES$ac_delim
25407 GNUSTEP_SYSTEM_HEADERS!$GNUSTEP_SYSTEM_HEADERS$ac_delim
25408 GNUSTEP_SYSTEM_LIBRARIES!$GNUSTEP_SYSTEM_LIBRARIES$ac_delim
25409 GNU_OBJC_CFLAGS!$GNU_OBJC_CFLAGS$ac_delim
25410 LIB_SRC_EXTRA_INSTALLABLES!$LIB_SRC_EXTRA_INSTALLABLES$ac_delim
25411 LTLIBOBJS!$LTLIBOBJS$ac_delim
25412 _ACEOF
25414 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 30; then
25415 break
25416 elif $ac_last_try; then
25417 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25418 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25419 { (exit 1); exit 1; }; }
25420 else
25421 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25423 done
25425 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25426 if test -n "$ac_eof"; then
25427 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25428 ac_eof=`expr $ac_eof + 1`
25431 cat >>$CONFIG_STATUS <<_ACEOF
25432 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25433 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25434 _ACEOF
25435 sed '
25436 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25437 s/^/s,@/; s/!/@,|#_!!_#|/
25440 s/'"$ac_delim"'$/,g/; t
25441 s/$/\\/; p
25442 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25443 ' >>$CONFIG_STATUS <conf$$subs.sed
25444 rm -f conf$$subs.sed
25445 cat >>$CONFIG_STATUS <<_ACEOF
25446 :end
25447 s/|#_!!_#|//g
25448 CEOF$ac_eof
25449 _ACEOF
25452 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25453 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25454 # trailing colons and then remove the whole line if VPATH becomes empty
25455 # (actually we leave an empty line to preserve line numbers).
25456 if test "x$srcdir" = x.; then
25457 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25458 s/:*\$(srcdir):*/:/
25459 s/:*\${srcdir}:*/:/
25460 s/:*@srcdir@:*/:/
25461 s/^\([^=]*=[ ]*\):*/\1/
25462 s/:*$//
25463 s/^[^=]*=[ ]*$//
25467 cat >>$CONFIG_STATUS <<\_ACEOF
25468 fi # test -n "$CONFIG_FILES"
25471 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
25473 case $ac_tag in
25474 :[FHLC]) ac_mode=$ac_tag; continue;;
25475 esac
25476 case $ac_mode$ac_tag in
25477 :[FHL]*:*);;
25478 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25479 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25480 { (exit 1); exit 1; }; };;
25481 :[FH]-) ac_tag=-:-;;
25482 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25483 esac
25484 ac_save_IFS=$IFS
25485 IFS=:
25486 set x $ac_tag
25487 IFS=$ac_save_IFS
25488 shift
25489 ac_file=$1
25490 shift
25492 case $ac_mode in
25493 :L) ac_source=$1;;
25494 :[FH])
25495 ac_file_inputs=
25496 for ac_f
25498 case $ac_f in
25499 -) ac_f="$tmp/stdin";;
25500 *) # Look for the file first in the build tree, then in the source tree
25501 # (if the path is not absolute). The absolute path cannot be DOS-style,
25502 # because $ac_f cannot contain `:'.
25503 test -f "$ac_f" ||
25504 case $ac_f in
25505 [\\/$]*) false;;
25506 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25507 esac ||
25508 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25509 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25510 { (exit 1); exit 1; }; };;
25511 esac
25512 ac_file_inputs="$ac_file_inputs $ac_f"
25513 done
25515 # Let's still pretend it is `configure' which instantiates (i.e., don't
25516 # use $as_me), people would be surprised to read:
25517 # /* config.h. Generated by config.status. */
25518 configure_input="Generated from "`IFS=:
25519 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25520 if test x"$ac_file" != x-; then
25521 configure_input="$ac_file. $configure_input"
25522 { echo "$as_me:$LINENO: creating $ac_file" >&5
25523 echo "$as_me: creating $ac_file" >&6;}
25526 case $ac_tag in
25527 *:-:* | *:-) cat >"$tmp/stdin";;
25528 esac
25530 esac
25532 ac_dir=`$as_dirname -- "$ac_file" ||
25533 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25534 X"$ac_file" : 'X\(//\)[^/]' \| \
25535 X"$ac_file" : 'X\(//\)$' \| \
25536 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25537 echo X"$ac_file" |
25538 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25539 s//\1/
25542 /^X\(\/\/\)[^/].*/{
25543 s//\1/
25546 /^X\(\/\/\)$/{
25547 s//\1/
25550 /^X\(\/\).*/{
25551 s//\1/
25554 s/.*/./; q'`
25555 { as_dir="$ac_dir"
25556 case $as_dir in #(
25557 -*) as_dir=./$as_dir;;
25558 esac
25559 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25560 as_dirs=
25561 while :; do
25562 case $as_dir in #(
25563 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25564 *) as_qdir=$as_dir;;
25565 esac
25566 as_dirs="'$as_qdir' $as_dirs"
25567 as_dir=`$as_dirname -- "$as_dir" ||
25568 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25569 X"$as_dir" : 'X\(//\)[^/]' \| \
25570 X"$as_dir" : 'X\(//\)$' \| \
25571 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25572 echo X"$as_dir" |
25573 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25574 s//\1/
25577 /^X\(\/\/\)[^/].*/{
25578 s//\1/
25581 /^X\(\/\/\)$/{
25582 s//\1/
25585 /^X\(\/\).*/{
25586 s//\1/
25589 s/.*/./; q'`
25590 test -d "$as_dir" && break
25591 done
25592 test -z "$as_dirs" || eval "mkdir $as_dirs"
25593 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25594 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25595 { (exit 1); exit 1; }; }; }
25596 ac_builddir=.
25598 case "$ac_dir" in
25599 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25601 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25602 # A ".." for each directory in $ac_dir_suffix.
25603 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25604 case $ac_top_builddir_sub in
25605 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25606 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25607 esac ;;
25608 esac
25609 ac_abs_top_builddir=$ac_pwd
25610 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25611 # for backward compatibility:
25612 ac_top_builddir=$ac_top_build_prefix
25614 case $srcdir in
25615 .) # We are building in place.
25616 ac_srcdir=.
25617 ac_top_srcdir=$ac_top_builddir_sub
25618 ac_abs_top_srcdir=$ac_pwd ;;
25619 [\\/]* | ?:[\\/]* ) # Absolute name.
25620 ac_srcdir=$srcdir$ac_dir_suffix;
25621 ac_top_srcdir=$srcdir
25622 ac_abs_top_srcdir=$srcdir ;;
25623 *) # Relative name.
25624 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25625 ac_top_srcdir=$ac_top_build_prefix$srcdir
25626 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25627 esac
25628 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25631 case $ac_mode in
25634 # CONFIG_FILE
25637 case $INSTALL in
25638 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25639 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25640 esac
25641 _ACEOF
25643 cat >>$CONFIG_STATUS <<\_ACEOF
25644 # If the template does not know about datarootdir, expand it.
25645 # FIXME: This hack should be removed a few years after 2.60.
25646 ac_datarootdir_hack=; ac_datarootdir_seen=
25648 case `sed -n '/datarootdir/ {
25652 /@datadir@/p
25653 /@docdir@/p
25654 /@infodir@/p
25655 /@localedir@/p
25656 /@mandir@/p
25657 ' $ac_file_inputs` in
25658 *datarootdir*) ac_datarootdir_seen=yes;;
25659 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25660 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25661 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25662 _ACEOF
25663 cat >>$CONFIG_STATUS <<_ACEOF
25664 ac_datarootdir_hack='
25665 s&@datadir@&$datadir&g
25666 s&@docdir@&$docdir&g
25667 s&@infodir@&$infodir&g
25668 s&@localedir@&$localedir&g
25669 s&@mandir@&$mandir&g
25670 s&\\\${datarootdir}&$datarootdir&g' ;;
25671 esac
25672 _ACEOF
25674 # Neutralize VPATH when `$srcdir' = `.'.
25675 # Shell code in configure.ac might set extrasub.
25676 # FIXME: do we really want to maintain this feature?
25677 cat >>$CONFIG_STATUS <<_ACEOF
25678 sed "$ac_vpsub
25679 $extrasub
25680 _ACEOF
25681 cat >>$CONFIG_STATUS <<\_ACEOF
25683 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25684 s&@configure_input@&$configure_input&;t t
25685 s&@top_builddir@&$ac_top_builddir_sub&;t t
25686 s&@srcdir@&$ac_srcdir&;t t
25687 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25688 s&@top_srcdir@&$ac_top_srcdir&;t t
25689 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25690 s&@builddir@&$ac_builddir&;t t
25691 s&@abs_builddir@&$ac_abs_builddir&;t t
25692 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25693 s&@INSTALL@&$ac_INSTALL&;t t
25694 $ac_datarootdir_hack
25695 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25697 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25698 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25699 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25700 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25701 which seems to be undefined. Please make sure it is defined." >&5
25702 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25703 which seems to be undefined. Please make sure it is defined." >&2;}
25705 rm -f "$tmp/stdin"
25706 case $ac_file in
25707 -) cat "$tmp/out"; rm -f "$tmp/out";;
25708 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25709 esac
25713 # CONFIG_HEADER
25715 _ACEOF
25717 # Transform confdefs.h into a sed script `conftest.defines', that
25718 # substitutes the proper values into config.h.in to produce config.h.
25719 rm -f conftest.defines conftest.tail
25720 # First, append a space to every undef/define line, to ease matching.
25721 echo 's/$/ /' >conftest.defines
25722 # Then, protect against being on the right side of a sed subst, or in
25723 # an unquoted here document, in config.status. If some macros were
25724 # called several times there might be several #defines for the same
25725 # symbol, which is useless. But do not sort them, since the last
25726 # AC_DEFINE must be honored.
25727 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25728 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25729 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25730 # PARAMS is the parameter list in the macro definition--in most cases, it's
25731 # just an empty string.
25732 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25733 ac_dB='\\)[ (].*,\\1define\\2'
25734 ac_dC=' '
25735 ac_dD=' ,'
25737 uniq confdefs.h |
25738 sed -n '
25739 t rset
25740 :rset
25741 s/^[ ]*#[ ]*define[ ][ ]*//
25742 t ok
25745 s/[\\&,]/\\&/g
25746 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25747 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25748 ' >>conftest.defines
25750 # Remove the space that was appended to ease matching.
25751 # Then replace #undef with comments. This is necessary, for
25752 # example, in the case of _POSIX_SOURCE, which is predefined and required
25753 # on some systems where configure will not decide to define it.
25754 # (The regexp can be short, since the line contains either #define or #undef.)
25755 echo 's/ $//
25756 s,^[ #]*u.*,/* & */,' >>conftest.defines
25758 # Break up conftest.defines:
25759 ac_max_sed_lines=50
25761 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25762 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25763 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25764 # et cetera.
25765 ac_in='$ac_file_inputs'
25766 ac_out='"$tmp/out1"'
25767 ac_nxt='"$tmp/out2"'
25769 while :
25771 # Write a here document:
25772 cat >>$CONFIG_STATUS <<_ACEOF
25773 # First, check the format of the line:
25774 cat >"\$tmp/defines.sed" <<\\CEOF
25775 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25776 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25778 :def
25779 _ACEOF
25780 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25781 echo 'CEOF
25782 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25783 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25784 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25785 grep . conftest.tail >/dev/null || break
25786 rm -f conftest.defines
25787 mv conftest.tail conftest.defines
25788 done
25789 rm -f conftest.defines conftest.tail
25791 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25792 cat >>$CONFIG_STATUS <<\_ACEOF
25793 if test x"$ac_file" != x-; then
25794 echo "/* $configure_input */" >"$tmp/config.h"
25795 cat "$ac_result" >>"$tmp/config.h"
25796 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25797 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25798 echo "$as_me: $ac_file is unchanged" >&6;}
25799 else
25800 rm -f $ac_file
25801 mv "$tmp/config.h" $ac_file
25803 else
25804 echo "/* $configure_input */"
25805 cat "$ac_result"
25807 rm -f "$tmp/out12"
25810 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25811 echo "$as_me: executing $ac_file commands" >&6;}
25813 esac
25816 case $ac_file$ac_mode in
25817 "default":C)
25819 ### Make the necessary directories, if they don't exist.
25820 for dir in etc lisp ; do
25821 test -d ${dir} || mkdir ${dir}
25822 done
25824 # Build src/Makefile from ${srcdir}/src/Makefile.c
25825 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25826 # This must be done after src/config.h is built, since we rely on that file.
25828 echo creating src/epaths.h
25829 ${MAKE-make} epaths-force
25831 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25832 # `..' to `. .' unless invoked with -traditional
25834 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
25835 CPPFLAGS="$CPPFLAGS -traditional"
25838 echo creating lib-src/Makefile
25839 ( cd lib-src
25840 rm -f junk.c junk1.c junk2.c
25841 sed -e '/start of cpp stuff/q' \
25842 < Makefile.c > junk1.c
25843 sed -e '1,/start of cpp stuff/d'\
25844 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25845 < Makefile.c > junk.c
25846 $CPP $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25847 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25848 cat junk1.c junk2.c > Makefile.new
25849 rm -f junk.c junk1.c junk2.c
25850 chmod 444 Makefile.new
25851 mv -f Makefile.new Makefile
25854 echo creating src/Makefile
25855 ( cd src
25856 rm -f junk.c junk1.c junk2.c
25857 sed -e '/start of cpp stuff/q' \
25858 < Makefile.c > junk1.c
25859 sed -e '1,/start of cpp stuff/d'\
25860 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25861 < Makefile.c > junk.c
25862 $CPP $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25863 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25864 cat junk1.c junk2.c > Makefile.new
25865 rm -f junk.c junk1.c junk2.c
25866 chmod 444 Makefile.new
25867 mv -f Makefile.new Makefile
25870 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25871 echo creating src/.gdbinit
25872 echo source $srcdir/src/.gdbinit > src/.gdbinit
25877 esac
25878 done # for ac_tag
25881 { (exit 0); exit 0; }
25882 _ACEOF
25883 chmod +x $CONFIG_STATUS
25884 ac_clean_files=$ac_clean_files_save
25887 # configure is writing to config.log, and then calls config.status.
25888 # config.status does its own redirection, appending to config.log.
25889 # Unfortunately, on DOS this fails, as config.log is still kept open
25890 # by configure, so config.status won't be able to write to it; its
25891 # output is simply discarded. So we exec the FD to /dev/null,
25892 # effectively closing config.log, so it can be properly (re)opened and
25893 # appended to by config.status. When coming back to configure, we
25894 # need to make the FD available again.
25895 if test "$no_create" != yes; then
25896 ac_cs_success=:
25897 ac_config_status_args=
25898 test "$silent" = yes &&
25899 ac_config_status_args="$ac_config_status_args --quiet"
25900 exec 5>/dev/null
25901 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25902 exec 5>>config.log
25903 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25904 # would make configure fail if this is the last instruction.
25905 $ac_cs_success || { (exit 1); exit 1; }