Checked anti.texi, errors.texi, and maps.texi.
[emacs.git] / configure
blobd39a8e032394f9cf241134cfc7ba876cf4f91b9b
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for emacs 23.0.93.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560 # Initializations.
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
573 PACKAGE_NAME='emacs'
574 PACKAGE_TARNAME='emacs'
575 PACKAGE_VERSION='23.0.93'
576 PACKAGE_STRING='emacs 23.0.93'
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.0.93 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.0.93:";;
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 --disable-largefile omit support for large files
1351 Optional Packages:
1352 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1353 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1354 --without-pop don't support POP mail retrieval with movemail
1355 --with-kerberos support Kerberos-authenticated POP
1356 --with-kerberos5 support Kerberos version 5 authenticated POP
1357 --with-hesiod support Hesiod to get the POP server host
1358 --without-sound don't compile with sound support
1359 --without-sync-input process async input synchronously
1360 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1361 motif, gtk, no)
1362 --without-xpm don't compile with XPM image support
1363 --without-jpeg don't compile with JPEG image support
1364 --without-tiff don't compile with TIFF image support
1365 --without-gif don't compile with GIF image support
1366 --without-png don't compile with PNG image support
1367 --without-rsvg don't compile with SVG image support
1368 --without-xft don't use XFT for anti aliased fonts
1369 --without-libotf don't use libotf for OpenType font support
1370 --without-m17n-flt don't use m17n-flt for text shaping
1371 --without-toolkit-scroll-bars
1372 don't use Motif or Xaw3d scroll bars
1373 --without-xaw3d don't use Xaw3d
1374 --without-xim don't use X11 XIM
1375 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1376 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1377 console
1378 --without-dbus don't compile with D-Bus support
1379 --without-makeinfo don't require makeinfo for building manuals
1381 --with-pkg-config-prog=PATH
1382 path to pkg-config for finding GTK and librsvg
1383 --with-gnustep-conf=PATH
1384 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1385 or /etc/GNUstep/GNUstep.conf
1386 --with-x use the X Window System
1388 Some influential environment variables:
1389 CC C compiler command
1390 CFLAGS C compiler flags
1391 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1392 nonstandard directory <lib dir>
1393 LIBS libraries to pass to the linker, e.g. -l<library>
1394 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1395 you have headers in a nonstandard directory <include dir>
1396 CPP C preprocessor
1397 XMKMF Path to xmkmf, Makefile generator for X Window System
1399 Use these variables to override the choices made by `configure' or to help
1400 it to find libraries and programs with nonstandard names/locations.
1402 _ACEOF
1403 ac_status=$?
1406 if test "$ac_init_help" = "recursive"; then
1407 # If there are subdirs, report their specific --help.
1408 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1409 test -d "$ac_dir" || continue
1410 ac_builddir=.
1412 case "$ac_dir" in
1413 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1415 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1416 # A ".." for each directory in $ac_dir_suffix.
1417 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1418 case $ac_top_builddir_sub in
1419 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1420 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1421 esac ;;
1422 esac
1423 ac_abs_top_builddir=$ac_pwd
1424 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1425 # for backward compatibility:
1426 ac_top_builddir=$ac_top_build_prefix
1428 case $srcdir in
1429 .) # We are building in place.
1430 ac_srcdir=.
1431 ac_top_srcdir=$ac_top_builddir_sub
1432 ac_abs_top_srcdir=$ac_pwd ;;
1433 [\\/]* | ?:[\\/]* ) # Absolute name.
1434 ac_srcdir=$srcdir$ac_dir_suffix;
1435 ac_top_srcdir=$srcdir
1436 ac_abs_top_srcdir=$srcdir ;;
1437 *) # Relative name.
1438 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1439 ac_top_srcdir=$ac_top_build_prefix$srcdir
1440 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1441 esac
1442 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1444 cd "$ac_dir" || { ac_status=$?; continue; }
1445 # Check for guested configure.
1446 if test -f "$ac_srcdir/configure.gnu"; then
1447 echo &&
1448 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1449 elif test -f "$ac_srcdir/configure"; then
1450 echo &&
1451 $SHELL "$ac_srcdir/configure" --help=recursive
1452 else
1453 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1454 fi || ac_status=$?
1455 cd "$ac_pwd" || { ac_status=$?; break; }
1456 done
1459 test -n "$ac_init_help" && exit $ac_status
1460 if $ac_init_version; then
1461 cat <<\_ACEOF
1462 emacs configure 23.0.93
1463 generated by GNU Autoconf 2.61
1465 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1466 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1467 This configure script is free software; the Free Software Foundation
1468 gives unlimited permission to copy, distribute and modify it.
1469 _ACEOF
1470 exit
1472 cat >config.log <<_ACEOF
1473 This file contains any messages produced by compilers while
1474 running configure, to aid debugging if configure makes a mistake.
1476 It was created by emacs $as_me 23.0.93, which was
1477 generated by GNU Autoconf 2.61. Invocation command line was
1479 $ $0 $@
1481 _ACEOF
1482 exec 5>>config.log
1484 cat <<_ASUNAME
1485 ## --------- ##
1486 ## Platform. ##
1487 ## --------- ##
1489 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1490 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1491 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1492 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1493 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1495 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1496 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1498 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1499 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1500 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1501 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1502 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1503 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1504 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1506 _ASUNAME
1508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1509 for as_dir in $PATH
1511 IFS=$as_save_IFS
1512 test -z "$as_dir" && as_dir=.
1513 echo "PATH: $as_dir"
1514 done
1515 IFS=$as_save_IFS
1517 } >&5
1519 cat >&5 <<_ACEOF
1522 ## ----------- ##
1523 ## Core tests. ##
1524 ## ----------- ##
1526 _ACEOF
1529 # Keep a trace of the command line.
1530 # Strip out --no-create and --no-recursion so they do not pile up.
1531 # Strip out --silent because we don't want to record it for future runs.
1532 # Also quote any args containing shell meta-characters.
1533 # Make two passes to allow for proper duplicate-argument suppression.
1534 ac_configure_args=
1535 ac_configure_args0=
1536 ac_configure_args1=
1537 ac_must_keep_next=false
1538 for ac_pass in 1 2
1540 for ac_arg
1542 case $ac_arg in
1543 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1544 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1545 | -silent | --silent | --silen | --sile | --sil)
1546 continue ;;
1547 *\'*)
1548 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1549 esac
1550 case $ac_pass in
1551 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1553 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1554 if test $ac_must_keep_next = true; then
1555 ac_must_keep_next=false # Got value, back to normal.
1556 else
1557 case $ac_arg in
1558 *=* | --config-cache | -C | -disable-* | --disable-* \
1559 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1560 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1561 | -with-* | --with-* | -without-* | --without-* | --x)
1562 case "$ac_configure_args0 " in
1563 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1564 esac
1566 -* ) ac_must_keep_next=true ;;
1567 esac
1569 ac_configure_args="$ac_configure_args '$ac_arg'"
1571 esac
1572 done
1573 done
1574 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1575 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1577 # When interrupted or exit'd, cleanup temporary files, and complete
1578 # config.log. We remove comments because anyway the quotes in there
1579 # would cause problems or look ugly.
1580 # WARNING: Use '\'' to represent an apostrophe within the trap.
1581 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1582 trap 'exit_status=$?
1583 # Save into config.log some information that might help in debugging.
1585 echo
1587 cat <<\_ASBOX
1588 ## ---------------- ##
1589 ## Cache variables. ##
1590 ## ---------------- ##
1591 _ASBOX
1592 echo
1593 # The following way of writing the cache mishandles newlines in values,
1595 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1596 eval ac_val=\$$ac_var
1597 case $ac_val in #(
1598 *${as_nl}*)
1599 case $ac_var in #(
1600 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1601 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1602 esac
1603 case $ac_var in #(
1604 _ | IFS | as_nl) ;; #(
1605 *) $as_unset $ac_var ;;
1606 esac ;;
1607 esac
1608 done
1609 (set) 2>&1 |
1610 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1611 *${as_nl}ac_space=\ *)
1612 sed -n \
1613 "s/'\''/'\''\\\\'\'''\''/g;
1614 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1615 ;; #(
1617 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1619 esac |
1620 sort
1622 echo
1624 cat <<\_ASBOX
1625 ## ----------------- ##
1626 ## Output variables. ##
1627 ## ----------------- ##
1628 _ASBOX
1629 echo
1630 for ac_var in $ac_subst_vars
1632 eval ac_val=\$$ac_var
1633 case $ac_val in
1634 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1635 esac
1636 echo "$ac_var='\''$ac_val'\''"
1637 done | sort
1638 echo
1640 if test -n "$ac_subst_files"; then
1641 cat <<\_ASBOX
1642 ## ------------------- ##
1643 ## File substitutions. ##
1644 ## ------------------- ##
1645 _ASBOX
1646 echo
1647 for ac_var in $ac_subst_files
1649 eval ac_val=\$$ac_var
1650 case $ac_val in
1651 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1652 esac
1653 echo "$ac_var='\''$ac_val'\''"
1654 done | sort
1655 echo
1658 if test -s confdefs.h; then
1659 cat <<\_ASBOX
1660 ## ----------- ##
1661 ## confdefs.h. ##
1662 ## ----------- ##
1663 _ASBOX
1664 echo
1665 cat confdefs.h
1666 echo
1668 test "$ac_signal" != 0 &&
1669 echo "$as_me: caught signal $ac_signal"
1670 echo "$as_me: exit $exit_status"
1671 } >&5
1672 rm -f core *.core core.conftest.* &&
1673 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1674 exit $exit_status
1676 for ac_signal in 1 2 13 15; do
1677 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1678 done
1679 ac_signal=0
1681 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1682 rm -f -r conftest* confdefs.h
1684 # Predefined preprocessor variables.
1686 cat >>confdefs.h <<_ACEOF
1687 #define PACKAGE_NAME "$PACKAGE_NAME"
1688 _ACEOF
1691 cat >>confdefs.h <<_ACEOF
1692 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1693 _ACEOF
1696 cat >>confdefs.h <<_ACEOF
1697 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1698 _ACEOF
1701 cat >>confdefs.h <<_ACEOF
1702 #define PACKAGE_STRING "$PACKAGE_STRING"
1703 _ACEOF
1706 cat >>confdefs.h <<_ACEOF
1707 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1708 _ACEOF
1711 # Let the site file select an alternate cache file if it wants to.
1712 # Prefer explicitly selected file to automatically selected ones.
1713 if test -n "$CONFIG_SITE"; then
1714 set x "$CONFIG_SITE"
1715 elif test "x$prefix" != xNONE; then
1716 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1717 else
1718 set x "$ac_default_prefix/share/config.site" \
1719 "$ac_default_prefix/etc/config.site"
1721 shift
1722 for ac_site_file
1724 if test -r "$ac_site_file"; then
1725 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1726 echo "$as_me: loading site script $ac_site_file" >&6;}
1727 sed 's/^/| /' "$ac_site_file" >&5
1728 . "$ac_site_file"
1730 done
1732 if test -r "$cache_file"; then
1733 # Some versions of bash will fail to source /dev/null (special
1734 # files actually), so we avoid doing that.
1735 if test -f "$cache_file"; then
1736 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1737 echo "$as_me: loading cache $cache_file" >&6;}
1738 case $cache_file in
1739 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1740 *) . "./$cache_file";;
1741 esac
1743 else
1744 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1745 echo "$as_me: creating cache $cache_file" >&6;}
1746 >$cache_file
1749 ac_header_list="$ac_header_list sys/time.h"
1750 ac_header_list="$ac_header_list unistd.h"
1751 ac_func_list="$ac_func_list alarm"
1752 # Check that the precious variables saved in the cache have kept the same
1753 # value.
1754 ac_cache_corrupted=false
1755 for ac_var in $ac_precious_vars; do
1756 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1757 eval ac_new_set=\$ac_env_${ac_var}_set
1758 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1759 eval ac_new_val=\$ac_env_${ac_var}_value
1760 case $ac_old_set,$ac_new_set in
1761 set,)
1762 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1763 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1764 ac_cache_corrupted=: ;;
1765 ,set)
1766 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1767 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1768 ac_cache_corrupted=: ;;
1769 ,);;
1771 if test "x$ac_old_val" != "x$ac_new_val"; then
1772 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1773 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1774 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1775 echo "$as_me: former value: $ac_old_val" >&2;}
1776 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1777 echo "$as_me: current value: $ac_new_val" >&2;}
1778 ac_cache_corrupted=:
1779 fi;;
1780 esac
1781 # Pass precious variables to config.status.
1782 if test "$ac_new_set" = set; then
1783 case $ac_new_val in
1784 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1785 *) ac_arg=$ac_var=$ac_new_val ;;
1786 esac
1787 case " $ac_configure_args " in
1788 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1789 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1790 esac
1792 done
1793 if $ac_cache_corrupted; then
1794 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1795 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1796 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1797 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1798 { (exit 1); exit 1; }; }
1825 ac_ext=c
1826 ac_cpp='$CPP $CPPFLAGS'
1827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1832 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1836 test "$program_prefix" != NONE &&
1837 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1838 # Use a double $ so make ignores it.
1839 test "$program_suffix" != NONE &&
1840 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1841 # Double any \ or $. echo might interpret backslashes.
1842 # By default was `s,x,x', remove it if useless.
1843 cat <<\_ACEOF >conftest.sed
1844 s/[\\$]/&&/g;s/;s,x,x,$//
1845 _ACEOF
1846 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1847 rm -f conftest.sed
1850 lispdir='${datadir}/emacs/${version}/lisp'
1851 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1852 '${datadir}/emacs/site-lisp'
1853 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1854 etcdir='${datadir}/emacs/${version}/etc'
1855 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1856 docdir='${datadir}/emacs/${version}/etc'
1857 gamedir='${localstatedir}/games/emacs'
1859 gameuser=games
1864 # Check whether --with-pop was given.
1865 if test "${with_pop+set}" = set; then
1866 withval=$with_pop;
1867 else
1868 with_pop=yes
1871 if test "$with_pop" = yes; then
1872 cat >>confdefs.h <<\_ACEOF
1873 #define MAIL_USE_POP 1
1874 _ACEOF
1880 # Check whether --with-kerberos was given.
1881 if test "${with_kerberos+set}" = set; then
1882 withval=$with_kerberos;
1883 else
1884 with_kerberos=no
1887 if test "$with_kerberos" != no; then
1888 cat >>confdefs.h <<\_ACEOF
1889 #define KERBEROS 1
1890 _ACEOF
1896 # Check whether --with-kerberos5 was given.
1897 if test "${with_kerberos5+set}" = set; then
1898 withval=$with_kerberos5;
1899 else
1900 with_kerberos5=no
1903 if test "${with_kerberos5}" != no; then
1904 if test "${with_kerberos}" = no; then
1905 with_kerberos=yes
1906 cat >>confdefs.h <<\_ACEOF
1907 #define KERBEROS 1
1908 _ACEOF
1912 cat >>confdefs.h <<\_ACEOF
1913 #define KERBEROS5 1
1914 _ACEOF
1919 # Check whether --with-hesiod was given.
1920 if test "${with_hesiod+set}" = set; then
1921 withval=$with_hesiod;
1922 else
1923 with_hesiod=no
1926 if test "$with_hesiod" != no; then
1928 cat >>confdefs.h <<\_ACEOF
1929 #define HESIOD 1
1930 _ACEOF
1935 # Check whether --with-sound was given.
1936 if test "${with_sound+set}" = set; then
1937 withval=$with_sound;
1938 else
1939 with_sound=yes
1944 # Check whether --with-sync-input was given.
1945 if test "${with_sync_input+set}" = set; then
1946 withval=$with_sync_input;
1947 else
1948 with_sync_input=yes
1951 if test "$with_sync_input" = yes; then
1953 cat >>confdefs.h <<\_ACEOF
1954 #define SYNC_INPUT 1
1955 _ACEOF
1960 # Check whether --with-x-toolkit was given.
1961 if test "${with_x_toolkit+set}" = set; then
1962 withval=$with_x_toolkit; case "${withval}" in
1963 y | ye | yes ) val=gtk ;;
1964 n | no ) val=no ;;
1965 l | lu | luc | luci | lucid ) val=lucid ;;
1966 a | at | ath | athe | athen | athena ) val=athena ;;
1967 m | mo | mot | moti | motif ) val=motif ;;
1968 g | gt | gtk ) val=gtk ;;
1970 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1971 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1972 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1973 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1974 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1975 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1976 { (exit 1); exit 1; }; }
1978 esac
1979 with_x_toolkit=$val
1985 # Check whether --with-xpm was given.
1986 if test "${with_xpm+set}" = set; then
1987 withval=$with_xpm;
1988 else
1989 with_xpm=yes
1993 # Check whether --with-jpeg was given.
1994 if test "${with_jpeg+set}" = set; then
1995 withval=$with_jpeg;
1996 else
1997 with_jpeg=yes
2001 # Check whether --with-tiff was given.
2002 if test "${with_tiff+set}" = set; then
2003 withval=$with_tiff;
2004 else
2005 with_tiff=yes
2009 # Check whether --with-gif was given.
2010 if test "${with_gif+set}" = set; then
2011 withval=$with_gif;
2012 else
2013 with_gif=yes
2017 # Check whether --with-png was given.
2018 if test "${with_png+set}" = set; then
2019 withval=$with_png;
2020 else
2021 with_png=yes
2025 # Check whether --with-rsvg was given.
2026 if test "${with_rsvg+set}" = set; then
2027 withval=$with_rsvg;
2028 else
2029 with_rsvg=yes
2034 # Check whether --with-xft was given.
2035 if test "${with_xft+set}" = set; then
2036 withval=$with_xft;
2037 else
2038 with_xft=yes
2042 # Check whether --with-libotf was given.
2043 if test "${with_libotf+set}" = set; then
2044 withval=$with_libotf;
2045 else
2046 with_libotf=yes
2050 # Check whether --with-m17n-flt was given.
2051 if test "${with_m17n_flt+set}" = set; then
2052 withval=$with_m17n_flt;
2053 else
2054 with_m17n_flt=yes
2059 # Check whether --with-toolkit-scroll-bars was given.
2060 if test "${with_toolkit_scroll_bars+set}" = set; then
2061 withval=$with_toolkit_scroll_bars;
2062 else
2063 with_toolkit_scroll_bars=yes
2067 # Check whether --with-xaw3d was given.
2068 if test "${with_xaw3d+set}" = set; then
2069 withval=$with_xaw3d;
2070 else
2071 with_xaw3d=yes
2075 # Check whether --with-xim was given.
2076 if test "${with_xim+set}" = set; then
2077 withval=$with_xim;
2078 else
2079 with_xim=yes
2083 # Check whether --with-ns was given.
2084 if test "${with_ns+set}" = set; then
2085 withval=$with_ns;
2086 else
2087 with_ns=no
2092 # Check whether --with-gpm was given.
2093 if test "${with_gpm+set}" = set; then
2094 withval=$with_gpm;
2095 else
2096 with_gpm=yes
2100 # Check whether --with-dbus was given.
2101 if test "${with_dbus+set}" = set; then
2102 withval=$with_dbus;
2103 else
2104 with_dbus=yes
2108 ## For the times when you want to build Emacs but don't have
2109 ## a suitable makeinfo, and can live without the manuals.
2111 # Check whether --with-makeinfo was given.
2112 if test "${with_makeinfo+set}" = set; then
2113 withval=$with_makeinfo;
2114 else
2115 with_makeinfo=yes
2120 # Check whether --with-gtk was given.
2121 if test "${with_gtk+set}" = set; then
2122 withval=$with_gtk; { { echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2123 specify a toolkit." >&5
2124 echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2125 specify a toolkit." >&2;}
2126 { (exit 1); exit 1; }; }
2131 # Check whether --with-gcc was given.
2132 if test "${with_gcc+set}" = set; then
2133 withval=$with_gcc; { { echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2134 variable to specify a compiler." >&5
2135 echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2136 variable to specify a compiler." >&2;}
2137 { (exit 1); exit 1; }; }
2142 # Check whether --with-pkg-config-prog was given.
2143 if test "${with_pkg_config_prog+set}" = set; then
2144 withval=$with_pkg_config_prog;
2147 if test "X${with_pkg_config_prog}" != X; then
2148 if test "${with_pkg_config_prog}" != yes; then
2149 PKG_CONFIG="${with_pkg_config_prog}"
2154 # Check whether --with-gnustep-conf was given.
2155 if test "${with_gnustep_conf+set}" = set; then
2156 withval=$with_gnustep_conf;
2159 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2160 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2161 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2162 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2164 # Check whether --enable-ns-self-contained was given.
2165 if test "${enable_ns_self_contained+set}" = set; then
2166 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2167 else
2168 EN_NS_SELF_CONTAINED=yes
2172 # Check whether --enable-asserts was given.
2173 if test "${enable_asserts+set}" = set; then
2174 enableval=$enable_asserts; USE_XASSERTS=$enableval
2175 else
2176 USE_XASSERTS=no
2180 # Check whether --enable-maintainer-mode was given.
2181 if test "${enable_maintainer_mode+set}" = set; then
2182 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2183 else
2184 USE_MAINTAINER_MODE=no
2187 if test $USE_MAINTAINER_MODE = yes; then
2188 MAINT=
2189 else
2190 MAINT=#
2194 # Check whether --enable-locallisppath was given.
2195 if test "${enable_locallisppath+set}" = set; then
2196 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2197 locallisppath=
2198 elif test "${enableval}" != "yes"; then
2199 locallisppath=${enableval}
2204 #### Make srcdir absolute, if it isn't already. It's important to
2205 #### avoid running the path through pwd unnecessarily, since pwd can
2206 #### give you automounter prefixes, which can go away. We do all this
2207 #### so Emacs can find its files when run uninstalled.
2208 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2209 unset CDPATH
2210 case "${srcdir}" in
2211 /* ) ;;
2213 ## We may be able to use the $PWD environment variable to make this
2214 ## absolute. But sometimes PWD is inaccurate.
2215 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2216 ## but that tested only for a well-formed and valid PWD,
2217 ## it did not object when PWD was well-formed and valid but just wrong.
2218 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2219 then
2220 srcdir="$PWD"
2221 else
2222 srcdir="`(cd ${srcdir}; pwd)`"
2225 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2226 esac
2228 #### Check if the source directory already has a configured system in it.
2229 if test `pwd` != `(cd ${srcdir} && pwd)` \
2230 && test -f "${srcdir}/src/config.h" ; then
2231 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2232 as a build directory right now; it has been configured in its own
2233 right. To configure in another directory as well, you MUST
2234 use GNU make. If you do not have GNU make, then you must
2235 now do \`make distclean' in ${srcdir},
2236 and then run $0 again." >&5
2237 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2238 as a build directory right now; it has been configured in its own
2239 right. To configure in another directory as well, you MUST
2240 use GNU make. If you do not have GNU make, then you must
2241 now do \`make distclean' in ${srcdir},
2242 and then run $0 again." >&2;}
2245 #### Given the configuration name, set machfile and opsysfile to the
2246 #### names of the m/*.h and s/*.h files we should use.
2248 ### Canonicalize the configuration name.
2250 ac_aux_dir=
2251 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2252 if test -f "$ac_dir/install-sh"; then
2253 ac_aux_dir=$ac_dir
2254 ac_install_sh="$ac_aux_dir/install-sh -c"
2255 break
2256 elif test -f "$ac_dir/install.sh"; then
2257 ac_aux_dir=$ac_dir
2258 ac_install_sh="$ac_aux_dir/install.sh -c"
2259 break
2260 elif test -f "$ac_dir/shtool"; then
2261 ac_aux_dir=$ac_dir
2262 ac_install_sh="$ac_aux_dir/shtool install -c"
2263 break
2265 done
2266 if test -z "$ac_aux_dir"; then
2267 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2268 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2269 { (exit 1); exit 1; }; }
2272 # These three variables are undocumented and unsupported,
2273 # and are intended to be withdrawn in a future Autoconf release.
2274 # They can cause serious problems if a builder's source tree is in a directory
2275 # whose full name contains unusual characters.
2276 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2277 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2278 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2281 # Make sure we can run config.sub.
2282 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2283 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2284 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2285 { (exit 1); exit 1; }; }
2287 { echo "$as_me:$LINENO: checking build system type" >&5
2288 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2289 if test "${ac_cv_build+set}" = set; then
2290 echo $ECHO_N "(cached) $ECHO_C" >&6
2291 else
2292 ac_build_alias=$build_alias
2293 test "x$ac_build_alias" = x &&
2294 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2295 test "x$ac_build_alias" = x &&
2296 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2297 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2298 { (exit 1); exit 1; }; }
2299 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2300 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2301 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2302 { (exit 1); exit 1; }; }
2305 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2306 echo "${ECHO_T}$ac_cv_build" >&6; }
2307 case $ac_cv_build in
2308 *-*-*) ;;
2309 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2310 echo "$as_me: error: invalid value of canonical build" >&2;}
2311 { (exit 1); exit 1; }; };;
2312 esac
2313 build=$ac_cv_build
2314 ac_save_IFS=$IFS; IFS='-'
2315 set x $ac_cv_build
2316 shift
2317 build_cpu=$1
2318 build_vendor=$2
2319 shift; shift
2320 # Remember, the first character of IFS is used to create $*,
2321 # except with old shells:
2322 build_os=$*
2323 IFS=$ac_save_IFS
2324 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2327 { echo "$as_me:$LINENO: checking host system type" >&5
2328 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2329 if test "${ac_cv_host+set}" = set; then
2330 echo $ECHO_N "(cached) $ECHO_C" >&6
2331 else
2332 if test "x$host_alias" = x; then
2333 ac_cv_host=$ac_cv_build
2334 else
2335 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2336 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2337 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2338 { (exit 1); exit 1; }; }
2342 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2343 echo "${ECHO_T}$ac_cv_host" >&6; }
2344 case $ac_cv_host in
2345 *-*-*) ;;
2346 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2347 echo "$as_me: error: invalid value of canonical host" >&2;}
2348 { (exit 1); exit 1; }; };;
2349 esac
2350 host=$ac_cv_host
2351 ac_save_IFS=$IFS; IFS='-'
2352 set x $ac_cv_host
2353 shift
2354 host_cpu=$1
2355 host_vendor=$2
2356 shift; shift
2357 # Remember, the first character of IFS is used to create $*,
2358 # except with old shells:
2359 host_os=$*
2360 IFS=$ac_save_IFS
2361 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2364 canonical=$host
2365 configuration=${host_alias-${build_alias-$host}}
2369 ### If you add support for a new configuration, add code to this
2370 ### switch statement to recognize your configuration name and select
2371 ### the appropriate operating system and machine description files.
2373 ### You would hope that you could choose an m/*.h file pretty much
2374 ### based on the machine portion of the configuration name, and an s-
2375 ### file based on the operating system portion. However, it turns out
2376 ### that each m/*.h file is pretty manufacturer-specific - for
2377 ### example mips.h is MIPS
2378 ### So we basically have to have a special case for each
2379 ### configuration name.
2381 ### As far as handling version numbers on operating systems is
2382 ### concerned, make sure things will fail in a fixable way. If
2383 ### /etc/MACHINES doesn't say anything about version numbers, be
2384 ### prepared to handle anything reasonably. If version numbers
2385 ### matter, be sure /etc/MACHINES says something about it.
2387 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2388 ### "System V Release 4"; he writes, "The old convention encouraged
2389 ### confusion between `system' and `release' levels'."
2391 machine='' opsys='' unported=no
2392 case "${canonical}" in
2394 ## FreeBSD ports
2395 *-*-freebsd* )
2396 opsys=freebsd
2397 case "${canonical}" in
2398 alpha*-*-freebsd*) machine=alpha ;;
2399 arm*-*-freebsd*) machine=arm ;;
2400 ia64-*-freebsd*) machine=ia64 ;;
2401 sparc-*-freebsd*) machine=sparc ;;
2402 sparc64-*-freebsd*) machine=sparc ;;
2403 powerpc-*-freebsd*) machine=macppc ;;
2404 i[3456]86-*-freebsd*) machine=intel386 ;;
2405 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2406 esac
2409 ## FreeBSD kernel + glibc based userland
2410 *-*-kfreebsd*gnu* )
2411 opsys=gnu-kfreebsd
2412 case "${canonical}" in
2413 alpha*-*-kfreebsd*) machine=alpha ;;
2414 ia64-*-kfreebsd*) machine=ia64 ;;
2415 sparc-*-kfreebsd*) machine=sparc ;;
2416 sparc64-*-kfreebsd*) machine=sparc ;;
2417 powerpc-*-kfreebsd*) machine=macppc ;;
2418 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2419 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2420 esac
2423 ## NetBSD ports
2424 *-*-netbsd* )
2425 opsys=netbsd
2426 if test -f /usr/lib/crti.o; then
2428 cat >>confdefs.h <<\_ACEOF
2429 #define HAVE_CRTIN
2430 _ACEOF
2434 case "${canonical}" in
2435 alpha*-*-netbsd*) machine=alpha ;;
2436 i[3456]86-*-netbsd*) machine=intel386 ;;
2437 powerpc-*-netbsd*) machine=macppc ;;
2438 sparc*-*-netbsd*) machine=sparc ;;
2439 vax-*-netbsd*) machine=vax ;;
2440 arm-*-netbsd*) machine=arm ;;
2441 x86_64-*-netbsd*) machine=amdx86-64 ;;
2442 hppa-*-netbsd*) machine=hp800 ;;
2443 m68k-*-netbsd*) machine=m68k ;;
2444 esac
2447 ## OpenBSD ports
2448 *-*-openbsd* )
2449 opsys=openbsd
2450 case "${canonical}" in
2451 alpha*-*-openbsd*) machine=alpha ;;
2452 arm-*-openbsd*) machine=arm ;;
2453 i386-*-openbsd*) machine=intel386 ;;
2454 powerpc-*-openbsd*) machine=macppc ;;
2455 sparc*-*-openbsd*) machine=sparc ;;
2456 vax-*-openbsd*) machine=vax ;;
2457 x86_64-*-openbsd*) machine=amdx86-64 ;;
2458 hppa-*-openbsd*) machine=hp800 ;;
2459 esac
2462 ## LynxOS ports
2463 *-*-lynxos* )
2464 opsys=lynxos
2465 case "${canonical}" in
2466 i[3456]86-*-lynxos*) machine=intel386 ;;
2467 powerpc-*-lynxos*) machine=powerpc ;;
2468 esac
2471 alpha*-*-linux-gnu* )
2472 machine=alpha opsys=gnu-linux
2475 arm*-*-linux-gnu* )
2476 machine=arm opsys=gnu-linux
2479 ## Apple Darwin / Mac OS X
2480 *-apple-darwin* )
2481 case "${canonical}" in
2482 i[3456]86-* ) machine=intel386 ;;
2483 powerpc-* ) machine=macppc ;;
2484 * ) unported=yes ;;
2485 esac
2486 opsys=darwin
2487 # Define CPP as follows to make autoconf work correctly.
2488 CPP="${CC-cc} -E -no-cpp-precomp"
2489 # Use fink packages if available.
2490 if test -d /sw/include && test -d /sw/lib; then
2491 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2492 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2493 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2497 ## HP 9000 series 700 and 800, running HP/UX
2498 hppa*-hp-hpux10.2* )
2499 machine=hp800 opsys=hpux10-20
2501 hppa*-hp-hpux1[1-9]* )
2502 machine=hp800 opsys=hpux11
2503 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2506 hppa*-*-linux-gnu* )
2507 machine=hp800 opsys=gnu-linux
2510 ## IBM machines
2511 s390-*-linux-gnu* )
2512 machine=ibms390 opsys=gnu-linux
2514 s390x-*-linux-gnu* )
2515 machine=ibms390x opsys=gnu-linux
2517 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2518 machine=ibmrs6000 opsys=aix4-2
2520 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2521 machine=ibmrs6000 opsys=aix4-2
2523 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2524 machine=ibmrs6000 opsys=aix4-2
2526 rs6000-ibm-aix6* | powerpc-ibm-aix6* )
2527 machine=ibmrs6000 opsys=aix4-2
2530 ## Macintosh PowerPC
2531 powerpc*-*-linux-gnu* )
2532 machine=macppc opsys=gnu-linux
2535 ## Silicon Graphics machines
2536 ## Iris 4D
2537 mips-sgi-irix6.5 )
2538 machine=iris4d opsys=irix6-5
2539 # Without defining _LANGUAGE_C, things get masked out in the headers
2540 # so that, for instance, grepping for `free' in stdlib.h fails and
2541 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2542 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2543 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2546 ## Suns
2547 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2548 machine=sparc opsys=gnu-linux
2551 *-sun-solaris* \
2552 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
2553 | x86_64-*-solaris2* | x86_64-*-sunos5* \
2554 | powerpc*-*-solaris2* | rs6000-*-solaris2*)
2555 case "${canonical}" in
2556 i[3456]86-*-* ) machine=intel386 ;;
2557 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2558 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2559 sparc* ) machine=sparc ;;
2560 * ) unported=yes ;;
2561 esac
2562 case "${canonical}" in
2563 *-sunos5.3* | *-solaris2.3* )
2564 opsys=sol2-3
2565 NON_GNU_CPP=/usr/ccs/lib/cpp
2567 *-sunos5.4* | *-solaris2.4* )
2568 opsys=sol2-4
2569 NON_GNU_CPP=/usr/ccs/lib/cpp
2570 RANLIB="ar -ts"
2572 *-sunos5.5* | *-solaris2.5* )
2573 opsys=sol2-5
2574 NON_GNU_CPP=/usr/ccs/lib/cpp
2575 RANLIB="ar -ts"
2577 *-sunos5.6* | *-solaris2.6* )
2578 opsys=sol2-6
2579 NON_GNU_CPP=/usr/ccs/lib/cpp
2580 RANLIB="ar -ts"
2582 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
2583 opsys=sol2-6
2584 emacs_check_sunpro_c=yes
2585 NON_GNU_CPP=/usr/ccs/lib/cpp
2587 *-sunos5* | *-solaris* )
2588 opsys=sol2-10
2589 emacs_check_sunpro_c=yes
2590 NON_GNU_CPP=/usr/ccs/lib/cpp
2592 esac
2593 ## Watch out for a compiler that we know will not work.
2594 case "${canonical}" in
2595 *-solaris* | *-sunos5* )
2596 if [ "x$CC" = x/usr/ucb/cc ]; then
2597 ## /usr/ucb/cc doesn't work;
2598 ## we should find some other compiler that does work.
2599 unset CC
2602 *) ;;
2603 esac
2606 ## Vaxen.
2607 vax-dec-* )
2608 machine=vax
2609 case "${canonical}" in
2610 *-vms* ) opsys=vms ;;
2611 * ) unported=yes
2612 esac
2615 ## IA-64
2616 ia64*-*-linux* )
2617 machine=ia64 opsys=gnu-linux
2620 ## Intel 386 machines where we don't care about the manufacturer
2621 i[3456]86-*-* )
2622 machine=intel386
2623 case "${canonical}" in
2624 *-cygwin ) opsys=cygwin ;;
2625 *-darwin* ) opsys=darwin
2626 CPP="${CC-cc} -E -no-cpp-precomp"
2628 *-linux-gnu* ) opsys=gnu-linux ;;
2629 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2630 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2631 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2632 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2633 esac
2636 ## m68k Linux-based GNU system
2637 m68k-*-linux-gnu* )
2638 machine=m68k opsys=gnu-linux
2641 ## Mips Linux-based GNU system
2642 mips-*-linux-gnu* | mipsel-*-linux-gnu* \
2643 | mips64-*-linux-gnu* | mips64el-*-linux-gnu* )
2644 machine=mips opsys=gnu-linux
2647 ## AMD x86-64 Linux-based GNU system
2648 x86_64-*-linux-gnu* )
2649 machine=amdx86-64 opsys=gnu-linux
2652 ## Tensilica Xtensa Linux-based GNU system
2653 xtensa*-*-linux-gnu* )
2654 machine=xtensa opsys=gnu-linux
2657 ## SuperH Linux-based GNU system
2658 sh[34]*-*-linux-gnu* )
2659 machine=sh3 opsys=gnu-linux
2663 unported=yes
2665 esac
2667 ### If the code above didn't choose an operating system, just choose
2668 ### an operating system based on the configuration name. You really
2669 ### only want to use this when you have no idea what the right
2670 ### operating system is; if you know what operating systems a machine
2671 ### runs, it's cleaner to make it explicit in the case statement
2672 ### above.
2673 if test x"${opsys}" = x; then
2674 case "${canonical}" in
2675 *-gnu* ) opsys=gnu ;;
2676 *-sysv4.2uw* ) opsys=unixware ;;
2677 *-sysv5uw* ) opsys=unixware ;;
2678 *-sysv5OpenUNIX* ) opsys=unixware ;;
2679 *-sysv4.1* | *-sysvr4.1* )
2680 NON_GNU_CPP=/usr/lib/cpp
2681 opsys=usg5-4 ;;
2682 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2683 if [ x$NON_GNU_CPP = x ]; then
2684 if [ -f /usr/ccs/lib/cpp ]; then
2685 NON_GNU_CPP=/usr/ccs/lib/cpp
2686 else
2687 NON_GNU_CPP=/lib/cpp
2690 opsys=usg5-4-2 ;;
2691 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2693 unported=yes
2695 esac
2700 if test $unported = yes; then
2701 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2702 Check \`etc/MACHINES' for recognized configuration names." >&5
2703 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2704 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2705 { (exit 1); exit 1; }; }
2708 machfile="m/${machine}.h"
2709 opsysfile="s/${opsys}.h"
2712 #### Choose a compiler.
2713 test -n "$CC" && cc_specified=yes
2715 # Save the value of CFLAGS that the user specified.
2716 SPECIFIED_CFLAGS="$CFLAGS"
2718 ac_ext=c
2719 ac_cpp='$CPP $CPPFLAGS'
2720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2723 if test -n "$ac_tool_prefix"; then
2724 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2725 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2726 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2728 if test "${ac_cv_prog_CC+set}" = set; then
2729 echo $ECHO_N "(cached) $ECHO_C" >&6
2730 else
2731 if test -n "$CC"; then
2732 ac_cv_prog_CC="$CC" # Let the user override the test.
2733 else
2734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735 for as_dir in $PATH
2737 IFS=$as_save_IFS
2738 test -z "$as_dir" && as_dir=.
2739 for ac_exec_ext in '' $ac_executable_extensions; do
2740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2741 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2743 break 2
2745 done
2746 done
2747 IFS=$as_save_IFS
2751 CC=$ac_cv_prog_CC
2752 if test -n "$CC"; then
2753 { echo "$as_me:$LINENO: result: $CC" >&5
2754 echo "${ECHO_T}$CC" >&6; }
2755 else
2756 { echo "$as_me:$LINENO: result: no" >&5
2757 echo "${ECHO_T}no" >&6; }
2762 if test -z "$ac_cv_prog_CC"; then
2763 ac_ct_CC=$CC
2764 # Extract the first word of "gcc", so it can be a program name with args.
2765 set dummy gcc; ac_word=$2
2766 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2768 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2769 echo $ECHO_N "(cached) $ECHO_C" >&6
2770 else
2771 if test -n "$ac_ct_CC"; then
2772 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2773 else
2774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775 for as_dir in $PATH
2777 IFS=$as_save_IFS
2778 test -z "$as_dir" && as_dir=.
2779 for ac_exec_ext in '' $ac_executable_extensions; do
2780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2781 ac_cv_prog_ac_ct_CC="gcc"
2782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2783 break 2
2785 done
2786 done
2787 IFS=$as_save_IFS
2791 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2792 if test -n "$ac_ct_CC"; then
2793 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2794 echo "${ECHO_T}$ac_ct_CC" >&6; }
2795 else
2796 { echo "$as_me:$LINENO: result: no" >&5
2797 echo "${ECHO_T}no" >&6; }
2800 if test "x$ac_ct_CC" = x; then
2801 CC=""
2802 else
2803 case $cross_compiling:$ac_tool_warned in
2804 yes:)
2805 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2806 whose name does not start with the host triplet. If you think this
2807 configuration is useful to you, please write to autoconf@gnu.org." >&5
2808 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2809 whose name does not start with the host triplet. If you think this
2810 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2811 ac_tool_warned=yes ;;
2812 esac
2813 CC=$ac_ct_CC
2815 else
2816 CC="$ac_cv_prog_CC"
2819 if test -z "$CC"; then
2820 if test -n "$ac_tool_prefix"; then
2821 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2822 set dummy ${ac_tool_prefix}cc; ac_word=$2
2823 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2825 if test "${ac_cv_prog_CC+set}" = set; then
2826 echo $ECHO_N "(cached) $ECHO_C" >&6
2827 else
2828 if test -n "$CC"; then
2829 ac_cv_prog_CC="$CC" # Let the user override the test.
2830 else
2831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832 for as_dir in $PATH
2834 IFS=$as_save_IFS
2835 test -z "$as_dir" && as_dir=.
2836 for ac_exec_ext in '' $ac_executable_extensions; do
2837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2838 ac_cv_prog_CC="${ac_tool_prefix}cc"
2839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2840 break 2
2842 done
2843 done
2844 IFS=$as_save_IFS
2848 CC=$ac_cv_prog_CC
2849 if test -n "$CC"; then
2850 { echo "$as_me:$LINENO: result: $CC" >&5
2851 echo "${ECHO_T}$CC" >&6; }
2852 else
2853 { echo "$as_me:$LINENO: result: no" >&5
2854 echo "${ECHO_T}no" >&6; }
2860 if test -z "$CC"; then
2861 # Extract the first word of "cc", so it can be a program name with args.
2862 set dummy cc; ac_word=$2
2863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2865 if test "${ac_cv_prog_CC+set}" = set; then
2866 echo $ECHO_N "(cached) $ECHO_C" >&6
2867 else
2868 if test -n "$CC"; then
2869 ac_cv_prog_CC="$CC" # Let the user override the test.
2870 else
2871 ac_prog_rejected=no
2872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873 for as_dir in $PATH
2875 IFS=$as_save_IFS
2876 test -z "$as_dir" && as_dir=.
2877 for ac_exec_ext in '' $ac_executable_extensions; do
2878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2879 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2880 ac_prog_rejected=yes
2881 continue
2883 ac_cv_prog_CC="cc"
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
2891 if test $ac_prog_rejected = yes; then
2892 # We found a bogon in the path, so make sure we never use it.
2893 set dummy $ac_cv_prog_CC
2894 shift
2895 if test $# != 0; then
2896 # We chose a different compiler from the bogus one.
2897 # However, it has the same basename, so the bogon will be chosen
2898 # first if we set CC to just the basename; use the full file name.
2899 shift
2900 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2905 CC=$ac_cv_prog_CC
2906 if test -n "$CC"; then
2907 { echo "$as_me:$LINENO: result: $CC" >&5
2908 echo "${ECHO_T}$CC" >&6; }
2909 else
2910 { echo "$as_me:$LINENO: result: no" >&5
2911 echo "${ECHO_T}no" >&6; }
2916 if test -z "$CC"; then
2917 if test -n "$ac_tool_prefix"; then
2918 for ac_prog in cl.exe
2920 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2921 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2924 if test "${ac_cv_prog_CC+set}" = set; then
2925 echo $ECHO_N "(cached) $ECHO_C" >&6
2926 else
2927 if test -n "$CC"; then
2928 ac_cv_prog_CC="$CC" # Let the user override the test.
2929 else
2930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931 for as_dir in $PATH
2933 IFS=$as_save_IFS
2934 test -z "$as_dir" && as_dir=.
2935 for ac_exec_ext in '' $ac_executable_extensions; do
2936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2937 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2939 break 2
2941 done
2942 done
2943 IFS=$as_save_IFS
2947 CC=$ac_cv_prog_CC
2948 if test -n "$CC"; then
2949 { echo "$as_me:$LINENO: result: $CC" >&5
2950 echo "${ECHO_T}$CC" >&6; }
2951 else
2952 { echo "$as_me:$LINENO: result: no" >&5
2953 echo "${ECHO_T}no" >&6; }
2957 test -n "$CC" && break
2958 done
2960 if test -z "$CC"; then
2961 ac_ct_CC=$CC
2962 for ac_prog in cl.exe
2964 # Extract the first word of "$ac_prog", so it can be a program name with args.
2965 set dummy $ac_prog; ac_word=$2
2966 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2968 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2969 echo $ECHO_N "(cached) $ECHO_C" >&6
2970 else
2971 if test -n "$ac_ct_CC"; then
2972 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2973 else
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 ac_cv_prog_ac_ct_CC="$ac_prog"
2982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2983 break 2
2985 done
2986 done
2987 IFS=$as_save_IFS
2991 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2992 if test -n "$ac_ct_CC"; then
2993 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2994 echo "${ECHO_T}$ac_ct_CC" >&6; }
2995 else
2996 { echo "$as_me:$LINENO: result: no" >&5
2997 echo "${ECHO_T}no" >&6; }
3001 test -n "$ac_ct_CC" && break
3002 done
3004 if test "x$ac_ct_CC" = x; then
3005 CC=""
3006 else
3007 case $cross_compiling:$ac_tool_warned in
3008 yes:)
3009 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3010 whose name does not start with the host triplet. If you think this
3011 configuration is useful to you, please write to autoconf@gnu.org." >&5
3012 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3013 whose name does not start with the host triplet. If you think this
3014 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3015 ac_tool_warned=yes ;;
3016 esac
3017 CC=$ac_ct_CC
3024 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3025 See \`config.log' for more details." >&5
3026 echo "$as_me: error: no acceptable C compiler found in \$PATH
3027 See \`config.log' for more details." >&2;}
3028 { (exit 1); exit 1; }; }
3030 # Provide some information about the compiler.
3031 echo "$as_me:$LINENO: checking for C compiler version" >&5
3032 ac_compiler=`set X $ac_compile; echo $2`
3033 { (ac_try="$ac_compiler --version >&5"
3034 case "(($ac_try" in
3035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3036 *) ac_try_echo=$ac_try;;
3037 esac
3038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3039 (eval "$ac_compiler --version >&5") 2>&5
3040 ac_status=$?
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); }
3043 { (ac_try="$ac_compiler -v >&5"
3044 case "(($ac_try" in
3045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046 *) ac_try_echo=$ac_try;;
3047 esac
3048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3049 (eval "$ac_compiler -v >&5") 2>&5
3050 ac_status=$?
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); }
3053 { (ac_try="$ac_compiler -V >&5"
3054 case "(($ac_try" in
3055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3056 *) ac_try_echo=$ac_try;;
3057 esac
3058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3059 (eval "$ac_compiler -V >&5") 2>&5
3060 ac_status=$?
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); }
3064 cat >conftest.$ac_ext <<_ACEOF
3065 /* confdefs.h. */
3066 _ACEOF
3067 cat confdefs.h >>conftest.$ac_ext
3068 cat >>conftest.$ac_ext <<_ACEOF
3069 /* end confdefs.h. */
3072 main ()
3076 return 0;
3078 _ACEOF
3079 ac_clean_files_save=$ac_clean_files
3080 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3081 # Try to create an executable without -o first, disregard a.out.
3082 # It will help us diagnose broken compilers, and finding out an intuition
3083 # of exeext.
3084 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3085 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3086 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3088 # List of possible output files, starting from the most likely.
3089 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3090 # only as a last resort. b.out is created by i960 compilers.
3091 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3093 # The IRIX 6 linker writes into existing files which may not be
3094 # executable, retaining their permissions. Remove them first so a
3095 # subsequent execution test works.
3096 ac_rmfiles=
3097 for ac_file in $ac_files
3099 case $ac_file in
3100 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3101 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3102 esac
3103 done
3104 rm -f $ac_rmfiles
3106 if { (ac_try="$ac_link_default"
3107 case "(($ac_try" in
3108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109 *) ac_try_echo=$ac_try;;
3110 esac
3111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3112 (eval "$ac_link_default") 2>&5
3113 ac_status=$?
3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); }; then
3116 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3117 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3118 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3119 # so that the user can short-circuit this test for compilers unknown to
3120 # Autoconf.
3121 for ac_file in $ac_files ''
3123 test -f "$ac_file" || continue
3124 case $ac_file in
3125 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3127 [ab].out )
3128 # We found the default executable, but exeext='' is most
3129 # certainly right.
3130 break;;
3131 *.* )
3132 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3133 then :; else
3134 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3136 # We set ac_cv_exeext here because the later test for it is not
3137 # safe: cross compilers may not add the suffix if given an `-o'
3138 # argument, so we may need to know it at that point already.
3139 # Even if this section looks crufty: it has the advantage of
3140 # actually working.
3141 break;;
3143 break;;
3144 esac
3145 done
3146 test "$ac_cv_exeext" = no && ac_cv_exeext=
3148 else
3149 ac_file=''
3152 { echo "$as_me:$LINENO: result: $ac_file" >&5
3153 echo "${ECHO_T}$ac_file" >&6; }
3154 if test -z "$ac_file"; then
3155 echo "$as_me: failed program was:" >&5
3156 sed 's/^/| /' conftest.$ac_ext >&5
3158 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3159 See \`config.log' for more details." >&5
3160 echo "$as_me: error: C compiler cannot create executables
3161 See \`config.log' for more details." >&2;}
3162 { (exit 77); exit 77; }; }
3165 ac_exeext=$ac_cv_exeext
3167 # Check that the compiler produces executables we can run. If not, either
3168 # the compiler is broken, or we cross compile.
3169 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3170 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3171 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3172 # If not cross compiling, check that we can run a simple program.
3173 if test "$cross_compiling" != yes; then
3174 if { ac_try='./$ac_file'
3175 { (case "(($ac_try" in
3176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177 *) ac_try_echo=$ac_try;;
3178 esac
3179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3180 (eval "$ac_try") 2>&5
3181 ac_status=$?
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); }; }; then
3184 cross_compiling=no
3185 else
3186 if test "$cross_compiling" = maybe; then
3187 cross_compiling=yes
3188 else
3189 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3190 If you meant to cross compile, use \`--host'.
3191 See \`config.log' for more details." >&5
3192 echo "$as_me: error: cannot run C compiled programs.
3193 If you meant to cross compile, use \`--host'.
3194 See \`config.log' for more details." >&2;}
3195 { (exit 1); exit 1; }; }
3199 { echo "$as_me:$LINENO: result: yes" >&5
3200 echo "${ECHO_T}yes" >&6; }
3202 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3203 ac_clean_files=$ac_clean_files_save
3204 # Check that the compiler produces executables we can run. If not, either
3205 # the compiler is broken, or we cross compile.
3206 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3207 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3208 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3209 echo "${ECHO_T}$cross_compiling" >&6; }
3211 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3212 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3213 if { (ac_try="$ac_link"
3214 case "(($ac_try" in
3215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3216 *) ac_try_echo=$ac_try;;
3217 esac
3218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3219 (eval "$ac_link") 2>&5
3220 ac_status=$?
3221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222 (exit $ac_status); }; then
3223 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3224 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3225 # work properly (i.e., refer to `conftest.exe'), while it won't with
3226 # `rm'.
3227 for ac_file in conftest.exe conftest conftest.*; do
3228 test -f "$ac_file" || continue
3229 case $ac_file in
3230 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3231 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3232 break;;
3233 * ) break;;
3234 esac
3235 done
3236 else
3237 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3238 See \`config.log' for more details." >&5
3239 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3240 See \`config.log' for more details." >&2;}
3241 { (exit 1); exit 1; }; }
3244 rm -f conftest$ac_cv_exeext
3245 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3246 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3248 rm -f conftest.$ac_ext
3249 EXEEXT=$ac_cv_exeext
3250 ac_exeext=$EXEEXT
3251 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3252 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3253 if test "${ac_cv_objext+set}" = set; then
3254 echo $ECHO_N "(cached) $ECHO_C" >&6
3255 else
3256 cat >conftest.$ac_ext <<_ACEOF
3257 /* confdefs.h. */
3258 _ACEOF
3259 cat confdefs.h >>conftest.$ac_ext
3260 cat >>conftest.$ac_ext <<_ACEOF
3261 /* end confdefs.h. */
3264 main ()
3268 return 0;
3270 _ACEOF
3271 rm -f conftest.o conftest.obj
3272 if { (ac_try="$ac_compile"
3273 case "(($ac_try" in
3274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3275 *) ac_try_echo=$ac_try;;
3276 esac
3277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3278 (eval "$ac_compile") 2>&5
3279 ac_status=$?
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); }; then
3282 for ac_file in conftest.o conftest.obj conftest.*; do
3283 test -f "$ac_file" || continue;
3284 case $ac_file in
3285 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3286 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3287 break;;
3288 esac
3289 done
3290 else
3291 echo "$as_me: failed program was:" >&5
3292 sed 's/^/| /' conftest.$ac_ext >&5
3294 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3295 See \`config.log' for more details." >&5
3296 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3297 See \`config.log' for more details." >&2;}
3298 { (exit 1); exit 1; }; }
3301 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3303 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3304 echo "${ECHO_T}$ac_cv_objext" >&6; }
3305 OBJEXT=$ac_cv_objext
3306 ac_objext=$OBJEXT
3307 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3308 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3309 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3310 echo $ECHO_N "(cached) $ECHO_C" >&6
3311 else
3312 cat >conftest.$ac_ext <<_ACEOF
3313 /* confdefs.h. */
3314 _ACEOF
3315 cat confdefs.h >>conftest.$ac_ext
3316 cat >>conftest.$ac_ext <<_ACEOF
3317 /* end confdefs.h. */
3320 main ()
3322 #ifndef __GNUC__
3323 choke me
3324 #endif
3327 return 0;
3329 _ACEOF
3330 rm -f conftest.$ac_objext
3331 if { (ac_try="$ac_compile"
3332 case "(($ac_try" in
3333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334 *) ac_try_echo=$ac_try;;
3335 esac
3336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3337 (eval "$ac_compile") 2>conftest.er1
3338 ac_status=$?
3339 grep -v '^ *+' conftest.er1 >conftest.err
3340 rm -f conftest.er1
3341 cat conftest.err >&5
3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); } && {
3344 test -z "$ac_c_werror_flag" ||
3345 test ! -s conftest.err
3346 } && test -s conftest.$ac_objext; then
3347 ac_compiler_gnu=yes
3348 else
3349 echo "$as_me: failed program was:" >&5
3350 sed 's/^/| /' conftest.$ac_ext >&5
3352 ac_compiler_gnu=no
3355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3356 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3359 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3360 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3361 GCC=`test $ac_compiler_gnu = yes && echo yes`
3362 ac_test_CFLAGS=${CFLAGS+set}
3363 ac_save_CFLAGS=$CFLAGS
3364 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3365 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3366 if test "${ac_cv_prog_cc_g+set}" = set; then
3367 echo $ECHO_N "(cached) $ECHO_C" >&6
3368 else
3369 ac_save_c_werror_flag=$ac_c_werror_flag
3370 ac_c_werror_flag=yes
3371 ac_cv_prog_cc_g=no
3372 CFLAGS="-g"
3373 cat >conftest.$ac_ext <<_ACEOF
3374 /* confdefs.h. */
3375 _ACEOF
3376 cat confdefs.h >>conftest.$ac_ext
3377 cat >>conftest.$ac_ext <<_ACEOF
3378 /* end confdefs.h. */
3381 main ()
3385 return 0;
3387 _ACEOF
3388 rm -f conftest.$ac_objext
3389 if { (ac_try="$ac_compile"
3390 case "(($ac_try" in
3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392 *) ac_try_echo=$ac_try;;
3393 esac
3394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3395 (eval "$ac_compile") 2>conftest.er1
3396 ac_status=$?
3397 grep -v '^ *+' conftest.er1 >conftest.err
3398 rm -f conftest.er1
3399 cat conftest.err >&5
3400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401 (exit $ac_status); } && {
3402 test -z "$ac_c_werror_flag" ||
3403 test ! -s conftest.err
3404 } && test -s conftest.$ac_objext; then
3405 ac_cv_prog_cc_g=yes
3406 else
3407 echo "$as_me: failed program was:" >&5
3408 sed 's/^/| /' conftest.$ac_ext >&5
3410 CFLAGS=""
3411 cat >conftest.$ac_ext <<_ACEOF
3412 /* confdefs.h. */
3413 _ACEOF
3414 cat confdefs.h >>conftest.$ac_ext
3415 cat >>conftest.$ac_ext <<_ACEOF
3416 /* end confdefs.h. */
3419 main ()
3423 return 0;
3425 _ACEOF
3426 rm -f conftest.$ac_objext
3427 if { (ac_try="$ac_compile"
3428 case "(($ac_try" in
3429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430 *) ac_try_echo=$ac_try;;
3431 esac
3432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3433 (eval "$ac_compile") 2>conftest.er1
3434 ac_status=$?
3435 grep -v '^ *+' conftest.er1 >conftest.err
3436 rm -f conftest.er1
3437 cat conftest.err >&5
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); } && {
3440 test -z "$ac_c_werror_flag" ||
3441 test ! -s conftest.err
3442 } && test -s conftest.$ac_objext; then
3444 else
3445 echo "$as_me: failed program was:" >&5
3446 sed 's/^/| /' conftest.$ac_ext >&5
3448 ac_c_werror_flag=$ac_save_c_werror_flag
3449 CFLAGS="-g"
3450 cat >conftest.$ac_ext <<_ACEOF
3451 /* confdefs.h. */
3452 _ACEOF
3453 cat confdefs.h >>conftest.$ac_ext
3454 cat >>conftest.$ac_ext <<_ACEOF
3455 /* end confdefs.h. */
3458 main ()
3462 return 0;
3464 _ACEOF
3465 rm -f conftest.$ac_objext
3466 if { (ac_try="$ac_compile"
3467 case "(($ac_try" in
3468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3469 *) ac_try_echo=$ac_try;;
3470 esac
3471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3472 (eval "$ac_compile") 2>conftest.er1
3473 ac_status=$?
3474 grep -v '^ *+' conftest.er1 >conftest.err
3475 rm -f conftest.er1
3476 cat conftest.err >&5
3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); } && {
3479 test -z "$ac_c_werror_flag" ||
3480 test ! -s conftest.err
3481 } && test -s conftest.$ac_objext; then
3482 ac_cv_prog_cc_g=yes
3483 else
3484 echo "$as_me: failed program was:" >&5
3485 sed 's/^/| /' conftest.$ac_ext >&5
3490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3497 ac_c_werror_flag=$ac_save_c_werror_flag
3499 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3500 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3501 if test "$ac_test_CFLAGS" = set; then
3502 CFLAGS=$ac_save_CFLAGS
3503 elif test $ac_cv_prog_cc_g = yes; then
3504 if test "$GCC" = yes; then
3505 CFLAGS="-g -O2"
3506 else
3507 CFLAGS="-g"
3509 else
3510 if test "$GCC" = yes; then
3511 CFLAGS="-O2"
3512 else
3513 CFLAGS=
3516 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3517 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3518 if test "${ac_cv_prog_cc_c89+set}" = set; then
3519 echo $ECHO_N "(cached) $ECHO_C" >&6
3520 else
3521 ac_cv_prog_cc_c89=no
3522 ac_save_CC=$CC
3523 cat >conftest.$ac_ext <<_ACEOF
3524 /* confdefs.h. */
3525 _ACEOF
3526 cat confdefs.h >>conftest.$ac_ext
3527 cat >>conftest.$ac_ext <<_ACEOF
3528 /* end confdefs.h. */
3529 #include <stdarg.h>
3530 #include <stdio.h>
3531 #include <sys/types.h>
3532 #include <sys/stat.h>
3533 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3534 struct buf { int x; };
3535 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3536 static char *e (p, i)
3537 char **p;
3538 int i;
3540 return p[i];
3542 static char *f (char * (*g) (char **, int), char **p, ...)
3544 char *s;
3545 va_list v;
3546 va_start (v,p);
3547 s = g (p, va_arg (v,int));
3548 va_end (v);
3549 return s;
3552 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3553 function prototypes and stuff, but not '\xHH' hex character constants.
3554 These don't provoke an error unfortunately, instead are silently treated
3555 as 'x'. The following induces an error, until -std is added to get
3556 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3557 array size at least. It's necessary to write '\x00'==0 to get something
3558 that's true only with -std. */
3559 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3561 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3562 inside strings and character constants. */
3563 #define FOO(x) 'x'
3564 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3566 int test (int i, double x);
3567 struct s1 {int (*f) (int a);};
3568 struct s2 {int (*f) (double a);};
3569 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3570 int argc;
3571 char **argv;
3573 main ()
3575 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3577 return 0;
3579 _ACEOF
3580 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3581 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3583 CC="$ac_save_CC $ac_arg"
3584 rm -f conftest.$ac_objext
3585 if { (ac_try="$ac_compile"
3586 case "(($ac_try" in
3587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3588 *) ac_try_echo=$ac_try;;
3589 esac
3590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3591 (eval "$ac_compile") 2>conftest.er1
3592 ac_status=$?
3593 grep -v '^ *+' conftest.er1 >conftest.err
3594 rm -f conftest.er1
3595 cat conftest.err >&5
3596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597 (exit $ac_status); } && {
3598 test -z "$ac_c_werror_flag" ||
3599 test ! -s conftest.err
3600 } && test -s conftest.$ac_objext; then
3601 ac_cv_prog_cc_c89=$ac_arg
3602 else
3603 echo "$as_me: failed program was:" >&5
3604 sed 's/^/| /' conftest.$ac_ext >&5
3609 rm -f core conftest.err conftest.$ac_objext
3610 test "x$ac_cv_prog_cc_c89" != "xno" && break
3611 done
3612 rm -f conftest.$ac_ext
3613 CC=$ac_save_CC
3616 # AC_CACHE_VAL
3617 case "x$ac_cv_prog_cc_c89" in
3619 { echo "$as_me:$LINENO: result: none needed" >&5
3620 echo "${ECHO_T}none needed" >&6; } ;;
3621 xno)
3622 { echo "$as_me:$LINENO: result: unsupported" >&5
3623 echo "${ECHO_T}unsupported" >&6; } ;;
3625 CC="$CC $ac_cv_prog_cc_c89"
3626 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3627 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3628 esac
3631 ac_ext=c
3632 ac_cpp='$CPP $CPPFLAGS'
3633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3638 # On Suns, sometimes $CPP names a directory.
3639 if test -n "$CPP" && test -d "$CPP"; then
3640 CPP=
3643 ## If not using gcc, and on Solaris, and no CPP specified, see if
3644 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3645 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3646 test x"$CPP" = x; then
3647 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3648 echo $ECHO_N "checking whether we are using a Sun C compiler... $ECHO_C" >&6; }
3650 if test "${emacs_cv_sunpro_c+set}" = set; then
3651 echo $ECHO_N "(cached) $ECHO_C" >&6
3652 else
3653 cat >conftest.$ac_ext <<_ACEOF
3654 /* confdefs.h. */
3655 _ACEOF
3656 cat confdefs.h >>conftest.$ac_ext
3657 cat >>conftest.$ac_ext <<_ACEOF
3658 /* end confdefs.h. */
3661 main ()
3663 #ifndef __SUNPRO_C
3664 fail;
3665 #endif
3668 return 0;
3670 _ACEOF
3671 rm -f conftest.$ac_objext conftest$ac_exeext
3672 if { (ac_try="$ac_link"
3673 case "(($ac_try" in
3674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3675 *) ac_try_echo=$ac_try;;
3676 esac
3677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3678 (eval "$ac_link") 2>conftest.er1
3679 ac_status=$?
3680 grep -v '^ *+' conftest.er1 >conftest.err
3681 rm -f conftest.er1
3682 cat conftest.err >&5
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); } && {
3685 test -z "$ac_c_werror_flag" ||
3686 test ! -s conftest.err
3687 } && test -s conftest$ac_exeext &&
3688 $as_test_x conftest$ac_exeext; then
3689 emacs_cv_sunpro_c=yes
3690 else
3691 echo "$as_me: failed program was:" >&5
3692 sed 's/^/| /' conftest.$ac_ext >&5
3694 emacs_cv_sunpro_c=no
3697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3698 conftest$ac_exeext conftest.$ac_ext
3701 { echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
3702 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3704 if test x"$emacs_cv_sunpro_c" = xyes; then
3705 NON_GNU_CPP="$CC -E -Xs"
3709 #### Some systems specify a CPP to use unless we are using GCC.
3710 #### Now that we know whether we are using GCC, we can decide whether
3711 #### to use that one.
3712 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3713 then
3714 CPP="$NON_GNU_CPP"
3717 #### Some systems specify a CC to use unless we are using GCC.
3718 #### Now that we know whether we are using GCC, we can decide whether
3719 #### to use that one.
3720 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3721 test x$cc_specified != xyes
3722 then
3723 CC="$NON_GNU_CC"
3726 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3727 then
3728 CC="$CC $GCC_TEST_OPTIONS"
3731 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3732 then
3733 CC="$CC $NON_GCC_TEST_OPTIONS"
3737 cat >>confdefs.h <<\_ACEOF
3738 #define _GNU_SOURCE 1
3739 _ACEOF
3742 ac_ext=c
3743 ac_cpp='$CPP $CPPFLAGS'
3744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3747 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3748 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3749 # On Suns, sometimes $CPP names a directory.
3750 if test -n "$CPP" && test -d "$CPP"; then
3751 CPP=
3753 if test -z "$CPP"; then
3754 if test "${ac_cv_prog_CPP+set}" = set; then
3755 echo $ECHO_N "(cached) $ECHO_C" >&6
3756 else
3757 # Double quotes because CPP needs to be expanded
3758 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3760 ac_preproc_ok=false
3761 for ac_c_preproc_warn_flag in '' yes
3763 # Use a header file that comes with gcc, so configuring glibc
3764 # with a fresh cross-compiler works.
3765 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3766 # <limits.h> exists even on freestanding compilers.
3767 # On the NeXT, cc -E runs the code through the compiler's parser,
3768 # not just through cpp. "Syntax error" is here to catch this case.
3769 cat >conftest.$ac_ext <<_ACEOF
3770 /* confdefs.h. */
3771 _ACEOF
3772 cat confdefs.h >>conftest.$ac_ext
3773 cat >>conftest.$ac_ext <<_ACEOF
3774 /* end confdefs.h. */
3775 #ifdef __STDC__
3776 # include <limits.h>
3777 #else
3778 # include <assert.h>
3779 #endif
3780 Syntax error
3781 _ACEOF
3782 if { (ac_try="$ac_cpp conftest.$ac_ext"
3783 case "(($ac_try" in
3784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785 *) ac_try_echo=$ac_try;;
3786 esac
3787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3788 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3789 ac_status=$?
3790 grep -v '^ *+' conftest.er1 >conftest.err
3791 rm -f conftest.er1
3792 cat conftest.err >&5
3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); } >/dev/null && {
3795 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3796 test ! -s conftest.err
3797 }; then
3799 else
3800 echo "$as_me: failed program was:" >&5
3801 sed 's/^/| /' conftest.$ac_ext >&5
3803 # Broken: fails on valid input.
3804 continue
3807 rm -f conftest.err conftest.$ac_ext
3809 # OK, works on sane cases. Now check whether nonexistent headers
3810 # can be detected and how.
3811 cat >conftest.$ac_ext <<_ACEOF
3812 /* confdefs.h. */
3813 _ACEOF
3814 cat confdefs.h >>conftest.$ac_ext
3815 cat >>conftest.$ac_ext <<_ACEOF
3816 /* end confdefs.h. */
3817 #include <ac_nonexistent.h>
3818 _ACEOF
3819 if { (ac_try="$ac_cpp conftest.$ac_ext"
3820 case "(($ac_try" in
3821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3822 *) ac_try_echo=$ac_try;;
3823 esac
3824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3825 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3826 ac_status=$?
3827 grep -v '^ *+' conftest.er1 >conftest.err
3828 rm -f conftest.er1
3829 cat conftest.err >&5
3830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831 (exit $ac_status); } >/dev/null && {
3832 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3833 test ! -s conftest.err
3834 }; then
3835 # Broken: success on invalid input.
3836 continue
3837 else
3838 echo "$as_me: failed program was:" >&5
3839 sed 's/^/| /' conftest.$ac_ext >&5
3841 # Passes both tests.
3842 ac_preproc_ok=:
3843 break
3846 rm -f conftest.err conftest.$ac_ext
3848 done
3849 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3850 rm -f conftest.err conftest.$ac_ext
3851 if $ac_preproc_ok; then
3852 break
3855 done
3856 ac_cv_prog_CPP=$CPP
3859 CPP=$ac_cv_prog_CPP
3860 else
3861 ac_cv_prog_CPP=$CPP
3863 { echo "$as_me:$LINENO: result: $CPP" >&5
3864 echo "${ECHO_T}$CPP" >&6; }
3865 ac_preproc_ok=false
3866 for ac_c_preproc_warn_flag in '' yes
3868 # Use a header file that comes with gcc, so configuring glibc
3869 # with a fresh cross-compiler works.
3870 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3871 # <limits.h> exists even on freestanding compilers.
3872 # On the NeXT, cc -E runs the code through the compiler's parser,
3873 # not just through cpp. "Syntax error" is here to catch this case.
3874 cat >conftest.$ac_ext <<_ACEOF
3875 /* confdefs.h. */
3876 _ACEOF
3877 cat confdefs.h >>conftest.$ac_ext
3878 cat >>conftest.$ac_ext <<_ACEOF
3879 /* end confdefs.h. */
3880 #ifdef __STDC__
3881 # include <limits.h>
3882 #else
3883 # include <assert.h>
3884 #endif
3885 Syntax error
3886 _ACEOF
3887 if { (ac_try="$ac_cpp conftest.$ac_ext"
3888 case "(($ac_try" in
3889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3890 *) ac_try_echo=$ac_try;;
3891 esac
3892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3894 ac_status=$?
3895 grep -v '^ *+' conftest.er1 >conftest.err
3896 rm -f conftest.er1
3897 cat conftest.err >&5
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); } >/dev/null && {
3900 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3901 test ! -s conftest.err
3902 }; then
3904 else
3905 echo "$as_me: failed program was:" >&5
3906 sed 's/^/| /' conftest.$ac_ext >&5
3908 # Broken: fails on valid input.
3909 continue
3912 rm -f conftest.err conftest.$ac_ext
3914 # OK, works on sane cases. Now check whether nonexistent headers
3915 # can be detected and how.
3916 cat >conftest.$ac_ext <<_ACEOF
3917 /* confdefs.h. */
3918 _ACEOF
3919 cat confdefs.h >>conftest.$ac_ext
3920 cat >>conftest.$ac_ext <<_ACEOF
3921 /* end confdefs.h. */
3922 #include <ac_nonexistent.h>
3923 _ACEOF
3924 if { (ac_try="$ac_cpp conftest.$ac_ext"
3925 case "(($ac_try" in
3926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3927 *) ac_try_echo=$ac_try;;
3928 esac
3929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3930 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3931 ac_status=$?
3932 grep -v '^ *+' conftest.er1 >conftest.err
3933 rm -f conftest.er1
3934 cat conftest.err >&5
3935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936 (exit $ac_status); } >/dev/null && {
3937 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3938 test ! -s conftest.err
3939 }; then
3940 # Broken: success on invalid input.
3941 continue
3942 else
3943 echo "$as_me: failed program was:" >&5
3944 sed 's/^/| /' conftest.$ac_ext >&5
3946 # Passes both tests.
3947 ac_preproc_ok=:
3948 break
3951 rm -f conftest.err conftest.$ac_ext
3953 done
3954 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3955 rm -f conftest.err conftest.$ac_ext
3956 if $ac_preproc_ok; then
3958 else
3959 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3960 See \`config.log' for more details." >&5
3961 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3962 See \`config.log' for more details." >&2;}
3963 { (exit 1); exit 1; }; }
3966 ac_ext=c
3967 ac_cpp='$CPP $CPPFLAGS'
3968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3973 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3974 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3975 if test "${ac_cv_path_GREP+set}" = set; then
3976 echo $ECHO_N "(cached) $ECHO_C" >&6
3977 else
3978 # Extract the first word of "grep ggrep" to use in msg output
3979 if test -z "$GREP"; then
3980 set dummy grep ggrep; ac_prog_name=$2
3981 if test "${ac_cv_path_GREP+set}" = set; then
3982 echo $ECHO_N "(cached) $ECHO_C" >&6
3983 else
3984 ac_path_GREP_found=false
3985 # Loop through the user's path and test for each of PROGNAME-LIST
3986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3989 IFS=$as_save_IFS
3990 test -z "$as_dir" && as_dir=.
3991 for ac_prog in grep ggrep; do
3992 for ac_exec_ext in '' $ac_executable_extensions; do
3993 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3994 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3995 # Check for GNU ac_path_GREP and select it if it is found.
3996 # Check for GNU $ac_path_GREP
3997 case `"$ac_path_GREP" --version 2>&1` in
3998 *GNU*)
3999 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4001 ac_count=0
4002 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4003 while :
4005 cat "conftest.in" "conftest.in" >"conftest.tmp"
4006 mv "conftest.tmp" "conftest.in"
4007 cp "conftest.in" "conftest.nl"
4008 echo 'GREP' >> "conftest.nl"
4009 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4010 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4011 ac_count=`expr $ac_count + 1`
4012 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4013 # Best one so far, save it but keep looking for a better one
4014 ac_cv_path_GREP="$ac_path_GREP"
4015 ac_path_GREP_max=$ac_count
4017 # 10*(2^10) chars as input seems more than enough
4018 test $ac_count -gt 10 && break
4019 done
4020 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4021 esac
4024 $ac_path_GREP_found && break 3
4025 done
4026 done
4028 done
4029 IFS=$as_save_IFS
4034 GREP="$ac_cv_path_GREP"
4035 if test -z "$GREP"; then
4036 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4037 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4038 { (exit 1); exit 1; }; }
4041 else
4042 ac_cv_path_GREP=$GREP
4047 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4048 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4049 GREP="$ac_cv_path_GREP"
4052 { echo "$as_me:$LINENO: checking for egrep" >&5
4053 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4054 if test "${ac_cv_path_EGREP+set}" = set; then
4055 echo $ECHO_N "(cached) $ECHO_C" >&6
4056 else
4057 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4058 then ac_cv_path_EGREP="$GREP -E"
4059 else
4060 # Extract the first word of "egrep" to use in msg output
4061 if test -z "$EGREP"; then
4062 set dummy egrep; ac_prog_name=$2
4063 if test "${ac_cv_path_EGREP+set}" = set; then
4064 echo $ECHO_N "(cached) $ECHO_C" >&6
4065 else
4066 ac_path_EGREP_found=false
4067 # Loop through the user's path and test for each of PROGNAME-LIST
4068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4071 IFS=$as_save_IFS
4072 test -z "$as_dir" && as_dir=.
4073 for ac_prog in egrep; do
4074 for ac_exec_ext in '' $ac_executable_extensions; do
4075 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4076 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4077 # Check for GNU ac_path_EGREP and select it if it is found.
4078 # Check for GNU $ac_path_EGREP
4079 case `"$ac_path_EGREP" --version 2>&1` in
4080 *GNU*)
4081 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4083 ac_count=0
4084 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4085 while :
4087 cat "conftest.in" "conftest.in" >"conftest.tmp"
4088 mv "conftest.tmp" "conftest.in"
4089 cp "conftest.in" "conftest.nl"
4090 echo 'EGREP' >> "conftest.nl"
4091 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4092 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4093 ac_count=`expr $ac_count + 1`
4094 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4095 # Best one so far, save it but keep looking for a better one
4096 ac_cv_path_EGREP="$ac_path_EGREP"
4097 ac_path_EGREP_max=$ac_count
4099 # 10*(2^10) chars as input seems more than enough
4100 test $ac_count -gt 10 && break
4101 done
4102 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4103 esac
4106 $ac_path_EGREP_found && break 3
4107 done
4108 done
4110 done
4111 IFS=$as_save_IFS
4116 EGREP="$ac_cv_path_EGREP"
4117 if test -z "$EGREP"; then
4118 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4119 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4120 { (exit 1); exit 1; }; }
4123 else
4124 ac_cv_path_EGREP=$EGREP
4130 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4131 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4132 EGREP="$ac_cv_path_EGREP"
4136 { echo "$as_me:$LINENO: checking for AIX" >&5
4137 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4138 cat >conftest.$ac_ext <<_ACEOF
4139 /* confdefs.h. */
4140 _ACEOF
4141 cat confdefs.h >>conftest.$ac_ext
4142 cat >>conftest.$ac_ext <<_ACEOF
4143 /* end confdefs.h. */
4144 #ifdef _AIX
4146 #endif
4148 _ACEOF
4149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4150 $EGREP "yes" >/dev/null 2>&1; then
4151 { echo "$as_me:$LINENO: result: yes" >&5
4152 echo "${ECHO_T}yes" >&6; }
4153 cat >>confdefs.h <<\_ACEOF
4154 #define _ALL_SOURCE 1
4155 _ACEOF
4157 else
4158 { echo "$as_me:$LINENO: result: no" >&5
4159 echo "${ECHO_T}no" >&6; }
4161 rm -f conftest*
4164 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4165 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4166 if test "${ac_cv_header_stdc+set}" = set; then
4167 echo $ECHO_N "(cached) $ECHO_C" >&6
4168 else
4169 cat >conftest.$ac_ext <<_ACEOF
4170 /* confdefs.h. */
4171 _ACEOF
4172 cat confdefs.h >>conftest.$ac_ext
4173 cat >>conftest.$ac_ext <<_ACEOF
4174 /* end confdefs.h. */
4175 #include <stdlib.h>
4176 #include <stdarg.h>
4177 #include <string.h>
4178 #include <float.h>
4181 main ()
4185 return 0;
4187 _ACEOF
4188 rm -f conftest.$ac_objext
4189 if { (ac_try="$ac_compile"
4190 case "(($ac_try" in
4191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4192 *) ac_try_echo=$ac_try;;
4193 esac
4194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4195 (eval "$ac_compile") 2>conftest.er1
4196 ac_status=$?
4197 grep -v '^ *+' conftest.er1 >conftest.err
4198 rm -f conftest.er1
4199 cat conftest.err >&5
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); } && {
4202 test -z "$ac_c_werror_flag" ||
4203 test ! -s conftest.err
4204 } && test -s conftest.$ac_objext; then
4205 ac_cv_header_stdc=yes
4206 else
4207 echo "$as_me: failed program was:" >&5
4208 sed 's/^/| /' conftest.$ac_ext >&5
4210 ac_cv_header_stdc=no
4213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4215 if test $ac_cv_header_stdc = yes; then
4216 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4217 cat >conftest.$ac_ext <<_ACEOF
4218 /* confdefs.h. */
4219 _ACEOF
4220 cat confdefs.h >>conftest.$ac_ext
4221 cat >>conftest.$ac_ext <<_ACEOF
4222 /* end confdefs.h. */
4223 #include <string.h>
4225 _ACEOF
4226 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4227 $EGREP "memchr" >/dev/null 2>&1; then
4229 else
4230 ac_cv_header_stdc=no
4232 rm -f conftest*
4236 if test $ac_cv_header_stdc = yes; then
4237 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4238 cat >conftest.$ac_ext <<_ACEOF
4239 /* confdefs.h. */
4240 _ACEOF
4241 cat confdefs.h >>conftest.$ac_ext
4242 cat >>conftest.$ac_ext <<_ACEOF
4243 /* end confdefs.h. */
4244 #include <stdlib.h>
4246 _ACEOF
4247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4248 $EGREP "free" >/dev/null 2>&1; then
4250 else
4251 ac_cv_header_stdc=no
4253 rm -f conftest*
4257 if test $ac_cv_header_stdc = yes; then
4258 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4259 if test "$cross_compiling" = yes; then
4261 else
4262 cat >conftest.$ac_ext <<_ACEOF
4263 /* confdefs.h. */
4264 _ACEOF
4265 cat confdefs.h >>conftest.$ac_ext
4266 cat >>conftest.$ac_ext <<_ACEOF
4267 /* end confdefs.h. */
4268 #include <ctype.h>
4269 #include <stdlib.h>
4270 #if ((' ' & 0x0FF) == 0x020)
4271 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4272 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4273 #else
4274 # define ISLOWER(c) \
4275 (('a' <= (c) && (c) <= 'i') \
4276 || ('j' <= (c) && (c) <= 'r') \
4277 || ('s' <= (c) && (c) <= 'z'))
4278 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4279 #endif
4281 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4283 main ()
4285 int i;
4286 for (i = 0; i < 256; i++)
4287 if (XOR (islower (i), ISLOWER (i))
4288 || toupper (i) != TOUPPER (i))
4289 return 2;
4290 return 0;
4292 _ACEOF
4293 rm -f conftest$ac_exeext
4294 if { (ac_try="$ac_link"
4295 case "(($ac_try" in
4296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4297 *) ac_try_echo=$ac_try;;
4298 esac
4299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4300 (eval "$ac_link") 2>&5
4301 ac_status=$?
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4304 { (case "(($ac_try" in
4305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4306 *) ac_try_echo=$ac_try;;
4307 esac
4308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4309 (eval "$ac_try") 2>&5
4310 ac_status=$?
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); }; }; then
4314 else
4315 echo "$as_me: program exited with status $ac_status" >&5
4316 echo "$as_me: failed program was:" >&5
4317 sed 's/^/| /' conftest.$ac_ext >&5
4319 ( exit $ac_status )
4320 ac_cv_header_stdc=no
4322 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4328 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4329 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4330 if test $ac_cv_header_stdc = yes; then
4332 cat >>confdefs.h <<\_ACEOF
4333 #define STDC_HEADERS 1
4334 _ACEOF
4338 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4348 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4349 inttypes.h stdint.h unistd.h
4351 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4352 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4355 echo $ECHO_N "(cached) $ECHO_C" >&6
4356 else
4357 cat >conftest.$ac_ext <<_ACEOF
4358 /* confdefs.h. */
4359 _ACEOF
4360 cat confdefs.h >>conftest.$ac_ext
4361 cat >>conftest.$ac_ext <<_ACEOF
4362 /* end confdefs.h. */
4363 $ac_includes_default
4365 #include <$ac_header>
4366 _ACEOF
4367 rm -f conftest.$ac_objext
4368 if { (ac_try="$ac_compile"
4369 case "(($ac_try" in
4370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4371 *) ac_try_echo=$ac_try;;
4372 esac
4373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4374 (eval "$ac_compile") 2>conftest.er1
4375 ac_status=$?
4376 grep -v '^ *+' conftest.er1 >conftest.err
4377 rm -f conftest.er1
4378 cat conftest.err >&5
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); } && {
4381 test -z "$ac_c_werror_flag" ||
4382 test ! -s conftest.err
4383 } && test -s conftest.$ac_objext; then
4384 eval "$as_ac_Header=yes"
4385 else
4386 echo "$as_me: failed program was:" >&5
4387 sed 's/^/| /' conftest.$ac_ext >&5
4389 eval "$as_ac_Header=no"
4392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4394 ac_res=`eval echo '${'$as_ac_Header'}'`
4395 { echo "$as_me:$LINENO: result: $ac_res" >&5
4396 echo "${ECHO_T}$ac_res" >&6; }
4397 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4398 cat >>confdefs.h <<_ACEOF
4399 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4400 _ACEOF
4404 done
4407 if test "${ac_cv_header_minix_config_h+set}" = set; then
4408 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4409 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4410 if test "${ac_cv_header_minix_config_h+set}" = set; then
4411 echo $ECHO_N "(cached) $ECHO_C" >&6
4413 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4414 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4415 else
4416 # Is the header compilable?
4417 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4418 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4419 cat >conftest.$ac_ext <<_ACEOF
4420 /* confdefs.h. */
4421 _ACEOF
4422 cat confdefs.h >>conftest.$ac_ext
4423 cat >>conftest.$ac_ext <<_ACEOF
4424 /* end confdefs.h. */
4425 $ac_includes_default
4426 #include <minix/config.h>
4427 _ACEOF
4428 rm -f conftest.$ac_objext
4429 if { (ac_try="$ac_compile"
4430 case "(($ac_try" in
4431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4432 *) ac_try_echo=$ac_try;;
4433 esac
4434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4435 (eval "$ac_compile") 2>conftest.er1
4436 ac_status=$?
4437 grep -v '^ *+' conftest.er1 >conftest.err
4438 rm -f conftest.er1
4439 cat conftest.err >&5
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); } && {
4442 test -z "$ac_c_werror_flag" ||
4443 test ! -s conftest.err
4444 } && test -s conftest.$ac_objext; then
4445 ac_header_compiler=yes
4446 else
4447 echo "$as_me: failed program was:" >&5
4448 sed 's/^/| /' conftest.$ac_ext >&5
4450 ac_header_compiler=no
4453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4454 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4455 echo "${ECHO_T}$ac_header_compiler" >&6; }
4457 # Is the header present?
4458 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4459 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4460 cat >conftest.$ac_ext <<_ACEOF
4461 /* confdefs.h. */
4462 _ACEOF
4463 cat confdefs.h >>conftest.$ac_ext
4464 cat >>conftest.$ac_ext <<_ACEOF
4465 /* end confdefs.h. */
4466 #include <minix/config.h>
4467 _ACEOF
4468 if { (ac_try="$ac_cpp conftest.$ac_ext"
4469 case "(($ac_try" in
4470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4471 *) ac_try_echo=$ac_try;;
4472 esac
4473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4475 ac_status=$?
4476 grep -v '^ *+' conftest.er1 >conftest.err
4477 rm -f conftest.er1
4478 cat conftest.err >&5
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); } >/dev/null && {
4481 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4482 test ! -s conftest.err
4483 }; then
4484 ac_header_preproc=yes
4485 else
4486 echo "$as_me: failed program was:" >&5
4487 sed 's/^/| /' conftest.$ac_ext >&5
4489 ac_header_preproc=no
4492 rm -f conftest.err conftest.$ac_ext
4493 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4494 echo "${ECHO_T}$ac_header_preproc" >&6; }
4496 # So? What about this header?
4497 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4498 yes:no: )
4499 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4500 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4501 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4502 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4503 ac_header_preproc=yes
4505 no:yes:* )
4506 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4507 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4508 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4509 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4510 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4511 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4512 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4513 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4514 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4515 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4516 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4517 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4520 esac
4521 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4522 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4523 if test "${ac_cv_header_minix_config_h+set}" = set; then
4524 echo $ECHO_N "(cached) $ECHO_C" >&6
4525 else
4526 ac_cv_header_minix_config_h=$ac_header_preproc
4528 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4529 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4532 if test $ac_cv_header_minix_config_h = yes; then
4533 MINIX=yes
4534 else
4535 MINIX=
4539 if test "$MINIX" = yes; then
4541 cat >>confdefs.h <<\_ACEOF
4542 #define _POSIX_SOURCE 1
4543 _ACEOF
4546 cat >>confdefs.h <<\_ACEOF
4547 #define _POSIX_1_SOURCE 2
4548 _ACEOF
4551 cat >>confdefs.h <<\_ACEOF
4552 #define _MINIX 1
4553 _ACEOF
4567 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4568 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4569 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4570 echo $ECHO_N "(cached) $ECHO_C" >&6
4571 else
4572 cat >conftest.$ac_ext <<_ACEOF
4573 /* confdefs.h. */
4574 _ACEOF
4575 cat confdefs.h >>conftest.$ac_ext
4576 cat >>conftest.$ac_ext <<_ACEOF
4577 /* end confdefs.h. */
4579 # define __EXTENSIONS__ 1
4580 $ac_includes_default
4582 main ()
4586 return 0;
4588 _ACEOF
4589 rm -f conftest.$ac_objext
4590 if { (ac_try="$ac_compile"
4591 case "(($ac_try" in
4592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4593 *) ac_try_echo=$ac_try;;
4594 esac
4595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4596 (eval "$ac_compile") 2>conftest.er1
4597 ac_status=$?
4598 grep -v '^ *+' conftest.er1 >conftest.err
4599 rm -f conftest.er1
4600 cat conftest.err >&5
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); } && {
4603 test -z "$ac_c_werror_flag" ||
4604 test ! -s conftest.err
4605 } && test -s conftest.$ac_objext; then
4606 ac_cv_safe_to_define___extensions__=yes
4607 else
4608 echo "$as_me: failed program was:" >&5
4609 sed 's/^/| /' conftest.$ac_ext >&5
4611 ac_cv_safe_to_define___extensions__=no
4614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4616 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4617 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4618 test $ac_cv_safe_to_define___extensions__ = yes &&
4619 cat >>confdefs.h <<\_ACEOF
4620 #define __EXTENSIONS__ 1
4621 _ACEOF
4623 cat >>confdefs.h <<\_ACEOF
4624 #define _POSIX_PTHREAD_SEMANTICS 1
4625 _ACEOF
4627 cat >>confdefs.h <<\_ACEOF
4628 #define _TANDEM_SOURCE 1
4629 _ACEOF
4633 ### Use -Wno-pointer-sign if the compiler supports it
4634 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4635 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4636 SAVE_CFLAGS="$CFLAGS"
4637 CFLAGS="$CFLAGS -Wno-pointer-sign"
4638 cat >conftest.$ac_ext <<_ACEOF
4639 /* confdefs.h. */
4640 _ACEOF
4641 cat confdefs.h >>conftest.$ac_ext
4642 cat >>conftest.$ac_ext <<_ACEOF
4643 /* end confdefs.h. */
4646 main ()
4650 return 0;
4652 _ACEOF
4653 rm -f conftest.$ac_objext
4654 if { (ac_try="$ac_compile"
4655 case "(($ac_try" in
4656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4657 *) ac_try_echo=$ac_try;;
4658 esac
4659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4660 (eval "$ac_compile") 2>conftest.er1
4661 ac_status=$?
4662 grep -v '^ *+' conftest.er1 >conftest.err
4663 rm -f conftest.er1
4664 cat conftest.err >&5
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); } && {
4667 test -z "$ac_c_werror_flag" ||
4668 test ! -s conftest.err
4669 } && test -s conftest.$ac_objext; then
4670 has_option=yes
4671 else
4672 echo "$as_me: failed program was:" >&5
4673 sed 's/^/| /' conftest.$ac_ext >&5
4675 has_option=no
4678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4679 if test $has_option = yes; then
4680 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4682 { echo "$as_me:$LINENO: result: $has_option" >&5
4683 echo "${ECHO_T}$has_option" >&6; }
4684 CFLAGS="$SAVE_CFLAGS"
4685 unset has_option
4686 unset SAVE_CFLAGS
4688 #### Some other nice autoconf tests.
4690 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4691 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4692 LN_S=$as_ln_s
4693 if test "$LN_S" = "ln -s"; then
4694 { echo "$as_me:$LINENO: result: yes" >&5
4695 echo "${ECHO_T}yes" >&6; }
4696 else
4697 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4698 echo "${ECHO_T}no, using $LN_S" >&6; }
4701 ac_ext=c
4702 ac_cpp='$CPP $CPPFLAGS'
4703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4706 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4707 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4708 # On Suns, sometimes $CPP names a directory.
4709 if test -n "$CPP" && test -d "$CPP"; then
4710 CPP=
4712 if test -z "$CPP"; then
4713 if test "${ac_cv_prog_CPP+set}" = set; then
4714 echo $ECHO_N "(cached) $ECHO_C" >&6
4715 else
4716 # Double quotes because CPP needs to be expanded
4717 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4719 ac_preproc_ok=false
4720 for ac_c_preproc_warn_flag in '' yes
4722 # Use a header file that comes with gcc, so configuring glibc
4723 # with a fresh cross-compiler works.
4724 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4725 # <limits.h> exists even on freestanding compilers.
4726 # On the NeXT, cc -E runs the code through the compiler's parser,
4727 # not just through cpp. "Syntax error" is here to catch this case.
4728 cat >conftest.$ac_ext <<_ACEOF
4729 /* confdefs.h. */
4730 _ACEOF
4731 cat confdefs.h >>conftest.$ac_ext
4732 cat >>conftest.$ac_ext <<_ACEOF
4733 /* end confdefs.h. */
4734 #ifdef __STDC__
4735 # include <limits.h>
4736 #else
4737 # include <assert.h>
4738 #endif
4739 Syntax error
4740 _ACEOF
4741 if { (ac_try="$ac_cpp conftest.$ac_ext"
4742 case "(($ac_try" in
4743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4744 *) ac_try_echo=$ac_try;;
4745 esac
4746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4748 ac_status=$?
4749 grep -v '^ *+' conftest.er1 >conftest.err
4750 rm -f conftest.er1
4751 cat conftest.err >&5
4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); } >/dev/null && {
4754 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4755 test ! -s conftest.err
4756 }; then
4758 else
4759 echo "$as_me: failed program was:" >&5
4760 sed 's/^/| /' conftest.$ac_ext >&5
4762 # Broken: fails on valid input.
4763 continue
4766 rm -f conftest.err conftest.$ac_ext
4768 # OK, works on sane cases. Now check whether nonexistent headers
4769 # can be detected and how.
4770 cat >conftest.$ac_ext <<_ACEOF
4771 /* confdefs.h. */
4772 _ACEOF
4773 cat confdefs.h >>conftest.$ac_ext
4774 cat >>conftest.$ac_ext <<_ACEOF
4775 /* end confdefs.h. */
4776 #include <ac_nonexistent.h>
4777 _ACEOF
4778 if { (ac_try="$ac_cpp conftest.$ac_ext"
4779 case "(($ac_try" in
4780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4781 *) ac_try_echo=$ac_try;;
4782 esac
4783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4784 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4785 ac_status=$?
4786 grep -v '^ *+' conftest.er1 >conftest.err
4787 rm -f conftest.er1
4788 cat conftest.err >&5
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); } >/dev/null && {
4791 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4792 test ! -s conftest.err
4793 }; then
4794 # Broken: success on invalid input.
4795 continue
4796 else
4797 echo "$as_me: failed program was:" >&5
4798 sed 's/^/| /' conftest.$ac_ext >&5
4800 # Passes both tests.
4801 ac_preproc_ok=:
4802 break
4805 rm -f conftest.err conftest.$ac_ext
4807 done
4808 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4809 rm -f conftest.err conftest.$ac_ext
4810 if $ac_preproc_ok; then
4811 break
4814 done
4815 ac_cv_prog_CPP=$CPP
4818 CPP=$ac_cv_prog_CPP
4819 else
4820 ac_cv_prog_CPP=$CPP
4822 { echo "$as_me:$LINENO: result: $CPP" >&5
4823 echo "${ECHO_T}$CPP" >&6; }
4824 ac_preproc_ok=false
4825 for ac_c_preproc_warn_flag in '' yes
4827 # Use a header file that comes with gcc, so configuring glibc
4828 # with a fresh cross-compiler works.
4829 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4830 # <limits.h> exists even on freestanding compilers.
4831 # On the NeXT, cc -E runs the code through the compiler's parser,
4832 # not just through cpp. "Syntax error" is here to catch this case.
4833 cat >conftest.$ac_ext <<_ACEOF
4834 /* confdefs.h. */
4835 _ACEOF
4836 cat confdefs.h >>conftest.$ac_ext
4837 cat >>conftest.$ac_ext <<_ACEOF
4838 /* end confdefs.h. */
4839 #ifdef __STDC__
4840 # include <limits.h>
4841 #else
4842 # include <assert.h>
4843 #endif
4844 Syntax error
4845 _ACEOF
4846 if { (ac_try="$ac_cpp conftest.$ac_ext"
4847 case "(($ac_try" in
4848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4849 *) ac_try_echo=$ac_try;;
4850 esac
4851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4852 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4853 ac_status=$?
4854 grep -v '^ *+' conftest.er1 >conftest.err
4855 rm -f conftest.er1
4856 cat conftest.err >&5
4857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858 (exit $ac_status); } >/dev/null && {
4859 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4860 test ! -s conftest.err
4861 }; then
4863 else
4864 echo "$as_me: failed program was:" >&5
4865 sed 's/^/| /' conftest.$ac_ext >&5
4867 # Broken: fails on valid input.
4868 continue
4871 rm -f conftest.err conftest.$ac_ext
4873 # OK, works on sane cases. Now check whether nonexistent headers
4874 # can be detected and how.
4875 cat >conftest.$ac_ext <<_ACEOF
4876 /* confdefs.h. */
4877 _ACEOF
4878 cat confdefs.h >>conftest.$ac_ext
4879 cat >>conftest.$ac_ext <<_ACEOF
4880 /* end confdefs.h. */
4881 #include <ac_nonexistent.h>
4882 _ACEOF
4883 if { (ac_try="$ac_cpp conftest.$ac_ext"
4884 case "(($ac_try" in
4885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4886 *) ac_try_echo=$ac_try;;
4887 esac
4888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4889 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4890 ac_status=$?
4891 grep -v '^ *+' conftest.er1 >conftest.err
4892 rm -f conftest.er1
4893 cat conftest.err >&5
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); } >/dev/null && {
4896 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4897 test ! -s conftest.err
4898 }; then
4899 # Broken: success on invalid input.
4900 continue
4901 else
4902 echo "$as_me: failed program was:" >&5
4903 sed 's/^/| /' conftest.$ac_ext >&5
4905 # Passes both tests.
4906 ac_preproc_ok=:
4907 break
4910 rm -f conftest.err conftest.$ac_ext
4912 done
4913 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4914 rm -f conftest.err conftest.$ac_ext
4915 if $ac_preproc_ok; then
4917 else
4918 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4919 See \`config.log' for more details." >&5
4920 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4921 See \`config.log' for more details." >&2;}
4922 { (exit 1); exit 1; }; }
4925 ac_ext=c
4926 ac_cpp='$CPP $CPPFLAGS'
4927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4931 # Find a good install program. We prefer a C program (faster),
4932 # so one script is as good as another. But avoid the broken or
4933 # incompatible versions:
4934 # SysV /etc/install, /usr/sbin/install
4935 # SunOS /usr/etc/install
4936 # IRIX /sbin/install
4937 # AIX /bin/install
4938 # AmigaOS /C/install, which installs bootblocks on floppy discs
4939 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4940 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4941 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4942 # OS/2's system install, which has a completely different semantic
4943 # ./install, which can be erroneously created by make from ./install.sh.
4944 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4945 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4946 if test -z "$INSTALL"; then
4947 if test "${ac_cv_path_install+set}" = set; then
4948 echo $ECHO_N "(cached) $ECHO_C" >&6
4949 else
4950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951 for as_dir in $PATH
4953 IFS=$as_save_IFS
4954 test -z "$as_dir" && as_dir=.
4955 # Account for people who put trailing slashes in PATH elements.
4956 case $as_dir/ in
4957 ./ | .// | /cC/* | \
4958 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4959 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4960 /usr/ucb/* ) ;;
4962 # OSF1 and SCO ODT 3.0 have their own names for install.
4963 # Don't use installbsd from OSF since it installs stuff as root
4964 # by default.
4965 for ac_prog in ginstall scoinst install; do
4966 for ac_exec_ext in '' $ac_executable_extensions; do
4967 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4968 if test $ac_prog = install &&
4969 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4970 # AIX install. It has an incompatible calling convention.
4972 elif test $ac_prog = install &&
4973 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4974 # program-specific install script used by HP pwplus--don't use.
4976 else
4977 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4978 break 3
4981 done
4982 done
4984 esac
4985 done
4986 IFS=$as_save_IFS
4990 if test "${ac_cv_path_install+set}" = set; then
4991 INSTALL=$ac_cv_path_install
4992 else
4993 # As a last resort, use the slow shell script. Don't cache a
4994 # value for INSTALL within a source directory, because that will
4995 # break other packages using the cache if that directory is
4996 # removed, or if the value is a relative name.
4997 INSTALL=$ac_install_sh
5000 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5001 echo "${ECHO_T}$INSTALL" >&6; }
5003 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5004 # It thinks the first close brace ends the variable substitution.
5005 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5007 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5009 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5011 if test "x$RANLIB" = x; then
5012 if test -n "$ac_tool_prefix"; then
5013 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5014 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5015 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5017 if test "${ac_cv_prog_RANLIB+set}" = set; then
5018 echo $ECHO_N "(cached) $ECHO_C" >&6
5019 else
5020 if test -n "$RANLIB"; then
5021 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5022 else
5023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5024 for as_dir in $PATH
5026 IFS=$as_save_IFS
5027 test -z "$as_dir" && as_dir=.
5028 for ac_exec_ext in '' $ac_executable_extensions; do
5029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5030 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5032 break 2
5034 done
5035 done
5036 IFS=$as_save_IFS
5040 RANLIB=$ac_cv_prog_RANLIB
5041 if test -n "$RANLIB"; then
5042 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5043 echo "${ECHO_T}$RANLIB" >&6; }
5044 else
5045 { echo "$as_me:$LINENO: result: no" >&5
5046 echo "${ECHO_T}no" >&6; }
5051 if test -z "$ac_cv_prog_RANLIB"; then
5052 ac_ct_RANLIB=$RANLIB
5053 # Extract the first word of "ranlib", so it can be a program name with args.
5054 set dummy ranlib; ac_word=$2
5055 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5057 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5058 echo $ECHO_N "(cached) $ECHO_C" >&6
5059 else
5060 if test -n "$ac_ct_RANLIB"; then
5061 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5062 else
5063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5064 for as_dir in $PATH
5066 IFS=$as_save_IFS
5067 test -z "$as_dir" && as_dir=.
5068 for ac_exec_ext in '' $ac_executable_extensions; do
5069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5070 ac_cv_prog_ac_ct_RANLIB="ranlib"
5071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5072 break 2
5074 done
5075 done
5076 IFS=$as_save_IFS
5080 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5081 if test -n "$ac_ct_RANLIB"; then
5082 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5083 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5084 else
5085 { echo "$as_me:$LINENO: result: no" >&5
5086 echo "${ECHO_T}no" >&6; }
5089 if test "x$ac_ct_RANLIB" = x; then
5090 RANLIB=":"
5091 else
5092 case $cross_compiling:$ac_tool_warned in
5093 yes:)
5094 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5095 whose name does not start with the host triplet. If you think this
5096 configuration is useful to you, please write to autoconf@gnu.org." >&5
5097 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5098 whose name does not start with the host triplet. If you think this
5099 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5100 ac_tool_warned=yes ;;
5101 esac
5102 RANLIB=$ac_ct_RANLIB
5104 else
5105 RANLIB="$ac_cv_prog_RANLIB"
5109 # Extract the first word of "install-info", so it can be a program name with args.
5110 set dummy install-info; ac_word=$2
5111 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5113 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5114 echo $ECHO_N "(cached) $ECHO_C" >&6
5115 else
5116 case $INSTALL_INFO in
5117 [\\/]* | ?:[\\/]*)
5118 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5122 for as_dir in $PATH
5124 IFS=$as_save_IFS
5125 test -z "$as_dir" && as_dir=.
5126 for ac_exec_ext in '' $ac_executable_extensions; do
5127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5128 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5130 break 2
5132 done
5133 done
5134 IFS=$as_save_IFS
5137 esac
5139 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5140 if test -n "$INSTALL_INFO"; then
5141 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5142 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5143 else
5144 { echo "$as_me:$LINENO: result: no" >&5
5145 echo "${ECHO_T}no" >&6; }
5149 # Extract the first word of "install-info", so it can be a program name with args.
5150 set dummy install-info; ac_word=$2
5151 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5153 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5154 echo $ECHO_N "(cached) $ECHO_C" >&6
5155 else
5156 case $INSTALL_INFO in
5157 [\\/]* | ?:[\\/]*)
5158 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162 for as_dir in /usr/sbin
5164 IFS=$as_save_IFS
5165 test -z "$as_dir" && as_dir=.
5166 for ac_exec_ext in '' $ac_executable_extensions; do
5167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5168 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5170 break 2
5172 done
5173 done
5174 IFS=$as_save_IFS
5177 esac
5179 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5180 if test -n "$INSTALL_INFO"; then
5181 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5182 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5183 else
5184 { echo "$as_me:$LINENO: result: no" >&5
5185 echo "${ECHO_T}no" >&6; }
5189 # Extract the first word of "install-info", so it can be a program name with args.
5190 set dummy install-info; ac_word=$2
5191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5193 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5194 echo $ECHO_N "(cached) $ECHO_C" >&6
5195 else
5196 case $INSTALL_INFO in
5197 [\\/]* | ?:[\\/]*)
5198 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5202 for as_dir in /sbin
5204 IFS=$as_save_IFS
5205 test -z "$as_dir" && as_dir=.
5206 for ac_exec_ext in '' $ac_executable_extensions; do
5207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5208 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5210 break 2
5212 done
5213 done
5214 IFS=$as_save_IFS
5216 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5218 esac
5220 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5221 if test -n "$INSTALL_INFO"; then
5222 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5223 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5224 else
5225 { echo "$as_me:$LINENO: result: no" >&5
5226 echo "${ECHO_T}no" >&6; }
5230 # Extract the first word of "gzip", so it can be a program name with args.
5231 set dummy gzip; ac_word=$2
5232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5234 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5235 echo $ECHO_N "(cached) $ECHO_C" >&6
5236 else
5237 case $GZIP_PROG in
5238 [\\/]* | ?:[\\/]*)
5239 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5243 for as_dir in $PATH
5245 IFS=$as_save_IFS
5246 test -z "$as_dir" && as_dir=.
5247 for ac_exec_ext in '' $ac_executable_extensions; do
5248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5249 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5251 break 2
5253 done
5254 done
5255 IFS=$as_save_IFS
5258 esac
5260 GZIP_PROG=$ac_cv_path_GZIP_PROG
5261 if test -n "$GZIP_PROG"; then
5262 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5263 echo "${ECHO_T}$GZIP_PROG" >&6; }
5264 else
5265 { echo "$as_me:$LINENO: result: no" >&5
5266 echo "${ECHO_T}no" >&6; }
5272 ## Need makeinfo >= 4.6 (?) to build the manuals.
5273 # Extract the first word of "makeinfo", so it can be a program name with args.
5274 set dummy makeinfo; ac_word=$2
5275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5277 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5278 echo $ECHO_N "(cached) $ECHO_C" >&6
5279 else
5280 case $MAKEINFO in
5281 [\\/]* | ?:[\\/]*)
5282 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5286 for as_dir in $PATH
5288 IFS=$as_save_IFS
5289 test -z "$as_dir" && as_dir=.
5290 for ac_exec_ext in '' $ac_executable_extensions; do
5291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5292 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5294 break 2
5296 done
5297 done
5298 IFS=$as_save_IFS
5300 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5302 esac
5304 MAKEINFO=$ac_cv_path_MAKEINFO
5305 if test -n "$MAKEINFO"; then
5306 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5307 echo "${ECHO_T}$MAKEINFO" >&6; }
5308 else
5309 { echo "$as_me:$LINENO: result: no" >&5
5310 echo "${ECHO_T}no" >&6; }
5314 if test "$MAKEINFO" != "no" && \
5315 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
5316 MAKEINFO=no
5319 ## Makeinfo is unusual. For a released Emacs, the manuals are
5320 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5321 ## therefore in the category of "special tools" not normally required, which
5322 ## configure does not have to check for (eg autoconf itself).
5323 ## In a CVS checkout on the other hand, the manuals are not included.
5324 ## So makeinfo is a requirement to build from CVS, and configure
5325 ## should test for it as it does for any other build requirement.
5326 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5327 ## with pre-built manuals, from a CVS checkout.
5328 if test "$MAKEINFO" = "no"; then
5329 if test "x${with_makeinfo}" = "xno"; then
5330 MAKEINFO=off
5331 elif ! test -e $srcdir/info/emacs; then
5332 { { echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5333 source tree does not seem to have pre-built manuals in the \`info' directory.
5334 Either install a suitable version of makeinfo, or re-run configure
5335 with the \`--without-makeinfo' option to build without the manuals. " >&5
5336 echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5337 source tree does not seem to have pre-built manuals in the \`info' directory.
5338 Either install a suitable version of makeinfo, or re-run configure
5339 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5340 { (exit 1); exit 1; }; }
5345 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5346 then
5347 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5350 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5351 then
5352 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5356 late_LDFLAGS=$LDFLAGS
5357 if test "$GCC" = yes; then
5358 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5359 else
5360 LDFLAGS="$LDFLAGS -znocombreloc"
5363 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5364 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5365 cat >conftest.$ac_ext <<_ACEOF
5366 main(){return 0;}
5367 _ACEOF
5368 rm -f conftest.$ac_objext conftest$ac_exeext
5369 if { (ac_try="$ac_link"
5370 case "(($ac_try" in
5371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5372 *) ac_try_echo=$ac_try;;
5373 esac
5374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5375 (eval "$ac_link") 2>conftest.er1
5376 ac_status=$?
5377 grep -v '^ *+' conftest.er1 >conftest.err
5378 rm -f conftest.er1
5379 cat conftest.err >&5
5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381 (exit $ac_status); } && {
5382 test -z "$ac_c_werror_flag" ||
5383 test ! -s conftest.err
5384 } && test -s conftest$ac_exeext &&
5385 $as_test_x conftest$ac_exeext; then
5386 { echo "$as_me:$LINENO: result: yes" >&5
5387 echo "${ECHO_T}yes" >&6; }
5388 else
5389 echo "$as_me: failed program was:" >&5
5390 sed 's/^/| /' conftest.$ac_ext >&5
5392 LDFLAGS=$late_LDFLAGS
5393 { echo "$as_me:$LINENO: result: no" >&5
5394 echo "${ECHO_T}no" >&6; }
5397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5398 conftest$ac_exeext conftest.$ac_ext
5400 #### Extract some information from the operating system and machine files.
5402 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5403 - which libraries the lib-src programs will want, and
5404 - whether the GNU malloc routines are usable..." >&5
5405 echo "$as_me: checking the machine- and system-dependent files to find out
5406 - which libraries the lib-src programs will want, and
5407 - whether the GNU malloc routines are usable..." >&6;}
5409 ### First figure out CFLAGS (which we use for running the compiler here)
5410 ### and REAL_CFLAGS (which we use for real compilation).
5411 ### The two are the same except on a few systems, where they are made
5412 ### different to work around various lossages. For example,
5413 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5414 ### as implying static linking.
5416 ### If the CFLAGS env var is specified, we use that value
5417 ### instead of the default.
5419 ### It's not important that this name contain the PID; you can't run
5420 ### two configures in the same directory and have anything work
5421 ### anyway.
5422 tempcname="conftest.c"
5424 echo '
5425 #include "'${srcdir}'/src/'${opsysfile}'"
5426 #include "'${srcdir}'/src/'${machfile}'"
5427 #ifndef LIBS_MACHINE
5428 #define LIBS_MACHINE
5429 #endif
5430 #ifndef LIBS_SYSTEM
5431 #define LIBS_SYSTEM
5432 #endif
5433 #ifndef C_SWITCH_SYSTEM
5434 #define C_SWITCH_SYSTEM
5435 #endif
5436 #ifndef C_SWITCH_MACHINE
5437 #define C_SWITCH_MACHINE
5438 #endif
5439 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5440 configure___ c_switch_system=C_SWITCH_SYSTEM
5441 configure___ c_switch_machine=C_SWITCH_MACHINE
5443 #ifndef LIB_X11_LIB
5444 #define LIB_X11_LIB -lX11
5445 #endif
5447 #ifndef LIBX11_SYSTEM
5448 #define LIBX11_SYSTEM
5449 #endif
5450 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5452 #ifdef UNEXEC
5453 configure___ unexec=UNEXEC
5454 #else
5455 configure___ unexec=unexec.o
5456 #endif
5458 #ifdef SYSTEM_MALLOC
5459 configure___ system_malloc=yes
5460 #else
5461 configure___ system_malloc=no
5462 #endif
5464 #ifdef USE_MMAP_FOR_BUFFERS
5465 configure___ use_mmap_for_buffers=yes
5466 #else
5467 configure___ use_mmap_for_buffers=no
5468 #endif
5470 #ifndef C_DEBUG_SWITCH
5471 #define C_DEBUG_SWITCH -g
5472 #endif
5474 #ifndef C_OPTIMIZE_SWITCH
5475 #ifdef __GNUC__
5476 #define C_OPTIMIZE_SWITCH -O2
5477 #else
5478 #define C_OPTIMIZE_SWITCH -O
5479 #endif
5480 #endif
5482 #ifndef C_WARNINGS_SWITCH
5483 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5484 #endif
5486 #ifndef LD_SWITCH_MACHINE
5487 #define LD_SWITCH_MACHINE
5488 #endif
5490 #ifndef LD_SWITCH_SYSTEM
5491 #define LD_SWITCH_SYSTEM
5492 #endif
5494 #ifndef LD_SWITCH_X_SITE_AUX
5495 #define LD_SWITCH_X_SITE_AUX
5496 #endif
5498 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5499 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5501 #ifdef THIS_IS_CONFIGURE
5503 /* Get the CFLAGS for tests in configure. */
5504 #ifdef __GNUC__
5505 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5506 #else
5507 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5508 #endif
5510 #else /* not THIS_IS_CONFIGURE */
5512 /* Get the CFLAGS for real compilation. */
5513 #ifdef __GNUC__
5514 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5515 #else
5516 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5517 #endif
5519 #endif /* not THIS_IS_CONFIGURE */
5520 ' > ${tempcname}
5522 # The value of CPP is a quoted variable reference, so we need to do this
5523 # to get its actual value...
5524 CPP=`eval "echo $CPP"`
5525 eval `${CPP} -Isrc ${tempcname} \
5526 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5527 if test "x$SPECIFIED_CFLAGS" = x; then
5528 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5529 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5530 else
5531 REAL_CFLAGS="$CFLAGS"
5533 rm ${tempcname}
5535 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5537 ### Make sure subsequent tests use flags consistent with the build flags.
5539 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5540 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5541 else
5542 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5547 # Check whether --enable-largefile was given.
5548 if test "${enable_largefile+set}" = set; then
5549 enableval=$enable_largefile;
5552 if test "$enable_largefile" != no; then
5554 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5555 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5556 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5557 echo $ECHO_N "(cached) $ECHO_C" >&6
5558 else
5559 ac_cv_sys_largefile_CC=no
5560 if test "$GCC" != yes; then
5561 ac_save_CC=$CC
5562 while :; do
5563 # IRIX 6.2 and later do not support large files by default,
5564 # so use the C compiler's -n32 option if that helps.
5565 cat >conftest.$ac_ext <<_ACEOF
5566 /* confdefs.h. */
5567 _ACEOF
5568 cat confdefs.h >>conftest.$ac_ext
5569 cat >>conftest.$ac_ext <<_ACEOF
5570 /* end confdefs.h. */
5571 #include <sys/types.h>
5572 /* Check that off_t can represent 2**63 - 1 correctly.
5573 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5574 since some C++ compilers masquerading as C compilers
5575 incorrectly reject 9223372036854775807. */
5576 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5577 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5578 && LARGE_OFF_T % 2147483647 == 1)
5579 ? 1 : -1];
5581 main ()
5585 return 0;
5587 _ACEOF
5588 rm -f conftest.$ac_objext
5589 if { (ac_try="$ac_compile"
5590 case "(($ac_try" in
5591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5592 *) ac_try_echo=$ac_try;;
5593 esac
5594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5595 (eval "$ac_compile") 2>conftest.er1
5596 ac_status=$?
5597 grep -v '^ *+' conftest.er1 >conftest.err
5598 rm -f conftest.er1
5599 cat conftest.err >&5
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); } && {
5602 test -z "$ac_c_werror_flag" ||
5603 test ! -s conftest.err
5604 } && test -s conftest.$ac_objext; then
5605 break
5606 else
5607 echo "$as_me: failed program was:" >&5
5608 sed 's/^/| /' conftest.$ac_ext >&5
5613 rm -f core conftest.err conftest.$ac_objext
5614 CC="$CC -n32"
5615 rm -f conftest.$ac_objext
5616 if { (ac_try="$ac_compile"
5617 case "(($ac_try" in
5618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5619 *) ac_try_echo=$ac_try;;
5620 esac
5621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5622 (eval "$ac_compile") 2>conftest.er1
5623 ac_status=$?
5624 grep -v '^ *+' conftest.er1 >conftest.err
5625 rm -f conftest.er1
5626 cat conftest.err >&5
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); } && {
5629 test -z "$ac_c_werror_flag" ||
5630 test ! -s conftest.err
5631 } && test -s conftest.$ac_objext; then
5632 ac_cv_sys_largefile_CC=' -n32'; break
5633 else
5634 echo "$as_me: failed program was:" >&5
5635 sed 's/^/| /' conftest.$ac_ext >&5
5640 rm -f core conftest.err conftest.$ac_objext
5641 break
5642 done
5643 CC=$ac_save_CC
5644 rm -f conftest.$ac_ext
5647 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5648 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5649 if test "$ac_cv_sys_largefile_CC" != no; then
5650 CC=$CC$ac_cv_sys_largefile_CC
5653 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5654 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5655 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5656 echo $ECHO_N "(cached) $ECHO_C" >&6
5657 else
5658 while :; do
5659 cat >conftest.$ac_ext <<_ACEOF
5660 /* confdefs.h. */
5661 _ACEOF
5662 cat confdefs.h >>conftest.$ac_ext
5663 cat >>conftest.$ac_ext <<_ACEOF
5664 /* end confdefs.h. */
5665 #include <sys/types.h>
5666 /* Check that off_t can represent 2**63 - 1 correctly.
5667 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5668 since some C++ compilers masquerading as C compilers
5669 incorrectly reject 9223372036854775807. */
5670 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5671 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5672 && LARGE_OFF_T % 2147483647 == 1)
5673 ? 1 : -1];
5675 main ()
5679 return 0;
5681 _ACEOF
5682 rm -f conftest.$ac_objext
5683 if { (ac_try="$ac_compile"
5684 case "(($ac_try" in
5685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5686 *) ac_try_echo=$ac_try;;
5687 esac
5688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5689 (eval "$ac_compile") 2>conftest.er1
5690 ac_status=$?
5691 grep -v '^ *+' conftest.er1 >conftest.err
5692 rm -f conftest.er1
5693 cat conftest.err >&5
5694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695 (exit $ac_status); } && {
5696 test -z "$ac_c_werror_flag" ||
5697 test ! -s conftest.err
5698 } && test -s conftest.$ac_objext; then
5699 ac_cv_sys_file_offset_bits=no; break
5700 else
5701 echo "$as_me: failed program was:" >&5
5702 sed 's/^/| /' conftest.$ac_ext >&5
5707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5708 cat >conftest.$ac_ext <<_ACEOF
5709 /* confdefs.h. */
5710 _ACEOF
5711 cat confdefs.h >>conftest.$ac_ext
5712 cat >>conftest.$ac_ext <<_ACEOF
5713 /* end confdefs.h. */
5714 #define _FILE_OFFSET_BITS 64
5715 #include <sys/types.h>
5716 /* Check that off_t can represent 2**63 - 1 correctly.
5717 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5718 since some C++ compilers masquerading as C compilers
5719 incorrectly reject 9223372036854775807. */
5720 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5721 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5722 && LARGE_OFF_T % 2147483647 == 1)
5723 ? 1 : -1];
5725 main ()
5729 return 0;
5731 _ACEOF
5732 rm -f conftest.$ac_objext
5733 if { (ac_try="$ac_compile"
5734 case "(($ac_try" in
5735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5736 *) ac_try_echo=$ac_try;;
5737 esac
5738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5739 (eval "$ac_compile") 2>conftest.er1
5740 ac_status=$?
5741 grep -v '^ *+' conftest.er1 >conftest.err
5742 rm -f conftest.er1
5743 cat conftest.err >&5
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); } && {
5746 test -z "$ac_c_werror_flag" ||
5747 test ! -s conftest.err
5748 } && test -s conftest.$ac_objext; then
5749 ac_cv_sys_file_offset_bits=64; break
5750 else
5751 echo "$as_me: failed program was:" >&5
5752 sed 's/^/| /' conftest.$ac_ext >&5
5757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5758 ac_cv_sys_file_offset_bits=unknown
5759 break
5760 done
5762 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5763 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5764 case $ac_cv_sys_file_offset_bits in #(
5765 no | unknown) ;;
5767 cat >>confdefs.h <<_ACEOF
5768 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5769 _ACEOF
5771 esac
5772 rm -f conftest*
5773 if test $ac_cv_sys_file_offset_bits = unknown; then
5774 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5775 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5776 if test "${ac_cv_sys_large_files+set}" = set; then
5777 echo $ECHO_N "(cached) $ECHO_C" >&6
5778 else
5779 while :; do
5780 cat >conftest.$ac_ext <<_ACEOF
5781 /* confdefs.h. */
5782 _ACEOF
5783 cat confdefs.h >>conftest.$ac_ext
5784 cat >>conftest.$ac_ext <<_ACEOF
5785 /* end confdefs.h. */
5786 #include <sys/types.h>
5787 /* Check that off_t can represent 2**63 - 1 correctly.
5788 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5789 since some C++ compilers masquerading as C compilers
5790 incorrectly reject 9223372036854775807. */
5791 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5792 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5793 && LARGE_OFF_T % 2147483647 == 1)
5794 ? 1 : -1];
5796 main ()
5800 return 0;
5802 _ACEOF
5803 rm -f conftest.$ac_objext
5804 if { (ac_try="$ac_compile"
5805 case "(($ac_try" in
5806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5807 *) ac_try_echo=$ac_try;;
5808 esac
5809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5810 (eval "$ac_compile") 2>conftest.er1
5811 ac_status=$?
5812 grep -v '^ *+' conftest.er1 >conftest.err
5813 rm -f conftest.er1
5814 cat conftest.err >&5
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); } && {
5817 test -z "$ac_c_werror_flag" ||
5818 test ! -s conftest.err
5819 } && test -s conftest.$ac_objext; then
5820 ac_cv_sys_large_files=no; break
5821 else
5822 echo "$as_me: failed program was:" >&5
5823 sed 's/^/| /' conftest.$ac_ext >&5
5828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5829 cat >conftest.$ac_ext <<_ACEOF
5830 /* confdefs.h. */
5831 _ACEOF
5832 cat confdefs.h >>conftest.$ac_ext
5833 cat >>conftest.$ac_ext <<_ACEOF
5834 /* end confdefs.h. */
5835 #define _LARGE_FILES 1
5836 #include <sys/types.h>
5837 /* Check that off_t can represent 2**63 - 1 correctly.
5838 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5839 since some C++ compilers masquerading as C compilers
5840 incorrectly reject 9223372036854775807. */
5841 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5842 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5843 && LARGE_OFF_T % 2147483647 == 1)
5844 ? 1 : -1];
5846 main ()
5850 return 0;
5852 _ACEOF
5853 rm -f conftest.$ac_objext
5854 if { (ac_try="$ac_compile"
5855 case "(($ac_try" in
5856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5857 *) ac_try_echo=$ac_try;;
5858 esac
5859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5860 (eval "$ac_compile") 2>conftest.er1
5861 ac_status=$?
5862 grep -v '^ *+' conftest.er1 >conftest.err
5863 rm -f conftest.er1
5864 cat conftest.err >&5
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); } && {
5867 test -z "$ac_c_werror_flag" ||
5868 test ! -s conftest.err
5869 } && test -s conftest.$ac_objext; then
5870 ac_cv_sys_large_files=1; break
5871 else
5872 echo "$as_me: failed program was:" >&5
5873 sed 's/^/| /' conftest.$ac_ext >&5
5878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5879 ac_cv_sys_large_files=unknown
5880 break
5881 done
5883 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5884 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5885 case $ac_cv_sys_large_files in #(
5886 no | unknown) ;;
5888 cat >>confdefs.h <<_ACEOF
5889 #define _LARGE_FILES $ac_cv_sys_large_files
5890 _ACEOF
5892 esac
5893 rm -f conftest*
5899 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5900 ### be located in either /usr/lib64 or /usr/lib.
5901 ### In some rare cases, /usr/lib64 exists but does not contain the
5902 ### relevant files (bug#1287). Hence test for crtn.o.
5903 case "${canonical}" in
5904 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5905 if test -e /usr/lib64/crtn.o; then
5907 cat >>confdefs.h <<\_ACEOF
5908 #define HAVE_LIB64_DIR 1
5909 _ACEOF
5912 esac
5917 if test "${with_sound}" != "no"; then
5918 # Sound support for GNU/Linux and the free BSDs.
5922 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5924 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5925 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5926 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5928 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5929 echo $ECHO_N "(cached) $ECHO_C" >&6
5931 ac_res=`eval echo '${'$as_ac_Header'}'`
5932 { echo "$as_me:$LINENO: result: $ac_res" >&5
5933 echo "${ECHO_T}$ac_res" >&6; }
5934 else
5935 # Is the header compilable?
5936 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5937 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5938 cat >conftest.$ac_ext <<_ACEOF
5939 /* confdefs.h. */
5940 _ACEOF
5941 cat confdefs.h >>conftest.$ac_ext
5942 cat >>conftest.$ac_ext <<_ACEOF
5943 /* end confdefs.h. */
5944 $ac_includes_default
5945 #include <$ac_header>
5946 _ACEOF
5947 rm -f conftest.$ac_objext
5948 if { (ac_try="$ac_compile"
5949 case "(($ac_try" in
5950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5951 *) ac_try_echo=$ac_try;;
5952 esac
5953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5954 (eval "$ac_compile") 2>conftest.er1
5955 ac_status=$?
5956 grep -v '^ *+' conftest.er1 >conftest.err
5957 rm -f conftest.er1
5958 cat conftest.err >&5
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); } && {
5961 test -z "$ac_c_werror_flag" ||
5962 test ! -s conftest.err
5963 } && test -s conftest.$ac_objext; then
5964 ac_header_compiler=yes
5965 else
5966 echo "$as_me: failed program was:" >&5
5967 sed 's/^/| /' conftest.$ac_ext >&5
5969 ac_header_compiler=no
5972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5973 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5974 echo "${ECHO_T}$ac_header_compiler" >&6; }
5976 # Is the header present?
5977 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5978 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5979 cat >conftest.$ac_ext <<_ACEOF
5980 /* confdefs.h. */
5981 _ACEOF
5982 cat confdefs.h >>conftest.$ac_ext
5983 cat >>conftest.$ac_ext <<_ACEOF
5984 /* end confdefs.h. */
5985 #include <$ac_header>
5986 _ACEOF
5987 if { (ac_try="$ac_cpp conftest.$ac_ext"
5988 case "(($ac_try" in
5989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5990 *) ac_try_echo=$ac_try;;
5991 esac
5992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5994 ac_status=$?
5995 grep -v '^ *+' conftest.er1 >conftest.err
5996 rm -f conftest.er1
5997 cat conftest.err >&5
5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); } >/dev/null && {
6000 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6001 test ! -s conftest.err
6002 }; then
6003 ac_header_preproc=yes
6004 else
6005 echo "$as_me: failed program was:" >&5
6006 sed 's/^/| /' conftest.$ac_ext >&5
6008 ac_header_preproc=no
6011 rm -f conftest.err conftest.$ac_ext
6012 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6013 echo "${ECHO_T}$ac_header_preproc" >&6; }
6015 # So? What about this header?
6016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6017 yes:no: )
6018 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6019 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6021 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6022 ac_header_preproc=yes
6024 no:yes:* )
6025 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6026 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6027 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6028 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6029 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6030 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6031 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6032 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6034 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6035 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6036 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6039 esac
6040 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6043 echo $ECHO_N "(cached) $ECHO_C" >&6
6044 else
6045 eval "$as_ac_Header=\$ac_header_preproc"
6047 ac_res=`eval echo '${'$as_ac_Header'}'`
6048 { echo "$as_me:$LINENO: result: $ac_res" >&5
6049 echo "${ECHO_T}$ac_res" >&6; }
6052 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6053 cat >>confdefs.h <<_ACEOF
6054 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6055 _ACEOF
6059 done
6061 # Emulation library used on NetBSD.
6062 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6063 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6064 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6065 echo $ECHO_N "(cached) $ECHO_C" >&6
6066 else
6067 ac_check_lib_save_LIBS=$LIBS
6068 LIBS="-lossaudio $LIBS"
6069 cat >conftest.$ac_ext <<_ACEOF
6070 /* confdefs.h. */
6071 _ACEOF
6072 cat confdefs.h >>conftest.$ac_ext
6073 cat >>conftest.$ac_ext <<_ACEOF
6074 /* end confdefs.h. */
6076 /* Override any GCC internal prototype to avoid an error.
6077 Use char because int might match the return type of a GCC
6078 builtin and then its argument prototype would still apply. */
6079 #ifdef __cplusplus
6080 extern "C"
6081 #endif
6082 char _oss_ioctl ();
6084 main ()
6086 return _oss_ioctl ();
6088 return 0;
6090 _ACEOF
6091 rm -f conftest.$ac_objext conftest$ac_exeext
6092 if { (ac_try="$ac_link"
6093 case "(($ac_try" in
6094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6095 *) ac_try_echo=$ac_try;;
6096 esac
6097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6098 (eval "$ac_link") 2>conftest.er1
6099 ac_status=$?
6100 grep -v '^ *+' conftest.er1 >conftest.err
6101 rm -f conftest.er1
6102 cat conftest.err >&5
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); } && {
6105 test -z "$ac_c_werror_flag" ||
6106 test ! -s conftest.err
6107 } && test -s conftest$ac_exeext &&
6108 $as_test_x conftest$ac_exeext; then
6109 ac_cv_lib_ossaudio__oss_ioctl=yes
6110 else
6111 echo "$as_me: failed program was:" >&5
6112 sed 's/^/| /' conftest.$ac_ext >&5
6114 ac_cv_lib_ossaudio__oss_ioctl=no
6117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6118 conftest$ac_exeext conftest.$ac_ext
6119 LIBS=$ac_check_lib_save_LIBS
6121 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6122 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6123 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6124 LIBSOUND=-lossaudio
6125 else
6126 LIBSOUND=
6131 ALSA_REQUIRED=1.0.0
6132 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6134 succeeded=no
6136 # Extract the first word of "pkg-config", so it can be a program name with args.
6137 set dummy pkg-config; ac_word=$2
6138 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6140 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6141 echo $ECHO_N "(cached) $ECHO_C" >&6
6142 else
6143 case $PKG_CONFIG in
6144 [\\/]* | ?:[\\/]*)
6145 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6149 for as_dir in $PATH
6151 IFS=$as_save_IFS
6152 test -z "$as_dir" && as_dir=.
6153 for ac_exec_ext in '' $ac_executable_extensions; do
6154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6155 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6157 break 2
6159 done
6160 done
6161 IFS=$as_save_IFS
6163 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6165 esac
6167 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6168 if test -n "$PKG_CONFIG"; then
6169 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6170 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6171 else
6172 { echo "$as_me:$LINENO: result: no" >&5
6173 echo "${ECHO_T}no" >&6; }
6178 if test "$PKG_CONFIG" = "no" ; then
6179 HAVE_ALSA=no
6180 else
6181 PKG_CONFIG_MIN_VERSION=0.9.0
6182 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6183 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6184 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6186 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6187 { echo "$as_me:$LINENO: result: yes" >&5
6188 echo "${ECHO_T}yes" >&6; }
6189 succeeded=yes
6191 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6192 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6193 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6194 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6195 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6197 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6198 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6199 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6200 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6201 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6202 else
6203 { echo "$as_me:$LINENO: result: no" >&5
6204 echo "${ECHO_T}no" >&6; }
6205 ALSA_CFLAGS=""
6206 ALSA_LIBS=""
6207 ## If we have a custom action on failure, don't print errors, but
6208 ## do set a variable so people can do so.
6209 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6215 else
6216 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6217 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6221 if test $succeeded = yes; then
6222 HAVE_ALSA=yes
6223 else
6224 HAVE_ALSA=no
6227 if test $HAVE_ALSA = yes; then
6228 SAVE_CFLAGS="$CFLAGS"
6229 SAVE_LDFLAGS="$LDFLAGS"
6230 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6231 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6232 cat >conftest.$ac_ext <<_ACEOF
6233 /* confdefs.h. */
6234 _ACEOF
6235 cat confdefs.h >>conftest.$ac_ext
6236 cat >>conftest.$ac_ext <<_ACEOF
6237 /* end confdefs.h. */
6238 #include <asoundlib.h>
6240 main ()
6242 snd_lib_error_set_handler (0);
6244 return 0;
6246 _ACEOF
6247 rm -f conftest.$ac_objext
6248 if { (ac_try="$ac_compile"
6249 case "(($ac_try" in
6250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6251 *) ac_try_echo=$ac_try;;
6252 esac
6253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6254 (eval "$ac_compile") 2>conftest.er1
6255 ac_status=$?
6256 grep -v '^ *+' conftest.er1 >conftest.err
6257 rm -f conftest.er1
6258 cat conftest.err >&5
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); } && {
6261 test -z "$ac_c_werror_flag" ||
6262 test ! -s conftest.err
6263 } && test -s conftest.$ac_objext; then
6264 emacs_alsa_normal=yes
6265 else
6266 echo "$as_me: failed program was:" >&5
6267 sed 's/^/| /' conftest.$ac_ext >&5
6269 emacs_alsa_normal=no
6272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6273 if test "$emacs_alsa_normal" != yes; then
6274 cat >conftest.$ac_ext <<_ACEOF
6275 /* confdefs.h. */
6276 _ACEOF
6277 cat confdefs.h >>conftest.$ac_ext
6278 cat >>conftest.$ac_ext <<_ACEOF
6279 /* end confdefs.h. */
6280 #include <alsa/asoundlib.h>
6282 main ()
6284 snd_lib_error_set_handler (0);
6286 return 0;
6288 _ACEOF
6289 rm -f conftest.$ac_objext
6290 if { (ac_try="$ac_compile"
6291 case "(($ac_try" in
6292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6293 *) ac_try_echo=$ac_try;;
6294 esac
6295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6296 (eval "$ac_compile") 2>conftest.er1
6297 ac_status=$?
6298 grep -v '^ *+' conftest.er1 >conftest.err
6299 rm -f conftest.er1
6300 cat conftest.err >&5
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); } && {
6303 test -z "$ac_c_werror_flag" ||
6304 test ! -s conftest.err
6305 } && test -s conftest.$ac_objext; then
6306 emacs_alsa_subdir=yes
6307 else
6308 echo "$as_me: failed program was:" >&5
6309 sed 's/^/| /' conftest.$ac_ext >&5
6311 emacs_alsa_subdir=no
6314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6315 if test "$emacs_alsa_subdir" != yes; then
6316 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6317 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6318 { (exit 1); exit 1; }; }
6320 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6323 CFLAGS="$SAVE_CFLAGS"
6324 LDFLAGS="$SAVE_LDFLAGS"
6325 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6326 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6328 cat >>confdefs.h <<\_ACEOF
6329 #define HAVE_ALSA 1
6330 _ACEOF
6361 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6362 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6363 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6364 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6365 sys/utsname.h pwd.h
6367 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6369 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6372 echo $ECHO_N "(cached) $ECHO_C" >&6
6374 ac_res=`eval echo '${'$as_ac_Header'}'`
6375 { echo "$as_me:$LINENO: result: $ac_res" >&5
6376 echo "${ECHO_T}$ac_res" >&6; }
6377 else
6378 # Is the header compilable?
6379 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6380 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6381 cat >conftest.$ac_ext <<_ACEOF
6382 /* confdefs.h. */
6383 _ACEOF
6384 cat confdefs.h >>conftest.$ac_ext
6385 cat >>conftest.$ac_ext <<_ACEOF
6386 /* end confdefs.h. */
6387 $ac_includes_default
6388 #include <$ac_header>
6389 _ACEOF
6390 rm -f conftest.$ac_objext
6391 if { (ac_try="$ac_compile"
6392 case "(($ac_try" in
6393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6394 *) ac_try_echo=$ac_try;;
6395 esac
6396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6397 (eval "$ac_compile") 2>conftest.er1
6398 ac_status=$?
6399 grep -v '^ *+' conftest.er1 >conftest.err
6400 rm -f conftest.er1
6401 cat conftest.err >&5
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); } && {
6404 test -z "$ac_c_werror_flag" ||
6405 test ! -s conftest.err
6406 } && test -s conftest.$ac_objext; then
6407 ac_header_compiler=yes
6408 else
6409 echo "$as_me: failed program was:" >&5
6410 sed 's/^/| /' conftest.$ac_ext >&5
6412 ac_header_compiler=no
6415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6416 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6417 echo "${ECHO_T}$ac_header_compiler" >&6; }
6419 # Is the header present?
6420 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6421 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6422 cat >conftest.$ac_ext <<_ACEOF
6423 /* confdefs.h. */
6424 _ACEOF
6425 cat confdefs.h >>conftest.$ac_ext
6426 cat >>conftest.$ac_ext <<_ACEOF
6427 /* end confdefs.h. */
6428 #include <$ac_header>
6429 _ACEOF
6430 if { (ac_try="$ac_cpp conftest.$ac_ext"
6431 case "(($ac_try" in
6432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6433 *) ac_try_echo=$ac_try;;
6434 esac
6435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6436 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6437 ac_status=$?
6438 grep -v '^ *+' conftest.er1 >conftest.err
6439 rm -f conftest.er1
6440 cat conftest.err >&5
6441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442 (exit $ac_status); } >/dev/null && {
6443 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6444 test ! -s conftest.err
6445 }; then
6446 ac_header_preproc=yes
6447 else
6448 echo "$as_me: failed program was:" >&5
6449 sed 's/^/| /' conftest.$ac_ext >&5
6451 ac_header_preproc=no
6454 rm -f conftest.err conftest.$ac_ext
6455 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6456 echo "${ECHO_T}$ac_header_preproc" >&6; }
6458 # So? What about this header?
6459 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6460 yes:no: )
6461 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6462 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6464 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6465 ac_header_preproc=yes
6467 no:yes:* )
6468 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6469 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6470 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6471 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6472 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6473 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6474 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6475 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6477 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6478 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6479 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6482 esac
6483 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6486 echo $ECHO_N "(cached) $ECHO_C" >&6
6487 else
6488 eval "$as_ac_Header=\$ac_header_preproc"
6490 ac_res=`eval echo '${'$as_ac_Header'}'`
6491 { echo "$as_me:$LINENO: result: $ac_res" >&5
6492 echo "${ECHO_T}$ac_res" >&6; }
6495 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6496 cat >>confdefs.h <<_ACEOF
6497 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6498 _ACEOF
6502 done
6505 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6506 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6507 cat >conftest.$ac_ext <<_ACEOF
6508 /* confdefs.h. */
6509 _ACEOF
6510 cat confdefs.h >>conftest.$ac_ext
6511 cat >>conftest.$ac_ext <<_ACEOF
6512 /* end confdefs.h. */
6513 #include <sys/personality.h>
6515 main ()
6517 personality (PER_LINUX32)
6519 return 0;
6521 _ACEOF
6522 rm -f conftest.$ac_objext
6523 if { (ac_try="$ac_compile"
6524 case "(($ac_try" in
6525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6526 *) ac_try_echo=$ac_try;;
6527 esac
6528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6529 (eval "$ac_compile") 2>conftest.er1
6530 ac_status=$?
6531 grep -v '^ *+' conftest.er1 >conftest.err
6532 rm -f conftest.er1
6533 cat conftest.err >&5
6534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535 (exit $ac_status); } && {
6536 test -z "$ac_c_werror_flag" ||
6537 test ! -s conftest.err
6538 } && test -s conftest.$ac_objext; then
6539 emacs_cv_personality_linux32=yes
6540 else
6541 echo "$as_me: failed program was:" >&5
6542 sed 's/^/| /' conftest.$ac_ext >&5
6544 emacs_cv_personality_linux32=no
6547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6548 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6549 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6551 if test $emacs_cv_personality_linux32 = yes; then
6553 cat >>confdefs.h <<\_ACEOF
6554 #define HAVE_PERSONALITY_LINUX32 1
6555 _ACEOF
6560 for ac_header in term.h
6562 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6563 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6566 echo $ECHO_N "(cached) $ECHO_C" >&6
6567 else
6568 cat >conftest.$ac_ext <<_ACEOF
6569 /* confdefs.h. */
6570 _ACEOF
6571 cat confdefs.h >>conftest.$ac_ext
6572 cat >>conftest.$ac_ext <<_ACEOF
6573 /* end confdefs.h. */
6574 #include <$ac_header>
6575 _ACEOF
6576 if { (ac_try="$ac_cpp conftest.$ac_ext"
6577 case "(($ac_try" in
6578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6579 *) ac_try_echo=$ac_try;;
6580 esac
6581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6583 ac_status=$?
6584 grep -v '^ *+' conftest.er1 >conftest.err
6585 rm -f conftest.er1
6586 cat conftest.err >&5
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); } >/dev/null && {
6589 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6590 test ! -s conftest.err
6591 }; then
6592 eval "$as_ac_Header=yes"
6593 else
6594 echo "$as_me: failed program was:" >&5
6595 sed 's/^/| /' conftest.$ac_ext >&5
6597 eval "$as_ac_Header=no"
6600 rm -f conftest.err conftest.$ac_ext
6602 ac_res=`eval echo '${'$as_ac_Header'}'`
6603 { echo "$as_me:$LINENO: result: $ac_res" >&5
6604 echo "${ECHO_T}$ac_res" >&6; }
6605 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6606 cat >>confdefs.h <<_ACEOF
6607 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6608 _ACEOF
6612 done
6614 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6615 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6616 if test "${ac_cv_header_stdc+set}" = set; then
6617 echo $ECHO_N "(cached) $ECHO_C" >&6
6618 else
6619 cat >conftest.$ac_ext <<_ACEOF
6620 /* confdefs.h. */
6621 _ACEOF
6622 cat confdefs.h >>conftest.$ac_ext
6623 cat >>conftest.$ac_ext <<_ACEOF
6624 /* end confdefs.h. */
6625 #include <stdlib.h>
6626 #include <stdarg.h>
6627 #include <string.h>
6628 #include <float.h>
6631 main ()
6635 return 0;
6637 _ACEOF
6638 rm -f conftest.$ac_objext
6639 if { (ac_try="$ac_compile"
6640 case "(($ac_try" in
6641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6642 *) ac_try_echo=$ac_try;;
6643 esac
6644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6645 (eval "$ac_compile") 2>conftest.er1
6646 ac_status=$?
6647 grep -v '^ *+' conftest.er1 >conftest.err
6648 rm -f conftest.er1
6649 cat conftest.err >&5
6650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651 (exit $ac_status); } && {
6652 test -z "$ac_c_werror_flag" ||
6653 test ! -s conftest.err
6654 } && test -s conftest.$ac_objext; then
6655 ac_cv_header_stdc=yes
6656 else
6657 echo "$as_me: failed program was:" >&5
6658 sed 's/^/| /' conftest.$ac_ext >&5
6660 ac_cv_header_stdc=no
6663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6665 if test $ac_cv_header_stdc = yes; then
6666 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6667 cat >conftest.$ac_ext <<_ACEOF
6668 /* confdefs.h. */
6669 _ACEOF
6670 cat confdefs.h >>conftest.$ac_ext
6671 cat >>conftest.$ac_ext <<_ACEOF
6672 /* end confdefs.h. */
6673 #include <string.h>
6675 _ACEOF
6676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6677 $EGREP "memchr" >/dev/null 2>&1; then
6679 else
6680 ac_cv_header_stdc=no
6682 rm -f conftest*
6686 if test $ac_cv_header_stdc = yes; then
6687 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6688 cat >conftest.$ac_ext <<_ACEOF
6689 /* confdefs.h. */
6690 _ACEOF
6691 cat confdefs.h >>conftest.$ac_ext
6692 cat >>conftest.$ac_ext <<_ACEOF
6693 /* end confdefs.h. */
6694 #include <stdlib.h>
6696 _ACEOF
6697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6698 $EGREP "free" >/dev/null 2>&1; then
6700 else
6701 ac_cv_header_stdc=no
6703 rm -f conftest*
6707 if test $ac_cv_header_stdc = yes; then
6708 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6709 if test "$cross_compiling" = yes; then
6711 else
6712 cat >conftest.$ac_ext <<_ACEOF
6713 /* confdefs.h. */
6714 _ACEOF
6715 cat confdefs.h >>conftest.$ac_ext
6716 cat >>conftest.$ac_ext <<_ACEOF
6717 /* end confdefs.h. */
6718 #include <ctype.h>
6719 #include <stdlib.h>
6720 #if ((' ' & 0x0FF) == 0x020)
6721 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6722 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6723 #else
6724 # define ISLOWER(c) \
6725 (('a' <= (c) && (c) <= 'i') \
6726 || ('j' <= (c) && (c) <= 'r') \
6727 || ('s' <= (c) && (c) <= 'z'))
6728 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6729 #endif
6731 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6733 main ()
6735 int i;
6736 for (i = 0; i < 256; i++)
6737 if (XOR (islower (i), ISLOWER (i))
6738 || toupper (i) != TOUPPER (i))
6739 return 2;
6740 return 0;
6742 _ACEOF
6743 rm -f conftest$ac_exeext
6744 if { (ac_try="$ac_link"
6745 case "(($ac_try" in
6746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6747 *) ac_try_echo=$ac_try;;
6748 esac
6749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6750 (eval "$ac_link") 2>&5
6751 ac_status=$?
6752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6754 { (case "(($ac_try" in
6755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6756 *) ac_try_echo=$ac_try;;
6757 esac
6758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6759 (eval "$ac_try") 2>&5
6760 ac_status=$?
6761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762 (exit $ac_status); }; }; then
6764 else
6765 echo "$as_me: program exited with status $ac_status" >&5
6766 echo "$as_me: failed program was:" >&5
6767 sed 's/^/| /' conftest.$ac_ext >&5
6769 ( exit $ac_status )
6770 ac_cv_header_stdc=no
6772 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6778 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6779 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6780 if test $ac_cv_header_stdc = yes; then
6782 cat >>confdefs.h <<\_ACEOF
6783 #define STDC_HEADERS 1
6784 _ACEOF
6788 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6789 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6790 if test "${ac_cv_header_time+set}" = set; then
6791 echo $ECHO_N "(cached) $ECHO_C" >&6
6792 else
6793 cat >conftest.$ac_ext <<_ACEOF
6794 /* confdefs.h. */
6795 _ACEOF
6796 cat confdefs.h >>conftest.$ac_ext
6797 cat >>conftest.$ac_ext <<_ACEOF
6798 /* end confdefs.h. */
6799 #include <sys/types.h>
6800 #include <sys/time.h>
6801 #include <time.h>
6804 main ()
6806 if ((struct tm *) 0)
6807 return 0;
6809 return 0;
6811 _ACEOF
6812 rm -f conftest.$ac_objext
6813 if { (ac_try="$ac_compile"
6814 case "(($ac_try" in
6815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6816 *) ac_try_echo=$ac_try;;
6817 esac
6818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6819 (eval "$ac_compile") 2>conftest.er1
6820 ac_status=$?
6821 grep -v '^ *+' conftest.er1 >conftest.err
6822 rm -f conftest.er1
6823 cat conftest.err >&5
6824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825 (exit $ac_status); } && {
6826 test -z "$ac_c_werror_flag" ||
6827 test ! -s conftest.err
6828 } && test -s conftest.$ac_objext; then
6829 ac_cv_header_time=yes
6830 else
6831 echo "$as_me: failed program was:" >&5
6832 sed 's/^/| /' conftest.$ac_ext >&5
6834 ac_cv_header_time=no
6837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6839 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6840 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6841 if test $ac_cv_header_time = yes; then
6843 cat >>confdefs.h <<\_ACEOF
6844 #define TIME_WITH_SYS_TIME 1
6845 _ACEOF
6849 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6850 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6851 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6852 echo $ECHO_N "(cached) $ECHO_C" >&6
6853 else
6854 cat >conftest.$ac_ext <<_ACEOF
6855 /* confdefs.h. */
6856 _ACEOF
6857 cat confdefs.h >>conftest.$ac_ext
6858 cat >>conftest.$ac_ext <<_ACEOF
6859 /* end confdefs.h. */
6860 $ac_includes_default
6862 main ()
6864 #ifndef sys_siglist
6865 (void) sys_siglist;
6866 #endif
6869 return 0;
6871 _ACEOF
6872 rm -f conftest.$ac_objext
6873 if { (ac_try="$ac_compile"
6874 case "(($ac_try" in
6875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6876 *) ac_try_echo=$ac_try;;
6877 esac
6878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6879 (eval "$ac_compile") 2>conftest.er1
6880 ac_status=$?
6881 grep -v '^ *+' conftest.er1 >conftest.err
6882 rm -f conftest.er1
6883 cat conftest.err >&5
6884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885 (exit $ac_status); } && {
6886 test -z "$ac_c_werror_flag" ||
6887 test ! -s conftest.err
6888 } && test -s conftest.$ac_objext; then
6889 ac_cv_have_decl_sys_siglist=yes
6890 else
6891 echo "$as_me: failed program was:" >&5
6892 sed 's/^/| /' conftest.$ac_ext >&5
6894 ac_cv_have_decl_sys_siglist=no
6897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6899 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6900 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6901 if test $ac_cv_have_decl_sys_siglist = yes; then
6903 cat >>confdefs.h <<_ACEOF
6904 #define HAVE_DECL_SYS_SIGLIST 1
6905 _ACEOF
6908 else
6909 cat >>confdefs.h <<_ACEOF
6910 #define HAVE_DECL_SYS_SIGLIST 0
6911 _ACEOF
6917 if test $ac_cv_have_decl_sys_siglist != yes; then
6918 # For Tru64, at least:
6919 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6920 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
6921 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6922 echo $ECHO_N "(cached) $ECHO_C" >&6
6923 else
6924 cat >conftest.$ac_ext <<_ACEOF
6925 /* confdefs.h. */
6926 _ACEOF
6927 cat confdefs.h >>conftest.$ac_ext
6928 cat >>conftest.$ac_ext <<_ACEOF
6929 /* end confdefs.h. */
6930 $ac_includes_default
6932 main ()
6934 #ifndef __sys_siglist
6935 (void) __sys_siglist;
6936 #endif
6939 return 0;
6941 _ACEOF
6942 rm -f conftest.$ac_objext
6943 if { (ac_try="$ac_compile"
6944 case "(($ac_try" in
6945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6946 *) ac_try_echo=$ac_try;;
6947 esac
6948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6949 (eval "$ac_compile") 2>conftest.er1
6950 ac_status=$?
6951 grep -v '^ *+' conftest.er1 >conftest.err
6952 rm -f conftest.er1
6953 cat conftest.err >&5
6954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955 (exit $ac_status); } && {
6956 test -z "$ac_c_werror_flag" ||
6957 test ! -s conftest.err
6958 } && test -s conftest.$ac_objext; then
6959 ac_cv_have_decl___sys_siglist=yes
6960 else
6961 echo "$as_me: failed program was:" >&5
6962 sed 's/^/| /' conftest.$ac_ext >&5
6964 ac_cv_have_decl___sys_siglist=no
6967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6969 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6970 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
6971 if test $ac_cv_have_decl___sys_siglist = yes; then
6973 cat >>confdefs.h <<_ACEOF
6974 #define HAVE_DECL___SYS_SIGLIST 1
6975 _ACEOF
6978 else
6979 cat >>confdefs.h <<_ACEOF
6980 #define HAVE_DECL___SYS_SIGLIST 0
6981 _ACEOF
6987 if test $ac_cv_have_decl___sys_siglist = yes; then
6989 cat >>confdefs.h <<\_ACEOF
6990 #define sys_siglist __sys_siglist
6991 _ACEOF
6995 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6996 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6997 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6998 echo $ECHO_N "(cached) $ECHO_C" >&6
6999 else
7000 cat >conftest.$ac_ext <<_ACEOF
7001 /* confdefs.h. */
7002 _ACEOF
7003 cat confdefs.h >>conftest.$ac_ext
7004 cat >>conftest.$ac_ext <<_ACEOF
7005 /* end confdefs.h. */
7006 #include <sys/types.h>
7007 #include <sys/wait.h>
7008 #ifndef WEXITSTATUS
7009 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7010 #endif
7011 #ifndef WIFEXITED
7012 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7013 #endif
7016 main ()
7018 int s;
7019 wait (&s);
7020 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7022 return 0;
7024 _ACEOF
7025 rm -f conftest.$ac_objext
7026 if { (ac_try="$ac_compile"
7027 case "(($ac_try" in
7028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7029 *) ac_try_echo=$ac_try;;
7030 esac
7031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7032 (eval "$ac_compile") 2>conftest.er1
7033 ac_status=$?
7034 grep -v '^ *+' conftest.er1 >conftest.err
7035 rm -f conftest.er1
7036 cat conftest.err >&5
7037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038 (exit $ac_status); } && {
7039 test -z "$ac_c_werror_flag" ||
7040 test ! -s conftest.err
7041 } && test -s conftest.$ac_objext; then
7042 ac_cv_header_sys_wait_h=yes
7043 else
7044 echo "$as_me: failed program was:" >&5
7045 sed 's/^/| /' conftest.$ac_ext >&5
7047 ac_cv_header_sys_wait_h=no
7050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7052 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7053 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7054 if test $ac_cv_header_sys_wait_h = yes; then
7056 cat >>confdefs.h <<\_ACEOF
7057 #define HAVE_SYS_WAIT_H 1
7058 _ACEOF
7063 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7064 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7065 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7066 echo $ECHO_N "(cached) $ECHO_C" >&6
7067 else
7068 cat >conftest.$ac_ext <<_ACEOF
7069 /* confdefs.h. */
7070 _ACEOF
7071 cat confdefs.h >>conftest.$ac_ext
7072 cat >>conftest.$ac_ext <<_ACEOF
7073 /* end confdefs.h. */
7074 #ifdef TIME_WITH_SYS_TIME
7075 #include <sys/time.h>
7076 #include <time.h>
7077 #else
7078 #ifdef HAVE_SYS_TIME_H
7079 #include <sys/time.h>
7080 #else
7081 #include <time.h>
7082 #endif
7083 #endif
7084 #ifdef HAVE_UTIME_H
7085 #include <utime.h>
7086 #endif
7088 main ()
7090 static struct utimbuf x; x.actime = x.modtime;
7092 return 0;
7094 _ACEOF
7095 rm -f conftest.$ac_objext
7096 if { (ac_try="$ac_compile"
7097 case "(($ac_try" in
7098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7099 *) ac_try_echo=$ac_try;;
7100 esac
7101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7102 (eval "$ac_compile") 2>conftest.er1
7103 ac_status=$?
7104 grep -v '^ *+' conftest.er1 >conftest.err
7105 rm -f conftest.er1
7106 cat conftest.err >&5
7107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7108 (exit $ac_status); } && {
7109 test -z "$ac_c_werror_flag" ||
7110 test ! -s conftest.err
7111 } && test -s conftest.$ac_objext; then
7112 emacs_cv_struct_utimbuf=yes
7113 else
7114 echo "$as_me: failed program was:" >&5
7115 sed 's/^/| /' conftest.$ac_ext >&5
7117 emacs_cv_struct_utimbuf=no
7120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7122 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7123 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7124 if test $emacs_cv_struct_utimbuf = yes; then
7126 cat >>confdefs.h <<\_ACEOF
7127 #define HAVE_STRUCT_UTIMBUF 1
7128 _ACEOF
7132 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7133 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7134 if test "${ac_cv_type_signal+set}" = set; then
7135 echo $ECHO_N "(cached) $ECHO_C" >&6
7136 else
7137 cat >conftest.$ac_ext <<_ACEOF
7138 /* confdefs.h. */
7139 _ACEOF
7140 cat confdefs.h >>conftest.$ac_ext
7141 cat >>conftest.$ac_ext <<_ACEOF
7142 /* end confdefs.h. */
7143 #include <sys/types.h>
7144 #include <signal.h>
7147 main ()
7149 return *(signal (0, 0)) (0) == 1;
7151 return 0;
7153 _ACEOF
7154 rm -f conftest.$ac_objext
7155 if { (ac_try="$ac_compile"
7156 case "(($ac_try" in
7157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7158 *) ac_try_echo=$ac_try;;
7159 esac
7160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7161 (eval "$ac_compile") 2>conftest.er1
7162 ac_status=$?
7163 grep -v '^ *+' conftest.er1 >conftest.err
7164 rm -f conftest.er1
7165 cat conftest.err >&5
7166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167 (exit $ac_status); } && {
7168 test -z "$ac_c_werror_flag" ||
7169 test ! -s conftest.err
7170 } && test -s conftest.$ac_objext; then
7171 ac_cv_type_signal=int
7172 else
7173 echo "$as_me: failed program was:" >&5
7174 sed 's/^/| /' conftest.$ac_ext >&5
7176 ac_cv_type_signal=void
7179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7181 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7182 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7184 cat >>confdefs.h <<_ACEOF
7185 #define RETSIGTYPE $ac_cv_type_signal
7186 _ACEOF
7190 { echo "$as_me:$LINENO: checking for speed_t" >&5
7191 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7192 if test "${emacs_cv_speed_t+set}" = set; then
7193 echo $ECHO_N "(cached) $ECHO_C" >&6
7194 else
7195 cat >conftest.$ac_ext <<_ACEOF
7196 /* confdefs.h. */
7197 _ACEOF
7198 cat confdefs.h >>conftest.$ac_ext
7199 cat >>conftest.$ac_ext <<_ACEOF
7200 /* end confdefs.h. */
7201 #include <termios.h>
7203 main ()
7205 speed_t x = 1;
7207 return 0;
7209 _ACEOF
7210 rm -f conftest.$ac_objext
7211 if { (ac_try="$ac_compile"
7212 case "(($ac_try" in
7213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7214 *) ac_try_echo=$ac_try;;
7215 esac
7216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7217 (eval "$ac_compile") 2>conftest.er1
7218 ac_status=$?
7219 grep -v '^ *+' conftest.er1 >conftest.err
7220 rm -f conftest.er1
7221 cat conftest.err >&5
7222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223 (exit $ac_status); } && {
7224 test -z "$ac_c_werror_flag" ||
7225 test ! -s conftest.err
7226 } && test -s conftest.$ac_objext; then
7227 emacs_cv_speed_t=yes
7228 else
7229 echo "$as_me: failed program was:" >&5
7230 sed 's/^/| /' conftest.$ac_ext >&5
7232 emacs_cv_speed_t=no
7235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7237 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7238 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7239 if test $emacs_cv_speed_t = yes; then
7241 cat >>confdefs.h <<\_ACEOF
7242 #define HAVE_SPEED_T 1
7243 _ACEOF
7247 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7248 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7249 if test "${emacs_cv_struct_timeval+set}" = set; then
7250 echo $ECHO_N "(cached) $ECHO_C" >&6
7251 else
7252 cat >conftest.$ac_ext <<_ACEOF
7253 /* confdefs.h. */
7254 _ACEOF
7255 cat confdefs.h >>conftest.$ac_ext
7256 cat >>conftest.$ac_ext <<_ACEOF
7257 /* end confdefs.h. */
7258 #ifdef TIME_WITH_SYS_TIME
7259 #include <sys/time.h>
7260 #include <time.h>
7261 #else
7262 #ifdef HAVE_SYS_TIME_H
7263 #include <sys/time.h>
7264 #else
7265 #include <time.h>
7266 #endif
7267 #endif
7269 main ()
7271 static struct timeval x; x.tv_sec = x.tv_usec;
7273 return 0;
7275 _ACEOF
7276 rm -f conftest.$ac_objext
7277 if { (ac_try="$ac_compile"
7278 case "(($ac_try" in
7279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7280 *) ac_try_echo=$ac_try;;
7281 esac
7282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7283 (eval "$ac_compile") 2>conftest.er1
7284 ac_status=$?
7285 grep -v '^ *+' conftest.er1 >conftest.err
7286 rm -f conftest.er1
7287 cat conftest.err >&5
7288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289 (exit $ac_status); } && {
7290 test -z "$ac_c_werror_flag" ||
7291 test ! -s conftest.err
7292 } && test -s conftest.$ac_objext; then
7293 emacs_cv_struct_timeval=yes
7294 else
7295 echo "$as_me: failed program was:" >&5
7296 sed 's/^/| /' conftest.$ac_ext >&5
7298 emacs_cv_struct_timeval=no
7301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7303 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7304 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7305 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7306 if test $emacs_cv_struct_timeval = yes; then
7308 cat >>confdefs.h <<\_ACEOF
7309 #define HAVE_TIMEVAL 1
7310 _ACEOF
7314 { echo "$as_me:$LINENO: checking for struct exception" >&5
7315 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7316 if test "${emacs_cv_struct_exception+set}" = set; then
7317 echo $ECHO_N "(cached) $ECHO_C" >&6
7318 else
7319 cat >conftest.$ac_ext <<_ACEOF
7320 /* confdefs.h. */
7321 _ACEOF
7322 cat confdefs.h >>conftest.$ac_ext
7323 cat >>conftest.$ac_ext <<_ACEOF
7324 /* end confdefs.h. */
7325 #include <math.h>
7327 main ()
7329 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7331 return 0;
7333 _ACEOF
7334 rm -f conftest.$ac_objext
7335 if { (ac_try="$ac_compile"
7336 case "(($ac_try" in
7337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7338 *) ac_try_echo=$ac_try;;
7339 esac
7340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7341 (eval "$ac_compile") 2>conftest.er1
7342 ac_status=$?
7343 grep -v '^ *+' conftest.er1 >conftest.err
7344 rm -f conftest.er1
7345 cat conftest.err >&5
7346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347 (exit $ac_status); } && {
7348 test -z "$ac_c_werror_flag" ||
7349 test ! -s conftest.err
7350 } && test -s conftest.$ac_objext; then
7351 emacs_cv_struct_exception=yes
7352 else
7353 echo "$as_me: failed program was:" >&5
7354 sed 's/^/| /' conftest.$ac_ext >&5
7356 emacs_cv_struct_exception=no
7359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7361 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7362 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7363 HAVE_EXCEPTION=$emacs_cv_struct_exception
7364 if test $emacs_cv_struct_exception != yes; then
7366 cat >>confdefs.h <<\_ACEOF
7367 #define NO_MATHERR 1
7368 _ACEOF
7373 for ac_header in sys/socket.h
7375 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7377 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7380 echo $ECHO_N "(cached) $ECHO_C" >&6
7382 ac_res=`eval echo '${'$as_ac_Header'}'`
7383 { echo "$as_me:$LINENO: result: $ac_res" >&5
7384 echo "${ECHO_T}$ac_res" >&6; }
7385 else
7386 # Is the header compilable?
7387 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7388 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7389 cat >conftest.$ac_ext <<_ACEOF
7390 /* confdefs.h. */
7391 _ACEOF
7392 cat confdefs.h >>conftest.$ac_ext
7393 cat >>conftest.$ac_ext <<_ACEOF
7394 /* end confdefs.h. */
7395 $ac_includes_default
7396 #include <$ac_header>
7397 _ACEOF
7398 rm -f conftest.$ac_objext
7399 if { (ac_try="$ac_compile"
7400 case "(($ac_try" in
7401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7402 *) ac_try_echo=$ac_try;;
7403 esac
7404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7405 (eval "$ac_compile") 2>conftest.er1
7406 ac_status=$?
7407 grep -v '^ *+' conftest.er1 >conftest.err
7408 rm -f conftest.er1
7409 cat conftest.err >&5
7410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411 (exit $ac_status); } && {
7412 test -z "$ac_c_werror_flag" ||
7413 test ! -s conftest.err
7414 } && test -s conftest.$ac_objext; then
7415 ac_header_compiler=yes
7416 else
7417 echo "$as_me: failed program was:" >&5
7418 sed 's/^/| /' conftest.$ac_ext >&5
7420 ac_header_compiler=no
7423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7424 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7425 echo "${ECHO_T}$ac_header_compiler" >&6; }
7427 # Is the header present?
7428 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7429 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7430 cat >conftest.$ac_ext <<_ACEOF
7431 /* confdefs.h. */
7432 _ACEOF
7433 cat confdefs.h >>conftest.$ac_ext
7434 cat >>conftest.$ac_ext <<_ACEOF
7435 /* end confdefs.h. */
7436 #include <$ac_header>
7437 _ACEOF
7438 if { (ac_try="$ac_cpp conftest.$ac_ext"
7439 case "(($ac_try" in
7440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7441 *) ac_try_echo=$ac_try;;
7442 esac
7443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7444 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7445 ac_status=$?
7446 grep -v '^ *+' conftest.er1 >conftest.err
7447 rm -f conftest.er1
7448 cat conftest.err >&5
7449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450 (exit $ac_status); } >/dev/null && {
7451 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7452 test ! -s conftest.err
7453 }; then
7454 ac_header_preproc=yes
7455 else
7456 echo "$as_me: failed program was:" >&5
7457 sed 's/^/| /' conftest.$ac_ext >&5
7459 ac_header_preproc=no
7462 rm -f conftest.err conftest.$ac_ext
7463 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7464 echo "${ECHO_T}$ac_header_preproc" >&6; }
7466 # So? What about this header?
7467 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7468 yes:no: )
7469 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7470 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7471 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7472 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7473 ac_header_preproc=yes
7475 no:yes:* )
7476 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7477 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7478 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7479 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7480 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7481 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7482 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7483 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7485 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7486 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7487 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7490 esac
7491 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7494 echo $ECHO_N "(cached) $ECHO_C" >&6
7495 else
7496 eval "$as_ac_Header=\$ac_header_preproc"
7498 ac_res=`eval echo '${'$as_ac_Header'}'`
7499 { echo "$as_me:$LINENO: result: $ac_res" >&5
7500 echo "${ECHO_T}$ac_res" >&6; }
7503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7504 cat >>confdefs.h <<_ACEOF
7505 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7506 _ACEOF
7510 done
7513 for ac_header in net/if.h
7515 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7516 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7519 echo $ECHO_N "(cached) $ECHO_C" >&6
7520 else
7521 cat >conftest.$ac_ext <<_ACEOF
7522 /* confdefs.h. */
7523 _ACEOF
7524 cat confdefs.h >>conftest.$ac_ext
7525 cat >>conftest.$ac_ext <<_ACEOF
7526 /* end confdefs.h. */
7527 $ac_includes_default
7528 #if HAVE_SYS_SOCKET_H
7529 #include <sys/socket.h>
7530 #endif
7532 #include <$ac_header>
7533 _ACEOF
7534 rm -f conftest.$ac_objext
7535 if { (ac_try="$ac_compile"
7536 case "(($ac_try" in
7537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7538 *) ac_try_echo=$ac_try;;
7539 esac
7540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7541 (eval "$ac_compile") 2>conftest.er1
7542 ac_status=$?
7543 grep -v '^ *+' conftest.er1 >conftest.err
7544 rm -f conftest.er1
7545 cat conftest.err >&5
7546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547 (exit $ac_status); } && {
7548 test -z "$ac_c_werror_flag" ||
7549 test ! -s conftest.err
7550 } && test -s conftest.$ac_objext; then
7551 eval "$as_ac_Header=yes"
7552 else
7553 echo "$as_me: failed program was:" >&5
7554 sed 's/^/| /' conftest.$ac_ext >&5
7556 eval "$as_ac_Header=no"
7559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7561 ac_res=`eval echo '${'$as_ac_Header'}'`
7562 { echo "$as_me:$LINENO: result: $ac_res" >&5
7563 echo "${ECHO_T}$ac_res" >&6; }
7564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7565 cat >>confdefs.h <<_ACEOF
7566 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7567 _ACEOF
7571 done
7574 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7575 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7576 if test "${ac_cv_struct_tm+set}" = set; then
7577 echo $ECHO_N "(cached) $ECHO_C" >&6
7578 else
7579 cat >conftest.$ac_ext <<_ACEOF
7580 /* confdefs.h. */
7581 _ACEOF
7582 cat confdefs.h >>conftest.$ac_ext
7583 cat >>conftest.$ac_ext <<_ACEOF
7584 /* end confdefs.h. */
7585 #include <sys/types.h>
7586 #include <time.h>
7589 main ()
7591 struct tm tm;
7592 int *p = &tm.tm_sec;
7593 return !p;
7595 return 0;
7597 _ACEOF
7598 rm -f conftest.$ac_objext
7599 if { (ac_try="$ac_compile"
7600 case "(($ac_try" in
7601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7602 *) ac_try_echo=$ac_try;;
7603 esac
7604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7605 (eval "$ac_compile") 2>conftest.er1
7606 ac_status=$?
7607 grep -v '^ *+' conftest.er1 >conftest.err
7608 rm -f conftest.er1
7609 cat conftest.err >&5
7610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611 (exit $ac_status); } && {
7612 test -z "$ac_c_werror_flag" ||
7613 test ! -s conftest.err
7614 } && test -s conftest.$ac_objext; then
7615 ac_cv_struct_tm=time.h
7616 else
7617 echo "$as_me: failed program was:" >&5
7618 sed 's/^/| /' conftest.$ac_ext >&5
7620 ac_cv_struct_tm=sys/time.h
7623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7625 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7626 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7627 if test $ac_cv_struct_tm = sys/time.h; then
7629 cat >>confdefs.h <<\_ACEOF
7630 #define TM_IN_SYS_TIME 1
7631 _ACEOF
7635 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7636 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7637 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7638 echo $ECHO_N "(cached) $ECHO_C" >&6
7639 else
7640 cat >conftest.$ac_ext <<_ACEOF
7641 /* confdefs.h. */
7642 _ACEOF
7643 cat confdefs.h >>conftest.$ac_ext
7644 cat >>conftest.$ac_ext <<_ACEOF
7645 /* end confdefs.h. */
7646 #include <sys/types.h>
7647 #include <$ac_cv_struct_tm>
7651 main ()
7653 static struct tm ac_aggr;
7654 if (ac_aggr.tm_zone)
7655 return 0;
7657 return 0;
7659 _ACEOF
7660 rm -f conftest.$ac_objext
7661 if { (ac_try="$ac_compile"
7662 case "(($ac_try" in
7663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7664 *) ac_try_echo=$ac_try;;
7665 esac
7666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7667 (eval "$ac_compile") 2>conftest.er1
7668 ac_status=$?
7669 grep -v '^ *+' conftest.er1 >conftest.err
7670 rm -f conftest.er1
7671 cat conftest.err >&5
7672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673 (exit $ac_status); } && {
7674 test -z "$ac_c_werror_flag" ||
7675 test ! -s conftest.err
7676 } && test -s conftest.$ac_objext; then
7677 ac_cv_member_struct_tm_tm_zone=yes
7678 else
7679 echo "$as_me: failed program was:" >&5
7680 sed 's/^/| /' conftest.$ac_ext >&5
7682 cat >conftest.$ac_ext <<_ACEOF
7683 /* confdefs.h. */
7684 _ACEOF
7685 cat confdefs.h >>conftest.$ac_ext
7686 cat >>conftest.$ac_ext <<_ACEOF
7687 /* end confdefs.h. */
7688 #include <sys/types.h>
7689 #include <$ac_cv_struct_tm>
7693 main ()
7695 static struct tm ac_aggr;
7696 if (sizeof ac_aggr.tm_zone)
7697 return 0;
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_member_struct_tm_tm_zone=yes
7720 else
7721 echo "$as_me: failed program was:" >&5
7722 sed 's/^/| /' conftest.$ac_ext >&5
7724 ac_cv_member_struct_tm_tm_zone=no
7727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7732 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7733 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7734 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7736 cat >>confdefs.h <<_ACEOF
7737 #define HAVE_STRUCT_TM_TM_ZONE 1
7738 _ACEOF
7743 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7745 cat >>confdefs.h <<\_ACEOF
7746 #define HAVE_TM_ZONE 1
7747 _ACEOF
7749 else
7750 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7751 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7752 if test "${ac_cv_have_decl_tzname+set}" = set; then
7753 echo $ECHO_N "(cached) $ECHO_C" >&6
7754 else
7755 cat >conftest.$ac_ext <<_ACEOF
7756 /* confdefs.h. */
7757 _ACEOF
7758 cat confdefs.h >>conftest.$ac_ext
7759 cat >>conftest.$ac_ext <<_ACEOF
7760 /* end confdefs.h. */
7761 #include <time.h>
7764 main ()
7766 #ifndef tzname
7767 (void) tzname;
7768 #endif
7771 return 0;
7773 _ACEOF
7774 rm -f conftest.$ac_objext
7775 if { (ac_try="$ac_compile"
7776 case "(($ac_try" in
7777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7778 *) ac_try_echo=$ac_try;;
7779 esac
7780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7781 (eval "$ac_compile") 2>conftest.er1
7782 ac_status=$?
7783 grep -v '^ *+' conftest.er1 >conftest.err
7784 rm -f conftest.er1
7785 cat conftest.err >&5
7786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787 (exit $ac_status); } && {
7788 test -z "$ac_c_werror_flag" ||
7789 test ! -s conftest.err
7790 } && test -s conftest.$ac_objext; then
7791 ac_cv_have_decl_tzname=yes
7792 else
7793 echo "$as_me: failed program was:" >&5
7794 sed 's/^/| /' conftest.$ac_ext >&5
7796 ac_cv_have_decl_tzname=no
7799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7801 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7802 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7803 if test $ac_cv_have_decl_tzname = yes; then
7805 cat >>confdefs.h <<_ACEOF
7806 #define HAVE_DECL_TZNAME 1
7807 _ACEOF
7810 else
7811 cat >>confdefs.h <<_ACEOF
7812 #define HAVE_DECL_TZNAME 0
7813 _ACEOF
7819 { echo "$as_me:$LINENO: checking for tzname" >&5
7820 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7821 if test "${ac_cv_var_tzname+set}" = set; then
7822 echo $ECHO_N "(cached) $ECHO_C" >&6
7823 else
7824 cat >conftest.$ac_ext <<_ACEOF
7825 /* confdefs.h. */
7826 _ACEOF
7827 cat confdefs.h >>conftest.$ac_ext
7828 cat >>conftest.$ac_ext <<_ACEOF
7829 /* end confdefs.h. */
7830 #include <time.h>
7831 #if !HAVE_DECL_TZNAME
7832 extern char *tzname[];
7833 #endif
7836 main ()
7838 return tzname[0][0];
7840 return 0;
7842 _ACEOF
7843 rm -f conftest.$ac_objext conftest$ac_exeext
7844 if { (ac_try="$ac_link"
7845 case "(($ac_try" in
7846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7847 *) ac_try_echo=$ac_try;;
7848 esac
7849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7850 (eval "$ac_link") 2>conftest.er1
7851 ac_status=$?
7852 grep -v '^ *+' conftest.er1 >conftest.err
7853 rm -f conftest.er1
7854 cat conftest.err >&5
7855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856 (exit $ac_status); } && {
7857 test -z "$ac_c_werror_flag" ||
7858 test ! -s conftest.err
7859 } && test -s conftest$ac_exeext &&
7860 $as_test_x conftest$ac_exeext; then
7861 ac_cv_var_tzname=yes
7862 else
7863 echo "$as_me: failed program was:" >&5
7864 sed 's/^/| /' conftest.$ac_ext >&5
7866 ac_cv_var_tzname=no
7869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7870 conftest$ac_exeext conftest.$ac_ext
7872 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7873 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7874 if test $ac_cv_var_tzname = yes; then
7876 cat >>confdefs.h <<\_ACEOF
7877 #define HAVE_TZNAME 1
7878 _ACEOF
7883 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7884 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7885 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7886 echo $ECHO_N "(cached) $ECHO_C" >&6
7887 else
7888 cat >conftest.$ac_ext <<_ACEOF
7889 /* confdefs.h. */
7890 _ACEOF
7891 cat confdefs.h >>conftest.$ac_ext
7892 cat >>conftest.$ac_ext <<_ACEOF
7893 /* end confdefs.h. */
7894 #include <time.h>
7897 main ()
7899 static struct tm ac_aggr;
7900 if (ac_aggr.tm_gmtoff)
7901 return 0;
7903 return 0;
7905 _ACEOF
7906 rm -f conftest.$ac_objext
7907 if { (ac_try="$ac_compile"
7908 case "(($ac_try" in
7909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7910 *) ac_try_echo=$ac_try;;
7911 esac
7912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7913 (eval "$ac_compile") 2>conftest.er1
7914 ac_status=$?
7915 grep -v '^ *+' conftest.er1 >conftest.err
7916 rm -f conftest.er1
7917 cat conftest.err >&5
7918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919 (exit $ac_status); } && {
7920 test -z "$ac_c_werror_flag" ||
7921 test ! -s conftest.err
7922 } && test -s conftest.$ac_objext; then
7923 ac_cv_member_struct_tm_tm_gmtoff=yes
7924 else
7925 echo "$as_me: failed program was:" >&5
7926 sed 's/^/| /' conftest.$ac_ext >&5
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>
7937 main ()
7939 static struct tm ac_aggr;
7940 if (sizeof ac_aggr.tm_gmtoff)
7941 return 0;
7943 return 0;
7945 _ACEOF
7946 rm -f conftest.$ac_objext
7947 if { (ac_try="$ac_compile"
7948 case "(($ac_try" in
7949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7950 *) ac_try_echo=$ac_try;;
7951 esac
7952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7953 (eval "$ac_compile") 2>conftest.er1
7954 ac_status=$?
7955 grep -v '^ *+' conftest.er1 >conftest.err
7956 rm -f conftest.er1
7957 cat conftest.err >&5
7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); } && {
7960 test -z "$ac_c_werror_flag" ||
7961 test ! -s conftest.err
7962 } && test -s conftest.$ac_objext; then
7963 ac_cv_member_struct_tm_tm_gmtoff=yes
7964 else
7965 echo "$as_me: failed program was:" >&5
7966 sed 's/^/| /' conftest.$ac_ext >&5
7968 ac_cv_member_struct_tm_tm_gmtoff=no
7971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7976 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7977 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7978 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7980 cat >>confdefs.h <<\_ACEOF
7981 #define HAVE_TM_GMTOFF 1
7982 _ACEOF
7986 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7987 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
7988 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7989 echo $ECHO_N "(cached) $ECHO_C" >&6
7990 else
7991 cat >conftest.$ac_ext <<_ACEOF
7992 /* confdefs.h. */
7993 _ACEOF
7994 cat confdefs.h >>conftest.$ac_ext
7995 cat >>conftest.$ac_ext <<_ACEOF
7996 /* end confdefs.h. */
7997 $ac_includes_default
7998 #if HAVE_SYS_SOCKET_H
7999 #include <sys/socket.h>
8000 #endif
8001 #if HAVE_NET_IF_H
8002 #include <net/if.h>
8003 #endif
8006 main ()
8008 static struct ifreq ac_aggr;
8009 if (ac_aggr.ifr_flags)
8010 return 0;
8012 return 0;
8014 _ACEOF
8015 rm -f conftest.$ac_objext
8016 if { (ac_try="$ac_compile"
8017 case "(($ac_try" in
8018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8019 *) ac_try_echo=$ac_try;;
8020 esac
8021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8022 (eval "$ac_compile") 2>conftest.er1
8023 ac_status=$?
8024 grep -v '^ *+' conftest.er1 >conftest.err
8025 rm -f conftest.er1
8026 cat conftest.err >&5
8027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028 (exit $ac_status); } && {
8029 test -z "$ac_c_werror_flag" ||
8030 test ! -s conftest.err
8031 } && test -s conftest.$ac_objext; then
8032 ac_cv_member_struct_ifreq_ifr_flags=yes
8033 else
8034 echo "$as_me: failed program was:" >&5
8035 sed 's/^/| /' conftest.$ac_ext >&5
8037 cat >conftest.$ac_ext <<_ACEOF
8038 /* confdefs.h. */
8039 _ACEOF
8040 cat confdefs.h >>conftest.$ac_ext
8041 cat >>conftest.$ac_ext <<_ACEOF
8042 /* end confdefs.h. */
8043 $ac_includes_default
8044 #if HAVE_SYS_SOCKET_H
8045 #include <sys/socket.h>
8046 #endif
8047 #if HAVE_NET_IF_H
8048 #include <net/if.h>
8049 #endif
8052 main ()
8054 static struct ifreq ac_aggr;
8055 if (sizeof ac_aggr.ifr_flags)
8056 return 0;
8058 return 0;
8060 _ACEOF
8061 rm -f conftest.$ac_objext
8062 if { (ac_try="$ac_compile"
8063 case "(($ac_try" in
8064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8065 *) ac_try_echo=$ac_try;;
8066 esac
8067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8068 (eval "$ac_compile") 2>conftest.er1
8069 ac_status=$?
8070 grep -v '^ *+' conftest.er1 >conftest.err
8071 rm -f conftest.er1
8072 cat conftest.err >&5
8073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074 (exit $ac_status); } && {
8075 test -z "$ac_c_werror_flag" ||
8076 test ! -s conftest.err
8077 } && test -s conftest.$ac_objext; then
8078 ac_cv_member_struct_ifreq_ifr_flags=yes
8079 else
8080 echo "$as_me: failed program was:" >&5
8081 sed 's/^/| /' conftest.$ac_ext >&5
8083 ac_cv_member_struct_ifreq_ifr_flags=no
8086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8091 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8092 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8093 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8095 cat >>confdefs.h <<_ACEOF
8096 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8097 _ACEOF
8101 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8102 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8103 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8104 echo $ECHO_N "(cached) $ECHO_C" >&6
8105 else
8106 cat >conftest.$ac_ext <<_ACEOF
8107 /* confdefs.h. */
8108 _ACEOF
8109 cat confdefs.h >>conftest.$ac_ext
8110 cat >>conftest.$ac_ext <<_ACEOF
8111 /* end confdefs.h. */
8112 $ac_includes_default
8113 #if HAVE_SYS_SOCKET_H
8114 #include <sys/socket.h>
8115 #endif
8116 #if HAVE_NET_IF_H
8117 #include <net/if.h>
8118 #endif
8121 main ()
8123 static struct ifreq ac_aggr;
8124 if (ac_aggr.ifr_hwaddr)
8125 return 0;
8127 return 0;
8129 _ACEOF
8130 rm -f conftest.$ac_objext
8131 if { (ac_try="$ac_compile"
8132 case "(($ac_try" in
8133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8134 *) ac_try_echo=$ac_try;;
8135 esac
8136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8137 (eval "$ac_compile") 2>conftest.er1
8138 ac_status=$?
8139 grep -v '^ *+' conftest.er1 >conftest.err
8140 rm -f conftest.er1
8141 cat conftest.err >&5
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); } && {
8144 test -z "$ac_c_werror_flag" ||
8145 test ! -s conftest.err
8146 } && test -s conftest.$ac_objext; then
8147 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8148 else
8149 echo "$as_me: failed program was:" >&5
8150 sed 's/^/| /' conftest.$ac_ext >&5
8152 cat >conftest.$ac_ext <<_ACEOF
8153 /* confdefs.h. */
8154 _ACEOF
8155 cat confdefs.h >>conftest.$ac_ext
8156 cat >>conftest.$ac_ext <<_ACEOF
8157 /* end confdefs.h. */
8158 $ac_includes_default
8159 #if HAVE_SYS_SOCKET_H
8160 #include <sys/socket.h>
8161 #endif
8162 #if HAVE_NET_IF_H
8163 #include <net/if.h>
8164 #endif
8167 main ()
8169 static struct ifreq ac_aggr;
8170 if (sizeof ac_aggr.ifr_hwaddr)
8171 return 0;
8173 return 0;
8175 _ACEOF
8176 rm -f conftest.$ac_objext
8177 if { (ac_try="$ac_compile"
8178 case "(($ac_try" in
8179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8180 *) ac_try_echo=$ac_try;;
8181 esac
8182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8183 (eval "$ac_compile") 2>conftest.er1
8184 ac_status=$?
8185 grep -v '^ *+' conftest.er1 >conftest.err
8186 rm -f conftest.er1
8187 cat conftest.err >&5
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); } && {
8190 test -z "$ac_c_werror_flag" ||
8191 test ! -s conftest.err
8192 } && test -s conftest.$ac_objext; then
8193 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8194 else
8195 echo "$as_me: failed program was:" >&5
8196 sed 's/^/| /' conftest.$ac_ext >&5
8198 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8206 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8207 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8208 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8210 cat >>confdefs.h <<_ACEOF
8211 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8212 _ACEOF
8216 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8217 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8218 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8219 echo $ECHO_N "(cached) $ECHO_C" >&6
8220 else
8221 cat >conftest.$ac_ext <<_ACEOF
8222 /* confdefs.h. */
8223 _ACEOF
8224 cat confdefs.h >>conftest.$ac_ext
8225 cat >>conftest.$ac_ext <<_ACEOF
8226 /* end confdefs.h. */
8227 $ac_includes_default
8228 #if HAVE_SYS_SOCKET_H
8229 #include <sys/socket.h>
8230 #endif
8231 #if HAVE_NET_IF_H
8232 #include <net/if.h>
8233 #endif
8236 main ()
8238 static struct ifreq ac_aggr;
8239 if (ac_aggr.ifr_netmask)
8240 return 0;
8242 return 0;
8244 _ACEOF
8245 rm -f conftest.$ac_objext
8246 if { (ac_try="$ac_compile"
8247 case "(($ac_try" in
8248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8249 *) ac_try_echo=$ac_try;;
8250 esac
8251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8252 (eval "$ac_compile") 2>conftest.er1
8253 ac_status=$?
8254 grep -v '^ *+' conftest.er1 >conftest.err
8255 rm -f conftest.er1
8256 cat conftest.err >&5
8257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258 (exit $ac_status); } && {
8259 test -z "$ac_c_werror_flag" ||
8260 test ! -s conftest.err
8261 } && test -s conftest.$ac_objext; then
8262 ac_cv_member_struct_ifreq_ifr_netmask=yes
8263 else
8264 echo "$as_me: failed program was:" >&5
8265 sed 's/^/| /' conftest.$ac_ext >&5
8267 cat >conftest.$ac_ext <<_ACEOF
8268 /* confdefs.h. */
8269 _ACEOF
8270 cat confdefs.h >>conftest.$ac_ext
8271 cat >>conftest.$ac_ext <<_ACEOF
8272 /* end confdefs.h. */
8273 $ac_includes_default
8274 #if HAVE_SYS_SOCKET_H
8275 #include <sys/socket.h>
8276 #endif
8277 #if HAVE_NET_IF_H
8278 #include <net/if.h>
8279 #endif
8282 main ()
8284 static struct ifreq ac_aggr;
8285 if (sizeof ac_aggr.ifr_netmask)
8286 return 0;
8288 return 0;
8290 _ACEOF
8291 rm -f conftest.$ac_objext
8292 if { (ac_try="$ac_compile"
8293 case "(($ac_try" in
8294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8295 *) ac_try_echo=$ac_try;;
8296 esac
8297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8298 (eval "$ac_compile") 2>conftest.er1
8299 ac_status=$?
8300 grep -v '^ *+' conftest.er1 >conftest.err
8301 rm -f conftest.er1
8302 cat conftest.err >&5
8303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304 (exit $ac_status); } && {
8305 test -z "$ac_c_werror_flag" ||
8306 test ! -s conftest.err
8307 } && test -s conftest.$ac_objext; then
8308 ac_cv_member_struct_ifreq_ifr_netmask=yes
8309 else
8310 echo "$as_me: failed program was:" >&5
8311 sed 's/^/| /' conftest.$ac_ext >&5
8313 ac_cv_member_struct_ifreq_ifr_netmask=no
8316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8321 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8322 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8323 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8325 cat >>confdefs.h <<_ACEOF
8326 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8327 _ACEOF
8331 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8332 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8333 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8334 echo $ECHO_N "(cached) $ECHO_C" >&6
8335 else
8336 cat >conftest.$ac_ext <<_ACEOF
8337 /* confdefs.h. */
8338 _ACEOF
8339 cat confdefs.h >>conftest.$ac_ext
8340 cat >>conftest.$ac_ext <<_ACEOF
8341 /* end confdefs.h. */
8342 $ac_includes_default
8343 #if HAVE_SYS_SOCKET_H
8344 #include <sys/socket.h>
8345 #endif
8346 #if HAVE_NET_IF_H
8347 #include <net/if.h>
8348 #endif
8351 main ()
8353 static struct ifreq ac_aggr;
8354 if (ac_aggr.ifr_broadaddr)
8355 return 0;
8357 return 0;
8359 _ACEOF
8360 rm -f conftest.$ac_objext
8361 if { (ac_try="$ac_compile"
8362 case "(($ac_try" in
8363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8364 *) ac_try_echo=$ac_try;;
8365 esac
8366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8367 (eval "$ac_compile") 2>conftest.er1
8368 ac_status=$?
8369 grep -v '^ *+' conftest.er1 >conftest.err
8370 rm -f conftest.er1
8371 cat conftest.err >&5
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); } && {
8374 test -z "$ac_c_werror_flag" ||
8375 test ! -s conftest.err
8376 } && test -s conftest.$ac_objext; then
8377 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8378 else
8379 echo "$as_me: failed program was:" >&5
8380 sed 's/^/| /' conftest.$ac_ext >&5
8382 cat >conftest.$ac_ext <<_ACEOF
8383 /* confdefs.h. */
8384 _ACEOF
8385 cat confdefs.h >>conftest.$ac_ext
8386 cat >>conftest.$ac_ext <<_ACEOF
8387 /* end confdefs.h. */
8388 $ac_includes_default
8389 #if HAVE_SYS_SOCKET_H
8390 #include <sys/socket.h>
8391 #endif
8392 #if HAVE_NET_IF_H
8393 #include <net/if.h>
8394 #endif
8397 main ()
8399 static struct ifreq ac_aggr;
8400 if (sizeof ac_aggr.ifr_broadaddr)
8401 return 0;
8403 return 0;
8405 _ACEOF
8406 rm -f conftest.$ac_objext
8407 if { (ac_try="$ac_compile"
8408 case "(($ac_try" in
8409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8410 *) ac_try_echo=$ac_try;;
8411 esac
8412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8413 (eval "$ac_compile") 2>conftest.er1
8414 ac_status=$?
8415 grep -v '^ *+' conftest.er1 >conftest.err
8416 rm -f conftest.er1
8417 cat conftest.err >&5
8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); } && {
8420 test -z "$ac_c_werror_flag" ||
8421 test ! -s conftest.err
8422 } && test -s conftest.$ac_objext; then
8423 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8424 else
8425 echo "$as_me: failed program was:" >&5
8426 sed 's/^/| /' conftest.$ac_ext >&5
8428 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8436 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8437 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8438 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8440 cat >>confdefs.h <<_ACEOF
8441 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8442 _ACEOF
8446 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8447 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8448 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8449 echo $ECHO_N "(cached) $ECHO_C" >&6
8450 else
8451 cat >conftest.$ac_ext <<_ACEOF
8452 /* confdefs.h. */
8453 _ACEOF
8454 cat confdefs.h >>conftest.$ac_ext
8455 cat >>conftest.$ac_ext <<_ACEOF
8456 /* end confdefs.h. */
8457 $ac_includes_default
8458 #if HAVE_SYS_SOCKET_H
8459 #include <sys/socket.h>
8460 #endif
8461 #if HAVE_NET_IF_H
8462 #include <net/if.h>
8463 #endif
8466 main ()
8468 static struct ifreq ac_aggr;
8469 if (ac_aggr.ifr_addr)
8470 return 0;
8472 return 0;
8474 _ACEOF
8475 rm -f conftest.$ac_objext
8476 if { (ac_try="$ac_compile"
8477 case "(($ac_try" in
8478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8479 *) ac_try_echo=$ac_try;;
8480 esac
8481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8482 (eval "$ac_compile") 2>conftest.er1
8483 ac_status=$?
8484 grep -v '^ *+' conftest.er1 >conftest.err
8485 rm -f conftest.er1
8486 cat conftest.err >&5
8487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488 (exit $ac_status); } && {
8489 test -z "$ac_c_werror_flag" ||
8490 test ! -s conftest.err
8491 } && test -s conftest.$ac_objext; then
8492 ac_cv_member_struct_ifreq_ifr_addr=yes
8493 else
8494 echo "$as_me: failed program was:" >&5
8495 sed 's/^/| /' conftest.$ac_ext >&5
8497 cat >conftest.$ac_ext <<_ACEOF
8498 /* confdefs.h. */
8499 _ACEOF
8500 cat confdefs.h >>conftest.$ac_ext
8501 cat >>conftest.$ac_ext <<_ACEOF
8502 /* end confdefs.h. */
8503 $ac_includes_default
8504 #if HAVE_SYS_SOCKET_H
8505 #include <sys/socket.h>
8506 #endif
8507 #if HAVE_NET_IF_H
8508 #include <net/if.h>
8509 #endif
8512 main ()
8514 static struct ifreq ac_aggr;
8515 if (sizeof ac_aggr.ifr_addr)
8516 return 0;
8518 return 0;
8520 _ACEOF
8521 rm -f conftest.$ac_objext
8522 if { (ac_try="$ac_compile"
8523 case "(($ac_try" in
8524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8525 *) ac_try_echo=$ac_try;;
8526 esac
8527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8528 (eval "$ac_compile") 2>conftest.er1
8529 ac_status=$?
8530 grep -v '^ *+' conftest.er1 >conftest.err
8531 rm -f conftest.er1
8532 cat conftest.err >&5
8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); } && {
8535 test -z "$ac_c_werror_flag" ||
8536 test ! -s conftest.err
8537 } && test -s conftest.$ac_objext; then
8538 ac_cv_member_struct_ifreq_ifr_addr=yes
8539 else
8540 echo "$as_me: failed program was:" >&5
8541 sed 's/^/| /' conftest.$ac_ext >&5
8543 ac_cv_member_struct_ifreq_ifr_addr=no
8546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8551 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8552 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8553 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8555 cat >>confdefs.h <<_ACEOF
8556 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8557 _ACEOF
8564 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8565 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8566 if test "$ac_cv_prog_cc_c89" != no; then
8567 { echo "$as_me:$LINENO: result: yes" >&5
8568 echo "${ECHO_T}yes" >&6; }
8570 cat >>confdefs.h <<\_ACEOF
8571 #define PROTOTYPES 1
8572 _ACEOF
8575 cat >>confdefs.h <<\_ACEOF
8576 #define __PROTOTYPES 1
8577 _ACEOF
8579 else
8580 { echo "$as_me:$LINENO: result: no" >&5
8581 echo "${ECHO_T}no" >&6; }
8584 { echo "$as_me:$LINENO: checking for working volatile" >&5
8585 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8586 if test "${ac_cv_c_volatile+set}" = set; then
8587 echo $ECHO_N "(cached) $ECHO_C" >&6
8588 else
8589 cat >conftest.$ac_ext <<_ACEOF
8590 /* confdefs.h. */
8591 _ACEOF
8592 cat confdefs.h >>conftest.$ac_ext
8593 cat >>conftest.$ac_ext <<_ACEOF
8594 /* end confdefs.h. */
8597 main ()
8600 volatile int x;
8601 int * volatile y = (int *) 0;
8602 return !x && !y;
8604 return 0;
8606 _ACEOF
8607 rm -f conftest.$ac_objext
8608 if { (ac_try="$ac_compile"
8609 case "(($ac_try" in
8610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8611 *) ac_try_echo=$ac_try;;
8612 esac
8613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8614 (eval "$ac_compile") 2>conftest.er1
8615 ac_status=$?
8616 grep -v '^ *+' conftest.er1 >conftest.err
8617 rm -f conftest.er1
8618 cat conftest.err >&5
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); } && {
8621 test -z "$ac_c_werror_flag" ||
8622 test ! -s conftest.err
8623 } && test -s conftest.$ac_objext; then
8624 ac_cv_c_volatile=yes
8625 else
8626 echo "$as_me: failed program was:" >&5
8627 sed 's/^/| /' conftest.$ac_ext >&5
8629 ac_cv_c_volatile=no
8632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8634 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8635 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8636 if test $ac_cv_c_volatile = no; then
8638 cat >>confdefs.h <<\_ACEOF
8639 #define volatile
8640 _ACEOF
8644 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8645 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8646 if test "${ac_cv_c_const+set}" = set; then
8647 echo $ECHO_N "(cached) $ECHO_C" >&6
8648 else
8649 cat >conftest.$ac_ext <<_ACEOF
8650 /* confdefs.h. */
8651 _ACEOF
8652 cat confdefs.h >>conftest.$ac_ext
8653 cat >>conftest.$ac_ext <<_ACEOF
8654 /* end confdefs.h. */
8657 main ()
8659 /* FIXME: Include the comments suggested by Paul. */
8660 #ifndef __cplusplus
8661 /* Ultrix mips cc rejects this. */
8662 typedef int charset[2];
8663 const charset cs;
8664 /* SunOS 4.1.1 cc rejects this. */
8665 char const *const *pcpcc;
8666 char **ppc;
8667 /* NEC SVR4.0.2 mips cc rejects this. */
8668 struct point {int x, y;};
8669 static struct point const zero = {0,0};
8670 /* AIX XL C 1.02.0.0 rejects this.
8671 It does not let you subtract one const X* pointer from another in
8672 an arm of an if-expression whose if-part is not a constant
8673 expression */
8674 const char *g = "string";
8675 pcpcc = &g + (g ? g-g : 0);
8676 /* HPUX 7.0 cc rejects these. */
8677 ++pcpcc;
8678 ppc = (char**) pcpcc;
8679 pcpcc = (char const *const *) ppc;
8680 { /* SCO 3.2v4 cc rejects this. */
8681 char *t;
8682 char const *s = 0 ? (char *) 0 : (char const *) 0;
8684 *t++ = 0;
8685 if (s) return 0;
8687 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8688 int x[] = {25, 17};
8689 const int *foo = &x[0];
8690 ++foo;
8692 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8693 typedef const int *iptr;
8694 iptr p = 0;
8695 ++p;
8697 { /* AIX XL C 1.02.0.0 rejects this saying
8698 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8699 struct s { int j; const int *ap[3]; };
8700 struct s *b; b->j = 5;
8702 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8703 const int foo = 10;
8704 if (!foo) return 0;
8706 return !cs[0] && !zero.x;
8707 #endif
8710 return 0;
8712 _ACEOF
8713 rm -f conftest.$ac_objext
8714 if { (ac_try="$ac_compile"
8715 case "(($ac_try" in
8716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8717 *) ac_try_echo=$ac_try;;
8718 esac
8719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8720 (eval "$ac_compile") 2>conftest.er1
8721 ac_status=$?
8722 grep -v '^ *+' conftest.er1 >conftest.err
8723 rm -f conftest.er1
8724 cat conftest.err >&5
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); } && {
8727 test -z "$ac_c_werror_flag" ||
8728 test ! -s conftest.err
8729 } && test -s conftest.$ac_objext; then
8730 ac_cv_c_const=yes
8731 else
8732 echo "$as_me: failed program was:" >&5
8733 sed 's/^/| /' conftest.$ac_ext >&5
8735 ac_cv_c_const=no
8738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8740 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8741 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8742 if test $ac_cv_c_const = no; then
8744 cat >>confdefs.h <<\_ACEOF
8745 #define const
8746 _ACEOF
8750 { echo "$as_me:$LINENO: checking for void * support" >&5
8751 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8752 if test "${emacs_cv_void_star+set}" = set; then
8753 echo $ECHO_N "(cached) $ECHO_C" >&6
8754 else
8755 cat >conftest.$ac_ext <<_ACEOF
8756 /* confdefs.h. */
8757 _ACEOF
8758 cat confdefs.h >>conftest.$ac_ext
8759 cat >>conftest.$ac_ext <<_ACEOF
8760 /* end confdefs.h. */
8763 main ()
8765 void * foo;
8767 return 0;
8769 _ACEOF
8770 rm -f conftest.$ac_objext
8771 if { (ac_try="$ac_compile"
8772 case "(($ac_try" in
8773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8774 *) ac_try_echo=$ac_try;;
8775 esac
8776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8777 (eval "$ac_compile") 2>conftest.er1
8778 ac_status=$?
8779 grep -v '^ *+' conftest.er1 >conftest.err
8780 rm -f conftest.er1
8781 cat conftest.err >&5
8782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783 (exit $ac_status); } && {
8784 test -z "$ac_c_werror_flag" ||
8785 test ! -s conftest.err
8786 } && test -s conftest.$ac_objext; then
8787 emacs_cv_void_star=yes
8788 else
8789 echo "$as_me: failed program was:" >&5
8790 sed 's/^/| /' conftest.$ac_ext >&5
8792 emacs_cv_void_star=no
8795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8797 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8798 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8799 if test $emacs_cv_void_star = yes; then
8800 cat >>confdefs.h <<\_ACEOF
8801 #define POINTER_TYPE void
8802 _ACEOF
8804 else
8805 cat >>confdefs.h <<\_ACEOF
8806 #define POINTER_TYPE char
8807 _ACEOF
8815 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8816 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8817 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8818 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8819 echo $ECHO_N "(cached) $ECHO_C" >&6
8820 else
8821 cat >conftest.make <<\_ACEOF
8822 SHELL = /bin/sh
8823 all:
8824 @echo '@@@%%%=$(MAKE)=@@@%%%'
8825 _ACEOF
8826 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8827 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8828 *@@@%%%=?*=@@@%%%*)
8829 eval ac_cv_prog_make_${ac_make}_set=yes;;
8831 eval ac_cv_prog_make_${ac_make}_set=no;;
8832 esac
8833 rm -f conftest.make
8835 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8836 { echo "$as_me:$LINENO: result: yes" >&5
8837 echo "${ECHO_T}yes" >&6; }
8838 SET_MAKE=
8839 else
8840 { echo "$as_me:$LINENO: result: no" >&5
8841 echo "${ECHO_T}no" >&6; }
8842 SET_MAKE="MAKE=${MAKE-make}"
8846 { echo "$as_me:$LINENO: checking for long file names" >&5
8847 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8848 if test "${ac_cv_sys_long_file_names+set}" = set; then
8849 echo $ECHO_N "(cached) $ECHO_C" >&6
8850 else
8851 ac_cv_sys_long_file_names=yes
8852 # Test for long file names in all the places we know might matter:
8853 # . the current directory, where building will happen
8854 # $prefix/lib where we will be installing things
8855 # $exec_prefix/lib likewise
8856 # $TMPDIR if set, where it might want to write temporary files
8857 # /tmp where it might want to write temporary files
8858 # /var/tmp likewise
8859 # /usr/tmp likewise
8860 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8861 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8862 # in the usual case where exec_prefix is '${prefix}'.
8863 case $ac_dir in #(
8864 . | /* | ?:[\\/]*) ;; #(
8865 *) continue;;
8866 esac
8867 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8868 ac_xdir=$ac_dir/cf$$
8869 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8870 ac_tf1=$ac_xdir/conftest9012345
8871 ac_tf2=$ac_xdir/conftest9012346
8872 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8873 ac_cv_sys_long_file_names=no
8874 rm -f -r "$ac_xdir" 2>/dev/null
8875 test $ac_cv_sys_long_file_names = no && break
8876 done
8878 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8879 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8880 if test $ac_cv_sys_long_file_names = yes; then
8882 cat >>confdefs.h <<\_ACEOF
8883 #define HAVE_LONG_FILE_NAMES 1
8884 _ACEOF
8889 #### Choose a window system.
8891 { echo "$as_me:$LINENO: checking for X" >&5
8892 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8895 # Check whether --with-x was given.
8896 if test "${with_x+set}" = set; then
8897 withval=$with_x;
8900 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8901 if test "x$with_x" = xno; then
8902 # The user explicitly disabled X.
8903 have_x=disabled
8904 else
8905 case $x_includes,$x_libraries in #(
8906 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8907 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8908 { (exit 1); exit 1; }; };; #(
8909 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8910 echo $ECHO_N "(cached) $ECHO_C" >&6
8911 else
8912 # One or both of the vars are not set, and there is no cached value.
8913 ac_x_includes=no ac_x_libraries=no
8914 rm -f -r conftest.dir
8915 if mkdir conftest.dir; then
8916 cd conftest.dir
8917 cat >Imakefile <<'_ACEOF'
8918 incroot:
8919 @echo incroot='${INCROOT}'
8920 usrlibdir:
8921 @echo usrlibdir='${USRLIBDIR}'
8922 libdir:
8923 @echo libdir='${LIBDIR}'
8924 _ACEOF
8925 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8926 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8927 for ac_var in incroot usrlibdir libdir; do
8928 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8929 done
8930 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8931 for ac_extension in a so sl; do
8932 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8933 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8934 ac_im_usrlibdir=$ac_im_libdir; break
8936 done
8937 # Screen out bogus values from the imake configuration. They are
8938 # bogus both because they are the default anyway, and because
8939 # using them would break gcc on systems where it needs fixed includes.
8940 case $ac_im_incroot in
8941 /usr/include) ac_x_includes= ;;
8942 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8943 esac
8944 case $ac_im_usrlibdir in
8945 /usr/lib | /lib) ;;
8946 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8947 esac
8949 cd ..
8950 rm -f -r conftest.dir
8953 # Standard set of common directories for X headers.
8954 # Check X11 before X11Rn because it is often a symlink to the current release.
8955 ac_x_header_dirs='
8956 /usr/X11/include
8957 /usr/X11R6/include
8958 /usr/X11R5/include
8959 /usr/X11R4/include
8961 /usr/include/X11
8962 /usr/include/X11R6
8963 /usr/include/X11R5
8964 /usr/include/X11R4
8966 /usr/local/X11/include
8967 /usr/local/X11R6/include
8968 /usr/local/X11R5/include
8969 /usr/local/X11R4/include
8971 /usr/local/include/X11
8972 /usr/local/include/X11R6
8973 /usr/local/include/X11R5
8974 /usr/local/include/X11R4
8976 /usr/X386/include
8977 /usr/x386/include
8978 /usr/XFree86/include/X11
8980 /usr/include
8981 /usr/local/include
8982 /usr/unsupported/include
8983 /usr/athena/include
8984 /usr/local/x11r5/include
8985 /usr/lpp/Xamples/include
8987 /usr/openwin/include
8988 /usr/openwin/share/include'
8990 if test "$ac_x_includes" = no; then
8991 # Guess where to find include files, by looking for Xlib.h.
8992 # First, try using that file with no special directory specified.
8993 cat >conftest.$ac_ext <<_ACEOF
8994 /* confdefs.h. */
8995 _ACEOF
8996 cat confdefs.h >>conftest.$ac_ext
8997 cat >>conftest.$ac_ext <<_ACEOF
8998 /* end confdefs.h. */
8999 #include <X11/Xlib.h>
9000 _ACEOF
9001 if { (ac_try="$ac_cpp conftest.$ac_ext"
9002 case "(($ac_try" in
9003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9004 *) ac_try_echo=$ac_try;;
9005 esac
9006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9007 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9008 ac_status=$?
9009 grep -v '^ *+' conftest.er1 >conftest.err
9010 rm -f conftest.er1
9011 cat conftest.err >&5
9012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013 (exit $ac_status); } >/dev/null && {
9014 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9015 test ! -s conftest.err
9016 }; then
9017 # We can compile using X headers with no special include directory.
9018 ac_x_includes=
9019 else
9020 echo "$as_me: failed program was:" >&5
9021 sed 's/^/| /' conftest.$ac_ext >&5
9023 for ac_dir in $ac_x_header_dirs; do
9024 if test -r "$ac_dir/X11/Xlib.h"; then
9025 ac_x_includes=$ac_dir
9026 break
9028 done
9031 rm -f conftest.err conftest.$ac_ext
9032 fi # $ac_x_includes = no
9034 if test "$ac_x_libraries" = no; then
9035 # Check for the libraries.
9036 # See if we find them without any special options.
9037 # Don't add to $LIBS permanently.
9038 ac_save_LIBS=$LIBS
9039 LIBS="-lX11 $LIBS"
9040 cat >conftest.$ac_ext <<_ACEOF
9041 /* confdefs.h. */
9042 _ACEOF
9043 cat confdefs.h >>conftest.$ac_ext
9044 cat >>conftest.$ac_ext <<_ACEOF
9045 /* end confdefs.h. */
9046 #include <X11/Xlib.h>
9048 main ()
9050 XrmInitialize ()
9052 return 0;
9054 _ACEOF
9055 rm -f conftest.$ac_objext conftest$ac_exeext
9056 if { (ac_try="$ac_link"
9057 case "(($ac_try" in
9058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9059 *) ac_try_echo=$ac_try;;
9060 esac
9061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9062 (eval "$ac_link") 2>conftest.er1
9063 ac_status=$?
9064 grep -v '^ *+' conftest.er1 >conftest.err
9065 rm -f conftest.er1
9066 cat conftest.err >&5
9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); } && {
9069 test -z "$ac_c_werror_flag" ||
9070 test ! -s conftest.err
9071 } && test -s conftest$ac_exeext &&
9072 $as_test_x conftest$ac_exeext; then
9073 LIBS=$ac_save_LIBS
9074 # We can link X programs with no special library path.
9075 ac_x_libraries=
9076 else
9077 echo "$as_me: failed program was:" >&5
9078 sed 's/^/| /' conftest.$ac_ext >&5
9080 LIBS=$ac_save_LIBS
9081 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9083 # Don't even attempt the hair of trying to link an X program!
9084 for ac_extension in a so sl; do
9085 if test -r "$ac_dir/libX11.$ac_extension"; then
9086 ac_x_libraries=$ac_dir
9087 break 2
9089 done
9090 done
9093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9094 conftest$ac_exeext conftest.$ac_ext
9095 fi # $ac_x_libraries = no
9097 case $ac_x_includes,$ac_x_libraries in #(
9098 no,* | *,no | *\'*)
9099 # Didn't find X, or a directory has "'" in its name.
9100 ac_cv_have_x="have_x=no";; #(
9102 # Record where we found X for the cache.
9103 ac_cv_have_x="have_x=yes\
9104 ac_x_includes='$ac_x_includes'\
9105 ac_x_libraries='$ac_x_libraries'"
9106 esac
9108 ;; #(
9109 *) have_x=yes;;
9110 esac
9111 eval "$ac_cv_have_x"
9112 fi # $with_x != no
9114 if test "$have_x" != yes; then
9115 { echo "$as_me:$LINENO: result: $have_x" >&5
9116 echo "${ECHO_T}$have_x" >&6; }
9117 no_x=yes
9118 else
9119 # If each of the values was on the command line, it overrides each guess.
9120 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9121 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9122 # Update the cache value to reflect the command line values.
9123 ac_cv_have_x="have_x=yes\
9124 ac_x_includes='$x_includes'\
9125 ac_x_libraries='$x_libraries'"
9126 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9127 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9130 if test "$no_x" = yes; then
9131 window_system=none
9132 else
9133 window_system=x11
9136 ## Workaround for bug in autoconf <= 2.62.
9137 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9138 ## No need to do anything special for these standard directories.
9139 ## This is an experiment, take it out if it causes problems.
9140 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9142 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9146 if test "${x_libraries}" != NONE; then
9147 if test -n "${x_libraries}"; then
9148 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9149 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9151 x_default_search_path=""
9152 x_search_path=${x_libraries}
9153 if test -z "${x_search_path}"; then
9154 x_search_path=/usr/lib
9156 for x_library in `echo ${x_search_path}: | \
9157 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9158 x_search_path="\
9159 ${x_library}/X11/%L/%T/%N%C%S:\
9160 ${x_library}/X11/%l/%T/%N%C%S:\
9161 ${x_library}/X11/%T/%N%C%S:\
9162 ${x_library}/X11/%L/%T/%N%S:\
9163 ${x_library}/X11/%l/%T/%N%S:\
9164 ${x_library}/X11/%T/%N%S"
9165 if test x"${x_default_search_path}" = x; then
9166 x_default_search_path=${x_search_path}
9167 else
9168 x_default_search_path="${x_search_path}:${x_default_search_path}"
9170 done
9172 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9173 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9176 if test x"${x_includes}" = x; then
9177 bitmapdir=/usr/include/X11/bitmaps
9178 else
9179 # accumulate include directories that have X11 bitmap subdirectories
9180 bmd_acc="dummyval"
9181 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9182 if test -d "${bmd}/X11/bitmaps"; then
9183 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9185 if test -d "${bmd}/bitmaps"; then
9186 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9188 done
9189 if test ${bmd_acc} != "dummyval"; then
9190 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9194 HAVE_NS=no
9195 NS_IMPL_COCOA=no
9196 NS_IMPL_GNUSTEP=no
9197 tmp_CPPFLAGS="$CPPFLAGS"
9198 tmp_CFLAGS="$CFLAGS"
9199 CPPFLAGS="$CPPFLAGS -x objective-c"
9200 CFLAGS="$CFLAGS -x objective-c"
9201 if test "${with_ns}" != no; then
9202 if test "${opsys}" = darwin; then
9203 NS_IMPL_COCOA=yes
9204 ns_appdir=`pwd`/nextstep/Emacs.app
9205 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9206 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9207 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9208 elif test -f $GNUSTEP_CONFIG_FILE; then
9209 NS_IMPL_GNUSTEP=yes
9210 ns_appdir=`pwd`/nextstep/Emacs.app
9211 ns_appbindir=`pwd`/nextstep/Emacs.app
9212 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9213 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9214 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9215 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9216 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9217 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9218 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9219 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9220 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9222 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9223 { echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9224 echo $ECHO_N "checking for AppKit/AppKit.h... $ECHO_C" >&6; }
9225 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9226 echo $ECHO_N "(cached) $ECHO_C" >&6
9228 { echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9229 echo "${ECHO_T}$ac_cv_header_AppKit_AppKit_h" >&6; }
9230 else
9231 # Is the header compilable?
9232 { echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9233 echo $ECHO_N "checking AppKit/AppKit.h usability... $ECHO_C" >&6; }
9234 cat >conftest.$ac_ext <<_ACEOF
9235 /* confdefs.h. */
9236 _ACEOF
9237 cat confdefs.h >>conftest.$ac_ext
9238 cat >>conftest.$ac_ext <<_ACEOF
9239 /* end confdefs.h. */
9240 $ac_includes_default
9241 #include <AppKit/AppKit.h>
9242 _ACEOF
9243 rm -f conftest.$ac_objext
9244 if { (ac_try="$ac_compile"
9245 case "(($ac_try" in
9246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9247 *) ac_try_echo=$ac_try;;
9248 esac
9249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9250 (eval "$ac_compile") 2>conftest.er1
9251 ac_status=$?
9252 grep -v '^ *+' conftest.er1 >conftest.err
9253 rm -f conftest.er1
9254 cat conftest.err >&5
9255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256 (exit $ac_status); } && {
9257 test -z "$ac_c_werror_flag" ||
9258 test ! -s conftest.err
9259 } && test -s conftest.$ac_objext; then
9260 ac_header_compiler=yes
9261 else
9262 echo "$as_me: failed program was:" >&5
9263 sed 's/^/| /' conftest.$ac_ext >&5
9265 ac_header_compiler=no
9268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9269 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9270 echo "${ECHO_T}$ac_header_compiler" >&6; }
9272 # Is the header present?
9273 { echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9274 echo $ECHO_N "checking AppKit/AppKit.h presence... $ECHO_C" >&6; }
9275 cat >conftest.$ac_ext <<_ACEOF
9276 /* confdefs.h. */
9277 _ACEOF
9278 cat confdefs.h >>conftest.$ac_ext
9279 cat >>conftest.$ac_ext <<_ACEOF
9280 /* end confdefs.h. */
9281 #include <AppKit/AppKit.h>
9282 _ACEOF
9283 if { (ac_try="$ac_cpp conftest.$ac_ext"
9284 case "(($ac_try" in
9285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9286 *) ac_try_echo=$ac_try;;
9287 esac
9288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9289 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9290 ac_status=$?
9291 grep -v '^ *+' conftest.er1 >conftest.err
9292 rm -f conftest.er1
9293 cat conftest.err >&5
9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); } >/dev/null && {
9296 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9297 test ! -s conftest.err
9298 }; then
9299 ac_header_preproc=yes
9300 else
9301 echo "$as_me: failed program was:" >&5
9302 sed 's/^/| /' conftest.$ac_ext >&5
9304 ac_header_preproc=no
9307 rm -f conftest.err conftest.$ac_ext
9308 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9309 echo "${ECHO_T}$ac_header_preproc" >&6; }
9311 # So? What about this header?
9312 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9313 yes:no: )
9314 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9315 echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9316 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9317 echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9318 ac_header_preproc=yes
9320 no:yes:* )
9321 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9322 echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9323 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9324 echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9325 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9326 echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9327 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9328 echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9329 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9330 echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9331 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9332 echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9335 esac
9336 { echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9337 echo $ECHO_N "checking for AppKit/AppKit.h... $ECHO_C" >&6; }
9338 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9339 echo $ECHO_N "(cached) $ECHO_C" >&6
9340 else
9341 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9343 { echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9344 echo "${ECHO_T}$ac_cv_header_AppKit_AppKit_h" >&6; }
9347 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9348 HAVE_NS=yes
9349 else
9350 { { echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
9351 files are missing or cannot be compiled." >&5
9352 echo "$as_me: error: \`--with-ns' was specified, but the include
9353 files are missing or cannot be compiled." >&2;}
9354 { (exit 1); exit 1; }; }
9358 NS_HAVE_NSINTEGER=yes
9359 cat >conftest.$ac_ext <<_ACEOF
9360 /* confdefs.h. */
9361 _ACEOF
9362 cat confdefs.h >>conftest.$ac_ext
9363 cat >>conftest.$ac_ext <<_ACEOF
9364 /* end confdefs.h. */
9365 #include <Foundation/NSObjCRuntime.h>
9367 main ()
9369 NSInteger i;
9371 return 0;
9373 _ACEOF
9374 rm -f conftest.$ac_objext
9375 if { (ac_try="$ac_compile"
9376 case "(($ac_try" in
9377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9378 *) ac_try_echo=$ac_try;;
9379 esac
9380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9381 (eval "$ac_compile") 2>conftest.er1
9382 ac_status=$?
9383 grep -v '^ *+' conftest.er1 >conftest.err
9384 rm -f conftest.er1
9385 cat conftest.err >&5
9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 (exit $ac_status); } && {
9388 test -z "$ac_c_werror_flag" ||
9389 test ! -s conftest.err
9390 } && test -s conftest.$ac_objext; then
9391 ns_have_nsinteger=yes
9392 else
9393 echo "$as_me: failed program was:" >&5
9394 sed 's/^/| /' conftest.$ac_ext >&5
9396 ns_have_nsinteger=no
9399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9400 if test $ns_have_nsinteger = no; then
9401 NS_HAVE_NSINTEGER=no
9404 if test "${HAVE_NS}" = yes; then
9405 window_system=nextstep
9406 with_xft=no
9407 # set up packaging dirs
9408 exec_prefix=${ns_appbindir}
9409 libexecdir=${ns_appbindir}/libexec
9410 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9411 prefix=${ns_appresdir}
9414 CFLAGS="$tmp_CFLAGS"
9415 CPPFLAGS="$tmp_CPPFLAGS"
9417 case "${window_system}" in
9418 x11 )
9419 HAVE_X_WINDOWS=yes
9420 HAVE_X11=yes
9421 case "${with_x_toolkit}" in
9422 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9423 motif ) USE_X_TOOLKIT=MOTIF ;;
9424 gtk ) with_gtk=yes
9425 USE_X_TOOLKIT=none ;;
9426 no ) USE_X_TOOLKIT=none ;;
9427 * ) USE_X_TOOLKIT=maybe ;;
9428 esac
9430 nextstep | none )
9431 HAVE_X_WINDOWS=no
9432 HAVE_X11=no
9433 USE_X_TOOLKIT=none
9435 esac
9437 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9438 # Extract the first word of "X", so it can be a program name with args.
9439 set dummy X; ac_word=$2
9440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9442 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9443 echo $ECHO_N "(cached) $ECHO_C" >&6
9444 else
9445 if test -n "$HAVE_XSERVER"; then
9446 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9447 else
9448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9449 for as_dir in $PATH
9451 IFS=$as_save_IFS
9452 test -z "$as_dir" && as_dir=.
9453 for ac_exec_ext in '' $ac_executable_extensions; do
9454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9455 ac_cv_prog_HAVE_XSERVER="true"
9456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9457 break 2
9459 done
9460 done
9461 IFS=$as_save_IFS
9463 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9466 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9467 if test -n "$HAVE_XSERVER"; then
9468 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9469 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9470 else
9471 { echo "$as_me:$LINENO: result: no" >&5
9472 echo "${ECHO_T}no" >&6; }
9476 if test "$HAVE_XSERVER" = true ||
9477 test -n "$DISPLAY" ||
9478 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9479 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9480 were found. You should install the relevant development files for X
9481 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9482 sure you have development files for image handling, i.e.
9483 tiff, gif, jpeg, png and xpm.
9484 If you are sure you want Emacs compiled without X window support, pass
9485 --without-x
9486 to configure." >&5
9487 echo "$as_me: error: You seem to be running X, but no X development libraries
9488 were found. You should install the relevant development files for X
9489 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9490 sure you have development files for image handling, i.e.
9491 tiff, gif, jpeg, png and xpm.
9492 If you are sure you want Emacs compiled without X window support, pass
9493 --without-x
9494 to configure." >&2;}
9495 { (exit 1); exit 1; }; }
9499 ### If we're using X11, we should use the X menu package.
9500 HAVE_MENUS=no
9501 case ${HAVE_X11} in
9502 yes ) HAVE_MENUS=yes ;;
9503 esac
9505 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9506 # Assume not, until told otherwise.
9507 GNU_MALLOC=yes
9508 doug_lea_malloc=yes
9509 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9510 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9511 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9512 echo $ECHO_N "(cached) $ECHO_C" >&6
9513 else
9514 cat >conftest.$ac_ext <<_ACEOF
9515 /* confdefs.h. */
9516 _ACEOF
9517 cat confdefs.h >>conftest.$ac_ext
9518 cat >>conftest.$ac_ext <<_ACEOF
9519 /* end confdefs.h. */
9520 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9522 #define malloc_get_state innocuous_malloc_get_state
9524 /* System header to define __stub macros and hopefully few prototypes,
9525 which can conflict with char malloc_get_state (); below.
9526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9527 <limits.h> exists even on freestanding compilers. */
9529 #ifdef __STDC__
9530 # include <limits.h>
9531 #else
9532 # include <assert.h>
9533 #endif
9535 #undef malloc_get_state
9537 /* Override any GCC internal prototype to avoid an error.
9538 Use char because int might match the return type of a GCC
9539 builtin and then its argument prototype would still apply. */
9540 #ifdef __cplusplus
9541 extern "C"
9542 #endif
9543 char malloc_get_state ();
9544 /* The GNU C library defines this for functions which it implements
9545 to always fail with ENOSYS. Some functions are actually named
9546 something starting with __ and the normal name is an alias. */
9547 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9548 choke me
9549 #endif
9552 main ()
9554 return malloc_get_state ();
9556 return 0;
9558 _ACEOF
9559 rm -f conftest.$ac_objext conftest$ac_exeext
9560 if { (ac_try="$ac_link"
9561 case "(($ac_try" in
9562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9563 *) ac_try_echo=$ac_try;;
9564 esac
9565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9566 (eval "$ac_link") 2>conftest.er1
9567 ac_status=$?
9568 grep -v '^ *+' conftest.er1 >conftest.err
9569 rm -f conftest.er1
9570 cat conftest.err >&5
9571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572 (exit $ac_status); } && {
9573 test -z "$ac_c_werror_flag" ||
9574 test ! -s conftest.err
9575 } && test -s conftest$ac_exeext &&
9576 $as_test_x conftest$ac_exeext; then
9577 ac_cv_func_malloc_get_state=yes
9578 else
9579 echo "$as_me: failed program was:" >&5
9580 sed 's/^/| /' conftest.$ac_ext >&5
9582 ac_cv_func_malloc_get_state=no
9585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9586 conftest$ac_exeext conftest.$ac_ext
9588 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9589 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9590 if test $ac_cv_func_malloc_get_state = yes; then
9592 else
9593 doug_lea_malloc=no
9596 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9597 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9598 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9599 echo $ECHO_N "(cached) $ECHO_C" >&6
9600 else
9601 cat >conftest.$ac_ext <<_ACEOF
9602 /* confdefs.h. */
9603 _ACEOF
9604 cat confdefs.h >>conftest.$ac_ext
9605 cat >>conftest.$ac_ext <<_ACEOF
9606 /* end confdefs.h. */
9607 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9609 #define malloc_set_state innocuous_malloc_set_state
9611 /* System header to define __stub macros and hopefully few prototypes,
9612 which can conflict with char malloc_set_state (); below.
9613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9614 <limits.h> exists even on freestanding compilers. */
9616 #ifdef __STDC__
9617 # include <limits.h>
9618 #else
9619 # include <assert.h>
9620 #endif
9622 #undef malloc_set_state
9624 /* Override any GCC internal prototype to avoid an error.
9625 Use char because int might match the return type of a GCC
9626 builtin and then its argument prototype would still apply. */
9627 #ifdef __cplusplus
9628 extern "C"
9629 #endif
9630 char malloc_set_state ();
9631 /* The GNU C library defines this for functions which it implements
9632 to always fail with ENOSYS. Some functions are actually named
9633 something starting with __ and the normal name is an alias. */
9634 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9635 choke me
9636 #endif
9639 main ()
9641 return malloc_set_state ();
9643 return 0;
9645 _ACEOF
9646 rm -f conftest.$ac_objext conftest$ac_exeext
9647 if { (ac_try="$ac_link"
9648 case "(($ac_try" in
9649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9650 *) ac_try_echo=$ac_try;;
9651 esac
9652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9653 (eval "$ac_link") 2>conftest.er1
9654 ac_status=$?
9655 grep -v '^ *+' conftest.er1 >conftest.err
9656 rm -f conftest.er1
9657 cat conftest.err >&5
9658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659 (exit $ac_status); } && {
9660 test -z "$ac_c_werror_flag" ||
9661 test ! -s conftest.err
9662 } && test -s conftest$ac_exeext &&
9663 $as_test_x conftest$ac_exeext; then
9664 ac_cv_func_malloc_set_state=yes
9665 else
9666 echo "$as_me: failed program was:" >&5
9667 sed 's/^/| /' conftest.$ac_ext >&5
9669 ac_cv_func_malloc_set_state=no
9672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9673 conftest$ac_exeext conftest.$ac_ext
9675 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9676 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9677 if test $ac_cv_func_malloc_set_state = yes; then
9679 else
9680 doug_lea_malloc=no
9683 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9684 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9685 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9686 echo $ECHO_N "(cached) $ECHO_C" >&6
9687 else
9688 cat >conftest.$ac_ext <<_ACEOF
9689 /* confdefs.h. */
9690 _ACEOF
9691 cat confdefs.h >>conftest.$ac_ext
9692 cat >>conftest.$ac_ext <<_ACEOF
9693 /* end confdefs.h. */
9694 extern void (* __after_morecore_hook)();
9696 main ()
9698 __after_morecore_hook = 0
9700 return 0;
9702 _ACEOF
9703 rm -f conftest.$ac_objext conftest$ac_exeext
9704 if { (ac_try="$ac_link"
9705 case "(($ac_try" in
9706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9707 *) ac_try_echo=$ac_try;;
9708 esac
9709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9710 (eval "$ac_link") 2>conftest.er1
9711 ac_status=$?
9712 grep -v '^ *+' conftest.er1 >conftest.err
9713 rm -f conftest.er1
9714 cat conftest.err >&5
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); } && {
9717 test -z "$ac_c_werror_flag" ||
9718 test ! -s conftest.err
9719 } && test -s conftest$ac_exeext &&
9720 $as_test_x conftest$ac_exeext; then
9721 emacs_cv_var___after_morecore_hook=yes
9722 else
9723 echo "$as_me: failed program was:" >&5
9724 sed 's/^/| /' conftest.$ac_ext >&5
9726 emacs_cv_var___after_morecore_hook=no
9729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9730 conftest$ac_exeext conftest.$ac_ext
9732 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9733 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9734 if test $emacs_cv_var___after_morecore_hook = no; then
9735 doug_lea_malloc=no
9737 if test "${system_malloc}" = "yes"; then
9738 GNU_MALLOC=no
9739 GNU_MALLOC_reason="
9740 (The GNU allocators don't work with this system configuration.)"
9742 if test "$doug_lea_malloc" = "yes" ; then
9743 if test "$GNU_MALLOC" = yes ; then
9744 GNU_MALLOC_reason="
9745 (Using Doug Lea's new malloc from the GNU C Library.)"
9748 cat >>confdefs.h <<\_ACEOF
9749 #define DOUG_LEA_MALLOC 1
9750 _ACEOF
9754 if test x"${REL_ALLOC}" = x; then
9755 REL_ALLOC=${GNU_MALLOC}
9761 for ac_header in stdlib.h unistd.h
9763 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9765 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9768 echo $ECHO_N "(cached) $ECHO_C" >&6
9770 ac_res=`eval echo '${'$as_ac_Header'}'`
9771 { echo "$as_me:$LINENO: result: $ac_res" >&5
9772 echo "${ECHO_T}$ac_res" >&6; }
9773 else
9774 # Is the header compilable?
9775 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9776 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9777 cat >conftest.$ac_ext <<_ACEOF
9778 /* confdefs.h. */
9779 _ACEOF
9780 cat confdefs.h >>conftest.$ac_ext
9781 cat >>conftest.$ac_ext <<_ACEOF
9782 /* end confdefs.h. */
9783 $ac_includes_default
9784 #include <$ac_header>
9785 _ACEOF
9786 rm -f conftest.$ac_objext
9787 if { (ac_try="$ac_compile"
9788 case "(($ac_try" in
9789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9790 *) ac_try_echo=$ac_try;;
9791 esac
9792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9793 (eval "$ac_compile") 2>conftest.er1
9794 ac_status=$?
9795 grep -v '^ *+' conftest.er1 >conftest.err
9796 rm -f conftest.er1
9797 cat conftest.err >&5
9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799 (exit $ac_status); } && {
9800 test -z "$ac_c_werror_flag" ||
9801 test ! -s conftest.err
9802 } && test -s conftest.$ac_objext; then
9803 ac_header_compiler=yes
9804 else
9805 echo "$as_me: failed program was:" >&5
9806 sed 's/^/| /' conftest.$ac_ext >&5
9808 ac_header_compiler=no
9811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9812 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9813 echo "${ECHO_T}$ac_header_compiler" >&6; }
9815 # Is the header present?
9816 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9817 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9818 cat >conftest.$ac_ext <<_ACEOF
9819 /* confdefs.h. */
9820 _ACEOF
9821 cat confdefs.h >>conftest.$ac_ext
9822 cat >>conftest.$ac_ext <<_ACEOF
9823 /* end confdefs.h. */
9824 #include <$ac_header>
9825 _ACEOF
9826 if { (ac_try="$ac_cpp conftest.$ac_ext"
9827 case "(($ac_try" in
9828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9829 *) ac_try_echo=$ac_try;;
9830 esac
9831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9832 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9833 ac_status=$?
9834 grep -v '^ *+' conftest.er1 >conftest.err
9835 rm -f conftest.er1
9836 cat conftest.err >&5
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); } >/dev/null && {
9839 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9840 test ! -s conftest.err
9841 }; then
9842 ac_header_preproc=yes
9843 else
9844 echo "$as_me: failed program was:" >&5
9845 sed 's/^/| /' conftest.$ac_ext >&5
9847 ac_header_preproc=no
9850 rm -f conftest.err conftest.$ac_ext
9851 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9852 echo "${ECHO_T}$ac_header_preproc" >&6; }
9854 # So? What about this header?
9855 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9856 yes:no: )
9857 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9858 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9860 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9861 ac_header_preproc=yes
9863 no:yes:* )
9864 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9865 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9866 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9867 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9868 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9869 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9870 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9871 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9873 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9874 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9875 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9878 esac
9879 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9882 echo $ECHO_N "(cached) $ECHO_C" >&6
9883 else
9884 eval "$as_ac_Header=\$ac_header_preproc"
9886 ac_res=`eval echo '${'$as_ac_Header'}'`
9887 { echo "$as_me:$LINENO: result: $ac_res" >&5
9888 echo "${ECHO_T}$ac_res" >&6; }
9891 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9892 cat >>confdefs.h <<_ACEOF
9893 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9894 _ACEOF
9898 done
9901 for ac_func in getpagesize
9903 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9904 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9905 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9906 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9907 echo $ECHO_N "(cached) $ECHO_C" >&6
9908 else
9909 cat >conftest.$ac_ext <<_ACEOF
9910 /* confdefs.h. */
9911 _ACEOF
9912 cat confdefs.h >>conftest.$ac_ext
9913 cat >>conftest.$ac_ext <<_ACEOF
9914 /* end confdefs.h. */
9915 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9916 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9917 #define $ac_func innocuous_$ac_func
9919 /* System header to define __stub macros and hopefully few prototypes,
9920 which can conflict with char $ac_func (); below.
9921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9922 <limits.h> exists even on freestanding compilers. */
9924 #ifdef __STDC__
9925 # include <limits.h>
9926 #else
9927 # include <assert.h>
9928 #endif
9930 #undef $ac_func
9932 /* Override any GCC internal prototype to avoid an error.
9933 Use char because int might match the return type of a GCC
9934 builtin and then its argument prototype would still apply. */
9935 #ifdef __cplusplus
9936 extern "C"
9937 #endif
9938 char $ac_func ();
9939 /* The GNU C library defines this for functions which it implements
9940 to always fail with ENOSYS. Some functions are actually named
9941 something starting with __ and the normal name is an alias. */
9942 #if defined __stub_$ac_func || defined __stub___$ac_func
9943 choke me
9944 #endif
9947 main ()
9949 return $ac_func ();
9951 return 0;
9953 _ACEOF
9954 rm -f conftest.$ac_objext conftest$ac_exeext
9955 if { (ac_try="$ac_link"
9956 case "(($ac_try" in
9957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9958 *) ac_try_echo=$ac_try;;
9959 esac
9960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9961 (eval "$ac_link") 2>conftest.er1
9962 ac_status=$?
9963 grep -v '^ *+' conftest.er1 >conftest.err
9964 rm -f conftest.er1
9965 cat conftest.err >&5
9966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967 (exit $ac_status); } && {
9968 test -z "$ac_c_werror_flag" ||
9969 test ! -s conftest.err
9970 } && test -s conftest$ac_exeext &&
9971 $as_test_x conftest$ac_exeext; then
9972 eval "$as_ac_var=yes"
9973 else
9974 echo "$as_me: failed program was:" >&5
9975 sed 's/^/| /' conftest.$ac_ext >&5
9977 eval "$as_ac_var=no"
9980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9981 conftest$ac_exeext conftest.$ac_ext
9983 ac_res=`eval echo '${'$as_ac_var'}'`
9984 { echo "$as_me:$LINENO: result: $ac_res" >&5
9985 echo "${ECHO_T}$ac_res" >&6; }
9986 if test `eval echo '${'$as_ac_var'}'` = yes; then
9987 cat >>confdefs.h <<_ACEOF
9988 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9989 _ACEOF
9992 done
9994 { echo "$as_me:$LINENO: checking for working mmap" >&5
9995 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9996 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9997 echo $ECHO_N "(cached) $ECHO_C" >&6
9998 else
9999 if test "$cross_compiling" = yes; then
10000 ac_cv_func_mmap_fixed_mapped=no
10001 else
10002 cat >conftest.$ac_ext <<_ACEOF
10003 /* confdefs.h. */
10004 _ACEOF
10005 cat confdefs.h >>conftest.$ac_ext
10006 cat >>conftest.$ac_ext <<_ACEOF
10007 /* end confdefs.h. */
10008 $ac_includes_default
10009 /* malloc might have been renamed as rpl_malloc. */
10010 #undef malloc
10012 /* Thanks to Mike Haertel and Jim Avera for this test.
10013 Here is a matrix of mmap possibilities:
10014 mmap private not fixed
10015 mmap private fixed at somewhere currently unmapped
10016 mmap private fixed at somewhere already mapped
10017 mmap shared not fixed
10018 mmap shared fixed at somewhere currently unmapped
10019 mmap shared fixed at somewhere already mapped
10020 For private mappings, we should verify that changes cannot be read()
10021 back from the file, nor mmap's back from the file at a different
10022 address. (There have been systems where private was not correctly
10023 implemented like the infamous i386 svr4.0, and systems where the
10024 VM page cache was not coherent with the file system buffer cache
10025 like early versions of FreeBSD and possibly contemporary NetBSD.)
10026 For shared mappings, we should conversely verify that changes get
10027 propagated back to all the places they're supposed to be.
10029 Grep wants private fixed already mapped.
10030 The main things grep needs to know about mmap are:
10031 * does it exist and is it safe to write into the mmap'd area
10032 * how to use it (BSD variants) */
10034 #include <fcntl.h>
10035 #include <sys/mman.h>
10037 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10038 char *malloc ();
10039 #endif
10041 /* This mess was copied from the GNU getpagesize.h. */
10042 #ifndef HAVE_GETPAGESIZE
10043 /* Assume that all systems that can run configure have sys/param.h. */
10044 # ifndef HAVE_SYS_PARAM_H
10045 # define HAVE_SYS_PARAM_H 1
10046 # endif
10048 # ifdef _SC_PAGESIZE
10049 # define getpagesize() sysconf(_SC_PAGESIZE)
10050 # else /* no _SC_PAGESIZE */
10051 # ifdef HAVE_SYS_PARAM_H
10052 # include <sys/param.h>
10053 # ifdef EXEC_PAGESIZE
10054 # define getpagesize() EXEC_PAGESIZE
10055 # else /* no EXEC_PAGESIZE */
10056 # ifdef NBPG
10057 # define getpagesize() NBPG * CLSIZE
10058 # ifndef CLSIZE
10059 # define CLSIZE 1
10060 # endif /* no CLSIZE */
10061 # else /* no NBPG */
10062 # ifdef NBPC
10063 # define getpagesize() NBPC
10064 # else /* no NBPC */
10065 # ifdef PAGESIZE
10066 # define getpagesize() PAGESIZE
10067 # endif /* PAGESIZE */
10068 # endif /* no NBPC */
10069 # endif /* no NBPG */
10070 # endif /* no EXEC_PAGESIZE */
10071 # else /* no HAVE_SYS_PARAM_H */
10072 # define getpagesize() 8192 /* punt totally */
10073 # endif /* no HAVE_SYS_PARAM_H */
10074 # endif /* no _SC_PAGESIZE */
10076 #endif /* no HAVE_GETPAGESIZE */
10079 main ()
10081 char *data, *data2, *data3;
10082 int i, pagesize;
10083 int fd;
10085 pagesize = getpagesize ();
10087 /* First, make a file with some known garbage in it. */
10088 data = (char *) malloc (pagesize);
10089 if (!data)
10090 return 1;
10091 for (i = 0; i < pagesize; ++i)
10092 *(data + i) = rand ();
10093 umask (0);
10094 fd = creat ("conftest.mmap", 0600);
10095 if (fd < 0)
10096 return 1;
10097 if (write (fd, data, pagesize) != pagesize)
10098 return 1;
10099 close (fd);
10101 /* Next, try to mmap the file at a fixed address which already has
10102 something else allocated at it. If we can, also make sure that
10103 we see the same garbage. */
10104 fd = open ("conftest.mmap", O_RDWR);
10105 if (fd < 0)
10106 return 1;
10107 data2 = (char *) malloc (2 * pagesize);
10108 if (!data2)
10109 return 1;
10110 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10111 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10112 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10113 return 1;
10114 for (i = 0; i < pagesize; ++i)
10115 if (*(data + i) != *(data2 + i))
10116 return 1;
10118 /* Finally, make sure that changes to the mapped area do not
10119 percolate back to the file as seen by read(). (This is a bug on
10120 some variants of i386 svr4.0.) */
10121 for (i = 0; i < pagesize; ++i)
10122 *(data2 + i) = *(data2 + i) + 1;
10123 data3 = (char *) malloc (pagesize);
10124 if (!data3)
10125 return 1;
10126 if (read (fd, data3, pagesize) != pagesize)
10127 return 1;
10128 for (i = 0; i < pagesize; ++i)
10129 if (*(data + i) != *(data3 + i))
10130 return 1;
10131 close (fd);
10132 return 0;
10134 _ACEOF
10135 rm -f conftest$ac_exeext
10136 if { (ac_try="$ac_link"
10137 case "(($ac_try" in
10138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10139 *) ac_try_echo=$ac_try;;
10140 esac
10141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10142 (eval "$ac_link") 2>&5
10143 ac_status=$?
10144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10146 { (case "(($ac_try" in
10147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10148 *) ac_try_echo=$ac_try;;
10149 esac
10150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10151 (eval "$ac_try") 2>&5
10152 ac_status=$?
10153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154 (exit $ac_status); }; }; then
10155 ac_cv_func_mmap_fixed_mapped=yes
10156 else
10157 echo "$as_me: program exited with status $ac_status" >&5
10158 echo "$as_me: failed program was:" >&5
10159 sed 's/^/| /' conftest.$ac_ext >&5
10161 ( exit $ac_status )
10162 ac_cv_func_mmap_fixed_mapped=no
10164 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10169 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10170 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10171 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10173 cat >>confdefs.h <<\_ACEOF
10174 #define HAVE_MMAP 1
10175 _ACEOF
10178 rm -f conftest.mmap
10180 if test $use_mmap_for_buffers = yes; then
10181 REL_ALLOC=no
10184 LIBS="$libsrc_libs $LIBS"
10187 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10188 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10189 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10190 echo $ECHO_N "(cached) $ECHO_C" >&6
10191 else
10192 ac_check_lib_save_LIBS=$LIBS
10193 LIBS="-ldnet $LIBS"
10194 cat >conftest.$ac_ext <<_ACEOF
10195 /* confdefs.h. */
10196 _ACEOF
10197 cat confdefs.h >>conftest.$ac_ext
10198 cat >>conftest.$ac_ext <<_ACEOF
10199 /* end confdefs.h. */
10201 /* Override any GCC internal prototype to avoid an error.
10202 Use char because int might match the return type of a GCC
10203 builtin and then its argument prototype would still apply. */
10204 #ifdef __cplusplus
10205 extern "C"
10206 #endif
10207 char dnet_ntoa ();
10209 main ()
10211 return dnet_ntoa ();
10213 return 0;
10215 _ACEOF
10216 rm -f conftest.$ac_objext conftest$ac_exeext
10217 if { (ac_try="$ac_link"
10218 case "(($ac_try" in
10219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10220 *) ac_try_echo=$ac_try;;
10221 esac
10222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10223 (eval "$ac_link") 2>conftest.er1
10224 ac_status=$?
10225 grep -v '^ *+' conftest.er1 >conftest.err
10226 rm -f conftest.er1
10227 cat conftest.err >&5
10228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229 (exit $ac_status); } && {
10230 test -z "$ac_c_werror_flag" ||
10231 test ! -s conftest.err
10232 } && test -s conftest$ac_exeext &&
10233 $as_test_x conftest$ac_exeext; then
10234 ac_cv_lib_dnet_dnet_ntoa=yes
10235 else
10236 echo "$as_me: failed program was:" >&5
10237 sed 's/^/| /' conftest.$ac_ext >&5
10239 ac_cv_lib_dnet_dnet_ntoa=no
10242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10243 conftest$ac_exeext conftest.$ac_ext
10244 LIBS=$ac_check_lib_save_LIBS
10246 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10247 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10248 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10249 cat >>confdefs.h <<_ACEOF
10250 #define HAVE_LIBDNET 1
10251 _ACEOF
10253 LIBS="-ldnet $LIBS"
10258 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10259 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10260 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10261 echo $ECHO_N "(cached) $ECHO_C" >&6
10262 else
10263 ac_check_lib_save_LIBS=$LIBS
10264 LIBS="-lXbsd $LIBS"
10265 cat >conftest.$ac_ext <<_ACEOF
10266 /* confdefs.h. */
10267 _ACEOF
10268 cat confdefs.h >>conftest.$ac_ext
10269 cat >>conftest.$ac_ext <<_ACEOF
10270 /* end confdefs.h. */
10274 main ()
10276 return main ();
10278 return 0;
10280 _ACEOF
10281 rm -f conftest.$ac_objext conftest$ac_exeext
10282 if { (ac_try="$ac_link"
10283 case "(($ac_try" in
10284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10285 *) ac_try_echo=$ac_try;;
10286 esac
10287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10288 (eval "$ac_link") 2>conftest.er1
10289 ac_status=$?
10290 grep -v '^ *+' conftest.er1 >conftest.err
10291 rm -f conftest.er1
10292 cat conftest.err >&5
10293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294 (exit $ac_status); } && {
10295 test -z "$ac_c_werror_flag" ||
10296 test ! -s conftest.err
10297 } && test -s conftest$ac_exeext &&
10298 $as_test_x conftest$ac_exeext; then
10299 ac_cv_lib_Xbsd_main=yes
10300 else
10301 echo "$as_me: failed program was:" >&5
10302 sed 's/^/| /' conftest.$ac_ext >&5
10304 ac_cv_lib_Xbsd_main=no
10307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10308 conftest$ac_exeext conftest.$ac_ext
10309 LIBS=$ac_check_lib_save_LIBS
10311 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10312 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10313 if test $ac_cv_lib_Xbsd_main = yes; then
10314 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10319 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10320 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10321 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10322 echo $ECHO_N "(cached) $ECHO_C" >&6
10323 else
10324 ac_check_lib_save_LIBS=$LIBS
10325 LIBS="-lpthreads $LIBS"
10326 cat >conftest.$ac_ext <<_ACEOF
10327 /* confdefs.h. */
10328 _ACEOF
10329 cat confdefs.h >>conftest.$ac_ext
10330 cat >>conftest.$ac_ext <<_ACEOF
10331 /* end confdefs.h. */
10333 /* Override any GCC internal prototype to avoid an error.
10334 Use char because int might match the return type of a GCC
10335 builtin and then its argument prototype would still apply. */
10336 #ifdef __cplusplus
10337 extern "C"
10338 #endif
10339 char cma_open ();
10341 main ()
10343 return cma_open ();
10345 return 0;
10347 _ACEOF
10348 rm -f conftest.$ac_objext conftest$ac_exeext
10349 if { (ac_try="$ac_link"
10350 case "(($ac_try" in
10351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10352 *) ac_try_echo=$ac_try;;
10353 esac
10354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10355 (eval "$ac_link") 2>conftest.er1
10356 ac_status=$?
10357 grep -v '^ *+' conftest.er1 >conftest.err
10358 rm -f conftest.er1
10359 cat conftest.err >&5
10360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361 (exit $ac_status); } && {
10362 test -z "$ac_c_werror_flag" ||
10363 test ! -s conftest.err
10364 } && test -s conftest$ac_exeext &&
10365 $as_test_x conftest$ac_exeext; then
10366 ac_cv_lib_pthreads_cma_open=yes
10367 else
10368 echo "$as_me: failed program was:" >&5
10369 sed 's/^/| /' conftest.$ac_ext >&5
10371 ac_cv_lib_pthreads_cma_open=no
10374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10375 conftest$ac_exeext conftest.$ac_ext
10376 LIBS=$ac_check_lib_save_LIBS
10378 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10379 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10380 if test $ac_cv_lib_pthreads_cma_open = yes; then
10381 cat >>confdefs.h <<_ACEOF
10382 #define HAVE_LIBPTHREADS 1
10383 _ACEOF
10385 LIBS="-lpthreads $LIBS"
10391 case ${host_os} in
10392 aix*)
10393 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10394 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10395 if test "${gdb_cv_bigtoc+set}" = set; then
10396 echo $ECHO_N "(cached) $ECHO_C" >&6
10397 else
10399 case $GCC in
10400 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10401 *) gdb_cv_bigtoc=-bbigtoc ;;
10402 esac
10404 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10405 cat >conftest.$ac_ext <<_ACEOF
10406 /* confdefs.h. */
10407 _ACEOF
10408 cat confdefs.h >>conftest.$ac_ext
10409 cat >>conftest.$ac_ext <<_ACEOF
10410 /* end confdefs.h. */
10413 main ()
10415 int i;
10417 return 0;
10419 _ACEOF
10420 rm -f conftest.$ac_objext conftest$ac_exeext
10421 if { (ac_try="$ac_link"
10422 case "(($ac_try" in
10423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10424 *) ac_try_echo=$ac_try;;
10425 esac
10426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10427 (eval "$ac_link") 2>conftest.er1
10428 ac_status=$?
10429 grep -v '^ *+' conftest.er1 >conftest.err
10430 rm -f conftest.er1
10431 cat conftest.err >&5
10432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433 (exit $ac_status); } && {
10434 test -z "$ac_c_werror_flag" ||
10435 test ! -s conftest.err
10436 } && test -s conftest$ac_exeext &&
10437 $as_test_x conftest$ac_exeext; then
10439 else
10440 echo "$as_me: failed program was:" >&5
10441 sed 's/^/| /' conftest.$ac_ext >&5
10443 gdb_cv_bigtoc=
10446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10447 conftest$ac_exeext conftest.$ac_ext
10450 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10451 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10453 esac
10455 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10456 # used for the tests that follow. We set them back to REAL_CFLAGS and
10457 # REAL_CPPFLAGS later on.
10459 REAL_CPPFLAGS="$CPPFLAGS"
10461 if test "${HAVE_X11}" = "yes"; then
10462 DEFS="$C_SWITCH_X_SITE $DEFS"
10463 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10464 LIBS="$LIBX $LIBS"
10465 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10466 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10468 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10469 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10470 # but it's more convenient here to set LD_RUN_PATH
10471 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10472 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10473 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10474 export LD_RUN_PATH
10477 if test "${opsys}" = "gnu-linux"; then
10478 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10479 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10480 cat >conftest.$ac_ext <<_ACEOF
10481 /* confdefs.h. */
10482 _ACEOF
10483 cat confdefs.h >>conftest.$ac_ext
10484 cat >>conftest.$ac_ext <<_ACEOF
10485 /* end confdefs.h. */
10488 main ()
10490 XOpenDisplay ("foo");
10492 return 0;
10494 _ACEOF
10495 rm -f conftest.$ac_objext conftest$ac_exeext
10496 if { (ac_try="$ac_link"
10497 case "(($ac_try" in
10498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10499 *) ac_try_echo=$ac_try;;
10500 esac
10501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10502 (eval "$ac_link") 2>conftest.er1
10503 ac_status=$?
10504 grep -v '^ *+' conftest.er1 >conftest.err
10505 rm -f conftest.er1
10506 cat conftest.err >&5
10507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508 (exit $ac_status); } && {
10509 test -z "$ac_c_werror_flag" ||
10510 test ! -s conftest.err
10511 } && test -s conftest$ac_exeext &&
10512 $as_test_x conftest$ac_exeext; then
10513 xlinux_first_failure=no
10514 else
10515 echo "$as_me: failed program was:" >&5
10516 sed 's/^/| /' conftest.$ac_ext >&5
10518 xlinux_first_failure=yes
10521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10522 conftest$ac_exeext conftest.$ac_ext
10523 if test "${xlinux_first_failure}" = "yes"; then
10524 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10525 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10526 OLD_CPPFLAGS="$CPPFLAGS"
10527 OLD_LIBS="$LIBS"
10528 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10529 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10530 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10531 LIBS="$LIBS -b i486-linuxaout"
10532 cat >conftest.$ac_ext <<_ACEOF
10533 /* confdefs.h. */
10534 _ACEOF
10535 cat confdefs.h >>conftest.$ac_ext
10536 cat >>conftest.$ac_ext <<_ACEOF
10537 /* end confdefs.h. */
10540 main ()
10542 XOpenDisplay ("foo");
10544 return 0;
10546 _ACEOF
10547 rm -f conftest.$ac_objext conftest$ac_exeext
10548 if { (ac_try="$ac_link"
10549 case "(($ac_try" in
10550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10551 *) ac_try_echo=$ac_try;;
10552 esac
10553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10554 (eval "$ac_link") 2>conftest.er1
10555 ac_status=$?
10556 grep -v '^ *+' conftest.er1 >conftest.err
10557 rm -f conftest.er1
10558 cat conftest.err >&5
10559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560 (exit $ac_status); } && {
10561 test -z "$ac_c_werror_flag" ||
10562 test ! -s conftest.err
10563 } && test -s conftest$ac_exeext &&
10564 $as_test_x conftest$ac_exeext; then
10565 xlinux_second_failure=no
10566 else
10567 echo "$as_me: failed program was:" >&5
10568 sed 's/^/| /' conftest.$ac_ext >&5
10570 xlinux_second_failure=yes
10573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10574 conftest$ac_exeext conftest.$ac_ext
10575 if test "${xlinux_second_failure}" = "yes"; then
10576 # If we get the same failure with -b, there is no use adding -b.
10577 # So take it out. This plays safe.
10578 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10579 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10580 CPPFLAGS="$OLD_CPPFLAGS"
10581 LIBS="$OLD_LIBS"
10582 { echo "$as_me:$LINENO: result: no" >&5
10583 echo "${ECHO_T}no" >&6; }
10584 else
10585 { echo "$as_me:$LINENO: result: yes" >&5
10586 echo "${ECHO_T}yes" >&6; }
10588 else
10589 { echo "$as_me:$LINENO: result: no" >&5
10590 echo "${ECHO_T}no" >&6; }
10594 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10595 # header files included from there.
10596 { echo "$as_me:$LINENO: checking for Xkb" >&5
10597 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10598 cat >conftest.$ac_ext <<_ACEOF
10599 /* confdefs.h. */
10600 _ACEOF
10601 cat confdefs.h >>conftest.$ac_ext
10602 cat >>conftest.$ac_ext <<_ACEOF
10603 /* end confdefs.h. */
10604 #include <X11/Xlib.h>
10605 #include <X11/XKBlib.h>
10607 main ()
10609 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10611 return 0;
10613 _ACEOF
10614 rm -f conftest.$ac_objext conftest$ac_exeext
10615 if { (ac_try="$ac_link"
10616 case "(($ac_try" in
10617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10618 *) ac_try_echo=$ac_try;;
10619 esac
10620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10621 (eval "$ac_link") 2>conftest.er1
10622 ac_status=$?
10623 grep -v '^ *+' conftest.er1 >conftest.err
10624 rm -f conftest.er1
10625 cat conftest.err >&5
10626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627 (exit $ac_status); } && {
10628 test -z "$ac_c_werror_flag" ||
10629 test ! -s conftest.err
10630 } && test -s conftest$ac_exeext &&
10631 $as_test_x conftest$ac_exeext; then
10632 emacs_xkb=yes
10633 else
10634 echo "$as_me: failed program was:" >&5
10635 sed 's/^/| /' conftest.$ac_ext >&5
10637 emacs_xkb=no
10640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10641 conftest$ac_exeext conftest.$ac_ext
10642 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10643 echo "${ECHO_T}$emacs_xkb" >&6; }
10644 if test $emacs_xkb = yes; then
10646 cat >>confdefs.h <<\_ACEOF
10647 #define HAVE_XKBGETKEYBOARD 1
10648 _ACEOF
10656 for ac_func in XrmSetDatabase XScreenResourceString \
10657 XScreenNumberOfScreen XSetWMProtocols
10659 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10660 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10661 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10662 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10663 echo $ECHO_N "(cached) $ECHO_C" >&6
10664 else
10665 cat >conftest.$ac_ext <<_ACEOF
10666 /* confdefs.h. */
10667 _ACEOF
10668 cat confdefs.h >>conftest.$ac_ext
10669 cat >>conftest.$ac_ext <<_ACEOF
10670 /* end confdefs.h. */
10671 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10672 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10673 #define $ac_func innocuous_$ac_func
10675 /* System header to define __stub macros and hopefully few prototypes,
10676 which can conflict with char $ac_func (); below.
10677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10678 <limits.h> exists even on freestanding compilers. */
10680 #ifdef __STDC__
10681 # include <limits.h>
10682 #else
10683 # include <assert.h>
10684 #endif
10686 #undef $ac_func
10688 /* Override any GCC internal prototype to avoid an error.
10689 Use char because int might match the return type of a GCC
10690 builtin and then its argument prototype would still apply. */
10691 #ifdef __cplusplus
10692 extern "C"
10693 #endif
10694 char $ac_func ();
10695 /* The GNU C library defines this for functions which it implements
10696 to always fail with ENOSYS. Some functions are actually named
10697 something starting with __ and the normal name is an alias. */
10698 #if defined __stub_$ac_func || defined __stub___$ac_func
10699 choke me
10700 #endif
10703 main ()
10705 return $ac_func ();
10707 return 0;
10709 _ACEOF
10710 rm -f conftest.$ac_objext conftest$ac_exeext
10711 if { (ac_try="$ac_link"
10712 case "(($ac_try" in
10713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10714 *) ac_try_echo=$ac_try;;
10715 esac
10716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10717 (eval "$ac_link") 2>conftest.er1
10718 ac_status=$?
10719 grep -v '^ *+' conftest.er1 >conftest.err
10720 rm -f conftest.er1
10721 cat conftest.err >&5
10722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 (exit $ac_status); } && {
10724 test -z "$ac_c_werror_flag" ||
10725 test ! -s conftest.err
10726 } && test -s conftest$ac_exeext &&
10727 $as_test_x conftest$ac_exeext; then
10728 eval "$as_ac_var=yes"
10729 else
10730 echo "$as_me: failed program was:" >&5
10731 sed 's/^/| /' conftest.$ac_ext >&5
10733 eval "$as_ac_var=no"
10736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10737 conftest$ac_exeext conftest.$ac_ext
10739 ac_res=`eval echo '${'$as_ac_var'}'`
10740 { echo "$as_me:$LINENO: result: $ac_res" >&5
10741 echo "${ECHO_T}$ac_res" >&6; }
10742 if test `eval echo '${'$as_ac_var'}'` = yes; then
10743 cat >>confdefs.h <<_ACEOF
10744 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10745 _ACEOF
10748 done
10752 if test "${window_system}" = "x11"; then
10753 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10754 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10755 if test "${emacs_cv_x11_version_6+set}" = set; then
10756 echo $ECHO_N "(cached) $ECHO_C" >&6
10757 else
10758 cat >conftest.$ac_ext <<_ACEOF
10759 /* confdefs.h. */
10760 _ACEOF
10761 cat confdefs.h >>conftest.$ac_ext
10762 cat >>conftest.$ac_ext <<_ACEOF
10763 /* end confdefs.h. */
10764 #include <X11/Xlib.h>
10766 main ()
10768 #if XlibSpecificationRelease < 6
10769 fail;
10770 #endif
10773 return 0;
10775 _ACEOF
10776 rm -f conftest.$ac_objext conftest$ac_exeext
10777 if { (ac_try="$ac_link"
10778 case "(($ac_try" in
10779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10780 *) ac_try_echo=$ac_try;;
10781 esac
10782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10783 (eval "$ac_link") 2>conftest.er1
10784 ac_status=$?
10785 grep -v '^ *+' conftest.er1 >conftest.err
10786 rm -f conftest.er1
10787 cat conftest.err >&5
10788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789 (exit $ac_status); } && {
10790 test -z "$ac_c_werror_flag" ||
10791 test ! -s conftest.err
10792 } && test -s conftest$ac_exeext &&
10793 $as_test_x conftest$ac_exeext; then
10794 emacs_cv_x11_version_6=yes
10795 else
10796 echo "$as_me: failed program was:" >&5
10797 sed 's/^/| /' conftest.$ac_ext >&5
10799 emacs_cv_x11_version_6=no
10802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10803 conftest$ac_exeext conftest.$ac_ext
10806 if test $emacs_cv_x11_version_6 = yes; then
10807 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10808 echo "${ECHO_T}6 or newer" >&6; }
10810 cat >>confdefs.h <<\_ACEOF
10811 #define HAVE_X11R6 1
10812 _ACEOF
10814 else
10815 { echo "$as_me:$LINENO: result: before 6" >&5
10816 echo "${ECHO_T}before 6" >&6; }
10821 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10822 HAVE_RSVG=no
10823 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
10824 if test "${with_rsvg}" != "no"; then
10825 RSVG_REQUIRED=2.11.0
10826 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10829 succeeded=no
10831 # Extract the first word of "pkg-config", so it can be a program name with args.
10832 set dummy pkg-config; ac_word=$2
10833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10835 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10836 echo $ECHO_N "(cached) $ECHO_C" >&6
10837 else
10838 case $PKG_CONFIG in
10839 [\\/]* | ?:[\\/]*)
10840 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10844 for as_dir in $PATH
10846 IFS=$as_save_IFS
10847 test -z "$as_dir" && as_dir=.
10848 for ac_exec_ext in '' $ac_executable_extensions; do
10849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10850 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10852 break 2
10854 done
10855 done
10856 IFS=$as_save_IFS
10858 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10860 esac
10862 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10863 if test -n "$PKG_CONFIG"; then
10864 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10865 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10866 else
10867 { echo "$as_me:$LINENO: result: no" >&5
10868 echo "${ECHO_T}no" >&6; }
10873 if test "$PKG_CONFIG" = "no" ; then
10875 else
10876 PKG_CONFIG_MIN_VERSION=0.9.0
10877 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10878 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10879 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10881 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10882 { echo "$as_me:$LINENO: result: yes" >&5
10883 echo "${ECHO_T}yes" >&6; }
10884 succeeded=yes
10886 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
10887 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
10888 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10889 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
10890 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10892 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
10893 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
10894 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10895 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
10896 echo "${ECHO_T}$RSVG_LIBS" >&6; }
10897 else
10898 { echo "$as_me:$LINENO: result: no" >&5
10899 echo "${ECHO_T}no" >&6; }
10900 RSVG_CFLAGS=""
10901 RSVG_LIBS=""
10902 ## If we have a custom action on failure, don't print errors, but
10903 ## do set a variable so people can do so.
10904 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10910 else
10911 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10912 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10916 if test $succeeded = yes; then
10918 else
10925 if test ".${RSVG_CFLAGS}" != "."; then
10926 HAVE_RSVG=yes
10928 cat >>confdefs.h <<\_ACEOF
10929 #define HAVE_RSVG 1
10930 _ACEOF
10932 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10933 LIBS="$RSVG_LIBS $LIBS"
10939 HAVE_GTK=no
10940 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10941 GLIB_REQUIRED=2.6
10942 GTK_REQUIRED=2.6
10943 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10946 succeeded=no
10948 # Extract the first word of "pkg-config", so it can be a program name with args.
10949 set dummy pkg-config; ac_word=$2
10950 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10952 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10953 echo $ECHO_N "(cached) $ECHO_C" >&6
10954 else
10955 case $PKG_CONFIG in
10956 [\\/]* | ?:[\\/]*)
10957 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10961 for as_dir in $PATH
10963 IFS=$as_save_IFS
10964 test -z "$as_dir" && as_dir=.
10965 for ac_exec_ext in '' $ac_executable_extensions; do
10966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10967 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10969 break 2
10971 done
10972 done
10973 IFS=$as_save_IFS
10975 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10977 esac
10979 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10980 if test -n "$PKG_CONFIG"; then
10981 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10982 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10983 else
10984 { echo "$as_me:$LINENO: result: no" >&5
10985 echo "${ECHO_T}no" >&6; }
10990 if test "$PKG_CONFIG" = "no" ; then
10991 pkg_check_gtk=no
10992 else
10993 PKG_CONFIG_MIN_VERSION=0.9.0
10994 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10995 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10996 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10998 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10999 { echo "$as_me:$LINENO: result: yes" >&5
11000 echo "${ECHO_T}yes" >&6; }
11001 succeeded=yes
11003 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11004 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11005 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11006 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11007 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11009 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11010 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11011 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11012 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11013 echo "${ECHO_T}$GTK_LIBS" >&6; }
11014 else
11015 { echo "$as_me:$LINENO: result: no" >&5
11016 echo "${ECHO_T}no" >&6; }
11017 GTK_CFLAGS=""
11018 GTK_LIBS=""
11019 ## If we have a custom action on failure, don't print errors, but
11020 ## do set a variable so people can do so.
11021 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11027 else
11028 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11029 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11033 if test $succeeded = yes; then
11034 pkg_check_gtk=yes
11035 else
11036 pkg_check_gtk=no
11039 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11040 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11041 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11042 { (exit 1); exit 1; }; }
11047 if test x"$pkg_check_gtk" = xyes; then
11051 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11052 CFLAGS="$CFLAGS $GTK_CFLAGS"
11053 LIBS="$GTK_LIBS $LIBS"
11054 GTK_COMPILES=no
11056 for ac_func in gtk_main
11058 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11059 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11060 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11061 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11062 echo $ECHO_N "(cached) $ECHO_C" >&6
11063 else
11064 cat >conftest.$ac_ext <<_ACEOF
11065 /* confdefs.h. */
11066 _ACEOF
11067 cat confdefs.h >>conftest.$ac_ext
11068 cat >>conftest.$ac_ext <<_ACEOF
11069 /* end confdefs.h. */
11070 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11071 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11072 #define $ac_func innocuous_$ac_func
11074 /* System header to define __stub macros and hopefully few prototypes,
11075 which can conflict with char $ac_func (); below.
11076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11077 <limits.h> exists even on freestanding compilers. */
11079 #ifdef __STDC__
11080 # include <limits.h>
11081 #else
11082 # include <assert.h>
11083 #endif
11085 #undef $ac_func
11087 /* Override any GCC internal prototype to avoid an error.
11088 Use char because int might match the return type of a GCC
11089 builtin and then its argument prototype would still apply. */
11090 #ifdef __cplusplus
11091 extern "C"
11092 #endif
11093 char $ac_func ();
11094 /* The GNU C library defines this for functions which it implements
11095 to always fail with ENOSYS. Some functions are actually named
11096 something starting with __ and the normal name is an alias. */
11097 #if defined __stub_$ac_func || defined __stub___$ac_func
11098 choke me
11099 #endif
11102 main ()
11104 return $ac_func ();
11106 return 0;
11108 _ACEOF
11109 rm -f conftest.$ac_objext conftest$ac_exeext
11110 if { (ac_try="$ac_link"
11111 case "(($ac_try" in
11112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11113 *) ac_try_echo=$ac_try;;
11114 esac
11115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11116 (eval "$ac_link") 2>conftest.er1
11117 ac_status=$?
11118 grep -v '^ *+' conftest.er1 >conftest.err
11119 rm -f conftest.er1
11120 cat conftest.err >&5
11121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122 (exit $ac_status); } && {
11123 test -z "$ac_c_werror_flag" ||
11124 test ! -s conftest.err
11125 } && test -s conftest$ac_exeext &&
11126 $as_test_x conftest$ac_exeext; then
11127 eval "$as_ac_var=yes"
11128 else
11129 echo "$as_me: failed program was:" >&5
11130 sed 's/^/| /' conftest.$ac_ext >&5
11132 eval "$as_ac_var=no"
11135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11136 conftest$ac_exeext conftest.$ac_ext
11138 ac_res=`eval echo '${'$as_ac_var'}'`
11139 { echo "$as_me:$LINENO: result: $ac_res" >&5
11140 echo "${ECHO_T}$ac_res" >&6; }
11141 if test `eval echo '${'$as_ac_var'}'` = yes; then
11142 cat >>confdefs.h <<_ACEOF
11143 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11144 _ACEOF
11145 GTK_COMPILES=yes
11147 done
11149 if test "${GTK_COMPILES}" != "yes"; then
11150 if test "$USE_X_TOOLKIT" != "maybe"; then
11151 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11152 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11153 { (exit 1); exit 1; }; };
11155 else
11156 HAVE_GTK=yes
11158 cat >>confdefs.h <<\_ACEOF
11159 #define USE_GTK 1
11160 _ACEOF
11162 USE_X_TOOLKIT=none
11163 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11165 else
11166 { echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11167 closing open displays. This is no problem if you just use
11168 one display, but if you use more than one and close one of them
11169 Emacs may crash." >&5
11170 echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11171 closing open displays. This is no problem if you just use
11172 one display, but if you use more than one and close one of them
11173 Emacs may crash." >&2;}
11174 sleep 3
11181 if test "${HAVE_GTK}" = "yes"; then
11183 if test "$with_toolkit_scroll_bars" != no; then
11184 with_toolkit_scroll_bars=yes
11187 HAVE_GTK_MULTIDISPLAY=no
11189 for ac_func in gdk_display_open
11191 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11192 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11193 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11194 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11195 echo $ECHO_N "(cached) $ECHO_C" >&6
11196 else
11197 cat >conftest.$ac_ext <<_ACEOF
11198 /* confdefs.h. */
11199 _ACEOF
11200 cat confdefs.h >>conftest.$ac_ext
11201 cat >>conftest.$ac_ext <<_ACEOF
11202 /* end confdefs.h. */
11203 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11204 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11205 #define $ac_func innocuous_$ac_func
11207 /* System header to define __stub macros and hopefully few prototypes,
11208 which can conflict with char $ac_func (); below.
11209 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11210 <limits.h> exists even on freestanding compilers. */
11212 #ifdef __STDC__
11213 # include <limits.h>
11214 #else
11215 # include <assert.h>
11216 #endif
11218 #undef $ac_func
11220 /* Override any GCC internal prototype to avoid an error.
11221 Use char because int might match the return type of a GCC
11222 builtin and then its argument prototype would still apply. */
11223 #ifdef __cplusplus
11224 extern "C"
11225 #endif
11226 char $ac_func ();
11227 /* The GNU C library defines this for functions which it implements
11228 to always fail with ENOSYS. Some functions are actually named
11229 something starting with __ and the normal name is an alias. */
11230 #if defined __stub_$ac_func || defined __stub___$ac_func
11231 choke me
11232 #endif
11235 main ()
11237 return $ac_func ();
11239 return 0;
11241 _ACEOF
11242 rm -f conftest.$ac_objext conftest$ac_exeext
11243 if { (ac_try="$ac_link"
11244 case "(($ac_try" in
11245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11246 *) ac_try_echo=$ac_try;;
11247 esac
11248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11249 (eval "$ac_link") 2>conftest.er1
11250 ac_status=$?
11251 grep -v '^ *+' conftest.er1 >conftest.err
11252 rm -f conftest.er1
11253 cat conftest.err >&5
11254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); } && {
11256 test -z "$ac_c_werror_flag" ||
11257 test ! -s conftest.err
11258 } && test -s conftest$ac_exeext &&
11259 $as_test_x conftest$ac_exeext; then
11260 eval "$as_ac_var=yes"
11261 else
11262 echo "$as_me: failed program was:" >&5
11263 sed 's/^/| /' conftest.$ac_ext >&5
11265 eval "$as_ac_var=no"
11268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11269 conftest$ac_exeext conftest.$ac_ext
11271 ac_res=`eval echo '${'$as_ac_var'}'`
11272 { echo "$as_me:$LINENO: result: $ac_res" >&5
11273 echo "${ECHO_T}$ac_res" >&6; }
11274 if test `eval echo '${'$as_ac_var'}'` = yes; then
11275 cat >>confdefs.h <<_ACEOF
11276 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11277 _ACEOF
11278 HAVE_GTK_MULTIDISPLAY=yes
11280 done
11282 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11284 cat >>confdefs.h <<\_ACEOF
11285 #define HAVE_GTK_MULTIDISPLAY 1
11286 _ACEOF
11290 HAVE_GTK_FILE_SELECTION=no
11291 { echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
11292 echo $ECHO_N "checking whether GTK_TYPE_FILE_SELECTION is declared... $ECHO_C" >&6; }
11293 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
11294 echo $ECHO_N "(cached) $ECHO_C" >&6
11295 else
11296 cat >conftest.$ac_ext <<_ACEOF
11297 /* confdefs.h. */
11298 _ACEOF
11299 cat confdefs.h >>conftest.$ac_ext
11300 cat >>conftest.$ac_ext <<_ACEOF
11301 /* end confdefs.h. */
11302 $ac_includes_default
11303 #include <gtk/gtk.h>
11306 main ()
11308 #ifndef GTK_TYPE_FILE_SELECTION
11309 (void) GTK_TYPE_FILE_SELECTION;
11310 #endif
11313 return 0;
11315 _ACEOF
11316 rm -f conftest.$ac_objext
11317 if { (ac_try="$ac_compile"
11318 case "(($ac_try" in
11319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11320 *) ac_try_echo=$ac_try;;
11321 esac
11322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11323 (eval "$ac_compile") 2>conftest.er1
11324 ac_status=$?
11325 grep -v '^ *+' conftest.er1 >conftest.err
11326 rm -f conftest.er1
11327 cat conftest.err >&5
11328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329 (exit $ac_status); } && {
11330 test -z "$ac_c_werror_flag" ||
11331 test ! -s conftest.err
11332 } && test -s conftest.$ac_objext; then
11333 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
11334 else
11335 echo "$as_me: failed program was:" >&5
11336 sed 's/^/| /' conftest.$ac_ext >&5
11338 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
11341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11343 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
11344 echo "${ECHO_T}$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
11345 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
11346 HAVE_GTK_FILE_SELECTION=yes
11347 else
11348 HAVE_GTK_FILE_SELECTION=no
11351 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11353 for ac_func in gtk_file_selection_new
11355 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11356 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11357 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11358 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11359 echo $ECHO_N "(cached) $ECHO_C" >&6
11360 else
11361 cat >conftest.$ac_ext <<_ACEOF
11362 /* confdefs.h. */
11363 _ACEOF
11364 cat confdefs.h >>conftest.$ac_ext
11365 cat >>conftest.$ac_ext <<_ACEOF
11366 /* end confdefs.h. */
11367 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11369 #define $ac_func innocuous_$ac_func
11371 /* System header to define __stub macros and hopefully few prototypes,
11372 which can conflict with char $ac_func (); below.
11373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11374 <limits.h> exists even on freestanding compilers. */
11376 #ifdef __STDC__
11377 # include <limits.h>
11378 #else
11379 # include <assert.h>
11380 #endif
11382 #undef $ac_func
11384 /* Override any GCC internal prototype to avoid an error.
11385 Use char because int might match the return type of a GCC
11386 builtin and then its argument prototype would still apply. */
11387 #ifdef __cplusplus
11388 extern "C"
11389 #endif
11390 char $ac_func ();
11391 /* The GNU C library defines this for functions which it implements
11392 to always fail with ENOSYS. Some functions are actually named
11393 something starting with __ and the normal name is an alias. */
11394 #if defined __stub_$ac_func || defined __stub___$ac_func
11395 choke me
11396 #endif
11399 main ()
11401 return $ac_func ();
11403 return 0;
11405 _ACEOF
11406 rm -f conftest.$ac_objext conftest$ac_exeext
11407 if { (ac_try="$ac_link"
11408 case "(($ac_try" in
11409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11410 *) ac_try_echo=$ac_try;;
11411 esac
11412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11413 (eval "$ac_link") 2>conftest.er1
11414 ac_status=$?
11415 grep -v '^ *+' conftest.er1 >conftest.err
11416 rm -f conftest.er1
11417 cat conftest.err >&5
11418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419 (exit $ac_status); } && {
11420 test -z "$ac_c_werror_flag" ||
11421 test ! -s conftest.err
11422 } && test -s conftest$ac_exeext &&
11423 $as_test_x conftest$ac_exeext; then
11424 eval "$as_ac_var=yes"
11425 else
11426 echo "$as_me: failed program was:" >&5
11427 sed 's/^/| /' conftest.$ac_ext >&5
11429 eval "$as_ac_var=no"
11432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11433 conftest$ac_exeext conftest.$ac_ext
11435 ac_res=`eval echo '${'$as_ac_var'}'`
11436 { echo "$as_me:$LINENO: result: $ac_res" >&5
11437 echo "${ECHO_T}$ac_res" >&6; }
11438 if test `eval echo '${'$as_ac_var'}'` = yes; then
11439 cat >>confdefs.h <<_ACEOF
11440 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11441 _ACEOF
11442 HAVE_GTK_FILE_SELECTION=yes
11443 else
11444 HAVE_GTK_FILE_SELECTION=no
11446 done
11450 HAVE_GTK_FILE_CHOOSER=no
11451 { echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
11452 echo $ECHO_N "checking whether GTK_TYPE_FILE_CHOOSER is declared... $ECHO_C" >&6; }
11453 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
11454 echo $ECHO_N "(cached) $ECHO_C" >&6
11455 else
11456 cat >conftest.$ac_ext <<_ACEOF
11457 /* confdefs.h. */
11458 _ACEOF
11459 cat confdefs.h >>conftest.$ac_ext
11460 cat >>conftest.$ac_ext <<_ACEOF
11461 /* end confdefs.h. */
11462 $ac_includes_default
11463 #include <gtk/gtk.h>
11466 main ()
11468 #ifndef GTK_TYPE_FILE_CHOOSER
11469 (void) GTK_TYPE_FILE_CHOOSER;
11470 #endif
11473 return 0;
11475 _ACEOF
11476 rm -f conftest.$ac_objext
11477 if { (ac_try="$ac_compile"
11478 case "(($ac_try" in
11479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11480 *) ac_try_echo=$ac_try;;
11481 esac
11482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11483 (eval "$ac_compile") 2>conftest.er1
11484 ac_status=$?
11485 grep -v '^ *+' conftest.er1 >conftest.err
11486 rm -f conftest.er1
11487 cat conftest.err >&5
11488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489 (exit $ac_status); } && {
11490 test -z "$ac_c_werror_flag" ||
11491 test ! -s conftest.err
11492 } && test -s conftest.$ac_objext; then
11493 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
11494 else
11495 echo "$as_me: failed program was:" >&5
11496 sed 's/^/| /' conftest.$ac_ext >&5
11498 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
11501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11503 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
11504 echo "${ECHO_T}$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
11505 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
11506 HAVE_GTK_FILE_CHOOSER=yes
11507 else
11508 HAVE_GTK_FILE_CHOOSER=no
11511 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11513 for ac_func in gtk_file_chooser_dialog_new
11515 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11516 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11517 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11518 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11519 echo $ECHO_N "(cached) $ECHO_C" >&6
11520 else
11521 cat >conftest.$ac_ext <<_ACEOF
11522 /* confdefs.h. */
11523 _ACEOF
11524 cat confdefs.h >>conftest.$ac_ext
11525 cat >>conftest.$ac_ext <<_ACEOF
11526 /* end confdefs.h. */
11527 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11529 #define $ac_func innocuous_$ac_func
11531 /* System header to define __stub macros and hopefully few prototypes,
11532 which can conflict with char $ac_func (); below.
11533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11534 <limits.h> exists even on freestanding compilers. */
11536 #ifdef __STDC__
11537 # include <limits.h>
11538 #else
11539 # include <assert.h>
11540 #endif
11542 #undef $ac_func
11544 /* Override any GCC internal prototype to avoid an error.
11545 Use char because int might match the return type of a GCC
11546 builtin and then its argument prototype would still apply. */
11547 #ifdef __cplusplus
11548 extern "C"
11549 #endif
11550 char $ac_func ();
11551 /* The GNU C library defines this for functions which it implements
11552 to always fail with ENOSYS. Some functions are actually named
11553 something starting with __ and the normal name is an alias. */
11554 #if defined __stub_$ac_func || defined __stub___$ac_func
11555 choke me
11556 #endif
11559 main ()
11561 return $ac_func ();
11563 return 0;
11565 _ACEOF
11566 rm -f conftest.$ac_objext conftest$ac_exeext
11567 if { (ac_try="$ac_link"
11568 case "(($ac_try" in
11569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11570 *) ac_try_echo=$ac_try;;
11571 esac
11572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11573 (eval "$ac_link") 2>conftest.er1
11574 ac_status=$?
11575 grep -v '^ *+' conftest.er1 >conftest.err
11576 rm -f conftest.er1
11577 cat conftest.err >&5
11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); } && {
11580 test -z "$ac_c_werror_flag" ||
11581 test ! -s conftest.err
11582 } && test -s conftest$ac_exeext &&
11583 $as_test_x conftest$ac_exeext; then
11584 eval "$as_ac_var=yes"
11585 else
11586 echo "$as_me: failed program was:" >&5
11587 sed 's/^/| /' conftest.$ac_ext >&5
11589 eval "$as_ac_var=no"
11592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11593 conftest$ac_exeext conftest.$ac_ext
11595 ac_res=`eval echo '${'$as_ac_var'}'`
11596 { echo "$as_me:$LINENO: result: $ac_res" >&5
11597 echo "${ECHO_T}$ac_res" >&6; }
11598 if test `eval echo '${'$as_ac_var'}'` = yes; then
11599 cat >>confdefs.h <<_ACEOF
11600 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11601 _ACEOF
11602 HAVE_GTK_FILE_CHOOSER=yes
11603 else
11604 HAVE_GTK_FILE_CHOOSER=no
11606 done
11610 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11611 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11613 cat >>confdefs.h <<\_ACEOF
11614 #define HAVE_GTK_FILE_BOTH 1
11615 _ACEOF
11619 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11620 HAVE_GTK_AND_PTHREAD=no
11622 for ac_header in pthread.h
11624 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11626 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11629 echo $ECHO_N "(cached) $ECHO_C" >&6
11631 ac_res=`eval echo '${'$as_ac_Header'}'`
11632 { echo "$as_me:$LINENO: result: $ac_res" >&5
11633 echo "${ECHO_T}$ac_res" >&6; }
11634 else
11635 # Is the header compilable?
11636 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11637 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11638 cat >conftest.$ac_ext <<_ACEOF
11639 /* confdefs.h. */
11640 _ACEOF
11641 cat confdefs.h >>conftest.$ac_ext
11642 cat >>conftest.$ac_ext <<_ACEOF
11643 /* end confdefs.h. */
11644 $ac_includes_default
11645 #include <$ac_header>
11646 _ACEOF
11647 rm -f conftest.$ac_objext
11648 if { (ac_try="$ac_compile"
11649 case "(($ac_try" in
11650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11651 *) ac_try_echo=$ac_try;;
11652 esac
11653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11654 (eval "$ac_compile") 2>conftest.er1
11655 ac_status=$?
11656 grep -v '^ *+' conftest.er1 >conftest.err
11657 rm -f conftest.er1
11658 cat conftest.err >&5
11659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); } && {
11661 test -z "$ac_c_werror_flag" ||
11662 test ! -s conftest.err
11663 } && test -s conftest.$ac_objext; then
11664 ac_header_compiler=yes
11665 else
11666 echo "$as_me: failed program was:" >&5
11667 sed 's/^/| /' conftest.$ac_ext >&5
11669 ac_header_compiler=no
11672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11673 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11674 echo "${ECHO_T}$ac_header_compiler" >&6; }
11676 # Is the header present?
11677 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11678 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11679 cat >conftest.$ac_ext <<_ACEOF
11680 /* confdefs.h. */
11681 _ACEOF
11682 cat confdefs.h >>conftest.$ac_ext
11683 cat >>conftest.$ac_ext <<_ACEOF
11684 /* end confdefs.h. */
11685 #include <$ac_header>
11686 _ACEOF
11687 if { (ac_try="$ac_cpp conftest.$ac_ext"
11688 case "(($ac_try" in
11689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11690 *) ac_try_echo=$ac_try;;
11691 esac
11692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11693 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11694 ac_status=$?
11695 grep -v '^ *+' conftest.er1 >conftest.err
11696 rm -f conftest.er1
11697 cat conftest.err >&5
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); } >/dev/null && {
11700 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11701 test ! -s conftest.err
11702 }; then
11703 ac_header_preproc=yes
11704 else
11705 echo "$as_me: failed program was:" >&5
11706 sed 's/^/| /' conftest.$ac_ext >&5
11708 ac_header_preproc=no
11711 rm -f conftest.err conftest.$ac_ext
11712 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11713 echo "${ECHO_T}$ac_header_preproc" >&6; }
11715 # So? What about this header?
11716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11717 yes:no: )
11718 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11719 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11720 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11721 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11722 ac_header_preproc=yes
11724 no:yes:* )
11725 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11726 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11727 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11728 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11729 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11730 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11731 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11732 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11734 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11735 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11736 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11739 esac
11740 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11743 echo $ECHO_N "(cached) $ECHO_C" >&6
11744 else
11745 eval "$as_ac_Header=\$ac_header_preproc"
11747 ac_res=`eval echo '${'$as_ac_Header'}'`
11748 { echo "$as_me:$LINENO: result: $ac_res" >&5
11749 echo "${ECHO_T}$ac_res" >&6; }
11752 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11753 cat >>confdefs.h <<_ACEOF
11754 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11755 _ACEOF
11759 done
11761 if test "$ac_cv_header_pthread_h"; then
11762 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11763 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11764 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11765 echo $ECHO_N "(cached) $ECHO_C" >&6
11766 else
11767 ac_check_lib_save_LIBS=$LIBS
11768 LIBS="-lpthread $LIBS"
11769 cat >conftest.$ac_ext <<_ACEOF
11770 /* confdefs.h. */
11771 _ACEOF
11772 cat confdefs.h >>conftest.$ac_ext
11773 cat >>conftest.$ac_ext <<_ACEOF
11774 /* end confdefs.h. */
11776 /* Override any GCC internal prototype to avoid an error.
11777 Use char because int might match the return type of a GCC
11778 builtin and then its argument prototype would still apply. */
11779 #ifdef __cplusplus
11780 extern "C"
11781 #endif
11782 char pthread_self ();
11784 main ()
11786 return pthread_self ();
11788 return 0;
11790 _ACEOF
11791 rm -f conftest.$ac_objext conftest$ac_exeext
11792 if { (ac_try="$ac_link"
11793 case "(($ac_try" in
11794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11795 *) ac_try_echo=$ac_try;;
11796 esac
11797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11798 (eval "$ac_link") 2>conftest.er1
11799 ac_status=$?
11800 grep -v '^ *+' conftest.er1 >conftest.err
11801 rm -f conftest.er1
11802 cat conftest.err >&5
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); } && {
11805 test -z "$ac_c_werror_flag" ||
11806 test ! -s conftest.err
11807 } && test -s conftest$ac_exeext &&
11808 $as_test_x conftest$ac_exeext; then
11809 ac_cv_lib_pthread_pthread_self=yes
11810 else
11811 echo "$as_me: failed program was:" >&5
11812 sed 's/^/| /' conftest.$ac_ext >&5
11814 ac_cv_lib_pthread_pthread_self=no
11817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11818 conftest$ac_exeext conftest.$ac_ext
11819 LIBS=$ac_check_lib_save_LIBS
11821 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11822 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11823 if test $ac_cv_lib_pthread_pthread_self = yes; then
11824 HAVE_GTK_AND_PTHREAD=yes
11828 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11829 case "${canonical}" in
11830 *-hpux*) ;;
11831 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11832 esac
11834 cat >>confdefs.h <<\_ACEOF
11835 #define HAVE_GTK_AND_PTHREAD 1
11836 _ACEOF
11842 HAVE_DBUS=no
11843 if test "${with_dbus}" = "yes"; then
11845 succeeded=no
11847 # Extract the first word of "pkg-config", so it can be a program name with args.
11848 set dummy pkg-config; ac_word=$2
11849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11851 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11852 echo $ECHO_N "(cached) $ECHO_C" >&6
11853 else
11854 case $PKG_CONFIG in
11855 [\\/]* | ?:[\\/]*)
11856 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11860 for as_dir in $PATH
11862 IFS=$as_save_IFS
11863 test -z "$as_dir" && as_dir=.
11864 for ac_exec_ext in '' $ac_executable_extensions; do
11865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11866 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11868 break 2
11870 done
11871 done
11872 IFS=$as_save_IFS
11874 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11876 esac
11878 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11879 if test -n "$PKG_CONFIG"; then
11880 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11881 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11882 else
11883 { echo "$as_me:$LINENO: result: no" >&5
11884 echo "${ECHO_T}no" >&6; }
11889 if test "$PKG_CONFIG" = "no" ; then
11890 HAVE_DBUS=no
11891 else
11892 PKG_CONFIG_MIN_VERSION=0.9.0
11893 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11894 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11895 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11897 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11898 { echo "$as_me:$LINENO: result: yes" >&5
11899 echo "${ECHO_T}yes" >&6; }
11900 succeeded=yes
11902 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11903 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11904 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11905 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11906 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11908 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11909 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11910 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11911 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11912 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11913 else
11914 { echo "$as_me:$LINENO: result: no" >&5
11915 echo "${ECHO_T}no" >&6; }
11916 DBUS_CFLAGS=""
11917 DBUS_LIBS=""
11918 ## If we have a custom action on failure, don't print errors, but
11919 ## do set a variable so people can do so.
11920 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11926 else
11927 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11928 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11932 if test $succeeded = yes; then
11933 HAVE_DBUS=yes
11934 else
11935 HAVE_DBUS=no
11938 if test "$HAVE_DBUS" = yes; then
11940 cat >>confdefs.h <<\_ACEOF
11941 #define HAVE_DBUS 1
11942 _ACEOF
11947 HAVE_XAW3D=no
11948 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11949 if test "$with_xaw3d" != no; then
11950 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11951 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11952 if test "${emacs_cv_xaw3d+set}" = set; then
11953 echo $ECHO_N "(cached) $ECHO_C" >&6
11954 else
11955 cat >conftest.$ac_ext <<_ACEOF
11956 /* confdefs.h. */
11957 _ACEOF
11958 cat confdefs.h >>conftest.$ac_ext
11959 cat >>conftest.$ac_ext <<_ACEOF
11960 /* end confdefs.h. */
11962 #include <X11/Intrinsic.h>
11963 #include <X11/Xaw3d/Simple.h>
11965 main ()
11969 return 0;
11971 _ACEOF
11972 rm -f conftest.$ac_objext conftest$ac_exeext
11973 if { (ac_try="$ac_link"
11974 case "(($ac_try" in
11975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11976 *) ac_try_echo=$ac_try;;
11977 esac
11978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11979 (eval "$ac_link") 2>conftest.er1
11980 ac_status=$?
11981 grep -v '^ *+' conftest.er1 >conftest.err
11982 rm -f conftest.er1
11983 cat conftest.err >&5
11984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985 (exit $ac_status); } && {
11986 test -z "$ac_c_werror_flag" ||
11987 test ! -s conftest.err
11988 } && test -s conftest$ac_exeext &&
11989 $as_test_x conftest$ac_exeext; then
11990 emacs_cv_xaw3d=yes
11991 else
11992 echo "$as_me: failed program was:" >&5
11993 sed 's/^/| /' conftest.$ac_ext >&5
11995 emacs_cv_xaw3d=no
11998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11999 conftest$ac_exeext conftest.$ac_ext
12002 else
12003 emacs_cv_xaw3d=no
12005 if test $emacs_cv_xaw3d = yes; then
12006 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12007 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12008 USE_X_TOOLKIT=LUCID
12009 HAVE_XAW3D=yes
12011 cat >>confdefs.h <<\_ACEOF
12012 #define HAVE_XAW3D 1
12013 _ACEOF
12015 else
12016 { echo "$as_me:$LINENO: result: no" >&5
12017 echo "${ECHO_T}no" >&6; }
12018 { echo "$as_me:$LINENO: checking for libXaw" >&5
12019 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
12020 if test "${emacs_cv_xaw+set}" = set; then
12021 echo $ECHO_N "(cached) $ECHO_C" >&6
12022 else
12023 cat >conftest.$ac_ext <<_ACEOF
12024 /* confdefs.h. */
12025 _ACEOF
12026 cat confdefs.h >>conftest.$ac_ext
12027 cat >>conftest.$ac_ext <<_ACEOF
12028 /* end confdefs.h. */
12030 #include <X11/Intrinsic.h>
12031 #include <X11/Xaw/Simple.h>
12033 main ()
12037 return 0;
12039 _ACEOF
12040 rm -f conftest.$ac_objext conftest$ac_exeext
12041 if { (ac_try="$ac_link"
12042 case "(($ac_try" in
12043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12044 *) ac_try_echo=$ac_try;;
12045 esac
12046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12047 (eval "$ac_link") 2>conftest.er1
12048 ac_status=$?
12049 grep -v '^ *+' conftest.er1 >conftest.err
12050 rm -f conftest.er1
12051 cat conftest.err >&5
12052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053 (exit $ac_status); } && {
12054 test -z "$ac_c_werror_flag" ||
12055 test ! -s conftest.err
12056 } && test -s conftest$ac_exeext &&
12057 $as_test_x conftest$ac_exeext; then
12058 emacs_cv_xaw=yes
12059 else
12060 echo "$as_me: failed program was:" >&5
12061 sed 's/^/| /' conftest.$ac_ext >&5
12063 emacs_cv_xaw=no
12066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12067 conftest$ac_exeext conftest.$ac_ext
12070 if test $emacs_cv_xaw = yes; then
12071 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12072 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12073 USE_X_TOOLKIT=LUCID
12074 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12075 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12076 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12077 { (exit 1); exit 1; }; }
12078 else
12079 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12080 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
12081 USE_X_TOOLKIT=none
12086 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12088 if test "${USE_X_TOOLKIT}" != "none"; then
12089 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12090 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12091 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12092 echo $ECHO_N "(cached) $ECHO_C" >&6
12093 else
12094 cat >conftest.$ac_ext <<_ACEOF
12095 /* confdefs.h. */
12096 _ACEOF
12097 cat confdefs.h >>conftest.$ac_ext
12098 cat >>conftest.$ac_ext <<_ACEOF
12099 /* end confdefs.h. */
12100 #include <X11/Intrinsic.h>
12102 main ()
12104 #if XtSpecificationRelease < 6
12105 fail;
12106 #endif
12109 return 0;
12111 _ACEOF
12112 rm -f conftest.$ac_objext conftest$ac_exeext
12113 if { (ac_try="$ac_link"
12114 case "(($ac_try" in
12115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12116 *) ac_try_echo=$ac_try;;
12117 esac
12118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12119 (eval "$ac_link") 2>conftest.er1
12120 ac_status=$?
12121 grep -v '^ *+' conftest.er1 >conftest.err
12122 rm -f conftest.er1
12123 cat conftest.err >&5
12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); } && {
12126 test -z "$ac_c_werror_flag" ||
12127 test ! -s conftest.err
12128 } && test -s conftest$ac_exeext &&
12129 $as_test_x conftest$ac_exeext; then
12130 emacs_cv_x11_toolkit_version_6=yes
12131 else
12132 echo "$as_me: failed program was:" >&5
12133 sed 's/^/| /' conftest.$ac_ext >&5
12135 emacs_cv_x11_toolkit_version_6=no
12138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12139 conftest$ac_exeext conftest.$ac_ext
12142 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12143 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12144 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12145 echo "${ECHO_T}6 or newer" >&6; }
12147 cat >>confdefs.h <<\_ACEOF
12148 #define HAVE_X11XTR6 1
12149 _ACEOF
12151 else
12152 { echo "$as_me:$LINENO: result: before 6" >&5
12153 echo "${ECHO_T}before 6" >&6; }
12156 OLDLIBS="$LIBS"
12157 if test x$HAVE_X11XTR6 = xyes; then
12158 LIBS="-lXt -lSM -lICE $LIBS"
12159 else
12160 LIBS="-lXt $LIBS"
12163 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12164 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12165 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12166 echo $ECHO_N "(cached) $ECHO_C" >&6
12167 else
12168 ac_check_lib_save_LIBS=$LIBS
12169 LIBS="-lXmu $LIBS"
12170 cat >conftest.$ac_ext <<_ACEOF
12171 /* confdefs.h. */
12172 _ACEOF
12173 cat confdefs.h >>conftest.$ac_ext
12174 cat >>conftest.$ac_ext <<_ACEOF
12175 /* end confdefs.h. */
12177 /* Override any GCC internal prototype to avoid an error.
12178 Use char because int might match the return type of a GCC
12179 builtin and then its argument prototype would still apply. */
12180 #ifdef __cplusplus
12181 extern "C"
12182 #endif
12183 char XmuConvertStandardSelection ();
12185 main ()
12187 return XmuConvertStandardSelection ();
12189 return 0;
12191 _ACEOF
12192 rm -f conftest.$ac_objext conftest$ac_exeext
12193 if { (ac_try="$ac_link"
12194 case "(($ac_try" in
12195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12196 *) ac_try_echo=$ac_try;;
12197 esac
12198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12199 (eval "$ac_link") 2>conftest.er1
12200 ac_status=$?
12201 grep -v '^ *+' conftest.er1 >conftest.err
12202 rm -f conftest.er1
12203 cat conftest.err >&5
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); } && {
12206 test -z "$ac_c_werror_flag" ||
12207 test ! -s conftest.err
12208 } && test -s conftest$ac_exeext &&
12209 $as_test_x conftest$ac_exeext; then
12210 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12211 else
12212 echo "$as_me: failed program was:" >&5
12213 sed 's/^/| /' conftest.$ac_ext >&5
12215 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12219 conftest$ac_exeext conftest.$ac_ext
12220 LIBS=$ac_check_lib_save_LIBS
12222 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12223 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12224 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12225 cat >>confdefs.h <<_ACEOF
12226 #define HAVE_LIBXMU 1
12227 _ACEOF
12229 LIBS="-lXmu $LIBS"
12233 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12236 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12237 if test "${HAVE_X11}" = "yes"; then
12238 if test "${USE_X_TOOLKIT}" != "none"; then
12240 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12241 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12242 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12243 echo $ECHO_N "(cached) $ECHO_C" >&6
12244 else
12245 ac_check_lib_save_LIBS=$LIBS
12246 LIBS="-lXext $LIBS"
12247 cat >conftest.$ac_ext <<_ACEOF
12248 /* confdefs.h. */
12249 _ACEOF
12250 cat confdefs.h >>conftest.$ac_ext
12251 cat >>conftest.$ac_ext <<_ACEOF
12252 /* end confdefs.h. */
12254 /* Override any GCC internal prototype to avoid an error.
12255 Use char because int might match the return type of a GCC
12256 builtin and then its argument prototype would still apply. */
12257 #ifdef __cplusplus
12258 extern "C"
12259 #endif
12260 char XShapeQueryExtension ();
12262 main ()
12264 return XShapeQueryExtension ();
12266 return 0;
12268 _ACEOF
12269 rm -f conftest.$ac_objext conftest$ac_exeext
12270 if { (ac_try="$ac_link"
12271 case "(($ac_try" in
12272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12273 *) ac_try_echo=$ac_try;;
12274 esac
12275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12276 (eval "$ac_link") 2>conftest.er1
12277 ac_status=$?
12278 grep -v '^ *+' conftest.er1 >conftest.err
12279 rm -f conftest.er1
12280 cat conftest.err >&5
12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 (exit $ac_status); } && {
12283 test -z "$ac_c_werror_flag" ||
12284 test ! -s conftest.err
12285 } && test -s conftest$ac_exeext &&
12286 $as_test_x conftest$ac_exeext; then
12287 ac_cv_lib_Xext_XShapeQueryExtension=yes
12288 else
12289 echo "$as_me: failed program was:" >&5
12290 sed 's/^/| /' conftest.$ac_ext >&5
12292 ac_cv_lib_Xext_XShapeQueryExtension=no
12295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12296 conftest$ac_exeext conftest.$ac_ext
12297 LIBS=$ac_check_lib_save_LIBS
12299 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12300 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12301 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12302 cat >>confdefs.h <<_ACEOF
12303 #define HAVE_LIBXEXT 1
12304 _ACEOF
12306 LIBS="-lXext $LIBS"
12313 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12314 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12315 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12316 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12317 echo $ECHO_N "(cached) $ECHO_C" >&6
12318 else
12319 cat >conftest.$ac_ext <<_ACEOF
12320 /* confdefs.h. */
12321 _ACEOF
12322 cat confdefs.h >>conftest.$ac_ext
12323 cat >>conftest.$ac_ext <<_ACEOF
12324 /* end confdefs.h. */
12325 #include <Xm/Xm.h>
12327 main ()
12329 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12330 int x = 5;
12331 #else
12332 Motif version prior to 2.1.
12333 #endif
12335 return 0;
12337 _ACEOF
12338 rm -f conftest.$ac_objext
12339 if { (ac_try="$ac_compile"
12340 case "(($ac_try" in
12341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12342 *) ac_try_echo=$ac_try;;
12343 esac
12344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12345 (eval "$ac_compile") 2>conftest.er1
12346 ac_status=$?
12347 grep -v '^ *+' conftest.er1 >conftest.err
12348 rm -f conftest.er1
12349 cat conftest.err >&5
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); } && {
12352 test -z "$ac_c_werror_flag" ||
12353 test ! -s conftest.err
12354 } && test -s conftest.$ac_objext; then
12355 emacs_cv_motif_version_2_1=yes
12356 else
12357 echo "$as_me: failed program was:" >&5
12358 sed 's/^/| /' conftest.$ac_ext >&5
12360 emacs_cv_motif_version_2_1=no
12363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12365 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12366 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12367 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12368 if test $emacs_cv_motif_version_2_1 = yes; then
12369 HAVE_LIBXP=no
12371 cat >>confdefs.h <<\_ACEOF
12372 #define HAVE_MOTIF_2_1 1
12373 _ACEOF
12375 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12376 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12377 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12378 echo $ECHO_N "(cached) $ECHO_C" >&6
12379 else
12380 ac_check_lib_save_LIBS=$LIBS
12381 LIBS="-lXp $LIBS"
12382 cat >conftest.$ac_ext <<_ACEOF
12383 /* confdefs.h. */
12384 _ACEOF
12385 cat confdefs.h >>conftest.$ac_ext
12386 cat >>conftest.$ac_ext <<_ACEOF
12387 /* end confdefs.h. */
12389 /* Override any GCC internal prototype to avoid an error.
12390 Use char because int might match the return type of a GCC
12391 builtin and then its argument prototype would still apply. */
12392 #ifdef __cplusplus
12393 extern "C"
12394 #endif
12395 char XpCreateContext ();
12397 main ()
12399 return XpCreateContext ();
12401 return 0;
12403 _ACEOF
12404 rm -f conftest.$ac_objext conftest$ac_exeext
12405 if { (ac_try="$ac_link"
12406 case "(($ac_try" in
12407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12408 *) ac_try_echo=$ac_try;;
12409 esac
12410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12411 (eval "$ac_link") 2>conftest.er1
12412 ac_status=$?
12413 grep -v '^ *+' conftest.er1 >conftest.err
12414 rm -f conftest.er1
12415 cat conftest.err >&5
12416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417 (exit $ac_status); } && {
12418 test -z "$ac_c_werror_flag" ||
12419 test ! -s conftest.err
12420 } && test -s conftest$ac_exeext &&
12421 $as_test_x conftest$ac_exeext; then
12422 ac_cv_lib_Xp_XpCreateContext=yes
12423 else
12424 echo "$as_me: failed program was:" >&5
12425 sed 's/^/| /' conftest.$ac_ext >&5
12427 ac_cv_lib_Xp_XpCreateContext=no
12430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12431 conftest$ac_exeext conftest.$ac_ext
12432 LIBS=$ac_check_lib_save_LIBS
12434 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12435 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12436 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12437 HAVE_LIBXP=yes
12440 if test ${HAVE_LIBXP} = yes; then
12442 cat >>confdefs.h <<\_ACEOF
12443 #define HAVE_LIBXP 1
12444 _ACEOF
12447 else
12448 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12449 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12450 if test "${emacs_cv_lesstif+set}" = set; then
12451 echo $ECHO_N "(cached) $ECHO_C" >&6
12452 else
12453 # We put this in CFLAGS temporarily to precede other -I options
12454 # that might be in CFLAGS temporarily.
12455 # We put this in CPPFLAGS where it precedes the other -I options.
12456 OLD_CPPFLAGS=$CPPFLAGS
12457 OLD_CFLAGS=$CFLAGS
12458 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12459 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12460 cat >conftest.$ac_ext <<_ACEOF
12461 /* confdefs.h. */
12462 _ACEOF
12463 cat confdefs.h >>conftest.$ac_ext
12464 cat >>conftest.$ac_ext <<_ACEOF
12465 /* end confdefs.h. */
12466 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12468 main ()
12470 int x = 5;
12472 return 0;
12474 _ACEOF
12475 rm -f conftest.$ac_objext
12476 if { (ac_try="$ac_compile"
12477 case "(($ac_try" in
12478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12479 *) ac_try_echo=$ac_try;;
12480 esac
12481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12482 (eval "$ac_compile") 2>conftest.er1
12483 ac_status=$?
12484 grep -v '^ *+' conftest.er1 >conftest.err
12485 rm -f conftest.er1
12486 cat conftest.err >&5
12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); } && {
12489 test -z "$ac_c_werror_flag" ||
12490 test ! -s conftest.err
12491 } && test -s conftest.$ac_objext; then
12492 emacs_cv_lesstif=yes
12493 else
12494 echo "$as_me: failed program was:" >&5
12495 sed 's/^/| /' conftest.$ac_ext >&5
12497 emacs_cv_lesstif=no
12500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12502 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12503 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12504 if test $emacs_cv_lesstif = yes; then
12505 # Make sure this -I option remains in CPPFLAGS after it is set
12506 # back to REAL_CPPFLAGS.
12507 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12508 # have those other -I options anyway. Ultimately, having this
12509 # directory ultimately in CPPFLAGS will be enough.
12510 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12511 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12512 else
12513 CFLAGS=$OLD_CFLAGS
12514 CPPFLAGS=$OLD_CPPFLAGS
12521 USE_TOOLKIT_SCROLL_BARS=no
12522 if test "${with_toolkit_scroll_bars}" != "no"; then
12523 if test "${USE_X_TOOLKIT}" != "none"; then
12524 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12525 cat >>confdefs.h <<\_ACEOF
12526 #define USE_TOOLKIT_SCROLL_BARS 1
12527 _ACEOF
12529 HAVE_XAW3D=no
12530 USE_TOOLKIT_SCROLL_BARS=yes
12531 elif test "${HAVE_XAW3D}" = "yes"; then
12532 cat >>confdefs.h <<\_ACEOF
12533 #define USE_TOOLKIT_SCROLL_BARS 1
12534 _ACEOF
12536 USE_TOOLKIT_SCROLL_BARS=yes
12538 elif test "${HAVE_GTK}" = "yes"; then
12539 cat >>confdefs.h <<\_ACEOF
12540 #define USE_TOOLKIT_SCROLL_BARS 1
12541 _ACEOF
12543 USE_TOOLKIT_SCROLL_BARS=yes
12544 elif test "${HAVE_NS}" = "yes"; then
12545 cat >>confdefs.h <<\_ACEOF
12546 #define USE_TOOLKIT_SCROLL_BARS 1
12547 _ACEOF
12549 USE_TOOLKIT_SCROLL_BARS=yes
12553 cat >conftest.$ac_ext <<_ACEOF
12554 /* confdefs.h. */
12555 _ACEOF
12556 cat confdefs.h >>conftest.$ac_ext
12557 cat >>conftest.$ac_ext <<_ACEOF
12558 /* end confdefs.h. */
12560 #include <X11/Xlib.h>
12561 #include <X11/Xresource.h>
12563 main ()
12565 XIMProc callback;
12567 return 0;
12569 _ACEOF
12570 rm -f conftest.$ac_objext
12571 if { (ac_try="$ac_compile"
12572 case "(($ac_try" in
12573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12574 *) ac_try_echo=$ac_try;;
12575 esac
12576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12577 (eval "$ac_compile") 2>conftest.er1
12578 ac_status=$?
12579 grep -v '^ *+' conftest.er1 >conftest.err
12580 rm -f conftest.er1
12581 cat conftest.err >&5
12582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583 (exit $ac_status); } && {
12584 test -z "$ac_c_werror_flag" ||
12585 test ! -s conftest.err
12586 } && test -s conftest.$ac_objext; then
12587 HAVE_XIM=yes
12589 cat >>confdefs.h <<\_ACEOF
12590 #define HAVE_XIM 1
12591 _ACEOF
12593 else
12594 echo "$as_me: failed program was:" >&5
12595 sed 's/^/| /' conftest.$ac_ext >&5
12597 HAVE_XIM=no
12600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12603 if test "${with_xim}" != "no"; then
12605 cat >>confdefs.h <<\_ACEOF
12606 #define USE_XIM 1
12607 _ACEOF
12612 if test "${HAVE_XIM}" != "no"; then
12613 late_CFLAGS=$CFLAGS
12614 if test "$GCC" = yes; then
12615 CFLAGS="$CFLAGS --pedantic-errors"
12617 cat >conftest.$ac_ext <<_ACEOF
12618 /* confdefs.h. */
12619 _ACEOF
12620 cat confdefs.h >>conftest.$ac_ext
12621 cat >>conftest.$ac_ext <<_ACEOF
12622 /* end confdefs.h. */
12624 #include <X11/Xlib.h>
12625 #include <X11/Xresource.h>
12627 main ()
12629 Display *display;
12630 XrmDatabase db;
12631 char *res_name;
12632 char *res_class;
12633 XIMProc callback;
12634 XPointer *client_data;
12635 #ifndef __GNUC__
12636 /* If we're not using GCC, it's probably not XFree86, and this is
12637 probably right, but we can't use something like --pedantic-errors. */
12638 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12639 char*, XIMProc, XPointer*);
12640 #endif
12641 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12642 client_data);
12644 return 0;
12646 _ACEOF
12647 rm -f conftest.$ac_objext
12648 if { (ac_try="$ac_compile"
12649 case "(($ac_try" in
12650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12651 *) ac_try_echo=$ac_try;;
12652 esac
12653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12654 (eval "$ac_compile") 2>conftest.er1
12655 ac_status=$?
12656 grep -v '^ *+' conftest.er1 >conftest.err
12657 rm -f conftest.er1
12658 cat conftest.err >&5
12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660 (exit $ac_status); } && {
12661 test -z "$ac_c_werror_flag" ||
12662 test ! -s conftest.err
12663 } && test -s conftest.$ac_objext; then
12664 emacs_cv_arg6_star=yes
12665 else
12666 echo "$as_me: failed program was:" >&5
12667 sed 's/^/| /' conftest.$ac_ext >&5
12672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12674 if test "$emacs_cv_arg6_star" = yes; then
12675 cat >>confdefs.h <<\_ACEOF
12676 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12677 _ACEOF
12679 else
12680 cat >>confdefs.h <<\_ACEOF
12681 #define XRegisterIMInstantiateCallback_arg6 XPointer
12682 _ACEOF
12685 CFLAGS=$late_CFLAGS
12688 ### Start of font-backend (under any platform) section.
12689 # (nothing here yet -- this is a placeholder)
12690 ### End of font-backend (under any platform) section.
12692 ### Start of font-backend (under X11) section.
12693 if test "${HAVE_X11}" = "yes"; then
12695 succeeded=no
12697 # Extract the first word of "pkg-config", so it can be a program name with args.
12698 set dummy pkg-config; ac_word=$2
12699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12701 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12702 echo $ECHO_N "(cached) $ECHO_C" >&6
12703 else
12704 case $PKG_CONFIG in
12705 [\\/]* | ?:[\\/]*)
12706 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12710 for as_dir in $PATH
12712 IFS=$as_save_IFS
12713 test -z "$as_dir" && as_dir=.
12714 for ac_exec_ext in '' $ac_executable_extensions; do
12715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12716 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12718 break 2
12720 done
12721 done
12722 IFS=$as_save_IFS
12724 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12726 esac
12728 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12729 if test -n "$PKG_CONFIG"; then
12730 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12731 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12732 else
12733 { echo "$as_me:$LINENO: result: no" >&5
12734 echo "${ECHO_T}no" >&6; }
12739 if test "$PKG_CONFIG" = "no" ; then
12740 HAVE_FC=no
12741 else
12742 PKG_CONFIG_MIN_VERSION=0.9.0
12743 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12744 { echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
12745 echo $ECHO_N "checking for fontconfig >= 2.2.0... $ECHO_C" >&6; }
12747 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
12748 { echo "$as_me:$LINENO: result: yes" >&5
12749 echo "${ECHO_T}yes" >&6; }
12750 succeeded=yes
12752 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
12753 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
12754 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
12755 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
12756 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
12758 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
12759 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
12760 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
12761 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
12762 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
12763 else
12764 { echo "$as_me:$LINENO: result: no" >&5
12765 echo "${ECHO_T}no" >&6; }
12766 FONTCONFIG_CFLAGS=""
12767 FONTCONFIG_LIBS=""
12768 ## If we have a custom action on failure, don't print errors, but
12769 ## do set a variable so people can do so.
12770 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
12776 else
12777 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12778 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12782 if test $succeeded = yes; then
12783 HAVE_FC=yes
12784 else
12785 HAVE_FC=no
12789 ## Use -lXft if available, unless `--with-xft=no'.
12790 HAVE_XFT=maybe
12791 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
12792 with_xft="no";
12794 if test "x${with_xft}" != "xno"; then
12797 succeeded=no
12799 # Extract the first word of "pkg-config", so it can be a program name with args.
12800 set dummy pkg-config; ac_word=$2
12801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12803 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12804 echo $ECHO_N "(cached) $ECHO_C" >&6
12805 else
12806 case $PKG_CONFIG in
12807 [\\/]* | ?:[\\/]*)
12808 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12812 for as_dir in $PATH
12814 IFS=$as_save_IFS
12815 test -z "$as_dir" && as_dir=.
12816 for ac_exec_ext in '' $ac_executable_extensions; do
12817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12818 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12820 break 2
12822 done
12823 done
12824 IFS=$as_save_IFS
12826 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12828 esac
12830 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12831 if test -n "$PKG_CONFIG"; then
12832 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12833 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12834 else
12835 { echo "$as_me:$LINENO: result: no" >&5
12836 echo "${ECHO_T}no" >&6; }
12841 if test "$PKG_CONFIG" = "no" ; then
12842 HAVE_XFT=no
12843 else
12844 PKG_CONFIG_MIN_VERSION=0.9.0
12845 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12846 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12847 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12849 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12850 { echo "$as_me:$LINENO: result: yes" >&5
12851 echo "${ECHO_T}yes" >&6; }
12852 succeeded=yes
12854 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12855 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12856 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12857 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12858 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12860 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12861 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12862 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12863 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12864 echo "${ECHO_T}$XFT_LIBS" >&6; }
12865 else
12866 { echo "$as_me:$LINENO: result: no" >&5
12867 echo "${ECHO_T}no" >&6; }
12868 XFT_CFLAGS=""
12869 XFT_LIBS=""
12870 ## If we have a custom action on failure, don't print errors, but
12871 ## do set a variable so people can do so.
12872 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12878 else
12879 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12880 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12884 if test $succeeded = yes; then
12886 else
12887 HAVE_XFT=no
12890 if test "$HAVE_XFT" != no; then
12891 OLD_CPPFLAGS="$CPPFLAGS"
12892 OLD_CFLAGS="$CFLAGS"
12893 OLD_LIBS="$LIBS"
12894 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12895 CFLAGS="$CFLAGS $XFT_CFLAGS"
12896 LIBS="$XFT_LIBS $LIBS"
12897 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12898 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12899 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12900 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12901 echo $ECHO_N "(cached) $ECHO_C" >&6
12903 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12904 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12905 else
12906 # Is the header compilable?
12907 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12908 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12909 cat >conftest.$ac_ext <<_ACEOF
12910 /* confdefs.h. */
12911 _ACEOF
12912 cat confdefs.h >>conftest.$ac_ext
12913 cat >>conftest.$ac_ext <<_ACEOF
12914 /* end confdefs.h. */
12915 $ac_includes_default
12916 #include <X11/Xft/Xft.h>
12917 _ACEOF
12918 rm -f conftest.$ac_objext
12919 if { (ac_try="$ac_compile"
12920 case "(($ac_try" in
12921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12922 *) ac_try_echo=$ac_try;;
12923 esac
12924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12925 (eval "$ac_compile") 2>conftest.er1
12926 ac_status=$?
12927 grep -v '^ *+' conftest.er1 >conftest.err
12928 rm -f conftest.er1
12929 cat conftest.err >&5
12930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931 (exit $ac_status); } && {
12932 test -z "$ac_c_werror_flag" ||
12933 test ! -s conftest.err
12934 } && test -s conftest.$ac_objext; then
12935 ac_header_compiler=yes
12936 else
12937 echo "$as_me: failed program was:" >&5
12938 sed 's/^/| /' conftest.$ac_ext >&5
12940 ac_header_compiler=no
12943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12944 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12945 echo "${ECHO_T}$ac_header_compiler" >&6; }
12947 # Is the header present?
12948 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12949 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12950 cat >conftest.$ac_ext <<_ACEOF
12951 /* confdefs.h. */
12952 _ACEOF
12953 cat confdefs.h >>conftest.$ac_ext
12954 cat >>conftest.$ac_ext <<_ACEOF
12955 /* end confdefs.h. */
12956 #include <X11/Xft/Xft.h>
12957 _ACEOF
12958 if { (ac_try="$ac_cpp conftest.$ac_ext"
12959 case "(($ac_try" in
12960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12961 *) ac_try_echo=$ac_try;;
12962 esac
12963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12964 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12965 ac_status=$?
12966 grep -v '^ *+' conftest.er1 >conftest.err
12967 rm -f conftest.er1
12968 cat conftest.err >&5
12969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970 (exit $ac_status); } >/dev/null && {
12971 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12972 test ! -s conftest.err
12973 }; then
12974 ac_header_preproc=yes
12975 else
12976 echo "$as_me: failed program was:" >&5
12977 sed 's/^/| /' conftest.$ac_ext >&5
12979 ac_header_preproc=no
12982 rm -f conftest.err conftest.$ac_ext
12983 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12984 echo "${ECHO_T}$ac_header_preproc" >&6; }
12986 # So? What about this header?
12987 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12988 yes:no: )
12989 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12990 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12991 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12992 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12993 ac_header_preproc=yes
12995 no:yes:* )
12996 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12997 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12998 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12999 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
13000 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
13001 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
13002 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
13003 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
13004 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
13005 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
13006 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
13007 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
13010 esac
13011 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13012 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
13013 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13014 echo $ECHO_N "(cached) $ECHO_C" >&6
13015 else
13016 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
13018 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13019 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
13022 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
13023 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
13024 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
13025 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
13026 echo $ECHO_N "(cached) $ECHO_C" >&6
13027 else
13028 ac_check_lib_save_LIBS=$LIBS
13029 LIBS="-lXft $XFT_LIBS $LIBS"
13030 cat >conftest.$ac_ext <<_ACEOF
13031 /* confdefs.h. */
13032 _ACEOF
13033 cat confdefs.h >>conftest.$ac_ext
13034 cat >>conftest.$ac_ext <<_ACEOF
13035 /* end confdefs.h. */
13037 /* Override any GCC internal prototype to avoid an error.
13038 Use char because int might match the return type of a GCC
13039 builtin and then its argument prototype would still apply. */
13040 #ifdef __cplusplus
13041 extern "C"
13042 #endif
13043 char XftFontOpen ();
13045 main ()
13047 return XftFontOpen ();
13049 return 0;
13051 _ACEOF
13052 rm -f conftest.$ac_objext conftest$ac_exeext
13053 if { (ac_try="$ac_link"
13054 case "(($ac_try" in
13055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13056 *) ac_try_echo=$ac_try;;
13057 esac
13058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13059 (eval "$ac_link") 2>conftest.er1
13060 ac_status=$?
13061 grep -v '^ *+' conftest.er1 >conftest.err
13062 rm -f conftest.er1
13063 cat conftest.err >&5
13064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); } && {
13066 test -z "$ac_c_werror_flag" ||
13067 test ! -s conftest.err
13068 } && test -s conftest$ac_exeext &&
13069 $as_test_x conftest$ac_exeext; then
13070 ac_cv_lib_Xft_XftFontOpen=yes
13071 else
13072 echo "$as_me: failed program was:" >&5
13073 sed 's/^/| /' conftest.$ac_ext >&5
13075 ac_cv_lib_Xft_XftFontOpen=no
13078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13079 conftest$ac_exeext conftest.$ac_ext
13080 LIBS=$ac_check_lib_save_LIBS
13082 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
13083 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
13084 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
13085 HAVE_XFT=yes
13092 if test "${HAVE_XFT}" = "yes"; then
13094 cat >>confdefs.h <<\_ACEOF
13095 #define HAVE_XFT 1
13096 _ACEOF
13099 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
13100 else
13101 CPPFLAGS="$OLD_CPPFLAGS"
13102 CFLAGS="$OLD_CFLAGS"
13103 LIBS="$OLD_LIBS"
13104 fi # "${HAVE_XFT}" = "yes"
13105 fi # "$HAVE_XFT" != no
13106 fi # "x${with_xft}" != "xno"
13108 if test "$HAVE_XFT" != "yes"; then
13109 HAVE_XFT=no
13113 HAVE_FREETYPE=no
13114 ## We used to allow building with FreeType and without Xft.
13115 ## However, the ftx font backend driver is not in good shape.
13116 if test "${HAVE_XFT}" = "yes"; then
13117 HAVE_FREETYPE=yes
13118 FONTCONFIG_CFLAGS=
13119 FONTCONFIG_LIBS=
13122 HAVE_LIBOTF=no
13123 if test "${HAVE_FREETYPE}" = "yes"; then
13125 cat >>confdefs.h <<\_ACEOF
13126 #define HAVE_FREETYPE 1
13127 _ACEOF
13129 if test "${with_libotf}" != "no"; then
13131 succeeded=no
13133 # Extract the first word of "pkg-config", so it can be a program name with args.
13134 set dummy pkg-config; ac_word=$2
13135 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13137 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13138 echo $ECHO_N "(cached) $ECHO_C" >&6
13139 else
13140 case $PKG_CONFIG in
13141 [\\/]* | ?:[\\/]*)
13142 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13146 for as_dir in $PATH
13148 IFS=$as_save_IFS
13149 test -z "$as_dir" && as_dir=.
13150 for ac_exec_ext in '' $ac_executable_extensions; do
13151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13152 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13154 break 2
13156 done
13157 done
13158 IFS=$as_save_IFS
13160 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13162 esac
13164 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13165 if test -n "$PKG_CONFIG"; then
13166 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13167 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13168 else
13169 { echo "$as_me:$LINENO: result: no" >&5
13170 echo "${ECHO_T}no" >&6; }
13175 if test "$PKG_CONFIG" = "no" ; then
13176 HAVE_LIBOTF=no
13177 else
13178 PKG_CONFIG_MIN_VERSION=0.9.0
13179 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13180 { echo "$as_me:$LINENO: checking for libotf" >&5
13181 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
13183 if $PKG_CONFIG --exists "libotf" 2>&5; then
13184 { echo "$as_me:$LINENO: result: yes" >&5
13185 echo "${ECHO_T}yes" >&6; }
13186 succeeded=yes
13188 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13189 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
13190 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13191 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13192 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13194 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13195 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
13196 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13197 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13198 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13199 else
13200 { echo "$as_me:$LINENO: result: no" >&5
13201 echo "${ECHO_T}no" >&6; }
13202 LIBOTF_CFLAGS=""
13203 LIBOTF_LIBS=""
13204 ## If we have a custom action on failure, don't print errors, but
13205 ## do set a variable so people can do so.
13206 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13212 else
13213 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13214 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13218 if test $succeeded = yes; then
13219 HAVE_LIBOTF=yes
13220 else
13221 HAVE_LIBOTF=no
13224 if test "$HAVE_LIBOTF" = "yes"; then
13226 cat >>confdefs.h <<\_ACEOF
13227 #define HAVE_LIBOTF 1
13228 _ACEOF
13230 { echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
13231 echo $ECHO_N "checking for OTF_get_variation_glyphs in -lotf... $ECHO_C" >&6; }
13232 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
13233 echo $ECHO_N "(cached) $ECHO_C" >&6
13234 else
13235 ac_check_lib_save_LIBS=$LIBS
13236 LIBS="-lotf $LIBS"
13237 cat >conftest.$ac_ext <<_ACEOF
13238 /* confdefs.h. */
13239 _ACEOF
13240 cat confdefs.h >>conftest.$ac_ext
13241 cat >>conftest.$ac_ext <<_ACEOF
13242 /* end confdefs.h. */
13244 /* Override any GCC internal prototype to avoid an error.
13245 Use char because int might match the return type of a GCC
13246 builtin and then its argument prototype would still apply. */
13247 #ifdef __cplusplus
13248 extern "C"
13249 #endif
13250 char OTF_get_variation_glyphs ();
13252 main ()
13254 return OTF_get_variation_glyphs ();
13256 return 0;
13258 _ACEOF
13259 rm -f conftest.$ac_objext conftest$ac_exeext
13260 if { (ac_try="$ac_link"
13261 case "(($ac_try" in
13262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13263 *) ac_try_echo=$ac_try;;
13264 esac
13265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13266 (eval "$ac_link") 2>conftest.er1
13267 ac_status=$?
13268 grep -v '^ *+' conftest.er1 >conftest.err
13269 rm -f conftest.er1
13270 cat conftest.err >&5
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); } && {
13273 test -z "$ac_c_werror_flag" ||
13274 test ! -s conftest.err
13275 } && test -s conftest$ac_exeext &&
13276 $as_test_x conftest$ac_exeext; then
13277 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
13278 else
13279 echo "$as_me: failed program was:" >&5
13280 sed 's/^/| /' conftest.$ac_ext >&5
13282 ac_cv_lib_otf_OTF_get_variation_glyphs=no
13285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13286 conftest$ac_exeext conftest.$ac_ext
13287 LIBS=$ac_check_lib_save_LIBS
13289 { echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
13290 echo "${ECHO_T}$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
13291 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
13292 HAVE_OTF_GET_VARIATION_GLYPHS=yes
13293 else
13294 HAVE_OTF_GET_VARIATION_GLYPHS=no
13297 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
13299 cat >>confdefs.h <<\_ACEOF
13300 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
13301 _ACEOF
13308 HAVE_M17N_FLT=no
13309 if test "${HAVE_LIBOTF}" = yes; then
13310 if test "${with_m17n_flt}" != "no"; then
13312 succeeded=no
13314 # Extract the first word of "pkg-config", so it can be a program name with args.
13315 set dummy pkg-config; ac_word=$2
13316 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13318 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13319 echo $ECHO_N "(cached) $ECHO_C" >&6
13320 else
13321 case $PKG_CONFIG in
13322 [\\/]* | ?:[\\/]*)
13323 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13327 for as_dir in $PATH
13329 IFS=$as_save_IFS
13330 test -z "$as_dir" && as_dir=.
13331 for ac_exec_ext in '' $ac_executable_extensions; do
13332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13333 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13335 break 2
13337 done
13338 done
13339 IFS=$as_save_IFS
13341 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13343 esac
13345 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13346 if test -n "$PKG_CONFIG"; then
13347 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13348 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13349 else
13350 { echo "$as_me:$LINENO: result: no" >&5
13351 echo "${ECHO_T}no" >&6; }
13356 if test "$PKG_CONFIG" = "no" ; then
13357 HAVE_M17N_FLT=no
13358 else
13359 PKG_CONFIG_MIN_VERSION=0.9.0
13360 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13361 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13362 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13364 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13365 { echo "$as_me:$LINENO: result: yes" >&5
13366 echo "${ECHO_T}yes" >&6; }
13367 succeeded=yes
13369 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13370 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13371 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13372 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13373 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13375 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13376 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13377 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13378 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13379 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13380 else
13381 { echo "$as_me:$LINENO: result: no" >&5
13382 echo "${ECHO_T}no" >&6; }
13383 M17N_FLT_CFLAGS=""
13384 M17N_FLT_LIBS=""
13385 ## If we have a custom action on failure, don't print errors, but
13386 ## do set a variable so people can do so.
13387 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13393 else
13394 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13395 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13399 if test $succeeded = yes; then
13400 HAVE_M17N_FLT=yes
13401 else
13402 HAVE_M17N_FLT=no
13405 if test "$HAVE_M17N_FLT" = "yes"; then
13407 cat >>confdefs.h <<\_ACEOF
13408 #define HAVE_M17N_FLT 1
13409 _ACEOF
13414 else
13415 HAVE_XFT=no
13416 HAVE_FREETYPE=no
13417 HAVE_LIBOTF=no
13418 HAVE_M17N_FLT=no
13420 ### End of font-backend (under X11) section.
13431 ### Use -lXpm if available, unless `--with-xpm=no'.
13432 HAVE_XPM=no
13433 if test "${HAVE_X11}" = "yes"; then
13434 if test "${with_xpm}" != "no"; then
13435 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13436 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13437 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13438 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13439 echo $ECHO_N "(cached) $ECHO_C" >&6
13441 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13442 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13443 else
13444 # Is the header compilable?
13445 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13446 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13447 cat >conftest.$ac_ext <<_ACEOF
13448 /* confdefs.h. */
13449 _ACEOF
13450 cat confdefs.h >>conftest.$ac_ext
13451 cat >>conftest.$ac_ext <<_ACEOF
13452 /* end confdefs.h. */
13453 $ac_includes_default
13454 #include <X11/xpm.h>
13455 _ACEOF
13456 rm -f conftest.$ac_objext
13457 if { (ac_try="$ac_compile"
13458 case "(($ac_try" in
13459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13460 *) ac_try_echo=$ac_try;;
13461 esac
13462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13463 (eval "$ac_compile") 2>conftest.er1
13464 ac_status=$?
13465 grep -v '^ *+' conftest.er1 >conftest.err
13466 rm -f conftest.er1
13467 cat conftest.err >&5
13468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469 (exit $ac_status); } && {
13470 test -z "$ac_c_werror_flag" ||
13471 test ! -s conftest.err
13472 } && test -s conftest.$ac_objext; then
13473 ac_header_compiler=yes
13474 else
13475 echo "$as_me: failed program was:" >&5
13476 sed 's/^/| /' conftest.$ac_ext >&5
13478 ac_header_compiler=no
13481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13482 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13483 echo "${ECHO_T}$ac_header_compiler" >&6; }
13485 # Is the header present?
13486 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13487 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13488 cat >conftest.$ac_ext <<_ACEOF
13489 /* confdefs.h. */
13490 _ACEOF
13491 cat confdefs.h >>conftest.$ac_ext
13492 cat >>conftest.$ac_ext <<_ACEOF
13493 /* end confdefs.h. */
13494 #include <X11/xpm.h>
13495 _ACEOF
13496 if { (ac_try="$ac_cpp conftest.$ac_ext"
13497 case "(($ac_try" in
13498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13499 *) ac_try_echo=$ac_try;;
13500 esac
13501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13502 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13503 ac_status=$?
13504 grep -v '^ *+' conftest.er1 >conftest.err
13505 rm -f conftest.er1
13506 cat conftest.err >&5
13507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508 (exit $ac_status); } >/dev/null && {
13509 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13510 test ! -s conftest.err
13511 }; then
13512 ac_header_preproc=yes
13513 else
13514 echo "$as_me: failed program was:" >&5
13515 sed 's/^/| /' conftest.$ac_ext >&5
13517 ac_header_preproc=no
13520 rm -f conftest.err conftest.$ac_ext
13521 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13522 echo "${ECHO_T}$ac_header_preproc" >&6; }
13524 # So? What about this header?
13525 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13526 yes:no: )
13527 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13528 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13529 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13530 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13531 ac_header_preproc=yes
13533 no:yes:* )
13534 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13535 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13536 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13537 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13538 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13539 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13540 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13541 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13542 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13543 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13544 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13545 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13548 esac
13549 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13550 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13551 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13552 echo $ECHO_N "(cached) $ECHO_C" >&6
13553 else
13554 ac_cv_header_X11_xpm_h=$ac_header_preproc
13556 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13557 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13560 if test $ac_cv_header_X11_xpm_h = yes; then
13561 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13562 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13563 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13564 echo $ECHO_N "(cached) $ECHO_C" >&6
13565 else
13566 ac_check_lib_save_LIBS=$LIBS
13567 LIBS="-lXpm -lX11 $LIBS"
13568 cat >conftest.$ac_ext <<_ACEOF
13569 /* confdefs.h. */
13570 _ACEOF
13571 cat confdefs.h >>conftest.$ac_ext
13572 cat >>conftest.$ac_ext <<_ACEOF
13573 /* end confdefs.h. */
13575 /* Override any GCC internal prototype to avoid an error.
13576 Use char because int might match the return type of a GCC
13577 builtin and then its argument prototype would still apply. */
13578 #ifdef __cplusplus
13579 extern "C"
13580 #endif
13581 char XpmReadFileToPixmap ();
13583 main ()
13585 return XpmReadFileToPixmap ();
13587 return 0;
13589 _ACEOF
13590 rm -f conftest.$ac_objext conftest$ac_exeext
13591 if { (ac_try="$ac_link"
13592 case "(($ac_try" in
13593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13594 *) ac_try_echo=$ac_try;;
13595 esac
13596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13597 (eval "$ac_link") 2>conftest.er1
13598 ac_status=$?
13599 grep -v '^ *+' conftest.er1 >conftest.err
13600 rm -f conftest.er1
13601 cat conftest.err >&5
13602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13603 (exit $ac_status); } && {
13604 test -z "$ac_c_werror_flag" ||
13605 test ! -s conftest.err
13606 } && test -s conftest$ac_exeext &&
13607 $as_test_x conftest$ac_exeext; then
13608 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13609 else
13610 echo "$as_me: failed program was:" >&5
13611 sed 's/^/| /' conftest.$ac_ext >&5
13613 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13617 conftest$ac_exeext conftest.$ac_ext
13618 LIBS=$ac_check_lib_save_LIBS
13620 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13621 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13622 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13623 HAVE_XPM=yes
13629 if test "${HAVE_XPM}" = "yes"; then
13630 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13631 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13632 cat >conftest.$ac_ext <<_ACEOF
13633 /* confdefs.h. */
13634 _ACEOF
13635 cat confdefs.h >>conftest.$ac_ext
13636 cat >>conftest.$ac_ext <<_ACEOF
13637 /* end confdefs.h. */
13638 #include "X11/xpm.h"
13639 #ifndef XpmReturnAllocPixels
13640 no_return_alloc_pixels
13641 #endif
13643 _ACEOF
13644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13645 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13646 HAVE_XPM=no
13647 else
13648 HAVE_XPM=yes
13650 rm -f conftest*
13653 if test "${HAVE_XPM}" = "yes"; then
13654 { echo "$as_me:$LINENO: result: yes" >&5
13655 echo "${ECHO_T}yes" >&6; }
13656 else
13657 { echo "$as_me:$LINENO: result: no" >&5
13658 echo "${ECHO_T}no" >&6; }
13663 if test "${HAVE_XPM}" = "yes"; then
13665 cat >>confdefs.h <<\_ACEOF
13666 #define HAVE_XPM 1
13667 _ACEOF
13672 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13673 HAVE_JPEG=no
13674 if test "${HAVE_X11}" = "yes"; then
13675 if test "${with_jpeg}" != "no"; then
13676 if test "${ac_cv_header_jerror_h+set}" = set; then
13677 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13678 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13679 if test "${ac_cv_header_jerror_h+set}" = set; then
13680 echo $ECHO_N "(cached) $ECHO_C" >&6
13682 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13683 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13684 else
13685 # Is the header compilable?
13686 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13687 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13688 cat >conftest.$ac_ext <<_ACEOF
13689 /* confdefs.h. */
13690 _ACEOF
13691 cat confdefs.h >>conftest.$ac_ext
13692 cat >>conftest.$ac_ext <<_ACEOF
13693 /* end confdefs.h. */
13694 $ac_includes_default
13695 #include <jerror.h>
13696 _ACEOF
13697 rm -f conftest.$ac_objext
13698 if { (ac_try="$ac_compile"
13699 case "(($ac_try" in
13700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13701 *) ac_try_echo=$ac_try;;
13702 esac
13703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13704 (eval "$ac_compile") 2>conftest.er1
13705 ac_status=$?
13706 grep -v '^ *+' conftest.er1 >conftest.err
13707 rm -f conftest.er1
13708 cat conftest.err >&5
13709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710 (exit $ac_status); } && {
13711 test -z "$ac_c_werror_flag" ||
13712 test ! -s conftest.err
13713 } && test -s conftest.$ac_objext; then
13714 ac_header_compiler=yes
13715 else
13716 echo "$as_me: failed program was:" >&5
13717 sed 's/^/| /' conftest.$ac_ext >&5
13719 ac_header_compiler=no
13722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13723 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13724 echo "${ECHO_T}$ac_header_compiler" >&6; }
13726 # Is the header present?
13727 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13728 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13729 cat >conftest.$ac_ext <<_ACEOF
13730 /* confdefs.h. */
13731 _ACEOF
13732 cat confdefs.h >>conftest.$ac_ext
13733 cat >>conftest.$ac_ext <<_ACEOF
13734 /* end confdefs.h. */
13735 #include <jerror.h>
13736 _ACEOF
13737 if { (ac_try="$ac_cpp conftest.$ac_ext"
13738 case "(($ac_try" in
13739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13740 *) ac_try_echo=$ac_try;;
13741 esac
13742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13743 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13744 ac_status=$?
13745 grep -v '^ *+' conftest.er1 >conftest.err
13746 rm -f conftest.er1
13747 cat conftest.err >&5
13748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749 (exit $ac_status); } >/dev/null && {
13750 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13751 test ! -s conftest.err
13752 }; then
13753 ac_header_preproc=yes
13754 else
13755 echo "$as_me: failed program was:" >&5
13756 sed 's/^/| /' conftest.$ac_ext >&5
13758 ac_header_preproc=no
13761 rm -f conftest.err conftest.$ac_ext
13762 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13763 echo "${ECHO_T}$ac_header_preproc" >&6; }
13765 # So? What about this header?
13766 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13767 yes:no: )
13768 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13769 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13770 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13771 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13772 ac_header_preproc=yes
13774 no:yes:* )
13775 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13776 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13777 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13778 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13779 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13780 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13781 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13782 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13783 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13784 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13785 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13786 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13789 esac
13790 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13791 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13792 if test "${ac_cv_header_jerror_h+set}" = set; then
13793 echo $ECHO_N "(cached) $ECHO_C" >&6
13794 else
13795 ac_cv_header_jerror_h=$ac_header_preproc
13797 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13798 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13801 if test $ac_cv_header_jerror_h = yes; then
13802 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13803 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13804 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13805 echo $ECHO_N "(cached) $ECHO_C" >&6
13806 else
13807 ac_check_lib_save_LIBS=$LIBS
13808 LIBS="-ljpeg $LIBS"
13809 cat >conftest.$ac_ext <<_ACEOF
13810 /* confdefs.h. */
13811 _ACEOF
13812 cat confdefs.h >>conftest.$ac_ext
13813 cat >>conftest.$ac_ext <<_ACEOF
13814 /* end confdefs.h. */
13816 /* Override any GCC internal prototype to avoid an error.
13817 Use char because int might match the return type of a GCC
13818 builtin and then its argument prototype would still apply. */
13819 #ifdef __cplusplus
13820 extern "C"
13821 #endif
13822 char jpeg_destroy_compress ();
13824 main ()
13826 return jpeg_destroy_compress ();
13828 return 0;
13830 _ACEOF
13831 rm -f conftest.$ac_objext conftest$ac_exeext
13832 if { (ac_try="$ac_link"
13833 case "(($ac_try" in
13834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13835 *) ac_try_echo=$ac_try;;
13836 esac
13837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13838 (eval "$ac_link") 2>conftest.er1
13839 ac_status=$?
13840 grep -v '^ *+' conftest.er1 >conftest.err
13841 rm -f conftest.er1
13842 cat conftest.err >&5
13843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844 (exit $ac_status); } && {
13845 test -z "$ac_c_werror_flag" ||
13846 test ! -s conftest.err
13847 } && test -s conftest$ac_exeext &&
13848 $as_test_x conftest$ac_exeext; then
13849 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13850 else
13851 echo "$as_me: failed program was:" >&5
13852 sed 's/^/| /' conftest.$ac_ext >&5
13854 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13858 conftest$ac_exeext conftest.$ac_ext
13859 LIBS=$ac_check_lib_save_LIBS
13861 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13862 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13863 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13864 HAVE_JPEG=yes
13873 if test "${HAVE_JPEG}" = "yes"; then
13874 cat >>confdefs.h <<\_ACEOF
13875 #define HAVE_JPEG 1
13876 _ACEOF
13878 cat >conftest.$ac_ext <<_ACEOF
13879 /* confdefs.h. */
13880 _ACEOF
13881 cat confdefs.h >>conftest.$ac_ext
13882 cat >>conftest.$ac_ext <<_ACEOF
13883 /* end confdefs.h. */
13884 #include <jpeglib.h>
13885 version=JPEG_LIB_VERSION
13887 _ACEOF
13888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13889 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13890 cat >>confdefs.h <<\_ACEOF
13891 #define HAVE_JPEG 1
13892 _ACEOF
13894 else
13895 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13896 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13897 HAVE_JPEG=no
13899 rm -f conftest*
13904 ### Use -lpng if available, unless `--with-png=no'.
13905 HAVE_PNG=no
13906 if test "${HAVE_X11}" = "yes"; then
13907 if test "${with_png}" != "no"; then
13908 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13909 # in /usr/include/libpng.
13912 for ac_header in png.h libpng/png.h
13914 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13915 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13916 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13919 echo $ECHO_N "(cached) $ECHO_C" >&6
13921 ac_res=`eval echo '${'$as_ac_Header'}'`
13922 { echo "$as_me:$LINENO: result: $ac_res" >&5
13923 echo "${ECHO_T}$ac_res" >&6; }
13924 else
13925 # Is the header compilable?
13926 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13927 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13928 cat >conftest.$ac_ext <<_ACEOF
13929 /* confdefs.h. */
13930 _ACEOF
13931 cat confdefs.h >>conftest.$ac_ext
13932 cat >>conftest.$ac_ext <<_ACEOF
13933 /* end confdefs.h. */
13934 $ac_includes_default
13935 #include <$ac_header>
13936 _ACEOF
13937 rm -f conftest.$ac_objext
13938 if { (ac_try="$ac_compile"
13939 case "(($ac_try" in
13940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13941 *) ac_try_echo=$ac_try;;
13942 esac
13943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13944 (eval "$ac_compile") 2>conftest.er1
13945 ac_status=$?
13946 grep -v '^ *+' conftest.er1 >conftest.err
13947 rm -f conftest.er1
13948 cat conftest.err >&5
13949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950 (exit $ac_status); } && {
13951 test -z "$ac_c_werror_flag" ||
13952 test ! -s conftest.err
13953 } && test -s conftest.$ac_objext; then
13954 ac_header_compiler=yes
13955 else
13956 echo "$as_me: failed program was:" >&5
13957 sed 's/^/| /' conftest.$ac_ext >&5
13959 ac_header_compiler=no
13962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13963 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13964 echo "${ECHO_T}$ac_header_compiler" >&6; }
13966 # Is the header present?
13967 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13968 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13969 cat >conftest.$ac_ext <<_ACEOF
13970 /* confdefs.h. */
13971 _ACEOF
13972 cat confdefs.h >>conftest.$ac_ext
13973 cat >>conftest.$ac_ext <<_ACEOF
13974 /* end confdefs.h. */
13975 #include <$ac_header>
13976 _ACEOF
13977 if { (ac_try="$ac_cpp conftest.$ac_ext"
13978 case "(($ac_try" in
13979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13980 *) ac_try_echo=$ac_try;;
13981 esac
13982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13983 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13984 ac_status=$?
13985 grep -v '^ *+' conftest.er1 >conftest.err
13986 rm -f conftest.er1
13987 cat conftest.err >&5
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); } >/dev/null && {
13990 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13991 test ! -s conftest.err
13992 }; then
13993 ac_header_preproc=yes
13994 else
13995 echo "$as_me: failed program was:" >&5
13996 sed 's/^/| /' conftest.$ac_ext >&5
13998 ac_header_preproc=no
14001 rm -f conftest.err conftest.$ac_ext
14002 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14003 echo "${ECHO_T}$ac_header_preproc" >&6; }
14005 # So? What about this header?
14006 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14007 yes:no: )
14008 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14009 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14010 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14011 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14012 ac_header_preproc=yes
14014 no:yes:* )
14015 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14016 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14017 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14018 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14019 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14020 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14021 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14022 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14023 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14024 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14025 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14026 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14029 esac
14030 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14033 echo $ECHO_N "(cached) $ECHO_C" >&6
14034 else
14035 eval "$as_ac_Header=\$ac_header_preproc"
14037 ac_res=`eval echo '${'$as_ac_Header'}'`
14038 { echo "$as_me:$LINENO: result: $ac_res" >&5
14039 echo "${ECHO_T}$ac_res" >&6; }
14042 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14043 cat >>confdefs.h <<_ACEOF
14044 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14045 _ACEOF
14049 done
14051 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
14052 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
14053 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
14054 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
14055 echo $ECHO_N "(cached) $ECHO_C" >&6
14056 else
14057 ac_check_lib_save_LIBS=$LIBS
14058 LIBS="-lpng -lz -lm $LIBS"
14059 cat >conftest.$ac_ext <<_ACEOF
14060 /* confdefs.h. */
14061 _ACEOF
14062 cat confdefs.h >>conftest.$ac_ext
14063 cat >>conftest.$ac_ext <<_ACEOF
14064 /* end confdefs.h. */
14066 /* Override any GCC internal prototype to avoid an error.
14067 Use char because int might match the return type of a GCC
14068 builtin and then its argument prototype would still apply. */
14069 #ifdef __cplusplus
14070 extern "C"
14071 #endif
14072 char png_get_channels ();
14074 main ()
14076 return png_get_channels ();
14078 return 0;
14080 _ACEOF
14081 rm -f conftest.$ac_objext conftest$ac_exeext
14082 if { (ac_try="$ac_link"
14083 case "(($ac_try" in
14084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14085 *) ac_try_echo=$ac_try;;
14086 esac
14087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14088 (eval "$ac_link") 2>conftest.er1
14089 ac_status=$?
14090 grep -v '^ *+' conftest.er1 >conftest.err
14091 rm -f conftest.er1
14092 cat conftest.err >&5
14093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094 (exit $ac_status); } && {
14095 test -z "$ac_c_werror_flag" ||
14096 test ! -s conftest.err
14097 } && test -s conftest$ac_exeext &&
14098 $as_test_x conftest$ac_exeext; then
14099 ac_cv_lib_png_png_get_channels=yes
14100 else
14101 echo "$as_me: failed program was:" >&5
14102 sed 's/^/| /' conftest.$ac_ext >&5
14104 ac_cv_lib_png_png_get_channels=no
14107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14108 conftest$ac_exeext conftest.$ac_ext
14109 LIBS=$ac_check_lib_save_LIBS
14111 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
14112 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
14113 if test $ac_cv_lib_png_png_get_channels = yes; then
14114 HAVE_PNG=yes
14120 if test "${HAVE_PNG}" = "yes"; then
14122 cat >>confdefs.h <<\_ACEOF
14123 #define HAVE_PNG 1
14124 _ACEOF
14129 ### Use -ltiff if available, unless `--with-tiff=no'.
14130 HAVE_TIFF=no
14131 if test "${HAVE_X11}" = "yes"; then
14132 if test "${with_tiff}" != "no"; then
14133 if test "${ac_cv_header_tiffio_h+set}" = set; then
14134 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14135 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14136 if test "${ac_cv_header_tiffio_h+set}" = set; then
14137 echo $ECHO_N "(cached) $ECHO_C" >&6
14139 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14140 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14141 else
14142 # Is the header compilable?
14143 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
14144 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
14145 cat >conftest.$ac_ext <<_ACEOF
14146 /* confdefs.h. */
14147 _ACEOF
14148 cat confdefs.h >>conftest.$ac_ext
14149 cat >>conftest.$ac_ext <<_ACEOF
14150 /* end confdefs.h. */
14151 $ac_includes_default
14152 #include <tiffio.h>
14153 _ACEOF
14154 rm -f conftest.$ac_objext
14155 if { (ac_try="$ac_compile"
14156 case "(($ac_try" in
14157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14158 *) ac_try_echo=$ac_try;;
14159 esac
14160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14161 (eval "$ac_compile") 2>conftest.er1
14162 ac_status=$?
14163 grep -v '^ *+' conftest.er1 >conftest.err
14164 rm -f conftest.er1
14165 cat conftest.err >&5
14166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167 (exit $ac_status); } && {
14168 test -z "$ac_c_werror_flag" ||
14169 test ! -s conftest.err
14170 } && test -s conftest.$ac_objext; then
14171 ac_header_compiler=yes
14172 else
14173 echo "$as_me: failed program was:" >&5
14174 sed 's/^/| /' conftest.$ac_ext >&5
14176 ac_header_compiler=no
14179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14180 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14181 echo "${ECHO_T}$ac_header_compiler" >&6; }
14183 # Is the header present?
14184 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14185 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
14186 cat >conftest.$ac_ext <<_ACEOF
14187 /* confdefs.h. */
14188 _ACEOF
14189 cat confdefs.h >>conftest.$ac_ext
14190 cat >>conftest.$ac_ext <<_ACEOF
14191 /* end confdefs.h. */
14192 #include <tiffio.h>
14193 _ACEOF
14194 if { (ac_try="$ac_cpp conftest.$ac_ext"
14195 case "(($ac_try" in
14196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14197 *) ac_try_echo=$ac_try;;
14198 esac
14199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14200 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14201 ac_status=$?
14202 grep -v '^ *+' conftest.er1 >conftest.err
14203 rm -f conftest.er1
14204 cat conftest.err >&5
14205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 (exit $ac_status); } >/dev/null && {
14207 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14208 test ! -s conftest.err
14209 }; then
14210 ac_header_preproc=yes
14211 else
14212 echo "$as_me: failed program was:" >&5
14213 sed 's/^/| /' conftest.$ac_ext >&5
14215 ac_header_preproc=no
14218 rm -f conftest.err conftest.$ac_ext
14219 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14220 echo "${ECHO_T}$ac_header_preproc" >&6; }
14222 # So? What about this header?
14223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14224 yes:no: )
14225 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14226 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14227 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
14228 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
14229 ac_header_preproc=yes
14231 no:yes:* )
14232 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14233 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14234 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14235 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14236 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14237 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14238 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14239 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14240 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
14241 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
14242 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14243 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14246 esac
14247 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14248 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14249 if test "${ac_cv_header_tiffio_h+set}" = set; then
14250 echo $ECHO_N "(cached) $ECHO_C" >&6
14251 else
14252 ac_cv_header_tiffio_h=$ac_header_preproc
14254 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14255 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14258 if test $ac_cv_header_tiffio_h = yes; then
14259 tifflibs="-lz -lm"
14260 # At least one tiff package requires the jpeg library.
14261 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14262 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14263 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14264 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14265 echo $ECHO_N "(cached) $ECHO_C" >&6
14266 else
14267 ac_check_lib_save_LIBS=$LIBS
14268 LIBS="-ltiff $tifflibs $LIBS"
14269 cat >conftest.$ac_ext <<_ACEOF
14270 /* confdefs.h. */
14271 _ACEOF
14272 cat confdefs.h >>conftest.$ac_ext
14273 cat >>conftest.$ac_ext <<_ACEOF
14274 /* end confdefs.h. */
14276 /* Override any GCC internal prototype to avoid an error.
14277 Use char because int might match the return type of a GCC
14278 builtin and then its argument prototype would still apply. */
14279 #ifdef __cplusplus
14280 extern "C"
14281 #endif
14282 char TIFFGetVersion ();
14284 main ()
14286 return TIFFGetVersion ();
14288 return 0;
14290 _ACEOF
14291 rm -f conftest.$ac_objext conftest$ac_exeext
14292 if { (ac_try="$ac_link"
14293 case "(($ac_try" in
14294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14295 *) ac_try_echo=$ac_try;;
14296 esac
14297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14298 (eval "$ac_link") 2>conftest.er1
14299 ac_status=$?
14300 grep -v '^ *+' conftest.er1 >conftest.err
14301 rm -f conftest.er1
14302 cat conftest.err >&5
14303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304 (exit $ac_status); } && {
14305 test -z "$ac_c_werror_flag" ||
14306 test ! -s conftest.err
14307 } && test -s conftest$ac_exeext &&
14308 $as_test_x conftest$ac_exeext; then
14309 ac_cv_lib_tiff_TIFFGetVersion=yes
14310 else
14311 echo "$as_me: failed program was:" >&5
14312 sed 's/^/| /' conftest.$ac_ext >&5
14314 ac_cv_lib_tiff_TIFFGetVersion=no
14317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14318 conftest$ac_exeext conftest.$ac_ext
14319 LIBS=$ac_check_lib_save_LIBS
14321 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14322 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14323 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14324 HAVE_TIFF=yes
14332 if test "${HAVE_TIFF}" = "yes"; then
14334 cat >>confdefs.h <<\_ACEOF
14335 #define HAVE_TIFF 1
14336 _ACEOF
14341 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14342 HAVE_GIF=no
14343 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14344 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14345 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14346 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14347 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14348 echo $ECHO_N "(cached) $ECHO_C" >&6
14350 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14351 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14352 else
14353 # Is the header compilable?
14354 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14355 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14356 cat >conftest.$ac_ext <<_ACEOF
14357 /* confdefs.h. */
14358 _ACEOF
14359 cat confdefs.h >>conftest.$ac_ext
14360 cat >>conftest.$ac_ext <<_ACEOF
14361 /* end confdefs.h. */
14362 $ac_includes_default
14363 #include <gif_lib.h>
14364 _ACEOF
14365 rm -f conftest.$ac_objext
14366 if { (ac_try="$ac_compile"
14367 case "(($ac_try" in
14368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14369 *) ac_try_echo=$ac_try;;
14370 esac
14371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14372 (eval "$ac_compile") 2>conftest.er1
14373 ac_status=$?
14374 grep -v '^ *+' conftest.er1 >conftest.err
14375 rm -f conftest.er1
14376 cat conftest.err >&5
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); } && {
14379 test -z "$ac_c_werror_flag" ||
14380 test ! -s conftest.err
14381 } && test -s conftest.$ac_objext; then
14382 ac_header_compiler=yes
14383 else
14384 echo "$as_me: failed program was:" >&5
14385 sed 's/^/| /' conftest.$ac_ext >&5
14387 ac_header_compiler=no
14390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14391 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14392 echo "${ECHO_T}$ac_header_compiler" >&6; }
14394 # Is the header present?
14395 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14396 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14397 cat >conftest.$ac_ext <<_ACEOF
14398 /* confdefs.h. */
14399 _ACEOF
14400 cat confdefs.h >>conftest.$ac_ext
14401 cat >>conftest.$ac_ext <<_ACEOF
14402 /* end confdefs.h. */
14403 #include <gif_lib.h>
14404 _ACEOF
14405 if { (ac_try="$ac_cpp conftest.$ac_ext"
14406 case "(($ac_try" in
14407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14408 *) ac_try_echo=$ac_try;;
14409 esac
14410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14411 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14412 ac_status=$?
14413 grep -v '^ *+' conftest.er1 >conftest.err
14414 rm -f conftest.er1
14415 cat conftest.err >&5
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); } >/dev/null && {
14418 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14419 test ! -s conftest.err
14420 }; then
14421 ac_header_preproc=yes
14422 else
14423 echo "$as_me: failed program was:" >&5
14424 sed 's/^/| /' conftest.$ac_ext >&5
14426 ac_header_preproc=no
14429 rm -f conftest.err conftest.$ac_ext
14430 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14431 echo "${ECHO_T}$ac_header_preproc" >&6; }
14433 # So? What about this header?
14434 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14435 yes:no: )
14436 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14437 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14438 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14439 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14440 ac_header_preproc=yes
14442 no:yes:* )
14443 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14444 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14445 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14446 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14447 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14448 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14449 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14450 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14451 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14452 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14453 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14454 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14457 esac
14458 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14459 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14460 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14461 echo $ECHO_N "(cached) $ECHO_C" >&6
14462 else
14463 ac_cv_header_gif_lib_h=$ac_header_preproc
14465 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14466 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14469 if test $ac_cv_header_gif_lib_h = yes; then
14470 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14471 # Earlier versions can crash Emacs.
14472 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14473 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14474 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14475 echo $ECHO_N "(cached) $ECHO_C" >&6
14476 else
14477 ac_check_lib_save_LIBS=$LIBS
14478 LIBS="-lgif $LIBS"
14479 cat >conftest.$ac_ext <<_ACEOF
14480 /* confdefs.h. */
14481 _ACEOF
14482 cat confdefs.h >>conftest.$ac_ext
14483 cat >>conftest.$ac_ext <<_ACEOF
14484 /* end confdefs.h. */
14486 /* Override any GCC internal prototype to avoid an error.
14487 Use char because int might match the return type of a GCC
14488 builtin and then its argument prototype would still apply. */
14489 #ifdef __cplusplus
14490 extern "C"
14491 #endif
14492 char EGifPutExtensionLast ();
14494 main ()
14496 return EGifPutExtensionLast ();
14498 return 0;
14500 _ACEOF
14501 rm -f conftest.$ac_objext conftest$ac_exeext
14502 if { (ac_try="$ac_link"
14503 case "(($ac_try" in
14504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14505 *) ac_try_echo=$ac_try;;
14506 esac
14507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14508 (eval "$ac_link") 2>conftest.er1
14509 ac_status=$?
14510 grep -v '^ *+' conftest.er1 >conftest.err
14511 rm -f conftest.er1
14512 cat conftest.err >&5
14513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14514 (exit $ac_status); } && {
14515 test -z "$ac_c_werror_flag" ||
14516 test ! -s conftest.err
14517 } && test -s conftest$ac_exeext &&
14518 $as_test_x conftest$ac_exeext; then
14519 ac_cv_lib_gif_EGifPutExtensionLast=yes
14520 else
14521 echo "$as_me: failed program was:" >&5
14522 sed 's/^/| /' conftest.$ac_ext >&5
14524 ac_cv_lib_gif_EGifPutExtensionLast=no
14527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14528 conftest$ac_exeext conftest.$ac_ext
14529 LIBS=$ac_check_lib_save_LIBS
14531 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14532 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14533 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14534 HAVE_GIF=yes
14535 else
14536 try_libungif=yes
14543 if test "$HAVE_GIF" = yes; then
14544 ac_gif_lib_name="-lgif"
14547 # If gif_lib.h but no libgif, try libungif.
14548 if test x"$try_libungif" = xyes; then
14549 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14550 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14551 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14552 echo $ECHO_N "(cached) $ECHO_C" >&6
14553 else
14554 ac_check_lib_save_LIBS=$LIBS
14555 LIBS="-lungif $LIBS"
14556 cat >conftest.$ac_ext <<_ACEOF
14557 /* confdefs.h. */
14558 _ACEOF
14559 cat confdefs.h >>conftest.$ac_ext
14560 cat >>conftest.$ac_ext <<_ACEOF
14561 /* end confdefs.h. */
14563 /* Override any GCC internal prototype to avoid an error.
14564 Use char because int might match the return type of a GCC
14565 builtin and then its argument prototype would still apply. */
14566 #ifdef __cplusplus
14567 extern "C"
14568 #endif
14569 char EGifPutExtensionLast ();
14571 main ()
14573 return EGifPutExtensionLast ();
14575 return 0;
14577 _ACEOF
14578 rm -f conftest.$ac_objext conftest$ac_exeext
14579 if { (ac_try="$ac_link"
14580 case "(($ac_try" in
14581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14582 *) ac_try_echo=$ac_try;;
14583 esac
14584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14585 (eval "$ac_link") 2>conftest.er1
14586 ac_status=$?
14587 grep -v '^ *+' conftest.er1 >conftest.err
14588 rm -f conftest.er1
14589 cat conftest.err >&5
14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 (exit $ac_status); } && {
14592 test -z "$ac_c_werror_flag" ||
14593 test ! -s conftest.err
14594 } && test -s conftest$ac_exeext &&
14595 $as_test_x conftest$ac_exeext; then
14596 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14597 else
14598 echo "$as_me: failed program was:" >&5
14599 sed 's/^/| /' conftest.$ac_ext >&5
14601 ac_cv_lib_ungif_EGifPutExtensionLast=no
14604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14605 conftest$ac_exeext conftest.$ac_ext
14606 LIBS=$ac_check_lib_save_LIBS
14608 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14609 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14610 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14611 HAVE_GIF=yes
14615 if test "$HAVE_GIF" = yes; then
14617 cat >>confdefs.h <<\_ACEOF
14618 #define LIBGIF -lungif
14619 _ACEOF
14621 ac_gif_lib_name="-lungif"
14625 if test "${HAVE_GIF}" = "yes"; then
14627 cat >>confdefs.h <<\_ACEOF
14628 #define HAVE_GIF 1
14629 _ACEOF
14634 if test "${HAVE_X11}" = "yes"; then
14635 MISSING=""
14636 WITH_NO=""
14637 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14638 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14639 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14640 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
14641 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14642 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
14643 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14644 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
14645 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14646 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
14648 if test "X${MISSING}" != X; then
14649 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14650 $MISSING
14651 Maybe some development libraries/packages are missing?
14652 If you don't want to link with them give
14653 $WITH_NO
14654 as options to configure" >&5
14655 echo "$as_me: error: The following required libraries were not found:
14656 $MISSING
14657 Maybe some development libraries/packages are missing?
14658 If you don't want to link with them give
14659 $WITH_NO
14660 as options to configure" >&2;}
14661 { (exit 1); exit 1; }; }
14665 ### Use -lgpm if available, unless `--with-gpm=no'.
14666 HAVE_GPM=no
14667 if test "${with_gpm}" != "no"; then
14668 if test "${ac_cv_header_gpm_h+set}" = set; then
14669 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14670 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14671 if test "${ac_cv_header_gpm_h+set}" = set; then
14672 echo $ECHO_N "(cached) $ECHO_C" >&6
14674 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14675 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14676 else
14677 # Is the header compilable?
14678 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14679 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14680 cat >conftest.$ac_ext <<_ACEOF
14681 /* confdefs.h. */
14682 _ACEOF
14683 cat confdefs.h >>conftest.$ac_ext
14684 cat >>conftest.$ac_ext <<_ACEOF
14685 /* end confdefs.h. */
14686 $ac_includes_default
14687 #include <gpm.h>
14688 _ACEOF
14689 rm -f conftest.$ac_objext
14690 if { (ac_try="$ac_compile"
14691 case "(($ac_try" in
14692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14693 *) ac_try_echo=$ac_try;;
14694 esac
14695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14696 (eval "$ac_compile") 2>conftest.er1
14697 ac_status=$?
14698 grep -v '^ *+' conftest.er1 >conftest.err
14699 rm -f conftest.er1
14700 cat conftest.err >&5
14701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14702 (exit $ac_status); } && {
14703 test -z "$ac_c_werror_flag" ||
14704 test ! -s conftest.err
14705 } && test -s conftest.$ac_objext; then
14706 ac_header_compiler=yes
14707 else
14708 echo "$as_me: failed program was:" >&5
14709 sed 's/^/| /' conftest.$ac_ext >&5
14711 ac_header_compiler=no
14714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14715 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14716 echo "${ECHO_T}$ac_header_compiler" >&6; }
14718 # Is the header present?
14719 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14720 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14721 cat >conftest.$ac_ext <<_ACEOF
14722 /* confdefs.h. */
14723 _ACEOF
14724 cat confdefs.h >>conftest.$ac_ext
14725 cat >>conftest.$ac_ext <<_ACEOF
14726 /* end confdefs.h. */
14727 #include <gpm.h>
14728 _ACEOF
14729 if { (ac_try="$ac_cpp conftest.$ac_ext"
14730 case "(($ac_try" in
14731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14732 *) ac_try_echo=$ac_try;;
14733 esac
14734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14735 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14736 ac_status=$?
14737 grep -v '^ *+' conftest.er1 >conftest.err
14738 rm -f conftest.er1
14739 cat conftest.err >&5
14740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741 (exit $ac_status); } >/dev/null && {
14742 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14743 test ! -s conftest.err
14744 }; then
14745 ac_header_preproc=yes
14746 else
14747 echo "$as_me: failed program was:" >&5
14748 sed 's/^/| /' conftest.$ac_ext >&5
14750 ac_header_preproc=no
14753 rm -f conftest.err conftest.$ac_ext
14754 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14755 echo "${ECHO_T}$ac_header_preproc" >&6; }
14757 # So? What about this header?
14758 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14759 yes:no: )
14760 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14761 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14762 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14763 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14764 ac_header_preproc=yes
14766 no:yes:* )
14767 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14768 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14769 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14770 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14771 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14772 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14773 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14774 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14775 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14776 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14777 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14778 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14781 esac
14782 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14783 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14784 if test "${ac_cv_header_gpm_h+set}" = set; then
14785 echo $ECHO_N "(cached) $ECHO_C" >&6
14786 else
14787 ac_cv_header_gpm_h=$ac_header_preproc
14789 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14790 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14793 if test $ac_cv_header_gpm_h = yes; then
14794 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14795 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14796 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14797 echo $ECHO_N "(cached) $ECHO_C" >&6
14798 else
14799 ac_check_lib_save_LIBS=$LIBS
14800 LIBS="-lgpm $LIBS"
14801 cat >conftest.$ac_ext <<_ACEOF
14802 /* confdefs.h. */
14803 _ACEOF
14804 cat confdefs.h >>conftest.$ac_ext
14805 cat >>conftest.$ac_ext <<_ACEOF
14806 /* end confdefs.h. */
14808 /* Override any GCC internal prototype to avoid an error.
14809 Use char because int might match the return type of a GCC
14810 builtin and then its argument prototype would still apply. */
14811 #ifdef __cplusplus
14812 extern "C"
14813 #endif
14814 char Gpm_Open ();
14816 main ()
14818 return Gpm_Open ();
14820 return 0;
14822 _ACEOF
14823 rm -f conftest.$ac_objext conftest$ac_exeext
14824 if { (ac_try="$ac_link"
14825 case "(($ac_try" in
14826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14827 *) ac_try_echo=$ac_try;;
14828 esac
14829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14830 (eval "$ac_link") 2>conftest.er1
14831 ac_status=$?
14832 grep -v '^ *+' conftest.er1 >conftest.err
14833 rm -f conftest.er1
14834 cat conftest.err >&5
14835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836 (exit $ac_status); } && {
14837 test -z "$ac_c_werror_flag" ||
14838 test ! -s conftest.err
14839 } && test -s conftest$ac_exeext &&
14840 $as_test_x conftest$ac_exeext; then
14841 ac_cv_lib_gpm_Gpm_Open=yes
14842 else
14843 echo "$as_me: failed program was:" >&5
14844 sed 's/^/| /' conftest.$ac_ext >&5
14846 ac_cv_lib_gpm_Gpm_Open=no
14849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14850 conftest$ac_exeext conftest.$ac_ext
14851 LIBS=$ac_check_lib_save_LIBS
14853 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14854 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14855 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14856 HAVE_GPM=yes
14864 if test "${HAVE_GPM}" = "yes"; then
14866 cat >>confdefs.h <<\_ACEOF
14867 #define HAVE_GPM 1
14868 _ACEOF
14872 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14873 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14874 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14875 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14876 echo $ECHO_N "(cached) $ECHO_C" >&6
14878 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14879 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14880 else
14881 # Is the header compilable?
14882 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14883 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14884 cat >conftest.$ac_ext <<_ACEOF
14885 /* confdefs.h. */
14886 _ACEOF
14887 cat confdefs.h >>conftest.$ac_ext
14888 cat >>conftest.$ac_ext <<_ACEOF
14889 /* end confdefs.h. */
14890 $ac_includes_default
14891 #include <malloc/malloc.h>
14892 _ACEOF
14893 rm -f conftest.$ac_objext
14894 if { (ac_try="$ac_compile"
14895 case "(($ac_try" in
14896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14897 *) ac_try_echo=$ac_try;;
14898 esac
14899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14900 (eval "$ac_compile") 2>conftest.er1
14901 ac_status=$?
14902 grep -v '^ *+' conftest.er1 >conftest.err
14903 rm -f conftest.er1
14904 cat conftest.err >&5
14905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906 (exit $ac_status); } && {
14907 test -z "$ac_c_werror_flag" ||
14908 test ! -s conftest.err
14909 } && test -s conftest.$ac_objext; then
14910 ac_header_compiler=yes
14911 else
14912 echo "$as_me: failed program was:" >&5
14913 sed 's/^/| /' conftest.$ac_ext >&5
14915 ac_header_compiler=no
14918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14919 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14920 echo "${ECHO_T}$ac_header_compiler" >&6; }
14922 # Is the header present?
14923 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14924 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14925 cat >conftest.$ac_ext <<_ACEOF
14926 /* confdefs.h. */
14927 _ACEOF
14928 cat confdefs.h >>conftest.$ac_ext
14929 cat >>conftest.$ac_ext <<_ACEOF
14930 /* end confdefs.h. */
14931 #include <malloc/malloc.h>
14932 _ACEOF
14933 if { (ac_try="$ac_cpp conftest.$ac_ext"
14934 case "(($ac_try" in
14935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14936 *) ac_try_echo=$ac_try;;
14937 esac
14938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14939 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14940 ac_status=$?
14941 grep -v '^ *+' conftest.er1 >conftest.err
14942 rm -f conftest.er1
14943 cat conftest.err >&5
14944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14945 (exit $ac_status); } >/dev/null && {
14946 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14947 test ! -s conftest.err
14948 }; then
14949 ac_header_preproc=yes
14950 else
14951 echo "$as_me: failed program was:" >&5
14952 sed 's/^/| /' conftest.$ac_ext >&5
14954 ac_header_preproc=no
14957 rm -f conftest.err conftest.$ac_ext
14958 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14959 echo "${ECHO_T}$ac_header_preproc" >&6; }
14961 # So? What about this header?
14962 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14963 yes:no: )
14964 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14965 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14966 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14967 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14968 ac_header_preproc=yes
14970 no:yes:* )
14971 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14972 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14973 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14974 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14975 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14976 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14977 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14978 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14979 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14980 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14981 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14982 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14985 esac
14986 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14987 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14988 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14989 echo $ECHO_N "(cached) $ECHO_C" >&6
14990 else
14991 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14993 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14994 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14997 if test $ac_cv_header_malloc_malloc_h = yes; then
14999 cat >>confdefs.h <<\_ACEOF
15000 #define HAVE_MALLOC_MALLOC_H 1
15001 _ACEOF
15007 ### Use NeXTstep API to implement GUI.
15008 if test "${HAVE_NS}" = "yes"; then
15010 cat >>confdefs.h <<\_ACEOF
15011 #define HAVE_NS 1
15012 _ACEOF
15014 if test "${NS_IMPL_COCOA}" = "yes"; then
15016 cat >>confdefs.h <<\_ACEOF
15017 #define NS_IMPL_COCOA 1
15018 _ACEOF
15020 GNU_OBJC_CFLAGS=
15021 LIB_SRC_EXTRA_INSTALLABLES=mac-fix-env
15023 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
15025 cat >>confdefs.h <<\_ACEOF
15026 #define NS_IMPL_GNUSTEP 1
15027 _ACEOF
15029 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
15031 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
15033 cat >>confdefs.h <<\_ACEOF
15034 #define NS_HAVE_NSINTEGER 1
15035 _ACEOF
15038 # We also have mouse menus.
15039 HAVE_MENUS=yes
15043 ### Use session management (-lSM -lICE) if available
15044 HAVE_X_SM=no
15045 if test "${HAVE_X11}" = "yes"; then
15046 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15047 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15048 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15049 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15050 echo $ECHO_N "(cached) $ECHO_C" >&6
15052 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15053 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15054 else
15055 # Is the header compilable?
15056 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
15057 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
15058 cat >conftest.$ac_ext <<_ACEOF
15059 /* confdefs.h. */
15060 _ACEOF
15061 cat confdefs.h >>conftest.$ac_ext
15062 cat >>conftest.$ac_ext <<_ACEOF
15063 /* end confdefs.h. */
15064 $ac_includes_default
15065 #include <X11/SM/SMlib.h>
15066 _ACEOF
15067 rm -f conftest.$ac_objext
15068 if { (ac_try="$ac_compile"
15069 case "(($ac_try" in
15070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15071 *) ac_try_echo=$ac_try;;
15072 esac
15073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15074 (eval "$ac_compile") 2>conftest.er1
15075 ac_status=$?
15076 grep -v '^ *+' conftest.er1 >conftest.err
15077 rm -f conftest.er1
15078 cat conftest.err >&5
15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); } && {
15081 test -z "$ac_c_werror_flag" ||
15082 test ! -s conftest.err
15083 } && test -s conftest.$ac_objext; then
15084 ac_header_compiler=yes
15085 else
15086 echo "$as_me: failed program was:" >&5
15087 sed 's/^/| /' conftest.$ac_ext >&5
15089 ac_header_compiler=no
15092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15093 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15094 echo "${ECHO_T}$ac_header_compiler" >&6; }
15096 # Is the header present?
15097 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
15098 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
15099 cat >conftest.$ac_ext <<_ACEOF
15100 /* confdefs.h. */
15101 _ACEOF
15102 cat confdefs.h >>conftest.$ac_ext
15103 cat >>conftest.$ac_ext <<_ACEOF
15104 /* end confdefs.h. */
15105 #include <X11/SM/SMlib.h>
15106 _ACEOF
15107 if { (ac_try="$ac_cpp conftest.$ac_ext"
15108 case "(($ac_try" in
15109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15110 *) ac_try_echo=$ac_try;;
15111 esac
15112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15113 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15114 ac_status=$?
15115 grep -v '^ *+' conftest.er1 >conftest.err
15116 rm -f conftest.er1
15117 cat conftest.err >&5
15118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15119 (exit $ac_status); } >/dev/null && {
15120 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15121 test ! -s conftest.err
15122 }; then
15123 ac_header_preproc=yes
15124 else
15125 echo "$as_me: failed program was:" >&5
15126 sed 's/^/| /' conftest.$ac_ext >&5
15128 ac_header_preproc=no
15131 rm -f conftest.err conftest.$ac_ext
15132 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15133 echo "${ECHO_T}$ac_header_preproc" >&6; }
15135 # So? What about this header?
15136 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15137 yes:no: )
15138 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15139 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15140 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
15141 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
15142 ac_header_preproc=yes
15144 no:yes:* )
15145 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
15146 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
15147 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
15148 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
15149 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
15150 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
15151 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
15152 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15153 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
15154 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
15155 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
15156 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
15159 esac
15160 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15161 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15162 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15163 echo $ECHO_N "(cached) $ECHO_C" >&6
15164 else
15165 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15167 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15168 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15171 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15172 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
15173 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
15174 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15175 echo $ECHO_N "(cached) $ECHO_C" >&6
15176 else
15177 ac_check_lib_save_LIBS=$LIBS
15178 LIBS="-lSM -lICE $LIBS"
15179 cat >conftest.$ac_ext <<_ACEOF
15180 /* confdefs.h. */
15181 _ACEOF
15182 cat confdefs.h >>conftest.$ac_ext
15183 cat >>conftest.$ac_ext <<_ACEOF
15184 /* end confdefs.h. */
15186 /* Override any GCC internal prototype to avoid an error.
15187 Use char because int might match the return type of a GCC
15188 builtin and then its argument prototype would still apply. */
15189 #ifdef __cplusplus
15190 extern "C"
15191 #endif
15192 char SmcOpenConnection ();
15194 main ()
15196 return SmcOpenConnection ();
15198 return 0;
15200 _ACEOF
15201 rm -f conftest.$ac_objext conftest$ac_exeext
15202 if { (ac_try="$ac_link"
15203 case "(($ac_try" in
15204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15205 *) ac_try_echo=$ac_try;;
15206 esac
15207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15208 (eval "$ac_link") 2>conftest.er1
15209 ac_status=$?
15210 grep -v '^ *+' conftest.er1 >conftest.err
15211 rm -f conftest.er1
15212 cat conftest.err >&5
15213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214 (exit $ac_status); } && {
15215 test -z "$ac_c_werror_flag" ||
15216 test ! -s conftest.err
15217 } && test -s conftest$ac_exeext &&
15218 $as_test_x conftest$ac_exeext; then
15219 ac_cv_lib_SM_SmcOpenConnection=yes
15220 else
15221 echo "$as_me: failed program was:" >&5
15222 sed 's/^/| /' conftest.$ac_ext >&5
15224 ac_cv_lib_SM_SmcOpenConnection=no
15227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15228 conftest$ac_exeext conftest.$ac_ext
15229 LIBS=$ac_check_lib_save_LIBS
15231 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15232 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15233 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15234 HAVE_X_SM=yes
15241 if test "${HAVE_X_SM}" = "yes"; then
15243 cat >>confdefs.h <<\_ACEOF
15244 #define HAVE_X_SM 1
15245 _ACEOF
15247 case "$LIBS" in
15248 *-lSM*) ;;
15249 *) LIBS="-lSM -lICE $LIBS" ;;
15250 esac
15254 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15255 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15256 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
15257 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15258 echo $ECHO_N "(cached) $ECHO_C" >&6
15259 else
15260 cat >conftest.$ac_ext <<_ACEOF
15261 /* confdefs.h. */
15262 _ACEOF
15263 cat confdefs.h >>conftest.$ac_ext
15264 cat >>conftest.$ac_ext <<_ACEOF
15265 /* end confdefs.h. */
15266 #include <netdb.h>
15268 main ()
15270 return h_errno;
15272 return 0;
15274 _ACEOF
15275 rm -f conftest.$ac_objext conftest$ac_exeext
15276 if { (ac_try="$ac_link"
15277 case "(($ac_try" in
15278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15279 *) ac_try_echo=$ac_try;;
15280 esac
15281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15282 (eval "$ac_link") 2>conftest.er1
15283 ac_status=$?
15284 grep -v '^ *+' conftest.er1 >conftest.err
15285 rm -f conftest.er1
15286 cat conftest.err >&5
15287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15288 (exit $ac_status); } && {
15289 test -z "$ac_c_werror_flag" ||
15290 test ! -s conftest.err
15291 } && test -s conftest$ac_exeext &&
15292 $as_test_x conftest$ac_exeext; then
15293 emacs_cv_netdb_declares_h_errno=yes
15294 else
15295 echo "$as_me: failed program was:" >&5
15296 sed 's/^/| /' conftest.$ac_ext >&5
15298 emacs_cv_netdb_declares_h_errno=no
15301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15302 conftest$ac_exeext conftest.$ac_ext
15304 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15305 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15306 if test $emacs_cv_netdb_declares_h_errno = yes; then
15308 cat >>confdefs.h <<\_ACEOF
15309 #define HAVE_H_ERRNO 1
15310 _ACEOF
15314 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15315 # for constant arguments. Useless!
15316 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15317 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15318 if test "${ac_cv_working_alloca_h+set}" = set; then
15319 echo $ECHO_N "(cached) $ECHO_C" >&6
15320 else
15321 cat >conftest.$ac_ext <<_ACEOF
15322 /* confdefs.h. */
15323 _ACEOF
15324 cat confdefs.h >>conftest.$ac_ext
15325 cat >>conftest.$ac_ext <<_ACEOF
15326 /* end confdefs.h. */
15327 #include <alloca.h>
15329 main ()
15331 char *p = (char *) alloca (2 * sizeof (int));
15332 if (p) return 0;
15334 return 0;
15336 _ACEOF
15337 rm -f conftest.$ac_objext conftest$ac_exeext
15338 if { (ac_try="$ac_link"
15339 case "(($ac_try" in
15340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15341 *) ac_try_echo=$ac_try;;
15342 esac
15343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15344 (eval "$ac_link") 2>conftest.er1
15345 ac_status=$?
15346 grep -v '^ *+' conftest.er1 >conftest.err
15347 rm -f conftest.er1
15348 cat conftest.err >&5
15349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15350 (exit $ac_status); } && {
15351 test -z "$ac_c_werror_flag" ||
15352 test ! -s conftest.err
15353 } && test -s conftest$ac_exeext &&
15354 $as_test_x conftest$ac_exeext; then
15355 ac_cv_working_alloca_h=yes
15356 else
15357 echo "$as_me: failed program was:" >&5
15358 sed 's/^/| /' conftest.$ac_ext >&5
15360 ac_cv_working_alloca_h=no
15363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15364 conftest$ac_exeext conftest.$ac_ext
15366 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15367 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15368 if test $ac_cv_working_alloca_h = yes; then
15370 cat >>confdefs.h <<\_ACEOF
15371 #define HAVE_ALLOCA_H 1
15372 _ACEOF
15376 { echo "$as_me:$LINENO: checking for alloca" >&5
15377 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15378 if test "${ac_cv_func_alloca_works+set}" = set; then
15379 echo $ECHO_N "(cached) $ECHO_C" >&6
15380 else
15381 cat >conftest.$ac_ext <<_ACEOF
15382 /* confdefs.h. */
15383 _ACEOF
15384 cat confdefs.h >>conftest.$ac_ext
15385 cat >>conftest.$ac_ext <<_ACEOF
15386 /* end confdefs.h. */
15387 #ifdef __GNUC__
15388 # define alloca __builtin_alloca
15389 #else
15390 # ifdef _MSC_VER
15391 # include <malloc.h>
15392 # define alloca _alloca
15393 # else
15394 # ifdef HAVE_ALLOCA_H
15395 # include <alloca.h>
15396 # else
15397 # ifdef _AIX
15398 #pragma alloca
15399 # else
15400 # ifndef alloca /* predefined by HP cc +Olibcalls */
15401 char *alloca ();
15402 # endif
15403 # endif
15404 # endif
15405 # endif
15406 #endif
15409 main ()
15411 char *p = (char *) alloca (1);
15412 if (p) return 0;
15414 return 0;
15416 _ACEOF
15417 rm -f conftest.$ac_objext conftest$ac_exeext
15418 if { (ac_try="$ac_link"
15419 case "(($ac_try" in
15420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15421 *) ac_try_echo=$ac_try;;
15422 esac
15423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15424 (eval "$ac_link") 2>conftest.er1
15425 ac_status=$?
15426 grep -v '^ *+' conftest.er1 >conftest.err
15427 rm -f conftest.er1
15428 cat conftest.err >&5
15429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430 (exit $ac_status); } && {
15431 test -z "$ac_c_werror_flag" ||
15432 test ! -s conftest.err
15433 } && test -s conftest$ac_exeext &&
15434 $as_test_x conftest$ac_exeext; then
15435 ac_cv_func_alloca_works=yes
15436 else
15437 echo "$as_me: failed program was:" >&5
15438 sed 's/^/| /' conftest.$ac_ext >&5
15440 ac_cv_func_alloca_works=no
15443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15444 conftest$ac_exeext conftest.$ac_ext
15446 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15447 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15449 if test $ac_cv_func_alloca_works = yes; then
15451 cat >>confdefs.h <<\_ACEOF
15452 #define HAVE_ALLOCA 1
15453 _ACEOF
15455 else
15456 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15457 # that cause trouble. Some versions do not even contain alloca or
15458 # contain a buggy version. If you still want to use their alloca,
15459 # use ar to extract alloca.o from them instead of compiling alloca.c.
15461 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15463 cat >>confdefs.h <<\_ACEOF
15464 #define C_ALLOCA 1
15465 _ACEOF
15468 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15469 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
15470 if test "${ac_cv_os_cray+set}" = set; then
15471 echo $ECHO_N "(cached) $ECHO_C" >&6
15472 else
15473 cat >conftest.$ac_ext <<_ACEOF
15474 /* confdefs.h. */
15475 _ACEOF
15476 cat confdefs.h >>conftest.$ac_ext
15477 cat >>conftest.$ac_ext <<_ACEOF
15478 /* end confdefs.h. */
15479 #if defined CRAY && ! defined CRAY2
15480 webecray
15481 #else
15482 wenotbecray
15483 #endif
15485 _ACEOF
15486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15487 $EGREP "webecray" >/dev/null 2>&1; then
15488 ac_cv_os_cray=yes
15489 else
15490 ac_cv_os_cray=no
15492 rm -f conftest*
15495 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15496 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15497 if test $ac_cv_os_cray = yes; then
15498 for ac_func in _getb67 GETB67 getb67; do
15499 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15500 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15501 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15502 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15503 echo $ECHO_N "(cached) $ECHO_C" >&6
15504 else
15505 cat >conftest.$ac_ext <<_ACEOF
15506 /* confdefs.h. */
15507 _ACEOF
15508 cat confdefs.h >>conftest.$ac_ext
15509 cat >>conftest.$ac_ext <<_ACEOF
15510 /* end confdefs.h. */
15511 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15512 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15513 #define $ac_func innocuous_$ac_func
15515 /* System header to define __stub macros and hopefully few prototypes,
15516 which can conflict with char $ac_func (); below.
15517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15518 <limits.h> exists even on freestanding compilers. */
15520 #ifdef __STDC__
15521 # include <limits.h>
15522 #else
15523 # include <assert.h>
15524 #endif
15526 #undef $ac_func
15528 /* Override any GCC internal prototype to avoid an error.
15529 Use char because int might match the return type of a GCC
15530 builtin and then its argument prototype would still apply. */
15531 #ifdef __cplusplus
15532 extern "C"
15533 #endif
15534 char $ac_func ();
15535 /* The GNU C library defines this for functions which it implements
15536 to always fail with ENOSYS. Some functions are actually named
15537 something starting with __ and the normal name is an alias. */
15538 #if defined __stub_$ac_func || defined __stub___$ac_func
15539 choke me
15540 #endif
15543 main ()
15545 return $ac_func ();
15547 return 0;
15549 _ACEOF
15550 rm -f conftest.$ac_objext conftest$ac_exeext
15551 if { (ac_try="$ac_link"
15552 case "(($ac_try" in
15553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15554 *) ac_try_echo=$ac_try;;
15555 esac
15556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15557 (eval "$ac_link") 2>conftest.er1
15558 ac_status=$?
15559 grep -v '^ *+' conftest.er1 >conftest.err
15560 rm -f conftest.er1
15561 cat conftest.err >&5
15562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563 (exit $ac_status); } && {
15564 test -z "$ac_c_werror_flag" ||
15565 test ! -s conftest.err
15566 } && test -s conftest$ac_exeext &&
15567 $as_test_x conftest$ac_exeext; then
15568 eval "$as_ac_var=yes"
15569 else
15570 echo "$as_me: failed program was:" >&5
15571 sed 's/^/| /' conftest.$ac_ext >&5
15573 eval "$as_ac_var=no"
15576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15577 conftest$ac_exeext conftest.$ac_ext
15579 ac_res=`eval echo '${'$as_ac_var'}'`
15580 { echo "$as_me:$LINENO: result: $ac_res" >&5
15581 echo "${ECHO_T}$ac_res" >&6; }
15582 if test `eval echo '${'$as_ac_var'}'` = yes; then
15584 cat >>confdefs.h <<_ACEOF
15585 #define CRAY_STACKSEG_END $ac_func
15586 _ACEOF
15588 break
15591 done
15594 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15595 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
15596 if test "${ac_cv_c_stack_direction+set}" = set; then
15597 echo $ECHO_N "(cached) $ECHO_C" >&6
15598 else
15599 if test "$cross_compiling" = yes; then
15600 ac_cv_c_stack_direction=0
15601 else
15602 cat >conftest.$ac_ext <<_ACEOF
15603 /* confdefs.h. */
15604 _ACEOF
15605 cat confdefs.h >>conftest.$ac_ext
15606 cat >>conftest.$ac_ext <<_ACEOF
15607 /* end confdefs.h. */
15608 $ac_includes_default
15610 find_stack_direction ()
15612 static char *addr = 0;
15613 auto char dummy;
15614 if (addr == 0)
15616 addr = &dummy;
15617 return find_stack_direction ();
15619 else
15620 return (&dummy > addr) ? 1 : -1;
15624 main ()
15626 return find_stack_direction () < 0;
15628 _ACEOF
15629 rm -f conftest$ac_exeext
15630 if { (ac_try="$ac_link"
15631 case "(($ac_try" in
15632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15633 *) ac_try_echo=$ac_try;;
15634 esac
15635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15636 (eval "$ac_link") 2>&5
15637 ac_status=$?
15638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15640 { (case "(($ac_try" in
15641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15642 *) ac_try_echo=$ac_try;;
15643 esac
15644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15645 (eval "$ac_try") 2>&5
15646 ac_status=$?
15647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648 (exit $ac_status); }; }; then
15649 ac_cv_c_stack_direction=1
15650 else
15651 echo "$as_me: program exited with status $ac_status" >&5
15652 echo "$as_me: failed program was:" >&5
15653 sed 's/^/| /' conftest.$ac_ext >&5
15655 ( exit $ac_status )
15656 ac_cv_c_stack_direction=-1
15658 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15663 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15664 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15666 cat >>confdefs.h <<_ACEOF
15667 #define STACK_DIRECTION $ac_cv_c_stack_direction
15668 _ACEOF
15674 if test x"$ac_cv_func_alloca_works" != xyes; then
15675 { { echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
15676 echo "$as_me: error: a system implementation of alloca is required " >&2;}
15677 { (exit 1); exit 1; }; }
15680 # fmod, logb, and frexp are found in -lm on most systems.
15681 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15683 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15684 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15685 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15686 echo $ECHO_N "(cached) $ECHO_C" >&6
15687 else
15688 ac_check_lib_save_LIBS=$LIBS
15689 LIBS="-lm $LIBS"
15690 cat >conftest.$ac_ext <<_ACEOF
15691 /* confdefs.h. */
15692 _ACEOF
15693 cat confdefs.h >>conftest.$ac_ext
15694 cat >>conftest.$ac_ext <<_ACEOF
15695 /* end confdefs.h. */
15697 /* Override any GCC internal prototype to avoid an error.
15698 Use char because int might match the return type of a GCC
15699 builtin and then its argument prototype would still apply. */
15700 #ifdef __cplusplus
15701 extern "C"
15702 #endif
15703 char sqrt ();
15705 main ()
15707 return sqrt ();
15709 return 0;
15711 _ACEOF
15712 rm -f conftest.$ac_objext conftest$ac_exeext
15713 if { (ac_try="$ac_link"
15714 case "(($ac_try" in
15715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15716 *) ac_try_echo=$ac_try;;
15717 esac
15718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15719 (eval "$ac_link") 2>conftest.er1
15720 ac_status=$?
15721 grep -v '^ *+' conftest.er1 >conftest.err
15722 rm -f conftest.er1
15723 cat conftest.err >&5
15724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15725 (exit $ac_status); } && {
15726 test -z "$ac_c_werror_flag" ||
15727 test ! -s conftest.err
15728 } && test -s conftest$ac_exeext &&
15729 $as_test_x conftest$ac_exeext; then
15730 ac_cv_lib_m_sqrt=yes
15731 else
15732 echo "$as_me: failed program was:" >&5
15733 sed 's/^/| /' conftest.$ac_ext >&5
15735 ac_cv_lib_m_sqrt=no
15738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15739 conftest$ac_exeext conftest.$ac_ext
15740 LIBS=$ac_check_lib_save_LIBS
15742 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15743 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15744 if test $ac_cv_lib_m_sqrt = yes; then
15745 cat >>confdefs.h <<_ACEOF
15746 #define HAVE_LIBM 1
15747 _ACEOF
15749 LIBS="-lm $LIBS"
15754 # Check for mail-locking functions in a "mail" library. Probably this should
15755 # have the same check as for liblockfile below.
15757 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15758 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15759 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15760 echo $ECHO_N "(cached) $ECHO_C" >&6
15761 else
15762 ac_check_lib_save_LIBS=$LIBS
15763 LIBS="-lmail $LIBS"
15764 cat >conftest.$ac_ext <<_ACEOF
15765 /* confdefs.h. */
15766 _ACEOF
15767 cat confdefs.h >>conftest.$ac_ext
15768 cat >>conftest.$ac_ext <<_ACEOF
15769 /* end confdefs.h. */
15771 /* Override any GCC internal prototype to avoid an error.
15772 Use char because int might match the return type of a GCC
15773 builtin and then its argument prototype would still apply. */
15774 #ifdef __cplusplus
15775 extern "C"
15776 #endif
15777 char maillock ();
15779 main ()
15781 return maillock ();
15783 return 0;
15785 _ACEOF
15786 rm -f conftest.$ac_objext conftest$ac_exeext
15787 if { (ac_try="$ac_link"
15788 case "(($ac_try" in
15789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15790 *) ac_try_echo=$ac_try;;
15791 esac
15792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15793 (eval "$ac_link") 2>conftest.er1
15794 ac_status=$?
15795 grep -v '^ *+' conftest.er1 >conftest.err
15796 rm -f conftest.er1
15797 cat conftest.err >&5
15798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799 (exit $ac_status); } && {
15800 test -z "$ac_c_werror_flag" ||
15801 test ! -s conftest.err
15802 } && test -s conftest$ac_exeext &&
15803 $as_test_x conftest$ac_exeext; then
15804 ac_cv_lib_mail_maillock=yes
15805 else
15806 echo "$as_me: failed program was:" >&5
15807 sed 's/^/| /' conftest.$ac_ext >&5
15809 ac_cv_lib_mail_maillock=no
15812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15813 conftest$ac_exeext conftest.$ac_ext
15814 LIBS=$ac_check_lib_save_LIBS
15816 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15817 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15818 if test $ac_cv_lib_mail_maillock = yes; then
15819 cat >>confdefs.h <<_ACEOF
15820 #define HAVE_LIBMAIL 1
15821 _ACEOF
15823 LIBS="-lmail $LIBS"
15828 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15829 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15830 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15831 echo $ECHO_N "(cached) $ECHO_C" >&6
15832 else
15833 ac_check_lib_save_LIBS=$LIBS
15834 LIBS="-llockfile $LIBS"
15835 cat >conftest.$ac_ext <<_ACEOF
15836 /* confdefs.h. */
15837 _ACEOF
15838 cat confdefs.h >>conftest.$ac_ext
15839 cat >>conftest.$ac_ext <<_ACEOF
15840 /* end confdefs.h. */
15842 /* Override any GCC internal prototype to avoid an error.
15843 Use char because int might match the return type of a GCC
15844 builtin and then its argument prototype would still apply. */
15845 #ifdef __cplusplus
15846 extern "C"
15847 #endif
15848 char maillock ();
15850 main ()
15852 return maillock ();
15854 return 0;
15856 _ACEOF
15857 rm -f conftest.$ac_objext conftest$ac_exeext
15858 if { (ac_try="$ac_link"
15859 case "(($ac_try" in
15860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15861 *) ac_try_echo=$ac_try;;
15862 esac
15863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15864 (eval "$ac_link") 2>conftest.er1
15865 ac_status=$?
15866 grep -v '^ *+' conftest.er1 >conftest.err
15867 rm -f conftest.er1
15868 cat conftest.err >&5
15869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15870 (exit $ac_status); } && {
15871 test -z "$ac_c_werror_flag" ||
15872 test ! -s conftest.err
15873 } && test -s conftest$ac_exeext &&
15874 $as_test_x conftest$ac_exeext; then
15875 ac_cv_lib_lockfile_maillock=yes
15876 else
15877 echo "$as_me: failed program was:" >&5
15878 sed 's/^/| /' conftest.$ac_ext >&5
15880 ac_cv_lib_lockfile_maillock=no
15883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15884 conftest$ac_exeext conftest.$ac_ext
15885 LIBS=$ac_check_lib_save_LIBS
15887 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15888 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15889 if test $ac_cv_lib_lockfile_maillock = yes; then
15890 cat >>confdefs.h <<_ACEOF
15891 #define HAVE_LIBLOCKFILE 1
15892 _ACEOF
15894 LIBS="-llockfile $LIBS"
15898 # If we have the shared liblockfile, assume we must use it for mail
15899 # locking (e.g. Debian). If we couldn't link against liblockfile
15900 # (no liblockfile.a installed), ensure that we don't need to.
15901 if test "$ac_cv_lib_lockfile_maillock" = no; then
15902 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15903 set dummy liblockfile.so; ac_word=$2
15904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15906 if test "${ac_cv_prog_liblockfile+set}" = set; then
15907 echo $ECHO_N "(cached) $ECHO_C" >&6
15908 else
15909 if test -n "$liblockfile"; then
15910 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15911 else
15912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15913 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15914 for as_dir in $as_dummy
15916 IFS=$as_save_IFS
15917 test -z "$as_dir" && as_dir=.
15918 for ac_exec_ext in '' $ac_executable_extensions; do
15919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15920 ac_cv_prog_liblockfile="yes"
15921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15922 break 2
15924 done
15925 done
15926 IFS=$as_save_IFS
15928 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15931 liblockfile=$ac_cv_prog_liblockfile
15932 if test -n "$liblockfile"; then
15933 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15934 echo "${ECHO_T}$liblockfile" >&6; }
15935 else
15936 { echo "$as_me:$LINENO: result: no" >&5
15937 echo "${ECHO_T}no" >&6; }
15941 if test $ac_cv_prog_liblockfile = yes; then
15942 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15943 This probably means that movemail could lose mail.
15944 There may be a \`development' package to install containing liblockfile." >&5
15945 echo "$as_me: error: Shared liblockfile found but can't link against it.
15946 This probably means that movemail could lose mail.
15947 There may be a \`development' package to install containing liblockfile." >&2;}
15948 { (exit 1); exit 1; }; }
15949 else :
15953 for ac_func in touchlock
15955 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15956 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15957 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15958 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15959 echo $ECHO_N "(cached) $ECHO_C" >&6
15960 else
15961 cat >conftest.$ac_ext <<_ACEOF
15962 /* confdefs.h. */
15963 _ACEOF
15964 cat confdefs.h >>conftest.$ac_ext
15965 cat >>conftest.$ac_ext <<_ACEOF
15966 /* end confdefs.h. */
15967 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15968 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15969 #define $ac_func innocuous_$ac_func
15971 /* System header to define __stub macros and hopefully few prototypes,
15972 which can conflict with char $ac_func (); below.
15973 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15974 <limits.h> exists even on freestanding compilers. */
15976 #ifdef __STDC__
15977 # include <limits.h>
15978 #else
15979 # include <assert.h>
15980 #endif
15982 #undef $ac_func
15984 /* Override any GCC internal prototype to avoid an error.
15985 Use char because int might match the return type of a GCC
15986 builtin and then its argument prototype would still apply. */
15987 #ifdef __cplusplus
15988 extern "C"
15989 #endif
15990 char $ac_func ();
15991 /* The GNU C library defines this for functions which it implements
15992 to always fail with ENOSYS. Some functions are actually named
15993 something starting with __ and the normal name is an alias. */
15994 #if defined __stub_$ac_func || defined __stub___$ac_func
15995 choke me
15996 #endif
15999 main ()
16001 return $ac_func ();
16003 return 0;
16005 _ACEOF
16006 rm -f conftest.$ac_objext conftest$ac_exeext
16007 if { (ac_try="$ac_link"
16008 case "(($ac_try" in
16009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16010 *) ac_try_echo=$ac_try;;
16011 esac
16012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16013 (eval "$ac_link") 2>conftest.er1
16014 ac_status=$?
16015 grep -v '^ *+' conftest.er1 >conftest.err
16016 rm -f conftest.er1
16017 cat conftest.err >&5
16018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019 (exit $ac_status); } && {
16020 test -z "$ac_c_werror_flag" ||
16021 test ! -s conftest.err
16022 } && test -s conftest$ac_exeext &&
16023 $as_test_x conftest$ac_exeext; then
16024 eval "$as_ac_var=yes"
16025 else
16026 echo "$as_me: failed program was:" >&5
16027 sed 's/^/| /' conftest.$ac_ext >&5
16029 eval "$as_ac_var=no"
16032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16033 conftest$ac_exeext conftest.$ac_ext
16035 ac_res=`eval echo '${'$as_ac_var'}'`
16036 { echo "$as_me:$LINENO: result: $ac_res" >&5
16037 echo "${ECHO_T}$ac_res" >&6; }
16038 if test `eval echo '${'$as_ac_var'}'` = yes; then
16039 cat >>confdefs.h <<_ACEOF
16040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16041 _ACEOF
16044 done
16047 for ac_header in maillock.h
16049 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16051 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16054 echo $ECHO_N "(cached) $ECHO_C" >&6
16056 ac_res=`eval echo '${'$as_ac_Header'}'`
16057 { echo "$as_me:$LINENO: result: $ac_res" >&5
16058 echo "${ECHO_T}$ac_res" >&6; }
16059 else
16060 # Is the header compilable?
16061 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16062 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16063 cat >conftest.$ac_ext <<_ACEOF
16064 /* confdefs.h. */
16065 _ACEOF
16066 cat confdefs.h >>conftest.$ac_ext
16067 cat >>conftest.$ac_ext <<_ACEOF
16068 /* end confdefs.h. */
16069 $ac_includes_default
16070 #include <$ac_header>
16071 _ACEOF
16072 rm -f conftest.$ac_objext
16073 if { (ac_try="$ac_compile"
16074 case "(($ac_try" in
16075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16076 *) ac_try_echo=$ac_try;;
16077 esac
16078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16079 (eval "$ac_compile") 2>conftest.er1
16080 ac_status=$?
16081 grep -v '^ *+' conftest.er1 >conftest.err
16082 rm -f conftest.er1
16083 cat conftest.err >&5
16084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085 (exit $ac_status); } && {
16086 test -z "$ac_c_werror_flag" ||
16087 test ! -s conftest.err
16088 } && test -s conftest.$ac_objext; then
16089 ac_header_compiler=yes
16090 else
16091 echo "$as_me: failed program was:" >&5
16092 sed 's/^/| /' conftest.$ac_ext >&5
16094 ac_header_compiler=no
16097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16098 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16099 echo "${ECHO_T}$ac_header_compiler" >&6; }
16101 # Is the header present?
16102 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16103 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16104 cat >conftest.$ac_ext <<_ACEOF
16105 /* confdefs.h. */
16106 _ACEOF
16107 cat confdefs.h >>conftest.$ac_ext
16108 cat >>conftest.$ac_ext <<_ACEOF
16109 /* end confdefs.h. */
16110 #include <$ac_header>
16111 _ACEOF
16112 if { (ac_try="$ac_cpp conftest.$ac_ext"
16113 case "(($ac_try" in
16114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16115 *) ac_try_echo=$ac_try;;
16116 esac
16117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16118 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16119 ac_status=$?
16120 grep -v '^ *+' conftest.er1 >conftest.err
16121 rm -f conftest.er1
16122 cat conftest.err >&5
16123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16124 (exit $ac_status); } >/dev/null && {
16125 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16126 test ! -s conftest.err
16127 }; then
16128 ac_header_preproc=yes
16129 else
16130 echo "$as_me: failed program was:" >&5
16131 sed 's/^/| /' conftest.$ac_ext >&5
16133 ac_header_preproc=no
16136 rm -f conftest.err conftest.$ac_ext
16137 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16138 echo "${ECHO_T}$ac_header_preproc" >&6; }
16140 # So? What about this header?
16141 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16142 yes:no: )
16143 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16144 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16145 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16146 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16147 ac_header_preproc=yes
16149 no:yes:* )
16150 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16151 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16152 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16153 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16154 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16155 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16156 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16157 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16158 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16159 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16160 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16161 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16164 esac
16165 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16168 echo $ECHO_N "(cached) $ECHO_C" >&6
16169 else
16170 eval "$as_ac_Header=\$ac_header_preproc"
16172 ac_res=`eval echo '${'$as_ac_Header'}'`
16173 { echo "$as_me:$LINENO: result: $ac_res" >&5
16174 echo "${ECHO_T}$ac_res" >&6; }
16177 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16178 cat >>confdefs.h <<_ACEOF
16179 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16180 _ACEOF
16184 done
16258 for ac_func in gethostname getdomainname dup2 \
16259 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16260 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16261 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16262 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16263 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16264 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16265 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16266 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
16267 cfmakeraw cfsetspeed
16269 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16270 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16271 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16272 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16273 echo $ECHO_N "(cached) $ECHO_C" >&6
16274 else
16275 cat >conftest.$ac_ext <<_ACEOF
16276 /* confdefs.h. */
16277 _ACEOF
16278 cat confdefs.h >>conftest.$ac_ext
16279 cat >>conftest.$ac_ext <<_ACEOF
16280 /* end confdefs.h. */
16281 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16282 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16283 #define $ac_func innocuous_$ac_func
16285 /* System header to define __stub macros and hopefully few prototypes,
16286 which can conflict with char $ac_func (); below.
16287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16288 <limits.h> exists even on freestanding compilers. */
16290 #ifdef __STDC__
16291 # include <limits.h>
16292 #else
16293 # include <assert.h>
16294 #endif
16296 #undef $ac_func
16298 /* Override any GCC internal prototype to avoid an error.
16299 Use char because int might match the return type of a GCC
16300 builtin and then its argument prototype would still apply. */
16301 #ifdef __cplusplus
16302 extern "C"
16303 #endif
16304 char $ac_func ();
16305 /* The GNU C library defines this for functions which it implements
16306 to always fail with ENOSYS. Some functions are actually named
16307 something starting with __ and the normal name is an alias. */
16308 #if defined __stub_$ac_func || defined __stub___$ac_func
16309 choke me
16310 #endif
16313 main ()
16315 return $ac_func ();
16317 return 0;
16319 _ACEOF
16320 rm -f conftest.$ac_objext conftest$ac_exeext
16321 if { (ac_try="$ac_link"
16322 case "(($ac_try" in
16323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16324 *) ac_try_echo=$ac_try;;
16325 esac
16326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16327 (eval "$ac_link") 2>conftest.er1
16328 ac_status=$?
16329 grep -v '^ *+' conftest.er1 >conftest.err
16330 rm -f conftest.er1
16331 cat conftest.err >&5
16332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333 (exit $ac_status); } && {
16334 test -z "$ac_c_werror_flag" ||
16335 test ! -s conftest.err
16336 } && test -s conftest$ac_exeext &&
16337 $as_test_x conftest$ac_exeext; then
16338 eval "$as_ac_var=yes"
16339 else
16340 echo "$as_me: failed program was:" >&5
16341 sed 's/^/| /' conftest.$ac_ext >&5
16343 eval "$as_ac_var=no"
16346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16347 conftest$ac_exeext conftest.$ac_ext
16349 ac_res=`eval echo '${'$as_ac_var'}'`
16350 { echo "$as_me:$LINENO: result: $ac_res" >&5
16351 echo "${ECHO_T}$ac_res" >&6; }
16352 if test `eval echo '${'$as_ac_var'}'` = yes; then
16353 cat >>confdefs.h <<_ACEOF
16354 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16355 _ACEOF
16358 done
16362 for ac_header in sys/un.h
16364 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16366 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16369 echo $ECHO_N "(cached) $ECHO_C" >&6
16371 ac_res=`eval echo '${'$as_ac_Header'}'`
16372 { echo "$as_me:$LINENO: result: $ac_res" >&5
16373 echo "${ECHO_T}$ac_res" >&6; }
16374 else
16375 # Is the header compilable?
16376 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16377 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
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 $ac_includes_default
16385 #include <$ac_header>
16386 _ACEOF
16387 rm -f conftest.$ac_objext
16388 if { (ac_try="$ac_compile"
16389 case "(($ac_try" in
16390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16391 *) ac_try_echo=$ac_try;;
16392 esac
16393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16394 (eval "$ac_compile") 2>conftest.er1
16395 ac_status=$?
16396 grep -v '^ *+' conftest.er1 >conftest.err
16397 rm -f conftest.er1
16398 cat conftest.err >&5
16399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400 (exit $ac_status); } && {
16401 test -z "$ac_c_werror_flag" ||
16402 test ! -s conftest.err
16403 } && test -s conftest.$ac_objext; then
16404 ac_header_compiler=yes
16405 else
16406 echo "$as_me: failed program was:" >&5
16407 sed 's/^/| /' conftest.$ac_ext >&5
16409 ac_header_compiler=no
16412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16413 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16414 echo "${ECHO_T}$ac_header_compiler" >&6; }
16416 # Is the header present?
16417 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16418 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16419 cat >conftest.$ac_ext <<_ACEOF
16420 /* confdefs.h. */
16421 _ACEOF
16422 cat confdefs.h >>conftest.$ac_ext
16423 cat >>conftest.$ac_ext <<_ACEOF
16424 /* end confdefs.h. */
16425 #include <$ac_header>
16426 _ACEOF
16427 if { (ac_try="$ac_cpp conftest.$ac_ext"
16428 case "(($ac_try" in
16429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16430 *) ac_try_echo=$ac_try;;
16431 esac
16432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16434 ac_status=$?
16435 grep -v '^ *+' conftest.er1 >conftest.err
16436 rm -f conftest.er1
16437 cat conftest.err >&5
16438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); } >/dev/null && {
16440 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16441 test ! -s conftest.err
16442 }; then
16443 ac_header_preproc=yes
16444 else
16445 echo "$as_me: failed program was:" >&5
16446 sed 's/^/| /' conftest.$ac_ext >&5
16448 ac_header_preproc=no
16451 rm -f conftest.err conftest.$ac_ext
16452 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16453 echo "${ECHO_T}$ac_header_preproc" >&6; }
16455 # So? What about this header?
16456 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16457 yes:no: )
16458 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16459 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16461 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16462 ac_header_preproc=yes
16464 no:yes:* )
16465 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16466 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16467 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16468 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16469 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16470 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16471 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16472 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16474 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16475 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16476 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16479 esac
16480 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16483 echo $ECHO_N "(cached) $ECHO_C" >&6
16484 else
16485 eval "$as_ac_Header=\$ac_header_preproc"
16487 ac_res=`eval echo '${'$as_ac_Header'}'`
16488 { echo "$as_me:$LINENO: result: $ac_res" >&5
16489 echo "${ECHO_T}$ac_res" >&6; }
16492 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16493 cat >>confdefs.h <<_ACEOF
16494 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16495 _ACEOF
16499 done
16506 for ac_header in $ac_header_list
16508 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16510 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16512 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16513 echo $ECHO_N "(cached) $ECHO_C" >&6
16515 ac_res=`eval echo '${'$as_ac_Header'}'`
16516 { echo "$as_me:$LINENO: result: $ac_res" >&5
16517 echo "${ECHO_T}$ac_res" >&6; }
16518 else
16519 # Is the header compilable?
16520 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16521 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
16529 #include <$ac_header>
16530 _ACEOF
16531 rm -f conftest.$ac_objext
16532 if { (ac_try="$ac_compile"
16533 case "(($ac_try" in
16534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16535 *) ac_try_echo=$ac_try;;
16536 esac
16537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16538 (eval "$ac_compile") 2>conftest.er1
16539 ac_status=$?
16540 grep -v '^ *+' conftest.er1 >conftest.err
16541 rm -f conftest.er1
16542 cat conftest.err >&5
16543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544 (exit $ac_status); } && {
16545 test -z "$ac_c_werror_flag" ||
16546 test ! -s conftest.err
16547 } && test -s conftest.$ac_objext; then
16548 ac_header_compiler=yes
16549 else
16550 echo "$as_me: failed program was:" >&5
16551 sed 's/^/| /' conftest.$ac_ext >&5
16553 ac_header_compiler=no
16556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16557 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16558 echo "${ECHO_T}$ac_header_compiler" >&6; }
16560 # Is the header present?
16561 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16562 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16563 cat >conftest.$ac_ext <<_ACEOF
16564 /* confdefs.h. */
16565 _ACEOF
16566 cat confdefs.h >>conftest.$ac_ext
16567 cat >>conftest.$ac_ext <<_ACEOF
16568 /* end confdefs.h. */
16569 #include <$ac_header>
16570 _ACEOF
16571 if { (ac_try="$ac_cpp conftest.$ac_ext"
16572 case "(($ac_try" in
16573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16574 *) ac_try_echo=$ac_try;;
16575 esac
16576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16578 ac_status=$?
16579 grep -v '^ *+' conftest.er1 >conftest.err
16580 rm -f conftest.er1
16581 cat conftest.err >&5
16582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16583 (exit $ac_status); } >/dev/null && {
16584 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16585 test ! -s conftest.err
16586 }; then
16587 ac_header_preproc=yes
16588 else
16589 echo "$as_me: failed program was:" >&5
16590 sed 's/^/| /' conftest.$ac_ext >&5
16592 ac_header_preproc=no
16595 rm -f conftest.err conftest.$ac_ext
16596 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16597 echo "${ECHO_T}$ac_header_preproc" >&6; }
16599 # So? What about this header?
16600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16601 yes:no: )
16602 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16603 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16605 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16606 ac_header_preproc=yes
16608 no:yes:* )
16609 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16610 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16611 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16612 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16613 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16614 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16615 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16616 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16618 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16619 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16620 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16623 esac
16624 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16626 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16627 echo $ECHO_N "(cached) $ECHO_C" >&6
16628 else
16629 eval "$as_ac_Header=\$ac_header_preproc"
16631 ac_res=`eval echo '${'$as_ac_Header'}'`
16632 { echo "$as_me:$LINENO: result: $ac_res" >&5
16633 echo "${ECHO_T}$ac_res" >&6; }
16636 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16637 cat >>confdefs.h <<_ACEOF
16638 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16639 _ACEOF
16643 done
16653 for ac_func in $ac_func_list
16655 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16656 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16657 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16658 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16659 echo $ECHO_N "(cached) $ECHO_C" >&6
16660 else
16661 cat >conftest.$ac_ext <<_ACEOF
16662 /* confdefs.h. */
16663 _ACEOF
16664 cat confdefs.h >>conftest.$ac_ext
16665 cat >>conftest.$ac_ext <<_ACEOF
16666 /* end confdefs.h. */
16667 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16669 #define $ac_func innocuous_$ac_func
16671 /* System header to define __stub macros and hopefully few prototypes,
16672 which can conflict with char $ac_func (); below.
16673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16674 <limits.h> exists even on freestanding compilers. */
16676 #ifdef __STDC__
16677 # include <limits.h>
16678 #else
16679 # include <assert.h>
16680 #endif
16682 #undef $ac_func
16684 /* Override any GCC internal prototype to avoid an error.
16685 Use char because int might match the return type of a GCC
16686 builtin and then its argument prototype would still apply. */
16687 #ifdef __cplusplus
16688 extern "C"
16689 #endif
16690 char $ac_func ();
16691 /* The GNU C library defines this for functions which it implements
16692 to always fail with ENOSYS. Some functions are actually named
16693 something starting with __ and the normal name is an alias. */
16694 #if defined __stub_$ac_func || defined __stub___$ac_func
16695 choke me
16696 #endif
16699 main ()
16701 return $ac_func ();
16703 return 0;
16705 _ACEOF
16706 rm -f conftest.$ac_objext conftest$ac_exeext
16707 if { (ac_try="$ac_link"
16708 case "(($ac_try" in
16709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16710 *) ac_try_echo=$ac_try;;
16711 esac
16712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16713 (eval "$ac_link") 2>conftest.er1
16714 ac_status=$?
16715 grep -v '^ *+' conftest.er1 >conftest.err
16716 rm -f conftest.er1
16717 cat conftest.err >&5
16718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719 (exit $ac_status); } && {
16720 test -z "$ac_c_werror_flag" ||
16721 test ! -s conftest.err
16722 } && test -s conftest$ac_exeext &&
16723 $as_test_x conftest$ac_exeext; then
16724 eval "$as_ac_var=yes"
16725 else
16726 echo "$as_me: failed program was:" >&5
16727 sed 's/^/| /' conftest.$ac_ext >&5
16729 eval "$as_ac_var=no"
16732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16733 conftest$ac_exeext conftest.$ac_ext
16735 ac_res=`eval echo '${'$as_ac_var'}'`
16736 { echo "$as_me:$LINENO: result: $ac_res" >&5
16737 echo "${ECHO_T}$ac_res" >&6; }
16738 if test `eval echo '${'$as_ac_var'}'` = yes; then
16739 cat >>confdefs.h <<_ACEOF
16740 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16741 _ACEOF
16744 done
16762 { echo "$as_me:$LINENO: checking for working mktime" >&5
16763 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16764 if test "${ac_cv_func_working_mktime+set}" = set; then
16765 echo $ECHO_N "(cached) $ECHO_C" >&6
16766 else
16767 if test "$cross_compiling" = yes; then
16768 ac_cv_func_working_mktime=no
16769 else
16770 cat >conftest.$ac_ext <<_ACEOF
16771 /* confdefs.h. */
16772 _ACEOF
16773 cat confdefs.h >>conftest.$ac_ext
16774 cat >>conftest.$ac_ext <<_ACEOF
16775 /* end confdefs.h. */
16776 /* Test program from Paul Eggert and Tony Leneis. */
16777 #ifdef TIME_WITH_SYS_TIME
16778 # include <sys/time.h>
16779 # include <time.h>
16780 #else
16781 # ifdef HAVE_SYS_TIME_H
16782 # include <sys/time.h>
16783 # else
16784 # include <time.h>
16785 # endif
16786 #endif
16788 #include <limits.h>
16789 #include <stdlib.h>
16791 #ifdef HAVE_UNISTD_H
16792 # include <unistd.h>
16793 #endif
16795 #ifndef HAVE_ALARM
16796 # define alarm(X) /* empty */
16797 #endif
16799 /* Work around redefinition to rpl_putenv by other config tests. */
16800 #undef putenv
16802 static time_t time_t_max;
16803 static time_t time_t_min;
16805 /* Values we'll use to set the TZ environment variable. */
16806 static char *tz_strings[] = {
16807 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16808 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16810 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16812 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16813 Based on a problem report from Andreas Jaeger. */
16814 static int
16815 spring_forward_gap ()
16817 /* glibc (up to about 1998-10-07) failed this test. */
16818 struct tm tm;
16820 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16821 instead of "TZ=America/Vancouver" in order to detect the bug even
16822 on systems that don't support the Olson extension, or don't have the
16823 full zoneinfo tables installed. */
16824 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16826 tm.tm_year = 98;
16827 tm.tm_mon = 3;
16828 tm.tm_mday = 5;
16829 tm.tm_hour = 2;
16830 tm.tm_min = 0;
16831 tm.tm_sec = 0;
16832 tm.tm_isdst = -1;
16833 return mktime (&tm) != (time_t) -1;
16836 static int
16837 mktime_test1 (now)
16838 time_t now;
16840 struct tm *lt;
16841 return ! (lt = localtime (&now)) || mktime (lt) == now;
16844 static int
16845 mktime_test (now)
16846 time_t now;
16848 return (mktime_test1 (now)
16849 && mktime_test1 ((time_t) (time_t_max - now))
16850 && mktime_test1 ((time_t) (time_t_min + now)));
16853 static int
16854 irix_6_4_bug ()
16856 /* Based on code from Ariel Faigon. */
16857 struct tm tm;
16858 tm.tm_year = 96;
16859 tm.tm_mon = 3;
16860 tm.tm_mday = 0;
16861 tm.tm_hour = 0;
16862 tm.tm_min = 0;
16863 tm.tm_sec = 0;
16864 tm.tm_isdst = -1;
16865 mktime (&tm);
16866 return tm.tm_mon == 2 && tm.tm_mday == 31;
16869 static int
16870 bigtime_test (j)
16871 int j;
16873 struct tm tm;
16874 time_t now;
16875 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16876 now = mktime (&tm);
16877 if (now != (time_t) -1)
16879 struct tm *lt = localtime (&now);
16880 if (! (lt
16881 && lt->tm_year == tm.tm_year
16882 && lt->tm_mon == tm.tm_mon
16883 && lt->tm_mday == tm.tm_mday
16884 && lt->tm_hour == tm.tm_hour
16885 && lt->tm_min == tm.tm_min
16886 && lt->tm_sec == tm.tm_sec
16887 && lt->tm_yday == tm.tm_yday
16888 && lt->tm_wday == tm.tm_wday
16889 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16890 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16891 return 0;
16893 return 1;
16896 static int
16897 year_2050_test ()
16899 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16900 ignoring leap seconds. */
16901 unsigned long int answer = 2527315200UL;
16903 struct tm tm;
16904 time_t t;
16905 tm.tm_year = 2050 - 1900;
16906 tm.tm_mon = 2 - 1;
16907 tm.tm_mday = 1;
16908 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16909 tm.tm_isdst = -1;
16911 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16912 instead of "TZ=America/Vancouver" in order to detect the bug even
16913 on systems that don't support the Olson extension, or don't have the
16914 full zoneinfo tables installed. */
16915 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16917 t = mktime (&tm);
16919 /* Check that the result is either a failure, or close enough
16920 to the correct answer that we can assume the discrepancy is
16921 due to leap seconds. */
16922 return (t == (time_t) -1
16923 || (0 < t && answer - 120 <= t && t <= answer + 120));
16927 main ()
16929 time_t t, delta;
16930 int i, j;
16932 /* This test makes some buggy mktime implementations loop.
16933 Give up after 60 seconds; a mktime slower than that
16934 isn't worth using anyway. */
16935 alarm (60);
16937 for (;;)
16939 t = (time_t_max << 1) + 1;
16940 if (t <= time_t_max)
16941 break;
16942 time_t_max = t;
16944 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
16946 delta = time_t_max / 997; /* a suitable prime number */
16947 for (i = 0; i < N_STRINGS; i++)
16949 if (tz_strings[i])
16950 putenv (tz_strings[i]);
16952 for (t = 0; t <= time_t_max - delta; t += delta)
16953 if (! mktime_test (t))
16954 return 1;
16955 if (! (mktime_test ((time_t) 1)
16956 && mktime_test ((time_t) (60 * 60))
16957 && mktime_test ((time_t) (60 * 60 * 24))))
16958 return 1;
16960 for (j = 1; ; j <<= 1)
16961 if (! bigtime_test (j))
16962 return 1;
16963 else if (INT_MAX / 2 < j)
16964 break;
16965 if (! bigtime_test (INT_MAX))
16966 return 1;
16968 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16970 _ACEOF
16971 rm -f conftest$ac_exeext
16972 if { (ac_try="$ac_link"
16973 case "(($ac_try" in
16974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16975 *) ac_try_echo=$ac_try;;
16976 esac
16977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16978 (eval "$ac_link") 2>&5
16979 ac_status=$?
16980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16981 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16982 { (case "(($ac_try" in
16983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16984 *) ac_try_echo=$ac_try;;
16985 esac
16986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16987 (eval "$ac_try") 2>&5
16988 ac_status=$?
16989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990 (exit $ac_status); }; }; then
16991 ac_cv_func_working_mktime=yes
16992 else
16993 echo "$as_me: program exited with status $ac_status" >&5
16994 echo "$as_me: failed program was:" >&5
16995 sed 's/^/| /' conftest.$ac_ext >&5
16997 ( exit $ac_status )
16998 ac_cv_func_working_mktime=no
17000 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17005 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
17006 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
17007 if test $ac_cv_func_working_mktime = no; then
17008 case " $LIBOBJS " in
17009 *" mktime.$ac_objext "* ) ;;
17010 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
17012 esac
17016 if test "$ac_cv_func_working_mktime" = no; then
17018 cat >>confdefs.h <<\_ACEOF
17019 #define BROKEN_MKTIME 1
17020 _ACEOF
17024 ac_have_func=no # yes means we've found a way to get the load average.
17026 # Make sure getloadavg.c is where it belongs, at configure-time.
17027 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
17028 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
17029 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
17030 { (exit 1); exit 1; }; }
17032 ac_save_LIBS=$LIBS
17034 # Check for getloadavg, but be sure not to touch the cache variable.
17035 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
17036 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
17037 if test "${ac_cv_func_getloadavg+set}" = set; then
17038 echo $ECHO_N "(cached) $ECHO_C" >&6
17039 else
17040 cat >conftest.$ac_ext <<_ACEOF
17041 /* confdefs.h. */
17042 _ACEOF
17043 cat confdefs.h >>conftest.$ac_ext
17044 cat >>conftest.$ac_ext <<_ACEOF
17045 /* end confdefs.h. */
17046 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
17047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17048 #define getloadavg innocuous_getloadavg
17050 /* System header to define __stub macros and hopefully few prototypes,
17051 which can conflict with char getloadavg (); below.
17052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17053 <limits.h> exists even on freestanding compilers. */
17055 #ifdef __STDC__
17056 # include <limits.h>
17057 #else
17058 # include <assert.h>
17059 #endif
17061 #undef getloadavg
17063 /* Override any GCC internal prototype to avoid an error.
17064 Use char because int might match the return type of a GCC
17065 builtin and then its argument prototype would still apply. */
17066 #ifdef __cplusplus
17067 extern "C"
17068 #endif
17069 char getloadavg ();
17070 /* The GNU C library defines this for functions which it implements
17071 to always fail with ENOSYS. Some functions are actually named
17072 something starting with __ and the normal name is an alias. */
17073 #if defined __stub_getloadavg || defined __stub___getloadavg
17074 choke me
17075 #endif
17078 main ()
17080 return getloadavg ();
17082 return 0;
17084 _ACEOF
17085 rm -f conftest.$ac_objext conftest$ac_exeext
17086 if { (ac_try="$ac_link"
17087 case "(($ac_try" in
17088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17089 *) ac_try_echo=$ac_try;;
17090 esac
17091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17092 (eval "$ac_link") 2>conftest.er1
17093 ac_status=$?
17094 grep -v '^ *+' conftest.er1 >conftest.err
17095 rm -f conftest.er1
17096 cat conftest.err >&5
17097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098 (exit $ac_status); } && {
17099 test -z "$ac_c_werror_flag" ||
17100 test ! -s conftest.err
17101 } && test -s conftest$ac_exeext &&
17102 $as_test_x conftest$ac_exeext; then
17103 ac_cv_func_getloadavg=yes
17104 else
17105 echo "$as_me: failed program was:" >&5
17106 sed 's/^/| /' conftest.$ac_ext >&5
17108 ac_cv_func_getloadavg=no
17111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17112 conftest$ac_exeext conftest.$ac_ext
17114 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
17115 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
17116 if test $ac_cv_func_getloadavg = yes; then
17117 exit 0
17118 else
17119 exit 1
17121 ) && ac_have_func=yes
17123 # On HPUX9, an unprivileged user can get load averages through this function.
17125 for ac_func in pstat_getdynamic
17127 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17128 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17129 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17130 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17131 echo $ECHO_N "(cached) $ECHO_C" >&6
17132 else
17133 cat >conftest.$ac_ext <<_ACEOF
17134 /* confdefs.h. */
17135 _ACEOF
17136 cat confdefs.h >>conftest.$ac_ext
17137 cat >>conftest.$ac_ext <<_ACEOF
17138 /* end confdefs.h. */
17139 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17140 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17141 #define $ac_func innocuous_$ac_func
17143 /* System header to define __stub macros and hopefully few prototypes,
17144 which can conflict with char $ac_func (); below.
17145 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17146 <limits.h> exists even on freestanding compilers. */
17148 #ifdef __STDC__
17149 # include <limits.h>
17150 #else
17151 # include <assert.h>
17152 #endif
17154 #undef $ac_func
17156 /* Override any GCC internal prototype to avoid an error.
17157 Use char because int might match the return type of a GCC
17158 builtin and then its argument prototype would still apply. */
17159 #ifdef __cplusplus
17160 extern "C"
17161 #endif
17162 char $ac_func ();
17163 /* The GNU C library defines this for functions which it implements
17164 to always fail with ENOSYS. Some functions are actually named
17165 something starting with __ and the normal name is an alias. */
17166 #if defined __stub_$ac_func || defined __stub___$ac_func
17167 choke me
17168 #endif
17171 main ()
17173 return $ac_func ();
17175 return 0;
17177 _ACEOF
17178 rm -f conftest.$ac_objext conftest$ac_exeext
17179 if { (ac_try="$ac_link"
17180 case "(($ac_try" in
17181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17182 *) ac_try_echo=$ac_try;;
17183 esac
17184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17185 (eval "$ac_link") 2>conftest.er1
17186 ac_status=$?
17187 grep -v '^ *+' conftest.er1 >conftest.err
17188 rm -f conftest.er1
17189 cat conftest.err >&5
17190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191 (exit $ac_status); } && {
17192 test -z "$ac_c_werror_flag" ||
17193 test ! -s conftest.err
17194 } && test -s conftest$ac_exeext &&
17195 $as_test_x conftest$ac_exeext; then
17196 eval "$as_ac_var=yes"
17197 else
17198 echo "$as_me: failed program was:" >&5
17199 sed 's/^/| /' conftest.$ac_ext >&5
17201 eval "$as_ac_var=no"
17204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17205 conftest$ac_exeext conftest.$ac_ext
17207 ac_res=`eval echo '${'$as_ac_var'}'`
17208 { echo "$as_me:$LINENO: result: $ac_res" >&5
17209 echo "${ECHO_T}$ac_res" >&6; }
17210 if test `eval echo '${'$as_ac_var'}'` = yes; then
17211 cat >>confdefs.h <<_ACEOF
17212 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17213 _ACEOF
17216 done
17219 # Solaris has libkstat which does not require root.
17221 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
17222 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
17223 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17224 echo $ECHO_N "(cached) $ECHO_C" >&6
17225 else
17226 ac_check_lib_save_LIBS=$LIBS
17227 LIBS="-lkstat $LIBS"
17228 cat >conftest.$ac_ext <<_ACEOF
17229 /* confdefs.h. */
17230 _ACEOF
17231 cat confdefs.h >>conftest.$ac_ext
17232 cat >>conftest.$ac_ext <<_ACEOF
17233 /* end confdefs.h. */
17235 /* Override any GCC internal prototype to avoid an error.
17236 Use char because int might match the return type of a GCC
17237 builtin and then its argument prototype would still apply. */
17238 #ifdef __cplusplus
17239 extern "C"
17240 #endif
17241 char kstat_open ();
17243 main ()
17245 return kstat_open ();
17247 return 0;
17249 _ACEOF
17250 rm -f conftest.$ac_objext conftest$ac_exeext
17251 if { (ac_try="$ac_link"
17252 case "(($ac_try" in
17253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17254 *) ac_try_echo=$ac_try;;
17255 esac
17256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17257 (eval "$ac_link") 2>conftest.er1
17258 ac_status=$?
17259 grep -v '^ *+' conftest.er1 >conftest.err
17260 rm -f conftest.er1
17261 cat conftest.err >&5
17262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263 (exit $ac_status); } && {
17264 test -z "$ac_c_werror_flag" ||
17265 test ! -s conftest.err
17266 } && test -s conftest$ac_exeext &&
17267 $as_test_x conftest$ac_exeext; then
17268 ac_cv_lib_kstat_kstat_open=yes
17269 else
17270 echo "$as_me: failed program was:" >&5
17271 sed 's/^/| /' conftest.$ac_ext >&5
17273 ac_cv_lib_kstat_kstat_open=no
17276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17277 conftest$ac_exeext conftest.$ac_ext
17278 LIBS=$ac_check_lib_save_LIBS
17280 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
17281 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17282 if test $ac_cv_lib_kstat_kstat_open = yes; then
17283 cat >>confdefs.h <<_ACEOF
17284 #define HAVE_LIBKSTAT 1
17285 _ACEOF
17287 LIBS="-lkstat $LIBS"
17291 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17293 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17294 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17295 # to get the right answer into the cache.
17296 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17297 if test $ac_have_func = no; then
17298 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17299 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
17300 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17301 echo $ECHO_N "(cached) $ECHO_C" >&6
17302 else
17303 ac_check_lib_save_LIBS=$LIBS
17304 LIBS="-lelf $LIBS"
17305 cat >conftest.$ac_ext <<_ACEOF
17306 /* confdefs.h. */
17307 _ACEOF
17308 cat confdefs.h >>conftest.$ac_ext
17309 cat >>conftest.$ac_ext <<_ACEOF
17310 /* end confdefs.h. */
17312 /* Override any GCC internal prototype to avoid an error.
17313 Use char because int might match the return type of a GCC
17314 builtin and then its argument prototype would still apply. */
17315 #ifdef __cplusplus
17316 extern "C"
17317 #endif
17318 char elf_begin ();
17320 main ()
17322 return elf_begin ();
17324 return 0;
17326 _ACEOF
17327 rm -f conftest.$ac_objext conftest$ac_exeext
17328 if { (ac_try="$ac_link"
17329 case "(($ac_try" in
17330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17331 *) ac_try_echo=$ac_try;;
17332 esac
17333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17334 (eval "$ac_link") 2>conftest.er1
17335 ac_status=$?
17336 grep -v '^ *+' conftest.er1 >conftest.err
17337 rm -f conftest.er1
17338 cat conftest.err >&5
17339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340 (exit $ac_status); } && {
17341 test -z "$ac_c_werror_flag" ||
17342 test ! -s conftest.err
17343 } && test -s conftest$ac_exeext &&
17344 $as_test_x conftest$ac_exeext; then
17345 ac_cv_lib_elf_elf_begin=yes
17346 else
17347 echo "$as_me: failed program was:" >&5
17348 sed 's/^/| /' conftest.$ac_ext >&5
17350 ac_cv_lib_elf_elf_begin=no
17353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17354 conftest$ac_exeext conftest.$ac_ext
17355 LIBS=$ac_check_lib_save_LIBS
17357 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
17358 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17359 if test $ac_cv_lib_elf_elf_begin = yes; then
17360 LIBS="-lelf $LIBS"
17364 if test $ac_have_func = no; then
17365 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17366 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
17367 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17368 echo $ECHO_N "(cached) $ECHO_C" >&6
17369 else
17370 ac_check_lib_save_LIBS=$LIBS
17371 LIBS="-lkvm $LIBS"
17372 cat >conftest.$ac_ext <<_ACEOF
17373 /* confdefs.h. */
17374 _ACEOF
17375 cat confdefs.h >>conftest.$ac_ext
17376 cat >>conftest.$ac_ext <<_ACEOF
17377 /* end confdefs.h. */
17379 /* Override any GCC internal prototype to avoid an error.
17380 Use char because int might match the return type of a GCC
17381 builtin and then its argument prototype would still apply. */
17382 #ifdef __cplusplus
17383 extern "C"
17384 #endif
17385 char kvm_open ();
17387 main ()
17389 return kvm_open ();
17391 return 0;
17393 _ACEOF
17394 rm -f conftest.$ac_objext conftest$ac_exeext
17395 if { (ac_try="$ac_link"
17396 case "(($ac_try" in
17397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17398 *) ac_try_echo=$ac_try;;
17399 esac
17400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17401 (eval "$ac_link") 2>conftest.er1
17402 ac_status=$?
17403 grep -v '^ *+' conftest.er1 >conftest.err
17404 rm -f conftest.er1
17405 cat conftest.err >&5
17406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17407 (exit $ac_status); } && {
17408 test -z "$ac_c_werror_flag" ||
17409 test ! -s conftest.err
17410 } && test -s conftest$ac_exeext &&
17411 $as_test_x conftest$ac_exeext; then
17412 ac_cv_lib_kvm_kvm_open=yes
17413 else
17414 echo "$as_me: failed program was:" >&5
17415 sed 's/^/| /' conftest.$ac_ext >&5
17417 ac_cv_lib_kvm_kvm_open=no
17420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17421 conftest$ac_exeext conftest.$ac_ext
17422 LIBS=$ac_check_lib_save_LIBS
17424 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
17425 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17426 if test $ac_cv_lib_kvm_kvm_open = yes; then
17427 LIBS="-lkvm $LIBS"
17430 # Check for the 4.4BSD definition of getloadavg.
17431 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
17432 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
17433 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17434 echo $ECHO_N "(cached) $ECHO_C" >&6
17435 else
17436 ac_check_lib_save_LIBS=$LIBS
17437 LIBS="-lutil $LIBS"
17438 cat >conftest.$ac_ext <<_ACEOF
17439 /* confdefs.h. */
17440 _ACEOF
17441 cat confdefs.h >>conftest.$ac_ext
17442 cat >>conftest.$ac_ext <<_ACEOF
17443 /* end confdefs.h. */
17445 /* Override any GCC internal prototype to avoid an error.
17446 Use char because int might match the return type of a GCC
17447 builtin and then its argument prototype would still apply. */
17448 #ifdef __cplusplus
17449 extern "C"
17450 #endif
17451 char getloadavg ();
17453 main ()
17455 return getloadavg ();
17457 return 0;
17459 _ACEOF
17460 rm -f conftest.$ac_objext conftest$ac_exeext
17461 if { (ac_try="$ac_link"
17462 case "(($ac_try" in
17463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17464 *) ac_try_echo=$ac_try;;
17465 esac
17466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17467 (eval "$ac_link") 2>conftest.er1
17468 ac_status=$?
17469 grep -v '^ *+' conftest.er1 >conftest.err
17470 rm -f conftest.er1
17471 cat conftest.err >&5
17472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473 (exit $ac_status); } && {
17474 test -z "$ac_c_werror_flag" ||
17475 test ! -s conftest.err
17476 } && test -s conftest$ac_exeext &&
17477 $as_test_x conftest$ac_exeext; then
17478 ac_cv_lib_util_getloadavg=yes
17479 else
17480 echo "$as_me: failed program was:" >&5
17481 sed 's/^/| /' conftest.$ac_ext >&5
17483 ac_cv_lib_util_getloadavg=no
17486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17487 conftest$ac_exeext conftest.$ac_ext
17488 LIBS=$ac_check_lib_save_LIBS
17490 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
17491 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17492 if test $ac_cv_lib_util_getloadavg = yes; then
17493 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17498 if test $ac_have_func = no; then
17499 # There is a commonly available library for RS/6000 AIX.
17500 # Since it is not a standard part of AIX, it might be installed locally.
17501 ac_getloadavg_LIBS=$LIBS
17502 LIBS="-L/usr/local/lib $LIBS"
17503 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
17504 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
17505 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17506 echo $ECHO_N "(cached) $ECHO_C" >&6
17507 else
17508 ac_check_lib_save_LIBS=$LIBS
17509 LIBS="-lgetloadavg $LIBS"
17510 cat >conftest.$ac_ext <<_ACEOF
17511 /* confdefs.h. */
17512 _ACEOF
17513 cat confdefs.h >>conftest.$ac_ext
17514 cat >>conftest.$ac_ext <<_ACEOF
17515 /* end confdefs.h. */
17517 /* Override any GCC internal prototype to avoid an error.
17518 Use char because int might match the return type of a GCC
17519 builtin and then its argument prototype would still apply. */
17520 #ifdef __cplusplus
17521 extern "C"
17522 #endif
17523 char getloadavg ();
17525 main ()
17527 return getloadavg ();
17529 return 0;
17531 _ACEOF
17532 rm -f conftest.$ac_objext conftest$ac_exeext
17533 if { (ac_try="$ac_link"
17534 case "(($ac_try" in
17535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17536 *) ac_try_echo=$ac_try;;
17537 esac
17538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17539 (eval "$ac_link") 2>conftest.er1
17540 ac_status=$?
17541 grep -v '^ *+' conftest.er1 >conftest.err
17542 rm -f conftest.er1
17543 cat conftest.err >&5
17544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545 (exit $ac_status); } && {
17546 test -z "$ac_c_werror_flag" ||
17547 test ! -s conftest.err
17548 } && test -s conftest$ac_exeext &&
17549 $as_test_x conftest$ac_exeext; then
17550 ac_cv_lib_getloadavg_getloadavg=yes
17551 else
17552 echo "$as_me: failed program was:" >&5
17553 sed 's/^/| /' conftest.$ac_ext >&5
17555 ac_cv_lib_getloadavg_getloadavg=no
17558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17559 conftest$ac_exeext conftest.$ac_ext
17560 LIBS=$ac_check_lib_save_LIBS
17562 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
17563 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17564 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17565 LIBS="-lgetloadavg $LIBS"
17566 else
17567 LIBS=$ac_getloadavg_LIBS
17572 # Make sure it is really in the library, if we think we found it,
17573 # otherwise set up the replacement function.
17575 for ac_func in getloadavg
17577 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17578 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17579 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17580 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17581 echo $ECHO_N "(cached) $ECHO_C" >&6
17582 else
17583 cat >conftest.$ac_ext <<_ACEOF
17584 /* confdefs.h. */
17585 _ACEOF
17586 cat confdefs.h >>conftest.$ac_ext
17587 cat >>conftest.$ac_ext <<_ACEOF
17588 /* end confdefs.h. */
17589 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17590 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17591 #define $ac_func innocuous_$ac_func
17593 /* System header to define __stub macros and hopefully few prototypes,
17594 which can conflict with char $ac_func (); below.
17595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17596 <limits.h> exists even on freestanding compilers. */
17598 #ifdef __STDC__
17599 # include <limits.h>
17600 #else
17601 # include <assert.h>
17602 #endif
17604 #undef $ac_func
17606 /* Override any GCC internal prototype to avoid an error.
17607 Use char because int might match the return type of a GCC
17608 builtin and then its argument prototype would still apply. */
17609 #ifdef __cplusplus
17610 extern "C"
17611 #endif
17612 char $ac_func ();
17613 /* The GNU C library defines this for functions which it implements
17614 to always fail with ENOSYS. Some functions are actually named
17615 something starting with __ and the normal name is an alias. */
17616 #if defined __stub_$ac_func || defined __stub___$ac_func
17617 choke me
17618 #endif
17621 main ()
17623 return $ac_func ();
17625 return 0;
17627 _ACEOF
17628 rm -f conftest.$ac_objext conftest$ac_exeext
17629 if { (ac_try="$ac_link"
17630 case "(($ac_try" in
17631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17632 *) ac_try_echo=$ac_try;;
17633 esac
17634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17635 (eval "$ac_link") 2>conftest.er1
17636 ac_status=$?
17637 grep -v '^ *+' conftest.er1 >conftest.err
17638 rm -f conftest.er1
17639 cat conftest.err >&5
17640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17641 (exit $ac_status); } && {
17642 test -z "$ac_c_werror_flag" ||
17643 test ! -s conftest.err
17644 } && test -s conftest$ac_exeext &&
17645 $as_test_x conftest$ac_exeext; then
17646 eval "$as_ac_var=yes"
17647 else
17648 echo "$as_me: failed program was:" >&5
17649 sed 's/^/| /' conftest.$ac_ext >&5
17651 eval "$as_ac_var=no"
17654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17655 conftest$ac_exeext conftest.$ac_ext
17657 ac_res=`eval echo '${'$as_ac_var'}'`
17658 { echo "$as_me:$LINENO: result: $ac_res" >&5
17659 echo "${ECHO_T}$ac_res" >&6; }
17660 if test `eval echo '${'$as_ac_var'}'` = yes; then
17661 cat >>confdefs.h <<_ACEOF
17662 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17663 _ACEOF
17665 else
17666 case " $LIBOBJS " in
17667 *" getloadavg.$ac_objext "* ) ;;
17668 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17670 esac
17673 cat >>confdefs.h <<\_ACEOF
17674 #define C_GETLOADAVG 1
17675 _ACEOF
17677 # Figure out what our getloadavg.c needs.
17678 ac_have_func=no
17679 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17680 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17681 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17682 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17683 echo $ECHO_N "(cached) $ECHO_C" >&6
17685 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17686 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17687 else
17688 # Is the header compilable?
17689 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17690 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17691 cat >conftest.$ac_ext <<_ACEOF
17692 /* confdefs.h. */
17693 _ACEOF
17694 cat confdefs.h >>conftest.$ac_ext
17695 cat >>conftest.$ac_ext <<_ACEOF
17696 /* end confdefs.h. */
17697 $ac_includes_default
17698 #include <sys/dg_sys_info.h>
17699 _ACEOF
17700 rm -f conftest.$ac_objext
17701 if { (ac_try="$ac_compile"
17702 case "(($ac_try" in
17703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17704 *) ac_try_echo=$ac_try;;
17705 esac
17706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17707 (eval "$ac_compile") 2>conftest.er1
17708 ac_status=$?
17709 grep -v '^ *+' conftest.er1 >conftest.err
17710 rm -f conftest.er1
17711 cat conftest.err >&5
17712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713 (exit $ac_status); } && {
17714 test -z "$ac_c_werror_flag" ||
17715 test ! -s conftest.err
17716 } && test -s conftest.$ac_objext; then
17717 ac_header_compiler=yes
17718 else
17719 echo "$as_me: failed program was:" >&5
17720 sed 's/^/| /' conftest.$ac_ext >&5
17722 ac_header_compiler=no
17725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17726 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17727 echo "${ECHO_T}$ac_header_compiler" >&6; }
17729 # Is the header present?
17730 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17731 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17732 cat >conftest.$ac_ext <<_ACEOF
17733 /* confdefs.h. */
17734 _ACEOF
17735 cat confdefs.h >>conftest.$ac_ext
17736 cat >>conftest.$ac_ext <<_ACEOF
17737 /* end confdefs.h. */
17738 #include <sys/dg_sys_info.h>
17739 _ACEOF
17740 if { (ac_try="$ac_cpp conftest.$ac_ext"
17741 case "(($ac_try" in
17742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17743 *) ac_try_echo=$ac_try;;
17744 esac
17745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17747 ac_status=$?
17748 grep -v '^ *+' conftest.er1 >conftest.err
17749 rm -f conftest.er1
17750 cat conftest.err >&5
17751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752 (exit $ac_status); } >/dev/null && {
17753 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17754 test ! -s conftest.err
17755 }; then
17756 ac_header_preproc=yes
17757 else
17758 echo "$as_me: failed program was:" >&5
17759 sed 's/^/| /' conftest.$ac_ext >&5
17761 ac_header_preproc=no
17764 rm -f conftest.err conftest.$ac_ext
17765 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17766 echo "${ECHO_T}$ac_header_preproc" >&6; }
17768 # So? What about this header?
17769 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17770 yes:no: )
17771 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17772 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17773 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17774 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17775 ac_header_preproc=yes
17777 no:yes:* )
17778 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17779 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17780 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17781 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17782 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17783 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17784 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17785 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17786 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17787 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17788 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17789 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17792 esac
17793 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17794 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17795 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17796 echo $ECHO_N "(cached) $ECHO_C" >&6
17797 else
17798 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17800 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17801 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17804 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17805 ac_have_func=yes
17807 cat >>confdefs.h <<\_ACEOF
17808 #define DGUX 1
17809 _ACEOF
17812 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17813 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17814 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17815 echo $ECHO_N "(cached) $ECHO_C" >&6
17816 else
17817 ac_check_lib_save_LIBS=$LIBS
17818 LIBS="-ldgc $LIBS"
17819 cat >conftest.$ac_ext <<_ACEOF
17820 /* confdefs.h. */
17821 _ACEOF
17822 cat confdefs.h >>conftest.$ac_ext
17823 cat >>conftest.$ac_ext <<_ACEOF
17824 /* end confdefs.h. */
17826 /* Override any GCC internal prototype to avoid an error.
17827 Use char because int might match the return type of a GCC
17828 builtin and then its argument prototype would still apply. */
17829 #ifdef __cplusplus
17830 extern "C"
17831 #endif
17832 char dg_sys_info ();
17834 main ()
17836 return dg_sys_info ();
17838 return 0;
17840 _ACEOF
17841 rm -f conftest.$ac_objext conftest$ac_exeext
17842 if { (ac_try="$ac_link"
17843 case "(($ac_try" in
17844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17845 *) ac_try_echo=$ac_try;;
17846 esac
17847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17848 (eval "$ac_link") 2>conftest.er1
17849 ac_status=$?
17850 grep -v '^ *+' conftest.er1 >conftest.err
17851 rm -f conftest.er1
17852 cat conftest.err >&5
17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); } && {
17855 test -z "$ac_c_werror_flag" ||
17856 test ! -s conftest.err
17857 } && test -s conftest$ac_exeext &&
17858 $as_test_x conftest$ac_exeext; then
17859 ac_cv_lib_dgc_dg_sys_info=yes
17860 else
17861 echo "$as_me: failed program was:" >&5
17862 sed 's/^/| /' conftest.$ac_ext >&5
17864 ac_cv_lib_dgc_dg_sys_info=no
17867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17868 conftest$ac_exeext conftest.$ac_ext
17869 LIBS=$ac_check_lib_save_LIBS
17871 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17872 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17873 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17874 cat >>confdefs.h <<_ACEOF
17875 #define HAVE_LIBDGC 1
17876 _ACEOF
17878 LIBS="-ldgc $LIBS"
17886 if test "${ac_cv_header_locale_h+set}" = set; then
17887 { echo "$as_me:$LINENO: checking for locale.h" >&5
17888 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17889 if test "${ac_cv_header_locale_h+set}" = set; then
17890 echo $ECHO_N "(cached) $ECHO_C" >&6
17892 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17893 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17894 else
17895 # Is the header compilable?
17896 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17897 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17898 cat >conftest.$ac_ext <<_ACEOF
17899 /* confdefs.h. */
17900 _ACEOF
17901 cat confdefs.h >>conftest.$ac_ext
17902 cat >>conftest.$ac_ext <<_ACEOF
17903 /* end confdefs.h. */
17904 $ac_includes_default
17905 #include <locale.h>
17906 _ACEOF
17907 rm -f conftest.$ac_objext
17908 if { (ac_try="$ac_compile"
17909 case "(($ac_try" in
17910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17911 *) ac_try_echo=$ac_try;;
17912 esac
17913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17914 (eval "$ac_compile") 2>conftest.er1
17915 ac_status=$?
17916 grep -v '^ *+' conftest.er1 >conftest.err
17917 rm -f conftest.er1
17918 cat conftest.err >&5
17919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17920 (exit $ac_status); } && {
17921 test -z "$ac_c_werror_flag" ||
17922 test ! -s conftest.err
17923 } && test -s conftest.$ac_objext; then
17924 ac_header_compiler=yes
17925 else
17926 echo "$as_me: failed program was:" >&5
17927 sed 's/^/| /' conftest.$ac_ext >&5
17929 ac_header_compiler=no
17932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17933 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17934 echo "${ECHO_T}$ac_header_compiler" >&6; }
17936 # Is the header present?
17937 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17938 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17939 cat >conftest.$ac_ext <<_ACEOF
17940 /* confdefs.h. */
17941 _ACEOF
17942 cat confdefs.h >>conftest.$ac_ext
17943 cat >>conftest.$ac_ext <<_ACEOF
17944 /* end confdefs.h. */
17945 #include <locale.h>
17946 _ACEOF
17947 if { (ac_try="$ac_cpp conftest.$ac_ext"
17948 case "(($ac_try" in
17949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17950 *) ac_try_echo=$ac_try;;
17951 esac
17952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17953 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17954 ac_status=$?
17955 grep -v '^ *+' conftest.er1 >conftest.err
17956 rm -f conftest.er1
17957 cat conftest.err >&5
17958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959 (exit $ac_status); } >/dev/null && {
17960 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17961 test ! -s conftest.err
17962 }; then
17963 ac_header_preproc=yes
17964 else
17965 echo "$as_me: failed program was:" >&5
17966 sed 's/^/| /' conftest.$ac_ext >&5
17968 ac_header_preproc=no
17971 rm -f conftest.err conftest.$ac_ext
17972 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17973 echo "${ECHO_T}$ac_header_preproc" >&6; }
17975 # So? What about this header?
17976 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17977 yes:no: )
17978 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17979 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17980 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17981 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17982 ac_header_preproc=yes
17984 no:yes:* )
17985 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17986 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17987 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17988 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17989 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17990 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17991 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17992 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17993 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17994 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17995 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17996 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17999 esac
18000 { echo "$as_me:$LINENO: checking for locale.h" >&5
18001 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
18002 if test "${ac_cv_header_locale_h+set}" = set; then
18003 echo $ECHO_N "(cached) $ECHO_C" >&6
18004 else
18005 ac_cv_header_locale_h=$ac_header_preproc
18007 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
18008 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
18014 for ac_func in setlocale
18016 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18017 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18018 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18019 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18020 echo $ECHO_N "(cached) $ECHO_C" >&6
18021 else
18022 cat >conftest.$ac_ext <<_ACEOF
18023 /* confdefs.h. */
18024 _ACEOF
18025 cat confdefs.h >>conftest.$ac_ext
18026 cat >>conftest.$ac_ext <<_ACEOF
18027 /* end confdefs.h. */
18028 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18030 #define $ac_func innocuous_$ac_func
18032 /* System header to define __stub macros and hopefully few prototypes,
18033 which can conflict with char $ac_func (); below.
18034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18035 <limits.h> exists even on freestanding compilers. */
18037 #ifdef __STDC__
18038 # include <limits.h>
18039 #else
18040 # include <assert.h>
18041 #endif
18043 #undef $ac_func
18045 /* Override any GCC internal prototype to avoid an error.
18046 Use char because int might match the return type of a GCC
18047 builtin and then its argument prototype would still apply. */
18048 #ifdef __cplusplus
18049 extern "C"
18050 #endif
18051 char $ac_func ();
18052 /* The GNU C library defines this for functions which it implements
18053 to always fail with ENOSYS. Some functions are actually named
18054 something starting with __ and the normal name is an alias. */
18055 #if defined __stub_$ac_func || defined __stub___$ac_func
18056 choke me
18057 #endif
18060 main ()
18062 return $ac_func ();
18064 return 0;
18066 _ACEOF
18067 rm -f conftest.$ac_objext conftest$ac_exeext
18068 if { (ac_try="$ac_link"
18069 case "(($ac_try" in
18070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18071 *) ac_try_echo=$ac_try;;
18072 esac
18073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18074 (eval "$ac_link") 2>conftest.er1
18075 ac_status=$?
18076 grep -v '^ *+' conftest.er1 >conftest.err
18077 rm -f conftest.er1
18078 cat conftest.err >&5
18079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18080 (exit $ac_status); } && {
18081 test -z "$ac_c_werror_flag" ||
18082 test ! -s conftest.err
18083 } && test -s conftest$ac_exeext &&
18084 $as_test_x conftest$ac_exeext; then
18085 eval "$as_ac_var=yes"
18086 else
18087 echo "$as_me: failed program was:" >&5
18088 sed 's/^/| /' conftest.$ac_ext >&5
18090 eval "$as_ac_var=no"
18093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18094 conftest$ac_exeext conftest.$ac_ext
18096 ac_res=`eval echo '${'$as_ac_var'}'`
18097 { echo "$as_me:$LINENO: result: $ac_res" >&5
18098 echo "${ECHO_T}$ac_res" >&6; }
18099 if test `eval echo '${'$as_ac_var'}'` = yes; then
18100 cat >>confdefs.h <<_ACEOF
18101 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18102 _ACEOF
18105 done
18108 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18109 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
18110 # Irix 4.0.5F has the header but not the library.
18111 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
18112 ac_have_func=yes
18114 cat >>confdefs.h <<\_ACEOF
18115 #define SVR4 1
18116 _ACEOF
18120 if test $ac_have_func = no; then
18121 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18122 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18123 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18124 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18125 echo $ECHO_N "(cached) $ECHO_C" >&6
18127 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18128 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18129 else
18130 # Is the header compilable?
18131 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
18132 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
18133 cat >conftest.$ac_ext <<_ACEOF
18134 /* confdefs.h. */
18135 _ACEOF
18136 cat confdefs.h >>conftest.$ac_ext
18137 cat >>conftest.$ac_ext <<_ACEOF
18138 /* end confdefs.h. */
18139 $ac_includes_default
18140 #include <inq_stats/cpustats.h>
18141 _ACEOF
18142 rm -f conftest.$ac_objext
18143 if { (ac_try="$ac_compile"
18144 case "(($ac_try" in
18145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18146 *) ac_try_echo=$ac_try;;
18147 esac
18148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18149 (eval "$ac_compile") 2>conftest.er1
18150 ac_status=$?
18151 grep -v '^ *+' conftest.er1 >conftest.err
18152 rm -f conftest.er1
18153 cat conftest.err >&5
18154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155 (exit $ac_status); } && {
18156 test -z "$ac_c_werror_flag" ||
18157 test ! -s conftest.err
18158 } && test -s conftest.$ac_objext; then
18159 ac_header_compiler=yes
18160 else
18161 echo "$as_me: failed program was:" >&5
18162 sed 's/^/| /' conftest.$ac_ext >&5
18164 ac_header_compiler=no
18167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18168 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18169 echo "${ECHO_T}$ac_header_compiler" >&6; }
18171 # Is the header present?
18172 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
18173 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
18174 cat >conftest.$ac_ext <<_ACEOF
18175 /* confdefs.h. */
18176 _ACEOF
18177 cat confdefs.h >>conftest.$ac_ext
18178 cat >>conftest.$ac_ext <<_ACEOF
18179 /* end confdefs.h. */
18180 #include <inq_stats/cpustats.h>
18181 _ACEOF
18182 if { (ac_try="$ac_cpp conftest.$ac_ext"
18183 case "(($ac_try" in
18184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18185 *) ac_try_echo=$ac_try;;
18186 esac
18187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18188 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18189 ac_status=$?
18190 grep -v '^ *+' conftest.er1 >conftest.err
18191 rm -f conftest.er1
18192 cat conftest.err >&5
18193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18194 (exit $ac_status); } >/dev/null && {
18195 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18196 test ! -s conftest.err
18197 }; then
18198 ac_header_preproc=yes
18199 else
18200 echo "$as_me: failed program was:" >&5
18201 sed 's/^/| /' conftest.$ac_ext >&5
18203 ac_header_preproc=no
18206 rm -f conftest.err conftest.$ac_ext
18207 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18208 echo "${ECHO_T}$ac_header_preproc" >&6; }
18210 # So? What about this header?
18211 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18212 yes:no: )
18213 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18214 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18215 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
18216 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
18217 ac_header_preproc=yes
18219 no:yes:* )
18220 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
18221 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
18222 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
18223 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
18224 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
18225 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
18226 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18227 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18228 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
18229 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
18230 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
18231 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
18234 esac
18235 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18236 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18237 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18238 echo $ECHO_N "(cached) $ECHO_C" >&6
18239 else
18240 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18242 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18243 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18246 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18247 ac_have_func=yes
18249 cat >>confdefs.h <<\_ACEOF
18250 #define UMAX 1
18251 _ACEOF
18254 cat >>confdefs.h <<\_ACEOF
18255 #define UMAX4_3 1
18256 _ACEOF
18263 if test $ac_have_func = no; then
18264 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18265 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18266 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18267 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18268 echo $ECHO_N "(cached) $ECHO_C" >&6
18270 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18271 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18272 else
18273 # Is the header compilable?
18274 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
18275 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
18276 cat >conftest.$ac_ext <<_ACEOF
18277 /* confdefs.h. */
18278 _ACEOF
18279 cat confdefs.h >>conftest.$ac_ext
18280 cat >>conftest.$ac_ext <<_ACEOF
18281 /* end confdefs.h. */
18282 $ac_includes_default
18283 #include <sys/cpustats.h>
18284 _ACEOF
18285 rm -f conftest.$ac_objext
18286 if { (ac_try="$ac_compile"
18287 case "(($ac_try" in
18288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18289 *) ac_try_echo=$ac_try;;
18290 esac
18291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18292 (eval "$ac_compile") 2>conftest.er1
18293 ac_status=$?
18294 grep -v '^ *+' conftest.er1 >conftest.err
18295 rm -f conftest.er1
18296 cat conftest.err >&5
18297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298 (exit $ac_status); } && {
18299 test -z "$ac_c_werror_flag" ||
18300 test ! -s conftest.err
18301 } && test -s conftest.$ac_objext; then
18302 ac_header_compiler=yes
18303 else
18304 echo "$as_me: failed program was:" >&5
18305 sed 's/^/| /' conftest.$ac_ext >&5
18307 ac_header_compiler=no
18310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18311 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18312 echo "${ECHO_T}$ac_header_compiler" >&6; }
18314 # Is the header present?
18315 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
18316 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
18317 cat >conftest.$ac_ext <<_ACEOF
18318 /* confdefs.h. */
18319 _ACEOF
18320 cat confdefs.h >>conftest.$ac_ext
18321 cat >>conftest.$ac_ext <<_ACEOF
18322 /* end confdefs.h. */
18323 #include <sys/cpustats.h>
18324 _ACEOF
18325 if { (ac_try="$ac_cpp conftest.$ac_ext"
18326 case "(($ac_try" in
18327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18328 *) ac_try_echo=$ac_try;;
18329 esac
18330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18331 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18332 ac_status=$?
18333 grep -v '^ *+' conftest.er1 >conftest.err
18334 rm -f conftest.er1
18335 cat conftest.err >&5
18336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337 (exit $ac_status); } >/dev/null && {
18338 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18339 test ! -s conftest.err
18340 }; then
18341 ac_header_preproc=yes
18342 else
18343 echo "$as_me: failed program was:" >&5
18344 sed 's/^/| /' conftest.$ac_ext >&5
18346 ac_header_preproc=no
18349 rm -f conftest.err conftest.$ac_ext
18350 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18351 echo "${ECHO_T}$ac_header_preproc" >&6; }
18353 # So? What about this header?
18354 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18355 yes:no: )
18356 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18357 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18358 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
18359 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
18360 ac_header_preproc=yes
18362 no:yes:* )
18363 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
18364 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
18365 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
18366 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
18367 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
18368 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
18369 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18370 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18371 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
18372 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
18373 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
18374 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
18377 esac
18378 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18379 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18380 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18381 echo $ECHO_N "(cached) $ECHO_C" >&6
18382 else
18383 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18385 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18386 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18389 if test $ac_cv_header_sys_cpustats_h = yes; then
18390 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18391 #define UMAX 1
18392 _ACEOF
18399 if test $ac_have_func = no; then
18401 for ac_header in mach/mach.h
18403 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18405 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18407 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18408 echo $ECHO_N "(cached) $ECHO_C" >&6
18410 ac_res=`eval echo '${'$as_ac_Header'}'`
18411 { echo "$as_me:$LINENO: result: $ac_res" >&5
18412 echo "${ECHO_T}$ac_res" >&6; }
18413 else
18414 # Is the header compilable?
18415 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18416 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18417 cat >conftest.$ac_ext <<_ACEOF
18418 /* confdefs.h. */
18419 _ACEOF
18420 cat confdefs.h >>conftest.$ac_ext
18421 cat >>conftest.$ac_ext <<_ACEOF
18422 /* end confdefs.h. */
18423 $ac_includes_default
18424 #include <$ac_header>
18425 _ACEOF
18426 rm -f conftest.$ac_objext
18427 if { (ac_try="$ac_compile"
18428 case "(($ac_try" in
18429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18430 *) ac_try_echo=$ac_try;;
18431 esac
18432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18433 (eval "$ac_compile") 2>conftest.er1
18434 ac_status=$?
18435 grep -v '^ *+' conftest.er1 >conftest.err
18436 rm -f conftest.er1
18437 cat conftest.err >&5
18438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18439 (exit $ac_status); } && {
18440 test -z "$ac_c_werror_flag" ||
18441 test ! -s conftest.err
18442 } && test -s conftest.$ac_objext; then
18443 ac_header_compiler=yes
18444 else
18445 echo "$as_me: failed program was:" >&5
18446 sed 's/^/| /' conftest.$ac_ext >&5
18448 ac_header_compiler=no
18451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18452 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18453 echo "${ECHO_T}$ac_header_compiler" >&6; }
18455 # Is the header present?
18456 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18457 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18458 cat >conftest.$ac_ext <<_ACEOF
18459 /* confdefs.h. */
18460 _ACEOF
18461 cat confdefs.h >>conftest.$ac_ext
18462 cat >>conftest.$ac_ext <<_ACEOF
18463 /* end confdefs.h. */
18464 #include <$ac_header>
18465 _ACEOF
18466 if { (ac_try="$ac_cpp conftest.$ac_ext"
18467 case "(($ac_try" in
18468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18469 *) ac_try_echo=$ac_try;;
18470 esac
18471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18472 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18473 ac_status=$?
18474 grep -v '^ *+' conftest.er1 >conftest.err
18475 rm -f conftest.er1
18476 cat conftest.err >&5
18477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478 (exit $ac_status); } >/dev/null && {
18479 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18480 test ! -s conftest.err
18481 }; then
18482 ac_header_preproc=yes
18483 else
18484 echo "$as_me: failed program was:" >&5
18485 sed 's/^/| /' conftest.$ac_ext >&5
18487 ac_header_preproc=no
18490 rm -f conftest.err conftest.$ac_ext
18491 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18492 echo "${ECHO_T}$ac_header_preproc" >&6; }
18494 # So? What about this header?
18495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18496 yes:no: )
18497 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18498 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18500 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18501 ac_header_preproc=yes
18503 no:yes:* )
18504 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18505 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18506 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18507 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18508 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18509 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18510 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18511 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18513 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18514 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18515 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18518 esac
18519 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18522 echo $ECHO_N "(cached) $ECHO_C" >&6
18523 else
18524 eval "$as_ac_Header=\$ac_header_preproc"
18526 ac_res=`eval echo '${'$as_ac_Header'}'`
18527 { echo "$as_me:$LINENO: result: $ac_res" >&5
18528 echo "${ECHO_T}$ac_res" >&6; }
18531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18532 cat >>confdefs.h <<_ACEOF
18533 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18534 _ACEOF
18538 done
18543 for ac_header in nlist.h
18545 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18546 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18547 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18550 echo $ECHO_N "(cached) $ECHO_C" >&6
18552 ac_res=`eval echo '${'$as_ac_Header'}'`
18553 { echo "$as_me:$LINENO: result: $ac_res" >&5
18554 echo "${ECHO_T}$ac_res" >&6; }
18555 else
18556 # Is the header compilable?
18557 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18558 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18559 cat >conftest.$ac_ext <<_ACEOF
18560 /* confdefs.h. */
18561 _ACEOF
18562 cat confdefs.h >>conftest.$ac_ext
18563 cat >>conftest.$ac_ext <<_ACEOF
18564 /* end confdefs.h. */
18565 $ac_includes_default
18566 #include <$ac_header>
18567 _ACEOF
18568 rm -f conftest.$ac_objext
18569 if { (ac_try="$ac_compile"
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_compile") 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); } && {
18582 test -z "$ac_c_werror_flag" ||
18583 test ! -s conftest.err
18584 } && test -s conftest.$ac_objext; then
18585 ac_header_compiler=yes
18586 else
18587 echo "$as_me: failed program was:" >&5
18588 sed 's/^/| /' conftest.$ac_ext >&5
18590 ac_header_compiler=no
18593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18594 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18595 echo "${ECHO_T}$ac_header_compiler" >&6; }
18597 # Is the header present?
18598 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18599 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18600 cat >conftest.$ac_ext <<_ACEOF
18601 /* confdefs.h. */
18602 _ACEOF
18603 cat confdefs.h >>conftest.$ac_ext
18604 cat >>conftest.$ac_ext <<_ACEOF
18605 /* end confdefs.h. */
18606 #include <$ac_header>
18607 _ACEOF
18608 if { (ac_try="$ac_cpp conftest.$ac_ext"
18609 case "(($ac_try" in
18610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18611 *) ac_try_echo=$ac_try;;
18612 esac
18613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18615 ac_status=$?
18616 grep -v '^ *+' conftest.er1 >conftest.err
18617 rm -f conftest.er1
18618 cat conftest.err >&5
18619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18620 (exit $ac_status); } >/dev/null && {
18621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18622 test ! -s conftest.err
18623 }; then
18624 ac_header_preproc=yes
18625 else
18626 echo "$as_me: failed program was:" >&5
18627 sed 's/^/| /' conftest.$ac_ext >&5
18629 ac_header_preproc=no
18632 rm -f conftest.err conftest.$ac_ext
18633 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18634 echo "${ECHO_T}$ac_header_preproc" >&6; }
18636 # So? What about this header?
18637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18638 yes:no: )
18639 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18640 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18641 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18642 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18643 ac_header_preproc=yes
18645 no:yes:* )
18646 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18647 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18648 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18649 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18650 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18651 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18652 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18653 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18654 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18655 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18656 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18657 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18660 esac
18661 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18664 echo $ECHO_N "(cached) $ECHO_C" >&6
18665 else
18666 eval "$as_ac_Header=\$ac_header_preproc"
18668 ac_res=`eval echo '${'$as_ac_Header'}'`
18669 { echo "$as_me:$LINENO: result: $ac_res" >&5
18670 echo "${ECHO_T}$ac_res" >&6; }
18673 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18674 cat >>confdefs.h <<_ACEOF
18675 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18676 _ACEOF
18677 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18678 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18679 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18680 echo $ECHO_N "(cached) $ECHO_C" >&6
18681 else
18682 cat >conftest.$ac_ext <<_ACEOF
18683 /* confdefs.h. */
18684 _ACEOF
18685 cat confdefs.h >>conftest.$ac_ext
18686 cat >>conftest.$ac_ext <<_ACEOF
18687 /* end confdefs.h. */
18688 #include <nlist.h>
18691 main ()
18693 static struct nlist ac_aggr;
18694 if (ac_aggr.n_un.n_name)
18695 return 0;
18697 return 0;
18699 _ACEOF
18700 rm -f conftest.$ac_objext
18701 if { (ac_try="$ac_compile"
18702 case "(($ac_try" in
18703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18704 *) ac_try_echo=$ac_try;;
18705 esac
18706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18707 (eval "$ac_compile") 2>conftest.er1
18708 ac_status=$?
18709 grep -v '^ *+' conftest.er1 >conftest.err
18710 rm -f conftest.er1
18711 cat conftest.err >&5
18712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18713 (exit $ac_status); } && {
18714 test -z "$ac_c_werror_flag" ||
18715 test ! -s conftest.err
18716 } && test -s conftest.$ac_objext; then
18717 ac_cv_member_struct_nlist_n_un_n_name=yes
18718 else
18719 echo "$as_me: failed program was:" >&5
18720 sed 's/^/| /' conftest.$ac_ext >&5
18722 cat >conftest.$ac_ext <<_ACEOF
18723 /* confdefs.h. */
18724 _ACEOF
18725 cat confdefs.h >>conftest.$ac_ext
18726 cat >>conftest.$ac_ext <<_ACEOF
18727 /* end confdefs.h. */
18728 #include <nlist.h>
18731 main ()
18733 static struct nlist ac_aggr;
18734 if (sizeof ac_aggr.n_un.n_name)
18735 return 0;
18737 return 0;
18739 _ACEOF
18740 rm -f conftest.$ac_objext
18741 if { (ac_try="$ac_compile"
18742 case "(($ac_try" in
18743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18744 *) ac_try_echo=$ac_try;;
18745 esac
18746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18747 (eval "$ac_compile") 2>conftest.er1
18748 ac_status=$?
18749 grep -v '^ *+' conftest.er1 >conftest.err
18750 rm -f conftest.er1
18751 cat conftest.err >&5
18752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753 (exit $ac_status); } && {
18754 test -z "$ac_c_werror_flag" ||
18755 test ! -s conftest.err
18756 } && test -s conftest.$ac_objext; then
18757 ac_cv_member_struct_nlist_n_un_n_name=yes
18758 else
18759 echo "$as_me: failed program was:" >&5
18760 sed 's/^/| /' conftest.$ac_ext >&5
18762 ac_cv_member_struct_nlist_n_un_n_name=no
18765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18770 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18771 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18772 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18774 cat >>confdefs.h <<_ACEOF
18775 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18776 _ACEOF
18779 cat >>confdefs.h <<\_ACEOF
18780 #define NLIST_NAME_UNION 1
18781 _ACEOF
18788 done
18791 done
18794 # Some definitions of getloadavg require that the program be installed setgid.
18795 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18796 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18797 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18798 echo $ECHO_N "(cached) $ECHO_C" >&6
18799 else
18800 cat >conftest.$ac_ext <<_ACEOF
18801 /* confdefs.h. */
18802 _ACEOF
18803 cat confdefs.h >>conftest.$ac_ext
18804 cat >>conftest.$ac_ext <<_ACEOF
18805 /* end confdefs.h. */
18806 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18807 #ifdef LDAV_PRIVILEGED
18808 Yowza Am I SETGID yet
18809 #endif
18810 _ACEOF
18811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18812 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18813 ac_cv_func_getloadavg_setgid=yes
18814 else
18815 ac_cv_func_getloadavg_setgid=no
18817 rm -f conftest*
18820 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18821 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18822 if test $ac_cv_func_getloadavg_setgid = yes; then
18823 NEED_SETGID=true
18825 cat >>confdefs.h <<\_ACEOF
18826 #define GETLOADAVG_PRIVILEGED 1
18827 _ACEOF
18829 else
18830 NEED_SETGID=false
18833 if test $ac_cv_func_getloadavg_setgid = yes; then
18834 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18835 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18836 if test "${ac_cv_group_kmem+set}" = set; then
18837 echo $ECHO_N "(cached) $ECHO_C" >&6
18838 else
18839 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18840 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18841 # If we got an error (system does not support symlinks), try without -L.
18842 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18843 ac_cv_group_kmem=`echo $ac_ls_output \
18844 | sed -ne 's/[ ][ ]*/ /g;
18845 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18846 / /s/.* //;p;'`
18849 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18850 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18851 KMEM_GROUP=$ac_cv_group_kmem
18853 if test "x$ac_save_LIBS" = x; then
18854 GETLOADAVG_LIBS=$LIBS
18855 else
18856 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18858 LIBS=$ac_save_LIBS
18862 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18863 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18864 if test "${ac_cv_sys_largefile_source+set}" = set; then
18865 echo $ECHO_N "(cached) $ECHO_C" >&6
18866 else
18867 while :; do
18868 cat >conftest.$ac_ext <<_ACEOF
18869 /* confdefs.h. */
18870 _ACEOF
18871 cat confdefs.h >>conftest.$ac_ext
18872 cat >>conftest.$ac_ext <<_ACEOF
18873 /* end confdefs.h. */
18874 #include <stdio.h>
18876 main ()
18878 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18880 return 0;
18882 _ACEOF
18883 rm -f conftest.$ac_objext conftest$ac_exeext
18884 if { (ac_try="$ac_link"
18885 case "(($ac_try" in
18886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18887 *) ac_try_echo=$ac_try;;
18888 esac
18889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18890 (eval "$ac_link") 2>conftest.er1
18891 ac_status=$?
18892 grep -v '^ *+' conftest.er1 >conftest.err
18893 rm -f conftest.er1
18894 cat conftest.err >&5
18895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18896 (exit $ac_status); } && {
18897 test -z "$ac_c_werror_flag" ||
18898 test ! -s conftest.err
18899 } && test -s conftest$ac_exeext &&
18900 $as_test_x conftest$ac_exeext; then
18901 ac_cv_sys_largefile_source=no; break
18902 else
18903 echo "$as_me: failed program was:" >&5
18904 sed 's/^/| /' conftest.$ac_ext >&5
18909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18910 conftest$ac_exeext conftest.$ac_ext
18911 cat >conftest.$ac_ext <<_ACEOF
18912 /* confdefs.h. */
18913 _ACEOF
18914 cat confdefs.h >>conftest.$ac_ext
18915 cat >>conftest.$ac_ext <<_ACEOF
18916 /* end confdefs.h. */
18917 #define _LARGEFILE_SOURCE 1
18918 #include <stdio.h>
18920 main ()
18922 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18924 return 0;
18926 _ACEOF
18927 rm -f conftest.$ac_objext conftest$ac_exeext
18928 if { (ac_try="$ac_link"
18929 case "(($ac_try" in
18930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18931 *) ac_try_echo=$ac_try;;
18932 esac
18933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18934 (eval "$ac_link") 2>conftest.er1
18935 ac_status=$?
18936 grep -v '^ *+' conftest.er1 >conftest.err
18937 rm -f conftest.er1
18938 cat conftest.err >&5
18939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18940 (exit $ac_status); } && {
18941 test -z "$ac_c_werror_flag" ||
18942 test ! -s conftest.err
18943 } && test -s conftest$ac_exeext &&
18944 $as_test_x conftest$ac_exeext; then
18945 ac_cv_sys_largefile_source=1; break
18946 else
18947 echo "$as_me: failed program was:" >&5
18948 sed 's/^/| /' conftest.$ac_ext >&5
18953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18954 conftest$ac_exeext conftest.$ac_ext
18955 ac_cv_sys_largefile_source=unknown
18956 break
18957 done
18959 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18960 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18961 case $ac_cv_sys_largefile_source in #(
18962 no | unknown) ;;
18964 cat >>confdefs.h <<_ACEOF
18965 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18966 _ACEOF
18968 esac
18969 rm -f conftest*
18971 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18972 # in glibc 2.1.3, but that breaks too many other things.
18973 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18974 if test $ac_cv_sys_largefile_source != unknown; then
18976 cat >>confdefs.h <<\_ACEOF
18977 #define HAVE_FSEEKO 1
18978 _ACEOF
18983 # Configure getopt.
18984 # getopt.m4 serial 10
18986 # The getopt module assume you want GNU getopt, with getopt_long etc,
18987 # rather than vanilla POSIX getopt. This means your your code should
18988 # always include <getopt.h> for the getopt prototypes.
19000 # Prerequisites of lib/getopt*.
19005 GETOPT_H=
19007 for ac_header in getopt.h
19009 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19011 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19014 echo $ECHO_N "(cached) $ECHO_C" >&6
19016 ac_res=`eval echo '${'$as_ac_Header'}'`
19017 { echo "$as_me:$LINENO: result: $ac_res" >&5
19018 echo "${ECHO_T}$ac_res" >&6; }
19019 else
19020 # Is the header compilable?
19021 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19022 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19023 cat >conftest.$ac_ext <<_ACEOF
19024 /* confdefs.h. */
19025 _ACEOF
19026 cat confdefs.h >>conftest.$ac_ext
19027 cat >>conftest.$ac_ext <<_ACEOF
19028 /* end confdefs.h. */
19029 $ac_includes_default
19030 #include <$ac_header>
19031 _ACEOF
19032 rm -f conftest.$ac_objext
19033 if { (ac_try="$ac_compile"
19034 case "(($ac_try" in
19035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19036 *) ac_try_echo=$ac_try;;
19037 esac
19038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19039 (eval "$ac_compile") 2>conftest.er1
19040 ac_status=$?
19041 grep -v '^ *+' conftest.er1 >conftest.err
19042 rm -f conftest.er1
19043 cat conftest.err >&5
19044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19045 (exit $ac_status); } && {
19046 test -z "$ac_c_werror_flag" ||
19047 test ! -s conftest.err
19048 } && test -s conftest.$ac_objext; then
19049 ac_header_compiler=yes
19050 else
19051 echo "$as_me: failed program was:" >&5
19052 sed 's/^/| /' conftest.$ac_ext >&5
19054 ac_header_compiler=no
19057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19058 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19059 echo "${ECHO_T}$ac_header_compiler" >&6; }
19061 # Is the header present?
19062 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19063 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19064 cat >conftest.$ac_ext <<_ACEOF
19065 /* confdefs.h. */
19066 _ACEOF
19067 cat confdefs.h >>conftest.$ac_ext
19068 cat >>conftest.$ac_ext <<_ACEOF
19069 /* end confdefs.h. */
19070 #include <$ac_header>
19071 _ACEOF
19072 if { (ac_try="$ac_cpp conftest.$ac_ext"
19073 case "(($ac_try" in
19074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19075 *) ac_try_echo=$ac_try;;
19076 esac
19077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19078 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19079 ac_status=$?
19080 grep -v '^ *+' conftest.er1 >conftest.err
19081 rm -f conftest.er1
19082 cat conftest.err >&5
19083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084 (exit $ac_status); } >/dev/null && {
19085 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19086 test ! -s conftest.err
19087 }; then
19088 ac_header_preproc=yes
19089 else
19090 echo "$as_me: failed program was:" >&5
19091 sed 's/^/| /' conftest.$ac_ext >&5
19093 ac_header_preproc=no
19096 rm -f conftest.err conftest.$ac_ext
19097 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19098 echo "${ECHO_T}$ac_header_preproc" >&6; }
19100 # So? What about this header?
19101 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19102 yes:no: )
19103 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19104 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19105 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19106 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19107 ac_header_preproc=yes
19109 no:yes:* )
19110 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19111 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19112 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19113 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19114 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19115 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19116 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19117 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19119 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19120 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19121 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19124 esac
19125 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19128 echo $ECHO_N "(cached) $ECHO_C" >&6
19129 else
19130 eval "$as_ac_Header=\$ac_header_preproc"
19132 ac_res=`eval echo '${'$as_ac_Header'}'`
19133 { echo "$as_me:$LINENO: result: $ac_res" >&5
19134 echo "${ECHO_T}$ac_res" >&6; }
19137 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19138 cat >>confdefs.h <<_ACEOF
19139 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19140 _ACEOF
19142 else
19143 GETOPT_H=getopt.h
19146 done
19148 if test -z "$GETOPT_H"; then
19150 for ac_func in getopt_long_only
19152 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19153 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19154 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19155 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19156 echo $ECHO_N "(cached) $ECHO_C" >&6
19157 else
19158 cat >conftest.$ac_ext <<_ACEOF
19159 /* confdefs.h. */
19160 _ACEOF
19161 cat confdefs.h >>conftest.$ac_ext
19162 cat >>conftest.$ac_ext <<_ACEOF
19163 /* end confdefs.h. */
19164 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19165 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19166 #define $ac_func innocuous_$ac_func
19168 /* System header to define __stub macros and hopefully few prototypes,
19169 which can conflict with char $ac_func (); below.
19170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19171 <limits.h> exists even on freestanding compilers. */
19173 #ifdef __STDC__
19174 # include <limits.h>
19175 #else
19176 # include <assert.h>
19177 #endif
19179 #undef $ac_func
19181 /* Override any GCC internal prototype to avoid an error.
19182 Use char because int might match the return type of a GCC
19183 builtin and then its argument prototype would still apply. */
19184 #ifdef __cplusplus
19185 extern "C"
19186 #endif
19187 char $ac_func ();
19188 /* The GNU C library defines this for functions which it implements
19189 to always fail with ENOSYS. Some functions are actually named
19190 something starting with __ and the normal name is an alias. */
19191 #if defined __stub_$ac_func || defined __stub___$ac_func
19192 choke me
19193 #endif
19196 main ()
19198 return $ac_func ();
19200 return 0;
19202 _ACEOF
19203 rm -f conftest.$ac_objext conftest$ac_exeext
19204 if { (ac_try="$ac_link"
19205 case "(($ac_try" in
19206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19207 *) ac_try_echo=$ac_try;;
19208 esac
19209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19210 (eval "$ac_link") 2>conftest.er1
19211 ac_status=$?
19212 grep -v '^ *+' conftest.er1 >conftest.err
19213 rm -f conftest.er1
19214 cat conftest.err >&5
19215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216 (exit $ac_status); } && {
19217 test -z "$ac_c_werror_flag" ||
19218 test ! -s conftest.err
19219 } && test -s conftest$ac_exeext &&
19220 $as_test_x conftest$ac_exeext; then
19221 eval "$as_ac_var=yes"
19222 else
19223 echo "$as_me: failed program was:" >&5
19224 sed 's/^/| /' conftest.$ac_ext >&5
19226 eval "$as_ac_var=no"
19229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19230 conftest$ac_exeext conftest.$ac_ext
19232 ac_res=`eval echo '${'$as_ac_var'}'`
19233 { echo "$as_me:$LINENO: result: $ac_res" >&5
19234 echo "${ECHO_T}$ac_res" >&6; }
19235 if test `eval echo '${'$as_ac_var'}'` = yes; then
19236 cat >>confdefs.h <<_ACEOF
19237 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19238 _ACEOF
19240 else
19241 GETOPT_H=getopt.h
19243 done
19247 if test -z "$GETOPT_H"; then
19248 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
19249 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
19250 if test "${ac_cv_have_decl_optreset+set}" = set; then
19251 echo $ECHO_N "(cached) $ECHO_C" >&6
19252 else
19253 cat >conftest.$ac_ext <<_ACEOF
19254 /* confdefs.h. */
19255 _ACEOF
19256 cat confdefs.h >>conftest.$ac_ext
19257 cat >>conftest.$ac_ext <<_ACEOF
19258 /* end confdefs.h. */
19259 #include <getopt.h>
19262 main ()
19264 #ifndef optreset
19265 (void) optreset;
19266 #endif
19269 return 0;
19271 _ACEOF
19272 rm -f conftest.$ac_objext
19273 if { (ac_try="$ac_compile"
19274 case "(($ac_try" in
19275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19276 *) ac_try_echo=$ac_try;;
19277 esac
19278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19279 (eval "$ac_compile") 2>conftest.er1
19280 ac_status=$?
19281 grep -v '^ *+' conftest.er1 >conftest.err
19282 rm -f conftest.er1
19283 cat conftest.err >&5
19284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19285 (exit $ac_status); } && {
19286 test -z "$ac_c_werror_flag" ||
19287 test ! -s conftest.err
19288 } && test -s conftest.$ac_objext; then
19289 ac_cv_have_decl_optreset=yes
19290 else
19291 echo "$as_me: failed program was:" >&5
19292 sed 's/^/| /' conftest.$ac_ext >&5
19294 ac_cv_have_decl_optreset=no
19297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19299 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
19300 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19301 if test $ac_cv_have_decl_optreset = yes; then
19302 GETOPT_H=getopt.h
19307 if test -z "$GETOPT_H"; then
19308 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
19309 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
19310 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19311 echo $ECHO_N "(cached) $ECHO_C" >&6
19312 else
19313 if test "$cross_compiling" = yes; then
19314 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
19315 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
19316 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19317 echo $ECHO_N "(cached) $ECHO_C" >&6
19318 else
19319 cat >conftest.$ac_ext <<_ACEOF
19320 /* confdefs.h. */
19321 _ACEOF
19322 cat confdefs.h >>conftest.$ac_ext
19323 cat >>conftest.$ac_ext <<_ACEOF
19324 /* end confdefs.h. */
19325 #include <getopt.h>
19328 main ()
19330 #ifndef getopt_clip
19331 (void) getopt_clip;
19332 #endif
19335 return 0;
19337 _ACEOF
19338 rm -f conftest.$ac_objext
19339 if { (ac_try="$ac_compile"
19340 case "(($ac_try" in
19341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19342 *) ac_try_echo=$ac_try;;
19343 esac
19344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19345 (eval "$ac_compile") 2>conftest.er1
19346 ac_status=$?
19347 grep -v '^ *+' conftest.er1 >conftest.err
19348 rm -f conftest.er1
19349 cat conftest.err >&5
19350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19351 (exit $ac_status); } && {
19352 test -z "$ac_c_werror_flag" ||
19353 test ! -s conftest.err
19354 } && test -s conftest.$ac_objext; then
19355 ac_cv_have_decl_getopt_clip=yes
19356 else
19357 echo "$as_me: failed program was:" >&5
19358 sed 's/^/| /' conftest.$ac_ext >&5
19360 ac_cv_have_decl_getopt_clip=no
19363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19365 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
19366 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19367 if test $ac_cv_have_decl_getopt_clip = yes; then
19368 gl_cv_func_gnu_getopt=no
19369 else
19370 gl_cv_func_gnu_getopt=yes
19373 else
19374 cat >conftest.$ac_ext <<_ACEOF
19375 /* confdefs.h. */
19376 _ACEOF
19377 cat confdefs.h >>conftest.$ac_ext
19378 cat >>conftest.$ac_ext <<_ACEOF
19379 /* end confdefs.h. */
19380 #include <getopt.h>
19382 main ()
19385 char *myargv[3];
19386 myargv[0] = "conftest";
19387 myargv[1] = "-+";
19388 myargv[2] = 0;
19389 return getopt (2, myargv, "+a") != '?';
19392 return 0;
19394 _ACEOF
19395 rm -f conftest$ac_exeext
19396 if { (ac_try="$ac_link"
19397 case "(($ac_try" in
19398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19399 *) ac_try_echo=$ac_try;;
19400 esac
19401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19402 (eval "$ac_link") 2>&5
19403 ac_status=$?
19404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19405 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19406 { (case "(($ac_try" in
19407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19408 *) ac_try_echo=$ac_try;;
19409 esac
19410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19411 (eval "$ac_try") 2>&5
19412 ac_status=$?
19413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19414 (exit $ac_status); }; }; then
19415 gl_cv_func_gnu_getopt=yes
19416 else
19417 echo "$as_me: program exited with status $ac_status" >&5
19418 echo "$as_me: failed program was:" >&5
19419 sed 's/^/| /' conftest.$ac_ext >&5
19421 ( exit $ac_status )
19422 gl_cv_func_gnu_getopt=no
19424 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19429 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
19430 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19431 if test "$gl_cv_func_gnu_getopt" = "no"; then
19432 GETOPT_H=getopt.h
19438 if test -n "$GETOPT_H"; then
19441 GETOPT_H=getopt.h
19443 cat >>confdefs.h <<\_ACEOF
19444 #define __GETOPT_PREFIX rpl_
19445 _ACEOF
19450 GETOPTOBJS='getopt.o getopt1.o'
19457 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
19458 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
19459 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19460 echo $ECHO_N "(cached) $ECHO_C" >&6
19461 else
19462 # Use it with a single arg.
19463 cat >conftest.$ac_ext <<_ACEOF
19464 /* confdefs.h. */
19465 _ACEOF
19466 cat confdefs.h >>conftest.$ac_ext
19467 cat >>conftest.$ac_ext <<_ACEOF
19468 /* end confdefs.h. */
19469 $ac_includes_default
19471 main ()
19473 getpgrp (0);
19475 return 0;
19477 _ACEOF
19478 rm -f conftest.$ac_objext
19479 if { (ac_try="$ac_compile"
19480 case "(($ac_try" in
19481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19482 *) ac_try_echo=$ac_try;;
19483 esac
19484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19485 (eval "$ac_compile") 2>conftest.er1
19486 ac_status=$?
19487 grep -v '^ *+' conftest.er1 >conftest.err
19488 rm -f conftest.er1
19489 cat conftest.err >&5
19490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491 (exit $ac_status); } && {
19492 test -z "$ac_c_werror_flag" ||
19493 test ! -s conftest.err
19494 } && test -s conftest.$ac_objext; then
19495 ac_cv_func_getpgrp_void=no
19496 else
19497 echo "$as_me: failed program was:" >&5
19498 sed 's/^/| /' conftest.$ac_ext >&5
19500 ac_cv_func_getpgrp_void=yes
19503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19506 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
19507 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19508 if test $ac_cv_func_getpgrp_void = yes; then
19510 cat >>confdefs.h <<\_ACEOF
19511 #define GETPGRP_VOID 1
19512 _ACEOF
19518 for ac_func in strftime
19520 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19521 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19522 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19523 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19524 echo $ECHO_N "(cached) $ECHO_C" >&6
19525 else
19526 cat >conftest.$ac_ext <<_ACEOF
19527 /* confdefs.h. */
19528 _ACEOF
19529 cat confdefs.h >>conftest.$ac_ext
19530 cat >>conftest.$ac_ext <<_ACEOF
19531 /* end confdefs.h. */
19532 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19533 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19534 #define $ac_func innocuous_$ac_func
19536 /* System header to define __stub macros and hopefully few prototypes,
19537 which can conflict with char $ac_func (); below.
19538 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19539 <limits.h> exists even on freestanding compilers. */
19541 #ifdef __STDC__
19542 # include <limits.h>
19543 #else
19544 # include <assert.h>
19545 #endif
19547 #undef $ac_func
19549 /* Override any GCC internal prototype to avoid an error.
19550 Use char because int might match the return type of a GCC
19551 builtin and then its argument prototype would still apply. */
19552 #ifdef __cplusplus
19553 extern "C"
19554 #endif
19555 char $ac_func ();
19556 /* The GNU C library defines this for functions which it implements
19557 to always fail with ENOSYS. Some functions are actually named
19558 something starting with __ and the normal name is an alias. */
19559 #if defined __stub_$ac_func || defined __stub___$ac_func
19560 choke me
19561 #endif
19564 main ()
19566 return $ac_func ();
19568 return 0;
19570 _ACEOF
19571 rm -f conftest.$ac_objext conftest$ac_exeext
19572 if { (ac_try="$ac_link"
19573 case "(($ac_try" in
19574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19575 *) ac_try_echo=$ac_try;;
19576 esac
19577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19578 (eval "$ac_link") 2>conftest.er1
19579 ac_status=$?
19580 grep -v '^ *+' conftest.er1 >conftest.err
19581 rm -f conftest.er1
19582 cat conftest.err >&5
19583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19584 (exit $ac_status); } && {
19585 test -z "$ac_c_werror_flag" ||
19586 test ! -s conftest.err
19587 } && test -s conftest$ac_exeext &&
19588 $as_test_x conftest$ac_exeext; then
19589 eval "$as_ac_var=yes"
19590 else
19591 echo "$as_me: failed program was:" >&5
19592 sed 's/^/| /' conftest.$ac_ext >&5
19594 eval "$as_ac_var=no"
19597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19598 conftest$ac_exeext conftest.$ac_ext
19600 ac_res=`eval echo '${'$as_ac_var'}'`
19601 { echo "$as_me:$LINENO: result: $ac_res" >&5
19602 echo "${ECHO_T}$ac_res" >&6; }
19603 if test `eval echo '${'$as_ac_var'}'` = yes; then
19604 cat >>confdefs.h <<_ACEOF
19605 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19606 _ACEOF
19608 else
19609 # strftime is in -lintl on SCO UNIX.
19610 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19611 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
19612 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19613 echo $ECHO_N "(cached) $ECHO_C" >&6
19614 else
19615 ac_check_lib_save_LIBS=$LIBS
19616 LIBS="-lintl $LIBS"
19617 cat >conftest.$ac_ext <<_ACEOF
19618 /* confdefs.h. */
19619 _ACEOF
19620 cat confdefs.h >>conftest.$ac_ext
19621 cat >>conftest.$ac_ext <<_ACEOF
19622 /* end confdefs.h. */
19624 /* Override any GCC internal prototype to avoid an error.
19625 Use char because int might match the return type of a GCC
19626 builtin and then its argument prototype would still apply. */
19627 #ifdef __cplusplus
19628 extern "C"
19629 #endif
19630 char strftime ();
19632 main ()
19634 return strftime ();
19636 return 0;
19638 _ACEOF
19639 rm -f conftest.$ac_objext conftest$ac_exeext
19640 if { (ac_try="$ac_link"
19641 case "(($ac_try" in
19642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19643 *) ac_try_echo=$ac_try;;
19644 esac
19645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19646 (eval "$ac_link") 2>conftest.er1
19647 ac_status=$?
19648 grep -v '^ *+' conftest.er1 >conftest.err
19649 rm -f conftest.er1
19650 cat conftest.err >&5
19651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19652 (exit $ac_status); } && {
19653 test -z "$ac_c_werror_flag" ||
19654 test ! -s conftest.err
19655 } && test -s conftest$ac_exeext &&
19656 $as_test_x conftest$ac_exeext; then
19657 ac_cv_lib_intl_strftime=yes
19658 else
19659 echo "$as_me: failed program was:" >&5
19660 sed 's/^/| /' conftest.$ac_ext >&5
19662 ac_cv_lib_intl_strftime=no
19665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19666 conftest$ac_exeext conftest.$ac_ext
19667 LIBS=$ac_check_lib_save_LIBS
19669 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19670 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19671 if test $ac_cv_lib_intl_strftime = yes; then
19672 cat >>confdefs.h <<\_ACEOF
19673 #define HAVE_STRFTIME 1
19674 _ACEOF
19676 LIBS="-lintl $LIBS"
19680 done
19683 # UNIX98 PTYs.
19685 for ac_func in grantpt
19687 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19688 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19689 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19690 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19691 echo $ECHO_N "(cached) $ECHO_C" >&6
19692 else
19693 cat >conftest.$ac_ext <<_ACEOF
19694 /* confdefs.h. */
19695 _ACEOF
19696 cat confdefs.h >>conftest.$ac_ext
19697 cat >>conftest.$ac_ext <<_ACEOF
19698 /* end confdefs.h. */
19699 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19700 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19701 #define $ac_func innocuous_$ac_func
19703 /* System header to define __stub macros and hopefully few prototypes,
19704 which can conflict with char $ac_func (); below.
19705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19706 <limits.h> exists even on freestanding compilers. */
19708 #ifdef __STDC__
19709 # include <limits.h>
19710 #else
19711 # include <assert.h>
19712 #endif
19714 #undef $ac_func
19716 /* Override any GCC internal prototype to avoid an error.
19717 Use char because int might match the return type of a GCC
19718 builtin and then its argument prototype would still apply. */
19719 #ifdef __cplusplus
19720 extern "C"
19721 #endif
19722 char $ac_func ();
19723 /* The GNU C library defines this for functions which it implements
19724 to always fail with ENOSYS. Some functions are actually named
19725 something starting with __ and the normal name is an alias. */
19726 #if defined __stub_$ac_func || defined __stub___$ac_func
19727 choke me
19728 #endif
19731 main ()
19733 return $ac_func ();
19735 return 0;
19737 _ACEOF
19738 rm -f conftest.$ac_objext conftest$ac_exeext
19739 if { (ac_try="$ac_link"
19740 case "(($ac_try" in
19741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19742 *) ac_try_echo=$ac_try;;
19743 esac
19744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19745 (eval "$ac_link") 2>conftest.er1
19746 ac_status=$?
19747 grep -v '^ *+' conftest.er1 >conftest.err
19748 rm -f conftest.er1
19749 cat conftest.err >&5
19750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751 (exit $ac_status); } && {
19752 test -z "$ac_c_werror_flag" ||
19753 test ! -s conftest.err
19754 } && test -s conftest$ac_exeext &&
19755 $as_test_x conftest$ac_exeext; then
19756 eval "$as_ac_var=yes"
19757 else
19758 echo "$as_me: failed program was:" >&5
19759 sed 's/^/| /' conftest.$ac_ext >&5
19761 eval "$as_ac_var=no"
19764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19765 conftest$ac_exeext conftest.$ac_ext
19767 ac_res=`eval echo '${'$as_ac_var'}'`
19768 { echo "$as_me:$LINENO: result: $ac_res" >&5
19769 echo "${ECHO_T}$ac_res" >&6; }
19770 if test `eval echo '${'$as_ac_var'}'` = yes; then
19771 cat >>confdefs.h <<_ACEOF
19772 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19773 _ACEOF
19776 done
19779 # PTY-related GNU extensions.
19781 for ac_func in getpt
19783 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19784 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19785 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19786 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19787 echo $ECHO_N "(cached) $ECHO_C" >&6
19788 else
19789 cat >conftest.$ac_ext <<_ACEOF
19790 /* confdefs.h. */
19791 _ACEOF
19792 cat confdefs.h >>conftest.$ac_ext
19793 cat >>conftest.$ac_ext <<_ACEOF
19794 /* end confdefs.h. */
19795 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19796 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19797 #define $ac_func innocuous_$ac_func
19799 /* System header to define __stub macros and hopefully few prototypes,
19800 which can conflict with char $ac_func (); below.
19801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19802 <limits.h> exists even on freestanding compilers. */
19804 #ifdef __STDC__
19805 # include <limits.h>
19806 #else
19807 # include <assert.h>
19808 #endif
19810 #undef $ac_func
19812 /* Override any GCC internal prototype to avoid an error.
19813 Use char because int might match the return type of a GCC
19814 builtin and then its argument prototype would still apply. */
19815 #ifdef __cplusplus
19816 extern "C"
19817 #endif
19818 char $ac_func ();
19819 /* The GNU C library defines this for functions which it implements
19820 to always fail with ENOSYS. Some functions are actually named
19821 something starting with __ and the normal name is an alias. */
19822 #if defined __stub_$ac_func || defined __stub___$ac_func
19823 choke me
19824 #endif
19827 main ()
19829 return $ac_func ();
19831 return 0;
19833 _ACEOF
19834 rm -f conftest.$ac_objext conftest$ac_exeext
19835 if { (ac_try="$ac_link"
19836 case "(($ac_try" in
19837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19838 *) ac_try_echo=$ac_try;;
19839 esac
19840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19841 (eval "$ac_link") 2>conftest.er1
19842 ac_status=$?
19843 grep -v '^ *+' conftest.er1 >conftest.err
19844 rm -f conftest.er1
19845 cat conftest.err >&5
19846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847 (exit $ac_status); } && {
19848 test -z "$ac_c_werror_flag" ||
19849 test ! -s conftest.err
19850 } && test -s conftest$ac_exeext &&
19851 $as_test_x conftest$ac_exeext; then
19852 eval "$as_ac_var=yes"
19853 else
19854 echo "$as_me: failed program was:" >&5
19855 sed 's/^/| /' conftest.$ac_ext >&5
19857 eval "$as_ac_var=no"
19860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19861 conftest$ac_exeext conftest.$ac_ext
19863 ac_res=`eval echo '${'$as_ac_var'}'`
19864 { echo "$as_me:$LINENO: result: $ac_res" >&5
19865 echo "${ECHO_T}$ac_res" >&6; }
19866 if test `eval echo '${'$as_ac_var'}'` = yes; then
19867 cat >>confdefs.h <<_ACEOF
19868 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19869 _ACEOF
19872 done
19875 # Check this now, so that we will NOT find the above functions in ncurses.
19876 # That is because we have not set up to link ncurses in lib-src.
19877 # It's better to believe a function is not available
19878 # than to expect to find it in ncurses.
19880 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19881 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19882 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19883 echo $ECHO_N "(cached) $ECHO_C" >&6
19884 else
19885 ac_check_lib_save_LIBS=$LIBS
19886 LIBS="-lncurses $LIBS"
19887 cat >conftest.$ac_ext <<_ACEOF
19888 /* confdefs.h. */
19889 _ACEOF
19890 cat confdefs.h >>conftest.$ac_ext
19891 cat >>conftest.$ac_ext <<_ACEOF
19892 /* end confdefs.h. */
19894 /* Override any GCC internal prototype to avoid an error.
19895 Use char because int might match the return type of a GCC
19896 builtin and then its argument prototype would still apply. */
19897 #ifdef __cplusplus
19898 extern "C"
19899 #endif
19900 char tparm ();
19902 main ()
19904 return tparm ();
19906 return 0;
19908 _ACEOF
19909 rm -f conftest.$ac_objext conftest$ac_exeext
19910 if { (ac_try="$ac_link"
19911 case "(($ac_try" in
19912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19913 *) ac_try_echo=$ac_try;;
19914 esac
19915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19916 (eval "$ac_link") 2>conftest.er1
19917 ac_status=$?
19918 grep -v '^ *+' conftest.er1 >conftest.err
19919 rm -f conftest.er1
19920 cat conftest.err >&5
19921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922 (exit $ac_status); } && {
19923 test -z "$ac_c_werror_flag" ||
19924 test ! -s conftest.err
19925 } && test -s conftest$ac_exeext &&
19926 $as_test_x conftest$ac_exeext; then
19927 ac_cv_lib_ncurses_tparm=yes
19928 else
19929 echo "$as_me: failed program was:" >&5
19930 sed 's/^/| /' conftest.$ac_ext >&5
19932 ac_cv_lib_ncurses_tparm=no
19935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19936 conftest$ac_exeext conftest.$ac_ext
19937 LIBS=$ac_check_lib_save_LIBS
19939 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19940 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19941 if test $ac_cv_lib_ncurses_tparm = yes; then
19942 cat >>confdefs.h <<_ACEOF
19943 #define HAVE_LIBNCURSES 1
19944 _ACEOF
19946 LIBS="-lncurses $LIBS"
19951 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19953 resolv=no
19954 cat >conftest.$ac_ext <<_ACEOF
19955 /* confdefs.h. */
19956 _ACEOF
19957 cat confdefs.h >>conftest.$ac_ext
19958 cat >>conftest.$ac_ext <<_ACEOF
19959 /* end confdefs.h. */
19960 #include <netinet/in.h>
19961 #include <arpa/nameser.h>
19962 #include <resolv.h>
19964 main ()
19966 return res_init();
19968 return 0;
19970 _ACEOF
19971 rm -f conftest.$ac_objext conftest$ac_exeext
19972 if { (ac_try="$ac_link"
19973 case "(($ac_try" in
19974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19975 *) ac_try_echo=$ac_try;;
19976 esac
19977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19978 (eval "$ac_link") 2>conftest.er1
19979 ac_status=$?
19980 grep -v '^ *+' conftest.er1 >conftest.err
19981 rm -f conftest.er1
19982 cat conftest.err >&5
19983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984 (exit $ac_status); } && {
19985 test -z "$ac_c_werror_flag" ||
19986 test ! -s conftest.err
19987 } && test -s conftest$ac_exeext &&
19988 $as_test_x conftest$ac_exeext; then
19989 have_res_init=yes
19990 else
19991 echo "$as_me: failed program was:" >&5
19992 sed 's/^/| /' conftest.$ac_ext >&5
19994 have_res_init=no
19997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19998 conftest$ac_exeext conftest.$ac_ext
19999 if test "$have_res_init" = no; then
20000 OLIBS="$LIBS"
20001 LIBS="$LIBS -lresolv"
20002 { echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
20003 echo $ECHO_N "checking for res_init with -lresolv... $ECHO_C" >&6; }
20004 cat >conftest.$ac_ext <<_ACEOF
20005 /* confdefs.h. */
20006 _ACEOF
20007 cat confdefs.h >>conftest.$ac_ext
20008 cat >>conftest.$ac_ext <<_ACEOF
20009 /* end confdefs.h. */
20010 #include <netinet/in.h>
20011 #include <arpa/nameser.h>
20012 #include <resolv.h>
20014 main ()
20016 return res_init();
20018 return 0;
20020 _ACEOF
20021 rm -f conftest.$ac_objext conftest$ac_exeext
20022 if { (ac_try="$ac_link"
20023 case "(($ac_try" in
20024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20025 *) ac_try_echo=$ac_try;;
20026 esac
20027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20028 (eval "$ac_link") 2>conftest.er1
20029 ac_status=$?
20030 grep -v '^ *+' conftest.er1 >conftest.err
20031 rm -f conftest.er1
20032 cat conftest.err >&5
20033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20034 (exit $ac_status); } && {
20035 test -z "$ac_c_werror_flag" ||
20036 test ! -s conftest.err
20037 } && test -s conftest$ac_exeext &&
20038 $as_test_x conftest$ac_exeext; then
20039 have_res_init=yes
20040 else
20041 echo "$as_me: failed program was:" >&5
20042 sed 's/^/| /' conftest.$ac_ext >&5
20044 have_res_init=no
20047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20048 conftest$ac_exeext conftest.$ac_ext
20049 { echo "$as_me:$LINENO: result: $have_res_init" >&5
20050 echo "${ECHO_T}$have_res_init" >&6; }
20051 if test "$have_res_init" = yes ; then
20052 resolv=yes
20054 LIBS="$OLIBS"
20057 if test "$have_res_init" = yes; then
20059 cat >>confdefs.h <<\_ACEOF
20060 #define HAVE_RES_INIT 1
20061 _ACEOF
20065 # Do we need the Hesiod library to provide the support routines?
20066 if test "$with_hesiod" != no ; then
20067 # Don't set $LIBS here -- see comments above.
20068 { echo "$as_me:$LINENO: checking for res_send" >&5
20069 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
20070 if test "${ac_cv_func_res_send+set}" = set; then
20071 echo $ECHO_N "(cached) $ECHO_C" >&6
20072 else
20073 cat >conftest.$ac_ext <<_ACEOF
20074 /* confdefs.h. */
20075 _ACEOF
20076 cat confdefs.h >>conftest.$ac_ext
20077 cat >>conftest.$ac_ext <<_ACEOF
20078 /* end confdefs.h. */
20079 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
20080 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20081 #define res_send innocuous_res_send
20083 /* System header to define __stub macros and hopefully few prototypes,
20084 which can conflict with char res_send (); below.
20085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20086 <limits.h> exists even on freestanding compilers. */
20088 #ifdef __STDC__
20089 # include <limits.h>
20090 #else
20091 # include <assert.h>
20092 #endif
20094 #undef res_send
20096 /* Override any GCC internal prototype to avoid an error.
20097 Use char because int might match the return type of a GCC
20098 builtin and then its argument prototype would still apply. */
20099 #ifdef __cplusplus
20100 extern "C"
20101 #endif
20102 char res_send ();
20103 /* The GNU C library defines this for functions which it implements
20104 to always fail with ENOSYS. Some functions are actually named
20105 something starting with __ and the normal name is an alias. */
20106 #if defined __stub_res_send || defined __stub___res_send
20107 choke me
20108 #endif
20111 main ()
20113 return res_send ();
20115 return 0;
20117 _ACEOF
20118 rm -f conftest.$ac_objext conftest$ac_exeext
20119 if { (ac_try="$ac_link"
20120 case "(($ac_try" in
20121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20122 *) ac_try_echo=$ac_try;;
20123 esac
20124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20125 (eval "$ac_link") 2>conftest.er1
20126 ac_status=$?
20127 grep -v '^ *+' conftest.er1 >conftest.err
20128 rm -f conftest.er1
20129 cat conftest.err >&5
20130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20131 (exit $ac_status); } && {
20132 test -z "$ac_c_werror_flag" ||
20133 test ! -s conftest.err
20134 } && test -s conftest$ac_exeext &&
20135 $as_test_x conftest$ac_exeext; then
20136 ac_cv_func_res_send=yes
20137 else
20138 echo "$as_me: failed program was:" >&5
20139 sed 's/^/| /' conftest.$ac_ext >&5
20141 ac_cv_func_res_send=no
20144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20145 conftest$ac_exeext conftest.$ac_ext
20147 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
20148 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
20149 if test $ac_cv_func_res_send = yes; then
20151 else
20152 { echo "$as_me:$LINENO: checking for __res_send" >&5
20153 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
20154 if test "${ac_cv_func___res_send+set}" = set; then
20155 echo $ECHO_N "(cached) $ECHO_C" >&6
20156 else
20157 cat >conftest.$ac_ext <<_ACEOF
20158 /* confdefs.h. */
20159 _ACEOF
20160 cat confdefs.h >>conftest.$ac_ext
20161 cat >>conftest.$ac_ext <<_ACEOF
20162 /* end confdefs.h. */
20163 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
20164 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20165 #define __res_send innocuous___res_send
20167 /* System header to define __stub macros and hopefully few prototypes,
20168 which can conflict with char __res_send (); below.
20169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20170 <limits.h> exists even on freestanding compilers. */
20172 #ifdef __STDC__
20173 # include <limits.h>
20174 #else
20175 # include <assert.h>
20176 #endif
20178 #undef __res_send
20180 /* Override any GCC internal prototype to avoid an error.
20181 Use char because int might match the return type of a GCC
20182 builtin and then its argument prototype would still apply. */
20183 #ifdef __cplusplus
20184 extern "C"
20185 #endif
20186 char __res_send ();
20187 /* The GNU C library defines this for functions which it implements
20188 to always fail with ENOSYS. Some functions are actually named
20189 something starting with __ and the normal name is an alias. */
20190 #if defined __stub___res_send || defined __stub_____res_send
20191 choke me
20192 #endif
20195 main ()
20197 return __res_send ();
20199 return 0;
20201 _ACEOF
20202 rm -f conftest.$ac_objext conftest$ac_exeext
20203 if { (ac_try="$ac_link"
20204 case "(($ac_try" in
20205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20206 *) ac_try_echo=$ac_try;;
20207 esac
20208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20209 (eval "$ac_link") 2>conftest.er1
20210 ac_status=$?
20211 grep -v '^ *+' conftest.er1 >conftest.err
20212 rm -f conftest.er1
20213 cat conftest.err >&5
20214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215 (exit $ac_status); } && {
20216 test -z "$ac_c_werror_flag" ||
20217 test ! -s conftest.err
20218 } && test -s conftest$ac_exeext &&
20219 $as_test_x conftest$ac_exeext; then
20220 ac_cv_func___res_send=yes
20221 else
20222 echo "$as_me: failed program was:" >&5
20223 sed 's/^/| /' conftest.$ac_ext >&5
20225 ac_cv_func___res_send=no
20228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20229 conftest$ac_exeext conftest.$ac_ext
20231 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
20232 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
20233 if test $ac_cv_func___res_send = yes; then
20235 else
20236 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
20237 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
20238 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20239 echo $ECHO_N "(cached) $ECHO_C" >&6
20240 else
20241 ac_check_lib_save_LIBS=$LIBS
20242 LIBS="-lresolv $LIBS"
20243 cat >conftest.$ac_ext <<_ACEOF
20244 /* confdefs.h. */
20245 _ACEOF
20246 cat confdefs.h >>conftest.$ac_ext
20247 cat >>conftest.$ac_ext <<_ACEOF
20248 /* end confdefs.h. */
20250 /* Override any GCC internal prototype to avoid an error.
20251 Use char because int might match the return type of a GCC
20252 builtin and then its argument prototype would still apply. */
20253 #ifdef __cplusplus
20254 extern "C"
20255 #endif
20256 char res_send ();
20258 main ()
20260 return res_send ();
20262 return 0;
20264 _ACEOF
20265 rm -f conftest.$ac_objext conftest$ac_exeext
20266 if { (ac_try="$ac_link"
20267 case "(($ac_try" in
20268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20269 *) ac_try_echo=$ac_try;;
20270 esac
20271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20272 (eval "$ac_link") 2>conftest.er1
20273 ac_status=$?
20274 grep -v '^ *+' conftest.er1 >conftest.err
20275 rm -f conftest.er1
20276 cat conftest.err >&5
20277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278 (exit $ac_status); } && {
20279 test -z "$ac_c_werror_flag" ||
20280 test ! -s conftest.err
20281 } && test -s conftest$ac_exeext &&
20282 $as_test_x conftest$ac_exeext; then
20283 ac_cv_lib_resolv_res_send=yes
20284 else
20285 echo "$as_me: failed program was:" >&5
20286 sed 's/^/| /' conftest.$ac_ext >&5
20288 ac_cv_lib_resolv_res_send=no
20291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20292 conftest$ac_exeext conftest.$ac_ext
20293 LIBS=$ac_check_lib_save_LIBS
20295 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
20296 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20297 if test $ac_cv_lib_resolv_res_send = yes; then
20298 resolv=yes
20299 else
20300 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
20301 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
20302 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20303 echo $ECHO_N "(cached) $ECHO_C" >&6
20304 else
20305 ac_check_lib_save_LIBS=$LIBS
20306 LIBS="-lresolv $LIBS"
20307 cat >conftest.$ac_ext <<_ACEOF
20308 /* confdefs.h. */
20309 _ACEOF
20310 cat confdefs.h >>conftest.$ac_ext
20311 cat >>conftest.$ac_ext <<_ACEOF
20312 /* end confdefs.h. */
20314 /* Override any GCC internal prototype to avoid an error.
20315 Use char because int might match the return type of a GCC
20316 builtin and then its argument prototype would still apply. */
20317 #ifdef __cplusplus
20318 extern "C"
20319 #endif
20320 char __res_send ();
20322 main ()
20324 return __res_send ();
20326 return 0;
20328 _ACEOF
20329 rm -f conftest.$ac_objext conftest$ac_exeext
20330 if { (ac_try="$ac_link"
20331 case "(($ac_try" in
20332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20333 *) ac_try_echo=$ac_try;;
20334 esac
20335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20336 (eval "$ac_link") 2>conftest.er1
20337 ac_status=$?
20338 grep -v '^ *+' conftest.er1 >conftest.err
20339 rm -f conftest.er1
20340 cat conftest.err >&5
20341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342 (exit $ac_status); } && {
20343 test -z "$ac_c_werror_flag" ||
20344 test ! -s conftest.err
20345 } && test -s conftest$ac_exeext &&
20346 $as_test_x conftest$ac_exeext; then
20347 ac_cv_lib_resolv___res_send=yes
20348 else
20349 echo "$as_me: failed program was:" >&5
20350 sed 's/^/| /' conftest.$ac_ext >&5
20352 ac_cv_lib_resolv___res_send=no
20355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20356 conftest$ac_exeext conftest.$ac_ext
20357 LIBS=$ac_check_lib_save_LIBS
20359 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
20360 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20361 if test $ac_cv_lib_resolv___res_send = yes; then
20362 resolv=yes
20371 if test "$resolv" = yes ; then
20372 RESOLVLIB=-lresolv
20373 else
20374 RESOLVLIB=
20376 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
20377 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
20378 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20379 echo $ECHO_N "(cached) $ECHO_C" >&6
20380 else
20381 cat >conftest.$ac_ext <<_ACEOF
20382 /* confdefs.h. */
20383 _ACEOF
20384 cat confdefs.h >>conftest.$ac_ext
20385 cat >>conftest.$ac_ext <<_ACEOF
20386 /* end confdefs.h. */
20387 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20388 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20389 #define hes_getmailhost innocuous_hes_getmailhost
20391 /* System header to define __stub macros and hopefully few prototypes,
20392 which can conflict with char hes_getmailhost (); below.
20393 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20394 <limits.h> exists even on freestanding compilers. */
20396 #ifdef __STDC__
20397 # include <limits.h>
20398 #else
20399 # include <assert.h>
20400 #endif
20402 #undef hes_getmailhost
20404 /* Override any GCC internal prototype to avoid an error.
20405 Use char because int might match the return type of a GCC
20406 builtin and then its argument prototype would still apply. */
20407 #ifdef __cplusplus
20408 extern "C"
20409 #endif
20410 char hes_getmailhost ();
20411 /* The GNU C library defines this for functions which it implements
20412 to always fail with ENOSYS. Some functions are actually named
20413 something starting with __ and the normal name is an alias. */
20414 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20415 choke me
20416 #endif
20419 main ()
20421 return hes_getmailhost ();
20423 return 0;
20425 _ACEOF
20426 rm -f conftest.$ac_objext conftest$ac_exeext
20427 if { (ac_try="$ac_link"
20428 case "(($ac_try" in
20429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20430 *) ac_try_echo=$ac_try;;
20431 esac
20432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20433 (eval "$ac_link") 2>conftest.er1
20434 ac_status=$?
20435 grep -v '^ *+' conftest.er1 >conftest.err
20436 rm -f conftest.er1
20437 cat conftest.err >&5
20438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439 (exit $ac_status); } && {
20440 test -z "$ac_c_werror_flag" ||
20441 test ! -s conftest.err
20442 } && test -s conftest$ac_exeext &&
20443 $as_test_x conftest$ac_exeext; then
20444 ac_cv_func_hes_getmailhost=yes
20445 else
20446 echo "$as_me: failed program was:" >&5
20447 sed 's/^/| /' conftest.$ac_ext >&5
20449 ac_cv_func_hes_getmailhost=no
20452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20453 conftest$ac_exeext conftest.$ac_ext
20455 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
20456 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20457 if test $ac_cv_func_hes_getmailhost = yes; then
20459 else
20460 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
20461 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
20462 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20463 echo $ECHO_N "(cached) $ECHO_C" >&6
20464 else
20465 ac_check_lib_save_LIBS=$LIBS
20466 LIBS="-lhesiod $RESOLVLIB $LIBS"
20467 cat >conftest.$ac_ext <<_ACEOF
20468 /* confdefs.h. */
20469 _ACEOF
20470 cat confdefs.h >>conftest.$ac_ext
20471 cat >>conftest.$ac_ext <<_ACEOF
20472 /* end confdefs.h. */
20474 /* Override any GCC internal prototype to avoid an error.
20475 Use char because int might match the return type of a GCC
20476 builtin and then its argument prototype would still apply. */
20477 #ifdef __cplusplus
20478 extern "C"
20479 #endif
20480 char hes_getmailhost ();
20482 main ()
20484 return hes_getmailhost ();
20486 return 0;
20488 _ACEOF
20489 rm -f conftest.$ac_objext conftest$ac_exeext
20490 if { (ac_try="$ac_link"
20491 case "(($ac_try" in
20492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20493 *) ac_try_echo=$ac_try;;
20494 esac
20495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20496 (eval "$ac_link") 2>conftest.er1
20497 ac_status=$?
20498 grep -v '^ *+' conftest.er1 >conftest.err
20499 rm -f conftest.er1
20500 cat conftest.err >&5
20501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502 (exit $ac_status); } && {
20503 test -z "$ac_c_werror_flag" ||
20504 test ! -s conftest.err
20505 } && test -s conftest$ac_exeext &&
20506 $as_test_x conftest$ac_exeext; then
20507 ac_cv_lib_hesiod_hes_getmailhost=yes
20508 else
20509 echo "$as_me: failed program was:" >&5
20510 sed 's/^/| /' conftest.$ac_ext >&5
20512 ac_cv_lib_hesiod_hes_getmailhost=no
20515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20516 conftest$ac_exeext conftest.$ac_ext
20517 LIBS=$ac_check_lib_save_LIBS
20519 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20520 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20521 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20523 cat >>confdefs.h <<\_ACEOF
20524 #define HAVE_LIBHESIOD 1
20525 _ACEOF
20527 else
20535 # Do we need libresolv (due to res_init or Hesiod)?
20536 if test "$resolv" = yes ; then
20538 cat >>confdefs.h <<\_ACEOF
20539 #define HAVE_LIBRESOLV 1
20540 _ACEOF
20544 # These tell us which Kerberos-related libraries to use.
20545 if test "${with_kerberos}" != no; then
20547 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
20548 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
20549 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20550 echo $ECHO_N "(cached) $ECHO_C" >&6
20551 else
20552 ac_check_lib_save_LIBS=$LIBS
20553 LIBS="-lcom_err $LIBS"
20554 cat >conftest.$ac_ext <<_ACEOF
20555 /* confdefs.h. */
20556 _ACEOF
20557 cat confdefs.h >>conftest.$ac_ext
20558 cat >>conftest.$ac_ext <<_ACEOF
20559 /* end confdefs.h. */
20561 /* Override any GCC internal prototype to avoid an error.
20562 Use char because int might match the return type of a GCC
20563 builtin and then its argument prototype would still apply. */
20564 #ifdef __cplusplus
20565 extern "C"
20566 #endif
20567 char com_err ();
20569 main ()
20571 return com_err ();
20573 return 0;
20575 _ACEOF
20576 rm -f conftest.$ac_objext conftest$ac_exeext
20577 if { (ac_try="$ac_link"
20578 case "(($ac_try" in
20579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20580 *) ac_try_echo=$ac_try;;
20581 esac
20582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20583 (eval "$ac_link") 2>conftest.er1
20584 ac_status=$?
20585 grep -v '^ *+' conftest.er1 >conftest.err
20586 rm -f conftest.er1
20587 cat conftest.err >&5
20588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20589 (exit $ac_status); } && {
20590 test -z "$ac_c_werror_flag" ||
20591 test ! -s conftest.err
20592 } && test -s conftest$ac_exeext &&
20593 $as_test_x conftest$ac_exeext; then
20594 ac_cv_lib_com_err_com_err=yes
20595 else
20596 echo "$as_me: failed program was:" >&5
20597 sed 's/^/| /' conftest.$ac_ext >&5
20599 ac_cv_lib_com_err_com_err=no
20602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20603 conftest$ac_exeext conftest.$ac_ext
20604 LIBS=$ac_check_lib_save_LIBS
20606 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
20607 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20608 if test $ac_cv_lib_com_err_com_err = yes; then
20609 cat >>confdefs.h <<_ACEOF
20610 #define HAVE_LIBCOM_ERR 1
20611 _ACEOF
20613 LIBS="-lcom_err $LIBS"
20618 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
20619 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
20620 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20621 echo $ECHO_N "(cached) $ECHO_C" >&6
20622 else
20623 ac_check_lib_save_LIBS=$LIBS
20624 LIBS="-lk5crypto $LIBS"
20625 cat >conftest.$ac_ext <<_ACEOF
20626 /* confdefs.h. */
20627 _ACEOF
20628 cat confdefs.h >>conftest.$ac_ext
20629 cat >>conftest.$ac_ext <<_ACEOF
20630 /* end confdefs.h. */
20632 /* Override any GCC internal prototype to avoid an error.
20633 Use char because int might match the return type of a GCC
20634 builtin and then its argument prototype would still apply. */
20635 #ifdef __cplusplus
20636 extern "C"
20637 #endif
20638 char mit_des_cbc_encrypt ();
20640 main ()
20642 return mit_des_cbc_encrypt ();
20644 return 0;
20646 _ACEOF
20647 rm -f conftest.$ac_objext conftest$ac_exeext
20648 if { (ac_try="$ac_link"
20649 case "(($ac_try" in
20650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20651 *) ac_try_echo=$ac_try;;
20652 esac
20653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20654 (eval "$ac_link") 2>conftest.er1
20655 ac_status=$?
20656 grep -v '^ *+' conftest.er1 >conftest.err
20657 rm -f conftest.er1
20658 cat conftest.err >&5
20659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20660 (exit $ac_status); } && {
20661 test -z "$ac_c_werror_flag" ||
20662 test ! -s conftest.err
20663 } && test -s conftest$ac_exeext &&
20664 $as_test_x conftest$ac_exeext; then
20665 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20666 else
20667 echo "$as_me: failed program was:" >&5
20668 sed 's/^/| /' conftest.$ac_ext >&5
20670 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20674 conftest$ac_exeext conftest.$ac_ext
20675 LIBS=$ac_check_lib_save_LIBS
20677 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20678 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20679 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20680 cat >>confdefs.h <<_ACEOF
20681 #define HAVE_LIBK5CRYPTO 1
20682 _ACEOF
20684 LIBS="-lk5crypto $LIBS"
20689 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
20690 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
20691 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20692 echo $ECHO_N "(cached) $ECHO_C" >&6
20693 else
20694 ac_check_lib_save_LIBS=$LIBS
20695 LIBS="-lcrypto $LIBS"
20696 cat >conftest.$ac_ext <<_ACEOF
20697 /* confdefs.h. */
20698 _ACEOF
20699 cat confdefs.h >>conftest.$ac_ext
20700 cat >>conftest.$ac_ext <<_ACEOF
20701 /* end confdefs.h. */
20703 /* Override any GCC internal prototype to avoid an error.
20704 Use char because int might match the return type of a GCC
20705 builtin and then its argument prototype would still apply. */
20706 #ifdef __cplusplus
20707 extern "C"
20708 #endif
20709 char mit_des_cbc_encrypt ();
20711 main ()
20713 return mit_des_cbc_encrypt ();
20715 return 0;
20717 _ACEOF
20718 rm -f conftest.$ac_objext conftest$ac_exeext
20719 if { (ac_try="$ac_link"
20720 case "(($ac_try" in
20721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20722 *) ac_try_echo=$ac_try;;
20723 esac
20724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20725 (eval "$ac_link") 2>conftest.er1
20726 ac_status=$?
20727 grep -v '^ *+' conftest.er1 >conftest.err
20728 rm -f conftest.er1
20729 cat conftest.err >&5
20730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20731 (exit $ac_status); } && {
20732 test -z "$ac_c_werror_flag" ||
20733 test ! -s conftest.err
20734 } && test -s conftest$ac_exeext &&
20735 $as_test_x conftest$ac_exeext; then
20736 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20737 else
20738 echo "$as_me: failed program was:" >&5
20739 sed 's/^/| /' conftest.$ac_ext >&5
20741 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20745 conftest$ac_exeext conftest.$ac_ext
20746 LIBS=$ac_check_lib_save_LIBS
20748 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20749 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20750 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20751 cat >>confdefs.h <<_ACEOF
20752 #define HAVE_LIBCRYPTO 1
20753 _ACEOF
20755 LIBS="-lcrypto $LIBS"
20760 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20761 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20762 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20763 echo $ECHO_N "(cached) $ECHO_C" >&6
20764 else
20765 ac_check_lib_save_LIBS=$LIBS
20766 LIBS="-lkrb5 $LIBS"
20767 cat >conftest.$ac_ext <<_ACEOF
20768 /* confdefs.h. */
20769 _ACEOF
20770 cat confdefs.h >>conftest.$ac_ext
20771 cat >>conftest.$ac_ext <<_ACEOF
20772 /* end confdefs.h. */
20774 /* Override any GCC internal prototype to avoid an error.
20775 Use char because int might match the return type of a GCC
20776 builtin and then its argument prototype would still apply. */
20777 #ifdef __cplusplus
20778 extern "C"
20779 #endif
20780 char krb5_init_context ();
20782 main ()
20784 return krb5_init_context ();
20786 return 0;
20788 _ACEOF
20789 rm -f conftest.$ac_objext conftest$ac_exeext
20790 if { (ac_try="$ac_link"
20791 case "(($ac_try" in
20792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20793 *) ac_try_echo=$ac_try;;
20794 esac
20795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20796 (eval "$ac_link") 2>conftest.er1
20797 ac_status=$?
20798 grep -v '^ *+' conftest.er1 >conftest.err
20799 rm -f conftest.er1
20800 cat conftest.err >&5
20801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20802 (exit $ac_status); } && {
20803 test -z "$ac_c_werror_flag" ||
20804 test ! -s conftest.err
20805 } && test -s conftest$ac_exeext &&
20806 $as_test_x conftest$ac_exeext; then
20807 ac_cv_lib_krb5_krb5_init_context=yes
20808 else
20809 echo "$as_me: failed program was:" >&5
20810 sed 's/^/| /' conftest.$ac_ext >&5
20812 ac_cv_lib_krb5_krb5_init_context=no
20815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20816 conftest$ac_exeext conftest.$ac_ext
20817 LIBS=$ac_check_lib_save_LIBS
20819 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20820 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20821 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20822 cat >>confdefs.h <<_ACEOF
20823 #define HAVE_LIBKRB5 1
20824 _ACEOF
20826 LIBS="-lkrb5 $LIBS"
20830 if test "${with_kerberos5}" = no; then
20832 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20833 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20834 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20835 echo $ECHO_N "(cached) $ECHO_C" >&6
20836 else
20837 ac_check_lib_save_LIBS=$LIBS
20838 LIBS="-ldes425 $LIBS"
20839 cat >conftest.$ac_ext <<_ACEOF
20840 /* confdefs.h. */
20841 _ACEOF
20842 cat confdefs.h >>conftest.$ac_ext
20843 cat >>conftest.$ac_ext <<_ACEOF
20844 /* end confdefs.h. */
20846 /* Override any GCC internal prototype to avoid an error.
20847 Use char because int might match the return type of a GCC
20848 builtin and then its argument prototype would still apply. */
20849 #ifdef __cplusplus
20850 extern "C"
20851 #endif
20852 char des_cbc_encrypt ();
20854 main ()
20856 return des_cbc_encrypt ();
20858 return 0;
20860 _ACEOF
20861 rm -f conftest.$ac_objext conftest$ac_exeext
20862 if { (ac_try="$ac_link"
20863 case "(($ac_try" in
20864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20865 *) ac_try_echo=$ac_try;;
20866 esac
20867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20868 (eval "$ac_link") 2>conftest.er1
20869 ac_status=$?
20870 grep -v '^ *+' conftest.er1 >conftest.err
20871 rm -f conftest.er1
20872 cat conftest.err >&5
20873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874 (exit $ac_status); } && {
20875 test -z "$ac_c_werror_flag" ||
20876 test ! -s conftest.err
20877 } && test -s conftest$ac_exeext &&
20878 $as_test_x conftest$ac_exeext; then
20879 ac_cv_lib_des425_des_cbc_encrypt=yes
20880 else
20881 echo "$as_me: failed program was:" >&5
20882 sed 's/^/| /' conftest.$ac_ext >&5
20884 ac_cv_lib_des425_des_cbc_encrypt=no
20887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20888 conftest$ac_exeext conftest.$ac_ext
20889 LIBS=$ac_check_lib_save_LIBS
20891 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20892 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20893 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20894 cat >>confdefs.h <<_ACEOF
20895 #define HAVE_LIBDES425 1
20896 _ACEOF
20898 LIBS="-ldes425 $LIBS"
20900 else
20902 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20903 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20904 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20905 echo $ECHO_N "(cached) $ECHO_C" >&6
20906 else
20907 ac_check_lib_save_LIBS=$LIBS
20908 LIBS="-ldes $LIBS"
20909 cat >conftest.$ac_ext <<_ACEOF
20910 /* confdefs.h. */
20911 _ACEOF
20912 cat confdefs.h >>conftest.$ac_ext
20913 cat >>conftest.$ac_ext <<_ACEOF
20914 /* end confdefs.h. */
20916 /* Override any GCC internal prototype to avoid an error.
20917 Use char because int might match the return type of a GCC
20918 builtin and then its argument prototype would still apply. */
20919 #ifdef __cplusplus
20920 extern "C"
20921 #endif
20922 char des_cbc_encrypt ();
20924 main ()
20926 return des_cbc_encrypt ();
20928 return 0;
20930 _ACEOF
20931 rm -f conftest.$ac_objext conftest$ac_exeext
20932 if { (ac_try="$ac_link"
20933 case "(($ac_try" in
20934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20935 *) ac_try_echo=$ac_try;;
20936 esac
20937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20938 (eval "$ac_link") 2>conftest.er1
20939 ac_status=$?
20940 grep -v '^ *+' conftest.er1 >conftest.err
20941 rm -f conftest.er1
20942 cat conftest.err >&5
20943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20944 (exit $ac_status); } && {
20945 test -z "$ac_c_werror_flag" ||
20946 test ! -s conftest.err
20947 } && test -s conftest$ac_exeext &&
20948 $as_test_x conftest$ac_exeext; then
20949 ac_cv_lib_des_des_cbc_encrypt=yes
20950 else
20951 echo "$as_me: failed program was:" >&5
20952 sed 's/^/| /' conftest.$ac_ext >&5
20954 ac_cv_lib_des_des_cbc_encrypt=no
20957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20958 conftest$ac_exeext conftest.$ac_ext
20959 LIBS=$ac_check_lib_save_LIBS
20961 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20962 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20963 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20964 cat >>confdefs.h <<_ACEOF
20965 #define HAVE_LIBDES 1
20966 _ACEOF
20968 LIBS="-ldes $LIBS"
20975 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20976 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20977 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20978 echo $ECHO_N "(cached) $ECHO_C" >&6
20979 else
20980 ac_check_lib_save_LIBS=$LIBS
20981 LIBS="-lkrb4 $LIBS"
20982 cat >conftest.$ac_ext <<_ACEOF
20983 /* confdefs.h. */
20984 _ACEOF
20985 cat confdefs.h >>conftest.$ac_ext
20986 cat >>conftest.$ac_ext <<_ACEOF
20987 /* end confdefs.h. */
20989 /* Override any GCC internal prototype to avoid an error.
20990 Use char because int might match the return type of a GCC
20991 builtin and then its argument prototype would still apply. */
20992 #ifdef __cplusplus
20993 extern "C"
20994 #endif
20995 char krb_get_cred ();
20997 main ()
20999 return krb_get_cred ();
21001 return 0;
21003 _ACEOF
21004 rm -f conftest.$ac_objext conftest$ac_exeext
21005 if { (ac_try="$ac_link"
21006 case "(($ac_try" in
21007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21008 *) ac_try_echo=$ac_try;;
21009 esac
21010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21011 (eval "$ac_link") 2>conftest.er1
21012 ac_status=$?
21013 grep -v '^ *+' conftest.er1 >conftest.err
21014 rm -f conftest.er1
21015 cat conftest.err >&5
21016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017 (exit $ac_status); } && {
21018 test -z "$ac_c_werror_flag" ||
21019 test ! -s conftest.err
21020 } && test -s conftest$ac_exeext &&
21021 $as_test_x conftest$ac_exeext; then
21022 ac_cv_lib_krb4_krb_get_cred=yes
21023 else
21024 echo "$as_me: failed program was:" >&5
21025 sed 's/^/| /' conftest.$ac_ext >&5
21027 ac_cv_lib_krb4_krb_get_cred=no
21030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21031 conftest$ac_exeext conftest.$ac_ext
21032 LIBS=$ac_check_lib_save_LIBS
21034 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
21035 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
21036 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
21037 cat >>confdefs.h <<_ACEOF
21038 #define HAVE_LIBKRB4 1
21039 _ACEOF
21041 LIBS="-lkrb4 $LIBS"
21043 else
21045 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
21046 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
21047 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
21048 echo $ECHO_N "(cached) $ECHO_C" >&6
21049 else
21050 ac_check_lib_save_LIBS=$LIBS
21051 LIBS="-lkrb $LIBS"
21052 cat >conftest.$ac_ext <<_ACEOF
21053 /* confdefs.h. */
21054 _ACEOF
21055 cat confdefs.h >>conftest.$ac_ext
21056 cat >>conftest.$ac_ext <<_ACEOF
21057 /* end confdefs.h. */
21059 /* Override any GCC internal prototype to avoid an error.
21060 Use char because int might match the return type of a GCC
21061 builtin and then its argument prototype would still apply. */
21062 #ifdef __cplusplus
21063 extern "C"
21064 #endif
21065 char krb_get_cred ();
21067 main ()
21069 return krb_get_cred ();
21071 return 0;
21073 _ACEOF
21074 rm -f conftest.$ac_objext conftest$ac_exeext
21075 if { (ac_try="$ac_link"
21076 case "(($ac_try" in
21077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21078 *) ac_try_echo=$ac_try;;
21079 esac
21080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21081 (eval "$ac_link") 2>conftest.er1
21082 ac_status=$?
21083 grep -v '^ *+' conftest.er1 >conftest.err
21084 rm -f conftest.er1
21085 cat conftest.err >&5
21086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21087 (exit $ac_status); } && {
21088 test -z "$ac_c_werror_flag" ||
21089 test ! -s conftest.err
21090 } && test -s conftest$ac_exeext &&
21091 $as_test_x conftest$ac_exeext; then
21092 ac_cv_lib_krb_krb_get_cred=yes
21093 else
21094 echo "$as_me: failed program was:" >&5
21095 sed 's/^/| /' conftest.$ac_ext >&5
21097 ac_cv_lib_krb_krb_get_cred=no
21100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21101 conftest$ac_exeext conftest.$ac_ext
21102 LIBS=$ac_check_lib_save_LIBS
21104 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
21105 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
21106 if test $ac_cv_lib_krb_krb_get_cred = yes; then
21107 cat >>confdefs.h <<_ACEOF
21108 #define HAVE_LIBKRB 1
21109 _ACEOF
21111 LIBS="-lkrb $LIBS"
21119 if test "${with_kerberos5}" != no; then
21121 for ac_header in krb5.h
21123 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21125 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21128 echo $ECHO_N "(cached) $ECHO_C" >&6
21130 ac_res=`eval echo '${'$as_ac_Header'}'`
21131 { echo "$as_me:$LINENO: result: $ac_res" >&5
21132 echo "${ECHO_T}$ac_res" >&6; }
21133 else
21134 # Is the header compilable?
21135 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21136 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21137 cat >conftest.$ac_ext <<_ACEOF
21138 /* confdefs.h. */
21139 _ACEOF
21140 cat confdefs.h >>conftest.$ac_ext
21141 cat >>conftest.$ac_ext <<_ACEOF
21142 /* end confdefs.h. */
21143 $ac_includes_default
21144 #include <$ac_header>
21145 _ACEOF
21146 rm -f conftest.$ac_objext
21147 if { (ac_try="$ac_compile"
21148 case "(($ac_try" in
21149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21150 *) ac_try_echo=$ac_try;;
21151 esac
21152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21153 (eval "$ac_compile") 2>conftest.er1
21154 ac_status=$?
21155 grep -v '^ *+' conftest.er1 >conftest.err
21156 rm -f conftest.er1
21157 cat conftest.err >&5
21158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21159 (exit $ac_status); } && {
21160 test -z "$ac_c_werror_flag" ||
21161 test ! -s conftest.err
21162 } && test -s conftest.$ac_objext; then
21163 ac_header_compiler=yes
21164 else
21165 echo "$as_me: failed program was:" >&5
21166 sed 's/^/| /' conftest.$ac_ext >&5
21168 ac_header_compiler=no
21171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21172 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21173 echo "${ECHO_T}$ac_header_compiler" >&6; }
21175 # Is the header present?
21176 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21177 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21178 cat >conftest.$ac_ext <<_ACEOF
21179 /* confdefs.h. */
21180 _ACEOF
21181 cat confdefs.h >>conftest.$ac_ext
21182 cat >>conftest.$ac_ext <<_ACEOF
21183 /* end confdefs.h. */
21184 #include <$ac_header>
21185 _ACEOF
21186 if { (ac_try="$ac_cpp conftest.$ac_ext"
21187 case "(($ac_try" in
21188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21189 *) ac_try_echo=$ac_try;;
21190 esac
21191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21192 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21193 ac_status=$?
21194 grep -v '^ *+' conftest.er1 >conftest.err
21195 rm -f conftest.er1
21196 cat conftest.err >&5
21197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21198 (exit $ac_status); } >/dev/null && {
21199 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21200 test ! -s conftest.err
21201 }; then
21202 ac_header_preproc=yes
21203 else
21204 echo "$as_me: failed program was:" >&5
21205 sed 's/^/| /' conftest.$ac_ext >&5
21207 ac_header_preproc=no
21210 rm -f conftest.err conftest.$ac_ext
21211 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21212 echo "${ECHO_T}$ac_header_preproc" >&6; }
21214 # So? What about this header?
21215 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21216 yes:no: )
21217 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21218 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21220 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21221 ac_header_preproc=yes
21223 no:yes:* )
21224 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21225 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21226 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21227 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21228 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21229 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21230 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21231 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21232 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21233 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21234 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21235 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21238 esac
21239 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21242 echo $ECHO_N "(cached) $ECHO_C" >&6
21243 else
21244 eval "$as_ac_Header=\$ac_header_preproc"
21246 ac_res=`eval echo '${'$as_ac_Header'}'`
21247 { echo "$as_me:$LINENO: result: $ac_res" >&5
21248 echo "${ECHO_T}$ac_res" >&6; }
21251 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21252 cat >>confdefs.h <<_ACEOF
21253 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21254 _ACEOF
21255 { echo "$as_me:$LINENO: checking for krb5_error.text" >&5
21256 echo $ECHO_N "checking for krb5_error.text... $ECHO_C" >&6; }
21257 if test "${ac_cv_member_krb5_error_text+set}" = set; then
21258 echo $ECHO_N "(cached) $ECHO_C" >&6
21259 else
21260 cat >conftest.$ac_ext <<_ACEOF
21261 /* confdefs.h. */
21262 _ACEOF
21263 cat confdefs.h >>conftest.$ac_ext
21264 cat >>conftest.$ac_ext <<_ACEOF
21265 /* end confdefs.h. */
21266 #include <krb5.h>
21269 main ()
21271 static krb5_error ac_aggr;
21272 if (ac_aggr.text)
21273 return 0;
21275 return 0;
21277 _ACEOF
21278 rm -f conftest.$ac_objext
21279 if { (ac_try="$ac_compile"
21280 case "(($ac_try" in
21281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21282 *) ac_try_echo=$ac_try;;
21283 esac
21284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21285 (eval "$ac_compile") 2>conftest.er1
21286 ac_status=$?
21287 grep -v '^ *+' conftest.er1 >conftest.err
21288 rm -f conftest.er1
21289 cat conftest.err >&5
21290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21291 (exit $ac_status); } && {
21292 test -z "$ac_c_werror_flag" ||
21293 test ! -s conftest.err
21294 } && test -s conftest.$ac_objext; then
21295 ac_cv_member_krb5_error_text=yes
21296 else
21297 echo "$as_me: failed program was:" >&5
21298 sed 's/^/| /' conftest.$ac_ext >&5
21300 cat >conftest.$ac_ext <<_ACEOF
21301 /* confdefs.h. */
21302 _ACEOF
21303 cat confdefs.h >>conftest.$ac_ext
21304 cat >>conftest.$ac_ext <<_ACEOF
21305 /* end confdefs.h. */
21306 #include <krb5.h>
21309 main ()
21311 static krb5_error ac_aggr;
21312 if (sizeof ac_aggr.text)
21313 return 0;
21315 return 0;
21317 _ACEOF
21318 rm -f conftest.$ac_objext
21319 if { (ac_try="$ac_compile"
21320 case "(($ac_try" in
21321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21322 *) ac_try_echo=$ac_try;;
21323 esac
21324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21325 (eval "$ac_compile") 2>conftest.er1
21326 ac_status=$?
21327 grep -v '^ *+' conftest.er1 >conftest.err
21328 rm -f conftest.er1
21329 cat conftest.err >&5
21330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21331 (exit $ac_status); } && {
21332 test -z "$ac_c_werror_flag" ||
21333 test ! -s conftest.err
21334 } && test -s conftest.$ac_objext; then
21335 ac_cv_member_krb5_error_text=yes
21336 else
21337 echo "$as_me: failed program was:" >&5
21338 sed 's/^/| /' conftest.$ac_ext >&5
21340 ac_cv_member_krb5_error_text=no
21343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21348 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
21349 echo "${ECHO_T}$ac_cv_member_krb5_error_text" >&6; }
21350 if test $ac_cv_member_krb5_error_text = yes; then
21352 cat >>confdefs.h <<_ACEOF
21353 #define HAVE_KRB5_ERROR_TEXT 1
21354 _ACEOF
21358 { echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
21359 echo $ECHO_N "checking for krb5_error.e_text... $ECHO_C" >&6; }
21360 if test "${ac_cv_member_krb5_error_e_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.e_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_e_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.e_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_e_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_e_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_e_text" >&5
21452 echo "${ECHO_T}$ac_cv_member_krb5_error_e_text" >&6; }
21453 if test $ac_cv_member_krb5_error_e_text = yes; then
21455 cat >>confdefs.h <<_ACEOF
21456 #define HAVE_KRB5_ERROR_E_TEXT 1
21457 _ACEOF
21464 done
21466 else
21468 for ac_header in des.h
21470 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21472 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21475 echo $ECHO_N "(cached) $ECHO_C" >&6
21477 ac_res=`eval echo '${'$as_ac_Header'}'`
21478 { echo "$as_me:$LINENO: result: $ac_res" >&5
21479 echo "${ECHO_T}$ac_res" >&6; }
21480 else
21481 # Is the header compilable?
21482 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21483 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21484 cat >conftest.$ac_ext <<_ACEOF
21485 /* confdefs.h. */
21486 _ACEOF
21487 cat confdefs.h >>conftest.$ac_ext
21488 cat >>conftest.$ac_ext <<_ACEOF
21489 /* end confdefs.h. */
21490 $ac_includes_default
21491 #include <$ac_header>
21492 _ACEOF
21493 rm -f conftest.$ac_objext
21494 if { (ac_try="$ac_compile"
21495 case "(($ac_try" in
21496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21497 *) ac_try_echo=$ac_try;;
21498 esac
21499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21500 (eval "$ac_compile") 2>conftest.er1
21501 ac_status=$?
21502 grep -v '^ *+' conftest.er1 >conftest.err
21503 rm -f conftest.er1
21504 cat conftest.err >&5
21505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21506 (exit $ac_status); } && {
21507 test -z "$ac_c_werror_flag" ||
21508 test ! -s conftest.err
21509 } && test -s conftest.$ac_objext; then
21510 ac_header_compiler=yes
21511 else
21512 echo "$as_me: failed program was:" >&5
21513 sed 's/^/| /' conftest.$ac_ext >&5
21515 ac_header_compiler=no
21518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21519 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21520 echo "${ECHO_T}$ac_header_compiler" >&6; }
21522 # Is the header present?
21523 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21524 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21525 cat >conftest.$ac_ext <<_ACEOF
21526 /* confdefs.h. */
21527 _ACEOF
21528 cat confdefs.h >>conftest.$ac_ext
21529 cat >>conftest.$ac_ext <<_ACEOF
21530 /* end confdefs.h. */
21531 #include <$ac_header>
21532 _ACEOF
21533 if { (ac_try="$ac_cpp conftest.$ac_ext"
21534 case "(($ac_try" in
21535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21536 *) ac_try_echo=$ac_try;;
21537 esac
21538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21539 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21540 ac_status=$?
21541 grep -v '^ *+' conftest.er1 >conftest.err
21542 rm -f conftest.er1
21543 cat conftest.err >&5
21544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21545 (exit $ac_status); } >/dev/null && {
21546 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21547 test ! -s conftest.err
21548 }; then
21549 ac_header_preproc=yes
21550 else
21551 echo "$as_me: failed program was:" >&5
21552 sed 's/^/| /' conftest.$ac_ext >&5
21554 ac_header_preproc=no
21557 rm -f conftest.err conftest.$ac_ext
21558 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21559 echo "${ECHO_T}$ac_header_preproc" >&6; }
21561 # So? What about this header?
21562 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21563 yes:no: )
21564 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21567 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21568 ac_header_preproc=yes
21570 no:yes:* )
21571 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21572 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21573 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21574 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21575 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21576 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21577 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21578 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21580 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21581 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21582 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21585 esac
21586 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21589 echo $ECHO_N "(cached) $ECHO_C" >&6
21590 else
21591 eval "$as_ac_Header=\$ac_header_preproc"
21593 ac_res=`eval echo '${'$as_ac_Header'}'`
21594 { echo "$as_me:$LINENO: result: $ac_res" >&5
21595 echo "${ECHO_T}$ac_res" >&6; }
21598 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21599 cat >>confdefs.h <<_ACEOF
21600 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21601 _ACEOF
21603 else
21605 for ac_header in kerberosIV/des.h
21607 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21609 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21612 echo $ECHO_N "(cached) $ECHO_C" >&6
21614 ac_res=`eval echo '${'$as_ac_Header'}'`
21615 { echo "$as_me:$LINENO: result: $ac_res" >&5
21616 echo "${ECHO_T}$ac_res" >&6; }
21617 else
21618 # Is the header compilable?
21619 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21620 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21621 cat >conftest.$ac_ext <<_ACEOF
21622 /* confdefs.h. */
21623 _ACEOF
21624 cat confdefs.h >>conftest.$ac_ext
21625 cat >>conftest.$ac_ext <<_ACEOF
21626 /* end confdefs.h. */
21627 $ac_includes_default
21628 #include <$ac_header>
21629 _ACEOF
21630 rm -f conftest.$ac_objext
21631 if { (ac_try="$ac_compile"
21632 case "(($ac_try" in
21633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21634 *) ac_try_echo=$ac_try;;
21635 esac
21636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21637 (eval "$ac_compile") 2>conftest.er1
21638 ac_status=$?
21639 grep -v '^ *+' conftest.er1 >conftest.err
21640 rm -f conftest.er1
21641 cat conftest.err >&5
21642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21643 (exit $ac_status); } && {
21644 test -z "$ac_c_werror_flag" ||
21645 test ! -s conftest.err
21646 } && test -s conftest.$ac_objext; then
21647 ac_header_compiler=yes
21648 else
21649 echo "$as_me: failed program was:" >&5
21650 sed 's/^/| /' conftest.$ac_ext >&5
21652 ac_header_compiler=no
21655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21656 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21657 echo "${ECHO_T}$ac_header_compiler" >&6; }
21659 # Is the header present?
21660 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21661 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21662 cat >conftest.$ac_ext <<_ACEOF
21663 /* confdefs.h. */
21664 _ACEOF
21665 cat confdefs.h >>conftest.$ac_ext
21666 cat >>conftest.$ac_ext <<_ACEOF
21667 /* end confdefs.h. */
21668 #include <$ac_header>
21669 _ACEOF
21670 if { (ac_try="$ac_cpp conftest.$ac_ext"
21671 case "(($ac_try" in
21672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21673 *) ac_try_echo=$ac_try;;
21674 esac
21675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21677 ac_status=$?
21678 grep -v '^ *+' conftest.er1 >conftest.err
21679 rm -f conftest.er1
21680 cat conftest.err >&5
21681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21682 (exit $ac_status); } >/dev/null && {
21683 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21684 test ! -s conftest.err
21685 }; then
21686 ac_header_preproc=yes
21687 else
21688 echo "$as_me: failed program was:" >&5
21689 sed 's/^/| /' conftest.$ac_ext >&5
21691 ac_header_preproc=no
21694 rm -f conftest.err conftest.$ac_ext
21695 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21696 echo "${ECHO_T}$ac_header_preproc" >&6; }
21698 # So? What about this header?
21699 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21700 yes:no: )
21701 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21702 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21703 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21704 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21705 ac_header_preproc=yes
21707 no:yes:* )
21708 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21709 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21710 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21711 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21712 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21713 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21714 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21715 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21716 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21717 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21718 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21719 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21722 esac
21723 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21726 echo $ECHO_N "(cached) $ECHO_C" >&6
21727 else
21728 eval "$as_ac_Header=\$ac_header_preproc"
21730 ac_res=`eval echo '${'$as_ac_Header'}'`
21731 { echo "$as_me:$LINENO: result: $ac_res" >&5
21732 echo "${ECHO_T}$ac_res" >&6; }
21735 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21736 cat >>confdefs.h <<_ACEOF
21737 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21738 _ACEOF
21740 else
21742 for ac_header in kerberos/des.h
21744 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21746 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21749 echo $ECHO_N "(cached) $ECHO_C" >&6
21751 ac_res=`eval echo '${'$as_ac_Header'}'`
21752 { echo "$as_me:$LINENO: result: $ac_res" >&5
21753 echo "${ECHO_T}$ac_res" >&6; }
21754 else
21755 # Is the header compilable?
21756 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21757 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21758 cat >conftest.$ac_ext <<_ACEOF
21759 /* confdefs.h. */
21760 _ACEOF
21761 cat confdefs.h >>conftest.$ac_ext
21762 cat >>conftest.$ac_ext <<_ACEOF
21763 /* end confdefs.h. */
21764 $ac_includes_default
21765 #include <$ac_header>
21766 _ACEOF
21767 rm -f conftest.$ac_objext
21768 if { (ac_try="$ac_compile"
21769 case "(($ac_try" in
21770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21771 *) ac_try_echo=$ac_try;;
21772 esac
21773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21774 (eval "$ac_compile") 2>conftest.er1
21775 ac_status=$?
21776 grep -v '^ *+' conftest.er1 >conftest.err
21777 rm -f conftest.er1
21778 cat conftest.err >&5
21779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21780 (exit $ac_status); } && {
21781 test -z "$ac_c_werror_flag" ||
21782 test ! -s conftest.err
21783 } && test -s conftest.$ac_objext; then
21784 ac_header_compiler=yes
21785 else
21786 echo "$as_me: failed program was:" >&5
21787 sed 's/^/| /' conftest.$ac_ext >&5
21789 ac_header_compiler=no
21792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21793 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21794 echo "${ECHO_T}$ac_header_compiler" >&6; }
21796 # Is the header present?
21797 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21798 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21799 cat >conftest.$ac_ext <<_ACEOF
21800 /* confdefs.h. */
21801 _ACEOF
21802 cat confdefs.h >>conftest.$ac_ext
21803 cat >>conftest.$ac_ext <<_ACEOF
21804 /* end confdefs.h. */
21805 #include <$ac_header>
21806 _ACEOF
21807 if { (ac_try="$ac_cpp conftest.$ac_ext"
21808 case "(($ac_try" in
21809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21810 *) ac_try_echo=$ac_try;;
21811 esac
21812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21813 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21814 ac_status=$?
21815 grep -v '^ *+' conftest.er1 >conftest.err
21816 rm -f conftest.er1
21817 cat conftest.err >&5
21818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21819 (exit $ac_status); } >/dev/null && {
21820 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21821 test ! -s conftest.err
21822 }; then
21823 ac_header_preproc=yes
21824 else
21825 echo "$as_me: failed program was:" >&5
21826 sed 's/^/| /' conftest.$ac_ext >&5
21828 ac_header_preproc=no
21831 rm -f conftest.err conftest.$ac_ext
21832 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21833 echo "${ECHO_T}$ac_header_preproc" >&6; }
21835 # So? What about this header?
21836 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21837 yes:no: )
21838 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21839 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21840 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21841 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21842 ac_header_preproc=yes
21844 no:yes:* )
21845 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21846 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21847 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21848 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21849 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21850 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21851 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21852 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21854 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21855 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21856 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21859 esac
21860 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21862 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21863 echo $ECHO_N "(cached) $ECHO_C" >&6
21864 else
21865 eval "$as_ac_Header=\$ac_header_preproc"
21867 ac_res=`eval echo '${'$as_ac_Header'}'`
21868 { echo "$as_me:$LINENO: result: $ac_res" >&5
21869 echo "${ECHO_T}$ac_res" >&6; }
21872 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21873 cat >>confdefs.h <<_ACEOF
21874 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21875 _ACEOF
21879 done
21883 done
21887 done
21890 for ac_header in krb.h
21892 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21893 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21894 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21897 echo $ECHO_N "(cached) $ECHO_C" >&6
21899 ac_res=`eval echo '${'$as_ac_Header'}'`
21900 { echo "$as_me:$LINENO: result: $ac_res" >&5
21901 echo "${ECHO_T}$ac_res" >&6; }
21902 else
21903 # Is the header compilable?
21904 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21905 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21906 cat >conftest.$ac_ext <<_ACEOF
21907 /* confdefs.h. */
21908 _ACEOF
21909 cat confdefs.h >>conftest.$ac_ext
21910 cat >>conftest.$ac_ext <<_ACEOF
21911 /* end confdefs.h. */
21912 $ac_includes_default
21913 #include <$ac_header>
21914 _ACEOF
21915 rm -f conftest.$ac_objext
21916 if { (ac_try="$ac_compile"
21917 case "(($ac_try" in
21918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21919 *) ac_try_echo=$ac_try;;
21920 esac
21921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21922 (eval "$ac_compile") 2>conftest.er1
21923 ac_status=$?
21924 grep -v '^ *+' conftest.er1 >conftest.err
21925 rm -f conftest.er1
21926 cat conftest.err >&5
21927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21928 (exit $ac_status); } && {
21929 test -z "$ac_c_werror_flag" ||
21930 test ! -s conftest.err
21931 } && test -s conftest.$ac_objext; then
21932 ac_header_compiler=yes
21933 else
21934 echo "$as_me: failed program was:" >&5
21935 sed 's/^/| /' conftest.$ac_ext >&5
21937 ac_header_compiler=no
21940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21941 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21942 echo "${ECHO_T}$ac_header_compiler" >&6; }
21944 # Is the header present?
21945 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21946 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21947 cat >conftest.$ac_ext <<_ACEOF
21948 /* confdefs.h. */
21949 _ACEOF
21950 cat confdefs.h >>conftest.$ac_ext
21951 cat >>conftest.$ac_ext <<_ACEOF
21952 /* end confdefs.h. */
21953 #include <$ac_header>
21954 _ACEOF
21955 if { (ac_try="$ac_cpp conftest.$ac_ext"
21956 case "(($ac_try" in
21957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21958 *) ac_try_echo=$ac_try;;
21959 esac
21960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21962 ac_status=$?
21963 grep -v '^ *+' conftest.er1 >conftest.err
21964 rm -f conftest.er1
21965 cat conftest.err >&5
21966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21967 (exit $ac_status); } >/dev/null && {
21968 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21969 test ! -s conftest.err
21970 }; then
21971 ac_header_preproc=yes
21972 else
21973 echo "$as_me: failed program was:" >&5
21974 sed 's/^/| /' conftest.$ac_ext >&5
21976 ac_header_preproc=no
21979 rm -f conftest.err conftest.$ac_ext
21980 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21981 echo "${ECHO_T}$ac_header_preproc" >&6; }
21983 # So? What about this header?
21984 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21985 yes:no: )
21986 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21987 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21989 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21990 ac_header_preproc=yes
21992 no:yes:* )
21993 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21994 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21995 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21996 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21997 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21998 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21999 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22000 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22002 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22003 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22004 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22007 esac
22008 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22011 echo $ECHO_N "(cached) $ECHO_C" >&6
22012 else
22013 eval "$as_ac_Header=\$ac_header_preproc"
22015 ac_res=`eval echo '${'$as_ac_Header'}'`
22016 { echo "$as_me:$LINENO: result: $ac_res" >&5
22017 echo "${ECHO_T}$ac_res" >&6; }
22020 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22021 cat >>confdefs.h <<_ACEOF
22022 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22023 _ACEOF
22025 else
22027 for ac_header in kerberosIV/krb.h
22029 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22031 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22034 echo $ECHO_N "(cached) $ECHO_C" >&6
22036 ac_res=`eval echo '${'$as_ac_Header'}'`
22037 { echo "$as_me:$LINENO: result: $ac_res" >&5
22038 echo "${ECHO_T}$ac_res" >&6; }
22039 else
22040 # Is the header compilable?
22041 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22042 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22043 cat >conftest.$ac_ext <<_ACEOF
22044 /* confdefs.h. */
22045 _ACEOF
22046 cat confdefs.h >>conftest.$ac_ext
22047 cat >>conftest.$ac_ext <<_ACEOF
22048 /* end confdefs.h. */
22049 $ac_includes_default
22050 #include <$ac_header>
22051 _ACEOF
22052 rm -f conftest.$ac_objext
22053 if { (ac_try="$ac_compile"
22054 case "(($ac_try" in
22055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22056 *) ac_try_echo=$ac_try;;
22057 esac
22058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22059 (eval "$ac_compile") 2>conftest.er1
22060 ac_status=$?
22061 grep -v '^ *+' conftest.er1 >conftest.err
22062 rm -f conftest.er1
22063 cat conftest.err >&5
22064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22065 (exit $ac_status); } && {
22066 test -z "$ac_c_werror_flag" ||
22067 test ! -s conftest.err
22068 } && test -s conftest.$ac_objext; then
22069 ac_header_compiler=yes
22070 else
22071 echo "$as_me: failed program was:" >&5
22072 sed 's/^/| /' conftest.$ac_ext >&5
22074 ac_header_compiler=no
22077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22078 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22079 echo "${ECHO_T}$ac_header_compiler" >&6; }
22081 # Is the header present?
22082 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22083 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22084 cat >conftest.$ac_ext <<_ACEOF
22085 /* confdefs.h. */
22086 _ACEOF
22087 cat confdefs.h >>conftest.$ac_ext
22088 cat >>conftest.$ac_ext <<_ACEOF
22089 /* end confdefs.h. */
22090 #include <$ac_header>
22091 _ACEOF
22092 if { (ac_try="$ac_cpp conftest.$ac_ext"
22093 case "(($ac_try" in
22094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22095 *) ac_try_echo=$ac_try;;
22096 esac
22097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22098 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22099 ac_status=$?
22100 grep -v '^ *+' conftest.er1 >conftest.err
22101 rm -f conftest.er1
22102 cat conftest.err >&5
22103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22104 (exit $ac_status); } >/dev/null && {
22105 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22106 test ! -s conftest.err
22107 }; then
22108 ac_header_preproc=yes
22109 else
22110 echo "$as_me: failed program was:" >&5
22111 sed 's/^/| /' conftest.$ac_ext >&5
22113 ac_header_preproc=no
22116 rm -f conftest.err conftest.$ac_ext
22117 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22118 echo "${ECHO_T}$ac_header_preproc" >&6; }
22120 # So? What about this header?
22121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22122 yes:no: )
22123 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22124 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22126 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22127 ac_header_preproc=yes
22129 no:yes:* )
22130 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22131 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22132 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22133 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22134 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22135 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22136 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22137 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22139 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22140 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22141 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22144 esac
22145 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22148 echo $ECHO_N "(cached) $ECHO_C" >&6
22149 else
22150 eval "$as_ac_Header=\$ac_header_preproc"
22152 ac_res=`eval echo '${'$as_ac_Header'}'`
22153 { echo "$as_me:$LINENO: result: $ac_res" >&5
22154 echo "${ECHO_T}$ac_res" >&6; }
22157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22158 cat >>confdefs.h <<_ACEOF
22159 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22160 _ACEOF
22162 else
22164 for ac_header in kerberos/krb.h
22166 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22168 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22171 echo $ECHO_N "(cached) $ECHO_C" >&6
22173 ac_res=`eval echo '${'$as_ac_Header'}'`
22174 { echo "$as_me:$LINENO: result: $ac_res" >&5
22175 echo "${ECHO_T}$ac_res" >&6; }
22176 else
22177 # Is the header compilable?
22178 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22179 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22180 cat >conftest.$ac_ext <<_ACEOF
22181 /* confdefs.h. */
22182 _ACEOF
22183 cat confdefs.h >>conftest.$ac_ext
22184 cat >>conftest.$ac_ext <<_ACEOF
22185 /* end confdefs.h. */
22186 $ac_includes_default
22187 #include <$ac_header>
22188 _ACEOF
22189 rm -f conftest.$ac_objext
22190 if { (ac_try="$ac_compile"
22191 case "(($ac_try" in
22192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22193 *) ac_try_echo=$ac_try;;
22194 esac
22195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22196 (eval "$ac_compile") 2>conftest.er1
22197 ac_status=$?
22198 grep -v '^ *+' conftest.er1 >conftest.err
22199 rm -f conftest.er1
22200 cat conftest.err >&5
22201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22202 (exit $ac_status); } && {
22203 test -z "$ac_c_werror_flag" ||
22204 test ! -s conftest.err
22205 } && test -s conftest.$ac_objext; then
22206 ac_header_compiler=yes
22207 else
22208 echo "$as_me: failed program was:" >&5
22209 sed 's/^/| /' conftest.$ac_ext >&5
22211 ac_header_compiler=no
22214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22215 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22216 echo "${ECHO_T}$ac_header_compiler" >&6; }
22218 # Is the header present?
22219 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22220 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22221 cat >conftest.$ac_ext <<_ACEOF
22222 /* confdefs.h. */
22223 _ACEOF
22224 cat confdefs.h >>conftest.$ac_ext
22225 cat >>conftest.$ac_ext <<_ACEOF
22226 /* end confdefs.h. */
22227 #include <$ac_header>
22228 _ACEOF
22229 if { (ac_try="$ac_cpp conftest.$ac_ext"
22230 case "(($ac_try" in
22231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22232 *) ac_try_echo=$ac_try;;
22233 esac
22234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22235 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22236 ac_status=$?
22237 grep -v '^ *+' conftest.er1 >conftest.err
22238 rm -f conftest.er1
22239 cat conftest.err >&5
22240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22241 (exit $ac_status); } >/dev/null && {
22242 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22243 test ! -s conftest.err
22244 }; then
22245 ac_header_preproc=yes
22246 else
22247 echo "$as_me: failed program was:" >&5
22248 sed 's/^/| /' conftest.$ac_ext >&5
22250 ac_header_preproc=no
22253 rm -f conftest.err conftest.$ac_ext
22254 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22255 echo "${ECHO_T}$ac_header_preproc" >&6; }
22257 # So? What about this header?
22258 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22259 yes:no: )
22260 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22261 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22262 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22263 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22264 ac_header_preproc=yes
22266 no:yes:* )
22267 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22268 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22269 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22270 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22271 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22272 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22273 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22274 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22276 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22277 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22278 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22281 esac
22282 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22284 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22285 echo $ECHO_N "(cached) $ECHO_C" >&6
22286 else
22287 eval "$as_ac_Header=\$ac_header_preproc"
22289 ac_res=`eval echo '${'$as_ac_Header'}'`
22290 { echo "$as_me:$LINENO: result: $ac_res" >&5
22291 echo "${ECHO_T}$ac_res" >&6; }
22294 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22295 cat >>confdefs.h <<_ACEOF
22296 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22297 _ACEOF
22301 done
22305 done
22309 done
22313 for ac_header in com_err.h
22315 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22317 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22320 echo $ECHO_N "(cached) $ECHO_C" >&6
22322 ac_res=`eval echo '${'$as_ac_Header'}'`
22323 { echo "$as_me:$LINENO: result: $ac_res" >&5
22324 echo "${ECHO_T}$ac_res" >&6; }
22325 else
22326 # Is the header compilable?
22327 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22328 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22329 cat >conftest.$ac_ext <<_ACEOF
22330 /* confdefs.h. */
22331 _ACEOF
22332 cat confdefs.h >>conftest.$ac_ext
22333 cat >>conftest.$ac_ext <<_ACEOF
22334 /* end confdefs.h. */
22335 $ac_includes_default
22336 #include <$ac_header>
22337 _ACEOF
22338 rm -f conftest.$ac_objext
22339 if { (ac_try="$ac_compile"
22340 case "(($ac_try" in
22341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22342 *) ac_try_echo=$ac_try;;
22343 esac
22344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22345 (eval "$ac_compile") 2>conftest.er1
22346 ac_status=$?
22347 grep -v '^ *+' conftest.er1 >conftest.err
22348 rm -f conftest.er1
22349 cat conftest.err >&5
22350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22351 (exit $ac_status); } && {
22352 test -z "$ac_c_werror_flag" ||
22353 test ! -s conftest.err
22354 } && test -s conftest.$ac_objext; then
22355 ac_header_compiler=yes
22356 else
22357 echo "$as_me: failed program was:" >&5
22358 sed 's/^/| /' conftest.$ac_ext >&5
22360 ac_header_compiler=no
22363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22364 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22365 echo "${ECHO_T}$ac_header_compiler" >&6; }
22367 # Is the header present?
22368 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22369 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22370 cat >conftest.$ac_ext <<_ACEOF
22371 /* confdefs.h. */
22372 _ACEOF
22373 cat confdefs.h >>conftest.$ac_ext
22374 cat >>conftest.$ac_ext <<_ACEOF
22375 /* end confdefs.h. */
22376 #include <$ac_header>
22377 _ACEOF
22378 if { (ac_try="$ac_cpp conftest.$ac_ext"
22379 case "(($ac_try" in
22380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22381 *) ac_try_echo=$ac_try;;
22382 esac
22383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22384 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22385 ac_status=$?
22386 grep -v '^ *+' conftest.er1 >conftest.err
22387 rm -f conftest.er1
22388 cat conftest.err >&5
22389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22390 (exit $ac_status); } >/dev/null && {
22391 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22392 test ! -s conftest.err
22393 }; then
22394 ac_header_preproc=yes
22395 else
22396 echo "$as_me: failed program was:" >&5
22397 sed 's/^/| /' conftest.$ac_ext >&5
22399 ac_header_preproc=no
22402 rm -f conftest.err conftest.$ac_ext
22403 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22404 echo "${ECHO_T}$ac_header_preproc" >&6; }
22406 # So? What about this header?
22407 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22408 yes:no: )
22409 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22410 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22411 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22412 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22413 ac_header_preproc=yes
22415 no:yes:* )
22416 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22417 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22418 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22419 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22420 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22421 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22422 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22423 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22425 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22426 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22427 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22430 esac
22431 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22433 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22434 echo $ECHO_N "(cached) $ECHO_C" >&6
22435 else
22436 eval "$as_ac_Header=\$ac_header_preproc"
22438 ac_res=`eval echo '${'$as_ac_Header'}'`
22439 { echo "$as_me:$LINENO: result: $ac_res" >&5
22440 echo "${ECHO_T}$ac_res" >&6; }
22443 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22444 cat >>confdefs.h <<_ACEOF
22445 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22446 _ACEOF
22450 done
22454 # Solaris requires -lintl if you want strerror (which calls dgettext)
22455 # to return localized messages.
22457 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
22458 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
22459 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
22460 echo $ECHO_N "(cached) $ECHO_C" >&6
22461 else
22462 ac_check_lib_save_LIBS=$LIBS
22463 LIBS="-lintl $LIBS"
22464 cat >conftest.$ac_ext <<_ACEOF
22465 /* confdefs.h. */
22466 _ACEOF
22467 cat confdefs.h >>conftest.$ac_ext
22468 cat >>conftest.$ac_ext <<_ACEOF
22469 /* end confdefs.h. */
22471 /* Override any GCC internal prototype to avoid an error.
22472 Use char because int might match the return type of a GCC
22473 builtin and then its argument prototype would still apply. */
22474 #ifdef __cplusplus
22475 extern "C"
22476 #endif
22477 char dgettext ();
22479 main ()
22481 return dgettext ();
22483 return 0;
22485 _ACEOF
22486 rm -f conftest.$ac_objext conftest$ac_exeext
22487 if { (ac_try="$ac_link"
22488 case "(($ac_try" in
22489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22490 *) ac_try_echo=$ac_try;;
22491 esac
22492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22493 (eval "$ac_link") 2>conftest.er1
22494 ac_status=$?
22495 grep -v '^ *+' conftest.er1 >conftest.err
22496 rm -f conftest.er1
22497 cat conftest.err >&5
22498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22499 (exit $ac_status); } && {
22500 test -z "$ac_c_werror_flag" ||
22501 test ! -s conftest.err
22502 } && test -s conftest$ac_exeext &&
22503 $as_test_x conftest$ac_exeext; then
22504 ac_cv_lib_intl_dgettext=yes
22505 else
22506 echo "$as_me: failed program was:" >&5
22507 sed 's/^/| /' conftest.$ac_ext >&5
22509 ac_cv_lib_intl_dgettext=no
22512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22513 conftest$ac_exeext conftest.$ac_ext
22514 LIBS=$ac_check_lib_save_LIBS
22516 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
22517 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22518 if test $ac_cv_lib_intl_dgettext = yes; then
22519 cat >>confdefs.h <<_ACEOF
22520 #define HAVE_LIBINTL 1
22521 _ACEOF
22523 LIBS="-lintl $LIBS"
22528 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
22529 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
22530 if test "${emacs_cv_localtime_cache+set}" = set; then
22531 echo $ECHO_N "(cached) $ECHO_C" >&6
22532 else
22533 if test x$ac_cv_func_tzset = xyes; then
22534 if test "$cross_compiling" = yes; then
22535 # If we have tzset, assume the worst when cross-compiling.
22536 emacs_cv_localtime_cache=yes
22537 else
22538 cat >conftest.$ac_ext <<_ACEOF
22539 /* confdefs.h. */
22540 _ACEOF
22541 cat confdefs.h >>conftest.$ac_ext
22542 cat >>conftest.$ac_ext <<_ACEOF
22543 /* end confdefs.h. */
22544 #include <time.h>
22545 extern char **environ;
22546 unset_TZ ()
22548 char **from, **to;
22549 for (to = from = environ; (*to = *from); from++)
22550 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22551 to++;
22553 char TZ_GMT0[] = "TZ=GMT0";
22554 char TZ_PST8[] = "TZ=PST8";
22555 main()
22557 time_t now = time ((time_t *) 0);
22558 int hour_GMT0, hour_unset;
22559 if (putenv (TZ_GMT0) != 0)
22560 exit (1);
22561 hour_GMT0 = localtime (&now)->tm_hour;
22562 unset_TZ ();
22563 hour_unset = localtime (&now)->tm_hour;
22564 if (putenv (TZ_PST8) != 0)
22565 exit (1);
22566 if (localtime (&now)->tm_hour == hour_GMT0)
22567 exit (1);
22568 unset_TZ ();
22569 if (localtime (&now)->tm_hour != hour_unset)
22570 exit (1);
22571 exit (0);
22573 _ACEOF
22574 rm -f conftest$ac_exeext
22575 if { (ac_try="$ac_link"
22576 case "(($ac_try" in
22577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22578 *) ac_try_echo=$ac_try;;
22579 esac
22580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22581 (eval "$ac_link") 2>&5
22582 ac_status=$?
22583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22584 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22585 { (case "(($ac_try" in
22586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22587 *) ac_try_echo=$ac_try;;
22588 esac
22589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22590 (eval "$ac_try") 2>&5
22591 ac_status=$?
22592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22593 (exit $ac_status); }; }; then
22594 emacs_cv_localtime_cache=no
22595 else
22596 echo "$as_me: program exited with status $ac_status" >&5
22597 echo "$as_me: failed program was:" >&5
22598 sed 's/^/| /' conftest.$ac_ext >&5
22600 ( exit $ac_status )
22601 emacs_cv_localtime_cache=yes
22603 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22607 else
22608 # If we lack tzset, report that localtime does not cache TZ,
22609 # since we can't invalidate the cache if we don't have tzset.
22610 emacs_cv_localtime_cache=no
22613 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
22614 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22615 if test $emacs_cv_localtime_cache = yes; then
22617 cat >>confdefs.h <<\_ACEOF
22618 #define LOCALTIME_CACHE 1
22619 _ACEOF
22623 if test "x$HAVE_TIMEVAL" = xyes; then
22625 for ac_func in gettimeofday
22627 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22628 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22629 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22630 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22631 echo $ECHO_N "(cached) $ECHO_C" >&6
22632 else
22633 cat >conftest.$ac_ext <<_ACEOF
22634 /* confdefs.h. */
22635 _ACEOF
22636 cat confdefs.h >>conftest.$ac_ext
22637 cat >>conftest.$ac_ext <<_ACEOF
22638 /* end confdefs.h. */
22639 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22640 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22641 #define $ac_func innocuous_$ac_func
22643 /* System header to define __stub macros and hopefully few prototypes,
22644 which can conflict with char $ac_func (); below.
22645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22646 <limits.h> exists even on freestanding compilers. */
22648 #ifdef __STDC__
22649 # include <limits.h>
22650 #else
22651 # include <assert.h>
22652 #endif
22654 #undef $ac_func
22656 /* Override any GCC internal prototype to avoid an error.
22657 Use char because int might match the return type of a GCC
22658 builtin and then its argument prototype would still apply. */
22659 #ifdef __cplusplus
22660 extern "C"
22661 #endif
22662 char $ac_func ();
22663 /* The GNU C library defines this for functions which it implements
22664 to always fail with ENOSYS. Some functions are actually named
22665 something starting with __ and the normal name is an alias. */
22666 #if defined __stub_$ac_func || defined __stub___$ac_func
22667 choke me
22668 #endif
22671 main ()
22673 return $ac_func ();
22675 return 0;
22677 _ACEOF
22678 rm -f conftest.$ac_objext conftest$ac_exeext
22679 if { (ac_try="$ac_link"
22680 case "(($ac_try" in
22681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22682 *) ac_try_echo=$ac_try;;
22683 esac
22684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22685 (eval "$ac_link") 2>conftest.er1
22686 ac_status=$?
22687 grep -v '^ *+' conftest.er1 >conftest.err
22688 rm -f conftest.er1
22689 cat conftest.err >&5
22690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22691 (exit $ac_status); } && {
22692 test -z "$ac_c_werror_flag" ||
22693 test ! -s conftest.err
22694 } && test -s conftest$ac_exeext &&
22695 $as_test_x conftest$ac_exeext; then
22696 eval "$as_ac_var=yes"
22697 else
22698 echo "$as_me: failed program was:" >&5
22699 sed 's/^/| /' conftest.$ac_ext >&5
22701 eval "$as_ac_var=no"
22704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22705 conftest$ac_exeext conftest.$ac_ext
22707 ac_res=`eval echo '${'$as_ac_var'}'`
22708 { echo "$as_me:$LINENO: result: $ac_res" >&5
22709 echo "${ECHO_T}$ac_res" >&6; }
22710 if test `eval echo '${'$as_ac_var'}'` = yes; then
22711 cat >>confdefs.h <<_ACEOF
22712 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22713 _ACEOF
22716 done
22718 if test $ac_cv_func_gettimeofday = yes; then
22719 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
22720 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
22721 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22722 echo $ECHO_N "(cached) $ECHO_C" >&6
22723 else
22724 cat >conftest.$ac_ext <<_ACEOF
22725 /* confdefs.h. */
22726 _ACEOF
22727 cat confdefs.h >>conftest.$ac_ext
22728 cat >>conftest.$ac_ext <<_ACEOF
22729 /* end confdefs.h. */
22731 #ifdef TIME_WITH_SYS_TIME
22732 #include <sys/time.h>
22733 #include <time.h>
22734 #else
22735 #ifdef HAVE_SYS_TIME_H
22736 #include <sys/time.h>
22737 #else
22738 #include <time.h>
22739 #endif
22740 #endif
22742 main ()
22744 struct timeval time;
22745 gettimeofday (&time, 0);
22747 return 0;
22749 _ACEOF
22750 rm -f conftest.$ac_objext
22751 if { (ac_try="$ac_compile"
22752 case "(($ac_try" in
22753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22754 *) ac_try_echo=$ac_try;;
22755 esac
22756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22757 (eval "$ac_compile") 2>conftest.er1
22758 ac_status=$?
22759 grep -v '^ *+' conftest.er1 >conftest.err
22760 rm -f conftest.er1
22761 cat conftest.err >&5
22762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22763 (exit $ac_status); } && {
22764 test -z "$ac_c_werror_flag" ||
22765 test ! -s conftest.err
22766 } && test -s conftest.$ac_objext; then
22767 emacs_cv_gettimeofday_two_arguments=yes
22768 else
22769 echo "$as_me: failed program was:" >&5
22770 sed 's/^/| /' conftest.$ac_ext >&5
22772 emacs_cv_gettimeofday_two_arguments=no
22775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22777 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
22778 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22779 if test $emacs_cv_gettimeofday_two_arguments = no; then
22781 cat >>confdefs.h <<\_ACEOF
22782 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22783 _ACEOF
22789 ok_so_far=yes
22790 { echo "$as_me:$LINENO: checking for socket" >&5
22791 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
22792 if test "${ac_cv_func_socket+set}" = set; then
22793 echo $ECHO_N "(cached) $ECHO_C" >&6
22794 else
22795 cat >conftest.$ac_ext <<_ACEOF
22796 /* confdefs.h. */
22797 _ACEOF
22798 cat confdefs.h >>conftest.$ac_ext
22799 cat >>conftest.$ac_ext <<_ACEOF
22800 /* end confdefs.h. */
22801 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22802 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22803 #define socket innocuous_socket
22805 /* System header to define __stub macros and hopefully few prototypes,
22806 which can conflict with char socket (); below.
22807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22808 <limits.h> exists even on freestanding compilers. */
22810 #ifdef __STDC__
22811 # include <limits.h>
22812 #else
22813 # include <assert.h>
22814 #endif
22816 #undef socket
22818 /* Override any GCC internal prototype to avoid an error.
22819 Use char because int might match the return type of a GCC
22820 builtin and then its argument prototype would still apply. */
22821 #ifdef __cplusplus
22822 extern "C"
22823 #endif
22824 char socket ();
22825 /* The GNU C library defines this for functions which it implements
22826 to always fail with ENOSYS. Some functions are actually named
22827 something starting with __ and the normal name is an alias. */
22828 #if defined __stub_socket || defined __stub___socket
22829 choke me
22830 #endif
22833 main ()
22835 return socket ();
22837 return 0;
22839 _ACEOF
22840 rm -f conftest.$ac_objext conftest$ac_exeext
22841 if { (ac_try="$ac_link"
22842 case "(($ac_try" in
22843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22844 *) ac_try_echo=$ac_try;;
22845 esac
22846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22847 (eval "$ac_link") 2>conftest.er1
22848 ac_status=$?
22849 grep -v '^ *+' conftest.er1 >conftest.err
22850 rm -f conftest.er1
22851 cat conftest.err >&5
22852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22853 (exit $ac_status); } && {
22854 test -z "$ac_c_werror_flag" ||
22855 test ! -s conftest.err
22856 } && test -s conftest$ac_exeext &&
22857 $as_test_x conftest$ac_exeext; then
22858 ac_cv_func_socket=yes
22859 else
22860 echo "$as_me: failed program was:" >&5
22861 sed 's/^/| /' conftest.$ac_ext >&5
22863 ac_cv_func_socket=no
22866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22867 conftest$ac_exeext conftest.$ac_ext
22869 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22870 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22871 if test $ac_cv_func_socket = yes; then
22873 else
22874 ok_so_far=no
22877 if test $ok_so_far = yes; then
22878 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22879 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22880 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22881 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22882 echo $ECHO_N "(cached) $ECHO_C" >&6
22884 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22885 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22886 else
22887 # Is the header compilable?
22888 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22889 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
22890 cat >conftest.$ac_ext <<_ACEOF
22891 /* confdefs.h. */
22892 _ACEOF
22893 cat confdefs.h >>conftest.$ac_ext
22894 cat >>conftest.$ac_ext <<_ACEOF
22895 /* end confdefs.h. */
22896 $ac_includes_default
22897 #include <netinet/in.h>
22898 _ACEOF
22899 rm -f conftest.$ac_objext
22900 if { (ac_try="$ac_compile"
22901 case "(($ac_try" in
22902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22903 *) ac_try_echo=$ac_try;;
22904 esac
22905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22906 (eval "$ac_compile") 2>conftest.er1
22907 ac_status=$?
22908 grep -v '^ *+' conftest.er1 >conftest.err
22909 rm -f conftest.er1
22910 cat conftest.err >&5
22911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22912 (exit $ac_status); } && {
22913 test -z "$ac_c_werror_flag" ||
22914 test ! -s conftest.err
22915 } && test -s conftest.$ac_objext; then
22916 ac_header_compiler=yes
22917 else
22918 echo "$as_me: failed program was:" >&5
22919 sed 's/^/| /' conftest.$ac_ext >&5
22921 ac_header_compiler=no
22924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22925 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22926 echo "${ECHO_T}$ac_header_compiler" >&6; }
22928 # Is the header present?
22929 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22930 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
22931 cat >conftest.$ac_ext <<_ACEOF
22932 /* confdefs.h. */
22933 _ACEOF
22934 cat confdefs.h >>conftest.$ac_ext
22935 cat >>conftest.$ac_ext <<_ACEOF
22936 /* end confdefs.h. */
22937 #include <netinet/in.h>
22938 _ACEOF
22939 if { (ac_try="$ac_cpp conftest.$ac_ext"
22940 case "(($ac_try" in
22941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22942 *) ac_try_echo=$ac_try;;
22943 esac
22944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22945 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22946 ac_status=$?
22947 grep -v '^ *+' conftest.er1 >conftest.err
22948 rm -f conftest.er1
22949 cat conftest.err >&5
22950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22951 (exit $ac_status); } >/dev/null && {
22952 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22953 test ! -s conftest.err
22954 }; then
22955 ac_header_preproc=yes
22956 else
22957 echo "$as_me: failed program was:" >&5
22958 sed 's/^/| /' conftest.$ac_ext >&5
22960 ac_header_preproc=no
22963 rm -f conftest.err conftest.$ac_ext
22964 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22965 echo "${ECHO_T}$ac_header_preproc" >&6; }
22967 # So? What about this header?
22968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22969 yes:no: )
22970 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22971 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22972 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22973 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22974 ac_header_preproc=yes
22976 no:yes:* )
22977 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22978 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22979 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22980 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22981 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22982 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22983 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22984 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22985 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22986 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22987 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22988 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22991 esac
22992 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22993 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22994 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22995 echo $ECHO_N "(cached) $ECHO_C" >&6
22996 else
22997 ac_cv_header_netinet_in_h=$ac_header_preproc
22999 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
23000 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
23003 if test $ac_cv_header_netinet_in_h = yes; then
23005 else
23006 ok_so_far=no
23011 if test $ok_so_far = yes; then
23012 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23013 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
23014 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
23015 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23016 echo $ECHO_N "(cached) $ECHO_C" >&6
23018 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
23019 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
23020 else
23021 # Is the header compilable?
23022 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
23023 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
23024 cat >conftest.$ac_ext <<_ACEOF
23025 /* confdefs.h. */
23026 _ACEOF
23027 cat confdefs.h >>conftest.$ac_ext
23028 cat >>conftest.$ac_ext <<_ACEOF
23029 /* end confdefs.h. */
23030 $ac_includes_default
23031 #include <arpa/inet.h>
23032 _ACEOF
23033 rm -f conftest.$ac_objext
23034 if { (ac_try="$ac_compile"
23035 case "(($ac_try" in
23036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23037 *) ac_try_echo=$ac_try;;
23038 esac
23039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23040 (eval "$ac_compile") 2>conftest.er1
23041 ac_status=$?
23042 grep -v '^ *+' conftest.er1 >conftest.err
23043 rm -f conftest.er1
23044 cat conftest.err >&5
23045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23046 (exit $ac_status); } && {
23047 test -z "$ac_c_werror_flag" ||
23048 test ! -s conftest.err
23049 } && test -s conftest.$ac_objext; then
23050 ac_header_compiler=yes
23051 else
23052 echo "$as_me: failed program was:" >&5
23053 sed 's/^/| /' conftest.$ac_ext >&5
23055 ac_header_compiler=no
23058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23059 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23060 echo "${ECHO_T}$ac_header_compiler" >&6; }
23062 # Is the header present?
23063 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
23064 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
23065 cat >conftest.$ac_ext <<_ACEOF
23066 /* confdefs.h. */
23067 _ACEOF
23068 cat confdefs.h >>conftest.$ac_ext
23069 cat >>conftest.$ac_ext <<_ACEOF
23070 /* end confdefs.h. */
23071 #include <arpa/inet.h>
23072 _ACEOF
23073 if { (ac_try="$ac_cpp conftest.$ac_ext"
23074 case "(($ac_try" in
23075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23076 *) ac_try_echo=$ac_try;;
23077 esac
23078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23079 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23080 ac_status=$?
23081 grep -v '^ *+' conftest.er1 >conftest.err
23082 rm -f conftest.er1
23083 cat conftest.err >&5
23084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23085 (exit $ac_status); } >/dev/null && {
23086 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23087 test ! -s conftest.err
23088 }; then
23089 ac_header_preproc=yes
23090 else
23091 echo "$as_me: failed program was:" >&5
23092 sed 's/^/| /' conftest.$ac_ext >&5
23094 ac_header_preproc=no
23097 rm -f conftest.err conftest.$ac_ext
23098 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23099 echo "${ECHO_T}$ac_header_preproc" >&6; }
23101 # So? What about this header?
23102 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23103 yes:no: )
23104 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
23105 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23106 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
23107 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
23108 ac_header_preproc=yes
23110 no:yes:* )
23111 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
23112 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
23113 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
23114 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
23115 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
23116 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
23117 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
23118 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
23119 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
23120 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
23121 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
23122 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
23125 esac
23126 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
23127 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
23128 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23129 echo $ECHO_N "(cached) $ECHO_C" >&6
23130 else
23131 ac_cv_header_arpa_inet_h=$ac_header_preproc
23133 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
23134 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
23137 if test $ac_cv_header_arpa_inet_h = yes; then
23139 else
23140 ok_so_far=no
23145 if test $ok_so_far = yes; then
23147 cat >>confdefs.h <<\_ACEOF
23148 #define HAVE_INET_SOCKETS 1
23149 _ACEOF
23154 for ac_header in sys/ioctl.h
23156 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23158 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23159 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23161 echo $ECHO_N "(cached) $ECHO_C" >&6
23163 ac_res=`eval echo '${'$as_ac_Header'}'`
23164 { echo "$as_me:$LINENO: result: $ac_res" >&5
23165 echo "${ECHO_T}$ac_res" >&6; }
23166 else
23167 # Is the header compilable?
23168 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23169 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23170 cat >conftest.$ac_ext <<_ACEOF
23171 /* confdefs.h. */
23172 _ACEOF
23173 cat confdefs.h >>conftest.$ac_ext
23174 cat >>conftest.$ac_ext <<_ACEOF
23175 /* end confdefs.h. */
23176 $ac_includes_default
23177 #include <$ac_header>
23178 _ACEOF
23179 rm -f conftest.$ac_objext
23180 if { (ac_try="$ac_compile"
23181 case "(($ac_try" in
23182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23183 *) ac_try_echo=$ac_try;;
23184 esac
23185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23186 (eval "$ac_compile") 2>conftest.er1
23187 ac_status=$?
23188 grep -v '^ *+' conftest.er1 >conftest.err
23189 rm -f conftest.er1
23190 cat conftest.err >&5
23191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23192 (exit $ac_status); } && {
23193 test -z "$ac_c_werror_flag" ||
23194 test ! -s conftest.err
23195 } && test -s conftest.$ac_objext; then
23196 ac_header_compiler=yes
23197 else
23198 echo "$as_me: failed program was:" >&5
23199 sed 's/^/| /' conftest.$ac_ext >&5
23201 ac_header_compiler=no
23204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23205 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23206 echo "${ECHO_T}$ac_header_compiler" >&6; }
23208 # Is the header present?
23209 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23210 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23211 cat >conftest.$ac_ext <<_ACEOF
23212 /* confdefs.h. */
23213 _ACEOF
23214 cat confdefs.h >>conftest.$ac_ext
23215 cat >>conftest.$ac_ext <<_ACEOF
23216 /* end confdefs.h. */
23217 #include <$ac_header>
23218 _ACEOF
23219 if { (ac_try="$ac_cpp conftest.$ac_ext"
23220 case "(($ac_try" in
23221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23222 *) ac_try_echo=$ac_try;;
23223 esac
23224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23225 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23226 ac_status=$?
23227 grep -v '^ *+' conftest.er1 >conftest.err
23228 rm -f conftest.er1
23229 cat conftest.err >&5
23230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23231 (exit $ac_status); } >/dev/null && {
23232 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23233 test ! -s conftest.err
23234 }; then
23235 ac_header_preproc=yes
23236 else
23237 echo "$as_me: failed program was:" >&5
23238 sed 's/^/| /' conftest.$ac_ext >&5
23240 ac_header_preproc=no
23243 rm -f conftest.err conftest.$ac_ext
23244 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23245 echo "${ECHO_T}$ac_header_preproc" >&6; }
23247 # So? What about this header?
23248 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23249 yes:no: )
23250 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23251 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23252 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23253 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23254 ac_header_preproc=yes
23256 no:yes:* )
23257 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23258 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23259 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23260 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23261 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23262 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23263 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23264 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23266 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23267 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23268 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23271 esac
23272 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23275 echo $ECHO_N "(cached) $ECHO_C" >&6
23276 else
23277 eval "$as_ac_Header=\$ac_header_preproc"
23279 ac_res=`eval echo '${'$as_ac_Header'}'`
23280 { echo "$as_me:$LINENO: result: $ac_res" >&5
23281 echo "${ECHO_T}$ac_res" >&6; }
23284 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23285 cat >>confdefs.h <<_ACEOF
23286 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23287 _ACEOF
23291 done
23294 if test -f /usr/lpp/X11/bin/smt.exp; then
23296 cat >>confdefs.h <<\_ACEOF
23297 #define HAVE_AIX_SMT_EXP 1
23298 _ACEOF
23302 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
23303 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
23304 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
23305 { echo "$as_me:$LINENO: result: yes" >&5
23306 echo "${ECHO_T}yes" >&6; }
23308 cat >>confdefs.h <<\_ACEOF
23309 #define HAVE_DEV_PTMX 1
23310 _ACEOF
23312 else
23313 { echo "$as_me:$LINENO: result: no" >&5
23314 echo "${ECHO_T}no" >&6; }
23317 { echo "$as_me:$LINENO: checking for pid_t" >&5
23318 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23319 if test "${ac_cv_type_pid_t+set}" = set; then
23320 echo $ECHO_N "(cached) $ECHO_C" >&6
23321 else
23322 cat >conftest.$ac_ext <<_ACEOF
23323 /* confdefs.h. */
23324 _ACEOF
23325 cat confdefs.h >>conftest.$ac_ext
23326 cat >>conftest.$ac_ext <<_ACEOF
23327 /* end confdefs.h. */
23328 $ac_includes_default
23329 typedef pid_t ac__type_new_;
23331 main ()
23333 if ((ac__type_new_ *) 0)
23334 return 0;
23335 if (sizeof (ac__type_new_))
23336 return 0;
23338 return 0;
23340 _ACEOF
23341 rm -f conftest.$ac_objext
23342 if { (ac_try="$ac_compile"
23343 case "(($ac_try" in
23344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23345 *) ac_try_echo=$ac_try;;
23346 esac
23347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23348 (eval "$ac_compile") 2>conftest.er1
23349 ac_status=$?
23350 grep -v '^ *+' conftest.er1 >conftest.err
23351 rm -f conftest.er1
23352 cat conftest.err >&5
23353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23354 (exit $ac_status); } && {
23355 test -z "$ac_c_werror_flag" ||
23356 test ! -s conftest.err
23357 } && test -s conftest.$ac_objext; then
23358 ac_cv_type_pid_t=yes
23359 else
23360 echo "$as_me: failed program was:" >&5
23361 sed 's/^/| /' conftest.$ac_ext >&5
23363 ac_cv_type_pid_t=no
23366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23368 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23369 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23370 if test $ac_cv_type_pid_t = yes; then
23372 else
23374 cat >>confdefs.h <<_ACEOF
23375 #define pid_t int
23376 _ACEOF
23381 for ac_header in vfork.h
23383 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23385 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23388 echo $ECHO_N "(cached) $ECHO_C" >&6
23390 ac_res=`eval echo '${'$as_ac_Header'}'`
23391 { echo "$as_me:$LINENO: result: $ac_res" >&5
23392 echo "${ECHO_T}$ac_res" >&6; }
23393 else
23394 # Is the header compilable?
23395 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23396 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23397 cat >conftest.$ac_ext <<_ACEOF
23398 /* confdefs.h. */
23399 _ACEOF
23400 cat confdefs.h >>conftest.$ac_ext
23401 cat >>conftest.$ac_ext <<_ACEOF
23402 /* end confdefs.h. */
23403 $ac_includes_default
23404 #include <$ac_header>
23405 _ACEOF
23406 rm -f conftest.$ac_objext
23407 if { (ac_try="$ac_compile"
23408 case "(($ac_try" in
23409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23410 *) ac_try_echo=$ac_try;;
23411 esac
23412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23413 (eval "$ac_compile") 2>conftest.er1
23414 ac_status=$?
23415 grep -v '^ *+' conftest.er1 >conftest.err
23416 rm -f conftest.er1
23417 cat conftest.err >&5
23418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23419 (exit $ac_status); } && {
23420 test -z "$ac_c_werror_flag" ||
23421 test ! -s conftest.err
23422 } && test -s conftest.$ac_objext; then
23423 ac_header_compiler=yes
23424 else
23425 echo "$as_me: failed program was:" >&5
23426 sed 's/^/| /' conftest.$ac_ext >&5
23428 ac_header_compiler=no
23431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23432 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23433 echo "${ECHO_T}$ac_header_compiler" >&6; }
23435 # Is the header present?
23436 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23437 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23438 cat >conftest.$ac_ext <<_ACEOF
23439 /* confdefs.h. */
23440 _ACEOF
23441 cat confdefs.h >>conftest.$ac_ext
23442 cat >>conftest.$ac_ext <<_ACEOF
23443 /* end confdefs.h. */
23444 #include <$ac_header>
23445 _ACEOF
23446 if { (ac_try="$ac_cpp conftest.$ac_ext"
23447 case "(($ac_try" in
23448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23449 *) ac_try_echo=$ac_try;;
23450 esac
23451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23452 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23453 ac_status=$?
23454 grep -v '^ *+' conftest.er1 >conftest.err
23455 rm -f conftest.er1
23456 cat conftest.err >&5
23457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23458 (exit $ac_status); } >/dev/null && {
23459 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23460 test ! -s conftest.err
23461 }; then
23462 ac_header_preproc=yes
23463 else
23464 echo "$as_me: failed program was:" >&5
23465 sed 's/^/| /' conftest.$ac_ext >&5
23467 ac_header_preproc=no
23470 rm -f conftest.err conftest.$ac_ext
23471 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23472 echo "${ECHO_T}$ac_header_preproc" >&6; }
23474 # So? What about this header?
23475 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23476 yes:no: )
23477 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23478 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23480 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23481 ac_header_preproc=yes
23483 no:yes:* )
23484 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23485 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23486 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23487 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23488 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23489 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23490 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23491 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23493 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23494 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23495 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23498 esac
23499 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23502 echo $ECHO_N "(cached) $ECHO_C" >&6
23503 else
23504 eval "$as_ac_Header=\$ac_header_preproc"
23506 ac_res=`eval echo '${'$as_ac_Header'}'`
23507 { echo "$as_me:$LINENO: result: $ac_res" >&5
23508 echo "${ECHO_T}$ac_res" >&6; }
23511 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23512 cat >>confdefs.h <<_ACEOF
23513 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23514 _ACEOF
23518 done
23522 for ac_func in fork vfork
23524 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23525 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23526 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23527 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23528 echo $ECHO_N "(cached) $ECHO_C" >&6
23529 else
23530 cat >conftest.$ac_ext <<_ACEOF
23531 /* confdefs.h. */
23532 _ACEOF
23533 cat confdefs.h >>conftest.$ac_ext
23534 cat >>conftest.$ac_ext <<_ACEOF
23535 /* end confdefs.h. */
23536 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23537 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23538 #define $ac_func innocuous_$ac_func
23540 /* System header to define __stub macros and hopefully few prototypes,
23541 which can conflict with char $ac_func (); below.
23542 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23543 <limits.h> exists even on freestanding compilers. */
23545 #ifdef __STDC__
23546 # include <limits.h>
23547 #else
23548 # include <assert.h>
23549 #endif
23551 #undef $ac_func
23553 /* Override any GCC internal prototype to avoid an error.
23554 Use char because int might match the return type of a GCC
23555 builtin and then its argument prototype would still apply. */
23556 #ifdef __cplusplus
23557 extern "C"
23558 #endif
23559 char $ac_func ();
23560 /* The GNU C library defines this for functions which it implements
23561 to always fail with ENOSYS. Some functions are actually named
23562 something starting with __ and the normal name is an alias. */
23563 #if defined __stub_$ac_func || defined __stub___$ac_func
23564 choke me
23565 #endif
23568 main ()
23570 return $ac_func ();
23572 return 0;
23574 _ACEOF
23575 rm -f conftest.$ac_objext conftest$ac_exeext
23576 if { (ac_try="$ac_link"
23577 case "(($ac_try" in
23578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23579 *) ac_try_echo=$ac_try;;
23580 esac
23581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23582 (eval "$ac_link") 2>conftest.er1
23583 ac_status=$?
23584 grep -v '^ *+' conftest.er1 >conftest.err
23585 rm -f conftest.er1
23586 cat conftest.err >&5
23587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23588 (exit $ac_status); } && {
23589 test -z "$ac_c_werror_flag" ||
23590 test ! -s conftest.err
23591 } && test -s conftest$ac_exeext &&
23592 $as_test_x conftest$ac_exeext; then
23593 eval "$as_ac_var=yes"
23594 else
23595 echo "$as_me: failed program was:" >&5
23596 sed 's/^/| /' conftest.$ac_ext >&5
23598 eval "$as_ac_var=no"
23601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23602 conftest$ac_exeext conftest.$ac_ext
23604 ac_res=`eval echo '${'$as_ac_var'}'`
23605 { echo "$as_me:$LINENO: result: $ac_res" >&5
23606 echo "${ECHO_T}$ac_res" >&6; }
23607 if test `eval echo '${'$as_ac_var'}'` = yes; then
23608 cat >>confdefs.h <<_ACEOF
23609 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23610 _ACEOF
23613 done
23615 if test "x$ac_cv_func_fork" = xyes; then
23616 { echo "$as_me:$LINENO: checking for working fork" >&5
23617 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
23618 if test "${ac_cv_func_fork_works+set}" = set; then
23619 echo $ECHO_N "(cached) $ECHO_C" >&6
23620 else
23621 if test "$cross_compiling" = yes; then
23622 ac_cv_func_fork_works=cross
23623 else
23624 cat >conftest.$ac_ext <<_ACEOF
23625 /* confdefs.h. */
23626 _ACEOF
23627 cat confdefs.h >>conftest.$ac_ext
23628 cat >>conftest.$ac_ext <<_ACEOF
23629 /* end confdefs.h. */
23630 $ac_includes_default
23632 main ()
23635 /* By Ruediger Kuhlmann. */
23636 return fork () < 0;
23639 return 0;
23641 _ACEOF
23642 rm -f conftest$ac_exeext
23643 if { (ac_try="$ac_link"
23644 case "(($ac_try" in
23645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23646 *) ac_try_echo=$ac_try;;
23647 esac
23648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23649 (eval "$ac_link") 2>&5
23650 ac_status=$?
23651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23652 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23653 { (case "(($ac_try" in
23654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23655 *) ac_try_echo=$ac_try;;
23656 esac
23657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23658 (eval "$ac_try") 2>&5
23659 ac_status=$?
23660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23661 (exit $ac_status); }; }; then
23662 ac_cv_func_fork_works=yes
23663 else
23664 echo "$as_me: program exited with status $ac_status" >&5
23665 echo "$as_me: failed program was:" >&5
23666 sed 's/^/| /' conftest.$ac_ext >&5
23668 ( exit $ac_status )
23669 ac_cv_func_fork_works=no
23671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23676 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23677 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23679 else
23680 ac_cv_func_fork_works=$ac_cv_func_fork
23682 if test "x$ac_cv_func_fork_works" = xcross; then
23683 case $host in
23684 *-*-amigaos* | *-*-msdosdjgpp*)
23685 # Override, as these systems have only a dummy fork() stub
23686 ac_cv_func_fork_works=no
23689 ac_cv_func_fork_works=yes
23691 esac
23692 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23693 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23695 ac_cv_func_vfork_works=$ac_cv_func_vfork
23696 if test "x$ac_cv_func_vfork" = xyes; then
23697 { echo "$as_me:$LINENO: checking for working vfork" >&5
23698 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
23699 if test "${ac_cv_func_vfork_works+set}" = set; then
23700 echo $ECHO_N "(cached) $ECHO_C" >&6
23701 else
23702 if test "$cross_compiling" = yes; then
23703 ac_cv_func_vfork_works=cross
23704 else
23705 cat >conftest.$ac_ext <<_ACEOF
23706 /* confdefs.h. */
23707 _ACEOF
23708 cat confdefs.h >>conftest.$ac_ext
23709 cat >>conftest.$ac_ext <<_ACEOF
23710 /* end confdefs.h. */
23711 /* Thanks to Paul Eggert for this test. */
23712 $ac_includes_default
23713 #include <sys/wait.h>
23714 #ifdef HAVE_VFORK_H
23715 # include <vfork.h>
23716 #endif
23717 /* On some sparc systems, changes by the child to local and incoming
23718 argument registers are propagated back to the parent. The compiler
23719 is told about this with #include <vfork.h>, but some compilers
23720 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23721 static variable whose address is put into a register that is
23722 clobbered by the vfork. */
23723 static void
23724 #ifdef __cplusplus
23725 sparc_address_test (int arg)
23726 # else
23727 sparc_address_test (arg) int arg;
23728 #endif
23730 static pid_t child;
23731 if (!child) {
23732 child = vfork ();
23733 if (child < 0) {
23734 perror ("vfork");
23735 _exit(2);
23737 if (!child) {
23738 arg = getpid();
23739 write(-1, "", 0);
23740 _exit (arg);
23746 main ()
23748 pid_t parent = getpid ();
23749 pid_t child;
23751 sparc_address_test (0);
23753 child = vfork ();
23755 if (child == 0) {
23756 /* Here is another test for sparc vfork register problems. This
23757 test uses lots of local variables, at least as many local
23758 variables as main has allocated so far including compiler
23759 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23760 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23761 reuse the register of parent for one of the local variables,
23762 since it will think that parent can't possibly be used any more
23763 in this routine. Assigning to the local variable will thus
23764 munge parent in the parent process. */
23765 pid_t
23766 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23767 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23768 /* Convince the compiler that p..p7 are live; otherwise, it might
23769 use the same hardware register for all 8 local variables. */
23770 if (p != p1 || p != p2 || p != p3 || p != p4
23771 || p != p5 || p != p6 || p != p7)
23772 _exit(1);
23774 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23775 from child file descriptors. If the child closes a descriptor
23776 before it execs or exits, this munges the parent's descriptor
23777 as well. Test for this by closing stdout in the child. */
23778 _exit(close(fileno(stdout)) != 0);
23779 } else {
23780 int status;
23781 struct stat st;
23783 while (wait(&status) != child)
23785 return (
23786 /* Was there some problem with vforking? */
23787 child < 0
23789 /* Did the child fail? (This shouldn't happen.) */
23790 || status
23792 /* Did the vfork/compiler bug occur? */
23793 || parent != getpid()
23795 /* Did the file descriptor bug occur? */
23796 || fstat(fileno(stdout), &st) != 0
23800 _ACEOF
23801 rm -f conftest$ac_exeext
23802 if { (ac_try="$ac_link"
23803 case "(($ac_try" in
23804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23805 *) ac_try_echo=$ac_try;;
23806 esac
23807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23808 (eval "$ac_link") 2>&5
23809 ac_status=$?
23810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23811 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23812 { (case "(($ac_try" in
23813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23814 *) ac_try_echo=$ac_try;;
23815 esac
23816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23817 (eval "$ac_try") 2>&5
23818 ac_status=$?
23819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23820 (exit $ac_status); }; }; then
23821 ac_cv_func_vfork_works=yes
23822 else
23823 echo "$as_me: program exited with status $ac_status" >&5
23824 echo "$as_me: failed program was:" >&5
23825 sed 's/^/| /' conftest.$ac_ext >&5
23827 ( exit $ac_status )
23828 ac_cv_func_vfork_works=no
23830 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23835 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23836 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23839 if test "x$ac_cv_func_fork_works" = xcross; then
23840 ac_cv_func_vfork_works=$ac_cv_func_vfork
23841 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23842 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23845 if test "x$ac_cv_func_vfork_works" = xyes; then
23847 cat >>confdefs.h <<\_ACEOF
23848 #define HAVE_WORKING_VFORK 1
23849 _ACEOF
23851 else
23853 cat >>confdefs.h <<\_ACEOF
23854 #define vfork fork
23855 _ACEOF
23858 if test "x$ac_cv_func_fork_works" = xyes; then
23860 cat >>confdefs.h <<\_ACEOF
23861 #define HAVE_WORKING_FORK 1
23862 _ACEOF
23867 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23868 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
23869 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23870 echo $ECHO_N "(cached) $ECHO_C" >&6
23871 else
23872 cat >conftest.$ac_ext <<_ACEOF
23873 /* confdefs.h. */
23874 _ACEOF
23875 cat confdefs.h >>conftest.$ac_ext
23876 cat >>conftest.$ac_ext <<_ACEOF
23877 /* end confdefs.h. */
23878 #include <langinfo.h>
23880 main ()
23882 char* cs = nl_langinfo(CODESET);
23884 return 0;
23886 _ACEOF
23887 rm -f conftest.$ac_objext conftest$ac_exeext
23888 if { (ac_try="$ac_link"
23889 case "(($ac_try" in
23890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23891 *) ac_try_echo=$ac_try;;
23892 esac
23893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23894 (eval "$ac_link") 2>conftest.er1
23895 ac_status=$?
23896 grep -v '^ *+' conftest.er1 >conftest.err
23897 rm -f conftest.er1
23898 cat conftest.err >&5
23899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23900 (exit $ac_status); } && {
23901 test -z "$ac_c_werror_flag" ||
23902 test ! -s conftest.err
23903 } && test -s conftest$ac_exeext &&
23904 $as_test_x conftest$ac_exeext; then
23905 emacs_cv_langinfo_codeset=yes
23906 else
23907 echo "$as_me: failed program was:" >&5
23908 sed 's/^/| /' conftest.$ac_ext >&5
23910 emacs_cv_langinfo_codeset=no
23913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23914 conftest$ac_exeext conftest.$ac_ext
23917 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23918 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23919 if test $emacs_cv_langinfo_codeset = yes; then
23921 cat >>confdefs.h <<\_ACEOF
23922 #define HAVE_LANGINFO_CODESET 1
23923 _ACEOF
23927 { echo "$as_me:$LINENO: checking for size_t" >&5
23928 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23929 if test "${ac_cv_type_size_t+set}" = set; then
23930 echo $ECHO_N "(cached) $ECHO_C" >&6
23931 else
23932 cat >conftest.$ac_ext <<_ACEOF
23933 /* confdefs.h. */
23934 _ACEOF
23935 cat confdefs.h >>conftest.$ac_ext
23936 cat >>conftest.$ac_ext <<_ACEOF
23937 /* end confdefs.h. */
23938 $ac_includes_default
23939 typedef size_t ac__type_new_;
23941 main ()
23943 if ((ac__type_new_ *) 0)
23944 return 0;
23945 if (sizeof (ac__type_new_))
23946 return 0;
23948 return 0;
23950 _ACEOF
23951 rm -f conftest.$ac_objext
23952 if { (ac_try="$ac_compile"
23953 case "(($ac_try" in
23954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23955 *) ac_try_echo=$ac_try;;
23956 esac
23957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23958 (eval "$ac_compile") 2>conftest.er1
23959 ac_status=$?
23960 grep -v '^ *+' conftest.er1 >conftest.err
23961 rm -f conftest.er1
23962 cat conftest.err >&5
23963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23964 (exit $ac_status); } && {
23965 test -z "$ac_c_werror_flag" ||
23966 test ! -s conftest.err
23967 } && test -s conftest.$ac_objext; then
23968 ac_cv_type_size_t=yes
23969 else
23970 echo "$as_me: failed program was:" >&5
23971 sed 's/^/| /' conftest.$ac_ext >&5
23973 ac_cv_type_size_t=no
23976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23978 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23979 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23980 if test $ac_cv_type_size_t = yes; then
23982 cat >>confdefs.h <<_ACEOF
23983 #define HAVE_SIZE_T 1
23984 _ACEOF
23990 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23991 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23992 if test "${ac_cv_type_mbstate_t+set}" = set; then
23993 echo $ECHO_N "(cached) $ECHO_C" >&6
23994 else
23995 cat >conftest.$ac_ext <<_ACEOF
23996 /* confdefs.h. */
23997 _ACEOF
23998 cat confdefs.h >>conftest.$ac_ext
23999 cat >>conftest.$ac_ext <<_ACEOF
24000 /* end confdefs.h. */
24001 $ac_includes_default
24002 # include <wchar.h>
24004 main ()
24006 mbstate_t x; return sizeof x;
24008 return 0;
24010 _ACEOF
24011 rm -f conftest.$ac_objext
24012 if { (ac_try="$ac_compile"
24013 case "(($ac_try" in
24014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24015 *) ac_try_echo=$ac_try;;
24016 esac
24017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24018 (eval "$ac_compile") 2>conftest.er1
24019 ac_status=$?
24020 grep -v '^ *+' conftest.er1 >conftest.err
24021 rm -f conftest.er1
24022 cat conftest.err >&5
24023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24024 (exit $ac_status); } && {
24025 test -z "$ac_c_werror_flag" ||
24026 test ! -s conftest.err
24027 } && test -s conftest.$ac_objext; then
24028 ac_cv_type_mbstate_t=yes
24029 else
24030 echo "$as_me: failed program was:" >&5
24031 sed 's/^/| /' conftest.$ac_ext >&5
24033 ac_cv_type_mbstate_t=no
24036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24038 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
24039 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
24040 if test $ac_cv_type_mbstate_t = yes; then
24042 cat >>confdefs.h <<\_ACEOF
24043 #define HAVE_MBSTATE_T 1
24044 _ACEOF
24046 else
24048 cat >>confdefs.h <<\_ACEOF
24049 #define mbstate_t int
24050 _ACEOF
24054 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
24055 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
24056 if test "${emacs_cv_c_restrict+set}" = set; then
24057 echo $ECHO_N "(cached) $ECHO_C" >&6
24058 else
24059 cat >conftest.$ac_ext <<_ACEOF
24060 /* confdefs.h. */
24061 _ACEOF
24062 cat confdefs.h >>conftest.$ac_ext
24063 cat >>conftest.$ac_ext <<_ACEOF
24064 /* end confdefs.h. */
24065 void fred (int *restrict x);
24067 main ()
24071 return 0;
24073 _ACEOF
24074 rm -f conftest.$ac_objext
24075 if { (ac_try="$ac_compile"
24076 case "(($ac_try" in
24077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24078 *) ac_try_echo=$ac_try;;
24079 esac
24080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24081 (eval "$ac_compile") 2>conftest.er1
24082 ac_status=$?
24083 grep -v '^ *+' conftest.er1 >conftest.err
24084 rm -f conftest.er1
24085 cat conftest.err >&5
24086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24087 (exit $ac_status); } && {
24088 test -z "$ac_c_werror_flag" ||
24089 test ! -s conftest.err
24090 } && test -s conftest.$ac_objext; then
24091 emacs_cv_c_restrict=yes
24092 else
24093 echo "$as_me: failed program was:" >&5
24094 sed 's/^/| /' conftest.$ac_ext >&5
24096 cat >conftest.$ac_ext <<_ACEOF
24097 /* confdefs.h. */
24098 _ACEOF
24099 cat confdefs.h >>conftest.$ac_ext
24100 cat >>conftest.$ac_ext <<_ACEOF
24101 /* end confdefs.h. */
24102 void fred (int *__restrict x);
24104 main ()
24108 return 0;
24110 _ACEOF
24111 rm -f conftest.$ac_objext
24112 if { (ac_try="$ac_compile"
24113 case "(($ac_try" in
24114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24115 *) ac_try_echo=$ac_try;;
24116 esac
24117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24118 (eval "$ac_compile") 2>conftest.er1
24119 ac_status=$?
24120 grep -v '^ *+' conftest.er1 >conftest.err
24121 rm -f conftest.er1
24122 cat conftest.err >&5
24123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24124 (exit $ac_status); } && {
24125 test -z "$ac_c_werror_flag" ||
24126 test ! -s conftest.err
24127 } && test -s conftest.$ac_objext; then
24128 emacs_cv_c_restrict=__restrict
24129 else
24130 echo "$as_me: failed program was:" >&5
24131 sed 's/^/| /' conftest.$ac_ext >&5
24133 emacs_cv_c_restrict=no
24136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24141 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
24142 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
24143 case "$emacs_cv_c_restrict" in
24144 yes) emacs_restrict=restrict;;
24145 no) emacs_restrict="";;
24146 *) emacs_restrict="$emacs_cv_c_restrict";;
24147 esac
24148 if test "$emacs_restrict" != __restrict; then
24150 cat >>confdefs.h <<_ACEOF
24151 #define __restrict $emacs_restrict
24152 _ACEOF
24156 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
24157 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
24158 if test "${emacs_cv_c_restrict_arr+set}" = set; then
24159 echo $ECHO_N "(cached) $ECHO_C" >&6
24160 else
24161 cat >conftest.$ac_ext <<_ACEOF
24162 /* confdefs.h. */
24163 _ACEOF
24164 cat confdefs.h >>conftest.$ac_ext
24165 cat >>conftest.$ac_ext <<_ACEOF
24166 /* end confdefs.h. */
24167 void fred (int x[__restrict]);
24169 main ()
24173 return 0;
24175 _ACEOF
24176 rm -f conftest.$ac_objext
24177 if { (ac_try="$ac_compile"
24178 case "(($ac_try" in
24179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24180 *) ac_try_echo=$ac_try;;
24181 esac
24182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24183 (eval "$ac_compile") 2>conftest.er1
24184 ac_status=$?
24185 grep -v '^ *+' conftest.er1 >conftest.err
24186 rm -f conftest.er1
24187 cat conftest.err >&5
24188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24189 (exit $ac_status); } && {
24190 test -z "$ac_c_werror_flag" ||
24191 test ! -s conftest.err
24192 } && test -s conftest.$ac_objext; then
24193 emacs_cv_c_restrict_arr=yes
24194 else
24195 echo "$as_me: failed program was:" >&5
24196 sed 's/^/| /' conftest.$ac_ext >&5
24198 emacs_cv_c_restrict_arr=no
24201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24203 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
24204 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
24205 if test "$emacs_cv_c_restrict_arr" = yes; then
24207 cat >>confdefs.h <<\_ACEOF
24208 #define __restrict_arr __restrict
24209 _ACEOF
24215 # Set up the CFLAGS for real compilation, so we can substitute it.
24216 CFLAGS="$REAL_CFLAGS"
24217 CPPFLAGS="$REAL_CPPFLAGS"
24219 #### Find out which version of Emacs this is.
24220 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
24221 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
24222 if test x"${version}" = x; then
24223 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
24224 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
24225 { (exit 1); exit 1; }; }
24228 ### Specify what sort of things we'll be editing into Makefile and config.h.
24229 ### Use configuration here uncanonicalized to avoid exceeding size limits.
24273 cat >>confdefs.h <<_ACEOF
24274 #define EMACS_CONFIGURATION "${canonical}"
24275 _ACEOF
24278 cat >>confdefs.h <<_ACEOF
24279 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
24280 _ACEOF
24283 cat >>confdefs.h <<_ACEOF
24284 #define config_machfile "${machfile}"
24285 _ACEOF
24288 cat >>confdefs.h <<_ACEOF
24289 #define config_opsysfile "${opsysfile}"
24290 _ACEOF
24293 cat >>confdefs.h <<_ACEOF
24294 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
24295 _ACEOF
24298 cat >>confdefs.h <<_ACEOF
24299 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
24300 _ACEOF
24303 cat >>confdefs.h <<_ACEOF
24304 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
24305 _ACEOF
24308 cat >>confdefs.h <<_ACEOF
24309 #define UNEXEC_SRC ${UNEXEC_SRC}
24310 _ACEOF
24313 if test "${HAVE_X_WINDOWS}" = "yes" ; then
24315 cat >>confdefs.h <<\_ACEOF
24316 #define HAVE_X_WINDOWS 1
24317 _ACEOF
24320 if test "${USE_X_TOOLKIT}" != "none" ; then
24322 cat >>confdefs.h <<\_ACEOF
24323 #define USE_X_TOOLKIT 1
24324 _ACEOF
24326 if test "${USE_X_TOOLKIT}" = "LUCID"; then
24328 cat >>confdefs.h <<\_ACEOF
24329 #define USE_LUCID 1
24330 _ACEOF
24332 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
24334 cat >>confdefs.h <<\_ACEOF
24335 #define USE_MOTIF 1
24336 _ACEOF
24340 if test "${HAVE_X11}" = "yes" ; then
24342 cat >>confdefs.h <<\_ACEOF
24343 #define HAVE_X11 1
24344 _ACEOF
24347 if test "${HAVE_MENUS}" = "yes" ; then
24349 cat >>confdefs.h <<\_ACEOF
24350 #define HAVE_MENUS 1
24351 _ACEOF
24354 if test "${GNU_MALLOC}" = "yes" ; then
24356 cat >>confdefs.h <<\_ACEOF
24357 #define GNU_MALLOC 1
24358 _ACEOF
24361 if test "${REL_ALLOC}" = "yes" ; then
24363 cat >>confdefs.h <<\_ACEOF
24364 #define REL_ALLOC 1
24365 _ACEOF
24374 #### Report on what we decided to do.
24375 #### Report GTK as a toolkit, even if it doesn't use Xt.
24376 #### It makes printing result more understandable as using GTK sets
24377 #### toolkit_scroll_bars to yes by default.
24378 if test "${HAVE_GTK}" = "yes"; then
24379 USE_X_TOOLKIT=GTK
24382 echo "
24383 Configured for \`${canonical}'.
24385 Where should the build process find the source code? ${srcdir}
24386 What operating system and machine description files should Emacs use?
24387 \`${opsysfile}' and \`${machfile}'
24388 What compiler should emacs be built with? ${CC} ${CFLAGS}
24389 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
24390 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
24391 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
24392 What window system should Emacs use? ${window_system}
24393 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
24395 if test -n "${x_includes}"; then
24396 echo " Where do we find X Windows header files? ${x_includes}"
24397 else
24398 echo " Where do we find X Windows header files? Standard dirs"
24400 if test -n "${x_libraries}"; then
24401 echo " Where do we find X Windows libraries? ${x_libraries}"
24402 else
24403 echo " Where do we find X Windows libraries? Standard dirs"
24406 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
24407 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
24408 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
24409 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
24410 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
24411 echo " Does Emacs use -lpng? ${HAVE_PNG}"
24412 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
24413 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
24414 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
24416 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
24417 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
24418 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
24419 echo " Does Emacs use -lxft? ${HAVE_XFT}"
24421 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
24422 echo
24424 if test $USE_XASSERTS = yes; then
24425 echo " Compiling with asserts turned on."
24426 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
24429 echo
24431 if test "$USE_X_TOOLKIT" = GTK; then
24432 case "$canonical" in
24433 *cygwin*)
24434 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
24435 will probably get a crash on startup. If this happens, please use another
24436 toolkit for Emacs. See etc/PROBLEMS for more information."
24438 esac
24441 if test "$HAVE_NS" = "yes"; then
24442 echo
24443 echo "You must run \"make install\" in order to test the built application.
24444 The installed application will go to nextstep/Emacs.app and can be
24445 run or moved from there."
24446 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
24447 echo "The application will be fully self-contained."
24448 else
24449 echo "The lisp resources for the application will be installed under ${prefix}.
24450 You may need to run \"make install\" with sudo. The application will fail
24451 to run if these resources are not installed."
24453 echo
24456 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
24457 echo "D-Bus integration has been tested for GNU/Linux only."
24458 echo
24462 # Remove any trailing slashes in these variables.
24463 test "${prefix}" != NONE &&
24464 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24465 test "${exec_prefix}" != NONE &&
24466 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24468 # Now get this: Some word that is part of the ${srcdir} directory name
24469 # or the ${configuration} value might, just might, happen to be an
24470 # identifier like `sun4' or `i386' or something, and be predefined by
24471 # the C preprocessor to some helpful value like 1, or maybe the empty
24472 # string. Needless to say consequent macro substitutions are less
24473 # than conducive to the makefile finding the correct directory.
24474 cpp_undefs="`echo $srcdir $configuration $canonical |
24475 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24476 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
24478 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
24479 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
24480 ## from Makefile.c can correctly provide the arg `-traditional' to the
24481 ## C preprocessor.
24483 cat >conftest.$ac_ext <<_ACEOF
24484 /* confdefs.h. */
24485 _ACEOF
24486 cat confdefs.h >>conftest.$ac_ext
24487 cat >>conftest.$ac_ext <<_ACEOF
24488 /* end confdefs.h. */
24489 yes..yes
24490 _ACEOF
24491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24492 $EGREP "yes..yes" >/dev/null 2>&1; then
24493 CPP_NEED_TRADITIONAL=no
24494 else
24495 CPP_NEED_TRADITIONAL=yes
24497 rm -f conftest*
24500 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"
24502 ac_config_commands="$ac_config_commands default"
24504 cat >confcache <<\_ACEOF
24505 # This file is a shell script that caches the results of configure
24506 # tests run on this system so they can be shared between configure
24507 # scripts and configure runs, see configure's option --config-cache.
24508 # It is not useful on other systems. If it contains results you don't
24509 # want to keep, you may remove or edit it.
24511 # config.status only pays attention to the cache file if you give it
24512 # the --recheck option to rerun configure.
24514 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24515 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24516 # following values.
24518 _ACEOF
24520 # The following way of writing the cache mishandles newlines in values,
24521 # but we know of no workaround that is simple, portable, and efficient.
24522 # So, we kill variables containing newlines.
24523 # Ultrix sh set writes to stderr and can't be redirected directly,
24524 # and sets the high bit in the cache file unless we assign to the vars.
24526 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24527 eval ac_val=\$$ac_var
24528 case $ac_val in #(
24529 *${as_nl}*)
24530 case $ac_var in #(
24531 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24532 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24533 esac
24534 case $ac_var in #(
24535 _ | IFS | as_nl) ;; #(
24536 *) $as_unset $ac_var ;;
24537 esac ;;
24538 esac
24539 done
24541 (set) 2>&1 |
24542 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24543 *${as_nl}ac_space=\ *)
24544 # `set' does not quote correctly, so add quotes (double-quote
24545 # substitution turns \\\\ into \\, and sed turns \\ into \).
24546 sed -n \
24547 "s/'/'\\\\''/g;
24548 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24549 ;; #(
24551 # `set' quotes correctly as required by POSIX, so do not add quotes.
24552 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24554 esac |
24555 sort
24557 sed '
24558 /^ac_cv_env_/b end
24559 t clear
24560 :clear
24561 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24562 t end
24563 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24564 :end' >>confcache
24565 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24566 if test -w "$cache_file"; then
24567 test "x$cache_file" != "x/dev/null" &&
24568 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24569 echo "$as_me: updating cache $cache_file" >&6;}
24570 cat confcache >$cache_file
24571 else
24572 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24573 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24576 rm -f confcache
24578 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24579 # Let make expand exec_prefix.
24580 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24582 DEFS=-DHAVE_CONFIG_H
24584 ac_libobjs=
24585 ac_ltlibobjs=
24586 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24587 # 1. Remove the extension, and $U if already installed.
24588 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24589 ac_i=`echo "$ac_i" | sed "$ac_script"`
24590 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24591 # will be set to the directory where LIBOBJS objects are built.
24592 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24593 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24594 done
24595 LIBOBJS=$ac_libobjs
24597 LTLIBOBJS=$ac_ltlibobjs
24601 : ${CONFIG_STATUS=./config.status}
24602 ac_clean_files_save=$ac_clean_files
24603 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24604 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24605 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24606 cat >$CONFIG_STATUS <<_ACEOF
24607 #! $SHELL
24608 # Generated by $as_me.
24609 # Run this file to recreate the current configuration.
24610 # Compiler output produced by configure, useful for debugging
24611 # configure, is in config.log if it exists.
24613 debug=false
24614 ac_cs_recheck=false
24615 ac_cs_silent=false
24616 SHELL=\${CONFIG_SHELL-$SHELL}
24617 _ACEOF
24619 cat >>$CONFIG_STATUS <<\_ACEOF
24620 ## --------------------- ##
24621 ## M4sh Initialization. ##
24622 ## --------------------- ##
24624 # Be more Bourne compatible
24625 DUALCASE=1; export DUALCASE # for MKS sh
24626 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24627 emulate sh
24628 NULLCMD=:
24629 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24630 # is contrary to our usage. Disable this feature.
24631 alias -g '${1+"$@"}'='"$@"'
24632 setopt NO_GLOB_SUBST
24633 else
24634 case `(set -o) 2>/dev/null` in
24635 *posix*) set -o posix ;;
24636 esac
24643 # PATH needs CR
24644 # Avoid depending upon Character Ranges.
24645 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24646 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24647 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24648 as_cr_digits='0123456789'
24649 as_cr_alnum=$as_cr_Letters$as_cr_digits
24651 # The user is always right.
24652 if test "${PATH_SEPARATOR+set}" != set; then
24653 echo "#! /bin/sh" >conf$$.sh
24654 echo "exit 0" >>conf$$.sh
24655 chmod +x conf$$.sh
24656 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24657 PATH_SEPARATOR=';'
24658 else
24659 PATH_SEPARATOR=:
24661 rm -f conf$$.sh
24664 # Support unset when possible.
24665 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24666 as_unset=unset
24667 else
24668 as_unset=false
24672 # IFS
24673 # We need space, tab and new line, in precisely that order. Quoting is
24674 # there to prevent editors from complaining about space-tab.
24675 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24676 # splitting by setting IFS to empty value.)
24677 as_nl='
24679 IFS=" "" $as_nl"
24681 # Find who we are. Look in the path if we contain no directory separator.
24682 case $0 in
24683 *[\\/]* ) as_myself=$0 ;;
24684 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24685 for as_dir in $PATH
24687 IFS=$as_save_IFS
24688 test -z "$as_dir" && as_dir=.
24689 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24690 done
24691 IFS=$as_save_IFS
24694 esac
24695 # We did not find ourselves, most probably we were run as `sh COMMAND'
24696 # in which case we are not to be found in the path.
24697 if test "x$as_myself" = x; then
24698 as_myself=$0
24700 if test ! -f "$as_myself"; then
24701 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24702 { (exit 1); exit 1; }
24705 # Work around bugs in pre-3.0 UWIN ksh.
24706 for as_var in ENV MAIL MAILPATH
24707 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24708 done
24709 PS1='$ '
24710 PS2='> '
24711 PS4='+ '
24713 # NLS nuisances.
24714 for as_var in \
24715 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24716 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24717 LC_TELEPHONE LC_TIME
24719 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24720 eval $as_var=C; export $as_var
24721 else
24722 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24724 done
24726 # Required to use basename.
24727 if expr a : '\(a\)' >/dev/null 2>&1 &&
24728 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24729 as_expr=expr
24730 else
24731 as_expr=false
24734 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24735 as_basename=basename
24736 else
24737 as_basename=false
24741 # Name of the executable.
24742 as_me=`$as_basename -- "$0" ||
24743 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24744 X"$0" : 'X\(//\)$' \| \
24745 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24746 echo X/"$0" |
24747 sed '/^.*\/\([^/][^/]*\)\/*$/{
24748 s//\1/
24751 /^X\/\(\/\/\)$/{
24752 s//\1/
24755 /^X\/\(\/\).*/{
24756 s//\1/
24759 s/.*/./; q'`
24761 # CDPATH.
24762 $as_unset CDPATH
24766 as_lineno_1=$LINENO
24767 as_lineno_2=$LINENO
24768 test "x$as_lineno_1" != "x$as_lineno_2" &&
24769 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24771 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24772 # uniformly replaced by the line number. The first 'sed' inserts a
24773 # line-number line after each line using $LINENO; the second 'sed'
24774 # does the real work. The second script uses 'N' to pair each
24775 # line-number line with the line containing $LINENO, and appends
24776 # trailing '-' during substitution so that $LINENO is not a special
24777 # case at line end.
24778 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24779 # scripts with optimization help from Paolo Bonzini. Blame Lee
24780 # E. McMahon (1931-1989) for sed's syntax. :-)
24781 sed -n '
24783 /[$]LINENO/=
24784 ' <$as_myself |
24785 sed '
24786 s/[$]LINENO.*/&-/
24787 t lineno
24789 :lineno
24791 :loop
24792 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24793 t loop
24794 s/-\n.*//
24795 ' >$as_me.lineno &&
24796 chmod +x "$as_me.lineno" ||
24797 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24798 { (exit 1); exit 1; }; }
24800 # Don't try to exec as it changes $[0], causing all sort of problems
24801 # (the dirname of $[0] is not the place where we might find the
24802 # original and so on. Autoconf is especially sensitive to this).
24803 . "./$as_me.lineno"
24804 # Exit status is that of the last command.
24805 exit
24809 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24810 as_dirname=dirname
24811 else
24812 as_dirname=false
24815 ECHO_C= ECHO_N= ECHO_T=
24816 case `echo -n x` in
24817 -n*)
24818 case `echo 'x\c'` in
24819 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24820 *) ECHO_C='\c';;
24821 esac;;
24823 ECHO_N='-n';;
24824 esac
24826 if expr a : '\(a\)' >/dev/null 2>&1 &&
24827 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24828 as_expr=expr
24829 else
24830 as_expr=false
24833 rm -f conf$$ conf$$.exe conf$$.file
24834 if test -d conf$$.dir; then
24835 rm -f conf$$.dir/conf$$.file
24836 else
24837 rm -f conf$$.dir
24838 mkdir conf$$.dir
24840 echo >conf$$.file
24841 if ln -s conf$$.file conf$$ 2>/dev/null; then
24842 as_ln_s='ln -s'
24843 # ... but there are two gotchas:
24844 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24845 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24846 # In both cases, we have to default to `cp -p'.
24847 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24848 as_ln_s='cp -p'
24849 elif ln conf$$.file conf$$ 2>/dev/null; then
24850 as_ln_s=ln
24851 else
24852 as_ln_s='cp -p'
24854 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24855 rmdir conf$$.dir 2>/dev/null
24857 if mkdir -p . 2>/dev/null; then
24858 as_mkdir_p=:
24859 else
24860 test -d ./-p && rmdir ./-p
24861 as_mkdir_p=false
24864 if test -x / >/dev/null 2>&1; then
24865 as_test_x='test -x'
24866 else
24867 if ls -dL / >/dev/null 2>&1; then
24868 as_ls_L_option=L
24869 else
24870 as_ls_L_option=
24872 as_test_x='
24873 eval sh -c '\''
24874 if test -d "$1"; then
24875 test -d "$1/.";
24876 else
24877 case $1 in
24878 -*)set "./$1";;
24879 esac;
24880 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24881 ???[sx]*):;;*)false;;esac;fi
24882 '\'' sh
24885 as_executable_p=$as_test_x
24887 # Sed expression to map a string onto a valid CPP name.
24888 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24890 # Sed expression to map a string onto a valid variable name.
24891 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24894 exec 6>&1
24896 # Save the log message, to keep $[0] and so on meaningful, and to
24897 # report actual input values of CONFIG_FILES etc. instead of their
24898 # values after options handling.
24899 ac_log="
24900 This file was extended by emacs $as_me 23.0.93, which was
24901 generated by GNU Autoconf 2.61. Invocation command line was
24903 CONFIG_FILES = $CONFIG_FILES
24904 CONFIG_HEADERS = $CONFIG_HEADERS
24905 CONFIG_LINKS = $CONFIG_LINKS
24906 CONFIG_COMMANDS = $CONFIG_COMMANDS
24907 $ $0 $@
24909 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24912 _ACEOF
24914 cat >>$CONFIG_STATUS <<_ACEOF
24915 # Files that config.status was made for.
24916 config_files="$ac_config_files"
24917 config_headers="$ac_config_headers"
24918 config_commands="$ac_config_commands"
24920 _ACEOF
24922 cat >>$CONFIG_STATUS <<\_ACEOF
24923 ac_cs_usage="\
24924 \`$as_me' instantiates files from templates according to the
24925 current configuration.
24927 Usage: $0 [OPTIONS] [FILE]...
24929 -h, --help print this help, then exit
24930 -V, --version print version number and configuration settings, then exit
24931 -q, --quiet do not print progress messages
24932 -d, --debug don't remove temporary files
24933 --recheck update $as_me by reconfiguring in the same conditions
24934 --file=FILE[:TEMPLATE]
24935 instantiate the configuration file FILE
24936 --header=FILE[:TEMPLATE]
24937 instantiate the configuration header FILE
24939 Configuration files:
24940 $config_files
24942 Configuration headers:
24943 $config_headers
24945 Configuration commands:
24946 $config_commands
24948 Report bugs to <bug-autoconf@gnu.org>."
24950 _ACEOF
24951 cat >>$CONFIG_STATUS <<_ACEOF
24952 ac_cs_version="\\
24953 emacs config.status 23.0.93
24954 configured by $0, generated by GNU Autoconf 2.61,
24955 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24957 Copyright (C) 2006 Free Software Foundation, Inc.
24958 This config.status script is free software; the Free Software Foundation
24959 gives unlimited permission to copy, distribute and modify it."
24961 ac_pwd='$ac_pwd'
24962 srcdir='$srcdir'
24963 INSTALL='$INSTALL'
24964 _ACEOF
24966 cat >>$CONFIG_STATUS <<\_ACEOF
24967 # If no file are specified by the user, then we need to provide default
24968 # value. By we need to know if files were specified by the user.
24969 ac_need_defaults=:
24970 while test $# != 0
24972 case $1 in
24973 --*=*)
24974 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24975 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24976 ac_shift=:
24979 ac_option=$1
24980 ac_optarg=$2
24981 ac_shift=shift
24983 esac
24985 case $ac_option in
24986 # Handling of the options.
24987 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24988 ac_cs_recheck=: ;;
24989 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24990 echo "$ac_cs_version"; exit ;;
24991 --debug | --debu | --deb | --de | --d | -d )
24992 debug=: ;;
24993 --file | --fil | --fi | --f )
24994 $ac_shift
24995 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24996 ac_need_defaults=false;;
24997 --header | --heade | --head | --hea )
24998 $ac_shift
24999 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25000 ac_need_defaults=false;;
25001 --he | --h)
25002 # Conflict between --help and --header
25003 { echo "$as_me: error: ambiguous option: $1
25004 Try \`$0 --help' for more information." >&2
25005 { (exit 1); exit 1; }; };;
25006 --help | --hel | -h )
25007 echo "$ac_cs_usage"; exit ;;
25008 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25009 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25010 ac_cs_silent=: ;;
25012 # This is an error.
25013 -*) { echo "$as_me: error: unrecognized option: $1
25014 Try \`$0 --help' for more information." >&2
25015 { (exit 1); exit 1; }; } ;;
25017 *) ac_config_targets="$ac_config_targets $1"
25018 ac_need_defaults=false ;;
25020 esac
25021 shift
25022 done
25024 ac_configure_extra_args=
25026 if $ac_cs_silent; then
25027 exec 6>/dev/null
25028 ac_configure_extra_args="$ac_configure_extra_args --silent"
25031 _ACEOF
25032 cat >>$CONFIG_STATUS <<_ACEOF
25033 if \$ac_cs_recheck; then
25034 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25035 CONFIG_SHELL=$SHELL
25036 export CONFIG_SHELL
25037 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25040 _ACEOF
25041 cat >>$CONFIG_STATUS <<\_ACEOF
25042 exec 5>>config.log
25044 echo
25045 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25046 ## Running $as_me. ##
25047 _ASBOX
25048 echo "$ac_log"
25049 } >&5
25051 _ACEOF
25052 cat >>$CONFIG_STATUS <<_ACEOF
25054 # INIT-COMMANDS
25056 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
25058 _ACEOF
25060 cat >>$CONFIG_STATUS <<\_ACEOF
25062 # Handling of arguments.
25063 for ac_config_target in $ac_config_targets
25065 case $ac_config_target in
25066 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
25067 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25068 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
25069 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
25070 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
25071 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
25072 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
25073 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
25074 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
25075 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
25076 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
25077 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
25078 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
25080 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25081 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25082 { (exit 1); exit 1; }; };;
25083 esac
25084 done
25087 # If the user did not use the arguments to specify the items to instantiate,
25088 # then the envvar interface is used. Set only those that are not.
25089 # We use the long form for the default assignment because of an extremely
25090 # bizarre bug on SunOS 4.1.3.
25091 if $ac_need_defaults; then
25092 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25093 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25094 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25097 # Have a temporary directory for convenience. Make it in the build tree
25098 # simply because there is no reason against having it here, and in addition,
25099 # creating and moving files from /tmp can sometimes cause problems.
25100 # Hook for its removal unless debugging.
25101 # Note that there is a small window in which the directory will not be cleaned:
25102 # after its creation but before its name has been assigned to `$tmp'.
25103 $debug ||
25105 tmp=
25106 trap 'exit_status=$?
25107 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25109 trap '{ (exit 1); exit 1; }' 1 2 13 15
25111 # Create a (secure) tmp directory for tmp files.
25114 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25115 test -n "$tmp" && test -d "$tmp"
25116 } ||
25118 tmp=./conf$$-$RANDOM
25119 (umask 077 && mkdir "$tmp")
25120 } ||
25122 echo "$me: cannot create a temporary directory in ." >&2
25123 { (exit 1); exit 1; }
25127 # Set up the sed scripts for CONFIG_FILES section.
25130 # No need to generate the scripts if there are no CONFIG_FILES.
25131 # This happens for instance when ./config.status config.h
25132 if test -n "$CONFIG_FILES"; then
25134 _ACEOF
25138 ac_delim='%!_!# '
25139 for ac_last_try in false false false false false :; do
25140 cat >conf$$subs.sed <<_ACEOF
25141 SHELL!$SHELL$ac_delim
25142 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25143 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25144 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25145 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25146 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25147 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25148 exec_prefix!$exec_prefix$ac_delim
25149 prefix!$prefix$ac_delim
25150 program_transform_name!$program_transform_name$ac_delim
25151 bindir!$bindir$ac_delim
25152 sbindir!$sbindir$ac_delim
25153 libexecdir!$libexecdir$ac_delim
25154 datarootdir!$datarootdir$ac_delim
25155 datadir!$datadir$ac_delim
25156 sysconfdir!$sysconfdir$ac_delim
25157 sharedstatedir!$sharedstatedir$ac_delim
25158 localstatedir!$localstatedir$ac_delim
25159 includedir!$includedir$ac_delim
25160 oldincludedir!$oldincludedir$ac_delim
25161 docdir!$docdir$ac_delim
25162 infodir!$infodir$ac_delim
25163 htmldir!$htmldir$ac_delim
25164 dvidir!$dvidir$ac_delim
25165 pdfdir!$pdfdir$ac_delim
25166 psdir!$psdir$ac_delim
25167 libdir!$libdir$ac_delim
25168 localedir!$localedir$ac_delim
25169 mandir!$mandir$ac_delim
25170 DEFS!$DEFS$ac_delim
25171 ECHO_C!$ECHO_C$ac_delim
25172 ECHO_N!$ECHO_N$ac_delim
25173 ECHO_T!$ECHO_T$ac_delim
25174 LIBS!$LIBS$ac_delim
25175 build_alias!$build_alias$ac_delim
25176 host_alias!$host_alias$ac_delim
25177 target_alias!$target_alias$ac_delim
25178 MAINT!$MAINT$ac_delim
25179 build!$build$ac_delim
25180 build_cpu!$build_cpu$ac_delim
25181 build_vendor!$build_vendor$ac_delim
25182 build_os!$build_os$ac_delim
25183 host!$host$ac_delim
25184 host_cpu!$host_cpu$ac_delim
25185 host_vendor!$host_vendor$ac_delim
25186 host_os!$host_os$ac_delim
25187 CC!$CC$ac_delim
25188 CFLAGS!$CFLAGS$ac_delim
25189 LDFLAGS!$LDFLAGS$ac_delim
25190 CPPFLAGS!$CPPFLAGS$ac_delim
25191 ac_ct_CC!$ac_ct_CC$ac_delim
25192 EXEEXT!$EXEEXT$ac_delim
25193 OBJEXT!$OBJEXT$ac_delim
25194 CPP!$CPP$ac_delim
25195 GREP!$GREP$ac_delim
25196 EGREP!$EGREP$ac_delim
25197 LN_S!$LN_S$ac_delim
25198 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25199 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25200 INSTALL_DATA!$INSTALL_DATA$ac_delim
25201 RANLIB!$RANLIB$ac_delim
25202 INSTALL_INFO!$INSTALL_INFO$ac_delim
25203 GZIP_PROG!$GZIP_PROG$ac_delim
25204 MAKEINFO!$MAKEINFO$ac_delim
25205 LIBSOUND!$LIBSOUND$ac_delim
25206 PKG_CONFIG!$PKG_CONFIG$ac_delim
25207 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
25208 ALSA_LIBS!$ALSA_LIBS$ac_delim
25209 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
25210 SET_MAKE!$SET_MAKE$ac_delim
25211 XMKMF!$XMKMF$ac_delim
25212 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
25213 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
25214 RSVG_LIBS!$RSVG_LIBS$ac_delim
25215 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
25216 GTK_LIBS!$GTK_LIBS$ac_delim
25217 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
25218 DBUS_LIBS!$DBUS_LIBS$ac_delim
25219 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
25220 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
25221 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
25222 XFT_LIBS!$XFT_LIBS$ac_delim
25223 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
25224 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
25225 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
25226 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
25227 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
25228 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
25229 ALLOCA!$ALLOCA$ac_delim
25230 liblockfile!$liblockfile$ac_delim
25231 LIBOBJS!$LIBOBJS$ac_delim
25232 NEED_SETGID!$NEED_SETGID$ac_delim
25233 KMEM_GROUP!$KMEM_GROUP$ac_delim
25234 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
25235 GETOPT_H!$GETOPT_H$ac_delim
25236 GETOPTOBJS!$GETOPTOBJS$ac_delim
25237 version!$version$ac_delim
25238 _ACEOF
25240 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25241 break
25242 elif $ac_last_try; then
25243 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25244 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25245 { (exit 1); exit 1; }; }
25246 else
25247 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25249 done
25251 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25252 if test -n "$ac_eof"; then
25253 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25254 ac_eof=`expr $ac_eof + 1`
25257 cat >>$CONFIG_STATUS <<_ACEOF
25258 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25259 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25260 _ACEOF
25261 sed '
25262 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25263 s/^/s,@/; s/!/@,|#_!!_#|/
25266 s/'"$ac_delim"'$/,g/; t
25267 s/$/\\/; p
25268 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25269 ' >>$CONFIG_STATUS <conf$$subs.sed
25270 rm -f conf$$subs.sed
25271 cat >>$CONFIG_STATUS <<_ACEOF
25272 CEOF$ac_eof
25273 _ACEOF
25276 ac_delim='%!_!# '
25277 for ac_last_try in false false false false false :; do
25278 cat >conf$$subs.sed <<_ACEOF
25279 configuration!$configuration$ac_delim
25280 canonical!$canonical$ac_delim
25281 srcdir!$srcdir$ac_delim
25282 lispdir!$lispdir$ac_delim
25283 locallisppath!$locallisppath$ac_delim
25284 lisppath!$lisppath$ac_delim
25285 x_default_search_path!$x_default_search_path$ac_delim
25286 etcdir!$etcdir$ac_delim
25287 archlibdir!$archlibdir$ac_delim
25288 bitmapdir!$bitmapdir$ac_delim
25289 gamedir!$gamedir$ac_delim
25290 gameuser!$gameuser$ac_delim
25291 c_switch_system!$c_switch_system$ac_delim
25292 c_switch_machine!$c_switch_machine$ac_delim
25293 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
25294 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
25295 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
25296 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
25297 machfile!$machfile$ac_delim
25298 opsysfile!$opsysfile$ac_delim
25299 ns_appdir!$ns_appdir$ac_delim
25300 ns_appbindir!$ns_appbindir$ac_delim
25301 ns_appresdir!$ns_appresdir$ac_delim
25302 ns_appsrc!$ns_appsrc$ac_delim
25303 GNUSTEP_MAKEFILES!$GNUSTEP_MAKEFILES$ac_delim
25304 GNUSTEP_SYSTEM_HEADERS!$GNUSTEP_SYSTEM_HEADERS$ac_delim
25305 GNUSTEP_SYSTEM_LIBRARIES!$GNUSTEP_SYSTEM_LIBRARIES$ac_delim
25306 GNU_OBJC_CFLAGS!$GNU_OBJC_CFLAGS$ac_delim
25307 LIB_SRC_EXTRA_INSTALLABLES!$LIB_SRC_EXTRA_INSTALLABLES$ac_delim
25308 LTLIBOBJS!$LTLIBOBJS$ac_delim
25309 _ACEOF
25311 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 30; then
25312 break
25313 elif $ac_last_try; then
25314 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25315 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25316 { (exit 1); exit 1; }; }
25317 else
25318 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25320 done
25322 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25323 if test -n "$ac_eof"; then
25324 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25325 ac_eof=`expr $ac_eof + 1`
25328 cat >>$CONFIG_STATUS <<_ACEOF
25329 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25330 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25331 _ACEOF
25332 sed '
25333 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25334 s/^/s,@/; s/!/@,|#_!!_#|/
25337 s/'"$ac_delim"'$/,g/; t
25338 s/$/\\/; p
25339 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25340 ' >>$CONFIG_STATUS <conf$$subs.sed
25341 rm -f conf$$subs.sed
25342 cat >>$CONFIG_STATUS <<_ACEOF
25343 :end
25344 s/|#_!!_#|//g
25345 CEOF$ac_eof
25346 _ACEOF
25349 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25350 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25351 # trailing colons and then remove the whole line if VPATH becomes empty
25352 # (actually we leave an empty line to preserve line numbers).
25353 if test "x$srcdir" = x.; then
25354 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25355 s/:*\$(srcdir):*/:/
25356 s/:*\${srcdir}:*/:/
25357 s/:*@srcdir@:*/:/
25358 s/^\([^=]*=[ ]*\):*/\1/
25359 s/:*$//
25360 s/^[^=]*=[ ]*$//
25364 cat >>$CONFIG_STATUS <<\_ACEOF
25365 fi # test -n "$CONFIG_FILES"
25368 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
25370 case $ac_tag in
25371 :[FHLC]) ac_mode=$ac_tag; continue;;
25372 esac
25373 case $ac_mode$ac_tag in
25374 :[FHL]*:*);;
25375 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25376 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25377 { (exit 1); exit 1; }; };;
25378 :[FH]-) ac_tag=-:-;;
25379 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25380 esac
25381 ac_save_IFS=$IFS
25382 IFS=:
25383 set x $ac_tag
25384 IFS=$ac_save_IFS
25385 shift
25386 ac_file=$1
25387 shift
25389 case $ac_mode in
25390 :L) ac_source=$1;;
25391 :[FH])
25392 ac_file_inputs=
25393 for ac_f
25395 case $ac_f in
25396 -) ac_f="$tmp/stdin";;
25397 *) # Look for the file first in the build tree, then in the source tree
25398 # (if the path is not absolute). The absolute path cannot be DOS-style,
25399 # because $ac_f cannot contain `:'.
25400 test -f "$ac_f" ||
25401 case $ac_f in
25402 [\\/$]*) false;;
25403 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25404 esac ||
25405 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25406 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25407 { (exit 1); exit 1; }; };;
25408 esac
25409 ac_file_inputs="$ac_file_inputs $ac_f"
25410 done
25412 # Let's still pretend it is `configure' which instantiates (i.e., don't
25413 # use $as_me), people would be surprised to read:
25414 # /* config.h. Generated by config.status. */
25415 configure_input="Generated from "`IFS=:
25416 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25417 if test x"$ac_file" != x-; then
25418 configure_input="$ac_file. $configure_input"
25419 { echo "$as_me:$LINENO: creating $ac_file" >&5
25420 echo "$as_me: creating $ac_file" >&6;}
25423 case $ac_tag in
25424 *:-:* | *:-) cat >"$tmp/stdin";;
25425 esac
25427 esac
25429 ac_dir=`$as_dirname -- "$ac_file" ||
25430 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25431 X"$ac_file" : 'X\(//\)[^/]' \| \
25432 X"$ac_file" : 'X\(//\)$' \| \
25433 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25434 echo X"$ac_file" |
25435 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25436 s//\1/
25439 /^X\(\/\/\)[^/].*/{
25440 s//\1/
25443 /^X\(\/\/\)$/{
25444 s//\1/
25447 /^X\(\/\).*/{
25448 s//\1/
25451 s/.*/./; q'`
25452 { as_dir="$ac_dir"
25453 case $as_dir in #(
25454 -*) as_dir=./$as_dir;;
25455 esac
25456 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25457 as_dirs=
25458 while :; do
25459 case $as_dir in #(
25460 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25461 *) as_qdir=$as_dir;;
25462 esac
25463 as_dirs="'$as_qdir' $as_dirs"
25464 as_dir=`$as_dirname -- "$as_dir" ||
25465 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25466 X"$as_dir" : 'X\(//\)[^/]' \| \
25467 X"$as_dir" : 'X\(//\)$' \| \
25468 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25469 echo X"$as_dir" |
25470 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25471 s//\1/
25474 /^X\(\/\/\)[^/].*/{
25475 s//\1/
25478 /^X\(\/\/\)$/{
25479 s//\1/
25482 /^X\(\/\).*/{
25483 s//\1/
25486 s/.*/./; q'`
25487 test -d "$as_dir" && break
25488 done
25489 test -z "$as_dirs" || eval "mkdir $as_dirs"
25490 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25491 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25492 { (exit 1); exit 1; }; }; }
25493 ac_builddir=.
25495 case "$ac_dir" in
25496 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25498 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25499 # A ".." for each directory in $ac_dir_suffix.
25500 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25501 case $ac_top_builddir_sub in
25502 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25503 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25504 esac ;;
25505 esac
25506 ac_abs_top_builddir=$ac_pwd
25507 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25508 # for backward compatibility:
25509 ac_top_builddir=$ac_top_build_prefix
25511 case $srcdir in
25512 .) # We are building in place.
25513 ac_srcdir=.
25514 ac_top_srcdir=$ac_top_builddir_sub
25515 ac_abs_top_srcdir=$ac_pwd ;;
25516 [\\/]* | ?:[\\/]* ) # Absolute name.
25517 ac_srcdir=$srcdir$ac_dir_suffix;
25518 ac_top_srcdir=$srcdir
25519 ac_abs_top_srcdir=$srcdir ;;
25520 *) # Relative name.
25521 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25522 ac_top_srcdir=$ac_top_build_prefix$srcdir
25523 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25524 esac
25525 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25528 case $ac_mode in
25531 # CONFIG_FILE
25534 case $INSTALL in
25535 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25536 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25537 esac
25538 _ACEOF
25540 cat >>$CONFIG_STATUS <<\_ACEOF
25541 # If the template does not know about datarootdir, expand it.
25542 # FIXME: This hack should be removed a few years after 2.60.
25543 ac_datarootdir_hack=; ac_datarootdir_seen=
25545 case `sed -n '/datarootdir/ {
25549 /@datadir@/p
25550 /@docdir@/p
25551 /@infodir@/p
25552 /@localedir@/p
25553 /@mandir@/p
25554 ' $ac_file_inputs` in
25555 *datarootdir*) ac_datarootdir_seen=yes;;
25556 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25557 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25558 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25559 _ACEOF
25560 cat >>$CONFIG_STATUS <<_ACEOF
25561 ac_datarootdir_hack='
25562 s&@datadir@&$datadir&g
25563 s&@docdir@&$docdir&g
25564 s&@infodir@&$infodir&g
25565 s&@localedir@&$localedir&g
25566 s&@mandir@&$mandir&g
25567 s&\\\${datarootdir}&$datarootdir&g' ;;
25568 esac
25569 _ACEOF
25571 # Neutralize VPATH when `$srcdir' = `.'.
25572 # Shell code in configure.ac might set extrasub.
25573 # FIXME: do we really want to maintain this feature?
25574 cat >>$CONFIG_STATUS <<_ACEOF
25575 sed "$ac_vpsub
25576 $extrasub
25577 _ACEOF
25578 cat >>$CONFIG_STATUS <<\_ACEOF
25580 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25581 s&@configure_input@&$configure_input&;t t
25582 s&@top_builddir@&$ac_top_builddir_sub&;t t
25583 s&@srcdir@&$ac_srcdir&;t t
25584 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25585 s&@top_srcdir@&$ac_top_srcdir&;t t
25586 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25587 s&@builddir@&$ac_builddir&;t t
25588 s&@abs_builddir@&$ac_abs_builddir&;t t
25589 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25590 s&@INSTALL@&$ac_INSTALL&;t t
25591 $ac_datarootdir_hack
25592 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25594 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25595 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25596 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25597 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25598 which seems to be undefined. Please make sure it is defined." >&5
25599 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25600 which seems to be undefined. Please make sure it is defined." >&2;}
25602 rm -f "$tmp/stdin"
25603 case $ac_file in
25604 -) cat "$tmp/out"; rm -f "$tmp/out";;
25605 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25606 esac
25610 # CONFIG_HEADER
25612 _ACEOF
25614 # Transform confdefs.h into a sed script `conftest.defines', that
25615 # substitutes the proper values into config.h.in to produce config.h.
25616 rm -f conftest.defines conftest.tail
25617 # First, append a space to every undef/define line, to ease matching.
25618 echo 's/$/ /' >conftest.defines
25619 # Then, protect against being on the right side of a sed subst, or in
25620 # an unquoted here document, in config.status. If some macros were
25621 # called several times there might be several #defines for the same
25622 # symbol, which is useless. But do not sort them, since the last
25623 # AC_DEFINE must be honored.
25624 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25625 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25626 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25627 # PARAMS is the parameter list in the macro definition--in most cases, it's
25628 # just an empty string.
25629 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25630 ac_dB='\\)[ (].*,\\1define\\2'
25631 ac_dC=' '
25632 ac_dD=' ,'
25634 uniq confdefs.h |
25635 sed -n '
25636 t rset
25637 :rset
25638 s/^[ ]*#[ ]*define[ ][ ]*//
25639 t ok
25642 s/[\\&,]/\\&/g
25643 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25644 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25645 ' >>conftest.defines
25647 # Remove the space that was appended to ease matching.
25648 # Then replace #undef with comments. This is necessary, for
25649 # example, in the case of _POSIX_SOURCE, which is predefined and required
25650 # on some systems where configure will not decide to define it.
25651 # (The regexp can be short, since the line contains either #define or #undef.)
25652 echo 's/ $//
25653 s,^[ #]*u.*,/* & */,' >>conftest.defines
25655 # Break up conftest.defines:
25656 ac_max_sed_lines=50
25658 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25659 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25660 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25661 # et cetera.
25662 ac_in='$ac_file_inputs'
25663 ac_out='"$tmp/out1"'
25664 ac_nxt='"$tmp/out2"'
25666 while :
25668 # Write a here document:
25669 cat >>$CONFIG_STATUS <<_ACEOF
25670 # First, check the format of the line:
25671 cat >"\$tmp/defines.sed" <<\\CEOF
25672 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25673 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25675 :def
25676 _ACEOF
25677 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25678 echo 'CEOF
25679 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25680 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25681 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25682 grep . conftest.tail >/dev/null || break
25683 rm -f conftest.defines
25684 mv conftest.tail conftest.defines
25685 done
25686 rm -f conftest.defines conftest.tail
25688 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25689 cat >>$CONFIG_STATUS <<\_ACEOF
25690 if test x"$ac_file" != x-; then
25691 echo "/* $configure_input */" >"$tmp/config.h"
25692 cat "$ac_result" >>"$tmp/config.h"
25693 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25694 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25695 echo "$as_me: $ac_file is unchanged" >&6;}
25696 else
25697 rm -f $ac_file
25698 mv "$tmp/config.h" $ac_file
25700 else
25701 echo "/* $configure_input */"
25702 cat "$ac_result"
25704 rm -f "$tmp/out12"
25707 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25708 echo "$as_me: executing $ac_file commands" >&6;}
25710 esac
25713 case $ac_file$ac_mode in
25714 "default":C)
25716 ### Make the necessary directories, if they don't exist.
25717 for dir in etc lisp ; do
25718 test -d ${dir} || mkdir ${dir}
25719 done
25721 # Build src/Makefile from ${srcdir}/src/Makefile.c
25722 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25723 # This must be done after src/config.h is built, since we rely on that file.
25725 echo creating src/epaths.h
25726 ${MAKE-make} epaths-force
25728 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25729 # `..' to `. .' unless invoked with -traditional
25731 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
25732 CPPFLAGS="$CPPFLAGS -traditional"
25735 echo creating lib-src/Makefile
25736 ( cd lib-src
25737 rm -f junk.c junk1.c junk2.c
25738 sed -e '/start of cpp stuff/q' \
25739 < Makefile.c > junk1.c
25740 sed -e '1,/start of cpp stuff/d'\
25741 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25742 < Makefile.c > junk.c
25743 $CPP $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25744 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25745 cat junk1.c junk2.c > Makefile.new
25746 rm -f junk.c junk1.c junk2.c
25747 chmod 444 Makefile.new
25748 mv -f Makefile.new Makefile
25751 echo creating src/Makefile
25752 ( cd src
25753 rm -f junk.c junk1.c junk2.c
25754 sed -e '/start of cpp stuff/q' \
25755 < Makefile.c > junk1.c
25756 sed -e '1,/start of cpp stuff/d'\
25757 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25758 < Makefile.c > junk.c
25759 $CPP $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25760 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25761 cat junk1.c junk2.c > Makefile.new
25762 rm -f junk.c junk1.c junk2.c
25763 chmod 444 Makefile.new
25764 mv -f Makefile.new Makefile
25767 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25768 echo creating src/.gdbinit
25769 echo source $srcdir/src/.gdbinit > src/.gdbinit
25774 esac
25775 done # for ac_tag
25778 { (exit 0); exit 0; }
25779 _ACEOF
25780 chmod +x $CONFIG_STATUS
25781 ac_clean_files=$ac_clean_files_save
25784 # configure is writing to config.log, and then calls config.status.
25785 # config.status does its own redirection, appending to config.log.
25786 # Unfortunately, on DOS this fails, as config.log is still kept open
25787 # by configure, so config.status won't be able to write to it; its
25788 # output is simply discarded. So we exec the FD to /dev/null,
25789 # effectively closing config.log, so it can be properly (re)opened and
25790 # appended to by config.status. When coming back to configure, we
25791 # need to make the FD available again.
25792 if test "$no_create" != yes; then
25793 ac_cs_success=:
25794 ac_config_status_args=
25795 test "$silent" = yes &&
25796 ac_config_status_args="$ac_config_status_args --quiet"
25797 exec 5>/dev/null
25798 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25799 exec 5>>config.log
25800 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25801 # would make configure fail if this is the last instruction.
25802 $ac_cs_success || { (exit 1); exit 1; }