Use nicer comment syntax for arch taglines in Objective-C files
[emacs.git] / configure
blob54ece25cda982eebf4db0f553ec1d057f7d67d9b
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for emacs 23.0.60.
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.60'
576 PACKAGE_STRING='emacs 23.0.60'
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 XFT_CFLAGS
698 XFT_LIBS
699 FREETYPE_CFLAGS
700 FREETYPE_LIBS
701 FONTCONFIG_CFLAGS
702 FONTCONFIG_LIBS
703 LIBOTF_CFLAGS
704 LIBOTF_LIBS
705 M17N_FLT_CFLAGS
706 M17N_FLT_LIBS
707 ALLOCA
708 liblockfile
709 LIBOBJS
710 NEED_SETGID
711 KMEM_GROUP
712 GETLOADAVG_LIBS
713 GETOPT_H
714 GETOPTOBJS
715 version
716 configuration
717 canonical
718 srcdir
719 lispdir
720 locallisppath
721 lisppath
722 x_default_search_path
723 etcdir
724 archlibdir
725 bitmapdir
726 gamedir
727 gameuser
728 c_switch_system
729 c_switch_machine
730 LD_SWITCH_X_SITE
731 LD_SWITCH_X_SITE_AUX
732 C_SWITCH_X_SITE
733 X_TOOLKIT_TYPE
734 machfile
735 opsysfile
736 carbon_appdir
737 ns_appdir
738 LTLIBOBJS'
739 ac_subst_files=''
740 ac_precious_vars='build_alias
741 host_alias
742 target_alias
744 CFLAGS
745 LDFLAGS
746 LIBS
747 CPPFLAGS
749 XMKMF'
752 # Initialize some variables set by options.
753 ac_init_help=
754 ac_init_version=false
755 # The variables have the same names as the options, with
756 # dashes changed to underlines.
757 cache_file=/dev/null
758 exec_prefix=NONE
759 no_create=
760 no_recursion=
761 prefix=NONE
762 program_prefix=NONE
763 program_suffix=NONE
764 program_transform_name=s,x,x,
765 silent=
766 site=
767 srcdir=
768 verbose=
769 x_includes=NONE
770 x_libraries=NONE
772 # Installation directory options.
773 # These are left unexpanded so users can "make install exec_prefix=/foo"
774 # and all the variables that are supposed to be based on exec_prefix
775 # by default will actually change.
776 # Use braces instead of parens because sh, perl, etc. also accept them.
777 # (The list follows the same order as the GNU Coding Standards.)
778 bindir='${exec_prefix}/bin'
779 sbindir='${exec_prefix}/sbin'
780 libexecdir='${exec_prefix}/libexec'
781 datarootdir='${prefix}/share'
782 datadir='${datarootdir}'
783 sysconfdir='${prefix}/etc'
784 sharedstatedir='${prefix}/com'
785 localstatedir='${prefix}/var'
786 includedir='${prefix}/include'
787 oldincludedir='/usr/include'
788 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
789 infodir='${datarootdir}/info'
790 htmldir='${docdir}'
791 dvidir='${docdir}'
792 pdfdir='${docdir}'
793 psdir='${docdir}'
794 libdir='${exec_prefix}/lib'
795 localedir='${datarootdir}/locale'
796 mandir='${datarootdir}/man'
798 ac_prev=
799 ac_dashdash=
800 for ac_option
802 # If the previous option needs an argument, assign it.
803 if test -n "$ac_prev"; then
804 eval $ac_prev=\$ac_option
805 ac_prev=
806 continue
809 case $ac_option in
810 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
811 *) ac_optarg=yes ;;
812 esac
814 # Accept the important Cygnus configure options, so we can diagnose typos.
816 case $ac_dashdash$ac_option in
818 ac_dashdash=yes ;;
820 -bindir | --bindir | --bindi | --bind | --bin | --bi)
821 ac_prev=bindir ;;
822 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
823 bindir=$ac_optarg ;;
825 -build | --build | --buil | --bui | --bu)
826 ac_prev=build_alias ;;
827 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
828 build_alias=$ac_optarg ;;
830 -cache-file | --cache-file | --cache-fil | --cache-fi \
831 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
832 ac_prev=cache_file ;;
833 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
834 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
835 cache_file=$ac_optarg ;;
837 --config-cache | -C)
838 cache_file=config.cache ;;
840 -datadir | --datadir | --datadi | --datad)
841 ac_prev=datadir ;;
842 -datadir=* | --datadir=* | --datadi=* | --datad=*)
843 datadir=$ac_optarg ;;
845 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
846 | --dataroo | --dataro | --datar)
847 ac_prev=datarootdir ;;
848 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
849 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
850 datarootdir=$ac_optarg ;;
852 -disable-* | --disable-*)
853 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
854 # Reject names that are not valid shell variable names.
855 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
856 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
857 { (exit 1); exit 1; }; }
858 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
859 eval enable_$ac_feature=no ;;
861 -docdir | --docdir | --docdi | --doc | --do)
862 ac_prev=docdir ;;
863 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
864 docdir=$ac_optarg ;;
866 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
867 ac_prev=dvidir ;;
868 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
869 dvidir=$ac_optarg ;;
871 -enable-* | --enable-*)
872 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
873 # Reject names that are not valid shell variable names.
874 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
875 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
876 { (exit 1); exit 1; }; }
877 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
878 eval enable_$ac_feature=\$ac_optarg ;;
880 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
881 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
882 | --exec | --exe | --ex)
883 ac_prev=exec_prefix ;;
884 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
885 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
886 | --exec=* | --exe=* | --ex=*)
887 exec_prefix=$ac_optarg ;;
889 -gas | --gas | --ga | --g)
890 # Obsolete; use --with-gas.
891 with_gas=yes ;;
893 -help | --help | --hel | --he | -h)
894 ac_init_help=long ;;
895 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
896 ac_init_help=recursive ;;
897 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
898 ac_init_help=short ;;
900 -host | --host | --hos | --ho)
901 ac_prev=host_alias ;;
902 -host=* | --host=* | --hos=* | --ho=*)
903 host_alias=$ac_optarg ;;
905 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
906 ac_prev=htmldir ;;
907 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
908 | --ht=*)
909 htmldir=$ac_optarg ;;
911 -includedir | --includedir | --includedi | --included | --include \
912 | --includ | --inclu | --incl | --inc)
913 ac_prev=includedir ;;
914 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
915 | --includ=* | --inclu=* | --incl=* | --inc=*)
916 includedir=$ac_optarg ;;
918 -infodir | --infodir | --infodi | --infod | --info | --inf)
919 ac_prev=infodir ;;
920 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
921 infodir=$ac_optarg ;;
923 -libdir | --libdir | --libdi | --libd)
924 ac_prev=libdir ;;
925 -libdir=* | --libdir=* | --libdi=* | --libd=*)
926 libdir=$ac_optarg ;;
928 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
929 | --libexe | --libex | --libe)
930 ac_prev=libexecdir ;;
931 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
932 | --libexe=* | --libex=* | --libe=*)
933 libexecdir=$ac_optarg ;;
935 -localedir | --localedir | --localedi | --localed | --locale)
936 ac_prev=localedir ;;
937 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
938 localedir=$ac_optarg ;;
940 -localstatedir | --localstatedir | --localstatedi | --localstated \
941 | --localstate | --localstat | --localsta | --localst | --locals)
942 ac_prev=localstatedir ;;
943 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
944 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
945 localstatedir=$ac_optarg ;;
947 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
948 ac_prev=mandir ;;
949 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
950 mandir=$ac_optarg ;;
952 -nfp | --nfp | --nf)
953 # Obsolete; use --without-fp.
954 with_fp=no ;;
956 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
957 | --no-cr | --no-c | -n)
958 no_create=yes ;;
960 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
961 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
962 no_recursion=yes ;;
964 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
965 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
966 | --oldin | --oldi | --old | --ol | --o)
967 ac_prev=oldincludedir ;;
968 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
969 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
970 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
971 oldincludedir=$ac_optarg ;;
973 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
974 ac_prev=prefix ;;
975 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
976 prefix=$ac_optarg ;;
978 -program-prefix | --program-prefix | --program-prefi | --program-pref \
979 | --program-pre | --program-pr | --program-p)
980 ac_prev=program_prefix ;;
981 -program-prefix=* | --program-prefix=* | --program-prefi=* \
982 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
983 program_prefix=$ac_optarg ;;
985 -program-suffix | --program-suffix | --program-suffi | --program-suff \
986 | --program-suf | --program-su | --program-s)
987 ac_prev=program_suffix ;;
988 -program-suffix=* | --program-suffix=* | --program-suffi=* \
989 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
990 program_suffix=$ac_optarg ;;
992 -program-transform-name | --program-transform-name \
993 | --program-transform-nam | --program-transform-na \
994 | --program-transform-n | --program-transform- \
995 | --program-transform | --program-transfor \
996 | --program-transfo | --program-transf \
997 | --program-trans | --program-tran \
998 | --progr-tra | --program-tr | --program-t)
999 ac_prev=program_transform_name ;;
1000 -program-transform-name=* | --program-transform-name=* \
1001 | --program-transform-nam=* | --program-transform-na=* \
1002 | --program-transform-n=* | --program-transform-=* \
1003 | --program-transform=* | --program-transfor=* \
1004 | --program-transfo=* | --program-transf=* \
1005 | --program-trans=* | --program-tran=* \
1006 | --progr-tra=* | --program-tr=* | --program-t=*)
1007 program_transform_name=$ac_optarg ;;
1009 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1010 ac_prev=pdfdir ;;
1011 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1012 pdfdir=$ac_optarg ;;
1014 -psdir | --psdir | --psdi | --psd | --ps)
1015 ac_prev=psdir ;;
1016 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1017 psdir=$ac_optarg ;;
1019 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1020 | -silent | --silent | --silen | --sile | --sil)
1021 silent=yes ;;
1023 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1024 ac_prev=sbindir ;;
1025 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1026 | --sbi=* | --sb=*)
1027 sbindir=$ac_optarg ;;
1029 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1030 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1031 | --sharedst | --shareds | --shared | --share | --shar \
1032 | --sha | --sh)
1033 ac_prev=sharedstatedir ;;
1034 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1035 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1036 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1037 | --sha=* | --sh=*)
1038 sharedstatedir=$ac_optarg ;;
1040 -site | --site | --sit)
1041 ac_prev=site ;;
1042 -site=* | --site=* | --sit=*)
1043 site=$ac_optarg ;;
1045 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1046 ac_prev=srcdir ;;
1047 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1048 srcdir=$ac_optarg ;;
1050 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1051 | --syscon | --sysco | --sysc | --sys | --sy)
1052 ac_prev=sysconfdir ;;
1053 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1054 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1055 sysconfdir=$ac_optarg ;;
1057 -target | --target | --targe | --targ | --tar | --ta | --t)
1058 ac_prev=target_alias ;;
1059 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1060 target_alias=$ac_optarg ;;
1062 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1063 verbose=yes ;;
1065 -version | --version | --versio | --versi | --vers | -V)
1066 ac_init_version=: ;;
1068 -with-* | --with-*)
1069 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1070 # Reject names that are not valid shell variable names.
1071 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1072 { echo "$as_me: error: invalid package name: $ac_package" >&2
1073 { (exit 1); exit 1; }; }
1074 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1075 eval with_$ac_package=\$ac_optarg ;;
1077 -without-* | --without-*)
1078 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1081 { echo "$as_me: error: invalid package name: $ac_package" >&2
1082 { (exit 1); exit 1; }; }
1083 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1084 eval with_$ac_package=no ;;
1086 --x)
1087 # Obsolete; use --with-x.
1088 with_x=yes ;;
1090 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1091 | --x-incl | --x-inc | --x-in | --x-i)
1092 ac_prev=x_includes ;;
1093 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1094 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1095 x_includes=$ac_optarg ;;
1097 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1098 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1099 ac_prev=x_libraries ;;
1100 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1101 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1102 x_libraries=$ac_optarg ;;
1104 -*) { echo "$as_me: error: unrecognized option: $ac_option
1105 Try \`$0 --help' for more information." >&2
1106 { (exit 1); exit 1; }; }
1109 *=*)
1110 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1111 # Reject names that are not valid shell variable names.
1112 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1113 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1114 { (exit 1); exit 1; }; }
1115 eval $ac_envvar=\$ac_optarg
1116 export $ac_envvar ;;
1119 # FIXME: should be removed in autoconf 3.0.
1120 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1121 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1122 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1123 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1126 esac
1127 done
1129 if test -n "$ac_prev"; then
1130 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1131 { echo "$as_me: error: missing argument to $ac_option" >&2
1132 { (exit 1); exit 1; }; }
1135 # Be sure to have absolute directory names.
1136 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1137 datadir sysconfdir sharedstatedir localstatedir includedir \
1138 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1139 libdir localedir mandir
1141 eval ac_val=\$$ac_var
1142 case $ac_val in
1143 [\\/$]* | ?:[\\/]* ) continue;;
1144 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1145 esac
1146 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1147 { (exit 1); exit 1; }; }
1148 done
1150 # There might be people who depend on the old broken behavior: `$host'
1151 # used to hold the argument of --host etc.
1152 # FIXME: To remove some day.
1153 build=$build_alias
1154 host=$host_alias
1155 target=$target_alias
1157 # FIXME: To remove some day.
1158 if test "x$host_alias" != x; then
1159 if test "x$build_alias" = x; then
1160 cross_compiling=maybe
1161 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1162 If a cross compiler is detected then cross compile mode will be used." >&2
1163 elif test "x$build_alias" != "x$host_alias"; then
1164 cross_compiling=yes
1168 ac_tool_prefix=
1169 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1171 test "$silent" = yes && exec 6>/dev/null
1174 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1175 ac_ls_di=`ls -di .` &&
1176 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1177 { echo "$as_me: error: Working directory cannot be determined" >&2
1178 { (exit 1); exit 1; }; }
1179 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1180 { echo "$as_me: error: pwd does not report name of working directory" >&2
1181 { (exit 1); exit 1; }; }
1184 # Find the source files, if location was not specified.
1185 if test -z "$srcdir"; then
1186 ac_srcdir_defaulted=yes
1187 # Try the directory containing this script, then the parent directory.
1188 ac_confdir=`$as_dirname -- "$0" ||
1189 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1190 X"$0" : 'X\(//\)[^/]' \| \
1191 X"$0" : 'X\(//\)$' \| \
1192 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1193 echo X"$0" |
1194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1195 s//\1/
1198 /^X\(\/\/\)[^/].*/{
1199 s//\1/
1202 /^X\(\/\/\)$/{
1203 s//\1/
1206 /^X\(\/\).*/{
1207 s//\1/
1210 s/.*/./; q'`
1211 srcdir=$ac_confdir
1212 if test ! -r "$srcdir/$ac_unique_file"; then
1213 srcdir=..
1215 else
1216 ac_srcdir_defaulted=no
1218 if test ! -r "$srcdir/$ac_unique_file"; then
1219 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1220 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1221 { (exit 1); exit 1; }; }
1223 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1224 ac_abs_confdir=`(
1225 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1226 { (exit 1); exit 1; }; }
1227 pwd)`
1228 # When building in place, set srcdir=.
1229 if test "$ac_abs_confdir" = "$ac_pwd"; then
1230 srcdir=.
1232 # Remove unnecessary trailing slashes from srcdir.
1233 # Double slashes in file names in object file debugging info
1234 # mess up M-x gdb in Emacs.
1235 case $srcdir in
1236 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1237 esac
1238 for ac_var in $ac_precious_vars; do
1239 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1240 eval ac_env_${ac_var}_value=\$${ac_var}
1241 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1242 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1243 done
1246 # Report the --help message.
1248 if test "$ac_init_help" = "long"; then
1249 # Omit some internal or obsolete options to make the list less imposing.
1250 # This message is too long to be a string in the A/UX 3.1 sh.
1251 cat <<_ACEOF
1252 \`configure' configures emacs 23.0.60 to adapt to many kinds of systems.
1254 Usage: $0 [OPTION]... [VAR=VALUE]...
1256 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1257 VAR=VALUE. See below for descriptions of some of the useful variables.
1259 Defaults for the options are specified in brackets.
1261 Configuration:
1262 -h, --help display this help and exit
1263 --help=short display options specific to this package
1264 --help=recursive display the short help of all the included packages
1265 -V, --version display version information and exit
1266 -q, --quiet, --silent do not print \`checking...' messages
1267 --cache-file=FILE cache test results in FILE [disabled]
1268 -C, --config-cache alias for \`--cache-file=config.cache'
1269 -n, --no-create do not create output files
1270 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1272 Installation directories:
1273 --prefix=PREFIX install architecture-independent files in PREFIX
1274 [$ac_default_prefix]
1275 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1276 [PREFIX]
1278 By default, \`make install' will install all the files in
1279 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1280 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1281 for instance \`--prefix=\$HOME'.
1283 For better control, use the options below.
1285 Fine tuning of the installation directories:
1286 --bindir=DIR user executables [EPREFIX/bin]
1287 --sbindir=DIR system admin executables [EPREFIX/sbin]
1288 --libexecdir=DIR program executables [EPREFIX/libexec]
1289 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1290 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1291 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1292 --libdir=DIR object code libraries [EPREFIX/lib]
1293 --includedir=DIR C header files [PREFIX/include]
1294 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1295 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1296 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1297 --infodir=DIR info documentation [DATAROOTDIR/info]
1298 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1299 --mandir=DIR man documentation [DATAROOTDIR/man]
1300 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1301 --htmldir=DIR html documentation [DOCDIR]
1302 --dvidir=DIR dvi documentation [DOCDIR]
1303 --pdfdir=DIR pdf documentation [DOCDIR]
1304 --psdir=DIR ps documentation [DOCDIR]
1305 _ACEOF
1307 cat <<\_ACEOF
1309 Program names:
1310 --program-prefix=PREFIX prepend PREFIX to installed program names
1311 --program-suffix=SUFFIX append SUFFIX to installed program names
1312 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1314 X features:
1315 --x-includes=DIR X include files are in DIR
1316 --x-libraries=DIR X library files are in DIR
1318 System types:
1319 --build=BUILD configure for building on BUILD [guessed]
1320 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1321 _ACEOF
1324 if test -n "$ac_init_help"; then
1325 case $ac_init_help in
1326 short | recursive ) echo "Configuration of emacs 23.0.60:";;
1327 esac
1328 cat <<\_ACEOF
1330 Optional Features:
1331 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1332 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1333 --enable-carbon-app[=DIR]
1334 specify install directory for Emacs.app on Mac OS X
1335 [DIR=/Application]
1336 --enable-ns-app[=DIR] [DIR=/Applications]
1337 specify install directory for Emacs.app under NS
1338 --enable-cocoa-experimental-ctrl-g enable experimental improved ctrl-g recognition
1339 --enable-asserts compile code with asserts enabled
1340 --enable-maintainer-mode
1341 enable make rules and dependencies not useful (and
1342 sometimes confusing) to the casual installer
1343 --enable-locallisppath=PATH
1344 directories Emacs should search for lisp files
1345 specific to this site
1346 --disable-largefile omit support for large files
1348 Optional Packages:
1349 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1350 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1351 --without-pop don't support POP mail retrieval with movemail
1352 --with-kerberos support Kerberos-authenticated POP
1353 --with-kerberos5 support Kerberos version 5 authenticated POP
1354 --with-hesiod support Hesiod to get the POP server host
1355 --without-sound don't compile with sound support
1356 --without-sync-input Process async input synchronously
1357 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1358 motif, gtk, no)
1359 --without-xpm don't compile with XPM image support
1360 --without-jpeg don't compile with JPEG image support
1361 --without-tiff don't compile with TIFF image support
1362 --without-gif don't compile with GIF image support
1363 --without-png don't compile with PNG image support
1364 --without-rsvg don't compile with SVG image support
1365 --without-freetype don't use Freetype for local font support
1366 --without-xft don't use XFT for anti aliased fonts
1367 --without-libotf don't use libotf for OpenType font support
1368 --without-m17n-flt don't use m17n-flt for text shaping
1369 --without-toolkit-scroll-bars
1370 don't use Motif or Xaw3d scroll bars
1371 --without-xaw3d don't use Xaw3d
1372 --without-xim don't use X11 XIM
1373 --with-carbon use Carbon GUI on Mac OS X. This is unsupported!
1374 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1375 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1376 console
1377 --without-dbus don't compile with D-Bus support
1378 --without-makeinfo don't require makeinfo for building manuals
1380 --with-pkg-config-prog=PATH
1381 Path to pkg-config for finding GTK and librsvg
1382 --with-x use the X Window System
1384 Some influential environment variables:
1385 CC C compiler command
1386 CFLAGS C compiler flags
1387 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1388 nonstandard directory <lib dir>
1389 LIBS libraries to pass to the linker, e.g. -l<library>
1390 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1391 you have headers in a nonstandard directory <include dir>
1392 CPP C preprocessor
1393 XMKMF Path to xmkmf, Makefile generator for X Window System
1395 Use these variables to override the choices made by `configure' or to help
1396 it to find libraries and programs with nonstandard names/locations.
1398 _ACEOF
1399 ac_status=$?
1402 if test "$ac_init_help" = "recursive"; then
1403 # If there are subdirs, report their specific --help.
1404 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1405 test -d "$ac_dir" || continue
1406 ac_builddir=.
1408 case "$ac_dir" in
1409 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1411 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1412 # A ".." for each directory in $ac_dir_suffix.
1413 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1414 case $ac_top_builddir_sub in
1415 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1416 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1417 esac ;;
1418 esac
1419 ac_abs_top_builddir=$ac_pwd
1420 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1421 # for backward compatibility:
1422 ac_top_builddir=$ac_top_build_prefix
1424 case $srcdir in
1425 .) # We are building in place.
1426 ac_srcdir=.
1427 ac_top_srcdir=$ac_top_builddir_sub
1428 ac_abs_top_srcdir=$ac_pwd ;;
1429 [\\/]* | ?:[\\/]* ) # Absolute name.
1430 ac_srcdir=$srcdir$ac_dir_suffix;
1431 ac_top_srcdir=$srcdir
1432 ac_abs_top_srcdir=$srcdir ;;
1433 *) # Relative name.
1434 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1435 ac_top_srcdir=$ac_top_build_prefix$srcdir
1436 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1437 esac
1438 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1440 cd "$ac_dir" || { ac_status=$?; continue; }
1441 # Check for guested configure.
1442 if test -f "$ac_srcdir/configure.gnu"; then
1443 echo &&
1444 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1445 elif test -f "$ac_srcdir/configure"; then
1446 echo &&
1447 $SHELL "$ac_srcdir/configure" --help=recursive
1448 else
1449 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1450 fi || ac_status=$?
1451 cd "$ac_pwd" || { ac_status=$?; break; }
1452 done
1455 test -n "$ac_init_help" && exit $ac_status
1456 if $ac_init_version; then
1457 cat <<\_ACEOF
1458 emacs configure 23.0.60
1459 generated by GNU Autoconf 2.61
1461 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1462 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1463 This configure script is free software; the Free Software Foundation
1464 gives unlimited permission to copy, distribute and modify it.
1465 _ACEOF
1466 exit
1468 cat >config.log <<_ACEOF
1469 This file contains any messages produced by compilers while
1470 running configure, to aid debugging if configure makes a mistake.
1472 It was created by emacs $as_me 23.0.60, which was
1473 generated by GNU Autoconf 2.61. Invocation command line was
1475 $ $0 $@
1477 _ACEOF
1478 exec 5>>config.log
1480 cat <<_ASUNAME
1481 ## --------- ##
1482 ## Platform. ##
1483 ## --------- ##
1485 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1486 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1487 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1488 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1489 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1491 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1492 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1494 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1495 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1496 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1497 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1498 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1499 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1500 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1502 _ASUNAME
1504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1505 for as_dir in $PATH
1507 IFS=$as_save_IFS
1508 test -z "$as_dir" && as_dir=.
1509 echo "PATH: $as_dir"
1510 done
1511 IFS=$as_save_IFS
1513 } >&5
1515 cat >&5 <<_ACEOF
1518 ## ----------- ##
1519 ## Core tests. ##
1520 ## ----------- ##
1522 _ACEOF
1525 # Keep a trace of the command line.
1526 # Strip out --no-create and --no-recursion so they do not pile up.
1527 # Strip out --silent because we don't want to record it for future runs.
1528 # Also quote any args containing shell meta-characters.
1529 # Make two passes to allow for proper duplicate-argument suppression.
1530 ac_configure_args=
1531 ac_configure_args0=
1532 ac_configure_args1=
1533 ac_must_keep_next=false
1534 for ac_pass in 1 2
1536 for ac_arg
1538 case $ac_arg in
1539 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1541 | -silent | --silent | --silen | --sile | --sil)
1542 continue ;;
1543 *\'*)
1544 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1545 esac
1546 case $ac_pass in
1547 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1549 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1550 if test $ac_must_keep_next = true; then
1551 ac_must_keep_next=false # Got value, back to normal.
1552 else
1553 case $ac_arg in
1554 *=* | --config-cache | -C | -disable-* | --disable-* \
1555 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1556 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1557 | -with-* | --with-* | -without-* | --without-* | --x)
1558 case "$ac_configure_args0 " in
1559 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1560 esac
1562 -* ) ac_must_keep_next=true ;;
1563 esac
1565 ac_configure_args="$ac_configure_args '$ac_arg'"
1567 esac
1568 done
1569 done
1570 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1571 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1573 # When interrupted or exit'd, cleanup temporary files, and complete
1574 # config.log. We remove comments because anyway the quotes in there
1575 # would cause problems or look ugly.
1576 # WARNING: Use '\'' to represent an apostrophe within the trap.
1577 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1578 trap 'exit_status=$?
1579 # Save into config.log some information that might help in debugging.
1581 echo
1583 cat <<\_ASBOX
1584 ## ---------------- ##
1585 ## Cache variables. ##
1586 ## ---------------- ##
1587 _ASBOX
1588 echo
1589 # The following way of writing the cache mishandles newlines in values,
1591 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1592 eval ac_val=\$$ac_var
1593 case $ac_val in #(
1594 *${as_nl}*)
1595 case $ac_var in #(
1596 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1597 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1598 esac
1599 case $ac_var in #(
1600 _ | IFS | as_nl) ;; #(
1601 *) $as_unset $ac_var ;;
1602 esac ;;
1603 esac
1604 done
1605 (set) 2>&1 |
1606 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1607 *${as_nl}ac_space=\ *)
1608 sed -n \
1609 "s/'\''/'\''\\\\'\'''\''/g;
1610 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1611 ;; #(
1613 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1615 esac |
1616 sort
1618 echo
1620 cat <<\_ASBOX
1621 ## ----------------- ##
1622 ## Output variables. ##
1623 ## ----------------- ##
1624 _ASBOX
1625 echo
1626 for ac_var in $ac_subst_vars
1628 eval ac_val=\$$ac_var
1629 case $ac_val in
1630 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1631 esac
1632 echo "$ac_var='\''$ac_val'\''"
1633 done | sort
1634 echo
1636 if test -n "$ac_subst_files"; then
1637 cat <<\_ASBOX
1638 ## ------------------- ##
1639 ## File substitutions. ##
1640 ## ------------------- ##
1641 _ASBOX
1642 echo
1643 for ac_var in $ac_subst_files
1645 eval ac_val=\$$ac_var
1646 case $ac_val in
1647 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1648 esac
1649 echo "$ac_var='\''$ac_val'\''"
1650 done | sort
1651 echo
1654 if test -s confdefs.h; then
1655 cat <<\_ASBOX
1656 ## ----------- ##
1657 ## confdefs.h. ##
1658 ## ----------- ##
1659 _ASBOX
1660 echo
1661 cat confdefs.h
1662 echo
1664 test "$ac_signal" != 0 &&
1665 echo "$as_me: caught signal $ac_signal"
1666 echo "$as_me: exit $exit_status"
1667 } >&5
1668 rm -f core *.core core.conftest.* &&
1669 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1670 exit $exit_status
1672 for ac_signal in 1 2 13 15; do
1673 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1674 done
1675 ac_signal=0
1677 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1678 rm -f -r conftest* confdefs.h
1680 # Predefined preprocessor variables.
1682 cat >>confdefs.h <<_ACEOF
1683 #define PACKAGE_NAME "$PACKAGE_NAME"
1684 _ACEOF
1687 cat >>confdefs.h <<_ACEOF
1688 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1689 _ACEOF
1692 cat >>confdefs.h <<_ACEOF
1693 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1694 _ACEOF
1697 cat >>confdefs.h <<_ACEOF
1698 #define PACKAGE_STRING "$PACKAGE_STRING"
1699 _ACEOF
1702 cat >>confdefs.h <<_ACEOF
1703 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1704 _ACEOF
1707 # Let the site file select an alternate cache file if it wants to.
1708 # Prefer explicitly selected file to automatically selected ones.
1709 if test -n "$CONFIG_SITE"; then
1710 set x "$CONFIG_SITE"
1711 elif test "x$prefix" != xNONE; then
1712 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1713 else
1714 set x "$ac_default_prefix/share/config.site" \
1715 "$ac_default_prefix/etc/config.site"
1717 shift
1718 for ac_site_file
1720 if test -r "$ac_site_file"; then
1721 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1722 echo "$as_me: loading site script $ac_site_file" >&6;}
1723 sed 's/^/| /' "$ac_site_file" >&5
1724 . "$ac_site_file"
1726 done
1728 if test -r "$cache_file"; then
1729 # Some versions of bash will fail to source /dev/null (special
1730 # files actually), so we avoid doing that.
1731 if test -f "$cache_file"; then
1732 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1733 echo "$as_me: loading cache $cache_file" >&6;}
1734 case $cache_file in
1735 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1736 *) . "./$cache_file";;
1737 esac
1739 else
1740 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1741 echo "$as_me: creating cache $cache_file" >&6;}
1742 >$cache_file
1745 ac_header_list="$ac_header_list sys/time.h"
1746 ac_header_list="$ac_header_list unistd.h"
1747 ac_func_list="$ac_func_list alarm"
1748 # Check that the precious variables saved in the cache have kept the same
1749 # value.
1750 ac_cache_corrupted=false
1751 for ac_var in $ac_precious_vars; do
1752 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1753 eval ac_new_set=\$ac_env_${ac_var}_set
1754 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1755 eval ac_new_val=\$ac_env_${ac_var}_value
1756 case $ac_old_set,$ac_new_set in
1757 set,)
1758 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1759 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1760 ac_cache_corrupted=: ;;
1761 ,set)
1762 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1763 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1764 ac_cache_corrupted=: ;;
1765 ,);;
1767 if test "x$ac_old_val" != "x$ac_new_val"; then
1768 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1769 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1770 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1771 echo "$as_me: former value: $ac_old_val" >&2;}
1772 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1773 echo "$as_me: current value: $ac_new_val" >&2;}
1774 ac_cache_corrupted=:
1775 fi;;
1776 esac
1777 # Pass precious variables to config.status.
1778 if test "$ac_new_set" = set; then
1779 case $ac_new_val in
1780 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1781 *) ac_arg=$ac_var=$ac_new_val ;;
1782 esac
1783 case " $ac_configure_args " in
1784 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1785 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1786 esac
1788 done
1789 if $ac_cache_corrupted; then
1790 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1791 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1792 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1793 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1794 { (exit 1); exit 1; }; }
1821 ac_ext=c
1822 ac_cpp='$CPP $CPPFLAGS'
1823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1828 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1832 test "$program_prefix" != NONE &&
1833 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1834 # Use a double $ so make ignores it.
1835 test "$program_suffix" != NONE &&
1836 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1837 # Double any \ or $. echo might interpret backslashes.
1838 # By default was `s,x,x', remove it if useless.
1839 cat <<\_ACEOF >conftest.sed
1840 s/[\\$]/&&/g;s/;s,x,x,$//
1841 _ACEOF
1842 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1843 rm -f conftest.sed
1846 lispdir='${datadir}/emacs/${version}/lisp'
1847 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1848 '${datadir}/emacs/site-lisp'
1849 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1850 etcdir='${datadir}/emacs/${version}/etc'
1851 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1852 docdir='${datadir}/emacs/${version}/etc'
1853 gamedir='${localstatedir}/games/emacs'
1855 gameuser=games
1860 # Check whether --with-pop was given.
1861 if test "${with_pop+set}" = set; then
1862 withval=$with_pop;
1863 else
1864 with_pop=yes
1867 if test "$with_pop" = yes; then
1868 cat >>confdefs.h <<\_ACEOF
1869 #define MAIL_USE_POP 1
1870 _ACEOF
1876 # Check whether --with-kerberos was given.
1877 if test "${with_kerberos+set}" = set; then
1878 withval=$with_kerberos;
1879 else
1880 with_kerberos=no
1883 if test "$with_kerberos" = yes; then
1884 cat >>confdefs.h <<\_ACEOF
1885 #define KERBEROS 1
1886 _ACEOF
1892 # Check whether --with-kerberos5 was given.
1893 if test "${with_kerberos5+set}" = set; then
1894 withval=$with_kerberos5;
1895 else
1896 with_kerberos5=no
1899 if test "${with_kerberos5}" = yes; then
1900 if test "${with_kerberos}" != yes; then
1901 with_kerberos=yes
1902 cat >>confdefs.h <<\_ACEOF
1903 #define KERBEROS 1
1904 _ACEOF
1908 cat >>confdefs.h <<\_ACEOF
1909 #define KERBEROS5 1
1910 _ACEOF
1915 # Check whether --with-hesiod was given.
1916 if test "${with_hesiod+set}" = set; then
1917 withval=$with_hesiod;
1918 else
1919 with_hesiod=no
1922 if test "$with_hesiod" = yes; then
1924 cat >>confdefs.h <<\_ACEOF
1925 #define HESIOD 1
1926 _ACEOF
1931 # Check whether --with-sound was given.
1932 if test "${with_sound+set}" = set; then
1933 withval=$with_sound;
1934 else
1935 with_sound=yes
1940 # Check whether --with-sync-input was given.
1941 if test "${with_sync_input+set}" = set; then
1942 withval=$with_sync_input;
1943 else
1944 with_sync_input=yes
1947 if test "$with_sync_input" = yes; then
1949 cat >>confdefs.h <<\_ACEOF
1950 #define SYNC_INPUT 1
1951 _ACEOF
1956 # Check whether --with-x-toolkit was given.
1957 if test "${with_x_toolkit+set}" = set; then
1958 withval=$with_x_toolkit; case "${withval}" in
1959 y | ye | yes ) val=gtk ;;
1960 n | no ) val=no ;;
1961 l | lu | luc | luci | lucid ) val=lucid ;;
1962 a | at | ath | athe | athen | athena ) val=athena ;;
1963 m | mo | mot | moti | motif ) val=motif ;;
1964 g | gt | gtk ) val=gtk ;;
1966 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1967 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1968 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1969 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1970 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1971 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1972 { (exit 1); exit 1; }; }
1974 esac
1975 with_x_toolkit=$val
1981 # Check whether --with-xpm was given.
1982 if test "${with_xpm+set}" = set; then
1983 withval=$with_xpm;
1984 else
1985 with_xpm=yes
1989 # Check whether --with-jpeg was given.
1990 if test "${with_jpeg+set}" = set; then
1991 withval=$with_jpeg;
1992 else
1993 with_jpeg=yes
1997 # Check whether --with-tiff was given.
1998 if test "${with_tiff+set}" = set; then
1999 withval=$with_tiff;
2000 else
2001 with_tiff=yes
2005 # Check whether --with-gif was given.
2006 if test "${with_gif+set}" = set; then
2007 withval=$with_gif;
2008 else
2009 with_gif=yes
2013 # Check whether --with-png was given.
2014 if test "${with_png+set}" = set; then
2015 withval=$with_png;
2016 else
2017 with_png=yes
2021 # Check whether --with-rsvg was given.
2022 if test "${with_rsvg+set}" = set; then
2023 withval=$with_rsvg;
2024 else
2025 with_rsvg=yes
2030 # Check whether --with-freetype was given.
2031 if test "${with_freetype+set}" = set; then
2032 withval=$with_freetype;
2033 else
2034 with_freetype=yes
2038 # Check whether --with-xft was given.
2039 if test "${with_xft+set}" = set; then
2040 withval=$with_xft;
2041 else
2042 with_xft=yes
2046 # Check whether --with-libotf was given.
2047 if test "${with_libotf+set}" = set; then
2048 withval=$with_libotf;
2049 else
2050 with_libotf=yes
2054 # Check whether --with-m17n-flt was given.
2055 if test "${with_m17n_flt+set}" = set; then
2056 withval=$with_m17n_flt;
2057 else
2058 with_m17n_flt=yes
2063 # Check whether --with-toolkit-scroll-bars was given.
2064 if test "${with_toolkit_scroll_bars+set}" = set; then
2065 withval=$with_toolkit_scroll_bars;
2066 else
2067 with_toolkit_scroll_bars=yes
2071 # Check whether --with-xaw3d was given.
2072 if test "${with_xaw3d+set}" = set; then
2073 withval=$with_xaw3d;
2074 else
2075 with_xaw3d=yes
2079 # Check whether --with-xim was given.
2080 if test "${with_xim+set}" = set; then
2081 withval=$with_xim;
2082 else
2083 with_xim=yes
2087 # Check whether --with-carbon was given.
2088 if test "${with_carbon+set}" = set; then
2089 withval=$with_carbon;
2090 else
2091 with_carbon=no
2095 # Check whether --with-ns was given.
2096 if test "${with_ns+set}" = set; then
2097 withval=$with_ns;
2098 else
2099 with_ns=no
2104 # Check whether --with-gpm was given.
2105 if test "${with_gpm+set}" = set; then
2106 withval=$with_gpm;
2107 else
2108 with_gpm=yes
2112 # Check whether --with-dbus was given.
2113 if test "${with_dbus+set}" = set; then
2114 withval=$with_dbus;
2115 else
2116 with_dbus=yes
2120 ## For the times when you want to build Emacs but don't have
2121 ## a suitable makeinfo, and can live without the manuals.
2123 # Check whether --with-makeinfo was given.
2124 if test "${with_makeinfo+set}" = set; then
2125 withval=$with_makeinfo;
2126 else
2127 with_makeinfo=yes
2132 # Check whether --with-gtk was given.
2133 if test "${with_gtk+set}" = set; then
2134 withval=$with_gtk; { { echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2135 specify a toolkit." >&5
2136 echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2137 specify a toolkit." >&2;}
2138 { (exit 1); exit 1; }; }
2143 # Check whether --with-gcc was given.
2144 if test "${with_gcc+set}" = set; then
2145 withval=$with_gcc; { { echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2146 variable to specify a compiler." >&5
2147 echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2148 variable to specify a compiler." >&2;}
2149 { (exit 1); exit 1; }; }
2154 # Check whether --with-pkg-config-prog was given.
2155 if test "${with_pkg_config_prog+set}" = set; then
2156 withval=$with_pkg_config_prog;
2159 if test "X${with_pkg_config_prog}" != X; then
2160 if test "${with_pkg_config_prog}" != yes; then
2161 PKG_CONFIG="${with_pkg_config_prog}"
2165 # Check whether --enable-carbon-app was given.
2166 if test "${enable_carbon_app+set}" = set; then
2167 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
2171 # Check whether --enable-ns-app was given.
2172 if test "${enable_ns_app+set}" = set; then
2173 enableval=$enable_ns_app; ns_appdir_x=${enableval}
2177 # Check whether --enable-cocoa-experimental-ctrl-g was given.
2178 if test "${enable_cocoa_experimental_ctrl_g+set}" = set; then
2179 enableval=$enable_cocoa_experimental_ctrl_g; EN_COCOA_EXPERIMENTAL_CTRL_G=yes
2180 else
2181 EN_COCOA_EXPERIMENTAL_CTRL_G=no
2185 # Check whether --enable-asserts was given.
2186 if test "${enable_asserts+set}" = set; then
2187 enableval=$enable_asserts; USE_XASSERTS=$enableval
2188 else
2189 USE_XASSERTS=no
2193 # Check whether --enable-maintainer-mode was given.
2194 if test "${enable_maintainer_mode+set}" = set; then
2195 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2196 else
2197 USE_MAINTAINER_MODE=no
2200 if test $USE_MAINTAINER_MODE = yes; then
2201 MAINT=
2202 else
2203 MAINT=#
2207 # Check whether --enable-locallisppath was given.
2208 if test "${enable_locallisppath+set}" = set; then
2209 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2210 locallisppath=
2211 elif test "${enableval}" != "yes"; then
2212 locallisppath=${enableval}
2217 #### Make srcdir absolute, if it isn't already. It's important to
2218 #### avoid running the path through pwd unnecessarily, since pwd can
2219 #### give you automounter prefixes, which can go away. We do all this
2220 #### so Emacs can find its files when run uninstalled.
2221 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2222 unset CDPATH
2223 case "${srcdir}" in
2224 /* ) ;;
2226 ## We may be able to use the $PWD environment variable to make this
2227 ## absolute. But sometimes PWD is inaccurate.
2228 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2229 ## but that tested only for a well-formed and valid PWD,
2230 ## it did not object when PWD was well-formed and valid but just wrong.
2231 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2232 then
2233 srcdir="$PWD"
2234 else
2235 srcdir="`(cd ${srcdir}; pwd)`"
2238 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2239 esac
2241 #### Check if the source directory already has a configured system in it.
2242 if test `pwd` != `(cd ${srcdir} && pwd)` \
2243 && test -f "${srcdir}/src/config.h" ; then
2244 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2245 as a build directory right now; it has been configured in its own
2246 right. To configure in another directory as well, you MUST
2247 use GNU make. If you do not have GNU make, then you must
2248 now do \`make distclean' in ${srcdir},
2249 and then run $0 again." >&5
2250 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2251 as a build directory right now; it has been configured in its own
2252 right. To configure in another directory as well, you MUST
2253 use GNU make. If you do not have GNU make, then you must
2254 now do \`make distclean' in ${srcdir},
2255 and then run $0 again." >&2;}
2258 #### Given the configuration name, set machfile and opsysfile to the
2259 #### names of the m/*.h and s/*.h files we should use.
2261 ### Canonicalize the configuration name.
2263 ac_aux_dir=
2264 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2265 if test -f "$ac_dir/install-sh"; then
2266 ac_aux_dir=$ac_dir
2267 ac_install_sh="$ac_aux_dir/install-sh -c"
2268 break
2269 elif test -f "$ac_dir/install.sh"; then
2270 ac_aux_dir=$ac_dir
2271 ac_install_sh="$ac_aux_dir/install.sh -c"
2272 break
2273 elif test -f "$ac_dir/shtool"; then
2274 ac_aux_dir=$ac_dir
2275 ac_install_sh="$ac_aux_dir/shtool install -c"
2276 break
2278 done
2279 if test -z "$ac_aux_dir"; then
2280 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2281 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2282 { (exit 1); exit 1; }; }
2285 # These three variables are undocumented and unsupported,
2286 # and are intended to be withdrawn in a future Autoconf release.
2287 # They can cause serious problems if a builder's source tree is in a directory
2288 # whose full name contains unusual characters.
2289 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2290 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2291 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2294 # Make sure we can run config.sub.
2295 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2296 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2297 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2298 { (exit 1); exit 1; }; }
2300 { echo "$as_me:$LINENO: checking build system type" >&5
2301 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2302 if test "${ac_cv_build+set}" = set; then
2303 echo $ECHO_N "(cached) $ECHO_C" >&6
2304 else
2305 ac_build_alias=$build_alias
2306 test "x$ac_build_alias" = x &&
2307 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2308 test "x$ac_build_alias" = x &&
2309 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2310 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2311 { (exit 1); exit 1; }; }
2312 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2313 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2314 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2315 { (exit 1); exit 1; }; }
2318 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2319 echo "${ECHO_T}$ac_cv_build" >&6; }
2320 case $ac_cv_build in
2321 *-*-*) ;;
2322 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2323 echo "$as_me: error: invalid value of canonical build" >&2;}
2324 { (exit 1); exit 1; }; };;
2325 esac
2326 build=$ac_cv_build
2327 ac_save_IFS=$IFS; IFS='-'
2328 set x $ac_cv_build
2329 shift
2330 build_cpu=$1
2331 build_vendor=$2
2332 shift; shift
2333 # Remember, the first character of IFS is used to create $*,
2334 # except with old shells:
2335 build_os=$*
2336 IFS=$ac_save_IFS
2337 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2340 { echo "$as_me:$LINENO: checking host system type" >&5
2341 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2342 if test "${ac_cv_host+set}" = set; then
2343 echo $ECHO_N "(cached) $ECHO_C" >&6
2344 else
2345 if test "x$host_alias" = x; then
2346 ac_cv_host=$ac_cv_build
2347 else
2348 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2349 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2350 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2351 { (exit 1); exit 1; }; }
2355 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2356 echo "${ECHO_T}$ac_cv_host" >&6; }
2357 case $ac_cv_host in
2358 *-*-*) ;;
2359 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2360 echo "$as_me: error: invalid value of canonical host" >&2;}
2361 { (exit 1); exit 1; }; };;
2362 esac
2363 host=$ac_cv_host
2364 ac_save_IFS=$IFS; IFS='-'
2365 set x $ac_cv_host
2366 shift
2367 host_cpu=$1
2368 host_vendor=$2
2369 shift; shift
2370 # Remember, the first character of IFS is used to create $*,
2371 # except with old shells:
2372 host_os=$*
2373 IFS=$ac_save_IFS
2374 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2377 canonical=$host
2378 configuration=${host_alias-${build_alias-$host}}
2382 ### If you add support for a new configuration, add code to this
2383 ### switch statement to recognize your configuration name and select
2384 ### the appropriate operating system and machine description files.
2386 ### You would hope that you could choose an m/*.h file pretty much
2387 ### based on the machine portion of the configuration name, and an s-
2388 ### file based on the operating system portion. However, it turns out
2389 ### that each m/*.h file is pretty manufacturer-specific - for
2390 ### example mips.h is MIPS
2391 ### So we basically have to have a special case for each
2392 ### configuration name.
2394 ### As far as handling version numbers on operating systems is
2395 ### concerned, make sure things will fail in a fixable way. If
2396 ### /etc/MACHINES doesn't say anything about version numbers, be
2397 ### prepared to handle anything reasonably. If version numbers
2398 ### matter, be sure /etc/MACHINES says something about it.
2400 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2401 ### "System V Release 4"; he writes, "The old convention encouraged
2402 ### confusion between `system' and `release' levels'."
2404 machine='' opsys='' unported=no
2405 case "${canonical}" in
2407 ## FreeBSD ports
2408 *-*-*freebsd* )
2409 opsys=freebsd
2410 case "${canonical}" in
2411 alpha*-*-freebsd*) machine=alpha ;;
2412 arm*-*-freebsd*) machine=arm ;;
2413 ia64-*-freebsd*) machine=ia64 ;;
2414 sparc-*-freebsd*) machine=sparc ;;
2415 sparc64-*-freebsd*) machine=sparc ;;
2416 powerpc-*-freebsd*) machine=macppc ;;
2417 i[3456]86-*-freebsd*) machine=intel386 ;;
2418 amd64-*-freebsd*|x86_64-*-*freebsd*) machine=amdx86-64 ;;
2419 esac
2422 ## FreeBSD kernel + glibc based userland
2423 *-*-kfreebsd*gnu* )
2424 opsys=gnu-kfreebsd
2425 case "${canonical}" in
2426 alpha*-*-kfreebsd*) machine=alpha ;;
2427 ia64-*-kfreebsd*) machine=ia64 ;;
2428 sparc-*-kfreebsd*) machine=sparc ;;
2429 sparc64-*-kfreebsd*) machine=sparc ;;
2430 powerpc-*-kfreebsd*) machine=macppc ;;
2431 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2432 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2433 esac
2436 ## NetBSD ports
2437 *-*-netbsd* )
2438 opsys=netbsd
2439 if test -f /usr/lib/crti.o; then
2441 cat >>confdefs.h <<\_ACEOF
2442 #define HAVE_CRTIN
2443 _ACEOF
2447 case "${canonical}" in
2448 alpha*-*-netbsd*) machine=alpha ;;
2449 i[3456]86-*-netbsd*) machine=intel386 ;;
2450 powerpc-*-netbsd*) machine=macppc ;;
2451 sparc*-*-netbsd*) machine=sparc ;;
2452 vax-*-netbsd*) machine=vax ;;
2453 arm-*-netbsd*) machine=arm ;;
2454 x86_64-*-netbsd*) machine=amdx86-64 ;;
2455 hppa-*-netbsd*) machine=hp800 ;;
2456 esac
2459 ## OpenBSD ports
2460 *-*-openbsd* )
2461 opsys=openbsd
2462 case "${canonical}" in
2463 alpha*-*-openbsd*) machine=alpha ;;
2464 arm-*-openbsd*) machine=arm ;;
2465 i386-*-openbsd*) machine=intel386 ;;
2466 powerpc-*-openbsd*) machine=macppc ;;
2467 sparc*-*-openbsd*) machine=sparc ;;
2468 vax-*-openbsd*) machine=vax ;;
2469 x86_64-*-openbsd*) machine=amdx86-64 ;;
2470 esac
2473 ## LynxOS ports
2474 *-*-lynxos* )
2475 opsys=lynxos
2476 case "${canonical}" in
2477 i[3456]86-*-lynxos*) machine=intel386 ;;
2478 powerpc-*-lynxos*) machine=powerpc ;;
2479 esac
2482 alpha*-*-linux-gnu* )
2483 machine=alpha opsys=gnu-linux
2486 arm*-*-linux-gnu* )
2487 machine=arm opsys=gnu-linux
2490 ## Apple Darwin / Mac OS X
2491 *-apple-darwin* )
2492 case "${canonical}" in
2493 i[3456]86-* ) machine=intel386 ;;
2494 powerpc-* ) machine=macppc ;;
2495 * ) unported=yes ;;
2496 esac
2497 opsys=darwin
2498 # Define CPP as follows to make autoconf work correctly.
2499 CPP="${CC-cc} -E -no-cpp-precomp"
2500 # Use fink packages if available.
2501 if test -d /sw/include && test -d /sw/lib; then
2502 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2503 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2504 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2508 ## HP 9000 series 700 and 800, running HP/UX
2509 hppa*-hp-hpux10.2* )
2510 machine=hp800 opsys=hpux10-20
2512 hppa*-hp-hpux1[1-9]* )
2513 machine=hp800 opsys=hpux11
2514 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2517 hppa*-*-linux-gnu* )
2518 machine=hp800 opsys=gnu-linux
2521 ## IBM machines
2522 s390-*-linux-gnu* )
2523 machine=ibms390 opsys=gnu-linux
2525 s390x-*-linux-gnu* )
2526 machine=ibms390x opsys=gnu-linux
2528 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2529 machine=ibmrs6000 opsys=aix4-2
2531 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2532 machine=ibmrs6000 opsys=aix4-2
2534 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2535 machine=ibmrs6000 opsys=aix4-2
2537 rs6000-ibm-aix5* | powerpc-ibm-aix6* )
2538 machine=ibmrs6000 opsys=aix4-2
2541 ## Macintosh PowerPC
2542 powerpc*-*-linux-gnu* )
2543 machine=macppc opsys=gnu-linux
2546 ## Silicon Graphics machines
2547 ## Iris 4D
2548 mips-sgi-irix6.5 )
2549 machine=iris4d opsys=irix6-5
2550 # Without defining _LANGUAGE_C, things get masked out in the headers
2551 # so that, for instance, grepping for `free' in stdlib.h fails and
2552 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2553 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2554 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2557 ## Suns
2558 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2559 machine=sparc opsys=gnu-linux
2562 *-sun-solaris* \
2563 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2564 | rs6000-*-solaris2*)
2565 case "${canonical}" in
2566 i[3456]86-*-* ) machine=intel386 ;;
2567 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2568 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2569 sparc* ) machine=sparc ;;
2570 * ) unported=yes ;;
2571 esac
2572 case "${canonical}" in
2573 *-sunos5.3* | *-solaris2.3* )
2574 opsys=sol2-3
2575 NON_GNU_CPP=/usr/ccs/lib/cpp
2577 *-sunos5.4* | *-solaris2.4* )
2578 opsys=sol2-4
2579 NON_GNU_CPP=/usr/ccs/lib/cpp
2580 RANLIB="ar -ts"
2582 *-sunos5.5* | *-solaris2.5* )
2583 opsys=sol2-5
2584 NON_GNU_CPP=/usr/ccs/lib/cpp
2585 RANLIB="ar -ts"
2587 *-sunos5.6* | *-solaris2.6* )
2588 opsys=sol2-6
2589 NON_GNU_CPP=/usr/ccs/lib/cpp
2590 RANLIB="ar -ts"
2592 *-sunos5* | *-solaris* )
2593 opsys=sol2-6
2594 emacs_check_sunpro_c=yes
2595 NON_GNU_CPP=/usr/ccs/lib/cpp
2597 esac
2598 ## Watch out for a compiler that we know will not work.
2599 case "${canonical}" in
2600 *-solaris* | *-sunos5* )
2601 if [ "x$CC" = x/usr/ucb/cc ]; then
2602 ## /usr/ucb/cc doesn't work;
2603 ## we should find some other compiler that does work.
2604 unset CC
2607 *) ;;
2608 esac
2611 ## Vaxen.
2612 vax-dec-* )
2613 machine=vax
2614 case "${canonical}" in
2615 *-vms* ) opsys=vms ;;
2616 * ) unported=yes
2617 esac
2620 ## IA-64
2621 ia64*-*-linux* )
2622 machine=ia64 opsys=gnu-linux
2625 ## Intel 386 machines where we don't care about the manufacturer
2626 i[3456]86-*-* )
2627 machine=intel386
2628 case "${canonical}" in
2629 *-cygwin ) opsys=cygwin ;;
2630 *-darwin* ) opsys=darwin
2631 CPP="${CC-cc} -E -no-cpp-precomp"
2633 *-linux-gnu* ) opsys=gnu-linux ;;
2634 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2635 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2636 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2637 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2638 esac
2641 ## m68k Linux-based GNU system
2642 m68k-*-linux-gnu* )
2643 machine=m68k opsys=gnu-linux
2646 ## Mips Linux-based GNU system
2647 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2648 machine=mips opsys=gnu-linux
2651 ## AMD x86-64 Linux-based GNU system
2652 x86_64-*-linux-gnu* )
2653 machine=amdx86-64 opsys=gnu-linux
2656 ## Tensilica Xtensa Linux-based GNU system
2657 xtensa*-*-linux-gnu* )
2658 machine=xtensa opsys=gnu-linux
2662 unported=yes
2664 esac
2666 ### If the code above didn't choose an operating system, just choose
2667 ### an operating system based on the configuration name. You really
2668 ### only want to use this when you have no idea what the right
2669 ### operating system is; if you know what operating systems a machine
2670 ### runs, it's cleaner to make it explicit in the case statement
2671 ### above.
2672 if test x"${opsys}" = x; then
2673 case "${canonical}" in
2674 *-gnu* ) opsys=gnu ;;
2675 *-sysv4.2uw* ) opsys=unixware ;;
2676 *-sysv5uw* ) opsys=unixware ;;
2677 *-sysv5OpenUNIX* ) opsys=unixware ;;
2678 *-sysv4.1* | *-sysvr4.1* )
2679 NON_GNU_CPP=/usr/lib/cpp
2680 opsys=usg5-4 ;;
2681 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2682 if [ x$NON_GNU_CPP = x ]; then
2683 if [ -f /usr/ccs/lib/cpp ]; then
2684 NON_GNU_CPP=/usr/ccs/lib/cpp
2685 else
2686 NON_GNU_CPP=/lib/cpp
2689 opsys=usg5-4-2 ;;
2690 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2692 unported=yes
2694 esac
2699 if test $unported = yes; then
2700 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2701 Check \`etc/MACHINES' for recognized configuration names." >&5
2702 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2703 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2704 { (exit 1); exit 1; }; }
2707 machfile="m/${machine}.h"
2708 opsysfile="s/${opsys}.h"
2711 #### Choose a compiler.
2712 test -n "$CC" && cc_specified=yes
2714 # Save the value of CFLAGS that the user specified.
2715 SPECIFIED_CFLAGS="$CFLAGS"
2717 ac_ext=c
2718 ac_cpp='$CPP $CPPFLAGS'
2719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2722 if test -n "$ac_tool_prefix"; then
2723 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2724 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2725 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2727 if test "${ac_cv_prog_CC+set}" = set; then
2728 echo $ECHO_N "(cached) $ECHO_C" >&6
2729 else
2730 if test -n "$CC"; then
2731 ac_cv_prog_CC="$CC" # Let the user override the test.
2732 else
2733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2734 for as_dir in $PATH
2736 IFS=$as_save_IFS
2737 test -z "$as_dir" && as_dir=.
2738 for ac_exec_ext in '' $ac_executable_extensions; do
2739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2740 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2742 break 2
2744 done
2745 done
2746 IFS=$as_save_IFS
2750 CC=$ac_cv_prog_CC
2751 if test -n "$CC"; then
2752 { echo "$as_me:$LINENO: result: $CC" >&5
2753 echo "${ECHO_T}$CC" >&6; }
2754 else
2755 { echo "$as_me:$LINENO: result: no" >&5
2756 echo "${ECHO_T}no" >&6; }
2761 if test -z "$ac_cv_prog_CC"; then
2762 ac_ct_CC=$CC
2763 # Extract the first word of "gcc", so it can be a program name with args.
2764 set dummy gcc; ac_word=$2
2765 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2767 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2768 echo $ECHO_N "(cached) $ECHO_C" >&6
2769 else
2770 if test -n "$ac_ct_CC"; then
2771 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2772 else
2773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2774 for as_dir in $PATH
2776 IFS=$as_save_IFS
2777 test -z "$as_dir" && as_dir=.
2778 for ac_exec_ext in '' $ac_executable_extensions; do
2779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2780 ac_cv_prog_ac_ct_CC="gcc"
2781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2782 break 2
2784 done
2785 done
2786 IFS=$as_save_IFS
2790 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2791 if test -n "$ac_ct_CC"; then
2792 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2793 echo "${ECHO_T}$ac_ct_CC" >&6; }
2794 else
2795 { echo "$as_me:$LINENO: result: no" >&5
2796 echo "${ECHO_T}no" >&6; }
2799 if test "x$ac_ct_CC" = x; then
2800 CC=""
2801 else
2802 case $cross_compiling:$ac_tool_warned in
2803 yes:)
2804 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2805 whose name does not start with the host triplet. If you think this
2806 configuration is useful to you, please write to autoconf@gnu.org." >&5
2807 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2808 whose name does not start with the host triplet. If you think this
2809 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2810 ac_tool_warned=yes ;;
2811 esac
2812 CC=$ac_ct_CC
2814 else
2815 CC="$ac_cv_prog_CC"
2818 if test -z "$CC"; then
2819 if test -n "$ac_tool_prefix"; then
2820 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2821 set dummy ${ac_tool_prefix}cc; ac_word=$2
2822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2824 if test "${ac_cv_prog_CC+set}" = set; then
2825 echo $ECHO_N "(cached) $ECHO_C" >&6
2826 else
2827 if test -n "$CC"; then
2828 ac_cv_prog_CC="$CC" # Let the user override the test.
2829 else
2830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2831 for as_dir in $PATH
2833 IFS=$as_save_IFS
2834 test -z "$as_dir" && as_dir=.
2835 for ac_exec_ext in '' $ac_executable_extensions; do
2836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2837 ac_cv_prog_CC="${ac_tool_prefix}cc"
2838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2839 break 2
2841 done
2842 done
2843 IFS=$as_save_IFS
2847 CC=$ac_cv_prog_CC
2848 if test -n "$CC"; then
2849 { echo "$as_me:$LINENO: result: $CC" >&5
2850 echo "${ECHO_T}$CC" >&6; }
2851 else
2852 { echo "$as_me:$LINENO: result: no" >&5
2853 echo "${ECHO_T}no" >&6; }
2859 if test -z "$CC"; then
2860 # Extract the first word of "cc", so it can be a program name with args.
2861 set dummy cc; ac_word=$2
2862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2864 if test "${ac_cv_prog_CC+set}" = set; then
2865 echo $ECHO_N "(cached) $ECHO_C" >&6
2866 else
2867 if test -n "$CC"; then
2868 ac_cv_prog_CC="$CC" # Let the user override the test.
2869 else
2870 ac_prog_rejected=no
2871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2872 for as_dir in $PATH
2874 IFS=$as_save_IFS
2875 test -z "$as_dir" && as_dir=.
2876 for ac_exec_ext in '' $ac_executable_extensions; do
2877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2878 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2879 ac_prog_rejected=yes
2880 continue
2882 ac_cv_prog_CC="cc"
2883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2884 break 2
2886 done
2887 done
2888 IFS=$as_save_IFS
2890 if test $ac_prog_rejected = yes; then
2891 # We found a bogon in the path, so make sure we never use it.
2892 set dummy $ac_cv_prog_CC
2893 shift
2894 if test $# != 0; then
2895 # We chose a different compiler from the bogus one.
2896 # However, it has the same basename, so the bogon will be chosen
2897 # first if we set CC to just the basename; use the full file name.
2898 shift
2899 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2904 CC=$ac_cv_prog_CC
2905 if test -n "$CC"; then
2906 { echo "$as_me:$LINENO: result: $CC" >&5
2907 echo "${ECHO_T}$CC" >&6; }
2908 else
2909 { echo "$as_me:$LINENO: result: no" >&5
2910 echo "${ECHO_T}no" >&6; }
2915 if test -z "$CC"; then
2916 if test -n "$ac_tool_prefix"; then
2917 for ac_prog in cl.exe
2919 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2920 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2923 if test "${ac_cv_prog_CC+set}" = set; then
2924 echo $ECHO_N "(cached) $ECHO_C" >&6
2925 else
2926 if test -n "$CC"; then
2927 ac_cv_prog_CC="$CC" # Let the user override the test.
2928 else
2929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2930 for as_dir in $PATH
2932 IFS=$as_save_IFS
2933 test -z "$as_dir" && as_dir=.
2934 for ac_exec_ext in '' $ac_executable_extensions; do
2935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2936 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2938 break 2
2940 done
2941 done
2942 IFS=$as_save_IFS
2946 CC=$ac_cv_prog_CC
2947 if test -n "$CC"; then
2948 { echo "$as_me:$LINENO: result: $CC" >&5
2949 echo "${ECHO_T}$CC" >&6; }
2950 else
2951 { echo "$as_me:$LINENO: result: no" >&5
2952 echo "${ECHO_T}no" >&6; }
2956 test -n "$CC" && break
2957 done
2959 if test -z "$CC"; then
2960 ac_ct_CC=$CC
2961 for ac_prog in cl.exe
2963 # Extract the first word of "$ac_prog", so it can be a program name with args.
2964 set dummy $ac_prog; ac_word=$2
2965 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2967 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2968 echo $ECHO_N "(cached) $ECHO_C" >&6
2969 else
2970 if test -n "$ac_ct_CC"; then
2971 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2972 else
2973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974 for as_dir in $PATH
2976 IFS=$as_save_IFS
2977 test -z "$as_dir" && as_dir=.
2978 for ac_exec_ext in '' $ac_executable_extensions; do
2979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2980 ac_cv_prog_ac_ct_CC="$ac_prog"
2981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2982 break 2
2984 done
2985 done
2986 IFS=$as_save_IFS
2990 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2991 if test -n "$ac_ct_CC"; then
2992 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2993 echo "${ECHO_T}$ac_ct_CC" >&6; }
2994 else
2995 { echo "$as_me:$LINENO: result: no" >&5
2996 echo "${ECHO_T}no" >&6; }
3000 test -n "$ac_ct_CC" && break
3001 done
3003 if test "x$ac_ct_CC" = x; then
3004 CC=""
3005 else
3006 case $cross_compiling:$ac_tool_warned in
3007 yes:)
3008 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3009 whose name does not start with the host triplet. If you think this
3010 configuration is useful to you, please write to autoconf@gnu.org." >&5
3011 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3012 whose name does not start with the host triplet. If you think this
3013 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3014 ac_tool_warned=yes ;;
3015 esac
3016 CC=$ac_ct_CC
3023 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3024 See \`config.log' for more details." >&5
3025 echo "$as_me: error: no acceptable C compiler found in \$PATH
3026 See \`config.log' for more details." >&2;}
3027 { (exit 1); exit 1; }; }
3029 # Provide some information about the compiler.
3030 echo "$as_me:$LINENO: checking for C compiler version" >&5
3031 ac_compiler=`set X $ac_compile; echo $2`
3032 { (ac_try="$ac_compiler --version >&5"
3033 case "(($ac_try" in
3034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3035 *) ac_try_echo=$ac_try;;
3036 esac
3037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3038 (eval "$ac_compiler --version >&5") 2>&5
3039 ac_status=$?
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); }
3042 { (ac_try="$ac_compiler -v >&5"
3043 case "(($ac_try" in
3044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045 *) ac_try_echo=$ac_try;;
3046 esac
3047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3048 (eval "$ac_compiler -v >&5") 2>&5
3049 ac_status=$?
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); }
3052 { (ac_try="$ac_compiler -V >&5"
3053 case "(($ac_try" in
3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3056 esac
3057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3058 (eval "$ac_compiler -V >&5") 2>&5
3059 ac_status=$?
3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061 (exit $ac_status); }
3063 cat >conftest.$ac_ext <<_ACEOF
3064 /* confdefs.h. */
3065 _ACEOF
3066 cat confdefs.h >>conftest.$ac_ext
3067 cat >>conftest.$ac_ext <<_ACEOF
3068 /* end confdefs.h. */
3071 main ()
3075 return 0;
3077 _ACEOF
3078 ac_clean_files_save=$ac_clean_files
3079 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3080 # Try to create an executable without -o first, disregard a.out.
3081 # It will help us diagnose broken compilers, and finding out an intuition
3082 # of exeext.
3083 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3084 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3085 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3087 # List of possible output files, starting from the most likely.
3088 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3089 # only as a last resort. b.out is created by i960 compilers.
3090 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3092 # The IRIX 6 linker writes into existing files which may not be
3093 # executable, retaining their permissions. Remove them first so a
3094 # subsequent execution test works.
3095 ac_rmfiles=
3096 for ac_file in $ac_files
3098 case $ac_file in
3099 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3100 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3101 esac
3102 done
3103 rm -f $ac_rmfiles
3105 if { (ac_try="$ac_link_default"
3106 case "(($ac_try" in
3107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108 *) ac_try_echo=$ac_try;;
3109 esac
3110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3111 (eval "$ac_link_default") 2>&5
3112 ac_status=$?
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); }; then
3115 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3116 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3117 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3118 # so that the user can short-circuit this test for compilers unknown to
3119 # Autoconf.
3120 for ac_file in $ac_files ''
3122 test -f "$ac_file" || continue
3123 case $ac_file in
3124 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3126 [ab].out )
3127 # We found the default executable, but exeext='' is most
3128 # certainly right.
3129 break;;
3130 *.* )
3131 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3132 then :; else
3133 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3135 # We set ac_cv_exeext here because the later test for it is not
3136 # safe: cross compilers may not add the suffix if given an `-o'
3137 # argument, so we may need to know it at that point already.
3138 # Even if this section looks crufty: it has the advantage of
3139 # actually working.
3140 break;;
3142 break;;
3143 esac
3144 done
3145 test "$ac_cv_exeext" = no && ac_cv_exeext=
3147 else
3148 ac_file=''
3151 { echo "$as_me:$LINENO: result: $ac_file" >&5
3152 echo "${ECHO_T}$ac_file" >&6; }
3153 if test -z "$ac_file"; then
3154 echo "$as_me: failed program was:" >&5
3155 sed 's/^/| /' conftest.$ac_ext >&5
3157 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3158 See \`config.log' for more details." >&5
3159 echo "$as_me: error: C compiler cannot create executables
3160 See \`config.log' for more details." >&2;}
3161 { (exit 77); exit 77; }; }
3164 ac_exeext=$ac_cv_exeext
3166 # Check that the compiler produces executables we can run. If not, either
3167 # the compiler is broken, or we cross compile.
3168 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3169 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3170 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3171 # If not cross compiling, check that we can run a simple program.
3172 if test "$cross_compiling" != yes; then
3173 if { ac_try='./$ac_file'
3174 { (case "(($ac_try" in
3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176 *) ac_try_echo=$ac_try;;
3177 esac
3178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3179 (eval "$ac_try") 2>&5
3180 ac_status=$?
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); }; }; then
3183 cross_compiling=no
3184 else
3185 if test "$cross_compiling" = maybe; then
3186 cross_compiling=yes
3187 else
3188 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3189 If you meant to cross compile, use \`--host'.
3190 See \`config.log' for more details." >&5
3191 echo "$as_me: error: cannot run C compiled programs.
3192 If you meant to cross compile, use \`--host'.
3193 See \`config.log' for more details." >&2;}
3194 { (exit 1); exit 1; }; }
3198 { echo "$as_me:$LINENO: result: yes" >&5
3199 echo "${ECHO_T}yes" >&6; }
3201 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3202 ac_clean_files=$ac_clean_files_save
3203 # Check that the compiler produces executables we can run. If not, either
3204 # the compiler is broken, or we cross compile.
3205 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3206 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3207 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3208 echo "${ECHO_T}$cross_compiling" >&6; }
3210 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3211 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3212 if { (ac_try="$ac_link"
3213 case "(($ac_try" in
3214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3215 *) ac_try_echo=$ac_try;;
3216 esac
3217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3218 (eval "$ac_link") 2>&5
3219 ac_status=$?
3220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221 (exit $ac_status); }; then
3222 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3223 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3224 # work properly (i.e., refer to `conftest.exe'), while it won't with
3225 # `rm'.
3226 for ac_file in conftest.exe conftest conftest.*; do
3227 test -f "$ac_file" || continue
3228 case $ac_file in
3229 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3230 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3231 break;;
3232 * ) break;;
3233 esac
3234 done
3235 else
3236 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3237 See \`config.log' for more details." >&5
3238 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3239 See \`config.log' for more details." >&2;}
3240 { (exit 1); exit 1; }; }
3243 rm -f conftest$ac_cv_exeext
3244 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3245 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3247 rm -f conftest.$ac_ext
3248 EXEEXT=$ac_cv_exeext
3249 ac_exeext=$EXEEXT
3250 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3251 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3252 if test "${ac_cv_objext+set}" = set; then
3253 echo $ECHO_N "(cached) $ECHO_C" >&6
3254 else
3255 cat >conftest.$ac_ext <<_ACEOF
3256 /* confdefs.h. */
3257 _ACEOF
3258 cat confdefs.h >>conftest.$ac_ext
3259 cat >>conftest.$ac_ext <<_ACEOF
3260 /* end confdefs.h. */
3263 main ()
3267 return 0;
3269 _ACEOF
3270 rm -f conftest.o conftest.obj
3271 if { (ac_try="$ac_compile"
3272 case "(($ac_try" in
3273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274 *) ac_try_echo=$ac_try;;
3275 esac
3276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3277 (eval "$ac_compile") 2>&5
3278 ac_status=$?
3279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280 (exit $ac_status); }; then
3281 for ac_file in conftest.o conftest.obj conftest.*; do
3282 test -f "$ac_file" || continue;
3283 case $ac_file in
3284 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3285 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3286 break;;
3287 esac
3288 done
3289 else
3290 echo "$as_me: failed program was:" >&5
3291 sed 's/^/| /' conftest.$ac_ext >&5
3293 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3294 See \`config.log' for more details." >&5
3295 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3296 See \`config.log' for more details." >&2;}
3297 { (exit 1); exit 1; }; }
3300 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3302 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3303 echo "${ECHO_T}$ac_cv_objext" >&6; }
3304 OBJEXT=$ac_cv_objext
3305 ac_objext=$OBJEXT
3306 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3307 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3308 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3309 echo $ECHO_N "(cached) $ECHO_C" >&6
3310 else
3311 cat >conftest.$ac_ext <<_ACEOF
3312 /* confdefs.h. */
3313 _ACEOF
3314 cat confdefs.h >>conftest.$ac_ext
3315 cat >>conftest.$ac_ext <<_ACEOF
3316 /* end confdefs.h. */
3319 main ()
3321 #ifndef __GNUC__
3322 choke me
3323 #endif
3326 return 0;
3328 _ACEOF
3329 rm -f conftest.$ac_objext
3330 if { (ac_try="$ac_compile"
3331 case "(($ac_try" in
3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333 *) ac_try_echo=$ac_try;;
3334 esac
3335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3336 (eval "$ac_compile") 2>conftest.er1
3337 ac_status=$?
3338 grep -v '^ *+' conftest.er1 >conftest.err
3339 rm -f conftest.er1
3340 cat conftest.err >&5
3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); } && {
3343 test -z "$ac_c_werror_flag" ||
3344 test ! -s conftest.err
3345 } && test -s conftest.$ac_objext; then
3346 ac_compiler_gnu=yes
3347 else
3348 echo "$as_me: failed program was:" >&5
3349 sed 's/^/| /' conftest.$ac_ext >&5
3351 ac_compiler_gnu=no
3354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3355 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3358 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3359 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3360 GCC=`test $ac_compiler_gnu = yes && echo yes`
3361 ac_test_CFLAGS=${CFLAGS+set}
3362 ac_save_CFLAGS=$CFLAGS
3363 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3364 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3365 if test "${ac_cv_prog_cc_g+set}" = set; then
3366 echo $ECHO_N "(cached) $ECHO_C" >&6
3367 else
3368 ac_save_c_werror_flag=$ac_c_werror_flag
3369 ac_c_werror_flag=yes
3370 ac_cv_prog_cc_g=no
3371 CFLAGS="-g"
3372 cat >conftest.$ac_ext <<_ACEOF
3373 /* confdefs.h. */
3374 _ACEOF
3375 cat confdefs.h >>conftest.$ac_ext
3376 cat >>conftest.$ac_ext <<_ACEOF
3377 /* end confdefs.h. */
3380 main ()
3384 return 0;
3386 _ACEOF
3387 rm -f conftest.$ac_objext
3388 if { (ac_try="$ac_compile"
3389 case "(($ac_try" in
3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3392 esac
3393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3394 (eval "$ac_compile") 2>conftest.er1
3395 ac_status=$?
3396 grep -v '^ *+' conftest.er1 >conftest.err
3397 rm -f conftest.er1
3398 cat conftest.err >&5
3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400 (exit $ac_status); } && {
3401 test -z "$ac_c_werror_flag" ||
3402 test ! -s conftest.err
3403 } && test -s conftest.$ac_objext; then
3404 ac_cv_prog_cc_g=yes
3405 else
3406 echo "$as_me: failed program was:" >&5
3407 sed 's/^/| /' conftest.$ac_ext >&5
3409 CFLAGS=""
3410 cat >conftest.$ac_ext <<_ACEOF
3411 /* confdefs.h. */
3412 _ACEOF
3413 cat confdefs.h >>conftest.$ac_ext
3414 cat >>conftest.$ac_ext <<_ACEOF
3415 /* end confdefs.h. */
3418 main ()
3422 return 0;
3424 _ACEOF
3425 rm -f conftest.$ac_objext
3426 if { (ac_try="$ac_compile"
3427 case "(($ac_try" in
3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429 *) ac_try_echo=$ac_try;;
3430 esac
3431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3432 (eval "$ac_compile") 2>conftest.er1
3433 ac_status=$?
3434 grep -v '^ *+' conftest.er1 >conftest.err
3435 rm -f conftest.er1
3436 cat conftest.err >&5
3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); } && {
3439 test -z "$ac_c_werror_flag" ||
3440 test ! -s conftest.err
3441 } && test -s conftest.$ac_objext; then
3443 else
3444 echo "$as_me: failed program was:" >&5
3445 sed 's/^/| /' conftest.$ac_ext >&5
3447 ac_c_werror_flag=$ac_save_c_werror_flag
3448 CFLAGS="-g"
3449 cat >conftest.$ac_ext <<_ACEOF
3450 /* confdefs.h. */
3451 _ACEOF
3452 cat confdefs.h >>conftest.$ac_ext
3453 cat >>conftest.$ac_ext <<_ACEOF
3454 /* end confdefs.h. */
3457 main ()
3461 return 0;
3463 _ACEOF
3464 rm -f conftest.$ac_objext
3465 if { (ac_try="$ac_compile"
3466 case "(($ac_try" in
3467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468 *) ac_try_echo=$ac_try;;
3469 esac
3470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3471 (eval "$ac_compile") 2>conftest.er1
3472 ac_status=$?
3473 grep -v '^ *+' conftest.er1 >conftest.err
3474 rm -f conftest.er1
3475 cat conftest.err >&5
3476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477 (exit $ac_status); } && {
3478 test -z "$ac_c_werror_flag" ||
3479 test ! -s conftest.err
3480 } && test -s conftest.$ac_objext; then
3481 ac_cv_prog_cc_g=yes
3482 else
3483 echo "$as_me: failed program was:" >&5
3484 sed 's/^/| /' conftest.$ac_ext >&5
3489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3496 ac_c_werror_flag=$ac_save_c_werror_flag
3498 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3499 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3500 if test "$ac_test_CFLAGS" = set; then
3501 CFLAGS=$ac_save_CFLAGS
3502 elif test $ac_cv_prog_cc_g = yes; then
3503 if test "$GCC" = yes; then
3504 CFLAGS="-g -O2"
3505 else
3506 CFLAGS="-g"
3508 else
3509 if test "$GCC" = yes; then
3510 CFLAGS="-O2"
3511 else
3512 CFLAGS=
3515 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3516 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3517 if test "${ac_cv_prog_cc_c89+set}" = set; then
3518 echo $ECHO_N "(cached) $ECHO_C" >&6
3519 else
3520 ac_cv_prog_cc_c89=no
3521 ac_save_CC=$CC
3522 cat >conftest.$ac_ext <<_ACEOF
3523 /* confdefs.h. */
3524 _ACEOF
3525 cat confdefs.h >>conftest.$ac_ext
3526 cat >>conftest.$ac_ext <<_ACEOF
3527 /* end confdefs.h. */
3528 #include <stdarg.h>
3529 #include <stdio.h>
3530 #include <sys/types.h>
3531 #include <sys/stat.h>
3532 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3533 struct buf { int x; };
3534 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3535 static char *e (p, i)
3536 char **p;
3537 int i;
3539 return p[i];
3541 static char *f (char * (*g) (char **, int), char **p, ...)
3543 char *s;
3544 va_list v;
3545 va_start (v,p);
3546 s = g (p, va_arg (v,int));
3547 va_end (v);
3548 return s;
3551 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3552 function prototypes and stuff, but not '\xHH' hex character constants.
3553 These don't provoke an error unfortunately, instead are silently treated
3554 as 'x'. The following induces an error, until -std is added to get
3555 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3556 array size at least. It's necessary to write '\x00'==0 to get something
3557 that's true only with -std. */
3558 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3560 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3561 inside strings and character constants. */
3562 #define FOO(x) 'x'
3563 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3565 int test (int i, double x);
3566 struct s1 {int (*f) (int a);};
3567 struct s2 {int (*f) (double a);};
3568 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3569 int argc;
3570 char **argv;
3572 main ()
3574 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3576 return 0;
3578 _ACEOF
3579 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3580 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3582 CC="$ac_save_CC $ac_arg"
3583 rm -f conftest.$ac_objext
3584 if { (ac_try="$ac_compile"
3585 case "(($ac_try" in
3586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3587 *) ac_try_echo=$ac_try;;
3588 esac
3589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3590 (eval "$ac_compile") 2>conftest.er1
3591 ac_status=$?
3592 grep -v '^ *+' conftest.er1 >conftest.err
3593 rm -f conftest.er1
3594 cat conftest.err >&5
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); } && {
3597 test -z "$ac_c_werror_flag" ||
3598 test ! -s conftest.err
3599 } && test -s conftest.$ac_objext; then
3600 ac_cv_prog_cc_c89=$ac_arg
3601 else
3602 echo "$as_me: failed program was:" >&5
3603 sed 's/^/| /' conftest.$ac_ext >&5
3608 rm -f core conftest.err conftest.$ac_objext
3609 test "x$ac_cv_prog_cc_c89" != "xno" && break
3610 done
3611 rm -f conftest.$ac_ext
3612 CC=$ac_save_CC
3615 # AC_CACHE_VAL
3616 case "x$ac_cv_prog_cc_c89" in
3618 { echo "$as_me:$LINENO: result: none needed" >&5
3619 echo "${ECHO_T}none needed" >&6; } ;;
3620 xno)
3621 { echo "$as_me:$LINENO: result: unsupported" >&5
3622 echo "${ECHO_T}unsupported" >&6; } ;;
3624 CC="$CC $ac_cv_prog_cc_c89"
3625 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3626 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3627 esac
3630 ac_ext=c
3631 ac_cpp='$CPP $CPPFLAGS'
3632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3637 # On Suns, sometimes $CPP names a directory.
3638 if test -n "$CPP" && test -d "$CPP"; then
3639 CPP=
3642 ## If not using gcc, and on Solaris, and no CPP specified, see if
3643 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3644 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3645 test x"$CPP" = x; then
3646 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3647 echo $ECHO_N "checking whether we are using a Sun C compiler... $ECHO_C" >&6; }
3649 if test "${emacs_cv_sunpro_c+set}" = set; then
3650 echo $ECHO_N "(cached) $ECHO_C" >&6
3651 else
3652 cat >conftest.$ac_ext <<_ACEOF
3653 /* confdefs.h. */
3654 _ACEOF
3655 cat confdefs.h >>conftest.$ac_ext
3656 cat >>conftest.$ac_ext <<_ACEOF
3657 /* end confdefs.h. */
3660 main ()
3662 #ifndef __SUNPRO_C
3663 fail;
3664 #endif
3667 return 0;
3669 _ACEOF
3670 rm -f conftest.$ac_objext conftest$ac_exeext
3671 if { (ac_try="$ac_link"
3672 case "(($ac_try" in
3673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3674 *) ac_try_echo=$ac_try;;
3675 esac
3676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3677 (eval "$ac_link") 2>conftest.er1
3678 ac_status=$?
3679 grep -v '^ *+' conftest.er1 >conftest.err
3680 rm -f conftest.er1
3681 cat conftest.err >&5
3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683 (exit $ac_status); } && {
3684 test -z "$ac_c_werror_flag" ||
3685 test ! -s conftest.err
3686 } && test -s conftest$ac_exeext &&
3687 $as_test_x conftest$ac_exeext; then
3688 emacs_cv_sunpro_c=yes
3689 else
3690 echo "$as_me: failed program was:" >&5
3691 sed 's/^/| /' conftest.$ac_ext >&5
3693 emacs_cv_sunpro_c=no
3696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3697 conftest$ac_exeext conftest.$ac_ext
3700 { echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
3701 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3703 if test x"$emacs_cv_sunpro_c" = xyes; then
3704 NON_GNU_CPP="$CC -E -Xs"
3708 #### Some systems specify a CPP to use unless we are using GCC.
3709 #### Now that we know whether we are using GCC, we can decide whether
3710 #### to use that one.
3711 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3712 then
3713 CPP="$NON_GNU_CPP"
3716 #### Some systems specify a CC to use unless we are using GCC.
3717 #### Now that we know whether we are using GCC, we can decide whether
3718 #### to use that one.
3719 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3720 test x$cc_specified != xyes
3721 then
3722 CC="$NON_GNU_CC"
3725 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3726 then
3727 CC="$CC $GCC_TEST_OPTIONS"
3730 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3731 then
3732 CC="$CC $NON_GCC_TEST_OPTIONS"
3736 cat >>confdefs.h <<\_ACEOF
3737 #define _GNU_SOURCE 1
3738 _ACEOF
3741 ac_ext=c
3742 ac_cpp='$CPP $CPPFLAGS'
3743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3746 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3747 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3748 # On Suns, sometimes $CPP names a directory.
3749 if test -n "$CPP" && test -d "$CPP"; then
3750 CPP=
3752 if test -z "$CPP"; then
3753 if test "${ac_cv_prog_CPP+set}" = set; then
3754 echo $ECHO_N "(cached) $ECHO_C" >&6
3755 else
3756 # Double quotes because CPP needs to be expanded
3757 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3759 ac_preproc_ok=false
3760 for ac_c_preproc_warn_flag in '' yes
3762 # Use a header file that comes with gcc, so configuring glibc
3763 # with a fresh cross-compiler works.
3764 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3765 # <limits.h> exists even on freestanding compilers.
3766 # On the NeXT, cc -E runs the code through the compiler's parser,
3767 # not just through cpp. "Syntax error" is here to catch this case.
3768 cat >conftest.$ac_ext <<_ACEOF
3769 /* confdefs.h. */
3770 _ACEOF
3771 cat confdefs.h >>conftest.$ac_ext
3772 cat >>conftest.$ac_ext <<_ACEOF
3773 /* end confdefs.h. */
3774 #ifdef __STDC__
3775 # include <limits.h>
3776 #else
3777 # include <assert.h>
3778 #endif
3779 Syntax error
3780 _ACEOF
3781 if { (ac_try="$ac_cpp conftest.$ac_ext"
3782 case "(($ac_try" in
3783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3784 *) ac_try_echo=$ac_try;;
3785 esac
3786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3787 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3788 ac_status=$?
3789 grep -v '^ *+' conftest.er1 >conftest.err
3790 rm -f conftest.er1
3791 cat conftest.err >&5
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); } >/dev/null && {
3794 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3795 test ! -s conftest.err
3796 }; then
3798 else
3799 echo "$as_me: failed program was:" >&5
3800 sed 's/^/| /' conftest.$ac_ext >&5
3802 # Broken: fails on valid input.
3803 continue
3806 rm -f conftest.err conftest.$ac_ext
3808 # OK, works on sane cases. Now check whether nonexistent headers
3809 # can be detected and how.
3810 cat >conftest.$ac_ext <<_ACEOF
3811 /* confdefs.h. */
3812 _ACEOF
3813 cat confdefs.h >>conftest.$ac_ext
3814 cat >>conftest.$ac_ext <<_ACEOF
3815 /* end confdefs.h. */
3816 #include <ac_nonexistent.h>
3817 _ACEOF
3818 if { (ac_try="$ac_cpp conftest.$ac_ext"
3819 case "(($ac_try" in
3820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3821 *) ac_try_echo=$ac_try;;
3822 esac
3823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3824 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3825 ac_status=$?
3826 grep -v '^ *+' conftest.er1 >conftest.err
3827 rm -f conftest.er1
3828 cat conftest.err >&5
3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); } >/dev/null && {
3831 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3832 test ! -s conftest.err
3833 }; then
3834 # Broken: success on invalid input.
3835 continue
3836 else
3837 echo "$as_me: failed program was:" >&5
3838 sed 's/^/| /' conftest.$ac_ext >&5
3840 # Passes both tests.
3841 ac_preproc_ok=:
3842 break
3845 rm -f conftest.err conftest.$ac_ext
3847 done
3848 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3849 rm -f conftest.err conftest.$ac_ext
3850 if $ac_preproc_ok; then
3851 break
3854 done
3855 ac_cv_prog_CPP=$CPP
3858 CPP=$ac_cv_prog_CPP
3859 else
3860 ac_cv_prog_CPP=$CPP
3862 { echo "$as_me:$LINENO: result: $CPP" >&5
3863 echo "${ECHO_T}$CPP" >&6; }
3864 ac_preproc_ok=false
3865 for ac_c_preproc_warn_flag in '' yes
3867 # Use a header file that comes with gcc, so configuring glibc
3868 # with a fresh cross-compiler works.
3869 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3870 # <limits.h> exists even on freestanding compilers.
3871 # On the NeXT, cc -E runs the code through the compiler's parser,
3872 # not just through cpp. "Syntax error" is here to catch this case.
3873 cat >conftest.$ac_ext <<_ACEOF
3874 /* confdefs.h. */
3875 _ACEOF
3876 cat confdefs.h >>conftest.$ac_ext
3877 cat >>conftest.$ac_ext <<_ACEOF
3878 /* end confdefs.h. */
3879 #ifdef __STDC__
3880 # include <limits.h>
3881 #else
3882 # include <assert.h>
3883 #endif
3884 Syntax error
3885 _ACEOF
3886 if { (ac_try="$ac_cpp conftest.$ac_ext"
3887 case "(($ac_try" in
3888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3889 *) ac_try_echo=$ac_try;;
3890 esac
3891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3892 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3893 ac_status=$?
3894 grep -v '^ *+' conftest.er1 >conftest.err
3895 rm -f conftest.er1
3896 cat conftest.err >&5
3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898 (exit $ac_status); } >/dev/null && {
3899 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3900 test ! -s conftest.err
3901 }; then
3903 else
3904 echo "$as_me: failed program was:" >&5
3905 sed 's/^/| /' conftest.$ac_ext >&5
3907 # Broken: fails on valid input.
3908 continue
3911 rm -f conftest.err conftest.$ac_ext
3913 # OK, works on sane cases. Now check whether nonexistent headers
3914 # can be detected and how.
3915 cat >conftest.$ac_ext <<_ACEOF
3916 /* confdefs.h. */
3917 _ACEOF
3918 cat confdefs.h >>conftest.$ac_ext
3919 cat >>conftest.$ac_ext <<_ACEOF
3920 /* end confdefs.h. */
3921 #include <ac_nonexistent.h>
3922 _ACEOF
3923 if { (ac_try="$ac_cpp conftest.$ac_ext"
3924 case "(($ac_try" in
3925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3926 *) ac_try_echo=$ac_try;;
3927 esac
3928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3929 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3930 ac_status=$?
3931 grep -v '^ *+' conftest.er1 >conftest.err
3932 rm -f conftest.er1
3933 cat conftest.err >&5
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); } >/dev/null && {
3936 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3937 test ! -s conftest.err
3938 }; then
3939 # Broken: success on invalid input.
3940 continue
3941 else
3942 echo "$as_me: failed program was:" >&5
3943 sed 's/^/| /' conftest.$ac_ext >&5
3945 # Passes both tests.
3946 ac_preproc_ok=:
3947 break
3950 rm -f conftest.err conftest.$ac_ext
3952 done
3953 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3954 rm -f conftest.err conftest.$ac_ext
3955 if $ac_preproc_ok; then
3957 else
3958 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3959 See \`config.log' for more details." >&5
3960 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3961 See \`config.log' for more details." >&2;}
3962 { (exit 1); exit 1; }; }
3965 ac_ext=c
3966 ac_cpp='$CPP $CPPFLAGS'
3967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3972 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3973 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3974 if test "${ac_cv_path_GREP+set}" = set; then
3975 echo $ECHO_N "(cached) $ECHO_C" >&6
3976 else
3977 # Extract the first word of "grep ggrep" to use in msg output
3978 if test -z "$GREP"; then
3979 set dummy grep ggrep; ac_prog_name=$2
3980 if test "${ac_cv_path_GREP+set}" = set; then
3981 echo $ECHO_N "(cached) $ECHO_C" >&6
3982 else
3983 ac_path_GREP_found=false
3984 # Loop through the user's path and test for each of PROGNAME-LIST
3985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3988 IFS=$as_save_IFS
3989 test -z "$as_dir" && as_dir=.
3990 for ac_prog in grep ggrep; do
3991 for ac_exec_ext in '' $ac_executable_extensions; do
3992 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3993 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3994 # Check for GNU ac_path_GREP and select it if it is found.
3995 # Check for GNU $ac_path_GREP
3996 case `"$ac_path_GREP" --version 2>&1` in
3997 *GNU*)
3998 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4000 ac_count=0
4001 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4002 while :
4004 cat "conftest.in" "conftest.in" >"conftest.tmp"
4005 mv "conftest.tmp" "conftest.in"
4006 cp "conftest.in" "conftest.nl"
4007 echo 'GREP' >> "conftest.nl"
4008 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4009 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4010 ac_count=`expr $ac_count + 1`
4011 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4012 # Best one so far, save it but keep looking for a better one
4013 ac_cv_path_GREP="$ac_path_GREP"
4014 ac_path_GREP_max=$ac_count
4016 # 10*(2^10) chars as input seems more than enough
4017 test $ac_count -gt 10 && break
4018 done
4019 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4020 esac
4023 $ac_path_GREP_found && break 3
4024 done
4025 done
4027 done
4028 IFS=$as_save_IFS
4033 GREP="$ac_cv_path_GREP"
4034 if test -z "$GREP"; then
4035 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4036 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4037 { (exit 1); exit 1; }; }
4040 else
4041 ac_cv_path_GREP=$GREP
4046 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4047 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4048 GREP="$ac_cv_path_GREP"
4051 { echo "$as_me:$LINENO: checking for egrep" >&5
4052 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4053 if test "${ac_cv_path_EGREP+set}" = set; then
4054 echo $ECHO_N "(cached) $ECHO_C" >&6
4055 else
4056 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4057 then ac_cv_path_EGREP="$GREP -E"
4058 else
4059 # Extract the first word of "egrep" to use in msg output
4060 if test -z "$EGREP"; then
4061 set dummy egrep; ac_prog_name=$2
4062 if test "${ac_cv_path_EGREP+set}" = set; then
4063 echo $ECHO_N "(cached) $ECHO_C" >&6
4064 else
4065 ac_path_EGREP_found=false
4066 # Loop through the user's path and test for each of PROGNAME-LIST
4067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4068 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4070 IFS=$as_save_IFS
4071 test -z "$as_dir" && as_dir=.
4072 for ac_prog in egrep; do
4073 for ac_exec_ext in '' $ac_executable_extensions; do
4074 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4075 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4076 # Check for GNU ac_path_EGREP and select it if it is found.
4077 # Check for GNU $ac_path_EGREP
4078 case `"$ac_path_EGREP" --version 2>&1` in
4079 *GNU*)
4080 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4082 ac_count=0
4083 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4084 while :
4086 cat "conftest.in" "conftest.in" >"conftest.tmp"
4087 mv "conftest.tmp" "conftest.in"
4088 cp "conftest.in" "conftest.nl"
4089 echo 'EGREP' >> "conftest.nl"
4090 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4091 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4092 ac_count=`expr $ac_count + 1`
4093 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4094 # Best one so far, save it but keep looking for a better one
4095 ac_cv_path_EGREP="$ac_path_EGREP"
4096 ac_path_EGREP_max=$ac_count
4098 # 10*(2^10) chars as input seems more than enough
4099 test $ac_count -gt 10 && break
4100 done
4101 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4102 esac
4105 $ac_path_EGREP_found && break 3
4106 done
4107 done
4109 done
4110 IFS=$as_save_IFS
4115 EGREP="$ac_cv_path_EGREP"
4116 if test -z "$EGREP"; then
4117 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4118 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4119 { (exit 1); exit 1; }; }
4122 else
4123 ac_cv_path_EGREP=$EGREP
4129 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4130 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4131 EGREP="$ac_cv_path_EGREP"
4135 { echo "$as_me:$LINENO: checking for AIX" >&5
4136 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4137 cat >conftest.$ac_ext <<_ACEOF
4138 /* confdefs.h. */
4139 _ACEOF
4140 cat confdefs.h >>conftest.$ac_ext
4141 cat >>conftest.$ac_ext <<_ACEOF
4142 /* end confdefs.h. */
4143 #ifdef _AIX
4145 #endif
4147 _ACEOF
4148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4149 $EGREP "yes" >/dev/null 2>&1; then
4150 { echo "$as_me:$LINENO: result: yes" >&5
4151 echo "${ECHO_T}yes" >&6; }
4152 cat >>confdefs.h <<\_ACEOF
4153 #define _ALL_SOURCE 1
4154 _ACEOF
4156 else
4157 { echo "$as_me:$LINENO: result: no" >&5
4158 echo "${ECHO_T}no" >&6; }
4160 rm -f conftest*
4163 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4164 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4165 if test "${ac_cv_header_stdc+set}" = set; then
4166 echo $ECHO_N "(cached) $ECHO_C" >&6
4167 else
4168 cat >conftest.$ac_ext <<_ACEOF
4169 /* confdefs.h. */
4170 _ACEOF
4171 cat confdefs.h >>conftest.$ac_ext
4172 cat >>conftest.$ac_ext <<_ACEOF
4173 /* end confdefs.h. */
4174 #include <stdlib.h>
4175 #include <stdarg.h>
4176 #include <string.h>
4177 #include <float.h>
4180 main ()
4184 return 0;
4186 _ACEOF
4187 rm -f conftest.$ac_objext
4188 if { (ac_try="$ac_compile"
4189 case "(($ac_try" in
4190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4191 *) ac_try_echo=$ac_try;;
4192 esac
4193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4194 (eval "$ac_compile") 2>conftest.er1
4195 ac_status=$?
4196 grep -v '^ *+' conftest.er1 >conftest.err
4197 rm -f conftest.er1
4198 cat conftest.err >&5
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); } && {
4201 test -z "$ac_c_werror_flag" ||
4202 test ! -s conftest.err
4203 } && test -s conftest.$ac_objext; then
4204 ac_cv_header_stdc=yes
4205 else
4206 echo "$as_me: failed program was:" >&5
4207 sed 's/^/| /' conftest.$ac_ext >&5
4209 ac_cv_header_stdc=no
4212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4214 if test $ac_cv_header_stdc = yes; then
4215 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4216 cat >conftest.$ac_ext <<_ACEOF
4217 /* confdefs.h. */
4218 _ACEOF
4219 cat confdefs.h >>conftest.$ac_ext
4220 cat >>conftest.$ac_ext <<_ACEOF
4221 /* end confdefs.h. */
4222 #include <string.h>
4224 _ACEOF
4225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4226 $EGREP "memchr" >/dev/null 2>&1; then
4228 else
4229 ac_cv_header_stdc=no
4231 rm -f conftest*
4235 if test $ac_cv_header_stdc = yes; then
4236 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4237 cat >conftest.$ac_ext <<_ACEOF
4238 /* confdefs.h. */
4239 _ACEOF
4240 cat confdefs.h >>conftest.$ac_ext
4241 cat >>conftest.$ac_ext <<_ACEOF
4242 /* end confdefs.h. */
4243 #include <stdlib.h>
4245 _ACEOF
4246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4247 $EGREP "free" >/dev/null 2>&1; then
4249 else
4250 ac_cv_header_stdc=no
4252 rm -f conftest*
4256 if test $ac_cv_header_stdc = yes; then
4257 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4258 if test "$cross_compiling" = yes; then
4260 else
4261 cat >conftest.$ac_ext <<_ACEOF
4262 /* confdefs.h. */
4263 _ACEOF
4264 cat confdefs.h >>conftest.$ac_ext
4265 cat >>conftest.$ac_ext <<_ACEOF
4266 /* end confdefs.h. */
4267 #include <ctype.h>
4268 #include <stdlib.h>
4269 #if ((' ' & 0x0FF) == 0x020)
4270 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4271 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4272 #else
4273 # define ISLOWER(c) \
4274 (('a' <= (c) && (c) <= 'i') \
4275 || ('j' <= (c) && (c) <= 'r') \
4276 || ('s' <= (c) && (c) <= 'z'))
4277 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4278 #endif
4280 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4282 main ()
4284 int i;
4285 for (i = 0; i < 256; i++)
4286 if (XOR (islower (i), ISLOWER (i))
4287 || toupper (i) != TOUPPER (i))
4288 return 2;
4289 return 0;
4291 _ACEOF
4292 rm -f conftest$ac_exeext
4293 if { (ac_try="$ac_link"
4294 case "(($ac_try" in
4295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4296 *) ac_try_echo=$ac_try;;
4297 esac
4298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4299 (eval "$ac_link") 2>&5
4300 ac_status=$?
4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4303 { (case "(($ac_try" in
4304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4305 *) ac_try_echo=$ac_try;;
4306 esac
4307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4308 (eval "$ac_try") 2>&5
4309 ac_status=$?
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); }; }; then
4313 else
4314 echo "$as_me: program exited with status $ac_status" >&5
4315 echo "$as_me: failed program was:" >&5
4316 sed 's/^/| /' conftest.$ac_ext >&5
4318 ( exit $ac_status )
4319 ac_cv_header_stdc=no
4321 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4327 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4328 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4329 if test $ac_cv_header_stdc = yes; then
4331 cat >>confdefs.h <<\_ACEOF
4332 #define STDC_HEADERS 1
4333 _ACEOF
4337 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4347 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4348 inttypes.h stdint.h unistd.h
4350 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4351 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4354 echo $ECHO_N "(cached) $ECHO_C" >&6
4355 else
4356 cat >conftest.$ac_ext <<_ACEOF
4357 /* confdefs.h. */
4358 _ACEOF
4359 cat confdefs.h >>conftest.$ac_ext
4360 cat >>conftest.$ac_ext <<_ACEOF
4361 /* end confdefs.h. */
4362 $ac_includes_default
4364 #include <$ac_header>
4365 _ACEOF
4366 rm -f conftest.$ac_objext
4367 if { (ac_try="$ac_compile"
4368 case "(($ac_try" in
4369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4370 *) ac_try_echo=$ac_try;;
4371 esac
4372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4373 (eval "$ac_compile") 2>conftest.er1
4374 ac_status=$?
4375 grep -v '^ *+' conftest.er1 >conftest.err
4376 rm -f conftest.er1
4377 cat conftest.err >&5
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); } && {
4380 test -z "$ac_c_werror_flag" ||
4381 test ! -s conftest.err
4382 } && test -s conftest.$ac_objext; then
4383 eval "$as_ac_Header=yes"
4384 else
4385 echo "$as_me: failed program was:" >&5
4386 sed 's/^/| /' conftest.$ac_ext >&5
4388 eval "$as_ac_Header=no"
4391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4393 ac_res=`eval echo '${'$as_ac_Header'}'`
4394 { echo "$as_me:$LINENO: result: $ac_res" >&5
4395 echo "${ECHO_T}$ac_res" >&6; }
4396 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4397 cat >>confdefs.h <<_ACEOF
4398 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4399 _ACEOF
4403 done
4406 if test "${ac_cv_header_minix_config_h+set}" = set; then
4407 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4408 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4409 if test "${ac_cv_header_minix_config_h+set}" = set; then
4410 echo $ECHO_N "(cached) $ECHO_C" >&6
4412 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4413 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4414 else
4415 # Is the header compilable?
4416 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4417 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4418 cat >conftest.$ac_ext <<_ACEOF
4419 /* confdefs.h. */
4420 _ACEOF
4421 cat confdefs.h >>conftest.$ac_ext
4422 cat >>conftest.$ac_ext <<_ACEOF
4423 /* end confdefs.h. */
4424 $ac_includes_default
4425 #include <minix/config.h>
4426 _ACEOF
4427 rm -f conftest.$ac_objext
4428 if { (ac_try="$ac_compile"
4429 case "(($ac_try" in
4430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4431 *) ac_try_echo=$ac_try;;
4432 esac
4433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4434 (eval "$ac_compile") 2>conftest.er1
4435 ac_status=$?
4436 grep -v '^ *+' conftest.er1 >conftest.err
4437 rm -f conftest.er1
4438 cat conftest.err >&5
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); } && {
4441 test -z "$ac_c_werror_flag" ||
4442 test ! -s conftest.err
4443 } && test -s conftest.$ac_objext; then
4444 ac_header_compiler=yes
4445 else
4446 echo "$as_me: failed program was:" >&5
4447 sed 's/^/| /' conftest.$ac_ext >&5
4449 ac_header_compiler=no
4452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4453 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4454 echo "${ECHO_T}$ac_header_compiler" >&6; }
4456 # Is the header present?
4457 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4458 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4459 cat >conftest.$ac_ext <<_ACEOF
4460 /* confdefs.h. */
4461 _ACEOF
4462 cat confdefs.h >>conftest.$ac_ext
4463 cat >>conftest.$ac_ext <<_ACEOF
4464 /* end confdefs.h. */
4465 #include <minix/config.h>
4466 _ACEOF
4467 if { (ac_try="$ac_cpp conftest.$ac_ext"
4468 case "(($ac_try" in
4469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4470 *) ac_try_echo=$ac_try;;
4471 esac
4472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4473 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4474 ac_status=$?
4475 grep -v '^ *+' conftest.er1 >conftest.err
4476 rm -f conftest.er1
4477 cat conftest.err >&5
4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); } >/dev/null && {
4480 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4481 test ! -s conftest.err
4482 }; then
4483 ac_header_preproc=yes
4484 else
4485 echo "$as_me: failed program was:" >&5
4486 sed 's/^/| /' conftest.$ac_ext >&5
4488 ac_header_preproc=no
4491 rm -f conftest.err conftest.$ac_ext
4492 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4493 echo "${ECHO_T}$ac_header_preproc" >&6; }
4495 # So? What about this header?
4496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4497 yes:no: )
4498 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4499 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4500 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4501 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4502 ac_header_preproc=yes
4504 no:yes:* )
4505 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4506 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4507 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4508 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4509 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4510 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4511 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4512 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4513 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4514 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4515 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4516 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4519 esac
4520 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4521 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4522 if test "${ac_cv_header_minix_config_h+set}" = set; then
4523 echo $ECHO_N "(cached) $ECHO_C" >&6
4524 else
4525 ac_cv_header_minix_config_h=$ac_header_preproc
4527 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4528 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4531 if test $ac_cv_header_minix_config_h = yes; then
4532 MINIX=yes
4533 else
4534 MINIX=
4538 if test "$MINIX" = yes; then
4540 cat >>confdefs.h <<\_ACEOF
4541 #define _POSIX_SOURCE 1
4542 _ACEOF
4545 cat >>confdefs.h <<\_ACEOF
4546 #define _POSIX_1_SOURCE 2
4547 _ACEOF
4550 cat >>confdefs.h <<\_ACEOF
4551 #define _MINIX 1
4552 _ACEOF
4566 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4567 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4568 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4569 echo $ECHO_N "(cached) $ECHO_C" >&6
4570 else
4571 cat >conftest.$ac_ext <<_ACEOF
4572 /* confdefs.h. */
4573 _ACEOF
4574 cat confdefs.h >>conftest.$ac_ext
4575 cat >>conftest.$ac_ext <<_ACEOF
4576 /* end confdefs.h. */
4578 # define __EXTENSIONS__ 1
4579 $ac_includes_default
4581 main ()
4585 return 0;
4587 _ACEOF
4588 rm -f conftest.$ac_objext
4589 if { (ac_try="$ac_compile"
4590 case "(($ac_try" in
4591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4592 *) ac_try_echo=$ac_try;;
4593 esac
4594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4595 (eval "$ac_compile") 2>conftest.er1
4596 ac_status=$?
4597 grep -v '^ *+' conftest.er1 >conftest.err
4598 rm -f conftest.er1
4599 cat conftest.err >&5
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); } && {
4602 test -z "$ac_c_werror_flag" ||
4603 test ! -s conftest.err
4604 } && test -s conftest.$ac_objext; then
4605 ac_cv_safe_to_define___extensions__=yes
4606 else
4607 echo "$as_me: failed program was:" >&5
4608 sed 's/^/| /' conftest.$ac_ext >&5
4610 ac_cv_safe_to_define___extensions__=no
4613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4615 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4616 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4617 test $ac_cv_safe_to_define___extensions__ = yes &&
4618 cat >>confdefs.h <<\_ACEOF
4619 #define __EXTENSIONS__ 1
4620 _ACEOF
4622 cat >>confdefs.h <<\_ACEOF
4623 #define _POSIX_PTHREAD_SEMANTICS 1
4624 _ACEOF
4626 cat >>confdefs.h <<\_ACEOF
4627 #define _TANDEM_SOURCE 1
4628 _ACEOF
4632 ### Use -Wno-pointer-sign if the compiler supports it
4633 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4634 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4635 SAVE_CFLAGS="$CFLAGS"
4636 CFLAGS="$CFLAGS -Wno-pointer-sign"
4637 cat >conftest.$ac_ext <<_ACEOF
4638 /* confdefs.h. */
4639 _ACEOF
4640 cat confdefs.h >>conftest.$ac_ext
4641 cat >>conftest.$ac_ext <<_ACEOF
4642 /* end confdefs.h. */
4645 main ()
4649 return 0;
4651 _ACEOF
4652 rm -f conftest.$ac_objext
4653 if { (ac_try="$ac_compile"
4654 case "(($ac_try" in
4655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4656 *) ac_try_echo=$ac_try;;
4657 esac
4658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4659 (eval "$ac_compile") 2>conftest.er1
4660 ac_status=$?
4661 grep -v '^ *+' conftest.er1 >conftest.err
4662 rm -f conftest.er1
4663 cat conftest.err >&5
4664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); } && {
4666 test -z "$ac_c_werror_flag" ||
4667 test ! -s conftest.err
4668 } && test -s conftest.$ac_objext; then
4669 has_option=yes
4670 else
4671 echo "$as_me: failed program was:" >&5
4672 sed 's/^/| /' conftest.$ac_ext >&5
4674 has_option=no
4677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4678 if test $has_option = yes; then
4679 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4681 { echo "$as_me:$LINENO: result: $has_option" >&5
4682 echo "${ECHO_T}$has_option" >&6; }
4683 CFLAGS="$SAVE_CFLAGS"
4684 unset has_option
4685 unset SAVE_CFLAGS
4687 #### Some other nice autoconf tests.
4689 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4690 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4691 LN_S=$as_ln_s
4692 if test "$LN_S" = "ln -s"; then
4693 { echo "$as_me:$LINENO: result: yes" >&5
4694 echo "${ECHO_T}yes" >&6; }
4695 else
4696 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4697 echo "${ECHO_T}no, using $LN_S" >&6; }
4700 ac_ext=c
4701 ac_cpp='$CPP $CPPFLAGS'
4702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4705 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4706 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4707 # On Suns, sometimes $CPP names a directory.
4708 if test -n "$CPP" && test -d "$CPP"; then
4709 CPP=
4711 if test -z "$CPP"; then
4712 if test "${ac_cv_prog_CPP+set}" = set; then
4713 echo $ECHO_N "(cached) $ECHO_C" >&6
4714 else
4715 # Double quotes because CPP needs to be expanded
4716 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4718 ac_preproc_ok=false
4719 for ac_c_preproc_warn_flag in '' yes
4721 # Use a header file that comes with gcc, so configuring glibc
4722 # with a fresh cross-compiler works.
4723 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4724 # <limits.h> exists even on freestanding compilers.
4725 # On the NeXT, cc -E runs the code through the compiler's parser,
4726 # not just through cpp. "Syntax error" is here to catch this case.
4727 cat >conftest.$ac_ext <<_ACEOF
4728 /* confdefs.h. */
4729 _ACEOF
4730 cat confdefs.h >>conftest.$ac_ext
4731 cat >>conftest.$ac_ext <<_ACEOF
4732 /* end confdefs.h. */
4733 #ifdef __STDC__
4734 # include <limits.h>
4735 #else
4736 # include <assert.h>
4737 #endif
4738 Syntax error
4739 _ACEOF
4740 if { (ac_try="$ac_cpp conftest.$ac_ext"
4741 case "(($ac_try" in
4742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4743 *) ac_try_echo=$ac_try;;
4744 esac
4745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4747 ac_status=$?
4748 grep -v '^ *+' conftest.er1 >conftest.err
4749 rm -f conftest.er1
4750 cat conftest.err >&5
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); } >/dev/null && {
4753 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4754 test ! -s conftest.err
4755 }; then
4757 else
4758 echo "$as_me: failed program was:" >&5
4759 sed 's/^/| /' conftest.$ac_ext >&5
4761 # Broken: fails on valid input.
4762 continue
4765 rm -f conftest.err conftest.$ac_ext
4767 # OK, works on sane cases. Now check whether nonexistent headers
4768 # can be detected and how.
4769 cat >conftest.$ac_ext <<_ACEOF
4770 /* confdefs.h. */
4771 _ACEOF
4772 cat confdefs.h >>conftest.$ac_ext
4773 cat >>conftest.$ac_ext <<_ACEOF
4774 /* end confdefs.h. */
4775 #include <ac_nonexistent.h>
4776 _ACEOF
4777 if { (ac_try="$ac_cpp conftest.$ac_ext"
4778 case "(($ac_try" in
4779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4780 *) ac_try_echo=$ac_try;;
4781 esac
4782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4783 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4784 ac_status=$?
4785 grep -v '^ *+' conftest.er1 >conftest.err
4786 rm -f conftest.er1
4787 cat conftest.err >&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); } >/dev/null && {
4790 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4791 test ! -s conftest.err
4792 }; then
4793 # Broken: success on invalid input.
4794 continue
4795 else
4796 echo "$as_me: failed program was:" >&5
4797 sed 's/^/| /' conftest.$ac_ext >&5
4799 # Passes both tests.
4800 ac_preproc_ok=:
4801 break
4804 rm -f conftest.err conftest.$ac_ext
4806 done
4807 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4808 rm -f conftest.err conftest.$ac_ext
4809 if $ac_preproc_ok; then
4810 break
4813 done
4814 ac_cv_prog_CPP=$CPP
4817 CPP=$ac_cv_prog_CPP
4818 else
4819 ac_cv_prog_CPP=$CPP
4821 { echo "$as_me:$LINENO: result: $CPP" >&5
4822 echo "${ECHO_T}$CPP" >&6; }
4823 ac_preproc_ok=false
4824 for ac_c_preproc_warn_flag in '' yes
4826 # Use a header file that comes with gcc, so configuring glibc
4827 # with a fresh cross-compiler works.
4828 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4829 # <limits.h> exists even on freestanding compilers.
4830 # On the NeXT, cc -E runs the code through the compiler's parser,
4831 # not just through cpp. "Syntax error" is here to catch this case.
4832 cat >conftest.$ac_ext <<_ACEOF
4833 /* confdefs.h. */
4834 _ACEOF
4835 cat confdefs.h >>conftest.$ac_ext
4836 cat >>conftest.$ac_ext <<_ACEOF
4837 /* end confdefs.h. */
4838 #ifdef __STDC__
4839 # include <limits.h>
4840 #else
4841 # include <assert.h>
4842 #endif
4843 Syntax error
4844 _ACEOF
4845 if { (ac_try="$ac_cpp conftest.$ac_ext"
4846 case "(($ac_try" in
4847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4848 *) ac_try_echo=$ac_try;;
4849 esac
4850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4852 ac_status=$?
4853 grep -v '^ *+' conftest.er1 >conftest.err
4854 rm -f conftest.er1
4855 cat conftest.err >&5
4856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857 (exit $ac_status); } >/dev/null && {
4858 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4859 test ! -s conftest.err
4860 }; then
4862 else
4863 echo "$as_me: failed program was:" >&5
4864 sed 's/^/| /' conftest.$ac_ext >&5
4866 # Broken: fails on valid input.
4867 continue
4870 rm -f conftest.err conftest.$ac_ext
4872 # OK, works on sane cases. Now check whether nonexistent headers
4873 # can be detected and how.
4874 cat >conftest.$ac_ext <<_ACEOF
4875 /* confdefs.h. */
4876 _ACEOF
4877 cat confdefs.h >>conftest.$ac_ext
4878 cat >>conftest.$ac_ext <<_ACEOF
4879 /* end confdefs.h. */
4880 #include <ac_nonexistent.h>
4881 _ACEOF
4882 if { (ac_try="$ac_cpp conftest.$ac_ext"
4883 case "(($ac_try" in
4884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4885 *) ac_try_echo=$ac_try;;
4886 esac
4887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4889 ac_status=$?
4890 grep -v '^ *+' conftest.er1 >conftest.err
4891 rm -f conftest.er1
4892 cat conftest.err >&5
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); } >/dev/null && {
4895 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4896 test ! -s conftest.err
4897 }; then
4898 # Broken: success on invalid input.
4899 continue
4900 else
4901 echo "$as_me: failed program was:" >&5
4902 sed 's/^/| /' conftest.$ac_ext >&5
4904 # Passes both tests.
4905 ac_preproc_ok=:
4906 break
4909 rm -f conftest.err conftest.$ac_ext
4911 done
4912 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4913 rm -f conftest.err conftest.$ac_ext
4914 if $ac_preproc_ok; then
4916 else
4917 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4918 See \`config.log' for more details." >&5
4919 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4920 See \`config.log' for more details." >&2;}
4921 { (exit 1); exit 1; }; }
4924 ac_ext=c
4925 ac_cpp='$CPP $CPPFLAGS'
4926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4930 # Find a good install program. We prefer a C program (faster),
4931 # so one script is as good as another. But avoid the broken or
4932 # incompatible versions:
4933 # SysV /etc/install, /usr/sbin/install
4934 # SunOS /usr/etc/install
4935 # IRIX /sbin/install
4936 # AIX /bin/install
4937 # AmigaOS /C/install, which installs bootblocks on floppy discs
4938 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4939 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4940 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4941 # OS/2's system install, which has a completely different semantic
4942 # ./install, which can be erroneously created by make from ./install.sh.
4943 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4944 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4945 if test -z "$INSTALL"; then
4946 if test "${ac_cv_path_install+set}" = set; then
4947 echo $ECHO_N "(cached) $ECHO_C" >&6
4948 else
4949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4950 for as_dir in $PATH
4952 IFS=$as_save_IFS
4953 test -z "$as_dir" && as_dir=.
4954 # Account for people who put trailing slashes in PATH elements.
4955 case $as_dir/ in
4956 ./ | .// | /cC/* | \
4957 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4958 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4959 /usr/ucb/* ) ;;
4961 # OSF1 and SCO ODT 3.0 have their own names for install.
4962 # Don't use installbsd from OSF since it installs stuff as root
4963 # by default.
4964 for ac_prog in ginstall scoinst install; do
4965 for ac_exec_ext in '' $ac_executable_extensions; do
4966 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4967 if test $ac_prog = install &&
4968 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4969 # AIX install. It has an incompatible calling convention.
4971 elif test $ac_prog = install &&
4972 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4973 # program-specific install script used by HP pwplus--don't use.
4975 else
4976 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4977 break 3
4980 done
4981 done
4983 esac
4984 done
4985 IFS=$as_save_IFS
4989 if test "${ac_cv_path_install+set}" = set; then
4990 INSTALL=$ac_cv_path_install
4991 else
4992 # As a last resort, use the slow shell script. Don't cache a
4993 # value for INSTALL within a source directory, because that will
4994 # break other packages using the cache if that directory is
4995 # removed, or if the value is a relative name.
4996 INSTALL=$ac_install_sh
4999 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5000 echo "${ECHO_T}$INSTALL" >&6; }
5002 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5003 # It thinks the first close brace ends the variable substitution.
5004 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5006 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5008 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5010 if test "x$RANLIB" = x; then
5011 if test -n "$ac_tool_prefix"; then
5012 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5013 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5016 if test "${ac_cv_prog_RANLIB+set}" = set; then
5017 echo $ECHO_N "(cached) $ECHO_C" >&6
5018 else
5019 if test -n "$RANLIB"; then
5020 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5021 else
5022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5023 for as_dir in $PATH
5025 IFS=$as_save_IFS
5026 test -z "$as_dir" && as_dir=.
5027 for ac_exec_ext in '' $ac_executable_extensions; do
5028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5029 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5031 break 2
5033 done
5034 done
5035 IFS=$as_save_IFS
5039 RANLIB=$ac_cv_prog_RANLIB
5040 if test -n "$RANLIB"; then
5041 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5042 echo "${ECHO_T}$RANLIB" >&6; }
5043 else
5044 { echo "$as_me:$LINENO: result: no" >&5
5045 echo "${ECHO_T}no" >&6; }
5050 if test -z "$ac_cv_prog_RANLIB"; then
5051 ac_ct_RANLIB=$RANLIB
5052 # Extract the first word of "ranlib", so it can be a program name with args.
5053 set dummy ranlib; ac_word=$2
5054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5056 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5057 echo $ECHO_N "(cached) $ECHO_C" >&6
5058 else
5059 if test -n "$ac_ct_RANLIB"; then
5060 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5061 else
5062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5063 for as_dir in $PATH
5065 IFS=$as_save_IFS
5066 test -z "$as_dir" && as_dir=.
5067 for ac_exec_ext in '' $ac_executable_extensions; do
5068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5069 ac_cv_prog_ac_ct_RANLIB="ranlib"
5070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5071 break 2
5073 done
5074 done
5075 IFS=$as_save_IFS
5079 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5080 if test -n "$ac_ct_RANLIB"; then
5081 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5082 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5083 else
5084 { echo "$as_me:$LINENO: result: no" >&5
5085 echo "${ECHO_T}no" >&6; }
5088 if test "x$ac_ct_RANLIB" = x; then
5089 RANLIB=":"
5090 else
5091 case $cross_compiling:$ac_tool_warned in
5092 yes:)
5093 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5094 whose name does not start with the host triplet. If you think this
5095 configuration is useful to you, please write to autoconf@gnu.org." >&5
5096 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5097 whose name does not start with the host triplet. If you think this
5098 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5099 ac_tool_warned=yes ;;
5100 esac
5101 RANLIB=$ac_ct_RANLIB
5103 else
5104 RANLIB="$ac_cv_prog_RANLIB"
5108 # Extract the first word of "install-info", so it can be a program name with args.
5109 set dummy install-info; ac_word=$2
5110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5112 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5113 echo $ECHO_N "(cached) $ECHO_C" >&6
5114 else
5115 case $INSTALL_INFO in
5116 [\\/]* | ?:[\\/]*)
5117 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5121 for as_dir in $PATH
5123 IFS=$as_save_IFS
5124 test -z "$as_dir" && as_dir=.
5125 for ac_exec_ext in '' $ac_executable_extensions; do
5126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5127 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5129 break 2
5131 done
5132 done
5133 IFS=$as_save_IFS
5136 esac
5138 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5139 if test -n "$INSTALL_INFO"; then
5140 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5141 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5142 else
5143 { echo "$as_me:$LINENO: result: no" >&5
5144 echo "${ECHO_T}no" >&6; }
5148 # Extract the first word of "install-info", so it can be a program name with args.
5149 set dummy install-info; ac_word=$2
5150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5152 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5153 echo $ECHO_N "(cached) $ECHO_C" >&6
5154 else
5155 case $INSTALL_INFO in
5156 [\\/]* | ?:[\\/]*)
5157 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161 for as_dir in /usr/sbin
5163 IFS=$as_save_IFS
5164 test -z "$as_dir" && as_dir=.
5165 for ac_exec_ext in '' $ac_executable_extensions; do
5166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5167 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5169 break 2
5171 done
5172 done
5173 IFS=$as_save_IFS
5176 esac
5178 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5179 if test -n "$INSTALL_INFO"; then
5180 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5181 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5182 else
5183 { echo "$as_me:$LINENO: result: no" >&5
5184 echo "${ECHO_T}no" >&6; }
5188 # Extract the first word of "install-info", so it can be a program name with args.
5189 set dummy install-info; ac_word=$2
5190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5192 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5193 echo $ECHO_N "(cached) $ECHO_C" >&6
5194 else
5195 case $INSTALL_INFO in
5196 [\\/]* | ?:[\\/]*)
5197 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201 for as_dir in /sbin
5203 IFS=$as_save_IFS
5204 test -z "$as_dir" && as_dir=.
5205 for ac_exec_ext in '' $ac_executable_extensions; do
5206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5207 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5209 break 2
5211 done
5212 done
5213 IFS=$as_save_IFS
5215 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5217 esac
5219 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5220 if test -n "$INSTALL_INFO"; then
5221 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5222 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5223 else
5224 { echo "$as_me:$LINENO: result: no" >&5
5225 echo "${ECHO_T}no" >&6; }
5229 # Extract the first word of "gzip", so it can be a program name with args.
5230 set dummy gzip; ac_word=$2
5231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5233 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5234 echo $ECHO_N "(cached) $ECHO_C" >&6
5235 else
5236 case $GZIP_PROG in
5237 [\\/]* | ?:[\\/]*)
5238 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5242 for as_dir in $PATH
5244 IFS=$as_save_IFS
5245 test -z "$as_dir" && as_dir=.
5246 for ac_exec_ext in '' $ac_executable_extensions; do
5247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5248 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5250 break 2
5252 done
5253 done
5254 IFS=$as_save_IFS
5257 esac
5259 GZIP_PROG=$ac_cv_path_GZIP_PROG
5260 if test -n "$GZIP_PROG"; then
5261 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5262 echo "${ECHO_T}$GZIP_PROG" >&6; }
5263 else
5264 { echo "$as_me:$LINENO: result: no" >&5
5265 echo "${ECHO_T}no" >&6; }
5271 ## Need makeinfo >= 4.6 (?) to build the manuals.
5272 # Extract the first word of "makeinfo", so it can be a program name with args.
5273 set dummy makeinfo; ac_word=$2
5274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5276 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5277 echo $ECHO_N "(cached) $ECHO_C" >&6
5278 else
5279 case $MAKEINFO in
5280 [\\/]* | ?:[\\/]*)
5281 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5285 for as_dir in $PATH
5287 IFS=$as_save_IFS
5288 test -z "$as_dir" && as_dir=.
5289 for ac_exec_ext in '' $ac_executable_extensions; do
5290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5291 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5293 break 2
5295 done
5296 done
5297 IFS=$as_save_IFS
5299 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5301 esac
5303 MAKEINFO=$ac_cv_path_MAKEINFO
5304 if test -n "$MAKEINFO"; then
5305 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5306 echo "${ECHO_T}$MAKEINFO" >&6; }
5307 else
5308 { echo "$as_me:$LINENO: result: no" >&5
5309 echo "${ECHO_T}no" >&6; }
5313 if test "$MAKEINFO" != "no" && \
5314 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
5315 MAKEINFO=no
5318 ## Makeinfo is unusual. For a released Emacs, the manuals are
5319 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5320 ## therefore in the category of "special tools" not normally required, which
5321 ## configure does not have to check for (eg autoconf itself).
5322 ## In a CVS checkout on the other hand, the manuals are not included.
5323 ## So makeinfo is a requirement to build from CVS, and configure
5324 ## should test for it as it does for any other build requirement.
5325 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5326 ## with pre-built manuals, from a CVS checkout.
5327 if test "$MAKEINFO" = "no"; then
5328 if test "x${with_makeinfo}" = "xno"; then
5329 MAKEINFO=off
5330 elif ! test -e $srcdir/info/emacs; then
5331 { { echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5332 source tree does not seem to have pre-built manuals in the \`info' directory.
5333 Either install a suitable version of makeinfo, or re-run configure
5334 with the \`--without-makeinfo' option to build without the manuals. " >&5
5335 echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5336 source tree does not seem to have pre-built manuals in the \`info' directory.
5337 Either install a suitable version of makeinfo, or re-run configure
5338 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5339 { (exit 1); exit 1; }; }
5344 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5345 then
5346 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5349 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5350 then
5351 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5355 late_LDFLAGS=$LDFLAGS
5356 if test "$GCC" = yes; then
5357 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5358 else
5359 LDFLAGS="$LDFLAGS -znocombreloc"
5362 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5363 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5364 cat >conftest.$ac_ext <<_ACEOF
5365 main(){return 0;}
5366 _ACEOF
5367 rm -f conftest.$ac_objext conftest$ac_exeext
5368 if { (ac_try="$ac_link"
5369 case "(($ac_try" in
5370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5371 *) ac_try_echo=$ac_try;;
5372 esac
5373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5374 (eval "$ac_link") 2>conftest.er1
5375 ac_status=$?
5376 grep -v '^ *+' conftest.er1 >conftest.err
5377 rm -f conftest.er1
5378 cat conftest.err >&5
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); } && {
5381 test -z "$ac_c_werror_flag" ||
5382 test ! -s conftest.err
5383 } && test -s conftest$ac_exeext &&
5384 $as_test_x conftest$ac_exeext; then
5385 { echo "$as_me:$LINENO: result: yes" >&5
5386 echo "${ECHO_T}yes" >&6; }
5387 else
5388 echo "$as_me: failed program was:" >&5
5389 sed 's/^/| /' conftest.$ac_ext >&5
5391 LDFLAGS=$late_LDFLAGS
5392 { echo "$as_me:$LINENO: result: no" >&5
5393 echo "${ECHO_T}no" >&6; }
5396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5397 conftest$ac_exeext conftest.$ac_ext
5399 #### Extract some information from the operating system and machine files.
5401 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5402 - which libraries the lib-src programs will want, and
5403 - whether the GNU malloc routines are usable..." >&5
5404 echo "$as_me: checking the machine- and system-dependent files to find out
5405 - which libraries the lib-src programs will want, and
5406 - whether the GNU malloc routines are usable..." >&6;}
5408 ### First figure out CFLAGS (which we use for running the compiler here)
5409 ### and REAL_CFLAGS (which we use for real compilation).
5410 ### The two are the same except on a few systems, where they are made
5411 ### different to work around various lossages. For example,
5412 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5413 ### as implying static linking.
5415 ### If the CFLAGS env var is specified, we use that value
5416 ### instead of the default.
5418 ### It's not important that this name contain the PID; you can't run
5419 ### two configures in the same directory and have anything work
5420 ### anyway.
5421 tempcname="conftest.c"
5423 echo '
5424 #include "'${srcdir}'/src/'${opsysfile}'"
5425 #include "'${srcdir}'/src/'${machfile}'"
5426 #ifndef LIBS_MACHINE
5427 #define LIBS_MACHINE
5428 #endif
5429 #ifndef LIBS_SYSTEM
5430 #define LIBS_SYSTEM
5431 #endif
5432 #ifndef C_SWITCH_SYSTEM
5433 #define C_SWITCH_SYSTEM
5434 #endif
5435 #ifndef C_SWITCH_MACHINE
5436 #define C_SWITCH_MACHINE
5437 #endif
5438 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5439 configure___ c_switch_system=C_SWITCH_SYSTEM
5440 configure___ c_switch_machine=C_SWITCH_MACHINE
5442 #ifndef LIB_X11_LIB
5443 #define LIB_X11_LIB -lX11
5444 #endif
5446 #ifndef LIBX11_SYSTEM
5447 #define LIBX11_SYSTEM
5448 #endif
5449 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5451 #ifdef UNEXEC
5452 configure___ unexec=UNEXEC
5453 #else
5454 configure___ unexec=unexec.o
5455 #endif
5457 #ifdef SYSTEM_MALLOC
5458 configure___ system_malloc=yes
5459 #else
5460 configure___ system_malloc=no
5461 #endif
5463 #ifdef USE_MMAP_FOR_BUFFERS
5464 configure___ use_mmap_for_buffers=yes
5465 #else
5466 configure___ use_mmap_for_buffers=no
5467 #endif
5469 #ifndef C_DEBUG_SWITCH
5470 #define C_DEBUG_SWITCH -g
5471 #endif
5473 #ifndef C_OPTIMIZE_SWITCH
5474 #ifdef __GNUC__
5475 #define C_OPTIMIZE_SWITCH -O2
5476 #else
5477 #define C_OPTIMIZE_SWITCH -O
5478 #endif
5479 #endif
5481 #ifndef C_WARNINGS_SWITCH
5482 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5483 #endif
5485 #ifndef LD_SWITCH_MACHINE
5486 #define LD_SWITCH_MACHINE
5487 #endif
5489 #ifndef LD_SWITCH_SYSTEM
5490 #define LD_SWITCH_SYSTEM
5491 #endif
5493 #ifndef LD_SWITCH_X_SITE_AUX
5494 #define LD_SWITCH_X_SITE_AUX
5495 #endif
5497 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5498 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5500 #ifdef THIS_IS_CONFIGURE
5502 /* Get the CFLAGS for tests in configure. */
5503 #ifdef __GNUC__
5504 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5505 #else
5506 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5507 #endif
5509 #else /* not THIS_IS_CONFIGURE */
5511 /* Get the CFLAGS for real compilation. */
5512 #ifdef __GNUC__
5513 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5514 #else
5515 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5516 #endif
5518 #endif /* not THIS_IS_CONFIGURE */
5519 ' > ${tempcname}
5521 # The value of CPP is a quoted variable reference, so we need to do this
5522 # to get its actual value...
5523 CPP=`eval "echo $CPP"`
5524 eval `${CPP} -Isrc ${tempcname} \
5525 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5526 if test "x$SPECIFIED_CFLAGS" = x; then
5527 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5528 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5529 else
5530 REAL_CFLAGS="$CFLAGS"
5532 rm ${tempcname}
5534 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5536 ### Make sure subsequent tests use flags consistent with the build flags.
5538 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5539 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5540 else
5541 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5546 # Check whether --enable-largefile was given.
5547 if test "${enable_largefile+set}" = set; then
5548 enableval=$enable_largefile;
5551 if test "$enable_largefile" != no; then
5553 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5554 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5555 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5556 echo $ECHO_N "(cached) $ECHO_C" >&6
5557 else
5558 ac_cv_sys_largefile_CC=no
5559 if test "$GCC" != yes; then
5560 ac_save_CC=$CC
5561 while :; do
5562 # IRIX 6.2 and later do not support large files by default,
5563 # so use the C compiler's -n32 option if that helps.
5564 cat >conftest.$ac_ext <<_ACEOF
5565 /* confdefs.h. */
5566 _ACEOF
5567 cat confdefs.h >>conftest.$ac_ext
5568 cat >>conftest.$ac_ext <<_ACEOF
5569 /* end confdefs.h. */
5570 #include <sys/types.h>
5571 /* Check that off_t can represent 2**63 - 1 correctly.
5572 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5573 since some C++ compilers masquerading as C compilers
5574 incorrectly reject 9223372036854775807. */
5575 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5576 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5577 && LARGE_OFF_T % 2147483647 == 1)
5578 ? 1 : -1];
5580 main ()
5584 return 0;
5586 _ACEOF
5587 rm -f conftest.$ac_objext
5588 if { (ac_try="$ac_compile"
5589 case "(($ac_try" in
5590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5591 *) ac_try_echo=$ac_try;;
5592 esac
5593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5594 (eval "$ac_compile") 2>conftest.er1
5595 ac_status=$?
5596 grep -v '^ *+' conftest.er1 >conftest.err
5597 rm -f conftest.er1
5598 cat conftest.err >&5
5599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); } && {
5601 test -z "$ac_c_werror_flag" ||
5602 test ! -s conftest.err
5603 } && test -s conftest.$ac_objext; then
5604 break
5605 else
5606 echo "$as_me: failed program was:" >&5
5607 sed 's/^/| /' conftest.$ac_ext >&5
5612 rm -f core conftest.err conftest.$ac_objext
5613 CC="$CC -n32"
5614 rm -f conftest.$ac_objext
5615 if { (ac_try="$ac_compile"
5616 case "(($ac_try" in
5617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5618 *) ac_try_echo=$ac_try;;
5619 esac
5620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5621 (eval "$ac_compile") 2>conftest.er1
5622 ac_status=$?
5623 grep -v '^ *+' conftest.er1 >conftest.err
5624 rm -f conftest.er1
5625 cat conftest.err >&5
5626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); } && {
5628 test -z "$ac_c_werror_flag" ||
5629 test ! -s conftest.err
5630 } && test -s conftest.$ac_objext; then
5631 ac_cv_sys_largefile_CC=' -n32'; break
5632 else
5633 echo "$as_me: failed program was:" >&5
5634 sed 's/^/| /' conftest.$ac_ext >&5
5639 rm -f core conftest.err conftest.$ac_objext
5640 break
5641 done
5642 CC=$ac_save_CC
5643 rm -f conftest.$ac_ext
5646 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5647 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5648 if test "$ac_cv_sys_largefile_CC" != no; then
5649 CC=$CC$ac_cv_sys_largefile_CC
5652 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5653 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5654 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5655 echo $ECHO_N "(cached) $ECHO_C" >&6
5656 else
5657 while :; do
5658 cat >conftest.$ac_ext <<_ACEOF
5659 /* confdefs.h. */
5660 _ACEOF
5661 cat confdefs.h >>conftest.$ac_ext
5662 cat >>conftest.$ac_ext <<_ACEOF
5663 /* end confdefs.h. */
5664 #include <sys/types.h>
5665 /* Check that off_t can represent 2**63 - 1 correctly.
5666 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5667 since some C++ compilers masquerading as C compilers
5668 incorrectly reject 9223372036854775807. */
5669 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5670 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5671 && LARGE_OFF_T % 2147483647 == 1)
5672 ? 1 : -1];
5674 main ()
5678 return 0;
5680 _ACEOF
5681 rm -f conftest.$ac_objext
5682 if { (ac_try="$ac_compile"
5683 case "(($ac_try" in
5684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5685 *) ac_try_echo=$ac_try;;
5686 esac
5687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5688 (eval "$ac_compile") 2>conftest.er1
5689 ac_status=$?
5690 grep -v '^ *+' conftest.er1 >conftest.err
5691 rm -f conftest.er1
5692 cat conftest.err >&5
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); } && {
5695 test -z "$ac_c_werror_flag" ||
5696 test ! -s conftest.err
5697 } && test -s conftest.$ac_objext; then
5698 ac_cv_sys_file_offset_bits=no; break
5699 else
5700 echo "$as_me: failed program was:" >&5
5701 sed 's/^/| /' conftest.$ac_ext >&5
5706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5707 cat >conftest.$ac_ext <<_ACEOF
5708 /* confdefs.h. */
5709 _ACEOF
5710 cat confdefs.h >>conftest.$ac_ext
5711 cat >>conftest.$ac_ext <<_ACEOF
5712 /* end confdefs.h. */
5713 #define _FILE_OFFSET_BITS 64
5714 #include <sys/types.h>
5715 /* Check that off_t can represent 2**63 - 1 correctly.
5716 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5717 since some C++ compilers masquerading as C compilers
5718 incorrectly reject 9223372036854775807. */
5719 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5720 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5721 && LARGE_OFF_T % 2147483647 == 1)
5722 ? 1 : -1];
5724 main ()
5728 return 0;
5730 _ACEOF
5731 rm -f conftest.$ac_objext
5732 if { (ac_try="$ac_compile"
5733 case "(($ac_try" in
5734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5735 *) ac_try_echo=$ac_try;;
5736 esac
5737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5738 (eval "$ac_compile") 2>conftest.er1
5739 ac_status=$?
5740 grep -v '^ *+' conftest.er1 >conftest.err
5741 rm -f conftest.er1
5742 cat conftest.err >&5
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); } && {
5745 test -z "$ac_c_werror_flag" ||
5746 test ! -s conftest.err
5747 } && test -s conftest.$ac_objext; then
5748 ac_cv_sys_file_offset_bits=64; break
5749 else
5750 echo "$as_me: failed program was:" >&5
5751 sed 's/^/| /' conftest.$ac_ext >&5
5756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5757 ac_cv_sys_file_offset_bits=unknown
5758 break
5759 done
5761 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5762 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5763 case $ac_cv_sys_file_offset_bits in #(
5764 no | unknown) ;;
5766 cat >>confdefs.h <<_ACEOF
5767 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5768 _ACEOF
5770 esac
5771 rm -f conftest*
5772 if test $ac_cv_sys_file_offset_bits = unknown; then
5773 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5774 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5775 if test "${ac_cv_sys_large_files+set}" = set; then
5776 echo $ECHO_N "(cached) $ECHO_C" >&6
5777 else
5778 while :; do
5779 cat >conftest.$ac_ext <<_ACEOF
5780 /* confdefs.h. */
5781 _ACEOF
5782 cat confdefs.h >>conftest.$ac_ext
5783 cat >>conftest.$ac_ext <<_ACEOF
5784 /* end confdefs.h. */
5785 #include <sys/types.h>
5786 /* Check that off_t can represent 2**63 - 1 correctly.
5787 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5788 since some C++ compilers masquerading as C compilers
5789 incorrectly reject 9223372036854775807. */
5790 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5791 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5792 && LARGE_OFF_T % 2147483647 == 1)
5793 ? 1 : -1];
5795 main ()
5799 return 0;
5801 _ACEOF
5802 rm -f conftest.$ac_objext
5803 if { (ac_try="$ac_compile"
5804 case "(($ac_try" in
5805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5806 *) ac_try_echo=$ac_try;;
5807 esac
5808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5809 (eval "$ac_compile") 2>conftest.er1
5810 ac_status=$?
5811 grep -v '^ *+' conftest.er1 >conftest.err
5812 rm -f conftest.er1
5813 cat conftest.err >&5
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); } && {
5816 test -z "$ac_c_werror_flag" ||
5817 test ! -s conftest.err
5818 } && test -s conftest.$ac_objext; then
5819 ac_cv_sys_large_files=no; break
5820 else
5821 echo "$as_me: failed program was:" >&5
5822 sed 's/^/| /' conftest.$ac_ext >&5
5827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5828 cat >conftest.$ac_ext <<_ACEOF
5829 /* confdefs.h. */
5830 _ACEOF
5831 cat confdefs.h >>conftest.$ac_ext
5832 cat >>conftest.$ac_ext <<_ACEOF
5833 /* end confdefs.h. */
5834 #define _LARGE_FILES 1
5835 #include <sys/types.h>
5836 /* Check that off_t can represent 2**63 - 1 correctly.
5837 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5838 since some C++ compilers masquerading as C compilers
5839 incorrectly reject 9223372036854775807. */
5840 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5841 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5842 && LARGE_OFF_T % 2147483647 == 1)
5843 ? 1 : -1];
5845 main ()
5849 return 0;
5851 _ACEOF
5852 rm -f conftest.$ac_objext
5853 if { (ac_try="$ac_compile"
5854 case "(($ac_try" in
5855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5856 *) ac_try_echo=$ac_try;;
5857 esac
5858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5859 (eval "$ac_compile") 2>conftest.er1
5860 ac_status=$?
5861 grep -v '^ *+' conftest.er1 >conftest.err
5862 rm -f conftest.er1
5863 cat conftest.err >&5
5864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865 (exit $ac_status); } && {
5866 test -z "$ac_c_werror_flag" ||
5867 test ! -s conftest.err
5868 } && test -s conftest.$ac_objext; then
5869 ac_cv_sys_large_files=1; break
5870 else
5871 echo "$as_me: failed program was:" >&5
5872 sed 's/^/| /' conftest.$ac_ext >&5
5877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5878 ac_cv_sys_large_files=unknown
5879 break
5880 done
5882 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5883 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5884 case $ac_cv_sys_large_files in #(
5885 no | unknown) ;;
5887 cat >>confdefs.h <<_ACEOF
5888 #define _LARGE_FILES $ac_cv_sys_large_files
5889 _ACEOF
5891 esac
5892 rm -f conftest*
5898 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5899 ### be located in either /usr/lib64 or /usr/lib.
5900 case "${canonical}" in
5901 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5902 if test -d /usr/lib64; then
5904 cat >>confdefs.h <<\_ACEOF
5905 #define HAVE_LIB64_DIR 1
5906 _ACEOF
5909 esac
5914 if test "${with_sound}" != "no"; then
5915 # Sound support for GNU/Linux and the free BSDs.
5919 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5921 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5923 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5925 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5926 echo $ECHO_N "(cached) $ECHO_C" >&6
5928 ac_res=`eval echo '${'$as_ac_Header'}'`
5929 { echo "$as_me:$LINENO: result: $ac_res" >&5
5930 echo "${ECHO_T}$ac_res" >&6; }
5931 else
5932 # Is the header compilable?
5933 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5934 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5935 cat >conftest.$ac_ext <<_ACEOF
5936 /* confdefs.h. */
5937 _ACEOF
5938 cat confdefs.h >>conftest.$ac_ext
5939 cat >>conftest.$ac_ext <<_ACEOF
5940 /* end confdefs.h. */
5941 $ac_includes_default
5942 #include <$ac_header>
5943 _ACEOF
5944 rm -f conftest.$ac_objext
5945 if { (ac_try="$ac_compile"
5946 case "(($ac_try" in
5947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5948 *) ac_try_echo=$ac_try;;
5949 esac
5950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5951 (eval "$ac_compile") 2>conftest.er1
5952 ac_status=$?
5953 grep -v '^ *+' conftest.er1 >conftest.err
5954 rm -f conftest.er1
5955 cat conftest.err >&5
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); } && {
5958 test -z "$ac_c_werror_flag" ||
5959 test ! -s conftest.err
5960 } && test -s conftest.$ac_objext; then
5961 ac_header_compiler=yes
5962 else
5963 echo "$as_me: failed program was:" >&5
5964 sed 's/^/| /' conftest.$ac_ext >&5
5966 ac_header_compiler=no
5969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5970 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5971 echo "${ECHO_T}$ac_header_compiler" >&6; }
5973 # Is the header present?
5974 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5975 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5976 cat >conftest.$ac_ext <<_ACEOF
5977 /* confdefs.h. */
5978 _ACEOF
5979 cat confdefs.h >>conftest.$ac_ext
5980 cat >>conftest.$ac_ext <<_ACEOF
5981 /* end confdefs.h. */
5982 #include <$ac_header>
5983 _ACEOF
5984 if { (ac_try="$ac_cpp conftest.$ac_ext"
5985 case "(($ac_try" in
5986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5987 *) ac_try_echo=$ac_try;;
5988 esac
5989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5991 ac_status=$?
5992 grep -v '^ *+' conftest.er1 >conftest.err
5993 rm -f conftest.er1
5994 cat conftest.err >&5
5995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996 (exit $ac_status); } >/dev/null && {
5997 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5998 test ! -s conftest.err
5999 }; then
6000 ac_header_preproc=yes
6001 else
6002 echo "$as_me: failed program was:" >&5
6003 sed 's/^/| /' conftest.$ac_ext >&5
6005 ac_header_preproc=no
6008 rm -f conftest.err conftest.$ac_ext
6009 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6010 echo "${ECHO_T}$ac_header_preproc" >&6; }
6012 # So? What about this header?
6013 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6014 yes:no: )
6015 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6016 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6018 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6019 ac_header_preproc=yes
6021 no:yes:* )
6022 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6023 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6024 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6025 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6026 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6027 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6028 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6029 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6030 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6031 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6032 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6033 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6036 esac
6037 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6040 echo $ECHO_N "(cached) $ECHO_C" >&6
6041 else
6042 eval "$as_ac_Header=\$ac_header_preproc"
6044 ac_res=`eval echo '${'$as_ac_Header'}'`
6045 { echo "$as_me:$LINENO: result: $ac_res" >&5
6046 echo "${ECHO_T}$ac_res" >&6; }
6049 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6050 cat >>confdefs.h <<_ACEOF
6051 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6052 _ACEOF
6056 done
6058 # Emulation library used on NetBSD.
6059 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6060 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6061 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6062 echo $ECHO_N "(cached) $ECHO_C" >&6
6063 else
6064 ac_check_lib_save_LIBS=$LIBS
6065 LIBS="-lossaudio $LIBS"
6066 cat >conftest.$ac_ext <<_ACEOF
6067 /* confdefs.h. */
6068 _ACEOF
6069 cat confdefs.h >>conftest.$ac_ext
6070 cat >>conftest.$ac_ext <<_ACEOF
6071 /* end confdefs.h. */
6073 /* Override any GCC internal prototype to avoid an error.
6074 Use char because int might match the return type of a GCC
6075 builtin and then its argument prototype would still apply. */
6076 #ifdef __cplusplus
6077 extern "C"
6078 #endif
6079 char _oss_ioctl ();
6081 main ()
6083 return _oss_ioctl ();
6085 return 0;
6087 _ACEOF
6088 rm -f conftest.$ac_objext conftest$ac_exeext
6089 if { (ac_try="$ac_link"
6090 case "(($ac_try" in
6091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6092 *) ac_try_echo=$ac_try;;
6093 esac
6094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6095 (eval "$ac_link") 2>conftest.er1
6096 ac_status=$?
6097 grep -v '^ *+' conftest.er1 >conftest.err
6098 rm -f conftest.er1
6099 cat conftest.err >&5
6100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); } && {
6102 test -z "$ac_c_werror_flag" ||
6103 test ! -s conftest.err
6104 } && test -s conftest$ac_exeext &&
6105 $as_test_x conftest$ac_exeext; then
6106 ac_cv_lib_ossaudio__oss_ioctl=yes
6107 else
6108 echo "$as_me: failed program was:" >&5
6109 sed 's/^/| /' conftest.$ac_ext >&5
6111 ac_cv_lib_ossaudio__oss_ioctl=no
6114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6115 conftest$ac_exeext conftest.$ac_ext
6116 LIBS=$ac_check_lib_save_LIBS
6118 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6119 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6120 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6121 LIBSOUND=-lossaudio
6122 else
6123 LIBSOUND=
6128 ALSA_REQUIRED=1.0.0
6129 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6131 succeeded=no
6133 # Extract the first word of "pkg-config", so it can be a program name with args.
6134 set dummy pkg-config; ac_word=$2
6135 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6137 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6138 echo $ECHO_N "(cached) $ECHO_C" >&6
6139 else
6140 case $PKG_CONFIG in
6141 [\\/]* | ?:[\\/]*)
6142 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6146 for as_dir in $PATH
6148 IFS=$as_save_IFS
6149 test -z "$as_dir" && as_dir=.
6150 for ac_exec_ext in '' $ac_executable_extensions; do
6151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6152 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6154 break 2
6156 done
6157 done
6158 IFS=$as_save_IFS
6160 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6162 esac
6164 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6165 if test -n "$PKG_CONFIG"; then
6166 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6167 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6168 else
6169 { echo "$as_me:$LINENO: result: no" >&5
6170 echo "${ECHO_T}no" >&6; }
6175 if test "$PKG_CONFIG" = "no" ; then
6176 HAVE_ALSA=no
6177 else
6178 PKG_CONFIG_MIN_VERSION=0.9.0
6179 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6180 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6181 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6183 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6184 { echo "$as_me:$LINENO: result: yes" >&5
6185 echo "${ECHO_T}yes" >&6; }
6186 succeeded=yes
6188 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6189 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6190 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6191 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6192 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6194 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6195 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6196 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6197 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6198 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6199 else
6200 { echo "$as_me:$LINENO: result: no" >&5
6201 echo "${ECHO_T}no" >&6; }
6202 ALSA_CFLAGS=""
6203 ALSA_LIBS=""
6204 ## If we have a custom action on failure, don't print errors, but
6205 ## do set a variable so people can do so.
6206 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6212 else
6213 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6214 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6218 if test $succeeded = yes; then
6219 HAVE_ALSA=yes
6220 else
6221 HAVE_ALSA=no
6224 if test $HAVE_ALSA = yes; then
6225 SAVE_CFLAGS="$CFLAGS"
6226 SAVE_LDFLAGS="$LDFLAGS"
6227 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6228 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6229 cat >conftest.$ac_ext <<_ACEOF
6230 /* confdefs.h. */
6231 _ACEOF
6232 cat confdefs.h >>conftest.$ac_ext
6233 cat >>conftest.$ac_ext <<_ACEOF
6234 /* end confdefs.h. */
6235 #include <asoundlib.h>
6237 main ()
6239 snd_lib_error_set_handler (0);
6241 return 0;
6243 _ACEOF
6244 rm -f conftest.$ac_objext
6245 if { (ac_try="$ac_compile"
6246 case "(($ac_try" in
6247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6248 *) ac_try_echo=$ac_try;;
6249 esac
6250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6251 (eval "$ac_compile") 2>conftest.er1
6252 ac_status=$?
6253 grep -v '^ *+' conftest.er1 >conftest.err
6254 rm -f conftest.er1
6255 cat conftest.err >&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); } && {
6258 test -z "$ac_c_werror_flag" ||
6259 test ! -s conftest.err
6260 } && test -s conftest.$ac_objext; then
6261 emacs_alsa_normal=yes
6262 else
6263 echo "$as_me: failed program was:" >&5
6264 sed 's/^/| /' conftest.$ac_ext >&5
6266 emacs_alsa_normal=no
6269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6270 if test "$emacs_alsa_normal" != yes; then
6271 cat >conftest.$ac_ext <<_ACEOF
6272 /* confdefs.h. */
6273 _ACEOF
6274 cat confdefs.h >>conftest.$ac_ext
6275 cat >>conftest.$ac_ext <<_ACEOF
6276 /* end confdefs.h. */
6277 #include <alsa/asoundlib.h>
6279 main ()
6281 snd_lib_error_set_handler (0);
6283 return 0;
6285 _ACEOF
6286 rm -f conftest.$ac_objext
6287 if { (ac_try="$ac_compile"
6288 case "(($ac_try" in
6289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6290 *) ac_try_echo=$ac_try;;
6291 esac
6292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6293 (eval "$ac_compile") 2>conftest.er1
6294 ac_status=$?
6295 grep -v '^ *+' conftest.er1 >conftest.err
6296 rm -f conftest.er1
6297 cat conftest.err >&5
6298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299 (exit $ac_status); } && {
6300 test -z "$ac_c_werror_flag" ||
6301 test ! -s conftest.err
6302 } && test -s conftest.$ac_objext; then
6303 emacs_alsa_subdir=yes
6304 else
6305 echo "$as_me: failed program was:" >&5
6306 sed 's/^/| /' conftest.$ac_ext >&5
6308 emacs_alsa_subdir=no
6311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6312 if test "$emacs_alsa_subdir" != yes; then
6313 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6314 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6315 { (exit 1); exit 1; }; }
6317 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6320 CFLAGS="$SAVE_CFLAGS"
6321 LDFLAGS="$SAVE_LDFLAGS"
6322 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6323 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6325 cat >>confdefs.h <<\_ACEOF
6326 #define HAVE_ALSA 1
6327 _ACEOF
6358 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6359 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6360 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6361 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6362 sys/utsname.h pwd.h
6364 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6366 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6369 echo $ECHO_N "(cached) $ECHO_C" >&6
6371 ac_res=`eval echo '${'$as_ac_Header'}'`
6372 { echo "$as_me:$LINENO: result: $ac_res" >&5
6373 echo "${ECHO_T}$ac_res" >&6; }
6374 else
6375 # Is the header compilable?
6376 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6377 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6378 cat >conftest.$ac_ext <<_ACEOF
6379 /* confdefs.h. */
6380 _ACEOF
6381 cat confdefs.h >>conftest.$ac_ext
6382 cat >>conftest.$ac_ext <<_ACEOF
6383 /* end confdefs.h. */
6384 $ac_includes_default
6385 #include <$ac_header>
6386 _ACEOF
6387 rm -f conftest.$ac_objext
6388 if { (ac_try="$ac_compile"
6389 case "(($ac_try" in
6390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6391 *) ac_try_echo=$ac_try;;
6392 esac
6393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6394 (eval "$ac_compile") 2>conftest.er1
6395 ac_status=$?
6396 grep -v '^ *+' conftest.er1 >conftest.err
6397 rm -f conftest.er1
6398 cat conftest.err >&5
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); } && {
6401 test -z "$ac_c_werror_flag" ||
6402 test ! -s conftest.err
6403 } && test -s conftest.$ac_objext; then
6404 ac_header_compiler=yes
6405 else
6406 echo "$as_me: failed program was:" >&5
6407 sed 's/^/| /' conftest.$ac_ext >&5
6409 ac_header_compiler=no
6412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6413 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6414 echo "${ECHO_T}$ac_header_compiler" >&6; }
6416 # Is the header present?
6417 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6418 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6419 cat >conftest.$ac_ext <<_ACEOF
6420 /* confdefs.h. */
6421 _ACEOF
6422 cat confdefs.h >>conftest.$ac_ext
6423 cat >>conftest.$ac_ext <<_ACEOF
6424 /* end confdefs.h. */
6425 #include <$ac_header>
6426 _ACEOF
6427 if { (ac_try="$ac_cpp conftest.$ac_ext"
6428 case "(($ac_try" in
6429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6430 *) ac_try_echo=$ac_try;;
6431 esac
6432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6434 ac_status=$?
6435 grep -v '^ *+' conftest.er1 >conftest.err
6436 rm -f conftest.er1
6437 cat conftest.err >&5
6438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439 (exit $ac_status); } >/dev/null && {
6440 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6441 test ! -s conftest.err
6442 }; then
6443 ac_header_preproc=yes
6444 else
6445 echo "$as_me: failed program was:" >&5
6446 sed 's/^/| /' conftest.$ac_ext >&5
6448 ac_header_preproc=no
6451 rm -f conftest.err conftest.$ac_ext
6452 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6453 echo "${ECHO_T}$ac_header_preproc" >&6; }
6455 # So? What about this header?
6456 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6457 yes:no: )
6458 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6459 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6461 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6462 ac_header_preproc=yes
6464 no:yes:* )
6465 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6466 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6467 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6468 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6469 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6470 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6471 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6472 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6474 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6475 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6476 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6479 esac
6480 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6483 echo $ECHO_N "(cached) $ECHO_C" >&6
6484 else
6485 eval "$as_ac_Header=\$ac_header_preproc"
6487 ac_res=`eval echo '${'$as_ac_Header'}'`
6488 { echo "$as_me:$LINENO: result: $ac_res" >&5
6489 echo "${ECHO_T}$ac_res" >&6; }
6492 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6493 cat >>confdefs.h <<_ACEOF
6494 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6495 _ACEOF
6499 done
6502 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6503 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6504 cat >conftest.$ac_ext <<_ACEOF
6505 /* confdefs.h. */
6506 _ACEOF
6507 cat confdefs.h >>conftest.$ac_ext
6508 cat >>conftest.$ac_ext <<_ACEOF
6509 /* end confdefs.h. */
6510 #include <sys/personality.h>
6512 main ()
6514 personality (PER_LINUX32)
6516 return 0;
6518 _ACEOF
6519 rm -f conftest.$ac_objext
6520 if { (ac_try="$ac_compile"
6521 case "(($ac_try" in
6522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6523 *) ac_try_echo=$ac_try;;
6524 esac
6525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6526 (eval "$ac_compile") 2>conftest.er1
6527 ac_status=$?
6528 grep -v '^ *+' conftest.er1 >conftest.err
6529 rm -f conftest.er1
6530 cat conftest.err >&5
6531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 (exit $ac_status); } && {
6533 test -z "$ac_c_werror_flag" ||
6534 test ! -s conftest.err
6535 } && test -s conftest.$ac_objext; then
6536 emacs_cv_personality_linux32=yes
6537 else
6538 echo "$as_me: failed program was:" >&5
6539 sed 's/^/| /' conftest.$ac_ext >&5
6541 emacs_cv_personality_linux32=no
6544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6545 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6546 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6548 if test $emacs_cv_personality_linux32 = yes; then
6550 cat >>confdefs.h <<\_ACEOF
6551 #define HAVE_PERSONALITY_LINUX32 1
6552 _ACEOF
6557 for ac_header in term.h
6559 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6560 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6562 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6563 echo $ECHO_N "(cached) $ECHO_C" >&6
6564 else
6565 cat >conftest.$ac_ext <<_ACEOF
6566 /* confdefs.h. */
6567 _ACEOF
6568 cat confdefs.h >>conftest.$ac_ext
6569 cat >>conftest.$ac_ext <<_ACEOF
6570 /* end confdefs.h. */
6571 #include <$ac_header>
6572 _ACEOF
6573 if { (ac_try="$ac_cpp conftest.$ac_ext"
6574 case "(($ac_try" in
6575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6576 *) ac_try_echo=$ac_try;;
6577 esac
6578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6580 ac_status=$?
6581 grep -v '^ *+' conftest.er1 >conftest.err
6582 rm -f conftest.er1
6583 cat conftest.err >&5
6584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); } >/dev/null && {
6586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6587 test ! -s conftest.err
6588 }; then
6589 eval "$as_ac_Header=yes"
6590 else
6591 echo "$as_me: failed program was:" >&5
6592 sed 's/^/| /' conftest.$ac_ext >&5
6594 eval "$as_ac_Header=no"
6597 rm -f conftest.err conftest.$ac_ext
6599 ac_res=`eval echo '${'$as_ac_Header'}'`
6600 { echo "$as_me:$LINENO: result: $ac_res" >&5
6601 echo "${ECHO_T}$ac_res" >&6; }
6602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6603 cat >>confdefs.h <<_ACEOF
6604 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6605 _ACEOF
6609 done
6611 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6612 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6613 if test "${ac_cv_header_stdc+set}" = set; then
6614 echo $ECHO_N "(cached) $ECHO_C" >&6
6615 else
6616 cat >conftest.$ac_ext <<_ACEOF
6617 /* confdefs.h. */
6618 _ACEOF
6619 cat confdefs.h >>conftest.$ac_ext
6620 cat >>conftest.$ac_ext <<_ACEOF
6621 /* end confdefs.h. */
6622 #include <stdlib.h>
6623 #include <stdarg.h>
6624 #include <string.h>
6625 #include <float.h>
6628 main ()
6632 return 0;
6634 _ACEOF
6635 rm -f conftest.$ac_objext
6636 if { (ac_try="$ac_compile"
6637 case "(($ac_try" in
6638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6639 *) ac_try_echo=$ac_try;;
6640 esac
6641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6642 (eval "$ac_compile") 2>conftest.er1
6643 ac_status=$?
6644 grep -v '^ *+' conftest.er1 >conftest.err
6645 rm -f conftest.er1
6646 cat conftest.err >&5
6647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); } && {
6649 test -z "$ac_c_werror_flag" ||
6650 test ! -s conftest.err
6651 } && test -s conftest.$ac_objext; then
6652 ac_cv_header_stdc=yes
6653 else
6654 echo "$as_me: failed program was:" >&5
6655 sed 's/^/| /' conftest.$ac_ext >&5
6657 ac_cv_header_stdc=no
6660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6662 if test $ac_cv_header_stdc = yes; then
6663 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6664 cat >conftest.$ac_ext <<_ACEOF
6665 /* confdefs.h. */
6666 _ACEOF
6667 cat confdefs.h >>conftest.$ac_ext
6668 cat >>conftest.$ac_ext <<_ACEOF
6669 /* end confdefs.h. */
6670 #include <string.h>
6672 _ACEOF
6673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6674 $EGREP "memchr" >/dev/null 2>&1; then
6676 else
6677 ac_cv_header_stdc=no
6679 rm -f conftest*
6683 if test $ac_cv_header_stdc = yes; then
6684 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6685 cat >conftest.$ac_ext <<_ACEOF
6686 /* confdefs.h. */
6687 _ACEOF
6688 cat confdefs.h >>conftest.$ac_ext
6689 cat >>conftest.$ac_ext <<_ACEOF
6690 /* end confdefs.h. */
6691 #include <stdlib.h>
6693 _ACEOF
6694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6695 $EGREP "free" >/dev/null 2>&1; then
6697 else
6698 ac_cv_header_stdc=no
6700 rm -f conftest*
6704 if test $ac_cv_header_stdc = yes; then
6705 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6706 if test "$cross_compiling" = yes; then
6708 else
6709 cat >conftest.$ac_ext <<_ACEOF
6710 /* confdefs.h. */
6711 _ACEOF
6712 cat confdefs.h >>conftest.$ac_ext
6713 cat >>conftest.$ac_ext <<_ACEOF
6714 /* end confdefs.h. */
6715 #include <ctype.h>
6716 #include <stdlib.h>
6717 #if ((' ' & 0x0FF) == 0x020)
6718 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6719 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6720 #else
6721 # define ISLOWER(c) \
6722 (('a' <= (c) && (c) <= 'i') \
6723 || ('j' <= (c) && (c) <= 'r') \
6724 || ('s' <= (c) && (c) <= 'z'))
6725 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6726 #endif
6728 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6730 main ()
6732 int i;
6733 for (i = 0; i < 256; i++)
6734 if (XOR (islower (i), ISLOWER (i))
6735 || toupper (i) != TOUPPER (i))
6736 return 2;
6737 return 0;
6739 _ACEOF
6740 rm -f conftest$ac_exeext
6741 if { (ac_try="$ac_link"
6742 case "(($ac_try" in
6743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6744 *) ac_try_echo=$ac_try;;
6745 esac
6746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6747 (eval "$ac_link") 2>&5
6748 ac_status=$?
6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6751 { (case "(($ac_try" in
6752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6753 *) ac_try_echo=$ac_try;;
6754 esac
6755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6756 (eval "$ac_try") 2>&5
6757 ac_status=$?
6758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759 (exit $ac_status); }; }; then
6761 else
6762 echo "$as_me: program exited with status $ac_status" >&5
6763 echo "$as_me: failed program was:" >&5
6764 sed 's/^/| /' conftest.$ac_ext >&5
6766 ( exit $ac_status )
6767 ac_cv_header_stdc=no
6769 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6775 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6776 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6777 if test $ac_cv_header_stdc = yes; then
6779 cat >>confdefs.h <<\_ACEOF
6780 #define STDC_HEADERS 1
6781 _ACEOF
6785 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6786 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6787 if test "${ac_cv_header_time+set}" = set; then
6788 echo $ECHO_N "(cached) $ECHO_C" >&6
6789 else
6790 cat >conftest.$ac_ext <<_ACEOF
6791 /* confdefs.h. */
6792 _ACEOF
6793 cat confdefs.h >>conftest.$ac_ext
6794 cat >>conftest.$ac_ext <<_ACEOF
6795 /* end confdefs.h. */
6796 #include <sys/types.h>
6797 #include <sys/time.h>
6798 #include <time.h>
6801 main ()
6803 if ((struct tm *) 0)
6804 return 0;
6806 return 0;
6808 _ACEOF
6809 rm -f conftest.$ac_objext
6810 if { (ac_try="$ac_compile"
6811 case "(($ac_try" in
6812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6813 *) ac_try_echo=$ac_try;;
6814 esac
6815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6816 (eval "$ac_compile") 2>conftest.er1
6817 ac_status=$?
6818 grep -v '^ *+' conftest.er1 >conftest.err
6819 rm -f conftest.er1
6820 cat conftest.err >&5
6821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822 (exit $ac_status); } && {
6823 test -z "$ac_c_werror_flag" ||
6824 test ! -s conftest.err
6825 } && test -s conftest.$ac_objext; then
6826 ac_cv_header_time=yes
6827 else
6828 echo "$as_me: failed program was:" >&5
6829 sed 's/^/| /' conftest.$ac_ext >&5
6831 ac_cv_header_time=no
6834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6836 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6837 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6838 if test $ac_cv_header_time = yes; then
6840 cat >>confdefs.h <<\_ACEOF
6841 #define TIME_WITH_SYS_TIME 1
6842 _ACEOF
6846 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6847 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6848 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6849 echo $ECHO_N "(cached) $ECHO_C" >&6
6850 else
6851 cat >conftest.$ac_ext <<_ACEOF
6852 /* confdefs.h. */
6853 _ACEOF
6854 cat confdefs.h >>conftest.$ac_ext
6855 cat >>conftest.$ac_ext <<_ACEOF
6856 /* end confdefs.h. */
6857 $ac_includes_default
6859 main ()
6861 #ifndef sys_siglist
6862 (void) sys_siglist;
6863 #endif
6866 return 0;
6868 _ACEOF
6869 rm -f conftest.$ac_objext
6870 if { (ac_try="$ac_compile"
6871 case "(($ac_try" in
6872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6873 *) ac_try_echo=$ac_try;;
6874 esac
6875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6876 (eval "$ac_compile") 2>conftest.er1
6877 ac_status=$?
6878 grep -v '^ *+' conftest.er1 >conftest.err
6879 rm -f conftest.er1
6880 cat conftest.err >&5
6881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882 (exit $ac_status); } && {
6883 test -z "$ac_c_werror_flag" ||
6884 test ! -s conftest.err
6885 } && test -s conftest.$ac_objext; then
6886 ac_cv_have_decl_sys_siglist=yes
6887 else
6888 echo "$as_me: failed program was:" >&5
6889 sed 's/^/| /' conftest.$ac_ext >&5
6891 ac_cv_have_decl_sys_siglist=no
6894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6896 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6897 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6898 if test $ac_cv_have_decl_sys_siglist = yes; then
6900 cat >>confdefs.h <<_ACEOF
6901 #define HAVE_DECL_SYS_SIGLIST 1
6902 _ACEOF
6905 else
6906 cat >>confdefs.h <<_ACEOF
6907 #define HAVE_DECL_SYS_SIGLIST 0
6908 _ACEOF
6914 if test $ac_cv_have_decl_sys_siglist != yes; then
6915 # For Tru64, at least:
6916 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6917 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
6918 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6919 echo $ECHO_N "(cached) $ECHO_C" >&6
6920 else
6921 cat >conftest.$ac_ext <<_ACEOF
6922 /* confdefs.h. */
6923 _ACEOF
6924 cat confdefs.h >>conftest.$ac_ext
6925 cat >>conftest.$ac_ext <<_ACEOF
6926 /* end confdefs.h. */
6927 $ac_includes_default
6929 main ()
6931 #ifndef __sys_siglist
6932 (void) __sys_siglist;
6933 #endif
6936 return 0;
6938 _ACEOF
6939 rm -f conftest.$ac_objext
6940 if { (ac_try="$ac_compile"
6941 case "(($ac_try" in
6942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6943 *) ac_try_echo=$ac_try;;
6944 esac
6945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6946 (eval "$ac_compile") 2>conftest.er1
6947 ac_status=$?
6948 grep -v '^ *+' conftest.er1 >conftest.err
6949 rm -f conftest.er1
6950 cat conftest.err >&5
6951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952 (exit $ac_status); } && {
6953 test -z "$ac_c_werror_flag" ||
6954 test ! -s conftest.err
6955 } && test -s conftest.$ac_objext; then
6956 ac_cv_have_decl___sys_siglist=yes
6957 else
6958 echo "$as_me: failed program was:" >&5
6959 sed 's/^/| /' conftest.$ac_ext >&5
6961 ac_cv_have_decl___sys_siglist=no
6964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6966 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6967 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
6968 if test $ac_cv_have_decl___sys_siglist = yes; then
6970 cat >>confdefs.h <<_ACEOF
6971 #define HAVE_DECL___SYS_SIGLIST 1
6972 _ACEOF
6975 else
6976 cat >>confdefs.h <<_ACEOF
6977 #define HAVE_DECL___SYS_SIGLIST 0
6978 _ACEOF
6984 if test $ac_cv_have_decl___sys_siglist = yes; then
6986 cat >>confdefs.h <<\_ACEOF
6987 #define sys_siglist __sys_siglist
6988 _ACEOF
6992 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6993 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6994 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6995 echo $ECHO_N "(cached) $ECHO_C" >&6
6996 else
6997 cat >conftest.$ac_ext <<_ACEOF
6998 /* confdefs.h. */
6999 _ACEOF
7000 cat confdefs.h >>conftest.$ac_ext
7001 cat >>conftest.$ac_ext <<_ACEOF
7002 /* end confdefs.h. */
7003 #include <sys/types.h>
7004 #include <sys/wait.h>
7005 #ifndef WEXITSTATUS
7006 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7007 #endif
7008 #ifndef WIFEXITED
7009 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7010 #endif
7013 main ()
7015 int s;
7016 wait (&s);
7017 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7019 return 0;
7021 _ACEOF
7022 rm -f conftest.$ac_objext
7023 if { (ac_try="$ac_compile"
7024 case "(($ac_try" in
7025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7026 *) ac_try_echo=$ac_try;;
7027 esac
7028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7029 (eval "$ac_compile") 2>conftest.er1
7030 ac_status=$?
7031 grep -v '^ *+' conftest.er1 >conftest.err
7032 rm -f conftest.er1
7033 cat conftest.err >&5
7034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035 (exit $ac_status); } && {
7036 test -z "$ac_c_werror_flag" ||
7037 test ! -s conftest.err
7038 } && test -s conftest.$ac_objext; then
7039 ac_cv_header_sys_wait_h=yes
7040 else
7041 echo "$as_me: failed program was:" >&5
7042 sed 's/^/| /' conftest.$ac_ext >&5
7044 ac_cv_header_sys_wait_h=no
7047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7049 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7050 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7051 if test $ac_cv_header_sys_wait_h = yes; then
7053 cat >>confdefs.h <<\_ACEOF
7054 #define HAVE_SYS_WAIT_H 1
7055 _ACEOF
7060 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7061 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7062 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7063 echo $ECHO_N "(cached) $ECHO_C" >&6
7064 else
7065 cat >conftest.$ac_ext <<_ACEOF
7066 /* confdefs.h. */
7067 _ACEOF
7068 cat confdefs.h >>conftest.$ac_ext
7069 cat >>conftest.$ac_ext <<_ACEOF
7070 /* end confdefs.h. */
7071 #ifdef TIME_WITH_SYS_TIME
7072 #include <sys/time.h>
7073 #include <time.h>
7074 #else
7075 #ifdef HAVE_SYS_TIME_H
7076 #include <sys/time.h>
7077 #else
7078 #include <time.h>
7079 #endif
7080 #endif
7081 #ifdef HAVE_UTIME_H
7082 #include <utime.h>
7083 #endif
7085 main ()
7087 static struct utimbuf x; x.actime = x.modtime;
7089 return 0;
7091 _ACEOF
7092 rm -f conftest.$ac_objext
7093 if { (ac_try="$ac_compile"
7094 case "(($ac_try" in
7095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7096 *) ac_try_echo=$ac_try;;
7097 esac
7098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7099 (eval "$ac_compile") 2>conftest.er1
7100 ac_status=$?
7101 grep -v '^ *+' conftest.er1 >conftest.err
7102 rm -f conftest.er1
7103 cat conftest.err >&5
7104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105 (exit $ac_status); } && {
7106 test -z "$ac_c_werror_flag" ||
7107 test ! -s conftest.err
7108 } && test -s conftest.$ac_objext; then
7109 emacs_cv_struct_utimbuf=yes
7110 else
7111 echo "$as_me: failed program was:" >&5
7112 sed 's/^/| /' conftest.$ac_ext >&5
7114 emacs_cv_struct_utimbuf=no
7117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7119 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7120 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7121 if test $emacs_cv_struct_utimbuf = yes; then
7123 cat >>confdefs.h <<\_ACEOF
7124 #define HAVE_STRUCT_UTIMBUF 1
7125 _ACEOF
7129 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7130 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7131 if test "${ac_cv_type_signal+set}" = set; then
7132 echo $ECHO_N "(cached) $ECHO_C" >&6
7133 else
7134 cat >conftest.$ac_ext <<_ACEOF
7135 /* confdefs.h. */
7136 _ACEOF
7137 cat confdefs.h >>conftest.$ac_ext
7138 cat >>conftest.$ac_ext <<_ACEOF
7139 /* end confdefs.h. */
7140 #include <sys/types.h>
7141 #include <signal.h>
7144 main ()
7146 return *(signal (0, 0)) (0) == 1;
7148 return 0;
7150 _ACEOF
7151 rm -f conftest.$ac_objext
7152 if { (ac_try="$ac_compile"
7153 case "(($ac_try" in
7154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7155 *) ac_try_echo=$ac_try;;
7156 esac
7157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7158 (eval "$ac_compile") 2>conftest.er1
7159 ac_status=$?
7160 grep -v '^ *+' conftest.er1 >conftest.err
7161 rm -f conftest.er1
7162 cat conftest.err >&5
7163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164 (exit $ac_status); } && {
7165 test -z "$ac_c_werror_flag" ||
7166 test ! -s conftest.err
7167 } && test -s conftest.$ac_objext; then
7168 ac_cv_type_signal=int
7169 else
7170 echo "$as_me: failed program was:" >&5
7171 sed 's/^/| /' conftest.$ac_ext >&5
7173 ac_cv_type_signal=void
7176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7178 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7179 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7181 cat >>confdefs.h <<_ACEOF
7182 #define RETSIGTYPE $ac_cv_type_signal
7183 _ACEOF
7187 { echo "$as_me:$LINENO: checking for speed_t" >&5
7188 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7189 if test "${emacs_cv_speed_t+set}" = set; then
7190 echo $ECHO_N "(cached) $ECHO_C" >&6
7191 else
7192 cat >conftest.$ac_ext <<_ACEOF
7193 /* confdefs.h. */
7194 _ACEOF
7195 cat confdefs.h >>conftest.$ac_ext
7196 cat >>conftest.$ac_ext <<_ACEOF
7197 /* end confdefs.h. */
7198 #include <termios.h>
7200 main ()
7202 speed_t x = 1;
7204 return 0;
7206 _ACEOF
7207 rm -f conftest.$ac_objext
7208 if { (ac_try="$ac_compile"
7209 case "(($ac_try" in
7210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7211 *) ac_try_echo=$ac_try;;
7212 esac
7213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7214 (eval "$ac_compile") 2>conftest.er1
7215 ac_status=$?
7216 grep -v '^ *+' conftest.er1 >conftest.err
7217 rm -f conftest.er1
7218 cat conftest.err >&5
7219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220 (exit $ac_status); } && {
7221 test -z "$ac_c_werror_flag" ||
7222 test ! -s conftest.err
7223 } && test -s conftest.$ac_objext; then
7224 emacs_cv_speed_t=yes
7225 else
7226 echo "$as_me: failed program was:" >&5
7227 sed 's/^/| /' conftest.$ac_ext >&5
7229 emacs_cv_speed_t=no
7232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7234 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7235 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7236 if test $emacs_cv_speed_t = yes; then
7238 cat >>confdefs.h <<\_ACEOF
7239 #define HAVE_SPEED_T 1
7240 _ACEOF
7244 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7245 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7246 if test "${emacs_cv_struct_timeval+set}" = set; then
7247 echo $ECHO_N "(cached) $ECHO_C" >&6
7248 else
7249 cat >conftest.$ac_ext <<_ACEOF
7250 /* confdefs.h. */
7251 _ACEOF
7252 cat confdefs.h >>conftest.$ac_ext
7253 cat >>conftest.$ac_ext <<_ACEOF
7254 /* end confdefs.h. */
7255 #ifdef TIME_WITH_SYS_TIME
7256 #include <sys/time.h>
7257 #include <time.h>
7258 #else
7259 #ifdef HAVE_SYS_TIME_H
7260 #include <sys/time.h>
7261 #else
7262 #include <time.h>
7263 #endif
7264 #endif
7266 main ()
7268 static struct timeval x; x.tv_sec = x.tv_usec;
7270 return 0;
7272 _ACEOF
7273 rm -f conftest.$ac_objext
7274 if { (ac_try="$ac_compile"
7275 case "(($ac_try" in
7276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7277 *) ac_try_echo=$ac_try;;
7278 esac
7279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7280 (eval "$ac_compile") 2>conftest.er1
7281 ac_status=$?
7282 grep -v '^ *+' conftest.er1 >conftest.err
7283 rm -f conftest.er1
7284 cat conftest.err >&5
7285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286 (exit $ac_status); } && {
7287 test -z "$ac_c_werror_flag" ||
7288 test ! -s conftest.err
7289 } && test -s conftest.$ac_objext; then
7290 emacs_cv_struct_timeval=yes
7291 else
7292 echo "$as_me: failed program was:" >&5
7293 sed 's/^/| /' conftest.$ac_ext >&5
7295 emacs_cv_struct_timeval=no
7298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7300 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7301 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7302 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7303 if test $emacs_cv_struct_timeval = yes; then
7305 cat >>confdefs.h <<\_ACEOF
7306 #define HAVE_TIMEVAL 1
7307 _ACEOF
7311 { echo "$as_me:$LINENO: checking for struct exception" >&5
7312 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7313 if test "${emacs_cv_struct_exception+set}" = set; then
7314 echo $ECHO_N "(cached) $ECHO_C" >&6
7315 else
7316 cat >conftest.$ac_ext <<_ACEOF
7317 /* confdefs.h. */
7318 _ACEOF
7319 cat confdefs.h >>conftest.$ac_ext
7320 cat >>conftest.$ac_ext <<_ACEOF
7321 /* end confdefs.h. */
7322 #include <math.h>
7324 main ()
7326 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7328 return 0;
7330 _ACEOF
7331 rm -f conftest.$ac_objext
7332 if { (ac_try="$ac_compile"
7333 case "(($ac_try" in
7334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7335 *) ac_try_echo=$ac_try;;
7336 esac
7337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7338 (eval "$ac_compile") 2>conftest.er1
7339 ac_status=$?
7340 grep -v '^ *+' conftest.er1 >conftest.err
7341 rm -f conftest.er1
7342 cat conftest.err >&5
7343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344 (exit $ac_status); } && {
7345 test -z "$ac_c_werror_flag" ||
7346 test ! -s conftest.err
7347 } && test -s conftest.$ac_objext; then
7348 emacs_cv_struct_exception=yes
7349 else
7350 echo "$as_me: failed program was:" >&5
7351 sed 's/^/| /' conftest.$ac_ext >&5
7353 emacs_cv_struct_exception=no
7356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7358 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7359 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7360 HAVE_EXCEPTION=$emacs_cv_struct_exception
7361 if test $emacs_cv_struct_exception != yes; then
7363 cat >>confdefs.h <<\_ACEOF
7364 #define NO_MATHERR 1
7365 _ACEOF
7370 for ac_header in sys/socket.h
7372 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7374 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7377 echo $ECHO_N "(cached) $ECHO_C" >&6
7379 ac_res=`eval echo '${'$as_ac_Header'}'`
7380 { echo "$as_me:$LINENO: result: $ac_res" >&5
7381 echo "${ECHO_T}$ac_res" >&6; }
7382 else
7383 # Is the header compilable?
7384 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7385 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7386 cat >conftest.$ac_ext <<_ACEOF
7387 /* confdefs.h. */
7388 _ACEOF
7389 cat confdefs.h >>conftest.$ac_ext
7390 cat >>conftest.$ac_ext <<_ACEOF
7391 /* end confdefs.h. */
7392 $ac_includes_default
7393 #include <$ac_header>
7394 _ACEOF
7395 rm -f conftest.$ac_objext
7396 if { (ac_try="$ac_compile"
7397 case "(($ac_try" in
7398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7399 *) ac_try_echo=$ac_try;;
7400 esac
7401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7402 (eval "$ac_compile") 2>conftest.er1
7403 ac_status=$?
7404 grep -v '^ *+' conftest.er1 >conftest.err
7405 rm -f conftest.er1
7406 cat conftest.err >&5
7407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408 (exit $ac_status); } && {
7409 test -z "$ac_c_werror_flag" ||
7410 test ! -s conftest.err
7411 } && test -s conftest.$ac_objext; then
7412 ac_header_compiler=yes
7413 else
7414 echo "$as_me: failed program was:" >&5
7415 sed 's/^/| /' conftest.$ac_ext >&5
7417 ac_header_compiler=no
7420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7421 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7422 echo "${ECHO_T}$ac_header_compiler" >&6; }
7424 # Is the header present?
7425 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7426 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7427 cat >conftest.$ac_ext <<_ACEOF
7428 /* confdefs.h. */
7429 _ACEOF
7430 cat confdefs.h >>conftest.$ac_ext
7431 cat >>conftest.$ac_ext <<_ACEOF
7432 /* end confdefs.h. */
7433 #include <$ac_header>
7434 _ACEOF
7435 if { (ac_try="$ac_cpp conftest.$ac_ext"
7436 case "(($ac_try" in
7437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7438 *) ac_try_echo=$ac_try;;
7439 esac
7440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7441 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7442 ac_status=$?
7443 grep -v '^ *+' conftest.er1 >conftest.err
7444 rm -f conftest.er1
7445 cat conftest.err >&5
7446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447 (exit $ac_status); } >/dev/null && {
7448 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7449 test ! -s conftest.err
7450 }; then
7451 ac_header_preproc=yes
7452 else
7453 echo "$as_me: failed program was:" >&5
7454 sed 's/^/| /' conftest.$ac_ext >&5
7456 ac_header_preproc=no
7459 rm -f conftest.err conftest.$ac_ext
7460 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7461 echo "${ECHO_T}$ac_header_preproc" >&6; }
7463 # So? What about this header?
7464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7465 yes:no: )
7466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7470 ac_header_preproc=yes
7472 no:yes:* )
7473 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7475 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7476 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7477 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7478 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7479 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7480 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7483 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7484 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7487 esac
7488 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7490 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7491 echo $ECHO_N "(cached) $ECHO_C" >&6
7492 else
7493 eval "$as_ac_Header=\$ac_header_preproc"
7495 ac_res=`eval echo '${'$as_ac_Header'}'`
7496 { echo "$as_me:$LINENO: result: $ac_res" >&5
7497 echo "${ECHO_T}$ac_res" >&6; }
7500 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7501 cat >>confdefs.h <<_ACEOF
7502 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7503 _ACEOF
7507 done
7510 for ac_header in net/if.h
7512 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7513 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7516 echo $ECHO_N "(cached) $ECHO_C" >&6
7517 else
7518 cat >conftest.$ac_ext <<_ACEOF
7519 /* confdefs.h. */
7520 _ACEOF
7521 cat confdefs.h >>conftest.$ac_ext
7522 cat >>conftest.$ac_ext <<_ACEOF
7523 /* end confdefs.h. */
7524 $ac_includes_default
7525 #if HAVE_SYS_SOCKET_H
7526 #include <sys/socket.h>
7527 #endif
7529 #include <$ac_header>
7530 _ACEOF
7531 rm -f conftest.$ac_objext
7532 if { (ac_try="$ac_compile"
7533 case "(($ac_try" in
7534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7535 *) ac_try_echo=$ac_try;;
7536 esac
7537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7538 (eval "$ac_compile") 2>conftest.er1
7539 ac_status=$?
7540 grep -v '^ *+' conftest.er1 >conftest.err
7541 rm -f conftest.er1
7542 cat conftest.err >&5
7543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544 (exit $ac_status); } && {
7545 test -z "$ac_c_werror_flag" ||
7546 test ! -s conftest.err
7547 } && test -s conftest.$ac_objext; then
7548 eval "$as_ac_Header=yes"
7549 else
7550 echo "$as_me: failed program was:" >&5
7551 sed 's/^/| /' conftest.$ac_ext >&5
7553 eval "$as_ac_Header=no"
7556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7558 ac_res=`eval echo '${'$as_ac_Header'}'`
7559 { echo "$as_me:$LINENO: result: $ac_res" >&5
7560 echo "${ECHO_T}$ac_res" >&6; }
7561 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7562 cat >>confdefs.h <<_ACEOF
7563 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7564 _ACEOF
7568 done
7571 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7572 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7573 if test "${ac_cv_struct_tm+set}" = set; then
7574 echo $ECHO_N "(cached) $ECHO_C" >&6
7575 else
7576 cat >conftest.$ac_ext <<_ACEOF
7577 /* confdefs.h. */
7578 _ACEOF
7579 cat confdefs.h >>conftest.$ac_ext
7580 cat >>conftest.$ac_ext <<_ACEOF
7581 /* end confdefs.h. */
7582 #include <sys/types.h>
7583 #include <time.h>
7586 main ()
7588 struct tm tm;
7589 int *p = &tm.tm_sec;
7590 return !p;
7592 return 0;
7594 _ACEOF
7595 rm -f conftest.$ac_objext
7596 if { (ac_try="$ac_compile"
7597 case "(($ac_try" in
7598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7599 *) ac_try_echo=$ac_try;;
7600 esac
7601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7602 (eval "$ac_compile") 2>conftest.er1
7603 ac_status=$?
7604 grep -v '^ *+' conftest.er1 >conftest.err
7605 rm -f conftest.er1
7606 cat conftest.err >&5
7607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); } && {
7609 test -z "$ac_c_werror_flag" ||
7610 test ! -s conftest.err
7611 } && test -s conftest.$ac_objext; then
7612 ac_cv_struct_tm=time.h
7613 else
7614 echo "$as_me: failed program was:" >&5
7615 sed 's/^/| /' conftest.$ac_ext >&5
7617 ac_cv_struct_tm=sys/time.h
7620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7622 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7623 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7624 if test $ac_cv_struct_tm = sys/time.h; then
7626 cat >>confdefs.h <<\_ACEOF
7627 #define TM_IN_SYS_TIME 1
7628 _ACEOF
7632 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7633 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7634 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7635 echo $ECHO_N "(cached) $ECHO_C" >&6
7636 else
7637 cat >conftest.$ac_ext <<_ACEOF
7638 /* confdefs.h. */
7639 _ACEOF
7640 cat confdefs.h >>conftest.$ac_ext
7641 cat >>conftest.$ac_ext <<_ACEOF
7642 /* end confdefs.h. */
7643 #include <sys/types.h>
7644 #include <$ac_cv_struct_tm>
7648 main ()
7650 static struct tm ac_aggr;
7651 if (ac_aggr.tm_zone)
7652 return 0;
7654 return 0;
7656 _ACEOF
7657 rm -f conftest.$ac_objext
7658 if { (ac_try="$ac_compile"
7659 case "(($ac_try" in
7660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7661 *) ac_try_echo=$ac_try;;
7662 esac
7663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7664 (eval "$ac_compile") 2>conftest.er1
7665 ac_status=$?
7666 grep -v '^ *+' conftest.er1 >conftest.err
7667 rm -f conftest.er1
7668 cat conftest.err >&5
7669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); } && {
7671 test -z "$ac_c_werror_flag" ||
7672 test ! -s conftest.err
7673 } && test -s conftest.$ac_objext; then
7674 ac_cv_member_struct_tm_tm_zone=yes
7675 else
7676 echo "$as_me: failed program was:" >&5
7677 sed 's/^/| /' conftest.$ac_ext >&5
7679 cat >conftest.$ac_ext <<_ACEOF
7680 /* confdefs.h. */
7681 _ACEOF
7682 cat confdefs.h >>conftest.$ac_ext
7683 cat >>conftest.$ac_ext <<_ACEOF
7684 /* end confdefs.h. */
7685 #include <sys/types.h>
7686 #include <$ac_cv_struct_tm>
7690 main ()
7692 static struct tm ac_aggr;
7693 if (sizeof ac_aggr.tm_zone)
7694 return 0;
7696 return 0;
7698 _ACEOF
7699 rm -f conftest.$ac_objext
7700 if { (ac_try="$ac_compile"
7701 case "(($ac_try" in
7702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7703 *) ac_try_echo=$ac_try;;
7704 esac
7705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7706 (eval "$ac_compile") 2>conftest.er1
7707 ac_status=$?
7708 grep -v '^ *+' conftest.er1 >conftest.err
7709 rm -f conftest.er1
7710 cat conftest.err >&5
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); } && {
7713 test -z "$ac_c_werror_flag" ||
7714 test ! -s conftest.err
7715 } && test -s conftest.$ac_objext; then
7716 ac_cv_member_struct_tm_tm_zone=yes
7717 else
7718 echo "$as_me: failed program was:" >&5
7719 sed 's/^/| /' conftest.$ac_ext >&5
7721 ac_cv_member_struct_tm_tm_zone=no
7724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7729 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7730 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7731 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7733 cat >>confdefs.h <<_ACEOF
7734 #define HAVE_STRUCT_TM_TM_ZONE 1
7735 _ACEOF
7740 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7742 cat >>confdefs.h <<\_ACEOF
7743 #define HAVE_TM_ZONE 1
7744 _ACEOF
7746 else
7747 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7748 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7749 if test "${ac_cv_have_decl_tzname+set}" = set; then
7750 echo $ECHO_N "(cached) $ECHO_C" >&6
7751 else
7752 cat >conftest.$ac_ext <<_ACEOF
7753 /* confdefs.h. */
7754 _ACEOF
7755 cat confdefs.h >>conftest.$ac_ext
7756 cat >>conftest.$ac_ext <<_ACEOF
7757 /* end confdefs.h. */
7758 #include <time.h>
7761 main ()
7763 #ifndef tzname
7764 (void) tzname;
7765 #endif
7768 return 0;
7770 _ACEOF
7771 rm -f conftest.$ac_objext
7772 if { (ac_try="$ac_compile"
7773 case "(($ac_try" in
7774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7775 *) ac_try_echo=$ac_try;;
7776 esac
7777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7778 (eval "$ac_compile") 2>conftest.er1
7779 ac_status=$?
7780 grep -v '^ *+' conftest.er1 >conftest.err
7781 rm -f conftest.er1
7782 cat conftest.err >&5
7783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784 (exit $ac_status); } && {
7785 test -z "$ac_c_werror_flag" ||
7786 test ! -s conftest.err
7787 } && test -s conftest.$ac_objext; then
7788 ac_cv_have_decl_tzname=yes
7789 else
7790 echo "$as_me: failed program was:" >&5
7791 sed 's/^/| /' conftest.$ac_ext >&5
7793 ac_cv_have_decl_tzname=no
7796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7798 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7799 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7800 if test $ac_cv_have_decl_tzname = yes; then
7802 cat >>confdefs.h <<_ACEOF
7803 #define HAVE_DECL_TZNAME 1
7804 _ACEOF
7807 else
7808 cat >>confdefs.h <<_ACEOF
7809 #define HAVE_DECL_TZNAME 0
7810 _ACEOF
7816 { echo "$as_me:$LINENO: checking for tzname" >&5
7817 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7818 if test "${ac_cv_var_tzname+set}" = set; then
7819 echo $ECHO_N "(cached) $ECHO_C" >&6
7820 else
7821 cat >conftest.$ac_ext <<_ACEOF
7822 /* confdefs.h. */
7823 _ACEOF
7824 cat confdefs.h >>conftest.$ac_ext
7825 cat >>conftest.$ac_ext <<_ACEOF
7826 /* end confdefs.h. */
7827 #include <time.h>
7828 #if !HAVE_DECL_TZNAME
7829 extern char *tzname[];
7830 #endif
7833 main ()
7835 return tzname[0][0];
7837 return 0;
7839 _ACEOF
7840 rm -f conftest.$ac_objext conftest$ac_exeext
7841 if { (ac_try="$ac_link"
7842 case "(($ac_try" in
7843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7844 *) ac_try_echo=$ac_try;;
7845 esac
7846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7847 (eval "$ac_link") 2>conftest.er1
7848 ac_status=$?
7849 grep -v '^ *+' conftest.er1 >conftest.err
7850 rm -f conftest.er1
7851 cat conftest.err >&5
7852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853 (exit $ac_status); } && {
7854 test -z "$ac_c_werror_flag" ||
7855 test ! -s conftest.err
7856 } && test -s conftest$ac_exeext &&
7857 $as_test_x conftest$ac_exeext; then
7858 ac_cv_var_tzname=yes
7859 else
7860 echo "$as_me: failed program was:" >&5
7861 sed 's/^/| /' conftest.$ac_ext >&5
7863 ac_cv_var_tzname=no
7866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7867 conftest$ac_exeext conftest.$ac_ext
7869 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7870 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7871 if test $ac_cv_var_tzname = yes; then
7873 cat >>confdefs.h <<\_ACEOF
7874 #define HAVE_TZNAME 1
7875 _ACEOF
7880 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7881 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7882 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7883 echo $ECHO_N "(cached) $ECHO_C" >&6
7884 else
7885 cat >conftest.$ac_ext <<_ACEOF
7886 /* confdefs.h. */
7887 _ACEOF
7888 cat confdefs.h >>conftest.$ac_ext
7889 cat >>conftest.$ac_ext <<_ACEOF
7890 /* end confdefs.h. */
7891 #include <time.h>
7894 main ()
7896 static struct tm ac_aggr;
7897 if (ac_aggr.tm_gmtoff)
7898 return 0;
7900 return 0;
7902 _ACEOF
7903 rm -f conftest.$ac_objext
7904 if { (ac_try="$ac_compile"
7905 case "(($ac_try" in
7906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7907 *) ac_try_echo=$ac_try;;
7908 esac
7909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7910 (eval "$ac_compile") 2>conftest.er1
7911 ac_status=$?
7912 grep -v '^ *+' conftest.er1 >conftest.err
7913 rm -f conftest.er1
7914 cat conftest.err >&5
7915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916 (exit $ac_status); } && {
7917 test -z "$ac_c_werror_flag" ||
7918 test ! -s conftest.err
7919 } && test -s conftest.$ac_objext; then
7920 ac_cv_member_struct_tm_tm_gmtoff=yes
7921 else
7922 echo "$as_me: failed program was:" >&5
7923 sed 's/^/| /' conftest.$ac_ext >&5
7925 cat >conftest.$ac_ext <<_ACEOF
7926 /* confdefs.h. */
7927 _ACEOF
7928 cat confdefs.h >>conftest.$ac_ext
7929 cat >>conftest.$ac_ext <<_ACEOF
7930 /* end confdefs.h. */
7931 #include <time.h>
7934 main ()
7936 static struct tm ac_aggr;
7937 if (sizeof ac_aggr.tm_gmtoff)
7938 return 0;
7940 return 0;
7942 _ACEOF
7943 rm -f conftest.$ac_objext
7944 if { (ac_try="$ac_compile"
7945 case "(($ac_try" in
7946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7947 *) ac_try_echo=$ac_try;;
7948 esac
7949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7950 (eval "$ac_compile") 2>conftest.er1
7951 ac_status=$?
7952 grep -v '^ *+' conftest.er1 >conftest.err
7953 rm -f conftest.er1
7954 cat conftest.err >&5
7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); } && {
7957 test -z "$ac_c_werror_flag" ||
7958 test ! -s conftest.err
7959 } && test -s conftest.$ac_objext; then
7960 ac_cv_member_struct_tm_tm_gmtoff=yes
7961 else
7962 echo "$as_me: failed program was:" >&5
7963 sed 's/^/| /' conftest.$ac_ext >&5
7965 ac_cv_member_struct_tm_tm_gmtoff=no
7968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7973 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7974 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7975 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7977 cat >>confdefs.h <<\_ACEOF
7978 #define HAVE_TM_GMTOFF 1
7979 _ACEOF
7983 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7984 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
7985 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7986 echo $ECHO_N "(cached) $ECHO_C" >&6
7987 else
7988 cat >conftest.$ac_ext <<_ACEOF
7989 /* confdefs.h. */
7990 _ACEOF
7991 cat confdefs.h >>conftest.$ac_ext
7992 cat >>conftest.$ac_ext <<_ACEOF
7993 /* end confdefs.h. */
7994 $ac_includes_default
7995 #if HAVE_SYS_SOCKET_H
7996 #include <sys/socket.h>
7997 #endif
7998 #if HAVE_NET_IF_H
7999 #include <net/if.h>
8000 #endif
8003 main ()
8005 static struct ifreq ac_aggr;
8006 if (ac_aggr.ifr_flags)
8007 return 0;
8009 return 0;
8011 _ACEOF
8012 rm -f conftest.$ac_objext
8013 if { (ac_try="$ac_compile"
8014 case "(($ac_try" in
8015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8016 *) ac_try_echo=$ac_try;;
8017 esac
8018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8019 (eval "$ac_compile") 2>conftest.er1
8020 ac_status=$?
8021 grep -v '^ *+' conftest.er1 >conftest.err
8022 rm -f conftest.er1
8023 cat conftest.err >&5
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); } && {
8026 test -z "$ac_c_werror_flag" ||
8027 test ! -s conftest.err
8028 } && test -s conftest.$ac_objext; then
8029 ac_cv_member_struct_ifreq_ifr_flags=yes
8030 else
8031 echo "$as_me: failed program was:" >&5
8032 sed 's/^/| /' conftest.$ac_ext >&5
8034 cat >conftest.$ac_ext <<_ACEOF
8035 /* confdefs.h. */
8036 _ACEOF
8037 cat confdefs.h >>conftest.$ac_ext
8038 cat >>conftest.$ac_ext <<_ACEOF
8039 /* end confdefs.h. */
8040 $ac_includes_default
8041 #if HAVE_SYS_SOCKET_H
8042 #include <sys/socket.h>
8043 #endif
8044 #if HAVE_NET_IF_H
8045 #include <net/if.h>
8046 #endif
8049 main ()
8051 static struct ifreq ac_aggr;
8052 if (sizeof ac_aggr.ifr_flags)
8053 return 0;
8055 return 0;
8057 _ACEOF
8058 rm -f conftest.$ac_objext
8059 if { (ac_try="$ac_compile"
8060 case "(($ac_try" in
8061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8062 *) ac_try_echo=$ac_try;;
8063 esac
8064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8065 (eval "$ac_compile") 2>conftest.er1
8066 ac_status=$?
8067 grep -v '^ *+' conftest.er1 >conftest.err
8068 rm -f conftest.er1
8069 cat conftest.err >&5
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); } && {
8072 test -z "$ac_c_werror_flag" ||
8073 test ! -s conftest.err
8074 } && test -s conftest.$ac_objext; then
8075 ac_cv_member_struct_ifreq_ifr_flags=yes
8076 else
8077 echo "$as_me: failed program was:" >&5
8078 sed 's/^/| /' conftest.$ac_ext >&5
8080 ac_cv_member_struct_ifreq_ifr_flags=no
8083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8088 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8089 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8090 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8092 cat >>confdefs.h <<_ACEOF
8093 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8094 _ACEOF
8098 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8099 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8100 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8101 echo $ECHO_N "(cached) $ECHO_C" >&6
8102 else
8103 cat >conftest.$ac_ext <<_ACEOF
8104 /* confdefs.h. */
8105 _ACEOF
8106 cat confdefs.h >>conftest.$ac_ext
8107 cat >>conftest.$ac_ext <<_ACEOF
8108 /* end confdefs.h. */
8109 $ac_includes_default
8110 #if HAVE_SYS_SOCKET_H
8111 #include <sys/socket.h>
8112 #endif
8113 #if HAVE_NET_IF_H
8114 #include <net/if.h>
8115 #endif
8118 main ()
8120 static struct ifreq ac_aggr;
8121 if (ac_aggr.ifr_hwaddr)
8122 return 0;
8124 return 0;
8126 _ACEOF
8127 rm -f conftest.$ac_objext
8128 if { (ac_try="$ac_compile"
8129 case "(($ac_try" in
8130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8131 *) ac_try_echo=$ac_try;;
8132 esac
8133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8134 (eval "$ac_compile") 2>conftest.er1
8135 ac_status=$?
8136 grep -v '^ *+' conftest.er1 >conftest.err
8137 rm -f conftest.er1
8138 cat conftest.err >&5
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); } && {
8141 test -z "$ac_c_werror_flag" ||
8142 test ! -s conftest.err
8143 } && test -s conftest.$ac_objext; then
8144 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8145 else
8146 echo "$as_me: failed program was:" >&5
8147 sed 's/^/| /' conftest.$ac_ext >&5
8149 cat >conftest.$ac_ext <<_ACEOF
8150 /* confdefs.h. */
8151 _ACEOF
8152 cat confdefs.h >>conftest.$ac_ext
8153 cat >>conftest.$ac_ext <<_ACEOF
8154 /* end confdefs.h. */
8155 $ac_includes_default
8156 #if HAVE_SYS_SOCKET_H
8157 #include <sys/socket.h>
8158 #endif
8159 #if HAVE_NET_IF_H
8160 #include <net/if.h>
8161 #endif
8164 main ()
8166 static struct ifreq ac_aggr;
8167 if (sizeof ac_aggr.ifr_hwaddr)
8168 return 0;
8170 return 0;
8172 _ACEOF
8173 rm -f conftest.$ac_objext
8174 if { (ac_try="$ac_compile"
8175 case "(($ac_try" in
8176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8177 *) ac_try_echo=$ac_try;;
8178 esac
8179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8180 (eval "$ac_compile") 2>conftest.er1
8181 ac_status=$?
8182 grep -v '^ *+' conftest.er1 >conftest.err
8183 rm -f conftest.er1
8184 cat conftest.err >&5
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); } && {
8187 test -z "$ac_c_werror_flag" ||
8188 test ! -s conftest.err
8189 } && test -s conftest.$ac_objext; then
8190 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8191 else
8192 echo "$as_me: failed program was:" >&5
8193 sed 's/^/| /' conftest.$ac_ext >&5
8195 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8203 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8204 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8205 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8207 cat >>confdefs.h <<_ACEOF
8208 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8209 _ACEOF
8213 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8214 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8215 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8216 echo $ECHO_N "(cached) $ECHO_C" >&6
8217 else
8218 cat >conftest.$ac_ext <<_ACEOF
8219 /* confdefs.h. */
8220 _ACEOF
8221 cat confdefs.h >>conftest.$ac_ext
8222 cat >>conftest.$ac_ext <<_ACEOF
8223 /* end confdefs.h. */
8224 $ac_includes_default
8225 #if HAVE_SYS_SOCKET_H
8226 #include <sys/socket.h>
8227 #endif
8228 #if HAVE_NET_IF_H
8229 #include <net/if.h>
8230 #endif
8233 main ()
8235 static struct ifreq ac_aggr;
8236 if (ac_aggr.ifr_netmask)
8237 return 0;
8239 return 0;
8241 _ACEOF
8242 rm -f conftest.$ac_objext
8243 if { (ac_try="$ac_compile"
8244 case "(($ac_try" in
8245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8246 *) ac_try_echo=$ac_try;;
8247 esac
8248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8249 (eval "$ac_compile") 2>conftest.er1
8250 ac_status=$?
8251 grep -v '^ *+' conftest.er1 >conftest.err
8252 rm -f conftest.er1
8253 cat conftest.err >&5
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); } && {
8256 test -z "$ac_c_werror_flag" ||
8257 test ! -s conftest.err
8258 } && test -s conftest.$ac_objext; then
8259 ac_cv_member_struct_ifreq_ifr_netmask=yes
8260 else
8261 echo "$as_me: failed program was:" >&5
8262 sed 's/^/| /' conftest.$ac_ext >&5
8264 cat >conftest.$ac_ext <<_ACEOF
8265 /* confdefs.h. */
8266 _ACEOF
8267 cat confdefs.h >>conftest.$ac_ext
8268 cat >>conftest.$ac_ext <<_ACEOF
8269 /* end confdefs.h. */
8270 $ac_includes_default
8271 #if HAVE_SYS_SOCKET_H
8272 #include <sys/socket.h>
8273 #endif
8274 #if HAVE_NET_IF_H
8275 #include <net/if.h>
8276 #endif
8279 main ()
8281 static struct ifreq ac_aggr;
8282 if (sizeof ac_aggr.ifr_netmask)
8283 return 0;
8285 return 0;
8287 _ACEOF
8288 rm -f conftest.$ac_objext
8289 if { (ac_try="$ac_compile"
8290 case "(($ac_try" in
8291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8292 *) ac_try_echo=$ac_try;;
8293 esac
8294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8295 (eval "$ac_compile") 2>conftest.er1
8296 ac_status=$?
8297 grep -v '^ *+' conftest.er1 >conftest.err
8298 rm -f conftest.er1
8299 cat conftest.err >&5
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); } && {
8302 test -z "$ac_c_werror_flag" ||
8303 test ! -s conftest.err
8304 } && test -s conftest.$ac_objext; then
8305 ac_cv_member_struct_ifreq_ifr_netmask=yes
8306 else
8307 echo "$as_me: failed program was:" >&5
8308 sed 's/^/| /' conftest.$ac_ext >&5
8310 ac_cv_member_struct_ifreq_ifr_netmask=no
8313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8318 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8319 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8320 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8322 cat >>confdefs.h <<_ACEOF
8323 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8324 _ACEOF
8328 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8329 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8330 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8331 echo $ECHO_N "(cached) $ECHO_C" >&6
8332 else
8333 cat >conftest.$ac_ext <<_ACEOF
8334 /* confdefs.h. */
8335 _ACEOF
8336 cat confdefs.h >>conftest.$ac_ext
8337 cat >>conftest.$ac_ext <<_ACEOF
8338 /* end confdefs.h. */
8339 $ac_includes_default
8340 #if HAVE_SYS_SOCKET_H
8341 #include <sys/socket.h>
8342 #endif
8343 #if HAVE_NET_IF_H
8344 #include <net/if.h>
8345 #endif
8348 main ()
8350 static struct ifreq ac_aggr;
8351 if (ac_aggr.ifr_broadaddr)
8352 return 0;
8354 return 0;
8356 _ACEOF
8357 rm -f conftest.$ac_objext
8358 if { (ac_try="$ac_compile"
8359 case "(($ac_try" in
8360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8361 *) ac_try_echo=$ac_try;;
8362 esac
8363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8364 (eval "$ac_compile") 2>conftest.er1
8365 ac_status=$?
8366 grep -v '^ *+' conftest.er1 >conftest.err
8367 rm -f conftest.er1
8368 cat conftest.err >&5
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); } && {
8371 test -z "$ac_c_werror_flag" ||
8372 test ! -s conftest.err
8373 } && test -s conftest.$ac_objext; then
8374 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8375 else
8376 echo "$as_me: failed program was:" >&5
8377 sed 's/^/| /' conftest.$ac_ext >&5
8379 cat >conftest.$ac_ext <<_ACEOF
8380 /* confdefs.h. */
8381 _ACEOF
8382 cat confdefs.h >>conftest.$ac_ext
8383 cat >>conftest.$ac_ext <<_ACEOF
8384 /* end confdefs.h. */
8385 $ac_includes_default
8386 #if HAVE_SYS_SOCKET_H
8387 #include <sys/socket.h>
8388 #endif
8389 #if HAVE_NET_IF_H
8390 #include <net/if.h>
8391 #endif
8394 main ()
8396 static struct ifreq ac_aggr;
8397 if (sizeof ac_aggr.ifr_broadaddr)
8398 return 0;
8400 return 0;
8402 _ACEOF
8403 rm -f conftest.$ac_objext
8404 if { (ac_try="$ac_compile"
8405 case "(($ac_try" in
8406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8407 *) ac_try_echo=$ac_try;;
8408 esac
8409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8410 (eval "$ac_compile") 2>conftest.er1
8411 ac_status=$?
8412 grep -v '^ *+' conftest.er1 >conftest.err
8413 rm -f conftest.er1
8414 cat conftest.err >&5
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); } && {
8417 test -z "$ac_c_werror_flag" ||
8418 test ! -s conftest.err
8419 } && test -s conftest.$ac_objext; then
8420 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8421 else
8422 echo "$as_me: failed program was:" >&5
8423 sed 's/^/| /' conftest.$ac_ext >&5
8425 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8433 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8434 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8435 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8437 cat >>confdefs.h <<_ACEOF
8438 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8439 _ACEOF
8443 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8444 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8445 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8446 echo $ECHO_N "(cached) $ECHO_C" >&6
8447 else
8448 cat >conftest.$ac_ext <<_ACEOF
8449 /* confdefs.h. */
8450 _ACEOF
8451 cat confdefs.h >>conftest.$ac_ext
8452 cat >>conftest.$ac_ext <<_ACEOF
8453 /* end confdefs.h. */
8454 $ac_includes_default
8455 #if HAVE_SYS_SOCKET_H
8456 #include <sys/socket.h>
8457 #endif
8458 #if HAVE_NET_IF_H
8459 #include <net/if.h>
8460 #endif
8463 main ()
8465 static struct ifreq ac_aggr;
8466 if (ac_aggr.ifr_addr)
8467 return 0;
8469 return 0;
8471 _ACEOF
8472 rm -f conftest.$ac_objext
8473 if { (ac_try="$ac_compile"
8474 case "(($ac_try" in
8475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8476 *) ac_try_echo=$ac_try;;
8477 esac
8478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8479 (eval "$ac_compile") 2>conftest.er1
8480 ac_status=$?
8481 grep -v '^ *+' conftest.er1 >conftest.err
8482 rm -f conftest.er1
8483 cat conftest.err >&5
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); } && {
8486 test -z "$ac_c_werror_flag" ||
8487 test ! -s conftest.err
8488 } && test -s conftest.$ac_objext; then
8489 ac_cv_member_struct_ifreq_ifr_addr=yes
8490 else
8491 echo "$as_me: failed program was:" >&5
8492 sed 's/^/| /' conftest.$ac_ext >&5
8494 cat >conftest.$ac_ext <<_ACEOF
8495 /* confdefs.h. */
8496 _ACEOF
8497 cat confdefs.h >>conftest.$ac_ext
8498 cat >>conftest.$ac_ext <<_ACEOF
8499 /* end confdefs.h. */
8500 $ac_includes_default
8501 #if HAVE_SYS_SOCKET_H
8502 #include <sys/socket.h>
8503 #endif
8504 #if HAVE_NET_IF_H
8505 #include <net/if.h>
8506 #endif
8509 main ()
8511 static struct ifreq ac_aggr;
8512 if (sizeof ac_aggr.ifr_addr)
8513 return 0;
8515 return 0;
8517 _ACEOF
8518 rm -f conftest.$ac_objext
8519 if { (ac_try="$ac_compile"
8520 case "(($ac_try" in
8521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8522 *) ac_try_echo=$ac_try;;
8523 esac
8524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8525 (eval "$ac_compile") 2>conftest.er1
8526 ac_status=$?
8527 grep -v '^ *+' conftest.er1 >conftest.err
8528 rm -f conftest.er1
8529 cat conftest.err >&5
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); } && {
8532 test -z "$ac_c_werror_flag" ||
8533 test ! -s conftest.err
8534 } && test -s conftest.$ac_objext; then
8535 ac_cv_member_struct_ifreq_ifr_addr=yes
8536 else
8537 echo "$as_me: failed program was:" >&5
8538 sed 's/^/| /' conftest.$ac_ext >&5
8540 ac_cv_member_struct_ifreq_ifr_addr=no
8543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8548 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8549 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8550 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8552 cat >>confdefs.h <<_ACEOF
8553 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8554 _ACEOF
8561 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8562 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8563 if test "$ac_cv_prog_cc_c89" != no; then
8564 { echo "$as_me:$LINENO: result: yes" >&5
8565 echo "${ECHO_T}yes" >&6; }
8567 cat >>confdefs.h <<\_ACEOF
8568 #define PROTOTYPES 1
8569 _ACEOF
8572 cat >>confdefs.h <<\_ACEOF
8573 #define __PROTOTYPES 1
8574 _ACEOF
8576 else
8577 { echo "$as_me:$LINENO: result: no" >&5
8578 echo "${ECHO_T}no" >&6; }
8581 { echo "$as_me:$LINENO: checking for working volatile" >&5
8582 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8583 if test "${ac_cv_c_volatile+set}" = set; then
8584 echo $ECHO_N "(cached) $ECHO_C" >&6
8585 else
8586 cat >conftest.$ac_ext <<_ACEOF
8587 /* confdefs.h. */
8588 _ACEOF
8589 cat confdefs.h >>conftest.$ac_ext
8590 cat >>conftest.$ac_ext <<_ACEOF
8591 /* end confdefs.h. */
8594 main ()
8597 volatile int x;
8598 int * volatile y = (int *) 0;
8599 return !x && !y;
8601 return 0;
8603 _ACEOF
8604 rm -f conftest.$ac_objext
8605 if { (ac_try="$ac_compile"
8606 case "(($ac_try" in
8607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8608 *) ac_try_echo=$ac_try;;
8609 esac
8610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8611 (eval "$ac_compile") 2>conftest.er1
8612 ac_status=$?
8613 grep -v '^ *+' conftest.er1 >conftest.err
8614 rm -f conftest.er1
8615 cat conftest.err >&5
8616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617 (exit $ac_status); } && {
8618 test -z "$ac_c_werror_flag" ||
8619 test ! -s conftest.err
8620 } && test -s conftest.$ac_objext; then
8621 ac_cv_c_volatile=yes
8622 else
8623 echo "$as_me: failed program was:" >&5
8624 sed 's/^/| /' conftest.$ac_ext >&5
8626 ac_cv_c_volatile=no
8629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8631 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8632 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8633 if test $ac_cv_c_volatile = no; then
8635 cat >>confdefs.h <<\_ACEOF
8636 #define volatile
8637 _ACEOF
8641 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8642 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8643 if test "${ac_cv_c_const+set}" = set; then
8644 echo $ECHO_N "(cached) $ECHO_C" >&6
8645 else
8646 cat >conftest.$ac_ext <<_ACEOF
8647 /* confdefs.h. */
8648 _ACEOF
8649 cat confdefs.h >>conftest.$ac_ext
8650 cat >>conftest.$ac_ext <<_ACEOF
8651 /* end confdefs.h. */
8654 main ()
8656 /* FIXME: Include the comments suggested by Paul. */
8657 #ifndef __cplusplus
8658 /* Ultrix mips cc rejects this. */
8659 typedef int charset[2];
8660 const charset cs;
8661 /* SunOS 4.1.1 cc rejects this. */
8662 char const *const *pcpcc;
8663 char **ppc;
8664 /* NEC SVR4.0.2 mips cc rejects this. */
8665 struct point {int x, y;};
8666 static struct point const zero = {0,0};
8667 /* AIX XL C 1.02.0.0 rejects this.
8668 It does not let you subtract one const X* pointer from another in
8669 an arm of an if-expression whose if-part is not a constant
8670 expression */
8671 const char *g = "string";
8672 pcpcc = &g + (g ? g-g : 0);
8673 /* HPUX 7.0 cc rejects these. */
8674 ++pcpcc;
8675 ppc = (char**) pcpcc;
8676 pcpcc = (char const *const *) ppc;
8677 { /* SCO 3.2v4 cc rejects this. */
8678 char *t;
8679 char const *s = 0 ? (char *) 0 : (char const *) 0;
8681 *t++ = 0;
8682 if (s) return 0;
8684 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8685 int x[] = {25, 17};
8686 const int *foo = &x[0];
8687 ++foo;
8689 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8690 typedef const int *iptr;
8691 iptr p = 0;
8692 ++p;
8694 { /* AIX XL C 1.02.0.0 rejects this saying
8695 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8696 struct s { int j; const int *ap[3]; };
8697 struct s *b; b->j = 5;
8699 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8700 const int foo = 10;
8701 if (!foo) return 0;
8703 return !cs[0] && !zero.x;
8704 #endif
8707 return 0;
8709 _ACEOF
8710 rm -f conftest.$ac_objext
8711 if { (ac_try="$ac_compile"
8712 case "(($ac_try" in
8713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8714 *) ac_try_echo=$ac_try;;
8715 esac
8716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8717 (eval "$ac_compile") 2>conftest.er1
8718 ac_status=$?
8719 grep -v '^ *+' conftest.er1 >conftest.err
8720 rm -f conftest.er1
8721 cat conftest.err >&5
8722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723 (exit $ac_status); } && {
8724 test -z "$ac_c_werror_flag" ||
8725 test ! -s conftest.err
8726 } && test -s conftest.$ac_objext; then
8727 ac_cv_c_const=yes
8728 else
8729 echo "$as_me: failed program was:" >&5
8730 sed 's/^/| /' conftest.$ac_ext >&5
8732 ac_cv_c_const=no
8735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8737 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8738 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8739 if test $ac_cv_c_const = no; then
8741 cat >>confdefs.h <<\_ACEOF
8742 #define const
8743 _ACEOF
8747 { echo "$as_me:$LINENO: checking for void * support" >&5
8748 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8749 if test "${emacs_cv_void_star+set}" = set; then
8750 echo $ECHO_N "(cached) $ECHO_C" >&6
8751 else
8752 cat >conftest.$ac_ext <<_ACEOF
8753 /* confdefs.h. */
8754 _ACEOF
8755 cat confdefs.h >>conftest.$ac_ext
8756 cat >>conftest.$ac_ext <<_ACEOF
8757 /* end confdefs.h. */
8760 main ()
8762 void * foo;
8764 return 0;
8766 _ACEOF
8767 rm -f conftest.$ac_objext
8768 if { (ac_try="$ac_compile"
8769 case "(($ac_try" in
8770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8771 *) ac_try_echo=$ac_try;;
8772 esac
8773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8774 (eval "$ac_compile") 2>conftest.er1
8775 ac_status=$?
8776 grep -v '^ *+' conftest.er1 >conftest.err
8777 rm -f conftest.er1
8778 cat conftest.err >&5
8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 (exit $ac_status); } && {
8781 test -z "$ac_c_werror_flag" ||
8782 test ! -s conftest.err
8783 } && test -s conftest.$ac_objext; then
8784 emacs_cv_void_star=yes
8785 else
8786 echo "$as_me: failed program was:" >&5
8787 sed 's/^/| /' conftest.$ac_ext >&5
8789 emacs_cv_void_star=no
8792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8794 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8795 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8796 if test $emacs_cv_void_star = yes; then
8797 cat >>confdefs.h <<\_ACEOF
8798 #define POINTER_TYPE void
8799 _ACEOF
8801 else
8802 cat >>confdefs.h <<\_ACEOF
8803 #define POINTER_TYPE char
8804 _ACEOF
8812 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8813 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8814 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8815 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8816 echo $ECHO_N "(cached) $ECHO_C" >&6
8817 else
8818 cat >conftest.make <<\_ACEOF
8819 SHELL = /bin/sh
8820 all:
8821 @echo '@@@%%%=$(MAKE)=@@@%%%'
8822 _ACEOF
8823 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8824 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8825 *@@@%%%=?*=@@@%%%*)
8826 eval ac_cv_prog_make_${ac_make}_set=yes;;
8828 eval ac_cv_prog_make_${ac_make}_set=no;;
8829 esac
8830 rm -f conftest.make
8832 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8833 { echo "$as_me:$LINENO: result: yes" >&5
8834 echo "${ECHO_T}yes" >&6; }
8835 SET_MAKE=
8836 else
8837 { echo "$as_me:$LINENO: result: no" >&5
8838 echo "${ECHO_T}no" >&6; }
8839 SET_MAKE="MAKE=${MAKE-make}"
8843 { echo "$as_me:$LINENO: checking for long file names" >&5
8844 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8845 if test "${ac_cv_sys_long_file_names+set}" = set; then
8846 echo $ECHO_N "(cached) $ECHO_C" >&6
8847 else
8848 ac_cv_sys_long_file_names=yes
8849 # Test for long file names in all the places we know might matter:
8850 # . the current directory, where building will happen
8851 # $prefix/lib where we will be installing things
8852 # $exec_prefix/lib likewise
8853 # $TMPDIR if set, where it might want to write temporary files
8854 # /tmp where it might want to write temporary files
8855 # /var/tmp likewise
8856 # /usr/tmp likewise
8857 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8858 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8859 # in the usual case where exec_prefix is '${prefix}'.
8860 case $ac_dir in #(
8861 . | /* | ?:[\\/]*) ;; #(
8862 *) continue;;
8863 esac
8864 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8865 ac_xdir=$ac_dir/cf$$
8866 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8867 ac_tf1=$ac_xdir/conftest9012345
8868 ac_tf2=$ac_xdir/conftest9012346
8869 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8870 ac_cv_sys_long_file_names=no
8871 rm -f -r "$ac_xdir" 2>/dev/null
8872 test $ac_cv_sys_long_file_names = no && break
8873 done
8875 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8876 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8877 if test $ac_cv_sys_long_file_names = yes; then
8879 cat >>confdefs.h <<\_ACEOF
8880 #define HAVE_LONG_FILE_NAMES 1
8881 _ACEOF
8886 #### Choose a window system.
8888 { echo "$as_me:$LINENO: checking for X" >&5
8889 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8892 # Check whether --with-x was given.
8893 if test "${with_x+set}" = set; then
8894 withval=$with_x;
8897 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8898 if test "x$with_x" = xno; then
8899 # The user explicitly disabled X.
8900 have_x=disabled
8901 else
8902 case $x_includes,$x_libraries in #(
8903 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8904 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8905 { (exit 1); exit 1; }; };; #(
8906 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8907 echo $ECHO_N "(cached) $ECHO_C" >&6
8908 else
8909 # One or both of the vars are not set, and there is no cached value.
8910 ac_x_includes=no ac_x_libraries=no
8911 rm -f -r conftest.dir
8912 if mkdir conftest.dir; then
8913 cd conftest.dir
8914 cat >Imakefile <<'_ACEOF'
8915 incroot:
8916 @echo incroot='${INCROOT}'
8917 usrlibdir:
8918 @echo usrlibdir='${USRLIBDIR}'
8919 libdir:
8920 @echo libdir='${LIBDIR}'
8921 _ACEOF
8922 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8923 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8924 for ac_var in incroot usrlibdir libdir; do
8925 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8926 done
8927 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8928 for ac_extension in a so sl; do
8929 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8930 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8931 ac_im_usrlibdir=$ac_im_libdir; break
8933 done
8934 # Screen out bogus values from the imake configuration. They are
8935 # bogus both because they are the default anyway, and because
8936 # using them would break gcc on systems where it needs fixed includes.
8937 case $ac_im_incroot in
8938 /usr/include) ac_x_includes= ;;
8939 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8940 esac
8941 case $ac_im_usrlibdir in
8942 /usr/lib | /lib) ;;
8943 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8944 esac
8946 cd ..
8947 rm -f -r conftest.dir
8950 # Standard set of common directories for X headers.
8951 # Check X11 before X11Rn because it is often a symlink to the current release.
8952 ac_x_header_dirs='
8953 /usr/X11/include
8954 /usr/X11R6/include
8955 /usr/X11R5/include
8956 /usr/X11R4/include
8958 /usr/include/X11
8959 /usr/include/X11R6
8960 /usr/include/X11R5
8961 /usr/include/X11R4
8963 /usr/local/X11/include
8964 /usr/local/X11R6/include
8965 /usr/local/X11R5/include
8966 /usr/local/X11R4/include
8968 /usr/local/include/X11
8969 /usr/local/include/X11R6
8970 /usr/local/include/X11R5
8971 /usr/local/include/X11R4
8973 /usr/X386/include
8974 /usr/x386/include
8975 /usr/XFree86/include/X11
8977 /usr/include
8978 /usr/local/include
8979 /usr/unsupported/include
8980 /usr/athena/include
8981 /usr/local/x11r5/include
8982 /usr/lpp/Xamples/include
8984 /usr/openwin/include
8985 /usr/openwin/share/include'
8987 if test "$ac_x_includes" = no; then
8988 # Guess where to find include files, by looking for Xlib.h.
8989 # First, try using that file with no special directory specified.
8990 cat >conftest.$ac_ext <<_ACEOF
8991 /* confdefs.h. */
8992 _ACEOF
8993 cat confdefs.h >>conftest.$ac_ext
8994 cat >>conftest.$ac_ext <<_ACEOF
8995 /* end confdefs.h. */
8996 #include <X11/Xlib.h>
8997 _ACEOF
8998 if { (ac_try="$ac_cpp conftest.$ac_ext"
8999 case "(($ac_try" in
9000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9001 *) ac_try_echo=$ac_try;;
9002 esac
9003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9004 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9005 ac_status=$?
9006 grep -v '^ *+' conftest.er1 >conftest.err
9007 rm -f conftest.er1
9008 cat conftest.err >&5
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); } >/dev/null && {
9011 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9012 test ! -s conftest.err
9013 }; then
9014 # We can compile using X headers with no special include directory.
9015 ac_x_includes=
9016 else
9017 echo "$as_me: failed program was:" >&5
9018 sed 's/^/| /' conftest.$ac_ext >&5
9020 for ac_dir in $ac_x_header_dirs; do
9021 if test -r "$ac_dir/X11/Xlib.h"; then
9022 ac_x_includes=$ac_dir
9023 break
9025 done
9028 rm -f conftest.err conftest.$ac_ext
9029 fi # $ac_x_includes = no
9031 if test "$ac_x_libraries" = no; then
9032 # Check for the libraries.
9033 # See if we find them without any special options.
9034 # Don't add to $LIBS permanently.
9035 ac_save_LIBS=$LIBS
9036 LIBS="-lX11 $LIBS"
9037 cat >conftest.$ac_ext <<_ACEOF
9038 /* confdefs.h. */
9039 _ACEOF
9040 cat confdefs.h >>conftest.$ac_ext
9041 cat >>conftest.$ac_ext <<_ACEOF
9042 /* end confdefs.h. */
9043 #include <X11/Xlib.h>
9045 main ()
9047 XrmInitialize ()
9049 return 0;
9051 _ACEOF
9052 rm -f conftest.$ac_objext conftest$ac_exeext
9053 if { (ac_try="$ac_link"
9054 case "(($ac_try" in
9055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9056 *) ac_try_echo=$ac_try;;
9057 esac
9058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9059 (eval "$ac_link") 2>conftest.er1
9060 ac_status=$?
9061 grep -v '^ *+' conftest.er1 >conftest.err
9062 rm -f conftest.er1
9063 cat conftest.err >&5
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); } && {
9066 test -z "$ac_c_werror_flag" ||
9067 test ! -s conftest.err
9068 } && test -s conftest$ac_exeext &&
9069 $as_test_x conftest$ac_exeext; then
9070 LIBS=$ac_save_LIBS
9071 # We can link X programs with no special library path.
9072 ac_x_libraries=
9073 else
9074 echo "$as_me: failed program was:" >&5
9075 sed 's/^/| /' conftest.$ac_ext >&5
9077 LIBS=$ac_save_LIBS
9078 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9080 # Don't even attempt the hair of trying to link an X program!
9081 for ac_extension in a so sl; do
9082 if test -r "$ac_dir/libX11.$ac_extension"; then
9083 ac_x_libraries=$ac_dir
9084 break 2
9086 done
9087 done
9090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9091 conftest$ac_exeext conftest.$ac_ext
9092 fi # $ac_x_libraries = no
9094 case $ac_x_includes,$ac_x_libraries in #(
9095 no,* | *,no | *\'*)
9096 # Didn't find X, or a directory has "'" in its name.
9097 ac_cv_have_x="have_x=no";; #(
9099 # Record where we found X for the cache.
9100 ac_cv_have_x="have_x=yes\
9101 ac_x_includes='$ac_x_includes'\
9102 ac_x_libraries='$ac_x_libraries'"
9103 esac
9105 ;; #(
9106 *) have_x=yes;;
9107 esac
9108 eval "$ac_cv_have_x"
9109 fi # $with_x != no
9111 if test "$have_x" != yes; then
9112 { echo "$as_me:$LINENO: result: $have_x" >&5
9113 echo "${ECHO_T}$have_x" >&6; }
9114 no_x=yes
9115 else
9116 # If each of the values was on the command line, it overrides each guess.
9117 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9118 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9119 # Update the cache value to reflect the command line values.
9120 ac_cv_have_x="have_x=yes\
9121 ac_x_includes='$x_includes'\
9122 ac_x_libraries='$x_libraries'"
9123 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9124 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9127 if test "$no_x" = yes; then
9128 window_system=none
9129 else
9130 window_system=x11
9133 ## Workaround for bug in autoconf <= 2.62.
9134 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9135 ## No need to do anything special for these standard directories.
9136 ## This is an experiment, take it out if it causes problems.
9137 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9139 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9143 if test "${x_libraries}" != NONE; then
9144 if test -n "${x_libraries}"; then
9145 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9146 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9148 x_default_search_path=""
9149 x_search_path=${x_libraries}
9150 if test -z "${x_search_path}"; then
9151 x_search_path=/usr/lib
9153 for x_library in `echo ${x_search_path}: | \
9154 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9155 x_search_path="\
9156 ${x_library}/X11/%L/%T/%N%C%S:\
9157 ${x_library}/X11/%l/%T/%N%C%S:\
9158 ${x_library}/X11/%T/%N%C%S:\
9159 ${x_library}/X11/%L/%T/%N%S:\
9160 ${x_library}/X11/%l/%T/%N%S:\
9161 ${x_library}/X11/%T/%N%S"
9162 if test x"${x_default_search_path}" = x; then
9163 x_default_search_path=${x_search_path}
9164 else
9165 x_default_search_path="${x_search_path}:${x_default_search_path}"
9167 done
9169 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9170 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9173 if test x"${x_includes}" = x; then
9174 bitmapdir=/usr/include/X11/bitmaps
9175 else
9176 # accumulate include directories that have X11 bitmap subdirectories
9177 bmd_acc="dummyval"
9178 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9179 if test -d "${bmd}/X11/bitmaps"; then
9180 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9182 if test -d "${bmd}/bitmaps"; then
9183 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9185 done
9186 if test ${bmd_acc} != "dummyval"; then
9187 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9191 HAVE_CARBON=no
9192 if test "${with_carbon}" != no; then
9193 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9194 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9195 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9196 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9197 echo $ECHO_N "(cached) $ECHO_C" >&6
9199 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9200 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9201 else
9202 # Is the header compilable?
9203 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9204 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9205 cat >conftest.$ac_ext <<_ACEOF
9206 /* confdefs.h. */
9207 _ACEOF
9208 cat confdefs.h >>conftest.$ac_ext
9209 cat >>conftest.$ac_ext <<_ACEOF
9210 /* end confdefs.h. */
9211 $ac_includes_default
9212 #include <Carbon/Carbon.h>
9213 _ACEOF
9214 rm -f conftest.$ac_objext
9215 if { (ac_try="$ac_compile"
9216 case "(($ac_try" in
9217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9218 *) ac_try_echo=$ac_try;;
9219 esac
9220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9221 (eval "$ac_compile") 2>conftest.er1
9222 ac_status=$?
9223 grep -v '^ *+' conftest.er1 >conftest.err
9224 rm -f conftest.er1
9225 cat conftest.err >&5
9226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227 (exit $ac_status); } && {
9228 test -z "$ac_c_werror_flag" ||
9229 test ! -s conftest.err
9230 } && test -s conftest.$ac_objext; then
9231 ac_header_compiler=yes
9232 else
9233 echo "$as_me: failed program was:" >&5
9234 sed 's/^/| /' conftest.$ac_ext >&5
9236 ac_header_compiler=no
9239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9240 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9241 echo "${ECHO_T}$ac_header_compiler" >&6; }
9243 # Is the header present?
9244 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9245 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9246 cat >conftest.$ac_ext <<_ACEOF
9247 /* confdefs.h. */
9248 _ACEOF
9249 cat confdefs.h >>conftest.$ac_ext
9250 cat >>conftest.$ac_ext <<_ACEOF
9251 /* end confdefs.h. */
9252 #include <Carbon/Carbon.h>
9253 _ACEOF
9254 if { (ac_try="$ac_cpp conftest.$ac_ext"
9255 case "(($ac_try" in
9256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9257 *) ac_try_echo=$ac_try;;
9258 esac
9259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9261 ac_status=$?
9262 grep -v '^ *+' conftest.er1 >conftest.err
9263 rm -f conftest.er1
9264 cat conftest.err >&5
9265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266 (exit $ac_status); } >/dev/null && {
9267 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9268 test ! -s conftest.err
9269 }; then
9270 ac_header_preproc=yes
9271 else
9272 echo "$as_me: failed program was:" >&5
9273 sed 's/^/| /' conftest.$ac_ext >&5
9275 ac_header_preproc=no
9278 rm -f conftest.err conftest.$ac_ext
9279 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9280 echo "${ECHO_T}$ac_header_preproc" >&6; }
9282 # So? What about this header?
9283 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9284 yes:no: )
9285 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9286 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9287 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9288 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9289 ac_header_preproc=yes
9291 no:yes:* )
9292 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9293 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9294 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9295 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9296 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9297 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9298 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9299 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9300 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9301 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9302 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9303 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9306 esac
9307 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9308 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9309 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9310 echo $ECHO_N "(cached) $ECHO_C" >&6
9311 else
9312 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9314 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9315 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9318 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9319 HAVE_CARBON=yes
9324 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9325 if test "${with_carbon+set}" != set \
9326 && test "${carbon_appdir_x+set}" != set; then
9327 for var in with_x with_x_toolkit with_xim \
9328 with_xpm with_jpeg with_tiff with_gif with_png; do
9329 if eval test \"\${$var+set}\" = set; then
9330 HAVE_CARBON=no
9331 break
9333 done
9336 if test "${HAVE_CARBON}" = yes; then
9337 window_system=mac
9340 HAVE_NS=no
9341 COCOA=no
9342 GNUSTEP=no
9343 tmp_CPPFLAGS="$CPPFLAGS"
9344 tmp_CFLAGS="$CFLAGS"
9345 CPPFLAGS="$CPPFLAGS -x objective-c"
9346 CFLAGS="$CFLAGS -x objective-c"
9347 if test "${with_ns}" != no; then
9348 if test "${opsys}" = darwin; then
9349 COCOA=yes
9350 elif test -f /etc/GNUstep/GNUstep.conf; then
9351 GNUSTEP=yes
9352 GNUSTEP_SYSTEM_HEADERS="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_SYSTEM_HEADERS)"
9353 GNUSTEP_SYSTEM_LIBRARIES="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9354 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9355 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9356 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9357 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9359 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9360 { echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9361 echo $ECHO_N "checking for AppKit/AppKit.h... $ECHO_C" >&6; }
9362 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9363 echo $ECHO_N "(cached) $ECHO_C" >&6
9365 { echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9366 echo "${ECHO_T}$ac_cv_header_AppKit_AppKit_h" >&6; }
9367 else
9368 # Is the header compilable?
9369 { echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9370 echo $ECHO_N "checking AppKit/AppKit.h usability... $ECHO_C" >&6; }
9371 cat >conftest.$ac_ext <<_ACEOF
9372 /* confdefs.h. */
9373 _ACEOF
9374 cat confdefs.h >>conftest.$ac_ext
9375 cat >>conftest.$ac_ext <<_ACEOF
9376 /* end confdefs.h. */
9377 $ac_includes_default
9378 #include <AppKit/AppKit.h>
9379 _ACEOF
9380 rm -f conftest.$ac_objext
9381 if { (ac_try="$ac_compile"
9382 case "(($ac_try" in
9383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9384 *) ac_try_echo=$ac_try;;
9385 esac
9386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9387 (eval "$ac_compile") 2>conftest.er1
9388 ac_status=$?
9389 grep -v '^ *+' conftest.er1 >conftest.err
9390 rm -f conftest.er1
9391 cat conftest.err >&5
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); } && {
9394 test -z "$ac_c_werror_flag" ||
9395 test ! -s conftest.err
9396 } && test -s conftest.$ac_objext; then
9397 ac_header_compiler=yes
9398 else
9399 echo "$as_me: failed program was:" >&5
9400 sed 's/^/| /' conftest.$ac_ext >&5
9402 ac_header_compiler=no
9405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9406 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9407 echo "${ECHO_T}$ac_header_compiler" >&6; }
9409 # Is the header present?
9410 { echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9411 echo $ECHO_N "checking AppKit/AppKit.h presence... $ECHO_C" >&6; }
9412 cat >conftest.$ac_ext <<_ACEOF
9413 /* confdefs.h. */
9414 _ACEOF
9415 cat confdefs.h >>conftest.$ac_ext
9416 cat >>conftest.$ac_ext <<_ACEOF
9417 /* end confdefs.h. */
9418 #include <AppKit/AppKit.h>
9419 _ACEOF
9420 if { (ac_try="$ac_cpp conftest.$ac_ext"
9421 case "(($ac_try" in
9422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9423 *) ac_try_echo=$ac_try;;
9424 esac
9425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9426 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9427 ac_status=$?
9428 grep -v '^ *+' conftest.er1 >conftest.err
9429 rm -f conftest.er1
9430 cat conftest.err >&5
9431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432 (exit $ac_status); } >/dev/null && {
9433 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9434 test ! -s conftest.err
9435 }; then
9436 ac_header_preproc=yes
9437 else
9438 echo "$as_me: failed program was:" >&5
9439 sed 's/^/| /' conftest.$ac_ext >&5
9441 ac_header_preproc=no
9444 rm -f conftest.err conftest.$ac_ext
9445 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9446 echo "${ECHO_T}$ac_header_preproc" >&6; }
9448 # So? What about this header?
9449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9450 yes:no: )
9451 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9452 echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9453 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9454 echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9455 ac_header_preproc=yes
9457 no:yes:* )
9458 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9459 echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9460 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9461 echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9462 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9463 echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9464 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9465 echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9466 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9467 echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9468 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9469 echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9472 esac
9473 { echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9474 echo $ECHO_N "checking for AppKit/AppKit.h... $ECHO_C" >&6; }
9475 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9476 echo $ECHO_N "(cached) $ECHO_C" >&6
9477 else
9478 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9480 { echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9481 echo "${ECHO_T}$ac_cv_header_AppKit_AppKit_h" >&6; }
9484 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9485 HAVE_NS=yes
9490 if test "${window_system}" = x11 && test "${HAVE_NS}" = yes; then
9491 if test "${with_ns+set}" != set \
9492 && test "${ns_appdir_x+set}" != set; then
9493 HAVE_NS=no
9497 if test "${window_system}" = mac && test "${HAVE_NS}" = yes; then
9498 if test "${with_ns+set}" != set \
9499 && test "${ns_appdir_x+set}" != set; then
9500 HAVE_NS=no
9501 else
9502 HAVE_CARBON=no
9505 if test "${HAVE_NS}" = yes; then
9506 window_system=nextstep
9507 with_xft=no
9508 with_freetype=no
9510 CFLAGS="$tmp_CFLAGS"
9511 CPPFLAGS="$tmp_CPPFLAGS"
9513 case "${window_system}" in
9514 x11 )
9515 HAVE_X_WINDOWS=yes
9516 HAVE_X11=yes
9517 case "${with_x_toolkit}" in
9518 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9519 motif ) USE_X_TOOLKIT=MOTIF ;;
9520 gtk ) with_gtk=yes
9521 USE_X_TOOLKIT=none ;;
9522 no ) USE_X_TOOLKIT=none ;;
9523 * ) USE_X_TOOLKIT=maybe ;;
9524 esac
9526 nextstep | mac | none )
9527 HAVE_X_WINDOWS=no
9528 HAVE_X11=no
9529 USE_X_TOOLKIT=none
9531 esac
9533 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9534 # Extract the first word of "X", so it can be a program name with args.
9535 set dummy X; ac_word=$2
9536 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9538 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9539 echo $ECHO_N "(cached) $ECHO_C" >&6
9540 else
9541 if test -n "$HAVE_XSERVER"; then
9542 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9543 else
9544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9545 for as_dir in $PATH
9547 IFS=$as_save_IFS
9548 test -z "$as_dir" && as_dir=.
9549 for ac_exec_ext in '' $ac_executable_extensions; do
9550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9551 ac_cv_prog_HAVE_XSERVER="true"
9552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9553 break 2
9555 done
9556 done
9557 IFS=$as_save_IFS
9559 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9562 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9563 if test -n "$HAVE_XSERVER"; then
9564 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9565 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9566 else
9567 { echo "$as_me:$LINENO: result: no" >&5
9568 echo "${ECHO_T}no" >&6; }
9572 if test "$HAVE_XSERVER" = true ||
9573 test -n "$DISPLAY" ||
9574 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9575 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9576 were found. You should install the relevant development files for X
9577 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9578 sure you have development files for image handling, i.e.
9579 tiff, gif, jpeg, png and xpm.
9580 If you are sure you want Emacs compiled without X window support, pass
9581 --without-x
9582 to configure." >&5
9583 echo "$as_me: error: You seem to be running X, but no X development libraries
9584 were found. You should install the relevant development files for X
9585 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9586 sure you have development files for image handling, i.e.
9587 tiff, gif, jpeg, png and xpm.
9588 If you are sure you want Emacs compiled without X window support, pass
9589 --without-x
9590 to configure." >&2;}
9591 { (exit 1); exit 1; }; }
9595 ### If we're using X11, we should use the X menu package.
9596 HAVE_MENUS=no
9597 case ${HAVE_X11} in
9598 yes ) HAVE_MENUS=yes ;;
9599 esac
9601 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9602 # Assume not, until told otherwise.
9603 GNU_MALLOC=yes
9604 doug_lea_malloc=yes
9605 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9606 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9607 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9608 echo $ECHO_N "(cached) $ECHO_C" >&6
9609 else
9610 cat >conftest.$ac_ext <<_ACEOF
9611 /* confdefs.h. */
9612 _ACEOF
9613 cat confdefs.h >>conftest.$ac_ext
9614 cat >>conftest.$ac_ext <<_ACEOF
9615 /* end confdefs.h. */
9616 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9617 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9618 #define malloc_get_state innocuous_malloc_get_state
9620 /* System header to define __stub macros and hopefully few prototypes,
9621 which can conflict with char malloc_get_state (); below.
9622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9623 <limits.h> exists even on freestanding compilers. */
9625 #ifdef __STDC__
9626 # include <limits.h>
9627 #else
9628 # include <assert.h>
9629 #endif
9631 #undef malloc_get_state
9633 /* Override any GCC internal prototype to avoid an error.
9634 Use char because int might match the return type of a GCC
9635 builtin and then its argument prototype would still apply. */
9636 #ifdef __cplusplus
9637 extern "C"
9638 #endif
9639 char malloc_get_state ();
9640 /* The GNU C library defines this for functions which it implements
9641 to always fail with ENOSYS. Some functions are actually named
9642 something starting with __ and the normal name is an alias. */
9643 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9644 choke me
9645 #endif
9648 main ()
9650 return malloc_get_state ();
9652 return 0;
9654 _ACEOF
9655 rm -f conftest.$ac_objext conftest$ac_exeext
9656 if { (ac_try="$ac_link"
9657 case "(($ac_try" in
9658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9659 *) ac_try_echo=$ac_try;;
9660 esac
9661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9662 (eval "$ac_link") 2>conftest.er1
9663 ac_status=$?
9664 grep -v '^ *+' conftest.er1 >conftest.err
9665 rm -f conftest.er1
9666 cat conftest.err >&5
9667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 (exit $ac_status); } && {
9669 test -z "$ac_c_werror_flag" ||
9670 test ! -s conftest.err
9671 } && test -s conftest$ac_exeext &&
9672 $as_test_x conftest$ac_exeext; then
9673 ac_cv_func_malloc_get_state=yes
9674 else
9675 echo "$as_me: failed program was:" >&5
9676 sed 's/^/| /' conftest.$ac_ext >&5
9678 ac_cv_func_malloc_get_state=no
9681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9682 conftest$ac_exeext conftest.$ac_ext
9684 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9685 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9686 if test $ac_cv_func_malloc_get_state = yes; then
9688 else
9689 doug_lea_malloc=no
9692 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9693 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9694 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9695 echo $ECHO_N "(cached) $ECHO_C" >&6
9696 else
9697 cat >conftest.$ac_ext <<_ACEOF
9698 /* confdefs.h. */
9699 _ACEOF
9700 cat confdefs.h >>conftest.$ac_ext
9701 cat >>conftest.$ac_ext <<_ACEOF
9702 /* end confdefs.h. */
9703 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9705 #define malloc_set_state innocuous_malloc_set_state
9707 /* System header to define __stub macros and hopefully few prototypes,
9708 which can conflict with char malloc_set_state (); below.
9709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9710 <limits.h> exists even on freestanding compilers. */
9712 #ifdef __STDC__
9713 # include <limits.h>
9714 #else
9715 # include <assert.h>
9716 #endif
9718 #undef malloc_set_state
9720 /* Override any GCC internal prototype to avoid an error.
9721 Use char because int might match the return type of a GCC
9722 builtin and then its argument prototype would still apply. */
9723 #ifdef __cplusplus
9724 extern "C"
9725 #endif
9726 char malloc_set_state ();
9727 /* The GNU C library defines this for functions which it implements
9728 to always fail with ENOSYS. Some functions are actually named
9729 something starting with __ and the normal name is an alias. */
9730 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9731 choke me
9732 #endif
9735 main ()
9737 return malloc_set_state ();
9739 return 0;
9741 _ACEOF
9742 rm -f conftest.$ac_objext conftest$ac_exeext
9743 if { (ac_try="$ac_link"
9744 case "(($ac_try" in
9745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9746 *) ac_try_echo=$ac_try;;
9747 esac
9748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9749 (eval "$ac_link") 2>conftest.er1
9750 ac_status=$?
9751 grep -v '^ *+' conftest.er1 >conftest.err
9752 rm -f conftest.er1
9753 cat conftest.err >&5
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); } && {
9756 test -z "$ac_c_werror_flag" ||
9757 test ! -s conftest.err
9758 } && test -s conftest$ac_exeext &&
9759 $as_test_x conftest$ac_exeext; then
9760 ac_cv_func_malloc_set_state=yes
9761 else
9762 echo "$as_me: failed program was:" >&5
9763 sed 's/^/| /' conftest.$ac_ext >&5
9765 ac_cv_func_malloc_set_state=no
9768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9769 conftest$ac_exeext conftest.$ac_ext
9771 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9772 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9773 if test $ac_cv_func_malloc_set_state = yes; then
9775 else
9776 doug_lea_malloc=no
9779 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9780 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9781 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9782 echo $ECHO_N "(cached) $ECHO_C" >&6
9783 else
9784 cat >conftest.$ac_ext <<_ACEOF
9785 /* confdefs.h. */
9786 _ACEOF
9787 cat confdefs.h >>conftest.$ac_ext
9788 cat >>conftest.$ac_ext <<_ACEOF
9789 /* end confdefs.h. */
9790 extern void (* __after_morecore_hook)();
9792 main ()
9794 __after_morecore_hook = 0
9796 return 0;
9798 _ACEOF
9799 rm -f conftest.$ac_objext conftest$ac_exeext
9800 if { (ac_try="$ac_link"
9801 case "(($ac_try" in
9802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9803 *) ac_try_echo=$ac_try;;
9804 esac
9805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9806 (eval "$ac_link") 2>conftest.er1
9807 ac_status=$?
9808 grep -v '^ *+' conftest.er1 >conftest.err
9809 rm -f conftest.er1
9810 cat conftest.err >&5
9811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812 (exit $ac_status); } && {
9813 test -z "$ac_c_werror_flag" ||
9814 test ! -s conftest.err
9815 } && test -s conftest$ac_exeext &&
9816 $as_test_x conftest$ac_exeext; then
9817 emacs_cv_var___after_morecore_hook=yes
9818 else
9819 echo "$as_me: failed program was:" >&5
9820 sed 's/^/| /' conftest.$ac_ext >&5
9822 emacs_cv_var___after_morecore_hook=no
9825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9826 conftest$ac_exeext conftest.$ac_ext
9828 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9829 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9830 if test $emacs_cv_var___after_morecore_hook = no; then
9831 doug_lea_malloc=no
9833 if test "${system_malloc}" = "yes"; then
9834 GNU_MALLOC=no
9835 GNU_MALLOC_reason="
9836 (The GNU allocators don't work with this system configuration.)"
9838 if test "$doug_lea_malloc" = "yes" ; then
9839 if test "$GNU_MALLOC" = yes ; then
9840 GNU_MALLOC_reason="
9841 (Using Doug Lea's new malloc from the GNU C Library.)"
9844 cat >>confdefs.h <<\_ACEOF
9845 #define DOUG_LEA_MALLOC 1
9846 _ACEOF
9850 if test x"${REL_ALLOC}" = x; then
9851 REL_ALLOC=${GNU_MALLOC}
9857 for ac_header in stdlib.h unistd.h
9859 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9860 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9861 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9862 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9864 echo $ECHO_N "(cached) $ECHO_C" >&6
9866 ac_res=`eval echo '${'$as_ac_Header'}'`
9867 { echo "$as_me:$LINENO: result: $ac_res" >&5
9868 echo "${ECHO_T}$ac_res" >&6; }
9869 else
9870 # Is the header compilable?
9871 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9872 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9873 cat >conftest.$ac_ext <<_ACEOF
9874 /* confdefs.h. */
9875 _ACEOF
9876 cat confdefs.h >>conftest.$ac_ext
9877 cat >>conftest.$ac_ext <<_ACEOF
9878 /* end confdefs.h. */
9879 $ac_includes_default
9880 #include <$ac_header>
9881 _ACEOF
9882 rm -f conftest.$ac_objext
9883 if { (ac_try="$ac_compile"
9884 case "(($ac_try" in
9885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9886 *) ac_try_echo=$ac_try;;
9887 esac
9888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9889 (eval "$ac_compile") 2>conftest.er1
9890 ac_status=$?
9891 grep -v '^ *+' conftest.er1 >conftest.err
9892 rm -f conftest.er1
9893 cat conftest.err >&5
9894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895 (exit $ac_status); } && {
9896 test -z "$ac_c_werror_flag" ||
9897 test ! -s conftest.err
9898 } && test -s conftest.$ac_objext; then
9899 ac_header_compiler=yes
9900 else
9901 echo "$as_me: failed program was:" >&5
9902 sed 's/^/| /' conftest.$ac_ext >&5
9904 ac_header_compiler=no
9907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9908 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9909 echo "${ECHO_T}$ac_header_compiler" >&6; }
9911 # Is the header present?
9912 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9913 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9914 cat >conftest.$ac_ext <<_ACEOF
9915 /* confdefs.h. */
9916 _ACEOF
9917 cat confdefs.h >>conftest.$ac_ext
9918 cat >>conftest.$ac_ext <<_ACEOF
9919 /* end confdefs.h. */
9920 #include <$ac_header>
9921 _ACEOF
9922 if { (ac_try="$ac_cpp conftest.$ac_ext"
9923 case "(($ac_try" in
9924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9925 *) ac_try_echo=$ac_try;;
9926 esac
9927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9928 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9929 ac_status=$?
9930 grep -v '^ *+' conftest.er1 >conftest.err
9931 rm -f conftest.er1
9932 cat conftest.err >&5
9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); } >/dev/null && {
9935 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9936 test ! -s conftest.err
9937 }; then
9938 ac_header_preproc=yes
9939 else
9940 echo "$as_me: failed program was:" >&5
9941 sed 's/^/| /' conftest.$ac_ext >&5
9943 ac_header_preproc=no
9946 rm -f conftest.err conftest.$ac_ext
9947 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9948 echo "${ECHO_T}$ac_header_preproc" >&6; }
9950 # So? What about this header?
9951 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9952 yes:no: )
9953 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9954 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9956 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9957 ac_header_preproc=yes
9959 no:yes:* )
9960 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9961 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9962 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9963 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9964 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9965 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9966 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9967 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9968 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9969 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9970 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9971 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9974 esac
9975 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9978 echo $ECHO_N "(cached) $ECHO_C" >&6
9979 else
9980 eval "$as_ac_Header=\$ac_header_preproc"
9982 ac_res=`eval echo '${'$as_ac_Header'}'`
9983 { echo "$as_me:$LINENO: result: $ac_res" >&5
9984 echo "${ECHO_T}$ac_res" >&6; }
9987 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9988 cat >>confdefs.h <<_ACEOF
9989 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9990 _ACEOF
9994 done
9997 for ac_func in getpagesize
9999 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10000 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10001 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10002 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10003 echo $ECHO_N "(cached) $ECHO_C" >&6
10004 else
10005 cat >conftest.$ac_ext <<_ACEOF
10006 /* confdefs.h. */
10007 _ACEOF
10008 cat confdefs.h >>conftest.$ac_ext
10009 cat >>conftest.$ac_ext <<_ACEOF
10010 /* end confdefs.h. */
10011 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10012 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10013 #define $ac_func innocuous_$ac_func
10015 /* System header to define __stub macros and hopefully few prototypes,
10016 which can conflict with char $ac_func (); below.
10017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10018 <limits.h> exists even on freestanding compilers. */
10020 #ifdef __STDC__
10021 # include <limits.h>
10022 #else
10023 # include <assert.h>
10024 #endif
10026 #undef $ac_func
10028 /* Override any GCC internal prototype to avoid an error.
10029 Use char because int might match the return type of a GCC
10030 builtin and then its argument prototype would still apply. */
10031 #ifdef __cplusplus
10032 extern "C"
10033 #endif
10034 char $ac_func ();
10035 /* The GNU C library defines this for functions which it implements
10036 to always fail with ENOSYS. Some functions are actually named
10037 something starting with __ and the normal name is an alias. */
10038 #if defined __stub_$ac_func || defined __stub___$ac_func
10039 choke me
10040 #endif
10043 main ()
10045 return $ac_func ();
10047 return 0;
10049 _ACEOF
10050 rm -f conftest.$ac_objext conftest$ac_exeext
10051 if { (ac_try="$ac_link"
10052 case "(($ac_try" in
10053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10054 *) ac_try_echo=$ac_try;;
10055 esac
10056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10057 (eval "$ac_link") 2>conftest.er1
10058 ac_status=$?
10059 grep -v '^ *+' conftest.er1 >conftest.err
10060 rm -f conftest.er1
10061 cat conftest.err >&5
10062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063 (exit $ac_status); } && {
10064 test -z "$ac_c_werror_flag" ||
10065 test ! -s conftest.err
10066 } && test -s conftest$ac_exeext &&
10067 $as_test_x conftest$ac_exeext; then
10068 eval "$as_ac_var=yes"
10069 else
10070 echo "$as_me: failed program was:" >&5
10071 sed 's/^/| /' conftest.$ac_ext >&5
10073 eval "$as_ac_var=no"
10076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10077 conftest$ac_exeext conftest.$ac_ext
10079 ac_res=`eval echo '${'$as_ac_var'}'`
10080 { echo "$as_me:$LINENO: result: $ac_res" >&5
10081 echo "${ECHO_T}$ac_res" >&6; }
10082 if test `eval echo '${'$as_ac_var'}'` = yes; then
10083 cat >>confdefs.h <<_ACEOF
10084 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10085 _ACEOF
10088 done
10090 { echo "$as_me:$LINENO: checking for working mmap" >&5
10091 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10092 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10093 echo $ECHO_N "(cached) $ECHO_C" >&6
10094 else
10095 if test "$cross_compiling" = yes; then
10096 ac_cv_func_mmap_fixed_mapped=no
10097 else
10098 cat >conftest.$ac_ext <<_ACEOF
10099 /* confdefs.h. */
10100 _ACEOF
10101 cat confdefs.h >>conftest.$ac_ext
10102 cat >>conftest.$ac_ext <<_ACEOF
10103 /* end confdefs.h. */
10104 $ac_includes_default
10105 /* malloc might have been renamed as rpl_malloc. */
10106 #undef malloc
10108 /* Thanks to Mike Haertel and Jim Avera for this test.
10109 Here is a matrix of mmap possibilities:
10110 mmap private not fixed
10111 mmap private fixed at somewhere currently unmapped
10112 mmap private fixed at somewhere already mapped
10113 mmap shared not fixed
10114 mmap shared fixed at somewhere currently unmapped
10115 mmap shared fixed at somewhere already mapped
10116 For private mappings, we should verify that changes cannot be read()
10117 back from the file, nor mmap's back from the file at a different
10118 address. (There have been systems where private was not correctly
10119 implemented like the infamous i386 svr4.0, and systems where the
10120 VM page cache was not coherent with the file system buffer cache
10121 like early versions of FreeBSD and possibly contemporary NetBSD.)
10122 For shared mappings, we should conversely verify that changes get
10123 propagated back to all the places they're supposed to be.
10125 Grep wants private fixed already mapped.
10126 The main things grep needs to know about mmap are:
10127 * does it exist and is it safe to write into the mmap'd area
10128 * how to use it (BSD variants) */
10130 #include <fcntl.h>
10131 #include <sys/mman.h>
10133 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10134 char *malloc ();
10135 #endif
10137 /* This mess was copied from the GNU getpagesize.h. */
10138 #ifndef HAVE_GETPAGESIZE
10139 /* Assume that all systems that can run configure have sys/param.h. */
10140 # ifndef HAVE_SYS_PARAM_H
10141 # define HAVE_SYS_PARAM_H 1
10142 # endif
10144 # ifdef _SC_PAGESIZE
10145 # define getpagesize() sysconf(_SC_PAGESIZE)
10146 # else /* no _SC_PAGESIZE */
10147 # ifdef HAVE_SYS_PARAM_H
10148 # include <sys/param.h>
10149 # ifdef EXEC_PAGESIZE
10150 # define getpagesize() EXEC_PAGESIZE
10151 # else /* no EXEC_PAGESIZE */
10152 # ifdef NBPG
10153 # define getpagesize() NBPG * CLSIZE
10154 # ifndef CLSIZE
10155 # define CLSIZE 1
10156 # endif /* no CLSIZE */
10157 # else /* no NBPG */
10158 # ifdef NBPC
10159 # define getpagesize() NBPC
10160 # else /* no NBPC */
10161 # ifdef PAGESIZE
10162 # define getpagesize() PAGESIZE
10163 # endif /* PAGESIZE */
10164 # endif /* no NBPC */
10165 # endif /* no NBPG */
10166 # endif /* no EXEC_PAGESIZE */
10167 # else /* no HAVE_SYS_PARAM_H */
10168 # define getpagesize() 8192 /* punt totally */
10169 # endif /* no HAVE_SYS_PARAM_H */
10170 # endif /* no _SC_PAGESIZE */
10172 #endif /* no HAVE_GETPAGESIZE */
10175 main ()
10177 char *data, *data2, *data3;
10178 int i, pagesize;
10179 int fd;
10181 pagesize = getpagesize ();
10183 /* First, make a file with some known garbage in it. */
10184 data = (char *) malloc (pagesize);
10185 if (!data)
10186 return 1;
10187 for (i = 0; i < pagesize; ++i)
10188 *(data + i) = rand ();
10189 umask (0);
10190 fd = creat ("conftest.mmap", 0600);
10191 if (fd < 0)
10192 return 1;
10193 if (write (fd, data, pagesize) != pagesize)
10194 return 1;
10195 close (fd);
10197 /* Next, try to mmap the file at a fixed address which already has
10198 something else allocated at it. If we can, also make sure that
10199 we see the same garbage. */
10200 fd = open ("conftest.mmap", O_RDWR);
10201 if (fd < 0)
10202 return 1;
10203 data2 = (char *) malloc (2 * pagesize);
10204 if (!data2)
10205 return 1;
10206 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10207 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10208 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10209 return 1;
10210 for (i = 0; i < pagesize; ++i)
10211 if (*(data + i) != *(data2 + i))
10212 return 1;
10214 /* Finally, make sure that changes to the mapped area do not
10215 percolate back to the file as seen by read(). (This is a bug on
10216 some variants of i386 svr4.0.) */
10217 for (i = 0; i < pagesize; ++i)
10218 *(data2 + i) = *(data2 + i) + 1;
10219 data3 = (char *) malloc (pagesize);
10220 if (!data3)
10221 return 1;
10222 if (read (fd, data3, pagesize) != pagesize)
10223 return 1;
10224 for (i = 0; i < pagesize; ++i)
10225 if (*(data + i) != *(data3 + i))
10226 return 1;
10227 close (fd);
10228 return 0;
10230 _ACEOF
10231 rm -f conftest$ac_exeext
10232 if { (ac_try="$ac_link"
10233 case "(($ac_try" in
10234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10235 *) ac_try_echo=$ac_try;;
10236 esac
10237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10238 (eval "$ac_link") 2>&5
10239 ac_status=$?
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10242 { (case "(($ac_try" in
10243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10244 *) ac_try_echo=$ac_try;;
10245 esac
10246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10247 (eval "$ac_try") 2>&5
10248 ac_status=$?
10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 (exit $ac_status); }; }; then
10251 ac_cv_func_mmap_fixed_mapped=yes
10252 else
10253 echo "$as_me: program exited with status $ac_status" >&5
10254 echo "$as_me: failed program was:" >&5
10255 sed 's/^/| /' conftest.$ac_ext >&5
10257 ( exit $ac_status )
10258 ac_cv_func_mmap_fixed_mapped=no
10260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10265 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10266 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10267 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10269 cat >>confdefs.h <<\_ACEOF
10270 #define HAVE_MMAP 1
10271 _ACEOF
10274 rm -f conftest.mmap
10276 if test $use_mmap_for_buffers = yes; then
10277 REL_ALLOC=no
10280 LIBS="$libsrc_libs $LIBS"
10283 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10284 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10285 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10286 echo $ECHO_N "(cached) $ECHO_C" >&6
10287 else
10288 ac_check_lib_save_LIBS=$LIBS
10289 LIBS="-ldnet $LIBS"
10290 cat >conftest.$ac_ext <<_ACEOF
10291 /* confdefs.h. */
10292 _ACEOF
10293 cat confdefs.h >>conftest.$ac_ext
10294 cat >>conftest.$ac_ext <<_ACEOF
10295 /* end confdefs.h. */
10297 /* Override any GCC internal prototype to avoid an error.
10298 Use char because int might match the return type of a GCC
10299 builtin and then its argument prototype would still apply. */
10300 #ifdef __cplusplus
10301 extern "C"
10302 #endif
10303 char dnet_ntoa ();
10305 main ()
10307 return dnet_ntoa ();
10309 return 0;
10311 _ACEOF
10312 rm -f conftest.$ac_objext conftest$ac_exeext
10313 if { (ac_try="$ac_link"
10314 case "(($ac_try" in
10315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10316 *) ac_try_echo=$ac_try;;
10317 esac
10318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10319 (eval "$ac_link") 2>conftest.er1
10320 ac_status=$?
10321 grep -v '^ *+' conftest.er1 >conftest.err
10322 rm -f conftest.er1
10323 cat conftest.err >&5
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 (exit $ac_status); } && {
10326 test -z "$ac_c_werror_flag" ||
10327 test ! -s conftest.err
10328 } && test -s conftest$ac_exeext &&
10329 $as_test_x conftest$ac_exeext; then
10330 ac_cv_lib_dnet_dnet_ntoa=yes
10331 else
10332 echo "$as_me: failed program was:" >&5
10333 sed 's/^/| /' conftest.$ac_ext >&5
10335 ac_cv_lib_dnet_dnet_ntoa=no
10338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10339 conftest$ac_exeext conftest.$ac_ext
10340 LIBS=$ac_check_lib_save_LIBS
10342 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10343 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10344 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10345 cat >>confdefs.h <<_ACEOF
10346 #define HAVE_LIBDNET 1
10347 _ACEOF
10349 LIBS="-ldnet $LIBS"
10354 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10355 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10356 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10357 echo $ECHO_N "(cached) $ECHO_C" >&6
10358 else
10359 ac_check_lib_save_LIBS=$LIBS
10360 LIBS="-lXbsd $LIBS"
10361 cat >conftest.$ac_ext <<_ACEOF
10362 /* confdefs.h. */
10363 _ACEOF
10364 cat confdefs.h >>conftest.$ac_ext
10365 cat >>conftest.$ac_ext <<_ACEOF
10366 /* end confdefs.h. */
10370 main ()
10372 return main ();
10374 return 0;
10376 _ACEOF
10377 rm -f conftest.$ac_objext conftest$ac_exeext
10378 if { (ac_try="$ac_link"
10379 case "(($ac_try" in
10380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10381 *) ac_try_echo=$ac_try;;
10382 esac
10383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10384 (eval "$ac_link") 2>conftest.er1
10385 ac_status=$?
10386 grep -v '^ *+' conftest.er1 >conftest.err
10387 rm -f conftest.er1
10388 cat conftest.err >&5
10389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10390 (exit $ac_status); } && {
10391 test -z "$ac_c_werror_flag" ||
10392 test ! -s conftest.err
10393 } && test -s conftest$ac_exeext &&
10394 $as_test_x conftest$ac_exeext; then
10395 ac_cv_lib_Xbsd_main=yes
10396 else
10397 echo "$as_me: failed program was:" >&5
10398 sed 's/^/| /' conftest.$ac_ext >&5
10400 ac_cv_lib_Xbsd_main=no
10403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10404 conftest$ac_exeext conftest.$ac_ext
10405 LIBS=$ac_check_lib_save_LIBS
10407 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10408 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10409 if test $ac_cv_lib_Xbsd_main = yes; then
10410 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10415 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10416 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10417 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10418 echo $ECHO_N "(cached) $ECHO_C" >&6
10419 else
10420 ac_check_lib_save_LIBS=$LIBS
10421 LIBS="-lpthreads $LIBS"
10422 cat >conftest.$ac_ext <<_ACEOF
10423 /* confdefs.h. */
10424 _ACEOF
10425 cat confdefs.h >>conftest.$ac_ext
10426 cat >>conftest.$ac_ext <<_ACEOF
10427 /* end confdefs.h. */
10429 /* Override any GCC internal prototype to avoid an error.
10430 Use char because int might match the return type of a GCC
10431 builtin and then its argument prototype would still apply. */
10432 #ifdef __cplusplus
10433 extern "C"
10434 #endif
10435 char cma_open ();
10437 main ()
10439 return cma_open ();
10441 return 0;
10443 _ACEOF
10444 rm -f conftest.$ac_objext conftest$ac_exeext
10445 if { (ac_try="$ac_link"
10446 case "(($ac_try" in
10447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10448 *) ac_try_echo=$ac_try;;
10449 esac
10450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10451 (eval "$ac_link") 2>conftest.er1
10452 ac_status=$?
10453 grep -v '^ *+' conftest.er1 >conftest.err
10454 rm -f conftest.er1
10455 cat conftest.err >&5
10456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457 (exit $ac_status); } && {
10458 test -z "$ac_c_werror_flag" ||
10459 test ! -s conftest.err
10460 } && test -s conftest$ac_exeext &&
10461 $as_test_x conftest$ac_exeext; then
10462 ac_cv_lib_pthreads_cma_open=yes
10463 else
10464 echo "$as_me: failed program was:" >&5
10465 sed 's/^/| /' conftest.$ac_ext >&5
10467 ac_cv_lib_pthreads_cma_open=no
10470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10471 conftest$ac_exeext conftest.$ac_ext
10472 LIBS=$ac_check_lib_save_LIBS
10474 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10475 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10476 if test $ac_cv_lib_pthreads_cma_open = yes; then
10477 cat >>confdefs.h <<_ACEOF
10478 #define HAVE_LIBPTHREADS 1
10479 _ACEOF
10481 LIBS="-lpthreads $LIBS"
10487 case ${host_os} in
10488 aix*)
10489 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10490 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10491 if test "${gdb_cv_bigtoc+set}" = set; then
10492 echo $ECHO_N "(cached) $ECHO_C" >&6
10493 else
10495 case $GCC in
10496 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10497 *) gdb_cv_bigtoc=-bbigtoc ;;
10498 esac
10500 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10501 cat >conftest.$ac_ext <<_ACEOF
10502 /* confdefs.h. */
10503 _ACEOF
10504 cat confdefs.h >>conftest.$ac_ext
10505 cat >>conftest.$ac_ext <<_ACEOF
10506 /* end confdefs.h. */
10509 main ()
10511 int i;
10513 return 0;
10515 _ACEOF
10516 rm -f conftest.$ac_objext conftest$ac_exeext
10517 if { (ac_try="$ac_link"
10518 case "(($ac_try" in
10519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10520 *) ac_try_echo=$ac_try;;
10521 esac
10522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10523 (eval "$ac_link") 2>conftest.er1
10524 ac_status=$?
10525 grep -v '^ *+' conftest.er1 >conftest.err
10526 rm -f conftest.er1
10527 cat conftest.err >&5
10528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529 (exit $ac_status); } && {
10530 test -z "$ac_c_werror_flag" ||
10531 test ! -s conftest.err
10532 } && test -s conftest$ac_exeext &&
10533 $as_test_x conftest$ac_exeext; then
10535 else
10536 echo "$as_me: failed program was:" >&5
10537 sed 's/^/| /' conftest.$ac_ext >&5
10539 gdb_cv_bigtoc=
10542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10543 conftest$ac_exeext conftest.$ac_ext
10546 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10547 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10549 esac
10551 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10552 # used for the tests that follow. We set them back to REAL_CFLAGS and
10553 # REAL_CPPFLAGS later on.
10555 REAL_CPPFLAGS="$CPPFLAGS"
10557 if test "${HAVE_X11}" = "yes"; then
10558 DEFS="$C_SWITCH_X_SITE $DEFS"
10559 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10560 LIBS="$LIBX $LIBS"
10561 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10562 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10564 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10565 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10566 # but it's more convenient here to set LD_RUN_PATH
10567 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10568 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10569 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10570 export LD_RUN_PATH
10573 if test "${opsys}" = "gnu-linux"; then
10574 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10575 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10576 cat >conftest.$ac_ext <<_ACEOF
10577 /* confdefs.h. */
10578 _ACEOF
10579 cat confdefs.h >>conftest.$ac_ext
10580 cat >>conftest.$ac_ext <<_ACEOF
10581 /* end confdefs.h. */
10584 main ()
10586 XOpenDisplay ("foo");
10588 return 0;
10590 _ACEOF
10591 rm -f conftest.$ac_objext conftest$ac_exeext
10592 if { (ac_try="$ac_link"
10593 case "(($ac_try" in
10594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10595 *) ac_try_echo=$ac_try;;
10596 esac
10597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10598 (eval "$ac_link") 2>conftest.er1
10599 ac_status=$?
10600 grep -v '^ *+' conftest.er1 >conftest.err
10601 rm -f conftest.er1
10602 cat conftest.err >&5
10603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604 (exit $ac_status); } && {
10605 test -z "$ac_c_werror_flag" ||
10606 test ! -s conftest.err
10607 } && test -s conftest$ac_exeext &&
10608 $as_test_x conftest$ac_exeext; then
10609 xlinux_first_failure=no
10610 else
10611 echo "$as_me: failed program was:" >&5
10612 sed 's/^/| /' conftest.$ac_ext >&5
10614 xlinux_first_failure=yes
10617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10618 conftest$ac_exeext conftest.$ac_ext
10619 if test "${xlinux_first_failure}" = "yes"; then
10620 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10621 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10622 OLD_CPPFLAGS="$CPPFLAGS"
10623 OLD_LIBS="$LIBS"
10624 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10625 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10626 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10627 LIBS="$LIBS -b i486-linuxaout"
10628 cat >conftest.$ac_ext <<_ACEOF
10629 /* confdefs.h. */
10630 _ACEOF
10631 cat confdefs.h >>conftest.$ac_ext
10632 cat >>conftest.$ac_ext <<_ACEOF
10633 /* end confdefs.h. */
10636 main ()
10638 XOpenDisplay ("foo");
10640 return 0;
10642 _ACEOF
10643 rm -f conftest.$ac_objext conftest$ac_exeext
10644 if { (ac_try="$ac_link"
10645 case "(($ac_try" in
10646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10647 *) ac_try_echo=$ac_try;;
10648 esac
10649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10650 (eval "$ac_link") 2>conftest.er1
10651 ac_status=$?
10652 grep -v '^ *+' conftest.er1 >conftest.err
10653 rm -f conftest.er1
10654 cat conftest.err >&5
10655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656 (exit $ac_status); } && {
10657 test -z "$ac_c_werror_flag" ||
10658 test ! -s conftest.err
10659 } && test -s conftest$ac_exeext &&
10660 $as_test_x conftest$ac_exeext; then
10661 xlinux_second_failure=no
10662 else
10663 echo "$as_me: failed program was:" >&5
10664 sed 's/^/| /' conftest.$ac_ext >&5
10666 xlinux_second_failure=yes
10669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10670 conftest$ac_exeext conftest.$ac_ext
10671 if test "${xlinux_second_failure}" = "yes"; then
10672 # If we get the same failure with -b, there is no use adding -b.
10673 # So take it out. This plays safe.
10674 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10675 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10676 CPPFLAGS="$OLD_CPPFLAGS"
10677 LIBS="$OLD_LIBS"
10678 { echo "$as_me:$LINENO: result: no" >&5
10679 echo "${ECHO_T}no" >&6; }
10680 else
10681 { echo "$as_me:$LINENO: result: yes" >&5
10682 echo "${ECHO_T}yes" >&6; }
10684 else
10685 { echo "$as_me:$LINENO: result: no" >&5
10686 echo "${ECHO_T}no" >&6; }
10690 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10691 # header files included from there.
10692 { echo "$as_me:$LINENO: checking for Xkb" >&5
10693 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10694 cat >conftest.$ac_ext <<_ACEOF
10695 /* confdefs.h. */
10696 _ACEOF
10697 cat confdefs.h >>conftest.$ac_ext
10698 cat >>conftest.$ac_ext <<_ACEOF
10699 /* end confdefs.h. */
10700 #include <X11/Xlib.h>
10701 #include <X11/XKBlib.h>
10703 main ()
10705 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
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 emacs_xkb=yes
10729 else
10730 echo "$as_me: failed program was:" >&5
10731 sed 's/^/| /' conftest.$ac_ext >&5
10733 emacs_xkb=no
10736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10737 conftest$ac_exeext conftest.$ac_ext
10738 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10739 echo "${ECHO_T}$emacs_xkb" >&6; }
10740 if test $emacs_xkb = yes; then
10742 cat >>confdefs.h <<\_ACEOF
10743 #define HAVE_XKBGETKEYBOARD 1
10744 _ACEOF
10752 for ac_func in XrmSetDatabase XScreenResourceString \
10753 XScreenNumberOfScreen XSetWMProtocols
10755 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10756 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10757 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10758 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10759 echo $ECHO_N "(cached) $ECHO_C" >&6
10760 else
10761 cat >conftest.$ac_ext <<_ACEOF
10762 /* confdefs.h. */
10763 _ACEOF
10764 cat confdefs.h >>conftest.$ac_ext
10765 cat >>conftest.$ac_ext <<_ACEOF
10766 /* end confdefs.h. */
10767 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10769 #define $ac_func innocuous_$ac_func
10771 /* System header to define __stub macros and hopefully few prototypes,
10772 which can conflict with char $ac_func (); below.
10773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10774 <limits.h> exists even on freestanding compilers. */
10776 #ifdef __STDC__
10777 # include <limits.h>
10778 #else
10779 # include <assert.h>
10780 #endif
10782 #undef $ac_func
10784 /* Override any GCC internal prototype to avoid an error.
10785 Use char because int might match the return type of a GCC
10786 builtin and then its argument prototype would still apply. */
10787 #ifdef __cplusplus
10788 extern "C"
10789 #endif
10790 char $ac_func ();
10791 /* The GNU C library defines this for functions which it implements
10792 to always fail with ENOSYS. Some functions are actually named
10793 something starting with __ and the normal name is an alias. */
10794 #if defined __stub_$ac_func || defined __stub___$ac_func
10795 choke me
10796 #endif
10799 main ()
10801 return $ac_func ();
10803 return 0;
10805 _ACEOF
10806 rm -f conftest.$ac_objext conftest$ac_exeext
10807 if { (ac_try="$ac_link"
10808 case "(($ac_try" in
10809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10810 *) ac_try_echo=$ac_try;;
10811 esac
10812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10813 (eval "$ac_link") 2>conftest.er1
10814 ac_status=$?
10815 grep -v '^ *+' conftest.er1 >conftest.err
10816 rm -f conftest.er1
10817 cat conftest.err >&5
10818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819 (exit $ac_status); } && {
10820 test -z "$ac_c_werror_flag" ||
10821 test ! -s conftest.err
10822 } && test -s conftest$ac_exeext &&
10823 $as_test_x conftest$ac_exeext; then
10824 eval "$as_ac_var=yes"
10825 else
10826 echo "$as_me: failed program was:" >&5
10827 sed 's/^/| /' conftest.$ac_ext >&5
10829 eval "$as_ac_var=no"
10832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10833 conftest$ac_exeext conftest.$ac_ext
10835 ac_res=`eval echo '${'$as_ac_var'}'`
10836 { echo "$as_me:$LINENO: result: $ac_res" >&5
10837 echo "${ECHO_T}$ac_res" >&6; }
10838 if test `eval echo '${'$as_ac_var'}'` = yes; then
10839 cat >>confdefs.h <<_ACEOF
10840 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10841 _ACEOF
10844 done
10848 if test "${window_system}" = "x11"; then
10849 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10850 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10851 if test "${emacs_cv_x11_version_6+set}" = set; then
10852 echo $ECHO_N "(cached) $ECHO_C" >&6
10853 else
10854 cat >conftest.$ac_ext <<_ACEOF
10855 /* confdefs.h. */
10856 _ACEOF
10857 cat confdefs.h >>conftest.$ac_ext
10858 cat >>conftest.$ac_ext <<_ACEOF
10859 /* end confdefs.h. */
10860 #include <X11/Xlib.h>
10862 main ()
10864 #if XlibSpecificationRelease < 6
10865 fail;
10866 #endif
10869 return 0;
10871 _ACEOF
10872 rm -f conftest.$ac_objext conftest$ac_exeext
10873 if { (ac_try="$ac_link"
10874 case "(($ac_try" in
10875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10876 *) ac_try_echo=$ac_try;;
10877 esac
10878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10879 (eval "$ac_link") 2>conftest.er1
10880 ac_status=$?
10881 grep -v '^ *+' conftest.er1 >conftest.err
10882 rm -f conftest.er1
10883 cat conftest.err >&5
10884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885 (exit $ac_status); } && {
10886 test -z "$ac_c_werror_flag" ||
10887 test ! -s conftest.err
10888 } && test -s conftest$ac_exeext &&
10889 $as_test_x conftest$ac_exeext; then
10890 emacs_cv_x11_version_6=yes
10891 else
10892 echo "$as_me: failed program was:" >&5
10893 sed 's/^/| /' conftest.$ac_ext >&5
10895 emacs_cv_x11_version_6=no
10898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10899 conftest$ac_exeext conftest.$ac_ext
10902 if test $emacs_cv_x11_version_6 = yes; then
10903 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10904 echo "${ECHO_T}6 or newer" >&6; }
10906 cat >>confdefs.h <<\_ACEOF
10907 #define HAVE_X11R6 1
10908 _ACEOF
10910 else
10911 { echo "$as_me:$LINENO: result: before 6" >&5
10912 echo "${ECHO_T}before 6" >&6; }
10917 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10918 HAVE_RSVG=no
10919 if test "${HAVE_X11}" = "yes" || test "${HAVE_CARBON}" = "yes"; then
10920 if test "${with_rsvg}" != "no"; then
10921 RSVG_REQUIRED=2.0.0
10922 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10925 succeeded=no
10927 # Extract the first word of "pkg-config", so it can be a program name with args.
10928 set dummy pkg-config; ac_word=$2
10929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10931 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10932 echo $ECHO_N "(cached) $ECHO_C" >&6
10933 else
10934 case $PKG_CONFIG in
10935 [\\/]* | ?:[\\/]*)
10936 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10940 for as_dir in $PATH
10942 IFS=$as_save_IFS
10943 test -z "$as_dir" && as_dir=.
10944 for ac_exec_ext in '' $ac_executable_extensions; do
10945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10948 break 2
10950 done
10951 done
10952 IFS=$as_save_IFS
10954 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10956 esac
10958 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10959 if test -n "$PKG_CONFIG"; then
10960 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10961 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10962 else
10963 { echo "$as_me:$LINENO: result: no" >&5
10964 echo "${ECHO_T}no" >&6; }
10969 if test "$PKG_CONFIG" = "no" ; then
10971 else
10972 PKG_CONFIG_MIN_VERSION=0.9.0
10973 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10974 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10975 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10977 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10978 { echo "$as_me:$LINENO: result: yes" >&5
10979 echo "${ECHO_T}yes" >&6; }
10980 succeeded=yes
10982 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
10983 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
10984 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10985 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
10986 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10988 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
10989 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
10990 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10991 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
10992 echo "${ECHO_T}$RSVG_LIBS" >&6; }
10993 else
10994 { echo "$as_me:$LINENO: result: no" >&5
10995 echo "${ECHO_T}no" >&6; }
10996 RSVG_CFLAGS=""
10997 RSVG_LIBS=""
10998 ## If we have a custom action on failure, don't print errors, but
10999 ## do set a variable so people can do so.
11000 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11006 else
11007 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11008 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11012 if test $succeeded = yes; then
11014 else
11021 if test ".${RSVG_CFLAGS}" != "."; then
11022 HAVE_RSVG=yes
11024 cat >>confdefs.h <<\_ACEOF
11025 #define HAVE_RSVG 1
11026 _ACEOF
11028 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11029 LIBS="$RSVG_LIBS $LIBS"
11035 HAVE_GTK=no
11036 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11037 GLIB_REQUIRED=2.6
11038 GTK_REQUIRED=2.6
11039 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11042 succeeded=no
11044 # Extract the first word of "pkg-config", so it can be a program name with args.
11045 set dummy pkg-config; ac_word=$2
11046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11048 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11049 echo $ECHO_N "(cached) $ECHO_C" >&6
11050 else
11051 case $PKG_CONFIG in
11052 [\\/]* | ?:[\\/]*)
11053 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11057 for as_dir in $PATH
11059 IFS=$as_save_IFS
11060 test -z "$as_dir" && as_dir=.
11061 for ac_exec_ext in '' $ac_executable_extensions; do
11062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11063 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11065 break 2
11067 done
11068 done
11069 IFS=$as_save_IFS
11071 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11073 esac
11075 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11076 if test -n "$PKG_CONFIG"; then
11077 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11078 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11079 else
11080 { echo "$as_me:$LINENO: result: no" >&5
11081 echo "${ECHO_T}no" >&6; }
11086 if test "$PKG_CONFIG" = "no" ; then
11087 pkg_check_gtk=no
11088 else
11089 PKG_CONFIG_MIN_VERSION=0.9.0
11090 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11091 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11092 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11094 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11095 { echo "$as_me:$LINENO: result: yes" >&5
11096 echo "${ECHO_T}yes" >&6; }
11097 succeeded=yes
11099 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11100 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11101 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11102 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11103 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11105 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11106 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11107 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11108 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11109 echo "${ECHO_T}$GTK_LIBS" >&6; }
11110 else
11111 { echo "$as_me:$LINENO: result: no" >&5
11112 echo "${ECHO_T}no" >&6; }
11113 GTK_CFLAGS=""
11114 GTK_LIBS=""
11115 ## If we have a custom action on failure, don't print errors, but
11116 ## do set a variable so people can do so.
11117 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11123 else
11124 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11125 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11129 if test $succeeded = yes; then
11130 pkg_check_gtk=yes
11131 else
11132 pkg_check_gtk=no
11135 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11136 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11137 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11138 { (exit 1); exit 1; }; }
11143 if test x"$pkg_check_gtk" = xyes; then
11147 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11148 CFLAGS="$CFLAGS $GTK_CFLAGS"
11149 LIBS="$GTK_LIBS $LIBS"
11150 GTK_COMPILES=no
11152 for ac_func in gtk_main
11154 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11155 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11156 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11157 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11158 echo $ECHO_N "(cached) $ECHO_C" >&6
11159 else
11160 cat >conftest.$ac_ext <<_ACEOF
11161 /* confdefs.h. */
11162 _ACEOF
11163 cat confdefs.h >>conftest.$ac_ext
11164 cat >>conftest.$ac_ext <<_ACEOF
11165 /* end confdefs.h. */
11166 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11167 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11168 #define $ac_func innocuous_$ac_func
11170 /* System header to define __stub macros and hopefully few prototypes,
11171 which can conflict with char $ac_func (); below.
11172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11173 <limits.h> exists even on freestanding compilers. */
11175 #ifdef __STDC__
11176 # include <limits.h>
11177 #else
11178 # include <assert.h>
11179 #endif
11181 #undef $ac_func
11183 /* Override any GCC internal prototype to avoid an error.
11184 Use char because int might match the return type of a GCC
11185 builtin and then its argument prototype would still apply. */
11186 #ifdef __cplusplus
11187 extern "C"
11188 #endif
11189 char $ac_func ();
11190 /* The GNU C library defines this for functions which it implements
11191 to always fail with ENOSYS. Some functions are actually named
11192 something starting with __ and the normal name is an alias. */
11193 #if defined __stub_$ac_func || defined __stub___$ac_func
11194 choke me
11195 #endif
11198 main ()
11200 return $ac_func ();
11202 return 0;
11204 _ACEOF
11205 rm -f conftest.$ac_objext conftest$ac_exeext
11206 if { (ac_try="$ac_link"
11207 case "(($ac_try" in
11208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11209 *) ac_try_echo=$ac_try;;
11210 esac
11211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11212 (eval "$ac_link") 2>conftest.er1
11213 ac_status=$?
11214 grep -v '^ *+' conftest.er1 >conftest.err
11215 rm -f conftest.er1
11216 cat conftest.err >&5
11217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218 (exit $ac_status); } && {
11219 test -z "$ac_c_werror_flag" ||
11220 test ! -s conftest.err
11221 } && test -s conftest$ac_exeext &&
11222 $as_test_x conftest$ac_exeext; then
11223 eval "$as_ac_var=yes"
11224 else
11225 echo "$as_me: failed program was:" >&5
11226 sed 's/^/| /' conftest.$ac_ext >&5
11228 eval "$as_ac_var=no"
11231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11232 conftest$ac_exeext conftest.$ac_ext
11234 ac_res=`eval echo '${'$as_ac_var'}'`
11235 { echo "$as_me:$LINENO: result: $ac_res" >&5
11236 echo "${ECHO_T}$ac_res" >&6; }
11237 if test `eval echo '${'$as_ac_var'}'` = yes; then
11238 cat >>confdefs.h <<_ACEOF
11239 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11240 _ACEOF
11241 GTK_COMPILES=yes
11243 done
11245 if test "${GTK_COMPILES}" != "yes"; then
11246 if test "$USE_X_TOOLKIT" != "maybe"; then
11247 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11248 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11249 { (exit 1); exit 1; }; };
11251 else
11252 HAVE_GTK=yes
11254 cat >>confdefs.h <<\_ACEOF
11255 #define USE_GTK 1
11256 _ACEOF
11258 USE_X_TOOLKIT=none
11259 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11261 else
11262 { echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11263 closing open displays. This is no problem if you just use
11264 one display, but if you use more than one and close one of them
11265 Emacs may crash." >&5
11266 echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11267 closing open displays. This is no problem if you just use
11268 one display, but if you use more than one and close one of them
11269 Emacs may crash." >&2;}
11270 sleep 3
11277 if test "${HAVE_GTK}" = "yes"; then
11279 if test "$with_toolkit_scroll_bars" != no; then
11280 with_toolkit_scroll_bars=yes
11283 HAVE_GTK_MULTIDISPLAY=no
11285 for ac_func in gdk_display_open
11287 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11288 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11289 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11290 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11291 echo $ECHO_N "(cached) $ECHO_C" >&6
11292 else
11293 cat >conftest.$ac_ext <<_ACEOF
11294 /* confdefs.h. */
11295 _ACEOF
11296 cat confdefs.h >>conftest.$ac_ext
11297 cat >>conftest.$ac_ext <<_ACEOF
11298 /* end confdefs.h. */
11299 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11301 #define $ac_func innocuous_$ac_func
11303 /* System header to define __stub macros and hopefully few prototypes,
11304 which can conflict with char $ac_func (); below.
11305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11306 <limits.h> exists even on freestanding compilers. */
11308 #ifdef __STDC__
11309 # include <limits.h>
11310 #else
11311 # include <assert.h>
11312 #endif
11314 #undef $ac_func
11316 /* Override any GCC internal prototype to avoid an error.
11317 Use char because int might match the return type of a GCC
11318 builtin and then its argument prototype would still apply. */
11319 #ifdef __cplusplus
11320 extern "C"
11321 #endif
11322 char $ac_func ();
11323 /* The GNU C library defines this for functions which it implements
11324 to always fail with ENOSYS. Some functions are actually named
11325 something starting with __ and the normal name is an alias. */
11326 #if defined __stub_$ac_func || defined __stub___$ac_func
11327 choke me
11328 #endif
11331 main ()
11333 return $ac_func ();
11335 return 0;
11337 _ACEOF
11338 rm -f conftest.$ac_objext conftest$ac_exeext
11339 if { (ac_try="$ac_link"
11340 case "(($ac_try" in
11341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11342 *) ac_try_echo=$ac_try;;
11343 esac
11344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11345 (eval "$ac_link") 2>conftest.er1
11346 ac_status=$?
11347 grep -v '^ *+' conftest.er1 >conftest.err
11348 rm -f conftest.er1
11349 cat conftest.err >&5
11350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351 (exit $ac_status); } && {
11352 test -z "$ac_c_werror_flag" ||
11353 test ! -s conftest.err
11354 } && test -s conftest$ac_exeext &&
11355 $as_test_x conftest$ac_exeext; then
11356 eval "$as_ac_var=yes"
11357 else
11358 echo "$as_me: failed program was:" >&5
11359 sed 's/^/| /' conftest.$ac_ext >&5
11361 eval "$as_ac_var=no"
11364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11365 conftest$ac_exeext conftest.$ac_ext
11367 ac_res=`eval echo '${'$as_ac_var'}'`
11368 { echo "$as_me:$LINENO: result: $ac_res" >&5
11369 echo "${ECHO_T}$ac_res" >&6; }
11370 if test `eval echo '${'$as_ac_var'}'` = yes; then
11371 cat >>confdefs.h <<_ACEOF
11372 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11373 _ACEOF
11374 HAVE_GTK_MULTIDISPLAY=yes
11376 done
11378 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11380 cat >>confdefs.h <<\_ACEOF
11381 #define HAVE_GTK_MULTIDISPLAY 1
11382 _ACEOF
11386 HAVE_GTK_FILE_SELECTION=no
11388 for ac_func in gtk_file_selection_new
11390 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11391 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11392 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11393 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11394 echo $ECHO_N "(cached) $ECHO_C" >&6
11395 else
11396 cat >conftest.$ac_ext <<_ACEOF
11397 /* confdefs.h. */
11398 _ACEOF
11399 cat confdefs.h >>conftest.$ac_ext
11400 cat >>conftest.$ac_ext <<_ACEOF
11401 /* end confdefs.h. */
11402 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11403 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11404 #define $ac_func innocuous_$ac_func
11406 /* System header to define __stub macros and hopefully few prototypes,
11407 which can conflict with char $ac_func (); below.
11408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11409 <limits.h> exists even on freestanding compilers. */
11411 #ifdef __STDC__
11412 # include <limits.h>
11413 #else
11414 # include <assert.h>
11415 #endif
11417 #undef $ac_func
11419 /* Override any GCC internal prototype to avoid an error.
11420 Use char because int might match the return type of a GCC
11421 builtin and then its argument prototype would still apply. */
11422 #ifdef __cplusplus
11423 extern "C"
11424 #endif
11425 char $ac_func ();
11426 /* The GNU C library defines this for functions which it implements
11427 to always fail with ENOSYS. Some functions are actually named
11428 something starting with __ and the normal name is an alias. */
11429 #if defined __stub_$ac_func || defined __stub___$ac_func
11430 choke me
11431 #endif
11434 main ()
11436 return $ac_func ();
11438 return 0;
11440 _ACEOF
11441 rm -f conftest.$ac_objext conftest$ac_exeext
11442 if { (ac_try="$ac_link"
11443 case "(($ac_try" in
11444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11445 *) ac_try_echo=$ac_try;;
11446 esac
11447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11448 (eval "$ac_link") 2>conftest.er1
11449 ac_status=$?
11450 grep -v '^ *+' conftest.er1 >conftest.err
11451 rm -f conftest.er1
11452 cat conftest.err >&5
11453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454 (exit $ac_status); } && {
11455 test -z "$ac_c_werror_flag" ||
11456 test ! -s conftest.err
11457 } && test -s conftest$ac_exeext &&
11458 $as_test_x conftest$ac_exeext; then
11459 eval "$as_ac_var=yes"
11460 else
11461 echo "$as_me: failed program was:" >&5
11462 sed 's/^/| /' conftest.$ac_ext >&5
11464 eval "$as_ac_var=no"
11467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11468 conftest$ac_exeext conftest.$ac_ext
11470 ac_res=`eval echo '${'$as_ac_var'}'`
11471 { echo "$as_me:$LINENO: result: $ac_res" >&5
11472 echo "${ECHO_T}$ac_res" >&6; }
11473 if test `eval echo '${'$as_ac_var'}'` = yes; then
11474 cat >>confdefs.h <<_ACEOF
11475 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11476 _ACEOF
11477 HAVE_GTK_FILE_SELECTION=yes
11479 done
11482 HAVE_GTK_FILE_CHOOSER=no
11484 for ac_func in gtk_file_chooser_dialog_new
11486 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11487 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11488 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11489 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11490 echo $ECHO_N "(cached) $ECHO_C" >&6
11491 else
11492 cat >conftest.$ac_ext <<_ACEOF
11493 /* confdefs.h. */
11494 _ACEOF
11495 cat confdefs.h >>conftest.$ac_ext
11496 cat >>conftest.$ac_ext <<_ACEOF
11497 /* end confdefs.h. */
11498 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11499 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11500 #define $ac_func innocuous_$ac_func
11502 /* System header to define __stub macros and hopefully few prototypes,
11503 which can conflict with char $ac_func (); below.
11504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11505 <limits.h> exists even on freestanding compilers. */
11507 #ifdef __STDC__
11508 # include <limits.h>
11509 #else
11510 # include <assert.h>
11511 #endif
11513 #undef $ac_func
11515 /* Override any GCC internal prototype to avoid an error.
11516 Use char because int might match the return type of a GCC
11517 builtin and then its argument prototype would still apply. */
11518 #ifdef __cplusplus
11519 extern "C"
11520 #endif
11521 char $ac_func ();
11522 /* The GNU C library defines this for functions which it implements
11523 to always fail with ENOSYS. Some functions are actually named
11524 something starting with __ and the normal name is an alias. */
11525 #if defined __stub_$ac_func || defined __stub___$ac_func
11526 choke me
11527 #endif
11530 main ()
11532 return $ac_func ();
11534 return 0;
11536 _ACEOF
11537 rm -f conftest.$ac_objext conftest$ac_exeext
11538 if { (ac_try="$ac_link"
11539 case "(($ac_try" in
11540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11541 *) ac_try_echo=$ac_try;;
11542 esac
11543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11544 (eval "$ac_link") 2>conftest.er1
11545 ac_status=$?
11546 grep -v '^ *+' conftest.er1 >conftest.err
11547 rm -f conftest.er1
11548 cat conftest.err >&5
11549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550 (exit $ac_status); } && {
11551 test -z "$ac_c_werror_flag" ||
11552 test ! -s conftest.err
11553 } && test -s conftest$ac_exeext &&
11554 $as_test_x conftest$ac_exeext; then
11555 eval "$as_ac_var=yes"
11556 else
11557 echo "$as_me: failed program was:" >&5
11558 sed 's/^/| /' conftest.$ac_ext >&5
11560 eval "$as_ac_var=no"
11563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11564 conftest$ac_exeext conftest.$ac_ext
11566 ac_res=`eval echo '${'$as_ac_var'}'`
11567 { echo "$as_me:$LINENO: result: $ac_res" >&5
11568 echo "${ECHO_T}$ac_res" >&6; }
11569 if test `eval echo '${'$as_ac_var'}'` = yes; then
11570 cat >>confdefs.h <<_ACEOF
11571 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11572 _ACEOF
11573 HAVE_GTK_FILE_CHOOSER=yes
11575 done
11578 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11579 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11581 cat >>confdefs.h <<\_ACEOF
11582 #define HAVE_GTK_FILE_BOTH 1
11583 _ACEOF
11587 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11588 HAVE_GTK_AND_PTHREAD=no
11590 for ac_header in pthread.h
11592 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11594 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11597 echo $ECHO_N "(cached) $ECHO_C" >&6
11599 ac_res=`eval echo '${'$as_ac_Header'}'`
11600 { echo "$as_me:$LINENO: result: $ac_res" >&5
11601 echo "${ECHO_T}$ac_res" >&6; }
11602 else
11603 # Is the header compilable?
11604 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11605 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11606 cat >conftest.$ac_ext <<_ACEOF
11607 /* confdefs.h. */
11608 _ACEOF
11609 cat confdefs.h >>conftest.$ac_ext
11610 cat >>conftest.$ac_ext <<_ACEOF
11611 /* end confdefs.h. */
11612 $ac_includes_default
11613 #include <$ac_header>
11614 _ACEOF
11615 rm -f conftest.$ac_objext
11616 if { (ac_try="$ac_compile"
11617 case "(($ac_try" in
11618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11619 *) ac_try_echo=$ac_try;;
11620 esac
11621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11622 (eval "$ac_compile") 2>conftest.er1
11623 ac_status=$?
11624 grep -v '^ *+' conftest.er1 >conftest.err
11625 rm -f conftest.er1
11626 cat conftest.err >&5
11627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628 (exit $ac_status); } && {
11629 test -z "$ac_c_werror_flag" ||
11630 test ! -s conftest.err
11631 } && test -s conftest.$ac_objext; then
11632 ac_header_compiler=yes
11633 else
11634 echo "$as_me: failed program was:" >&5
11635 sed 's/^/| /' conftest.$ac_ext >&5
11637 ac_header_compiler=no
11640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11641 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11642 echo "${ECHO_T}$ac_header_compiler" >&6; }
11644 # Is the header present?
11645 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11646 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11647 cat >conftest.$ac_ext <<_ACEOF
11648 /* confdefs.h. */
11649 _ACEOF
11650 cat confdefs.h >>conftest.$ac_ext
11651 cat >>conftest.$ac_ext <<_ACEOF
11652 /* end confdefs.h. */
11653 #include <$ac_header>
11654 _ACEOF
11655 if { (ac_try="$ac_cpp conftest.$ac_ext"
11656 case "(($ac_try" in
11657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11658 *) ac_try_echo=$ac_try;;
11659 esac
11660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11662 ac_status=$?
11663 grep -v '^ *+' conftest.er1 >conftest.err
11664 rm -f conftest.er1
11665 cat conftest.err >&5
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); } >/dev/null && {
11668 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11669 test ! -s conftest.err
11670 }; then
11671 ac_header_preproc=yes
11672 else
11673 echo "$as_me: failed program was:" >&5
11674 sed 's/^/| /' conftest.$ac_ext >&5
11676 ac_header_preproc=no
11679 rm -f conftest.err conftest.$ac_ext
11680 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11681 echo "${ECHO_T}$ac_header_preproc" >&6; }
11683 # So? What about this header?
11684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11685 yes:no: )
11686 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11687 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11689 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11690 ac_header_preproc=yes
11692 no:yes:* )
11693 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11694 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11695 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11696 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11697 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11698 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11699 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11700 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11702 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11703 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11704 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11707 esac
11708 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11711 echo $ECHO_N "(cached) $ECHO_C" >&6
11712 else
11713 eval "$as_ac_Header=\$ac_header_preproc"
11715 ac_res=`eval echo '${'$as_ac_Header'}'`
11716 { echo "$as_me:$LINENO: result: $ac_res" >&5
11717 echo "${ECHO_T}$ac_res" >&6; }
11720 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11721 cat >>confdefs.h <<_ACEOF
11722 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11723 _ACEOF
11727 done
11729 if test "$ac_cv_header_pthread_h"; then
11730 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11731 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11732 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11733 echo $ECHO_N "(cached) $ECHO_C" >&6
11734 else
11735 ac_check_lib_save_LIBS=$LIBS
11736 LIBS="-lpthread $LIBS"
11737 cat >conftest.$ac_ext <<_ACEOF
11738 /* confdefs.h. */
11739 _ACEOF
11740 cat confdefs.h >>conftest.$ac_ext
11741 cat >>conftest.$ac_ext <<_ACEOF
11742 /* end confdefs.h. */
11744 /* Override any GCC internal prototype to avoid an error.
11745 Use char because int might match the return type of a GCC
11746 builtin and then its argument prototype would still apply. */
11747 #ifdef __cplusplus
11748 extern "C"
11749 #endif
11750 char pthread_self ();
11752 main ()
11754 return pthread_self ();
11756 return 0;
11758 _ACEOF
11759 rm -f conftest.$ac_objext conftest$ac_exeext
11760 if { (ac_try="$ac_link"
11761 case "(($ac_try" in
11762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11763 *) ac_try_echo=$ac_try;;
11764 esac
11765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11766 (eval "$ac_link") 2>conftest.er1
11767 ac_status=$?
11768 grep -v '^ *+' conftest.er1 >conftest.err
11769 rm -f conftest.er1
11770 cat conftest.err >&5
11771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772 (exit $ac_status); } && {
11773 test -z "$ac_c_werror_flag" ||
11774 test ! -s conftest.err
11775 } && test -s conftest$ac_exeext &&
11776 $as_test_x conftest$ac_exeext; then
11777 ac_cv_lib_pthread_pthread_self=yes
11778 else
11779 echo "$as_me: failed program was:" >&5
11780 sed 's/^/| /' conftest.$ac_ext >&5
11782 ac_cv_lib_pthread_pthread_self=no
11785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11786 conftest$ac_exeext conftest.$ac_ext
11787 LIBS=$ac_check_lib_save_LIBS
11789 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11790 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11791 if test $ac_cv_lib_pthread_pthread_self = yes; then
11792 HAVE_GTK_AND_PTHREAD=yes
11796 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11797 case "${canonical}" in
11798 *-hpux*) ;;
11799 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11800 esac
11802 cat >>confdefs.h <<\_ACEOF
11803 #define HAVE_GTK_AND_PTHREAD 1
11804 _ACEOF
11810 HAVE_DBUS=no
11811 if test "${with_dbus}" = "yes"; then
11813 succeeded=no
11815 # Extract the first word of "pkg-config", so it can be a program name with args.
11816 set dummy pkg-config; ac_word=$2
11817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11819 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11820 echo $ECHO_N "(cached) $ECHO_C" >&6
11821 else
11822 case $PKG_CONFIG in
11823 [\\/]* | ?:[\\/]*)
11824 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11828 for as_dir in $PATH
11830 IFS=$as_save_IFS
11831 test -z "$as_dir" && as_dir=.
11832 for ac_exec_ext in '' $ac_executable_extensions; do
11833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11834 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11836 break 2
11838 done
11839 done
11840 IFS=$as_save_IFS
11842 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11844 esac
11846 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11847 if test -n "$PKG_CONFIG"; then
11848 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11849 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11850 else
11851 { echo "$as_me:$LINENO: result: no" >&5
11852 echo "${ECHO_T}no" >&6; }
11857 if test "$PKG_CONFIG" = "no" ; then
11858 HAVE_DBUS=no
11859 else
11860 PKG_CONFIG_MIN_VERSION=0.9.0
11861 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11862 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11863 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11865 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11866 { echo "$as_me:$LINENO: result: yes" >&5
11867 echo "${ECHO_T}yes" >&6; }
11868 succeeded=yes
11870 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11871 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11872 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11873 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11874 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11876 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11877 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11878 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11879 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11880 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11881 else
11882 { echo "$as_me:$LINENO: result: no" >&5
11883 echo "${ECHO_T}no" >&6; }
11884 DBUS_CFLAGS=""
11885 DBUS_LIBS=""
11886 ## If we have a custom action on failure, don't print errors, but
11887 ## do set a variable so people can do so.
11888 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11894 else
11895 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11896 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11900 if test $succeeded = yes; then
11901 HAVE_DBUS=yes
11902 else
11903 HAVE_DBUS=no
11906 if test "$HAVE_DBUS" = yes; then
11908 cat >>confdefs.h <<\_ACEOF
11909 #define HAVE_DBUS 1
11910 _ACEOF
11915 HAVE_XAW3D=no
11916 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11917 if test "$with_xaw3d" != no; then
11918 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11919 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11920 if test "${emacs_cv_xaw3d+set}" = set; then
11921 echo $ECHO_N "(cached) $ECHO_C" >&6
11922 else
11923 cat >conftest.$ac_ext <<_ACEOF
11924 /* confdefs.h. */
11925 _ACEOF
11926 cat confdefs.h >>conftest.$ac_ext
11927 cat >>conftest.$ac_ext <<_ACEOF
11928 /* end confdefs.h. */
11930 #include <X11/Intrinsic.h>
11931 #include <X11/Xaw3d/Simple.h>
11933 main ()
11937 return 0;
11939 _ACEOF
11940 rm -f conftest.$ac_objext conftest$ac_exeext
11941 if { (ac_try="$ac_link"
11942 case "(($ac_try" in
11943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11944 *) ac_try_echo=$ac_try;;
11945 esac
11946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11947 (eval "$ac_link") 2>conftest.er1
11948 ac_status=$?
11949 grep -v '^ *+' conftest.er1 >conftest.err
11950 rm -f conftest.er1
11951 cat conftest.err >&5
11952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953 (exit $ac_status); } && {
11954 test -z "$ac_c_werror_flag" ||
11955 test ! -s conftest.err
11956 } && test -s conftest$ac_exeext &&
11957 $as_test_x conftest$ac_exeext; then
11958 emacs_cv_xaw3d=yes
11959 else
11960 echo "$as_me: failed program was:" >&5
11961 sed 's/^/| /' conftest.$ac_ext >&5
11963 emacs_cv_xaw3d=no
11966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11967 conftest$ac_exeext conftest.$ac_ext
11970 else
11971 emacs_cv_xaw3d=no
11973 if test $emacs_cv_xaw3d = yes; then
11974 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11975 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11976 USE_X_TOOLKIT=LUCID
11977 HAVE_XAW3D=yes
11979 cat >>confdefs.h <<\_ACEOF
11980 #define HAVE_XAW3D 1
11981 _ACEOF
11983 else
11984 { echo "$as_me:$LINENO: result: no" >&5
11985 echo "${ECHO_T}no" >&6; }
11986 { echo "$as_me:$LINENO: checking for libXaw" >&5
11987 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
11988 if test "${emacs_cv_xaw+set}" = set; then
11989 echo $ECHO_N "(cached) $ECHO_C" >&6
11990 else
11991 cat >conftest.$ac_ext <<_ACEOF
11992 /* confdefs.h. */
11993 _ACEOF
11994 cat confdefs.h >>conftest.$ac_ext
11995 cat >>conftest.$ac_ext <<_ACEOF
11996 /* end confdefs.h. */
11998 #include <X11/Intrinsic.h>
11999 #include <X11/Xaw/Simple.h>
12001 main ()
12005 return 0;
12007 _ACEOF
12008 rm -f conftest.$ac_objext conftest$ac_exeext
12009 if { (ac_try="$ac_link"
12010 case "(($ac_try" in
12011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12012 *) ac_try_echo=$ac_try;;
12013 esac
12014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12015 (eval "$ac_link") 2>conftest.er1
12016 ac_status=$?
12017 grep -v '^ *+' conftest.er1 >conftest.err
12018 rm -f conftest.er1
12019 cat conftest.err >&5
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); } && {
12022 test -z "$ac_c_werror_flag" ||
12023 test ! -s conftest.err
12024 } && test -s conftest$ac_exeext &&
12025 $as_test_x conftest$ac_exeext; then
12026 emacs_cv_xaw=yes
12027 else
12028 echo "$as_me: failed program was:" >&5
12029 sed 's/^/| /' conftest.$ac_ext >&5
12031 emacs_cv_xaw=no
12034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12035 conftest$ac_exeext conftest.$ac_ext
12038 if test $emacs_cv_xaw = yes; then
12039 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12040 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12041 USE_X_TOOLKIT=LUCID
12042 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12043 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12044 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12045 { (exit 1); exit 1; }; }
12046 else
12047 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12048 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
12049 USE_X_TOOLKIT=none
12054 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12056 if test "${USE_X_TOOLKIT}" != "none"; then
12057 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12058 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12059 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12060 echo $ECHO_N "(cached) $ECHO_C" >&6
12061 else
12062 cat >conftest.$ac_ext <<_ACEOF
12063 /* confdefs.h. */
12064 _ACEOF
12065 cat confdefs.h >>conftest.$ac_ext
12066 cat >>conftest.$ac_ext <<_ACEOF
12067 /* end confdefs.h. */
12068 #include <X11/Intrinsic.h>
12070 main ()
12072 #if XtSpecificationRelease < 6
12073 fail;
12074 #endif
12077 return 0;
12079 _ACEOF
12080 rm -f conftest.$ac_objext conftest$ac_exeext
12081 if { (ac_try="$ac_link"
12082 case "(($ac_try" in
12083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12084 *) ac_try_echo=$ac_try;;
12085 esac
12086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12087 (eval "$ac_link") 2>conftest.er1
12088 ac_status=$?
12089 grep -v '^ *+' conftest.er1 >conftest.err
12090 rm -f conftest.er1
12091 cat conftest.err >&5
12092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093 (exit $ac_status); } && {
12094 test -z "$ac_c_werror_flag" ||
12095 test ! -s conftest.err
12096 } && test -s conftest$ac_exeext &&
12097 $as_test_x conftest$ac_exeext; then
12098 emacs_cv_x11_toolkit_version_6=yes
12099 else
12100 echo "$as_me: failed program was:" >&5
12101 sed 's/^/| /' conftest.$ac_ext >&5
12103 emacs_cv_x11_toolkit_version_6=no
12106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12107 conftest$ac_exeext conftest.$ac_ext
12110 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12111 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12112 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12113 echo "${ECHO_T}6 or newer" >&6; }
12115 cat >>confdefs.h <<\_ACEOF
12116 #define HAVE_X11XTR6 1
12117 _ACEOF
12119 else
12120 { echo "$as_me:$LINENO: result: before 6" >&5
12121 echo "${ECHO_T}before 6" >&6; }
12124 OLDLIBS="$LIBS"
12125 if test x$HAVE_X11XTR6 = xyes; then
12126 LIBS="-lXt -lSM -lICE $LIBS"
12127 else
12128 LIBS="-lXt $LIBS"
12131 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12132 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12133 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12134 echo $ECHO_N "(cached) $ECHO_C" >&6
12135 else
12136 ac_check_lib_save_LIBS=$LIBS
12137 LIBS="-lXmu $LIBS"
12138 cat >conftest.$ac_ext <<_ACEOF
12139 /* confdefs.h. */
12140 _ACEOF
12141 cat confdefs.h >>conftest.$ac_ext
12142 cat >>conftest.$ac_ext <<_ACEOF
12143 /* end confdefs.h. */
12145 /* Override any GCC internal prototype to avoid an error.
12146 Use char because int might match the return type of a GCC
12147 builtin and then its argument prototype would still apply. */
12148 #ifdef __cplusplus
12149 extern "C"
12150 #endif
12151 char XmuConvertStandardSelection ();
12153 main ()
12155 return XmuConvertStandardSelection ();
12157 return 0;
12159 _ACEOF
12160 rm -f conftest.$ac_objext conftest$ac_exeext
12161 if { (ac_try="$ac_link"
12162 case "(($ac_try" in
12163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12164 *) ac_try_echo=$ac_try;;
12165 esac
12166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12167 (eval "$ac_link") 2>conftest.er1
12168 ac_status=$?
12169 grep -v '^ *+' conftest.er1 >conftest.err
12170 rm -f conftest.er1
12171 cat conftest.err >&5
12172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173 (exit $ac_status); } && {
12174 test -z "$ac_c_werror_flag" ||
12175 test ! -s conftest.err
12176 } && test -s conftest$ac_exeext &&
12177 $as_test_x conftest$ac_exeext; then
12178 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12179 else
12180 echo "$as_me: failed program was:" >&5
12181 sed 's/^/| /' conftest.$ac_ext >&5
12183 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12187 conftest$ac_exeext conftest.$ac_ext
12188 LIBS=$ac_check_lib_save_LIBS
12190 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12191 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12192 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12193 cat >>confdefs.h <<_ACEOF
12194 #define HAVE_LIBXMU 1
12195 _ACEOF
12197 LIBS="-lXmu $LIBS"
12201 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12204 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12205 if test "${HAVE_X11}" = "yes"; then
12206 if test "${USE_X_TOOLKIT}" != "none"; then
12208 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12209 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12210 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12211 echo $ECHO_N "(cached) $ECHO_C" >&6
12212 else
12213 ac_check_lib_save_LIBS=$LIBS
12214 LIBS="-lXext $LIBS"
12215 cat >conftest.$ac_ext <<_ACEOF
12216 /* confdefs.h. */
12217 _ACEOF
12218 cat confdefs.h >>conftest.$ac_ext
12219 cat >>conftest.$ac_ext <<_ACEOF
12220 /* end confdefs.h. */
12222 /* Override any GCC internal prototype to avoid an error.
12223 Use char because int might match the return type of a GCC
12224 builtin and then its argument prototype would still apply. */
12225 #ifdef __cplusplus
12226 extern "C"
12227 #endif
12228 char XShapeQueryExtension ();
12230 main ()
12232 return XShapeQueryExtension ();
12234 return 0;
12236 _ACEOF
12237 rm -f conftest.$ac_objext conftest$ac_exeext
12238 if { (ac_try="$ac_link"
12239 case "(($ac_try" in
12240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12241 *) ac_try_echo=$ac_try;;
12242 esac
12243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12244 (eval "$ac_link") 2>conftest.er1
12245 ac_status=$?
12246 grep -v '^ *+' conftest.er1 >conftest.err
12247 rm -f conftest.er1
12248 cat conftest.err >&5
12249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250 (exit $ac_status); } && {
12251 test -z "$ac_c_werror_flag" ||
12252 test ! -s conftest.err
12253 } && test -s conftest$ac_exeext &&
12254 $as_test_x conftest$ac_exeext; then
12255 ac_cv_lib_Xext_XShapeQueryExtension=yes
12256 else
12257 echo "$as_me: failed program was:" >&5
12258 sed 's/^/| /' conftest.$ac_ext >&5
12260 ac_cv_lib_Xext_XShapeQueryExtension=no
12263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12264 conftest$ac_exeext conftest.$ac_ext
12265 LIBS=$ac_check_lib_save_LIBS
12267 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12268 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12269 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12270 cat >>confdefs.h <<_ACEOF
12271 #define HAVE_LIBXEXT 1
12272 _ACEOF
12274 LIBS="-lXext $LIBS"
12281 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12282 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12283 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12284 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12285 echo $ECHO_N "(cached) $ECHO_C" >&6
12286 else
12287 cat >conftest.$ac_ext <<_ACEOF
12288 /* confdefs.h. */
12289 _ACEOF
12290 cat confdefs.h >>conftest.$ac_ext
12291 cat >>conftest.$ac_ext <<_ACEOF
12292 /* end confdefs.h. */
12293 #include <Xm/Xm.h>
12295 main ()
12297 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12298 int x = 5;
12299 #else
12300 Motif version prior to 2.1.
12301 #endif
12303 return 0;
12305 _ACEOF
12306 rm -f conftest.$ac_objext
12307 if { (ac_try="$ac_compile"
12308 case "(($ac_try" in
12309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12310 *) ac_try_echo=$ac_try;;
12311 esac
12312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12313 (eval "$ac_compile") 2>conftest.er1
12314 ac_status=$?
12315 grep -v '^ *+' conftest.er1 >conftest.err
12316 rm -f conftest.er1
12317 cat conftest.err >&5
12318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); } && {
12320 test -z "$ac_c_werror_flag" ||
12321 test ! -s conftest.err
12322 } && test -s conftest.$ac_objext; then
12323 emacs_cv_motif_version_2_1=yes
12324 else
12325 echo "$as_me: failed program was:" >&5
12326 sed 's/^/| /' conftest.$ac_ext >&5
12328 emacs_cv_motif_version_2_1=no
12331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12333 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12334 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12335 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12336 if test $emacs_cv_motif_version_2_1 = yes; then
12337 HAVE_LIBXP=no
12339 cat >>confdefs.h <<\_ACEOF
12340 #define HAVE_MOTIF_2_1 1
12341 _ACEOF
12343 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12344 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12345 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12346 echo $ECHO_N "(cached) $ECHO_C" >&6
12347 else
12348 ac_check_lib_save_LIBS=$LIBS
12349 LIBS="-lXp $LIBS"
12350 cat >conftest.$ac_ext <<_ACEOF
12351 /* confdefs.h. */
12352 _ACEOF
12353 cat confdefs.h >>conftest.$ac_ext
12354 cat >>conftest.$ac_ext <<_ACEOF
12355 /* end confdefs.h. */
12357 /* Override any GCC internal prototype to avoid an error.
12358 Use char because int might match the return type of a GCC
12359 builtin and then its argument prototype would still apply. */
12360 #ifdef __cplusplus
12361 extern "C"
12362 #endif
12363 char XpCreateContext ();
12365 main ()
12367 return XpCreateContext ();
12369 return 0;
12371 _ACEOF
12372 rm -f conftest.$ac_objext conftest$ac_exeext
12373 if { (ac_try="$ac_link"
12374 case "(($ac_try" in
12375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12376 *) ac_try_echo=$ac_try;;
12377 esac
12378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12379 (eval "$ac_link") 2>conftest.er1
12380 ac_status=$?
12381 grep -v '^ *+' conftest.er1 >conftest.err
12382 rm -f conftest.er1
12383 cat conftest.err >&5
12384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385 (exit $ac_status); } && {
12386 test -z "$ac_c_werror_flag" ||
12387 test ! -s conftest.err
12388 } && test -s conftest$ac_exeext &&
12389 $as_test_x conftest$ac_exeext; then
12390 ac_cv_lib_Xp_XpCreateContext=yes
12391 else
12392 echo "$as_me: failed program was:" >&5
12393 sed 's/^/| /' conftest.$ac_ext >&5
12395 ac_cv_lib_Xp_XpCreateContext=no
12398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12399 conftest$ac_exeext conftest.$ac_ext
12400 LIBS=$ac_check_lib_save_LIBS
12402 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12403 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12404 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12405 HAVE_LIBXP=yes
12408 if test ${HAVE_LIBXP} = yes; then
12410 cat >>confdefs.h <<\_ACEOF
12411 #define HAVE_LIBXP 1
12412 _ACEOF
12415 else
12416 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12417 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12418 if test "${emacs_cv_lesstif+set}" = set; then
12419 echo $ECHO_N "(cached) $ECHO_C" >&6
12420 else
12421 # We put this in CFLAGS temporarily to precede other -I options
12422 # that might be in CFLAGS temporarily.
12423 # We put this in CPPFLAGS where it precedes the other -I options.
12424 OLD_CPPFLAGS=$CPPFLAGS
12425 OLD_CFLAGS=$CFLAGS
12426 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12427 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12428 cat >conftest.$ac_ext <<_ACEOF
12429 /* confdefs.h. */
12430 _ACEOF
12431 cat confdefs.h >>conftest.$ac_ext
12432 cat >>conftest.$ac_ext <<_ACEOF
12433 /* end confdefs.h. */
12434 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12436 main ()
12438 int x = 5;
12440 return 0;
12442 _ACEOF
12443 rm -f conftest.$ac_objext
12444 if { (ac_try="$ac_compile"
12445 case "(($ac_try" in
12446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12447 *) ac_try_echo=$ac_try;;
12448 esac
12449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12450 (eval "$ac_compile") 2>conftest.er1
12451 ac_status=$?
12452 grep -v '^ *+' conftest.er1 >conftest.err
12453 rm -f conftest.er1
12454 cat conftest.err >&5
12455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456 (exit $ac_status); } && {
12457 test -z "$ac_c_werror_flag" ||
12458 test ! -s conftest.err
12459 } && test -s conftest.$ac_objext; then
12460 emacs_cv_lesstif=yes
12461 else
12462 echo "$as_me: failed program was:" >&5
12463 sed 's/^/| /' conftest.$ac_ext >&5
12465 emacs_cv_lesstif=no
12468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12470 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12471 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12472 if test $emacs_cv_lesstif = yes; then
12473 # Make sure this -I option remains in CPPFLAGS after it is set
12474 # back to REAL_CPPFLAGS.
12475 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12476 # have those other -I options anyway. Ultimately, having this
12477 # directory ultimately in CPPFLAGS will be enough.
12478 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12479 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12480 else
12481 CFLAGS=$OLD_CFLAGS
12482 CPPFLAGS=$OLD_CPPFLAGS
12489 USE_TOOLKIT_SCROLL_BARS=no
12490 if test "${with_toolkit_scroll_bars}" != "no"; then
12491 if test "${USE_X_TOOLKIT}" != "none"; then
12492 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12493 cat >>confdefs.h <<\_ACEOF
12494 #define USE_TOOLKIT_SCROLL_BARS 1
12495 _ACEOF
12497 HAVE_XAW3D=no
12498 USE_TOOLKIT_SCROLL_BARS=yes
12499 elif test "${HAVE_XAW3D}" = "yes"; then
12500 cat >>confdefs.h <<\_ACEOF
12501 #define USE_TOOLKIT_SCROLL_BARS 1
12502 _ACEOF
12504 USE_TOOLKIT_SCROLL_BARS=yes
12506 elif test "${HAVE_GTK}" = "yes"; then
12507 cat >>confdefs.h <<\_ACEOF
12508 #define USE_TOOLKIT_SCROLL_BARS 1
12509 _ACEOF
12511 USE_TOOLKIT_SCROLL_BARS=yes
12512 elif test "${HAVE_CARBON}" = "yes"; then
12513 cat >>confdefs.h <<\_ACEOF
12514 #define USE_TOOLKIT_SCROLL_BARS 1
12515 _ACEOF
12517 USE_TOOLKIT_SCROLL_BARS=yes
12518 elif test "${HAVE_NS}" = "yes"; then
12519 cat >>confdefs.h <<\_ACEOF
12520 #define USE_TOOLKIT_SCROLL_BARS 1
12521 _ACEOF
12523 USE_TOOLKIT_SCROLL_BARS=yes
12527 cat >conftest.$ac_ext <<_ACEOF
12528 /* confdefs.h. */
12529 _ACEOF
12530 cat confdefs.h >>conftest.$ac_ext
12531 cat >>conftest.$ac_ext <<_ACEOF
12532 /* end confdefs.h. */
12534 #include <X11/Xlib.h>
12535 #include <X11/Xresource.h>
12537 main ()
12539 XIMProc callback;
12541 return 0;
12543 _ACEOF
12544 rm -f conftest.$ac_objext
12545 if { (ac_try="$ac_compile"
12546 case "(($ac_try" in
12547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12548 *) ac_try_echo=$ac_try;;
12549 esac
12550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12551 (eval "$ac_compile") 2>conftest.er1
12552 ac_status=$?
12553 grep -v '^ *+' conftest.er1 >conftest.err
12554 rm -f conftest.er1
12555 cat conftest.err >&5
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); } && {
12558 test -z "$ac_c_werror_flag" ||
12559 test ! -s conftest.err
12560 } && test -s conftest.$ac_objext; then
12561 HAVE_XIM=yes
12563 cat >>confdefs.h <<\_ACEOF
12564 #define HAVE_XIM 1
12565 _ACEOF
12567 else
12568 echo "$as_me: failed program was:" >&5
12569 sed 's/^/| /' conftest.$ac_ext >&5
12571 HAVE_XIM=no
12574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12577 if test "${with_xim}" != "no"; then
12579 cat >>confdefs.h <<\_ACEOF
12580 #define USE_XIM 1
12581 _ACEOF
12586 if test "${HAVE_XIM}" != "no"; then
12587 late_CFLAGS=$CFLAGS
12588 if test "$GCC" = yes; then
12589 CFLAGS="$CFLAGS --pedantic-errors"
12591 cat >conftest.$ac_ext <<_ACEOF
12592 /* confdefs.h. */
12593 _ACEOF
12594 cat confdefs.h >>conftest.$ac_ext
12595 cat >>conftest.$ac_ext <<_ACEOF
12596 /* end confdefs.h. */
12598 #include <X11/Xlib.h>
12599 #include <X11/Xresource.h>
12601 main ()
12603 Display *display;
12604 XrmDatabase db;
12605 char *res_name;
12606 char *res_class;
12607 XIMProc callback;
12608 XPointer *client_data;
12609 #ifndef __GNUC__
12610 /* If we're not using GCC, it's probably not XFree86, and this is
12611 probably right, but we can't use something like --pedantic-errors. */
12612 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12613 char*, XIMProc, XPointer*);
12614 #endif
12615 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12616 client_data);
12618 return 0;
12620 _ACEOF
12621 rm -f conftest.$ac_objext
12622 if { (ac_try="$ac_compile"
12623 case "(($ac_try" in
12624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12625 *) ac_try_echo=$ac_try;;
12626 esac
12627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12628 (eval "$ac_compile") 2>conftest.er1
12629 ac_status=$?
12630 grep -v '^ *+' conftest.er1 >conftest.err
12631 rm -f conftest.er1
12632 cat conftest.err >&5
12633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634 (exit $ac_status); } && {
12635 test -z "$ac_c_werror_flag" ||
12636 test ! -s conftest.err
12637 } && test -s conftest.$ac_objext; then
12638 emacs_cv_arg6_star=yes
12639 else
12640 echo "$as_me: failed program was:" >&5
12641 sed 's/^/| /' conftest.$ac_ext >&5
12646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12648 if test "$emacs_cv_arg6_star" = yes; then
12649 cat >>confdefs.h <<\_ACEOF
12650 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12651 _ACEOF
12653 else
12654 cat >>confdefs.h <<\_ACEOF
12655 #define XRegisterIMInstantiateCallback_arg6 XPointer
12656 _ACEOF
12659 CFLAGS=$late_CFLAGS
12662 ### Start of font-backend section.
12664 ## Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
12665 HAVE_XFT=maybe
12666 if test "x${with_freetype}" = "xno"; then
12667 with_xft="no";
12669 if test "x${with_xft}" != "xno"; then
12672 succeeded=no
12674 # Extract the first word of "pkg-config", so it can be a program name with args.
12675 set dummy pkg-config; ac_word=$2
12676 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12678 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12679 echo $ECHO_N "(cached) $ECHO_C" >&6
12680 else
12681 case $PKG_CONFIG in
12682 [\\/]* | ?:[\\/]*)
12683 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12687 for as_dir in $PATH
12689 IFS=$as_save_IFS
12690 test -z "$as_dir" && as_dir=.
12691 for ac_exec_ext in '' $ac_executable_extensions; do
12692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12693 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12695 break 2
12697 done
12698 done
12699 IFS=$as_save_IFS
12701 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12703 esac
12705 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12706 if test -n "$PKG_CONFIG"; then
12707 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12708 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12709 else
12710 { echo "$as_me:$LINENO: result: no" >&5
12711 echo "${ECHO_T}no" >&6; }
12716 if test "$PKG_CONFIG" = "no" ; then
12717 HAVE_XFT=no
12718 else
12719 PKG_CONFIG_MIN_VERSION=0.9.0
12720 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12721 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12722 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12724 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12725 { echo "$as_me:$LINENO: result: yes" >&5
12726 echo "${ECHO_T}yes" >&6; }
12727 succeeded=yes
12729 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12730 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12731 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12732 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12733 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12735 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12736 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12737 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12738 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12739 echo "${ECHO_T}$XFT_LIBS" >&6; }
12740 else
12741 { echo "$as_me:$LINENO: result: no" >&5
12742 echo "${ECHO_T}no" >&6; }
12743 XFT_CFLAGS=""
12744 XFT_LIBS=""
12745 ## If we have a custom action on failure, don't print errors, but
12746 ## do set a variable so people can do so.
12747 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12753 else
12754 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12755 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12759 if test $succeeded = yes; then
12761 else
12762 HAVE_XFT=no
12765 if test "$HAVE_XFT" != no; then
12766 OLD_CPPFLAGS="$CPPFLAGS"
12767 OLD_CFLAGS="$CFLAGS"
12768 OLD_LIBS="$LIBS"
12769 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12770 CFLAGS="$CFLAGS $XFT_CFLAGS"
12771 LIBS="$XFT_LIBS $LIBS"
12772 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12773 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12774 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12775 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12776 echo $ECHO_N "(cached) $ECHO_C" >&6
12778 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12779 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12780 else
12781 # Is the header compilable?
12782 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12783 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12784 cat >conftest.$ac_ext <<_ACEOF
12785 /* confdefs.h. */
12786 _ACEOF
12787 cat confdefs.h >>conftest.$ac_ext
12788 cat >>conftest.$ac_ext <<_ACEOF
12789 /* end confdefs.h. */
12790 $ac_includes_default
12791 #include <X11/Xft/Xft.h>
12792 _ACEOF
12793 rm -f conftest.$ac_objext
12794 if { (ac_try="$ac_compile"
12795 case "(($ac_try" in
12796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12797 *) ac_try_echo=$ac_try;;
12798 esac
12799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12800 (eval "$ac_compile") 2>conftest.er1
12801 ac_status=$?
12802 grep -v '^ *+' conftest.er1 >conftest.err
12803 rm -f conftest.er1
12804 cat conftest.err >&5
12805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806 (exit $ac_status); } && {
12807 test -z "$ac_c_werror_flag" ||
12808 test ! -s conftest.err
12809 } && test -s conftest.$ac_objext; then
12810 ac_header_compiler=yes
12811 else
12812 echo "$as_me: failed program was:" >&5
12813 sed 's/^/| /' conftest.$ac_ext >&5
12815 ac_header_compiler=no
12818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12819 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12820 echo "${ECHO_T}$ac_header_compiler" >&6; }
12822 # Is the header present?
12823 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12824 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12825 cat >conftest.$ac_ext <<_ACEOF
12826 /* confdefs.h. */
12827 _ACEOF
12828 cat confdefs.h >>conftest.$ac_ext
12829 cat >>conftest.$ac_ext <<_ACEOF
12830 /* end confdefs.h. */
12831 #include <X11/Xft/Xft.h>
12832 _ACEOF
12833 if { (ac_try="$ac_cpp conftest.$ac_ext"
12834 case "(($ac_try" in
12835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12836 *) ac_try_echo=$ac_try;;
12837 esac
12838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12839 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12840 ac_status=$?
12841 grep -v '^ *+' conftest.er1 >conftest.err
12842 rm -f conftest.er1
12843 cat conftest.err >&5
12844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845 (exit $ac_status); } >/dev/null && {
12846 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12847 test ! -s conftest.err
12848 }; then
12849 ac_header_preproc=yes
12850 else
12851 echo "$as_me: failed program was:" >&5
12852 sed 's/^/| /' conftest.$ac_ext >&5
12854 ac_header_preproc=no
12857 rm -f conftest.err conftest.$ac_ext
12858 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12859 echo "${ECHO_T}$ac_header_preproc" >&6; }
12861 # So? What about this header?
12862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12863 yes:no: )
12864 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12865 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12866 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12867 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12868 ac_header_preproc=yes
12870 no:yes:* )
12871 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12872 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12873 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12874 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12875 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12876 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12877 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12878 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12879 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12880 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12881 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12882 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12885 esac
12886 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12887 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12888 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12889 echo $ECHO_N "(cached) $ECHO_C" >&6
12890 else
12891 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12893 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12894 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12897 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12898 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12899 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12900 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12901 echo $ECHO_N "(cached) $ECHO_C" >&6
12902 else
12903 ac_check_lib_save_LIBS=$LIBS
12904 LIBS="-lXft $XFT_LIBS $LIBS"
12905 cat >conftest.$ac_ext <<_ACEOF
12906 /* confdefs.h. */
12907 _ACEOF
12908 cat confdefs.h >>conftest.$ac_ext
12909 cat >>conftest.$ac_ext <<_ACEOF
12910 /* end confdefs.h. */
12912 /* Override any GCC internal prototype to avoid an error.
12913 Use char because int might match the return type of a GCC
12914 builtin and then its argument prototype would still apply. */
12915 #ifdef __cplusplus
12916 extern "C"
12917 #endif
12918 char XftFontOpen ();
12920 main ()
12922 return XftFontOpen ();
12924 return 0;
12926 _ACEOF
12927 rm -f conftest.$ac_objext conftest$ac_exeext
12928 if { (ac_try="$ac_link"
12929 case "(($ac_try" in
12930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12931 *) ac_try_echo=$ac_try;;
12932 esac
12933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12934 (eval "$ac_link") 2>conftest.er1
12935 ac_status=$?
12936 grep -v '^ *+' conftest.er1 >conftest.err
12937 rm -f conftest.er1
12938 cat conftest.err >&5
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); } && {
12941 test -z "$ac_c_werror_flag" ||
12942 test ! -s conftest.err
12943 } && test -s conftest$ac_exeext &&
12944 $as_test_x conftest$ac_exeext; then
12945 ac_cv_lib_Xft_XftFontOpen=yes
12946 else
12947 echo "$as_me: failed program was:" >&5
12948 sed 's/^/| /' conftest.$ac_ext >&5
12950 ac_cv_lib_Xft_XftFontOpen=no
12953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12954 conftest$ac_exeext conftest.$ac_ext
12955 LIBS=$ac_check_lib_save_LIBS
12957 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12958 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12959 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12960 HAVE_XFT=yes
12967 if test "${HAVE_XFT}" = "yes"; then
12969 cat >>confdefs.h <<\_ACEOF
12970 #define HAVE_XFT 1
12971 _ACEOF
12974 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12975 else
12976 CPPFLAGS="$OLD_CPPFLAGS"
12977 CFLAGS="$OLD_CFLAGS"
12978 LIBS="$OLD_LIBS"
12979 fi # "${HAVE_XFT}" = "yes"
12980 fi # "$HAVE_XFT" != no
12981 fi # "x${with_xft}" != "xno"
12983 if test "$HAVE_XFT" != "yes"; then
12984 HAVE_XFT=no
12988 HAVE_FREETYPE=no
12989 ### Use -lfreetype if available, unless `--with-freetype=no'.
12990 if test "${HAVE_XFT}" = "yes"; then
12991 HAVE_FREETYPE=yes
12992 elif test "x${with_freetype}" != "xno"; then
12995 succeeded=no
12997 # Extract the first word of "pkg-config", so it can be a program name with args.
12998 set dummy pkg-config; ac_word=$2
12999 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13001 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13002 echo $ECHO_N "(cached) $ECHO_C" >&6
13003 else
13004 case $PKG_CONFIG in
13005 [\\/]* | ?:[\\/]*)
13006 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13010 for as_dir in $PATH
13012 IFS=$as_save_IFS
13013 test -z "$as_dir" && as_dir=.
13014 for ac_exec_ext in '' $ac_executable_extensions; do
13015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13016 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13018 break 2
13020 done
13021 done
13022 IFS=$as_save_IFS
13024 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13026 esac
13028 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13029 if test -n "$PKG_CONFIG"; then
13030 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13031 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13032 else
13033 { echo "$as_me:$LINENO: result: no" >&5
13034 echo "${ECHO_T}no" >&6; }
13039 if test "$PKG_CONFIG" = "no" ; then
13040 HAVE_FREETYPE=no
13041 else
13042 PKG_CONFIG_MIN_VERSION=0.9.0
13043 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13044 { echo "$as_me:$LINENO: checking for freetype2" >&5
13045 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
13047 if $PKG_CONFIG --exists "freetype2" 2>&5; then
13048 { echo "$as_me:$LINENO: result: yes" >&5
13049 echo "${ECHO_T}yes" >&6; }
13050 succeeded=yes
13052 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
13053 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
13054 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
13055 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
13056 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
13058 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
13059 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
13060 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
13061 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
13062 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
13063 else
13064 { echo "$as_me:$LINENO: result: no" >&5
13065 echo "${ECHO_T}no" >&6; }
13066 FREETYPE_CFLAGS=""
13067 FREETYPE_LIBS=""
13068 ## If we have a custom action on failure, don't print errors, but
13069 ## do set a variable so people can do so.
13070 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
13076 else
13077 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13078 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13082 if test $succeeded = yes; then
13083 HAVE_FREETYPE=yes
13084 else
13085 HAVE_FREETYPE=no
13088 if test "${HAVE_FREETYPE}" = "yes"; then
13090 succeeded=no
13092 # Extract the first word of "pkg-config", so it can be a program name with args.
13093 set dummy pkg-config; ac_word=$2
13094 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13096 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13097 echo $ECHO_N "(cached) $ECHO_C" >&6
13098 else
13099 case $PKG_CONFIG in
13100 [\\/]* | ?:[\\/]*)
13101 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13105 for as_dir in $PATH
13107 IFS=$as_save_IFS
13108 test -z "$as_dir" && as_dir=.
13109 for ac_exec_ext in '' $ac_executable_extensions; do
13110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13111 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13113 break 2
13115 done
13116 done
13117 IFS=$as_save_IFS
13119 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13121 esac
13123 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13124 if test -n "$PKG_CONFIG"; then
13125 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13126 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13127 else
13128 { echo "$as_me:$LINENO: result: no" >&5
13129 echo "${ECHO_T}no" >&6; }
13134 if test "$PKG_CONFIG" = "no" ; then
13135 HAVE_FC=no
13136 else
13137 PKG_CONFIG_MIN_VERSION=0.9.0
13138 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13139 { echo "$as_me:$LINENO: checking for fontconfig" >&5
13140 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
13142 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
13143 { echo "$as_me:$LINENO: result: yes" >&5
13144 echo "${ECHO_T}yes" >&6; }
13145 succeeded=yes
13147 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13148 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
13149 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
13150 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13151 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
13153 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13154 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
13155 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
13156 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13157 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
13158 else
13159 { echo "$as_me:$LINENO: result: no" >&5
13160 echo "${ECHO_T}no" >&6; }
13161 FONTCONFIG_CFLAGS=""
13162 FONTCONFIG_LIBS=""
13163 ## If we have a custom action on failure, don't print errors, but
13164 ## do set a variable so people can do so.
13165 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
13171 else
13172 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13173 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13177 if test $succeeded = yes; then
13178 HAVE_FC=yes
13179 else
13180 HAVE_FC=no
13183 if test "${HAVE_FC}" = "no"; then
13184 HAVE_FREETYPE=no
13189 HAVE_LIBOTF=no
13190 if test "${HAVE_FREETYPE}" = "yes"; then
13192 cat >>confdefs.h <<\_ACEOF
13193 #define HAVE_FREETYPE 1
13194 _ACEOF
13196 if test "${with_libotf}" != "no"; then
13198 succeeded=no
13200 # Extract the first word of "pkg-config", so it can be a program name with args.
13201 set dummy pkg-config; ac_word=$2
13202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13204 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13205 echo $ECHO_N "(cached) $ECHO_C" >&6
13206 else
13207 case $PKG_CONFIG in
13208 [\\/]* | ?:[\\/]*)
13209 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13213 for as_dir in $PATH
13215 IFS=$as_save_IFS
13216 test -z "$as_dir" && as_dir=.
13217 for ac_exec_ext in '' $ac_executable_extensions; do
13218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13219 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13221 break 2
13223 done
13224 done
13225 IFS=$as_save_IFS
13227 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13229 esac
13231 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13232 if test -n "$PKG_CONFIG"; then
13233 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13234 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13235 else
13236 { echo "$as_me:$LINENO: result: no" >&5
13237 echo "${ECHO_T}no" >&6; }
13242 if test "$PKG_CONFIG" = "no" ; then
13243 HAVE_LIBOTF=no
13244 else
13245 PKG_CONFIG_MIN_VERSION=0.9.0
13246 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13247 { echo "$as_me:$LINENO: checking for libotf" >&5
13248 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
13250 if $PKG_CONFIG --exists "libotf" 2>&5; then
13251 { echo "$as_me:$LINENO: result: yes" >&5
13252 echo "${ECHO_T}yes" >&6; }
13253 succeeded=yes
13255 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13256 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
13257 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13258 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13259 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13261 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13262 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
13263 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13264 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13265 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13266 else
13267 { echo "$as_me:$LINENO: result: no" >&5
13268 echo "${ECHO_T}no" >&6; }
13269 LIBOTF_CFLAGS=""
13270 LIBOTF_LIBS=""
13271 ## If we have a custom action on failure, don't print errors, but
13272 ## do set a variable so people can do so.
13273 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13279 else
13280 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13281 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13285 if test $succeeded = yes; then
13286 HAVE_LIBOTF=yes
13287 else
13288 HAVE_LIBOTF=no
13291 if test "$HAVE_LIBOTF" = "yes"; then
13293 cat >>confdefs.h <<\_ACEOF
13294 #define HAVE_LIBOTF 1
13295 _ACEOF
13301 HAVE_M17N_FLT=no
13302 if test "${with_m17n_flt}" != "no"; then
13304 succeeded=no
13306 # Extract the first word of "pkg-config", so it can be a program name with args.
13307 set dummy pkg-config; ac_word=$2
13308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13310 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13311 echo $ECHO_N "(cached) $ECHO_C" >&6
13312 else
13313 case $PKG_CONFIG in
13314 [\\/]* | ?:[\\/]*)
13315 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13319 for as_dir in $PATH
13321 IFS=$as_save_IFS
13322 test -z "$as_dir" && as_dir=.
13323 for ac_exec_ext in '' $ac_executable_extensions; do
13324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13325 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13327 break 2
13329 done
13330 done
13331 IFS=$as_save_IFS
13333 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13335 esac
13337 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13338 if test -n "$PKG_CONFIG"; then
13339 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13340 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13341 else
13342 { echo "$as_me:$LINENO: result: no" >&5
13343 echo "${ECHO_T}no" >&6; }
13348 if test "$PKG_CONFIG" = "no" ; then
13349 HAVE_M17N_FLT=no
13350 else
13351 PKG_CONFIG_MIN_VERSION=0.9.0
13352 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13353 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13354 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13356 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13357 { echo "$as_me:$LINENO: result: yes" >&5
13358 echo "${ECHO_T}yes" >&6; }
13359 succeeded=yes
13361 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13362 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13363 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13364 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13365 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13367 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13368 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13369 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13370 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13371 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13372 else
13373 { echo "$as_me:$LINENO: result: no" >&5
13374 echo "${ECHO_T}no" >&6; }
13375 M17N_FLT_CFLAGS=""
13376 M17N_FLT_LIBS=""
13377 ## If we have a custom action on failure, don't print errors, but
13378 ## do set a variable so people can do so.
13379 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13385 else
13386 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13387 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13391 if test $succeeded = yes; then
13392 HAVE_M17N_FLT=yes
13393 else
13394 HAVE_M17N_FLT=no
13397 if test "$HAVE_M17N_FLT" = "yes"; then
13399 cat >>confdefs.h <<\_ACEOF
13400 #define HAVE_M17N_FLT 1
13401 _ACEOF
13415 ### End of font-backend section.
13417 ### Use -lXpm if available, unless `--with-xpm=no'.
13418 HAVE_XPM=no
13419 if test "${HAVE_X11}" = "yes"; then
13420 if test "${with_xpm}" != "no"; then
13421 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13422 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13423 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13424 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13425 echo $ECHO_N "(cached) $ECHO_C" >&6
13427 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13428 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13429 else
13430 # Is the header compilable?
13431 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13432 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13433 cat >conftest.$ac_ext <<_ACEOF
13434 /* confdefs.h. */
13435 _ACEOF
13436 cat confdefs.h >>conftest.$ac_ext
13437 cat >>conftest.$ac_ext <<_ACEOF
13438 /* end confdefs.h. */
13439 $ac_includes_default
13440 #include <X11/xpm.h>
13441 _ACEOF
13442 rm -f conftest.$ac_objext
13443 if { (ac_try="$ac_compile"
13444 case "(($ac_try" in
13445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13446 *) ac_try_echo=$ac_try;;
13447 esac
13448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13449 (eval "$ac_compile") 2>conftest.er1
13450 ac_status=$?
13451 grep -v '^ *+' conftest.er1 >conftest.err
13452 rm -f conftest.er1
13453 cat conftest.err >&5
13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455 (exit $ac_status); } && {
13456 test -z "$ac_c_werror_flag" ||
13457 test ! -s conftest.err
13458 } && test -s conftest.$ac_objext; then
13459 ac_header_compiler=yes
13460 else
13461 echo "$as_me: failed program was:" >&5
13462 sed 's/^/| /' conftest.$ac_ext >&5
13464 ac_header_compiler=no
13467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13468 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13469 echo "${ECHO_T}$ac_header_compiler" >&6; }
13471 # Is the header present?
13472 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13473 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13474 cat >conftest.$ac_ext <<_ACEOF
13475 /* confdefs.h. */
13476 _ACEOF
13477 cat confdefs.h >>conftest.$ac_ext
13478 cat >>conftest.$ac_ext <<_ACEOF
13479 /* end confdefs.h. */
13480 #include <X11/xpm.h>
13481 _ACEOF
13482 if { (ac_try="$ac_cpp conftest.$ac_ext"
13483 case "(($ac_try" in
13484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13485 *) ac_try_echo=$ac_try;;
13486 esac
13487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13489 ac_status=$?
13490 grep -v '^ *+' conftest.er1 >conftest.err
13491 rm -f conftest.er1
13492 cat conftest.err >&5
13493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494 (exit $ac_status); } >/dev/null && {
13495 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13496 test ! -s conftest.err
13497 }; then
13498 ac_header_preproc=yes
13499 else
13500 echo "$as_me: failed program was:" >&5
13501 sed 's/^/| /' conftest.$ac_ext >&5
13503 ac_header_preproc=no
13506 rm -f conftest.err conftest.$ac_ext
13507 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13508 echo "${ECHO_T}$ac_header_preproc" >&6; }
13510 # So? What about this header?
13511 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13512 yes:no: )
13513 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13514 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13515 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13516 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13517 ac_header_preproc=yes
13519 no:yes:* )
13520 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13521 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13522 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13523 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13524 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13525 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13526 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13527 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13528 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13529 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13530 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13531 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13534 esac
13535 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13536 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13537 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13538 echo $ECHO_N "(cached) $ECHO_C" >&6
13539 else
13540 ac_cv_header_X11_xpm_h=$ac_header_preproc
13542 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13543 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13546 if test $ac_cv_header_X11_xpm_h = yes; then
13547 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13548 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13549 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13550 echo $ECHO_N "(cached) $ECHO_C" >&6
13551 else
13552 ac_check_lib_save_LIBS=$LIBS
13553 LIBS="-lXpm -lX11 $LIBS"
13554 cat >conftest.$ac_ext <<_ACEOF
13555 /* confdefs.h. */
13556 _ACEOF
13557 cat confdefs.h >>conftest.$ac_ext
13558 cat >>conftest.$ac_ext <<_ACEOF
13559 /* end confdefs.h. */
13561 /* Override any GCC internal prototype to avoid an error.
13562 Use char because int might match the return type of a GCC
13563 builtin and then its argument prototype would still apply. */
13564 #ifdef __cplusplus
13565 extern "C"
13566 #endif
13567 char XpmReadFileToPixmap ();
13569 main ()
13571 return XpmReadFileToPixmap ();
13573 return 0;
13575 _ACEOF
13576 rm -f conftest.$ac_objext conftest$ac_exeext
13577 if { (ac_try="$ac_link"
13578 case "(($ac_try" in
13579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13580 *) ac_try_echo=$ac_try;;
13581 esac
13582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13583 (eval "$ac_link") 2>conftest.er1
13584 ac_status=$?
13585 grep -v '^ *+' conftest.er1 >conftest.err
13586 rm -f conftest.er1
13587 cat conftest.err >&5
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); } && {
13590 test -z "$ac_c_werror_flag" ||
13591 test ! -s conftest.err
13592 } && test -s conftest$ac_exeext &&
13593 $as_test_x conftest$ac_exeext; then
13594 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13595 else
13596 echo "$as_me: failed program was:" >&5
13597 sed 's/^/| /' conftest.$ac_ext >&5
13599 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13603 conftest$ac_exeext conftest.$ac_ext
13604 LIBS=$ac_check_lib_save_LIBS
13606 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13607 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13608 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13609 HAVE_XPM=yes
13615 if test "${HAVE_XPM}" = "yes"; then
13616 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13617 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13618 cat >conftest.$ac_ext <<_ACEOF
13619 /* confdefs.h. */
13620 _ACEOF
13621 cat confdefs.h >>conftest.$ac_ext
13622 cat >>conftest.$ac_ext <<_ACEOF
13623 /* end confdefs.h. */
13624 #include "X11/xpm.h"
13625 #ifndef XpmReturnAllocPixels
13626 no_return_alloc_pixels
13627 #endif
13629 _ACEOF
13630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13631 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13632 HAVE_XPM=no
13633 else
13634 HAVE_XPM=yes
13636 rm -f conftest*
13639 if test "${HAVE_XPM}" = "yes"; then
13640 { echo "$as_me:$LINENO: result: yes" >&5
13641 echo "${ECHO_T}yes" >&6; }
13642 else
13643 { echo "$as_me:$LINENO: result: no" >&5
13644 echo "${ECHO_T}no" >&6; }
13649 if test "${HAVE_XPM}" = "yes"; then
13651 cat >>confdefs.h <<\_ACEOF
13652 #define HAVE_XPM 1
13653 _ACEOF
13658 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13659 HAVE_JPEG=no
13660 if test "${HAVE_X11}" = "yes"; then
13661 if test "${with_jpeg}" != "no"; then
13662 if test "${ac_cv_header_jerror_h+set}" = set; then
13663 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13664 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13665 if test "${ac_cv_header_jerror_h+set}" = set; then
13666 echo $ECHO_N "(cached) $ECHO_C" >&6
13668 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13669 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13670 else
13671 # Is the header compilable?
13672 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13673 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13674 cat >conftest.$ac_ext <<_ACEOF
13675 /* confdefs.h. */
13676 _ACEOF
13677 cat confdefs.h >>conftest.$ac_ext
13678 cat >>conftest.$ac_ext <<_ACEOF
13679 /* end confdefs.h. */
13680 $ac_includes_default
13681 #include <jerror.h>
13682 _ACEOF
13683 rm -f conftest.$ac_objext
13684 if { (ac_try="$ac_compile"
13685 case "(($ac_try" in
13686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13687 *) ac_try_echo=$ac_try;;
13688 esac
13689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13690 (eval "$ac_compile") 2>conftest.er1
13691 ac_status=$?
13692 grep -v '^ *+' conftest.er1 >conftest.err
13693 rm -f conftest.er1
13694 cat conftest.err >&5
13695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696 (exit $ac_status); } && {
13697 test -z "$ac_c_werror_flag" ||
13698 test ! -s conftest.err
13699 } && test -s conftest.$ac_objext; then
13700 ac_header_compiler=yes
13701 else
13702 echo "$as_me: failed program was:" >&5
13703 sed 's/^/| /' conftest.$ac_ext >&5
13705 ac_header_compiler=no
13708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13709 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13710 echo "${ECHO_T}$ac_header_compiler" >&6; }
13712 # Is the header present?
13713 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13714 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13715 cat >conftest.$ac_ext <<_ACEOF
13716 /* confdefs.h. */
13717 _ACEOF
13718 cat confdefs.h >>conftest.$ac_ext
13719 cat >>conftest.$ac_ext <<_ACEOF
13720 /* end confdefs.h. */
13721 #include <jerror.h>
13722 _ACEOF
13723 if { (ac_try="$ac_cpp conftest.$ac_ext"
13724 case "(($ac_try" in
13725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13726 *) ac_try_echo=$ac_try;;
13727 esac
13728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13730 ac_status=$?
13731 grep -v '^ *+' conftest.er1 >conftest.err
13732 rm -f conftest.er1
13733 cat conftest.err >&5
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 (exit $ac_status); } >/dev/null && {
13736 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13737 test ! -s conftest.err
13738 }; then
13739 ac_header_preproc=yes
13740 else
13741 echo "$as_me: failed program was:" >&5
13742 sed 's/^/| /' conftest.$ac_ext >&5
13744 ac_header_preproc=no
13747 rm -f conftest.err conftest.$ac_ext
13748 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13749 echo "${ECHO_T}$ac_header_preproc" >&6; }
13751 # So? What about this header?
13752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13753 yes:no: )
13754 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13755 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13756 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13757 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13758 ac_header_preproc=yes
13760 no:yes:* )
13761 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13762 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13763 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13764 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13765 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13766 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13767 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13768 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13769 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13770 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13771 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13772 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13775 esac
13776 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13777 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13778 if test "${ac_cv_header_jerror_h+set}" = set; then
13779 echo $ECHO_N "(cached) $ECHO_C" >&6
13780 else
13781 ac_cv_header_jerror_h=$ac_header_preproc
13783 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13784 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13787 if test $ac_cv_header_jerror_h = yes; then
13788 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13789 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13790 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13791 echo $ECHO_N "(cached) $ECHO_C" >&6
13792 else
13793 ac_check_lib_save_LIBS=$LIBS
13794 LIBS="-ljpeg $LIBS"
13795 cat >conftest.$ac_ext <<_ACEOF
13796 /* confdefs.h. */
13797 _ACEOF
13798 cat confdefs.h >>conftest.$ac_ext
13799 cat >>conftest.$ac_ext <<_ACEOF
13800 /* end confdefs.h. */
13802 /* Override any GCC internal prototype to avoid an error.
13803 Use char because int might match the return type of a GCC
13804 builtin and then its argument prototype would still apply. */
13805 #ifdef __cplusplus
13806 extern "C"
13807 #endif
13808 char jpeg_destroy_compress ();
13810 main ()
13812 return jpeg_destroy_compress ();
13814 return 0;
13816 _ACEOF
13817 rm -f conftest.$ac_objext conftest$ac_exeext
13818 if { (ac_try="$ac_link"
13819 case "(($ac_try" in
13820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13821 *) ac_try_echo=$ac_try;;
13822 esac
13823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13824 (eval "$ac_link") 2>conftest.er1
13825 ac_status=$?
13826 grep -v '^ *+' conftest.er1 >conftest.err
13827 rm -f conftest.er1
13828 cat conftest.err >&5
13829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830 (exit $ac_status); } && {
13831 test -z "$ac_c_werror_flag" ||
13832 test ! -s conftest.err
13833 } && test -s conftest$ac_exeext &&
13834 $as_test_x conftest$ac_exeext; then
13835 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13836 else
13837 echo "$as_me: failed program was:" >&5
13838 sed 's/^/| /' conftest.$ac_ext >&5
13840 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13844 conftest$ac_exeext conftest.$ac_ext
13845 LIBS=$ac_check_lib_save_LIBS
13847 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13848 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13849 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13850 HAVE_JPEG=yes
13859 if test "${HAVE_JPEG}" = "yes"; then
13860 cat >>confdefs.h <<\_ACEOF
13861 #define HAVE_JPEG 1
13862 _ACEOF
13864 cat >conftest.$ac_ext <<_ACEOF
13865 /* confdefs.h. */
13866 _ACEOF
13867 cat confdefs.h >>conftest.$ac_ext
13868 cat >>conftest.$ac_ext <<_ACEOF
13869 /* end confdefs.h. */
13870 #include <jpeglib.h>
13871 version=JPEG_LIB_VERSION
13873 _ACEOF
13874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13875 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13876 cat >>confdefs.h <<\_ACEOF
13877 #define HAVE_JPEG 1
13878 _ACEOF
13880 else
13881 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13882 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13883 HAVE_JPEG=no
13885 rm -f conftest*
13890 ### Use -lpng if available, unless `--with-png=no'.
13891 HAVE_PNG=no
13892 if test "${HAVE_X11}" = "yes"; then
13893 if test "${with_png}" != "no"; then
13894 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13895 # in /usr/include/libpng.
13898 for ac_header in png.h libpng/png.h
13900 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13902 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13905 echo $ECHO_N "(cached) $ECHO_C" >&6
13907 ac_res=`eval echo '${'$as_ac_Header'}'`
13908 { echo "$as_me:$LINENO: result: $ac_res" >&5
13909 echo "${ECHO_T}$ac_res" >&6; }
13910 else
13911 # Is the header compilable?
13912 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13913 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13914 cat >conftest.$ac_ext <<_ACEOF
13915 /* confdefs.h. */
13916 _ACEOF
13917 cat confdefs.h >>conftest.$ac_ext
13918 cat >>conftest.$ac_ext <<_ACEOF
13919 /* end confdefs.h. */
13920 $ac_includes_default
13921 #include <$ac_header>
13922 _ACEOF
13923 rm -f conftest.$ac_objext
13924 if { (ac_try="$ac_compile"
13925 case "(($ac_try" in
13926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13927 *) ac_try_echo=$ac_try;;
13928 esac
13929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13930 (eval "$ac_compile") 2>conftest.er1
13931 ac_status=$?
13932 grep -v '^ *+' conftest.er1 >conftest.err
13933 rm -f conftest.er1
13934 cat conftest.err >&5
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); } && {
13937 test -z "$ac_c_werror_flag" ||
13938 test ! -s conftest.err
13939 } && test -s conftest.$ac_objext; then
13940 ac_header_compiler=yes
13941 else
13942 echo "$as_me: failed program was:" >&5
13943 sed 's/^/| /' conftest.$ac_ext >&5
13945 ac_header_compiler=no
13948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13949 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13950 echo "${ECHO_T}$ac_header_compiler" >&6; }
13952 # Is the header present?
13953 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13954 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13955 cat >conftest.$ac_ext <<_ACEOF
13956 /* confdefs.h. */
13957 _ACEOF
13958 cat confdefs.h >>conftest.$ac_ext
13959 cat >>conftest.$ac_ext <<_ACEOF
13960 /* end confdefs.h. */
13961 #include <$ac_header>
13962 _ACEOF
13963 if { (ac_try="$ac_cpp conftest.$ac_ext"
13964 case "(($ac_try" in
13965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13966 *) ac_try_echo=$ac_try;;
13967 esac
13968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13969 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13970 ac_status=$?
13971 grep -v '^ *+' conftest.er1 >conftest.err
13972 rm -f conftest.er1
13973 cat conftest.err >&5
13974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975 (exit $ac_status); } >/dev/null && {
13976 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13977 test ! -s conftest.err
13978 }; then
13979 ac_header_preproc=yes
13980 else
13981 echo "$as_me: failed program was:" >&5
13982 sed 's/^/| /' conftest.$ac_ext >&5
13984 ac_header_preproc=no
13987 rm -f conftest.err conftest.$ac_ext
13988 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13989 echo "${ECHO_T}$ac_header_preproc" >&6; }
13991 # So? What about this header?
13992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13993 yes:no: )
13994 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13995 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13996 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13997 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13998 ac_header_preproc=yes
14000 no:yes:* )
14001 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14002 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14003 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14004 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14005 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14006 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14007 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14008 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14009 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14010 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14011 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14012 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14015 esac
14016 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14018 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14019 echo $ECHO_N "(cached) $ECHO_C" >&6
14020 else
14021 eval "$as_ac_Header=\$ac_header_preproc"
14023 ac_res=`eval echo '${'$as_ac_Header'}'`
14024 { echo "$as_me:$LINENO: result: $ac_res" >&5
14025 echo "${ECHO_T}$ac_res" >&6; }
14028 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14029 cat >>confdefs.h <<_ACEOF
14030 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14031 _ACEOF
14035 done
14037 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
14038 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
14039 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
14040 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
14041 echo $ECHO_N "(cached) $ECHO_C" >&6
14042 else
14043 ac_check_lib_save_LIBS=$LIBS
14044 LIBS="-lpng -lz -lm $LIBS"
14045 cat >conftest.$ac_ext <<_ACEOF
14046 /* confdefs.h. */
14047 _ACEOF
14048 cat confdefs.h >>conftest.$ac_ext
14049 cat >>conftest.$ac_ext <<_ACEOF
14050 /* end confdefs.h. */
14052 /* Override any GCC internal prototype to avoid an error.
14053 Use char because int might match the return type of a GCC
14054 builtin and then its argument prototype would still apply. */
14055 #ifdef __cplusplus
14056 extern "C"
14057 #endif
14058 char png_get_channels ();
14060 main ()
14062 return png_get_channels ();
14064 return 0;
14066 _ACEOF
14067 rm -f conftest.$ac_objext conftest$ac_exeext
14068 if { (ac_try="$ac_link"
14069 case "(($ac_try" in
14070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14071 *) ac_try_echo=$ac_try;;
14072 esac
14073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14074 (eval "$ac_link") 2>conftest.er1
14075 ac_status=$?
14076 grep -v '^ *+' conftest.er1 >conftest.err
14077 rm -f conftest.er1
14078 cat conftest.err >&5
14079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080 (exit $ac_status); } && {
14081 test -z "$ac_c_werror_flag" ||
14082 test ! -s conftest.err
14083 } && test -s conftest$ac_exeext &&
14084 $as_test_x conftest$ac_exeext; then
14085 ac_cv_lib_png_png_get_channels=yes
14086 else
14087 echo "$as_me: failed program was:" >&5
14088 sed 's/^/| /' conftest.$ac_ext >&5
14090 ac_cv_lib_png_png_get_channels=no
14093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14094 conftest$ac_exeext conftest.$ac_ext
14095 LIBS=$ac_check_lib_save_LIBS
14097 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
14098 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
14099 if test $ac_cv_lib_png_png_get_channels = yes; then
14100 HAVE_PNG=yes
14106 if test "${HAVE_PNG}" = "yes"; then
14108 cat >>confdefs.h <<\_ACEOF
14109 #define HAVE_PNG 1
14110 _ACEOF
14115 ### Use -ltiff if available, unless `--with-tiff=no'.
14116 HAVE_TIFF=no
14117 if test "${HAVE_X11}" = "yes"; then
14118 if test "${with_tiff}" != "no"; then
14119 if test "${ac_cv_header_tiffio_h+set}" = set; then
14120 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14121 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14122 if test "${ac_cv_header_tiffio_h+set}" = set; then
14123 echo $ECHO_N "(cached) $ECHO_C" >&6
14125 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14126 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14127 else
14128 # Is the header compilable?
14129 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
14130 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
14131 cat >conftest.$ac_ext <<_ACEOF
14132 /* confdefs.h. */
14133 _ACEOF
14134 cat confdefs.h >>conftest.$ac_ext
14135 cat >>conftest.$ac_ext <<_ACEOF
14136 /* end confdefs.h. */
14137 $ac_includes_default
14138 #include <tiffio.h>
14139 _ACEOF
14140 rm -f conftest.$ac_objext
14141 if { (ac_try="$ac_compile"
14142 case "(($ac_try" in
14143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14144 *) ac_try_echo=$ac_try;;
14145 esac
14146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14147 (eval "$ac_compile") 2>conftest.er1
14148 ac_status=$?
14149 grep -v '^ *+' conftest.er1 >conftest.err
14150 rm -f conftest.er1
14151 cat conftest.err >&5
14152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14153 (exit $ac_status); } && {
14154 test -z "$ac_c_werror_flag" ||
14155 test ! -s conftest.err
14156 } && test -s conftest.$ac_objext; then
14157 ac_header_compiler=yes
14158 else
14159 echo "$as_me: failed program was:" >&5
14160 sed 's/^/| /' conftest.$ac_ext >&5
14162 ac_header_compiler=no
14165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14166 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14167 echo "${ECHO_T}$ac_header_compiler" >&6; }
14169 # Is the header present?
14170 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14171 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
14172 cat >conftest.$ac_ext <<_ACEOF
14173 /* confdefs.h. */
14174 _ACEOF
14175 cat confdefs.h >>conftest.$ac_ext
14176 cat >>conftest.$ac_ext <<_ACEOF
14177 /* end confdefs.h. */
14178 #include <tiffio.h>
14179 _ACEOF
14180 if { (ac_try="$ac_cpp conftest.$ac_ext"
14181 case "(($ac_try" in
14182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14183 *) ac_try_echo=$ac_try;;
14184 esac
14185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14186 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14187 ac_status=$?
14188 grep -v '^ *+' conftest.er1 >conftest.err
14189 rm -f conftest.er1
14190 cat conftest.err >&5
14191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192 (exit $ac_status); } >/dev/null && {
14193 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14194 test ! -s conftest.err
14195 }; then
14196 ac_header_preproc=yes
14197 else
14198 echo "$as_me: failed program was:" >&5
14199 sed 's/^/| /' conftest.$ac_ext >&5
14201 ac_header_preproc=no
14204 rm -f conftest.err conftest.$ac_ext
14205 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14206 echo "${ECHO_T}$ac_header_preproc" >&6; }
14208 # So? What about this header?
14209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14210 yes:no: )
14211 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14212 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14213 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
14214 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
14215 ac_header_preproc=yes
14217 no:yes:* )
14218 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14219 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14220 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14221 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14222 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14223 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14224 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14225 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14226 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
14227 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
14228 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14229 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14232 esac
14233 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14234 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14235 if test "${ac_cv_header_tiffio_h+set}" = set; then
14236 echo $ECHO_N "(cached) $ECHO_C" >&6
14237 else
14238 ac_cv_header_tiffio_h=$ac_header_preproc
14240 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14241 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14244 if test $ac_cv_header_tiffio_h = yes; then
14245 tifflibs="-lz -lm"
14246 # At least one tiff package requires the jpeg library.
14247 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14248 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14249 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14250 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14251 echo $ECHO_N "(cached) $ECHO_C" >&6
14252 else
14253 ac_check_lib_save_LIBS=$LIBS
14254 LIBS="-ltiff $tifflibs $LIBS"
14255 cat >conftest.$ac_ext <<_ACEOF
14256 /* confdefs.h. */
14257 _ACEOF
14258 cat confdefs.h >>conftest.$ac_ext
14259 cat >>conftest.$ac_ext <<_ACEOF
14260 /* end confdefs.h. */
14262 /* Override any GCC internal prototype to avoid an error.
14263 Use char because int might match the return type of a GCC
14264 builtin and then its argument prototype would still apply. */
14265 #ifdef __cplusplus
14266 extern "C"
14267 #endif
14268 char TIFFGetVersion ();
14270 main ()
14272 return TIFFGetVersion ();
14274 return 0;
14276 _ACEOF
14277 rm -f conftest.$ac_objext conftest$ac_exeext
14278 if { (ac_try="$ac_link"
14279 case "(($ac_try" in
14280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14281 *) ac_try_echo=$ac_try;;
14282 esac
14283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14284 (eval "$ac_link") 2>conftest.er1
14285 ac_status=$?
14286 grep -v '^ *+' conftest.er1 >conftest.err
14287 rm -f conftest.er1
14288 cat conftest.err >&5
14289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 (exit $ac_status); } && {
14291 test -z "$ac_c_werror_flag" ||
14292 test ! -s conftest.err
14293 } && test -s conftest$ac_exeext &&
14294 $as_test_x conftest$ac_exeext; then
14295 ac_cv_lib_tiff_TIFFGetVersion=yes
14296 else
14297 echo "$as_me: failed program was:" >&5
14298 sed 's/^/| /' conftest.$ac_ext >&5
14300 ac_cv_lib_tiff_TIFFGetVersion=no
14303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14304 conftest$ac_exeext conftest.$ac_ext
14305 LIBS=$ac_check_lib_save_LIBS
14307 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14308 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14309 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14310 HAVE_TIFF=yes
14318 if test "${HAVE_TIFF}" = "yes"; then
14320 cat >>confdefs.h <<\_ACEOF
14321 #define HAVE_TIFF 1
14322 _ACEOF
14327 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14328 HAVE_GIF=no
14329 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14330 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14331 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14332 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14333 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14334 echo $ECHO_N "(cached) $ECHO_C" >&6
14336 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14337 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14338 else
14339 # Is the header compilable?
14340 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14341 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14342 cat >conftest.$ac_ext <<_ACEOF
14343 /* confdefs.h. */
14344 _ACEOF
14345 cat confdefs.h >>conftest.$ac_ext
14346 cat >>conftest.$ac_ext <<_ACEOF
14347 /* end confdefs.h. */
14348 $ac_includes_default
14349 #include <gif_lib.h>
14350 _ACEOF
14351 rm -f conftest.$ac_objext
14352 if { (ac_try="$ac_compile"
14353 case "(($ac_try" in
14354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14355 *) ac_try_echo=$ac_try;;
14356 esac
14357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14358 (eval "$ac_compile") 2>conftest.er1
14359 ac_status=$?
14360 grep -v '^ *+' conftest.er1 >conftest.err
14361 rm -f conftest.er1
14362 cat conftest.err >&5
14363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364 (exit $ac_status); } && {
14365 test -z "$ac_c_werror_flag" ||
14366 test ! -s conftest.err
14367 } && test -s conftest.$ac_objext; then
14368 ac_header_compiler=yes
14369 else
14370 echo "$as_me: failed program was:" >&5
14371 sed 's/^/| /' conftest.$ac_ext >&5
14373 ac_header_compiler=no
14376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14377 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14378 echo "${ECHO_T}$ac_header_compiler" >&6; }
14380 # Is the header present?
14381 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14382 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14383 cat >conftest.$ac_ext <<_ACEOF
14384 /* confdefs.h. */
14385 _ACEOF
14386 cat confdefs.h >>conftest.$ac_ext
14387 cat >>conftest.$ac_ext <<_ACEOF
14388 /* end confdefs.h. */
14389 #include <gif_lib.h>
14390 _ACEOF
14391 if { (ac_try="$ac_cpp conftest.$ac_ext"
14392 case "(($ac_try" in
14393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14394 *) ac_try_echo=$ac_try;;
14395 esac
14396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14397 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14398 ac_status=$?
14399 grep -v '^ *+' conftest.er1 >conftest.err
14400 rm -f conftest.er1
14401 cat conftest.err >&5
14402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403 (exit $ac_status); } >/dev/null && {
14404 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14405 test ! -s conftest.err
14406 }; then
14407 ac_header_preproc=yes
14408 else
14409 echo "$as_me: failed program was:" >&5
14410 sed 's/^/| /' conftest.$ac_ext >&5
14412 ac_header_preproc=no
14415 rm -f conftest.err conftest.$ac_ext
14416 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14417 echo "${ECHO_T}$ac_header_preproc" >&6; }
14419 # So? What about this header?
14420 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14421 yes:no: )
14422 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14423 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14424 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14425 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14426 ac_header_preproc=yes
14428 no:yes:* )
14429 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14430 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14431 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14432 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14433 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14434 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14435 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14436 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14437 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14438 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14439 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14440 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14443 esac
14444 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14445 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14446 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14447 echo $ECHO_N "(cached) $ECHO_C" >&6
14448 else
14449 ac_cv_header_gif_lib_h=$ac_header_preproc
14451 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14452 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14455 if test $ac_cv_header_gif_lib_h = yes; then
14456 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14457 # Earlier versions can crash Emacs.
14458 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14459 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14460 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14461 echo $ECHO_N "(cached) $ECHO_C" >&6
14462 else
14463 ac_check_lib_save_LIBS=$LIBS
14464 LIBS="-lgif $LIBS"
14465 cat >conftest.$ac_ext <<_ACEOF
14466 /* confdefs.h. */
14467 _ACEOF
14468 cat confdefs.h >>conftest.$ac_ext
14469 cat >>conftest.$ac_ext <<_ACEOF
14470 /* end confdefs.h. */
14472 /* Override any GCC internal prototype to avoid an error.
14473 Use char because int might match the return type of a GCC
14474 builtin and then its argument prototype would still apply. */
14475 #ifdef __cplusplus
14476 extern "C"
14477 #endif
14478 char EGifPutExtensionLast ();
14480 main ()
14482 return EGifPutExtensionLast ();
14484 return 0;
14486 _ACEOF
14487 rm -f conftest.$ac_objext conftest$ac_exeext
14488 if { (ac_try="$ac_link"
14489 case "(($ac_try" in
14490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14491 *) ac_try_echo=$ac_try;;
14492 esac
14493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14494 (eval "$ac_link") 2>conftest.er1
14495 ac_status=$?
14496 grep -v '^ *+' conftest.er1 >conftest.err
14497 rm -f conftest.er1
14498 cat conftest.err >&5
14499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500 (exit $ac_status); } && {
14501 test -z "$ac_c_werror_flag" ||
14502 test ! -s conftest.err
14503 } && test -s conftest$ac_exeext &&
14504 $as_test_x conftest$ac_exeext; then
14505 ac_cv_lib_gif_EGifPutExtensionLast=yes
14506 else
14507 echo "$as_me: failed program was:" >&5
14508 sed 's/^/| /' conftest.$ac_ext >&5
14510 ac_cv_lib_gif_EGifPutExtensionLast=no
14513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14514 conftest$ac_exeext conftest.$ac_ext
14515 LIBS=$ac_check_lib_save_LIBS
14517 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14518 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14519 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14520 HAVE_GIF=yes
14521 else
14522 try_libungif=yes
14529 if test "$HAVE_GIF" = yes; then
14530 ac_gif_lib_name="-lgif"
14533 # If gif_lib.h but no libgif, try libungif.
14534 if test x"$try_libungif" = xyes; then
14535 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14536 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14537 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14538 echo $ECHO_N "(cached) $ECHO_C" >&6
14539 else
14540 ac_check_lib_save_LIBS=$LIBS
14541 LIBS="-lungif $LIBS"
14542 cat >conftest.$ac_ext <<_ACEOF
14543 /* confdefs.h. */
14544 _ACEOF
14545 cat confdefs.h >>conftest.$ac_ext
14546 cat >>conftest.$ac_ext <<_ACEOF
14547 /* end confdefs.h. */
14549 /* Override any GCC internal prototype to avoid an error.
14550 Use char because int might match the return type of a GCC
14551 builtin and then its argument prototype would still apply. */
14552 #ifdef __cplusplus
14553 extern "C"
14554 #endif
14555 char EGifPutExtensionLast ();
14557 main ()
14559 return EGifPutExtensionLast ();
14561 return 0;
14563 _ACEOF
14564 rm -f conftest.$ac_objext conftest$ac_exeext
14565 if { (ac_try="$ac_link"
14566 case "(($ac_try" in
14567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14568 *) ac_try_echo=$ac_try;;
14569 esac
14570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14571 (eval "$ac_link") 2>conftest.er1
14572 ac_status=$?
14573 grep -v '^ *+' conftest.er1 >conftest.err
14574 rm -f conftest.er1
14575 cat conftest.err >&5
14576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577 (exit $ac_status); } && {
14578 test -z "$ac_c_werror_flag" ||
14579 test ! -s conftest.err
14580 } && test -s conftest$ac_exeext &&
14581 $as_test_x conftest$ac_exeext; then
14582 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14583 else
14584 echo "$as_me: failed program was:" >&5
14585 sed 's/^/| /' conftest.$ac_ext >&5
14587 ac_cv_lib_ungif_EGifPutExtensionLast=no
14590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14591 conftest$ac_exeext conftest.$ac_ext
14592 LIBS=$ac_check_lib_save_LIBS
14594 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14595 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14596 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14597 HAVE_GIF=yes
14601 if test "$HAVE_GIF" = yes; then
14603 cat >>confdefs.h <<\_ACEOF
14604 #define LIBGIF -lungif
14605 _ACEOF
14607 ac_gif_lib_name="-lungif"
14611 if test "${HAVE_GIF}" = "yes"; then
14613 cat >>confdefs.h <<\_ACEOF
14614 #define HAVE_GIF 1
14615 _ACEOF
14620 if test "${HAVE_X11}" = "yes"; then
14621 MISSING=""
14622 WITH_NO=""
14623 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14624 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14625 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14626 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
14627 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14628 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
14629 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14630 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
14631 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14632 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
14634 if test "X${MISSING}" != X; then
14635 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14636 $MISSING
14637 Maybe some development libraries/packages are missing?
14638 If you don't want to link with them give
14639 $WITH_NO
14640 as options to configure" >&5
14641 echo "$as_me: error: The following required libraries were not found:
14642 $MISSING
14643 Maybe some development libraries/packages are missing?
14644 If you don't want to link with them give
14645 $WITH_NO
14646 as options to configure" >&2;}
14647 { (exit 1); exit 1; }; }
14651 ### Use -lgpm if available, unless `--with-gpm=no'.
14652 HAVE_GPM=no
14653 if test "${with_gpm}" != "no"; then
14654 if test "${ac_cv_header_gpm_h+set}" = set; then
14655 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14656 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14657 if test "${ac_cv_header_gpm_h+set}" = set; then
14658 echo $ECHO_N "(cached) $ECHO_C" >&6
14660 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14661 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14662 else
14663 # Is the header compilable?
14664 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14665 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14666 cat >conftest.$ac_ext <<_ACEOF
14667 /* confdefs.h. */
14668 _ACEOF
14669 cat confdefs.h >>conftest.$ac_ext
14670 cat >>conftest.$ac_ext <<_ACEOF
14671 /* end confdefs.h. */
14672 $ac_includes_default
14673 #include <gpm.h>
14674 _ACEOF
14675 rm -f conftest.$ac_objext
14676 if { (ac_try="$ac_compile"
14677 case "(($ac_try" in
14678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14679 *) ac_try_echo=$ac_try;;
14680 esac
14681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14682 (eval "$ac_compile") 2>conftest.er1
14683 ac_status=$?
14684 grep -v '^ *+' conftest.er1 >conftest.err
14685 rm -f conftest.er1
14686 cat conftest.err >&5
14687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14688 (exit $ac_status); } && {
14689 test -z "$ac_c_werror_flag" ||
14690 test ! -s conftest.err
14691 } && test -s conftest.$ac_objext; then
14692 ac_header_compiler=yes
14693 else
14694 echo "$as_me: failed program was:" >&5
14695 sed 's/^/| /' conftest.$ac_ext >&5
14697 ac_header_compiler=no
14700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14701 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14702 echo "${ECHO_T}$ac_header_compiler" >&6; }
14704 # Is the header present?
14705 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14706 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14707 cat >conftest.$ac_ext <<_ACEOF
14708 /* confdefs.h. */
14709 _ACEOF
14710 cat confdefs.h >>conftest.$ac_ext
14711 cat >>conftest.$ac_ext <<_ACEOF
14712 /* end confdefs.h. */
14713 #include <gpm.h>
14714 _ACEOF
14715 if { (ac_try="$ac_cpp conftest.$ac_ext"
14716 case "(($ac_try" in
14717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14718 *) ac_try_echo=$ac_try;;
14719 esac
14720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14721 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14722 ac_status=$?
14723 grep -v '^ *+' conftest.er1 >conftest.err
14724 rm -f conftest.er1
14725 cat conftest.err >&5
14726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14727 (exit $ac_status); } >/dev/null && {
14728 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14729 test ! -s conftest.err
14730 }; then
14731 ac_header_preproc=yes
14732 else
14733 echo "$as_me: failed program was:" >&5
14734 sed 's/^/| /' conftest.$ac_ext >&5
14736 ac_header_preproc=no
14739 rm -f conftest.err conftest.$ac_ext
14740 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14741 echo "${ECHO_T}$ac_header_preproc" >&6; }
14743 # So? What about this header?
14744 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14745 yes:no: )
14746 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14747 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14748 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14749 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14750 ac_header_preproc=yes
14752 no:yes:* )
14753 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14754 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14755 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14756 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14757 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14758 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14759 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14760 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14761 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14762 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14763 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14764 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14767 esac
14768 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14769 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14770 if test "${ac_cv_header_gpm_h+set}" = set; then
14771 echo $ECHO_N "(cached) $ECHO_C" >&6
14772 else
14773 ac_cv_header_gpm_h=$ac_header_preproc
14775 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14776 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14779 if test $ac_cv_header_gpm_h = yes; then
14780 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14781 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14782 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14783 echo $ECHO_N "(cached) $ECHO_C" >&6
14784 else
14785 ac_check_lib_save_LIBS=$LIBS
14786 LIBS="-lgpm $LIBS"
14787 cat >conftest.$ac_ext <<_ACEOF
14788 /* confdefs.h. */
14789 _ACEOF
14790 cat confdefs.h >>conftest.$ac_ext
14791 cat >>conftest.$ac_ext <<_ACEOF
14792 /* end confdefs.h. */
14794 /* Override any GCC internal prototype to avoid an error.
14795 Use char because int might match the return type of a GCC
14796 builtin and then its argument prototype would still apply. */
14797 #ifdef __cplusplus
14798 extern "C"
14799 #endif
14800 char Gpm_Open ();
14802 main ()
14804 return Gpm_Open ();
14806 return 0;
14808 _ACEOF
14809 rm -f conftest.$ac_objext conftest$ac_exeext
14810 if { (ac_try="$ac_link"
14811 case "(($ac_try" in
14812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14813 *) ac_try_echo=$ac_try;;
14814 esac
14815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14816 (eval "$ac_link") 2>conftest.er1
14817 ac_status=$?
14818 grep -v '^ *+' conftest.er1 >conftest.err
14819 rm -f conftest.er1
14820 cat conftest.err >&5
14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); } && {
14823 test -z "$ac_c_werror_flag" ||
14824 test ! -s conftest.err
14825 } && test -s conftest$ac_exeext &&
14826 $as_test_x conftest$ac_exeext; then
14827 ac_cv_lib_gpm_Gpm_Open=yes
14828 else
14829 echo "$as_me: failed program was:" >&5
14830 sed 's/^/| /' conftest.$ac_ext >&5
14832 ac_cv_lib_gpm_Gpm_Open=no
14835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14836 conftest$ac_exeext conftest.$ac_ext
14837 LIBS=$ac_check_lib_save_LIBS
14839 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14840 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14841 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14842 HAVE_GPM=yes
14850 if test "${HAVE_GPM}" = "yes"; then
14852 cat >>confdefs.h <<\_ACEOF
14853 #define HAVE_GPM 1
14854 _ACEOF
14858 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14859 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14860 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14861 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14862 echo $ECHO_N "(cached) $ECHO_C" >&6
14864 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14865 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14866 else
14867 # Is the header compilable?
14868 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14869 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14870 cat >conftest.$ac_ext <<_ACEOF
14871 /* confdefs.h. */
14872 _ACEOF
14873 cat confdefs.h >>conftest.$ac_ext
14874 cat >>conftest.$ac_ext <<_ACEOF
14875 /* end confdefs.h. */
14876 $ac_includes_default
14877 #include <malloc/malloc.h>
14878 _ACEOF
14879 rm -f conftest.$ac_objext
14880 if { (ac_try="$ac_compile"
14881 case "(($ac_try" in
14882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14883 *) ac_try_echo=$ac_try;;
14884 esac
14885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14886 (eval "$ac_compile") 2>conftest.er1
14887 ac_status=$?
14888 grep -v '^ *+' conftest.er1 >conftest.err
14889 rm -f conftest.er1
14890 cat conftest.err >&5
14891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892 (exit $ac_status); } && {
14893 test -z "$ac_c_werror_flag" ||
14894 test ! -s conftest.err
14895 } && test -s conftest.$ac_objext; then
14896 ac_header_compiler=yes
14897 else
14898 echo "$as_me: failed program was:" >&5
14899 sed 's/^/| /' conftest.$ac_ext >&5
14901 ac_header_compiler=no
14904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14905 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14906 echo "${ECHO_T}$ac_header_compiler" >&6; }
14908 # Is the header present?
14909 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14910 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14911 cat >conftest.$ac_ext <<_ACEOF
14912 /* confdefs.h. */
14913 _ACEOF
14914 cat confdefs.h >>conftest.$ac_ext
14915 cat >>conftest.$ac_ext <<_ACEOF
14916 /* end confdefs.h. */
14917 #include <malloc/malloc.h>
14918 _ACEOF
14919 if { (ac_try="$ac_cpp conftest.$ac_ext"
14920 case "(($ac_try" in
14921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14922 *) ac_try_echo=$ac_try;;
14923 esac
14924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14925 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14926 ac_status=$?
14927 grep -v '^ *+' conftest.er1 >conftest.err
14928 rm -f conftest.er1
14929 cat conftest.err >&5
14930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14931 (exit $ac_status); } >/dev/null && {
14932 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14933 test ! -s conftest.err
14934 }; then
14935 ac_header_preproc=yes
14936 else
14937 echo "$as_me: failed program was:" >&5
14938 sed 's/^/| /' conftest.$ac_ext >&5
14940 ac_header_preproc=no
14943 rm -f conftest.err conftest.$ac_ext
14944 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14945 echo "${ECHO_T}$ac_header_preproc" >&6; }
14947 # So? What about this header?
14948 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14949 yes:no: )
14950 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14951 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14952 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14953 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14954 ac_header_preproc=yes
14956 no:yes:* )
14957 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14958 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14959 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14960 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14961 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14962 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14963 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14964 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14965 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14966 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14967 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14968 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14971 esac
14972 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14973 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14974 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14975 echo $ECHO_N "(cached) $ECHO_C" >&6
14976 else
14977 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14979 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14980 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14983 if test $ac_cv_header_malloc_malloc_h = yes; then
14985 cat >>confdefs.h <<\_ACEOF
14986 #define HAVE_MALLOC_MALLOC_H 1
14987 _ACEOF
14993 ### Use Mac OS X Carbon API to implement GUI.
14994 if test "${HAVE_CARBON}" = "yes"; then
14996 cat >>confdefs.h <<\_ACEOF
14997 #define HAVE_CARBON 1
14998 _ACEOF
15001 for ac_header in AvailabilityMacros.h
15003 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15005 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15008 echo $ECHO_N "(cached) $ECHO_C" >&6
15010 ac_res=`eval echo '${'$as_ac_Header'}'`
15011 { echo "$as_me:$LINENO: result: $ac_res" >&5
15012 echo "${ECHO_T}$ac_res" >&6; }
15013 else
15014 # Is the header compilable?
15015 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15016 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15017 cat >conftest.$ac_ext <<_ACEOF
15018 /* confdefs.h. */
15019 _ACEOF
15020 cat confdefs.h >>conftest.$ac_ext
15021 cat >>conftest.$ac_ext <<_ACEOF
15022 /* end confdefs.h. */
15023 $ac_includes_default
15024 #include <$ac_header>
15025 _ACEOF
15026 rm -f conftest.$ac_objext
15027 if { (ac_try="$ac_compile"
15028 case "(($ac_try" in
15029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15030 *) ac_try_echo=$ac_try;;
15031 esac
15032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15033 (eval "$ac_compile") 2>conftest.er1
15034 ac_status=$?
15035 grep -v '^ *+' conftest.er1 >conftest.err
15036 rm -f conftest.er1
15037 cat conftest.err >&5
15038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); } && {
15040 test -z "$ac_c_werror_flag" ||
15041 test ! -s conftest.err
15042 } && test -s conftest.$ac_objext; then
15043 ac_header_compiler=yes
15044 else
15045 echo "$as_me: failed program was:" >&5
15046 sed 's/^/| /' conftest.$ac_ext >&5
15048 ac_header_compiler=no
15051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15052 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15053 echo "${ECHO_T}$ac_header_compiler" >&6; }
15055 # Is the header present?
15056 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15057 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
15065 _ACEOF
15066 if { (ac_try="$ac_cpp conftest.$ac_ext"
15067 case "(($ac_try" in
15068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15069 *) ac_try_echo=$ac_try;;
15070 esac
15071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15072 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15073 ac_status=$?
15074 grep -v '^ *+' conftest.er1 >conftest.err
15075 rm -f conftest.er1
15076 cat conftest.err >&5
15077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078 (exit $ac_status); } >/dev/null && {
15079 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15080 test ! -s conftest.err
15081 }; then
15082 ac_header_preproc=yes
15083 else
15084 echo "$as_me: failed program was:" >&5
15085 sed 's/^/| /' conftest.$ac_ext >&5
15087 ac_header_preproc=no
15090 rm -f conftest.err conftest.$ac_ext
15091 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15092 echo "${ECHO_T}$ac_header_preproc" >&6; }
15094 # So? What about this header?
15095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15096 yes:no: )
15097 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15098 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15100 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15101 ac_header_preproc=yes
15103 no:yes:* )
15104 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15105 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15106 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15107 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15108 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15109 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15110 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15111 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15113 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15114 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15115 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15118 esac
15119 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15122 echo $ECHO_N "(cached) $ECHO_C" >&6
15123 else
15124 eval "$as_ac_Header=\$ac_header_preproc"
15126 ac_res=`eval echo '${'$as_ac_Header'}'`
15127 { echo "$as_me:$LINENO: result: $ac_res" >&5
15128 echo "${ECHO_T}$ac_res" >&6; }
15131 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15132 cat >>confdefs.h <<_ACEOF
15133 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15134 _ACEOF
15138 done
15140 ## Specify the install directory
15141 carbon_appdir=
15142 if test "${carbon_appdir_x}" != ""; then
15143 case ${carbon_appdir_x} in
15144 y | ye | yes) carbon_appdir=/Applications ;;
15145 * ) carbon_appdir=${carbon_appdir_x} ;;
15146 esac
15148 # We also have mouse menus.
15149 HAVE_MENUS=yes
15151 ### Use NeXTstep API to implement GUI.
15152 if test "${HAVE_NS}" = "yes"; then
15154 cat >>confdefs.h <<\_ACEOF
15155 #define HAVE_NS 1
15156 _ACEOF
15158 ## Specify the install directory
15159 ns_appdir=
15160 if test "${ns_appdir_x}" != ""; then
15161 case ${ns_appdir_x} in
15162 y | ye | yes) ns_appdir=/Applications ;;
15163 * ) ns_appdir=${ns_appdir_x} ;;
15164 esac
15166 if test "${COCOA}" = "yes"; then
15168 cat >>confdefs.h <<\_ACEOF
15169 #define NS_IMPL_COCOA 1
15170 _ACEOF
15173 if test "${EN_COCOA_EXPERIMENTAL_CTRL_G}" = "yes"; then
15175 cat >>confdefs.h <<\_ACEOF
15176 #define COCOA_EXPERIMENTAL_CTRL_G 1
15177 _ACEOF
15180 if test "${GNUSTEP}" = "yes"; then
15182 cat >>confdefs.h <<\_ACEOF
15183 #define NS_IMPL_GNUSTEP 1
15184 _ACEOF
15187 # We also have mouse menus.
15188 HAVE_MENUS=yes
15192 ### Use session management (-lSM -lICE) if available
15193 HAVE_X_SM=no
15194 if test "${HAVE_X11}" = "yes"; then
15195 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15196 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15197 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15198 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15199 echo $ECHO_N "(cached) $ECHO_C" >&6
15201 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15202 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15203 else
15204 # Is the header compilable?
15205 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
15206 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
15207 cat >conftest.$ac_ext <<_ACEOF
15208 /* confdefs.h. */
15209 _ACEOF
15210 cat confdefs.h >>conftest.$ac_ext
15211 cat >>conftest.$ac_ext <<_ACEOF
15212 /* end confdefs.h. */
15213 $ac_includes_default
15214 #include <X11/SM/SMlib.h>
15215 _ACEOF
15216 rm -f conftest.$ac_objext
15217 if { (ac_try="$ac_compile"
15218 case "(($ac_try" in
15219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15220 *) ac_try_echo=$ac_try;;
15221 esac
15222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15223 (eval "$ac_compile") 2>conftest.er1
15224 ac_status=$?
15225 grep -v '^ *+' conftest.er1 >conftest.err
15226 rm -f conftest.er1
15227 cat conftest.err >&5
15228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229 (exit $ac_status); } && {
15230 test -z "$ac_c_werror_flag" ||
15231 test ! -s conftest.err
15232 } && test -s conftest.$ac_objext; then
15233 ac_header_compiler=yes
15234 else
15235 echo "$as_me: failed program was:" >&5
15236 sed 's/^/| /' conftest.$ac_ext >&5
15238 ac_header_compiler=no
15241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15242 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15243 echo "${ECHO_T}$ac_header_compiler" >&6; }
15245 # Is the header present?
15246 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
15247 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
15248 cat >conftest.$ac_ext <<_ACEOF
15249 /* confdefs.h. */
15250 _ACEOF
15251 cat confdefs.h >>conftest.$ac_ext
15252 cat >>conftest.$ac_ext <<_ACEOF
15253 /* end confdefs.h. */
15254 #include <X11/SM/SMlib.h>
15255 _ACEOF
15256 if { (ac_try="$ac_cpp conftest.$ac_ext"
15257 case "(($ac_try" in
15258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15259 *) ac_try_echo=$ac_try;;
15260 esac
15261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15262 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15263 ac_status=$?
15264 grep -v '^ *+' conftest.er1 >conftest.err
15265 rm -f conftest.er1
15266 cat conftest.err >&5
15267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268 (exit $ac_status); } >/dev/null && {
15269 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15270 test ! -s conftest.err
15271 }; then
15272 ac_header_preproc=yes
15273 else
15274 echo "$as_me: failed program was:" >&5
15275 sed 's/^/| /' conftest.$ac_ext >&5
15277 ac_header_preproc=no
15280 rm -f conftest.err conftest.$ac_ext
15281 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15282 echo "${ECHO_T}$ac_header_preproc" >&6; }
15284 # So? What about this header?
15285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15286 yes:no: )
15287 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15288 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15289 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
15290 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
15291 ac_header_preproc=yes
15293 no:yes:* )
15294 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
15295 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
15296 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
15297 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
15298 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
15299 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
15300 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
15301 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15302 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
15303 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
15304 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
15305 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
15308 esac
15309 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15310 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15311 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15312 echo $ECHO_N "(cached) $ECHO_C" >&6
15313 else
15314 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15316 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15317 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15320 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15321 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
15322 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
15323 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15324 echo $ECHO_N "(cached) $ECHO_C" >&6
15325 else
15326 ac_check_lib_save_LIBS=$LIBS
15327 LIBS="-lSM -lICE $LIBS"
15328 cat >conftest.$ac_ext <<_ACEOF
15329 /* confdefs.h. */
15330 _ACEOF
15331 cat confdefs.h >>conftest.$ac_ext
15332 cat >>conftest.$ac_ext <<_ACEOF
15333 /* end confdefs.h. */
15335 /* Override any GCC internal prototype to avoid an error.
15336 Use char because int might match the return type of a GCC
15337 builtin and then its argument prototype would still apply. */
15338 #ifdef __cplusplus
15339 extern "C"
15340 #endif
15341 char SmcOpenConnection ();
15343 main ()
15345 return SmcOpenConnection ();
15347 return 0;
15349 _ACEOF
15350 rm -f conftest.$ac_objext conftest$ac_exeext
15351 if { (ac_try="$ac_link"
15352 case "(($ac_try" in
15353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15354 *) ac_try_echo=$ac_try;;
15355 esac
15356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15357 (eval "$ac_link") 2>conftest.er1
15358 ac_status=$?
15359 grep -v '^ *+' conftest.er1 >conftest.err
15360 rm -f conftest.er1
15361 cat conftest.err >&5
15362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363 (exit $ac_status); } && {
15364 test -z "$ac_c_werror_flag" ||
15365 test ! -s conftest.err
15366 } && test -s conftest$ac_exeext &&
15367 $as_test_x conftest$ac_exeext; then
15368 ac_cv_lib_SM_SmcOpenConnection=yes
15369 else
15370 echo "$as_me: failed program was:" >&5
15371 sed 's/^/| /' conftest.$ac_ext >&5
15373 ac_cv_lib_SM_SmcOpenConnection=no
15376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15377 conftest$ac_exeext conftest.$ac_ext
15378 LIBS=$ac_check_lib_save_LIBS
15380 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15381 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15382 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15383 HAVE_X_SM=yes
15390 if test "${HAVE_X_SM}" = "yes"; then
15392 cat >>confdefs.h <<\_ACEOF
15393 #define HAVE_X_SM 1
15394 _ACEOF
15396 case "$LIBS" in
15397 *-lSM*) ;;
15398 *) LIBS="-lSM -lICE $LIBS" ;;
15399 esac
15403 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15404 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15405 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
15406 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15407 echo $ECHO_N "(cached) $ECHO_C" >&6
15408 else
15409 cat >conftest.$ac_ext <<_ACEOF
15410 /* confdefs.h. */
15411 _ACEOF
15412 cat confdefs.h >>conftest.$ac_ext
15413 cat >>conftest.$ac_ext <<_ACEOF
15414 /* end confdefs.h. */
15415 #include <netdb.h>
15417 main ()
15419 return h_errno;
15421 return 0;
15423 _ACEOF
15424 rm -f conftest.$ac_objext conftest$ac_exeext
15425 if { (ac_try="$ac_link"
15426 case "(($ac_try" in
15427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15428 *) ac_try_echo=$ac_try;;
15429 esac
15430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15431 (eval "$ac_link") 2>conftest.er1
15432 ac_status=$?
15433 grep -v '^ *+' conftest.er1 >conftest.err
15434 rm -f conftest.er1
15435 cat conftest.err >&5
15436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); } && {
15438 test -z "$ac_c_werror_flag" ||
15439 test ! -s conftest.err
15440 } && test -s conftest$ac_exeext &&
15441 $as_test_x conftest$ac_exeext; then
15442 emacs_cv_netdb_declares_h_errno=yes
15443 else
15444 echo "$as_me: failed program was:" >&5
15445 sed 's/^/| /' conftest.$ac_ext >&5
15447 emacs_cv_netdb_declares_h_errno=no
15450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15451 conftest$ac_exeext conftest.$ac_ext
15453 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15454 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15455 if test $emacs_cv_netdb_declares_h_errno = yes; then
15457 cat >>confdefs.h <<\_ACEOF
15458 #define HAVE_H_ERRNO 1
15459 _ACEOF
15463 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15464 # for constant arguments. Useless!
15465 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15466 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15467 if test "${ac_cv_working_alloca_h+set}" = set; then
15468 echo $ECHO_N "(cached) $ECHO_C" >&6
15469 else
15470 cat >conftest.$ac_ext <<_ACEOF
15471 /* confdefs.h. */
15472 _ACEOF
15473 cat confdefs.h >>conftest.$ac_ext
15474 cat >>conftest.$ac_ext <<_ACEOF
15475 /* end confdefs.h. */
15476 #include <alloca.h>
15478 main ()
15480 char *p = (char *) alloca (2 * sizeof (int));
15481 if (p) return 0;
15483 return 0;
15485 _ACEOF
15486 rm -f conftest.$ac_objext conftest$ac_exeext
15487 if { (ac_try="$ac_link"
15488 case "(($ac_try" in
15489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15490 *) ac_try_echo=$ac_try;;
15491 esac
15492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15493 (eval "$ac_link") 2>conftest.er1
15494 ac_status=$?
15495 grep -v '^ *+' conftest.er1 >conftest.err
15496 rm -f conftest.er1
15497 cat conftest.err >&5
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); } && {
15500 test -z "$ac_c_werror_flag" ||
15501 test ! -s conftest.err
15502 } && test -s conftest$ac_exeext &&
15503 $as_test_x conftest$ac_exeext; then
15504 ac_cv_working_alloca_h=yes
15505 else
15506 echo "$as_me: failed program was:" >&5
15507 sed 's/^/| /' conftest.$ac_ext >&5
15509 ac_cv_working_alloca_h=no
15512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15513 conftest$ac_exeext conftest.$ac_ext
15515 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15516 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15517 if test $ac_cv_working_alloca_h = yes; then
15519 cat >>confdefs.h <<\_ACEOF
15520 #define HAVE_ALLOCA_H 1
15521 _ACEOF
15525 { echo "$as_me:$LINENO: checking for alloca" >&5
15526 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15527 if test "${ac_cv_func_alloca_works+set}" = set; then
15528 echo $ECHO_N "(cached) $ECHO_C" >&6
15529 else
15530 cat >conftest.$ac_ext <<_ACEOF
15531 /* confdefs.h. */
15532 _ACEOF
15533 cat confdefs.h >>conftest.$ac_ext
15534 cat >>conftest.$ac_ext <<_ACEOF
15535 /* end confdefs.h. */
15536 #ifdef __GNUC__
15537 # define alloca __builtin_alloca
15538 #else
15539 # ifdef _MSC_VER
15540 # include <malloc.h>
15541 # define alloca _alloca
15542 # else
15543 # ifdef HAVE_ALLOCA_H
15544 # include <alloca.h>
15545 # else
15546 # ifdef _AIX
15547 #pragma alloca
15548 # else
15549 # ifndef alloca /* predefined by HP cc +Olibcalls */
15550 char *alloca ();
15551 # endif
15552 # endif
15553 # endif
15554 # endif
15555 #endif
15558 main ()
15560 char *p = (char *) alloca (1);
15561 if (p) return 0;
15563 return 0;
15565 _ACEOF
15566 rm -f conftest.$ac_objext conftest$ac_exeext
15567 if { (ac_try="$ac_link"
15568 case "(($ac_try" in
15569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15570 *) ac_try_echo=$ac_try;;
15571 esac
15572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15573 (eval "$ac_link") 2>conftest.er1
15574 ac_status=$?
15575 grep -v '^ *+' conftest.er1 >conftest.err
15576 rm -f conftest.er1
15577 cat conftest.err >&5
15578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579 (exit $ac_status); } && {
15580 test -z "$ac_c_werror_flag" ||
15581 test ! -s conftest.err
15582 } && test -s conftest$ac_exeext &&
15583 $as_test_x conftest$ac_exeext; then
15584 ac_cv_func_alloca_works=yes
15585 else
15586 echo "$as_me: failed program was:" >&5
15587 sed 's/^/| /' conftest.$ac_ext >&5
15589 ac_cv_func_alloca_works=no
15592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15593 conftest$ac_exeext conftest.$ac_ext
15595 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15596 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15598 if test $ac_cv_func_alloca_works = yes; then
15600 cat >>confdefs.h <<\_ACEOF
15601 #define HAVE_ALLOCA 1
15602 _ACEOF
15604 else
15605 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15606 # that cause trouble. Some versions do not even contain alloca or
15607 # contain a buggy version. If you still want to use their alloca,
15608 # use ar to extract alloca.o from them instead of compiling alloca.c.
15610 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15612 cat >>confdefs.h <<\_ACEOF
15613 #define C_ALLOCA 1
15614 _ACEOF
15617 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15618 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
15619 if test "${ac_cv_os_cray+set}" = set; then
15620 echo $ECHO_N "(cached) $ECHO_C" >&6
15621 else
15622 cat >conftest.$ac_ext <<_ACEOF
15623 /* confdefs.h. */
15624 _ACEOF
15625 cat confdefs.h >>conftest.$ac_ext
15626 cat >>conftest.$ac_ext <<_ACEOF
15627 /* end confdefs.h. */
15628 #if defined CRAY && ! defined CRAY2
15629 webecray
15630 #else
15631 wenotbecray
15632 #endif
15634 _ACEOF
15635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15636 $EGREP "webecray" >/dev/null 2>&1; then
15637 ac_cv_os_cray=yes
15638 else
15639 ac_cv_os_cray=no
15641 rm -f conftest*
15644 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15645 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15646 if test $ac_cv_os_cray = yes; then
15647 for ac_func in _getb67 GETB67 getb67; do
15648 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15649 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15650 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15651 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15652 echo $ECHO_N "(cached) $ECHO_C" >&6
15653 else
15654 cat >conftest.$ac_ext <<_ACEOF
15655 /* confdefs.h. */
15656 _ACEOF
15657 cat confdefs.h >>conftest.$ac_ext
15658 cat >>conftest.$ac_ext <<_ACEOF
15659 /* end confdefs.h. */
15660 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15662 #define $ac_func innocuous_$ac_func
15664 /* System header to define __stub macros and hopefully few prototypes,
15665 which can conflict with char $ac_func (); below.
15666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15667 <limits.h> exists even on freestanding compilers. */
15669 #ifdef __STDC__
15670 # include <limits.h>
15671 #else
15672 # include <assert.h>
15673 #endif
15675 #undef $ac_func
15677 /* Override any GCC internal prototype to avoid an error.
15678 Use char because int might match the return type of a GCC
15679 builtin and then its argument prototype would still apply. */
15680 #ifdef __cplusplus
15681 extern "C"
15682 #endif
15683 char $ac_func ();
15684 /* The GNU C library defines this for functions which it implements
15685 to always fail with ENOSYS. Some functions are actually named
15686 something starting with __ and the normal name is an alias. */
15687 #if defined __stub_$ac_func || defined __stub___$ac_func
15688 choke me
15689 #endif
15692 main ()
15694 return $ac_func ();
15696 return 0;
15698 _ACEOF
15699 rm -f conftest.$ac_objext conftest$ac_exeext
15700 if { (ac_try="$ac_link"
15701 case "(($ac_try" in
15702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15703 *) ac_try_echo=$ac_try;;
15704 esac
15705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15706 (eval "$ac_link") 2>conftest.er1
15707 ac_status=$?
15708 grep -v '^ *+' conftest.er1 >conftest.err
15709 rm -f conftest.er1
15710 cat conftest.err >&5
15711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712 (exit $ac_status); } && {
15713 test -z "$ac_c_werror_flag" ||
15714 test ! -s conftest.err
15715 } && test -s conftest$ac_exeext &&
15716 $as_test_x conftest$ac_exeext; then
15717 eval "$as_ac_var=yes"
15718 else
15719 echo "$as_me: failed program was:" >&5
15720 sed 's/^/| /' conftest.$ac_ext >&5
15722 eval "$as_ac_var=no"
15725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15726 conftest$ac_exeext conftest.$ac_ext
15728 ac_res=`eval echo '${'$as_ac_var'}'`
15729 { echo "$as_me:$LINENO: result: $ac_res" >&5
15730 echo "${ECHO_T}$ac_res" >&6; }
15731 if test `eval echo '${'$as_ac_var'}'` = yes; then
15733 cat >>confdefs.h <<_ACEOF
15734 #define CRAY_STACKSEG_END $ac_func
15735 _ACEOF
15737 break
15740 done
15743 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15744 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
15745 if test "${ac_cv_c_stack_direction+set}" = set; then
15746 echo $ECHO_N "(cached) $ECHO_C" >&6
15747 else
15748 if test "$cross_compiling" = yes; then
15749 ac_cv_c_stack_direction=0
15750 else
15751 cat >conftest.$ac_ext <<_ACEOF
15752 /* confdefs.h. */
15753 _ACEOF
15754 cat confdefs.h >>conftest.$ac_ext
15755 cat >>conftest.$ac_ext <<_ACEOF
15756 /* end confdefs.h. */
15757 $ac_includes_default
15759 find_stack_direction ()
15761 static char *addr = 0;
15762 auto char dummy;
15763 if (addr == 0)
15765 addr = &dummy;
15766 return find_stack_direction ();
15768 else
15769 return (&dummy > addr) ? 1 : -1;
15773 main ()
15775 return find_stack_direction () < 0;
15777 _ACEOF
15778 rm -f conftest$ac_exeext
15779 if { (ac_try="$ac_link"
15780 case "(($ac_try" in
15781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15782 *) ac_try_echo=$ac_try;;
15783 esac
15784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15785 (eval "$ac_link") 2>&5
15786 ac_status=$?
15787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15789 { (case "(($ac_try" in
15790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15791 *) ac_try_echo=$ac_try;;
15792 esac
15793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15794 (eval "$ac_try") 2>&5
15795 ac_status=$?
15796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797 (exit $ac_status); }; }; then
15798 ac_cv_c_stack_direction=1
15799 else
15800 echo "$as_me: program exited with status $ac_status" >&5
15801 echo "$as_me: failed program was:" >&5
15802 sed 's/^/| /' conftest.$ac_ext >&5
15804 ( exit $ac_status )
15805 ac_cv_c_stack_direction=-1
15807 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15812 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15813 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15815 cat >>confdefs.h <<_ACEOF
15816 #define STACK_DIRECTION $ac_cv_c_stack_direction
15817 _ACEOF
15823 if test x"$ac_cv_func_alloca_works" != xyes; then
15824 { { echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
15825 echo "$as_me: error: a system implementation of alloca is required " >&2;}
15826 { (exit 1); exit 1; }; }
15829 # fmod, logb, and frexp are found in -lm on most systems.
15830 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15832 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15833 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15834 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15835 echo $ECHO_N "(cached) $ECHO_C" >&6
15836 else
15837 ac_check_lib_save_LIBS=$LIBS
15838 LIBS="-lm $LIBS"
15839 cat >conftest.$ac_ext <<_ACEOF
15840 /* confdefs.h. */
15841 _ACEOF
15842 cat confdefs.h >>conftest.$ac_ext
15843 cat >>conftest.$ac_ext <<_ACEOF
15844 /* end confdefs.h. */
15846 /* Override any GCC internal prototype to avoid an error.
15847 Use char because int might match the return type of a GCC
15848 builtin and then its argument prototype would still apply. */
15849 #ifdef __cplusplus
15850 extern "C"
15851 #endif
15852 char sqrt ();
15854 main ()
15856 return sqrt ();
15858 return 0;
15860 _ACEOF
15861 rm -f conftest.$ac_objext conftest$ac_exeext
15862 if { (ac_try="$ac_link"
15863 case "(($ac_try" in
15864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15865 *) ac_try_echo=$ac_try;;
15866 esac
15867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15868 (eval "$ac_link") 2>conftest.er1
15869 ac_status=$?
15870 grep -v '^ *+' conftest.er1 >conftest.err
15871 rm -f conftest.er1
15872 cat conftest.err >&5
15873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874 (exit $ac_status); } && {
15875 test -z "$ac_c_werror_flag" ||
15876 test ! -s conftest.err
15877 } && test -s conftest$ac_exeext &&
15878 $as_test_x conftest$ac_exeext; then
15879 ac_cv_lib_m_sqrt=yes
15880 else
15881 echo "$as_me: failed program was:" >&5
15882 sed 's/^/| /' conftest.$ac_ext >&5
15884 ac_cv_lib_m_sqrt=no
15887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15888 conftest$ac_exeext conftest.$ac_ext
15889 LIBS=$ac_check_lib_save_LIBS
15891 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15892 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15893 if test $ac_cv_lib_m_sqrt = yes; then
15894 cat >>confdefs.h <<_ACEOF
15895 #define HAVE_LIBM 1
15896 _ACEOF
15898 LIBS="-lm $LIBS"
15903 # Check for mail-locking functions in a "mail" library. Probably this should
15904 # have the same check as for liblockfile below.
15906 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15907 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15908 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15909 echo $ECHO_N "(cached) $ECHO_C" >&6
15910 else
15911 ac_check_lib_save_LIBS=$LIBS
15912 LIBS="-lmail $LIBS"
15913 cat >conftest.$ac_ext <<_ACEOF
15914 /* confdefs.h. */
15915 _ACEOF
15916 cat confdefs.h >>conftest.$ac_ext
15917 cat >>conftest.$ac_ext <<_ACEOF
15918 /* end confdefs.h. */
15920 /* Override any GCC internal prototype to avoid an error.
15921 Use char because int might match the return type of a GCC
15922 builtin and then its argument prototype would still apply. */
15923 #ifdef __cplusplus
15924 extern "C"
15925 #endif
15926 char maillock ();
15928 main ()
15930 return maillock ();
15932 return 0;
15934 _ACEOF
15935 rm -f conftest.$ac_objext conftest$ac_exeext
15936 if { (ac_try="$ac_link"
15937 case "(($ac_try" in
15938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15939 *) ac_try_echo=$ac_try;;
15940 esac
15941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15942 (eval "$ac_link") 2>conftest.er1
15943 ac_status=$?
15944 grep -v '^ *+' conftest.er1 >conftest.err
15945 rm -f conftest.er1
15946 cat conftest.err >&5
15947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15948 (exit $ac_status); } && {
15949 test -z "$ac_c_werror_flag" ||
15950 test ! -s conftest.err
15951 } && test -s conftest$ac_exeext &&
15952 $as_test_x conftest$ac_exeext; then
15953 ac_cv_lib_mail_maillock=yes
15954 else
15955 echo "$as_me: failed program was:" >&5
15956 sed 's/^/| /' conftest.$ac_ext >&5
15958 ac_cv_lib_mail_maillock=no
15961 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15962 conftest$ac_exeext conftest.$ac_ext
15963 LIBS=$ac_check_lib_save_LIBS
15965 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15966 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15967 if test $ac_cv_lib_mail_maillock = yes; then
15968 cat >>confdefs.h <<_ACEOF
15969 #define HAVE_LIBMAIL 1
15970 _ACEOF
15972 LIBS="-lmail $LIBS"
15977 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15978 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15979 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15980 echo $ECHO_N "(cached) $ECHO_C" >&6
15981 else
15982 ac_check_lib_save_LIBS=$LIBS
15983 LIBS="-llockfile $LIBS"
15984 cat >conftest.$ac_ext <<_ACEOF
15985 /* confdefs.h. */
15986 _ACEOF
15987 cat confdefs.h >>conftest.$ac_ext
15988 cat >>conftest.$ac_ext <<_ACEOF
15989 /* end confdefs.h. */
15991 /* Override any GCC internal prototype to avoid an error.
15992 Use char because int might match the return type of a GCC
15993 builtin and then its argument prototype would still apply. */
15994 #ifdef __cplusplus
15995 extern "C"
15996 #endif
15997 char maillock ();
15999 main ()
16001 return maillock ();
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 ac_cv_lib_lockfile_maillock=yes
16025 else
16026 echo "$as_me: failed program was:" >&5
16027 sed 's/^/| /' conftest.$ac_ext >&5
16029 ac_cv_lib_lockfile_maillock=no
16032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16033 conftest$ac_exeext conftest.$ac_ext
16034 LIBS=$ac_check_lib_save_LIBS
16036 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
16037 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
16038 if test $ac_cv_lib_lockfile_maillock = yes; then
16039 cat >>confdefs.h <<_ACEOF
16040 #define HAVE_LIBLOCKFILE 1
16041 _ACEOF
16043 LIBS="-llockfile $LIBS"
16047 # If we have the shared liblockfile, assume we must use it for mail
16048 # locking (e.g. Debian). If we couldn't link against liblockfile
16049 # (no liblockfile.a installed), ensure that we don't need to.
16050 if test "$ac_cv_lib_lockfile_maillock" = no; then
16051 # Extract the first word of "liblockfile.so", so it can be a program name with args.
16052 set dummy liblockfile.so; ac_word=$2
16053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16055 if test "${ac_cv_prog_liblockfile+set}" = set; then
16056 echo $ECHO_N "(cached) $ECHO_C" >&6
16057 else
16058 if test -n "$liblockfile"; then
16059 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
16060 else
16061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16062 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
16063 for as_dir in $as_dummy
16065 IFS=$as_save_IFS
16066 test -z "$as_dir" && as_dir=.
16067 for ac_exec_ext in '' $ac_executable_extensions; do
16068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16069 ac_cv_prog_liblockfile="yes"
16070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16071 break 2
16073 done
16074 done
16075 IFS=$as_save_IFS
16077 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
16080 liblockfile=$ac_cv_prog_liblockfile
16081 if test -n "$liblockfile"; then
16082 { echo "$as_me:$LINENO: result: $liblockfile" >&5
16083 echo "${ECHO_T}$liblockfile" >&6; }
16084 else
16085 { echo "$as_me:$LINENO: result: no" >&5
16086 echo "${ECHO_T}no" >&6; }
16090 if test $ac_cv_prog_liblockfile = yes; then
16091 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
16092 This probably means that movemail could lose mail.
16093 There may be a \`development' package to install containing liblockfile." >&5
16094 echo "$as_me: error: Shared liblockfile found but can't link against it.
16095 This probably means that movemail could lose mail.
16096 There may be a \`development' package to install containing liblockfile." >&2;}
16097 { (exit 1); exit 1; }; }
16098 else :
16102 for ac_func in touchlock
16104 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16105 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16106 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16107 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16108 echo $ECHO_N "(cached) $ECHO_C" >&6
16109 else
16110 cat >conftest.$ac_ext <<_ACEOF
16111 /* confdefs.h. */
16112 _ACEOF
16113 cat confdefs.h >>conftest.$ac_ext
16114 cat >>conftest.$ac_ext <<_ACEOF
16115 /* end confdefs.h. */
16116 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16117 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16118 #define $ac_func innocuous_$ac_func
16120 /* System header to define __stub macros and hopefully few prototypes,
16121 which can conflict with char $ac_func (); below.
16122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16123 <limits.h> exists even on freestanding compilers. */
16125 #ifdef __STDC__
16126 # include <limits.h>
16127 #else
16128 # include <assert.h>
16129 #endif
16131 #undef $ac_func
16133 /* Override any GCC internal prototype to avoid an error.
16134 Use char because int might match the return type of a GCC
16135 builtin and then its argument prototype would still apply. */
16136 #ifdef __cplusplus
16137 extern "C"
16138 #endif
16139 char $ac_func ();
16140 /* The GNU C library defines this for functions which it implements
16141 to always fail with ENOSYS. Some functions are actually named
16142 something starting with __ and the normal name is an alias. */
16143 #if defined __stub_$ac_func || defined __stub___$ac_func
16144 choke me
16145 #endif
16148 main ()
16150 return $ac_func ();
16152 return 0;
16154 _ACEOF
16155 rm -f conftest.$ac_objext conftest$ac_exeext
16156 if { (ac_try="$ac_link"
16157 case "(($ac_try" in
16158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16159 *) ac_try_echo=$ac_try;;
16160 esac
16161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16162 (eval "$ac_link") 2>conftest.er1
16163 ac_status=$?
16164 grep -v '^ *+' conftest.er1 >conftest.err
16165 rm -f conftest.er1
16166 cat conftest.err >&5
16167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16168 (exit $ac_status); } && {
16169 test -z "$ac_c_werror_flag" ||
16170 test ! -s conftest.err
16171 } && test -s conftest$ac_exeext &&
16172 $as_test_x conftest$ac_exeext; then
16173 eval "$as_ac_var=yes"
16174 else
16175 echo "$as_me: failed program was:" >&5
16176 sed 's/^/| /' conftest.$ac_ext >&5
16178 eval "$as_ac_var=no"
16181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16182 conftest$ac_exeext conftest.$ac_ext
16184 ac_res=`eval echo '${'$as_ac_var'}'`
16185 { echo "$as_me:$LINENO: result: $ac_res" >&5
16186 echo "${ECHO_T}$ac_res" >&6; }
16187 if test `eval echo '${'$as_ac_var'}'` = yes; then
16188 cat >>confdefs.h <<_ACEOF
16189 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16190 _ACEOF
16193 done
16196 for ac_header in maillock.h
16198 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16200 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16202 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16203 echo $ECHO_N "(cached) $ECHO_C" >&6
16205 ac_res=`eval echo '${'$as_ac_Header'}'`
16206 { echo "$as_me:$LINENO: result: $ac_res" >&5
16207 echo "${ECHO_T}$ac_res" >&6; }
16208 else
16209 # Is the header compilable?
16210 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16211 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16212 cat >conftest.$ac_ext <<_ACEOF
16213 /* confdefs.h. */
16214 _ACEOF
16215 cat confdefs.h >>conftest.$ac_ext
16216 cat >>conftest.$ac_ext <<_ACEOF
16217 /* end confdefs.h. */
16218 $ac_includes_default
16219 #include <$ac_header>
16220 _ACEOF
16221 rm -f conftest.$ac_objext
16222 if { (ac_try="$ac_compile"
16223 case "(($ac_try" in
16224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16225 *) ac_try_echo=$ac_try;;
16226 esac
16227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16228 (eval "$ac_compile") 2>conftest.er1
16229 ac_status=$?
16230 grep -v '^ *+' conftest.er1 >conftest.err
16231 rm -f conftest.er1
16232 cat conftest.err >&5
16233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234 (exit $ac_status); } && {
16235 test -z "$ac_c_werror_flag" ||
16236 test ! -s conftest.err
16237 } && test -s conftest.$ac_objext; then
16238 ac_header_compiler=yes
16239 else
16240 echo "$as_me: failed program was:" >&5
16241 sed 's/^/| /' conftest.$ac_ext >&5
16243 ac_header_compiler=no
16246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16247 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16248 echo "${ECHO_T}$ac_header_compiler" >&6; }
16250 # Is the header present?
16251 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16252 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16253 cat >conftest.$ac_ext <<_ACEOF
16254 /* confdefs.h. */
16255 _ACEOF
16256 cat confdefs.h >>conftest.$ac_ext
16257 cat >>conftest.$ac_ext <<_ACEOF
16258 /* end confdefs.h. */
16259 #include <$ac_header>
16260 _ACEOF
16261 if { (ac_try="$ac_cpp conftest.$ac_ext"
16262 case "(($ac_try" in
16263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16264 *) ac_try_echo=$ac_try;;
16265 esac
16266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16267 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16268 ac_status=$?
16269 grep -v '^ *+' conftest.er1 >conftest.err
16270 rm -f conftest.er1
16271 cat conftest.err >&5
16272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273 (exit $ac_status); } >/dev/null && {
16274 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16275 test ! -s conftest.err
16276 }; then
16277 ac_header_preproc=yes
16278 else
16279 echo "$as_me: failed program was:" >&5
16280 sed 's/^/| /' conftest.$ac_ext >&5
16282 ac_header_preproc=no
16285 rm -f conftest.err conftest.$ac_ext
16286 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16287 echo "${ECHO_T}$ac_header_preproc" >&6; }
16289 # So? What about this header?
16290 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16291 yes:no: )
16292 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16293 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16294 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16295 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16296 ac_header_preproc=yes
16298 no:yes:* )
16299 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16300 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16301 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16302 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16303 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16304 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16305 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16306 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16308 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16309 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16310 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16313 esac
16314 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16317 echo $ECHO_N "(cached) $ECHO_C" >&6
16318 else
16319 eval "$as_ac_Header=\$ac_header_preproc"
16321 ac_res=`eval echo '${'$as_ac_Header'}'`
16322 { echo "$as_me:$LINENO: result: $ac_res" >&5
16323 echo "${ECHO_T}$ac_res" >&6; }
16326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16327 cat >>confdefs.h <<_ACEOF
16328 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16329 _ACEOF
16333 done
16406 for ac_func in gethostname getdomainname dup2 \
16407 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16408 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16409 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16410 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16411 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16412 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16413 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16414 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
16415 cfmakeraw cfsetspeed
16417 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16418 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16419 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16420 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16421 echo $ECHO_N "(cached) $ECHO_C" >&6
16422 else
16423 cat >conftest.$ac_ext <<_ACEOF
16424 /* confdefs.h. */
16425 _ACEOF
16426 cat confdefs.h >>conftest.$ac_ext
16427 cat >>conftest.$ac_ext <<_ACEOF
16428 /* end confdefs.h. */
16429 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16430 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16431 #define $ac_func innocuous_$ac_func
16433 /* System header to define __stub macros and hopefully few prototypes,
16434 which can conflict with char $ac_func (); below.
16435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16436 <limits.h> exists even on freestanding compilers. */
16438 #ifdef __STDC__
16439 # include <limits.h>
16440 #else
16441 # include <assert.h>
16442 #endif
16444 #undef $ac_func
16446 /* Override any GCC internal prototype to avoid an error.
16447 Use char because int might match the return type of a GCC
16448 builtin and then its argument prototype would still apply. */
16449 #ifdef __cplusplus
16450 extern "C"
16451 #endif
16452 char $ac_func ();
16453 /* The GNU C library defines this for functions which it implements
16454 to always fail with ENOSYS. Some functions are actually named
16455 something starting with __ and the normal name is an alias. */
16456 #if defined __stub_$ac_func || defined __stub___$ac_func
16457 choke me
16458 #endif
16461 main ()
16463 return $ac_func ();
16465 return 0;
16467 _ACEOF
16468 rm -f conftest.$ac_objext conftest$ac_exeext
16469 if { (ac_try="$ac_link"
16470 case "(($ac_try" in
16471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16472 *) ac_try_echo=$ac_try;;
16473 esac
16474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16475 (eval "$ac_link") 2>conftest.er1
16476 ac_status=$?
16477 grep -v '^ *+' conftest.er1 >conftest.err
16478 rm -f conftest.er1
16479 cat conftest.err >&5
16480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16481 (exit $ac_status); } && {
16482 test -z "$ac_c_werror_flag" ||
16483 test ! -s conftest.err
16484 } && test -s conftest$ac_exeext &&
16485 $as_test_x conftest$ac_exeext; then
16486 eval "$as_ac_var=yes"
16487 else
16488 echo "$as_me: failed program was:" >&5
16489 sed 's/^/| /' conftest.$ac_ext >&5
16491 eval "$as_ac_var=no"
16494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16495 conftest$ac_exeext conftest.$ac_ext
16497 ac_res=`eval echo '${'$as_ac_var'}'`
16498 { echo "$as_me:$LINENO: result: $ac_res" >&5
16499 echo "${ECHO_T}$ac_res" >&6; }
16500 if test `eval echo '${'$as_ac_var'}'` = yes; then
16501 cat >>confdefs.h <<_ACEOF
16502 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16503 _ACEOF
16506 done
16510 for ac_header in sys/un.h
16512 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16514 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16517 echo $ECHO_N "(cached) $ECHO_C" >&6
16519 ac_res=`eval echo '${'$as_ac_Header'}'`
16520 { echo "$as_me:$LINENO: result: $ac_res" >&5
16521 echo "${ECHO_T}$ac_res" >&6; }
16522 else
16523 # Is the header compilable?
16524 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16525 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16526 cat >conftest.$ac_ext <<_ACEOF
16527 /* confdefs.h. */
16528 _ACEOF
16529 cat confdefs.h >>conftest.$ac_ext
16530 cat >>conftest.$ac_ext <<_ACEOF
16531 /* end confdefs.h. */
16532 $ac_includes_default
16533 #include <$ac_header>
16534 _ACEOF
16535 rm -f conftest.$ac_objext
16536 if { (ac_try="$ac_compile"
16537 case "(($ac_try" in
16538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16539 *) ac_try_echo=$ac_try;;
16540 esac
16541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16542 (eval "$ac_compile") 2>conftest.er1
16543 ac_status=$?
16544 grep -v '^ *+' conftest.er1 >conftest.err
16545 rm -f conftest.er1
16546 cat conftest.err >&5
16547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548 (exit $ac_status); } && {
16549 test -z "$ac_c_werror_flag" ||
16550 test ! -s conftest.err
16551 } && test -s conftest.$ac_objext; then
16552 ac_header_compiler=yes
16553 else
16554 echo "$as_me: failed program was:" >&5
16555 sed 's/^/| /' conftest.$ac_ext >&5
16557 ac_header_compiler=no
16560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16561 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16562 echo "${ECHO_T}$ac_header_compiler" >&6; }
16564 # Is the header present?
16565 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16566 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16567 cat >conftest.$ac_ext <<_ACEOF
16568 /* confdefs.h. */
16569 _ACEOF
16570 cat confdefs.h >>conftest.$ac_ext
16571 cat >>conftest.$ac_ext <<_ACEOF
16572 /* end confdefs.h. */
16573 #include <$ac_header>
16574 _ACEOF
16575 if { (ac_try="$ac_cpp conftest.$ac_ext"
16576 case "(($ac_try" in
16577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16578 *) ac_try_echo=$ac_try;;
16579 esac
16580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16581 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16582 ac_status=$?
16583 grep -v '^ *+' conftest.er1 >conftest.err
16584 rm -f conftest.er1
16585 cat conftest.err >&5
16586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587 (exit $ac_status); } >/dev/null && {
16588 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16589 test ! -s conftest.err
16590 }; then
16591 ac_header_preproc=yes
16592 else
16593 echo "$as_me: failed program was:" >&5
16594 sed 's/^/| /' conftest.$ac_ext >&5
16596 ac_header_preproc=no
16599 rm -f conftest.err conftest.$ac_ext
16600 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16601 echo "${ECHO_T}$ac_header_preproc" >&6; }
16603 # So? What about this header?
16604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16605 yes:no: )
16606 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16607 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16609 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16610 ac_header_preproc=yes
16612 no:yes:* )
16613 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16614 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16615 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16616 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16617 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16618 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16619 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16620 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16622 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16623 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16624 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16627 esac
16628 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16629 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16630 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16631 echo $ECHO_N "(cached) $ECHO_C" >&6
16632 else
16633 eval "$as_ac_Header=\$ac_header_preproc"
16635 ac_res=`eval echo '${'$as_ac_Header'}'`
16636 { echo "$as_me:$LINENO: result: $ac_res" >&5
16637 echo "${ECHO_T}$ac_res" >&6; }
16640 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16641 cat >>confdefs.h <<_ACEOF
16642 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16643 _ACEOF
16647 done
16654 for ac_header in $ac_header_list
16656 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16658 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16661 echo $ECHO_N "(cached) $ECHO_C" >&6
16663 ac_res=`eval echo '${'$as_ac_Header'}'`
16664 { echo "$as_me:$LINENO: result: $ac_res" >&5
16665 echo "${ECHO_T}$ac_res" >&6; }
16666 else
16667 # Is the header compilable?
16668 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16669 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16670 cat >conftest.$ac_ext <<_ACEOF
16671 /* confdefs.h. */
16672 _ACEOF
16673 cat confdefs.h >>conftest.$ac_ext
16674 cat >>conftest.$ac_ext <<_ACEOF
16675 /* end confdefs.h. */
16676 $ac_includes_default
16677 #include <$ac_header>
16678 _ACEOF
16679 rm -f conftest.$ac_objext
16680 if { (ac_try="$ac_compile"
16681 case "(($ac_try" in
16682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16683 *) ac_try_echo=$ac_try;;
16684 esac
16685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16686 (eval "$ac_compile") 2>conftest.er1
16687 ac_status=$?
16688 grep -v '^ *+' conftest.er1 >conftest.err
16689 rm -f conftest.er1
16690 cat conftest.err >&5
16691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692 (exit $ac_status); } && {
16693 test -z "$ac_c_werror_flag" ||
16694 test ! -s conftest.err
16695 } && test -s conftest.$ac_objext; then
16696 ac_header_compiler=yes
16697 else
16698 echo "$as_me: failed program was:" >&5
16699 sed 's/^/| /' conftest.$ac_ext >&5
16701 ac_header_compiler=no
16704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16705 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16706 echo "${ECHO_T}$ac_header_compiler" >&6; }
16708 # Is the header present?
16709 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16710 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16711 cat >conftest.$ac_ext <<_ACEOF
16712 /* confdefs.h. */
16713 _ACEOF
16714 cat confdefs.h >>conftest.$ac_ext
16715 cat >>conftest.$ac_ext <<_ACEOF
16716 /* end confdefs.h. */
16717 #include <$ac_header>
16718 _ACEOF
16719 if { (ac_try="$ac_cpp conftest.$ac_ext"
16720 case "(($ac_try" in
16721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16722 *) ac_try_echo=$ac_try;;
16723 esac
16724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16726 ac_status=$?
16727 grep -v '^ *+' conftest.er1 >conftest.err
16728 rm -f conftest.er1
16729 cat conftest.err >&5
16730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); } >/dev/null && {
16732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16733 test ! -s conftest.err
16734 }; then
16735 ac_header_preproc=yes
16736 else
16737 echo "$as_me: failed program was:" >&5
16738 sed 's/^/| /' conftest.$ac_ext >&5
16740 ac_header_preproc=no
16743 rm -f conftest.err conftest.$ac_ext
16744 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16745 echo "${ECHO_T}$ac_header_preproc" >&6; }
16747 # So? What about this header?
16748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16749 yes:no: )
16750 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16751 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16753 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16754 ac_header_preproc=yes
16756 no:yes:* )
16757 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16758 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16759 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16760 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16761 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16762 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16763 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16764 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16766 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16767 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16768 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16771 esac
16772 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16775 echo $ECHO_N "(cached) $ECHO_C" >&6
16776 else
16777 eval "$as_ac_Header=\$ac_header_preproc"
16779 ac_res=`eval echo '${'$as_ac_Header'}'`
16780 { echo "$as_me:$LINENO: result: $ac_res" >&5
16781 echo "${ECHO_T}$ac_res" >&6; }
16784 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16785 cat >>confdefs.h <<_ACEOF
16786 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16787 _ACEOF
16791 done
16801 for ac_func in $ac_func_list
16803 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16804 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16805 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16806 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16807 echo $ECHO_N "(cached) $ECHO_C" >&6
16808 else
16809 cat >conftest.$ac_ext <<_ACEOF
16810 /* confdefs.h. */
16811 _ACEOF
16812 cat confdefs.h >>conftest.$ac_ext
16813 cat >>conftest.$ac_ext <<_ACEOF
16814 /* end confdefs.h. */
16815 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16817 #define $ac_func innocuous_$ac_func
16819 /* System header to define __stub macros and hopefully few prototypes,
16820 which can conflict with char $ac_func (); below.
16821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16822 <limits.h> exists even on freestanding compilers. */
16824 #ifdef __STDC__
16825 # include <limits.h>
16826 #else
16827 # include <assert.h>
16828 #endif
16830 #undef $ac_func
16832 /* Override any GCC internal prototype to avoid an error.
16833 Use char because int might match the return type of a GCC
16834 builtin and then its argument prototype would still apply. */
16835 #ifdef __cplusplus
16836 extern "C"
16837 #endif
16838 char $ac_func ();
16839 /* The GNU C library defines this for functions which it implements
16840 to always fail with ENOSYS. Some functions are actually named
16841 something starting with __ and the normal name is an alias. */
16842 #if defined __stub_$ac_func || defined __stub___$ac_func
16843 choke me
16844 #endif
16847 main ()
16849 return $ac_func ();
16851 return 0;
16853 _ACEOF
16854 rm -f conftest.$ac_objext conftest$ac_exeext
16855 if { (ac_try="$ac_link"
16856 case "(($ac_try" in
16857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16858 *) ac_try_echo=$ac_try;;
16859 esac
16860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16861 (eval "$ac_link") 2>conftest.er1
16862 ac_status=$?
16863 grep -v '^ *+' conftest.er1 >conftest.err
16864 rm -f conftest.er1
16865 cat conftest.err >&5
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); } && {
16868 test -z "$ac_c_werror_flag" ||
16869 test ! -s conftest.err
16870 } && test -s conftest$ac_exeext &&
16871 $as_test_x conftest$ac_exeext; then
16872 eval "$as_ac_var=yes"
16873 else
16874 echo "$as_me: failed program was:" >&5
16875 sed 's/^/| /' conftest.$ac_ext >&5
16877 eval "$as_ac_var=no"
16880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16881 conftest$ac_exeext conftest.$ac_ext
16883 ac_res=`eval echo '${'$as_ac_var'}'`
16884 { echo "$as_me:$LINENO: result: $ac_res" >&5
16885 echo "${ECHO_T}$ac_res" >&6; }
16886 if test `eval echo '${'$as_ac_var'}'` = yes; then
16887 cat >>confdefs.h <<_ACEOF
16888 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16889 _ACEOF
16892 done
16910 { echo "$as_me:$LINENO: checking for working mktime" >&5
16911 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16912 if test "${ac_cv_func_working_mktime+set}" = set; then
16913 echo $ECHO_N "(cached) $ECHO_C" >&6
16914 else
16915 if test "$cross_compiling" = yes; then
16916 ac_cv_func_working_mktime=no
16917 else
16918 cat >conftest.$ac_ext <<_ACEOF
16919 /* confdefs.h. */
16920 _ACEOF
16921 cat confdefs.h >>conftest.$ac_ext
16922 cat >>conftest.$ac_ext <<_ACEOF
16923 /* end confdefs.h. */
16924 /* Test program from Paul Eggert and Tony Leneis. */
16925 #ifdef TIME_WITH_SYS_TIME
16926 # include <sys/time.h>
16927 # include <time.h>
16928 #else
16929 # ifdef HAVE_SYS_TIME_H
16930 # include <sys/time.h>
16931 # else
16932 # include <time.h>
16933 # endif
16934 #endif
16936 #include <limits.h>
16937 #include <stdlib.h>
16939 #ifdef HAVE_UNISTD_H
16940 # include <unistd.h>
16941 #endif
16943 #ifndef HAVE_ALARM
16944 # define alarm(X) /* empty */
16945 #endif
16947 /* Work around redefinition to rpl_putenv by other config tests. */
16948 #undef putenv
16950 static time_t time_t_max;
16951 static time_t time_t_min;
16953 /* Values we'll use to set the TZ environment variable. */
16954 static char *tz_strings[] = {
16955 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16956 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16958 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16960 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16961 Based on a problem report from Andreas Jaeger. */
16962 static int
16963 spring_forward_gap ()
16965 /* glibc (up to about 1998-10-07) failed this test. */
16966 struct tm tm;
16968 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16969 instead of "TZ=America/Vancouver" in order to detect the bug even
16970 on systems that don't support the Olson extension, or don't have the
16971 full zoneinfo tables installed. */
16972 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16974 tm.tm_year = 98;
16975 tm.tm_mon = 3;
16976 tm.tm_mday = 5;
16977 tm.tm_hour = 2;
16978 tm.tm_min = 0;
16979 tm.tm_sec = 0;
16980 tm.tm_isdst = -1;
16981 return mktime (&tm) != (time_t) -1;
16984 static int
16985 mktime_test1 (now)
16986 time_t now;
16988 struct tm *lt;
16989 return ! (lt = localtime (&now)) || mktime (lt) == now;
16992 static int
16993 mktime_test (now)
16994 time_t now;
16996 return (mktime_test1 (now)
16997 && mktime_test1 ((time_t) (time_t_max - now))
16998 && mktime_test1 ((time_t) (time_t_min + now)));
17001 static int
17002 irix_6_4_bug ()
17004 /* Based on code from Ariel Faigon. */
17005 struct tm tm;
17006 tm.tm_year = 96;
17007 tm.tm_mon = 3;
17008 tm.tm_mday = 0;
17009 tm.tm_hour = 0;
17010 tm.tm_min = 0;
17011 tm.tm_sec = 0;
17012 tm.tm_isdst = -1;
17013 mktime (&tm);
17014 return tm.tm_mon == 2 && tm.tm_mday == 31;
17017 static int
17018 bigtime_test (j)
17019 int j;
17021 struct tm tm;
17022 time_t now;
17023 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
17024 now = mktime (&tm);
17025 if (now != (time_t) -1)
17027 struct tm *lt = localtime (&now);
17028 if (! (lt
17029 && lt->tm_year == tm.tm_year
17030 && lt->tm_mon == tm.tm_mon
17031 && lt->tm_mday == tm.tm_mday
17032 && lt->tm_hour == tm.tm_hour
17033 && lt->tm_min == tm.tm_min
17034 && lt->tm_sec == tm.tm_sec
17035 && lt->tm_yday == tm.tm_yday
17036 && lt->tm_wday == tm.tm_wday
17037 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
17038 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
17039 return 0;
17041 return 1;
17044 static int
17045 year_2050_test ()
17047 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
17048 ignoring leap seconds. */
17049 unsigned long int answer = 2527315200UL;
17051 struct tm tm;
17052 time_t t;
17053 tm.tm_year = 2050 - 1900;
17054 tm.tm_mon = 2 - 1;
17055 tm.tm_mday = 1;
17056 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
17057 tm.tm_isdst = -1;
17059 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17060 instead of "TZ=America/Vancouver" in order to detect the bug even
17061 on systems that don't support the Olson extension, or don't have the
17062 full zoneinfo tables installed. */
17063 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17065 t = mktime (&tm);
17067 /* Check that the result is either a failure, or close enough
17068 to the correct answer that we can assume the discrepancy is
17069 due to leap seconds. */
17070 return (t == (time_t) -1
17071 || (0 < t && answer - 120 <= t && t <= answer + 120));
17075 main ()
17077 time_t t, delta;
17078 int i, j;
17080 /* This test makes some buggy mktime implementations loop.
17081 Give up after 60 seconds; a mktime slower than that
17082 isn't worth using anyway. */
17083 alarm (60);
17085 for (;;)
17087 t = (time_t_max << 1) + 1;
17088 if (t <= time_t_max)
17089 break;
17090 time_t_max = t;
17092 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
17094 delta = time_t_max / 997; /* a suitable prime number */
17095 for (i = 0; i < N_STRINGS; i++)
17097 if (tz_strings[i])
17098 putenv (tz_strings[i]);
17100 for (t = 0; t <= time_t_max - delta; t += delta)
17101 if (! mktime_test (t))
17102 return 1;
17103 if (! (mktime_test ((time_t) 1)
17104 && mktime_test ((time_t) (60 * 60))
17105 && mktime_test ((time_t) (60 * 60 * 24))))
17106 return 1;
17108 for (j = 1; ; j <<= 1)
17109 if (! bigtime_test (j))
17110 return 1;
17111 else if (INT_MAX / 2 < j)
17112 break;
17113 if (! bigtime_test (INT_MAX))
17114 return 1;
17116 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
17118 _ACEOF
17119 rm -f conftest$ac_exeext
17120 if { (ac_try="$ac_link"
17121 case "(($ac_try" in
17122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17123 *) ac_try_echo=$ac_try;;
17124 esac
17125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17126 (eval "$ac_link") 2>&5
17127 ac_status=$?
17128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17130 { (case "(($ac_try" in
17131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17132 *) ac_try_echo=$ac_try;;
17133 esac
17134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17135 (eval "$ac_try") 2>&5
17136 ac_status=$?
17137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17138 (exit $ac_status); }; }; then
17139 ac_cv_func_working_mktime=yes
17140 else
17141 echo "$as_me: program exited with status $ac_status" >&5
17142 echo "$as_me: failed program was:" >&5
17143 sed 's/^/| /' conftest.$ac_ext >&5
17145 ( exit $ac_status )
17146 ac_cv_func_working_mktime=no
17148 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17153 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
17154 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
17155 if test $ac_cv_func_working_mktime = no; then
17156 case " $LIBOBJS " in
17157 *" mktime.$ac_objext "* ) ;;
17158 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
17160 esac
17164 if test "$ac_cv_func_working_mktime" = no; then
17166 cat >>confdefs.h <<\_ACEOF
17167 #define BROKEN_MKTIME 1
17168 _ACEOF
17172 ac_have_func=no # yes means we've found a way to get the load average.
17174 # Make sure getloadavg.c is where it belongs, at configure-time.
17175 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
17176 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
17177 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
17178 { (exit 1); exit 1; }; }
17180 ac_save_LIBS=$LIBS
17182 # Check for getloadavg, but be sure not to touch the cache variable.
17183 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
17184 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
17185 if test "${ac_cv_func_getloadavg+set}" = set; then
17186 echo $ECHO_N "(cached) $ECHO_C" >&6
17187 else
17188 cat >conftest.$ac_ext <<_ACEOF
17189 /* confdefs.h. */
17190 _ACEOF
17191 cat confdefs.h >>conftest.$ac_ext
17192 cat >>conftest.$ac_ext <<_ACEOF
17193 /* end confdefs.h. */
17194 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
17195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17196 #define getloadavg innocuous_getloadavg
17198 /* System header to define __stub macros and hopefully few prototypes,
17199 which can conflict with char getloadavg (); below.
17200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17201 <limits.h> exists even on freestanding compilers. */
17203 #ifdef __STDC__
17204 # include <limits.h>
17205 #else
17206 # include <assert.h>
17207 #endif
17209 #undef getloadavg
17211 /* Override any GCC internal prototype to avoid an error.
17212 Use char because int might match the return type of a GCC
17213 builtin and then its argument prototype would still apply. */
17214 #ifdef __cplusplus
17215 extern "C"
17216 #endif
17217 char getloadavg ();
17218 /* The GNU C library defines this for functions which it implements
17219 to always fail with ENOSYS. Some functions are actually named
17220 something starting with __ and the normal name is an alias. */
17221 #if defined __stub_getloadavg || defined __stub___getloadavg
17222 choke me
17223 #endif
17226 main ()
17228 return getloadavg ();
17230 return 0;
17232 _ACEOF
17233 rm -f conftest.$ac_objext conftest$ac_exeext
17234 if { (ac_try="$ac_link"
17235 case "(($ac_try" in
17236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17237 *) ac_try_echo=$ac_try;;
17238 esac
17239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17240 (eval "$ac_link") 2>conftest.er1
17241 ac_status=$?
17242 grep -v '^ *+' conftest.er1 >conftest.err
17243 rm -f conftest.er1
17244 cat conftest.err >&5
17245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246 (exit $ac_status); } && {
17247 test -z "$ac_c_werror_flag" ||
17248 test ! -s conftest.err
17249 } && test -s conftest$ac_exeext &&
17250 $as_test_x conftest$ac_exeext; then
17251 ac_cv_func_getloadavg=yes
17252 else
17253 echo "$as_me: failed program was:" >&5
17254 sed 's/^/| /' conftest.$ac_ext >&5
17256 ac_cv_func_getloadavg=no
17259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17260 conftest$ac_exeext conftest.$ac_ext
17262 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
17263 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
17264 if test $ac_cv_func_getloadavg = yes; then
17265 exit 0
17266 else
17267 exit 1
17269 ) && ac_have_func=yes
17271 # On HPUX9, an unprivileged user can get load averages through this function.
17273 for ac_func in pstat_getdynamic
17275 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17276 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17277 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17278 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17279 echo $ECHO_N "(cached) $ECHO_C" >&6
17280 else
17281 cat >conftest.$ac_ext <<_ACEOF
17282 /* confdefs.h. */
17283 _ACEOF
17284 cat confdefs.h >>conftest.$ac_ext
17285 cat >>conftest.$ac_ext <<_ACEOF
17286 /* end confdefs.h. */
17287 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17289 #define $ac_func innocuous_$ac_func
17291 /* System header to define __stub macros and hopefully few prototypes,
17292 which can conflict with char $ac_func (); below.
17293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17294 <limits.h> exists even on freestanding compilers. */
17296 #ifdef __STDC__
17297 # include <limits.h>
17298 #else
17299 # include <assert.h>
17300 #endif
17302 #undef $ac_func
17304 /* Override any GCC internal prototype to avoid an error.
17305 Use char because int might match the return type of a GCC
17306 builtin and then its argument prototype would still apply. */
17307 #ifdef __cplusplus
17308 extern "C"
17309 #endif
17310 char $ac_func ();
17311 /* The GNU C library defines this for functions which it implements
17312 to always fail with ENOSYS. Some functions are actually named
17313 something starting with __ and the normal name is an alias. */
17314 #if defined __stub_$ac_func || defined __stub___$ac_func
17315 choke me
17316 #endif
17319 main ()
17321 return $ac_func ();
17323 return 0;
17325 _ACEOF
17326 rm -f conftest.$ac_objext conftest$ac_exeext
17327 if { (ac_try="$ac_link"
17328 case "(($ac_try" in
17329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17330 *) ac_try_echo=$ac_try;;
17331 esac
17332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17333 (eval "$ac_link") 2>conftest.er1
17334 ac_status=$?
17335 grep -v '^ *+' conftest.er1 >conftest.err
17336 rm -f conftest.er1
17337 cat conftest.err >&5
17338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339 (exit $ac_status); } && {
17340 test -z "$ac_c_werror_flag" ||
17341 test ! -s conftest.err
17342 } && test -s conftest$ac_exeext &&
17343 $as_test_x conftest$ac_exeext; then
17344 eval "$as_ac_var=yes"
17345 else
17346 echo "$as_me: failed program was:" >&5
17347 sed 's/^/| /' conftest.$ac_ext >&5
17349 eval "$as_ac_var=no"
17352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17353 conftest$ac_exeext conftest.$ac_ext
17355 ac_res=`eval echo '${'$as_ac_var'}'`
17356 { echo "$as_me:$LINENO: result: $ac_res" >&5
17357 echo "${ECHO_T}$ac_res" >&6; }
17358 if test `eval echo '${'$as_ac_var'}'` = yes; then
17359 cat >>confdefs.h <<_ACEOF
17360 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17361 _ACEOF
17364 done
17367 # Solaris has libkstat which does not require root.
17369 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
17370 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
17371 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17372 echo $ECHO_N "(cached) $ECHO_C" >&6
17373 else
17374 ac_check_lib_save_LIBS=$LIBS
17375 LIBS="-lkstat $LIBS"
17376 cat >conftest.$ac_ext <<_ACEOF
17377 /* confdefs.h. */
17378 _ACEOF
17379 cat confdefs.h >>conftest.$ac_ext
17380 cat >>conftest.$ac_ext <<_ACEOF
17381 /* end confdefs.h. */
17383 /* Override any GCC internal prototype to avoid an error.
17384 Use char because int might match the return type of a GCC
17385 builtin and then its argument prototype would still apply. */
17386 #ifdef __cplusplus
17387 extern "C"
17388 #endif
17389 char kstat_open ();
17391 main ()
17393 return kstat_open ();
17395 return 0;
17397 _ACEOF
17398 rm -f conftest.$ac_objext conftest$ac_exeext
17399 if { (ac_try="$ac_link"
17400 case "(($ac_try" in
17401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17402 *) ac_try_echo=$ac_try;;
17403 esac
17404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17405 (eval "$ac_link") 2>conftest.er1
17406 ac_status=$?
17407 grep -v '^ *+' conftest.er1 >conftest.err
17408 rm -f conftest.er1
17409 cat conftest.err >&5
17410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17411 (exit $ac_status); } && {
17412 test -z "$ac_c_werror_flag" ||
17413 test ! -s conftest.err
17414 } && test -s conftest$ac_exeext &&
17415 $as_test_x conftest$ac_exeext; then
17416 ac_cv_lib_kstat_kstat_open=yes
17417 else
17418 echo "$as_me: failed program was:" >&5
17419 sed 's/^/| /' conftest.$ac_ext >&5
17421 ac_cv_lib_kstat_kstat_open=no
17424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17425 conftest$ac_exeext conftest.$ac_ext
17426 LIBS=$ac_check_lib_save_LIBS
17428 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
17429 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17430 if test $ac_cv_lib_kstat_kstat_open = yes; then
17431 cat >>confdefs.h <<_ACEOF
17432 #define HAVE_LIBKSTAT 1
17433 _ACEOF
17435 LIBS="-lkstat $LIBS"
17439 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17441 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17442 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17443 # to get the right answer into the cache.
17444 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17445 if test $ac_have_func = no; then
17446 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17447 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
17448 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17449 echo $ECHO_N "(cached) $ECHO_C" >&6
17450 else
17451 ac_check_lib_save_LIBS=$LIBS
17452 LIBS="-lelf $LIBS"
17453 cat >conftest.$ac_ext <<_ACEOF
17454 /* confdefs.h. */
17455 _ACEOF
17456 cat confdefs.h >>conftest.$ac_ext
17457 cat >>conftest.$ac_ext <<_ACEOF
17458 /* end confdefs.h. */
17460 /* Override any GCC internal prototype to avoid an error.
17461 Use char because int might match the return type of a GCC
17462 builtin and then its argument prototype would still apply. */
17463 #ifdef __cplusplus
17464 extern "C"
17465 #endif
17466 char elf_begin ();
17468 main ()
17470 return elf_begin ();
17472 return 0;
17474 _ACEOF
17475 rm -f conftest.$ac_objext conftest$ac_exeext
17476 if { (ac_try="$ac_link"
17477 case "(($ac_try" in
17478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17479 *) ac_try_echo=$ac_try;;
17480 esac
17481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17482 (eval "$ac_link") 2>conftest.er1
17483 ac_status=$?
17484 grep -v '^ *+' conftest.er1 >conftest.err
17485 rm -f conftest.er1
17486 cat conftest.err >&5
17487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488 (exit $ac_status); } && {
17489 test -z "$ac_c_werror_flag" ||
17490 test ! -s conftest.err
17491 } && test -s conftest$ac_exeext &&
17492 $as_test_x conftest$ac_exeext; then
17493 ac_cv_lib_elf_elf_begin=yes
17494 else
17495 echo "$as_me: failed program was:" >&5
17496 sed 's/^/| /' conftest.$ac_ext >&5
17498 ac_cv_lib_elf_elf_begin=no
17501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17502 conftest$ac_exeext conftest.$ac_ext
17503 LIBS=$ac_check_lib_save_LIBS
17505 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
17506 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17507 if test $ac_cv_lib_elf_elf_begin = yes; then
17508 LIBS="-lelf $LIBS"
17512 if test $ac_have_func = no; then
17513 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17514 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
17515 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17516 echo $ECHO_N "(cached) $ECHO_C" >&6
17517 else
17518 ac_check_lib_save_LIBS=$LIBS
17519 LIBS="-lkvm $LIBS"
17520 cat >conftest.$ac_ext <<_ACEOF
17521 /* confdefs.h. */
17522 _ACEOF
17523 cat confdefs.h >>conftest.$ac_ext
17524 cat >>conftest.$ac_ext <<_ACEOF
17525 /* end confdefs.h. */
17527 /* Override any GCC internal prototype to avoid an error.
17528 Use char because int might match the return type of a GCC
17529 builtin and then its argument prototype would still apply. */
17530 #ifdef __cplusplus
17531 extern "C"
17532 #endif
17533 char kvm_open ();
17535 main ()
17537 return kvm_open ();
17539 return 0;
17541 _ACEOF
17542 rm -f conftest.$ac_objext conftest$ac_exeext
17543 if { (ac_try="$ac_link"
17544 case "(($ac_try" in
17545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17546 *) ac_try_echo=$ac_try;;
17547 esac
17548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17549 (eval "$ac_link") 2>conftest.er1
17550 ac_status=$?
17551 grep -v '^ *+' conftest.er1 >conftest.err
17552 rm -f conftest.er1
17553 cat conftest.err >&5
17554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555 (exit $ac_status); } && {
17556 test -z "$ac_c_werror_flag" ||
17557 test ! -s conftest.err
17558 } && test -s conftest$ac_exeext &&
17559 $as_test_x conftest$ac_exeext; then
17560 ac_cv_lib_kvm_kvm_open=yes
17561 else
17562 echo "$as_me: failed program was:" >&5
17563 sed 's/^/| /' conftest.$ac_ext >&5
17565 ac_cv_lib_kvm_kvm_open=no
17568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17569 conftest$ac_exeext conftest.$ac_ext
17570 LIBS=$ac_check_lib_save_LIBS
17572 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
17573 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17574 if test $ac_cv_lib_kvm_kvm_open = yes; then
17575 LIBS="-lkvm $LIBS"
17578 # Check for the 4.4BSD definition of getloadavg.
17579 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
17580 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
17581 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17582 echo $ECHO_N "(cached) $ECHO_C" >&6
17583 else
17584 ac_check_lib_save_LIBS=$LIBS
17585 LIBS="-lutil $LIBS"
17586 cat >conftest.$ac_ext <<_ACEOF
17587 /* confdefs.h. */
17588 _ACEOF
17589 cat confdefs.h >>conftest.$ac_ext
17590 cat >>conftest.$ac_ext <<_ACEOF
17591 /* end confdefs.h. */
17593 /* Override any GCC internal prototype to avoid an error.
17594 Use char because int might match the return type of a GCC
17595 builtin and then its argument prototype would still apply. */
17596 #ifdef __cplusplus
17597 extern "C"
17598 #endif
17599 char getloadavg ();
17601 main ()
17603 return getloadavg ();
17605 return 0;
17607 _ACEOF
17608 rm -f conftest.$ac_objext conftest$ac_exeext
17609 if { (ac_try="$ac_link"
17610 case "(($ac_try" in
17611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17612 *) ac_try_echo=$ac_try;;
17613 esac
17614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17615 (eval "$ac_link") 2>conftest.er1
17616 ac_status=$?
17617 grep -v '^ *+' conftest.er1 >conftest.err
17618 rm -f conftest.er1
17619 cat conftest.err >&5
17620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621 (exit $ac_status); } && {
17622 test -z "$ac_c_werror_flag" ||
17623 test ! -s conftest.err
17624 } && test -s conftest$ac_exeext &&
17625 $as_test_x conftest$ac_exeext; then
17626 ac_cv_lib_util_getloadavg=yes
17627 else
17628 echo "$as_me: failed program was:" >&5
17629 sed 's/^/| /' conftest.$ac_ext >&5
17631 ac_cv_lib_util_getloadavg=no
17634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17635 conftest$ac_exeext conftest.$ac_ext
17636 LIBS=$ac_check_lib_save_LIBS
17638 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
17639 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17640 if test $ac_cv_lib_util_getloadavg = yes; then
17641 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17646 if test $ac_have_func = no; then
17647 # There is a commonly available library for RS/6000 AIX.
17648 # Since it is not a standard part of AIX, it might be installed locally.
17649 ac_getloadavg_LIBS=$LIBS
17650 LIBS="-L/usr/local/lib $LIBS"
17651 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
17652 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
17653 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17654 echo $ECHO_N "(cached) $ECHO_C" >&6
17655 else
17656 ac_check_lib_save_LIBS=$LIBS
17657 LIBS="-lgetloadavg $LIBS"
17658 cat >conftest.$ac_ext <<_ACEOF
17659 /* confdefs.h. */
17660 _ACEOF
17661 cat confdefs.h >>conftest.$ac_ext
17662 cat >>conftest.$ac_ext <<_ACEOF
17663 /* end confdefs.h. */
17665 /* Override any GCC internal prototype to avoid an error.
17666 Use char because int might match the return type of a GCC
17667 builtin and then its argument prototype would still apply. */
17668 #ifdef __cplusplus
17669 extern "C"
17670 #endif
17671 char getloadavg ();
17673 main ()
17675 return getloadavg ();
17677 return 0;
17679 _ACEOF
17680 rm -f conftest.$ac_objext conftest$ac_exeext
17681 if { (ac_try="$ac_link"
17682 case "(($ac_try" in
17683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17684 *) ac_try_echo=$ac_try;;
17685 esac
17686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17687 (eval "$ac_link") 2>conftest.er1
17688 ac_status=$?
17689 grep -v '^ *+' conftest.er1 >conftest.err
17690 rm -f conftest.er1
17691 cat conftest.err >&5
17692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17693 (exit $ac_status); } && {
17694 test -z "$ac_c_werror_flag" ||
17695 test ! -s conftest.err
17696 } && test -s conftest$ac_exeext &&
17697 $as_test_x conftest$ac_exeext; then
17698 ac_cv_lib_getloadavg_getloadavg=yes
17699 else
17700 echo "$as_me: failed program was:" >&5
17701 sed 's/^/| /' conftest.$ac_ext >&5
17703 ac_cv_lib_getloadavg_getloadavg=no
17706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17707 conftest$ac_exeext conftest.$ac_ext
17708 LIBS=$ac_check_lib_save_LIBS
17710 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
17711 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17712 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17713 LIBS="-lgetloadavg $LIBS"
17714 else
17715 LIBS=$ac_getloadavg_LIBS
17720 # Make sure it is really in the library, if we think we found it,
17721 # otherwise set up the replacement function.
17723 for ac_func in getloadavg
17725 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17726 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17727 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17728 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17729 echo $ECHO_N "(cached) $ECHO_C" >&6
17730 else
17731 cat >conftest.$ac_ext <<_ACEOF
17732 /* confdefs.h. */
17733 _ACEOF
17734 cat confdefs.h >>conftest.$ac_ext
17735 cat >>conftest.$ac_ext <<_ACEOF
17736 /* end confdefs.h. */
17737 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17739 #define $ac_func innocuous_$ac_func
17741 /* System header to define __stub macros and hopefully few prototypes,
17742 which can conflict with char $ac_func (); below.
17743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17744 <limits.h> exists even on freestanding compilers. */
17746 #ifdef __STDC__
17747 # include <limits.h>
17748 #else
17749 # include <assert.h>
17750 #endif
17752 #undef $ac_func
17754 /* Override any GCC internal prototype to avoid an error.
17755 Use char because int might match the return type of a GCC
17756 builtin and then its argument prototype would still apply. */
17757 #ifdef __cplusplus
17758 extern "C"
17759 #endif
17760 char $ac_func ();
17761 /* The GNU C library defines this for functions which it implements
17762 to always fail with ENOSYS. Some functions are actually named
17763 something starting with __ and the normal name is an alias. */
17764 #if defined __stub_$ac_func || defined __stub___$ac_func
17765 choke me
17766 #endif
17769 main ()
17771 return $ac_func ();
17773 return 0;
17775 _ACEOF
17776 rm -f conftest.$ac_objext conftest$ac_exeext
17777 if { (ac_try="$ac_link"
17778 case "(($ac_try" in
17779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17780 *) ac_try_echo=$ac_try;;
17781 esac
17782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17783 (eval "$ac_link") 2>conftest.er1
17784 ac_status=$?
17785 grep -v '^ *+' conftest.er1 >conftest.err
17786 rm -f conftest.er1
17787 cat conftest.err >&5
17788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17789 (exit $ac_status); } && {
17790 test -z "$ac_c_werror_flag" ||
17791 test ! -s conftest.err
17792 } && test -s conftest$ac_exeext &&
17793 $as_test_x conftest$ac_exeext; then
17794 eval "$as_ac_var=yes"
17795 else
17796 echo "$as_me: failed program was:" >&5
17797 sed 's/^/| /' conftest.$ac_ext >&5
17799 eval "$as_ac_var=no"
17802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17803 conftest$ac_exeext conftest.$ac_ext
17805 ac_res=`eval echo '${'$as_ac_var'}'`
17806 { echo "$as_me:$LINENO: result: $ac_res" >&5
17807 echo "${ECHO_T}$ac_res" >&6; }
17808 if test `eval echo '${'$as_ac_var'}'` = yes; then
17809 cat >>confdefs.h <<_ACEOF
17810 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17811 _ACEOF
17813 else
17814 case " $LIBOBJS " in
17815 *" getloadavg.$ac_objext "* ) ;;
17816 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17818 esac
17821 cat >>confdefs.h <<\_ACEOF
17822 #define C_GETLOADAVG 1
17823 _ACEOF
17825 # Figure out what our getloadavg.c needs.
17826 ac_have_func=no
17827 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17828 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17829 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17830 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17831 echo $ECHO_N "(cached) $ECHO_C" >&6
17833 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17834 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17835 else
17836 # Is the header compilable?
17837 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17838 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17839 cat >conftest.$ac_ext <<_ACEOF
17840 /* confdefs.h. */
17841 _ACEOF
17842 cat confdefs.h >>conftest.$ac_ext
17843 cat >>conftest.$ac_ext <<_ACEOF
17844 /* end confdefs.h. */
17845 $ac_includes_default
17846 #include <sys/dg_sys_info.h>
17847 _ACEOF
17848 rm -f conftest.$ac_objext
17849 if { (ac_try="$ac_compile"
17850 case "(($ac_try" in
17851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17852 *) ac_try_echo=$ac_try;;
17853 esac
17854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17855 (eval "$ac_compile") 2>conftest.er1
17856 ac_status=$?
17857 grep -v '^ *+' conftest.er1 >conftest.err
17858 rm -f conftest.er1
17859 cat conftest.err >&5
17860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861 (exit $ac_status); } && {
17862 test -z "$ac_c_werror_flag" ||
17863 test ! -s conftest.err
17864 } && test -s conftest.$ac_objext; then
17865 ac_header_compiler=yes
17866 else
17867 echo "$as_me: failed program was:" >&5
17868 sed 's/^/| /' conftest.$ac_ext >&5
17870 ac_header_compiler=no
17873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17874 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17875 echo "${ECHO_T}$ac_header_compiler" >&6; }
17877 # Is the header present?
17878 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17879 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17880 cat >conftest.$ac_ext <<_ACEOF
17881 /* confdefs.h. */
17882 _ACEOF
17883 cat confdefs.h >>conftest.$ac_ext
17884 cat >>conftest.$ac_ext <<_ACEOF
17885 /* end confdefs.h. */
17886 #include <sys/dg_sys_info.h>
17887 _ACEOF
17888 if { (ac_try="$ac_cpp conftest.$ac_ext"
17889 case "(($ac_try" in
17890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17891 *) ac_try_echo=$ac_try;;
17892 esac
17893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17894 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17895 ac_status=$?
17896 grep -v '^ *+' conftest.er1 >conftest.err
17897 rm -f conftest.er1
17898 cat conftest.err >&5
17899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17900 (exit $ac_status); } >/dev/null && {
17901 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17902 test ! -s conftest.err
17903 }; then
17904 ac_header_preproc=yes
17905 else
17906 echo "$as_me: failed program was:" >&5
17907 sed 's/^/| /' conftest.$ac_ext >&5
17909 ac_header_preproc=no
17912 rm -f conftest.err conftest.$ac_ext
17913 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17914 echo "${ECHO_T}$ac_header_preproc" >&6; }
17916 # So? What about this header?
17917 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17918 yes:no: )
17919 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17920 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17921 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17922 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17923 ac_header_preproc=yes
17925 no:yes:* )
17926 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17927 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17928 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17929 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17930 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17931 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17932 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17933 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17934 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17935 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17936 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17937 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17940 esac
17941 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17942 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17943 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17944 echo $ECHO_N "(cached) $ECHO_C" >&6
17945 else
17946 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17948 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17949 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17952 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17953 ac_have_func=yes
17955 cat >>confdefs.h <<\_ACEOF
17956 #define DGUX 1
17957 _ACEOF
17960 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17961 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17962 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17963 echo $ECHO_N "(cached) $ECHO_C" >&6
17964 else
17965 ac_check_lib_save_LIBS=$LIBS
17966 LIBS="-ldgc $LIBS"
17967 cat >conftest.$ac_ext <<_ACEOF
17968 /* confdefs.h. */
17969 _ACEOF
17970 cat confdefs.h >>conftest.$ac_ext
17971 cat >>conftest.$ac_ext <<_ACEOF
17972 /* end confdefs.h. */
17974 /* Override any GCC internal prototype to avoid an error.
17975 Use char because int might match the return type of a GCC
17976 builtin and then its argument prototype would still apply. */
17977 #ifdef __cplusplus
17978 extern "C"
17979 #endif
17980 char dg_sys_info ();
17982 main ()
17984 return dg_sys_info ();
17986 return 0;
17988 _ACEOF
17989 rm -f conftest.$ac_objext conftest$ac_exeext
17990 if { (ac_try="$ac_link"
17991 case "(($ac_try" in
17992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17993 *) ac_try_echo=$ac_try;;
17994 esac
17995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17996 (eval "$ac_link") 2>conftest.er1
17997 ac_status=$?
17998 grep -v '^ *+' conftest.er1 >conftest.err
17999 rm -f conftest.er1
18000 cat conftest.err >&5
18001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002 (exit $ac_status); } && {
18003 test -z "$ac_c_werror_flag" ||
18004 test ! -s conftest.err
18005 } && test -s conftest$ac_exeext &&
18006 $as_test_x conftest$ac_exeext; then
18007 ac_cv_lib_dgc_dg_sys_info=yes
18008 else
18009 echo "$as_me: failed program was:" >&5
18010 sed 's/^/| /' conftest.$ac_ext >&5
18012 ac_cv_lib_dgc_dg_sys_info=no
18015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18016 conftest$ac_exeext conftest.$ac_ext
18017 LIBS=$ac_check_lib_save_LIBS
18019 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
18020 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
18021 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
18022 cat >>confdefs.h <<_ACEOF
18023 #define HAVE_LIBDGC 1
18024 _ACEOF
18026 LIBS="-ldgc $LIBS"
18034 if test "${ac_cv_header_locale_h+set}" = set; then
18035 { echo "$as_me:$LINENO: checking for locale.h" >&5
18036 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
18037 if test "${ac_cv_header_locale_h+set}" = set; then
18038 echo $ECHO_N "(cached) $ECHO_C" >&6
18040 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
18041 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
18042 else
18043 # Is the header compilable?
18044 { echo "$as_me:$LINENO: checking locale.h usability" >&5
18045 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
18046 cat >conftest.$ac_ext <<_ACEOF
18047 /* confdefs.h. */
18048 _ACEOF
18049 cat confdefs.h >>conftest.$ac_ext
18050 cat >>conftest.$ac_ext <<_ACEOF
18051 /* end confdefs.h. */
18052 $ac_includes_default
18053 #include <locale.h>
18054 _ACEOF
18055 rm -f conftest.$ac_objext
18056 if { (ac_try="$ac_compile"
18057 case "(($ac_try" in
18058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18059 *) ac_try_echo=$ac_try;;
18060 esac
18061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18062 (eval "$ac_compile") 2>conftest.er1
18063 ac_status=$?
18064 grep -v '^ *+' conftest.er1 >conftest.err
18065 rm -f conftest.er1
18066 cat conftest.err >&5
18067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); } && {
18069 test -z "$ac_c_werror_flag" ||
18070 test ! -s conftest.err
18071 } && test -s conftest.$ac_objext; then
18072 ac_header_compiler=yes
18073 else
18074 echo "$as_me: failed program was:" >&5
18075 sed 's/^/| /' conftest.$ac_ext >&5
18077 ac_header_compiler=no
18080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18081 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18082 echo "${ECHO_T}$ac_header_compiler" >&6; }
18084 # Is the header present?
18085 { echo "$as_me:$LINENO: checking locale.h presence" >&5
18086 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
18087 cat >conftest.$ac_ext <<_ACEOF
18088 /* confdefs.h. */
18089 _ACEOF
18090 cat confdefs.h >>conftest.$ac_ext
18091 cat >>conftest.$ac_ext <<_ACEOF
18092 /* end confdefs.h. */
18093 #include <locale.h>
18094 _ACEOF
18095 if { (ac_try="$ac_cpp conftest.$ac_ext"
18096 case "(($ac_try" in
18097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18098 *) ac_try_echo=$ac_try;;
18099 esac
18100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18101 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18102 ac_status=$?
18103 grep -v '^ *+' conftest.er1 >conftest.err
18104 rm -f conftest.er1
18105 cat conftest.err >&5
18106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107 (exit $ac_status); } >/dev/null && {
18108 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18109 test ! -s conftest.err
18110 }; then
18111 ac_header_preproc=yes
18112 else
18113 echo "$as_me: failed program was:" >&5
18114 sed 's/^/| /' conftest.$ac_ext >&5
18116 ac_header_preproc=no
18119 rm -f conftest.err conftest.$ac_ext
18120 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18121 echo "${ECHO_T}$ac_header_preproc" >&6; }
18123 # So? What about this header?
18124 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18125 yes:no: )
18126 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
18127 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18128 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
18129 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
18130 ac_header_preproc=yes
18132 no:yes:* )
18133 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
18134 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
18135 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
18136 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
18137 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
18138 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
18139 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
18140 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
18141 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
18142 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
18143 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
18144 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
18147 esac
18148 { echo "$as_me:$LINENO: checking for locale.h" >&5
18149 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
18150 if test "${ac_cv_header_locale_h+set}" = set; then
18151 echo $ECHO_N "(cached) $ECHO_C" >&6
18152 else
18153 ac_cv_header_locale_h=$ac_header_preproc
18155 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
18156 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
18162 for ac_func in setlocale
18164 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18165 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18166 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18167 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18168 echo $ECHO_N "(cached) $ECHO_C" >&6
18169 else
18170 cat >conftest.$ac_ext <<_ACEOF
18171 /* confdefs.h. */
18172 _ACEOF
18173 cat confdefs.h >>conftest.$ac_ext
18174 cat >>conftest.$ac_ext <<_ACEOF
18175 /* end confdefs.h. */
18176 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18177 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18178 #define $ac_func innocuous_$ac_func
18180 /* System header to define __stub macros and hopefully few prototypes,
18181 which can conflict with char $ac_func (); below.
18182 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18183 <limits.h> exists even on freestanding compilers. */
18185 #ifdef __STDC__
18186 # include <limits.h>
18187 #else
18188 # include <assert.h>
18189 #endif
18191 #undef $ac_func
18193 /* Override any GCC internal prototype to avoid an error.
18194 Use char because int might match the return type of a GCC
18195 builtin and then its argument prototype would still apply. */
18196 #ifdef __cplusplus
18197 extern "C"
18198 #endif
18199 char $ac_func ();
18200 /* The GNU C library defines this for functions which it implements
18201 to always fail with ENOSYS. Some functions are actually named
18202 something starting with __ and the normal name is an alias. */
18203 #if defined __stub_$ac_func || defined __stub___$ac_func
18204 choke me
18205 #endif
18208 main ()
18210 return $ac_func ();
18212 return 0;
18214 _ACEOF
18215 rm -f conftest.$ac_objext conftest$ac_exeext
18216 if { (ac_try="$ac_link"
18217 case "(($ac_try" in
18218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18219 *) ac_try_echo=$ac_try;;
18220 esac
18221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18222 (eval "$ac_link") 2>conftest.er1
18223 ac_status=$?
18224 grep -v '^ *+' conftest.er1 >conftest.err
18225 rm -f conftest.er1
18226 cat conftest.err >&5
18227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18228 (exit $ac_status); } && {
18229 test -z "$ac_c_werror_flag" ||
18230 test ! -s conftest.err
18231 } && test -s conftest$ac_exeext &&
18232 $as_test_x conftest$ac_exeext; then
18233 eval "$as_ac_var=yes"
18234 else
18235 echo "$as_me: failed program was:" >&5
18236 sed 's/^/| /' conftest.$ac_ext >&5
18238 eval "$as_ac_var=no"
18241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18242 conftest$ac_exeext conftest.$ac_ext
18244 ac_res=`eval echo '${'$as_ac_var'}'`
18245 { echo "$as_me:$LINENO: result: $ac_res" >&5
18246 echo "${ECHO_T}$ac_res" >&6; }
18247 if test `eval echo '${'$as_ac_var'}'` = yes; then
18248 cat >>confdefs.h <<_ACEOF
18249 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18250 _ACEOF
18253 done
18256 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18257 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
18258 # Irix 4.0.5F has the header but not the library.
18259 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
18260 ac_have_func=yes
18262 cat >>confdefs.h <<\_ACEOF
18263 #define SVR4 1
18264 _ACEOF
18268 if test $ac_have_func = no; then
18269 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18270 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18271 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18272 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18273 echo $ECHO_N "(cached) $ECHO_C" >&6
18275 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18276 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18277 else
18278 # Is the header compilable?
18279 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
18280 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
18281 cat >conftest.$ac_ext <<_ACEOF
18282 /* confdefs.h. */
18283 _ACEOF
18284 cat confdefs.h >>conftest.$ac_ext
18285 cat >>conftest.$ac_ext <<_ACEOF
18286 /* end confdefs.h. */
18287 $ac_includes_default
18288 #include <inq_stats/cpustats.h>
18289 _ACEOF
18290 rm -f conftest.$ac_objext
18291 if { (ac_try="$ac_compile"
18292 case "(($ac_try" in
18293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18294 *) ac_try_echo=$ac_try;;
18295 esac
18296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18297 (eval "$ac_compile") 2>conftest.er1
18298 ac_status=$?
18299 grep -v '^ *+' conftest.er1 >conftest.err
18300 rm -f conftest.er1
18301 cat conftest.err >&5
18302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18303 (exit $ac_status); } && {
18304 test -z "$ac_c_werror_flag" ||
18305 test ! -s conftest.err
18306 } && test -s conftest.$ac_objext; then
18307 ac_header_compiler=yes
18308 else
18309 echo "$as_me: failed program was:" >&5
18310 sed 's/^/| /' conftest.$ac_ext >&5
18312 ac_header_compiler=no
18315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18316 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18317 echo "${ECHO_T}$ac_header_compiler" >&6; }
18319 # Is the header present?
18320 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
18321 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
18322 cat >conftest.$ac_ext <<_ACEOF
18323 /* confdefs.h. */
18324 _ACEOF
18325 cat confdefs.h >>conftest.$ac_ext
18326 cat >>conftest.$ac_ext <<_ACEOF
18327 /* end confdefs.h. */
18328 #include <inq_stats/cpustats.h>
18329 _ACEOF
18330 if { (ac_try="$ac_cpp conftest.$ac_ext"
18331 case "(($ac_try" in
18332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18333 *) ac_try_echo=$ac_try;;
18334 esac
18335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18336 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18337 ac_status=$?
18338 grep -v '^ *+' conftest.er1 >conftest.err
18339 rm -f conftest.er1
18340 cat conftest.err >&5
18341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342 (exit $ac_status); } >/dev/null && {
18343 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18344 test ! -s conftest.err
18345 }; then
18346 ac_header_preproc=yes
18347 else
18348 echo "$as_me: failed program was:" >&5
18349 sed 's/^/| /' conftest.$ac_ext >&5
18351 ac_header_preproc=no
18354 rm -f conftest.err conftest.$ac_ext
18355 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18356 echo "${ECHO_T}$ac_header_preproc" >&6; }
18358 # So? What about this header?
18359 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18360 yes:no: )
18361 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18362 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18363 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
18364 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
18365 ac_header_preproc=yes
18367 no:yes:* )
18368 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
18369 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
18370 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
18371 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
18372 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
18373 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
18374 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18375 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18376 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
18377 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
18378 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
18379 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
18382 esac
18383 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18384 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18385 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18386 echo $ECHO_N "(cached) $ECHO_C" >&6
18387 else
18388 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18390 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18391 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18394 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18395 ac_have_func=yes
18397 cat >>confdefs.h <<\_ACEOF
18398 #define UMAX 1
18399 _ACEOF
18402 cat >>confdefs.h <<\_ACEOF
18403 #define UMAX4_3 1
18404 _ACEOF
18411 if test $ac_have_func = no; then
18412 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18413 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18414 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18415 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18416 echo $ECHO_N "(cached) $ECHO_C" >&6
18418 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18419 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18420 else
18421 # Is the header compilable?
18422 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
18423 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
18424 cat >conftest.$ac_ext <<_ACEOF
18425 /* confdefs.h. */
18426 _ACEOF
18427 cat confdefs.h >>conftest.$ac_ext
18428 cat >>conftest.$ac_ext <<_ACEOF
18429 /* end confdefs.h. */
18430 $ac_includes_default
18431 #include <sys/cpustats.h>
18432 _ACEOF
18433 rm -f conftest.$ac_objext
18434 if { (ac_try="$ac_compile"
18435 case "(($ac_try" in
18436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18437 *) ac_try_echo=$ac_try;;
18438 esac
18439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18440 (eval "$ac_compile") 2>conftest.er1
18441 ac_status=$?
18442 grep -v '^ *+' conftest.er1 >conftest.err
18443 rm -f conftest.er1
18444 cat conftest.err >&5
18445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446 (exit $ac_status); } && {
18447 test -z "$ac_c_werror_flag" ||
18448 test ! -s conftest.err
18449 } && test -s conftest.$ac_objext; then
18450 ac_header_compiler=yes
18451 else
18452 echo "$as_me: failed program was:" >&5
18453 sed 's/^/| /' conftest.$ac_ext >&5
18455 ac_header_compiler=no
18458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18459 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18460 echo "${ECHO_T}$ac_header_compiler" >&6; }
18462 # Is the header present?
18463 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
18464 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
18465 cat >conftest.$ac_ext <<_ACEOF
18466 /* confdefs.h. */
18467 _ACEOF
18468 cat confdefs.h >>conftest.$ac_ext
18469 cat >>conftest.$ac_ext <<_ACEOF
18470 /* end confdefs.h. */
18471 #include <sys/cpustats.h>
18472 _ACEOF
18473 if { (ac_try="$ac_cpp conftest.$ac_ext"
18474 case "(($ac_try" in
18475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18476 *) ac_try_echo=$ac_try;;
18477 esac
18478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18479 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18480 ac_status=$?
18481 grep -v '^ *+' conftest.er1 >conftest.err
18482 rm -f conftest.er1
18483 cat conftest.err >&5
18484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18485 (exit $ac_status); } >/dev/null && {
18486 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18487 test ! -s conftest.err
18488 }; then
18489 ac_header_preproc=yes
18490 else
18491 echo "$as_me: failed program was:" >&5
18492 sed 's/^/| /' conftest.$ac_ext >&5
18494 ac_header_preproc=no
18497 rm -f conftest.err conftest.$ac_ext
18498 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18499 echo "${ECHO_T}$ac_header_preproc" >&6; }
18501 # So? What about this header?
18502 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18503 yes:no: )
18504 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18505 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18506 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
18507 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
18508 ac_header_preproc=yes
18510 no:yes:* )
18511 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
18512 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
18513 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
18514 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
18515 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
18516 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
18517 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18518 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18519 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
18520 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
18521 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
18522 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
18525 esac
18526 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18527 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18528 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18529 echo $ECHO_N "(cached) $ECHO_C" >&6
18530 else
18531 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18533 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18534 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18537 if test $ac_cv_header_sys_cpustats_h = yes; then
18538 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18539 #define UMAX 1
18540 _ACEOF
18547 if test $ac_have_func = no; then
18549 for ac_header in mach/mach.h
18551 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18553 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18556 echo $ECHO_N "(cached) $ECHO_C" >&6
18558 ac_res=`eval echo '${'$as_ac_Header'}'`
18559 { echo "$as_me:$LINENO: result: $ac_res" >&5
18560 echo "${ECHO_T}$ac_res" >&6; }
18561 else
18562 # Is the header compilable?
18563 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18564 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18565 cat >conftest.$ac_ext <<_ACEOF
18566 /* confdefs.h. */
18567 _ACEOF
18568 cat confdefs.h >>conftest.$ac_ext
18569 cat >>conftest.$ac_ext <<_ACEOF
18570 /* end confdefs.h. */
18571 $ac_includes_default
18572 #include <$ac_header>
18573 _ACEOF
18574 rm -f conftest.$ac_objext
18575 if { (ac_try="$ac_compile"
18576 case "(($ac_try" in
18577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18578 *) ac_try_echo=$ac_try;;
18579 esac
18580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18581 (eval "$ac_compile") 2>conftest.er1
18582 ac_status=$?
18583 grep -v '^ *+' conftest.er1 >conftest.err
18584 rm -f conftest.er1
18585 cat conftest.err >&5
18586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18587 (exit $ac_status); } && {
18588 test -z "$ac_c_werror_flag" ||
18589 test ! -s conftest.err
18590 } && test -s conftest.$ac_objext; then
18591 ac_header_compiler=yes
18592 else
18593 echo "$as_me: failed program was:" >&5
18594 sed 's/^/| /' conftest.$ac_ext >&5
18596 ac_header_compiler=no
18599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18600 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18601 echo "${ECHO_T}$ac_header_compiler" >&6; }
18603 # Is the header present?
18604 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18605 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18606 cat >conftest.$ac_ext <<_ACEOF
18607 /* confdefs.h. */
18608 _ACEOF
18609 cat confdefs.h >>conftest.$ac_ext
18610 cat >>conftest.$ac_ext <<_ACEOF
18611 /* end confdefs.h. */
18612 #include <$ac_header>
18613 _ACEOF
18614 if { (ac_try="$ac_cpp conftest.$ac_ext"
18615 case "(($ac_try" in
18616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18617 *) ac_try_echo=$ac_try;;
18618 esac
18619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18620 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18621 ac_status=$?
18622 grep -v '^ *+' conftest.er1 >conftest.err
18623 rm -f conftest.er1
18624 cat conftest.err >&5
18625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626 (exit $ac_status); } >/dev/null && {
18627 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18628 test ! -s conftest.err
18629 }; then
18630 ac_header_preproc=yes
18631 else
18632 echo "$as_me: failed program was:" >&5
18633 sed 's/^/| /' conftest.$ac_ext >&5
18635 ac_header_preproc=no
18638 rm -f conftest.err conftest.$ac_ext
18639 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18640 echo "${ECHO_T}$ac_header_preproc" >&6; }
18642 # So? What about this header?
18643 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18644 yes:no: )
18645 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18646 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18648 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18649 ac_header_preproc=yes
18651 no:yes:* )
18652 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18653 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18654 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18655 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18656 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18657 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18658 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18659 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18661 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18662 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18663 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18666 esac
18667 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18668 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18670 echo $ECHO_N "(cached) $ECHO_C" >&6
18671 else
18672 eval "$as_ac_Header=\$ac_header_preproc"
18674 ac_res=`eval echo '${'$as_ac_Header'}'`
18675 { echo "$as_me:$LINENO: result: $ac_res" >&5
18676 echo "${ECHO_T}$ac_res" >&6; }
18679 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18680 cat >>confdefs.h <<_ACEOF
18681 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18682 _ACEOF
18686 done
18691 for ac_header in nlist.h
18693 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18695 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18698 echo $ECHO_N "(cached) $ECHO_C" >&6
18700 ac_res=`eval echo '${'$as_ac_Header'}'`
18701 { echo "$as_me:$LINENO: result: $ac_res" >&5
18702 echo "${ECHO_T}$ac_res" >&6; }
18703 else
18704 # Is the header compilable?
18705 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18706 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18707 cat >conftest.$ac_ext <<_ACEOF
18708 /* confdefs.h. */
18709 _ACEOF
18710 cat confdefs.h >>conftest.$ac_ext
18711 cat >>conftest.$ac_ext <<_ACEOF
18712 /* end confdefs.h. */
18713 $ac_includes_default
18714 #include <$ac_header>
18715 _ACEOF
18716 rm -f conftest.$ac_objext
18717 if { (ac_try="$ac_compile"
18718 case "(($ac_try" in
18719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18720 *) ac_try_echo=$ac_try;;
18721 esac
18722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18723 (eval "$ac_compile") 2>conftest.er1
18724 ac_status=$?
18725 grep -v '^ *+' conftest.er1 >conftest.err
18726 rm -f conftest.er1
18727 cat conftest.err >&5
18728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18729 (exit $ac_status); } && {
18730 test -z "$ac_c_werror_flag" ||
18731 test ! -s conftest.err
18732 } && test -s conftest.$ac_objext; then
18733 ac_header_compiler=yes
18734 else
18735 echo "$as_me: failed program was:" >&5
18736 sed 's/^/| /' conftest.$ac_ext >&5
18738 ac_header_compiler=no
18741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18742 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18743 echo "${ECHO_T}$ac_header_compiler" >&6; }
18745 # Is the header present?
18746 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18747 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18748 cat >conftest.$ac_ext <<_ACEOF
18749 /* confdefs.h. */
18750 _ACEOF
18751 cat confdefs.h >>conftest.$ac_ext
18752 cat >>conftest.$ac_ext <<_ACEOF
18753 /* end confdefs.h. */
18754 #include <$ac_header>
18755 _ACEOF
18756 if { (ac_try="$ac_cpp conftest.$ac_ext"
18757 case "(($ac_try" in
18758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18759 *) ac_try_echo=$ac_try;;
18760 esac
18761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18762 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18763 ac_status=$?
18764 grep -v '^ *+' conftest.er1 >conftest.err
18765 rm -f conftest.er1
18766 cat conftest.err >&5
18767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18768 (exit $ac_status); } >/dev/null && {
18769 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18770 test ! -s conftest.err
18771 }; then
18772 ac_header_preproc=yes
18773 else
18774 echo "$as_me: failed program was:" >&5
18775 sed 's/^/| /' conftest.$ac_ext >&5
18777 ac_header_preproc=no
18780 rm -f conftest.err conftest.$ac_ext
18781 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18782 echo "${ECHO_T}$ac_header_preproc" >&6; }
18784 # So? What about this header?
18785 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18786 yes:no: )
18787 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18788 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18790 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18791 ac_header_preproc=yes
18793 no:yes:* )
18794 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18795 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18796 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18797 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18798 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18799 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18800 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18801 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18803 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18804 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18805 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18808 esac
18809 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18812 echo $ECHO_N "(cached) $ECHO_C" >&6
18813 else
18814 eval "$as_ac_Header=\$ac_header_preproc"
18816 ac_res=`eval echo '${'$as_ac_Header'}'`
18817 { echo "$as_me:$LINENO: result: $ac_res" >&5
18818 echo "${ECHO_T}$ac_res" >&6; }
18821 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18822 cat >>confdefs.h <<_ACEOF
18823 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18824 _ACEOF
18825 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18826 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18827 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18828 echo $ECHO_N "(cached) $ECHO_C" >&6
18829 else
18830 cat >conftest.$ac_ext <<_ACEOF
18831 /* confdefs.h. */
18832 _ACEOF
18833 cat confdefs.h >>conftest.$ac_ext
18834 cat >>conftest.$ac_ext <<_ACEOF
18835 /* end confdefs.h. */
18836 #include <nlist.h>
18839 main ()
18841 static struct nlist ac_aggr;
18842 if (ac_aggr.n_un.n_name)
18843 return 0;
18845 return 0;
18847 _ACEOF
18848 rm -f conftest.$ac_objext
18849 if { (ac_try="$ac_compile"
18850 case "(($ac_try" in
18851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18852 *) ac_try_echo=$ac_try;;
18853 esac
18854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18855 (eval "$ac_compile") 2>conftest.er1
18856 ac_status=$?
18857 grep -v '^ *+' conftest.er1 >conftest.err
18858 rm -f conftest.er1
18859 cat conftest.err >&5
18860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861 (exit $ac_status); } && {
18862 test -z "$ac_c_werror_flag" ||
18863 test ! -s conftest.err
18864 } && test -s conftest.$ac_objext; then
18865 ac_cv_member_struct_nlist_n_un_n_name=yes
18866 else
18867 echo "$as_me: failed program was:" >&5
18868 sed 's/^/| /' conftest.$ac_ext >&5
18870 cat >conftest.$ac_ext <<_ACEOF
18871 /* confdefs.h. */
18872 _ACEOF
18873 cat confdefs.h >>conftest.$ac_ext
18874 cat >>conftest.$ac_ext <<_ACEOF
18875 /* end confdefs.h. */
18876 #include <nlist.h>
18879 main ()
18881 static struct nlist ac_aggr;
18882 if (sizeof ac_aggr.n_un.n_name)
18883 return 0;
18885 return 0;
18887 _ACEOF
18888 rm -f conftest.$ac_objext
18889 if { (ac_try="$ac_compile"
18890 case "(($ac_try" in
18891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18892 *) ac_try_echo=$ac_try;;
18893 esac
18894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18895 (eval "$ac_compile") 2>conftest.er1
18896 ac_status=$?
18897 grep -v '^ *+' conftest.er1 >conftest.err
18898 rm -f conftest.er1
18899 cat conftest.err >&5
18900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18901 (exit $ac_status); } && {
18902 test -z "$ac_c_werror_flag" ||
18903 test ! -s conftest.err
18904 } && test -s conftest.$ac_objext; then
18905 ac_cv_member_struct_nlist_n_un_n_name=yes
18906 else
18907 echo "$as_me: failed program was:" >&5
18908 sed 's/^/| /' conftest.$ac_ext >&5
18910 ac_cv_member_struct_nlist_n_un_n_name=no
18913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18918 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18919 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18920 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18922 cat >>confdefs.h <<_ACEOF
18923 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18924 _ACEOF
18927 cat >>confdefs.h <<\_ACEOF
18928 #define NLIST_NAME_UNION 1
18929 _ACEOF
18936 done
18939 done
18942 # Some definitions of getloadavg require that the program be installed setgid.
18943 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18944 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18945 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18946 echo $ECHO_N "(cached) $ECHO_C" >&6
18947 else
18948 cat >conftest.$ac_ext <<_ACEOF
18949 /* confdefs.h. */
18950 _ACEOF
18951 cat confdefs.h >>conftest.$ac_ext
18952 cat >>conftest.$ac_ext <<_ACEOF
18953 /* end confdefs.h. */
18954 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18955 #ifdef LDAV_PRIVILEGED
18956 Yowza Am I SETGID yet
18957 #endif
18958 _ACEOF
18959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18960 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18961 ac_cv_func_getloadavg_setgid=yes
18962 else
18963 ac_cv_func_getloadavg_setgid=no
18965 rm -f conftest*
18968 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18969 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18970 if test $ac_cv_func_getloadavg_setgid = yes; then
18971 NEED_SETGID=true
18973 cat >>confdefs.h <<\_ACEOF
18974 #define GETLOADAVG_PRIVILEGED 1
18975 _ACEOF
18977 else
18978 NEED_SETGID=false
18981 if test $ac_cv_func_getloadavg_setgid = yes; then
18982 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18983 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18984 if test "${ac_cv_group_kmem+set}" = set; then
18985 echo $ECHO_N "(cached) $ECHO_C" >&6
18986 else
18987 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18988 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18989 # If we got an error (system does not support symlinks), try without -L.
18990 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18991 ac_cv_group_kmem=`echo $ac_ls_output \
18992 | sed -ne 's/[ ][ ]*/ /g;
18993 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18994 / /s/.* //;p;'`
18997 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18998 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18999 KMEM_GROUP=$ac_cv_group_kmem
19001 if test "x$ac_save_LIBS" = x; then
19002 GETLOADAVG_LIBS=$LIBS
19003 else
19004 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
19006 LIBS=$ac_save_LIBS
19010 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19011 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
19012 if test "${ac_cv_sys_largefile_source+set}" = set; then
19013 echo $ECHO_N "(cached) $ECHO_C" >&6
19014 else
19015 while :; do
19016 cat >conftest.$ac_ext <<_ACEOF
19017 /* confdefs.h. */
19018 _ACEOF
19019 cat confdefs.h >>conftest.$ac_ext
19020 cat >>conftest.$ac_ext <<_ACEOF
19021 /* end confdefs.h. */
19022 #include <stdio.h>
19024 main ()
19026 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
19028 return 0;
19030 _ACEOF
19031 rm -f conftest.$ac_objext conftest$ac_exeext
19032 if { (ac_try="$ac_link"
19033 case "(($ac_try" in
19034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19035 *) ac_try_echo=$ac_try;;
19036 esac
19037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19038 (eval "$ac_link") 2>conftest.er1
19039 ac_status=$?
19040 grep -v '^ *+' conftest.er1 >conftest.err
19041 rm -f conftest.er1
19042 cat conftest.err >&5
19043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044 (exit $ac_status); } && {
19045 test -z "$ac_c_werror_flag" ||
19046 test ! -s conftest.err
19047 } && test -s conftest$ac_exeext &&
19048 $as_test_x conftest$ac_exeext; then
19049 ac_cv_sys_largefile_source=no; break
19050 else
19051 echo "$as_me: failed program was:" >&5
19052 sed 's/^/| /' conftest.$ac_ext >&5
19057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19058 conftest$ac_exeext conftest.$ac_ext
19059 cat >conftest.$ac_ext <<_ACEOF
19060 /* confdefs.h. */
19061 _ACEOF
19062 cat confdefs.h >>conftest.$ac_ext
19063 cat >>conftest.$ac_ext <<_ACEOF
19064 /* end confdefs.h. */
19065 #define _LARGEFILE_SOURCE 1
19066 #include <stdio.h>
19068 main ()
19070 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
19072 return 0;
19074 _ACEOF
19075 rm -f conftest.$ac_objext conftest$ac_exeext
19076 if { (ac_try="$ac_link"
19077 case "(($ac_try" in
19078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19079 *) ac_try_echo=$ac_try;;
19080 esac
19081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19082 (eval "$ac_link") 2>conftest.er1
19083 ac_status=$?
19084 grep -v '^ *+' conftest.er1 >conftest.err
19085 rm -f conftest.er1
19086 cat conftest.err >&5
19087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19088 (exit $ac_status); } && {
19089 test -z "$ac_c_werror_flag" ||
19090 test ! -s conftest.err
19091 } && test -s conftest$ac_exeext &&
19092 $as_test_x conftest$ac_exeext; then
19093 ac_cv_sys_largefile_source=1; break
19094 else
19095 echo "$as_me: failed program was:" >&5
19096 sed 's/^/| /' conftest.$ac_ext >&5
19101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19102 conftest$ac_exeext conftest.$ac_ext
19103 ac_cv_sys_largefile_source=unknown
19104 break
19105 done
19107 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19108 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
19109 case $ac_cv_sys_largefile_source in #(
19110 no | unknown) ;;
19112 cat >>confdefs.h <<_ACEOF
19113 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19114 _ACEOF
19116 esac
19117 rm -f conftest*
19119 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19120 # in glibc 2.1.3, but that breaks too many other things.
19121 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19122 if test $ac_cv_sys_largefile_source != unknown; then
19124 cat >>confdefs.h <<\_ACEOF
19125 #define HAVE_FSEEKO 1
19126 _ACEOF
19131 # Configure getopt.
19132 # getopt.m4 serial 10
19134 # The getopt module assume you want GNU getopt, with getopt_long etc,
19135 # rather than vanilla POSIX getopt. This means your your code should
19136 # always include <getopt.h> for the getopt prototypes.
19148 # Prerequisites of lib/getopt*.
19153 GETOPT_H=
19155 for ac_header in getopt.h
19157 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19159 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19162 echo $ECHO_N "(cached) $ECHO_C" >&6
19164 ac_res=`eval echo '${'$as_ac_Header'}'`
19165 { echo "$as_me:$LINENO: result: $ac_res" >&5
19166 echo "${ECHO_T}$ac_res" >&6; }
19167 else
19168 # Is the header compilable?
19169 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19170 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19171 cat >conftest.$ac_ext <<_ACEOF
19172 /* confdefs.h. */
19173 _ACEOF
19174 cat confdefs.h >>conftest.$ac_ext
19175 cat >>conftest.$ac_ext <<_ACEOF
19176 /* end confdefs.h. */
19177 $ac_includes_default
19178 #include <$ac_header>
19179 _ACEOF
19180 rm -f conftest.$ac_objext
19181 if { (ac_try="$ac_compile"
19182 case "(($ac_try" in
19183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19184 *) ac_try_echo=$ac_try;;
19185 esac
19186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19187 (eval "$ac_compile") 2>conftest.er1
19188 ac_status=$?
19189 grep -v '^ *+' conftest.er1 >conftest.err
19190 rm -f conftest.er1
19191 cat conftest.err >&5
19192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193 (exit $ac_status); } && {
19194 test -z "$ac_c_werror_flag" ||
19195 test ! -s conftest.err
19196 } && test -s conftest.$ac_objext; then
19197 ac_header_compiler=yes
19198 else
19199 echo "$as_me: failed program was:" >&5
19200 sed 's/^/| /' conftest.$ac_ext >&5
19202 ac_header_compiler=no
19205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19206 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19207 echo "${ECHO_T}$ac_header_compiler" >&6; }
19209 # Is the header present?
19210 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19211 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19212 cat >conftest.$ac_ext <<_ACEOF
19213 /* confdefs.h. */
19214 _ACEOF
19215 cat confdefs.h >>conftest.$ac_ext
19216 cat >>conftest.$ac_ext <<_ACEOF
19217 /* end confdefs.h. */
19218 #include <$ac_header>
19219 _ACEOF
19220 if { (ac_try="$ac_cpp conftest.$ac_ext"
19221 case "(($ac_try" in
19222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19223 *) ac_try_echo=$ac_try;;
19224 esac
19225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19226 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19227 ac_status=$?
19228 grep -v '^ *+' conftest.er1 >conftest.err
19229 rm -f conftest.er1
19230 cat conftest.err >&5
19231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232 (exit $ac_status); } >/dev/null && {
19233 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19234 test ! -s conftest.err
19235 }; then
19236 ac_header_preproc=yes
19237 else
19238 echo "$as_me: failed program was:" >&5
19239 sed 's/^/| /' conftest.$ac_ext >&5
19241 ac_header_preproc=no
19244 rm -f conftest.err conftest.$ac_ext
19245 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19246 echo "${ECHO_T}$ac_header_preproc" >&6; }
19248 # So? What about this header?
19249 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19250 yes:no: )
19251 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19252 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19254 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19255 ac_header_preproc=yes
19257 no:yes:* )
19258 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19259 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19260 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19261 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19262 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19263 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19264 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19265 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19267 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19268 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19269 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19272 esac
19273 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19276 echo $ECHO_N "(cached) $ECHO_C" >&6
19277 else
19278 eval "$as_ac_Header=\$ac_header_preproc"
19280 ac_res=`eval echo '${'$as_ac_Header'}'`
19281 { echo "$as_me:$LINENO: result: $ac_res" >&5
19282 echo "${ECHO_T}$ac_res" >&6; }
19285 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19286 cat >>confdefs.h <<_ACEOF
19287 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19288 _ACEOF
19290 else
19291 GETOPT_H=getopt.h
19294 done
19296 if test -z "$GETOPT_H"; then
19298 for ac_func in getopt_long_only
19300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19301 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19303 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19304 echo $ECHO_N "(cached) $ECHO_C" >&6
19305 else
19306 cat >conftest.$ac_ext <<_ACEOF
19307 /* confdefs.h. */
19308 _ACEOF
19309 cat confdefs.h >>conftest.$ac_ext
19310 cat >>conftest.$ac_ext <<_ACEOF
19311 /* end confdefs.h. */
19312 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19314 #define $ac_func innocuous_$ac_func
19316 /* System header to define __stub macros and hopefully few prototypes,
19317 which can conflict with char $ac_func (); below.
19318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19319 <limits.h> exists even on freestanding compilers. */
19321 #ifdef __STDC__
19322 # include <limits.h>
19323 #else
19324 # include <assert.h>
19325 #endif
19327 #undef $ac_func
19329 /* Override any GCC internal prototype to avoid an error.
19330 Use char because int might match the return type of a GCC
19331 builtin and then its argument prototype would still apply. */
19332 #ifdef __cplusplus
19333 extern "C"
19334 #endif
19335 char $ac_func ();
19336 /* The GNU C library defines this for functions which it implements
19337 to always fail with ENOSYS. Some functions are actually named
19338 something starting with __ and the normal name is an alias. */
19339 #if defined __stub_$ac_func || defined __stub___$ac_func
19340 choke me
19341 #endif
19344 main ()
19346 return $ac_func ();
19348 return 0;
19350 _ACEOF
19351 rm -f conftest.$ac_objext conftest$ac_exeext
19352 if { (ac_try="$ac_link"
19353 case "(($ac_try" in
19354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19355 *) ac_try_echo=$ac_try;;
19356 esac
19357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19358 (eval "$ac_link") 2>conftest.er1
19359 ac_status=$?
19360 grep -v '^ *+' conftest.er1 >conftest.err
19361 rm -f conftest.er1
19362 cat conftest.err >&5
19363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364 (exit $ac_status); } && {
19365 test -z "$ac_c_werror_flag" ||
19366 test ! -s conftest.err
19367 } && test -s conftest$ac_exeext &&
19368 $as_test_x conftest$ac_exeext; then
19369 eval "$as_ac_var=yes"
19370 else
19371 echo "$as_me: failed program was:" >&5
19372 sed 's/^/| /' conftest.$ac_ext >&5
19374 eval "$as_ac_var=no"
19377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19378 conftest$ac_exeext conftest.$ac_ext
19380 ac_res=`eval echo '${'$as_ac_var'}'`
19381 { echo "$as_me:$LINENO: result: $ac_res" >&5
19382 echo "${ECHO_T}$ac_res" >&6; }
19383 if test `eval echo '${'$as_ac_var'}'` = yes; then
19384 cat >>confdefs.h <<_ACEOF
19385 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19386 _ACEOF
19388 else
19389 GETOPT_H=getopt.h
19391 done
19395 if test -z "$GETOPT_H"; then
19396 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
19397 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
19398 if test "${ac_cv_have_decl_optreset+set}" = set; then
19399 echo $ECHO_N "(cached) $ECHO_C" >&6
19400 else
19401 cat >conftest.$ac_ext <<_ACEOF
19402 /* confdefs.h. */
19403 _ACEOF
19404 cat confdefs.h >>conftest.$ac_ext
19405 cat >>conftest.$ac_ext <<_ACEOF
19406 /* end confdefs.h. */
19407 #include <getopt.h>
19410 main ()
19412 #ifndef optreset
19413 (void) optreset;
19414 #endif
19417 return 0;
19419 _ACEOF
19420 rm -f conftest.$ac_objext
19421 if { (ac_try="$ac_compile"
19422 case "(($ac_try" in
19423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19424 *) ac_try_echo=$ac_try;;
19425 esac
19426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19427 (eval "$ac_compile") 2>conftest.er1
19428 ac_status=$?
19429 grep -v '^ *+' conftest.er1 >conftest.err
19430 rm -f conftest.er1
19431 cat conftest.err >&5
19432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433 (exit $ac_status); } && {
19434 test -z "$ac_c_werror_flag" ||
19435 test ! -s conftest.err
19436 } && test -s conftest.$ac_objext; then
19437 ac_cv_have_decl_optreset=yes
19438 else
19439 echo "$as_me: failed program was:" >&5
19440 sed 's/^/| /' conftest.$ac_ext >&5
19442 ac_cv_have_decl_optreset=no
19445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19447 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
19448 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19449 if test $ac_cv_have_decl_optreset = yes; then
19450 GETOPT_H=getopt.h
19455 if test -z "$GETOPT_H"; then
19456 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
19457 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
19458 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19459 echo $ECHO_N "(cached) $ECHO_C" >&6
19460 else
19461 if test "$cross_compiling" = yes; then
19462 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
19463 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
19464 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19465 echo $ECHO_N "(cached) $ECHO_C" >&6
19466 else
19467 cat >conftest.$ac_ext <<_ACEOF
19468 /* confdefs.h. */
19469 _ACEOF
19470 cat confdefs.h >>conftest.$ac_ext
19471 cat >>conftest.$ac_ext <<_ACEOF
19472 /* end confdefs.h. */
19473 #include <getopt.h>
19476 main ()
19478 #ifndef getopt_clip
19479 (void) getopt_clip;
19480 #endif
19483 return 0;
19485 _ACEOF
19486 rm -f conftest.$ac_objext
19487 if { (ac_try="$ac_compile"
19488 case "(($ac_try" in
19489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19490 *) ac_try_echo=$ac_try;;
19491 esac
19492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19493 (eval "$ac_compile") 2>conftest.er1
19494 ac_status=$?
19495 grep -v '^ *+' conftest.er1 >conftest.err
19496 rm -f conftest.er1
19497 cat conftest.err >&5
19498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499 (exit $ac_status); } && {
19500 test -z "$ac_c_werror_flag" ||
19501 test ! -s conftest.err
19502 } && test -s conftest.$ac_objext; then
19503 ac_cv_have_decl_getopt_clip=yes
19504 else
19505 echo "$as_me: failed program was:" >&5
19506 sed 's/^/| /' conftest.$ac_ext >&5
19508 ac_cv_have_decl_getopt_clip=no
19511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19513 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
19514 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19515 if test $ac_cv_have_decl_getopt_clip = yes; then
19516 gl_cv_func_gnu_getopt=no
19517 else
19518 gl_cv_func_gnu_getopt=yes
19521 else
19522 cat >conftest.$ac_ext <<_ACEOF
19523 /* confdefs.h. */
19524 _ACEOF
19525 cat confdefs.h >>conftest.$ac_ext
19526 cat >>conftest.$ac_ext <<_ACEOF
19527 /* end confdefs.h. */
19528 #include <getopt.h>
19530 main ()
19533 char *myargv[3];
19534 myargv[0] = "conftest";
19535 myargv[1] = "-+";
19536 myargv[2] = 0;
19537 return getopt (2, myargv, "+a") != '?';
19540 return 0;
19542 _ACEOF
19543 rm -f conftest$ac_exeext
19544 if { (ac_try="$ac_link"
19545 case "(($ac_try" in
19546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19547 *) ac_try_echo=$ac_try;;
19548 esac
19549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19550 (eval "$ac_link") 2>&5
19551 ac_status=$?
19552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19554 { (case "(($ac_try" in
19555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19556 *) ac_try_echo=$ac_try;;
19557 esac
19558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19559 (eval "$ac_try") 2>&5
19560 ac_status=$?
19561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562 (exit $ac_status); }; }; then
19563 gl_cv_func_gnu_getopt=yes
19564 else
19565 echo "$as_me: program exited with status $ac_status" >&5
19566 echo "$as_me: failed program was:" >&5
19567 sed 's/^/| /' conftest.$ac_ext >&5
19569 ( exit $ac_status )
19570 gl_cv_func_gnu_getopt=no
19572 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19577 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
19578 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19579 if test "$gl_cv_func_gnu_getopt" = "no"; then
19580 GETOPT_H=getopt.h
19586 if test -n "$GETOPT_H"; then
19589 GETOPT_H=getopt.h
19591 cat >>confdefs.h <<\_ACEOF
19592 #define __GETOPT_PREFIX rpl_
19593 _ACEOF
19598 GETOPTOBJS='getopt.o getopt1.o'
19605 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
19606 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
19607 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19608 echo $ECHO_N "(cached) $ECHO_C" >&6
19609 else
19610 # Use it with a single arg.
19611 cat >conftest.$ac_ext <<_ACEOF
19612 /* confdefs.h. */
19613 _ACEOF
19614 cat confdefs.h >>conftest.$ac_ext
19615 cat >>conftest.$ac_ext <<_ACEOF
19616 /* end confdefs.h. */
19617 $ac_includes_default
19619 main ()
19621 getpgrp (0);
19623 return 0;
19625 _ACEOF
19626 rm -f conftest.$ac_objext
19627 if { (ac_try="$ac_compile"
19628 case "(($ac_try" in
19629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19630 *) ac_try_echo=$ac_try;;
19631 esac
19632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19633 (eval "$ac_compile") 2>conftest.er1
19634 ac_status=$?
19635 grep -v '^ *+' conftest.er1 >conftest.err
19636 rm -f conftest.er1
19637 cat conftest.err >&5
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); } && {
19640 test -z "$ac_c_werror_flag" ||
19641 test ! -s conftest.err
19642 } && test -s conftest.$ac_objext; then
19643 ac_cv_func_getpgrp_void=no
19644 else
19645 echo "$as_me: failed program was:" >&5
19646 sed 's/^/| /' conftest.$ac_ext >&5
19648 ac_cv_func_getpgrp_void=yes
19651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19654 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
19655 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19656 if test $ac_cv_func_getpgrp_void = yes; then
19658 cat >>confdefs.h <<\_ACEOF
19659 #define GETPGRP_VOID 1
19660 _ACEOF
19666 for ac_func in strftime
19668 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19669 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19670 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19671 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19672 echo $ECHO_N "(cached) $ECHO_C" >&6
19673 else
19674 cat >conftest.$ac_ext <<_ACEOF
19675 /* confdefs.h. */
19676 _ACEOF
19677 cat confdefs.h >>conftest.$ac_ext
19678 cat >>conftest.$ac_ext <<_ACEOF
19679 /* end confdefs.h. */
19680 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19681 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19682 #define $ac_func innocuous_$ac_func
19684 /* System header to define __stub macros and hopefully few prototypes,
19685 which can conflict with char $ac_func (); below.
19686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19687 <limits.h> exists even on freestanding compilers. */
19689 #ifdef __STDC__
19690 # include <limits.h>
19691 #else
19692 # include <assert.h>
19693 #endif
19695 #undef $ac_func
19697 /* Override any GCC internal prototype to avoid an error.
19698 Use char because int might match the return type of a GCC
19699 builtin and then its argument prototype would still apply. */
19700 #ifdef __cplusplus
19701 extern "C"
19702 #endif
19703 char $ac_func ();
19704 /* The GNU C library defines this for functions which it implements
19705 to always fail with ENOSYS. Some functions are actually named
19706 something starting with __ and the normal name is an alias. */
19707 #if defined __stub_$ac_func || defined __stub___$ac_func
19708 choke me
19709 #endif
19712 main ()
19714 return $ac_func ();
19716 return 0;
19718 _ACEOF
19719 rm -f conftest.$ac_objext conftest$ac_exeext
19720 if { (ac_try="$ac_link"
19721 case "(($ac_try" in
19722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19723 *) ac_try_echo=$ac_try;;
19724 esac
19725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19726 (eval "$ac_link") 2>conftest.er1
19727 ac_status=$?
19728 grep -v '^ *+' conftest.er1 >conftest.err
19729 rm -f conftest.er1
19730 cat conftest.err >&5
19731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19732 (exit $ac_status); } && {
19733 test -z "$ac_c_werror_flag" ||
19734 test ! -s conftest.err
19735 } && test -s conftest$ac_exeext &&
19736 $as_test_x conftest$ac_exeext; then
19737 eval "$as_ac_var=yes"
19738 else
19739 echo "$as_me: failed program was:" >&5
19740 sed 's/^/| /' conftest.$ac_ext >&5
19742 eval "$as_ac_var=no"
19745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19746 conftest$ac_exeext conftest.$ac_ext
19748 ac_res=`eval echo '${'$as_ac_var'}'`
19749 { echo "$as_me:$LINENO: result: $ac_res" >&5
19750 echo "${ECHO_T}$ac_res" >&6; }
19751 if test `eval echo '${'$as_ac_var'}'` = yes; then
19752 cat >>confdefs.h <<_ACEOF
19753 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19754 _ACEOF
19756 else
19757 # strftime is in -lintl on SCO UNIX.
19758 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19759 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
19760 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19761 echo $ECHO_N "(cached) $ECHO_C" >&6
19762 else
19763 ac_check_lib_save_LIBS=$LIBS
19764 LIBS="-lintl $LIBS"
19765 cat >conftest.$ac_ext <<_ACEOF
19766 /* confdefs.h. */
19767 _ACEOF
19768 cat confdefs.h >>conftest.$ac_ext
19769 cat >>conftest.$ac_ext <<_ACEOF
19770 /* end confdefs.h. */
19772 /* Override any GCC internal prototype to avoid an error.
19773 Use char because int might match the return type of a GCC
19774 builtin and then its argument prototype would still apply. */
19775 #ifdef __cplusplus
19776 extern "C"
19777 #endif
19778 char strftime ();
19780 main ()
19782 return strftime ();
19784 return 0;
19786 _ACEOF
19787 rm -f conftest.$ac_objext conftest$ac_exeext
19788 if { (ac_try="$ac_link"
19789 case "(($ac_try" in
19790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19791 *) ac_try_echo=$ac_try;;
19792 esac
19793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19794 (eval "$ac_link") 2>conftest.er1
19795 ac_status=$?
19796 grep -v '^ *+' conftest.er1 >conftest.err
19797 rm -f conftest.er1
19798 cat conftest.err >&5
19799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800 (exit $ac_status); } && {
19801 test -z "$ac_c_werror_flag" ||
19802 test ! -s conftest.err
19803 } && test -s conftest$ac_exeext &&
19804 $as_test_x conftest$ac_exeext; then
19805 ac_cv_lib_intl_strftime=yes
19806 else
19807 echo "$as_me: failed program was:" >&5
19808 sed 's/^/| /' conftest.$ac_ext >&5
19810 ac_cv_lib_intl_strftime=no
19813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19814 conftest$ac_exeext conftest.$ac_ext
19815 LIBS=$ac_check_lib_save_LIBS
19817 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19818 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19819 if test $ac_cv_lib_intl_strftime = yes; then
19820 cat >>confdefs.h <<\_ACEOF
19821 #define HAVE_STRFTIME 1
19822 _ACEOF
19824 LIBS="-lintl $LIBS"
19828 done
19831 # UNIX98 PTYs.
19833 for ac_func in grantpt
19835 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19836 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19837 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19838 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19839 echo $ECHO_N "(cached) $ECHO_C" >&6
19840 else
19841 cat >conftest.$ac_ext <<_ACEOF
19842 /* confdefs.h. */
19843 _ACEOF
19844 cat confdefs.h >>conftest.$ac_ext
19845 cat >>conftest.$ac_ext <<_ACEOF
19846 /* end confdefs.h. */
19847 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19848 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19849 #define $ac_func innocuous_$ac_func
19851 /* System header to define __stub macros and hopefully few prototypes,
19852 which can conflict with char $ac_func (); below.
19853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19854 <limits.h> exists even on freestanding compilers. */
19856 #ifdef __STDC__
19857 # include <limits.h>
19858 #else
19859 # include <assert.h>
19860 #endif
19862 #undef $ac_func
19864 /* Override any GCC internal prototype to avoid an error.
19865 Use char because int might match the return type of a GCC
19866 builtin and then its argument prototype would still apply. */
19867 #ifdef __cplusplus
19868 extern "C"
19869 #endif
19870 char $ac_func ();
19871 /* The GNU C library defines this for functions which it implements
19872 to always fail with ENOSYS. Some functions are actually named
19873 something starting with __ and the normal name is an alias. */
19874 #if defined __stub_$ac_func || defined __stub___$ac_func
19875 choke me
19876 #endif
19879 main ()
19881 return $ac_func ();
19883 return 0;
19885 _ACEOF
19886 rm -f conftest.$ac_objext conftest$ac_exeext
19887 if { (ac_try="$ac_link"
19888 case "(($ac_try" in
19889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19890 *) ac_try_echo=$ac_try;;
19891 esac
19892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19893 (eval "$ac_link") 2>conftest.er1
19894 ac_status=$?
19895 grep -v '^ *+' conftest.er1 >conftest.err
19896 rm -f conftest.er1
19897 cat conftest.err >&5
19898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899 (exit $ac_status); } && {
19900 test -z "$ac_c_werror_flag" ||
19901 test ! -s conftest.err
19902 } && test -s conftest$ac_exeext &&
19903 $as_test_x conftest$ac_exeext; then
19904 eval "$as_ac_var=yes"
19905 else
19906 echo "$as_me: failed program was:" >&5
19907 sed 's/^/| /' conftest.$ac_ext >&5
19909 eval "$as_ac_var=no"
19912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19913 conftest$ac_exeext conftest.$ac_ext
19915 ac_res=`eval echo '${'$as_ac_var'}'`
19916 { echo "$as_me:$LINENO: result: $ac_res" >&5
19917 echo "${ECHO_T}$ac_res" >&6; }
19918 if test `eval echo '${'$as_ac_var'}'` = yes; then
19919 cat >>confdefs.h <<_ACEOF
19920 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19921 _ACEOF
19924 done
19927 # PTY-related GNU extensions.
19929 for ac_func in getpt
19931 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19932 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19933 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19934 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19935 echo $ECHO_N "(cached) $ECHO_C" >&6
19936 else
19937 cat >conftest.$ac_ext <<_ACEOF
19938 /* confdefs.h. */
19939 _ACEOF
19940 cat confdefs.h >>conftest.$ac_ext
19941 cat >>conftest.$ac_ext <<_ACEOF
19942 /* end confdefs.h. */
19943 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19945 #define $ac_func innocuous_$ac_func
19947 /* System header to define __stub macros and hopefully few prototypes,
19948 which can conflict with char $ac_func (); below.
19949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19950 <limits.h> exists even on freestanding compilers. */
19952 #ifdef __STDC__
19953 # include <limits.h>
19954 #else
19955 # include <assert.h>
19956 #endif
19958 #undef $ac_func
19960 /* Override any GCC internal prototype to avoid an error.
19961 Use char because int might match the return type of a GCC
19962 builtin and then its argument prototype would still apply. */
19963 #ifdef __cplusplus
19964 extern "C"
19965 #endif
19966 char $ac_func ();
19967 /* The GNU C library defines this for functions which it implements
19968 to always fail with ENOSYS. Some functions are actually named
19969 something starting with __ and the normal name is an alias. */
19970 #if defined __stub_$ac_func || defined __stub___$ac_func
19971 choke me
19972 #endif
19975 main ()
19977 return $ac_func ();
19979 return 0;
19981 _ACEOF
19982 rm -f conftest.$ac_objext conftest$ac_exeext
19983 if { (ac_try="$ac_link"
19984 case "(($ac_try" in
19985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19986 *) ac_try_echo=$ac_try;;
19987 esac
19988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19989 (eval "$ac_link") 2>conftest.er1
19990 ac_status=$?
19991 grep -v '^ *+' conftest.er1 >conftest.err
19992 rm -f conftest.er1
19993 cat conftest.err >&5
19994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995 (exit $ac_status); } && {
19996 test -z "$ac_c_werror_flag" ||
19997 test ! -s conftest.err
19998 } && test -s conftest$ac_exeext &&
19999 $as_test_x conftest$ac_exeext; then
20000 eval "$as_ac_var=yes"
20001 else
20002 echo "$as_me: failed program was:" >&5
20003 sed 's/^/| /' conftest.$ac_ext >&5
20005 eval "$as_ac_var=no"
20008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20009 conftest$ac_exeext conftest.$ac_ext
20011 ac_res=`eval echo '${'$as_ac_var'}'`
20012 { echo "$as_me:$LINENO: result: $ac_res" >&5
20013 echo "${ECHO_T}$ac_res" >&6; }
20014 if test `eval echo '${'$as_ac_var'}'` = yes; then
20015 cat >>confdefs.h <<_ACEOF
20016 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20017 _ACEOF
20020 done
20023 # Check this now, so that we will NOT find the above functions in ncurses.
20024 # That is because we have not set up to link ncurses in lib-src.
20025 # It's better to believe a function is not available
20026 # than to expect to find it in ncurses.
20028 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
20029 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
20030 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
20031 echo $ECHO_N "(cached) $ECHO_C" >&6
20032 else
20033 ac_check_lib_save_LIBS=$LIBS
20034 LIBS="-lncurses $LIBS"
20035 cat >conftest.$ac_ext <<_ACEOF
20036 /* confdefs.h. */
20037 _ACEOF
20038 cat confdefs.h >>conftest.$ac_ext
20039 cat >>conftest.$ac_ext <<_ACEOF
20040 /* end confdefs.h. */
20042 /* Override any GCC internal prototype to avoid an error.
20043 Use char because int might match the return type of a GCC
20044 builtin and then its argument prototype would still apply. */
20045 #ifdef __cplusplus
20046 extern "C"
20047 #endif
20048 char tparm ();
20050 main ()
20052 return tparm ();
20054 return 0;
20056 _ACEOF
20057 rm -f conftest.$ac_objext conftest$ac_exeext
20058 if { (ac_try="$ac_link"
20059 case "(($ac_try" in
20060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20061 *) ac_try_echo=$ac_try;;
20062 esac
20063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20064 (eval "$ac_link") 2>conftest.er1
20065 ac_status=$?
20066 grep -v '^ *+' conftest.er1 >conftest.err
20067 rm -f conftest.er1
20068 cat conftest.err >&5
20069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20070 (exit $ac_status); } && {
20071 test -z "$ac_c_werror_flag" ||
20072 test ! -s conftest.err
20073 } && test -s conftest$ac_exeext &&
20074 $as_test_x conftest$ac_exeext; then
20075 ac_cv_lib_ncurses_tparm=yes
20076 else
20077 echo "$as_me: failed program was:" >&5
20078 sed 's/^/| /' conftest.$ac_ext >&5
20080 ac_cv_lib_ncurses_tparm=no
20083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20084 conftest$ac_exeext conftest.$ac_ext
20085 LIBS=$ac_check_lib_save_LIBS
20087 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
20088 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
20089 if test $ac_cv_lib_ncurses_tparm = yes; then
20090 cat >>confdefs.h <<_ACEOF
20091 #define HAVE_LIBNCURSES 1
20092 _ACEOF
20094 LIBS="-lncurses $LIBS"
20099 # Do we have res_init, for detecting changes in /etc/resolv.conf?
20101 resolv=no
20102 cat >conftest.$ac_ext <<_ACEOF
20103 /* confdefs.h. */
20104 _ACEOF
20105 cat confdefs.h >>conftest.$ac_ext
20106 cat >>conftest.$ac_ext <<_ACEOF
20107 /* end confdefs.h. */
20108 #include <netinet/in.h>
20109 #include <arpa/nameser.h>
20110 #include <resolv.h>
20112 main ()
20114 return res_init();
20116 return 0;
20118 _ACEOF
20119 rm -f conftest.$ac_objext conftest$ac_exeext
20120 if { (ac_try="$ac_link"
20121 case "(($ac_try" in
20122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20123 *) ac_try_echo=$ac_try;;
20124 esac
20125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20126 (eval "$ac_link") 2>conftest.er1
20127 ac_status=$?
20128 grep -v '^ *+' conftest.er1 >conftest.err
20129 rm -f conftest.er1
20130 cat conftest.err >&5
20131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20132 (exit $ac_status); } && {
20133 test -z "$ac_c_werror_flag" ||
20134 test ! -s conftest.err
20135 } && test -s conftest$ac_exeext &&
20136 $as_test_x conftest$ac_exeext; then
20137 have_res_init=yes
20138 else
20139 echo "$as_me: failed program was:" >&5
20140 sed 's/^/| /' conftest.$ac_ext >&5
20142 have_res_init=no
20145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20146 conftest$ac_exeext conftest.$ac_ext
20147 if test "$have_res_init" = no; then
20148 OLIBS="$LIBS"
20149 LIBS="$LIBS -lresolv"
20150 { echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
20151 echo $ECHO_N "checking for res_init with -lresolv... $ECHO_C" >&6; }
20152 cat >conftest.$ac_ext <<_ACEOF
20153 /* confdefs.h. */
20154 _ACEOF
20155 cat confdefs.h >>conftest.$ac_ext
20156 cat >>conftest.$ac_ext <<_ACEOF
20157 /* end confdefs.h. */
20158 #include <netinet/in.h>
20159 #include <arpa/nameser.h>
20160 #include <resolv.h>
20162 main ()
20164 return res_init();
20166 return 0;
20168 _ACEOF
20169 rm -f conftest.$ac_objext conftest$ac_exeext
20170 if { (ac_try="$ac_link"
20171 case "(($ac_try" in
20172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20173 *) ac_try_echo=$ac_try;;
20174 esac
20175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20176 (eval "$ac_link") 2>conftest.er1
20177 ac_status=$?
20178 grep -v '^ *+' conftest.er1 >conftest.err
20179 rm -f conftest.er1
20180 cat conftest.err >&5
20181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182 (exit $ac_status); } && {
20183 test -z "$ac_c_werror_flag" ||
20184 test ! -s conftest.err
20185 } && test -s conftest$ac_exeext &&
20186 $as_test_x conftest$ac_exeext; then
20187 have_res_init=yes
20188 else
20189 echo "$as_me: failed program was:" >&5
20190 sed 's/^/| /' conftest.$ac_ext >&5
20192 have_res_init=no
20195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20196 conftest$ac_exeext conftest.$ac_ext
20197 { echo "$as_me:$LINENO: result: $have_res_init" >&5
20198 echo "${ECHO_T}$have_res_init" >&6; }
20199 if test "$have_res_init" = yes ; then
20200 resolv=yes
20202 LIBS="$OLIBS"
20205 if test "$have_res_init" = yes; then
20207 cat >>confdefs.h <<\_ACEOF
20208 #define HAVE_RES_INIT 1
20209 _ACEOF
20213 # Do we need the Hesiod library to provide the support routines?
20214 if test "$with_hesiod" = yes ; then
20215 # Don't set $LIBS here -- see comments above.
20216 { echo "$as_me:$LINENO: checking for res_send" >&5
20217 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
20218 if test "${ac_cv_func_res_send+set}" = set; then
20219 echo $ECHO_N "(cached) $ECHO_C" >&6
20220 else
20221 cat >conftest.$ac_ext <<_ACEOF
20222 /* confdefs.h. */
20223 _ACEOF
20224 cat confdefs.h >>conftest.$ac_ext
20225 cat >>conftest.$ac_ext <<_ACEOF
20226 /* end confdefs.h. */
20227 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
20228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20229 #define res_send innocuous_res_send
20231 /* System header to define __stub macros and hopefully few prototypes,
20232 which can conflict with char res_send (); below.
20233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20234 <limits.h> exists even on freestanding compilers. */
20236 #ifdef __STDC__
20237 # include <limits.h>
20238 #else
20239 # include <assert.h>
20240 #endif
20242 #undef res_send
20244 /* Override any GCC internal prototype to avoid an error.
20245 Use char because int might match the return type of a GCC
20246 builtin and then its argument prototype would still apply. */
20247 #ifdef __cplusplus
20248 extern "C"
20249 #endif
20250 char res_send ();
20251 /* The GNU C library defines this for functions which it implements
20252 to always fail with ENOSYS. Some functions are actually named
20253 something starting with __ and the normal name is an alias. */
20254 #if defined __stub_res_send || defined __stub___res_send
20255 choke me
20256 #endif
20259 main ()
20261 return res_send ();
20263 return 0;
20265 _ACEOF
20266 rm -f conftest.$ac_objext conftest$ac_exeext
20267 if { (ac_try="$ac_link"
20268 case "(($ac_try" in
20269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20270 *) ac_try_echo=$ac_try;;
20271 esac
20272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20273 (eval "$ac_link") 2>conftest.er1
20274 ac_status=$?
20275 grep -v '^ *+' conftest.er1 >conftest.err
20276 rm -f conftest.er1
20277 cat conftest.err >&5
20278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279 (exit $ac_status); } && {
20280 test -z "$ac_c_werror_flag" ||
20281 test ! -s conftest.err
20282 } && test -s conftest$ac_exeext &&
20283 $as_test_x conftest$ac_exeext; then
20284 ac_cv_func_res_send=yes
20285 else
20286 echo "$as_me: failed program was:" >&5
20287 sed 's/^/| /' conftest.$ac_ext >&5
20289 ac_cv_func_res_send=no
20292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20293 conftest$ac_exeext conftest.$ac_ext
20295 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
20296 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
20297 if test $ac_cv_func_res_send = yes; then
20299 else
20300 { echo "$as_me:$LINENO: checking for __res_send" >&5
20301 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
20302 if test "${ac_cv_func___res_send+set}" = set; then
20303 echo $ECHO_N "(cached) $ECHO_C" >&6
20304 else
20305 cat >conftest.$ac_ext <<_ACEOF
20306 /* confdefs.h. */
20307 _ACEOF
20308 cat confdefs.h >>conftest.$ac_ext
20309 cat >>conftest.$ac_ext <<_ACEOF
20310 /* end confdefs.h. */
20311 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
20312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20313 #define __res_send innocuous___res_send
20315 /* System header to define __stub macros and hopefully few prototypes,
20316 which can conflict with char __res_send (); below.
20317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20318 <limits.h> exists even on freestanding compilers. */
20320 #ifdef __STDC__
20321 # include <limits.h>
20322 #else
20323 # include <assert.h>
20324 #endif
20326 #undef __res_send
20328 /* Override any GCC internal prototype to avoid an error.
20329 Use char because int might match the return type of a GCC
20330 builtin and then its argument prototype would still apply. */
20331 #ifdef __cplusplus
20332 extern "C"
20333 #endif
20334 char __res_send ();
20335 /* The GNU C library defines this for functions which it implements
20336 to always fail with ENOSYS. Some functions are actually named
20337 something starting with __ and the normal name is an alias. */
20338 #if defined __stub___res_send || defined __stub_____res_send
20339 choke me
20340 #endif
20343 main ()
20345 return __res_send ();
20347 return 0;
20349 _ACEOF
20350 rm -f conftest.$ac_objext conftest$ac_exeext
20351 if { (ac_try="$ac_link"
20352 case "(($ac_try" in
20353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20354 *) ac_try_echo=$ac_try;;
20355 esac
20356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20357 (eval "$ac_link") 2>conftest.er1
20358 ac_status=$?
20359 grep -v '^ *+' conftest.er1 >conftest.err
20360 rm -f conftest.er1
20361 cat conftest.err >&5
20362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363 (exit $ac_status); } && {
20364 test -z "$ac_c_werror_flag" ||
20365 test ! -s conftest.err
20366 } && test -s conftest$ac_exeext &&
20367 $as_test_x conftest$ac_exeext; then
20368 ac_cv_func___res_send=yes
20369 else
20370 echo "$as_me: failed program was:" >&5
20371 sed 's/^/| /' conftest.$ac_ext >&5
20373 ac_cv_func___res_send=no
20376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20377 conftest$ac_exeext conftest.$ac_ext
20379 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
20380 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
20381 if test $ac_cv_func___res_send = yes; then
20383 else
20384 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
20385 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
20386 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20387 echo $ECHO_N "(cached) $ECHO_C" >&6
20388 else
20389 ac_check_lib_save_LIBS=$LIBS
20390 LIBS="-lresolv $LIBS"
20391 cat >conftest.$ac_ext <<_ACEOF
20392 /* confdefs.h. */
20393 _ACEOF
20394 cat confdefs.h >>conftest.$ac_ext
20395 cat >>conftest.$ac_ext <<_ACEOF
20396 /* end confdefs.h. */
20398 /* Override any GCC internal prototype to avoid an error.
20399 Use char because int might match the return type of a GCC
20400 builtin and then its argument prototype would still apply. */
20401 #ifdef __cplusplus
20402 extern "C"
20403 #endif
20404 char res_send ();
20406 main ()
20408 return res_send ();
20410 return 0;
20412 _ACEOF
20413 rm -f conftest.$ac_objext conftest$ac_exeext
20414 if { (ac_try="$ac_link"
20415 case "(($ac_try" in
20416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20417 *) ac_try_echo=$ac_try;;
20418 esac
20419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20420 (eval "$ac_link") 2>conftest.er1
20421 ac_status=$?
20422 grep -v '^ *+' conftest.er1 >conftest.err
20423 rm -f conftest.er1
20424 cat conftest.err >&5
20425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426 (exit $ac_status); } && {
20427 test -z "$ac_c_werror_flag" ||
20428 test ! -s conftest.err
20429 } && test -s conftest$ac_exeext &&
20430 $as_test_x conftest$ac_exeext; then
20431 ac_cv_lib_resolv_res_send=yes
20432 else
20433 echo "$as_me: failed program was:" >&5
20434 sed 's/^/| /' conftest.$ac_ext >&5
20436 ac_cv_lib_resolv_res_send=no
20439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20440 conftest$ac_exeext conftest.$ac_ext
20441 LIBS=$ac_check_lib_save_LIBS
20443 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
20444 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20445 if test $ac_cv_lib_resolv_res_send = yes; then
20446 resolv=yes
20447 else
20448 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
20449 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
20450 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20451 echo $ECHO_N "(cached) $ECHO_C" >&6
20452 else
20453 ac_check_lib_save_LIBS=$LIBS
20454 LIBS="-lresolv $LIBS"
20455 cat >conftest.$ac_ext <<_ACEOF
20456 /* confdefs.h. */
20457 _ACEOF
20458 cat confdefs.h >>conftest.$ac_ext
20459 cat >>conftest.$ac_ext <<_ACEOF
20460 /* end confdefs.h. */
20462 /* Override any GCC internal prototype to avoid an error.
20463 Use char because int might match the return type of a GCC
20464 builtin and then its argument prototype would still apply. */
20465 #ifdef __cplusplus
20466 extern "C"
20467 #endif
20468 char __res_send ();
20470 main ()
20472 return __res_send ();
20474 return 0;
20476 _ACEOF
20477 rm -f conftest.$ac_objext conftest$ac_exeext
20478 if { (ac_try="$ac_link"
20479 case "(($ac_try" in
20480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20481 *) ac_try_echo=$ac_try;;
20482 esac
20483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20484 (eval "$ac_link") 2>conftest.er1
20485 ac_status=$?
20486 grep -v '^ *+' conftest.er1 >conftest.err
20487 rm -f conftest.er1
20488 cat conftest.err >&5
20489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490 (exit $ac_status); } && {
20491 test -z "$ac_c_werror_flag" ||
20492 test ! -s conftest.err
20493 } && test -s conftest$ac_exeext &&
20494 $as_test_x conftest$ac_exeext; then
20495 ac_cv_lib_resolv___res_send=yes
20496 else
20497 echo "$as_me: failed program was:" >&5
20498 sed 's/^/| /' conftest.$ac_ext >&5
20500 ac_cv_lib_resolv___res_send=no
20503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20504 conftest$ac_exeext conftest.$ac_ext
20505 LIBS=$ac_check_lib_save_LIBS
20507 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
20508 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20509 if test $ac_cv_lib_resolv___res_send = yes; then
20510 resolv=yes
20519 if test "$resolv" = yes ; then
20520 RESOLVLIB=-lresolv
20521 else
20522 RESOLVLIB=
20524 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
20525 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
20526 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20527 echo $ECHO_N "(cached) $ECHO_C" >&6
20528 else
20529 cat >conftest.$ac_ext <<_ACEOF
20530 /* confdefs.h. */
20531 _ACEOF
20532 cat confdefs.h >>conftest.$ac_ext
20533 cat >>conftest.$ac_ext <<_ACEOF
20534 /* end confdefs.h. */
20535 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20536 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20537 #define hes_getmailhost innocuous_hes_getmailhost
20539 /* System header to define __stub macros and hopefully few prototypes,
20540 which can conflict with char hes_getmailhost (); below.
20541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20542 <limits.h> exists even on freestanding compilers. */
20544 #ifdef __STDC__
20545 # include <limits.h>
20546 #else
20547 # include <assert.h>
20548 #endif
20550 #undef hes_getmailhost
20552 /* Override any GCC internal prototype to avoid an error.
20553 Use char because int might match the return type of a GCC
20554 builtin and then its argument prototype would still apply. */
20555 #ifdef __cplusplus
20556 extern "C"
20557 #endif
20558 char hes_getmailhost ();
20559 /* The GNU C library defines this for functions which it implements
20560 to always fail with ENOSYS. Some functions are actually named
20561 something starting with __ and the normal name is an alias. */
20562 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20563 choke me
20564 #endif
20567 main ()
20569 return hes_getmailhost ();
20571 return 0;
20573 _ACEOF
20574 rm -f conftest.$ac_objext conftest$ac_exeext
20575 if { (ac_try="$ac_link"
20576 case "(($ac_try" in
20577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20578 *) ac_try_echo=$ac_try;;
20579 esac
20580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20581 (eval "$ac_link") 2>conftest.er1
20582 ac_status=$?
20583 grep -v '^ *+' conftest.er1 >conftest.err
20584 rm -f conftest.er1
20585 cat conftest.err >&5
20586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587 (exit $ac_status); } && {
20588 test -z "$ac_c_werror_flag" ||
20589 test ! -s conftest.err
20590 } && test -s conftest$ac_exeext &&
20591 $as_test_x conftest$ac_exeext; then
20592 ac_cv_func_hes_getmailhost=yes
20593 else
20594 echo "$as_me: failed program was:" >&5
20595 sed 's/^/| /' conftest.$ac_ext >&5
20597 ac_cv_func_hes_getmailhost=no
20600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20601 conftest$ac_exeext conftest.$ac_ext
20603 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
20604 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20605 if test $ac_cv_func_hes_getmailhost = yes; then
20607 else
20608 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
20609 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
20610 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20611 echo $ECHO_N "(cached) $ECHO_C" >&6
20612 else
20613 ac_check_lib_save_LIBS=$LIBS
20614 LIBS="-lhesiod $RESOLVLIB $LIBS"
20615 cat >conftest.$ac_ext <<_ACEOF
20616 /* confdefs.h. */
20617 _ACEOF
20618 cat confdefs.h >>conftest.$ac_ext
20619 cat >>conftest.$ac_ext <<_ACEOF
20620 /* end confdefs.h. */
20622 /* Override any GCC internal prototype to avoid an error.
20623 Use char because int might match the return type of a GCC
20624 builtin and then its argument prototype would still apply. */
20625 #ifdef __cplusplus
20626 extern "C"
20627 #endif
20628 char hes_getmailhost ();
20630 main ()
20632 return hes_getmailhost ();
20634 return 0;
20636 _ACEOF
20637 rm -f conftest.$ac_objext conftest$ac_exeext
20638 if { (ac_try="$ac_link"
20639 case "(($ac_try" in
20640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20641 *) ac_try_echo=$ac_try;;
20642 esac
20643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20644 (eval "$ac_link") 2>conftest.er1
20645 ac_status=$?
20646 grep -v '^ *+' conftest.er1 >conftest.err
20647 rm -f conftest.er1
20648 cat conftest.err >&5
20649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20650 (exit $ac_status); } && {
20651 test -z "$ac_c_werror_flag" ||
20652 test ! -s conftest.err
20653 } && test -s conftest$ac_exeext &&
20654 $as_test_x conftest$ac_exeext; then
20655 ac_cv_lib_hesiod_hes_getmailhost=yes
20656 else
20657 echo "$as_me: failed program was:" >&5
20658 sed 's/^/| /' conftest.$ac_ext >&5
20660 ac_cv_lib_hesiod_hes_getmailhost=no
20663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20664 conftest$ac_exeext conftest.$ac_ext
20665 LIBS=$ac_check_lib_save_LIBS
20667 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20668 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20669 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20671 cat >>confdefs.h <<\_ACEOF
20672 #define HAVE_LIBHESIOD 1
20673 _ACEOF
20675 else
20683 # Do we need libresolv (due to res_init or Hesiod)?
20684 if test "$resolv" = yes ; then
20686 cat >>confdefs.h <<\_ACEOF
20687 #define HAVE_LIBRESOLV 1
20688 _ACEOF
20692 # These tell us which Kerberos-related libraries to use.
20693 if test "${with_kerberos+set}" = set; then
20695 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
20696 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
20697 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20698 echo $ECHO_N "(cached) $ECHO_C" >&6
20699 else
20700 ac_check_lib_save_LIBS=$LIBS
20701 LIBS="-lcom_err $LIBS"
20702 cat >conftest.$ac_ext <<_ACEOF
20703 /* confdefs.h. */
20704 _ACEOF
20705 cat confdefs.h >>conftest.$ac_ext
20706 cat >>conftest.$ac_ext <<_ACEOF
20707 /* end confdefs.h. */
20709 /* Override any GCC internal prototype to avoid an error.
20710 Use char because int might match the return type of a GCC
20711 builtin and then its argument prototype would still apply. */
20712 #ifdef __cplusplus
20713 extern "C"
20714 #endif
20715 char com_err ();
20717 main ()
20719 return com_err ();
20721 return 0;
20723 _ACEOF
20724 rm -f conftest.$ac_objext conftest$ac_exeext
20725 if { (ac_try="$ac_link"
20726 case "(($ac_try" in
20727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20728 *) ac_try_echo=$ac_try;;
20729 esac
20730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20731 (eval "$ac_link") 2>conftest.er1
20732 ac_status=$?
20733 grep -v '^ *+' conftest.er1 >conftest.err
20734 rm -f conftest.er1
20735 cat conftest.err >&5
20736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20737 (exit $ac_status); } && {
20738 test -z "$ac_c_werror_flag" ||
20739 test ! -s conftest.err
20740 } && test -s conftest$ac_exeext &&
20741 $as_test_x conftest$ac_exeext; then
20742 ac_cv_lib_com_err_com_err=yes
20743 else
20744 echo "$as_me: failed program was:" >&5
20745 sed 's/^/| /' conftest.$ac_ext >&5
20747 ac_cv_lib_com_err_com_err=no
20750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20751 conftest$ac_exeext conftest.$ac_ext
20752 LIBS=$ac_check_lib_save_LIBS
20754 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
20755 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20756 if test $ac_cv_lib_com_err_com_err = yes; then
20757 cat >>confdefs.h <<_ACEOF
20758 #define HAVE_LIBCOM_ERR 1
20759 _ACEOF
20761 LIBS="-lcom_err $LIBS"
20766 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
20767 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
20768 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20769 echo $ECHO_N "(cached) $ECHO_C" >&6
20770 else
20771 ac_check_lib_save_LIBS=$LIBS
20772 LIBS="-lk5crypto $LIBS"
20773 cat >conftest.$ac_ext <<_ACEOF
20774 /* confdefs.h. */
20775 _ACEOF
20776 cat confdefs.h >>conftest.$ac_ext
20777 cat >>conftest.$ac_ext <<_ACEOF
20778 /* end confdefs.h. */
20780 /* Override any GCC internal prototype to avoid an error.
20781 Use char because int might match the return type of a GCC
20782 builtin and then its argument prototype would still apply. */
20783 #ifdef __cplusplus
20784 extern "C"
20785 #endif
20786 char mit_des_cbc_encrypt ();
20788 main ()
20790 return mit_des_cbc_encrypt ();
20792 return 0;
20794 _ACEOF
20795 rm -f conftest.$ac_objext conftest$ac_exeext
20796 if { (ac_try="$ac_link"
20797 case "(($ac_try" in
20798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20799 *) ac_try_echo=$ac_try;;
20800 esac
20801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20802 (eval "$ac_link") 2>conftest.er1
20803 ac_status=$?
20804 grep -v '^ *+' conftest.er1 >conftest.err
20805 rm -f conftest.er1
20806 cat conftest.err >&5
20807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20808 (exit $ac_status); } && {
20809 test -z "$ac_c_werror_flag" ||
20810 test ! -s conftest.err
20811 } && test -s conftest$ac_exeext &&
20812 $as_test_x conftest$ac_exeext; then
20813 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20814 else
20815 echo "$as_me: failed program was:" >&5
20816 sed 's/^/| /' conftest.$ac_ext >&5
20818 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20822 conftest$ac_exeext conftest.$ac_ext
20823 LIBS=$ac_check_lib_save_LIBS
20825 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20826 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20827 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20828 cat >>confdefs.h <<_ACEOF
20829 #define HAVE_LIBK5CRYPTO 1
20830 _ACEOF
20832 LIBS="-lk5crypto $LIBS"
20837 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
20838 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
20839 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20840 echo $ECHO_N "(cached) $ECHO_C" >&6
20841 else
20842 ac_check_lib_save_LIBS=$LIBS
20843 LIBS="-lcrypto $LIBS"
20844 cat >conftest.$ac_ext <<_ACEOF
20845 /* confdefs.h. */
20846 _ACEOF
20847 cat confdefs.h >>conftest.$ac_ext
20848 cat >>conftest.$ac_ext <<_ACEOF
20849 /* end confdefs.h. */
20851 /* Override any GCC internal prototype to avoid an error.
20852 Use char because int might match the return type of a GCC
20853 builtin and then its argument prototype would still apply. */
20854 #ifdef __cplusplus
20855 extern "C"
20856 #endif
20857 char mit_des_cbc_encrypt ();
20859 main ()
20861 return mit_des_cbc_encrypt ();
20863 return 0;
20865 _ACEOF
20866 rm -f conftest.$ac_objext conftest$ac_exeext
20867 if { (ac_try="$ac_link"
20868 case "(($ac_try" in
20869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20870 *) ac_try_echo=$ac_try;;
20871 esac
20872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20873 (eval "$ac_link") 2>conftest.er1
20874 ac_status=$?
20875 grep -v '^ *+' conftest.er1 >conftest.err
20876 rm -f conftest.er1
20877 cat conftest.err >&5
20878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20879 (exit $ac_status); } && {
20880 test -z "$ac_c_werror_flag" ||
20881 test ! -s conftest.err
20882 } && test -s conftest$ac_exeext &&
20883 $as_test_x conftest$ac_exeext; then
20884 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20885 else
20886 echo "$as_me: failed program was:" >&5
20887 sed 's/^/| /' conftest.$ac_ext >&5
20889 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20893 conftest$ac_exeext conftest.$ac_ext
20894 LIBS=$ac_check_lib_save_LIBS
20896 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20897 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20898 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20899 cat >>confdefs.h <<_ACEOF
20900 #define HAVE_LIBCRYPTO 1
20901 _ACEOF
20903 LIBS="-lcrypto $LIBS"
20908 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20909 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20910 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20911 echo $ECHO_N "(cached) $ECHO_C" >&6
20912 else
20913 ac_check_lib_save_LIBS=$LIBS
20914 LIBS="-lkrb5 $LIBS"
20915 cat >conftest.$ac_ext <<_ACEOF
20916 /* confdefs.h. */
20917 _ACEOF
20918 cat confdefs.h >>conftest.$ac_ext
20919 cat >>conftest.$ac_ext <<_ACEOF
20920 /* end confdefs.h. */
20922 /* Override any GCC internal prototype to avoid an error.
20923 Use char because int might match the return type of a GCC
20924 builtin and then its argument prototype would still apply. */
20925 #ifdef __cplusplus
20926 extern "C"
20927 #endif
20928 char krb5_init_context ();
20930 main ()
20932 return krb5_init_context ();
20934 return 0;
20936 _ACEOF
20937 rm -f conftest.$ac_objext conftest$ac_exeext
20938 if { (ac_try="$ac_link"
20939 case "(($ac_try" in
20940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20941 *) ac_try_echo=$ac_try;;
20942 esac
20943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20944 (eval "$ac_link") 2>conftest.er1
20945 ac_status=$?
20946 grep -v '^ *+' conftest.er1 >conftest.err
20947 rm -f conftest.er1
20948 cat conftest.err >&5
20949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20950 (exit $ac_status); } && {
20951 test -z "$ac_c_werror_flag" ||
20952 test ! -s conftest.err
20953 } && test -s conftest$ac_exeext &&
20954 $as_test_x conftest$ac_exeext; then
20955 ac_cv_lib_krb5_krb5_init_context=yes
20956 else
20957 echo "$as_me: failed program was:" >&5
20958 sed 's/^/| /' conftest.$ac_ext >&5
20960 ac_cv_lib_krb5_krb5_init_context=no
20963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20964 conftest$ac_exeext conftest.$ac_ext
20965 LIBS=$ac_check_lib_save_LIBS
20967 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20968 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20969 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20970 cat >>confdefs.h <<_ACEOF
20971 #define HAVE_LIBKRB5 1
20972 _ACEOF
20974 LIBS="-lkrb5 $LIBS"
20978 if test "${with_kerberos5+set}" != set; then
20980 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20981 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20982 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20983 echo $ECHO_N "(cached) $ECHO_C" >&6
20984 else
20985 ac_check_lib_save_LIBS=$LIBS
20986 LIBS="-ldes425 $LIBS"
20987 cat >conftest.$ac_ext <<_ACEOF
20988 /* confdefs.h. */
20989 _ACEOF
20990 cat confdefs.h >>conftest.$ac_ext
20991 cat >>conftest.$ac_ext <<_ACEOF
20992 /* end confdefs.h. */
20994 /* Override any GCC internal prototype to avoid an error.
20995 Use char because int might match the return type of a GCC
20996 builtin and then its argument prototype would still apply. */
20997 #ifdef __cplusplus
20998 extern "C"
20999 #endif
21000 char des_cbc_encrypt ();
21002 main ()
21004 return des_cbc_encrypt ();
21006 return 0;
21008 _ACEOF
21009 rm -f conftest.$ac_objext conftest$ac_exeext
21010 if { (ac_try="$ac_link"
21011 case "(($ac_try" in
21012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21013 *) ac_try_echo=$ac_try;;
21014 esac
21015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21016 (eval "$ac_link") 2>conftest.er1
21017 ac_status=$?
21018 grep -v '^ *+' conftest.er1 >conftest.err
21019 rm -f conftest.er1
21020 cat conftest.err >&5
21021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022 (exit $ac_status); } && {
21023 test -z "$ac_c_werror_flag" ||
21024 test ! -s conftest.err
21025 } && test -s conftest$ac_exeext &&
21026 $as_test_x conftest$ac_exeext; then
21027 ac_cv_lib_des425_des_cbc_encrypt=yes
21028 else
21029 echo "$as_me: failed program was:" >&5
21030 sed 's/^/| /' conftest.$ac_ext >&5
21032 ac_cv_lib_des425_des_cbc_encrypt=no
21035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21036 conftest$ac_exeext conftest.$ac_ext
21037 LIBS=$ac_check_lib_save_LIBS
21039 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
21040 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
21041 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
21042 cat >>confdefs.h <<_ACEOF
21043 #define HAVE_LIBDES425 1
21044 _ACEOF
21046 LIBS="-ldes425 $LIBS"
21048 else
21050 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
21051 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
21052 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
21053 echo $ECHO_N "(cached) $ECHO_C" >&6
21054 else
21055 ac_check_lib_save_LIBS=$LIBS
21056 LIBS="-ldes $LIBS"
21057 cat >conftest.$ac_ext <<_ACEOF
21058 /* confdefs.h. */
21059 _ACEOF
21060 cat confdefs.h >>conftest.$ac_ext
21061 cat >>conftest.$ac_ext <<_ACEOF
21062 /* end confdefs.h. */
21064 /* Override any GCC internal prototype to avoid an error.
21065 Use char because int might match the return type of a GCC
21066 builtin and then its argument prototype would still apply. */
21067 #ifdef __cplusplus
21068 extern "C"
21069 #endif
21070 char des_cbc_encrypt ();
21072 main ()
21074 return des_cbc_encrypt ();
21076 return 0;
21078 _ACEOF
21079 rm -f conftest.$ac_objext conftest$ac_exeext
21080 if { (ac_try="$ac_link"
21081 case "(($ac_try" in
21082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21083 *) ac_try_echo=$ac_try;;
21084 esac
21085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21086 (eval "$ac_link") 2>conftest.er1
21087 ac_status=$?
21088 grep -v '^ *+' conftest.er1 >conftest.err
21089 rm -f conftest.er1
21090 cat conftest.err >&5
21091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21092 (exit $ac_status); } && {
21093 test -z "$ac_c_werror_flag" ||
21094 test ! -s conftest.err
21095 } && test -s conftest$ac_exeext &&
21096 $as_test_x conftest$ac_exeext; then
21097 ac_cv_lib_des_des_cbc_encrypt=yes
21098 else
21099 echo "$as_me: failed program was:" >&5
21100 sed 's/^/| /' conftest.$ac_ext >&5
21102 ac_cv_lib_des_des_cbc_encrypt=no
21105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21106 conftest$ac_exeext conftest.$ac_ext
21107 LIBS=$ac_check_lib_save_LIBS
21109 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
21110 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
21111 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
21112 cat >>confdefs.h <<_ACEOF
21113 #define HAVE_LIBDES 1
21114 _ACEOF
21116 LIBS="-ldes $LIBS"
21123 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
21124 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
21125 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
21126 echo $ECHO_N "(cached) $ECHO_C" >&6
21127 else
21128 ac_check_lib_save_LIBS=$LIBS
21129 LIBS="-lkrb4 $LIBS"
21130 cat >conftest.$ac_ext <<_ACEOF
21131 /* confdefs.h. */
21132 _ACEOF
21133 cat confdefs.h >>conftest.$ac_ext
21134 cat >>conftest.$ac_ext <<_ACEOF
21135 /* end confdefs.h. */
21137 /* Override any GCC internal prototype to avoid an error.
21138 Use char because int might match the return type of a GCC
21139 builtin and then its argument prototype would still apply. */
21140 #ifdef __cplusplus
21141 extern "C"
21142 #endif
21143 char krb_get_cred ();
21145 main ()
21147 return krb_get_cred ();
21149 return 0;
21151 _ACEOF
21152 rm -f conftest.$ac_objext conftest$ac_exeext
21153 if { (ac_try="$ac_link"
21154 case "(($ac_try" in
21155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21156 *) ac_try_echo=$ac_try;;
21157 esac
21158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21159 (eval "$ac_link") 2>conftest.er1
21160 ac_status=$?
21161 grep -v '^ *+' conftest.er1 >conftest.err
21162 rm -f conftest.er1
21163 cat conftest.err >&5
21164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165 (exit $ac_status); } && {
21166 test -z "$ac_c_werror_flag" ||
21167 test ! -s conftest.err
21168 } && test -s conftest$ac_exeext &&
21169 $as_test_x conftest$ac_exeext; then
21170 ac_cv_lib_krb4_krb_get_cred=yes
21171 else
21172 echo "$as_me: failed program was:" >&5
21173 sed 's/^/| /' conftest.$ac_ext >&5
21175 ac_cv_lib_krb4_krb_get_cred=no
21178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21179 conftest$ac_exeext conftest.$ac_ext
21180 LIBS=$ac_check_lib_save_LIBS
21182 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
21183 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
21184 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
21185 cat >>confdefs.h <<_ACEOF
21186 #define HAVE_LIBKRB4 1
21187 _ACEOF
21189 LIBS="-lkrb4 $LIBS"
21191 else
21193 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
21194 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
21195 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
21196 echo $ECHO_N "(cached) $ECHO_C" >&6
21197 else
21198 ac_check_lib_save_LIBS=$LIBS
21199 LIBS="-lkrb $LIBS"
21200 cat >conftest.$ac_ext <<_ACEOF
21201 /* confdefs.h. */
21202 _ACEOF
21203 cat confdefs.h >>conftest.$ac_ext
21204 cat >>conftest.$ac_ext <<_ACEOF
21205 /* end confdefs.h. */
21207 /* Override any GCC internal prototype to avoid an error.
21208 Use char because int might match the return type of a GCC
21209 builtin and then its argument prototype would still apply. */
21210 #ifdef __cplusplus
21211 extern "C"
21212 #endif
21213 char krb_get_cred ();
21215 main ()
21217 return krb_get_cred ();
21219 return 0;
21221 _ACEOF
21222 rm -f conftest.$ac_objext conftest$ac_exeext
21223 if { (ac_try="$ac_link"
21224 case "(($ac_try" in
21225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21226 *) ac_try_echo=$ac_try;;
21227 esac
21228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21229 (eval "$ac_link") 2>conftest.er1
21230 ac_status=$?
21231 grep -v '^ *+' conftest.er1 >conftest.err
21232 rm -f conftest.er1
21233 cat conftest.err >&5
21234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21235 (exit $ac_status); } && {
21236 test -z "$ac_c_werror_flag" ||
21237 test ! -s conftest.err
21238 } && test -s conftest$ac_exeext &&
21239 $as_test_x conftest$ac_exeext; then
21240 ac_cv_lib_krb_krb_get_cred=yes
21241 else
21242 echo "$as_me: failed program was:" >&5
21243 sed 's/^/| /' conftest.$ac_ext >&5
21245 ac_cv_lib_krb_krb_get_cred=no
21248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21249 conftest$ac_exeext conftest.$ac_ext
21250 LIBS=$ac_check_lib_save_LIBS
21252 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
21253 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
21254 if test $ac_cv_lib_krb_krb_get_cred = yes; then
21255 cat >>confdefs.h <<_ACEOF
21256 #define HAVE_LIBKRB 1
21257 _ACEOF
21259 LIBS="-lkrb $LIBS"
21267 if test "${with_kerberos5+set}" = set; then
21269 for ac_header in krb5.h
21271 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21273 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21276 echo $ECHO_N "(cached) $ECHO_C" >&6
21278 ac_res=`eval echo '${'$as_ac_Header'}'`
21279 { echo "$as_me:$LINENO: result: $ac_res" >&5
21280 echo "${ECHO_T}$ac_res" >&6; }
21281 else
21282 # Is the header compilable?
21283 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21284 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21285 cat >conftest.$ac_ext <<_ACEOF
21286 /* confdefs.h. */
21287 _ACEOF
21288 cat confdefs.h >>conftest.$ac_ext
21289 cat >>conftest.$ac_ext <<_ACEOF
21290 /* end confdefs.h. */
21291 $ac_includes_default
21292 #include <$ac_header>
21293 _ACEOF
21294 rm -f conftest.$ac_objext
21295 if { (ac_try="$ac_compile"
21296 case "(($ac_try" in
21297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21298 *) ac_try_echo=$ac_try;;
21299 esac
21300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21301 (eval "$ac_compile") 2>conftest.er1
21302 ac_status=$?
21303 grep -v '^ *+' conftest.er1 >conftest.err
21304 rm -f conftest.er1
21305 cat conftest.err >&5
21306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307 (exit $ac_status); } && {
21308 test -z "$ac_c_werror_flag" ||
21309 test ! -s conftest.err
21310 } && test -s conftest.$ac_objext; then
21311 ac_header_compiler=yes
21312 else
21313 echo "$as_me: failed program was:" >&5
21314 sed 's/^/| /' conftest.$ac_ext >&5
21316 ac_header_compiler=no
21319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21320 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21321 echo "${ECHO_T}$ac_header_compiler" >&6; }
21323 # Is the header present?
21324 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21325 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21326 cat >conftest.$ac_ext <<_ACEOF
21327 /* confdefs.h. */
21328 _ACEOF
21329 cat confdefs.h >>conftest.$ac_ext
21330 cat >>conftest.$ac_ext <<_ACEOF
21331 /* end confdefs.h. */
21332 #include <$ac_header>
21333 _ACEOF
21334 if { (ac_try="$ac_cpp conftest.$ac_ext"
21335 case "(($ac_try" in
21336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21337 *) ac_try_echo=$ac_try;;
21338 esac
21339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21340 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21341 ac_status=$?
21342 grep -v '^ *+' conftest.er1 >conftest.err
21343 rm -f conftest.er1
21344 cat conftest.err >&5
21345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21346 (exit $ac_status); } >/dev/null && {
21347 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21348 test ! -s conftest.err
21349 }; then
21350 ac_header_preproc=yes
21351 else
21352 echo "$as_me: failed program was:" >&5
21353 sed 's/^/| /' conftest.$ac_ext >&5
21355 ac_header_preproc=no
21358 rm -f conftest.err conftest.$ac_ext
21359 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21360 echo "${ECHO_T}$ac_header_preproc" >&6; }
21362 # So? What about this header?
21363 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21364 yes:no: )
21365 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21366 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21367 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21368 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21369 ac_header_preproc=yes
21371 no:yes:* )
21372 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21373 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21374 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21375 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21376 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21377 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21378 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21379 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21380 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21381 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21382 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21383 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21386 esac
21387 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21390 echo $ECHO_N "(cached) $ECHO_C" >&6
21391 else
21392 eval "$as_ac_Header=\$ac_header_preproc"
21394 ac_res=`eval echo '${'$as_ac_Header'}'`
21395 { echo "$as_me:$LINENO: result: $ac_res" >&5
21396 echo "${ECHO_T}$ac_res" >&6; }
21399 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21400 cat >>confdefs.h <<_ACEOF
21401 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21402 _ACEOF
21406 done
21408 else
21410 for ac_header in des.h
21412 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21413 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21414 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21416 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21417 echo $ECHO_N "(cached) $ECHO_C" >&6
21419 ac_res=`eval echo '${'$as_ac_Header'}'`
21420 { echo "$as_me:$LINENO: result: $ac_res" >&5
21421 echo "${ECHO_T}$ac_res" >&6; }
21422 else
21423 # Is the header compilable?
21424 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21425 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21426 cat >conftest.$ac_ext <<_ACEOF
21427 /* confdefs.h. */
21428 _ACEOF
21429 cat confdefs.h >>conftest.$ac_ext
21430 cat >>conftest.$ac_ext <<_ACEOF
21431 /* end confdefs.h. */
21432 $ac_includes_default
21433 #include <$ac_header>
21434 _ACEOF
21435 rm -f conftest.$ac_objext
21436 if { (ac_try="$ac_compile"
21437 case "(($ac_try" in
21438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21439 *) ac_try_echo=$ac_try;;
21440 esac
21441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21442 (eval "$ac_compile") 2>conftest.er1
21443 ac_status=$?
21444 grep -v '^ *+' conftest.er1 >conftest.err
21445 rm -f conftest.er1
21446 cat conftest.err >&5
21447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21448 (exit $ac_status); } && {
21449 test -z "$ac_c_werror_flag" ||
21450 test ! -s conftest.err
21451 } && test -s conftest.$ac_objext; then
21452 ac_header_compiler=yes
21453 else
21454 echo "$as_me: failed program was:" >&5
21455 sed 's/^/| /' conftest.$ac_ext >&5
21457 ac_header_compiler=no
21460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21461 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21462 echo "${ECHO_T}$ac_header_compiler" >&6; }
21464 # Is the header present?
21465 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21466 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21467 cat >conftest.$ac_ext <<_ACEOF
21468 /* confdefs.h. */
21469 _ACEOF
21470 cat confdefs.h >>conftest.$ac_ext
21471 cat >>conftest.$ac_ext <<_ACEOF
21472 /* end confdefs.h. */
21473 #include <$ac_header>
21474 _ACEOF
21475 if { (ac_try="$ac_cpp conftest.$ac_ext"
21476 case "(($ac_try" in
21477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21478 *) ac_try_echo=$ac_try;;
21479 esac
21480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21481 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21482 ac_status=$?
21483 grep -v '^ *+' conftest.er1 >conftest.err
21484 rm -f conftest.er1
21485 cat conftest.err >&5
21486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21487 (exit $ac_status); } >/dev/null && {
21488 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21489 test ! -s conftest.err
21490 }; then
21491 ac_header_preproc=yes
21492 else
21493 echo "$as_me: failed program was:" >&5
21494 sed 's/^/| /' conftest.$ac_ext >&5
21496 ac_header_preproc=no
21499 rm -f conftest.err conftest.$ac_ext
21500 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21501 echo "${ECHO_T}$ac_header_preproc" >&6; }
21503 # So? What about this header?
21504 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21505 yes:no: )
21506 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21507 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21509 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21510 ac_header_preproc=yes
21512 no:yes:* )
21513 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21514 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21515 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21516 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21517 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21518 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21519 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21520 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21522 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21523 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21524 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21527 esac
21528 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21531 echo $ECHO_N "(cached) $ECHO_C" >&6
21532 else
21533 eval "$as_ac_Header=\$ac_header_preproc"
21535 ac_res=`eval echo '${'$as_ac_Header'}'`
21536 { echo "$as_me:$LINENO: result: $ac_res" >&5
21537 echo "${ECHO_T}$ac_res" >&6; }
21540 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21541 cat >>confdefs.h <<_ACEOF
21542 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21543 _ACEOF
21545 else
21547 for ac_header in kerberosIV/des.h
21549 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21551 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21554 echo $ECHO_N "(cached) $ECHO_C" >&6
21556 ac_res=`eval echo '${'$as_ac_Header'}'`
21557 { echo "$as_me:$LINENO: result: $ac_res" >&5
21558 echo "${ECHO_T}$ac_res" >&6; }
21559 else
21560 # Is the header compilable?
21561 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21562 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21563 cat >conftest.$ac_ext <<_ACEOF
21564 /* confdefs.h. */
21565 _ACEOF
21566 cat confdefs.h >>conftest.$ac_ext
21567 cat >>conftest.$ac_ext <<_ACEOF
21568 /* end confdefs.h. */
21569 $ac_includes_default
21570 #include <$ac_header>
21571 _ACEOF
21572 rm -f conftest.$ac_objext
21573 if { (ac_try="$ac_compile"
21574 case "(($ac_try" in
21575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21576 *) ac_try_echo=$ac_try;;
21577 esac
21578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21579 (eval "$ac_compile") 2>conftest.er1
21580 ac_status=$?
21581 grep -v '^ *+' conftest.er1 >conftest.err
21582 rm -f conftest.er1
21583 cat conftest.err >&5
21584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21585 (exit $ac_status); } && {
21586 test -z "$ac_c_werror_flag" ||
21587 test ! -s conftest.err
21588 } && test -s conftest.$ac_objext; then
21589 ac_header_compiler=yes
21590 else
21591 echo "$as_me: failed program was:" >&5
21592 sed 's/^/| /' conftest.$ac_ext >&5
21594 ac_header_compiler=no
21597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21598 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21599 echo "${ECHO_T}$ac_header_compiler" >&6; }
21601 # Is the header present?
21602 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21603 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21604 cat >conftest.$ac_ext <<_ACEOF
21605 /* confdefs.h. */
21606 _ACEOF
21607 cat confdefs.h >>conftest.$ac_ext
21608 cat >>conftest.$ac_ext <<_ACEOF
21609 /* end confdefs.h. */
21610 #include <$ac_header>
21611 _ACEOF
21612 if { (ac_try="$ac_cpp conftest.$ac_ext"
21613 case "(($ac_try" in
21614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21615 *) ac_try_echo=$ac_try;;
21616 esac
21617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21618 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21619 ac_status=$?
21620 grep -v '^ *+' conftest.er1 >conftest.err
21621 rm -f conftest.er1
21622 cat conftest.err >&5
21623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21624 (exit $ac_status); } >/dev/null && {
21625 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21626 test ! -s conftest.err
21627 }; then
21628 ac_header_preproc=yes
21629 else
21630 echo "$as_me: failed program was:" >&5
21631 sed 's/^/| /' conftest.$ac_ext >&5
21633 ac_header_preproc=no
21636 rm -f conftest.err conftest.$ac_ext
21637 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21638 echo "${ECHO_T}$ac_header_preproc" >&6; }
21640 # So? What about this header?
21641 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21642 yes:no: )
21643 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21644 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21645 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21646 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21647 ac_header_preproc=yes
21649 no:yes:* )
21650 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21651 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21652 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21653 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21654 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21655 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21656 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21657 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21658 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21659 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21660 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21661 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21664 esac
21665 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21668 echo $ECHO_N "(cached) $ECHO_C" >&6
21669 else
21670 eval "$as_ac_Header=\$ac_header_preproc"
21672 ac_res=`eval echo '${'$as_ac_Header'}'`
21673 { echo "$as_me:$LINENO: result: $ac_res" >&5
21674 echo "${ECHO_T}$ac_res" >&6; }
21677 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21678 cat >>confdefs.h <<_ACEOF
21679 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21680 _ACEOF
21682 else
21684 for ac_header in kerberos/des.h
21686 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21688 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21690 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21691 echo $ECHO_N "(cached) $ECHO_C" >&6
21693 ac_res=`eval echo '${'$as_ac_Header'}'`
21694 { echo "$as_me:$LINENO: result: $ac_res" >&5
21695 echo "${ECHO_T}$ac_res" >&6; }
21696 else
21697 # Is the header compilable?
21698 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21699 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21700 cat >conftest.$ac_ext <<_ACEOF
21701 /* confdefs.h. */
21702 _ACEOF
21703 cat confdefs.h >>conftest.$ac_ext
21704 cat >>conftest.$ac_ext <<_ACEOF
21705 /* end confdefs.h. */
21706 $ac_includes_default
21707 #include <$ac_header>
21708 _ACEOF
21709 rm -f conftest.$ac_objext
21710 if { (ac_try="$ac_compile"
21711 case "(($ac_try" in
21712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21713 *) ac_try_echo=$ac_try;;
21714 esac
21715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21716 (eval "$ac_compile") 2>conftest.er1
21717 ac_status=$?
21718 grep -v '^ *+' conftest.er1 >conftest.err
21719 rm -f conftest.er1
21720 cat conftest.err >&5
21721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722 (exit $ac_status); } && {
21723 test -z "$ac_c_werror_flag" ||
21724 test ! -s conftest.err
21725 } && test -s conftest.$ac_objext; then
21726 ac_header_compiler=yes
21727 else
21728 echo "$as_me: failed program was:" >&5
21729 sed 's/^/| /' conftest.$ac_ext >&5
21731 ac_header_compiler=no
21734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21735 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21736 echo "${ECHO_T}$ac_header_compiler" >&6; }
21738 # Is the header present?
21739 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21740 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21741 cat >conftest.$ac_ext <<_ACEOF
21742 /* confdefs.h. */
21743 _ACEOF
21744 cat confdefs.h >>conftest.$ac_ext
21745 cat >>conftest.$ac_ext <<_ACEOF
21746 /* end confdefs.h. */
21747 #include <$ac_header>
21748 _ACEOF
21749 if { (ac_try="$ac_cpp conftest.$ac_ext"
21750 case "(($ac_try" in
21751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21752 *) ac_try_echo=$ac_try;;
21753 esac
21754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21755 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21756 ac_status=$?
21757 grep -v '^ *+' conftest.er1 >conftest.err
21758 rm -f conftest.er1
21759 cat conftest.err >&5
21760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21761 (exit $ac_status); } >/dev/null && {
21762 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21763 test ! -s conftest.err
21764 }; then
21765 ac_header_preproc=yes
21766 else
21767 echo "$as_me: failed program was:" >&5
21768 sed 's/^/| /' conftest.$ac_ext >&5
21770 ac_header_preproc=no
21773 rm -f conftest.err conftest.$ac_ext
21774 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21775 echo "${ECHO_T}$ac_header_preproc" >&6; }
21777 # So? What about this header?
21778 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21779 yes:no: )
21780 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21781 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21782 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21783 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21784 ac_header_preproc=yes
21786 no:yes:* )
21787 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21788 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21789 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21790 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21791 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21792 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21793 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21794 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21795 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21796 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21797 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21798 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21801 esac
21802 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21805 echo $ECHO_N "(cached) $ECHO_C" >&6
21806 else
21807 eval "$as_ac_Header=\$ac_header_preproc"
21809 ac_res=`eval echo '${'$as_ac_Header'}'`
21810 { echo "$as_me:$LINENO: result: $ac_res" >&5
21811 echo "${ECHO_T}$ac_res" >&6; }
21814 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21815 cat >>confdefs.h <<_ACEOF
21816 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21817 _ACEOF
21821 done
21825 done
21829 done
21832 for ac_header in krb.h
21834 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21836 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21839 echo $ECHO_N "(cached) $ECHO_C" >&6
21841 ac_res=`eval echo '${'$as_ac_Header'}'`
21842 { echo "$as_me:$LINENO: result: $ac_res" >&5
21843 echo "${ECHO_T}$ac_res" >&6; }
21844 else
21845 # Is the header compilable?
21846 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21847 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21848 cat >conftest.$ac_ext <<_ACEOF
21849 /* confdefs.h. */
21850 _ACEOF
21851 cat confdefs.h >>conftest.$ac_ext
21852 cat >>conftest.$ac_ext <<_ACEOF
21853 /* end confdefs.h. */
21854 $ac_includes_default
21855 #include <$ac_header>
21856 _ACEOF
21857 rm -f conftest.$ac_objext
21858 if { (ac_try="$ac_compile"
21859 case "(($ac_try" in
21860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21861 *) ac_try_echo=$ac_try;;
21862 esac
21863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21864 (eval "$ac_compile") 2>conftest.er1
21865 ac_status=$?
21866 grep -v '^ *+' conftest.er1 >conftest.err
21867 rm -f conftest.er1
21868 cat conftest.err >&5
21869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21870 (exit $ac_status); } && {
21871 test -z "$ac_c_werror_flag" ||
21872 test ! -s conftest.err
21873 } && test -s conftest.$ac_objext; then
21874 ac_header_compiler=yes
21875 else
21876 echo "$as_me: failed program was:" >&5
21877 sed 's/^/| /' conftest.$ac_ext >&5
21879 ac_header_compiler=no
21882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21883 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21884 echo "${ECHO_T}$ac_header_compiler" >&6; }
21886 # Is the header present?
21887 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21888 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21889 cat >conftest.$ac_ext <<_ACEOF
21890 /* confdefs.h. */
21891 _ACEOF
21892 cat confdefs.h >>conftest.$ac_ext
21893 cat >>conftest.$ac_ext <<_ACEOF
21894 /* end confdefs.h. */
21895 #include <$ac_header>
21896 _ACEOF
21897 if { (ac_try="$ac_cpp conftest.$ac_ext"
21898 case "(($ac_try" in
21899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21900 *) ac_try_echo=$ac_try;;
21901 esac
21902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21903 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21904 ac_status=$?
21905 grep -v '^ *+' conftest.er1 >conftest.err
21906 rm -f conftest.er1
21907 cat conftest.err >&5
21908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21909 (exit $ac_status); } >/dev/null && {
21910 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21911 test ! -s conftest.err
21912 }; then
21913 ac_header_preproc=yes
21914 else
21915 echo "$as_me: failed program was:" >&5
21916 sed 's/^/| /' conftest.$ac_ext >&5
21918 ac_header_preproc=no
21921 rm -f conftest.err conftest.$ac_ext
21922 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21923 echo "${ECHO_T}$ac_header_preproc" >&6; }
21925 # So? What about this header?
21926 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21927 yes:no: )
21928 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21929 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21930 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21931 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21932 ac_header_preproc=yes
21934 no:yes:* )
21935 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21936 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21937 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21938 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21939 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21940 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21941 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21942 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21943 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21944 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21945 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21946 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21949 esac
21950 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21952 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21953 echo $ECHO_N "(cached) $ECHO_C" >&6
21954 else
21955 eval "$as_ac_Header=\$ac_header_preproc"
21957 ac_res=`eval echo '${'$as_ac_Header'}'`
21958 { echo "$as_me:$LINENO: result: $ac_res" >&5
21959 echo "${ECHO_T}$ac_res" >&6; }
21962 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21963 cat >>confdefs.h <<_ACEOF
21964 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21965 _ACEOF
21967 else
21969 for ac_header in kerberosIV/krb.h
21971 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21973 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21975 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21976 echo $ECHO_N "(cached) $ECHO_C" >&6
21978 ac_res=`eval echo '${'$as_ac_Header'}'`
21979 { echo "$as_me:$LINENO: result: $ac_res" >&5
21980 echo "${ECHO_T}$ac_res" >&6; }
21981 else
21982 # Is the header compilable?
21983 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21984 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21985 cat >conftest.$ac_ext <<_ACEOF
21986 /* confdefs.h. */
21987 _ACEOF
21988 cat confdefs.h >>conftest.$ac_ext
21989 cat >>conftest.$ac_ext <<_ACEOF
21990 /* end confdefs.h. */
21991 $ac_includes_default
21992 #include <$ac_header>
21993 _ACEOF
21994 rm -f conftest.$ac_objext
21995 if { (ac_try="$ac_compile"
21996 case "(($ac_try" in
21997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21998 *) ac_try_echo=$ac_try;;
21999 esac
22000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22001 (eval "$ac_compile") 2>conftest.er1
22002 ac_status=$?
22003 grep -v '^ *+' conftest.er1 >conftest.err
22004 rm -f conftest.er1
22005 cat conftest.err >&5
22006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22007 (exit $ac_status); } && {
22008 test -z "$ac_c_werror_flag" ||
22009 test ! -s conftest.err
22010 } && test -s conftest.$ac_objext; then
22011 ac_header_compiler=yes
22012 else
22013 echo "$as_me: failed program was:" >&5
22014 sed 's/^/| /' conftest.$ac_ext >&5
22016 ac_header_compiler=no
22019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22020 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22021 echo "${ECHO_T}$ac_header_compiler" >&6; }
22023 # Is the header present?
22024 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22025 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22026 cat >conftest.$ac_ext <<_ACEOF
22027 /* confdefs.h. */
22028 _ACEOF
22029 cat confdefs.h >>conftest.$ac_ext
22030 cat >>conftest.$ac_ext <<_ACEOF
22031 /* end confdefs.h. */
22032 #include <$ac_header>
22033 _ACEOF
22034 if { (ac_try="$ac_cpp conftest.$ac_ext"
22035 case "(($ac_try" in
22036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22037 *) ac_try_echo=$ac_try;;
22038 esac
22039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22040 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22041 ac_status=$?
22042 grep -v '^ *+' conftest.er1 >conftest.err
22043 rm -f conftest.er1
22044 cat conftest.err >&5
22045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22046 (exit $ac_status); } >/dev/null && {
22047 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22048 test ! -s conftest.err
22049 }; then
22050 ac_header_preproc=yes
22051 else
22052 echo "$as_me: failed program was:" >&5
22053 sed 's/^/| /' conftest.$ac_ext >&5
22055 ac_header_preproc=no
22058 rm -f conftest.err conftest.$ac_ext
22059 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22060 echo "${ECHO_T}$ac_header_preproc" >&6; }
22062 # So? What about this header?
22063 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22064 yes:no: )
22065 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22066 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22068 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22069 ac_header_preproc=yes
22071 no:yes:* )
22072 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22073 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22074 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22075 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22076 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22077 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22078 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22079 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22080 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22081 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22082 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22083 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22086 esac
22087 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22090 echo $ECHO_N "(cached) $ECHO_C" >&6
22091 else
22092 eval "$as_ac_Header=\$ac_header_preproc"
22094 ac_res=`eval echo '${'$as_ac_Header'}'`
22095 { echo "$as_me:$LINENO: result: $ac_res" >&5
22096 echo "${ECHO_T}$ac_res" >&6; }
22099 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22100 cat >>confdefs.h <<_ACEOF
22101 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22102 _ACEOF
22104 else
22106 for ac_header in kerberos/krb.h
22108 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22110 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22113 echo $ECHO_N "(cached) $ECHO_C" >&6
22115 ac_res=`eval echo '${'$as_ac_Header'}'`
22116 { echo "$as_me:$LINENO: result: $ac_res" >&5
22117 echo "${ECHO_T}$ac_res" >&6; }
22118 else
22119 # Is the header compilable?
22120 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22121 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22122 cat >conftest.$ac_ext <<_ACEOF
22123 /* confdefs.h. */
22124 _ACEOF
22125 cat confdefs.h >>conftest.$ac_ext
22126 cat >>conftest.$ac_ext <<_ACEOF
22127 /* end confdefs.h. */
22128 $ac_includes_default
22129 #include <$ac_header>
22130 _ACEOF
22131 rm -f conftest.$ac_objext
22132 if { (ac_try="$ac_compile"
22133 case "(($ac_try" in
22134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22135 *) ac_try_echo=$ac_try;;
22136 esac
22137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22138 (eval "$ac_compile") 2>conftest.er1
22139 ac_status=$?
22140 grep -v '^ *+' conftest.er1 >conftest.err
22141 rm -f conftest.er1
22142 cat conftest.err >&5
22143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22144 (exit $ac_status); } && {
22145 test -z "$ac_c_werror_flag" ||
22146 test ! -s conftest.err
22147 } && test -s conftest.$ac_objext; then
22148 ac_header_compiler=yes
22149 else
22150 echo "$as_me: failed program was:" >&5
22151 sed 's/^/| /' conftest.$ac_ext >&5
22153 ac_header_compiler=no
22156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22157 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22158 echo "${ECHO_T}$ac_header_compiler" >&6; }
22160 # Is the header present?
22161 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22162 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22163 cat >conftest.$ac_ext <<_ACEOF
22164 /* confdefs.h. */
22165 _ACEOF
22166 cat confdefs.h >>conftest.$ac_ext
22167 cat >>conftest.$ac_ext <<_ACEOF
22168 /* end confdefs.h. */
22169 #include <$ac_header>
22170 _ACEOF
22171 if { (ac_try="$ac_cpp conftest.$ac_ext"
22172 case "(($ac_try" in
22173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22174 *) ac_try_echo=$ac_try;;
22175 esac
22176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22177 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22178 ac_status=$?
22179 grep -v '^ *+' conftest.er1 >conftest.err
22180 rm -f conftest.er1
22181 cat conftest.err >&5
22182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22183 (exit $ac_status); } >/dev/null && {
22184 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22185 test ! -s conftest.err
22186 }; then
22187 ac_header_preproc=yes
22188 else
22189 echo "$as_me: failed program was:" >&5
22190 sed 's/^/| /' conftest.$ac_ext >&5
22192 ac_header_preproc=no
22195 rm -f conftest.err conftest.$ac_ext
22196 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22197 echo "${ECHO_T}$ac_header_preproc" >&6; }
22199 # So? What about this header?
22200 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22201 yes:no: )
22202 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22203 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22205 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22206 ac_header_preproc=yes
22208 no:yes:* )
22209 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22210 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22211 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22212 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22213 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22214 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22215 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22216 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22218 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22219 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22220 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22223 esac
22224 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22227 echo $ECHO_N "(cached) $ECHO_C" >&6
22228 else
22229 eval "$as_ac_Header=\$ac_header_preproc"
22231 ac_res=`eval echo '${'$as_ac_Header'}'`
22232 { echo "$as_me:$LINENO: result: $ac_res" >&5
22233 echo "${ECHO_T}$ac_res" >&6; }
22236 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22237 cat >>confdefs.h <<_ACEOF
22238 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22239 _ACEOF
22243 done
22247 done
22251 done
22255 for ac_header in com_err.h
22257 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22259 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22261 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22262 echo $ECHO_N "(cached) $ECHO_C" >&6
22264 ac_res=`eval echo '${'$as_ac_Header'}'`
22265 { echo "$as_me:$LINENO: result: $ac_res" >&5
22266 echo "${ECHO_T}$ac_res" >&6; }
22267 else
22268 # Is the header compilable?
22269 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22270 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22271 cat >conftest.$ac_ext <<_ACEOF
22272 /* confdefs.h. */
22273 _ACEOF
22274 cat confdefs.h >>conftest.$ac_ext
22275 cat >>conftest.$ac_ext <<_ACEOF
22276 /* end confdefs.h. */
22277 $ac_includes_default
22278 #include <$ac_header>
22279 _ACEOF
22280 rm -f conftest.$ac_objext
22281 if { (ac_try="$ac_compile"
22282 case "(($ac_try" in
22283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22284 *) ac_try_echo=$ac_try;;
22285 esac
22286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22287 (eval "$ac_compile") 2>conftest.er1
22288 ac_status=$?
22289 grep -v '^ *+' conftest.er1 >conftest.err
22290 rm -f conftest.er1
22291 cat conftest.err >&5
22292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22293 (exit $ac_status); } && {
22294 test -z "$ac_c_werror_flag" ||
22295 test ! -s conftest.err
22296 } && test -s conftest.$ac_objext; then
22297 ac_header_compiler=yes
22298 else
22299 echo "$as_me: failed program was:" >&5
22300 sed 's/^/| /' conftest.$ac_ext >&5
22302 ac_header_compiler=no
22305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22306 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22307 echo "${ECHO_T}$ac_header_compiler" >&6; }
22309 # Is the header present?
22310 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22311 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22312 cat >conftest.$ac_ext <<_ACEOF
22313 /* confdefs.h. */
22314 _ACEOF
22315 cat confdefs.h >>conftest.$ac_ext
22316 cat >>conftest.$ac_ext <<_ACEOF
22317 /* end confdefs.h. */
22318 #include <$ac_header>
22319 _ACEOF
22320 if { (ac_try="$ac_cpp conftest.$ac_ext"
22321 case "(($ac_try" in
22322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22323 *) ac_try_echo=$ac_try;;
22324 esac
22325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22326 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22327 ac_status=$?
22328 grep -v '^ *+' conftest.er1 >conftest.err
22329 rm -f conftest.er1
22330 cat conftest.err >&5
22331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22332 (exit $ac_status); } >/dev/null && {
22333 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22334 test ! -s conftest.err
22335 }; then
22336 ac_header_preproc=yes
22337 else
22338 echo "$as_me: failed program was:" >&5
22339 sed 's/^/| /' conftest.$ac_ext >&5
22341 ac_header_preproc=no
22344 rm -f conftest.err conftest.$ac_ext
22345 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22346 echo "${ECHO_T}$ac_header_preproc" >&6; }
22348 # So? What about this header?
22349 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22350 yes:no: )
22351 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22352 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22353 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22354 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22355 ac_header_preproc=yes
22357 no:yes:* )
22358 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22359 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22360 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22361 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22362 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22363 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22364 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22365 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22366 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22367 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22368 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22369 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22372 esac
22373 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22375 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22376 echo $ECHO_N "(cached) $ECHO_C" >&6
22377 else
22378 eval "$as_ac_Header=\$ac_header_preproc"
22380 ac_res=`eval echo '${'$as_ac_Header'}'`
22381 { echo "$as_me:$LINENO: result: $ac_res" >&5
22382 echo "${ECHO_T}$ac_res" >&6; }
22385 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22386 cat >>confdefs.h <<_ACEOF
22387 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22388 _ACEOF
22392 done
22396 # Solaris requires -lintl if you want strerror (which calls dgettext)
22397 # to return localized messages.
22399 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
22400 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
22401 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
22402 echo $ECHO_N "(cached) $ECHO_C" >&6
22403 else
22404 ac_check_lib_save_LIBS=$LIBS
22405 LIBS="-lintl $LIBS"
22406 cat >conftest.$ac_ext <<_ACEOF
22407 /* confdefs.h. */
22408 _ACEOF
22409 cat confdefs.h >>conftest.$ac_ext
22410 cat >>conftest.$ac_ext <<_ACEOF
22411 /* end confdefs.h. */
22413 /* Override any GCC internal prototype to avoid an error.
22414 Use char because int might match the return type of a GCC
22415 builtin and then its argument prototype would still apply. */
22416 #ifdef __cplusplus
22417 extern "C"
22418 #endif
22419 char dgettext ();
22421 main ()
22423 return dgettext ();
22425 return 0;
22427 _ACEOF
22428 rm -f conftest.$ac_objext conftest$ac_exeext
22429 if { (ac_try="$ac_link"
22430 case "(($ac_try" in
22431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22432 *) ac_try_echo=$ac_try;;
22433 esac
22434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22435 (eval "$ac_link") 2>conftest.er1
22436 ac_status=$?
22437 grep -v '^ *+' conftest.er1 >conftest.err
22438 rm -f conftest.er1
22439 cat conftest.err >&5
22440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22441 (exit $ac_status); } && {
22442 test -z "$ac_c_werror_flag" ||
22443 test ! -s conftest.err
22444 } && test -s conftest$ac_exeext &&
22445 $as_test_x conftest$ac_exeext; then
22446 ac_cv_lib_intl_dgettext=yes
22447 else
22448 echo "$as_me: failed program was:" >&5
22449 sed 's/^/| /' conftest.$ac_ext >&5
22451 ac_cv_lib_intl_dgettext=no
22454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22455 conftest$ac_exeext conftest.$ac_ext
22456 LIBS=$ac_check_lib_save_LIBS
22458 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
22459 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22460 if test $ac_cv_lib_intl_dgettext = yes; then
22461 cat >>confdefs.h <<_ACEOF
22462 #define HAVE_LIBINTL 1
22463 _ACEOF
22465 LIBS="-lintl $LIBS"
22470 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
22471 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
22472 if test "${emacs_cv_localtime_cache+set}" = set; then
22473 echo $ECHO_N "(cached) $ECHO_C" >&6
22474 else
22475 if test x$ac_cv_func_tzset = xyes; then
22476 if test "$cross_compiling" = yes; then
22477 # If we have tzset, assume the worst when cross-compiling.
22478 emacs_cv_localtime_cache=yes
22479 else
22480 cat >conftest.$ac_ext <<_ACEOF
22481 /* confdefs.h. */
22482 _ACEOF
22483 cat confdefs.h >>conftest.$ac_ext
22484 cat >>conftest.$ac_ext <<_ACEOF
22485 /* end confdefs.h. */
22486 #include <time.h>
22487 extern char **environ;
22488 unset_TZ ()
22490 char **from, **to;
22491 for (to = from = environ; (*to = *from); from++)
22492 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22493 to++;
22495 char TZ_GMT0[] = "TZ=GMT0";
22496 char TZ_PST8[] = "TZ=PST8";
22497 main()
22499 time_t now = time ((time_t *) 0);
22500 int hour_GMT0, hour_unset;
22501 if (putenv (TZ_GMT0) != 0)
22502 exit (1);
22503 hour_GMT0 = localtime (&now)->tm_hour;
22504 unset_TZ ();
22505 hour_unset = localtime (&now)->tm_hour;
22506 if (putenv (TZ_PST8) != 0)
22507 exit (1);
22508 if (localtime (&now)->tm_hour == hour_GMT0)
22509 exit (1);
22510 unset_TZ ();
22511 if (localtime (&now)->tm_hour != hour_unset)
22512 exit (1);
22513 exit (0);
22515 _ACEOF
22516 rm -f conftest$ac_exeext
22517 if { (ac_try="$ac_link"
22518 case "(($ac_try" in
22519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22520 *) ac_try_echo=$ac_try;;
22521 esac
22522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22523 (eval "$ac_link") 2>&5
22524 ac_status=$?
22525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22526 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22527 { (case "(($ac_try" in
22528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22529 *) ac_try_echo=$ac_try;;
22530 esac
22531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22532 (eval "$ac_try") 2>&5
22533 ac_status=$?
22534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22535 (exit $ac_status); }; }; then
22536 emacs_cv_localtime_cache=no
22537 else
22538 echo "$as_me: program exited with status $ac_status" >&5
22539 echo "$as_me: failed program was:" >&5
22540 sed 's/^/| /' conftest.$ac_ext >&5
22542 ( exit $ac_status )
22543 emacs_cv_localtime_cache=yes
22545 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22549 else
22550 # If we lack tzset, report that localtime does not cache TZ,
22551 # since we can't invalidate the cache if we don't have tzset.
22552 emacs_cv_localtime_cache=no
22555 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
22556 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22557 if test $emacs_cv_localtime_cache = yes; then
22559 cat >>confdefs.h <<\_ACEOF
22560 #define LOCALTIME_CACHE 1
22561 _ACEOF
22565 if test "x$HAVE_TIMEVAL" = xyes; then
22567 for ac_func in gettimeofday
22569 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22570 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22571 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22572 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22573 echo $ECHO_N "(cached) $ECHO_C" >&6
22574 else
22575 cat >conftest.$ac_ext <<_ACEOF
22576 /* confdefs.h. */
22577 _ACEOF
22578 cat confdefs.h >>conftest.$ac_ext
22579 cat >>conftest.$ac_ext <<_ACEOF
22580 /* end confdefs.h. */
22581 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22582 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22583 #define $ac_func innocuous_$ac_func
22585 /* System header to define __stub macros and hopefully few prototypes,
22586 which can conflict with char $ac_func (); below.
22587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22588 <limits.h> exists even on freestanding compilers. */
22590 #ifdef __STDC__
22591 # include <limits.h>
22592 #else
22593 # include <assert.h>
22594 #endif
22596 #undef $ac_func
22598 /* Override any GCC internal prototype to avoid an error.
22599 Use char because int might match the return type of a GCC
22600 builtin and then its argument prototype would still apply. */
22601 #ifdef __cplusplus
22602 extern "C"
22603 #endif
22604 char $ac_func ();
22605 /* The GNU C library defines this for functions which it implements
22606 to always fail with ENOSYS. Some functions are actually named
22607 something starting with __ and the normal name is an alias. */
22608 #if defined __stub_$ac_func || defined __stub___$ac_func
22609 choke me
22610 #endif
22613 main ()
22615 return $ac_func ();
22617 return 0;
22619 _ACEOF
22620 rm -f conftest.$ac_objext conftest$ac_exeext
22621 if { (ac_try="$ac_link"
22622 case "(($ac_try" in
22623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22624 *) ac_try_echo=$ac_try;;
22625 esac
22626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22627 (eval "$ac_link") 2>conftest.er1
22628 ac_status=$?
22629 grep -v '^ *+' conftest.er1 >conftest.err
22630 rm -f conftest.er1
22631 cat conftest.err >&5
22632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22633 (exit $ac_status); } && {
22634 test -z "$ac_c_werror_flag" ||
22635 test ! -s conftest.err
22636 } && test -s conftest$ac_exeext &&
22637 $as_test_x conftest$ac_exeext; then
22638 eval "$as_ac_var=yes"
22639 else
22640 echo "$as_me: failed program was:" >&5
22641 sed 's/^/| /' conftest.$ac_ext >&5
22643 eval "$as_ac_var=no"
22646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22647 conftest$ac_exeext conftest.$ac_ext
22649 ac_res=`eval echo '${'$as_ac_var'}'`
22650 { echo "$as_me:$LINENO: result: $ac_res" >&5
22651 echo "${ECHO_T}$ac_res" >&6; }
22652 if test `eval echo '${'$as_ac_var'}'` = yes; then
22653 cat >>confdefs.h <<_ACEOF
22654 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22655 _ACEOF
22658 done
22660 if test $ac_cv_func_gettimeofday = yes; then
22661 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
22662 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
22663 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22664 echo $ECHO_N "(cached) $ECHO_C" >&6
22665 else
22666 cat >conftest.$ac_ext <<_ACEOF
22667 /* confdefs.h. */
22668 _ACEOF
22669 cat confdefs.h >>conftest.$ac_ext
22670 cat >>conftest.$ac_ext <<_ACEOF
22671 /* end confdefs.h. */
22673 #ifdef TIME_WITH_SYS_TIME
22674 #include <sys/time.h>
22675 #include <time.h>
22676 #else
22677 #ifdef HAVE_SYS_TIME_H
22678 #include <sys/time.h>
22679 #else
22680 #include <time.h>
22681 #endif
22682 #endif
22684 main ()
22686 struct timeval time;
22687 gettimeofday (&time, 0);
22689 return 0;
22691 _ACEOF
22692 rm -f conftest.$ac_objext
22693 if { (ac_try="$ac_compile"
22694 case "(($ac_try" in
22695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22696 *) ac_try_echo=$ac_try;;
22697 esac
22698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22699 (eval "$ac_compile") 2>conftest.er1
22700 ac_status=$?
22701 grep -v '^ *+' conftest.er1 >conftest.err
22702 rm -f conftest.er1
22703 cat conftest.err >&5
22704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22705 (exit $ac_status); } && {
22706 test -z "$ac_c_werror_flag" ||
22707 test ! -s conftest.err
22708 } && test -s conftest.$ac_objext; then
22709 emacs_cv_gettimeofday_two_arguments=yes
22710 else
22711 echo "$as_me: failed program was:" >&5
22712 sed 's/^/| /' conftest.$ac_ext >&5
22714 emacs_cv_gettimeofday_two_arguments=no
22717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22719 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
22720 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22721 if test $emacs_cv_gettimeofday_two_arguments = no; then
22723 cat >>confdefs.h <<\_ACEOF
22724 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22725 _ACEOF
22731 ok_so_far=yes
22732 { echo "$as_me:$LINENO: checking for socket" >&5
22733 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
22734 if test "${ac_cv_func_socket+set}" = set; then
22735 echo $ECHO_N "(cached) $ECHO_C" >&6
22736 else
22737 cat >conftest.$ac_ext <<_ACEOF
22738 /* confdefs.h. */
22739 _ACEOF
22740 cat confdefs.h >>conftest.$ac_ext
22741 cat >>conftest.$ac_ext <<_ACEOF
22742 /* end confdefs.h. */
22743 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22745 #define socket innocuous_socket
22747 /* System header to define __stub macros and hopefully few prototypes,
22748 which can conflict with char socket (); below.
22749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22750 <limits.h> exists even on freestanding compilers. */
22752 #ifdef __STDC__
22753 # include <limits.h>
22754 #else
22755 # include <assert.h>
22756 #endif
22758 #undef socket
22760 /* Override any GCC internal prototype to avoid an error.
22761 Use char because int might match the return type of a GCC
22762 builtin and then its argument prototype would still apply. */
22763 #ifdef __cplusplus
22764 extern "C"
22765 #endif
22766 char socket ();
22767 /* The GNU C library defines this for functions which it implements
22768 to always fail with ENOSYS. Some functions are actually named
22769 something starting with __ and the normal name is an alias. */
22770 #if defined __stub_socket || defined __stub___socket
22771 choke me
22772 #endif
22775 main ()
22777 return socket ();
22779 return 0;
22781 _ACEOF
22782 rm -f conftest.$ac_objext conftest$ac_exeext
22783 if { (ac_try="$ac_link"
22784 case "(($ac_try" in
22785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22786 *) ac_try_echo=$ac_try;;
22787 esac
22788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22789 (eval "$ac_link") 2>conftest.er1
22790 ac_status=$?
22791 grep -v '^ *+' conftest.er1 >conftest.err
22792 rm -f conftest.er1
22793 cat conftest.err >&5
22794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22795 (exit $ac_status); } && {
22796 test -z "$ac_c_werror_flag" ||
22797 test ! -s conftest.err
22798 } && test -s conftest$ac_exeext &&
22799 $as_test_x conftest$ac_exeext; then
22800 ac_cv_func_socket=yes
22801 else
22802 echo "$as_me: failed program was:" >&5
22803 sed 's/^/| /' conftest.$ac_ext >&5
22805 ac_cv_func_socket=no
22808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22809 conftest$ac_exeext conftest.$ac_ext
22811 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22812 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22813 if test $ac_cv_func_socket = yes; then
22815 else
22816 ok_so_far=no
22819 if test $ok_so_far = yes; then
22820 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22821 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22822 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22823 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22824 echo $ECHO_N "(cached) $ECHO_C" >&6
22826 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22827 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22828 else
22829 # Is the header compilable?
22830 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22831 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
22832 cat >conftest.$ac_ext <<_ACEOF
22833 /* confdefs.h. */
22834 _ACEOF
22835 cat confdefs.h >>conftest.$ac_ext
22836 cat >>conftest.$ac_ext <<_ACEOF
22837 /* end confdefs.h. */
22838 $ac_includes_default
22839 #include <netinet/in.h>
22840 _ACEOF
22841 rm -f conftest.$ac_objext
22842 if { (ac_try="$ac_compile"
22843 case "(($ac_try" in
22844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22845 *) ac_try_echo=$ac_try;;
22846 esac
22847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22848 (eval "$ac_compile") 2>conftest.er1
22849 ac_status=$?
22850 grep -v '^ *+' conftest.er1 >conftest.err
22851 rm -f conftest.er1
22852 cat conftest.err >&5
22853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22854 (exit $ac_status); } && {
22855 test -z "$ac_c_werror_flag" ||
22856 test ! -s conftest.err
22857 } && test -s conftest.$ac_objext; then
22858 ac_header_compiler=yes
22859 else
22860 echo "$as_me: failed program was:" >&5
22861 sed 's/^/| /' conftest.$ac_ext >&5
22863 ac_header_compiler=no
22866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22867 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22868 echo "${ECHO_T}$ac_header_compiler" >&6; }
22870 # Is the header present?
22871 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22872 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
22873 cat >conftest.$ac_ext <<_ACEOF
22874 /* confdefs.h. */
22875 _ACEOF
22876 cat confdefs.h >>conftest.$ac_ext
22877 cat >>conftest.$ac_ext <<_ACEOF
22878 /* end confdefs.h. */
22879 #include <netinet/in.h>
22880 _ACEOF
22881 if { (ac_try="$ac_cpp conftest.$ac_ext"
22882 case "(($ac_try" in
22883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22884 *) ac_try_echo=$ac_try;;
22885 esac
22886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22887 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22888 ac_status=$?
22889 grep -v '^ *+' conftest.er1 >conftest.err
22890 rm -f conftest.er1
22891 cat conftest.err >&5
22892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22893 (exit $ac_status); } >/dev/null && {
22894 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22895 test ! -s conftest.err
22896 }; then
22897 ac_header_preproc=yes
22898 else
22899 echo "$as_me: failed program was:" >&5
22900 sed 's/^/| /' conftest.$ac_ext >&5
22902 ac_header_preproc=no
22905 rm -f conftest.err conftest.$ac_ext
22906 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22907 echo "${ECHO_T}$ac_header_preproc" >&6; }
22909 # So? What about this header?
22910 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22911 yes:no: )
22912 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22913 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22914 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22915 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22916 ac_header_preproc=yes
22918 no:yes:* )
22919 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22920 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22921 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22922 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22923 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22924 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22925 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22926 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22927 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22928 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22929 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22930 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22933 esac
22934 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22935 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22936 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22937 echo $ECHO_N "(cached) $ECHO_C" >&6
22938 else
22939 ac_cv_header_netinet_in_h=$ac_header_preproc
22941 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22942 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22945 if test $ac_cv_header_netinet_in_h = yes; then
22947 else
22948 ok_so_far=no
22953 if test $ok_so_far = yes; then
22954 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22955 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22956 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22957 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22958 echo $ECHO_N "(cached) $ECHO_C" >&6
22960 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22961 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22962 else
22963 # Is the header compilable?
22964 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22965 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
22966 cat >conftest.$ac_ext <<_ACEOF
22967 /* confdefs.h. */
22968 _ACEOF
22969 cat confdefs.h >>conftest.$ac_ext
22970 cat >>conftest.$ac_ext <<_ACEOF
22971 /* end confdefs.h. */
22972 $ac_includes_default
22973 #include <arpa/inet.h>
22974 _ACEOF
22975 rm -f conftest.$ac_objext
22976 if { (ac_try="$ac_compile"
22977 case "(($ac_try" in
22978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22979 *) ac_try_echo=$ac_try;;
22980 esac
22981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22982 (eval "$ac_compile") 2>conftest.er1
22983 ac_status=$?
22984 grep -v '^ *+' conftest.er1 >conftest.err
22985 rm -f conftest.er1
22986 cat conftest.err >&5
22987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22988 (exit $ac_status); } && {
22989 test -z "$ac_c_werror_flag" ||
22990 test ! -s conftest.err
22991 } && test -s conftest.$ac_objext; then
22992 ac_header_compiler=yes
22993 else
22994 echo "$as_me: failed program was:" >&5
22995 sed 's/^/| /' conftest.$ac_ext >&5
22997 ac_header_compiler=no
23000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23001 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23002 echo "${ECHO_T}$ac_header_compiler" >&6; }
23004 # Is the header present?
23005 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
23006 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
23007 cat >conftest.$ac_ext <<_ACEOF
23008 /* confdefs.h. */
23009 _ACEOF
23010 cat confdefs.h >>conftest.$ac_ext
23011 cat >>conftest.$ac_ext <<_ACEOF
23012 /* end confdefs.h. */
23013 #include <arpa/inet.h>
23014 _ACEOF
23015 if { (ac_try="$ac_cpp conftest.$ac_ext"
23016 case "(($ac_try" in
23017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23018 *) ac_try_echo=$ac_try;;
23019 esac
23020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23021 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23022 ac_status=$?
23023 grep -v '^ *+' conftest.er1 >conftest.err
23024 rm -f conftest.er1
23025 cat conftest.err >&5
23026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23027 (exit $ac_status); } >/dev/null && {
23028 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23029 test ! -s conftest.err
23030 }; then
23031 ac_header_preproc=yes
23032 else
23033 echo "$as_me: failed program was:" >&5
23034 sed 's/^/| /' conftest.$ac_ext >&5
23036 ac_header_preproc=no
23039 rm -f conftest.err conftest.$ac_ext
23040 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23041 echo "${ECHO_T}$ac_header_preproc" >&6; }
23043 # So? What about this header?
23044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23045 yes:no: )
23046 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
23047 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23048 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
23049 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
23050 ac_header_preproc=yes
23052 no:yes:* )
23053 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
23054 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
23055 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
23056 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
23057 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
23058 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
23059 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
23060 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
23061 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
23062 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
23063 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
23064 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
23067 esac
23068 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
23069 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
23070 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23071 echo $ECHO_N "(cached) $ECHO_C" >&6
23072 else
23073 ac_cv_header_arpa_inet_h=$ac_header_preproc
23075 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
23076 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
23079 if test $ac_cv_header_arpa_inet_h = yes; then
23081 else
23082 ok_so_far=no
23087 if test $ok_so_far = yes; then
23089 cat >>confdefs.h <<\_ACEOF
23090 #define HAVE_INET_SOCKETS 1
23091 _ACEOF
23096 for ac_header in sys/ioctl.h
23098 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23100 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23103 echo $ECHO_N "(cached) $ECHO_C" >&6
23105 ac_res=`eval echo '${'$as_ac_Header'}'`
23106 { echo "$as_me:$LINENO: result: $ac_res" >&5
23107 echo "${ECHO_T}$ac_res" >&6; }
23108 else
23109 # Is the header compilable?
23110 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23111 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23112 cat >conftest.$ac_ext <<_ACEOF
23113 /* confdefs.h. */
23114 _ACEOF
23115 cat confdefs.h >>conftest.$ac_ext
23116 cat >>conftest.$ac_ext <<_ACEOF
23117 /* end confdefs.h. */
23118 $ac_includes_default
23119 #include <$ac_header>
23120 _ACEOF
23121 rm -f conftest.$ac_objext
23122 if { (ac_try="$ac_compile"
23123 case "(($ac_try" in
23124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23125 *) ac_try_echo=$ac_try;;
23126 esac
23127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23128 (eval "$ac_compile") 2>conftest.er1
23129 ac_status=$?
23130 grep -v '^ *+' conftest.er1 >conftest.err
23131 rm -f conftest.er1
23132 cat conftest.err >&5
23133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23134 (exit $ac_status); } && {
23135 test -z "$ac_c_werror_flag" ||
23136 test ! -s conftest.err
23137 } && test -s conftest.$ac_objext; then
23138 ac_header_compiler=yes
23139 else
23140 echo "$as_me: failed program was:" >&5
23141 sed 's/^/| /' conftest.$ac_ext >&5
23143 ac_header_compiler=no
23146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23147 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23148 echo "${ECHO_T}$ac_header_compiler" >&6; }
23150 # Is the header present?
23151 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23152 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23153 cat >conftest.$ac_ext <<_ACEOF
23154 /* confdefs.h. */
23155 _ACEOF
23156 cat confdefs.h >>conftest.$ac_ext
23157 cat >>conftest.$ac_ext <<_ACEOF
23158 /* end confdefs.h. */
23159 #include <$ac_header>
23160 _ACEOF
23161 if { (ac_try="$ac_cpp conftest.$ac_ext"
23162 case "(($ac_try" in
23163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23164 *) ac_try_echo=$ac_try;;
23165 esac
23166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23167 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23168 ac_status=$?
23169 grep -v '^ *+' conftest.er1 >conftest.err
23170 rm -f conftest.er1
23171 cat conftest.err >&5
23172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23173 (exit $ac_status); } >/dev/null && {
23174 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23175 test ! -s conftest.err
23176 }; then
23177 ac_header_preproc=yes
23178 else
23179 echo "$as_me: failed program was:" >&5
23180 sed 's/^/| /' conftest.$ac_ext >&5
23182 ac_header_preproc=no
23185 rm -f conftest.err conftest.$ac_ext
23186 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23187 echo "${ECHO_T}$ac_header_preproc" >&6; }
23189 # So? What about this header?
23190 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23191 yes:no: )
23192 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23193 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23195 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23196 ac_header_preproc=yes
23198 no:yes:* )
23199 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23200 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23201 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23202 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23203 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23204 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23205 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23206 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23208 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23209 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23210 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23213 esac
23214 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23217 echo $ECHO_N "(cached) $ECHO_C" >&6
23218 else
23219 eval "$as_ac_Header=\$ac_header_preproc"
23221 ac_res=`eval echo '${'$as_ac_Header'}'`
23222 { echo "$as_me:$LINENO: result: $ac_res" >&5
23223 echo "${ECHO_T}$ac_res" >&6; }
23226 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23227 cat >>confdefs.h <<_ACEOF
23228 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23229 _ACEOF
23233 done
23236 if test -f /usr/lpp/X11/bin/smt.exp; then
23238 cat >>confdefs.h <<\_ACEOF
23239 #define HAVE_AIX_SMT_EXP 1
23240 _ACEOF
23244 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
23245 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
23246 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
23247 { echo "$as_me:$LINENO: result: yes" >&5
23248 echo "${ECHO_T}yes" >&6; }
23250 cat >>confdefs.h <<\_ACEOF
23251 #define HAVE_DEV_PTMX 1
23252 _ACEOF
23254 else
23255 { echo "$as_me:$LINENO: result: no" >&5
23256 echo "${ECHO_T}no" >&6; }
23259 { echo "$as_me:$LINENO: checking for pid_t" >&5
23260 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23261 if test "${ac_cv_type_pid_t+set}" = set; then
23262 echo $ECHO_N "(cached) $ECHO_C" >&6
23263 else
23264 cat >conftest.$ac_ext <<_ACEOF
23265 /* confdefs.h. */
23266 _ACEOF
23267 cat confdefs.h >>conftest.$ac_ext
23268 cat >>conftest.$ac_ext <<_ACEOF
23269 /* end confdefs.h. */
23270 $ac_includes_default
23271 typedef pid_t ac__type_new_;
23273 main ()
23275 if ((ac__type_new_ *) 0)
23276 return 0;
23277 if (sizeof (ac__type_new_))
23278 return 0;
23280 return 0;
23282 _ACEOF
23283 rm -f conftest.$ac_objext
23284 if { (ac_try="$ac_compile"
23285 case "(($ac_try" in
23286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23287 *) ac_try_echo=$ac_try;;
23288 esac
23289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23290 (eval "$ac_compile") 2>conftest.er1
23291 ac_status=$?
23292 grep -v '^ *+' conftest.er1 >conftest.err
23293 rm -f conftest.er1
23294 cat conftest.err >&5
23295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23296 (exit $ac_status); } && {
23297 test -z "$ac_c_werror_flag" ||
23298 test ! -s conftest.err
23299 } && test -s conftest.$ac_objext; then
23300 ac_cv_type_pid_t=yes
23301 else
23302 echo "$as_me: failed program was:" >&5
23303 sed 's/^/| /' conftest.$ac_ext >&5
23305 ac_cv_type_pid_t=no
23308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23310 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23311 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23312 if test $ac_cv_type_pid_t = yes; then
23314 else
23316 cat >>confdefs.h <<_ACEOF
23317 #define pid_t int
23318 _ACEOF
23323 for ac_header in vfork.h
23325 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23327 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23330 echo $ECHO_N "(cached) $ECHO_C" >&6
23332 ac_res=`eval echo '${'$as_ac_Header'}'`
23333 { echo "$as_me:$LINENO: result: $ac_res" >&5
23334 echo "${ECHO_T}$ac_res" >&6; }
23335 else
23336 # Is the header compilable?
23337 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23338 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23339 cat >conftest.$ac_ext <<_ACEOF
23340 /* confdefs.h. */
23341 _ACEOF
23342 cat confdefs.h >>conftest.$ac_ext
23343 cat >>conftest.$ac_ext <<_ACEOF
23344 /* end confdefs.h. */
23345 $ac_includes_default
23346 #include <$ac_header>
23347 _ACEOF
23348 rm -f conftest.$ac_objext
23349 if { (ac_try="$ac_compile"
23350 case "(($ac_try" in
23351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23352 *) ac_try_echo=$ac_try;;
23353 esac
23354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23355 (eval "$ac_compile") 2>conftest.er1
23356 ac_status=$?
23357 grep -v '^ *+' conftest.er1 >conftest.err
23358 rm -f conftest.er1
23359 cat conftest.err >&5
23360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23361 (exit $ac_status); } && {
23362 test -z "$ac_c_werror_flag" ||
23363 test ! -s conftest.err
23364 } && test -s conftest.$ac_objext; then
23365 ac_header_compiler=yes
23366 else
23367 echo "$as_me: failed program was:" >&5
23368 sed 's/^/| /' conftest.$ac_ext >&5
23370 ac_header_compiler=no
23373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23374 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23375 echo "${ECHO_T}$ac_header_compiler" >&6; }
23377 # Is the header present?
23378 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23379 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23380 cat >conftest.$ac_ext <<_ACEOF
23381 /* confdefs.h. */
23382 _ACEOF
23383 cat confdefs.h >>conftest.$ac_ext
23384 cat >>conftest.$ac_ext <<_ACEOF
23385 /* end confdefs.h. */
23386 #include <$ac_header>
23387 _ACEOF
23388 if { (ac_try="$ac_cpp conftest.$ac_ext"
23389 case "(($ac_try" in
23390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23391 *) ac_try_echo=$ac_try;;
23392 esac
23393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23394 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23395 ac_status=$?
23396 grep -v '^ *+' conftest.er1 >conftest.err
23397 rm -f conftest.er1
23398 cat conftest.err >&5
23399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23400 (exit $ac_status); } >/dev/null && {
23401 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23402 test ! -s conftest.err
23403 }; then
23404 ac_header_preproc=yes
23405 else
23406 echo "$as_me: failed program was:" >&5
23407 sed 's/^/| /' conftest.$ac_ext >&5
23409 ac_header_preproc=no
23412 rm -f conftest.err conftest.$ac_ext
23413 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23414 echo "${ECHO_T}$ac_header_preproc" >&6; }
23416 # So? What about this header?
23417 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23418 yes:no: )
23419 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23420 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23422 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23423 ac_header_preproc=yes
23425 no:yes:* )
23426 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23427 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23428 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23429 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23430 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23431 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23432 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23433 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23435 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23436 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23437 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23440 esac
23441 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23444 echo $ECHO_N "(cached) $ECHO_C" >&6
23445 else
23446 eval "$as_ac_Header=\$ac_header_preproc"
23448 ac_res=`eval echo '${'$as_ac_Header'}'`
23449 { echo "$as_me:$LINENO: result: $ac_res" >&5
23450 echo "${ECHO_T}$ac_res" >&6; }
23453 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23454 cat >>confdefs.h <<_ACEOF
23455 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23456 _ACEOF
23460 done
23464 for ac_func in fork vfork
23466 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23467 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23469 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23470 echo $ECHO_N "(cached) $ECHO_C" >&6
23471 else
23472 cat >conftest.$ac_ext <<_ACEOF
23473 /* confdefs.h. */
23474 _ACEOF
23475 cat confdefs.h >>conftest.$ac_ext
23476 cat >>conftest.$ac_ext <<_ACEOF
23477 /* end confdefs.h. */
23478 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23480 #define $ac_func innocuous_$ac_func
23482 /* System header to define __stub macros and hopefully few prototypes,
23483 which can conflict with char $ac_func (); below.
23484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23485 <limits.h> exists even on freestanding compilers. */
23487 #ifdef __STDC__
23488 # include <limits.h>
23489 #else
23490 # include <assert.h>
23491 #endif
23493 #undef $ac_func
23495 /* Override any GCC internal prototype to avoid an error.
23496 Use char because int might match the return type of a GCC
23497 builtin and then its argument prototype would still apply. */
23498 #ifdef __cplusplus
23499 extern "C"
23500 #endif
23501 char $ac_func ();
23502 /* The GNU C library defines this for functions which it implements
23503 to always fail with ENOSYS. Some functions are actually named
23504 something starting with __ and the normal name is an alias. */
23505 #if defined __stub_$ac_func || defined __stub___$ac_func
23506 choke me
23507 #endif
23510 main ()
23512 return $ac_func ();
23514 return 0;
23516 _ACEOF
23517 rm -f conftest.$ac_objext conftest$ac_exeext
23518 if { (ac_try="$ac_link"
23519 case "(($ac_try" in
23520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23521 *) ac_try_echo=$ac_try;;
23522 esac
23523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23524 (eval "$ac_link") 2>conftest.er1
23525 ac_status=$?
23526 grep -v '^ *+' conftest.er1 >conftest.err
23527 rm -f conftest.er1
23528 cat conftest.err >&5
23529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23530 (exit $ac_status); } && {
23531 test -z "$ac_c_werror_flag" ||
23532 test ! -s conftest.err
23533 } && test -s conftest$ac_exeext &&
23534 $as_test_x conftest$ac_exeext; then
23535 eval "$as_ac_var=yes"
23536 else
23537 echo "$as_me: failed program was:" >&5
23538 sed 's/^/| /' conftest.$ac_ext >&5
23540 eval "$as_ac_var=no"
23543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23544 conftest$ac_exeext conftest.$ac_ext
23546 ac_res=`eval echo '${'$as_ac_var'}'`
23547 { echo "$as_me:$LINENO: result: $ac_res" >&5
23548 echo "${ECHO_T}$ac_res" >&6; }
23549 if test `eval echo '${'$as_ac_var'}'` = yes; then
23550 cat >>confdefs.h <<_ACEOF
23551 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23552 _ACEOF
23555 done
23557 if test "x$ac_cv_func_fork" = xyes; then
23558 { echo "$as_me:$LINENO: checking for working fork" >&5
23559 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
23560 if test "${ac_cv_func_fork_works+set}" = set; then
23561 echo $ECHO_N "(cached) $ECHO_C" >&6
23562 else
23563 if test "$cross_compiling" = yes; then
23564 ac_cv_func_fork_works=cross
23565 else
23566 cat >conftest.$ac_ext <<_ACEOF
23567 /* confdefs.h. */
23568 _ACEOF
23569 cat confdefs.h >>conftest.$ac_ext
23570 cat >>conftest.$ac_ext <<_ACEOF
23571 /* end confdefs.h. */
23572 $ac_includes_default
23574 main ()
23577 /* By Ruediger Kuhlmann. */
23578 return fork () < 0;
23581 return 0;
23583 _ACEOF
23584 rm -f conftest$ac_exeext
23585 if { (ac_try="$ac_link"
23586 case "(($ac_try" in
23587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23588 *) ac_try_echo=$ac_try;;
23589 esac
23590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23591 (eval "$ac_link") 2>&5
23592 ac_status=$?
23593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23594 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23595 { (case "(($ac_try" in
23596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23597 *) ac_try_echo=$ac_try;;
23598 esac
23599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23600 (eval "$ac_try") 2>&5
23601 ac_status=$?
23602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23603 (exit $ac_status); }; }; then
23604 ac_cv_func_fork_works=yes
23605 else
23606 echo "$as_me: program exited with status $ac_status" >&5
23607 echo "$as_me: failed program was:" >&5
23608 sed 's/^/| /' conftest.$ac_ext >&5
23610 ( exit $ac_status )
23611 ac_cv_func_fork_works=no
23613 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23618 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23619 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23621 else
23622 ac_cv_func_fork_works=$ac_cv_func_fork
23624 if test "x$ac_cv_func_fork_works" = xcross; then
23625 case $host in
23626 *-*-amigaos* | *-*-msdosdjgpp*)
23627 # Override, as these systems have only a dummy fork() stub
23628 ac_cv_func_fork_works=no
23631 ac_cv_func_fork_works=yes
23633 esac
23634 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23635 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23637 ac_cv_func_vfork_works=$ac_cv_func_vfork
23638 if test "x$ac_cv_func_vfork" = xyes; then
23639 { echo "$as_me:$LINENO: checking for working vfork" >&5
23640 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
23641 if test "${ac_cv_func_vfork_works+set}" = set; then
23642 echo $ECHO_N "(cached) $ECHO_C" >&6
23643 else
23644 if test "$cross_compiling" = yes; then
23645 ac_cv_func_vfork_works=cross
23646 else
23647 cat >conftest.$ac_ext <<_ACEOF
23648 /* confdefs.h. */
23649 _ACEOF
23650 cat confdefs.h >>conftest.$ac_ext
23651 cat >>conftest.$ac_ext <<_ACEOF
23652 /* end confdefs.h. */
23653 /* Thanks to Paul Eggert for this test. */
23654 $ac_includes_default
23655 #include <sys/wait.h>
23656 #ifdef HAVE_VFORK_H
23657 # include <vfork.h>
23658 #endif
23659 /* On some sparc systems, changes by the child to local and incoming
23660 argument registers are propagated back to the parent. The compiler
23661 is told about this with #include <vfork.h>, but some compilers
23662 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23663 static variable whose address is put into a register that is
23664 clobbered by the vfork. */
23665 static void
23666 #ifdef __cplusplus
23667 sparc_address_test (int arg)
23668 # else
23669 sparc_address_test (arg) int arg;
23670 #endif
23672 static pid_t child;
23673 if (!child) {
23674 child = vfork ();
23675 if (child < 0) {
23676 perror ("vfork");
23677 _exit(2);
23679 if (!child) {
23680 arg = getpid();
23681 write(-1, "", 0);
23682 _exit (arg);
23688 main ()
23690 pid_t parent = getpid ();
23691 pid_t child;
23693 sparc_address_test (0);
23695 child = vfork ();
23697 if (child == 0) {
23698 /* Here is another test for sparc vfork register problems. This
23699 test uses lots of local variables, at least as many local
23700 variables as main has allocated so far including compiler
23701 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23702 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23703 reuse the register of parent for one of the local variables,
23704 since it will think that parent can't possibly be used any more
23705 in this routine. Assigning to the local variable will thus
23706 munge parent in the parent process. */
23707 pid_t
23708 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23709 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23710 /* Convince the compiler that p..p7 are live; otherwise, it might
23711 use the same hardware register for all 8 local variables. */
23712 if (p != p1 || p != p2 || p != p3 || p != p4
23713 || p != p5 || p != p6 || p != p7)
23714 _exit(1);
23716 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23717 from child file descriptors. If the child closes a descriptor
23718 before it execs or exits, this munges the parent's descriptor
23719 as well. Test for this by closing stdout in the child. */
23720 _exit(close(fileno(stdout)) != 0);
23721 } else {
23722 int status;
23723 struct stat st;
23725 while (wait(&status) != child)
23727 return (
23728 /* Was there some problem with vforking? */
23729 child < 0
23731 /* Did the child fail? (This shouldn't happen.) */
23732 || status
23734 /* Did the vfork/compiler bug occur? */
23735 || parent != getpid()
23737 /* Did the file descriptor bug occur? */
23738 || fstat(fileno(stdout), &st) != 0
23742 _ACEOF
23743 rm -f conftest$ac_exeext
23744 if { (ac_try="$ac_link"
23745 case "(($ac_try" in
23746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23747 *) ac_try_echo=$ac_try;;
23748 esac
23749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23750 (eval "$ac_link") 2>&5
23751 ac_status=$?
23752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23753 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23754 { (case "(($ac_try" in
23755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23756 *) ac_try_echo=$ac_try;;
23757 esac
23758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23759 (eval "$ac_try") 2>&5
23760 ac_status=$?
23761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23762 (exit $ac_status); }; }; then
23763 ac_cv_func_vfork_works=yes
23764 else
23765 echo "$as_me: program exited with status $ac_status" >&5
23766 echo "$as_me: failed program was:" >&5
23767 sed 's/^/| /' conftest.$ac_ext >&5
23769 ( exit $ac_status )
23770 ac_cv_func_vfork_works=no
23772 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23777 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23778 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23781 if test "x$ac_cv_func_fork_works" = xcross; then
23782 ac_cv_func_vfork_works=$ac_cv_func_vfork
23783 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23784 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23787 if test "x$ac_cv_func_vfork_works" = xyes; then
23789 cat >>confdefs.h <<\_ACEOF
23790 #define HAVE_WORKING_VFORK 1
23791 _ACEOF
23793 else
23795 cat >>confdefs.h <<\_ACEOF
23796 #define vfork fork
23797 _ACEOF
23800 if test "x$ac_cv_func_fork_works" = xyes; then
23802 cat >>confdefs.h <<\_ACEOF
23803 #define HAVE_WORKING_FORK 1
23804 _ACEOF
23809 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23810 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
23811 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23812 echo $ECHO_N "(cached) $ECHO_C" >&6
23813 else
23814 cat >conftest.$ac_ext <<_ACEOF
23815 /* confdefs.h. */
23816 _ACEOF
23817 cat confdefs.h >>conftest.$ac_ext
23818 cat >>conftest.$ac_ext <<_ACEOF
23819 /* end confdefs.h. */
23820 #include <langinfo.h>
23822 main ()
23824 char* cs = nl_langinfo(CODESET);
23826 return 0;
23828 _ACEOF
23829 rm -f conftest.$ac_objext conftest$ac_exeext
23830 if { (ac_try="$ac_link"
23831 case "(($ac_try" in
23832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23833 *) ac_try_echo=$ac_try;;
23834 esac
23835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23836 (eval "$ac_link") 2>conftest.er1
23837 ac_status=$?
23838 grep -v '^ *+' conftest.er1 >conftest.err
23839 rm -f conftest.er1
23840 cat conftest.err >&5
23841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23842 (exit $ac_status); } && {
23843 test -z "$ac_c_werror_flag" ||
23844 test ! -s conftest.err
23845 } && test -s conftest$ac_exeext &&
23846 $as_test_x conftest$ac_exeext; then
23847 emacs_cv_langinfo_codeset=yes
23848 else
23849 echo "$as_me: failed program was:" >&5
23850 sed 's/^/| /' conftest.$ac_ext >&5
23852 emacs_cv_langinfo_codeset=no
23855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23856 conftest$ac_exeext conftest.$ac_ext
23859 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23860 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23861 if test $emacs_cv_langinfo_codeset = yes; then
23863 cat >>confdefs.h <<\_ACEOF
23864 #define HAVE_LANGINFO_CODESET 1
23865 _ACEOF
23869 { echo "$as_me:$LINENO: checking for size_t" >&5
23870 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23871 if test "${ac_cv_type_size_t+set}" = set; then
23872 echo $ECHO_N "(cached) $ECHO_C" >&6
23873 else
23874 cat >conftest.$ac_ext <<_ACEOF
23875 /* confdefs.h. */
23876 _ACEOF
23877 cat confdefs.h >>conftest.$ac_ext
23878 cat >>conftest.$ac_ext <<_ACEOF
23879 /* end confdefs.h. */
23880 $ac_includes_default
23881 typedef size_t ac__type_new_;
23883 main ()
23885 if ((ac__type_new_ *) 0)
23886 return 0;
23887 if (sizeof (ac__type_new_))
23888 return 0;
23890 return 0;
23892 _ACEOF
23893 rm -f conftest.$ac_objext
23894 if { (ac_try="$ac_compile"
23895 case "(($ac_try" in
23896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23897 *) ac_try_echo=$ac_try;;
23898 esac
23899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23900 (eval "$ac_compile") 2>conftest.er1
23901 ac_status=$?
23902 grep -v '^ *+' conftest.er1 >conftest.err
23903 rm -f conftest.er1
23904 cat conftest.err >&5
23905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23906 (exit $ac_status); } && {
23907 test -z "$ac_c_werror_flag" ||
23908 test ! -s conftest.err
23909 } && test -s conftest.$ac_objext; then
23910 ac_cv_type_size_t=yes
23911 else
23912 echo "$as_me: failed program was:" >&5
23913 sed 's/^/| /' conftest.$ac_ext >&5
23915 ac_cv_type_size_t=no
23918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23920 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23921 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23922 if test $ac_cv_type_size_t = yes; then
23924 cat >>confdefs.h <<_ACEOF
23925 #define HAVE_SIZE_T 1
23926 _ACEOF
23932 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23933 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23934 if test "${ac_cv_type_mbstate_t+set}" = set; then
23935 echo $ECHO_N "(cached) $ECHO_C" >&6
23936 else
23937 cat >conftest.$ac_ext <<_ACEOF
23938 /* confdefs.h. */
23939 _ACEOF
23940 cat confdefs.h >>conftest.$ac_ext
23941 cat >>conftest.$ac_ext <<_ACEOF
23942 /* end confdefs.h. */
23943 $ac_includes_default
23944 # include <wchar.h>
23946 main ()
23948 mbstate_t x; return sizeof x;
23950 return 0;
23952 _ACEOF
23953 rm -f conftest.$ac_objext
23954 if { (ac_try="$ac_compile"
23955 case "(($ac_try" in
23956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23957 *) ac_try_echo=$ac_try;;
23958 esac
23959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23960 (eval "$ac_compile") 2>conftest.er1
23961 ac_status=$?
23962 grep -v '^ *+' conftest.er1 >conftest.err
23963 rm -f conftest.er1
23964 cat conftest.err >&5
23965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23966 (exit $ac_status); } && {
23967 test -z "$ac_c_werror_flag" ||
23968 test ! -s conftest.err
23969 } && test -s conftest.$ac_objext; then
23970 ac_cv_type_mbstate_t=yes
23971 else
23972 echo "$as_me: failed program was:" >&5
23973 sed 's/^/| /' conftest.$ac_ext >&5
23975 ac_cv_type_mbstate_t=no
23978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23980 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23981 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23982 if test $ac_cv_type_mbstate_t = yes; then
23984 cat >>confdefs.h <<\_ACEOF
23985 #define HAVE_MBSTATE_T 1
23986 _ACEOF
23988 else
23990 cat >>confdefs.h <<\_ACEOF
23991 #define mbstate_t int
23992 _ACEOF
23996 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23997 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
23998 if test "${emacs_cv_c_restrict+set}" = set; then
23999 echo $ECHO_N "(cached) $ECHO_C" >&6
24000 else
24001 cat >conftest.$ac_ext <<_ACEOF
24002 /* confdefs.h. */
24003 _ACEOF
24004 cat confdefs.h >>conftest.$ac_ext
24005 cat >>conftest.$ac_ext <<_ACEOF
24006 /* end confdefs.h. */
24007 void fred (int *restrict x);
24009 main ()
24013 return 0;
24015 _ACEOF
24016 rm -f conftest.$ac_objext
24017 if { (ac_try="$ac_compile"
24018 case "(($ac_try" in
24019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24020 *) ac_try_echo=$ac_try;;
24021 esac
24022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24023 (eval "$ac_compile") 2>conftest.er1
24024 ac_status=$?
24025 grep -v '^ *+' conftest.er1 >conftest.err
24026 rm -f conftest.er1
24027 cat conftest.err >&5
24028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24029 (exit $ac_status); } && {
24030 test -z "$ac_c_werror_flag" ||
24031 test ! -s conftest.err
24032 } && test -s conftest.$ac_objext; then
24033 emacs_cv_c_restrict=yes
24034 else
24035 echo "$as_me: failed program was:" >&5
24036 sed 's/^/| /' conftest.$ac_ext >&5
24038 cat >conftest.$ac_ext <<_ACEOF
24039 /* confdefs.h. */
24040 _ACEOF
24041 cat confdefs.h >>conftest.$ac_ext
24042 cat >>conftest.$ac_ext <<_ACEOF
24043 /* end confdefs.h. */
24044 void fred (int *__restrict x);
24046 main ()
24050 return 0;
24052 _ACEOF
24053 rm -f conftest.$ac_objext
24054 if { (ac_try="$ac_compile"
24055 case "(($ac_try" in
24056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24057 *) ac_try_echo=$ac_try;;
24058 esac
24059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24060 (eval "$ac_compile") 2>conftest.er1
24061 ac_status=$?
24062 grep -v '^ *+' conftest.er1 >conftest.err
24063 rm -f conftest.er1
24064 cat conftest.err >&5
24065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24066 (exit $ac_status); } && {
24067 test -z "$ac_c_werror_flag" ||
24068 test ! -s conftest.err
24069 } && test -s conftest.$ac_objext; then
24070 emacs_cv_c_restrict=__restrict
24071 else
24072 echo "$as_me: failed program was:" >&5
24073 sed 's/^/| /' conftest.$ac_ext >&5
24075 emacs_cv_c_restrict=no
24078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24083 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
24084 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
24085 case "$emacs_cv_c_restrict" in
24086 yes) emacs_restrict=restrict;;
24087 no) emacs_restrict="";;
24088 *) emacs_restrict="$emacs_cv_c_restrict";;
24089 esac
24090 if test "$emacs_restrict" != __restrict; then
24092 cat >>confdefs.h <<_ACEOF
24093 #define __restrict $emacs_restrict
24094 _ACEOF
24098 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
24099 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
24100 if test "${emacs_cv_c_restrict_arr+set}" = set; then
24101 echo $ECHO_N "(cached) $ECHO_C" >&6
24102 else
24103 cat >conftest.$ac_ext <<_ACEOF
24104 /* confdefs.h. */
24105 _ACEOF
24106 cat confdefs.h >>conftest.$ac_ext
24107 cat >>conftest.$ac_ext <<_ACEOF
24108 /* end confdefs.h. */
24109 void fred (int x[__restrict]);
24111 main ()
24115 return 0;
24117 _ACEOF
24118 rm -f conftest.$ac_objext
24119 if { (ac_try="$ac_compile"
24120 case "(($ac_try" in
24121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24122 *) ac_try_echo=$ac_try;;
24123 esac
24124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24125 (eval "$ac_compile") 2>conftest.er1
24126 ac_status=$?
24127 grep -v '^ *+' conftest.er1 >conftest.err
24128 rm -f conftest.er1
24129 cat conftest.err >&5
24130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24131 (exit $ac_status); } && {
24132 test -z "$ac_c_werror_flag" ||
24133 test ! -s conftest.err
24134 } && test -s conftest.$ac_objext; then
24135 emacs_cv_c_restrict_arr=yes
24136 else
24137 echo "$as_me: failed program was:" >&5
24138 sed 's/^/| /' conftest.$ac_ext >&5
24140 emacs_cv_c_restrict_arr=no
24143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24145 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
24146 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
24147 if test "$emacs_cv_c_restrict_arr" = yes; then
24149 cat >>confdefs.h <<\_ACEOF
24150 #define __restrict_arr __restrict
24151 _ACEOF
24157 # Set up the CFLAGS for real compilation, so we can substitute it.
24158 CFLAGS="$REAL_CFLAGS"
24159 CPPFLAGS="$REAL_CPPFLAGS"
24161 #### Find out which version of Emacs this is.
24162 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
24163 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
24164 if test x"${version}" = x; then
24165 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
24166 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
24167 { (exit 1); exit 1; }; }
24170 ### Specify what sort of things we'll be editing into Makefile and config.h.
24171 ### Use configuration here uncanonicalized to avoid exceeding size limits.
24208 cat >>confdefs.h <<_ACEOF
24209 #define EMACS_CONFIGURATION "${canonical}"
24210 _ACEOF
24213 cat >>confdefs.h <<_ACEOF
24214 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
24215 _ACEOF
24218 cat >>confdefs.h <<_ACEOF
24219 #define config_machfile "${machfile}"
24220 _ACEOF
24223 cat >>confdefs.h <<_ACEOF
24224 #define config_opsysfile "${opsysfile}"
24225 _ACEOF
24228 cat >>confdefs.h <<_ACEOF
24229 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
24230 _ACEOF
24233 cat >>confdefs.h <<_ACEOF
24234 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
24235 _ACEOF
24238 cat >>confdefs.h <<_ACEOF
24239 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
24240 _ACEOF
24243 cat >>confdefs.h <<_ACEOF
24244 #define UNEXEC_SRC ${UNEXEC_SRC}
24245 _ACEOF
24248 if test "${HAVE_X_WINDOWS}" = "yes" ; then
24250 cat >>confdefs.h <<\_ACEOF
24251 #define HAVE_X_WINDOWS 1
24252 _ACEOF
24255 if test "${USE_X_TOOLKIT}" != "none" ; then
24257 cat >>confdefs.h <<\_ACEOF
24258 #define USE_X_TOOLKIT 1
24259 _ACEOF
24261 if test "${USE_X_TOOLKIT}" = "LUCID"; then
24263 cat >>confdefs.h <<\_ACEOF
24264 #define USE_LUCID 1
24265 _ACEOF
24267 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
24269 cat >>confdefs.h <<\_ACEOF
24270 #define USE_MOTIF 1
24271 _ACEOF
24275 if test "${HAVE_X11}" = "yes" ; then
24277 cat >>confdefs.h <<\_ACEOF
24278 #define HAVE_X11 1
24279 _ACEOF
24282 if test "${HAVE_MENUS}" = "yes" ; then
24284 cat >>confdefs.h <<\_ACEOF
24285 #define HAVE_MENUS 1
24286 _ACEOF
24289 if test "${GNU_MALLOC}" = "yes" ; then
24291 cat >>confdefs.h <<\_ACEOF
24292 #define GNU_MALLOC 1
24293 _ACEOF
24296 if test "${REL_ALLOC}" = "yes" ; then
24298 cat >>confdefs.h <<\_ACEOF
24299 #define REL_ALLOC 1
24300 _ACEOF
24309 #### Report on what we decided to do.
24310 #### Report GTK as a toolkit, even if it doesn't use Xt.
24311 #### It makes printing result more understandable as using GTK sets
24312 #### toolkit_scroll_bars to yes by default.
24313 if test "${HAVE_GTK}" = "yes"; then
24314 USE_X_TOOLKIT=GTK
24317 echo "
24318 Configured for \`${canonical}'.
24320 Where should the build process find the source code? ${srcdir}
24321 What operating system and machine description files should Emacs use?
24322 \`${opsysfile}' and \`${machfile}'
24323 What compiler should emacs be built with? ${CC} ${CFLAGS}
24324 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
24325 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
24326 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
24327 What window system should Emacs use? ${window_system}
24328 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
24330 if test -n "${x_includes}"; then
24331 echo " Where do we find X Windows header files? ${x_includes}"
24332 else
24333 echo " Where do we find X Windows header files? Standard dirs"
24335 if test -n "${x_libraries}"; then
24336 echo " Where do we find X Windows libraries? ${x_libraries}"
24337 else
24338 echo " Where do we find X Windows libraries? Standard dirs"
24341 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
24342 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
24343 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
24344 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
24345 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
24346 echo " Does Emacs use -lpng? ${HAVE_PNG}"
24347 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
24348 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
24349 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
24351 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
24352 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
24353 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
24354 echo " Does Emacs use -lxft? ${HAVE_XFT}"
24356 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
24357 echo
24359 if test $USE_XASSERTS = yes; then
24360 echo " Compiling with asserts turned on."
24361 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
24364 echo
24366 if test "$USE_X_TOOLKIT" = GTK; then
24367 case "$canonical" in
24368 *cygwin*)
24369 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
24370 will probably get a crash on startup. If this happens, please use another
24371 toolkit for Emacs. See etc/PROBLEMS for more information."
24373 esac
24377 if test "$HAVE_CARBON" = "yes"; then
24378 echo
24379 echo "Warning: The Mac Carbon port is currently unsupported and has
24380 known problems. It is not recommended for use by non-developers.
24381 Read the emacs-devel archives for more information."
24382 echo
24385 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
24386 echo "D-Bus integration has been tested for GNU/Linux only."
24387 echo
24391 # Remove any trailing slashes in these variables.
24392 test "${prefix}" != NONE &&
24393 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24394 test "${exec_prefix}" != NONE &&
24395 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24397 # Now get this: Some word that is part of the ${srcdir} directory name
24398 # or the ${configuration} value might, just might, happen to be an
24399 # identifier like `sun4' or `i386' or something, and be predefined by
24400 # the C preprocessor to some helpful value like 1, or maybe the empty
24401 # string. Needless to say consequent macro substitutions are less
24402 # than conducive to the makefile finding the correct directory.
24403 cpp_undefs="`echo $srcdir $configuration $canonical |
24404 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24405 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
24407 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
24408 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
24409 ## from Makefile.c can correctly provide the arg `-traditional' to the
24410 ## C preprocessor.
24412 cat >conftest.$ac_ext <<_ACEOF
24413 /* confdefs.h. */
24414 _ACEOF
24415 cat confdefs.h >>conftest.$ac_ext
24416 cat >>conftest.$ac_ext <<_ACEOF
24417 /* end confdefs.h. */
24418 yes..yes
24419 _ACEOF
24420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24421 $EGREP "yes..yes" >/dev/null 2>&1; then
24422 CPP_NEED_TRADITIONAL=no
24423 else
24424 CPP_NEED_TRADITIONAL=yes
24426 rm -f conftest*
24429 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"
24431 ac_config_commands="$ac_config_commands default"
24433 cat >confcache <<\_ACEOF
24434 # This file is a shell script that caches the results of configure
24435 # tests run on this system so they can be shared between configure
24436 # scripts and configure runs, see configure's option --config-cache.
24437 # It is not useful on other systems. If it contains results you don't
24438 # want to keep, you may remove or edit it.
24440 # config.status only pays attention to the cache file if you give it
24441 # the --recheck option to rerun configure.
24443 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24444 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24445 # following values.
24447 _ACEOF
24449 # The following way of writing the cache mishandles newlines in values,
24450 # but we know of no workaround that is simple, portable, and efficient.
24451 # So, we kill variables containing newlines.
24452 # Ultrix sh set writes to stderr and can't be redirected directly,
24453 # and sets the high bit in the cache file unless we assign to the vars.
24455 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24456 eval ac_val=\$$ac_var
24457 case $ac_val in #(
24458 *${as_nl}*)
24459 case $ac_var in #(
24460 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24461 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24462 esac
24463 case $ac_var in #(
24464 _ | IFS | as_nl) ;; #(
24465 *) $as_unset $ac_var ;;
24466 esac ;;
24467 esac
24468 done
24470 (set) 2>&1 |
24471 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24472 *${as_nl}ac_space=\ *)
24473 # `set' does not quote correctly, so add quotes (double-quote
24474 # substitution turns \\\\ into \\, and sed turns \\ into \).
24475 sed -n \
24476 "s/'/'\\\\''/g;
24477 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24478 ;; #(
24480 # `set' quotes correctly as required by POSIX, so do not add quotes.
24481 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24483 esac |
24484 sort
24486 sed '
24487 /^ac_cv_env_/b end
24488 t clear
24489 :clear
24490 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24491 t end
24492 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24493 :end' >>confcache
24494 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24495 if test -w "$cache_file"; then
24496 test "x$cache_file" != "x/dev/null" &&
24497 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24498 echo "$as_me: updating cache $cache_file" >&6;}
24499 cat confcache >$cache_file
24500 else
24501 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24502 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24505 rm -f confcache
24507 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24508 # Let make expand exec_prefix.
24509 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24511 DEFS=-DHAVE_CONFIG_H
24513 ac_libobjs=
24514 ac_ltlibobjs=
24515 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24516 # 1. Remove the extension, and $U if already installed.
24517 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24518 ac_i=`echo "$ac_i" | sed "$ac_script"`
24519 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24520 # will be set to the directory where LIBOBJS objects are built.
24521 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24522 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24523 done
24524 LIBOBJS=$ac_libobjs
24526 LTLIBOBJS=$ac_ltlibobjs
24530 : ${CONFIG_STATUS=./config.status}
24531 ac_clean_files_save=$ac_clean_files
24532 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24533 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24534 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24535 cat >$CONFIG_STATUS <<_ACEOF
24536 #! $SHELL
24537 # Generated by $as_me.
24538 # Run this file to recreate the current configuration.
24539 # Compiler output produced by configure, useful for debugging
24540 # configure, is in config.log if it exists.
24542 debug=false
24543 ac_cs_recheck=false
24544 ac_cs_silent=false
24545 SHELL=\${CONFIG_SHELL-$SHELL}
24546 _ACEOF
24548 cat >>$CONFIG_STATUS <<\_ACEOF
24549 ## --------------------- ##
24550 ## M4sh Initialization. ##
24551 ## --------------------- ##
24553 # Be more Bourne compatible
24554 DUALCASE=1; export DUALCASE # for MKS sh
24555 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24556 emulate sh
24557 NULLCMD=:
24558 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24559 # is contrary to our usage. Disable this feature.
24560 alias -g '${1+"$@"}'='"$@"'
24561 setopt NO_GLOB_SUBST
24562 else
24563 case `(set -o) 2>/dev/null` in
24564 *posix*) set -o posix ;;
24565 esac
24572 # PATH needs CR
24573 # Avoid depending upon Character Ranges.
24574 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24575 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24576 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24577 as_cr_digits='0123456789'
24578 as_cr_alnum=$as_cr_Letters$as_cr_digits
24580 # The user is always right.
24581 if test "${PATH_SEPARATOR+set}" != set; then
24582 echo "#! /bin/sh" >conf$$.sh
24583 echo "exit 0" >>conf$$.sh
24584 chmod +x conf$$.sh
24585 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24586 PATH_SEPARATOR=';'
24587 else
24588 PATH_SEPARATOR=:
24590 rm -f conf$$.sh
24593 # Support unset when possible.
24594 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24595 as_unset=unset
24596 else
24597 as_unset=false
24601 # IFS
24602 # We need space, tab and new line, in precisely that order. Quoting is
24603 # there to prevent editors from complaining about space-tab.
24604 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24605 # splitting by setting IFS to empty value.)
24606 as_nl='
24608 IFS=" "" $as_nl"
24610 # Find who we are. Look in the path if we contain no directory separator.
24611 case $0 in
24612 *[\\/]* ) as_myself=$0 ;;
24613 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24614 for as_dir in $PATH
24616 IFS=$as_save_IFS
24617 test -z "$as_dir" && as_dir=.
24618 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24619 done
24620 IFS=$as_save_IFS
24623 esac
24624 # We did not find ourselves, most probably we were run as `sh COMMAND'
24625 # in which case we are not to be found in the path.
24626 if test "x$as_myself" = x; then
24627 as_myself=$0
24629 if test ! -f "$as_myself"; then
24630 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24631 { (exit 1); exit 1; }
24634 # Work around bugs in pre-3.0 UWIN ksh.
24635 for as_var in ENV MAIL MAILPATH
24636 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24637 done
24638 PS1='$ '
24639 PS2='> '
24640 PS4='+ '
24642 # NLS nuisances.
24643 for as_var in \
24644 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24645 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24646 LC_TELEPHONE LC_TIME
24648 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24649 eval $as_var=C; export $as_var
24650 else
24651 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24653 done
24655 # Required to use basename.
24656 if expr a : '\(a\)' >/dev/null 2>&1 &&
24657 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24658 as_expr=expr
24659 else
24660 as_expr=false
24663 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24664 as_basename=basename
24665 else
24666 as_basename=false
24670 # Name of the executable.
24671 as_me=`$as_basename -- "$0" ||
24672 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24673 X"$0" : 'X\(//\)$' \| \
24674 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24675 echo X/"$0" |
24676 sed '/^.*\/\([^/][^/]*\)\/*$/{
24677 s//\1/
24680 /^X\/\(\/\/\)$/{
24681 s//\1/
24684 /^X\/\(\/\).*/{
24685 s//\1/
24688 s/.*/./; q'`
24690 # CDPATH.
24691 $as_unset CDPATH
24695 as_lineno_1=$LINENO
24696 as_lineno_2=$LINENO
24697 test "x$as_lineno_1" != "x$as_lineno_2" &&
24698 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24700 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24701 # uniformly replaced by the line number. The first 'sed' inserts a
24702 # line-number line after each line using $LINENO; the second 'sed'
24703 # does the real work. The second script uses 'N' to pair each
24704 # line-number line with the line containing $LINENO, and appends
24705 # trailing '-' during substitution so that $LINENO is not a special
24706 # case at line end.
24707 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24708 # scripts with optimization help from Paolo Bonzini. Blame Lee
24709 # E. McMahon (1931-1989) for sed's syntax. :-)
24710 sed -n '
24712 /[$]LINENO/=
24713 ' <$as_myself |
24714 sed '
24715 s/[$]LINENO.*/&-/
24716 t lineno
24718 :lineno
24720 :loop
24721 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24722 t loop
24723 s/-\n.*//
24724 ' >$as_me.lineno &&
24725 chmod +x "$as_me.lineno" ||
24726 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24727 { (exit 1); exit 1; }; }
24729 # Don't try to exec as it changes $[0], causing all sort of problems
24730 # (the dirname of $[0] is not the place where we might find the
24731 # original and so on. Autoconf is especially sensitive to this).
24732 . "./$as_me.lineno"
24733 # Exit status is that of the last command.
24734 exit
24738 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24739 as_dirname=dirname
24740 else
24741 as_dirname=false
24744 ECHO_C= ECHO_N= ECHO_T=
24745 case `echo -n x` in
24746 -n*)
24747 case `echo 'x\c'` in
24748 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24749 *) ECHO_C='\c';;
24750 esac;;
24752 ECHO_N='-n';;
24753 esac
24755 if expr a : '\(a\)' >/dev/null 2>&1 &&
24756 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24757 as_expr=expr
24758 else
24759 as_expr=false
24762 rm -f conf$$ conf$$.exe conf$$.file
24763 if test -d conf$$.dir; then
24764 rm -f conf$$.dir/conf$$.file
24765 else
24766 rm -f conf$$.dir
24767 mkdir conf$$.dir
24769 echo >conf$$.file
24770 if ln -s conf$$.file conf$$ 2>/dev/null; then
24771 as_ln_s='ln -s'
24772 # ... but there are two gotchas:
24773 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24774 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24775 # In both cases, we have to default to `cp -p'.
24776 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24777 as_ln_s='cp -p'
24778 elif ln conf$$.file conf$$ 2>/dev/null; then
24779 as_ln_s=ln
24780 else
24781 as_ln_s='cp -p'
24783 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24784 rmdir conf$$.dir 2>/dev/null
24786 if mkdir -p . 2>/dev/null; then
24787 as_mkdir_p=:
24788 else
24789 test -d ./-p && rmdir ./-p
24790 as_mkdir_p=false
24793 if test -x / >/dev/null 2>&1; then
24794 as_test_x='test -x'
24795 else
24796 if ls -dL / >/dev/null 2>&1; then
24797 as_ls_L_option=L
24798 else
24799 as_ls_L_option=
24801 as_test_x='
24802 eval sh -c '\''
24803 if test -d "$1"; then
24804 test -d "$1/.";
24805 else
24806 case $1 in
24807 -*)set "./$1";;
24808 esac;
24809 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24810 ???[sx]*):;;*)false;;esac;fi
24811 '\'' sh
24814 as_executable_p=$as_test_x
24816 # Sed expression to map a string onto a valid CPP name.
24817 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24819 # Sed expression to map a string onto a valid variable name.
24820 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24823 exec 6>&1
24825 # Save the log message, to keep $[0] and so on meaningful, and to
24826 # report actual input values of CONFIG_FILES etc. instead of their
24827 # values after options handling.
24828 ac_log="
24829 This file was extended by emacs $as_me 23.0.60, which was
24830 generated by GNU Autoconf 2.61. Invocation command line was
24832 CONFIG_FILES = $CONFIG_FILES
24833 CONFIG_HEADERS = $CONFIG_HEADERS
24834 CONFIG_LINKS = $CONFIG_LINKS
24835 CONFIG_COMMANDS = $CONFIG_COMMANDS
24836 $ $0 $@
24838 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24841 _ACEOF
24843 cat >>$CONFIG_STATUS <<_ACEOF
24844 # Files that config.status was made for.
24845 config_files="$ac_config_files"
24846 config_headers="$ac_config_headers"
24847 config_commands="$ac_config_commands"
24849 _ACEOF
24851 cat >>$CONFIG_STATUS <<\_ACEOF
24852 ac_cs_usage="\
24853 \`$as_me' instantiates files from templates according to the
24854 current configuration.
24856 Usage: $0 [OPTIONS] [FILE]...
24858 -h, --help print this help, then exit
24859 -V, --version print version number and configuration settings, then exit
24860 -q, --quiet do not print progress messages
24861 -d, --debug don't remove temporary files
24862 --recheck update $as_me by reconfiguring in the same conditions
24863 --file=FILE[:TEMPLATE]
24864 instantiate the configuration file FILE
24865 --header=FILE[:TEMPLATE]
24866 instantiate the configuration header FILE
24868 Configuration files:
24869 $config_files
24871 Configuration headers:
24872 $config_headers
24874 Configuration commands:
24875 $config_commands
24877 Report bugs to <bug-autoconf@gnu.org>."
24879 _ACEOF
24880 cat >>$CONFIG_STATUS <<_ACEOF
24881 ac_cs_version="\\
24882 emacs config.status 23.0.60
24883 configured by $0, generated by GNU Autoconf 2.61,
24884 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24886 Copyright (C) 2006 Free Software Foundation, Inc.
24887 This config.status script is free software; the Free Software Foundation
24888 gives unlimited permission to copy, distribute and modify it."
24890 ac_pwd='$ac_pwd'
24891 srcdir='$srcdir'
24892 INSTALL='$INSTALL'
24893 _ACEOF
24895 cat >>$CONFIG_STATUS <<\_ACEOF
24896 # If no file are specified by the user, then we need to provide default
24897 # value. By we need to know if files were specified by the user.
24898 ac_need_defaults=:
24899 while test $# != 0
24901 case $1 in
24902 --*=*)
24903 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24904 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24905 ac_shift=:
24908 ac_option=$1
24909 ac_optarg=$2
24910 ac_shift=shift
24912 esac
24914 case $ac_option in
24915 # Handling of the options.
24916 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24917 ac_cs_recheck=: ;;
24918 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24919 echo "$ac_cs_version"; exit ;;
24920 --debug | --debu | --deb | --de | --d | -d )
24921 debug=: ;;
24922 --file | --fil | --fi | --f )
24923 $ac_shift
24924 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24925 ac_need_defaults=false;;
24926 --header | --heade | --head | --hea )
24927 $ac_shift
24928 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24929 ac_need_defaults=false;;
24930 --he | --h)
24931 # Conflict between --help and --header
24932 { echo "$as_me: error: ambiguous option: $1
24933 Try \`$0 --help' for more information." >&2
24934 { (exit 1); exit 1; }; };;
24935 --help | --hel | -h )
24936 echo "$ac_cs_usage"; exit ;;
24937 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24938 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24939 ac_cs_silent=: ;;
24941 # This is an error.
24942 -*) { echo "$as_me: error: unrecognized option: $1
24943 Try \`$0 --help' for more information." >&2
24944 { (exit 1); exit 1; }; } ;;
24946 *) ac_config_targets="$ac_config_targets $1"
24947 ac_need_defaults=false ;;
24949 esac
24950 shift
24951 done
24953 ac_configure_extra_args=
24955 if $ac_cs_silent; then
24956 exec 6>/dev/null
24957 ac_configure_extra_args="$ac_configure_extra_args --silent"
24960 _ACEOF
24961 cat >>$CONFIG_STATUS <<_ACEOF
24962 if \$ac_cs_recheck; then
24963 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24964 CONFIG_SHELL=$SHELL
24965 export CONFIG_SHELL
24966 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24969 _ACEOF
24970 cat >>$CONFIG_STATUS <<\_ACEOF
24971 exec 5>>config.log
24973 echo
24974 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24975 ## Running $as_me. ##
24976 _ASBOX
24977 echo "$ac_log"
24978 } >&5
24980 _ACEOF
24981 cat >>$CONFIG_STATUS <<_ACEOF
24983 # INIT-COMMANDS
24985 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
24987 _ACEOF
24989 cat >>$CONFIG_STATUS <<\_ACEOF
24991 # Handling of arguments.
24992 for ac_config_target in $ac_config_targets
24994 case $ac_config_target in
24995 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24996 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24997 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24998 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24999 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
25000 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
25001 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
25002 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
25003 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
25004 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
25005 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
25006 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
25007 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
25009 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25010 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25011 { (exit 1); exit 1; }; };;
25012 esac
25013 done
25016 # If the user did not use the arguments to specify the items to instantiate,
25017 # then the envvar interface is used. Set only those that are not.
25018 # We use the long form for the default assignment because of an extremely
25019 # bizarre bug on SunOS 4.1.3.
25020 if $ac_need_defaults; then
25021 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25022 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25023 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25026 # Have a temporary directory for convenience. Make it in the build tree
25027 # simply because there is no reason against having it here, and in addition,
25028 # creating and moving files from /tmp can sometimes cause problems.
25029 # Hook for its removal unless debugging.
25030 # Note that there is a small window in which the directory will not be cleaned:
25031 # after its creation but before its name has been assigned to `$tmp'.
25032 $debug ||
25034 tmp=
25035 trap 'exit_status=$?
25036 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25038 trap '{ (exit 1); exit 1; }' 1 2 13 15
25040 # Create a (secure) tmp directory for tmp files.
25043 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25044 test -n "$tmp" && test -d "$tmp"
25045 } ||
25047 tmp=./conf$$-$RANDOM
25048 (umask 077 && mkdir "$tmp")
25049 } ||
25051 echo "$me: cannot create a temporary directory in ." >&2
25052 { (exit 1); exit 1; }
25056 # Set up the sed scripts for CONFIG_FILES section.
25059 # No need to generate the scripts if there are no CONFIG_FILES.
25060 # This happens for instance when ./config.status config.h
25061 if test -n "$CONFIG_FILES"; then
25063 _ACEOF
25067 ac_delim='%!_!# '
25068 for ac_last_try in false false false false false :; do
25069 cat >conf$$subs.sed <<_ACEOF
25070 SHELL!$SHELL$ac_delim
25071 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25072 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25073 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25074 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25075 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25076 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25077 exec_prefix!$exec_prefix$ac_delim
25078 prefix!$prefix$ac_delim
25079 program_transform_name!$program_transform_name$ac_delim
25080 bindir!$bindir$ac_delim
25081 sbindir!$sbindir$ac_delim
25082 libexecdir!$libexecdir$ac_delim
25083 datarootdir!$datarootdir$ac_delim
25084 datadir!$datadir$ac_delim
25085 sysconfdir!$sysconfdir$ac_delim
25086 sharedstatedir!$sharedstatedir$ac_delim
25087 localstatedir!$localstatedir$ac_delim
25088 includedir!$includedir$ac_delim
25089 oldincludedir!$oldincludedir$ac_delim
25090 docdir!$docdir$ac_delim
25091 infodir!$infodir$ac_delim
25092 htmldir!$htmldir$ac_delim
25093 dvidir!$dvidir$ac_delim
25094 pdfdir!$pdfdir$ac_delim
25095 psdir!$psdir$ac_delim
25096 libdir!$libdir$ac_delim
25097 localedir!$localedir$ac_delim
25098 mandir!$mandir$ac_delim
25099 DEFS!$DEFS$ac_delim
25100 ECHO_C!$ECHO_C$ac_delim
25101 ECHO_N!$ECHO_N$ac_delim
25102 ECHO_T!$ECHO_T$ac_delim
25103 LIBS!$LIBS$ac_delim
25104 build_alias!$build_alias$ac_delim
25105 host_alias!$host_alias$ac_delim
25106 target_alias!$target_alias$ac_delim
25107 MAINT!$MAINT$ac_delim
25108 build!$build$ac_delim
25109 build_cpu!$build_cpu$ac_delim
25110 build_vendor!$build_vendor$ac_delim
25111 build_os!$build_os$ac_delim
25112 host!$host$ac_delim
25113 host_cpu!$host_cpu$ac_delim
25114 host_vendor!$host_vendor$ac_delim
25115 host_os!$host_os$ac_delim
25116 CC!$CC$ac_delim
25117 CFLAGS!$CFLAGS$ac_delim
25118 LDFLAGS!$LDFLAGS$ac_delim
25119 CPPFLAGS!$CPPFLAGS$ac_delim
25120 ac_ct_CC!$ac_ct_CC$ac_delim
25121 EXEEXT!$EXEEXT$ac_delim
25122 OBJEXT!$OBJEXT$ac_delim
25123 CPP!$CPP$ac_delim
25124 GREP!$GREP$ac_delim
25125 EGREP!$EGREP$ac_delim
25126 LN_S!$LN_S$ac_delim
25127 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25128 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25129 INSTALL_DATA!$INSTALL_DATA$ac_delim
25130 RANLIB!$RANLIB$ac_delim
25131 INSTALL_INFO!$INSTALL_INFO$ac_delim
25132 GZIP_PROG!$GZIP_PROG$ac_delim
25133 MAKEINFO!$MAKEINFO$ac_delim
25134 LIBSOUND!$LIBSOUND$ac_delim
25135 PKG_CONFIG!$PKG_CONFIG$ac_delim
25136 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
25137 ALSA_LIBS!$ALSA_LIBS$ac_delim
25138 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
25139 SET_MAKE!$SET_MAKE$ac_delim
25140 XMKMF!$XMKMF$ac_delim
25141 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
25142 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
25143 RSVG_LIBS!$RSVG_LIBS$ac_delim
25144 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
25145 GTK_LIBS!$GTK_LIBS$ac_delim
25146 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
25147 DBUS_LIBS!$DBUS_LIBS$ac_delim
25148 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
25149 XFT_LIBS!$XFT_LIBS$ac_delim
25150 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
25151 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
25152 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
25153 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
25154 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
25155 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
25156 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
25157 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
25158 ALLOCA!$ALLOCA$ac_delim
25159 liblockfile!$liblockfile$ac_delim
25160 LIBOBJS!$LIBOBJS$ac_delim
25161 NEED_SETGID!$NEED_SETGID$ac_delim
25162 KMEM_GROUP!$KMEM_GROUP$ac_delim
25163 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
25164 GETOPT_H!$GETOPT_H$ac_delim
25165 GETOPTOBJS!$GETOPTOBJS$ac_delim
25166 version!$version$ac_delim
25167 _ACEOF
25169 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25170 break
25171 elif $ac_last_try; then
25172 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25173 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25174 { (exit 1); exit 1; }; }
25175 else
25176 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25178 done
25180 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25181 if test -n "$ac_eof"; then
25182 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25183 ac_eof=`expr $ac_eof + 1`
25186 cat >>$CONFIG_STATUS <<_ACEOF
25187 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25188 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25189 _ACEOF
25190 sed '
25191 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25192 s/^/s,@/; s/!/@,|#_!!_#|/
25195 s/'"$ac_delim"'$/,g/; t
25196 s/$/\\/; p
25197 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25198 ' >>$CONFIG_STATUS <conf$$subs.sed
25199 rm -f conf$$subs.sed
25200 cat >>$CONFIG_STATUS <<_ACEOF
25201 CEOF$ac_eof
25202 _ACEOF
25205 ac_delim='%!_!# '
25206 for ac_last_try in false false false false false :; do
25207 cat >conf$$subs.sed <<_ACEOF
25208 configuration!$configuration$ac_delim
25209 canonical!$canonical$ac_delim
25210 srcdir!$srcdir$ac_delim
25211 lispdir!$lispdir$ac_delim
25212 locallisppath!$locallisppath$ac_delim
25213 lisppath!$lisppath$ac_delim
25214 x_default_search_path!$x_default_search_path$ac_delim
25215 etcdir!$etcdir$ac_delim
25216 archlibdir!$archlibdir$ac_delim
25217 bitmapdir!$bitmapdir$ac_delim
25218 gamedir!$gamedir$ac_delim
25219 gameuser!$gameuser$ac_delim
25220 c_switch_system!$c_switch_system$ac_delim
25221 c_switch_machine!$c_switch_machine$ac_delim
25222 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
25223 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
25224 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
25225 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
25226 machfile!$machfile$ac_delim
25227 opsysfile!$opsysfile$ac_delim
25228 carbon_appdir!$carbon_appdir$ac_delim
25229 ns_appdir!$ns_appdir$ac_delim
25230 LTLIBOBJS!$LTLIBOBJS$ac_delim
25231 _ACEOF
25233 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 23; then
25234 break
25235 elif $ac_last_try; then
25236 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25237 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25238 { (exit 1); exit 1; }; }
25239 else
25240 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25242 done
25244 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25245 if test -n "$ac_eof"; then
25246 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25247 ac_eof=`expr $ac_eof + 1`
25250 cat >>$CONFIG_STATUS <<_ACEOF
25251 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25252 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25253 _ACEOF
25254 sed '
25255 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25256 s/^/s,@/; s/!/@,|#_!!_#|/
25259 s/'"$ac_delim"'$/,g/; t
25260 s/$/\\/; p
25261 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25262 ' >>$CONFIG_STATUS <conf$$subs.sed
25263 rm -f conf$$subs.sed
25264 cat >>$CONFIG_STATUS <<_ACEOF
25265 :end
25266 s/|#_!!_#|//g
25267 CEOF$ac_eof
25268 _ACEOF
25271 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25272 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25273 # trailing colons and then remove the whole line if VPATH becomes empty
25274 # (actually we leave an empty line to preserve line numbers).
25275 if test "x$srcdir" = x.; then
25276 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25277 s/:*\$(srcdir):*/:/
25278 s/:*\${srcdir}:*/:/
25279 s/:*@srcdir@:*/:/
25280 s/^\([^=]*=[ ]*\):*/\1/
25281 s/:*$//
25282 s/^[^=]*=[ ]*$//
25286 cat >>$CONFIG_STATUS <<\_ACEOF
25287 fi # test -n "$CONFIG_FILES"
25290 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
25292 case $ac_tag in
25293 :[FHLC]) ac_mode=$ac_tag; continue;;
25294 esac
25295 case $ac_mode$ac_tag in
25296 :[FHL]*:*);;
25297 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25298 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25299 { (exit 1); exit 1; }; };;
25300 :[FH]-) ac_tag=-:-;;
25301 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25302 esac
25303 ac_save_IFS=$IFS
25304 IFS=:
25305 set x $ac_tag
25306 IFS=$ac_save_IFS
25307 shift
25308 ac_file=$1
25309 shift
25311 case $ac_mode in
25312 :L) ac_source=$1;;
25313 :[FH])
25314 ac_file_inputs=
25315 for ac_f
25317 case $ac_f in
25318 -) ac_f="$tmp/stdin";;
25319 *) # Look for the file first in the build tree, then in the source tree
25320 # (if the path is not absolute). The absolute path cannot be DOS-style,
25321 # because $ac_f cannot contain `:'.
25322 test -f "$ac_f" ||
25323 case $ac_f in
25324 [\\/$]*) false;;
25325 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25326 esac ||
25327 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25328 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25329 { (exit 1); exit 1; }; };;
25330 esac
25331 ac_file_inputs="$ac_file_inputs $ac_f"
25332 done
25334 # Let's still pretend it is `configure' which instantiates (i.e., don't
25335 # use $as_me), people would be surprised to read:
25336 # /* config.h. Generated by config.status. */
25337 configure_input="Generated from "`IFS=:
25338 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25339 if test x"$ac_file" != x-; then
25340 configure_input="$ac_file. $configure_input"
25341 { echo "$as_me:$LINENO: creating $ac_file" >&5
25342 echo "$as_me: creating $ac_file" >&6;}
25345 case $ac_tag in
25346 *:-:* | *:-) cat >"$tmp/stdin";;
25347 esac
25349 esac
25351 ac_dir=`$as_dirname -- "$ac_file" ||
25352 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25353 X"$ac_file" : 'X\(//\)[^/]' \| \
25354 X"$ac_file" : 'X\(//\)$' \| \
25355 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25356 echo X"$ac_file" |
25357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25358 s//\1/
25361 /^X\(\/\/\)[^/].*/{
25362 s//\1/
25365 /^X\(\/\/\)$/{
25366 s//\1/
25369 /^X\(\/\).*/{
25370 s//\1/
25373 s/.*/./; q'`
25374 { as_dir="$ac_dir"
25375 case $as_dir in #(
25376 -*) as_dir=./$as_dir;;
25377 esac
25378 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25379 as_dirs=
25380 while :; do
25381 case $as_dir in #(
25382 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25383 *) as_qdir=$as_dir;;
25384 esac
25385 as_dirs="'$as_qdir' $as_dirs"
25386 as_dir=`$as_dirname -- "$as_dir" ||
25387 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25388 X"$as_dir" : 'X\(//\)[^/]' \| \
25389 X"$as_dir" : 'X\(//\)$' \| \
25390 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25391 echo X"$as_dir" |
25392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25393 s//\1/
25396 /^X\(\/\/\)[^/].*/{
25397 s//\1/
25400 /^X\(\/\/\)$/{
25401 s//\1/
25404 /^X\(\/\).*/{
25405 s//\1/
25408 s/.*/./; q'`
25409 test -d "$as_dir" && break
25410 done
25411 test -z "$as_dirs" || eval "mkdir $as_dirs"
25412 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25413 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25414 { (exit 1); exit 1; }; }; }
25415 ac_builddir=.
25417 case "$ac_dir" in
25418 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25420 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25421 # A ".." for each directory in $ac_dir_suffix.
25422 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25423 case $ac_top_builddir_sub in
25424 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25425 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25426 esac ;;
25427 esac
25428 ac_abs_top_builddir=$ac_pwd
25429 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25430 # for backward compatibility:
25431 ac_top_builddir=$ac_top_build_prefix
25433 case $srcdir in
25434 .) # We are building in place.
25435 ac_srcdir=.
25436 ac_top_srcdir=$ac_top_builddir_sub
25437 ac_abs_top_srcdir=$ac_pwd ;;
25438 [\\/]* | ?:[\\/]* ) # Absolute name.
25439 ac_srcdir=$srcdir$ac_dir_suffix;
25440 ac_top_srcdir=$srcdir
25441 ac_abs_top_srcdir=$srcdir ;;
25442 *) # Relative name.
25443 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25444 ac_top_srcdir=$ac_top_build_prefix$srcdir
25445 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25446 esac
25447 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25450 case $ac_mode in
25453 # CONFIG_FILE
25456 case $INSTALL in
25457 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25458 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25459 esac
25460 _ACEOF
25462 cat >>$CONFIG_STATUS <<\_ACEOF
25463 # If the template does not know about datarootdir, expand it.
25464 # FIXME: This hack should be removed a few years after 2.60.
25465 ac_datarootdir_hack=; ac_datarootdir_seen=
25467 case `sed -n '/datarootdir/ {
25471 /@datadir@/p
25472 /@docdir@/p
25473 /@infodir@/p
25474 /@localedir@/p
25475 /@mandir@/p
25476 ' $ac_file_inputs` in
25477 *datarootdir*) ac_datarootdir_seen=yes;;
25478 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25479 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25480 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25481 _ACEOF
25482 cat >>$CONFIG_STATUS <<_ACEOF
25483 ac_datarootdir_hack='
25484 s&@datadir@&$datadir&g
25485 s&@docdir@&$docdir&g
25486 s&@infodir@&$infodir&g
25487 s&@localedir@&$localedir&g
25488 s&@mandir@&$mandir&g
25489 s&\\\${datarootdir}&$datarootdir&g' ;;
25490 esac
25491 _ACEOF
25493 # Neutralize VPATH when `$srcdir' = `.'.
25494 # Shell code in configure.ac might set extrasub.
25495 # FIXME: do we really want to maintain this feature?
25496 cat >>$CONFIG_STATUS <<_ACEOF
25497 sed "$ac_vpsub
25498 $extrasub
25499 _ACEOF
25500 cat >>$CONFIG_STATUS <<\_ACEOF
25502 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25503 s&@configure_input@&$configure_input&;t t
25504 s&@top_builddir@&$ac_top_builddir_sub&;t t
25505 s&@srcdir@&$ac_srcdir&;t t
25506 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25507 s&@top_srcdir@&$ac_top_srcdir&;t t
25508 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25509 s&@builddir@&$ac_builddir&;t t
25510 s&@abs_builddir@&$ac_abs_builddir&;t t
25511 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25512 s&@INSTALL@&$ac_INSTALL&;t t
25513 $ac_datarootdir_hack
25514 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25516 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25517 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25518 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25519 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25520 which seems to be undefined. Please make sure it is defined." >&5
25521 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25522 which seems to be undefined. Please make sure it is defined." >&2;}
25524 rm -f "$tmp/stdin"
25525 case $ac_file in
25526 -) cat "$tmp/out"; rm -f "$tmp/out";;
25527 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25528 esac
25532 # CONFIG_HEADER
25534 _ACEOF
25536 # Transform confdefs.h into a sed script `conftest.defines', that
25537 # substitutes the proper values into config.h.in to produce config.h.
25538 rm -f conftest.defines conftest.tail
25539 # First, append a space to every undef/define line, to ease matching.
25540 echo 's/$/ /' >conftest.defines
25541 # Then, protect against being on the right side of a sed subst, or in
25542 # an unquoted here document, in config.status. If some macros were
25543 # called several times there might be several #defines for the same
25544 # symbol, which is useless. But do not sort them, since the last
25545 # AC_DEFINE must be honored.
25546 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25547 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25548 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25549 # PARAMS is the parameter list in the macro definition--in most cases, it's
25550 # just an empty string.
25551 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25552 ac_dB='\\)[ (].*,\\1define\\2'
25553 ac_dC=' '
25554 ac_dD=' ,'
25556 uniq confdefs.h |
25557 sed -n '
25558 t rset
25559 :rset
25560 s/^[ ]*#[ ]*define[ ][ ]*//
25561 t ok
25564 s/[\\&,]/\\&/g
25565 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25566 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25567 ' >>conftest.defines
25569 # Remove the space that was appended to ease matching.
25570 # Then replace #undef with comments. This is necessary, for
25571 # example, in the case of _POSIX_SOURCE, which is predefined and required
25572 # on some systems where configure will not decide to define it.
25573 # (The regexp can be short, since the line contains either #define or #undef.)
25574 echo 's/ $//
25575 s,^[ #]*u.*,/* & */,' >>conftest.defines
25577 # Break up conftest.defines:
25578 ac_max_sed_lines=50
25580 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25581 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25582 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25583 # et cetera.
25584 ac_in='$ac_file_inputs'
25585 ac_out='"$tmp/out1"'
25586 ac_nxt='"$tmp/out2"'
25588 while :
25590 # Write a here document:
25591 cat >>$CONFIG_STATUS <<_ACEOF
25592 # First, check the format of the line:
25593 cat >"\$tmp/defines.sed" <<\\CEOF
25594 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25595 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25597 :def
25598 _ACEOF
25599 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25600 echo 'CEOF
25601 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25602 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25603 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25604 grep . conftest.tail >/dev/null || break
25605 rm -f conftest.defines
25606 mv conftest.tail conftest.defines
25607 done
25608 rm -f conftest.defines conftest.tail
25610 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25611 cat >>$CONFIG_STATUS <<\_ACEOF
25612 if test x"$ac_file" != x-; then
25613 echo "/* $configure_input */" >"$tmp/config.h"
25614 cat "$ac_result" >>"$tmp/config.h"
25615 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25616 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25617 echo "$as_me: $ac_file is unchanged" >&6;}
25618 else
25619 rm -f $ac_file
25620 mv "$tmp/config.h" $ac_file
25622 else
25623 echo "/* $configure_input */"
25624 cat "$ac_result"
25626 rm -f "$tmp/out12"
25629 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25630 echo "$as_me: executing $ac_file commands" >&6;}
25632 esac
25635 case $ac_file$ac_mode in
25636 "default":C)
25638 ### Make the necessary directories, if they don't exist.
25639 for dir in etc lisp ; do
25640 test -d ${dir} || mkdir ${dir}
25641 done
25643 # Build src/Makefile from ${srcdir}/src/Makefile.c
25644 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25645 # This must be done after src/config.h is built, since we rely on that file.
25647 echo creating src/epaths.h
25648 ${MAKE-make} epaths-force
25650 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25651 # `..' to `. .' unless invoked with -traditional
25653 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
25654 CPPFLAGS="$CPPFLAGS -traditional"
25657 echo creating lib-src/Makefile
25658 ( cd lib-src
25659 rm -f junk.c junk1.c junk2.c
25660 sed -e '/start of cpp stuff/q' \
25661 < Makefile.c > junk1.c
25662 sed -e '1,/start of cpp stuff/d'\
25663 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25664 < Makefile.c > junk.c
25665 $CPP $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25666 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25667 cat junk1.c junk2.c > Makefile.new
25668 rm -f junk.c junk1.c junk2.c
25669 chmod 444 Makefile.new
25670 mv -f Makefile.new Makefile
25673 echo creating src/Makefile
25674 ( cd src
25675 rm -f junk.c junk1.c junk2.c
25676 sed -e '/start of cpp stuff/q' \
25677 < Makefile.c > junk1.c
25678 sed -e '1,/start of cpp stuff/d'\
25679 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25680 < Makefile.c > junk.c
25681 $CPP $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25682 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25683 cat junk1.c junk2.c > Makefile.new
25684 rm -f junk.c junk1.c junk2.c
25685 chmod 444 Makefile.new
25686 mv -f Makefile.new Makefile
25689 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25690 echo creating src/.gdbinit
25691 echo source $srcdir/src/.gdbinit > src/.gdbinit
25696 esac
25697 done # for ac_tag
25700 { (exit 0); exit 0; }
25701 _ACEOF
25702 chmod +x $CONFIG_STATUS
25703 ac_clean_files=$ac_clean_files_save
25706 # configure is writing to config.log, and then calls config.status.
25707 # config.status does its own redirection, appending to config.log.
25708 # Unfortunately, on DOS this fails, as config.log is still kept open
25709 # by configure, so config.status won't be able to write to it; its
25710 # output is simply discarded. So we exec the FD to /dev/null,
25711 # effectively closing config.log, so it can be properly (re)opened and
25712 # appended to by config.status. When coming back to configure, we
25713 # need to make the FD available again.
25714 if test "$no_create" != yes; then
25715 ac_cs_success=:
25716 ac_config_status_args=
25717 test "$silent" = yes &&
25718 ac_config_status_args="$ac_config_status_args --quiet"
25719 exec 5>/dev/null
25720 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25721 exec 5>>config.log
25722 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25723 # would make configure fail if this is the last instruction.
25724 $ac_cs_success || { (exit 1); exit 1; }