(Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
[emacs.git] / configure
bloba7fc6a955c82682f28dcc1d24933b3bc5e153a61
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
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=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
579 ac_unique_file="src/lisp.h"
580 ac_config_libobj_dir=src
581 # Factoring default headers for most tests.
582 ac_includes_default="\
583 #include <stdio.h>
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
586 #endif
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
589 #endif
590 #ifdef STDC_HEADERS
591 # include <stdlib.h>
592 # include <stddef.h>
593 #else
594 # ifdef HAVE_STDLIB_H
595 # include <stdlib.h>
596 # endif
597 #endif
598 #ifdef HAVE_STRING_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600 # include <memory.h>
601 # endif
602 # include <string.h>
603 #endif
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
606 #endif
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
609 #endif
610 #ifdef HAVE_STDINT_H
611 # include <stdint.h>
612 #endif
613 #ifdef HAVE_UNISTD_H
614 # include <unistd.h>
615 #endif"
617 ac_header_list=
618 ac_func_list=
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 MAINT
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
673 GREP
674 EGREP
675 LN_S
676 INSTALL_PROGRAM
677 INSTALL_SCRIPT
678 INSTALL_DATA
679 RANLIB
680 INSTALL_INFO
681 GZIP_PROG
682 LIBSOUND
683 PKG_CONFIG
684 ALSA_CFLAGS
685 ALSA_LIBS
686 CFLAGS_SOUND
687 SET_MAKE
688 XMKMF
689 GTK_CFLAGS
690 GTK_LIBS
691 XFT_CFLAGS
692 XFT_LIBS
693 ALLOCA
694 liblockfile
695 LIBOBJS
696 NEED_SETGID
697 KMEM_GROUP
698 GETLOADAVG_LIBS
699 GETOPT_H
700 GETOPTOBJS
701 version
702 configuration
703 canonical
704 srcdir
705 lispdir
706 locallisppath
707 lisppath
708 x_default_search_path
709 etcdir
710 archlibdir
711 bitmapdir
712 gamedir
713 gameuser
714 c_switch_system
715 c_switch_machine
716 LD_SWITCH_X_SITE
717 LD_SWITCH_X_SITE_AUX
718 C_SWITCH_X_SITE
719 X_TOOLKIT_TYPE
720 machfile
721 opsysfile
722 carbon_appdir
723 LTLIBOBJS'
724 ac_subst_files=''
725 ac_precious_vars='build_alias
726 host_alias
727 target_alias
729 CFLAGS
730 LDFLAGS
731 LIBS
732 CPPFLAGS
734 XMKMF'
737 # Initialize some variables set by options.
738 ac_init_help=
739 ac_init_version=false
740 # The variables have the same names as the options, with
741 # dashes changed to underlines.
742 cache_file=/dev/null
743 exec_prefix=NONE
744 no_create=
745 no_recursion=
746 prefix=NONE
747 program_prefix=NONE
748 program_suffix=NONE
749 program_transform_name=s,x,x,
750 silent=
751 site=
752 srcdir=
753 verbose=
754 x_includes=NONE
755 x_libraries=NONE
757 # Installation directory options.
758 # These are left unexpanded so users can "make install exec_prefix=/foo"
759 # and all the variables that are supposed to be based on exec_prefix
760 # by default will actually change.
761 # Use braces instead of parens because sh, perl, etc. also accept them.
762 # (The list follows the same order as the GNU Coding Standards.)
763 bindir='${exec_prefix}/bin'
764 sbindir='${exec_prefix}/sbin'
765 libexecdir='${exec_prefix}/libexec'
766 datarootdir='${prefix}/share'
767 datadir='${datarootdir}'
768 sysconfdir='${prefix}/etc'
769 sharedstatedir='${prefix}/com'
770 localstatedir='${prefix}/var'
771 includedir='${prefix}/include'
772 oldincludedir='/usr/include'
773 docdir='${datarootdir}/doc/${PACKAGE}'
774 infodir='${datarootdir}/info'
775 htmldir='${docdir}'
776 dvidir='${docdir}'
777 pdfdir='${docdir}'
778 psdir='${docdir}'
779 libdir='${exec_prefix}/lib'
780 localedir='${datarootdir}/locale'
781 mandir='${datarootdir}/man'
783 ac_prev=
784 ac_dashdash=
785 for ac_option
787 # If the previous option needs an argument, assign it.
788 if test -n "$ac_prev"; then
789 eval $ac_prev=\$ac_option
790 ac_prev=
791 continue
794 case $ac_option in
795 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
796 *) ac_optarg=yes ;;
797 esac
799 # Accept the important Cygnus configure options, so we can diagnose typos.
801 case $ac_dashdash$ac_option in
803 ac_dashdash=yes ;;
805 -bindir | --bindir | --bindi | --bind | --bin | --bi)
806 ac_prev=bindir ;;
807 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
808 bindir=$ac_optarg ;;
810 -build | --build | --buil | --bui | --bu)
811 ac_prev=build_alias ;;
812 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
813 build_alias=$ac_optarg ;;
815 -cache-file | --cache-file | --cache-fil | --cache-fi \
816 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
817 ac_prev=cache_file ;;
818 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
819 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
820 cache_file=$ac_optarg ;;
822 --config-cache | -C)
823 cache_file=config.cache ;;
825 -datadir | --datadir | --datadi | --datad)
826 ac_prev=datadir ;;
827 -datadir=* | --datadir=* | --datadi=* | --datad=*)
828 datadir=$ac_optarg ;;
830 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
831 | --dataroo | --dataro | --datar)
832 ac_prev=datarootdir ;;
833 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
834 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
835 datarootdir=$ac_optarg ;;
837 -disable-* | --disable-*)
838 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
839 # Reject names that are not valid shell variable names.
840 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
841 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
842 { (exit 1); exit 1; }; }
843 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
844 eval enable_$ac_feature=no ;;
846 -docdir | --docdir | --docdi | --doc | --do)
847 ac_prev=docdir ;;
848 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
849 docdir=$ac_optarg ;;
851 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
852 ac_prev=dvidir ;;
853 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
854 dvidir=$ac_optarg ;;
856 -enable-* | --enable-*)
857 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
858 # Reject names that are not valid shell variable names.
859 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
860 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
861 { (exit 1); exit 1; }; }
862 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
863 eval enable_$ac_feature=\$ac_optarg ;;
865 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
866 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
867 | --exec | --exe | --ex)
868 ac_prev=exec_prefix ;;
869 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
870 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
871 | --exec=* | --exe=* | --ex=*)
872 exec_prefix=$ac_optarg ;;
874 -gas | --gas | --ga | --g)
875 # Obsolete; use --with-gas.
876 with_gas=yes ;;
878 -help | --help | --hel | --he | -h)
879 ac_init_help=long ;;
880 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
881 ac_init_help=recursive ;;
882 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
883 ac_init_help=short ;;
885 -host | --host | --hos | --ho)
886 ac_prev=host_alias ;;
887 -host=* | --host=* | --hos=* | --ho=*)
888 host_alias=$ac_optarg ;;
890 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
891 ac_prev=htmldir ;;
892 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
893 | --ht=*)
894 htmldir=$ac_optarg ;;
896 -includedir | --includedir | --includedi | --included | --include \
897 | --includ | --inclu | --incl | --inc)
898 ac_prev=includedir ;;
899 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
900 | --includ=* | --inclu=* | --incl=* | --inc=*)
901 includedir=$ac_optarg ;;
903 -infodir | --infodir | --infodi | --infod | --info | --inf)
904 ac_prev=infodir ;;
905 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
906 infodir=$ac_optarg ;;
908 -libdir | --libdir | --libdi | --libd)
909 ac_prev=libdir ;;
910 -libdir=* | --libdir=* | --libdi=* | --libd=*)
911 libdir=$ac_optarg ;;
913 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
914 | --libexe | --libex | --libe)
915 ac_prev=libexecdir ;;
916 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
917 | --libexe=* | --libex=* | --libe=*)
918 libexecdir=$ac_optarg ;;
920 -localedir | --localedir | --localedi | --localed | --locale)
921 ac_prev=localedir ;;
922 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
923 localedir=$ac_optarg ;;
925 -localstatedir | --localstatedir | --localstatedi | --localstated \
926 | --localstate | --localstat | --localsta | --localst | --locals)
927 ac_prev=localstatedir ;;
928 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
929 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
930 localstatedir=$ac_optarg ;;
932 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
933 ac_prev=mandir ;;
934 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
935 mandir=$ac_optarg ;;
937 -nfp | --nfp | --nf)
938 # Obsolete; use --without-fp.
939 with_fp=no ;;
941 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
942 | --no-cr | --no-c | -n)
943 no_create=yes ;;
945 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
946 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
947 no_recursion=yes ;;
949 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
950 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
951 | --oldin | --oldi | --old | --ol | --o)
952 ac_prev=oldincludedir ;;
953 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
954 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
955 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
956 oldincludedir=$ac_optarg ;;
958 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
959 ac_prev=prefix ;;
960 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
961 prefix=$ac_optarg ;;
963 -program-prefix | --program-prefix | --program-prefi | --program-pref \
964 | --program-pre | --program-pr | --program-p)
965 ac_prev=program_prefix ;;
966 -program-prefix=* | --program-prefix=* | --program-prefi=* \
967 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
968 program_prefix=$ac_optarg ;;
970 -program-suffix | --program-suffix | --program-suffi | --program-suff \
971 | --program-suf | --program-su | --program-s)
972 ac_prev=program_suffix ;;
973 -program-suffix=* | --program-suffix=* | --program-suffi=* \
974 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
975 program_suffix=$ac_optarg ;;
977 -program-transform-name | --program-transform-name \
978 | --program-transform-nam | --program-transform-na \
979 | --program-transform-n | --program-transform- \
980 | --program-transform | --program-transfor \
981 | --program-transfo | --program-transf \
982 | --program-trans | --program-tran \
983 | --progr-tra | --program-tr | --program-t)
984 ac_prev=program_transform_name ;;
985 -program-transform-name=* | --program-transform-name=* \
986 | --program-transform-nam=* | --program-transform-na=* \
987 | --program-transform-n=* | --program-transform-=* \
988 | --program-transform=* | --program-transfor=* \
989 | --program-transfo=* | --program-transf=* \
990 | --program-trans=* | --program-tran=* \
991 | --progr-tra=* | --program-tr=* | --program-t=*)
992 program_transform_name=$ac_optarg ;;
994 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
995 ac_prev=pdfdir ;;
996 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
997 pdfdir=$ac_optarg ;;
999 -psdir | --psdir | --psdi | --psd | --ps)
1000 ac_prev=psdir ;;
1001 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1002 psdir=$ac_optarg ;;
1004 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1005 | -silent | --silent | --silen | --sile | --sil)
1006 silent=yes ;;
1008 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1009 ac_prev=sbindir ;;
1010 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1011 | --sbi=* | --sb=*)
1012 sbindir=$ac_optarg ;;
1014 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1015 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1016 | --sharedst | --shareds | --shared | --share | --shar \
1017 | --sha | --sh)
1018 ac_prev=sharedstatedir ;;
1019 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1020 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1021 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1022 | --sha=* | --sh=*)
1023 sharedstatedir=$ac_optarg ;;
1025 -site | --site | --sit)
1026 ac_prev=site ;;
1027 -site=* | --site=* | --sit=*)
1028 site=$ac_optarg ;;
1030 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1031 ac_prev=srcdir ;;
1032 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1033 srcdir=$ac_optarg ;;
1035 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1036 | --syscon | --sysco | --sysc | --sys | --sy)
1037 ac_prev=sysconfdir ;;
1038 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1039 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1040 sysconfdir=$ac_optarg ;;
1042 -target | --target | --targe | --targ | --tar | --ta | --t)
1043 ac_prev=target_alias ;;
1044 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1045 target_alias=$ac_optarg ;;
1047 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1048 verbose=yes ;;
1050 -version | --version | --versio | --versi | --vers | -V)
1051 ac_init_version=: ;;
1053 -with-* | --with-*)
1054 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1055 # Reject names that are not valid shell variable names.
1056 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1057 { echo "$as_me: error: invalid package name: $ac_package" >&2
1058 { (exit 1); exit 1; }; }
1059 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1060 eval with_$ac_package=\$ac_optarg ;;
1062 -without-* | --without-*)
1063 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1064 # Reject names that are not valid shell variable names.
1065 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1066 { echo "$as_me: error: invalid package name: $ac_package" >&2
1067 { (exit 1); exit 1; }; }
1068 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1069 eval with_$ac_package=no ;;
1071 --x)
1072 # Obsolete; use --with-x.
1073 with_x=yes ;;
1075 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1076 | --x-incl | --x-inc | --x-in | --x-i)
1077 ac_prev=x_includes ;;
1078 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1079 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1080 x_includes=$ac_optarg ;;
1082 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1083 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1084 ac_prev=x_libraries ;;
1085 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1086 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1087 x_libraries=$ac_optarg ;;
1089 -*) { echo "$as_me: error: unrecognized option: $ac_option
1090 Try \`$0 --help' for more information." >&2
1091 { (exit 1); exit 1; }; }
1094 *=*)
1095 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1096 # Reject names that are not valid shell variable names.
1097 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1098 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1099 { (exit 1); exit 1; }; }
1100 eval $ac_envvar=\$ac_optarg
1101 export $ac_envvar ;;
1104 # FIXME: should be removed in autoconf 3.0.
1105 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1106 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1107 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1108 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1111 esac
1112 done
1114 if test -n "$ac_prev"; then
1115 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1116 { echo "$as_me: error: missing argument to $ac_option" >&2
1117 { (exit 1); exit 1; }; }
1120 # Be sure to have absolute directory names.
1121 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1122 datadir sysconfdir sharedstatedir localstatedir includedir \
1123 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1124 libdir localedir mandir
1126 eval ac_val=\$$ac_var
1127 case $ac_val in
1128 [\\/$]* | ?:[\\/]* ) continue;;
1129 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1130 esac
1131 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1132 { (exit 1); exit 1; }; }
1133 done
1135 # There might be people who depend on the old broken behavior: `$host'
1136 # used to hold the argument of --host etc.
1137 # FIXME: To remove some day.
1138 build=$build_alias
1139 host=$host_alias
1140 target=$target_alias
1142 # FIXME: To remove some day.
1143 if test "x$host_alias" != x; then
1144 if test "x$build_alias" = x; then
1145 cross_compiling=maybe
1146 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1147 If a cross compiler is detected then cross compile mode will be used." >&2
1148 elif test "x$build_alias" != "x$host_alias"; then
1149 cross_compiling=yes
1153 ac_tool_prefix=
1154 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1156 test "$silent" = yes && exec 6>/dev/null
1159 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1160 ac_ls_di=`ls -di .` &&
1161 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1162 { echo "$as_me: error: Working directory cannot be determined" >&2
1163 { (exit 1); exit 1; }; }
1164 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1165 { echo "$as_me: error: pwd does not report name of working directory" >&2
1166 { (exit 1); exit 1; }; }
1169 # Find the source files, if location was not specified.
1170 if test -z "$srcdir"; then
1171 ac_srcdir_defaulted=yes
1172 # Try the directory containing this script, then the parent directory.
1173 ac_confdir=`$as_dirname -- "$0" ||
1174 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1175 X"$0" : 'X\(//\)[^/]' \| \
1176 X"$0" : 'X\(//\)$' \| \
1177 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1178 echo X"$0" |
1179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1180 s//\1/
1183 /^X\(\/\/\)[^/].*/{
1184 s//\1/
1187 /^X\(\/\/\)$/{
1188 s//\1/
1191 /^X\(\/\).*/{
1192 s//\1/
1195 s/.*/./; q'`
1196 srcdir=$ac_confdir
1197 if test ! -r "$srcdir/$ac_unique_file"; then
1198 srcdir=..
1200 else
1201 ac_srcdir_defaulted=no
1203 if test ! -r "$srcdir/$ac_unique_file"; then
1204 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1205 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1206 { (exit 1); exit 1; }; }
1208 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1209 ac_abs_confdir=`(
1210 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1211 { (exit 1); exit 1; }; }
1212 pwd)`
1213 # When building in place, set srcdir=.
1214 if test "$ac_abs_confdir" = "$ac_pwd"; then
1215 srcdir=.
1217 # Remove unnecessary trailing slashes from srcdir.
1218 # Double slashes in file names in object file debugging info
1219 # mess up M-x gdb in Emacs.
1220 case $srcdir in
1221 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1222 esac
1223 for ac_var in $ac_precious_vars; do
1224 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1225 eval ac_env_${ac_var}_value=\$${ac_var}
1226 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1227 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1228 done
1231 # Report the --help message.
1233 if test "$ac_init_help" = "long"; then
1234 # Omit some internal or obsolete options to make the list less imposing.
1235 # This message is too long to be a string in the A/UX 3.1 sh.
1236 cat <<_ACEOF
1237 \`configure' configures this package to adapt to many kinds of systems.
1239 Usage: $0 [OPTION]... [VAR=VALUE]...
1241 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1242 VAR=VALUE. See below for descriptions of some of the useful variables.
1244 Defaults for the options are specified in brackets.
1246 Configuration:
1247 -h, --help display this help and exit
1248 --help=short display options specific to this package
1249 --help=recursive display the short help of all the included packages
1250 -V, --version display version information and exit
1251 -q, --quiet, --silent do not print \`checking...' messages
1252 --cache-file=FILE cache test results in FILE [disabled]
1253 -C, --config-cache alias for \`--cache-file=config.cache'
1254 -n, --no-create do not create output files
1255 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1257 Installation directories:
1258 --prefix=PREFIX install architecture-independent files in PREFIX
1259 [$ac_default_prefix]
1260 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1261 [PREFIX]
1263 By default, \`make install' will install all the files in
1264 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1265 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1266 for instance \`--prefix=\$HOME'.
1268 For better control, use the options below.
1270 Fine tuning of the installation directories:
1271 --bindir=DIR user executables [EPREFIX/bin]
1272 --sbindir=DIR system admin executables [EPREFIX/sbin]
1273 --libexecdir=DIR program executables [EPREFIX/libexec]
1274 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1275 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1276 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1277 --libdir=DIR object code libraries [EPREFIX/lib]
1278 --includedir=DIR C header files [PREFIX/include]
1279 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1280 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1281 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1282 --infodir=DIR info documentation [DATAROOTDIR/info]
1283 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1284 --mandir=DIR man documentation [DATAROOTDIR/man]
1285 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1286 --htmldir=DIR html documentation [DOCDIR]
1287 --dvidir=DIR dvi documentation [DOCDIR]
1288 --pdfdir=DIR pdf documentation [DOCDIR]
1289 --psdir=DIR ps documentation [DOCDIR]
1290 _ACEOF
1292 cat <<\_ACEOF
1294 Program names:
1295 --program-prefix=PREFIX prepend PREFIX to installed program names
1296 --program-suffix=SUFFIX append SUFFIX to installed program names
1297 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1299 X features:
1300 --x-includes=DIR X include files are in DIR
1301 --x-libraries=DIR X library files are in DIR
1303 System types:
1304 --build=BUILD configure for building on BUILD [guessed]
1305 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1306 _ACEOF
1309 if test -n "$ac_init_help"; then
1311 cat <<\_ACEOF
1313 Optional Features:
1314 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1315 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1316 --enable-carbon-app[=DIR] [DIR=/Application]
1317 specify install directory for Emacs.app on Mac OS X
1318 --enable-asserts compile code with asserts enabled
1319 --enable-maintainer-mode enable make rules and dependencies not useful
1320 (and sometimes confusing) to the casual installer
1321 --enable-locallisppath=PATH
1322 directories Emacs should search for lisp files
1323 specific to this site
1324 --disable-largefile omit support for large files
1326 Optional Packages:
1327 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1328 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1329 --without-gcc don't use GCC to compile Emacs if GCC is found
1330 --without-pop don't support POP mail retrieval with movemail
1331 --with-kerberos support Kerberos-authenticated POP
1332 --with-kerberos5 support Kerberos version 5 authenticated POP
1333 --with-hesiod support Hesiod to get the POP server host
1334 --without-sound don't compile with sound support
1335 --with-x-toolkit=KIT use an X toolkit
1336 (KIT = yes/lucid/athena/motif/gtk/no)
1337 --with-xpm use -lXpm for displaying XPM images
1338 --with-jpeg use -ljpeg for displaying JPEG images
1339 --with-tiff use -ltiff for displaying TIFF images
1340 --with-gif use -lungif for displaying GIF images
1341 --with-png use -lpng for displaying PNG images
1342 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1343 --with-pkg-config-prog Path to pkg-config to use for finding GTK
1344 --without-toolkit-scroll-bars
1345 don't use Motif or Xaw3d scroll bars
1346 --without-xim don't use X11 XIM
1347 --without-carbon don't use Carbon GUI on Mac OS X
1348 --with-x use the X Window System
1350 Some influential environment variables:
1351 CC C compiler command
1352 CFLAGS C compiler flags
1353 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1354 nonstandard directory <lib dir>
1355 LIBS libraries to pass to the linker, e.g. -l<library>
1356 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1357 you have headers in a nonstandard directory <include dir>
1358 CPP C preprocessor
1359 XMKMF Path to xmkmf, Makefile generator for X Window System
1361 Use these variables to override the choices made by `configure' or to help
1362 it to find libraries and programs with nonstandard names/locations.
1364 _ACEOF
1365 ac_status=$?
1368 if test "$ac_init_help" = "recursive"; then
1369 # If there are subdirs, report their specific --help.
1370 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1371 test -d "$ac_dir" || continue
1372 ac_builddir=.
1374 case "$ac_dir" in
1375 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1377 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1378 # A ".." for each directory in $ac_dir_suffix.
1379 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1380 case $ac_top_builddir_sub in
1381 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1382 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1383 esac ;;
1384 esac
1385 ac_abs_top_builddir=$ac_pwd
1386 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1387 # for backward compatibility:
1388 ac_top_builddir=$ac_top_build_prefix
1390 case $srcdir in
1391 .) # We are building in place.
1392 ac_srcdir=.
1393 ac_top_srcdir=$ac_top_builddir_sub
1394 ac_abs_top_srcdir=$ac_pwd ;;
1395 [\\/]* | ?:[\\/]* ) # Absolute name.
1396 ac_srcdir=$srcdir$ac_dir_suffix;
1397 ac_top_srcdir=$srcdir
1398 ac_abs_top_srcdir=$srcdir ;;
1399 *) # Relative name.
1400 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1401 ac_top_srcdir=$ac_top_build_prefix$srcdir
1402 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1403 esac
1404 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1406 cd "$ac_dir" || { ac_status=$?; continue; }
1407 # Check for guested configure.
1408 if test -f "$ac_srcdir/configure.gnu"; then
1409 echo &&
1410 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1411 elif test -f "$ac_srcdir/configure"; then
1412 echo &&
1413 $SHELL "$ac_srcdir/configure" --help=recursive
1414 else
1415 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1416 fi || ac_status=$?
1417 cd "$ac_pwd" || { ac_status=$?; break; }
1418 done
1421 test -n "$ac_init_help" && exit $ac_status
1422 if $ac_init_version; then
1423 cat <<\_ACEOF
1424 configure
1425 generated by GNU Autoconf 2.61
1427 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1428 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1429 This configure script is free software; the Free Software Foundation
1430 gives unlimited permission to copy, distribute and modify it.
1431 _ACEOF
1432 exit
1434 cat >config.log <<_ACEOF
1435 This file contains any messages produced by compilers while
1436 running configure, to aid debugging if configure makes a mistake.
1438 It was created by $as_me, which was
1439 generated by GNU Autoconf 2.61. Invocation command line was
1441 $ $0 $@
1443 _ACEOF
1444 exec 5>>config.log
1446 cat <<_ASUNAME
1447 ## --------- ##
1448 ## Platform. ##
1449 ## --------- ##
1451 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1452 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1453 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1454 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1455 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1457 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1458 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1460 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1461 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1462 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1463 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1464 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1465 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1466 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1468 _ASUNAME
1470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1471 for as_dir in $PATH
1473 IFS=$as_save_IFS
1474 test -z "$as_dir" && as_dir=.
1475 echo "PATH: $as_dir"
1476 done
1477 IFS=$as_save_IFS
1479 } >&5
1481 cat >&5 <<_ACEOF
1484 ## ----------- ##
1485 ## Core tests. ##
1486 ## ----------- ##
1488 _ACEOF
1491 # Keep a trace of the command line.
1492 # Strip out --no-create and --no-recursion so they do not pile up.
1493 # Strip out --silent because we don't want to record it for future runs.
1494 # Also quote any args containing shell meta-characters.
1495 # Make two passes to allow for proper duplicate-argument suppression.
1496 ac_configure_args=
1497 ac_configure_args0=
1498 ac_configure_args1=
1499 ac_must_keep_next=false
1500 for ac_pass in 1 2
1502 for ac_arg
1504 case $ac_arg in
1505 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1506 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1507 | -silent | --silent | --silen | --sile | --sil)
1508 continue ;;
1509 *\'*)
1510 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1511 esac
1512 case $ac_pass in
1513 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1515 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1516 if test $ac_must_keep_next = true; then
1517 ac_must_keep_next=false # Got value, back to normal.
1518 else
1519 case $ac_arg in
1520 *=* | --config-cache | -C | -disable-* | --disable-* \
1521 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1522 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1523 | -with-* | --with-* | -without-* | --without-* | --x)
1524 case "$ac_configure_args0 " in
1525 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1526 esac
1528 -* ) ac_must_keep_next=true ;;
1529 esac
1531 ac_configure_args="$ac_configure_args '$ac_arg'"
1533 esac
1534 done
1535 done
1536 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1537 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1539 # When interrupted or exit'd, cleanup temporary files, and complete
1540 # config.log. We remove comments because anyway the quotes in there
1541 # would cause problems or look ugly.
1542 # WARNING: Use '\'' to represent an apostrophe within the trap.
1543 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1544 trap 'exit_status=$?
1545 # Save into config.log some information that might help in debugging.
1547 echo
1549 cat <<\_ASBOX
1550 ## ---------------- ##
1551 ## Cache variables. ##
1552 ## ---------------- ##
1553 _ASBOX
1554 echo
1555 # The following way of writing the cache mishandles newlines in values,
1557 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1558 eval ac_val=\$$ac_var
1559 case $ac_val in #(
1560 *${as_nl}*)
1561 case $ac_var in #(
1562 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1563 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1564 esac
1565 case $ac_var in #(
1566 _ | IFS | as_nl) ;; #(
1567 *) $as_unset $ac_var ;;
1568 esac ;;
1569 esac
1570 done
1571 (set) 2>&1 |
1572 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1573 *${as_nl}ac_space=\ *)
1574 sed -n \
1575 "s/'\''/'\''\\\\'\'''\''/g;
1576 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1577 ;; #(
1579 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1581 esac |
1582 sort
1584 echo
1586 cat <<\_ASBOX
1587 ## ----------------- ##
1588 ## Output variables. ##
1589 ## ----------------- ##
1590 _ASBOX
1591 echo
1592 for ac_var in $ac_subst_vars
1594 eval ac_val=\$$ac_var
1595 case $ac_val in
1596 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1597 esac
1598 echo "$ac_var='\''$ac_val'\''"
1599 done | sort
1600 echo
1602 if test -n "$ac_subst_files"; then
1603 cat <<\_ASBOX
1604 ## ------------------- ##
1605 ## File substitutions. ##
1606 ## ------------------- ##
1607 _ASBOX
1608 echo
1609 for ac_var in $ac_subst_files
1611 eval ac_val=\$$ac_var
1612 case $ac_val in
1613 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1614 esac
1615 echo "$ac_var='\''$ac_val'\''"
1616 done | sort
1617 echo
1620 if test -s confdefs.h; then
1621 cat <<\_ASBOX
1622 ## ----------- ##
1623 ## confdefs.h. ##
1624 ## ----------- ##
1625 _ASBOX
1626 echo
1627 cat confdefs.h
1628 echo
1630 test "$ac_signal" != 0 &&
1631 echo "$as_me: caught signal $ac_signal"
1632 echo "$as_me: exit $exit_status"
1633 } >&5
1634 rm -f core *.core core.conftest.* &&
1635 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1636 exit $exit_status
1638 for ac_signal in 1 2 13 15; do
1639 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1640 done
1641 ac_signal=0
1643 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1644 rm -f -r conftest* confdefs.h
1646 # Predefined preprocessor variables.
1648 cat >>confdefs.h <<_ACEOF
1649 #define PACKAGE_NAME "$PACKAGE_NAME"
1650 _ACEOF
1653 cat >>confdefs.h <<_ACEOF
1654 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1655 _ACEOF
1658 cat >>confdefs.h <<_ACEOF
1659 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1660 _ACEOF
1663 cat >>confdefs.h <<_ACEOF
1664 #define PACKAGE_STRING "$PACKAGE_STRING"
1665 _ACEOF
1668 cat >>confdefs.h <<_ACEOF
1669 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1670 _ACEOF
1673 # Let the site file select an alternate cache file if it wants to.
1674 # Prefer explicitly selected file to automatically selected ones.
1675 if test -n "$CONFIG_SITE"; then
1676 set x "$CONFIG_SITE"
1677 elif test "x$prefix" != xNONE; then
1678 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1679 else
1680 set x "$ac_default_prefix/share/config.site" \
1681 "$ac_default_prefix/etc/config.site"
1683 shift
1684 for ac_site_file
1686 if test -r "$ac_site_file"; then
1687 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1688 echo "$as_me: loading site script $ac_site_file" >&6;}
1689 sed 's/^/| /' "$ac_site_file" >&5
1690 . "$ac_site_file"
1692 done
1694 if test -r "$cache_file"; then
1695 # Some versions of bash will fail to source /dev/null (special
1696 # files actually), so we avoid doing that.
1697 if test -f "$cache_file"; then
1698 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1699 echo "$as_me: loading cache $cache_file" >&6;}
1700 case $cache_file in
1701 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1702 *) . "./$cache_file";;
1703 esac
1705 else
1706 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1707 echo "$as_me: creating cache $cache_file" >&6;}
1708 >$cache_file
1711 ac_header_list="$ac_header_list sys/time.h"
1712 ac_header_list="$ac_header_list unistd.h"
1713 ac_func_list="$ac_func_list alarm"
1714 # Check that the precious variables saved in the cache have kept the same
1715 # value.
1716 ac_cache_corrupted=false
1717 for ac_var in $ac_precious_vars; do
1718 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1719 eval ac_new_set=\$ac_env_${ac_var}_set
1720 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1721 eval ac_new_val=\$ac_env_${ac_var}_value
1722 case $ac_old_set,$ac_new_set in
1723 set,)
1724 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1725 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1726 ac_cache_corrupted=: ;;
1727 ,set)
1728 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1729 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1730 ac_cache_corrupted=: ;;
1731 ,);;
1733 if test "x$ac_old_val" != "x$ac_new_val"; then
1734 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1735 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1736 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1737 echo "$as_me: former value: $ac_old_val" >&2;}
1738 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1739 echo "$as_me: current value: $ac_new_val" >&2;}
1740 ac_cache_corrupted=:
1741 fi;;
1742 esac
1743 # Pass precious variables to config.status.
1744 if test "$ac_new_set" = set; then
1745 case $ac_new_val in
1746 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1747 *) ac_arg=$ac_var=$ac_new_val ;;
1748 esac
1749 case " $ac_configure_args " in
1750 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1751 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1752 esac
1754 done
1755 if $ac_cache_corrupted; then
1756 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1757 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1758 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1759 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1760 { (exit 1); exit 1; }; }
1779 ac_ext=c
1780 ac_cpp='$CPP $CPPFLAGS'
1781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1786 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1789 test "$program_prefix" != NONE &&
1790 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1791 # Use a double $ so make ignores it.
1792 test "$program_suffix" != NONE &&
1793 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1794 # Double any \ or $. echo might interpret backslashes.
1795 # By default was `s,x,x', remove it if useless.
1796 cat <<\_ACEOF >conftest.sed
1797 s/[\\$]/&&/g;s/;s,x,x,$//
1798 _ACEOF
1799 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1800 rm -f conftest.sed
1803 lispdir='${datadir}/emacs/${version}/lisp'
1804 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1805 '${datadir}/emacs/site-lisp'
1806 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1807 etcdir='${datadir}/emacs/${version}/etc'
1808 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1809 docdir='${datadir}/emacs/${version}/etc'
1810 gamedir='${localstatedir}/games/emacs'
1812 gameuser=games
1815 # Check whether --with-gcc was given.
1816 if test "${with_gcc+set}" = set; then
1817 withval=$with_gcc;
1821 # Check whether --with-pop was given.
1822 if test "${with_pop+set}" = set; then
1823 withval=$with_pop; if test "$withval" = yes; then
1824 cat >>confdefs.h <<\_ACEOF
1825 #define MAIL_USE_POP 1
1826 _ACEOF
1828 else :
1830 else
1831 cat >>confdefs.h <<\_ACEOF
1832 #define MAIL_USE_POP 1
1833 _ACEOF
1839 # Check whether --with-kerberos was given.
1840 if test "${with_kerberos+set}" = set; then
1841 withval=$with_kerberos; if test "$withval" = yes; then
1842 cat >>confdefs.h <<\_ACEOF
1843 #define KERBEROS 1
1844 _ACEOF
1851 # Check whether --with-kerberos5 was given.
1852 if test "${with_kerberos5+set}" = set; then
1853 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1854 if test "${with_kerberos+set}" != set; then
1855 with_kerberos=yes
1856 cat >>confdefs.h <<\_ACEOF
1857 #define KERBEROS 1
1858 _ACEOF
1862 cat >>confdefs.h <<\_ACEOF
1863 #define KERBEROS5 1
1864 _ACEOF
1870 # Check whether --with-hesiod was given.
1871 if test "${with_hesiod+set}" = set; then
1872 withval=$with_hesiod; if test "$withval" = yes; then
1874 cat >>confdefs.h <<\_ACEOF
1875 #define HESIOD 1
1876 _ACEOF
1883 # Check whether --with-sound was given.
1884 if test "${with_sound+set}" = set; then
1885 withval=$with_sound;
1890 # Check whether --with-x-toolkit was given.
1891 if test "${with_x_toolkit+set}" = set; then
1892 withval=$with_x_toolkit; case "${withval}" in
1893 y | ye | yes ) val=athena ;;
1894 n | no ) val=no ;;
1895 l | lu | luc | luci | lucid ) val=lucid ;;
1896 a | at | ath | athe | athen | athena ) val=athena ;;
1897 m | mo | mot | moti | motif ) val=motif ;;
1898 g | gt | gtk ) val=gtk ;;
1900 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1901 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1902 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1903 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1904 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1905 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1906 { (exit 1); exit 1; }; }
1908 esac
1909 with_x_toolkit=$val
1914 # Check whether --with-xpm was given.
1915 if test "${with_xpm+set}" = set; then
1916 withval=$with_xpm;
1920 # Check whether --with-jpeg was given.
1921 if test "${with_jpeg+set}" = set; then
1922 withval=$with_jpeg;
1926 # Check whether --with-tiff was given.
1927 if test "${with_tiff+set}" = set; then
1928 withval=$with_tiff;
1932 # Check whether --with-gif was given.
1933 if test "${with_gif+set}" = set; then
1934 withval=$with_gif;
1938 # Check whether --with-png was given.
1939 if test "${with_png+set}" = set; then
1940 withval=$with_png;
1944 # Check whether --with-gtk was given.
1945 if test "${with_gtk+set}" = set; then
1946 withval=$with_gtk;
1950 # Check whether --with-pkg-config-prog was given.
1951 if test "${with_pkg_config_prog+set}" = set; then
1952 withval=$with_pkg_config_prog;
1956 # Check whether --with-toolkit-scroll-bars was given.
1957 if test "${with_toolkit_scroll_bars+set}" = set; then
1958 withval=$with_toolkit_scroll_bars;
1962 # Check whether --with-xim was given.
1963 if test "${with_xim+set}" = set; then
1964 withval=$with_xim;
1968 # Check whether --with-carbon was given.
1969 if test "${with_carbon+set}" = set; then
1970 withval=$with_carbon;
1973 # Check whether --enable-carbon-app was given.
1974 if test "${enable_carbon_app+set}" = set; then
1975 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
1979 # Check whether --enable-asserts was given.
1980 if test "${enable_asserts+set}" = set; then
1981 enableval=$enable_asserts; USE_XASSERTS=$enableval
1982 else
1983 USE_XASSERTS=no
1987 # Check whether --enable-maintainer-mode was given.
1988 if test "${enable_maintainer_mode+set}" = set; then
1989 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1990 else
1991 USE_MAINTAINER_MODE=no
1994 if test $USE_MAINTAINER_MODE = yes; then
1995 MAINT=
1996 else
1997 MAINT=#
2001 # Check whether --enable-locallisppath was given.
2002 if test "${enable_locallisppath+set}" = set; then
2003 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2004 locallisppath=
2005 elif test "${enableval}" != "yes"; then
2006 locallisppath=${enableval}
2011 #### Make srcdir absolute, if it isn't already. It's important to
2012 #### avoid running the path through pwd unnecessarily, since pwd can
2013 #### give you automounter prefixes, which can go away. We do all this
2014 #### so Emacs can find its files when run uninstalled.
2015 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2016 unset CDPATH
2017 case "${srcdir}" in
2018 /* ) ;;
2020 ## We may be able to use the $PWD environment variable to make this
2021 ## absolute. But sometimes PWD is inaccurate.
2022 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2023 ## but that tested only for a well-formed and valid PWD,
2024 ## it did not object when PWD was well-formed and valid but just wrong.
2025 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2026 then
2027 srcdir="$PWD"
2028 else
2029 srcdir="`(cd ${srcdir}; pwd)`"
2032 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2033 esac
2035 #### Check if the source directory already has a configured system in it.
2036 if test `pwd` != `(cd ${srcdir} && pwd)` \
2037 && test -f "${srcdir}/src/config.h" ; then
2038 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2039 as a build directory right now; it has been configured in its own
2040 right. To configure in another directory as well, you MUST
2041 use GNU make. If you do not have GNU make, then you must
2042 now do \`make distclean' in ${srcdir},
2043 and then run $0 again." >&5
2044 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2045 as a build directory right now; it has been configured in its own
2046 right. To configure in another directory as well, you MUST
2047 use GNU make. If you do not have GNU make, then you must
2048 now do \`make distclean' in ${srcdir},
2049 and then run $0 again." >&2;}
2052 #### Given the configuration name, set machfile and opsysfile to the
2053 #### names of the m/*.h and s/*.h files we should use.
2055 ### Canonicalize the configuration name.
2057 ac_aux_dir=
2058 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2059 if test -f "$ac_dir/install-sh"; then
2060 ac_aux_dir=$ac_dir
2061 ac_install_sh="$ac_aux_dir/install-sh -c"
2062 break
2063 elif test -f "$ac_dir/install.sh"; then
2064 ac_aux_dir=$ac_dir
2065 ac_install_sh="$ac_aux_dir/install.sh -c"
2066 break
2067 elif test -f "$ac_dir/shtool"; then
2068 ac_aux_dir=$ac_dir
2069 ac_install_sh="$ac_aux_dir/shtool install -c"
2070 break
2072 done
2073 if test -z "$ac_aux_dir"; then
2074 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2075 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2076 { (exit 1); exit 1; }; }
2079 # These three variables are undocumented and unsupported,
2080 # and are intended to be withdrawn in a future Autoconf release.
2081 # They can cause serious problems if a builder's source tree is in a directory
2082 # whose full name contains unusual characters.
2083 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2084 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2085 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2088 # Make sure we can run config.sub.
2089 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2090 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2091 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2092 { (exit 1); exit 1; }; }
2094 { echo "$as_me:$LINENO: checking build system type" >&5
2095 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2096 if test "${ac_cv_build+set}" = set; then
2097 echo $ECHO_N "(cached) $ECHO_C" >&6
2098 else
2099 ac_build_alias=$build_alias
2100 test "x$ac_build_alias" = x &&
2101 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2102 test "x$ac_build_alias" = x &&
2103 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2104 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2105 { (exit 1); exit 1; }; }
2106 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2107 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2108 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2109 { (exit 1); exit 1; }; }
2112 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2113 echo "${ECHO_T}$ac_cv_build" >&6; }
2114 case $ac_cv_build in
2115 *-*-*) ;;
2116 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2117 echo "$as_me: error: invalid value of canonical build" >&2;}
2118 { (exit 1); exit 1; }; };;
2119 esac
2120 build=$ac_cv_build
2121 ac_save_IFS=$IFS; IFS='-'
2122 set x $ac_cv_build
2123 shift
2124 build_cpu=$1
2125 build_vendor=$2
2126 shift; shift
2127 # Remember, the first character of IFS is used to create $*,
2128 # except with old shells:
2129 build_os=$*
2130 IFS=$ac_save_IFS
2131 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2134 { echo "$as_me:$LINENO: checking host system type" >&5
2135 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2136 if test "${ac_cv_host+set}" = set; then
2137 echo $ECHO_N "(cached) $ECHO_C" >&6
2138 else
2139 if test "x$host_alias" = x; then
2140 ac_cv_host=$ac_cv_build
2141 else
2142 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2143 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2144 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2145 { (exit 1); exit 1; }; }
2149 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2150 echo "${ECHO_T}$ac_cv_host" >&6; }
2151 case $ac_cv_host in
2152 *-*-*) ;;
2153 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2154 echo "$as_me: error: invalid value of canonical host" >&2;}
2155 { (exit 1); exit 1; }; };;
2156 esac
2157 host=$ac_cv_host
2158 ac_save_IFS=$IFS; IFS='-'
2159 set x $ac_cv_host
2160 shift
2161 host_cpu=$1
2162 host_vendor=$2
2163 shift; shift
2164 # Remember, the first character of IFS is used to create $*,
2165 # except with old shells:
2166 host_os=$*
2167 IFS=$ac_save_IFS
2168 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2171 canonical=$host
2172 configuration=${host_alias-$host}
2176 ### If you add support for a new configuration, add code to this
2177 ### switch statement to recognize your configuration name and select
2178 ### the appropriate operating system and machine description files.
2180 ### You would hope that you could choose an m/*.h file pretty much
2181 ### based on the machine portion of the configuration name, and an s-
2182 ### file based on the operating system portion. However, it turns out
2183 ### that each m/*.h file is pretty manufacturer-specific - for
2184 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2185 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2186 ### machines. So we basically have to have a special case for each
2187 ### configuration name.
2189 ### As far as handling version numbers on operating systems is
2190 ### concerned, make sure things will fail in a fixable way. If
2191 ### /etc/MACHINES doesn't say anything about version numbers, be
2192 ### prepared to handle anything reasonably. If version numbers
2193 ### matter, be sure /etc/MACHINES says something about it.
2195 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2196 ### "System V Release 4"; he writes, "The old convention encouraged
2197 ### confusion between `system' and `release' levels'."
2199 machine='' opsys='' unported=no
2200 case "${canonical}" in
2202 ## FreeBSD ports
2203 *-*-freebsd* )
2204 opsys=freebsd
2205 case "${canonical}" in
2206 alpha*-*-freebsd*) machine=alpha ;;
2207 arm*-*-freebsd*) machine=arm ;;
2208 ia64-*-freebsd*) machine=ia64 ;;
2209 sparc64-*-freebsd*) machine=sparc ;;
2210 powerpc-*-freebsd*) machine=macppc ;;
2211 i[3456]86-*-freebsd*) machine=intel386 ;;
2212 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2213 esac
2216 ## FreeBSD kernel + glibc based userland
2217 *-*-kfreebsd*gnu* )
2218 opsys=gnu-kfreebsd
2219 case "${canonical}" in
2220 alpha*-*-kfreebsd*) machine=alpha ;;
2221 ia64-*-kfreebsd*) machine=ia64 ;;
2222 sparc64-*-kfreebsd*) machine=sparc ;;
2223 powerpc-*-kfreebsd*) machine=macppc ;;
2224 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2225 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2226 esac
2229 ## NetBSD ports
2230 *-*-netbsd* )
2231 opsys=netbsd
2232 if test -f /usr/lib/crti.o; then
2234 cat >>confdefs.h <<\_ACEOF
2235 #define HAVE_CRTIN
2236 _ACEOF
2240 case "${canonical}" in
2241 alpha*-*-netbsd*) machine=alpha ;;
2242 i[3456]86-*-netbsd*) machine=intel386 ;;
2243 m68k-*-netbsd*)
2244 # This is somewhat bogus.
2245 machine=hp9000s300 ;;
2246 mips-*-netbsd*) machine=pmax ;;
2247 mipsel-*-netbsd*) machine=pmax ;;
2248 mipseb-*-netbsd*) machine=pmax ;;
2249 ns32k-*-netbsd*) machine=ns32000 ;;
2250 powerpc-*-netbsd*) machine=macppc ;;
2251 sparc*-*-netbsd*) machine=sparc ;;
2252 vax-*-netbsd*) machine=vax ;;
2253 arm-*-netbsd*) machine=arm ;;
2254 x86_64-*-netbsd*) machine=amdx86-64 ;;
2255 hppa-*-netbsd*) machine=hp800 ;;
2256 shle-*-netbsd*) machine=sh3el ;;
2257 esac
2260 ## OpenBSD ports
2261 *-*-openbsd* )
2262 opsys=openbsd
2263 case "${canonical}" in
2264 alpha*-*-openbsd*) machine=alpha ;;
2265 arm-*-openbsd*) machine=arm ;;
2266 hppa-*-openbsd*) machine=hp9000s300 ;;
2267 i386-*-openbsd*) machine=intel386 ;;
2268 m68k-*-openbsd*) machine=hp9000s300 ;;
2269 m88k-*-openbsd*) machine=aviion ;;
2270 mips64-*-openbsd*) machine=mips64 ;;
2271 powerpc-*-openbsd*) machine=macppc ;;
2272 sh-*-openbsd*) machine=sh3el ;;
2273 sparc*-*-openbsd*) machine=sparc ;;
2274 vax-*-openbsd*) machine=vax ;;
2275 x86_64-*-openbsd*) machine=amdx86-64 ;;
2276 esac
2279 ## LynxOS ports
2280 *-*-lynxos* )
2281 opsys=lynxos
2282 case "${canonical}" in
2283 i[3456]86-*-lynxos*) machine=intel386 ;;
2284 powerpc-*-lynxos*) machine=powerpc ;;
2285 esac
2288 ## Acorn RISCiX:
2289 arm-acorn-riscix1.1* )
2290 machine=acorn opsys=riscix1-1
2292 arm-acorn-riscix1.2* | arm-acorn-riscix )
2293 ## This name is riscix12 instead of riscix1.2
2294 ## to avoid a file name conflict on MSDOS.
2295 machine=acorn opsys=riscix12
2298 ## BSDI ports
2299 *-*-bsdi* )
2300 opsys=bsdi
2301 case "${canonical}" in
2302 i[345]86-*-bsdi*) machine=intel386 ;;
2303 sparc-*-bsdi*) machine=sparc ;;
2304 powerpc-*-bsdi*) machine=macppc ;;
2305 esac
2306 case "${canonical}" in
2307 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2308 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2309 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2310 *-*-bsdi3* ) opsys=bsdos3 ;;
2311 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2312 esac
2315 ## Alliant machines
2316 ## Strictly speaking, we need the version of the alliant operating
2317 ## system to choose the right machine file, but currently the
2318 ## configuration name doesn't tell us enough to choose the right
2319 ## one; we need to give alliants their own operating system name to
2320 ## do this right. When someone cares, they can help us.
2321 fx80-alliant-* )
2322 machine=alliant4 opsys=bsd4-2
2324 i860-alliant-* )
2325 machine=alliant-2800 opsys=bsd4-3
2328 ## Alpha (DEC) machines.
2329 alpha*-dec-osf* )
2330 machine=alpha opsys=osf1
2331 # This is needed to find X11R6.1 libraries for certain tests.
2332 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2333 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2334 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2335 # due to non-traditional preprocessing with the current compiler
2336 # defaults. OSF 4 can also have that compiler version, and there
2337 # seems always to have been a usable /usr/bin/cpp.
2338 NON_GNU_CPP=/usr/bin/cpp
2339 case "${canonical}" in
2340 alpha*-dec-osf[5-9]*)
2341 opsys=osf5-0 ;;
2342 esac
2345 alpha*-*-linux-gnu* )
2346 machine=alpha opsys=gnu-linux
2349 arm*-*-linux-gnu* )
2350 machine=arm opsys=gnu-linux
2353 ## Altos 3068
2354 m68*-altos-sysv* )
2355 machine=altos opsys=usg5-2
2358 ## Amdahl UTS
2359 580-amdahl-sysv* )
2360 machine=amdahl opsys=usg5-2-2
2363 ## Apollo, Domain/OS
2364 m68*-apollo-* )
2365 machine=apollo opsys=bsd4-3
2368 ## Apple Darwin / Mac OS X
2369 *-apple-darwin* )
2370 case "${canonical}" in
2371 i[3456]86-* ) machine=intel386 ;;
2372 powerpc-* ) machine=powermac ;;
2373 * ) unported=yes ;;
2374 esac
2375 opsys=darwin
2376 # Define CPP as follows to make autoconf work correctly.
2377 CPP="${CC-cc} -E -no-cpp-precomp"
2378 # Use fink packages if available.
2379 if test -d /sw/include && test -d /sw/lib; then
2380 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2381 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2382 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2386 ## AT&T 3b2, 3b5, 3b15, 3b20
2387 we32k-att-sysv* )
2388 machine=att3b opsys=usg5-2-2
2391 ## AT&T 3b1 - The Mighty Unix PC!
2392 m68*-att-sysv* )
2393 machine=7300 opsys=usg5-2-2
2396 ## Bull dpx20
2397 rs6000-bull-bosx* )
2398 machine=ibmrs6000 opsys=aix3-2
2401 ## Bull dpx2
2402 m68*-bull-sysv3* )
2403 machine=dpx2 opsys=usg5-3
2406 ## Bull sps7
2407 m68*-bull-sysv2* )
2408 machine=sps7 opsys=usg5-2
2411 ## CCI 5/32, 6/32 -- see "Tahoe".
2413 ## Celerity
2414 ## I don't know what configuration name to use for this; config.sub
2415 ## doesn't seem to know anything about it. Hey, Celerity users, get
2416 ## in touch with us!
2417 celerity-celerity-bsd* )
2418 machine=celerity opsys=bsd4-2
2421 ## Clipper
2422 ## What operating systems does this chip run that Emacs has been
2423 ## tested on?
2424 clipper-* )
2425 machine=clipper
2426 ## We'll use the catch-all code at the bottom to guess the
2427 ## operating system.
2430 ## Compaq Nonstop
2431 mips-compaq-nonstopux* )
2432 machine=nonstopux opsys=nonstopux
2435 ## Convex
2436 *-convex-bsd* | *-convex-convexos* )
2437 machine=convex opsys=bsd4-3
2438 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2439 NON_GNU_CPP="cc -E -P"
2442 ## Cubix QBx/386
2443 i[3456]86-cubix-sysv* )
2444 machine=intel386 opsys=usg5-3
2447 ## Cydra 5
2448 cydra*-cydrome-sysv* )
2449 machine=cydra5 opsys=usg5-3
2452 ## Data General AViiON Machines
2453 ## DG changed naming conventions with the release of 5.4.4.10, they
2454 ## dropped the initial 5.4 but left the intervening R. Because of the
2455 ## R this shouldn't conflict with older versions of the OS (which I
2456 ## think were named like dgux4.*). In addition, DG new AViiONs series
2457 ## uses either Motorola M88k or Intel Pentium CPUs.
2458 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
2459 machine=aviion opsys=dgux4
2461 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
2462 ## This name is dgux5-4-3 instead of dgux5-4r3
2463 ## to avoid a file name conflict on MSDOS.
2464 machine=aviion opsys=dgux5-4-3
2466 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
2467 machine=aviion opsys=dgux5-4r2
2469 m88k-dg-dgux* )
2470 machine=aviion opsys=dgux
2473 ## Data General AViiON Intel (x86) Machines
2474 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2475 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2476 i[345]86-dg-dguxR4* )
2477 machine=aviion-intel opsys=dgux4
2480 ## DECstations
2481 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2482 machine=pmax opsys=bsd4-2
2484 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2485 machine=pmax opsys=bsd4-3
2487 mips-dec-ultrix* )
2488 machine=pmax opsys=ultrix4-3
2490 mips-dec-osf* )
2491 machine=pmax opsys=osf1
2493 mips-dec-mach_bsd4.3* )
2494 machine=pmax opsys=mach-bsd4-3
2497 ## Motorola Delta machines
2498 m68k-motorola-sysv* | m68000-motorola-sysv* )
2499 machine=delta opsys=usg5-3
2500 if test -z "`type gnucc | grep 'not found'`"
2501 then
2502 if test -s /etc/167config
2503 then CC="gnucc -m68040"
2504 else CC="gnucc -m68881"
2506 else
2507 if test -z "`type gcc | grep 'not found'`"
2508 then CC=gcc
2509 else CC=cc
2513 m88k-motorola-sysv4* )
2514 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2515 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2516 # I hope there are not other 4.0 versions for this machine
2517 # which really need usg5-4 instead.
2518 machine=delta88k opsys=usg5-4-2
2520 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
2521 machine=delta88k opsys=usg5-3
2524 ## Dual machines
2525 m68*-dual-sysv* )
2526 machine=dual opsys=usg5-2
2528 m68*-dual-uniplus* )
2529 machine=dual opsys=unipl5-2
2532 ## Elxsi 6400
2533 elxsi-elxsi-sysv* )
2534 machine=elxsi opsys=usg5-2
2537 ## Encore machines
2538 ns16k-encore-bsd* )
2539 machine=ns16000 opsys=umax
2542 ## The GEC 63 - apparently, this port isn't really finished yet.
2543 # I'm sure we finished off the last of the machines, though. -- fx
2545 ## Gould Power Node and NP1
2546 pn-gould-bsd4.2* )
2547 machine=gould opsys=bsd4-2
2549 pn-gould-bsd4.3* )
2550 machine=gould opsys=bsd4-3
2552 np1-gould-bsd* )
2553 machine=gould-np1 opsys=bsd4-3
2556 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2557 ## as far as Emacs is concerned).
2558 m88k-harris-cxux* )
2559 # Build needs to be different on 7.0 and later releases
2560 case "`uname -r`" in
2561 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2562 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2563 esac
2564 NON_GNU_CPP="/lib/cpp"
2566 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2567 m68k-harris-cxux* )
2568 machine=nh3000 opsys=cxux
2570 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2571 powerpc-harris-powerunix )
2572 machine=nh6000 opsys=powerunix
2573 NON_GNU_CPP="cc -Xo -E -P"
2575 ## SR2001/SR2201 running HI-UX/MPP
2576 hppa1.1-hitachi-hiuxmpp* )
2577 machine=sr2k opsys=hiuxmpp
2579 hppa1.1-hitachi-hiuxwe2* )
2580 machine=sr2k opsys=hiuxwe2
2582 ## Honeywell XPS100
2583 xps*-honeywell-sysv* )
2584 machine=xps100 opsys=usg5-2
2587 ## HP 9000 series 200 or 300
2588 m68*-hp-bsd* )
2589 machine=hp9000s300 opsys=bsd4-3
2591 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2592 m68*-hp-hpux* )
2593 case "`uname -r`" in
2594 ## Someone's system reports A.B8.05 for this.
2595 ## I wonder what other possibilities there are.
2596 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2597 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2598 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2599 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2600 *) machine=hp9000s300 opsys=hpux ;;
2601 esac
2604 ## HP 9000 series 700 and 800, running HP/UX
2605 hppa*-hp-hpux7* )
2606 machine=hp800 opsys=hpux
2608 hppa*-hp-hpux8* )
2609 machine=hp800 opsys=hpux8
2611 hppa*-hp-hpux9shr* )
2612 machine=hp800 opsys=hpux9shr
2614 hppa*-hp-hpux9* )
2615 machine=hp800 opsys=hpux9
2617 hppa*-hp-hpux10.2* )
2618 machine=hp800 opsys=hpux10-20
2620 hppa*-hp-hpux10* )
2621 machine=hp800 opsys=hpux10
2623 hppa*-hp-hpux1[1-9]* )
2624 machine=hp800 opsys=hpux11
2625 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2628 hppa*-*-linux-gnu* )
2629 machine=hp800 opsys=gnu-linux
2632 ## HP 9000 series 700 and 800, running HP/UX
2633 hppa*-hp-hpux* )
2634 ## Cross-compilation? Nah!
2635 case "`uname -r`" in
2636 ## Someone's system reports A.B8.05 for this.
2637 ## I wonder what other possibilities there are.
2638 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2639 *.08.* ) machine=hp800 opsys=hpux8 ;;
2640 *.09.* ) machine=hp800 opsys=hpux9 ;;
2641 *) machine=hp800 opsys=hpux10 ;;
2642 esac
2644 hppa*-*-nextstep* )
2645 machine=hp800 opsys=nextstep
2648 ## Orion machines
2649 orion-orion-bsd* )
2650 machine=orion opsys=bsd4-2
2652 clipper-orion-bsd* )
2653 machine=orion105 opsys=bsd4-2
2656 ## IBM machines
2657 i[3456]86-ibm-aix1.1* )
2658 machine=ibmps2-aix opsys=usg5-2-2
2660 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2661 machine=ibmps2-aix opsys=usg5-3
2663 i370-ibm-aix*)
2664 machine=ibm370aix opsys=usg5-3
2666 s390-*-linux-gnu* )
2667 machine=ibms390 opsys=gnu-linux
2669 s390x-*-linux-gnu* )
2670 machine=ibms390x opsys=gnu-linux
2672 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2673 machine=ibmrs6000 opsys=aix3-1
2675 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2676 machine=ibmrs6000 opsys=aix3-2-5
2678 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2679 machine=ibmrs6000 opsys=aix4-1
2681 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2682 machine=ibmrs6000 opsys=aix4-2
2684 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2685 machine=ibmrs6000 opsys=aix4-2
2687 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2688 machine=ibmrs6000 opsys=aix4-2
2690 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2691 machine=ibmrs6000 opsys=aix4
2693 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2694 machine=ibmrs6000 opsys=aix4-1
2696 rs6000-ibm-aix* | powerpc-ibm-aix* )
2697 machine=ibmrs6000 opsys=aix3-2
2699 romp-ibm-bsd4.3* )
2700 machine=ibmrt opsys=bsd4-3
2702 romp-ibm-bsd4.2* )
2703 machine=ibmrt opsys=bsd4-2
2705 romp-ibm-aos4.3* )
2706 machine=ibmrt opsys=bsd4-3
2708 romp-ibm-aos4.2* )
2709 machine=ibmrt opsys=bsd4-2
2711 romp-ibm-aos* )
2712 machine=ibmrt opsys=bsd4-3
2714 romp-ibm-bsd* )
2715 machine=ibmrt opsys=bsd4-3
2717 romp-ibm-aix* )
2718 machine=ibmrt-aix opsys=usg5-2-2
2721 ## Integrated Solutions `Optimum V'
2722 m68*-isi-bsd4.2* )
2723 machine=isi-ov opsys=bsd4-2
2725 m68*-isi-bsd4.3* )
2726 machine=isi-ov opsys=bsd4-3
2729 ## Intel 386 machines where we do care about the manufacturer
2730 i[3456]86-intsys-sysv* )
2731 machine=is386 opsys=usg5-2-2
2734 ## Prime EXL
2735 i[3456]86-prime-sysv* )
2736 machine=i386 opsys=usg5-3
2739 ## Sequent Symmetry running Dynix
2740 i[3456]86-sequent-bsd* )
2741 machine=symmetry opsys=bsd4-3
2744 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2745 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2746 machine=sequent-ptx opsys=ptx4
2747 NON_GNU_CPP=/lib/cpp
2750 ## Sequent Symmetry running DYNIX/ptx
2751 ## Use the old cpp rather than the newer ANSI one.
2752 i[3456]86-sequent-ptx* )
2753 machine=sequent-ptx opsys=ptx
2754 NON_GNU_CPP="/lib/cpp"
2757 ## ncr machine running svr4.3.
2758 i[3456]86-ncr-sysv4.3 )
2759 machine=ncr386 opsys=usg5-4-3
2762 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2763 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2764 i[3456]86-ncr-sysv* )
2765 machine=ncr386 opsys=usg5-4-2
2768 ## Intel Paragon OSF/1
2769 i860-intel-osf1* )
2770 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2773 ## Intel 860
2774 i860-*-sysv4* )
2775 machine=i860 opsys=usg5-4
2776 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2777 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2780 ## Macintosh PowerPC
2781 powerpc*-*-linux-gnu* )
2782 machine=macppc opsys=gnu-linux
2785 ## Masscomp machines
2786 m68*-masscomp-rtu* )
2787 machine=masscomp opsys=rtu
2790 ## Megatest machines
2791 m68*-megatest-bsd* )
2792 machine=mega68 opsys=bsd4-2
2795 ## Workstations sold by MIPS
2796 ## This is not necessarily all workstations using the MIPS processor -
2797 ## Irises are produced by SGI, and DECstations by DEC.
2799 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2800 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2801 ## it gives for choosing between the alternatives seems to be "Use
2802 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2803 ## the BSD world." I'll assume that these are instructions for
2804 ## handling two odd situations, and that every other situation
2805 ## should use mips.h and usg5-2-2, they being listed first.
2806 mips-mips-usg* )
2807 machine=mips4
2808 ## Fall through to the general code at the bottom to decide on the OS.
2810 mips-mips-riscos4* )
2811 machine=mips4 opsys=bsd4-3
2812 NON_GNU_CC="cc -systype bsd43"
2813 NON_GNU_CPP="cc -systype bsd43 -E"
2815 mips-mips-riscos5* )
2816 machine=mips4 opsys=riscos5
2817 NON_GNU_CC="cc -systype bsd43"
2818 NON_GNU_CPP="cc -systype bsd43 -E"
2820 mips-mips-bsd* )
2821 machine=mips opsys=bsd4-3
2823 mips-mips-* )
2824 machine=mips opsys=usg5-2-2
2827 ## NeXT
2828 m68*-next-* | m68k-*-nextstep* )
2829 machine=m68k opsys=nextstep
2832 ## The complete machine from National Semiconductor
2833 ns32k-ns-genix* )
2834 machine=ns32000 opsys=usg5-2
2837 ## NCR machines
2838 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2839 machine=tower32 opsys=usg5-2-2
2841 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2842 machine=tower32v3 opsys=usg5-3
2845 ## NEC EWS4800
2846 mips-nec-sysv4*)
2847 machine=ews4800 opsys=ux4800
2850 ## Nixdorf Targon 31
2851 m68*-nixdorf-sysv* )
2852 machine=targon31 opsys=usg5-2-2
2855 ## Nu (TI or LMI)
2856 m68*-nu-sysv* )
2857 machine=nu opsys=usg5-2
2860 ## Plexus
2861 m68*-plexus-sysv* )
2862 machine=plexus opsys=usg5-2
2865 ## Pyramid machines
2866 ## I don't really have any idea what sort of processor the Pyramid has,
2867 ## so I'm assuming it is its own architecture.
2868 pyramid-pyramid-bsd* )
2869 machine=pyramid opsys=bsd4-2
2872 ## Sequent Balance
2873 ns32k-sequent-bsd4.2* )
2874 machine=sequent opsys=bsd4-2
2876 ns32k-sequent-bsd4.3* )
2877 machine=sequent opsys=bsd4-3
2880 ## Siemens Nixdorf
2881 mips-siemens-sysv* | mips-sni-sysv*)
2882 machine=mips-siemens opsys=usg5-4
2883 NON_GNU_CC=/usr/ccs/bin/cc
2884 NON_GNU_CPP=/usr/ccs/lib/cpp
2887 ## Silicon Graphics machines
2888 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2889 m68*-sgi-iris3.5* )
2890 machine=irist opsys=iris3-5
2892 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2893 machine=irist opsys=iris3-6
2895 ## Iris 4D
2896 mips-sgi-irix3* )
2897 machine=iris4d opsys=irix3-3
2899 mips-sgi-irix4* )
2900 machine=iris4d opsys=irix4-0
2902 mips-sgi-irix6.5 )
2903 machine=iris4d opsys=irix6-5
2904 # Without defining _LANGUAGE_C, things get masked out in the headers
2905 # so that, for instance, grepping for `free' in stdlib.h fails and
2906 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2907 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2908 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2910 mips-sgi-irix6* )
2911 machine=iris4d opsys=irix6-0
2912 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2913 # but presumably it does no harm.
2914 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2915 # -32 probably isn't necessary in later v.6s -- anyone know which?
2916 NON_GCC_TEST_OPTIONS=-32
2918 mips-sgi-irix5.[01]* )
2919 machine=iris4d opsys=irix5-0
2921 mips-sgi-irix5* | mips-sgi-irix* )
2922 machine=iris4d opsys=irix5-2
2925 ## SONY machines
2926 m68*-sony-bsd4.2* )
2927 machine=news opsys=bsd4-2
2929 m68*-sony-bsd4.3* )
2930 machine=news opsys=bsd4-3
2932 m68*-sony-newsos3* | m68*-sony-news3*)
2933 machine=news opsys=bsd4-3
2935 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2936 machine=news-risc opsys=bsd4-3
2938 mips-sony-newsos6* )
2939 machine=news-r6 opsys=newsos6
2941 mips-sony-news* )
2942 machine=news-risc opsys=newsos5
2945 ## Stride
2946 m68*-stride-sysv* )
2947 machine=stride opsys=usg5-2
2950 ## Suns
2951 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2952 machine=sparc opsys=gnu-linux
2955 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2956 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2957 | rs6000-*-solaris2*)
2958 case "${canonical}" in
2959 m68*-sunos1* ) machine=sun1 ;;
2960 m68*-sunos2* ) machine=sun2 ;;
2961 m68* ) machine=sun3 ;;
2962 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2963 i[3456]86-*-* ) machine=intel386 ;;
2964 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2965 powerpcle* ) machine=powerpcle ;;
2966 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2967 sparc* ) machine=sparc ;;
2968 * ) unported=yes ;;
2969 esac
2970 case "${canonical}" in
2971 ## The Sun386 didn't get past 4.0.
2972 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2973 *-sunos4.0* ) opsys=sunos4-0 ;;
2974 *-sunos4.1.[3-9]*noshare )
2975 ## This name is sunos413 instead of sunos4-1-3
2976 ## to avoid a file name conflict on MSDOS.
2977 opsys=sunos413
2978 NON_GNU_CPP=/usr/lib/cpp
2979 NON_GCC_TEST_OPTIONS=-Bstatic
2980 GCC_TEST_OPTIONS=-static
2982 *-sunos4.1.[3-9]* | *-sunos4shr*)
2983 opsys=sunos4shr
2984 NON_GNU_CPP=/usr/lib/cpp
2986 *-sunos4* | *-sunos )
2987 opsys=sunos4-1
2988 NON_GCC_TEST_OPTIONS=-Bstatic
2989 GCC_TEST_OPTIONS=-static
2991 *-sunos5.3* | *-solaris2.3* )
2992 opsys=sol2-3
2993 NON_GNU_CPP=/usr/ccs/lib/cpp
2995 *-sunos5.4* | *-solaris2.4* )
2996 opsys=sol2-4
2997 NON_GNU_CPP=/usr/ccs/lib/cpp
2998 RANLIB="ar -ts"
3000 *-sunos5.5* | *-solaris2.5* )
3001 opsys=sol2-5
3002 NON_GNU_CPP=/usr/ccs/lib/cpp
3003 RANLIB="ar -ts"
3005 *-sunos5.6* | *-solaris2.6* )
3006 opsys=sol2-6
3007 NON_GNU_CPP=/usr/ccs/lib/cpp
3008 RANLIB="ar -ts"
3010 *-sunos5* | *-solaris* )
3011 opsys=sol2-6
3012 ## FIXME: make this into a proper fix that checks the compiler type,
3013 ## rather than relying on path. Or is /usr/ccs/lib/cpp a bad default now?
3014 if [ "x$CC" = x/opt/SUNWspro/bin/cc ]; then
3015 ## -Xs prevents spurious whitespace.
3016 NON_GNU_CPP="/opt/SUNWspro/bin/cc -E -Xs"
3017 else
3018 NON_GNU_CPP=/usr/ccs/lib/cpp
3021 * ) opsys=bsd4-2 ;;
3022 esac
3023 ## Watch out for a compiler that we know will not work.
3024 case "${canonical}" in
3025 *-solaris* | *-sunos5* )
3026 if [ "x$CC" = x/usr/ucb/cc ]; then
3027 ## /usr/ucb/cc doesn't work;
3028 ## we should find some other compiler that does work.
3029 unset CC
3032 *) ;;
3033 esac
3035 sparc-*-nextstep* )
3036 machine=sparc opsys=nextstep
3039 ## Tadpole 68k
3040 m68*-tadpole-sysv* )
3041 machine=tad68k opsys=usg5-3
3044 ## Tahoe machines
3045 tahoe-tahoe-bsd4.2* )
3046 machine=tahoe opsys=bsd4-2
3048 tahoe-tahoe-bsd4.3* )
3049 machine=tahoe opsys=bsd4-3
3052 ## Tandem Integrity S2
3053 mips-tandem-sysv* )
3054 machine=tandem-s2 opsys=usg5-3
3057 ## Tektronix XD88
3058 m88k-tektronix-sysv3* )
3059 machine=tekxd88 opsys=usg5-3
3062 ## Tektronix 16000 box (6130?)
3063 ns16k-tektronix-bsd* )
3064 machine=ns16000 opsys=bsd4-2
3066 ## Tektronix 4300
3067 ## src/m/tek4300.h hints that this is a m68k machine.
3068 m68*-tektronix-bsd* )
3069 machine=tek4300 opsys=bsd4-3
3072 ## Titan P2 or P3
3073 ## We seem to have lost the machine-description file titan.h!
3074 titan-titan-sysv* )
3075 machine=titan opsys=usg5-3
3078 ## Ustation E30 (SS5E)
3079 m68*-unisys-uniplus* )
3080 machine=ustation opsystem=unipl5-2
3083 ## Vaxen.
3084 vax-dec-* )
3085 machine=vax
3086 case "${canonical}" in
3087 *-bsd4.1* ) opsys=bsd4-1 ;;
3088 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
3089 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
3090 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
3091 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
3092 *-vms* ) opsys=vms ;;
3093 * ) unported=yes
3094 esac
3097 ## Whitechapel MG1
3098 ns16k-whitechapel-* )
3099 machine=mg1
3100 ## We don't know what sort of OS runs on these; we'll let the
3101 ## operating system guessing code below try.
3104 ## Wicat
3105 m68*-wicat-sysv* )
3106 machine=wicat opsys=usg5-2
3109 ## IA-64
3110 ia64*-*-linux* )
3111 machine=ia64 opsys=gnu-linux
3114 ## Intel 386 machines where we don't care about the manufacturer
3115 i[3456]86-*-* )
3116 machine=intel386
3117 case "${canonical}" in
3118 *-cygwin ) opsys=cygwin ;;
3119 *-darwin* ) opsys=darwin
3120 CPP="${CC-cc} -E -no-cpp-precomp"
3122 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
3123 *-isc2.2* ) opsys=isc2-2 ;;
3124 *-isc4.0* ) opsys=isc4-0 ;;
3125 *-isc4.* ) opsys=isc4-1
3126 GCC_TEST_OPTIONS=-posix
3127 NON_GCC_TEST_OPTIONS=-Xp
3129 *-isc* ) opsys=isc3-0 ;;
3130 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
3131 *-esix* ) opsys=esix ;;
3132 *-xenix* ) opsys=xenix ;;
3133 *-linux-gnu* ) opsys=gnu-linux ;;
3134 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
3135 *-sco3.2v5* ) opsys=sco5
3136 NON_GNU_CPP=/lib/cpp
3137 # Prevent -belf from being passed to $CPP.
3138 # /lib/cpp does not accept it.
3139 OVERRIDE_CPPFLAGS=" "
3141 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3142 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3143 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3144 *-386bsd* ) opsys=386bsd ;;
3145 *-nextstep* ) opsys=nextstep ;;
3146 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3147 esac
3150 ## m68k Linux-based GNU system
3151 m68k-*-linux-gnu* )
3152 machine=m68k opsys=gnu-linux
3155 ## Mips Linux-based GNU system
3156 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
3157 machine=mips opsys=gnu-linux
3160 ## UXP/DS
3161 sparc-fujitsu-sysv4* )
3162 machine=sparc opsys=uxpds
3163 NON_GNU_CPP=/usr/ccs/lib/cpp
3164 RANLIB="ar -ts"
3167 ## UXP/V
3168 f301-fujitsu-uxpv4.1)
3169 machine=f301 opsys=uxpv
3172 ## AMD x86-64 Linux-based GNU system
3173 x86_64-*-linux-gnu* )
3174 machine=amdx86-64 opsys=gnu-linux
3177 ## Tensilica Xtensa Linux-based GNU system
3178 xtensa*-*-linux-* )
3179 machine=xtensa opsys=gnu-linux
3183 unported=yes
3185 esac
3187 ### If the code above didn't choose an operating system, just choose
3188 ### an operating system based on the configuration name. You really
3189 ### only want to use this when you have no idea what the right
3190 ### operating system is; if you know what operating systems a machine
3191 ### runs, it's cleaner to make it explicit in the case statement
3192 ### above.
3193 if test x"${opsys}" = x; then
3194 case "${canonical}" in
3195 *-gnu* ) opsys=gnu ;;
3196 *-bsd4.[01] ) opsys=bsd4-1 ;;
3197 *-bsd4.2 ) opsys=bsd4-2 ;;
3198 *-bsd4.3 ) opsys=bsd4-3 ;;
3199 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
3200 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
3201 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
3202 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
3203 *-sysv4.2uw* ) opsys=unixware ;;
3204 *-sysv5uw* ) opsys=unixware ;;
3205 *-sysv5OpenUNIX* ) opsys=unixware ;;
3206 *-sysv4.1* | *-sysvr4.1* )
3207 NON_GNU_CPP=/usr/lib/cpp
3208 opsys=usg5-4 ;;
3209 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
3210 if [ x$NON_GNU_CPP = x ]; then
3211 if [ -f /usr/ccs/lib/cpp ]; then
3212 NON_GNU_CPP=/usr/ccs/lib/cpp
3213 else
3214 NON_GNU_CPP=/lib/cpp
3217 opsys=usg5-4-2 ;;
3218 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
3220 unported=yes
3222 esac
3225 ### Tests for sytems that we beleive are obsolete and should be desupported.
3227 case "${machine}" in
3228 pmax | hp9000s300 | ibm370aix | ncr386 | ews4800 | mips-siemens | powerpcle | tandem-s2 )
3229 echo "The system that you are configuring on: ${canonical} is considered to be obsolete"
3230 echo "and it is planned to be desupported in the next version of Emacs"
3231 echo "Please email emacs-devel@gnu.org as soon as possible if this system is still in use."
3232 echo "The code is still functional, but you need to edit the 'configure' script and remove the"
3233 echo "exit 33 line. After that you can run configure again and 'complete' the build."
3234 exit 33
3236 esac
3238 case "${opsys}" in
3239 bsd386 | bsdos2-1 | bsdos2 | bsdos3 | bsdos4 | bsd4-1 | bsd4-2 | bsd4-3 | usg5-0 | usg5-2-2 | usg5-2 | usg5-3 | ultrix4-3 | 386bsd | hpux | hpux8 | hpux9 | hpux9shr | hpux10 | aix3-1 | aix3-2-5 | aix3-2 | aix4-1 | nextstep | ux4800 | uxpds | uxpv )
3240 echo "The system that you are configuring on: ${canonical} is considered to be obsolete"
3241 echo "and it is planned to be desupported in the next version of Emacs"
3242 echo "Please email emacs-devel@gnu.org as soon as possible if this system is still in use."
3243 echo "The code is still functional, but you need to edit the 'configure' script and remove the"
3244 echo "'exit 44' line. After that you can run 'configure' again and complete the build."
3245 exit 44
3247 esac
3251 if test $unported = yes; then
3252 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3253 Check \`etc/MACHINES' for recognized configuration names." >&5
3254 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3255 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3256 { (exit 1); exit 1; }; }
3259 machfile="m/${machine}.h"
3260 opsysfile="s/${opsys}.h"
3263 #### Choose a compiler.
3264 test -n "$CC" && cc_specified=yes
3266 # Save the value of CFLAGS that the user specified.
3267 SPECIFIED_CFLAGS="$CFLAGS"
3269 case ${with_gcc} in
3270 "yes" ) CC="gcc" GCC=yes ;;
3271 "no" ) : ${CC=cc} ;;
3273 esac
3274 ac_ext=c
3275 ac_cpp='$CPP $CPPFLAGS'
3276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3279 if test -n "$ac_tool_prefix"; then
3280 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3281 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3284 if test "${ac_cv_prog_CC+set}" = set; then
3285 echo $ECHO_N "(cached) $ECHO_C" >&6
3286 else
3287 if test -n "$CC"; then
3288 ac_cv_prog_CC="$CC" # Let the user override the test.
3289 else
3290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3291 for as_dir in $PATH
3293 IFS=$as_save_IFS
3294 test -z "$as_dir" && as_dir=.
3295 for ac_exec_ext in '' $ac_executable_extensions; do
3296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3297 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3299 break 2
3301 done
3302 done
3303 IFS=$as_save_IFS
3307 CC=$ac_cv_prog_CC
3308 if test -n "$CC"; then
3309 { echo "$as_me:$LINENO: result: $CC" >&5
3310 echo "${ECHO_T}$CC" >&6; }
3311 else
3312 { echo "$as_me:$LINENO: result: no" >&5
3313 echo "${ECHO_T}no" >&6; }
3318 if test -z "$ac_cv_prog_CC"; then
3319 ac_ct_CC=$CC
3320 # Extract the first word of "gcc", so it can be a program name with args.
3321 set dummy gcc; ac_word=$2
3322 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3324 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3325 echo $ECHO_N "(cached) $ECHO_C" >&6
3326 else
3327 if test -n "$ac_ct_CC"; then
3328 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3329 else
3330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3331 for as_dir in $PATH
3333 IFS=$as_save_IFS
3334 test -z "$as_dir" && as_dir=.
3335 for ac_exec_ext in '' $ac_executable_extensions; do
3336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3337 ac_cv_prog_ac_ct_CC="gcc"
3338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3339 break 2
3341 done
3342 done
3343 IFS=$as_save_IFS
3347 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3348 if test -n "$ac_ct_CC"; then
3349 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3350 echo "${ECHO_T}$ac_ct_CC" >&6; }
3351 else
3352 { echo "$as_me:$LINENO: result: no" >&5
3353 echo "${ECHO_T}no" >&6; }
3356 if test "x$ac_ct_CC" = x; then
3357 CC=""
3358 else
3359 case $cross_compiling:$ac_tool_warned in
3360 yes:)
3361 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3362 whose name does not start with the host triplet. If you think this
3363 configuration is useful to you, please write to autoconf@gnu.org." >&5
3364 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3365 whose name does not start with the host triplet. If you think this
3366 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3367 ac_tool_warned=yes ;;
3368 esac
3369 CC=$ac_ct_CC
3371 else
3372 CC="$ac_cv_prog_CC"
3375 if test -z "$CC"; then
3376 if test -n "$ac_tool_prefix"; then
3377 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3378 set dummy ${ac_tool_prefix}cc; ac_word=$2
3379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3381 if test "${ac_cv_prog_CC+set}" = set; then
3382 echo $ECHO_N "(cached) $ECHO_C" >&6
3383 else
3384 if test -n "$CC"; then
3385 ac_cv_prog_CC="$CC" # Let the user override the test.
3386 else
3387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3388 for as_dir in $PATH
3390 IFS=$as_save_IFS
3391 test -z "$as_dir" && as_dir=.
3392 for ac_exec_ext in '' $ac_executable_extensions; do
3393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3394 ac_cv_prog_CC="${ac_tool_prefix}cc"
3395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3396 break 2
3398 done
3399 done
3400 IFS=$as_save_IFS
3404 CC=$ac_cv_prog_CC
3405 if test -n "$CC"; then
3406 { echo "$as_me:$LINENO: result: $CC" >&5
3407 echo "${ECHO_T}$CC" >&6; }
3408 else
3409 { echo "$as_me:$LINENO: result: no" >&5
3410 echo "${ECHO_T}no" >&6; }
3416 if test -z "$CC"; then
3417 # Extract the first word of "cc", so it can be a program name with args.
3418 set dummy cc; ac_word=$2
3419 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3421 if test "${ac_cv_prog_CC+set}" = set; then
3422 echo $ECHO_N "(cached) $ECHO_C" >&6
3423 else
3424 if test -n "$CC"; then
3425 ac_cv_prog_CC="$CC" # Let the user override the test.
3426 else
3427 ac_prog_rejected=no
3428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3429 for as_dir in $PATH
3431 IFS=$as_save_IFS
3432 test -z "$as_dir" && as_dir=.
3433 for ac_exec_ext in '' $ac_executable_extensions; do
3434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3435 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3436 ac_prog_rejected=yes
3437 continue
3439 ac_cv_prog_CC="cc"
3440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3441 break 2
3443 done
3444 done
3445 IFS=$as_save_IFS
3447 if test $ac_prog_rejected = yes; then
3448 # We found a bogon in the path, so make sure we never use it.
3449 set dummy $ac_cv_prog_CC
3450 shift
3451 if test $# != 0; then
3452 # We chose a different compiler from the bogus one.
3453 # However, it has the same basename, so the bogon will be chosen
3454 # first if we set CC to just the basename; use the full file name.
3455 shift
3456 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3461 CC=$ac_cv_prog_CC
3462 if test -n "$CC"; then
3463 { echo "$as_me:$LINENO: result: $CC" >&5
3464 echo "${ECHO_T}$CC" >&6; }
3465 else
3466 { echo "$as_me:$LINENO: result: no" >&5
3467 echo "${ECHO_T}no" >&6; }
3472 if test -z "$CC"; then
3473 if test -n "$ac_tool_prefix"; then
3474 for ac_prog in cl.exe
3476 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3477 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3480 if test "${ac_cv_prog_CC+set}" = set; then
3481 echo $ECHO_N "(cached) $ECHO_C" >&6
3482 else
3483 if test -n "$CC"; then
3484 ac_cv_prog_CC="$CC" # Let the user override the test.
3485 else
3486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3487 for as_dir in $PATH
3489 IFS=$as_save_IFS
3490 test -z "$as_dir" && as_dir=.
3491 for ac_exec_ext in '' $ac_executable_extensions; do
3492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3493 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3495 break 2
3497 done
3498 done
3499 IFS=$as_save_IFS
3503 CC=$ac_cv_prog_CC
3504 if test -n "$CC"; then
3505 { echo "$as_me:$LINENO: result: $CC" >&5
3506 echo "${ECHO_T}$CC" >&6; }
3507 else
3508 { echo "$as_me:$LINENO: result: no" >&5
3509 echo "${ECHO_T}no" >&6; }
3513 test -n "$CC" && break
3514 done
3516 if test -z "$CC"; then
3517 ac_ct_CC=$CC
3518 for ac_prog in cl.exe
3520 # Extract the first word of "$ac_prog", so it can be a program name with args.
3521 set dummy $ac_prog; ac_word=$2
3522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3524 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3525 echo $ECHO_N "(cached) $ECHO_C" >&6
3526 else
3527 if test -n "$ac_ct_CC"; then
3528 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3529 else
3530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3531 for as_dir in $PATH
3533 IFS=$as_save_IFS
3534 test -z "$as_dir" && as_dir=.
3535 for ac_exec_ext in '' $ac_executable_extensions; do
3536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3537 ac_cv_prog_ac_ct_CC="$ac_prog"
3538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3539 break 2
3541 done
3542 done
3543 IFS=$as_save_IFS
3547 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3548 if test -n "$ac_ct_CC"; then
3549 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3550 echo "${ECHO_T}$ac_ct_CC" >&6; }
3551 else
3552 { echo "$as_me:$LINENO: result: no" >&5
3553 echo "${ECHO_T}no" >&6; }
3557 test -n "$ac_ct_CC" && break
3558 done
3560 if test "x$ac_ct_CC" = x; then
3561 CC=""
3562 else
3563 case $cross_compiling:$ac_tool_warned in
3564 yes:)
3565 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3566 whose name does not start with the host triplet. If you think this
3567 configuration is useful to you, please write to autoconf@gnu.org." >&5
3568 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3569 whose name does not start with the host triplet. If you think this
3570 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3571 ac_tool_warned=yes ;;
3572 esac
3573 CC=$ac_ct_CC
3580 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3581 See \`config.log' for more details." >&5
3582 echo "$as_me: error: no acceptable C compiler found in \$PATH
3583 See \`config.log' for more details." >&2;}
3584 { (exit 1); exit 1; }; }
3586 # Provide some information about the compiler.
3587 echo "$as_me:$LINENO: checking for C compiler version" >&5
3588 ac_compiler=`set X $ac_compile; echo $2`
3589 { (ac_try="$ac_compiler --version >&5"
3590 case "(($ac_try" in
3591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3592 *) ac_try_echo=$ac_try;;
3593 esac
3594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3595 (eval "$ac_compiler --version >&5") 2>&5
3596 ac_status=$?
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); }
3599 { (ac_try="$ac_compiler -v >&5"
3600 case "(($ac_try" in
3601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3602 *) ac_try_echo=$ac_try;;
3603 esac
3604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3605 (eval "$ac_compiler -v >&5") 2>&5
3606 ac_status=$?
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); }
3609 { (ac_try="$ac_compiler -V >&5"
3610 case "(($ac_try" in
3611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612 *) ac_try_echo=$ac_try;;
3613 esac
3614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3615 (eval "$ac_compiler -V >&5") 2>&5
3616 ac_status=$?
3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); }
3620 cat >conftest.$ac_ext <<_ACEOF
3621 /* confdefs.h. */
3622 _ACEOF
3623 cat confdefs.h >>conftest.$ac_ext
3624 cat >>conftest.$ac_ext <<_ACEOF
3625 /* end confdefs.h. */
3628 main ()
3632 return 0;
3634 _ACEOF
3635 ac_clean_files_save=$ac_clean_files
3636 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3637 # Try to create an executable without -o first, disregard a.out.
3638 # It will help us diagnose broken compilers, and finding out an intuition
3639 # of exeext.
3640 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3641 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3642 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3644 # List of possible output files, starting from the most likely.
3645 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3646 # only as a last resort. b.out is created by i960 compilers.
3647 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3649 # The IRIX 6 linker writes into existing files which may not be
3650 # executable, retaining their permissions. Remove them first so a
3651 # subsequent execution test works.
3652 ac_rmfiles=
3653 for ac_file in $ac_files
3655 case $ac_file in
3656 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3657 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3658 esac
3659 done
3660 rm -f $ac_rmfiles
3662 if { (ac_try="$ac_link_default"
3663 case "(($ac_try" in
3664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3665 *) ac_try_echo=$ac_try;;
3666 esac
3667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3668 (eval "$ac_link_default") 2>&5
3669 ac_status=$?
3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); }; then
3672 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3673 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3674 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3675 # so that the user can short-circuit this test for compilers unknown to
3676 # Autoconf.
3677 for ac_file in $ac_files ''
3679 test -f "$ac_file" || continue
3680 case $ac_file in
3681 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3683 [ab].out )
3684 # We found the default executable, but exeext='' is most
3685 # certainly right.
3686 break;;
3687 *.* )
3688 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3689 then :; else
3690 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3692 # We set ac_cv_exeext here because the later test for it is not
3693 # safe: cross compilers may not add the suffix if given an `-o'
3694 # argument, so we may need to know it at that point already.
3695 # Even if this section looks crufty: it has the advantage of
3696 # actually working.
3697 break;;
3699 break;;
3700 esac
3701 done
3702 test "$ac_cv_exeext" = no && ac_cv_exeext=
3704 else
3705 ac_file=''
3708 { echo "$as_me:$LINENO: result: $ac_file" >&5
3709 echo "${ECHO_T}$ac_file" >&6; }
3710 if test -z "$ac_file"; then
3711 echo "$as_me: failed program was:" >&5
3712 sed 's/^/| /' conftest.$ac_ext >&5
3714 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3715 See \`config.log' for more details." >&5
3716 echo "$as_me: error: C compiler cannot create executables
3717 See \`config.log' for more details." >&2;}
3718 { (exit 77); exit 77; }; }
3721 ac_exeext=$ac_cv_exeext
3723 # Check that the compiler produces executables we can run. If not, either
3724 # the compiler is broken, or we cross compile.
3725 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3726 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3727 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3728 # If not cross compiling, check that we can run a simple program.
3729 if test "$cross_compiling" != yes; then
3730 if { ac_try='./$ac_file'
3731 { (case "(($ac_try" in
3732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3733 *) ac_try_echo=$ac_try;;
3734 esac
3735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3736 (eval "$ac_try") 2>&5
3737 ac_status=$?
3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); }; }; then
3740 cross_compiling=no
3741 else
3742 if test "$cross_compiling" = maybe; then
3743 cross_compiling=yes
3744 else
3745 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3746 If you meant to cross compile, use \`--host'.
3747 See \`config.log' for more details." >&5
3748 echo "$as_me: error: cannot run C compiled programs.
3749 If you meant to cross compile, use \`--host'.
3750 See \`config.log' for more details." >&2;}
3751 { (exit 1); exit 1; }; }
3755 { echo "$as_me:$LINENO: result: yes" >&5
3756 echo "${ECHO_T}yes" >&6; }
3758 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3759 ac_clean_files=$ac_clean_files_save
3760 # Check that the compiler produces executables we can run. If not, either
3761 # the compiler is broken, or we cross compile.
3762 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3763 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3764 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3765 echo "${ECHO_T}$cross_compiling" >&6; }
3767 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3768 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3769 if { (ac_try="$ac_link"
3770 case "(($ac_try" in
3771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3772 *) ac_try_echo=$ac_try;;
3773 esac
3774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3775 (eval "$ac_link") 2>&5
3776 ac_status=$?
3777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778 (exit $ac_status); }; then
3779 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3780 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3781 # work properly (i.e., refer to `conftest.exe'), while it won't with
3782 # `rm'.
3783 for ac_file in conftest.exe conftest conftest.*; do
3784 test -f "$ac_file" || continue
3785 case $ac_file in
3786 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3787 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3788 break;;
3789 * ) break;;
3790 esac
3791 done
3792 else
3793 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3794 See \`config.log' for more details." >&5
3795 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3796 See \`config.log' for more details." >&2;}
3797 { (exit 1); exit 1; }; }
3800 rm -f conftest$ac_cv_exeext
3801 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3802 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3804 rm -f conftest.$ac_ext
3805 EXEEXT=$ac_cv_exeext
3806 ac_exeext=$EXEEXT
3807 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3808 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3809 if test "${ac_cv_objext+set}" = set; then
3810 echo $ECHO_N "(cached) $ECHO_C" >&6
3811 else
3812 cat >conftest.$ac_ext <<_ACEOF
3813 /* confdefs.h. */
3814 _ACEOF
3815 cat confdefs.h >>conftest.$ac_ext
3816 cat >>conftest.$ac_ext <<_ACEOF
3817 /* end confdefs.h. */
3820 main ()
3824 return 0;
3826 _ACEOF
3827 rm -f conftest.o conftest.obj
3828 if { (ac_try="$ac_compile"
3829 case "(($ac_try" in
3830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3831 *) ac_try_echo=$ac_try;;
3832 esac
3833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3834 (eval "$ac_compile") 2>&5
3835 ac_status=$?
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); }; then
3838 for ac_file in conftest.o conftest.obj conftest.*; do
3839 test -f "$ac_file" || continue;
3840 case $ac_file in
3841 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3842 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3843 break;;
3844 esac
3845 done
3846 else
3847 echo "$as_me: failed program was:" >&5
3848 sed 's/^/| /' conftest.$ac_ext >&5
3850 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3851 See \`config.log' for more details." >&5
3852 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3853 See \`config.log' for more details." >&2;}
3854 { (exit 1); exit 1; }; }
3857 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3859 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3860 echo "${ECHO_T}$ac_cv_objext" >&6; }
3861 OBJEXT=$ac_cv_objext
3862 ac_objext=$OBJEXT
3863 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3864 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3865 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3866 echo $ECHO_N "(cached) $ECHO_C" >&6
3867 else
3868 cat >conftest.$ac_ext <<_ACEOF
3869 /* confdefs.h. */
3870 _ACEOF
3871 cat confdefs.h >>conftest.$ac_ext
3872 cat >>conftest.$ac_ext <<_ACEOF
3873 /* end confdefs.h. */
3876 main ()
3878 #ifndef __GNUC__
3879 choke me
3880 #endif
3883 return 0;
3885 _ACEOF
3886 rm -f conftest.$ac_objext
3887 if { (ac_try="$ac_compile"
3888 case "(($ac_try" in
3889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3890 *) ac_try_echo=$ac_try;;
3891 esac
3892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3893 (eval "$ac_compile") 2>conftest.er1
3894 ac_status=$?
3895 grep -v '^ *+' conftest.er1 >conftest.err
3896 rm -f conftest.er1
3897 cat conftest.err >&5
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); } && {
3900 test -z "$ac_c_werror_flag" ||
3901 test ! -s conftest.err
3902 } && test -s conftest.$ac_objext; then
3903 ac_compiler_gnu=yes
3904 else
3905 echo "$as_me: failed program was:" >&5
3906 sed 's/^/| /' conftest.$ac_ext >&5
3908 ac_compiler_gnu=no
3911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3912 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3915 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3916 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3917 GCC=`test $ac_compiler_gnu = yes && echo yes`
3918 ac_test_CFLAGS=${CFLAGS+set}
3919 ac_save_CFLAGS=$CFLAGS
3920 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3921 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3922 if test "${ac_cv_prog_cc_g+set}" = set; then
3923 echo $ECHO_N "(cached) $ECHO_C" >&6
3924 else
3925 ac_save_c_werror_flag=$ac_c_werror_flag
3926 ac_c_werror_flag=yes
3927 ac_cv_prog_cc_g=no
3928 CFLAGS="-g"
3929 cat >conftest.$ac_ext <<_ACEOF
3930 /* confdefs.h. */
3931 _ACEOF
3932 cat confdefs.h >>conftest.$ac_ext
3933 cat >>conftest.$ac_ext <<_ACEOF
3934 /* end confdefs.h. */
3937 main ()
3941 return 0;
3943 _ACEOF
3944 rm -f conftest.$ac_objext
3945 if { (ac_try="$ac_compile"
3946 case "(($ac_try" in
3947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3948 *) ac_try_echo=$ac_try;;
3949 esac
3950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3951 (eval "$ac_compile") 2>conftest.er1
3952 ac_status=$?
3953 grep -v '^ *+' conftest.er1 >conftest.err
3954 rm -f conftest.er1
3955 cat conftest.err >&5
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); } && {
3958 test -z "$ac_c_werror_flag" ||
3959 test ! -s conftest.err
3960 } && test -s conftest.$ac_objext; then
3961 ac_cv_prog_cc_g=yes
3962 else
3963 echo "$as_me: failed program was:" >&5
3964 sed 's/^/| /' conftest.$ac_ext >&5
3966 CFLAGS=""
3967 cat >conftest.$ac_ext <<_ACEOF
3968 /* confdefs.h. */
3969 _ACEOF
3970 cat confdefs.h >>conftest.$ac_ext
3971 cat >>conftest.$ac_ext <<_ACEOF
3972 /* end confdefs.h. */
3975 main ()
3979 return 0;
3981 _ACEOF
3982 rm -f conftest.$ac_objext
3983 if { (ac_try="$ac_compile"
3984 case "(($ac_try" in
3985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3986 *) ac_try_echo=$ac_try;;
3987 esac
3988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3989 (eval "$ac_compile") 2>conftest.er1
3990 ac_status=$?
3991 grep -v '^ *+' conftest.er1 >conftest.err
3992 rm -f conftest.er1
3993 cat conftest.err >&5
3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); } && {
3996 test -z "$ac_c_werror_flag" ||
3997 test ! -s conftest.err
3998 } && test -s conftest.$ac_objext; then
4000 else
4001 echo "$as_me: failed program was:" >&5
4002 sed 's/^/| /' conftest.$ac_ext >&5
4004 ac_c_werror_flag=$ac_save_c_werror_flag
4005 CFLAGS="-g"
4006 cat >conftest.$ac_ext <<_ACEOF
4007 /* confdefs.h. */
4008 _ACEOF
4009 cat confdefs.h >>conftest.$ac_ext
4010 cat >>conftest.$ac_ext <<_ACEOF
4011 /* end confdefs.h. */
4014 main ()
4018 return 0;
4020 _ACEOF
4021 rm -f conftest.$ac_objext
4022 if { (ac_try="$ac_compile"
4023 case "(($ac_try" in
4024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4025 *) ac_try_echo=$ac_try;;
4026 esac
4027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4028 (eval "$ac_compile") 2>conftest.er1
4029 ac_status=$?
4030 grep -v '^ *+' conftest.er1 >conftest.err
4031 rm -f conftest.er1
4032 cat conftest.err >&5
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); } && {
4035 test -z "$ac_c_werror_flag" ||
4036 test ! -s conftest.err
4037 } && test -s conftest.$ac_objext; then
4038 ac_cv_prog_cc_g=yes
4039 else
4040 echo "$as_me: failed program was:" >&5
4041 sed 's/^/| /' conftest.$ac_ext >&5
4046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4053 ac_c_werror_flag=$ac_save_c_werror_flag
4055 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4056 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4057 if test "$ac_test_CFLAGS" = set; then
4058 CFLAGS=$ac_save_CFLAGS
4059 elif test $ac_cv_prog_cc_g = yes; then
4060 if test "$GCC" = yes; then
4061 CFLAGS="-g -O2"
4062 else
4063 CFLAGS="-g"
4065 else
4066 if test "$GCC" = yes; then
4067 CFLAGS="-O2"
4068 else
4069 CFLAGS=
4072 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4073 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4074 if test "${ac_cv_prog_cc_c89+set}" = set; then
4075 echo $ECHO_N "(cached) $ECHO_C" >&6
4076 else
4077 ac_cv_prog_cc_c89=no
4078 ac_save_CC=$CC
4079 cat >conftest.$ac_ext <<_ACEOF
4080 /* confdefs.h. */
4081 _ACEOF
4082 cat confdefs.h >>conftest.$ac_ext
4083 cat >>conftest.$ac_ext <<_ACEOF
4084 /* end confdefs.h. */
4085 #include <stdarg.h>
4086 #include <stdio.h>
4087 #include <sys/types.h>
4088 #include <sys/stat.h>
4089 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4090 struct buf { int x; };
4091 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4092 static char *e (p, i)
4093 char **p;
4094 int i;
4096 return p[i];
4098 static char *f (char * (*g) (char **, int), char **p, ...)
4100 char *s;
4101 va_list v;
4102 va_start (v,p);
4103 s = g (p, va_arg (v,int));
4104 va_end (v);
4105 return s;
4108 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4109 function prototypes and stuff, but not '\xHH' hex character constants.
4110 These don't provoke an error unfortunately, instead are silently treated
4111 as 'x'. The following induces an error, until -std is added to get
4112 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4113 array size at least. It's necessary to write '\x00'==0 to get something
4114 that's true only with -std. */
4115 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4117 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4118 inside strings and character constants. */
4119 #define FOO(x) 'x'
4120 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4122 int test (int i, double x);
4123 struct s1 {int (*f) (int a);};
4124 struct s2 {int (*f) (double a);};
4125 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4126 int argc;
4127 char **argv;
4129 main ()
4131 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4133 return 0;
4135 _ACEOF
4136 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4137 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4139 CC="$ac_save_CC $ac_arg"
4140 rm -f conftest.$ac_objext
4141 if { (ac_try="$ac_compile"
4142 case "(($ac_try" in
4143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4144 *) ac_try_echo=$ac_try;;
4145 esac
4146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4147 (eval "$ac_compile") 2>conftest.er1
4148 ac_status=$?
4149 grep -v '^ *+' conftest.er1 >conftest.err
4150 rm -f conftest.er1
4151 cat conftest.err >&5
4152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153 (exit $ac_status); } && {
4154 test -z "$ac_c_werror_flag" ||
4155 test ! -s conftest.err
4156 } && test -s conftest.$ac_objext; then
4157 ac_cv_prog_cc_c89=$ac_arg
4158 else
4159 echo "$as_me: failed program was:" >&5
4160 sed 's/^/| /' conftest.$ac_ext >&5
4165 rm -f core conftest.err conftest.$ac_objext
4166 test "x$ac_cv_prog_cc_c89" != "xno" && break
4167 done
4168 rm -f conftest.$ac_ext
4169 CC=$ac_save_CC
4172 # AC_CACHE_VAL
4173 case "x$ac_cv_prog_cc_c89" in
4175 { echo "$as_me:$LINENO: result: none needed" >&5
4176 echo "${ECHO_T}none needed" >&6; } ;;
4177 xno)
4178 { echo "$as_me:$LINENO: result: unsupported" >&5
4179 echo "${ECHO_T}unsupported" >&6; } ;;
4181 CC="$CC $ac_cv_prog_cc_c89"
4182 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4183 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4184 esac
4187 ac_ext=c
4188 ac_cpp='$CPP $CPPFLAGS'
4189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4194 # On Suns, sometimes $CPP names a directory.
4195 if test -n "$CPP" && test -d "$CPP"; then
4196 CPP=
4199 #### Some systems specify a CPP to use unless we are using GCC.
4200 #### Now that we know whether we are using GCC, we can decide whether
4201 #### to use that one.
4202 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4203 then
4204 CPP="$NON_GNU_CPP"
4207 #### Some systems specify a CC to use unless we are using GCC.
4208 #### Now that we know whether we are using GCC, we can decide whether
4209 #### to use that one.
4210 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4211 test x$cc_specified != xyes
4212 then
4213 CC="$NON_GNU_CC"
4216 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4217 then
4218 CC="$CC $GCC_TEST_OPTIONS"
4221 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4222 then
4223 CC="$CC $NON_GCC_TEST_OPTIONS"
4227 ac_ext=c
4228 ac_cpp='$CPP $CPPFLAGS'
4229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4232 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4233 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4234 # On Suns, sometimes $CPP names a directory.
4235 if test -n "$CPP" && test -d "$CPP"; then
4236 CPP=
4238 if test -z "$CPP"; then
4239 if test "${ac_cv_prog_CPP+set}" = set; then
4240 echo $ECHO_N "(cached) $ECHO_C" >&6
4241 else
4242 # Double quotes because CPP needs to be expanded
4243 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4245 ac_preproc_ok=false
4246 for ac_c_preproc_warn_flag in '' yes
4248 # Use a header file that comes with gcc, so configuring glibc
4249 # with a fresh cross-compiler works.
4250 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4251 # <limits.h> exists even on freestanding compilers.
4252 # On the NeXT, cc -E runs the code through the compiler's parser,
4253 # not just through cpp. "Syntax error" is here to catch this case.
4254 cat >conftest.$ac_ext <<_ACEOF
4255 /* confdefs.h. */
4256 _ACEOF
4257 cat confdefs.h >>conftest.$ac_ext
4258 cat >>conftest.$ac_ext <<_ACEOF
4259 /* end confdefs.h. */
4260 #ifdef __STDC__
4261 # include <limits.h>
4262 #else
4263 # include <assert.h>
4264 #endif
4265 Syntax error
4266 _ACEOF
4267 if { (ac_try="$ac_cpp conftest.$ac_ext"
4268 case "(($ac_try" in
4269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4270 *) ac_try_echo=$ac_try;;
4271 esac
4272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4273 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4274 ac_status=$?
4275 grep -v '^ *+' conftest.er1 >conftest.err
4276 rm -f conftest.er1
4277 cat conftest.err >&5
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); } >/dev/null && {
4280 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4281 test ! -s conftest.err
4282 }; then
4284 else
4285 echo "$as_me: failed program was:" >&5
4286 sed 's/^/| /' conftest.$ac_ext >&5
4288 # Broken: fails on valid input.
4289 continue
4292 rm -f conftest.err conftest.$ac_ext
4294 # OK, works on sane cases. Now check whether nonexistent headers
4295 # can be detected and how.
4296 cat >conftest.$ac_ext <<_ACEOF
4297 /* confdefs.h. */
4298 _ACEOF
4299 cat confdefs.h >>conftest.$ac_ext
4300 cat >>conftest.$ac_ext <<_ACEOF
4301 /* end confdefs.h. */
4302 #include <ac_nonexistent.h>
4303 _ACEOF
4304 if { (ac_try="$ac_cpp conftest.$ac_ext"
4305 case "(($ac_try" in
4306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307 *) ac_try_echo=$ac_try;;
4308 esac
4309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4310 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4311 ac_status=$?
4312 grep -v '^ *+' conftest.er1 >conftest.err
4313 rm -f conftest.er1
4314 cat conftest.err >&5
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); } >/dev/null && {
4317 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4318 test ! -s conftest.err
4319 }; then
4320 # Broken: success on invalid input.
4321 continue
4322 else
4323 echo "$as_me: failed program was:" >&5
4324 sed 's/^/| /' conftest.$ac_ext >&5
4326 # Passes both tests.
4327 ac_preproc_ok=:
4328 break
4331 rm -f conftest.err conftest.$ac_ext
4333 done
4334 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4335 rm -f conftest.err conftest.$ac_ext
4336 if $ac_preproc_ok; then
4337 break
4340 done
4341 ac_cv_prog_CPP=$CPP
4344 CPP=$ac_cv_prog_CPP
4345 else
4346 ac_cv_prog_CPP=$CPP
4348 { echo "$as_me:$LINENO: result: $CPP" >&5
4349 echo "${ECHO_T}$CPP" >&6; }
4350 ac_preproc_ok=false
4351 for ac_c_preproc_warn_flag in '' yes
4353 # Use a header file that comes with gcc, so configuring glibc
4354 # with a fresh cross-compiler works.
4355 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4356 # <limits.h> exists even on freestanding compilers.
4357 # On the NeXT, cc -E runs the code through the compiler's parser,
4358 # not just through cpp. "Syntax error" is here to catch this case.
4359 cat >conftest.$ac_ext <<_ACEOF
4360 /* confdefs.h. */
4361 _ACEOF
4362 cat confdefs.h >>conftest.$ac_ext
4363 cat >>conftest.$ac_ext <<_ACEOF
4364 /* end confdefs.h. */
4365 #ifdef __STDC__
4366 # include <limits.h>
4367 #else
4368 # include <assert.h>
4369 #endif
4370 Syntax error
4371 _ACEOF
4372 if { (ac_try="$ac_cpp conftest.$ac_ext"
4373 case "(($ac_try" in
4374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4375 *) ac_try_echo=$ac_try;;
4376 esac
4377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4378 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4379 ac_status=$?
4380 grep -v '^ *+' conftest.er1 >conftest.err
4381 rm -f conftest.er1
4382 cat conftest.err >&5
4383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 (exit $ac_status); } >/dev/null && {
4385 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4386 test ! -s conftest.err
4387 }; then
4389 else
4390 echo "$as_me: failed program was:" >&5
4391 sed 's/^/| /' conftest.$ac_ext >&5
4393 # Broken: fails on valid input.
4394 continue
4397 rm -f conftest.err conftest.$ac_ext
4399 # OK, works on sane cases. Now check whether nonexistent headers
4400 # can be detected and how.
4401 cat >conftest.$ac_ext <<_ACEOF
4402 /* confdefs.h. */
4403 _ACEOF
4404 cat confdefs.h >>conftest.$ac_ext
4405 cat >>conftest.$ac_ext <<_ACEOF
4406 /* end confdefs.h. */
4407 #include <ac_nonexistent.h>
4408 _ACEOF
4409 if { (ac_try="$ac_cpp conftest.$ac_ext"
4410 case "(($ac_try" in
4411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4412 *) ac_try_echo=$ac_try;;
4413 esac
4414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4416 ac_status=$?
4417 grep -v '^ *+' conftest.er1 >conftest.err
4418 rm -f conftest.er1
4419 cat conftest.err >&5
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); } >/dev/null && {
4422 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4423 test ! -s conftest.err
4424 }; then
4425 # Broken: success on invalid input.
4426 continue
4427 else
4428 echo "$as_me: failed program was:" >&5
4429 sed 's/^/| /' conftest.$ac_ext >&5
4431 # Passes both tests.
4432 ac_preproc_ok=:
4433 break
4436 rm -f conftest.err conftest.$ac_ext
4438 done
4439 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4440 rm -f conftest.err conftest.$ac_ext
4441 if $ac_preproc_ok; then
4443 else
4444 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4445 See \`config.log' for more details." >&5
4446 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4447 See \`config.log' for more details." >&2;}
4448 { (exit 1); exit 1; }; }
4451 ac_ext=c
4452 ac_cpp='$CPP $CPPFLAGS'
4453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4458 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4459 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4460 if test "${ac_cv_path_GREP+set}" = set; then
4461 echo $ECHO_N "(cached) $ECHO_C" >&6
4462 else
4463 # Extract the first word of "grep ggrep" to use in msg output
4464 if test -z "$GREP"; then
4465 set dummy grep ggrep; ac_prog_name=$2
4466 if test "${ac_cv_path_GREP+set}" = set; then
4467 echo $ECHO_N "(cached) $ECHO_C" >&6
4468 else
4469 ac_path_GREP_found=false
4470 # Loop through the user's path and test for each of PROGNAME-LIST
4471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4474 IFS=$as_save_IFS
4475 test -z "$as_dir" && as_dir=.
4476 for ac_prog in grep ggrep; do
4477 for ac_exec_ext in '' $ac_executable_extensions; do
4478 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4479 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4480 # Check for GNU ac_path_GREP and select it if it is found.
4481 # Check for GNU $ac_path_GREP
4482 case `"$ac_path_GREP" --version 2>&1` in
4483 *GNU*)
4484 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4486 ac_count=0
4487 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4488 while :
4490 cat "conftest.in" "conftest.in" >"conftest.tmp"
4491 mv "conftest.tmp" "conftest.in"
4492 cp "conftest.in" "conftest.nl"
4493 echo 'GREP' >> "conftest.nl"
4494 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4495 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4496 ac_count=`expr $ac_count + 1`
4497 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4498 # Best one so far, save it but keep looking for a better one
4499 ac_cv_path_GREP="$ac_path_GREP"
4500 ac_path_GREP_max=$ac_count
4502 # 10*(2^10) chars as input seems more than enough
4503 test $ac_count -gt 10 && break
4504 done
4505 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4506 esac
4509 $ac_path_GREP_found && break 3
4510 done
4511 done
4513 done
4514 IFS=$as_save_IFS
4519 GREP="$ac_cv_path_GREP"
4520 if test -z "$GREP"; then
4521 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4522 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4523 { (exit 1); exit 1; }; }
4526 else
4527 ac_cv_path_GREP=$GREP
4532 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4533 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4534 GREP="$ac_cv_path_GREP"
4537 { echo "$as_me:$LINENO: checking for egrep" >&5
4538 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4539 if test "${ac_cv_path_EGREP+set}" = set; then
4540 echo $ECHO_N "(cached) $ECHO_C" >&6
4541 else
4542 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4543 then ac_cv_path_EGREP="$GREP -E"
4544 else
4545 # Extract the first word of "egrep" to use in msg output
4546 if test -z "$EGREP"; then
4547 set dummy egrep; ac_prog_name=$2
4548 if test "${ac_cv_path_EGREP+set}" = set; then
4549 echo $ECHO_N "(cached) $ECHO_C" >&6
4550 else
4551 ac_path_EGREP_found=false
4552 # Loop through the user's path and test for each of PROGNAME-LIST
4553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4556 IFS=$as_save_IFS
4557 test -z "$as_dir" && as_dir=.
4558 for ac_prog in egrep; do
4559 for ac_exec_ext in '' $ac_executable_extensions; do
4560 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4561 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4562 # Check for GNU ac_path_EGREP and select it if it is found.
4563 # Check for GNU $ac_path_EGREP
4564 case `"$ac_path_EGREP" --version 2>&1` in
4565 *GNU*)
4566 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4568 ac_count=0
4569 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4570 while :
4572 cat "conftest.in" "conftest.in" >"conftest.tmp"
4573 mv "conftest.tmp" "conftest.in"
4574 cp "conftest.in" "conftest.nl"
4575 echo 'EGREP' >> "conftest.nl"
4576 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4577 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4578 ac_count=`expr $ac_count + 1`
4579 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4580 # Best one so far, save it but keep looking for a better one
4581 ac_cv_path_EGREP="$ac_path_EGREP"
4582 ac_path_EGREP_max=$ac_count
4584 # 10*(2^10) chars as input seems more than enough
4585 test $ac_count -gt 10 && break
4586 done
4587 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4588 esac
4591 $ac_path_EGREP_found && break 3
4592 done
4593 done
4595 done
4596 IFS=$as_save_IFS
4601 EGREP="$ac_cv_path_EGREP"
4602 if test -z "$EGREP"; then
4603 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4604 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4605 { (exit 1); exit 1; }; }
4608 else
4609 ac_cv_path_EGREP=$EGREP
4615 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4616 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4617 EGREP="$ac_cv_path_EGREP"
4621 { echo "$as_me:$LINENO: checking for AIX" >&5
4622 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4623 cat >conftest.$ac_ext <<_ACEOF
4624 /* confdefs.h. */
4625 _ACEOF
4626 cat confdefs.h >>conftest.$ac_ext
4627 cat >>conftest.$ac_ext <<_ACEOF
4628 /* end confdefs.h. */
4629 #ifdef _AIX
4631 #endif
4633 _ACEOF
4634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4635 $EGREP "yes" >/dev/null 2>&1; then
4636 { echo "$as_me:$LINENO: result: yes" >&5
4637 echo "${ECHO_T}yes" >&6; }
4638 cat >>confdefs.h <<\_ACEOF
4639 #define _ALL_SOURCE 1
4640 _ACEOF
4642 else
4643 { echo "$as_me:$LINENO: result: no" >&5
4644 echo "${ECHO_T}no" >&6; }
4646 rm -f conftest*
4650 cat >>confdefs.h <<\_ACEOF
4651 #define _GNU_SOURCE 1
4652 _ACEOF
4656 ### Use -Wno-pointer-sign if the compiler supports it
4657 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4658 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4659 SAVE_CFLAGS="$CFLAGS"
4660 CFLAGS="$CFLAGS -Wno-pointer-sign"
4661 cat >conftest.$ac_ext <<_ACEOF
4662 /* confdefs.h. */
4663 _ACEOF
4664 cat confdefs.h >>conftest.$ac_ext
4665 cat >>conftest.$ac_ext <<_ACEOF
4666 /* end confdefs.h. */
4669 main ()
4673 return 0;
4675 _ACEOF
4676 rm -f conftest.$ac_objext
4677 if { (ac_try="$ac_compile"
4678 case "(($ac_try" in
4679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4680 *) ac_try_echo=$ac_try;;
4681 esac
4682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4683 (eval "$ac_compile") 2>conftest.er1
4684 ac_status=$?
4685 grep -v '^ *+' conftest.er1 >conftest.err
4686 rm -f conftest.er1
4687 cat conftest.err >&5
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); } && {
4690 test -z "$ac_c_werror_flag" ||
4691 test ! -s conftest.err
4692 } && test -s conftest.$ac_objext; then
4693 has_option=yes
4694 else
4695 echo "$as_me: failed program was:" >&5
4696 sed 's/^/| /' conftest.$ac_ext >&5
4698 has_option=no
4701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4702 if test $has_option = yes; then
4703 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4705 { echo "$as_me:$LINENO: result: $has_option" >&5
4706 echo "${ECHO_T}$has_option" >&6; }
4707 CFLAGS="$SAVE_CFLAGS"
4708 unset has_option
4709 unset SAVE_CFLAGS
4711 #### Some other nice autoconf tests.
4713 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4714 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4715 LN_S=$as_ln_s
4716 if test "$LN_S" = "ln -s"; then
4717 { echo "$as_me:$LINENO: result: yes" >&5
4718 echo "${ECHO_T}yes" >&6; }
4719 else
4720 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4721 echo "${ECHO_T}no, using $LN_S" >&6; }
4724 ac_ext=c
4725 ac_cpp='$CPP $CPPFLAGS'
4726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4729 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4730 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4731 # On Suns, sometimes $CPP names a directory.
4732 if test -n "$CPP" && test -d "$CPP"; then
4733 CPP=
4735 if test -z "$CPP"; then
4736 if test "${ac_cv_prog_CPP+set}" = set; then
4737 echo $ECHO_N "(cached) $ECHO_C" >&6
4738 else
4739 # Double quotes because CPP needs to be expanded
4740 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4742 ac_preproc_ok=false
4743 for ac_c_preproc_warn_flag in '' yes
4745 # Use a header file that comes with gcc, so configuring glibc
4746 # with a fresh cross-compiler works.
4747 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4748 # <limits.h> exists even on freestanding compilers.
4749 # On the NeXT, cc -E runs the code through the compiler's parser,
4750 # not just through cpp. "Syntax error" is here to catch this case.
4751 cat >conftest.$ac_ext <<_ACEOF
4752 /* confdefs.h. */
4753 _ACEOF
4754 cat confdefs.h >>conftest.$ac_ext
4755 cat >>conftest.$ac_ext <<_ACEOF
4756 /* end confdefs.h. */
4757 #ifdef __STDC__
4758 # include <limits.h>
4759 #else
4760 # include <assert.h>
4761 #endif
4762 Syntax error
4763 _ACEOF
4764 if { (ac_try="$ac_cpp conftest.$ac_ext"
4765 case "(($ac_try" in
4766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4767 *) ac_try_echo=$ac_try;;
4768 esac
4769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4770 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4771 ac_status=$?
4772 grep -v '^ *+' conftest.er1 >conftest.err
4773 rm -f conftest.er1
4774 cat conftest.err >&5
4775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776 (exit $ac_status); } >/dev/null && {
4777 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4778 test ! -s conftest.err
4779 }; then
4781 else
4782 echo "$as_me: failed program was:" >&5
4783 sed 's/^/| /' conftest.$ac_ext >&5
4785 # Broken: fails on valid input.
4786 continue
4789 rm -f conftest.err conftest.$ac_ext
4791 # OK, works on sane cases. Now check whether nonexistent headers
4792 # can be detected and how.
4793 cat >conftest.$ac_ext <<_ACEOF
4794 /* confdefs.h. */
4795 _ACEOF
4796 cat confdefs.h >>conftest.$ac_ext
4797 cat >>conftest.$ac_ext <<_ACEOF
4798 /* end confdefs.h. */
4799 #include <ac_nonexistent.h>
4800 _ACEOF
4801 if { (ac_try="$ac_cpp conftest.$ac_ext"
4802 case "(($ac_try" in
4803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4804 *) ac_try_echo=$ac_try;;
4805 esac
4806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4807 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4808 ac_status=$?
4809 grep -v '^ *+' conftest.er1 >conftest.err
4810 rm -f conftest.er1
4811 cat conftest.err >&5
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); } >/dev/null && {
4814 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4815 test ! -s conftest.err
4816 }; then
4817 # Broken: success on invalid input.
4818 continue
4819 else
4820 echo "$as_me: failed program was:" >&5
4821 sed 's/^/| /' conftest.$ac_ext >&5
4823 # Passes both tests.
4824 ac_preproc_ok=:
4825 break
4828 rm -f conftest.err conftest.$ac_ext
4830 done
4831 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4832 rm -f conftest.err conftest.$ac_ext
4833 if $ac_preproc_ok; then
4834 break
4837 done
4838 ac_cv_prog_CPP=$CPP
4841 CPP=$ac_cv_prog_CPP
4842 else
4843 ac_cv_prog_CPP=$CPP
4845 { echo "$as_me:$LINENO: result: $CPP" >&5
4846 echo "${ECHO_T}$CPP" >&6; }
4847 ac_preproc_ok=false
4848 for ac_c_preproc_warn_flag in '' yes
4850 # Use a header file that comes with gcc, so configuring glibc
4851 # with a fresh cross-compiler works.
4852 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4853 # <limits.h> exists even on freestanding compilers.
4854 # On the NeXT, cc -E runs the code through the compiler's parser,
4855 # not just through cpp. "Syntax error" is here to catch this case.
4856 cat >conftest.$ac_ext <<_ACEOF
4857 /* confdefs.h. */
4858 _ACEOF
4859 cat confdefs.h >>conftest.$ac_ext
4860 cat >>conftest.$ac_ext <<_ACEOF
4861 /* end confdefs.h. */
4862 #ifdef __STDC__
4863 # include <limits.h>
4864 #else
4865 # include <assert.h>
4866 #endif
4867 Syntax error
4868 _ACEOF
4869 if { (ac_try="$ac_cpp conftest.$ac_ext"
4870 case "(($ac_try" in
4871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4872 *) ac_try_echo=$ac_try;;
4873 esac
4874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4875 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4876 ac_status=$?
4877 grep -v '^ *+' conftest.er1 >conftest.err
4878 rm -f conftest.er1
4879 cat conftest.err >&5
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); } >/dev/null && {
4882 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4883 test ! -s conftest.err
4884 }; then
4886 else
4887 echo "$as_me: failed program was:" >&5
4888 sed 's/^/| /' conftest.$ac_ext >&5
4890 # Broken: fails on valid input.
4891 continue
4894 rm -f conftest.err conftest.$ac_ext
4896 # OK, works on sane cases. Now check whether nonexistent headers
4897 # can be detected and how.
4898 cat >conftest.$ac_ext <<_ACEOF
4899 /* confdefs.h. */
4900 _ACEOF
4901 cat confdefs.h >>conftest.$ac_ext
4902 cat >>conftest.$ac_ext <<_ACEOF
4903 /* end confdefs.h. */
4904 #include <ac_nonexistent.h>
4905 _ACEOF
4906 if { (ac_try="$ac_cpp conftest.$ac_ext"
4907 case "(($ac_try" in
4908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4909 *) ac_try_echo=$ac_try;;
4910 esac
4911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4912 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4913 ac_status=$?
4914 grep -v '^ *+' conftest.er1 >conftest.err
4915 rm -f conftest.er1
4916 cat conftest.err >&5
4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); } >/dev/null && {
4919 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4920 test ! -s conftest.err
4921 }; then
4922 # Broken: success on invalid input.
4923 continue
4924 else
4925 echo "$as_me: failed program was:" >&5
4926 sed 's/^/| /' conftest.$ac_ext >&5
4928 # Passes both tests.
4929 ac_preproc_ok=:
4930 break
4933 rm -f conftest.err conftest.$ac_ext
4935 done
4936 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4937 rm -f conftest.err conftest.$ac_ext
4938 if $ac_preproc_ok; then
4940 else
4941 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4942 See \`config.log' for more details." >&5
4943 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4944 See \`config.log' for more details." >&2;}
4945 { (exit 1); exit 1; }; }
4948 ac_ext=c
4949 ac_cpp='$CPP $CPPFLAGS'
4950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4954 # Find a good install program. We prefer a C program (faster),
4955 # so one script is as good as another. But avoid the broken or
4956 # incompatible versions:
4957 # SysV /etc/install, /usr/sbin/install
4958 # SunOS /usr/etc/install
4959 # IRIX /sbin/install
4960 # AIX /bin/install
4961 # AmigaOS /C/install, which installs bootblocks on floppy discs
4962 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4963 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4964 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4965 # OS/2's system install, which has a completely different semantic
4966 # ./install, which can be erroneously created by make from ./install.sh.
4967 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4968 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4969 if test -z "$INSTALL"; then
4970 if test "${ac_cv_path_install+set}" = set; then
4971 echo $ECHO_N "(cached) $ECHO_C" >&6
4972 else
4973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4974 for as_dir in $PATH
4976 IFS=$as_save_IFS
4977 test -z "$as_dir" && as_dir=.
4978 # Account for people who put trailing slashes in PATH elements.
4979 case $as_dir/ in
4980 ./ | .// | /cC/* | \
4981 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4982 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4983 /usr/ucb/* ) ;;
4985 # OSF1 and SCO ODT 3.0 have their own names for install.
4986 # Don't use installbsd from OSF since it installs stuff as root
4987 # by default.
4988 for ac_prog in ginstall scoinst install; do
4989 for ac_exec_ext in '' $ac_executable_extensions; do
4990 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4991 if test $ac_prog = install &&
4992 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4993 # AIX install. It has an incompatible calling convention.
4995 elif test $ac_prog = install &&
4996 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4997 # program-specific install script used by HP pwplus--don't use.
4999 else
5000 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5001 break 3
5004 done
5005 done
5007 esac
5008 done
5009 IFS=$as_save_IFS
5013 if test "${ac_cv_path_install+set}" = set; then
5014 INSTALL=$ac_cv_path_install
5015 else
5016 # As a last resort, use the slow shell script. Don't cache a
5017 # value for INSTALL within a source directory, because that will
5018 # break other packages using the cache if that directory is
5019 # removed, or if the value is a relative name.
5020 INSTALL=$ac_install_sh
5023 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5024 echo "${ECHO_T}$INSTALL" >&6; }
5026 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5027 # It thinks the first close brace ends the variable substitution.
5028 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5030 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5032 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5034 if test "x$RANLIB" = x; then
5035 if test -n "$ac_tool_prefix"; then
5036 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5037 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5038 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5040 if test "${ac_cv_prog_RANLIB+set}" = set; then
5041 echo $ECHO_N "(cached) $ECHO_C" >&6
5042 else
5043 if test -n "$RANLIB"; then
5044 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5045 else
5046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5047 for as_dir in $PATH
5049 IFS=$as_save_IFS
5050 test -z "$as_dir" && as_dir=.
5051 for ac_exec_ext in '' $ac_executable_extensions; do
5052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5053 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5055 break 2
5057 done
5058 done
5059 IFS=$as_save_IFS
5063 RANLIB=$ac_cv_prog_RANLIB
5064 if test -n "$RANLIB"; then
5065 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5066 echo "${ECHO_T}$RANLIB" >&6; }
5067 else
5068 { echo "$as_me:$LINENO: result: no" >&5
5069 echo "${ECHO_T}no" >&6; }
5074 if test -z "$ac_cv_prog_RANLIB"; then
5075 ac_ct_RANLIB=$RANLIB
5076 # Extract the first word of "ranlib", so it can be a program name with args.
5077 set dummy ranlib; ac_word=$2
5078 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5080 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5081 echo $ECHO_N "(cached) $ECHO_C" >&6
5082 else
5083 if test -n "$ac_ct_RANLIB"; then
5084 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5085 else
5086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5087 for as_dir in $PATH
5089 IFS=$as_save_IFS
5090 test -z "$as_dir" && as_dir=.
5091 for ac_exec_ext in '' $ac_executable_extensions; do
5092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5093 ac_cv_prog_ac_ct_RANLIB="ranlib"
5094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5095 break 2
5097 done
5098 done
5099 IFS=$as_save_IFS
5103 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5104 if test -n "$ac_ct_RANLIB"; then
5105 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5106 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5107 else
5108 { echo "$as_me:$LINENO: result: no" >&5
5109 echo "${ECHO_T}no" >&6; }
5112 if test "x$ac_ct_RANLIB" = x; then
5113 RANLIB=":"
5114 else
5115 case $cross_compiling:$ac_tool_warned in
5116 yes:)
5117 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5118 whose name does not start with the host triplet. If you think this
5119 configuration is useful to you, please write to autoconf@gnu.org." >&5
5120 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5121 whose name does not start with the host triplet. If you think this
5122 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5123 ac_tool_warned=yes ;;
5124 esac
5125 RANLIB=$ac_ct_RANLIB
5127 else
5128 RANLIB="$ac_cv_prog_RANLIB"
5132 # Extract the first word of "install-info", so it can be a program name with args.
5133 set dummy install-info; ac_word=$2
5134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5136 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5137 echo $ECHO_N "(cached) $ECHO_C" >&6
5138 else
5139 case $INSTALL_INFO in
5140 [\\/]* | ?:[\\/]*)
5141 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5145 for as_dir in $PATH
5147 IFS=$as_save_IFS
5148 test -z "$as_dir" && as_dir=.
5149 for ac_exec_ext in '' $ac_executable_extensions; do
5150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5151 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5153 break 2
5155 done
5156 done
5157 IFS=$as_save_IFS
5160 esac
5162 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5163 if test -n "$INSTALL_INFO"; then
5164 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5165 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5166 else
5167 { echo "$as_me:$LINENO: result: no" >&5
5168 echo "${ECHO_T}no" >&6; }
5172 # Extract the first word of "install-info", so it can be a program name with args.
5173 set dummy install-info; ac_word=$2
5174 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5176 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5177 echo $ECHO_N "(cached) $ECHO_C" >&6
5178 else
5179 case $INSTALL_INFO in
5180 [\\/]* | ?:[\\/]*)
5181 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5185 for as_dir in /usr/sbin
5187 IFS=$as_save_IFS
5188 test -z "$as_dir" && as_dir=.
5189 for ac_exec_ext in '' $ac_executable_extensions; do
5190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5191 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5193 break 2
5195 done
5196 done
5197 IFS=$as_save_IFS
5200 esac
5202 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5203 if test -n "$INSTALL_INFO"; then
5204 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5205 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5206 else
5207 { echo "$as_me:$LINENO: result: no" >&5
5208 echo "${ECHO_T}no" >&6; }
5212 # Extract the first word of "install-info", so it can be a program name with args.
5213 set dummy install-info; ac_word=$2
5214 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5216 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5217 echo $ECHO_N "(cached) $ECHO_C" >&6
5218 else
5219 case $INSTALL_INFO in
5220 [\\/]* | ?:[\\/]*)
5221 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5225 for as_dir in /sbin
5227 IFS=$as_save_IFS
5228 test -z "$as_dir" && as_dir=.
5229 for ac_exec_ext in '' $ac_executable_extensions; do
5230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5231 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5233 break 2
5235 done
5236 done
5237 IFS=$as_save_IFS
5239 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5241 esac
5243 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5244 if test -n "$INSTALL_INFO"; then
5245 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5246 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5247 else
5248 { echo "$as_me:$LINENO: result: no" >&5
5249 echo "${ECHO_T}no" >&6; }
5253 # Extract the first word of "gzip", so it can be a program name with args.
5254 set dummy gzip; ac_word=$2
5255 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5257 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5258 echo $ECHO_N "(cached) $ECHO_C" >&6
5259 else
5260 case $GZIP_PROG in
5261 [\\/]* | ?:[\\/]*)
5262 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5266 for as_dir in $PATH
5268 IFS=$as_save_IFS
5269 test -z "$as_dir" && as_dir=.
5270 for ac_exec_ext in '' $ac_executable_extensions; do
5271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5272 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5274 break 2
5276 done
5277 done
5278 IFS=$as_save_IFS
5281 esac
5283 GZIP_PROG=$ac_cv_path_GZIP_PROG
5284 if test -n "$GZIP_PROG"; then
5285 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5286 echo "${ECHO_T}$GZIP_PROG" >&6; }
5287 else
5288 { echo "$as_me:$LINENO: result: no" >&5
5289 echo "${ECHO_T}no" >&6; }
5295 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5296 then
5297 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5300 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5301 then
5302 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5306 late_LDFLAGS=$LDFLAGS
5307 if test "$GCC" = yes; then
5308 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5309 else
5310 LDFLAGS="$LDFLAGS -znocombreloc"
5313 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5314 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5315 cat >conftest.$ac_ext <<_ACEOF
5316 main(){return 0;}
5317 _ACEOF
5318 rm -f conftest.$ac_objext conftest$ac_exeext
5319 if { (ac_try="$ac_link"
5320 case "(($ac_try" in
5321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5322 *) ac_try_echo=$ac_try;;
5323 esac
5324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5325 (eval "$ac_link") 2>conftest.er1
5326 ac_status=$?
5327 grep -v '^ *+' conftest.er1 >conftest.err
5328 rm -f conftest.er1
5329 cat conftest.err >&5
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); } && {
5332 test -z "$ac_c_werror_flag" ||
5333 test ! -s conftest.err
5334 } && test -s conftest$ac_exeext &&
5335 $as_test_x conftest$ac_exeext; then
5336 { echo "$as_me:$LINENO: result: yes" >&5
5337 echo "${ECHO_T}yes" >&6; }
5338 else
5339 echo "$as_me: failed program was:" >&5
5340 sed 's/^/| /' conftest.$ac_ext >&5
5342 LDFLAGS=$late_LDFLAGS
5343 { echo "$as_me:$LINENO: result: no" >&5
5344 echo "${ECHO_T}no" >&6; }
5347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5348 conftest$ac_exeext conftest.$ac_ext
5350 #### Extract some information from the operating system and machine files.
5352 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5353 - which libraries the lib-src programs will want, and
5354 - whether the GNU malloc routines are usable..." >&5
5355 echo "$as_me: checking the machine- and system-dependent files to find out
5356 - which libraries the lib-src programs will want, and
5357 - whether the GNU malloc routines are usable..." >&6;}
5359 ### First figure out CFLAGS (which we use for running the compiler here)
5360 ### and REAL_CFLAGS (which we use for real compilation).
5361 ### The two are the same except on a few systems, where they are made
5362 ### different to work around various lossages. For example,
5363 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5364 ### as implying static linking.
5366 ### If the CFLAGS env var is specified, we use that value
5367 ### instead of the default.
5369 ### It's not important that this name contain the PID; you can't run
5370 ### two configures in the same directory and have anything work
5371 ### anyway.
5372 tempcname="conftest.c"
5374 echo '
5375 #include "'${srcdir}'/src/'${opsysfile}'"
5376 #include "'${srcdir}'/src/'${machfile}'"
5377 #ifndef LIBS_MACHINE
5378 #define LIBS_MACHINE
5379 #endif
5380 #ifndef LIBS_SYSTEM
5381 #define LIBS_SYSTEM
5382 #endif
5383 #ifndef C_SWITCH_SYSTEM
5384 #define C_SWITCH_SYSTEM
5385 #endif
5386 #ifndef C_SWITCH_MACHINE
5387 #define C_SWITCH_MACHINE
5388 #endif
5389 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5390 configure___ c_switch_system=C_SWITCH_SYSTEM
5391 configure___ c_switch_machine=C_SWITCH_MACHINE
5393 #ifndef LIB_X11_LIB
5394 #define LIB_X11_LIB -lX11
5395 #endif
5397 #ifndef LIBX11_MACHINE
5398 #define LIBX11_MACHINE
5399 #endif
5401 #ifndef LIBX11_SYSTEM
5402 #define LIBX11_SYSTEM
5403 #endif
5404 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5406 #ifdef UNEXEC
5407 configure___ unexec=UNEXEC
5408 #else
5409 configure___ unexec=unexec.o
5410 #endif
5412 #ifdef SYSTEM_MALLOC
5413 configure___ system_malloc=yes
5414 #else
5415 configure___ system_malloc=no
5416 #endif
5418 #ifdef USE_MMAP_FOR_BUFFERS
5419 configure___ use_mmap_for_buffers=yes
5420 #else
5421 configure___ use_mmap_for_buffers=no
5422 #endif
5424 #ifndef C_DEBUG_SWITCH
5425 #define C_DEBUG_SWITCH -g
5426 #endif
5428 #ifndef C_OPTIMIZE_SWITCH
5429 #ifdef __GNUC__
5430 #define C_OPTIMIZE_SWITCH -O2
5431 #else
5432 #define C_OPTIMIZE_SWITCH -O
5433 #endif
5434 #endif
5436 #ifndef C_WARNINGS_SWITCH
5437 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5438 #endif
5440 #ifndef LD_SWITCH_MACHINE
5441 #define LD_SWITCH_MACHINE
5442 #endif
5444 #ifndef LD_SWITCH_SYSTEM
5445 #define LD_SWITCH_SYSTEM
5446 #endif
5448 #ifndef LD_SWITCH_X_SITE_AUX
5449 #define LD_SWITCH_X_SITE_AUX
5450 #endif
5452 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5453 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5455 #ifdef THIS_IS_CONFIGURE
5457 /* Get the CFLAGS for tests in configure. */
5458 #ifdef __GNUC__
5459 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5460 #else
5461 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5462 #endif
5464 #else /* not THIS_IS_CONFIGURE */
5466 /* Get the CFLAGS for real compilation. */
5467 #ifdef __GNUC__
5468 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5469 #else
5470 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5471 #endif
5473 #endif /* not THIS_IS_CONFIGURE */
5474 ' > ${tempcname}
5476 # The value of CPP is a quoted variable reference, so we need to do this
5477 # to get its actual value...
5478 CPP=`eval "echo $CPP"`
5479 eval `${CPP} -Isrc ${tempcname} \
5480 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5481 if test "x$SPECIFIED_CFLAGS" = x; then
5482 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5483 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5484 else
5485 REAL_CFLAGS="$CFLAGS"
5487 rm ${tempcname}
5489 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5491 ### Make sure subsequent tests use flags consistent with the build flags.
5493 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5494 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5495 else
5496 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5501 # Check whether --enable-largefile was given.
5502 if test "${enable_largefile+set}" = set; then
5503 enableval=$enable_largefile;
5506 if test "$enable_largefile" != no; then
5508 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5509 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5510 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5511 echo $ECHO_N "(cached) $ECHO_C" >&6
5512 else
5513 ac_cv_sys_largefile_CC=no
5514 if test "$GCC" != yes; then
5515 ac_save_CC=$CC
5516 while :; do
5517 # IRIX 6.2 and later do not support large files by default,
5518 # so use the C compiler's -n32 option if that helps.
5519 cat >conftest.$ac_ext <<_ACEOF
5520 /* confdefs.h. */
5521 _ACEOF
5522 cat confdefs.h >>conftest.$ac_ext
5523 cat >>conftest.$ac_ext <<_ACEOF
5524 /* end confdefs.h. */
5525 #include <sys/types.h>
5526 /* Check that off_t can represent 2**63 - 1 correctly.
5527 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5528 since some C++ compilers masquerading as C compilers
5529 incorrectly reject 9223372036854775807. */
5530 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5531 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5532 && LARGE_OFF_T % 2147483647 == 1)
5533 ? 1 : -1];
5535 main ()
5539 return 0;
5541 _ACEOF
5542 rm -f conftest.$ac_objext
5543 if { (ac_try="$ac_compile"
5544 case "(($ac_try" in
5545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5546 *) ac_try_echo=$ac_try;;
5547 esac
5548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5549 (eval "$ac_compile") 2>conftest.er1
5550 ac_status=$?
5551 grep -v '^ *+' conftest.er1 >conftest.err
5552 rm -f conftest.er1
5553 cat conftest.err >&5
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); } && {
5556 test -z "$ac_c_werror_flag" ||
5557 test ! -s conftest.err
5558 } && test -s conftest.$ac_objext; then
5559 break
5560 else
5561 echo "$as_me: failed program was:" >&5
5562 sed 's/^/| /' conftest.$ac_ext >&5
5567 rm -f core conftest.err conftest.$ac_objext
5568 CC="$CC -n32"
5569 rm -f conftest.$ac_objext
5570 if { (ac_try="$ac_compile"
5571 case "(($ac_try" in
5572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5573 *) ac_try_echo=$ac_try;;
5574 esac
5575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5576 (eval "$ac_compile") 2>conftest.er1
5577 ac_status=$?
5578 grep -v '^ *+' conftest.er1 >conftest.err
5579 rm -f conftest.er1
5580 cat conftest.err >&5
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); } && {
5583 test -z "$ac_c_werror_flag" ||
5584 test ! -s conftest.err
5585 } && test -s conftest.$ac_objext; then
5586 ac_cv_sys_largefile_CC=' -n32'; break
5587 else
5588 echo "$as_me: failed program was:" >&5
5589 sed 's/^/| /' conftest.$ac_ext >&5
5594 rm -f core conftest.err conftest.$ac_objext
5595 break
5596 done
5597 CC=$ac_save_CC
5598 rm -f conftest.$ac_ext
5601 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5602 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5603 if test "$ac_cv_sys_largefile_CC" != no; then
5604 CC=$CC$ac_cv_sys_largefile_CC
5607 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5608 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5609 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5610 echo $ECHO_N "(cached) $ECHO_C" >&6
5611 else
5612 while :; do
5613 cat >conftest.$ac_ext <<_ACEOF
5614 /* confdefs.h. */
5615 _ACEOF
5616 cat confdefs.h >>conftest.$ac_ext
5617 cat >>conftest.$ac_ext <<_ACEOF
5618 /* end confdefs.h. */
5619 #include <sys/types.h>
5620 /* Check that off_t can represent 2**63 - 1 correctly.
5621 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5622 since some C++ compilers masquerading as C compilers
5623 incorrectly reject 9223372036854775807. */
5624 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5625 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5626 && LARGE_OFF_T % 2147483647 == 1)
5627 ? 1 : -1];
5629 main ()
5633 return 0;
5635 _ACEOF
5636 rm -f conftest.$ac_objext
5637 if { (ac_try="$ac_compile"
5638 case "(($ac_try" in
5639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5640 *) ac_try_echo=$ac_try;;
5641 esac
5642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5643 (eval "$ac_compile") 2>conftest.er1
5644 ac_status=$?
5645 grep -v '^ *+' conftest.er1 >conftest.err
5646 rm -f conftest.er1
5647 cat conftest.err >&5
5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); } && {
5650 test -z "$ac_c_werror_flag" ||
5651 test ! -s conftest.err
5652 } && test -s conftest.$ac_objext; then
5653 ac_cv_sys_file_offset_bits=no; break
5654 else
5655 echo "$as_me: failed program was:" >&5
5656 sed 's/^/| /' conftest.$ac_ext >&5
5661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5662 cat >conftest.$ac_ext <<_ACEOF
5663 /* confdefs.h. */
5664 _ACEOF
5665 cat confdefs.h >>conftest.$ac_ext
5666 cat >>conftest.$ac_ext <<_ACEOF
5667 /* end confdefs.h. */
5668 #define _FILE_OFFSET_BITS 64
5669 #include <sys/types.h>
5670 /* Check that off_t can represent 2**63 - 1 correctly.
5671 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5672 since some C++ compilers masquerading as C compilers
5673 incorrectly reject 9223372036854775807. */
5674 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5675 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5676 && LARGE_OFF_T % 2147483647 == 1)
5677 ? 1 : -1];
5679 main ()
5683 return 0;
5685 _ACEOF
5686 rm -f conftest.$ac_objext
5687 if { (ac_try="$ac_compile"
5688 case "(($ac_try" in
5689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5690 *) ac_try_echo=$ac_try;;
5691 esac
5692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5693 (eval "$ac_compile") 2>conftest.er1
5694 ac_status=$?
5695 grep -v '^ *+' conftest.er1 >conftest.err
5696 rm -f conftest.er1
5697 cat conftest.err >&5
5698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699 (exit $ac_status); } && {
5700 test -z "$ac_c_werror_flag" ||
5701 test ! -s conftest.err
5702 } && test -s conftest.$ac_objext; then
5703 ac_cv_sys_file_offset_bits=64; break
5704 else
5705 echo "$as_me: failed program was:" >&5
5706 sed 's/^/| /' conftest.$ac_ext >&5
5711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5712 ac_cv_sys_file_offset_bits=unknown
5713 break
5714 done
5716 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5717 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5718 case $ac_cv_sys_file_offset_bits in #(
5719 no | unknown) ;;
5721 cat >>confdefs.h <<_ACEOF
5722 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5723 _ACEOF
5725 esac
5726 rm -f conftest*
5727 if test $ac_cv_sys_file_offset_bits = unknown; then
5728 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5729 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5730 if test "${ac_cv_sys_large_files+set}" = set; then
5731 echo $ECHO_N "(cached) $ECHO_C" >&6
5732 else
5733 while :; do
5734 cat >conftest.$ac_ext <<_ACEOF
5735 /* confdefs.h. */
5736 _ACEOF
5737 cat confdefs.h >>conftest.$ac_ext
5738 cat >>conftest.$ac_ext <<_ACEOF
5739 /* end confdefs.h. */
5740 #include <sys/types.h>
5741 /* Check that off_t can represent 2**63 - 1 correctly.
5742 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5743 since some C++ compilers masquerading as C compilers
5744 incorrectly reject 9223372036854775807. */
5745 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5746 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5747 && LARGE_OFF_T % 2147483647 == 1)
5748 ? 1 : -1];
5750 main ()
5754 return 0;
5756 _ACEOF
5757 rm -f conftest.$ac_objext
5758 if { (ac_try="$ac_compile"
5759 case "(($ac_try" in
5760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5761 *) ac_try_echo=$ac_try;;
5762 esac
5763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5764 (eval "$ac_compile") 2>conftest.er1
5765 ac_status=$?
5766 grep -v '^ *+' conftest.er1 >conftest.err
5767 rm -f conftest.er1
5768 cat conftest.err >&5
5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); } && {
5771 test -z "$ac_c_werror_flag" ||
5772 test ! -s conftest.err
5773 } && test -s conftest.$ac_objext; then
5774 ac_cv_sys_large_files=no; break
5775 else
5776 echo "$as_me: failed program was:" >&5
5777 sed 's/^/| /' conftest.$ac_ext >&5
5782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5783 cat >conftest.$ac_ext <<_ACEOF
5784 /* confdefs.h. */
5785 _ACEOF
5786 cat confdefs.h >>conftest.$ac_ext
5787 cat >>conftest.$ac_ext <<_ACEOF
5788 /* end confdefs.h. */
5789 #define _LARGE_FILES 1
5790 #include <sys/types.h>
5791 /* Check that off_t can represent 2**63 - 1 correctly.
5792 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5793 since some C++ compilers masquerading as C compilers
5794 incorrectly reject 9223372036854775807. */
5795 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5796 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5797 && LARGE_OFF_T % 2147483647 == 1)
5798 ? 1 : -1];
5800 main ()
5804 return 0;
5806 _ACEOF
5807 rm -f conftest.$ac_objext
5808 if { (ac_try="$ac_compile"
5809 case "(($ac_try" in
5810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5811 *) ac_try_echo=$ac_try;;
5812 esac
5813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5814 (eval "$ac_compile") 2>conftest.er1
5815 ac_status=$?
5816 grep -v '^ *+' conftest.er1 >conftest.err
5817 rm -f conftest.er1
5818 cat conftest.err >&5
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); } && {
5821 test -z "$ac_c_werror_flag" ||
5822 test ! -s conftest.err
5823 } && test -s conftest.$ac_objext; then
5824 ac_cv_sys_large_files=1; break
5825 else
5826 echo "$as_me: failed program was:" >&5
5827 sed 's/^/| /' conftest.$ac_ext >&5
5832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5833 ac_cv_sys_large_files=unknown
5834 break
5835 done
5837 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5838 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5839 case $ac_cv_sys_large_files in #(
5840 no | unknown) ;;
5842 cat >>confdefs.h <<_ACEOF
5843 #define _LARGE_FILES $ac_cv_sys_large_files
5844 _ACEOF
5846 esac
5847 rm -f conftest*
5853 ### The standard library on x86-64 GNU/Linux distributions can
5854 ### be located in either /usr/lib64 or /usr/lib.
5855 case "${canonical}" in
5856 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5857 if test -d /usr/lib64; then
5859 cat >>confdefs.h <<\_ACEOF
5860 #define HAVE_X86_64_LIB64_DIR 1
5861 _ACEOF
5864 esac
5869 if test "${with_sound}" != "no"; then
5870 # Sound support for GNU/Linux and the free BSDs.
5871 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5872 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5873 if test "${ac_cv_header_stdc+set}" = set; then
5874 echo $ECHO_N "(cached) $ECHO_C" >&6
5875 else
5876 cat >conftest.$ac_ext <<_ACEOF
5877 /* confdefs.h. */
5878 _ACEOF
5879 cat confdefs.h >>conftest.$ac_ext
5880 cat >>conftest.$ac_ext <<_ACEOF
5881 /* end confdefs.h. */
5882 #include <stdlib.h>
5883 #include <stdarg.h>
5884 #include <string.h>
5885 #include <float.h>
5888 main ()
5892 return 0;
5894 _ACEOF
5895 rm -f conftest.$ac_objext
5896 if { (ac_try="$ac_compile"
5897 case "(($ac_try" in
5898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5899 *) ac_try_echo=$ac_try;;
5900 esac
5901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5902 (eval "$ac_compile") 2>conftest.er1
5903 ac_status=$?
5904 grep -v '^ *+' conftest.er1 >conftest.err
5905 rm -f conftest.er1
5906 cat conftest.err >&5
5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); } && {
5909 test -z "$ac_c_werror_flag" ||
5910 test ! -s conftest.err
5911 } && test -s conftest.$ac_objext; then
5912 ac_cv_header_stdc=yes
5913 else
5914 echo "$as_me: failed program was:" >&5
5915 sed 's/^/| /' conftest.$ac_ext >&5
5917 ac_cv_header_stdc=no
5920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5922 if test $ac_cv_header_stdc = yes; then
5923 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5924 cat >conftest.$ac_ext <<_ACEOF
5925 /* confdefs.h. */
5926 _ACEOF
5927 cat confdefs.h >>conftest.$ac_ext
5928 cat >>conftest.$ac_ext <<_ACEOF
5929 /* end confdefs.h. */
5930 #include <string.h>
5932 _ACEOF
5933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5934 $EGREP "memchr" >/dev/null 2>&1; then
5936 else
5937 ac_cv_header_stdc=no
5939 rm -f conftest*
5943 if test $ac_cv_header_stdc = yes; then
5944 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5945 cat >conftest.$ac_ext <<_ACEOF
5946 /* confdefs.h. */
5947 _ACEOF
5948 cat confdefs.h >>conftest.$ac_ext
5949 cat >>conftest.$ac_ext <<_ACEOF
5950 /* end confdefs.h. */
5951 #include <stdlib.h>
5953 _ACEOF
5954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5955 $EGREP "free" >/dev/null 2>&1; then
5957 else
5958 ac_cv_header_stdc=no
5960 rm -f conftest*
5964 if test $ac_cv_header_stdc = yes; then
5965 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5966 if test "$cross_compiling" = yes; then
5968 else
5969 cat >conftest.$ac_ext <<_ACEOF
5970 /* confdefs.h. */
5971 _ACEOF
5972 cat confdefs.h >>conftest.$ac_ext
5973 cat >>conftest.$ac_ext <<_ACEOF
5974 /* end confdefs.h. */
5975 #include <ctype.h>
5976 #include <stdlib.h>
5977 #if ((' ' & 0x0FF) == 0x020)
5978 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5979 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5980 #else
5981 # define ISLOWER(c) \
5982 (('a' <= (c) && (c) <= 'i') \
5983 || ('j' <= (c) && (c) <= 'r') \
5984 || ('s' <= (c) && (c) <= 'z'))
5985 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5986 #endif
5988 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5990 main ()
5992 int i;
5993 for (i = 0; i < 256; i++)
5994 if (XOR (islower (i), ISLOWER (i))
5995 || toupper (i) != TOUPPER (i))
5996 return 2;
5997 return 0;
5999 _ACEOF
6000 rm -f conftest$ac_exeext
6001 if { (ac_try="$ac_link"
6002 case "(($ac_try" in
6003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6004 *) ac_try_echo=$ac_try;;
6005 esac
6006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6007 (eval "$ac_link") 2>&5
6008 ac_status=$?
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6011 { (case "(($ac_try" in
6012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6013 *) ac_try_echo=$ac_try;;
6014 esac
6015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6016 (eval "$ac_try") 2>&5
6017 ac_status=$?
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); }; }; then
6021 else
6022 echo "$as_me: program exited with status $ac_status" >&5
6023 echo "$as_me: failed program was:" >&5
6024 sed 's/^/| /' conftest.$ac_ext >&5
6026 ( exit $ac_status )
6027 ac_cv_header_stdc=no
6029 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6035 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6036 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6037 if test $ac_cv_header_stdc = yes; then
6039 cat >>confdefs.h <<\_ACEOF
6040 #define STDC_HEADERS 1
6041 _ACEOF
6045 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6055 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6056 inttypes.h stdint.h unistd.h
6058 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6059 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6062 echo $ECHO_N "(cached) $ECHO_C" >&6
6063 else
6064 cat >conftest.$ac_ext <<_ACEOF
6065 /* confdefs.h. */
6066 _ACEOF
6067 cat confdefs.h >>conftest.$ac_ext
6068 cat >>conftest.$ac_ext <<_ACEOF
6069 /* end confdefs.h. */
6070 $ac_includes_default
6072 #include <$ac_header>
6073 _ACEOF
6074 rm -f conftest.$ac_objext
6075 if { (ac_try="$ac_compile"
6076 case "(($ac_try" in
6077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6078 *) ac_try_echo=$ac_try;;
6079 esac
6080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6081 (eval "$ac_compile") 2>conftest.er1
6082 ac_status=$?
6083 grep -v '^ *+' conftest.er1 >conftest.err
6084 rm -f conftest.er1
6085 cat conftest.err >&5
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); } && {
6088 test -z "$ac_c_werror_flag" ||
6089 test ! -s conftest.err
6090 } && test -s conftest.$ac_objext; then
6091 eval "$as_ac_Header=yes"
6092 else
6093 echo "$as_me: failed program was:" >&5
6094 sed 's/^/| /' conftest.$ac_ext >&5
6096 eval "$as_ac_Header=no"
6099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6101 ac_res=`eval echo '${'$as_ac_Header'}'`
6102 { echo "$as_me:$LINENO: result: $ac_res" >&5
6103 echo "${ECHO_T}$ac_res" >&6; }
6104 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6105 cat >>confdefs.h <<_ACEOF
6106 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6107 _ACEOF
6111 done
6117 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6119 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6121 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6124 echo $ECHO_N "(cached) $ECHO_C" >&6
6126 ac_res=`eval echo '${'$as_ac_Header'}'`
6127 { echo "$as_me:$LINENO: result: $ac_res" >&5
6128 echo "${ECHO_T}$ac_res" >&6; }
6129 else
6130 # Is the header compilable?
6131 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6132 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6133 cat >conftest.$ac_ext <<_ACEOF
6134 /* confdefs.h. */
6135 _ACEOF
6136 cat confdefs.h >>conftest.$ac_ext
6137 cat >>conftest.$ac_ext <<_ACEOF
6138 /* end confdefs.h. */
6139 $ac_includes_default
6140 #include <$ac_header>
6141 _ACEOF
6142 rm -f conftest.$ac_objext
6143 if { (ac_try="$ac_compile"
6144 case "(($ac_try" in
6145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6146 *) ac_try_echo=$ac_try;;
6147 esac
6148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6149 (eval "$ac_compile") 2>conftest.er1
6150 ac_status=$?
6151 grep -v '^ *+' conftest.er1 >conftest.err
6152 rm -f conftest.er1
6153 cat conftest.err >&5
6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); } && {
6156 test -z "$ac_c_werror_flag" ||
6157 test ! -s conftest.err
6158 } && test -s conftest.$ac_objext; then
6159 ac_header_compiler=yes
6160 else
6161 echo "$as_me: failed program was:" >&5
6162 sed 's/^/| /' conftest.$ac_ext >&5
6164 ac_header_compiler=no
6167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6168 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6169 echo "${ECHO_T}$ac_header_compiler" >&6; }
6171 # Is the header present?
6172 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6173 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6174 cat >conftest.$ac_ext <<_ACEOF
6175 /* confdefs.h. */
6176 _ACEOF
6177 cat confdefs.h >>conftest.$ac_ext
6178 cat >>conftest.$ac_ext <<_ACEOF
6179 /* end confdefs.h. */
6180 #include <$ac_header>
6181 _ACEOF
6182 if { (ac_try="$ac_cpp conftest.$ac_ext"
6183 case "(($ac_try" in
6184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6185 *) ac_try_echo=$ac_try;;
6186 esac
6187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6188 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6189 ac_status=$?
6190 grep -v '^ *+' conftest.er1 >conftest.err
6191 rm -f conftest.er1
6192 cat conftest.err >&5
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); } >/dev/null && {
6195 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6196 test ! -s conftest.err
6197 }; then
6198 ac_header_preproc=yes
6199 else
6200 echo "$as_me: failed program was:" >&5
6201 sed 's/^/| /' conftest.$ac_ext >&5
6203 ac_header_preproc=no
6206 rm -f conftest.err conftest.$ac_ext
6207 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6208 echo "${ECHO_T}$ac_header_preproc" >&6; }
6210 # So? What about this header?
6211 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6212 yes:no: )
6213 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6214 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6216 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6217 ac_header_preproc=yes
6219 no:yes:* )
6220 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6221 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6222 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6223 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6224 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6225 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6226 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6227 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6228 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6229 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6230 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6231 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6234 esac
6235 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6238 echo $ECHO_N "(cached) $ECHO_C" >&6
6239 else
6240 eval "$as_ac_Header=\$ac_header_preproc"
6242 ac_res=`eval echo '${'$as_ac_Header'}'`
6243 { echo "$as_me:$LINENO: result: $ac_res" >&5
6244 echo "${ECHO_T}$ac_res" >&6; }
6247 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6248 cat >>confdefs.h <<_ACEOF
6249 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6250 _ACEOF
6254 done
6256 # Emulation library used on NetBSD.
6257 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6258 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6259 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6260 echo $ECHO_N "(cached) $ECHO_C" >&6
6261 else
6262 ac_check_lib_save_LIBS=$LIBS
6263 LIBS="-lossaudio $LIBS"
6264 cat >conftest.$ac_ext <<_ACEOF
6265 /* confdefs.h. */
6266 _ACEOF
6267 cat confdefs.h >>conftest.$ac_ext
6268 cat >>conftest.$ac_ext <<_ACEOF
6269 /* end confdefs.h. */
6271 /* Override any GCC internal prototype to avoid an error.
6272 Use char because int might match the return type of a GCC
6273 builtin and then its argument prototype would still apply. */
6274 #ifdef __cplusplus
6275 extern "C"
6276 #endif
6277 char _oss_ioctl ();
6279 main ()
6281 return _oss_ioctl ();
6283 return 0;
6285 _ACEOF
6286 rm -f conftest.$ac_objext conftest$ac_exeext
6287 if { (ac_try="$ac_link"
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_link") 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_exeext &&
6303 $as_test_x conftest$ac_exeext; then
6304 ac_cv_lib_ossaudio__oss_ioctl=yes
6305 else
6306 echo "$as_me: failed program was:" >&5
6307 sed 's/^/| /' conftest.$ac_ext >&5
6309 ac_cv_lib_ossaudio__oss_ioctl=no
6312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6313 conftest$ac_exeext conftest.$ac_ext
6314 LIBS=$ac_check_lib_save_LIBS
6316 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6317 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6318 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6319 LIBSOUND=-lossaudio
6320 else
6321 LIBSOUND=
6326 ALSA_REQUIRED=1.0.0
6327 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6328 if test "X${with_pkg_config_prog}" != X; then
6329 PKG_CONFIG="${with_pkg_config_prog}"
6332 succeeded=no
6334 if test -z "$PKG_CONFIG"; then
6335 # Extract the first word of "pkg-config", so it can be a program name with args.
6336 set dummy pkg-config; ac_word=$2
6337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6339 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6340 echo $ECHO_N "(cached) $ECHO_C" >&6
6341 else
6342 case $PKG_CONFIG in
6343 [\\/]* | ?:[\\/]*)
6344 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6348 for as_dir in $PATH
6350 IFS=$as_save_IFS
6351 test -z "$as_dir" && as_dir=.
6352 for ac_exec_ext in '' $ac_executable_extensions; do
6353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6354 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6356 break 2
6358 done
6359 done
6360 IFS=$as_save_IFS
6362 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6364 esac
6366 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6367 if test -n "$PKG_CONFIG"; then
6368 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6369 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6370 else
6371 { echo "$as_me:$LINENO: result: no" >&5
6372 echo "${ECHO_T}no" >&6; }
6378 if test "$PKG_CONFIG" = "no" ; then
6379 HAVE_ALSA=no
6380 else
6381 PKG_CONFIG_MIN_VERSION=0.9.0
6382 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6383 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6384 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6386 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6387 { echo "$as_me:$LINENO: result: yes" >&5
6388 echo "${ECHO_T}yes" >&6; }
6389 succeeded=yes
6391 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6392 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6393 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6394 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6395 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6397 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6398 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6399 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6400 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6401 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6402 else
6403 { echo "$as_me:$LINENO: result: no" >&5
6404 echo "${ECHO_T}no" >&6; }
6405 ALSA_CFLAGS=""
6406 ALSA_LIBS=""
6407 ## If we have a custom action on failure, don't print errors, but
6408 ## do set a variable so people can do so.
6409 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6415 else
6416 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6417 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6421 if test $succeeded = yes; then
6422 HAVE_ALSA=yes
6423 else
6424 HAVE_ALSA=no
6427 if test $HAVE_ALSA = yes; then
6428 SAVE_CFLAGS="$CFLAGS"
6429 SAVE_LDFLAGS="$LDFLAGS"
6430 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6431 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6432 cat >conftest.$ac_ext <<_ACEOF
6433 /* confdefs.h. */
6434 _ACEOF
6435 cat confdefs.h >>conftest.$ac_ext
6436 cat >>conftest.$ac_ext <<_ACEOF
6437 /* end confdefs.h. */
6438 #include <asoundlib.h>
6440 main ()
6442 snd_lib_error_set_handler (0);
6444 return 0;
6446 _ACEOF
6447 rm -f conftest.$ac_objext
6448 if { (ac_try="$ac_compile"
6449 case "(($ac_try" in
6450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6451 *) ac_try_echo=$ac_try;;
6452 esac
6453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6454 (eval "$ac_compile") 2>conftest.er1
6455 ac_status=$?
6456 grep -v '^ *+' conftest.er1 >conftest.err
6457 rm -f conftest.er1
6458 cat conftest.err >&5
6459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460 (exit $ac_status); } && {
6461 test -z "$ac_c_werror_flag" ||
6462 test ! -s conftest.err
6463 } && test -s conftest.$ac_objext; then
6464 emacs_alsa_normal=yes
6465 else
6466 echo "$as_me: failed program was:" >&5
6467 sed 's/^/| /' conftest.$ac_ext >&5
6469 emacs_alsa_normal=no
6472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6473 if test "$emacs_alsa_normal" != yes; then
6474 cat >conftest.$ac_ext <<_ACEOF
6475 /* confdefs.h. */
6476 _ACEOF
6477 cat confdefs.h >>conftest.$ac_ext
6478 cat >>conftest.$ac_ext <<_ACEOF
6479 /* end confdefs.h. */
6480 #include <alsa/asoundlib.h>
6482 main ()
6484 snd_lib_error_set_handler (0);
6486 return 0;
6488 _ACEOF
6489 rm -f conftest.$ac_objext
6490 if { (ac_try="$ac_compile"
6491 case "(($ac_try" in
6492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6493 *) ac_try_echo=$ac_try;;
6494 esac
6495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6496 (eval "$ac_compile") 2>conftest.er1
6497 ac_status=$?
6498 grep -v '^ *+' conftest.er1 >conftest.err
6499 rm -f conftest.er1
6500 cat conftest.err >&5
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); } && {
6503 test -z "$ac_c_werror_flag" ||
6504 test ! -s conftest.err
6505 } && test -s conftest.$ac_objext; then
6506 emacs_alsa_subdir=yes
6507 else
6508 echo "$as_me: failed program was:" >&5
6509 sed 's/^/| /' conftest.$ac_ext >&5
6511 emacs_alsa_subdir=no
6514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6515 if test "$emacs_alsa_subdir" != yes; then
6516 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6517 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6518 { (exit 1); exit 1; }; }
6520 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6523 CFLAGS="$SAVE_CFLAGS"
6524 LDFLAGS="$SAVE_LDFLAGS"
6525 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6526 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6528 cat >>confdefs.h <<\_ACEOF
6529 #define HAVE_ALSA 1
6530 _ACEOF
6561 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6562 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6563 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6564 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6565 sys/utsname.h pwd.h
6567 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6568 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6569 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6572 echo $ECHO_N "(cached) $ECHO_C" >&6
6574 ac_res=`eval echo '${'$as_ac_Header'}'`
6575 { echo "$as_me:$LINENO: result: $ac_res" >&5
6576 echo "${ECHO_T}$ac_res" >&6; }
6577 else
6578 # Is the header compilable?
6579 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6580 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6581 cat >conftest.$ac_ext <<_ACEOF
6582 /* confdefs.h. */
6583 _ACEOF
6584 cat confdefs.h >>conftest.$ac_ext
6585 cat >>conftest.$ac_ext <<_ACEOF
6586 /* end confdefs.h. */
6587 $ac_includes_default
6588 #include <$ac_header>
6589 _ACEOF
6590 rm -f conftest.$ac_objext
6591 if { (ac_try="$ac_compile"
6592 case "(($ac_try" in
6593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6594 *) ac_try_echo=$ac_try;;
6595 esac
6596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6597 (eval "$ac_compile") 2>conftest.er1
6598 ac_status=$?
6599 grep -v '^ *+' conftest.er1 >conftest.err
6600 rm -f conftest.er1
6601 cat conftest.err >&5
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); } && {
6604 test -z "$ac_c_werror_flag" ||
6605 test ! -s conftest.err
6606 } && test -s conftest.$ac_objext; then
6607 ac_header_compiler=yes
6608 else
6609 echo "$as_me: failed program was:" >&5
6610 sed 's/^/| /' conftest.$ac_ext >&5
6612 ac_header_compiler=no
6615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6616 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6617 echo "${ECHO_T}$ac_header_compiler" >&6; }
6619 # Is the header present?
6620 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6621 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6622 cat >conftest.$ac_ext <<_ACEOF
6623 /* confdefs.h. */
6624 _ACEOF
6625 cat confdefs.h >>conftest.$ac_ext
6626 cat >>conftest.$ac_ext <<_ACEOF
6627 /* end confdefs.h. */
6628 #include <$ac_header>
6629 _ACEOF
6630 if { (ac_try="$ac_cpp conftest.$ac_ext"
6631 case "(($ac_try" in
6632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6633 *) ac_try_echo=$ac_try;;
6634 esac
6635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6636 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6637 ac_status=$?
6638 grep -v '^ *+' conftest.er1 >conftest.err
6639 rm -f conftest.er1
6640 cat conftest.err >&5
6641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642 (exit $ac_status); } >/dev/null && {
6643 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6644 test ! -s conftest.err
6645 }; then
6646 ac_header_preproc=yes
6647 else
6648 echo "$as_me: failed program was:" >&5
6649 sed 's/^/| /' conftest.$ac_ext >&5
6651 ac_header_preproc=no
6654 rm -f conftest.err conftest.$ac_ext
6655 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6656 echo "${ECHO_T}$ac_header_preproc" >&6; }
6658 # So? What about this header?
6659 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6660 yes:no: )
6661 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6662 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6663 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6664 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6665 ac_header_preproc=yes
6667 no:yes:* )
6668 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6669 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6670 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6671 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6672 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6673 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6674 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6675 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6676 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6677 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6678 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6679 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6682 esac
6683 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6686 echo $ECHO_N "(cached) $ECHO_C" >&6
6687 else
6688 eval "$as_ac_Header=\$ac_header_preproc"
6690 ac_res=`eval echo '${'$as_ac_Header'}'`
6691 { echo "$as_me:$LINENO: result: $ac_res" >&5
6692 echo "${ECHO_T}$ac_res" >&6; }
6695 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6696 cat >>confdefs.h <<_ACEOF
6697 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6698 _ACEOF
6702 done
6705 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6706 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6707 cat >conftest.$ac_ext <<_ACEOF
6708 /* confdefs.h. */
6709 _ACEOF
6710 cat confdefs.h >>conftest.$ac_ext
6711 cat >>conftest.$ac_ext <<_ACEOF
6712 /* end confdefs.h. */
6713 #include <sys/personality.h>
6715 main ()
6717 personality (PER_LINUX32)
6719 return 0;
6721 _ACEOF
6722 rm -f conftest.$ac_objext
6723 if { (ac_try="$ac_compile"
6724 case "(($ac_try" in
6725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6726 *) ac_try_echo=$ac_try;;
6727 esac
6728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6729 (eval "$ac_compile") 2>conftest.er1
6730 ac_status=$?
6731 grep -v '^ *+' conftest.er1 >conftest.err
6732 rm -f conftest.er1
6733 cat conftest.err >&5
6734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735 (exit $ac_status); } && {
6736 test -z "$ac_c_werror_flag" ||
6737 test ! -s conftest.err
6738 } && test -s conftest.$ac_objext; then
6739 emacs_cv_personality_linux32=yes
6740 else
6741 echo "$as_me: failed program was:" >&5
6742 sed 's/^/| /' conftest.$ac_ext >&5
6744 emacs_cv_personality_linux32=no
6747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6748 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6749 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6751 if test $emacs_cv_personality_linux32 = yes; then
6753 cat >>confdefs.h <<\_ACEOF
6754 #define HAVE_PERSONALITY_LINUX32 1
6755 _ACEOF
6760 for ac_header in term.h
6762 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6763 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6766 echo $ECHO_N "(cached) $ECHO_C" >&6
6767 else
6768 cat >conftest.$ac_ext <<_ACEOF
6769 /* confdefs.h. */
6770 _ACEOF
6771 cat confdefs.h >>conftest.$ac_ext
6772 cat >>conftest.$ac_ext <<_ACEOF
6773 /* end confdefs.h. */
6774 #include <$ac_header>
6775 _ACEOF
6776 if { (ac_try="$ac_cpp conftest.$ac_ext"
6777 case "(($ac_try" in
6778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6779 *) ac_try_echo=$ac_try;;
6780 esac
6781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6782 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6783 ac_status=$?
6784 grep -v '^ *+' conftest.er1 >conftest.err
6785 rm -f conftest.er1
6786 cat conftest.err >&5
6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788 (exit $ac_status); } >/dev/null && {
6789 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6790 test ! -s conftest.err
6791 }; then
6792 eval "$as_ac_Header=yes"
6793 else
6794 echo "$as_me: failed program was:" >&5
6795 sed 's/^/| /' conftest.$ac_ext >&5
6797 eval "$as_ac_Header=no"
6800 rm -f conftest.err conftest.$ac_ext
6802 ac_res=`eval echo '${'$as_ac_Header'}'`
6803 { echo "$as_me:$LINENO: result: $ac_res" >&5
6804 echo "${ECHO_T}$ac_res" >&6; }
6805 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6806 cat >>confdefs.h <<_ACEOF
6807 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6808 _ACEOF
6812 done
6814 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6815 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6816 if test "${ac_cv_header_stdc+set}" = set; then
6817 echo $ECHO_N "(cached) $ECHO_C" >&6
6818 else
6819 cat >conftest.$ac_ext <<_ACEOF
6820 /* confdefs.h. */
6821 _ACEOF
6822 cat confdefs.h >>conftest.$ac_ext
6823 cat >>conftest.$ac_ext <<_ACEOF
6824 /* end confdefs.h. */
6825 #include <stdlib.h>
6826 #include <stdarg.h>
6827 #include <string.h>
6828 #include <float.h>
6831 main ()
6835 return 0;
6837 _ACEOF
6838 rm -f conftest.$ac_objext
6839 if { (ac_try="$ac_compile"
6840 case "(($ac_try" in
6841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6842 *) ac_try_echo=$ac_try;;
6843 esac
6844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6845 (eval "$ac_compile") 2>conftest.er1
6846 ac_status=$?
6847 grep -v '^ *+' conftest.er1 >conftest.err
6848 rm -f conftest.er1
6849 cat conftest.err >&5
6850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851 (exit $ac_status); } && {
6852 test -z "$ac_c_werror_flag" ||
6853 test ! -s conftest.err
6854 } && test -s conftest.$ac_objext; then
6855 ac_cv_header_stdc=yes
6856 else
6857 echo "$as_me: failed program was:" >&5
6858 sed 's/^/| /' conftest.$ac_ext >&5
6860 ac_cv_header_stdc=no
6863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6865 if test $ac_cv_header_stdc = yes; then
6866 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6867 cat >conftest.$ac_ext <<_ACEOF
6868 /* confdefs.h. */
6869 _ACEOF
6870 cat confdefs.h >>conftest.$ac_ext
6871 cat >>conftest.$ac_ext <<_ACEOF
6872 /* end confdefs.h. */
6873 #include <string.h>
6875 _ACEOF
6876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6877 $EGREP "memchr" >/dev/null 2>&1; then
6879 else
6880 ac_cv_header_stdc=no
6882 rm -f conftest*
6886 if test $ac_cv_header_stdc = yes; then
6887 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6888 cat >conftest.$ac_ext <<_ACEOF
6889 /* confdefs.h. */
6890 _ACEOF
6891 cat confdefs.h >>conftest.$ac_ext
6892 cat >>conftest.$ac_ext <<_ACEOF
6893 /* end confdefs.h. */
6894 #include <stdlib.h>
6896 _ACEOF
6897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6898 $EGREP "free" >/dev/null 2>&1; then
6900 else
6901 ac_cv_header_stdc=no
6903 rm -f conftest*
6907 if test $ac_cv_header_stdc = yes; then
6908 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6909 if test "$cross_compiling" = yes; then
6911 else
6912 cat >conftest.$ac_ext <<_ACEOF
6913 /* confdefs.h. */
6914 _ACEOF
6915 cat confdefs.h >>conftest.$ac_ext
6916 cat >>conftest.$ac_ext <<_ACEOF
6917 /* end confdefs.h. */
6918 #include <ctype.h>
6919 #include <stdlib.h>
6920 #if ((' ' & 0x0FF) == 0x020)
6921 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6922 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6923 #else
6924 # define ISLOWER(c) \
6925 (('a' <= (c) && (c) <= 'i') \
6926 || ('j' <= (c) && (c) <= 'r') \
6927 || ('s' <= (c) && (c) <= 'z'))
6928 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6929 #endif
6931 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6933 main ()
6935 int i;
6936 for (i = 0; i < 256; i++)
6937 if (XOR (islower (i), ISLOWER (i))
6938 || toupper (i) != TOUPPER (i))
6939 return 2;
6940 return 0;
6942 _ACEOF
6943 rm -f conftest$ac_exeext
6944 if { (ac_try="$ac_link"
6945 case "(($ac_try" in
6946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6947 *) ac_try_echo=$ac_try;;
6948 esac
6949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6950 (eval "$ac_link") 2>&5
6951 ac_status=$?
6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6954 { (case "(($ac_try" in
6955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6956 *) ac_try_echo=$ac_try;;
6957 esac
6958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6959 (eval "$ac_try") 2>&5
6960 ac_status=$?
6961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962 (exit $ac_status); }; }; then
6964 else
6965 echo "$as_me: program exited with status $ac_status" >&5
6966 echo "$as_me: failed program was:" >&5
6967 sed 's/^/| /' conftest.$ac_ext >&5
6969 ( exit $ac_status )
6970 ac_cv_header_stdc=no
6972 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6978 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6979 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6980 if test $ac_cv_header_stdc = yes; then
6982 cat >>confdefs.h <<\_ACEOF
6983 #define STDC_HEADERS 1
6984 _ACEOF
6988 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6989 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6990 if test "${ac_cv_header_time+set}" = set; then
6991 echo $ECHO_N "(cached) $ECHO_C" >&6
6992 else
6993 cat >conftest.$ac_ext <<_ACEOF
6994 /* confdefs.h. */
6995 _ACEOF
6996 cat confdefs.h >>conftest.$ac_ext
6997 cat >>conftest.$ac_ext <<_ACEOF
6998 /* end confdefs.h. */
6999 #include <sys/types.h>
7000 #include <sys/time.h>
7001 #include <time.h>
7004 main ()
7006 if ((struct tm *) 0)
7007 return 0;
7009 return 0;
7011 _ACEOF
7012 rm -f conftest.$ac_objext
7013 if { (ac_try="$ac_compile"
7014 case "(($ac_try" in
7015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7016 *) ac_try_echo=$ac_try;;
7017 esac
7018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7019 (eval "$ac_compile") 2>conftest.er1
7020 ac_status=$?
7021 grep -v '^ *+' conftest.er1 >conftest.err
7022 rm -f conftest.er1
7023 cat conftest.err >&5
7024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025 (exit $ac_status); } && {
7026 test -z "$ac_c_werror_flag" ||
7027 test ! -s conftest.err
7028 } && test -s conftest.$ac_objext; then
7029 ac_cv_header_time=yes
7030 else
7031 echo "$as_me: failed program was:" >&5
7032 sed 's/^/| /' conftest.$ac_ext >&5
7034 ac_cv_header_time=no
7037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7039 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7040 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7041 if test $ac_cv_header_time = yes; then
7043 cat >>confdefs.h <<\_ACEOF
7044 #define TIME_WITH_SYS_TIME 1
7045 _ACEOF
7049 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7050 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7051 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7052 echo $ECHO_N "(cached) $ECHO_C" >&6
7053 else
7054 cat >conftest.$ac_ext <<_ACEOF
7055 /* confdefs.h. */
7056 _ACEOF
7057 cat confdefs.h >>conftest.$ac_ext
7058 cat >>conftest.$ac_ext <<_ACEOF
7059 /* end confdefs.h. */
7060 $ac_includes_default
7062 main ()
7064 #ifndef sys_siglist
7065 (void) sys_siglist;
7066 #endif
7069 return 0;
7071 _ACEOF
7072 rm -f conftest.$ac_objext
7073 if { (ac_try="$ac_compile"
7074 case "(($ac_try" in
7075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7076 *) ac_try_echo=$ac_try;;
7077 esac
7078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7079 (eval "$ac_compile") 2>conftest.er1
7080 ac_status=$?
7081 grep -v '^ *+' conftest.er1 >conftest.err
7082 rm -f conftest.er1
7083 cat conftest.err >&5
7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085 (exit $ac_status); } && {
7086 test -z "$ac_c_werror_flag" ||
7087 test ! -s conftest.err
7088 } && test -s conftest.$ac_objext; then
7089 ac_cv_have_decl_sys_siglist=yes
7090 else
7091 echo "$as_me: failed program was:" >&5
7092 sed 's/^/| /' conftest.$ac_ext >&5
7094 ac_cv_have_decl_sys_siglist=no
7097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7099 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7100 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7101 if test $ac_cv_have_decl_sys_siglist = yes; then
7103 cat >>confdefs.h <<_ACEOF
7104 #define HAVE_DECL_SYS_SIGLIST 1
7105 _ACEOF
7108 else
7109 cat >>confdefs.h <<_ACEOF
7110 #define HAVE_DECL_SYS_SIGLIST 0
7111 _ACEOF
7117 if test $ac_cv_have_decl_sys_siglist != yes; then
7118 # For Tru64, at least:
7119 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7120 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7121 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7122 echo $ECHO_N "(cached) $ECHO_C" >&6
7123 else
7124 cat >conftest.$ac_ext <<_ACEOF
7125 /* confdefs.h. */
7126 _ACEOF
7127 cat confdefs.h >>conftest.$ac_ext
7128 cat >>conftest.$ac_ext <<_ACEOF
7129 /* end confdefs.h. */
7130 $ac_includes_default
7132 main ()
7134 #ifndef __sys_siglist
7135 (void) __sys_siglist;
7136 #endif
7139 return 0;
7141 _ACEOF
7142 rm -f conftest.$ac_objext
7143 if { (ac_try="$ac_compile"
7144 case "(($ac_try" in
7145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7146 *) ac_try_echo=$ac_try;;
7147 esac
7148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7149 (eval "$ac_compile") 2>conftest.er1
7150 ac_status=$?
7151 grep -v '^ *+' conftest.er1 >conftest.err
7152 rm -f conftest.er1
7153 cat conftest.err >&5
7154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155 (exit $ac_status); } && {
7156 test -z "$ac_c_werror_flag" ||
7157 test ! -s conftest.err
7158 } && test -s conftest.$ac_objext; then
7159 ac_cv_have_decl___sys_siglist=yes
7160 else
7161 echo "$as_me: failed program was:" >&5
7162 sed 's/^/| /' conftest.$ac_ext >&5
7164 ac_cv_have_decl___sys_siglist=no
7167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7169 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7170 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7171 if test $ac_cv_have_decl___sys_siglist = yes; then
7173 cat >>confdefs.h <<_ACEOF
7174 #define HAVE_DECL___SYS_SIGLIST 1
7175 _ACEOF
7178 else
7179 cat >>confdefs.h <<_ACEOF
7180 #define HAVE_DECL___SYS_SIGLIST 0
7181 _ACEOF
7187 if test $ac_cv_have_decl___sys_siglist = yes; then
7189 cat >>confdefs.h <<\_ACEOF
7190 #define sys_siglist __sys_siglist
7191 _ACEOF
7195 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7196 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7197 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7198 echo $ECHO_N "(cached) $ECHO_C" >&6
7199 else
7200 cat >conftest.$ac_ext <<_ACEOF
7201 /* confdefs.h. */
7202 _ACEOF
7203 cat confdefs.h >>conftest.$ac_ext
7204 cat >>conftest.$ac_ext <<_ACEOF
7205 /* end confdefs.h. */
7206 #include <sys/types.h>
7207 #include <sys/wait.h>
7208 #ifndef WEXITSTATUS
7209 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7210 #endif
7211 #ifndef WIFEXITED
7212 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7213 #endif
7216 main ()
7218 int s;
7219 wait (&s);
7220 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7222 return 0;
7224 _ACEOF
7225 rm -f conftest.$ac_objext
7226 if { (ac_try="$ac_compile"
7227 case "(($ac_try" in
7228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7229 *) ac_try_echo=$ac_try;;
7230 esac
7231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7232 (eval "$ac_compile") 2>conftest.er1
7233 ac_status=$?
7234 grep -v '^ *+' conftest.er1 >conftest.err
7235 rm -f conftest.er1
7236 cat conftest.err >&5
7237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7238 (exit $ac_status); } && {
7239 test -z "$ac_c_werror_flag" ||
7240 test ! -s conftest.err
7241 } && test -s conftest.$ac_objext; then
7242 ac_cv_header_sys_wait_h=yes
7243 else
7244 echo "$as_me: failed program was:" >&5
7245 sed 's/^/| /' conftest.$ac_ext >&5
7247 ac_cv_header_sys_wait_h=no
7250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7252 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7253 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7254 if test $ac_cv_header_sys_wait_h = yes; then
7256 cat >>confdefs.h <<\_ACEOF
7257 #define HAVE_SYS_WAIT_H 1
7258 _ACEOF
7263 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7264 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7265 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7266 echo $ECHO_N "(cached) $ECHO_C" >&6
7267 else
7268 cat >conftest.$ac_ext <<_ACEOF
7269 /* confdefs.h. */
7270 _ACEOF
7271 cat confdefs.h >>conftest.$ac_ext
7272 cat >>conftest.$ac_ext <<_ACEOF
7273 /* end confdefs.h. */
7274 #ifdef TIME_WITH_SYS_TIME
7275 #include <sys/time.h>
7276 #include <time.h>
7277 #else
7278 #ifdef HAVE_SYS_TIME_H
7279 #include <sys/time.h>
7280 #else
7281 #include <time.h>
7282 #endif
7283 #endif
7284 #ifdef HAVE_UTIME_H
7285 #include <utime.h>
7286 #endif
7288 main ()
7290 static struct utimbuf x; x.actime = x.modtime;
7292 return 0;
7294 _ACEOF
7295 rm -f conftest.$ac_objext
7296 if { (ac_try="$ac_compile"
7297 case "(($ac_try" in
7298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7299 *) ac_try_echo=$ac_try;;
7300 esac
7301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7302 (eval "$ac_compile") 2>conftest.er1
7303 ac_status=$?
7304 grep -v '^ *+' conftest.er1 >conftest.err
7305 rm -f conftest.er1
7306 cat conftest.err >&5
7307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308 (exit $ac_status); } && {
7309 test -z "$ac_c_werror_flag" ||
7310 test ! -s conftest.err
7311 } && test -s conftest.$ac_objext; then
7312 emacs_cv_struct_utimbuf=yes
7313 else
7314 echo "$as_me: failed program was:" >&5
7315 sed 's/^/| /' conftest.$ac_ext >&5
7317 emacs_cv_struct_utimbuf=no
7320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7322 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7323 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7324 if test $emacs_cv_struct_utimbuf = yes; then
7326 cat >>confdefs.h <<\_ACEOF
7327 #define HAVE_STRUCT_UTIMBUF 1
7328 _ACEOF
7332 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7333 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7334 if test "${ac_cv_type_signal+set}" = set; then
7335 echo $ECHO_N "(cached) $ECHO_C" >&6
7336 else
7337 cat >conftest.$ac_ext <<_ACEOF
7338 /* confdefs.h. */
7339 _ACEOF
7340 cat confdefs.h >>conftest.$ac_ext
7341 cat >>conftest.$ac_ext <<_ACEOF
7342 /* end confdefs.h. */
7343 #include <sys/types.h>
7344 #include <signal.h>
7347 main ()
7349 return *(signal (0, 0)) (0) == 1;
7351 return 0;
7353 _ACEOF
7354 rm -f conftest.$ac_objext
7355 if { (ac_try="$ac_compile"
7356 case "(($ac_try" in
7357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7358 *) ac_try_echo=$ac_try;;
7359 esac
7360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7361 (eval "$ac_compile") 2>conftest.er1
7362 ac_status=$?
7363 grep -v '^ *+' conftest.er1 >conftest.err
7364 rm -f conftest.er1
7365 cat conftest.err >&5
7366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367 (exit $ac_status); } && {
7368 test -z "$ac_c_werror_flag" ||
7369 test ! -s conftest.err
7370 } && test -s conftest.$ac_objext; then
7371 ac_cv_type_signal=int
7372 else
7373 echo "$as_me: failed program was:" >&5
7374 sed 's/^/| /' conftest.$ac_ext >&5
7376 ac_cv_type_signal=void
7379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7381 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7382 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7384 cat >>confdefs.h <<_ACEOF
7385 #define RETSIGTYPE $ac_cv_type_signal
7386 _ACEOF
7390 { echo "$as_me:$LINENO: checking for speed_t" >&5
7391 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7392 if test "${emacs_cv_speed_t+set}" = set; then
7393 echo $ECHO_N "(cached) $ECHO_C" >&6
7394 else
7395 cat >conftest.$ac_ext <<_ACEOF
7396 /* confdefs.h. */
7397 _ACEOF
7398 cat confdefs.h >>conftest.$ac_ext
7399 cat >>conftest.$ac_ext <<_ACEOF
7400 /* end confdefs.h. */
7401 #include <termios.h>
7403 main ()
7405 speed_t x = 1;
7407 return 0;
7409 _ACEOF
7410 rm -f conftest.$ac_objext
7411 if { (ac_try="$ac_compile"
7412 case "(($ac_try" in
7413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7414 *) ac_try_echo=$ac_try;;
7415 esac
7416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7417 (eval "$ac_compile") 2>conftest.er1
7418 ac_status=$?
7419 grep -v '^ *+' conftest.er1 >conftest.err
7420 rm -f conftest.er1
7421 cat conftest.err >&5
7422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423 (exit $ac_status); } && {
7424 test -z "$ac_c_werror_flag" ||
7425 test ! -s conftest.err
7426 } && test -s conftest.$ac_objext; then
7427 emacs_cv_speed_t=yes
7428 else
7429 echo "$as_me: failed program was:" >&5
7430 sed 's/^/| /' conftest.$ac_ext >&5
7432 emacs_cv_speed_t=no
7435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7437 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7438 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7439 if test $emacs_cv_speed_t = yes; then
7441 cat >>confdefs.h <<\_ACEOF
7442 #define HAVE_SPEED_T 1
7443 _ACEOF
7447 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7448 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7449 if test "${emacs_cv_struct_timeval+set}" = set; then
7450 echo $ECHO_N "(cached) $ECHO_C" >&6
7451 else
7452 cat >conftest.$ac_ext <<_ACEOF
7453 /* confdefs.h. */
7454 _ACEOF
7455 cat confdefs.h >>conftest.$ac_ext
7456 cat >>conftest.$ac_ext <<_ACEOF
7457 /* end confdefs.h. */
7458 #ifdef TIME_WITH_SYS_TIME
7459 #include <sys/time.h>
7460 #include <time.h>
7461 #else
7462 #ifdef HAVE_SYS_TIME_H
7463 #include <sys/time.h>
7464 #else
7465 #include <time.h>
7466 #endif
7467 #endif
7469 main ()
7471 static struct timeval x; x.tv_sec = x.tv_usec;
7473 return 0;
7475 _ACEOF
7476 rm -f conftest.$ac_objext
7477 if { (ac_try="$ac_compile"
7478 case "(($ac_try" in
7479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7480 *) ac_try_echo=$ac_try;;
7481 esac
7482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7483 (eval "$ac_compile") 2>conftest.er1
7484 ac_status=$?
7485 grep -v '^ *+' conftest.er1 >conftest.err
7486 rm -f conftest.er1
7487 cat conftest.err >&5
7488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489 (exit $ac_status); } && {
7490 test -z "$ac_c_werror_flag" ||
7491 test ! -s conftest.err
7492 } && test -s conftest.$ac_objext; then
7493 emacs_cv_struct_timeval=yes
7494 else
7495 echo "$as_me: failed program was:" >&5
7496 sed 's/^/| /' conftest.$ac_ext >&5
7498 emacs_cv_struct_timeval=no
7501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7503 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7504 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7505 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7506 if test $emacs_cv_struct_timeval = yes; then
7508 cat >>confdefs.h <<\_ACEOF
7509 #define HAVE_TIMEVAL 1
7510 _ACEOF
7514 { echo "$as_me:$LINENO: checking for struct exception" >&5
7515 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7516 if test "${emacs_cv_struct_exception+set}" = set; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
7518 else
7519 cat >conftest.$ac_ext <<_ACEOF
7520 /* confdefs.h. */
7521 _ACEOF
7522 cat confdefs.h >>conftest.$ac_ext
7523 cat >>conftest.$ac_ext <<_ACEOF
7524 /* end confdefs.h. */
7525 #include <math.h>
7527 main ()
7529 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7531 return 0;
7533 _ACEOF
7534 rm -f conftest.$ac_objext
7535 if { (ac_try="$ac_compile"
7536 case "(($ac_try" in
7537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7538 *) ac_try_echo=$ac_try;;
7539 esac
7540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7541 (eval "$ac_compile") 2>conftest.er1
7542 ac_status=$?
7543 grep -v '^ *+' conftest.er1 >conftest.err
7544 rm -f conftest.er1
7545 cat conftest.err >&5
7546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547 (exit $ac_status); } && {
7548 test -z "$ac_c_werror_flag" ||
7549 test ! -s conftest.err
7550 } && test -s conftest.$ac_objext; then
7551 emacs_cv_struct_exception=yes
7552 else
7553 echo "$as_me: failed program was:" >&5
7554 sed 's/^/| /' conftest.$ac_ext >&5
7556 emacs_cv_struct_exception=no
7559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7561 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7562 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7563 HAVE_EXCEPTION=$emacs_cv_struct_exception
7564 if test $emacs_cv_struct_exception != yes; then
7566 cat >>confdefs.h <<\_ACEOF
7567 #define NO_MATHERR 1
7568 _ACEOF
7573 for ac_header in sys/socket.h
7575 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7576 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7577 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7579 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7580 echo $ECHO_N "(cached) $ECHO_C" >&6
7582 ac_res=`eval echo '${'$as_ac_Header'}'`
7583 { echo "$as_me:$LINENO: result: $ac_res" >&5
7584 echo "${ECHO_T}$ac_res" >&6; }
7585 else
7586 # Is the header compilable?
7587 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7588 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7589 cat >conftest.$ac_ext <<_ACEOF
7590 /* confdefs.h. */
7591 _ACEOF
7592 cat confdefs.h >>conftest.$ac_ext
7593 cat >>conftest.$ac_ext <<_ACEOF
7594 /* end confdefs.h. */
7595 $ac_includes_default
7596 #include <$ac_header>
7597 _ACEOF
7598 rm -f conftest.$ac_objext
7599 if { (ac_try="$ac_compile"
7600 case "(($ac_try" in
7601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7602 *) ac_try_echo=$ac_try;;
7603 esac
7604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7605 (eval "$ac_compile") 2>conftest.er1
7606 ac_status=$?
7607 grep -v '^ *+' conftest.er1 >conftest.err
7608 rm -f conftest.er1
7609 cat conftest.err >&5
7610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611 (exit $ac_status); } && {
7612 test -z "$ac_c_werror_flag" ||
7613 test ! -s conftest.err
7614 } && test -s conftest.$ac_objext; then
7615 ac_header_compiler=yes
7616 else
7617 echo "$as_me: failed program was:" >&5
7618 sed 's/^/| /' conftest.$ac_ext >&5
7620 ac_header_compiler=no
7623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7624 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7625 echo "${ECHO_T}$ac_header_compiler" >&6; }
7627 # Is the header present?
7628 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7629 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7630 cat >conftest.$ac_ext <<_ACEOF
7631 /* confdefs.h. */
7632 _ACEOF
7633 cat confdefs.h >>conftest.$ac_ext
7634 cat >>conftest.$ac_ext <<_ACEOF
7635 /* end confdefs.h. */
7636 #include <$ac_header>
7637 _ACEOF
7638 if { (ac_try="$ac_cpp conftest.$ac_ext"
7639 case "(($ac_try" in
7640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7641 *) ac_try_echo=$ac_try;;
7642 esac
7643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7645 ac_status=$?
7646 grep -v '^ *+' conftest.er1 >conftest.err
7647 rm -f conftest.er1
7648 cat conftest.err >&5
7649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650 (exit $ac_status); } >/dev/null && {
7651 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7652 test ! -s conftest.err
7653 }; then
7654 ac_header_preproc=yes
7655 else
7656 echo "$as_me: failed program was:" >&5
7657 sed 's/^/| /' conftest.$ac_ext >&5
7659 ac_header_preproc=no
7662 rm -f conftest.err conftest.$ac_ext
7663 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7664 echo "${ECHO_T}$ac_header_preproc" >&6; }
7666 # So? What about this header?
7667 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7668 yes:no: )
7669 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7670 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7672 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7673 ac_header_preproc=yes
7675 no:yes:* )
7676 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7677 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7678 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7679 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7680 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7681 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7682 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7683 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7685 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7686 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7687 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7690 esac
7691 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7694 echo $ECHO_N "(cached) $ECHO_C" >&6
7695 else
7696 eval "$as_ac_Header=\$ac_header_preproc"
7698 ac_res=`eval echo '${'$as_ac_Header'}'`
7699 { echo "$as_me:$LINENO: result: $ac_res" >&5
7700 echo "${ECHO_T}$ac_res" >&6; }
7703 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7704 cat >>confdefs.h <<_ACEOF
7705 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7706 _ACEOF
7710 done
7713 for ac_header in net/if.h
7715 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7716 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7719 echo $ECHO_N "(cached) $ECHO_C" >&6
7720 else
7721 cat >conftest.$ac_ext <<_ACEOF
7722 /* confdefs.h. */
7723 _ACEOF
7724 cat confdefs.h >>conftest.$ac_ext
7725 cat >>conftest.$ac_ext <<_ACEOF
7726 /* end confdefs.h. */
7727 $ac_includes_default
7728 #if HAVE_SYS_SOCKET_H
7729 #include <sys/socket.h>
7730 #endif
7732 #include <$ac_header>
7733 _ACEOF
7734 rm -f conftest.$ac_objext
7735 if { (ac_try="$ac_compile"
7736 case "(($ac_try" in
7737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7738 *) ac_try_echo=$ac_try;;
7739 esac
7740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7741 (eval "$ac_compile") 2>conftest.er1
7742 ac_status=$?
7743 grep -v '^ *+' conftest.er1 >conftest.err
7744 rm -f conftest.er1
7745 cat conftest.err >&5
7746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747 (exit $ac_status); } && {
7748 test -z "$ac_c_werror_flag" ||
7749 test ! -s conftest.err
7750 } && test -s conftest.$ac_objext; then
7751 eval "$as_ac_Header=yes"
7752 else
7753 echo "$as_me: failed program was:" >&5
7754 sed 's/^/| /' conftest.$ac_ext >&5
7756 eval "$as_ac_Header=no"
7759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7761 ac_res=`eval echo '${'$as_ac_Header'}'`
7762 { echo "$as_me:$LINENO: result: $ac_res" >&5
7763 echo "${ECHO_T}$ac_res" >&6; }
7764 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7765 cat >>confdefs.h <<_ACEOF
7766 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7767 _ACEOF
7771 done
7774 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7775 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7776 if test "${ac_cv_struct_tm+set}" = set; then
7777 echo $ECHO_N "(cached) $ECHO_C" >&6
7778 else
7779 cat >conftest.$ac_ext <<_ACEOF
7780 /* confdefs.h. */
7781 _ACEOF
7782 cat confdefs.h >>conftest.$ac_ext
7783 cat >>conftest.$ac_ext <<_ACEOF
7784 /* end confdefs.h. */
7785 #include <sys/types.h>
7786 #include <time.h>
7789 main ()
7791 struct tm tm;
7792 int *p = &tm.tm_sec;
7793 return !p;
7795 return 0;
7797 _ACEOF
7798 rm -f conftest.$ac_objext
7799 if { (ac_try="$ac_compile"
7800 case "(($ac_try" in
7801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7802 *) ac_try_echo=$ac_try;;
7803 esac
7804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7805 (eval "$ac_compile") 2>conftest.er1
7806 ac_status=$?
7807 grep -v '^ *+' conftest.er1 >conftest.err
7808 rm -f conftest.er1
7809 cat conftest.err >&5
7810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811 (exit $ac_status); } && {
7812 test -z "$ac_c_werror_flag" ||
7813 test ! -s conftest.err
7814 } && test -s conftest.$ac_objext; then
7815 ac_cv_struct_tm=time.h
7816 else
7817 echo "$as_me: failed program was:" >&5
7818 sed 's/^/| /' conftest.$ac_ext >&5
7820 ac_cv_struct_tm=sys/time.h
7823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7825 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7826 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7827 if test $ac_cv_struct_tm = sys/time.h; then
7829 cat >>confdefs.h <<\_ACEOF
7830 #define TM_IN_SYS_TIME 1
7831 _ACEOF
7835 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7836 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7837 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7838 echo $ECHO_N "(cached) $ECHO_C" >&6
7839 else
7840 cat >conftest.$ac_ext <<_ACEOF
7841 /* confdefs.h. */
7842 _ACEOF
7843 cat confdefs.h >>conftest.$ac_ext
7844 cat >>conftest.$ac_ext <<_ACEOF
7845 /* end confdefs.h. */
7846 #include <sys/types.h>
7847 #include <$ac_cv_struct_tm>
7851 main ()
7853 static struct tm ac_aggr;
7854 if (ac_aggr.tm_zone)
7855 return 0;
7857 return 0;
7859 _ACEOF
7860 rm -f conftest.$ac_objext
7861 if { (ac_try="$ac_compile"
7862 case "(($ac_try" in
7863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7864 *) ac_try_echo=$ac_try;;
7865 esac
7866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7867 (eval "$ac_compile") 2>conftest.er1
7868 ac_status=$?
7869 grep -v '^ *+' conftest.er1 >conftest.err
7870 rm -f conftest.er1
7871 cat conftest.err >&5
7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); } && {
7874 test -z "$ac_c_werror_flag" ||
7875 test ! -s conftest.err
7876 } && test -s conftest.$ac_objext; then
7877 ac_cv_member_struct_tm_tm_zone=yes
7878 else
7879 echo "$as_me: failed program was:" >&5
7880 sed 's/^/| /' conftest.$ac_ext >&5
7882 cat >conftest.$ac_ext <<_ACEOF
7883 /* confdefs.h. */
7884 _ACEOF
7885 cat confdefs.h >>conftest.$ac_ext
7886 cat >>conftest.$ac_ext <<_ACEOF
7887 /* end confdefs.h. */
7888 #include <sys/types.h>
7889 #include <$ac_cv_struct_tm>
7893 main ()
7895 static struct tm ac_aggr;
7896 if (sizeof ac_aggr.tm_zone)
7897 return 0;
7899 return 0;
7901 _ACEOF
7902 rm -f conftest.$ac_objext
7903 if { (ac_try="$ac_compile"
7904 case "(($ac_try" in
7905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7906 *) ac_try_echo=$ac_try;;
7907 esac
7908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7909 (eval "$ac_compile") 2>conftest.er1
7910 ac_status=$?
7911 grep -v '^ *+' conftest.er1 >conftest.err
7912 rm -f conftest.er1
7913 cat conftest.err >&5
7914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915 (exit $ac_status); } && {
7916 test -z "$ac_c_werror_flag" ||
7917 test ! -s conftest.err
7918 } && test -s conftest.$ac_objext; then
7919 ac_cv_member_struct_tm_tm_zone=yes
7920 else
7921 echo "$as_me: failed program was:" >&5
7922 sed 's/^/| /' conftest.$ac_ext >&5
7924 ac_cv_member_struct_tm_tm_zone=no
7927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7932 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7933 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7934 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7936 cat >>confdefs.h <<_ACEOF
7937 #define HAVE_STRUCT_TM_TM_ZONE 1
7938 _ACEOF
7943 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7945 cat >>confdefs.h <<\_ACEOF
7946 #define HAVE_TM_ZONE 1
7947 _ACEOF
7949 else
7950 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7951 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7952 if test "${ac_cv_have_decl_tzname+set}" = set; then
7953 echo $ECHO_N "(cached) $ECHO_C" >&6
7954 else
7955 cat >conftest.$ac_ext <<_ACEOF
7956 /* confdefs.h. */
7957 _ACEOF
7958 cat confdefs.h >>conftest.$ac_ext
7959 cat >>conftest.$ac_ext <<_ACEOF
7960 /* end confdefs.h. */
7961 #include <time.h>
7964 main ()
7966 #ifndef tzname
7967 (void) tzname;
7968 #endif
7971 return 0;
7973 _ACEOF
7974 rm -f conftest.$ac_objext
7975 if { (ac_try="$ac_compile"
7976 case "(($ac_try" in
7977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7978 *) ac_try_echo=$ac_try;;
7979 esac
7980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7981 (eval "$ac_compile") 2>conftest.er1
7982 ac_status=$?
7983 grep -v '^ *+' conftest.er1 >conftest.err
7984 rm -f conftest.er1
7985 cat conftest.err >&5
7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); } && {
7988 test -z "$ac_c_werror_flag" ||
7989 test ! -s conftest.err
7990 } && test -s conftest.$ac_objext; then
7991 ac_cv_have_decl_tzname=yes
7992 else
7993 echo "$as_me: failed program was:" >&5
7994 sed 's/^/| /' conftest.$ac_ext >&5
7996 ac_cv_have_decl_tzname=no
7999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8001 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8002 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
8003 if test $ac_cv_have_decl_tzname = yes; then
8005 cat >>confdefs.h <<_ACEOF
8006 #define HAVE_DECL_TZNAME 1
8007 _ACEOF
8010 else
8011 cat >>confdefs.h <<_ACEOF
8012 #define HAVE_DECL_TZNAME 0
8013 _ACEOF
8019 { echo "$as_me:$LINENO: checking for tzname" >&5
8020 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
8021 if test "${ac_cv_var_tzname+set}" = set; then
8022 echo $ECHO_N "(cached) $ECHO_C" >&6
8023 else
8024 cat >conftest.$ac_ext <<_ACEOF
8025 /* confdefs.h. */
8026 _ACEOF
8027 cat confdefs.h >>conftest.$ac_ext
8028 cat >>conftest.$ac_ext <<_ACEOF
8029 /* end confdefs.h. */
8030 #include <time.h>
8031 #if !HAVE_DECL_TZNAME
8032 extern char *tzname[];
8033 #endif
8036 main ()
8038 return tzname[0][0];
8040 return 0;
8042 _ACEOF
8043 rm -f conftest.$ac_objext conftest$ac_exeext
8044 if { (ac_try="$ac_link"
8045 case "(($ac_try" in
8046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8047 *) ac_try_echo=$ac_try;;
8048 esac
8049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8050 (eval "$ac_link") 2>conftest.er1
8051 ac_status=$?
8052 grep -v '^ *+' conftest.er1 >conftest.err
8053 rm -f conftest.er1
8054 cat conftest.err >&5
8055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056 (exit $ac_status); } && {
8057 test -z "$ac_c_werror_flag" ||
8058 test ! -s conftest.err
8059 } && test -s conftest$ac_exeext &&
8060 $as_test_x conftest$ac_exeext; then
8061 ac_cv_var_tzname=yes
8062 else
8063 echo "$as_me: failed program was:" >&5
8064 sed 's/^/| /' conftest.$ac_ext >&5
8066 ac_cv_var_tzname=no
8069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8070 conftest$ac_exeext conftest.$ac_ext
8072 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8073 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8074 if test $ac_cv_var_tzname = yes; then
8076 cat >>confdefs.h <<\_ACEOF
8077 #define HAVE_TZNAME 1
8078 _ACEOF
8083 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8084 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8085 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8086 echo $ECHO_N "(cached) $ECHO_C" >&6
8087 else
8088 cat >conftest.$ac_ext <<_ACEOF
8089 /* confdefs.h. */
8090 _ACEOF
8091 cat confdefs.h >>conftest.$ac_ext
8092 cat >>conftest.$ac_ext <<_ACEOF
8093 /* end confdefs.h. */
8094 #include <time.h>
8097 main ()
8099 static struct tm ac_aggr;
8100 if (ac_aggr.tm_gmtoff)
8101 return 0;
8103 return 0;
8105 _ACEOF
8106 rm -f conftest.$ac_objext
8107 if { (ac_try="$ac_compile"
8108 case "(($ac_try" in
8109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8110 *) ac_try_echo=$ac_try;;
8111 esac
8112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8113 (eval "$ac_compile") 2>conftest.er1
8114 ac_status=$?
8115 grep -v '^ *+' conftest.er1 >conftest.err
8116 rm -f conftest.er1
8117 cat conftest.err >&5
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); } && {
8120 test -z "$ac_c_werror_flag" ||
8121 test ! -s conftest.err
8122 } && test -s conftest.$ac_objext; then
8123 ac_cv_member_struct_tm_tm_gmtoff=yes
8124 else
8125 echo "$as_me: failed program was:" >&5
8126 sed 's/^/| /' conftest.$ac_ext >&5
8128 cat >conftest.$ac_ext <<_ACEOF
8129 /* confdefs.h. */
8130 _ACEOF
8131 cat confdefs.h >>conftest.$ac_ext
8132 cat >>conftest.$ac_ext <<_ACEOF
8133 /* end confdefs.h. */
8134 #include <time.h>
8137 main ()
8139 static struct tm ac_aggr;
8140 if (sizeof ac_aggr.tm_gmtoff)
8141 return 0;
8143 return 0;
8145 _ACEOF
8146 rm -f conftest.$ac_objext
8147 if { (ac_try="$ac_compile"
8148 case "(($ac_try" in
8149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8150 *) ac_try_echo=$ac_try;;
8151 esac
8152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8153 (eval "$ac_compile") 2>conftest.er1
8154 ac_status=$?
8155 grep -v '^ *+' conftest.er1 >conftest.err
8156 rm -f conftest.er1
8157 cat conftest.err >&5
8158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159 (exit $ac_status); } && {
8160 test -z "$ac_c_werror_flag" ||
8161 test ! -s conftest.err
8162 } && test -s conftest.$ac_objext; then
8163 ac_cv_member_struct_tm_tm_gmtoff=yes
8164 else
8165 echo "$as_me: failed program was:" >&5
8166 sed 's/^/| /' conftest.$ac_ext >&5
8168 ac_cv_member_struct_tm_tm_gmtoff=no
8171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8176 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8177 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8178 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8180 cat >>confdefs.h <<\_ACEOF
8181 #define HAVE_TM_GMTOFF 1
8182 _ACEOF
8186 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8187 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8188 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8189 echo $ECHO_N "(cached) $ECHO_C" >&6
8190 else
8191 cat >conftest.$ac_ext <<_ACEOF
8192 /* confdefs.h. */
8193 _ACEOF
8194 cat confdefs.h >>conftest.$ac_ext
8195 cat >>conftest.$ac_ext <<_ACEOF
8196 /* end confdefs.h. */
8197 $ac_includes_default
8198 #if HAVE_SYS_SOCKET_H
8199 #include <sys/socket.h>
8200 #endif
8201 #if HAVE_NET_IF_H
8202 #include <net/if.h>
8203 #endif
8206 main ()
8208 static struct ifreq ac_aggr;
8209 if (ac_aggr.ifr_flags)
8210 return 0;
8212 return 0;
8214 _ACEOF
8215 rm -f conftest.$ac_objext
8216 if { (ac_try="$ac_compile"
8217 case "(($ac_try" in
8218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8219 *) ac_try_echo=$ac_try;;
8220 esac
8221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8222 (eval "$ac_compile") 2>conftest.er1
8223 ac_status=$?
8224 grep -v '^ *+' conftest.er1 >conftest.err
8225 rm -f conftest.er1
8226 cat conftest.err >&5
8227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228 (exit $ac_status); } && {
8229 test -z "$ac_c_werror_flag" ||
8230 test ! -s conftest.err
8231 } && test -s conftest.$ac_objext; then
8232 ac_cv_member_struct_ifreq_ifr_flags=yes
8233 else
8234 echo "$as_me: failed program was:" >&5
8235 sed 's/^/| /' conftest.$ac_ext >&5
8237 cat >conftest.$ac_ext <<_ACEOF
8238 /* confdefs.h. */
8239 _ACEOF
8240 cat confdefs.h >>conftest.$ac_ext
8241 cat >>conftest.$ac_ext <<_ACEOF
8242 /* end confdefs.h. */
8243 $ac_includes_default
8244 #if HAVE_SYS_SOCKET_H
8245 #include <sys/socket.h>
8246 #endif
8247 #if HAVE_NET_IF_H
8248 #include <net/if.h>
8249 #endif
8252 main ()
8254 static struct ifreq ac_aggr;
8255 if (sizeof ac_aggr.ifr_flags)
8256 return 0;
8258 return 0;
8260 _ACEOF
8261 rm -f conftest.$ac_objext
8262 if { (ac_try="$ac_compile"
8263 case "(($ac_try" in
8264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8265 *) ac_try_echo=$ac_try;;
8266 esac
8267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8268 (eval "$ac_compile") 2>conftest.er1
8269 ac_status=$?
8270 grep -v '^ *+' conftest.er1 >conftest.err
8271 rm -f conftest.er1
8272 cat conftest.err >&5
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); } && {
8275 test -z "$ac_c_werror_flag" ||
8276 test ! -s conftest.err
8277 } && test -s conftest.$ac_objext; then
8278 ac_cv_member_struct_ifreq_ifr_flags=yes
8279 else
8280 echo "$as_me: failed program was:" >&5
8281 sed 's/^/| /' conftest.$ac_ext >&5
8283 ac_cv_member_struct_ifreq_ifr_flags=no
8286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8291 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8292 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8293 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8295 cat >>confdefs.h <<_ACEOF
8296 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8297 _ACEOF
8301 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8302 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8303 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8304 echo $ECHO_N "(cached) $ECHO_C" >&6
8305 else
8306 cat >conftest.$ac_ext <<_ACEOF
8307 /* confdefs.h. */
8308 _ACEOF
8309 cat confdefs.h >>conftest.$ac_ext
8310 cat >>conftest.$ac_ext <<_ACEOF
8311 /* end confdefs.h. */
8312 $ac_includes_default
8313 #if HAVE_SYS_SOCKET_H
8314 #include <sys/socket.h>
8315 #endif
8316 #if HAVE_NET_IF_H
8317 #include <net/if.h>
8318 #endif
8321 main ()
8323 static struct ifreq ac_aggr;
8324 if (ac_aggr.ifr_hwaddr)
8325 return 0;
8327 return 0;
8329 _ACEOF
8330 rm -f conftest.$ac_objext
8331 if { (ac_try="$ac_compile"
8332 case "(($ac_try" in
8333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8334 *) ac_try_echo=$ac_try;;
8335 esac
8336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8337 (eval "$ac_compile") 2>conftest.er1
8338 ac_status=$?
8339 grep -v '^ *+' conftest.er1 >conftest.err
8340 rm -f conftest.er1
8341 cat conftest.err >&5
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); } && {
8344 test -z "$ac_c_werror_flag" ||
8345 test ! -s conftest.err
8346 } && test -s conftest.$ac_objext; then
8347 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8348 else
8349 echo "$as_me: failed program was:" >&5
8350 sed 's/^/| /' conftest.$ac_ext >&5
8352 cat >conftest.$ac_ext <<_ACEOF
8353 /* confdefs.h. */
8354 _ACEOF
8355 cat confdefs.h >>conftest.$ac_ext
8356 cat >>conftest.$ac_ext <<_ACEOF
8357 /* end confdefs.h. */
8358 $ac_includes_default
8359 #if HAVE_SYS_SOCKET_H
8360 #include <sys/socket.h>
8361 #endif
8362 #if HAVE_NET_IF_H
8363 #include <net/if.h>
8364 #endif
8367 main ()
8369 static struct ifreq ac_aggr;
8370 if (sizeof ac_aggr.ifr_hwaddr)
8371 return 0;
8373 return 0;
8375 _ACEOF
8376 rm -f conftest.$ac_objext
8377 if { (ac_try="$ac_compile"
8378 case "(($ac_try" in
8379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8380 *) ac_try_echo=$ac_try;;
8381 esac
8382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8383 (eval "$ac_compile") 2>conftest.er1
8384 ac_status=$?
8385 grep -v '^ *+' conftest.er1 >conftest.err
8386 rm -f conftest.er1
8387 cat conftest.err >&5
8388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389 (exit $ac_status); } && {
8390 test -z "$ac_c_werror_flag" ||
8391 test ! -s conftest.err
8392 } && test -s conftest.$ac_objext; then
8393 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8394 else
8395 echo "$as_me: failed program was:" >&5
8396 sed 's/^/| /' conftest.$ac_ext >&5
8398 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8406 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8407 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8408 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8410 cat >>confdefs.h <<_ACEOF
8411 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8412 _ACEOF
8416 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8417 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8418 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8419 echo $ECHO_N "(cached) $ECHO_C" >&6
8420 else
8421 cat >conftest.$ac_ext <<_ACEOF
8422 /* confdefs.h. */
8423 _ACEOF
8424 cat confdefs.h >>conftest.$ac_ext
8425 cat >>conftest.$ac_ext <<_ACEOF
8426 /* end confdefs.h. */
8427 $ac_includes_default
8428 #if HAVE_SYS_SOCKET_H
8429 #include <sys/socket.h>
8430 #endif
8431 #if HAVE_NET_IF_H
8432 #include <net/if.h>
8433 #endif
8436 main ()
8438 static struct ifreq ac_aggr;
8439 if (ac_aggr.ifr_netmask)
8440 return 0;
8442 return 0;
8444 _ACEOF
8445 rm -f conftest.$ac_objext
8446 if { (ac_try="$ac_compile"
8447 case "(($ac_try" in
8448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8449 *) ac_try_echo=$ac_try;;
8450 esac
8451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8452 (eval "$ac_compile") 2>conftest.er1
8453 ac_status=$?
8454 grep -v '^ *+' conftest.er1 >conftest.err
8455 rm -f conftest.er1
8456 cat conftest.err >&5
8457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458 (exit $ac_status); } && {
8459 test -z "$ac_c_werror_flag" ||
8460 test ! -s conftest.err
8461 } && test -s conftest.$ac_objext; then
8462 ac_cv_member_struct_ifreq_ifr_netmask=yes
8463 else
8464 echo "$as_me: failed program was:" >&5
8465 sed 's/^/| /' conftest.$ac_ext >&5
8467 cat >conftest.$ac_ext <<_ACEOF
8468 /* confdefs.h. */
8469 _ACEOF
8470 cat confdefs.h >>conftest.$ac_ext
8471 cat >>conftest.$ac_ext <<_ACEOF
8472 /* end confdefs.h. */
8473 $ac_includes_default
8474 #if HAVE_SYS_SOCKET_H
8475 #include <sys/socket.h>
8476 #endif
8477 #if HAVE_NET_IF_H
8478 #include <net/if.h>
8479 #endif
8482 main ()
8484 static struct ifreq ac_aggr;
8485 if (sizeof ac_aggr.ifr_netmask)
8486 return 0;
8488 return 0;
8490 _ACEOF
8491 rm -f conftest.$ac_objext
8492 if { (ac_try="$ac_compile"
8493 case "(($ac_try" in
8494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8495 *) ac_try_echo=$ac_try;;
8496 esac
8497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8498 (eval "$ac_compile") 2>conftest.er1
8499 ac_status=$?
8500 grep -v '^ *+' conftest.er1 >conftest.err
8501 rm -f conftest.er1
8502 cat conftest.err >&5
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); } && {
8505 test -z "$ac_c_werror_flag" ||
8506 test ! -s conftest.err
8507 } && test -s conftest.$ac_objext; then
8508 ac_cv_member_struct_ifreq_ifr_netmask=yes
8509 else
8510 echo "$as_me: failed program was:" >&5
8511 sed 's/^/| /' conftest.$ac_ext >&5
8513 ac_cv_member_struct_ifreq_ifr_netmask=no
8516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8521 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8522 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8523 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8525 cat >>confdefs.h <<_ACEOF
8526 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8527 _ACEOF
8531 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8532 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8533 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8534 echo $ECHO_N "(cached) $ECHO_C" >&6
8535 else
8536 cat >conftest.$ac_ext <<_ACEOF
8537 /* confdefs.h. */
8538 _ACEOF
8539 cat confdefs.h >>conftest.$ac_ext
8540 cat >>conftest.$ac_ext <<_ACEOF
8541 /* end confdefs.h. */
8542 $ac_includes_default
8543 #if HAVE_SYS_SOCKET_H
8544 #include <sys/socket.h>
8545 #endif
8546 #if HAVE_NET_IF_H
8547 #include <net/if.h>
8548 #endif
8551 main ()
8553 static struct ifreq ac_aggr;
8554 if (ac_aggr.ifr_broadaddr)
8555 return 0;
8557 return 0;
8559 _ACEOF
8560 rm -f conftest.$ac_objext
8561 if { (ac_try="$ac_compile"
8562 case "(($ac_try" in
8563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8564 *) ac_try_echo=$ac_try;;
8565 esac
8566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8567 (eval "$ac_compile") 2>conftest.er1
8568 ac_status=$?
8569 grep -v '^ *+' conftest.er1 >conftest.err
8570 rm -f conftest.er1
8571 cat conftest.err >&5
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 (exit $ac_status); } && {
8574 test -z "$ac_c_werror_flag" ||
8575 test ! -s conftest.err
8576 } && test -s conftest.$ac_objext; then
8577 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8578 else
8579 echo "$as_me: failed program was:" >&5
8580 sed 's/^/| /' conftest.$ac_ext >&5
8582 cat >conftest.$ac_ext <<_ACEOF
8583 /* confdefs.h. */
8584 _ACEOF
8585 cat confdefs.h >>conftest.$ac_ext
8586 cat >>conftest.$ac_ext <<_ACEOF
8587 /* end confdefs.h. */
8588 $ac_includes_default
8589 #if HAVE_SYS_SOCKET_H
8590 #include <sys/socket.h>
8591 #endif
8592 #if HAVE_NET_IF_H
8593 #include <net/if.h>
8594 #endif
8597 main ()
8599 static struct ifreq ac_aggr;
8600 if (sizeof ac_aggr.ifr_broadaddr)
8601 return 0;
8603 return 0;
8605 _ACEOF
8606 rm -f conftest.$ac_objext
8607 if { (ac_try="$ac_compile"
8608 case "(($ac_try" in
8609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8610 *) ac_try_echo=$ac_try;;
8611 esac
8612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8613 (eval "$ac_compile") 2>conftest.er1
8614 ac_status=$?
8615 grep -v '^ *+' conftest.er1 >conftest.err
8616 rm -f conftest.er1
8617 cat conftest.err >&5
8618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619 (exit $ac_status); } && {
8620 test -z "$ac_c_werror_flag" ||
8621 test ! -s conftest.err
8622 } && test -s conftest.$ac_objext; then
8623 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8624 else
8625 echo "$as_me: failed program was:" >&5
8626 sed 's/^/| /' conftest.$ac_ext >&5
8628 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8636 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8637 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8638 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8640 cat >>confdefs.h <<_ACEOF
8641 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8642 _ACEOF
8646 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8647 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8648 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8649 echo $ECHO_N "(cached) $ECHO_C" >&6
8650 else
8651 cat >conftest.$ac_ext <<_ACEOF
8652 /* confdefs.h. */
8653 _ACEOF
8654 cat confdefs.h >>conftest.$ac_ext
8655 cat >>conftest.$ac_ext <<_ACEOF
8656 /* end confdefs.h. */
8657 $ac_includes_default
8658 #if HAVE_SYS_SOCKET_H
8659 #include <sys/socket.h>
8660 #endif
8661 #if HAVE_NET_IF_H
8662 #include <net/if.h>
8663 #endif
8666 main ()
8668 static struct ifreq ac_aggr;
8669 if (ac_aggr.ifr_addr)
8670 return 0;
8672 return 0;
8674 _ACEOF
8675 rm -f conftest.$ac_objext
8676 if { (ac_try="$ac_compile"
8677 case "(($ac_try" in
8678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8679 *) ac_try_echo=$ac_try;;
8680 esac
8681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8682 (eval "$ac_compile") 2>conftest.er1
8683 ac_status=$?
8684 grep -v '^ *+' conftest.er1 >conftest.err
8685 rm -f conftest.er1
8686 cat conftest.err >&5
8687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688 (exit $ac_status); } && {
8689 test -z "$ac_c_werror_flag" ||
8690 test ! -s conftest.err
8691 } && test -s conftest.$ac_objext; then
8692 ac_cv_member_struct_ifreq_ifr_addr=yes
8693 else
8694 echo "$as_me: failed program was:" >&5
8695 sed 's/^/| /' conftest.$ac_ext >&5
8697 cat >conftest.$ac_ext <<_ACEOF
8698 /* confdefs.h. */
8699 _ACEOF
8700 cat confdefs.h >>conftest.$ac_ext
8701 cat >>conftest.$ac_ext <<_ACEOF
8702 /* end confdefs.h. */
8703 $ac_includes_default
8704 #if HAVE_SYS_SOCKET_H
8705 #include <sys/socket.h>
8706 #endif
8707 #if HAVE_NET_IF_H
8708 #include <net/if.h>
8709 #endif
8712 main ()
8714 static struct ifreq ac_aggr;
8715 if (sizeof ac_aggr.ifr_addr)
8716 return 0;
8718 return 0;
8720 _ACEOF
8721 rm -f conftest.$ac_objext
8722 if { (ac_try="$ac_compile"
8723 case "(($ac_try" in
8724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8725 *) ac_try_echo=$ac_try;;
8726 esac
8727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8728 (eval "$ac_compile") 2>conftest.er1
8729 ac_status=$?
8730 grep -v '^ *+' conftest.er1 >conftest.err
8731 rm -f conftest.er1
8732 cat conftest.err >&5
8733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734 (exit $ac_status); } && {
8735 test -z "$ac_c_werror_flag" ||
8736 test ! -s conftest.err
8737 } && test -s conftest.$ac_objext; then
8738 ac_cv_member_struct_ifreq_ifr_addr=yes
8739 else
8740 echo "$as_me: failed program was:" >&5
8741 sed 's/^/| /' conftest.$ac_ext >&5
8743 ac_cv_member_struct_ifreq_ifr_addr=no
8746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8751 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8752 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8753 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8755 cat >>confdefs.h <<_ACEOF
8756 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8757 _ACEOF
8764 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8765 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8766 if test "$ac_cv_prog_cc_c89" != no; then
8767 { echo "$as_me:$LINENO: result: yes" >&5
8768 echo "${ECHO_T}yes" >&6; }
8770 cat >>confdefs.h <<\_ACEOF
8771 #define PROTOTYPES 1
8772 _ACEOF
8775 cat >>confdefs.h <<\_ACEOF
8776 #define __PROTOTYPES 1
8777 _ACEOF
8779 else
8780 { echo "$as_me:$LINENO: result: no" >&5
8781 echo "${ECHO_T}no" >&6; }
8784 { echo "$as_me:$LINENO: checking for working volatile" >&5
8785 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8786 if test "${ac_cv_c_volatile+set}" = set; then
8787 echo $ECHO_N "(cached) $ECHO_C" >&6
8788 else
8789 cat >conftest.$ac_ext <<_ACEOF
8790 /* confdefs.h. */
8791 _ACEOF
8792 cat confdefs.h >>conftest.$ac_ext
8793 cat >>conftest.$ac_ext <<_ACEOF
8794 /* end confdefs.h. */
8797 main ()
8800 volatile int x;
8801 int * volatile y = (int *) 0;
8802 return !x && !y;
8804 return 0;
8806 _ACEOF
8807 rm -f conftest.$ac_objext
8808 if { (ac_try="$ac_compile"
8809 case "(($ac_try" in
8810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8811 *) ac_try_echo=$ac_try;;
8812 esac
8813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8814 (eval "$ac_compile") 2>conftest.er1
8815 ac_status=$?
8816 grep -v '^ *+' conftest.er1 >conftest.err
8817 rm -f conftest.er1
8818 cat conftest.err >&5
8819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820 (exit $ac_status); } && {
8821 test -z "$ac_c_werror_flag" ||
8822 test ! -s conftest.err
8823 } && test -s conftest.$ac_objext; then
8824 ac_cv_c_volatile=yes
8825 else
8826 echo "$as_me: failed program was:" >&5
8827 sed 's/^/| /' conftest.$ac_ext >&5
8829 ac_cv_c_volatile=no
8832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8834 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8835 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8836 if test $ac_cv_c_volatile = no; then
8838 cat >>confdefs.h <<\_ACEOF
8839 #define volatile
8840 _ACEOF
8844 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8845 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8846 if test "${ac_cv_c_const+set}" = set; then
8847 echo $ECHO_N "(cached) $ECHO_C" >&6
8848 else
8849 cat >conftest.$ac_ext <<_ACEOF
8850 /* confdefs.h. */
8851 _ACEOF
8852 cat confdefs.h >>conftest.$ac_ext
8853 cat >>conftest.$ac_ext <<_ACEOF
8854 /* end confdefs.h. */
8857 main ()
8859 /* FIXME: Include the comments suggested by Paul. */
8860 #ifndef __cplusplus
8861 /* Ultrix mips cc rejects this. */
8862 typedef int charset[2];
8863 const charset cs;
8864 /* SunOS 4.1.1 cc rejects this. */
8865 char const *const *pcpcc;
8866 char **ppc;
8867 /* NEC SVR4.0.2 mips cc rejects this. */
8868 struct point {int x, y;};
8869 static struct point const zero = {0,0};
8870 /* AIX XL C 1.02.0.0 rejects this.
8871 It does not let you subtract one const X* pointer from another in
8872 an arm of an if-expression whose if-part is not a constant
8873 expression */
8874 const char *g = "string";
8875 pcpcc = &g + (g ? g-g : 0);
8876 /* HPUX 7.0 cc rejects these. */
8877 ++pcpcc;
8878 ppc = (char**) pcpcc;
8879 pcpcc = (char const *const *) ppc;
8880 { /* SCO 3.2v4 cc rejects this. */
8881 char *t;
8882 char const *s = 0 ? (char *) 0 : (char const *) 0;
8884 *t++ = 0;
8885 if (s) return 0;
8887 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8888 int x[] = {25, 17};
8889 const int *foo = &x[0];
8890 ++foo;
8892 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8893 typedef const int *iptr;
8894 iptr p = 0;
8895 ++p;
8897 { /* AIX XL C 1.02.0.0 rejects this saying
8898 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8899 struct s { int j; const int *ap[3]; };
8900 struct s *b; b->j = 5;
8902 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8903 const int foo = 10;
8904 if (!foo) return 0;
8906 return !cs[0] && !zero.x;
8907 #endif
8910 return 0;
8912 _ACEOF
8913 rm -f conftest.$ac_objext
8914 if { (ac_try="$ac_compile"
8915 case "(($ac_try" in
8916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8917 *) ac_try_echo=$ac_try;;
8918 esac
8919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8920 (eval "$ac_compile") 2>conftest.er1
8921 ac_status=$?
8922 grep -v '^ *+' conftest.er1 >conftest.err
8923 rm -f conftest.er1
8924 cat conftest.err >&5
8925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926 (exit $ac_status); } && {
8927 test -z "$ac_c_werror_flag" ||
8928 test ! -s conftest.err
8929 } && test -s conftest.$ac_objext; then
8930 ac_cv_c_const=yes
8931 else
8932 echo "$as_me: failed program was:" >&5
8933 sed 's/^/| /' conftest.$ac_ext >&5
8935 ac_cv_c_const=no
8938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8940 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8941 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8942 if test $ac_cv_c_const = no; then
8944 cat >>confdefs.h <<\_ACEOF
8945 #define const
8946 _ACEOF
8950 { echo "$as_me:$LINENO: checking for void * support" >&5
8951 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8952 if test "${emacs_cv_void_star+set}" = set; then
8953 echo $ECHO_N "(cached) $ECHO_C" >&6
8954 else
8955 cat >conftest.$ac_ext <<_ACEOF
8956 /* confdefs.h. */
8957 _ACEOF
8958 cat confdefs.h >>conftest.$ac_ext
8959 cat >>conftest.$ac_ext <<_ACEOF
8960 /* end confdefs.h. */
8963 main ()
8965 void * foo;
8967 return 0;
8969 _ACEOF
8970 rm -f conftest.$ac_objext
8971 if { (ac_try="$ac_compile"
8972 case "(($ac_try" in
8973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8974 *) ac_try_echo=$ac_try;;
8975 esac
8976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8977 (eval "$ac_compile") 2>conftest.er1
8978 ac_status=$?
8979 grep -v '^ *+' conftest.er1 >conftest.err
8980 rm -f conftest.er1
8981 cat conftest.err >&5
8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983 (exit $ac_status); } && {
8984 test -z "$ac_c_werror_flag" ||
8985 test ! -s conftest.err
8986 } && test -s conftest.$ac_objext; then
8987 emacs_cv_void_star=yes
8988 else
8989 echo "$as_me: failed program was:" >&5
8990 sed 's/^/| /' conftest.$ac_ext >&5
8992 emacs_cv_void_star=no
8995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8997 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8998 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8999 if test $emacs_cv_void_star = yes; then
9000 cat >>confdefs.h <<\_ACEOF
9001 #define POINTER_TYPE void
9002 _ACEOF
9004 else
9005 cat >>confdefs.h <<\_ACEOF
9006 #define POINTER_TYPE char
9007 _ACEOF
9015 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9016 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
9017 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9018 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9019 echo $ECHO_N "(cached) $ECHO_C" >&6
9020 else
9021 cat >conftest.make <<\_ACEOF
9022 SHELL = /bin/sh
9023 all:
9024 @echo '@@@%%%=$(MAKE)=@@@%%%'
9025 _ACEOF
9026 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9027 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9028 *@@@%%%=?*=@@@%%%*)
9029 eval ac_cv_prog_make_${ac_make}_set=yes;;
9031 eval ac_cv_prog_make_${ac_make}_set=no;;
9032 esac
9033 rm -f conftest.make
9035 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9036 { echo "$as_me:$LINENO: result: yes" >&5
9037 echo "${ECHO_T}yes" >&6; }
9038 SET_MAKE=
9039 else
9040 { echo "$as_me:$LINENO: result: no" >&5
9041 echo "${ECHO_T}no" >&6; }
9042 SET_MAKE="MAKE=${MAKE-make}"
9046 { echo "$as_me:$LINENO: checking for long file names" >&5
9047 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9048 if test "${ac_cv_sys_long_file_names+set}" = set; then
9049 echo $ECHO_N "(cached) $ECHO_C" >&6
9050 else
9051 ac_cv_sys_long_file_names=yes
9052 # Test for long file names in all the places we know might matter:
9053 # . the current directory, where building will happen
9054 # $prefix/lib where we will be installing things
9055 # $exec_prefix/lib likewise
9056 # $TMPDIR if set, where it might want to write temporary files
9057 # /tmp where it might want to write temporary files
9058 # /var/tmp likewise
9059 # /usr/tmp likewise
9060 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9061 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9062 # in the usual case where exec_prefix is '${prefix}'.
9063 case $ac_dir in #(
9064 . | /* | ?:[\\/]*) ;; #(
9065 *) continue;;
9066 esac
9067 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9068 ac_xdir=$ac_dir/cf$$
9069 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9070 ac_tf1=$ac_xdir/conftest9012345
9071 ac_tf2=$ac_xdir/conftest9012346
9072 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9073 ac_cv_sys_long_file_names=no
9074 rm -f -r "$ac_xdir" 2>/dev/null
9075 test $ac_cv_sys_long_file_names = no && break
9076 done
9078 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9079 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9080 if test $ac_cv_sys_long_file_names = yes; then
9082 cat >>confdefs.h <<\_ACEOF
9083 #define HAVE_LONG_FILE_NAMES 1
9084 _ACEOF
9089 #### Choose a window system.
9091 { echo "$as_me:$LINENO: checking for X" >&5
9092 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9095 # Check whether --with-x was given.
9096 if test "${with_x+set}" = set; then
9097 withval=$with_x;
9100 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9101 if test "x$with_x" = xno; then
9102 # The user explicitly disabled X.
9103 have_x=disabled
9104 else
9105 case $x_includes,$x_libraries in #(
9106 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9107 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9108 { (exit 1); exit 1; }; };; #(
9109 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9110 echo $ECHO_N "(cached) $ECHO_C" >&6
9111 else
9112 # One or both of the vars are not set, and there is no cached value.
9113 ac_x_includes=no ac_x_libraries=no
9114 rm -f -r conftest.dir
9115 if mkdir conftest.dir; then
9116 cd conftest.dir
9117 cat >Imakefile <<'_ACEOF'
9118 incroot:
9119 @echo incroot='${INCROOT}'
9120 usrlibdir:
9121 @echo usrlibdir='${USRLIBDIR}'
9122 libdir:
9123 @echo libdir='${LIBDIR}'
9124 _ACEOF
9125 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9126 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9127 for ac_var in incroot usrlibdir libdir; do
9128 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9129 done
9130 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9131 for ac_extension in a so sl; do
9132 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9133 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9134 ac_im_usrlibdir=$ac_im_libdir; break
9136 done
9137 # Screen out bogus values from the imake configuration. They are
9138 # bogus both because they are the default anyway, and because
9139 # using them would break gcc on systems where it needs fixed includes.
9140 case $ac_im_incroot in
9141 /usr/include) ac_x_includes= ;;
9142 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9143 esac
9144 case $ac_im_usrlibdir in
9145 /usr/lib | /lib) ;;
9146 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9147 esac
9149 cd ..
9150 rm -f -r conftest.dir
9153 # Standard set of common directories for X headers.
9154 # Check X11 before X11Rn because it is often a symlink to the current release.
9155 ac_x_header_dirs='
9156 /usr/X11/include
9157 /usr/X11R6/include
9158 /usr/X11R5/include
9159 /usr/X11R4/include
9161 /usr/include/X11
9162 /usr/include/X11R6
9163 /usr/include/X11R5
9164 /usr/include/X11R4
9166 /usr/local/X11/include
9167 /usr/local/X11R6/include
9168 /usr/local/X11R5/include
9169 /usr/local/X11R4/include
9171 /usr/local/include/X11
9172 /usr/local/include/X11R6
9173 /usr/local/include/X11R5
9174 /usr/local/include/X11R4
9176 /usr/X386/include
9177 /usr/x386/include
9178 /usr/XFree86/include/X11
9180 /usr/include
9181 /usr/local/include
9182 /usr/unsupported/include
9183 /usr/athena/include
9184 /usr/local/x11r5/include
9185 /usr/lpp/Xamples/include
9187 /usr/openwin/include
9188 /usr/openwin/share/include'
9190 if test "$ac_x_includes" = no; then
9191 # Guess where to find include files, by looking for Xlib.h.
9192 # First, try using that file with no special directory specified.
9193 cat >conftest.$ac_ext <<_ACEOF
9194 /* confdefs.h. */
9195 _ACEOF
9196 cat confdefs.h >>conftest.$ac_ext
9197 cat >>conftest.$ac_ext <<_ACEOF
9198 /* end confdefs.h. */
9199 #include <X11/Xlib.h>
9200 _ACEOF
9201 if { (ac_try="$ac_cpp conftest.$ac_ext"
9202 case "(($ac_try" in
9203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9204 *) ac_try_echo=$ac_try;;
9205 esac
9206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9207 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9208 ac_status=$?
9209 grep -v '^ *+' conftest.er1 >conftest.err
9210 rm -f conftest.er1
9211 cat conftest.err >&5
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); } >/dev/null && {
9214 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9215 test ! -s conftest.err
9216 }; then
9217 # We can compile using X headers with no special include directory.
9218 ac_x_includes=
9219 else
9220 echo "$as_me: failed program was:" >&5
9221 sed 's/^/| /' conftest.$ac_ext >&5
9223 for ac_dir in $ac_x_header_dirs; do
9224 if test -r "$ac_dir/X11/Xlib.h"; then
9225 ac_x_includes=$ac_dir
9226 break
9228 done
9231 rm -f conftest.err conftest.$ac_ext
9232 fi # $ac_x_includes = no
9234 if test "$ac_x_libraries" = no; then
9235 # Check for the libraries.
9236 # See if we find them without any special options.
9237 # Don't add to $LIBS permanently.
9238 ac_save_LIBS=$LIBS
9239 LIBS="-lX11 $LIBS"
9240 cat >conftest.$ac_ext <<_ACEOF
9241 /* confdefs.h. */
9242 _ACEOF
9243 cat confdefs.h >>conftest.$ac_ext
9244 cat >>conftest.$ac_ext <<_ACEOF
9245 /* end confdefs.h. */
9246 #include <X11/Xlib.h>
9248 main ()
9250 XrmInitialize ()
9252 return 0;
9254 _ACEOF
9255 rm -f conftest.$ac_objext conftest$ac_exeext
9256 if { (ac_try="$ac_link"
9257 case "(($ac_try" in
9258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9259 *) ac_try_echo=$ac_try;;
9260 esac
9261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9262 (eval "$ac_link") 2>conftest.er1
9263 ac_status=$?
9264 grep -v '^ *+' conftest.er1 >conftest.err
9265 rm -f conftest.er1
9266 cat conftest.err >&5
9267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268 (exit $ac_status); } && {
9269 test -z "$ac_c_werror_flag" ||
9270 test ! -s conftest.err
9271 } && test -s conftest$ac_exeext &&
9272 $as_test_x conftest$ac_exeext; then
9273 LIBS=$ac_save_LIBS
9274 # We can link X programs with no special library path.
9275 ac_x_libraries=
9276 else
9277 echo "$as_me: failed program was:" >&5
9278 sed 's/^/| /' conftest.$ac_ext >&5
9280 LIBS=$ac_save_LIBS
9281 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9283 # Don't even attempt the hair of trying to link an X program!
9284 for ac_extension in a so sl; do
9285 if test -r "$ac_dir/libX11.$ac_extension"; then
9286 ac_x_libraries=$ac_dir
9287 break 2
9289 done
9290 done
9293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9294 conftest$ac_exeext conftest.$ac_ext
9295 fi # $ac_x_libraries = no
9297 case $ac_x_includes,$ac_x_libraries in #(
9298 no,* | *,no | *\'*)
9299 # Didn't find X, or a directory has "'" in its name.
9300 ac_cv_have_x="have_x=no";; #(
9302 # Record where we found X for the cache.
9303 ac_cv_have_x="have_x=yes\
9304 ac_x_includes='$ac_x_includes'\
9305 ac_x_libraries='$ac_x_libraries'"
9306 esac
9308 ;; #(
9309 *) have_x=yes;;
9310 esac
9311 eval "$ac_cv_have_x"
9312 fi # $with_x != no
9314 if test "$have_x" != yes; then
9315 { echo "$as_me:$LINENO: result: $have_x" >&5
9316 echo "${ECHO_T}$have_x" >&6; }
9317 no_x=yes
9318 else
9319 # If each of the values was on the command line, it overrides each guess.
9320 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9321 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9322 # Update the cache value to reflect the command line values.
9323 ac_cv_have_x="have_x=yes\
9324 ac_x_includes='$x_includes'\
9325 ac_x_libraries='$x_libraries'"
9326 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9327 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9330 if test "$no_x" = yes; then
9331 window_system=none
9332 else
9333 window_system=x11
9336 if test "${x_libraries}" != NONE; then
9337 if test -n "${x_libraries}"; then
9338 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9339 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9341 x_default_search_path=""
9342 x_search_path=${x_libraries}
9343 if test -z "${x_search_path}"; then
9344 x_search_path=/usr/lib
9346 for x_library in `echo ${x_search_path}: | \
9347 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9348 x_search_path="\
9349 ${x_library}/X11/%L/%T/%N%C%S:\
9350 ${x_library}/X11/%l/%T/%N%C%S:\
9351 ${x_library}/X11/%T/%N%C%S:\
9352 ${x_library}/X11/%L/%T/%N%S:\
9353 ${x_library}/X11/%l/%T/%N%S:\
9354 ${x_library}/X11/%T/%N%S"
9355 if test x"${x_default_search_path}" = x; then
9356 x_default_search_path=${x_search_path}
9357 else
9358 x_default_search_path="${x_search_path}:${x_default_search_path}"
9360 done
9362 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9363 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9366 if test x"${x_includes}" = x; then
9367 bitmapdir=/usr/include/X11/bitmaps
9368 else
9369 # accumulate include directories that have X11 bitmap subdirectories
9370 bmd_acc="dummyval"
9371 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9372 if test -d "${bmd}/X11/bitmaps"; then
9373 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9375 if test -d "${bmd}/bitmaps"; then
9376 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9378 done
9379 if test ${bmd_acc} != "dummyval"; then
9380 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9384 HAVE_CARBON=no
9385 if test "${with_carbon}" != no; then
9386 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9387 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9388 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9389 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9390 echo $ECHO_N "(cached) $ECHO_C" >&6
9392 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9393 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9394 else
9395 # Is the header compilable?
9396 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9397 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9398 cat >conftest.$ac_ext <<_ACEOF
9399 /* confdefs.h. */
9400 _ACEOF
9401 cat confdefs.h >>conftest.$ac_ext
9402 cat >>conftest.$ac_ext <<_ACEOF
9403 /* end confdefs.h. */
9404 $ac_includes_default
9405 #include <Carbon/Carbon.h>
9406 _ACEOF
9407 rm -f conftest.$ac_objext
9408 if { (ac_try="$ac_compile"
9409 case "(($ac_try" in
9410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9411 *) ac_try_echo=$ac_try;;
9412 esac
9413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9414 (eval "$ac_compile") 2>conftest.er1
9415 ac_status=$?
9416 grep -v '^ *+' conftest.er1 >conftest.err
9417 rm -f conftest.er1
9418 cat conftest.err >&5
9419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420 (exit $ac_status); } && {
9421 test -z "$ac_c_werror_flag" ||
9422 test ! -s conftest.err
9423 } && test -s conftest.$ac_objext; then
9424 ac_header_compiler=yes
9425 else
9426 echo "$as_me: failed program was:" >&5
9427 sed 's/^/| /' conftest.$ac_ext >&5
9429 ac_header_compiler=no
9432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9433 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9434 echo "${ECHO_T}$ac_header_compiler" >&6; }
9436 # Is the header present?
9437 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9438 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9439 cat >conftest.$ac_ext <<_ACEOF
9440 /* confdefs.h. */
9441 _ACEOF
9442 cat confdefs.h >>conftest.$ac_ext
9443 cat >>conftest.$ac_ext <<_ACEOF
9444 /* end confdefs.h. */
9445 #include <Carbon/Carbon.h>
9446 _ACEOF
9447 if { (ac_try="$ac_cpp conftest.$ac_ext"
9448 case "(($ac_try" in
9449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9450 *) ac_try_echo=$ac_try;;
9451 esac
9452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9453 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9454 ac_status=$?
9455 grep -v '^ *+' conftest.er1 >conftest.err
9456 rm -f conftest.er1
9457 cat conftest.err >&5
9458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459 (exit $ac_status); } >/dev/null && {
9460 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9461 test ! -s conftest.err
9462 }; then
9463 ac_header_preproc=yes
9464 else
9465 echo "$as_me: failed program was:" >&5
9466 sed 's/^/| /' conftest.$ac_ext >&5
9468 ac_header_preproc=no
9471 rm -f conftest.err conftest.$ac_ext
9472 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9473 echo "${ECHO_T}$ac_header_preproc" >&6; }
9475 # So? What about this header?
9476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9477 yes:no: )
9478 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9479 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9480 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9481 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9482 ac_header_preproc=yes
9484 no:yes:* )
9485 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9486 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9487 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9488 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9489 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9490 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9491 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9492 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9493 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9494 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9495 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9496 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9499 esac
9500 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9501 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9502 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9503 echo $ECHO_N "(cached) $ECHO_C" >&6
9504 else
9505 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9507 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9508 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9511 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9512 HAVE_CARBON=yes
9517 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9518 if test "${with_carbon+set}" != set \
9519 && test "${carbon_appdir_x+set}" != set; then
9520 for var in with_x with_x_toolkit with_gtk with_xim \
9521 with_xpm with_jpeg with_tiff with_gif with_png; do
9522 if eval test \"\${$var+set}\" = set; then
9523 HAVE_CARBON=no
9524 break
9526 done
9529 if test "${HAVE_CARBON}" = yes; then
9530 window_system=mac
9533 case "${window_system}" in
9534 x11 )
9535 HAVE_X_WINDOWS=yes
9536 HAVE_X11=yes
9537 case "${with_x_toolkit}" in
9538 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9539 motif ) USE_X_TOOLKIT=MOTIF ;;
9540 gtk ) with_gtk=yes
9541 USE_X_TOOLKIT=none ;;
9542 no ) USE_X_TOOLKIT=none ;;
9543 * ) USE_X_TOOLKIT=maybe ;;
9544 esac
9546 mac | none )
9547 HAVE_X_WINDOWS=no
9548 HAVE_X11=no
9549 USE_X_TOOLKIT=none
9551 esac
9553 ### If we're using X11, we should use the X menu package.
9554 HAVE_MENUS=no
9555 case ${HAVE_X11} in
9556 yes ) HAVE_MENUS=yes ;;
9557 esac
9559 if test "${opsys}" = "hpux9"; then
9560 case "${x_libraries}" in
9561 *X11R4* )
9562 opsysfile="s/hpux9-x11r4.h"
9564 esac
9567 if test "${opsys}" = "hpux9shr"; then
9568 case "${x_libraries}" in
9569 *X11R4* )
9570 opsysfile="s/hpux9shxr4.h"
9572 esac
9575 ### Compute the unexec source name from the object name.
9576 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9578 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9579 # Assume not, until told otherwise.
9580 GNU_MALLOC=yes
9581 doug_lea_malloc=yes
9582 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9583 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9584 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9585 echo $ECHO_N "(cached) $ECHO_C" >&6
9586 else
9587 cat >conftest.$ac_ext <<_ACEOF
9588 /* confdefs.h. */
9589 _ACEOF
9590 cat confdefs.h >>conftest.$ac_ext
9591 cat >>conftest.$ac_ext <<_ACEOF
9592 /* end confdefs.h. */
9593 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9595 #define malloc_get_state innocuous_malloc_get_state
9597 /* System header to define __stub macros and hopefully few prototypes,
9598 which can conflict with char malloc_get_state (); below.
9599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9600 <limits.h> exists even on freestanding compilers. */
9602 #ifdef __STDC__
9603 # include <limits.h>
9604 #else
9605 # include <assert.h>
9606 #endif
9608 #undef malloc_get_state
9610 /* Override any GCC internal prototype to avoid an error.
9611 Use char because int might match the return type of a GCC
9612 builtin and then its argument prototype would still apply. */
9613 #ifdef __cplusplus
9614 extern "C"
9615 #endif
9616 char malloc_get_state ();
9617 /* The GNU C library defines this for functions which it implements
9618 to always fail with ENOSYS. Some functions are actually named
9619 something starting with __ and the normal name is an alias. */
9620 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9621 choke me
9622 #endif
9625 main ()
9627 return malloc_get_state ();
9629 return 0;
9631 _ACEOF
9632 rm -f conftest.$ac_objext conftest$ac_exeext
9633 if { (ac_try="$ac_link"
9634 case "(($ac_try" in
9635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9636 *) ac_try_echo=$ac_try;;
9637 esac
9638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9639 (eval "$ac_link") 2>conftest.er1
9640 ac_status=$?
9641 grep -v '^ *+' conftest.er1 >conftest.err
9642 rm -f conftest.er1
9643 cat conftest.err >&5
9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645 (exit $ac_status); } && {
9646 test -z "$ac_c_werror_flag" ||
9647 test ! -s conftest.err
9648 } && test -s conftest$ac_exeext &&
9649 $as_test_x conftest$ac_exeext; then
9650 ac_cv_func_malloc_get_state=yes
9651 else
9652 echo "$as_me: failed program was:" >&5
9653 sed 's/^/| /' conftest.$ac_ext >&5
9655 ac_cv_func_malloc_get_state=no
9658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9659 conftest$ac_exeext conftest.$ac_ext
9661 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9662 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9663 if test $ac_cv_func_malloc_get_state = yes; then
9665 else
9666 doug_lea_malloc=no
9669 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9670 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9671 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9672 echo $ECHO_N "(cached) $ECHO_C" >&6
9673 else
9674 cat >conftest.$ac_ext <<_ACEOF
9675 /* confdefs.h. */
9676 _ACEOF
9677 cat confdefs.h >>conftest.$ac_ext
9678 cat >>conftest.$ac_ext <<_ACEOF
9679 /* end confdefs.h. */
9680 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9681 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9682 #define malloc_set_state innocuous_malloc_set_state
9684 /* System header to define __stub macros and hopefully few prototypes,
9685 which can conflict with char malloc_set_state (); below.
9686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9687 <limits.h> exists even on freestanding compilers. */
9689 #ifdef __STDC__
9690 # include <limits.h>
9691 #else
9692 # include <assert.h>
9693 #endif
9695 #undef malloc_set_state
9697 /* Override any GCC internal prototype to avoid an error.
9698 Use char because int might match the return type of a GCC
9699 builtin and then its argument prototype would still apply. */
9700 #ifdef __cplusplus
9701 extern "C"
9702 #endif
9703 char malloc_set_state ();
9704 /* The GNU C library defines this for functions which it implements
9705 to always fail with ENOSYS. Some functions are actually named
9706 something starting with __ and the normal name is an alias. */
9707 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9708 choke me
9709 #endif
9712 main ()
9714 return malloc_set_state ();
9716 return 0;
9718 _ACEOF
9719 rm -f conftest.$ac_objext conftest$ac_exeext
9720 if { (ac_try="$ac_link"
9721 case "(($ac_try" in
9722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9723 *) ac_try_echo=$ac_try;;
9724 esac
9725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9726 (eval "$ac_link") 2>conftest.er1
9727 ac_status=$?
9728 grep -v '^ *+' conftest.er1 >conftest.err
9729 rm -f conftest.er1
9730 cat conftest.err >&5
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); } && {
9733 test -z "$ac_c_werror_flag" ||
9734 test ! -s conftest.err
9735 } && test -s conftest$ac_exeext &&
9736 $as_test_x conftest$ac_exeext; then
9737 ac_cv_func_malloc_set_state=yes
9738 else
9739 echo "$as_me: failed program was:" >&5
9740 sed 's/^/| /' conftest.$ac_ext >&5
9742 ac_cv_func_malloc_set_state=no
9745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9746 conftest$ac_exeext conftest.$ac_ext
9748 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9749 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9750 if test $ac_cv_func_malloc_set_state = yes; then
9752 else
9753 doug_lea_malloc=no
9756 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9757 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9758 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9759 echo $ECHO_N "(cached) $ECHO_C" >&6
9760 else
9761 cat >conftest.$ac_ext <<_ACEOF
9762 /* confdefs.h. */
9763 _ACEOF
9764 cat confdefs.h >>conftest.$ac_ext
9765 cat >>conftest.$ac_ext <<_ACEOF
9766 /* end confdefs.h. */
9767 extern void (* __after_morecore_hook)();
9769 main ()
9771 __after_morecore_hook = 0
9773 return 0;
9775 _ACEOF
9776 rm -f conftest.$ac_objext conftest$ac_exeext
9777 if { (ac_try="$ac_link"
9778 case "(($ac_try" in
9779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9780 *) ac_try_echo=$ac_try;;
9781 esac
9782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9783 (eval "$ac_link") 2>conftest.er1
9784 ac_status=$?
9785 grep -v '^ *+' conftest.er1 >conftest.err
9786 rm -f conftest.er1
9787 cat conftest.err >&5
9788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789 (exit $ac_status); } && {
9790 test -z "$ac_c_werror_flag" ||
9791 test ! -s conftest.err
9792 } && test -s conftest$ac_exeext &&
9793 $as_test_x conftest$ac_exeext; then
9794 emacs_cv_var___after_morecore_hook=yes
9795 else
9796 echo "$as_me: failed program was:" >&5
9797 sed 's/^/| /' conftest.$ac_ext >&5
9799 emacs_cv_var___after_morecore_hook=no
9802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9803 conftest$ac_exeext conftest.$ac_ext
9805 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9806 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9807 if test $emacs_cv_var___after_morecore_hook = no; then
9808 doug_lea_malloc=no
9810 if test "${system_malloc}" = "yes"; then
9811 GNU_MALLOC=no
9812 GNU_MALLOC_reason="
9813 (The GNU allocators don't work with this system configuration.)"
9815 if test "$doug_lea_malloc" = "yes" ; then
9816 if test "$GNU_MALLOC" = yes ; then
9817 GNU_MALLOC_reason="
9818 (Using Doug Lea's new malloc from the GNU C Library.)"
9821 cat >>confdefs.h <<\_ACEOF
9822 #define DOUG_LEA_MALLOC 1
9823 _ACEOF
9827 if test x"${REL_ALLOC}" = x; then
9828 REL_ALLOC=${GNU_MALLOC}
9834 for ac_header in stdlib.h unistd.h
9836 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9838 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9840 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9841 echo $ECHO_N "(cached) $ECHO_C" >&6
9843 ac_res=`eval echo '${'$as_ac_Header'}'`
9844 { echo "$as_me:$LINENO: result: $ac_res" >&5
9845 echo "${ECHO_T}$ac_res" >&6; }
9846 else
9847 # Is the header compilable?
9848 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9849 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9850 cat >conftest.$ac_ext <<_ACEOF
9851 /* confdefs.h. */
9852 _ACEOF
9853 cat confdefs.h >>conftest.$ac_ext
9854 cat >>conftest.$ac_ext <<_ACEOF
9855 /* end confdefs.h. */
9856 $ac_includes_default
9857 #include <$ac_header>
9858 _ACEOF
9859 rm -f conftest.$ac_objext
9860 if { (ac_try="$ac_compile"
9861 case "(($ac_try" in
9862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9863 *) ac_try_echo=$ac_try;;
9864 esac
9865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9866 (eval "$ac_compile") 2>conftest.er1
9867 ac_status=$?
9868 grep -v '^ *+' conftest.er1 >conftest.err
9869 rm -f conftest.er1
9870 cat conftest.err >&5
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); } && {
9873 test -z "$ac_c_werror_flag" ||
9874 test ! -s conftest.err
9875 } && test -s conftest.$ac_objext; then
9876 ac_header_compiler=yes
9877 else
9878 echo "$as_me: failed program was:" >&5
9879 sed 's/^/| /' conftest.$ac_ext >&5
9881 ac_header_compiler=no
9884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9885 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9886 echo "${ECHO_T}$ac_header_compiler" >&6; }
9888 # Is the header present?
9889 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9890 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9891 cat >conftest.$ac_ext <<_ACEOF
9892 /* confdefs.h. */
9893 _ACEOF
9894 cat confdefs.h >>conftest.$ac_ext
9895 cat >>conftest.$ac_ext <<_ACEOF
9896 /* end confdefs.h. */
9897 #include <$ac_header>
9898 _ACEOF
9899 if { (ac_try="$ac_cpp conftest.$ac_ext"
9900 case "(($ac_try" in
9901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9902 *) ac_try_echo=$ac_try;;
9903 esac
9904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9906 ac_status=$?
9907 grep -v '^ *+' conftest.er1 >conftest.err
9908 rm -f conftest.er1
9909 cat conftest.err >&5
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); } >/dev/null && {
9912 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9913 test ! -s conftest.err
9914 }; then
9915 ac_header_preproc=yes
9916 else
9917 echo "$as_me: failed program was:" >&5
9918 sed 's/^/| /' conftest.$ac_ext >&5
9920 ac_header_preproc=no
9923 rm -f conftest.err conftest.$ac_ext
9924 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9925 echo "${ECHO_T}$ac_header_preproc" >&6; }
9927 # So? What about this header?
9928 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9929 yes:no: )
9930 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9931 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9933 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9934 ac_header_preproc=yes
9936 no:yes:* )
9937 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9938 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9939 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9940 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9941 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9942 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9943 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9944 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9945 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9946 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9947 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9948 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9951 esac
9952 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9953 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9955 echo $ECHO_N "(cached) $ECHO_C" >&6
9956 else
9957 eval "$as_ac_Header=\$ac_header_preproc"
9959 ac_res=`eval echo '${'$as_ac_Header'}'`
9960 { echo "$as_me:$LINENO: result: $ac_res" >&5
9961 echo "${ECHO_T}$ac_res" >&6; }
9964 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9965 cat >>confdefs.h <<_ACEOF
9966 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9967 _ACEOF
9971 done
9974 for ac_func in getpagesize
9976 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9977 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9979 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9980 echo $ECHO_N "(cached) $ECHO_C" >&6
9981 else
9982 cat >conftest.$ac_ext <<_ACEOF
9983 /* confdefs.h. */
9984 _ACEOF
9985 cat confdefs.h >>conftest.$ac_ext
9986 cat >>conftest.$ac_ext <<_ACEOF
9987 /* end confdefs.h. */
9988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9990 #define $ac_func innocuous_$ac_func
9992 /* System header to define __stub macros and hopefully few prototypes,
9993 which can conflict with char $ac_func (); below.
9994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9995 <limits.h> exists even on freestanding compilers. */
9997 #ifdef __STDC__
9998 # include <limits.h>
9999 #else
10000 # include <assert.h>
10001 #endif
10003 #undef $ac_func
10005 /* Override any GCC internal prototype to avoid an error.
10006 Use char because int might match the return type of a GCC
10007 builtin and then its argument prototype would still apply. */
10008 #ifdef __cplusplus
10009 extern "C"
10010 #endif
10011 char $ac_func ();
10012 /* The GNU C library defines this for functions which it implements
10013 to always fail with ENOSYS. Some functions are actually named
10014 something starting with __ and the normal name is an alias. */
10015 #if defined __stub_$ac_func || defined __stub___$ac_func
10016 choke me
10017 #endif
10020 main ()
10022 return $ac_func ();
10024 return 0;
10026 _ACEOF
10027 rm -f conftest.$ac_objext conftest$ac_exeext
10028 if { (ac_try="$ac_link"
10029 case "(($ac_try" in
10030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10031 *) ac_try_echo=$ac_try;;
10032 esac
10033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10034 (eval "$ac_link") 2>conftest.er1
10035 ac_status=$?
10036 grep -v '^ *+' conftest.er1 >conftest.err
10037 rm -f conftest.er1
10038 cat conftest.err >&5
10039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040 (exit $ac_status); } && {
10041 test -z "$ac_c_werror_flag" ||
10042 test ! -s conftest.err
10043 } && test -s conftest$ac_exeext &&
10044 $as_test_x conftest$ac_exeext; then
10045 eval "$as_ac_var=yes"
10046 else
10047 echo "$as_me: failed program was:" >&5
10048 sed 's/^/| /' conftest.$ac_ext >&5
10050 eval "$as_ac_var=no"
10053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10054 conftest$ac_exeext conftest.$ac_ext
10056 ac_res=`eval echo '${'$as_ac_var'}'`
10057 { echo "$as_me:$LINENO: result: $ac_res" >&5
10058 echo "${ECHO_T}$ac_res" >&6; }
10059 if test `eval echo '${'$as_ac_var'}'` = yes; then
10060 cat >>confdefs.h <<_ACEOF
10061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10062 _ACEOF
10065 done
10067 { echo "$as_me:$LINENO: checking for working mmap" >&5
10068 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10069 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10070 echo $ECHO_N "(cached) $ECHO_C" >&6
10071 else
10072 if test "$cross_compiling" = yes; then
10073 ac_cv_func_mmap_fixed_mapped=no
10074 else
10075 cat >conftest.$ac_ext <<_ACEOF
10076 /* confdefs.h. */
10077 _ACEOF
10078 cat confdefs.h >>conftest.$ac_ext
10079 cat >>conftest.$ac_ext <<_ACEOF
10080 /* end confdefs.h. */
10081 $ac_includes_default
10082 /* malloc might have been renamed as rpl_malloc. */
10083 #undef malloc
10085 /* Thanks to Mike Haertel and Jim Avera for this test.
10086 Here is a matrix of mmap possibilities:
10087 mmap private not fixed
10088 mmap private fixed at somewhere currently unmapped
10089 mmap private fixed at somewhere already mapped
10090 mmap shared not fixed
10091 mmap shared fixed at somewhere currently unmapped
10092 mmap shared fixed at somewhere already mapped
10093 For private mappings, we should verify that changes cannot be read()
10094 back from the file, nor mmap's back from the file at a different
10095 address. (There have been systems where private was not correctly
10096 implemented like the infamous i386 svr4.0, and systems where the
10097 VM page cache was not coherent with the file system buffer cache
10098 like early versions of FreeBSD and possibly contemporary NetBSD.)
10099 For shared mappings, we should conversely verify that changes get
10100 propagated back to all the places they're supposed to be.
10102 Grep wants private fixed already mapped.
10103 The main things grep needs to know about mmap are:
10104 * does it exist and is it safe to write into the mmap'd area
10105 * how to use it (BSD variants) */
10107 #include <fcntl.h>
10108 #include <sys/mman.h>
10110 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10111 char *malloc ();
10112 #endif
10114 /* This mess was copied from the GNU getpagesize.h. */
10115 #ifndef HAVE_GETPAGESIZE
10116 /* Assume that all systems that can run configure have sys/param.h. */
10117 # ifndef HAVE_SYS_PARAM_H
10118 # define HAVE_SYS_PARAM_H 1
10119 # endif
10121 # ifdef _SC_PAGESIZE
10122 # define getpagesize() sysconf(_SC_PAGESIZE)
10123 # else /* no _SC_PAGESIZE */
10124 # ifdef HAVE_SYS_PARAM_H
10125 # include <sys/param.h>
10126 # ifdef EXEC_PAGESIZE
10127 # define getpagesize() EXEC_PAGESIZE
10128 # else /* no EXEC_PAGESIZE */
10129 # ifdef NBPG
10130 # define getpagesize() NBPG * CLSIZE
10131 # ifndef CLSIZE
10132 # define CLSIZE 1
10133 # endif /* no CLSIZE */
10134 # else /* no NBPG */
10135 # ifdef NBPC
10136 # define getpagesize() NBPC
10137 # else /* no NBPC */
10138 # ifdef PAGESIZE
10139 # define getpagesize() PAGESIZE
10140 # endif /* PAGESIZE */
10141 # endif /* no NBPC */
10142 # endif /* no NBPG */
10143 # endif /* no EXEC_PAGESIZE */
10144 # else /* no HAVE_SYS_PARAM_H */
10145 # define getpagesize() 8192 /* punt totally */
10146 # endif /* no HAVE_SYS_PARAM_H */
10147 # endif /* no _SC_PAGESIZE */
10149 #endif /* no HAVE_GETPAGESIZE */
10152 main ()
10154 char *data, *data2, *data3;
10155 int i, pagesize;
10156 int fd;
10158 pagesize = getpagesize ();
10160 /* First, make a file with some known garbage in it. */
10161 data = (char *) malloc (pagesize);
10162 if (!data)
10163 return 1;
10164 for (i = 0; i < pagesize; ++i)
10165 *(data + i) = rand ();
10166 umask (0);
10167 fd = creat ("conftest.mmap", 0600);
10168 if (fd < 0)
10169 return 1;
10170 if (write (fd, data, pagesize) != pagesize)
10171 return 1;
10172 close (fd);
10174 /* Next, try to mmap the file at a fixed address which already has
10175 something else allocated at it. If we can, also make sure that
10176 we see the same garbage. */
10177 fd = open ("conftest.mmap", O_RDWR);
10178 if (fd < 0)
10179 return 1;
10180 data2 = (char *) malloc (2 * pagesize);
10181 if (!data2)
10182 return 1;
10183 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10184 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10185 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10186 return 1;
10187 for (i = 0; i < pagesize; ++i)
10188 if (*(data + i) != *(data2 + i))
10189 return 1;
10191 /* Finally, make sure that changes to the mapped area do not
10192 percolate back to the file as seen by read(). (This is a bug on
10193 some variants of i386 svr4.0.) */
10194 for (i = 0; i < pagesize; ++i)
10195 *(data2 + i) = *(data2 + i) + 1;
10196 data3 = (char *) malloc (pagesize);
10197 if (!data3)
10198 return 1;
10199 if (read (fd, data3, pagesize) != pagesize)
10200 return 1;
10201 for (i = 0; i < pagesize; ++i)
10202 if (*(data + i) != *(data3 + i))
10203 return 1;
10204 close (fd);
10205 return 0;
10207 _ACEOF
10208 rm -f conftest$ac_exeext
10209 if { (ac_try="$ac_link"
10210 case "(($ac_try" in
10211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10212 *) ac_try_echo=$ac_try;;
10213 esac
10214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10215 (eval "$ac_link") 2>&5
10216 ac_status=$?
10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10219 { (case "(($ac_try" in
10220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10221 *) ac_try_echo=$ac_try;;
10222 esac
10223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10224 (eval "$ac_try") 2>&5
10225 ac_status=$?
10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 (exit $ac_status); }; }; then
10228 ac_cv_func_mmap_fixed_mapped=yes
10229 else
10230 echo "$as_me: program exited with status $ac_status" >&5
10231 echo "$as_me: failed program was:" >&5
10232 sed 's/^/| /' conftest.$ac_ext >&5
10234 ( exit $ac_status )
10235 ac_cv_func_mmap_fixed_mapped=no
10237 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10242 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10243 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10244 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10246 cat >>confdefs.h <<\_ACEOF
10247 #define HAVE_MMAP 1
10248 _ACEOF
10251 rm -f conftest.mmap
10253 if test $use_mmap_for_buffers = yes; then
10254 REL_ALLOC=no
10257 LIBS="$libsrc_libs $LIBS"
10260 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10261 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10262 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10263 echo $ECHO_N "(cached) $ECHO_C" >&6
10264 else
10265 ac_check_lib_save_LIBS=$LIBS
10266 LIBS="-ldnet $LIBS"
10267 cat >conftest.$ac_ext <<_ACEOF
10268 /* confdefs.h. */
10269 _ACEOF
10270 cat confdefs.h >>conftest.$ac_ext
10271 cat >>conftest.$ac_ext <<_ACEOF
10272 /* end confdefs.h. */
10274 /* Override any GCC internal prototype to avoid an error.
10275 Use char because int might match the return type of a GCC
10276 builtin and then its argument prototype would still apply. */
10277 #ifdef __cplusplus
10278 extern "C"
10279 #endif
10280 char dnet_ntoa ();
10282 main ()
10284 return dnet_ntoa ();
10286 return 0;
10288 _ACEOF
10289 rm -f conftest.$ac_objext conftest$ac_exeext
10290 if { (ac_try="$ac_link"
10291 case "(($ac_try" in
10292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10293 *) ac_try_echo=$ac_try;;
10294 esac
10295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10296 (eval "$ac_link") 2>conftest.er1
10297 ac_status=$?
10298 grep -v '^ *+' conftest.er1 >conftest.err
10299 rm -f conftest.er1
10300 cat conftest.err >&5
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); } && {
10303 test -z "$ac_c_werror_flag" ||
10304 test ! -s conftest.err
10305 } && test -s conftest$ac_exeext &&
10306 $as_test_x conftest$ac_exeext; then
10307 ac_cv_lib_dnet_dnet_ntoa=yes
10308 else
10309 echo "$as_me: failed program was:" >&5
10310 sed 's/^/| /' conftest.$ac_ext >&5
10312 ac_cv_lib_dnet_dnet_ntoa=no
10315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10316 conftest$ac_exeext conftest.$ac_ext
10317 LIBS=$ac_check_lib_save_LIBS
10319 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10320 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10321 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10322 cat >>confdefs.h <<_ACEOF
10323 #define HAVE_LIBDNET 1
10324 _ACEOF
10326 LIBS="-ldnet $LIBS"
10331 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10332 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10333 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10334 echo $ECHO_N "(cached) $ECHO_C" >&6
10335 else
10336 ac_check_lib_save_LIBS=$LIBS
10337 LIBS="-lXbsd $LIBS"
10338 cat >conftest.$ac_ext <<_ACEOF
10339 /* confdefs.h. */
10340 _ACEOF
10341 cat confdefs.h >>conftest.$ac_ext
10342 cat >>conftest.$ac_ext <<_ACEOF
10343 /* end confdefs.h. */
10347 main ()
10349 return main ();
10351 return 0;
10353 _ACEOF
10354 rm -f conftest.$ac_objext conftest$ac_exeext
10355 if { (ac_try="$ac_link"
10356 case "(($ac_try" in
10357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10358 *) ac_try_echo=$ac_try;;
10359 esac
10360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10361 (eval "$ac_link") 2>conftest.er1
10362 ac_status=$?
10363 grep -v '^ *+' conftest.er1 >conftest.err
10364 rm -f conftest.er1
10365 cat conftest.err >&5
10366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367 (exit $ac_status); } && {
10368 test -z "$ac_c_werror_flag" ||
10369 test ! -s conftest.err
10370 } && test -s conftest$ac_exeext &&
10371 $as_test_x conftest$ac_exeext; then
10372 ac_cv_lib_Xbsd_main=yes
10373 else
10374 echo "$as_me: failed program was:" >&5
10375 sed 's/^/| /' conftest.$ac_ext >&5
10377 ac_cv_lib_Xbsd_main=no
10380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10381 conftest$ac_exeext conftest.$ac_ext
10382 LIBS=$ac_check_lib_save_LIBS
10384 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10385 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10386 if test $ac_cv_lib_Xbsd_main = yes; then
10387 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10392 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10393 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10394 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10395 echo $ECHO_N "(cached) $ECHO_C" >&6
10396 else
10397 ac_check_lib_save_LIBS=$LIBS
10398 LIBS="-lpthreads $LIBS"
10399 cat >conftest.$ac_ext <<_ACEOF
10400 /* confdefs.h. */
10401 _ACEOF
10402 cat confdefs.h >>conftest.$ac_ext
10403 cat >>conftest.$ac_ext <<_ACEOF
10404 /* end confdefs.h. */
10406 /* Override any GCC internal prototype to avoid an error.
10407 Use char because int might match the return type of a GCC
10408 builtin and then its argument prototype would still apply. */
10409 #ifdef __cplusplus
10410 extern "C"
10411 #endif
10412 char cma_open ();
10414 main ()
10416 return cma_open ();
10418 return 0;
10420 _ACEOF
10421 rm -f conftest.$ac_objext conftest$ac_exeext
10422 if { (ac_try="$ac_link"
10423 case "(($ac_try" in
10424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10425 *) ac_try_echo=$ac_try;;
10426 esac
10427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10428 (eval "$ac_link") 2>conftest.er1
10429 ac_status=$?
10430 grep -v '^ *+' conftest.er1 >conftest.err
10431 rm -f conftest.er1
10432 cat conftest.err >&5
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); } && {
10435 test -z "$ac_c_werror_flag" ||
10436 test ! -s conftest.err
10437 } && test -s conftest$ac_exeext &&
10438 $as_test_x conftest$ac_exeext; then
10439 ac_cv_lib_pthreads_cma_open=yes
10440 else
10441 echo "$as_me: failed program was:" >&5
10442 sed 's/^/| /' conftest.$ac_ext >&5
10444 ac_cv_lib_pthreads_cma_open=no
10447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10448 conftest$ac_exeext conftest.$ac_ext
10449 LIBS=$ac_check_lib_save_LIBS
10451 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10452 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10453 if test $ac_cv_lib_pthreads_cma_open = yes; then
10454 cat >>confdefs.h <<_ACEOF
10455 #define HAVE_LIBPTHREADS 1
10456 _ACEOF
10458 LIBS="-lpthreads $LIBS"
10463 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10464 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10465 if test -d /usr/X386/include; then
10466 HAVE_XFREE386=yes
10467 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10468 else
10469 HAVE_XFREE386=no
10471 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10472 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10475 case ${host_os} in
10476 aix*)
10477 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10478 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10479 if test "${gdb_cv_bigtoc+set}" = set; then
10480 echo $ECHO_N "(cached) $ECHO_C" >&6
10481 else
10483 case $GCC in
10484 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10485 *) gdb_cv_bigtoc=-bbigtoc ;;
10486 esac
10488 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10489 cat >conftest.$ac_ext <<_ACEOF
10490 /* confdefs.h. */
10491 _ACEOF
10492 cat confdefs.h >>conftest.$ac_ext
10493 cat >>conftest.$ac_ext <<_ACEOF
10494 /* end confdefs.h. */
10497 main ()
10499 int i;
10501 return 0;
10503 _ACEOF
10504 rm -f conftest.$ac_objext conftest$ac_exeext
10505 if { (ac_try="$ac_link"
10506 case "(($ac_try" in
10507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10508 *) ac_try_echo=$ac_try;;
10509 esac
10510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10511 (eval "$ac_link") 2>conftest.er1
10512 ac_status=$?
10513 grep -v '^ *+' conftest.er1 >conftest.err
10514 rm -f conftest.er1
10515 cat conftest.err >&5
10516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517 (exit $ac_status); } && {
10518 test -z "$ac_c_werror_flag" ||
10519 test ! -s conftest.err
10520 } && test -s conftest$ac_exeext &&
10521 $as_test_x conftest$ac_exeext; then
10523 else
10524 echo "$as_me: failed program was:" >&5
10525 sed 's/^/| /' conftest.$ac_ext >&5
10527 gdb_cv_bigtoc=
10530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10531 conftest$ac_exeext conftest.$ac_ext
10534 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10535 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10537 esac
10539 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10540 # used for the tests that follow. We set them back to REAL_CFLAGS and
10541 # REAL_CPPFLAGS later on.
10543 REAL_CPPFLAGS="$CPPFLAGS"
10545 if test "${HAVE_X11}" = "yes"; then
10546 DEFS="$C_SWITCH_X_SITE $DEFS"
10547 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10548 LIBS="$LIBX $LIBS"
10549 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10550 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10552 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10553 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10554 # but it's more convenient here to set LD_RUN_PATH
10555 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10556 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10557 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10558 export LD_RUN_PATH
10561 if test "${opsys}" = "gnu-linux"; then
10562 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10563 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10564 cat >conftest.$ac_ext <<_ACEOF
10565 /* confdefs.h. */
10566 _ACEOF
10567 cat confdefs.h >>conftest.$ac_ext
10568 cat >>conftest.$ac_ext <<_ACEOF
10569 /* end confdefs.h. */
10572 main ()
10574 XOpenDisplay ("foo");
10576 return 0;
10578 _ACEOF
10579 rm -f conftest.$ac_objext conftest$ac_exeext
10580 if { (ac_try="$ac_link"
10581 case "(($ac_try" in
10582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10583 *) ac_try_echo=$ac_try;;
10584 esac
10585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10586 (eval "$ac_link") 2>conftest.er1
10587 ac_status=$?
10588 grep -v '^ *+' conftest.er1 >conftest.err
10589 rm -f conftest.er1
10590 cat conftest.err >&5
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); } && {
10593 test -z "$ac_c_werror_flag" ||
10594 test ! -s conftest.err
10595 } && test -s conftest$ac_exeext &&
10596 $as_test_x conftest$ac_exeext; then
10597 xlinux_first_failure=no
10598 else
10599 echo "$as_me: failed program was:" >&5
10600 sed 's/^/| /' conftest.$ac_ext >&5
10602 xlinux_first_failure=yes
10605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10606 conftest$ac_exeext conftest.$ac_ext
10607 if test "${xlinux_first_failure}" = "yes"; then
10608 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10609 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10610 OLD_CPPFLAGS="$CPPFLAGS"
10611 OLD_LIBS="$LIBS"
10612 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10613 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10614 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10615 LIBS="$LIBS -b i486-linuxaout"
10616 cat >conftest.$ac_ext <<_ACEOF
10617 /* confdefs.h. */
10618 _ACEOF
10619 cat confdefs.h >>conftest.$ac_ext
10620 cat >>conftest.$ac_ext <<_ACEOF
10621 /* end confdefs.h. */
10624 main ()
10626 XOpenDisplay ("foo");
10628 return 0;
10630 _ACEOF
10631 rm -f conftest.$ac_objext conftest$ac_exeext
10632 if { (ac_try="$ac_link"
10633 case "(($ac_try" in
10634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10635 *) ac_try_echo=$ac_try;;
10636 esac
10637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10638 (eval "$ac_link") 2>conftest.er1
10639 ac_status=$?
10640 grep -v '^ *+' conftest.er1 >conftest.err
10641 rm -f conftest.er1
10642 cat conftest.err >&5
10643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644 (exit $ac_status); } && {
10645 test -z "$ac_c_werror_flag" ||
10646 test ! -s conftest.err
10647 } && test -s conftest$ac_exeext &&
10648 $as_test_x conftest$ac_exeext; then
10649 xlinux_second_failure=no
10650 else
10651 echo "$as_me: failed program was:" >&5
10652 sed 's/^/| /' conftest.$ac_ext >&5
10654 xlinux_second_failure=yes
10657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10658 conftest$ac_exeext conftest.$ac_ext
10659 if test "${xlinux_second_failure}" = "yes"; then
10660 # If we get the same failure with -b, there is no use adding -b.
10661 # So take it out. This plays safe.
10662 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10663 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10664 CPPFLAGS="$OLD_CPPFLAGS"
10665 LIBS="$OLD_LIBS"
10666 { echo "$as_me:$LINENO: result: no" >&5
10667 echo "${ECHO_T}no" >&6; }
10668 else
10669 { echo "$as_me:$LINENO: result: yes" >&5
10670 echo "${ECHO_T}yes" >&6; }
10672 else
10673 { echo "$as_me:$LINENO: result: no" >&5
10674 echo "${ECHO_T}no" >&6; }
10678 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10679 # header files included from there.
10680 { echo "$as_me:$LINENO: checking for Xkb" >&5
10681 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10682 cat >conftest.$ac_ext <<_ACEOF
10683 /* confdefs.h. */
10684 _ACEOF
10685 cat confdefs.h >>conftest.$ac_ext
10686 cat >>conftest.$ac_ext <<_ACEOF
10687 /* end confdefs.h. */
10688 #include <X11/Xlib.h>
10689 #include <X11/XKBlib.h>
10691 main ()
10693 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10695 return 0;
10697 _ACEOF
10698 rm -f conftest.$ac_objext conftest$ac_exeext
10699 if { (ac_try="$ac_link"
10700 case "(($ac_try" in
10701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10702 *) ac_try_echo=$ac_try;;
10703 esac
10704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10705 (eval "$ac_link") 2>conftest.er1
10706 ac_status=$?
10707 grep -v '^ *+' conftest.er1 >conftest.err
10708 rm -f conftest.er1
10709 cat conftest.err >&5
10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711 (exit $ac_status); } && {
10712 test -z "$ac_c_werror_flag" ||
10713 test ! -s conftest.err
10714 } && test -s conftest$ac_exeext &&
10715 $as_test_x conftest$ac_exeext; then
10716 emacs_xkb=yes
10717 else
10718 echo "$as_me: failed program was:" >&5
10719 sed 's/^/| /' conftest.$ac_ext >&5
10721 emacs_xkb=no
10724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10725 conftest$ac_exeext conftest.$ac_ext
10726 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10727 echo "${ECHO_T}$emacs_xkb" >&6; }
10728 if test $emacs_xkb = yes; then
10730 cat >>confdefs.h <<\_ACEOF
10731 #define HAVE_XKBGETKEYBOARD 1
10732 _ACEOF
10740 for ac_func in XrmSetDatabase XScreenResourceString \
10741 XScreenNumberOfScreen XSetWMProtocols
10743 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10744 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10745 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10746 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10747 echo $ECHO_N "(cached) $ECHO_C" >&6
10748 else
10749 cat >conftest.$ac_ext <<_ACEOF
10750 /* confdefs.h. */
10751 _ACEOF
10752 cat confdefs.h >>conftest.$ac_ext
10753 cat >>conftest.$ac_ext <<_ACEOF
10754 /* end confdefs.h. */
10755 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10756 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10757 #define $ac_func innocuous_$ac_func
10759 /* System header to define __stub macros and hopefully few prototypes,
10760 which can conflict with char $ac_func (); below.
10761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10762 <limits.h> exists even on freestanding compilers. */
10764 #ifdef __STDC__
10765 # include <limits.h>
10766 #else
10767 # include <assert.h>
10768 #endif
10770 #undef $ac_func
10772 /* Override any GCC internal prototype to avoid an error.
10773 Use char because int might match the return type of a GCC
10774 builtin and then its argument prototype would still apply. */
10775 #ifdef __cplusplus
10776 extern "C"
10777 #endif
10778 char $ac_func ();
10779 /* The GNU C library defines this for functions which it implements
10780 to always fail with ENOSYS. Some functions are actually named
10781 something starting with __ and the normal name is an alias. */
10782 #if defined __stub_$ac_func || defined __stub___$ac_func
10783 choke me
10784 #endif
10787 main ()
10789 return $ac_func ();
10791 return 0;
10793 _ACEOF
10794 rm -f conftest.$ac_objext conftest$ac_exeext
10795 if { (ac_try="$ac_link"
10796 case "(($ac_try" in
10797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10798 *) ac_try_echo=$ac_try;;
10799 esac
10800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10801 (eval "$ac_link") 2>conftest.er1
10802 ac_status=$?
10803 grep -v '^ *+' conftest.er1 >conftest.err
10804 rm -f conftest.er1
10805 cat conftest.err >&5
10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807 (exit $ac_status); } && {
10808 test -z "$ac_c_werror_flag" ||
10809 test ! -s conftest.err
10810 } && test -s conftest$ac_exeext &&
10811 $as_test_x conftest$ac_exeext; then
10812 eval "$as_ac_var=yes"
10813 else
10814 echo "$as_me: failed program was:" >&5
10815 sed 's/^/| /' conftest.$ac_ext >&5
10817 eval "$as_ac_var=no"
10820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10821 conftest$ac_exeext conftest.$ac_ext
10823 ac_res=`eval echo '${'$as_ac_var'}'`
10824 { echo "$as_me:$LINENO: result: $ac_res" >&5
10825 echo "${ECHO_T}$ac_res" >&6; }
10826 if test `eval echo '${'$as_ac_var'}'` = yes; then
10827 cat >>confdefs.h <<_ACEOF
10828 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10829 _ACEOF
10832 done
10836 if test "${window_system}" = "x11"; then
10837 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10838 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10839 if test "${emacs_cv_x11_version_6+set}" = set; then
10840 echo $ECHO_N "(cached) $ECHO_C" >&6
10841 else
10842 cat >conftest.$ac_ext <<_ACEOF
10843 /* confdefs.h. */
10844 _ACEOF
10845 cat confdefs.h >>conftest.$ac_ext
10846 cat >>conftest.$ac_ext <<_ACEOF
10847 /* end confdefs.h. */
10848 #include <X11/Xlib.h>
10850 main ()
10852 #if XlibSpecificationRelease < 6
10853 fail;
10854 #endif
10857 return 0;
10859 _ACEOF
10860 rm -f conftest.$ac_objext conftest$ac_exeext
10861 if { (ac_try="$ac_link"
10862 case "(($ac_try" in
10863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10864 *) ac_try_echo=$ac_try;;
10865 esac
10866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10867 (eval "$ac_link") 2>conftest.er1
10868 ac_status=$?
10869 grep -v '^ *+' conftest.er1 >conftest.err
10870 rm -f conftest.er1
10871 cat conftest.err >&5
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); } && {
10874 test -z "$ac_c_werror_flag" ||
10875 test ! -s conftest.err
10876 } && test -s conftest$ac_exeext &&
10877 $as_test_x conftest$ac_exeext; then
10878 emacs_cv_x11_version_6=yes
10879 else
10880 echo "$as_me: failed program was:" >&5
10881 sed 's/^/| /' conftest.$ac_ext >&5
10883 emacs_cv_x11_version_6=no
10886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10887 conftest$ac_exeext conftest.$ac_ext
10890 if test $emacs_cv_x11_version_6 = yes; then
10891 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10892 echo "${ECHO_T}6 or newer" >&6; }
10894 cat >>confdefs.h <<\_ACEOF
10895 #define HAVE_X11R6 1
10896 _ACEOF
10898 else
10899 { echo "$as_me:$LINENO: result: before 6" >&5
10900 echo "${ECHO_T}before 6" >&6; }
10904 if test "${window_system}" = "x11"; then
10905 { echo "$as_me:$LINENO: checking X11 version 5" >&5
10906 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
10907 if test "${emacs_cv_x11_version_5+set}" = set; then
10908 echo $ECHO_N "(cached) $ECHO_C" >&6
10909 else
10910 cat >conftest.$ac_ext <<_ACEOF
10911 /* confdefs.h. */
10912 _ACEOF
10913 cat confdefs.h >>conftest.$ac_ext
10914 cat >>conftest.$ac_ext <<_ACEOF
10915 /* end confdefs.h. */
10916 #include <X11/Xlib.h>
10918 main ()
10920 #if XlibSpecificationRelease < 5
10921 fail;
10922 #endif
10925 return 0;
10927 _ACEOF
10928 rm -f conftest.$ac_objext conftest$ac_exeext
10929 if { (ac_try="$ac_link"
10930 case "(($ac_try" in
10931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10932 *) ac_try_echo=$ac_try;;
10933 esac
10934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10935 (eval "$ac_link") 2>conftest.er1
10936 ac_status=$?
10937 grep -v '^ *+' conftest.er1 >conftest.err
10938 rm -f conftest.er1
10939 cat conftest.err >&5
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); } && {
10942 test -z "$ac_c_werror_flag" ||
10943 test ! -s conftest.err
10944 } && test -s conftest$ac_exeext &&
10945 $as_test_x conftest$ac_exeext; then
10946 emacs_cv_x11_version_5=yes
10947 else
10948 echo "$as_me: failed program was:" >&5
10949 sed 's/^/| /' conftest.$ac_ext >&5
10951 emacs_cv_x11_version_5=no
10954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10955 conftest$ac_exeext conftest.$ac_ext
10958 if test $emacs_cv_x11_version_5 = yes; then
10959 { echo "$as_me:$LINENO: result: 5 or newer" >&5
10960 echo "${ECHO_T}5 or newer" >&6; }
10961 HAVE_X11R5=yes
10963 cat >>confdefs.h <<\_ACEOF
10964 #define HAVE_X11R5 1
10965 _ACEOF
10967 else
10968 HAVE_X11R5=no
10969 { echo "$as_me:$LINENO: result: before 5" >&5
10970 echo "${ECHO_T}before 5" >&6; }
10974 HAVE_GTK=no
10975 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10976 USE_X_TOOLKIT=none
10978 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10979 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10980 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10981 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10982 { (exit 1); exit 1; }; };
10984 GLIB_REQUIRED=2.6
10985 GTK_REQUIRED=2.6
10986 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10988 if test "X${with_pkg_config_prog}" != X; then
10989 PKG_CONFIG="${with_pkg_config_prog}"
10992 succeeded=no
10994 if test -z "$PKG_CONFIG"; then
10995 # Extract the first word of "pkg-config", so it can be a program name with args.
10996 set dummy pkg-config; ac_word=$2
10997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10999 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11000 echo $ECHO_N "(cached) $ECHO_C" >&6
11001 else
11002 case $PKG_CONFIG in
11003 [\\/]* | ?:[\\/]*)
11004 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11008 for as_dir in $PATH
11010 IFS=$as_save_IFS
11011 test -z "$as_dir" && as_dir=.
11012 for ac_exec_ext in '' $ac_executable_extensions; do
11013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11014 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11016 break 2
11018 done
11019 done
11020 IFS=$as_save_IFS
11022 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11024 esac
11026 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11027 if test -n "$PKG_CONFIG"; then
11028 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11029 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11030 else
11031 { echo "$as_me:$LINENO: result: no" >&5
11032 echo "${ECHO_T}no" >&6; }
11038 if test "$PKG_CONFIG" = "no" ; then
11039 { { echo "$as_me:$LINENO: error:
11040 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&5
11041 echo "$as_me: error:
11042 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&2;}
11043 { (exit 1); exit 1; }; }
11044 else
11045 PKG_CONFIG_MIN_VERSION=0.9.0
11046 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11047 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11048 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11050 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11051 { echo "$as_me:$LINENO: result: yes" >&5
11052 echo "${ECHO_T}yes" >&6; }
11053 succeeded=yes
11055 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11056 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11057 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11058 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11059 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11061 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11062 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11063 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11064 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11065 echo "${ECHO_T}$GTK_LIBS" >&6; }
11066 else
11067 { echo "$as_me:$LINENO: result: no" >&5
11068 echo "${ECHO_T}no" >&6; }
11069 GTK_CFLAGS=""
11070 GTK_LIBS=""
11071 ## If we have a custom action on failure, don't print errors, but
11072 ## do set a variable so people can do so.
11073 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11074 echo $GTK_PKG_ERRORS
11079 else
11080 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11081 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11085 if test $succeeded = yes; then
11087 else
11088 { { echo "$as_me:$LINENO: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
11089 echo "$as_me: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
11090 { (exit 1); exit 1; }; }
11095 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11096 CFLAGS="$CFLAGS $GTK_CFLAGS"
11097 LIBS="$GTK_LIBS $LIBS"
11098 GTK_COMPILES=no
11100 for ac_func in gtk_main
11102 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11103 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11104 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11105 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11106 echo $ECHO_N "(cached) $ECHO_C" >&6
11107 else
11108 cat >conftest.$ac_ext <<_ACEOF
11109 /* confdefs.h. */
11110 _ACEOF
11111 cat confdefs.h >>conftest.$ac_ext
11112 cat >>conftest.$ac_ext <<_ACEOF
11113 /* end confdefs.h. */
11114 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11115 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11116 #define $ac_func innocuous_$ac_func
11118 /* System header to define __stub macros and hopefully few prototypes,
11119 which can conflict with char $ac_func (); below.
11120 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11121 <limits.h> exists even on freestanding compilers. */
11123 #ifdef __STDC__
11124 # include <limits.h>
11125 #else
11126 # include <assert.h>
11127 #endif
11129 #undef $ac_func
11131 /* Override any GCC internal prototype to avoid an error.
11132 Use char because int might match the return type of a GCC
11133 builtin and then its argument prototype would still apply. */
11134 #ifdef __cplusplus
11135 extern "C"
11136 #endif
11137 char $ac_func ();
11138 /* The GNU C library defines this for functions which it implements
11139 to always fail with ENOSYS. Some functions are actually named
11140 something starting with __ and the normal name is an alias. */
11141 #if defined __stub_$ac_func || defined __stub___$ac_func
11142 choke me
11143 #endif
11146 main ()
11148 return $ac_func ();
11150 return 0;
11152 _ACEOF
11153 rm -f conftest.$ac_objext conftest$ac_exeext
11154 if { (ac_try="$ac_link"
11155 case "(($ac_try" in
11156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11157 *) ac_try_echo=$ac_try;;
11158 esac
11159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11160 (eval "$ac_link") 2>conftest.er1
11161 ac_status=$?
11162 grep -v '^ *+' conftest.er1 >conftest.err
11163 rm -f conftest.er1
11164 cat conftest.err >&5
11165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166 (exit $ac_status); } && {
11167 test -z "$ac_c_werror_flag" ||
11168 test ! -s conftest.err
11169 } && test -s conftest$ac_exeext &&
11170 $as_test_x conftest$ac_exeext; then
11171 eval "$as_ac_var=yes"
11172 else
11173 echo "$as_me: failed program was:" >&5
11174 sed 's/^/| /' conftest.$ac_ext >&5
11176 eval "$as_ac_var=no"
11179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11180 conftest$ac_exeext conftest.$ac_ext
11182 ac_res=`eval echo '${'$as_ac_var'}'`
11183 { echo "$as_me:$LINENO: result: $ac_res" >&5
11184 echo "${ECHO_T}$ac_res" >&6; }
11185 if test `eval echo '${'$as_ac_var'}'` = yes; then
11186 cat >>confdefs.h <<_ACEOF
11187 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11188 _ACEOF
11189 GTK_COMPILES=yes
11191 done
11193 if test "${GTK_COMPILES}" != "yes"; then
11194 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11195 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11196 { (exit 1); exit 1; }; };
11199 HAVE_GTK=yes
11201 cat >>confdefs.h <<\_ACEOF
11202 #define HAVE_GTK 1
11203 _ACEOF
11205 USE_X_TOOLKIT=none
11207 if test "$with_toolkit_scroll_bars" != no; then
11208 with_toolkit_scroll_bars=yes
11211 HAVE_GTK_MULTIDISPLAY=no
11213 for ac_func in gdk_display_open
11215 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11216 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11217 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11218 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11219 echo $ECHO_N "(cached) $ECHO_C" >&6
11220 else
11221 cat >conftest.$ac_ext <<_ACEOF
11222 /* confdefs.h. */
11223 _ACEOF
11224 cat confdefs.h >>conftest.$ac_ext
11225 cat >>conftest.$ac_ext <<_ACEOF
11226 /* end confdefs.h. */
11227 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11229 #define $ac_func innocuous_$ac_func
11231 /* System header to define __stub macros and hopefully few prototypes,
11232 which can conflict with char $ac_func (); below.
11233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11234 <limits.h> exists even on freestanding compilers. */
11236 #ifdef __STDC__
11237 # include <limits.h>
11238 #else
11239 # include <assert.h>
11240 #endif
11242 #undef $ac_func
11244 /* Override any GCC internal prototype to avoid an error.
11245 Use char because int might match the return type of a GCC
11246 builtin and then its argument prototype would still apply. */
11247 #ifdef __cplusplus
11248 extern "C"
11249 #endif
11250 char $ac_func ();
11251 /* The GNU C library defines this for functions which it implements
11252 to always fail with ENOSYS. Some functions are actually named
11253 something starting with __ and the normal name is an alias. */
11254 #if defined __stub_$ac_func || defined __stub___$ac_func
11255 choke me
11256 #endif
11259 main ()
11261 return $ac_func ();
11263 return 0;
11265 _ACEOF
11266 rm -f conftest.$ac_objext conftest$ac_exeext
11267 if { (ac_try="$ac_link"
11268 case "(($ac_try" in
11269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11270 *) ac_try_echo=$ac_try;;
11271 esac
11272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11273 (eval "$ac_link") 2>conftest.er1
11274 ac_status=$?
11275 grep -v '^ *+' conftest.er1 >conftest.err
11276 rm -f conftest.er1
11277 cat conftest.err >&5
11278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279 (exit $ac_status); } && {
11280 test -z "$ac_c_werror_flag" ||
11281 test ! -s conftest.err
11282 } && test -s conftest$ac_exeext &&
11283 $as_test_x conftest$ac_exeext; then
11284 eval "$as_ac_var=yes"
11285 else
11286 echo "$as_me: failed program was:" >&5
11287 sed 's/^/| /' conftest.$ac_ext >&5
11289 eval "$as_ac_var=no"
11292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11293 conftest$ac_exeext conftest.$ac_ext
11295 ac_res=`eval echo '${'$as_ac_var'}'`
11296 { echo "$as_me:$LINENO: result: $ac_res" >&5
11297 echo "${ECHO_T}$ac_res" >&6; }
11298 if test `eval echo '${'$as_ac_var'}'` = yes; then
11299 cat >>confdefs.h <<_ACEOF
11300 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11301 _ACEOF
11302 HAVE_GTK_MULTIDISPLAY=yes
11304 done
11306 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11308 cat >>confdefs.h <<\_ACEOF
11309 #define HAVE_GTK_MULTIDISPLAY 1
11310 _ACEOF
11313 HAVE_GTK_FILE_SELECTION=no
11315 for ac_func in gtk_file_selection_new
11317 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11318 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11319 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11320 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11321 echo $ECHO_N "(cached) $ECHO_C" >&6
11322 else
11323 cat >conftest.$ac_ext <<_ACEOF
11324 /* confdefs.h. */
11325 _ACEOF
11326 cat confdefs.h >>conftest.$ac_ext
11327 cat >>conftest.$ac_ext <<_ACEOF
11328 /* end confdefs.h. */
11329 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11330 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11331 #define $ac_func innocuous_$ac_func
11333 /* System header to define __stub macros and hopefully few prototypes,
11334 which can conflict with char $ac_func (); below.
11335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11336 <limits.h> exists even on freestanding compilers. */
11338 #ifdef __STDC__
11339 # include <limits.h>
11340 #else
11341 # include <assert.h>
11342 #endif
11344 #undef $ac_func
11346 /* Override any GCC internal prototype to avoid an error.
11347 Use char because int might match the return type of a GCC
11348 builtin and then its argument prototype would still apply. */
11349 #ifdef __cplusplus
11350 extern "C"
11351 #endif
11352 char $ac_func ();
11353 /* The GNU C library defines this for functions which it implements
11354 to always fail with ENOSYS. Some functions are actually named
11355 something starting with __ and the normal name is an alias. */
11356 #if defined __stub_$ac_func || defined __stub___$ac_func
11357 choke me
11358 #endif
11361 main ()
11363 return $ac_func ();
11365 return 0;
11367 _ACEOF
11368 rm -f conftest.$ac_objext conftest$ac_exeext
11369 if { (ac_try="$ac_link"
11370 case "(($ac_try" in
11371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11372 *) ac_try_echo=$ac_try;;
11373 esac
11374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11375 (eval "$ac_link") 2>conftest.er1
11376 ac_status=$?
11377 grep -v '^ *+' conftest.er1 >conftest.err
11378 rm -f conftest.er1
11379 cat conftest.err >&5
11380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); } && {
11382 test -z "$ac_c_werror_flag" ||
11383 test ! -s conftest.err
11384 } && test -s conftest$ac_exeext &&
11385 $as_test_x conftest$ac_exeext; then
11386 eval "$as_ac_var=yes"
11387 else
11388 echo "$as_me: failed program was:" >&5
11389 sed 's/^/| /' conftest.$ac_ext >&5
11391 eval "$as_ac_var=no"
11394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11395 conftest$ac_exeext conftest.$ac_ext
11397 ac_res=`eval echo '${'$as_ac_var'}'`
11398 { echo "$as_me:$LINENO: result: $ac_res" >&5
11399 echo "${ECHO_T}$ac_res" >&6; }
11400 if test `eval echo '${'$as_ac_var'}'` = yes; then
11401 cat >>confdefs.h <<_ACEOF
11402 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11403 _ACEOF
11404 HAVE_GTK_FILE_SELECTION=yes
11406 done
11409 HAVE_GTK_FILE_CHOOSER=no
11411 for ac_func in gtk_file_chooser_dialog_new
11413 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11414 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11415 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11416 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11417 echo $ECHO_N "(cached) $ECHO_C" >&6
11418 else
11419 cat >conftest.$ac_ext <<_ACEOF
11420 /* confdefs.h. */
11421 _ACEOF
11422 cat confdefs.h >>conftest.$ac_ext
11423 cat >>conftest.$ac_ext <<_ACEOF
11424 /* end confdefs.h. */
11425 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11426 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11427 #define $ac_func innocuous_$ac_func
11429 /* System header to define __stub macros and hopefully few prototypes,
11430 which can conflict with char $ac_func (); below.
11431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11432 <limits.h> exists even on freestanding compilers. */
11434 #ifdef __STDC__
11435 # include <limits.h>
11436 #else
11437 # include <assert.h>
11438 #endif
11440 #undef $ac_func
11442 /* Override any GCC internal prototype to avoid an error.
11443 Use char because int might match the return type of a GCC
11444 builtin and then its argument prototype would still apply. */
11445 #ifdef __cplusplus
11446 extern "C"
11447 #endif
11448 char $ac_func ();
11449 /* The GNU C library defines this for functions which it implements
11450 to always fail with ENOSYS. Some functions are actually named
11451 something starting with __ and the normal name is an alias. */
11452 #if defined __stub_$ac_func || defined __stub___$ac_func
11453 choke me
11454 #endif
11457 main ()
11459 return $ac_func ();
11461 return 0;
11463 _ACEOF
11464 rm -f conftest.$ac_objext conftest$ac_exeext
11465 if { (ac_try="$ac_link"
11466 case "(($ac_try" in
11467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11468 *) ac_try_echo=$ac_try;;
11469 esac
11470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11471 (eval "$ac_link") 2>conftest.er1
11472 ac_status=$?
11473 grep -v '^ *+' conftest.er1 >conftest.err
11474 rm -f conftest.er1
11475 cat conftest.err >&5
11476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11477 (exit $ac_status); } && {
11478 test -z "$ac_c_werror_flag" ||
11479 test ! -s conftest.err
11480 } && test -s conftest$ac_exeext &&
11481 $as_test_x conftest$ac_exeext; then
11482 eval "$as_ac_var=yes"
11483 else
11484 echo "$as_me: failed program was:" >&5
11485 sed 's/^/| /' conftest.$ac_ext >&5
11487 eval "$as_ac_var=no"
11490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11491 conftest$ac_exeext conftest.$ac_ext
11493 ac_res=`eval echo '${'$as_ac_var'}'`
11494 { echo "$as_me:$LINENO: result: $ac_res" >&5
11495 echo "${ECHO_T}$ac_res" >&6; }
11496 if test `eval echo '${'$as_ac_var'}'` = yes; then
11497 cat >>confdefs.h <<_ACEOF
11498 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11499 _ACEOF
11500 HAVE_GTK_FILE_CHOOSER=yes
11502 done
11505 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11506 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11508 cat >>confdefs.h <<\_ACEOF
11509 #define HAVE_GTK_FILE_BOTH 1
11510 _ACEOF
11514 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11515 HAVE_GTK_AND_PTHREAD=no
11517 for ac_header in pthread.h
11519 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11521 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11524 echo $ECHO_N "(cached) $ECHO_C" >&6
11526 ac_res=`eval echo '${'$as_ac_Header'}'`
11527 { echo "$as_me:$LINENO: result: $ac_res" >&5
11528 echo "${ECHO_T}$ac_res" >&6; }
11529 else
11530 # Is the header compilable?
11531 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11532 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11533 cat >conftest.$ac_ext <<_ACEOF
11534 /* confdefs.h. */
11535 _ACEOF
11536 cat confdefs.h >>conftest.$ac_ext
11537 cat >>conftest.$ac_ext <<_ACEOF
11538 /* end confdefs.h. */
11539 $ac_includes_default
11540 #include <$ac_header>
11541 _ACEOF
11542 rm -f conftest.$ac_objext
11543 if { (ac_try="$ac_compile"
11544 case "(($ac_try" in
11545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11546 *) ac_try_echo=$ac_try;;
11547 esac
11548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11549 (eval "$ac_compile") 2>conftest.er1
11550 ac_status=$?
11551 grep -v '^ *+' conftest.er1 >conftest.err
11552 rm -f conftest.er1
11553 cat conftest.err >&5
11554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555 (exit $ac_status); } && {
11556 test -z "$ac_c_werror_flag" ||
11557 test ! -s conftest.err
11558 } && test -s conftest.$ac_objext; then
11559 ac_header_compiler=yes
11560 else
11561 echo "$as_me: failed program was:" >&5
11562 sed 's/^/| /' conftest.$ac_ext >&5
11564 ac_header_compiler=no
11567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11568 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11569 echo "${ECHO_T}$ac_header_compiler" >&6; }
11571 # Is the header present?
11572 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11573 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11574 cat >conftest.$ac_ext <<_ACEOF
11575 /* confdefs.h. */
11576 _ACEOF
11577 cat confdefs.h >>conftest.$ac_ext
11578 cat >>conftest.$ac_ext <<_ACEOF
11579 /* end confdefs.h. */
11580 #include <$ac_header>
11581 _ACEOF
11582 if { (ac_try="$ac_cpp conftest.$ac_ext"
11583 case "(($ac_try" in
11584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11585 *) ac_try_echo=$ac_try;;
11586 esac
11587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11589 ac_status=$?
11590 grep -v '^ *+' conftest.er1 >conftest.err
11591 rm -f conftest.er1
11592 cat conftest.err >&5
11593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594 (exit $ac_status); } >/dev/null && {
11595 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11596 test ! -s conftest.err
11597 }; then
11598 ac_header_preproc=yes
11599 else
11600 echo "$as_me: failed program was:" >&5
11601 sed 's/^/| /' conftest.$ac_ext >&5
11603 ac_header_preproc=no
11606 rm -f conftest.err conftest.$ac_ext
11607 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11608 echo "${ECHO_T}$ac_header_preproc" >&6; }
11610 # So? What about this header?
11611 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11612 yes:no: )
11613 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11614 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11616 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11617 ac_header_preproc=yes
11619 no:yes:* )
11620 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11621 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11622 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11623 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11624 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11625 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11626 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11627 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11629 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11630 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11631 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11634 esac
11635 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11637 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11638 echo $ECHO_N "(cached) $ECHO_C" >&6
11639 else
11640 eval "$as_ac_Header=\$ac_header_preproc"
11642 ac_res=`eval echo '${'$as_ac_Header'}'`
11643 { echo "$as_me:$LINENO: result: $ac_res" >&5
11644 echo "${ECHO_T}$ac_res" >&6; }
11647 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11648 cat >>confdefs.h <<_ACEOF
11649 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11650 _ACEOF
11654 done
11656 if test "$ac_cv_header_pthread_h"; then
11657 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11658 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11659 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11660 echo $ECHO_N "(cached) $ECHO_C" >&6
11661 else
11662 ac_check_lib_save_LIBS=$LIBS
11663 LIBS="-lpthread $LIBS"
11664 cat >conftest.$ac_ext <<_ACEOF
11665 /* confdefs.h. */
11666 _ACEOF
11667 cat confdefs.h >>conftest.$ac_ext
11668 cat >>conftest.$ac_ext <<_ACEOF
11669 /* end confdefs.h. */
11671 /* Override any GCC internal prototype to avoid an error.
11672 Use char because int might match the return type of a GCC
11673 builtin and then its argument prototype would still apply. */
11674 #ifdef __cplusplus
11675 extern "C"
11676 #endif
11677 char pthread_self ();
11679 main ()
11681 return pthread_self ();
11683 return 0;
11685 _ACEOF
11686 rm -f conftest.$ac_objext conftest$ac_exeext
11687 if { (ac_try="$ac_link"
11688 case "(($ac_try" in
11689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11690 *) ac_try_echo=$ac_try;;
11691 esac
11692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11693 (eval "$ac_link") 2>conftest.er1
11694 ac_status=$?
11695 grep -v '^ *+' conftest.er1 >conftest.err
11696 rm -f conftest.er1
11697 cat conftest.err >&5
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); } && {
11700 test -z "$ac_c_werror_flag" ||
11701 test ! -s conftest.err
11702 } && test -s conftest$ac_exeext &&
11703 $as_test_x conftest$ac_exeext; then
11704 ac_cv_lib_pthread_pthread_self=yes
11705 else
11706 echo "$as_me: failed program was:" >&5
11707 sed 's/^/| /' conftest.$ac_ext >&5
11709 ac_cv_lib_pthread_pthread_self=no
11712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11713 conftest$ac_exeext conftest.$ac_ext
11714 LIBS=$ac_check_lib_save_LIBS
11716 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11717 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11718 if test $ac_cv_lib_pthread_pthread_self = yes; then
11719 HAVE_GTK_AND_PTHREAD=yes
11723 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11724 case "${canonical}" in
11725 *-hpux*) ;;
11726 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11727 esac
11729 cat >>confdefs.h <<\_ACEOF
11730 #define HAVE_GTK_AND_PTHREAD 1
11731 _ACEOF
11737 ### Link with -lXft if available to work around a bug.
11738 HAVE_XFT=maybe
11739 if test "${HAVE_GTK}" = "yes"; then
11740 if test "X${with_pkg_config_prog}" != X; then
11741 PKG_CONFIG="${with_pkg_config_prog}"
11745 succeeded=no
11747 if test -z "$PKG_CONFIG"; then
11748 # Extract the first word of "pkg-config", so it can be a program name with args.
11749 set dummy pkg-config; ac_word=$2
11750 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11752 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11753 echo $ECHO_N "(cached) $ECHO_C" >&6
11754 else
11755 case $PKG_CONFIG in
11756 [\\/]* | ?:[\\/]*)
11757 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11761 for as_dir in $PATH
11763 IFS=$as_save_IFS
11764 test -z "$as_dir" && as_dir=.
11765 for ac_exec_ext in '' $ac_executable_extensions; do
11766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11767 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11769 break 2
11771 done
11772 done
11773 IFS=$as_save_IFS
11775 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11777 esac
11779 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11780 if test -n "$PKG_CONFIG"; then
11781 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11782 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11783 else
11784 { echo "$as_me:$LINENO: result: no" >&5
11785 echo "${ECHO_T}no" >&6; }
11791 if test "$PKG_CONFIG" = "no" ; then
11792 HAVE_XFT=no
11793 else
11794 PKG_CONFIG_MIN_VERSION=0.9.0
11795 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11796 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
11797 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
11799 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11800 { echo "$as_me:$LINENO: result: yes" >&5
11801 echo "${ECHO_T}yes" >&6; }
11802 succeeded=yes
11804 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
11805 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
11806 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11807 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
11808 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
11810 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
11811 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
11812 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11813 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
11814 echo "${ECHO_T}$XFT_LIBS" >&6; }
11815 else
11816 { echo "$as_me:$LINENO: result: no" >&5
11817 echo "${ECHO_T}no" >&6; }
11818 XFT_CFLAGS=""
11819 XFT_LIBS=""
11820 ## If we have a custom action on failure, don't print errors, but
11821 ## do set a variable so people can do so.
11822 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11828 else
11829 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11830 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11834 if test $succeeded = yes; then
11836 else
11837 HAVE_XFT=no
11840 if test "$HAVE_XFT" != no; then
11841 OLD_CFLAGS="$CPPFLAGS"
11842 OLD_CPPFLAGS="$CFLAGS"
11843 OLD_LIBS="$LIBS"
11844 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11845 CFLAGS="$CFLAGS $XFT_CFLAGS"
11846 LIBS="$XFT_LIBS $LIBS"
11847 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11848 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11849 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11850 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11851 echo $ECHO_N "(cached) $ECHO_C" >&6
11853 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11854 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11855 else
11856 # Is the header compilable?
11857 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
11858 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
11859 cat >conftest.$ac_ext <<_ACEOF
11860 /* confdefs.h. */
11861 _ACEOF
11862 cat confdefs.h >>conftest.$ac_ext
11863 cat >>conftest.$ac_ext <<_ACEOF
11864 /* end confdefs.h. */
11865 $ac_includes_default
11866 #include <X11/Xft/Xft.h>
11867 _ACEOF
11868 rm -f conftest.$ac_objext
11869 if { (ac_try="$ac_compile"
11870 case "(($ac_try" in
11871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11872 *) ac_try_echo=$ac_try;;
11873 esac
11874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11875 (eval "$ac_compile") 2>conftest.er1
11876 ac_status=$?
11877 grep -v '^ *+' conftest.er1 >conftest.err
11878 rm -f conftest.er1
11879 cat conftest.err >&5
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); } && {
11882 test -z "$ac_c_werror_flag" ||
11883 test ! -s conftest.err
11884 } && test -s conftest.$ac_objext; then
11885 ac_header_compiler=yes
11886 else
11887 echo "$as_me: failed program was:" >&5
11888 sed 's/^/| /' conftest.$ac_ext >&5
11890 ac_header_compiler=no
11893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11894 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11895 echo "${ECHO_T}$ac_header_compiler" >&6; }
11897 # Is the header present?
11898 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
11899 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
11900 cat >conftest.$ac_ext <<_ACEOF
11901 /* confdefs.h. */
11902 _ACEOF
11903 cat confdefs.h >>conftest.$ac_ext
11904 cat >>conftest.$ac_ext <<_ACEOF
11905 /* end confdefs.h. */
11906 #include <X11/Xft/Xft.h>
11907 _ACEOF
11908 if { (ac_try="$ac_cpp conftest.$ac_ext"
11909 case "(($ac_try" in
11910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11911 *) ac_try_echo=$ac_try;;
11912 esac
11913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11914 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11915 ac_status=$?
11916 grep -v '^ *+' conftest.er1 >conftest.err
11917 rm -f conftest.er1
11918 cat conftest.err >&5
11919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920 (exit $ac_status); } >/dev/null && {
11921 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11922 test ! -s conftest.err
11923 }; then
11924 ac_header_preproc=yes
11925 else
11926 echo "$as_me: failed program was:" >&5
11927 sed 's/^/| /' conftest.$ac_ext >&5
11929 ac_header_preproc=no
11932 rm -f conftest.err conftest.$ac_ext
11933 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11934 echo "${ECHO_T}$ac_header_preproc" >&6; }
11936 # So? What about this header?
11937 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11938 yes:no: )
11939 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
11940 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11941 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
11942 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
11943 ac_header_preproc=yes
11945 no:yes:* )
11946 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
11947 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
11948 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
11949 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
11950 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
11951 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
11952 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
11953 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
11954 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
11955 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
11956 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
11957 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
11960 esac
11961 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11962 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11963 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11964 echo $ECHO_N "(cached) $ECHO_C" >&6
11965 else
11966 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
11968 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11969 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11972 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
11973 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
11974 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
11975 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
11976 echo $ECHO_N "(cached) $ECHO_C" >&6
11977 else
11978 ac_check_lib_save_LIBS=$LIBS
11979 LIBS="-lXft $XFT_LIBS $LIBS"
11980 cat >conftest.$ac_ext <<_ACEOF
11981 /* confdefs.h. */
11982 _ACEOF
11983 cat confdefs.h >>conftest.$ac_ext
11984 cat >>conftest.$ac_ext <<_ACEOF
11985 /* end confdefs.h. */
11987 /* Override any GCC internal prototype to avoid an error.
11988 Use char because int might match the return type of a GCC
11989 builtin and then its argument prototype would still apply. */
11990 #ifdef __cplusplus
11991 extern "C"
11992 #endif
11993 char XftFontOpen ();
11995 main ()
11997 return XftFontOpen ();
11999 return 0;
12001 _ACEOF
12002 rm -f conftest.$ac_objext conftest$ac_exeext
12003 if { (ac_try="$ac_link"
12004 case "(($ac_try" in
12005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12006 *) ac_try_echo=$ac_try;;
12007 esac
12008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12009 (eval "$ac_link") 2>conftest.er1
12010 ac_status=$?
12011 grep -v '^ *+' conftest.er1 >conftest.err
12012 rm -f conftest.er1
12013 cat conftest.err >&5
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); } && {
12016 test -z "$ac_c_werror_flag" ||
12017 test ! -s conftest.err
12018 } && test -s conftest$ac_exeext &&
12019 $as_test_x conftest$ac_exeext; then
12020 ac_cv_lib_Xft_XftFontOpen=yes
12021 else
12022 echo "$as_me: failed program was:" >&5
12023 sed 's/^/| /' conftest.$ac_ext >&5
12025 ac_cv_lib_Xft_XftFontOpen=no
12028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12029 conftest$ac_exeext conftest.$ac_ext
12030 LIBS=$ac_check_lib_save_LIBS
12032 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12033 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12034 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12035 HAVE_XFT=yes
12042 if test "${HAVE_XFT}" = "yes"; then
12044 cat >>confdefs.h <<\_ACEOF
12045 #define HAVE_XFT 1
12046 _ACEOF
12049 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12050 else
12051 CFLAGS="$OLD_CPPFLAGS"
12052 CFLAGS="$OLD_CFLAGS"
12053 LIBS="$OLD_LIBS"
12058 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12059 if test x"${HAVE_X11R5}" = xyes; then
12060 { echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
12061 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; }
12062 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
12063 echo $ECHO_N "(cached) $ECHO_C" >&6
12064 else
12065 cat >conftest.$ac_ext <<_ACEOF
12066 /* confdefs.h. */
12067 _ACEOF
12068 cat confdefs.h >>conftest.$ac_ext
12069 cat >>conftest.$ac_ext <<_ACEOF
12070 /* end confdefs.h. */
12072 #include <X11/Intrinsic.h>
12073 #include <X11/Xaw/Simple.h>
12075 main ()
12079 return 0;
12081 _ACEOF
12082 rm -f conftest.$ac_objext conftest$ac_exeext
12083 if { (ac_try="$ac_link"
12084 case "(($ac_try" in
12085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12086 *) ac_try_echo=$ac_try;;
12087 esac
12088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12089 (eval "$ac_link") 2>conftest.er1
12090 ac_status=$?
12091 grep -v '^ *+' conftest.er1 >conftest.err
12092 rm -f conftest.er1
12093 cat conftest.err >&5
12094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12095 (exit $ac_status); } && {
12096 test -z "$ac_c_werror_flag" ||
12097 test ! -s conftest.err
12098 } && test -s conftest$ac_exeext &&
12099 $as_test_x conftest$ac_exeext; then
12100 emacs_cv_x11_version_5_with_xaw=yes
12101 else
12102 echo "$as_me: failed program was:" >&5
12103 sed 's/^/| /' conftest.$ac_ext >&5
12105 emacs_cv_x11_version_5_with_xaw=no
12108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12109 conftest$ac_exeext conftest.$ac_ext
12112 if test $emacs_cv_x11_version_5_with_xaw = yes; then
12113 { echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
12114 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; }
12115 USE_X_TOOLKIT=LUCID
12116 else
12117 if test x"${USE_X_TOOLKIT}" = xLUCID; then
12118 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12119 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12120 { (exit 1); exit 1; }; }
12121 else
12122 { echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
12123 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; }
12124 USE_X_TOOLKIT=none
12127 else
12128 USE_X_TOOLKIT=none
12132 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12134 if test "${USE_X_TOOLKIT}" != "none"; then
12135 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12136 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12137 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12138 echo $ECHO_N "(cached) $ECHO_C" >&6
12139 else
12140 cat >conftest.$ac_ext <<_ACEOF
12141 /* confdefs.h. */
12142 _ACEOF
12143 cat confdefs.h >>conftest.$ac_ext
12144 cat >>conftest.$ac_ext <<_ACEOF
12145 /* end confdefs.h. */
12146 #include <X11/Intrinsic.h>
12148 main ()
12150 #if XtSpecificationRelease < 6
12151 fail;
12152 #endif
12155 return 0;
12157 _ACEOF
12158 rm -f conftest.$ac_objext conftest$ac_exeext
12159 if { (ac_try="$ac_link"
12160 case "(($ac_try" in
12161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12162 *) ac_try_echo=$ac_try;;
12163 esac
12164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12165 (eval "$ac_link") 2>conftest.er1
12166 ac_status=$?
12167 grep -v '^ *+' conftest.er1 >conftest.err
12168 rm -f conftest.er1
12169 cat conftest.err >&5
12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); } && {
12172 test -z "$ac_c_werror_flag" ||
12173 test ! -s conftest.err
12174 } && test -s conftest$ac_exeext &&
12175 $as_test_x conftest$ac_exeext; then
12176 emacs_cv_x11_toolkit_version_6=yes
12177 else
12178 echo "$as_me: failed program was:" >&5
12179 sed 's/^/| /' conftest.$ac_ext >&5
12181 emacs_cv_x11_toolkit_version_6=no
12184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12185 conftest$ac_exeext conftest.$ac_ext
12188 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12189 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12190 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12191 echo "${ECHO_T}6 or newer" >&6; }
12193 cat >>confdefs.h <<\_ACEOF
12194 #define HAVE_X11XTR6 1
12195 _ACEOF
12197 else
12198 { echo "$as_me:$LINENO: result: before 6" >&5
12199 echo "${ECHO_T}before 6" >&6; }
12202 OLDLIBS="$LIBS"
12203 if test x$HAVE_X11XTR6 = xyes; then
12204 LIBS="-lXt -lSM -lICE $LIBS"
12205 else
12206 LIBS="-lXt $LIBS"
12209 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12210 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12211 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12212 echo $ECHO_N "(cached) $ECHO_C" >&6
12213 else
12214 ac_check_lib_save_LIBS=$LIBS
12215 LIBS="-lXmu $LIBS"
12216 cat >conftest.$ac_ext <<_ACEOF
12217 /* confdefs.h. */
12218 _ACEOF
12219 cat confdefs.h >>conftest.$ac_ext
12220 cat >>conftest.$ac_ext <<_ACEOF
12221 /* end confdefs.h. */
12223 /* Override any GCC internal prototype to avoid an error.
12224 Use char because int might match the return type of a GCC
12225 builtin and then its argument prototype would still apply. */
12226 #ifdef __cplusplus
12227 extern "C"
12228 #endif
12229 char XmuConvertStandardSelection ();
12231 main ()
12233 return XmuConvertStandardSelection ();
12235 return 0;
12237 _ACEOF
12238 rm -f conftest.$ac_objext conftest$ac_exeext
12239 if { (ac_try="$ac_link"
12240 case "(($ac_try" in
12241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12242 *) ac_try_echo=$ac_try;;
12243 esac
12244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12245 (eval "$ac_link") 2>conftest.er1
12246 ac_status=$?
12247 grep -v '^ *+' conftest.er1 >conftest.err
12248 rm -f conftest.er1
12249 cat conftest.err >&5
12250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251 (exit $ac_status); } && {
12252 test -z "$ac_c_werror_flag" ||
12253 test ! -s conftest.err
12254 } && test -s conftest$ac_exeext &&
12255 $as_test_x conftest$ac_exeext; then
12256 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12257 else
12258 echo "$as_me: failed program was:" >&5
12259 sed 's/^/| /' conftest.$ac_ext >&5
12261 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12265 conftest$ac_exeext conftest.$ac_ext
12266 LIBS=$ac_check_lib_save_LIBS
12268 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12269 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12270 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12271 cat >>confdefs.h <<_ACEOF
12272 #define HAVE_LIBXMU 1
12273 _ACEOF
12275 LIBS="-lXmu $LIBS"
12279 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12282 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12283 if test "${HAVE_X11}" = "yes"; then
12284 if test "${USE_X_TOOLKIT}" != "none"; then
12286 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12287 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12288 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12289 echo $ECHO_N "(cached) $ECHO_C" >&6
12290 else
12291 ac_check_lib_save_LIBS=$LIBS
12292 LIBS="-lXext $LIBS"
12293 cat >conftest.$ac_ext <<_ACEOF
12294 /* confdefs.h. */
12295 _ACEOF
12296 cat confdefs.h >>conftest.$ac_ext
12297 cat >>conftest.$ac_ext <<_ACEOF
12298 /* end confdefs.h. */
12300 /* Override any GCC internal prototype to avoid an error.
12301 Use char because int might match the return type of a GCC
12302 builtin and then its argument prototype would still apply. */
12303 #ifdef __cplusplus
12304 extern "C"
12305 #endif
12306 char XShapeQueryExtension ();
12308 main ()
12310 return XShapeQueryExtension ();
12312 return 0;
12314 _ACEOF
12315 rm -f conftest.$ac_objext conftest$ac_exeext
12316 if { (ac_try="$ac_link"
12317 case "(($ac_try" in
12318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12319 *) ac_try_echo=$ac_try;;
12320 esac
12321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12322 (eval "$ac_link") 2>conftest.er1
12323 ac_status=$?
12324 grep -v '^ *+' conftest.er1 >conftest.err
12325 rm -f conftest.er1
12326 cat conftest.err >&5
12327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328 (exit $ac_status); } && {
12329 test -z "$ac_c_werror_flag" ||
12330 test ! -s conftest.err
12331 } && test -s conftest$ac_exeext &&
12332 $as_test_x conftest$ac_exeext; then
12333 ac_cv_lib_Xext_XShapeQueryExtension=yes
12334 else
12335 echo "$as_me: failed program was:" >&5
12336 sed 's/^/| /' conftest.$ac_ext >&5
12338 ac_cv_lib_Xext_XShapeQueryExtension=no
12341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12342 conftest$ac_exeext conftest.$ac_ext
12343 LIBS=$ac_check_lib_save_LIBS
12345 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12346 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12347 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12348 cat >>confdefs.h <<_ACEOF
12349 #define HAVE_LIBXEXT 1
12350 _ACEOF
12352 LIBS="-lXext $LIBS"
12359 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12360 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12361 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12362 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12363 echo $ECHO_N "(cached) $ECHO_C" >&6
12364 else
12365 cat >conftest.$ac_ext <<_ACEOF
12366 /* confdefs.h. */
12367 _ACEOF
12368 cat confdefs.h >>conftest.$ac_ext
12369 cat >>conftest.$ac_ext <<_ACEOF
12370 /* end confdefs.h. */
12371 #include <Xm/Xm.h>
12373 main ()
12375 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12376 int x = 5;
12377 #else
12378 Motif version prior to 2.1.
12379 #endif
12381 return 0;
12383 _ACEOF
12384 rm -f conftest.$ac_objext
12385 if { (ac_try="$ac_compile"
12386 case "(($ac_try" in
12387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12388 *) ac_try_echo=$ac_try;;
12389 esac
12390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12391 (eval "$ac_compile") 2>conftest.er1
12392 ac_status=$?
12393 grep -v '^ *+' conftest.er1 >conftest.err
12394 rm -f conftest.er1
12395 cat conftest.err >&5
12396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397 (exit $ac_status); } && {
12398 test -z "$ac_c_werror_flag" ||
12399 test ! -s conftest.err
12400 } && test -s conftest.$ac_objext; then
12401 emacs_cv_motif_version_2_1=yes
12402 else
12403 echo "$as_me: failed program was:" >&5
12404 sed 's/^/| /' conftest.$ac_ext >&5
12406 emacs_cv_motif_version_2_1=no
12409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12411 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12412 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12413 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12414 if test $emacs_cv_motif_version_2_1 = yes; then
12415 HAVE_LIBXP=no
12417 cat >>confdefs.h <<\_ACEOF
12418 #define HAVE_MOTIF_2_1 1
12419 _ACEOF
12421 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12422 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12423 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12424 echo $ECHO_N "(cached) $ECHO_C" >&6
12425 else
12426 ac_check_lib_save_LIBS=$LIBS
12427 LIBS="-lXp $LIBS"
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. */
12435 /* Override any GCC internal prototype to avoid an error.
12436 Use char because int might match the return type of a GCC
12437 builtin and then its argument prototype would still apply. */
12438 #ifdef __cplusplus
12439 extern "C"
12440 #endif
12441 char XpCreateContext ();
12443 main ()
12445 return XpCreateContext ();
12447 return 0;
12449 _ACEOF
12450 rm -f conftest.$ac_objext conftest$ac_exeext
12451 if { (ac_try="$ac_link"
12452 case "(($ac_try" in
12453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12454 *) ac_try_echo=$ac_try;;
12455 esac
12456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12457 (eval "$ac_link") 2>conftest.er1
12458 ac_status=$?
12459 grep -v '^ *+' conftest.er1 >conftest.err
12460 rm -f conftest.er1
12461 cat conftest.err >&5
12462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463 (exit $ac_status); } && {
12464 test -z "$ac_c_werror_flag" ||
12465 test ! -s conftest.err
12466 } && test -s conftest$ac_exeext &&
12467 $as_test_x conftest$ac_exeext; then
12468 ac_cv_lib_Xp_XpCreateContext=yes
12469 else
12470 echo "$as_me: failed program was:" >&5
12471 sed 's/^/| /' conftest.$ac_ext >&5
12473 ac_cv_lib_Xp_XpCreateContext=no
12476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12477 conftest$ac_exeext conftest.$ac_ext
12478 LIBS=$ac_check_lib_save_LIBS
12480 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12481 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12482 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12483 HAVE_LIBXP=yes
12486 if test ${HAVE_LIBXP} = yes; then
12488 cat >>confdefs.h <<\_ACEOF
12489 #define HAVE_LIBXP 1
12490 _ACEOF
12493 else
12494 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12495 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12496 if test "${emacs_cv_lesstif+set}" = set; then
12497 echo $ECHO_N "(cached) $ECHO_C" >&6
12498 else
12499 # We put this in CFLAGS temporarily to precede other -I options
12500 # that might be in CFLAGS temporarily.
12501 # We put this in CPPFLAGS where it precedes the other -I options.
12502 OLD_CPPFLAGS=$CPPFLAGS
12503 OLD_CFLAGS=$CFLAGS
12504 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12505 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12506 cat >conftest.$ac_ext <<_ACEOF
12507 /* confdefs.h. */
12508 _ACEOF
12509 cat confdefs.h >>conftest.$ac_ext
12510 cat >>conftest.$ac_ext <<_ACEOF
12511 /* end confdefs.h. */
12512 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12514 main ()
12516 int x = 5;
12518 return 0;
12520 _ACEOF
12521 rm -f conftest.$ac_objext
12522 if { (ac_try="$ac_compile"
12523 case "(($ac_try" in
12524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12525 *) ac_try_echo=$ac_try;;
12526 esac
12527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12528 (eval "$ac_compile") 2>conftest.er1
12529 ac_status=$?
12530 grep -v '^ *+' conftest.er1 >conftest.err
12531 rm -f conftest.er1
12532 cat conftest.err >&5
12533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534 (exit $ac_status); } && {
12535 test -z "$ac_c_werror_flag" ||
12536 test ! -s conftest.err
12537 } && test -s conftest.$ac_objext; then
12538 emacs_cv_lesstif=yes
12539 else
12540 echo "$as_me: failed program was:" >&5
12541 sed 's/^/| /' conftest.$ac_ext >&5
12543 emacs_cv_lesstif=no
12546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12548 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12549 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12550 if test $emacs_cv_lesstif = yes; then
12551 # Make sure this -I option remains in CPPFLAGS after it is set
12552 # back to REAL_CPPFLAGS.
12553 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12554 # have those other -I options anyway. Ultimately, having this
12555 # directory ultimately in CPPFLAGS will be enough.
12556 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12557 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12558 else
12559 CFLAGS=$OLD_CFLAGS
12560 CPPFLAGS=$OLD_CPPFLAGS
12565 ### Is -lXaw3d available?
12566 HAVE_XAW3D=no
12567 if test "${HAVE_X11}" = "yes"; then
12568 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
12569 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
12570 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; }
12571 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
12572 echo $ECHO_N "(cached) $ECHO_C" >&6
12573 else
12574 cat >conftest.$ac_ext <<_ACEOF
12575 /* confdefs.h. */
12576 _ACEOF
12577 cat confdefs.h >>conftest.$ac_ext
12578 cat >>conftest.$ac_ext <<_ACEOF
12579 /* end confdefs.h. */
12580 #include <X11/Xaw3d/Scrollbar.h>
12581 _ACEOF
12582 if { (ac_try="$ac_cpp conftest.$ac_ext"
12583 case "(($ac_try" in
12584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12585 *) ac_try_echo=$ac_try;;
12586 esac
12587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12589 ac_status=$?
12590 grep -v '^ *+' conftest.er1 >conftest.err
12591 rm -f conftest.er1
12592 cat conftest.err >&5
12593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594 (exit $ac_status); } >/dev/null && {
12595 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12596 test ! -s conftest.err
12597 }; then
12598 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
12599 else
12600 echo "$as_me: failed program was:" >&5
12601 sed 's/^/| /' conftest.$ac_ext >&5
12603 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
12606 rm -f conftest.err conftest.$ac_ext
12608 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
12609 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; }
12610 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
12611 { echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12612 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; }
12613 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
12614 echo $ECHO_N "(cached) $ECHO_C" >&6
12615 else
12616 ac_check_lib_save_LIBS=$LIBS
12617 LIBS="-lXaw3d $LIBS"
12618 cat >conftest.$ac_ext <<_ACEOF
12619 /* confdefs.h. */
12620 _ACEOF
12621 cat confdefs.h >>conftest.$ac_ext
12622 cat >>conftest.$ac_ext <<_ACEOF
12623 /* end confdefs.h. */
12625 /* Override any GCC internal prototype to avoid an error.
12626 Use char because int might match the return type of a GCC
12627 builtin and then its argument prototype would still apply. */
12628 #ifdef __cplusplus
12629 extern "C"
12630 #endif
12631 char XawScrollbarSetThumb ();
12633 main ()
12635 return XawScrollbarSetThumb ();
12637 return 0;
12639 _ACEOF
12640 rm -f conftest.$ac_objext conftest$ac_exeext
12641 if { (ac_try="$ac_link"
12642 case "(($ac_try" in
12643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12644 *) ac_try_echo=$ac_try;;
12645 esac
12646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12647 (eval "$ac_link") 2>conftest.er1
12648 ac_status=$?
12649 grep -v '^ *+' conftest.er1 >conftest.err
12650 rm -f conftest.er1
12651 cat conftest.err >&5
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); } && {
12654 test -z "$ac_c_werror_flag" ||
12655 test ! -s conftest.err
12656 } && test -s conftest$ac_exeext &&
12657 $as_test_x conftest$ac_exeext; then
12658 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
12659 else
12660 echo "$as_me: failed program was:" >&5
12661 sed 's/^/| /' conftest.$ac_ext >&5
12663 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
12666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12667 conftest$ac_exeext conftest.$ac_ext
12668 LIBS=$ac_check_lib_save_LIBS
12670 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12671 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12672 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
12673 HAVE_XAW3D=yes
12679 if test "${HAVE_XAW3D}" = "yes"; then
12681 cat >>confdefs.h <<\_ACEOF
12682 #define HAVE_XAW3D 1
12683 _ACEOF
12691 USE_TOOLKIT_SCROLL_BARS=no
12692 if test "${with_toolkit_scroll_bars}" != "no"; then
12693 if test "${USE_X_TOOLKIT}" != "none"; then
12694 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12695 cat >>confdefs.h <<\_ACEOF
12696 #define USE_TOOLKIT_SCROLL_BARS 1
12697 _ACEOF
12699 HAVE_XAW3D=no
12700 USE_TOOLKIT_SCROLL_BARS=yes
12701 elif test "${HAVE_XAW3D}" = "yes"; then
12702 cat >>confdefs.h <<\_ACEOF
12703 #define USE_TOOLKIT_SCROLL_BARS 1
12704 _ACEOF
12706 USE_TOOLKIT_SCROLL_BARS=yes
12708 elif test "${HAVE_GTK}" = "yes"; then
12709 cat >>confdefs.h <<\_ACEOF
12710 #define USE_TOOLKIT_SCROLL_BARS 1
12711 _ACEOF
12713 USE_TOOLKIT_SCROLL_BARS=yes
12714 elif test "${HAVE_CARBON}" = "yes"; then
12715 cat >>confdefs.h <<\_ACEOF
12716 #define USE_TOOLKIT_SCROLL_BARS 1
12717 _ACEOF
12719 USE_TOOLKIT_SCROLL_BARS=yes
12723 cat >conftest.$ac_ext <<_ACEOF
12724 /* confdefs.h. */
12725 _ACEOF
12726 cat confdefs.h >>conftest.$ac_ext
12727 cat >>conftest.$ac_ext <<_ACEOF
12728 /* end confdefs.h. */
12730 #include <X11/Xlib.h>
12731 #include <X11/Xresource.h>
12733 main ()
12735 XIMProc callback;
12737 return 0;
12739 _ACEOF
12740 rm -f conftest.$ac_objext
12741 if { (ac_try="$ac_compile"
12742 case "(($ac_try" in
12743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12744 *) ac_try_echo=$ac_try;;
12745 esac
12746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12747 (eval "$ac_compile") 2>conftest.er1
12748 ac_status=$?
12749 grep -v '^ *+' conftest.er1 >conftest.err
12750 rm -f conftest.er1
12751 cat conftest.err >&5
12752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753 (exit $ac_status); } && {
12754 test -z "$ac_c_werror_flag" ||
12755 test ! -s conftest.err
12756 } && test -s conftest.$ac_objext; then
12757 HAVE_XIM=yes
12759 cat >>confdefs.h <<\_ACEOF
12760 #define HAVE_XIM 1
12761 _ACEOF
12763 else
12764 echo "$as_me: failed program was:" >&5
12765 sed 's/^/| /' conftest.$ac_ext >&5
12767 HAVE_XIM=no
12770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12773 if test "${with_xim}" != "no"; then
12775 cat >>confdefs.h <<\_ACEOF
12776 #define USE_XIM 1
12777 _ACEOF
12782 if test "${HAVE_XIM}" != "no"; then
12783 late_CFLAGS=$CFLAGS
12784 if test "$GCC" = yes; then
12785 CFLAGS="$CFLAGS --pedantic-errors"
12787 cat >conftest.$ac_ext <<_ACEOF
12788 /* confdefs.h. */
12789 _ACEOF
12790 cat confdefs.h >>conftest.$ac_ext
12791 cat >>conftest.$ac_ext <<_ACEOF
12792 /* end confdefs.h. */
12794 #include <X11/Xlib.h>
12795 #include <X11/Xresource.h>
12797 main ()
12799 Display *display;
12800 XrmDatabase db;
12801 char *res_name;
12802 char *res_class;
12803 XIMProc callback;
12804 XPointer *client_data;
12805 #ifndef __GNUC__
12806 /* If we're not using GCC, it's probably not XFree86, and this is
12807 probably right, but we can't use something like --pedantic-errors. */
12808 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12809 char*, XIMProc, XPointer*);
12810 #endif
12811 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12812 client_data);
12814 return 0;
12816 _ACEOF
12817 rm -f conftest.$ac_objext
12818 if { (ac_try="$ac_compile"
12819 case "(($ac_try" in
12820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12821 *) ac_try_echo=$ac_try;;
12822 esac
12823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12824 (eval "$ac_compile") 2>conftest.er1
12825 ac_status=$?
12826 grep -v '^ *+' conftest.er1 >conftest.err
12827 rm -f conftest.er1
12828 cat conftest.err >&5
12829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830 (exit $ac_status); } && {
12831 test -z "$ac_c_werror_flag" ||
12832 test ! -s conftest.err
12833 } && test -s conftest.$ac_objext; then
12834 emacs_cv_arg6_star=yes
12835 else
12836 echo "$as_me: failed program was:" >&5
12837 sed 's/^/| /' conftest.$ac_ext >&5
12842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12844 if test "$emacs_cv_arg6_star" = yes; then
12845 cat >>confdefs.h <<\_ACEOF
12846 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12847 _ACEOF
12849 else
12850 cat >>confdefs.h <<\_ACEOF
12851 #define XRegisterIMInstantiateCallback_arg6 XPointer
12852 _ACEOF
12855 CFLAGS=$late_CFLAGS
12858 ### Use -lXpm if available, unless `--with-xpm=no'.
12859 HAVE_XPM=no
12860 if test "${HAVE_X11}" = "yes"; then
12861 if test "${with_xpm}" != "no"; then
12862 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12863 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12864 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12865 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12866 echo $ECHO_N "(cached) $ECHO_C" >&6
12868 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12869 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12870 else
12871 # Is the header compilable?
12872 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
12873 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
12874 cat >conftest.$ac_ext <<_ACEOF
12875 /* confdefs.h. */
12876 _ACEOF
12877 cat confdefs.h >>conftest.$ac_ext
12878 cat >>conftest.$ac_ext <<_ACEOF
12879 /* end confdefs.h. */
12880 $ac_includes_default
12881 #include <X11/xpm.h>
12882 _ACEOF
12883 rm -f conftest.$ac_objext
12884 if { (ac_try="$ac_compile"
12885 case "(($ac_try" in
12886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12887 *) ac_try_echo=$ac_try;;
12888 esac
12889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12890 (eval "$ac_compile") 2>conftest.er1
12891 ac_status=$?
12892 grep -v '^ *+' conftest.er1 >conftest.err
12893 rm -f conftest.er1
12894 cat conftest.err >&5
12895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896 (exit $ac_status); } && {
12897 test -z "$ac_c_werror_flag" ||
12898 test ! -s conftest.err
12899 } && test -s conftest.$ac_objext; then
12900 ac_header_compiler=yes
12901 else
12902 echo "$as_me: failed program was:" >&5
12903 sed 's/^/| /' conftest.$ac_ext >&5
12905 ac_header_compiler=no
12908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12909 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12910 echo "${ECHO_T}$ac_header_compiler" >&6; }
12912 # Is the header present?
12913 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
12914 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
12915 cat >conftest.$ac_ext <<_ACEOF
12916 /* confdefs.h. */
12917 _ACEOF
12918 cat confdefs.h >>conftest.$ac_ext
12919 cat >>conftest.$ac_ext <<_ACEOF
12920 /* end confdefs.h. */
12921 #include <X11/xpm.h>
12922 _ACEOF
12923 if { (ac_try="$ac_cpp conftest.$ac_ext"
12924 case "(($ac_try" in
12925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12926 *) ac_try_echo=$ac_try;;
12927 esac
12928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12929 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12930 ac_status=$?
12931 grep -v '^ *+' conftest.er1 >conftest.err
12932 rm -f conftest.er1
12933 cat conftest.err >&5
12934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935 (exit $ac_status); } >/dev/null && {
12936 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12937 test ! -s conftest.err
12938 }; then
12939 ac_header_preproc=yes
12940 else
12941 echo "$as_me: failed program was:" >&5
12942 sed 's/^/| /' conftest.$ac_ext >&5
12944 ac_header_preproc=no
12947 rm -f conftest.err conftest.$ac_ext
12948 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12949 echo "${ECHO_T}$ac_header_preproc" >&6; }
12951 # So? What about this header?
12952 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12953 yes:no: )
12954 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
12955 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12956 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
12957 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
12958 ac_header_preproc=yes
12960 no:yes:* )
12961 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
12962 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
12963 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
12964 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
12965 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
12966 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
12967 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
12968 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
12969 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
12970 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
12971 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
12972 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
12975 esac
12976 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12977 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12978 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12979 echo $ECHO_N "(cached) $ECHO_C" >&6
12980 else
12981 ac_cv_header_X11_xpm_h=$ac_header_preproc
12983 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12984 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12987 if test $ac_cv_header_X11_xpm_h = yes; then
12988 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
12989 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
12990 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
12991 echo $ECHO_N "(cached) $ECHO_C" >&6
12992 else
12993 ac_check_lib_save_LIBS=$LIBS
12994 LIBS="-lXpm -lX11 $LIBS"
12995 cat >conftest.$ac_ext <<_ACEOF
12996 /* confdefs.h. */
12997 _ACEOF
12998 cat confdefs.h >>conftest.$ac_ext
12999 cat >>conftest.$ac_ext <<_ACEOF
13000 /* end confdefs.h. */
13002 /* Override any GCC internal prototype to avoid an error.
13003 Use char because int might match the return type of a GCC
13004 builtin and then its argument prototype would still apply. */
13005 #ifdef __cplusplus
13006 extern "C"
13007 #endif
13008 char XpmReadFileToPixmap ();
13010 main ()
13012 return XpmReadFileToPixmap ();
13014 return 0;
13016 _ACEOF
13017 rm -f conftest.$ac_objext conftest$ac_exeext
13018 if { (ac_try="$ac_link"
13019 case "(($ac_try" in
13020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13021 *) ac_try_echo=$ac_try;;
13022 esac
13023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13024 (eval "$ac_link") 2>conftest.er1
13025 ac_status=$?
13026 grep -v '^ *+' conftest.er1 >conftest.err
13027 rm -f conftest.er1
13028 cat conftest.err >&5
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); } && {
13031 test -z "$ac_c_werror_flag" ||
13032 test ! -s conftest.err
13033 } && test -s conftest$ac_exeext &&
13034 $as_test_x conftest$ac_exeext; then
13035 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13036 else
13037 echo "$as_me: failed program was:" >&5
13038 sed 's/^/| /' conftest.$ac_ext >&5
13040 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13044 conftest$ac_exeext conftest.$ac_ext
13045 LIBS=$ac_check_lib_save_LIBS
13047 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13048 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13049 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13050 HAVE_XPM=yes
13056 if test "${HAVE_XPM}" = "yes"; then
13057 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13058 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13059 cat >conftest.$ac_ext <<_ACEOF
13060 /* confdefs.h. */
13061 _ACEOF
13062 cat confdefs.h >>conftest.$ac_ext
13063 cat >>conftest.$ac_ext <<_ACEOF
13064 /* end confdefs.h. */
13065 #include "X11/xpm.h"
13066 #ifndef XpmReturnAllocPixels
13067 no_return_alloc_pixels
13068 #endif
13070 _ACEOF
13071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13072 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13073 HAVE_XPM=no
13074 else
13075 HAVE_XPM=yes
13077 rm -f conftest*
13080 if test "${HAVE_XPM}" = "yes"; then
13081 { echo "$as_me:$LINENO: result: yes" >&5
13082 echo "${ECHO_T}yes" >&6; }
13083 else
13084 { echo "$as_me:$LINENO: result: no" >&5
13085 echo "${ECHO_T}no" >&6; }
13090 if test "${HAVE_XPM}" = "yes"; then
13092 cat >>confdefs.h <<\_ACEOF
13093 #define HAVE_XPM 1
13094 _ACEOF
13099 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13100 HAVE_JPEG=no
13101 if test "${HAVE_X11}" = "yes"; then
13102 if test "${with_jpeg}" != "no"; then
13103 if test "${ac_cv_header_jerror_h+set}" = set; then
13104 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13105 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13106 if test "${ac_cv_header_jerror_h+set}" = set; then
13107 echo $ECHO_N "(cached) $ECHO_C" >&6
13109 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13110 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13111 else
13112 # Is the header compilable?
13113 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13114 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13115 cat >conftest.$ac_ext <<_ACEOF
13116 /* confdefs.h. */
13117 _ACEOF
13118 cat confdefs.h >>conftest.$ac_ext
13119 cat >>conftest.$ac_ext <<_ACEOF
13120 /* end confdefs.h. */
13121 $ac_includes_default
13122 #include <jerror.h>
13123 _ACEOF
13124 rm -f conftest.$ac_objext
13125 if { (ac_try="$ac_compile"
13126 case "(($ac_try" in
13127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13128 *) ac_try_echo=$ac_try;;
13129 esac
13130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13131 (eval "$ac_compile") 2>conftest.er1
13132 ac_status=$?
13133 grep -v '^ *+' conftest.er1 >conftest.err
13134 rm -f conftest.er1
13135 cat conftest.err >&5
13136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137 (exit $ac_status); } && {
13138 test -z "$ac_c_werror_flag" ||
13139 test ! -s conftest.err
13140 } && test -s conftest.$ac_objext; then
13141 ac_header_compiler=yes
13142 else
13143 echo "$as_me: failed program was:" >&5
13144 sed 's/^/| /' conftest.$ac_ext >&5
13146 ac_header_compiler=no
13149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13150 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13151 echo "${ECHO_T}$ac_header_compiler" >&6; }
13153 # Is the header present?
13154 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13155 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13156 cat >conftest.$ac_ext <<_ACEOF
13157 /* confdefs.h. */
13158 _ACEOF
13159 cat confdefs.h >>conftest.$ac_ext
13160 cat >>conftest.$ac_ext <<_ACEOF
13161 /* end confdefs.h. */
13162 #include <jerror.h>
13163 _ACEOF
13164 if { (ac_try="$ac_cpp conftest.$ac_ext"
13165 case "(($ac_try" in
13166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13167 *) ac_try_echo=$ac_try;;
13168 esac
13169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13171 ac_status=$?
13172 grep -v '^ *+' conftest.er1 >conftest.err
13173 rm -f conftest.er1
13174 cat conftest.err >&5
13175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176 (exit $ac_status); } >/dev/null && {
13177 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13178 test ! -s conftest.err
13179 }; then
13180 ac_header_preproc=yes
13181 else
13182 echo "$as_me: failed program was:" >&5
13183 sed 's/^/| /' conftest.$ac_ext >&5
13185 ac_header_preproc=no
13188 rm -f conftest.err conftest.$ac_ext
13189 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13190 echo "${ECHO_T}$ac_header_preproc" >&6; }
13192 # So? What about this header?
13193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13194 yes:no: )
13195 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13196 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13197 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13198 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13199 ac_header_preproc=yes
13201 no:yes:* )
13202 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13203 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13204 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13205 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13206 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13207 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13208 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13209 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13210 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13211 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13212 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13213 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13216 esac
13217 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13218 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13219 if test "${ac_cv_header_jerror_h+set}" = set; then
13220 echo $ECHO_N "(cached) $ECHO_C" >&6
13221 else
13222 ac_cv_header_jerror_h=$ac_header_preproc
13224 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13225 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13228 if test $ac_cv_header_jerror_h = yes; then
13229 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13230 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13231 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13232 echo $ECHO_N "(cached) $ECHO_C" >&6
13233 else
13234 ac_check_lib_save_LIBS=$LIBS
13235 LIBS="-ljpeg $LIBS"
13236 cat >conftest.$ac_ext <<_ACEOF
13237 /* confdefs.h. */
13238 _ACEOF
13239 cat confdefs.h >>conftest.$ac_ext
13240 cat >>conftest.$ac_ext <<_ACEOF
13241 /* end confdefs.h. */
13243 /* Override any GCC internal prototype to avoid an error.
13244 Use char because int might match the return type of a GCC
13245 builtin and then its argument prototype would still apply. */
13246 #ifdef __cplusplus
13247 extern "C"
13248 #endif
13249 char jpeg_destroy_compress ();
13251 main ()
13253 return jpeg_destroy_compress ();
13255 return 0;
13257 _ACEOF
13258 rm -f conftest.$ac_objext conftest$ac_exeext
13259 if { (ac_try="$ac_link"
13260 case "(($ac_try" in
13261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13262 *) ac_try_echo=$ac_try;;
13263 esac
13264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13265 (eval "$ac_link") 2>conftest.er1
13266 ac_status=$?
13267 grep -v '^ *+' conftest.er1 >conftest.err
13268 rm -f conftest.er1
13269 cat conftest.err >&5
13270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271 (exit $ac_status); } && {
13272 test -z "$ac_c_werror_flag" ||
13273 test ! -s conftest.err
13274 } && test -s conftest$ac_exeext &&
13275 $as_test_x conftest$ac_exeext; then
13276 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13277 else
13278 echo "$as_me: failed program was:" >&5
13279 sed 's/^/| /' conftest.$ac_ext >&5
13281 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13285 conftest$ac_exeext conftest.$ac_ext
13286 LIBS=$ac_check_lib_save_LIBS
13288 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13289 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13290 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13291 HAVE_JPEG=yes
13300 if test "${HAVE_JPEG}" = "yes"; then
13301 cat >>confdefs.h <<\_ACEOF
13302 #define HAVE_JPEG 1
13303 _ACEOF
13305 cat >conftest.$ac_ext <<_ACEOF
13306 /* confdefs.h. */
13307 _ACEOF
13308 cat confdefs.h >>conftest.$ac_ext
13309 cat >>conftest.$ac_ext <<_ACEOF
13310 /* end confdefs.h. */
13311 #include <jpeglib.h>
13312 version=JPEG_LIB_VERSION
13314 _ACEOF
13315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13316 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13317 cat >>confdefs.h <<\_ACEOF
13318 #define HAVE_JPEG 1
13319 _ACEOF
13321 else
13322 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13323 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13324 HAVE_JPEG=no
13326 rm -f conftest*
13331 ### Use -lpng if available, unless `--with-png=no'.
13332 HAVE_PNG=no
13333 if test "${HAVE_X11}" = "yes"; then
13334 if test "${with_png}" != "no"; then
13335 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13336 # in /usr/include/libpng.
13339 for ac_header in png.h libpng/png.h
13341 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13343 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13346 echo $ECHO_N "(cached) $ECHO_C" >&6
13348 ac_res=`eval echo '${'$as_ac_Header'}'`
13349 { echo "$as_me:$LINENO: result: $ac_res" >&5
13350 echo "${ECHO_T}$ac_res" >&6; }
13351 else
13352 # Is the header compilable?
13353 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13354 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13355 cat >conftest.$ac_ext <<_ACEOF
13356 /* confdefs.h. */
13357 _ACEOF
13358 cat confdefs.h >>conftest.$ac_ext
13359 cat >>conftest.$ac_ext <<_ACEOF
13360 /* end confdefs.h. */
13361 $ac_includes_default
13362 #include <$ac_header>
13363 _ACEOF
13364 rm -f conftest.$ac_objext
13365 if { (ac_try="$ac_compile"
13366 case "(($ac_try" in
13367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13368 *) ac_try_echo=$ac_try;;
13369 esac
13370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13371 (eval "$ac_compile") 2>conftest.er1
13372 ac_status=$?
13373 grep -v '^ *+' conftest.er1 >conftest.err
13374 rm -f conftest.er1
13375 cat conftest.err >&5
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); } && {
13378 test -z "$ac_c_werror_flag" ||
13379 test ! -s conftest.err
13380 } && test -s conftest.$ac_objext; then
13381 ac_header_compiler=yes
13382 else
13383 echo "$as_me: failed program was:" >&5
13384 sed 's/^/| /' conftest.$ac_ext >&5
13386 ac_header_compiler=no
13389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13390 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13391 echo "${ECHO_T}$ac_header_compiler" >&6; }
13393 # Is the header present?
13394 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13395 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13396 cat >conftest.$ac_ext <<_ACEOF
13397 /* confdefs.h. */
13398 _ACEOF
13399 cat confdefs.h >>conftest.$ac_ext
13400 cat >>conftest.$ac_ext <<_ACEOF
13401 /* end confdefs.h. */
13402 #include <$ac_header>
13403 _ACEOF
13404 if { (ac_try="$ac_cpp conftest.$ac_ext"
13405 case "(($ac_try" in
13406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13407 *) ac_try_echo=$ac_try;;
13408 esac
13409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13410 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13411 ac_status=$?
13412 grep -v '^ *+' conftest.er1 >conftest.err
13413 rm -f conftest.er1
13414 cat conftest.err >&5
13415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416 (exit $ac_status); } >/dev/null && {
13417 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13418 test ! -s conftest.err
13419 }; then
13420 ac_header_preproc=yes
13421 else
13422 echo "$as_me: failed program was:" >&5
13423 sed 's/^/| /' conftest.$ac_ext >&5
13425 ac_header_preproc=no
13428 rm -f conftest.err conftest.$ac_ext
13429 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13430 echo "${ECHO_T}$ac_header_preproc" >&6; }
13432 # So? What about this header?
13433 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13434 yes:no: )
13435 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13436 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13438 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13439 ac_header_preproc=yes
13441 no:yes:* )
13442 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13443 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13444 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13445 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13446 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13447 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13448 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13449 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13451 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13452 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13453 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13456 esac
13457 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13460 echo $ECHO_N "(cached) $ECHO_C" >&6
13461 else
13462 eval "$as_ac_Header=\$ac_header_preproc"
13464 ac_res=`eval echo '${'$as_ac_Header'}'`
13465 { echo "$as_me:$LINENO: result: $ac_res" >&5
13466 echo "${ECHO_T}$ac_res" >&6; }
13469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13470 cat >>confdefs.h <<_ACEOF
13471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13472 _ACEOF
13476 done
13478 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13479 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13480 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13481 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13482 echo $ECHO_N "(cached) $ECHO_C" >&6
13483 else
13484 ac_check_lib_save_LIBS=$LIBS
13485 LIBS="-lpng -lz -lm $LIBS"
13486 cat >conftest.$ac_ext <<_ACEOF
13487 /* confdefs.h. */
13488 _ACEOF
13489 cat confdefs.h >>conftest.$ac_ext
13490 cat >>conftest.$ac_ext <<_ACEOF
13491 /* end confdefs.h. */
13493 /* Override any GCC internal prototype to avoid an error.
13494 Use char because int might match the return type of a GCC
13495 builtin and then its argument prototype would still apply. */
13496 #ifdef __cplusplus
13497 extern "C"
13498 #endif
13499 char png_get_channels ();
13501 main ()
13503 return png_get_channels ();
13505 return 0;
13507 _ACEOF
13508 rm -f conftest.$ac_objext conftest$ac_exeext
13509 if { (ac_try="$ac_link"
13510 case "(($ac_try" in
13511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13512 *) ac_try_echo=$ac_try;;
13513 esac
13514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13515 (eval "$ac_link") 2>conftest.er1
13516 ac_status=$?
13517 grep -v '^ *+' conftest.er1 >conftest.err
13518 rm -f conftest.er1
13519 cat conftest.err >&5
13520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13521 (exit $ac_status); } && {
13522 test -z "$ac_c_werror_flag" ||
13523 test ! -s conftest.err
13524 } && test -s conftest$ac_exeext &&
13525 $as_test_x conftest$ac_exeext; then
13526 ac_cv_lib_png_png_get_channels=yes
13527 else
13528 echo "$as_me: failed program was:" >&5
13529 sed 's/^/| /' conftest.$ac_ext >&5
13531 ac_cv_lib_png_png_get_channels=no
13534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13535 conftest$ac_exeext conftest.$ac_ext
13536 LIBS=$ac_check_lib_save_LIBS
13538 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13539 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13540 if test $ac_cv_lib_png_png_get_channels = yes; then
13541 HAVE_PNG=yes
13547 if test "${HAVE_PNG}" = "yes"; then
13549 cat >>confdefs.h <<\_ACEOF
13550 #define HAVE_PNG 1
13551 _ACEOF
13556 ### Use -ltiff if available, unless `--with-tiff=no'.
13557 HAVE_TIFF=no
13558 if test "${HAVE_X11}" = "yes"; then
13559 if test "${with_tiff}" != "no"; then
13560 if test "${ac_cv_header_tiffio_h+set}" = set; then
13561 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13562 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13563 if test "${ac_cv_header_tiffio_h+set}" = set; then
13564 echo $ECHO_N "(cached) $ECHO_C" >&6
13566 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13567 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13568 else
13569 # Is the header compilable?
13570 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13571 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13572 cat >conftest.$ac_ext <<_ACEOF
13573 /* confdefs.h. */
13574 _ACEOF
13575 cat confdefs.h >>conftest.$ac_ext
13576 cat >>conftest.$ac_ext <<_ACEOF
13577 /* end confdefs.h. */
13578 $ac_includes_default
13579 #include <tiffio.h>
13580 _ACEOF
13581 rm -f conftest.$ac_objext
13582 if { (ac_try="$ac_compile"
13583 case "(($ac_try" in
13584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13585 *) ac_try_echo=$ac_try;;
13586 esac
13587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13588 (eval "$ac_compile") 2>conftest.er1
13589 ac_status=$?
13590 grep -v '^ *+' conftest.er1 >conftest.err
13591 rm -f conftest.er1
13592 cat conftest.err >&5
13593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594 (exit $ac_status); } && {
13595 test -z "$ac_c_werror_flag" ||
13596 test ! -s conftest.err
13597 } && test -s conftest.$ac_objext; then
13598 ac_header_compiler=yes
13599 else
13600 echo "$as_me: failed program was:" >&5
13601 sed 's/^/| /' conftest.$ac_ext >&5
13603 ac_header_compiler=no
13606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13607 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13608 echo "${ECHO_T}$ac_header_compiler" >&6; }
13610 # Is the header present?
13611 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13612 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13613 cat >conftest.$ac_ext <<_ACEOF
13614 /* confdefs.h. */
13615 _ACEOF
13616 cat confdefs.h >>conftest.$ac_ext
13617 cat >>conftest.$ac_ext <<_ACEOF
13618 /* end confdefs.h. */
13619 #include <tiffio.h>
13620 _ACEOF
13621 if { (ac_try="$ac_cpp conftest.$ac_ext"
13622 case "(($ac_try" in
13623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13624 *) ac_try_echo=$ac_try;;
13625 esac
13626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13627 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13628 ac_status=$?
13629 grep -v '^ *+' conftest.er1 >conftest.err
13630 rm -f conftest.er1
13631 cat conftest.err >&5
13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633 (exit $ac_status); } >/dev/null && {
13634 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13635 test ! -s conftest.err
13636 }; then
13637 ac_header_preproc=yes
13638 else
13639 echo "$as_me: failed program was:" >&5
13640 sed 's/^/| /' conftest.$ac_ext >&5
13642 ac_header_preproc=no
13645 rm -f conftest.err conftest.$ac_ext
13646 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13647 echo "${ECHO_T}$ac_header_preproc" >&6; }
13649 # So? What about this header?
13650 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13651 yes:no: )
13652 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13653 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13654 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13655 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13656 ac_header_preproc=yes
13658 no:yes:* )
13659 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13660 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13661 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13662 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13663 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13664 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13665 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13666 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13667 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13668 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13669 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13670 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13673 esac
13674 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13675 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13676 if test "${ac_cv_header_tiffio_h+set}" = set; then
13677 echo $ECHO_N "(cached) $ECHO_C" >&6
13678 else
13679 ac_cv_header_tiffio_h=$ac_header_preproc
13681 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13682 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13685 if test $ac_cv_header_tiffio_h = yes; then
13686 tifflibs="-lz -lm"
13687 # At least one tiff package requires the jpeg library.
13688 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13689 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13690 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13691 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13692 echo $ECHO_N "(cached) $ECHO_C" >&6
13693 else
13694 ac_check_lib_save_LIBS=$LIBS
13695 LIBS="-ltiff $tifflibs $LIBS"
13696 cat >conftest.$ac_ext <<_ACEOF
13697 /* confdefs.h. */
13698 _ACEOF
13699 cat confdefs.h >>conftest.$ac_ext
13700 cat >>conftest.$ac_ext <<_ACEOF
13701 /* end confdefs.h. */
13703 /* Override any GCC internal prototype to avoid an error.
13704 Use char because int might match the return type of a GCC
13705 builtin and then its argument prototype would still apply. */
13706 #ifdef __cplusplus
13707 extern "C"
13708 #endif
13709 char TIFFGetVersion ();
13711 main ()
13713 return TIFFGetVersion ();
13715 return 0;
13717 _ACEOF
13718 rm -f conftest.$ac_objext conftest$ac_exeext
13719 if { (ac_try="$ac_link"
13720 case "(($ac_try" in
13721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13722 *) ac_try_echo=$ac_try;;
13723 esac
13724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13725 (eval "$ac_link") 2>conftest.er1
13726 ac_status=$?
13727 grep -v '^ *+' conftest.er1 >conftest.err
13728 rm -f conftest.er1
13729 cat conftest.err >&5
13730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731 (exit $ac_status); } && {
13732 test -z "$ac_c_werror_flag" ||
13733 test ! -s conftest.err
13734 } && test -s conftest$ac_exeext &&
13735 $as_test_x conftest$ac_exeext; then
13736 ac_cv_lib_tiff_TIFFGetVersion=yes
13737 else
13738 echo "$as_me: failed program was:" >&5
13739 sed 's/^/| /' conftest.$ac_ext >&5
13741 ac_cv_lib_tiff_TIFFGetVersion=no
13744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13745 conftest$ac_exeext conftest.$ac_ext
13746 LIBS=$ac_check_lib_save_LIBS
13748 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13749 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13750 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13751 HAVE_TIFF=yes
13759 if test "${HAVE_TIFF}" = "yes"; then
13761 cat >>confdefs.h <<\_ACEOF
13762 #define HAVE_TIFF 1
13763 _ACEOF
13768 ### Use -lgif if available, unless `--with-gif=no'.
13769 HAVE_GIF=no
13770 if test "${HAVE_X11}" = "yes"; then
13771 if test "${with_gif}" != "no"; then
13772 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13773 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13774 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13775 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13776 echo $ECHO_N "(cached) $ECHO_C" >&6
13778 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13779 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13780 else
13781 # Is the header compilable?
13782 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13783 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
13784 cat >conftest.$ac_ext <<_ACEOF
13785 /* confdefs.h. */
13786 _ACEOF
13787 cat confdefs.h >>conftest.$ac_ext
13788 cat >>conftest.$ac_ext <<_ACEOF
13789 /* end confdefs.h. */
13790 $ac_includes_default
13791 #include <gif_lib.h>
13792 _ACEOF
13793 rm -f conftest.$ac_objext
13794 if { (ac_try="$ac_compile"
13795 case "(($ac_try" in
13796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13797 *) ac_try_echo=$ac_try;;
13798 esac
13799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13800 (eval "$ac_compile") 2>conftest.er1
13801 ac_status=$?
13802 grep -v '^ *+' conftest.er1 >conftest.err
13803 rm -f conftest.er1
13804 cat conftest.err >&5
13805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806 (exit $ac_status); } && {
13807 test -z "$ac_c_werror_flag" ||
13808 test ! -s conftest.err
13809 } && test -s conftest.$ac_objext; then
13810 ac_header_compiler=yes
13811 else
13812 echo "$as_me: failed program was:" >&5
13813 sed 's/^/| /' conftest.$ac_ext >&5
13815 ac_header_compiler=no
13818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13819 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13820 echo "${ECHO_T}$ac_header_compiler" >&6; }
13822 # Is the header present?
13823 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
13824 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
13825 cat >conftest.$ac_ext <<_ACEOF
13826 /* confdefs.h. */
13827 _ACEOF
13828 cat confdefs.h >>conftest.$ac_ext
13829 cat >>conftest.$ac_ext <<_ACEOF
13830 /* end confdefs.h. */
13831 #include <gif_lib.h>
13832 _ACEOF
13833 if { (ac_try="$ac_cpp conftest.$ac_ext"
13834 case "(($ac_try" in
13835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13836 *) ac_try_echo=$ac_try;;
13837 esac
13838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13839 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13840 ac_status=$?
13841 grep -v '^ *+' conftest.er1 >conftest.err
13842 rm -f conftest.er1
13843 cat conftest.err >&5
13844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845 (exit $ac_status); } >/dev/null && {
13846 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13847 test ! -s conftest.err
13848 }; then
13849 ac_header_preproc=yes
13850 else
13851 echo "$as_me: failed program was:" >&5
13852 sed 's/^/| /' conftest.$ac_ext >&5
13854 ac_header_preproc=no
13857 rm -f conftest.err conftest.$ac_ext
13858 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13859 echo "${ECHO_T}$ac_header_preproc" >&6; }
13861 # So? What about this header?
13862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13863 yes:no: )
13864 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13865 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13866 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
13867 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
13868 ac_header_preproc=yes
13870 no:yes:* )
13871 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
13872 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
13873 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
13874 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
13875 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
13876 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
13877 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
13878 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13879 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
13880 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
13881 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
13882 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
13885 esac
13886 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13887 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13888 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13889 echo $ECHO_N "(cached) $ECHO_C" >&6
13890 else
13891 ac_cv_header_gif_lib_h=$ac_header_preproc
13893 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13894 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13897 if test $ac_cv_header_gif_lib_h = yes; then
13898 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13899 # Earlier versions can crash Emacs.
13900 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
13901 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
13902 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
13903 echo $ECHO_N "(cached) $ECHO_C" >&6
13904 else
13905 ac_check_lib_save_LIBS=$LIBS
13906 LIBS="-lungif $LIBS"
13907 cat >conftest.$ac_ext <<_ACEOF
13908 /* confdefs.h. */
13909 _ACEOF
13910 cat confdefs.h >>conftest.$ac_ext
13911 cat >>conftest.$ac_ext <<_ACEOF
13912 /* end confdefs.h. */
13914 /* Override any GCC internal prototype to avoid an error.
13915 Use char because int might match the return type of a GCC
13916 builtin and then its argument prototype would still apply. */
13917 #ifdef __cplusplus
13918 extern "C"
13919 #endif
13920 char EGifPutExtensionLast ();
13922 main ()
13924 return EGifPutExtensionLast ();
13926 return 0;
13928 _ACEOF
13929 rm -f conftest.$ac_objext conftest$ac_exeext
13930 if { (ac_try="$ac_link"
13931 case "(($ac_try" in
13932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13933 *) ac_try_echo=$ac_try;;
13934 esac
13935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13936 (eval "$ac_link") 2>conftest.er1
13937 ac_status=$?
13938 grep -v '^ *+' conftest.er1 >conftest.err
13939 rm -f conftest.er1
13940 cat conftest.err >&5
13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942 (exit $ac_status); } && {
13943 test -z "$ac_c_werror_flag" ||
13944 test ! -s conftest.err
13945 } && test -s conftest$ac_exeext &&
13946 $as_test_x conftest$ac_exeext; then
13947 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13948 else
13949 echo "$as_me: failed program was:" >&5
13950 sed 's/^/| /' conftest.$ac_ext >&5
13952 ac_cv_lib_ungif_EGifPutExtensionLast=no
13955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13956 conftest$ac_exeext conftest.$ac_ext
13957 LIBS=$ac_check_lib_save_LIBS
13959 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13960 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13961 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13962 HAVE_GIF=yes
13970 if test "${HAVE_GIF}" = "yes"; then
13972 cat >>confdefs.h <<\_ACEOF
13973 #define HAVE_GIF 1
13974 _ACEOF
13979 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13980 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13981 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
13982 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13983 echo $ECHO_N "(cached) $ECHO_C" >&6
13985 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13986 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
13987 else
13988 # Is the header compilable?
13989 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
13990 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
13991 cat >conftest.$ac_ext <<_ACEOF
13992 /* confdefs.h. */
13993 _ACEOF
13994 cat confdefs.h >>conftest.$ac_ext
13995 cat >>conftest.$ac_ext <<_ACEOF
13996 /* end confdefs.h. */
13997 $ac_includes_default
13998 #include <malloc/malloc.h>
13999 _ACEOF
14000 rm -f conftest.$ac_objext
14001 if { (ac_try="$ac_compile"
14002 case "(($ac_try" in
14003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14004 *) ac_try_echo=$ac_try;;
14005 esac
14006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14007 (eval "$ac_compile") 2>conftest.er1
14008 ac_status=$?
14009 grep -v '^ *+' conftest.er1 >conftest.err
14010 rm -f conftest.er1
14011 cat conftest.err >&5
14012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 (exit $ac_status); } && {
14014 test -z "$ac_c_werror_flag" ||
14015 test ! -s conftest.err
14016 } && test -s conftest.$ac_objext; then
14017 ac_header_compiler=yes
14018 else
14019 echo "$as_me: failed program was:" >&5
14020 sed 's/^/| /' conftest.$ac_ext >&5
14022 ac_header_compiler=no
14025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14026 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14027 echo "${ECHO_T}$ac_header_compiler" >&6; }
14029 # Is the header present?
14030 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14031 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14032 cat >conftest.$ac_ext <<_ACEOF
14033 /* confdefs.h. */
14034 _ACEOF
14035 cat confdefs.h >>conftest.$ac_ext
14036 cat >>conftest.$ac_ext <<_ACEOF
14037 /* end confdefs.h. */
14038 #include <malloc/malloc.h>
14039 _ACEOF
14040 if { (ac_try="$ac_cpp conftest.$ac_ext"
14041 case "(($ac_try" in
14042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14043 *) ac_try_echo=$ac_try;;
14044 esac
14045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14046 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14047 ac_status=$?
14048 grep -v '^ *+' conftest.er1 >conftest.err
14049 rm -f conftest.er1
14050 cat conftest.err >&5
14051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052 (exit $ac_status); } >/dev/null && {
14053 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14054 test ! -s conftest.err
14055 }; then
14056 ac_header_preproc=yes
14057 else
14058 echo "$as_me: failed program was:" >&5
14059 sed 's/^/| /' conftest.$ac_ext >&5
14061 ac_header_preproc=no
14064 rm -f conftest.err conftest.$ac_ext
14065 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14066 echo "${ECHO_T}$ac_header_preproc" >&6; }
14068 # So? What about this header?
14069 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14070 yes:no: )
14071 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14072 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14073 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14074 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14075 ac_header_preproc=yes
14077 no:yes:* )
14078 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14079 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14080 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14081 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14082 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14083 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14084 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14085 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14086 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14087 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14088 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14089 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14092 esac
14093 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14094 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14095 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14096 echo $ECHO_N "(cached) $ECHO_C" >&6
14097 else
14098 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14100 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14101 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14104 if test $ac_cv_header_malloc_malloc_h = yes; then
14106 cat >>confdefs.h <<\_ACEOF
14107 #define HAVE_MALLOC_MALLOC_H 1
14108 _ACEOF
14114 ### Use Mac OS X Carbon API to implement GUI.
14115 if test "${HAVE_CARBON}" = "yes"; then
14117 cat >>confdefs.h <<\_ACEOF
14118 #define HAVE_CARBON 1
14119 _ACEOF
14122 for ac_header in AvailabilityMacros.h
14124 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14126 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14129 echo $ECHO_N "(cached) $ECHO_C" >&6
14131 ac_res=`eval echo '${'$as_ac_Header'}'`
14132 { echo "$as_me:$LINENO: result: $ac_res" >&5
14133 echo "${ECHO_T}$ac_res" >&6; }
14134 else
14135 # Is the header compilable?
14136 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14137 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14138 cat >conftest.$ac_ext <<_ACEOF
14139 /* confdefs.h. */
14140 _ACEOF
14141 cat confdefs.h >>conftest.$ac_ext
14142 cat >>conftest.$ac_ext <<_ACEOF
14143 /* end confdefs.h. */
14144 $ac_includes_default
14145 #include <$ac_header>
14146 _ACEOF
14147 rm -f conftest.$ac_objext
14148 if { (ac_try="$ac_compile"
14149 case "(($ac_try" in
14150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14151 *) ac_try_echo=$ac_try;;
14152 esac
14153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14154 (eval "$ac_compile") 2>conftest.er1
14155 ac_status=$?
14156 grep -v '^ *+' conftest.er1 >conftest.err
14157 rm -f conftest.er1
14158 cat conftest.err >&5
14159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160 (exit $ac_status); } && {
14161 test -z "$ac_c_werror_flag" ||
14162 test ! -s conftest.err
14163 } && test -s conftest.$ac_objext; then
14164 ac_header_compiler=yes
14165 else
14166 echo "$as_me: failed program was:" >&5
14167 sed 's/^/| /' conftest.$ac_ext >&5
14169 ac_header_compiler=no
14172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14173 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14174 echo "${ECHO_T}$ac_header_compiler" >&6; }
14176 # Is the header present?
14177 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14178 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14179 cat >conftest.$ac_ext <<_ACEOF
14180 /* confdefs.h. */
14181 _ACEOF
14182 cat confdefs.h >>conftest.$ac_ext
14183 cat >>conftest.$ac_ext <<_ACEOF
14184 /* end confdefs.h. */
14185 #include <$ac_header>
14186 _ACEOF
14187 if { (ac_try="$ac_cpp conftest.$ac_ext"
14188 case "(($ac_try" in
14189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14190 *) ac_try_echo=$ac_try;;
14191 esac
14192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14193 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14194 ac_status=$?
14195 grep -v '^ *+' conftest.er1 >conftest.err
14196 rm -f conftest.er1
14197 cat conftest.err >&5
14198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199 (exit $ac_status); } >/dev/null && {
14200 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14201 test ! -s conftest.err
14202 }; then
14203 ac_header_preproc=yes
14204 else
14205 echo "$as_me: failed program was:" >&5
14206 sed 's/^/| /' conftest.$ac_ext >&5
14208 ac_header_preproc=no
14211 rm -f conftest.err conftest.$ac_ext
14212 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14213 echo "${ECHO_T}$ac_header_preproc" >&6; }
14215 # So? What about this header?
14216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14217 yes:no: )
14218 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14219 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14221 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14222 ac_header_preproc=yes
14224 no:yes:* )
14225 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14226 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14227 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14228 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14229 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14230 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14231 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14232 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14233 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14234 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14235 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14236 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14239 esac
14240 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14243 echo $ECHO_N "(cached) $ECHO_C" >&6
14244 else
14245 eval "$as_ac_Header=\$ac_header_preproc"
14247 ac_res=`eval echo '${'$as_ac_Header'}'`
14248 { echo "$as_me:$LINENO: result: $ac_res" >&5
14249 echo "${ECHO_T}$ac_res" >&6; }
14252 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14253 cat >>confdefs.h <<_ACEOF
14254 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14255 _ACEOF
14259 done
14261 ## Specify the install directory
14262 carbon_appdir=
14263 if test "${carbon_appdir_x}" != ""; then
14264 case ${carbon_appdir_x} in
14265 y | ye | yes) carbon_appdir=/Applications ;;
14266 * ) carbon_appdir=${carbon_appdir_x} ;;
14267 esac
14269 # We also have mouse menus.
14270 HAVE_MENUS=yes
14273 ### Use session management (-lSM -lICE) if available
14274 HAVE_X_SM=no
14275 if test "${HAVE_X11}" = "yes"; then
14276 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14277 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14278 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14279 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14280 echo $ECHO_N "(cached) $ECHO_C" >&6
14282 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14283 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14284 else
14285 # Is the header compilable?
14286 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14287 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14288 cat >conftest.$ac_ext <<_ACEOF
14289 /* confdefs.h. */
14290 _ACEOF
14291 cat confdefs.h >>conftest.$ac_ext
14292 cat >>conftest.$ac_ext <<_ACEOF
14293 /* end confdefs.h. */
14294 $ac_includes_default
14295 #include <X11/SM/SMlib.h>
14296 _ACEOF
14297 rm -f conftest.$ac_objext
14298 if { (ac_try="$ac_compile"
14299 case "(($ac_try" in
14300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14301 *) ac_try_echo=$ac_try;;
14302 esac
14303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14304 (eval "$ac_compile") 2>conftest.er1
14305 ac_status=$?
14306 grep -v '^ *+' conftest.er1 >conftest.err
14307 rm -f conftest.er1
14308 cat conftest.err >&5
14309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310 (exit $ac_status); } && {
14311 test -z "$ac_c_werror_flag" ||
14312 test ! -s conftest.err
14313 } && test -s conftest.$ac_objext; then
14314 ac_header_compiler=yes
14315 else
14316 echo "$as_me: failed program was:" >&5
14317 sed 's/^/| /' conftest.$ac_ext >&5
14319 ac_header_compiler=no
14322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14323 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14324 echo "${ECHO_T}$ac_header_compiler" >&6; }
14326 # Is the header present?
14327 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14328 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14329 cat >conftest.$ac_ext <<_ACEOF
14330 /* confdefs.h. */
14331 _ACEOF
14332 cat confdefs.h >>conftest.$ac_ext
14333 cat >>conftest.$ac_ext <<_ACEOF
14334 /* end confdefs.h. */
14335 #include <X11/SM/SMlib.h>
14336 _ACEOF
14337 if { (ac_try="$ac_cpp conftest.$ac_ext"
14338 case "(($ac_try" in
14339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14340 *) ac_try_echo=$ac_try;;
14341 esac
14342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14343 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14344 ac_status=$?
14345 grep -v '^ *+' conftest.er1 >conftest.err
14346 rm -f conftest.er1
14347 cat conftest.err >&5
14348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349 (exit $ac_status); } >/dev/null && {
14350 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14351 test ! -s conftest.err
14352 }; then
14353 ac_header_preproc=yes
14354 else
14355 echo "$as_me: failed program was:" >&5
14356 sed 's/^/| /' conftest.$ac_ext >&5
14358 ac_header_preproc=no
14361 rm -f conftest.err conftest.$ac_ext
14362 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14363 echo "${ECHO_T}$ac_header_preproc" >&6; }
14365 # So? What about this header?
14366 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14367 yes:no: )
14368 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14369 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14370 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14371 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14372 ac_header_preproc=yes
14374 no:yes:* )
14375 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14376 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14377 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14378 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14379 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14380 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14381 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14382 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14383 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14384 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14385 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14386 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14389 esac
14390 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14391 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14392 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14393 echo $ECHO_N "(cached) $ECHO_C" >&6
14394 else
14395 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14397 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14398 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14401 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14402 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14403 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14404 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14405 echo $ECHO_N "(cached) $ECHO_C" >&6
14406 else
14407 ac_check_lib_save_LIBS=$LIBS
14408 LIBS="-lSM -lICE $LIBS"
14409 cat >conftest.$ac_ext <<_ACEOF
14410 /* confdefs.h. */
14411 _ACEOF
14412 cat confdefs.h >>conftest.$ac_ext
14413 cat >>conftest.$ac_ext <<_ACEOF
14414 /* end confdefs.h. */
14416 /* Override any GCC internal prototype to avoid an error.
14417 Use char because int might match the return type of a GCC
14418 builtin and then its argument prototype would still apply. */
14419 #ifdef __cplusplus
14420 extern "C"
14421 #endif
14422 char SmcOpenConnection ();
14424 main ()
14426 return SmcOpenConnection ();
14428 return 0;
14430 _ACEOF
14431 rm -f conftest.$ac_objext conftest$ac_exeext
14432 if { (ac_try="$ac_link"
14433 case "(($ac_try" in
14434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14435 *) ac_try_echo=$ac_try;;
14436 esac
14437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14438 (eval "$ac_link") 2>conftest.er1
14439 ac_status=$?
14440 grep -v '^ *+' conftest.er1 >conftest.err
14441 rm -f conftest.er1
14442 cat conftest.err >&5
14443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444 (exit $ac_status); } && {
14445 test -z "$ac_c_werror_flag" ||
14446 test ! -s conftest.err
14447 } && test -s conftest$ac_exeext &&
14448 $as_test_x conftest$ac_exeext; then
14449 ac_cv_lib_SM_SmcOpenConnection=yes
14450 else
14451 echo "$as_me: failed program was:" >&5
14452 sed 's/^/| /' conftest.$ac_ext >&5
14454 ac_cv_lib_SM_SmcOpenConnection=no
14457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14458 conftest$ac_exeext conftest.$ac_ext
14459 LIBS=$ac_check_lib_save_LIBS
14461 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14462 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14463 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14464 HAVE_X_SM=yes
14471 if test "${HAVE_X_SM}" = "yes"; then
14473 cat >>confdefs.h <<\_ACEOF
14474 #define HAVE_X_SM 1
14475 _ACEOF
14477 case "$LIBS" in
14478 *-lSM*) ;;
14479 *) LIBS="-lSM -lICE $LIBS" ;;
14480 esac
14484 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14485 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14486 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14487 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14488 echo $ECHO_N "(cached) $ECHO_C" >&6
14489 else
14490 cat >conftest.$ac_ext <<_ACEOF
14491 /* confdefs.h. */
14492 _ACEOF
14493 cat confdefs.h >>conftest.$ac_ext
14494 cat >>conftest.$ac_ext <<_ACEOF
14495 /* end confdefs.h. */
14496 #include <netdb.h>
14498 main ()
14500 return h_errno;
14502 return 0;
14504 _ACEOF
14505 rm -f conftest.$ac_objext conftest$ac_exeext
14506 if { (ac_try="$ac_link"
14507 case "(($ac_try" in
14508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14509 *) ac_try_echo=$ac_try;;
14510 esac
14511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14512 (eval "$ac_link") 2>conftest.er1
14513 ac_status=$?
14514 grep -v '^ *+' conftest.er1 >conftest.err
14515 rm -f conftest.er1
14516 cat conftest.err >&5
14517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518 (exit $ac_status); } && {
14519 test -z "$ac_c_werror_flag" ||
14520 test ! -s conftest.err
14521 } && test -s conftest$ac_exeext &&
14522 $as_test_x conftest$ac_exeext; then
14523 emacs_cv_netdb_declares_h_errno=yes
14524 else
14525 echo "$as_me: failed program was:" >&5
14526 sed 's/^/| /' conftest.$ac_ext >&5
14528 emacs_cv_netdb_declares_h_errno=no
14531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14532 conftest$ac_exeext conftest.$ac_ext
14534 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14535 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14536 if test $emacs_cv_netdb_declares_h_errno = yes; then
14538 cat >>confdefs.h <<\_ACEOF
14539 #define HAVE_H_ERRNO 1
14540 _ACEOF
14544 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14545 # for constant arguments. Useless!
14546 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14547 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14548 if test "${ac_cv_working_alloca_h+set}" = set; then
14549 echo $ECHO_N "(cached) $ECHO_C" >&6
14550 else
14551 cat >conftest.$ac_ext <<_ACEOF
14552 /* confdefs.h. */
14553 _ACEOF
14554 cat confdefs.h >>conftest.$ac_ext
14555 cat >>conftest.$ac_ext <<_ACEOF
14556 /* end confdefs.h. */
14557 #include <alloca.h>
14559 main ()
14561 char *p = (char *) alloca (2 * sizeof (int));
14562 if (p) return 0;
14564 return 0;
14566 _ACEOF
14567 rm -f conftest.$ac_objext conftest$ac_exeext
14568 if { (ac_try="$ac_link"
14569 case "(($ac_try" in
14570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14571 *) ac_try_echo=$ac_try;;
14572 esac
14573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14574 (eval "$ac_link") 2>conftest.er1
14575 ac_status=$?
14576 grep -v '^ *+' conftest.er1 >conftest.err
14577 rm -f conftest.er1
14578 cat conftest.err >&5
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); } && {
14581 test -z "$ac_c_werror_flag" ||
14582 test ! -s conftest.err
14583 } && test -s conftest$ac_exeext &&
14584 $as_test_x conftest$ac_exeext; then
14585 ac_cv_working_alloca_h=yes
14586 else
14587 echo "$as_me: failed program was:" >&5
14588 sed 's/^/| /' conftest.$ac_ext >&5
14590 ac_cv_working_alloca_h=no
14593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14594 conftest$ac_exeext conftest.$ac_ext
14596 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14597 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14598 if test $ac_cv_working_alloca_h = yes; then
14600 cat >>confdefs.h <<\_ACEOF
14601 #define HAVE_ALLOCA_H 1
14602 _ACEOF
14606 { echo "$as_me:$LINENO: checking for alloca" >&5
14607 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14608 if test "${ac_cv_func_alloca_works+set}" = set; then
14609 echo $ECHO_N "(cached) $ECHO_C" >&6
14610 else
14611 cat >conftest.$ac_ext <<_ACEOF
14612 /* confdefs.h. */
14613 _ACEOF
14614 cat confdefs.h >>conftest.$ac_ext
14615 cat >>conftest.$ac_ext <<_ACEOF
14616 /* end confdefs.h. */
14617 #ifdef __GNUC__
14618 # define alloca __builtin_alloca
14619 #else
14620 # ifdef _MSC_VER
14621 # include <malloc.h>
14622 # define alloca _alloca
14623 # else
14624 # ifdef HAVE_ALLOCA_H
14625 # include <alloca.h>
14626 # else
14627 # ifdef _AIX
14628 #pragma alloca
14629 # else
14630 # ifndef alloca /* predefined by HP cc +Olibcalls */
14631 char *alloca ();
14632 # endif
14633 # endif
14634 # endif
14635 # endif
14636 #endif
14639 main ()
14641 char *p = (char *) alloca (1);
14642 if (p) return 0;
14644 return 0;
14646 _ACEOF
14647 rm -f conftest.$ac_objext conftest$ac_exeext
14648 if { (ac_try="$ac_link"
14649 case "(($ac_try" in
14650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14651 *) ac_try_echo=$ac_try;;
14652 esac
14653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14654 (eval "$ac_link") 2>conftest.er1
14655 ac_status=$?
14656 grep -v '^ *+' conftest.er1 >conftest.err
14657 rm -f conftest.er1
14658 cat conftest.err >&5
14659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660 (exit $ac_status); } && {
14661 test -z "$ac_c_werror_flag" ||
14662 test ! -s conftest.err
14663 } && test -s conftest$ac_exeext &&
14664 $as_test_x conftest$ac_exeext; then
14665 ac_cv_func_alloca_works=yes
14666 else
14667 echo "$as_me: failed program was:" >&5
14668 sed 's/^/| /' conftest.$ac_ext >&5
14670 ac_cv_func_alloca_works=no
14673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14674 conftest$ac_exeext conftest.$ac_ext
14676 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14677 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14679 if test $ac_cv_func_alloca_works = yes; then
14681 cat >>confdefs.h <<\_ACEOF
14682 #define HAVE_ALLOCA 1
14683 _ACEOF
14685 else
14686 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14687 # that cause trouble. Some versions do not even contain alloca or
14688 # contain a buggy version. If you still want to use their alloca,
14689 # use ar to extract alloca.o from them instead of compiling alloca.c.
14691 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14693 cat >>confdefs.h <<\_ACEOF
14694 #define C_ALLOCA 1
14695 _ACEOF
14698 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14699 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
14700 if test "${ac_cv_os_cray+set}" = set; then
14701 echo $ECHO_N "(cached) $ECHO_C" >&6
14702 else
14703 cat >conftest.$ac_ext <<_ACEOF
14704 /* confdefs.h. */
14705 _ACEOF
14706 cat confdefs.h >>conftest.$ac_ext
14707 cat >>conftest.$ac_ext <<_ACEOF
14708 /* end confdefs.h. */
14709 #if defined CRAY && ! defined CRAY2
14710 webecray
14711 #else
14712 wenotbecray
14713 #endif
14715 _ACEOF
14716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14717 $EGREP "webecray" >/dev/null 2>&1; then
14718 ac_cv_os_cray=yes
14719 else
14720 ac_cv_os_cray=no
14722 rm -f conftest*
14725 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14726 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14727 if test $ac_cv_os_cray = yes; then
14728 for ac_func in _getb67 GETB67 getb67; do
14729 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14730 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14731 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14732 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14733 echo $ECHO_N "(cached) $ECHO_C" >&6
14734 else
14735 cat >conftest.$ac_ext <<_ACEOF
14736 /* confdefs.h. */
14737 _ACEOF
14738 cat confdefs.h >>conftest.$ac_ext
14739 cat >>conftest.$ac_ext <<_ACEOF
14740 /* end confdefs.h. */
14741 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14742 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14743 #define $ac_func innocuous_$ac_func
14745 /* System header to define __stub macros and hopefully few prototypes,
14746 which can conflict with char $ac_func (); below.
14747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14748 <limits.h> exists even on freestanding compilers. */
14750 #ifdef __STDC__
14751 # include <limits.h>
14752 #else
14753 # include <assert.h>
14754 #endif
14756 #undef $ac_func
14758 /* Override any GCC internal prototype to avoid an error.
14759 Use char because int might match the return type of a GCC
14760 builtin and then its argument prototype would still apply. */
14761 #ifdef __cplusplus
14762 extern "C"
14763 #endif
14764 char $ac_func ();
14765 /* The GNU C library defines this for functions which it implements
14766 to always fail with ENOSYS. Some functions are actually named
14767 something starting with __ and the normal name is an alias. */
14768 #if defined __stub_$ac_func || defined __stub___$ac_func
14769 choke me
14770 #endif
14773 main ()
14775 return $ac_func ();
14777 return 0;
14779 _ACEOF
14780 rm -f conftest.$ac_objext conftest$ac_exeext
14781 if { (ac_try="$ac_link"
14782 case "(($ac_try" in
14783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14784 *) ac_try_echo=$ac_try;;
14785 esac
14786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14787 (eval "$ac_link") 2>conftest.er1
14788 ac_status=$?
14789 grep -v '^ *+' conftest.er1 >conftest.err
14790 rm -f conftest.er1
14791 cat conftest.err >&5
14792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793 (exit $ac_status); } && {
14794 test -z "$ac_c_werror_flag" ||
14795 test ! -s conftest.err
14796 } && test -s conftest$ac_exeext &&
14797 $as_test_x conftest$ac_exeext; then
14798 eval "$as_ac_var=yes"
14799 else
14800 echo "$as_me: failed program was:" >&5
14801 sed 's/^/| /' conftest.$ac_ext >&5
14803 eval "$as_ac_var=no"
14806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14807 conftest$ac_exeext conftest.$ac_ext
14809 ac_res=`eval echo '${'$as_ac_var'}'`
14810 { echo "$as_me:$LINENO: result: $ac_res" >&5
14811 echo "${ECHO_T}$ac_res" >&6; }
14812 if test `eval echo '${'$as_ac_var'}'` = yes; then
14814 cat >>confdefs.h <<_ACEOF
14815 #define CRAY_STACKSEG_END $ac_func
14816 _ACEOF
14818 break
14821 done
14824 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14825 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
14826 if test "${ac_cv_c_stack_direction+set}" = set; then
14827 echo $ECHO_N "(cached) $ECHO_C" >&6
14828 else
14829 if test "$cross_compiling" = yes; then
14830 ac_cv_c_stack_direction=0
14831 else
14832 cat >conftest.$ac_ext <<_ACEOF
14833 /* confdefs.h. */
14834 _ACEOF
14835 cat confdefs.h >>conftest.$ac_ext
14836 cat >>conftest.$ac_ext <<_ACEOF
14837 /* end confdefs.h. */
14838 $ac_includes_default
14840 find_stack_direction ()
14842 static char *addr = 0;
14843 auto char dummy;
14844 if (addr == 0)
14846 addr = &dummy;
14847 return find_stack_direction ();
14849 else
14850 return (&dummy > addr) ? 1 : -1;
14854 main ()
14856 return find_stack_direction () < 0;
14858 _ACEOF
14859 rm -f conftest$ac_exeext
14860 if { (ac_try="$ac_link"
14861 case "(($ac_try" in
14862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14863 *) ac_try_echo=$ac_try;;
14864 esac
14865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14866 (eval "$ac_link") 2>&5
14867 ac_status=$?
14868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14869 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14870 { (case "(($ac_try" in
14871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14872 *) ac_try_echo=$ac_try;;
14873 esac
14874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14875 (eval "$ac_try") 2>&5
14876 ac_status=$?
14877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878 (exit $ac_status); }; }; then
14879 ac_cv_c_stack_direction=1
14880 else
14881 echo "$as_me: program exited with status $ac_status" >&5
14882 echo "$as_me: failed program was:" >&5
14883 sed 's/^/| /' conftest.$ac_ext >&5
14885 ( exit $ac_status )
14886 ac_cv_c_stack_direction=-1
14888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14893 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14894 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
14896 cat >>confdefs.h <<_ACEOF
14897 #define STACK_DIRECTION $ac_cv_c_stack_direction
14898 _ACEOF
14904 # fmod, logb, and frexp are found in -lm on most systems.
14905 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14907 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
14908 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
14909 if test "${ac_cv_lib_m_sqrt+set}" = set; then
14910 echo $ECHO_N "(cached) $ECHO_C" >&6
14911 else
14912 ac_check_lib_save_LIBS=$LIBS
14913 LIBS="-lm $LIBS"
14914 cat >conftest.$ac_ext <<_ACEOF
14915 /* confdefs.h. */
14916 _ACEOF
14917 cat confdefs.h >>conftest.$ac_ext
14918 cat >>conftest.$ac_ext <<_ACEOF
14919 /* end confdefs.h. */
14921 /* Override any GCC internal prototype to avoid an error.
14922 Use char because int might match the return type of a GCC
14923 builtin and then its argument prototype would still apply. */
14924 #ifdef __cplusplus
14925 extern "C"
14926 #endif
14927 char sqrt ();
14929 main ()
14931 return sqrt ();
14933 return 0;
14935 _ACEOF
14936 rm -f conftest.$ac_objext conftest$ac_exeext
14937 if { (ac_try="$ac_link"
14938 case "(($ac_try" in
14939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14940 *) ac_try_echo=$ac_try;;
14941 esac
14942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14943 (eval "$ac_link") 2>conftest.er1
14944 ac_status=$?
14945 grep -v '^ *+' conftest.er1 >conftest.err
14946 rm -f conftest.er1
14947 cat conftest.err >&5
14948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949 (exit $ac_status); } && {
14950 test -z "$ac_c_werror_flag" ||
14951 test ! -s conftest.err
14952 } && test -s conftest$ac_exeext &&
14953 $as_test_x conftest$ac_exeext; then
14954 ac_cv_lib_m_sqrt=yes
14955 else
14956 echo "$as_me: failed program was:" >&5
14957 sed 's/^/| /' conftest.$ac_ext >&5
14959 ac_cv_lib_m_sqrt=no
14962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14963 conftest$ac_exeext conftest.$ac_ext
14964 LIBS=$ac_check_lib_save_LIBS
14966 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
14967 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
14968 if test $ac_cv_lib_m_sqrt = yes; then
14969 cat >>confdefs.h <<_ACEOF
14970 #define HAVE_LIBM 1
14971 _ACEOF
14973 LIBS="-lm $LIBS"
14978 # Check for mail-locking functions in a "mail" library. Probably this should
14979 # have the same check as for liblockfile below.
14981 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
14982 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
14983 if test "${ac_cv_lib_mail_maillock+set}" = set; then
14984 echo $ECHO_N "(cached) $ECHO_C" >&6
14985 else
14986 ac_check_lib_save_LIBS=$LIBS
14987 LIBS="-lmail $LIBS"
14988 cat >conftest.$ac_ext <<_ACEOF
14989 /* confdefs.h. */
14990 _ACEOF
14991 cat confdefs.h >>conftest.$ac_ext
14992 cat >>conftest.$ac_ext <<_ACEOF
14993 /* end confdefs.h. */
14995 /* Override any GCC internal prototype to avoid an error.
14996 Use char because int might match the return type of a GCC
14997 builtin and then its argument prototype would still apply. */
14998 #ifdef __cplusplus
14999 extern "C"
15000 #endif
15001 char maillock ();
15003 main ()
15005 return maillock ();
15007 return 0;
15009 _ACEOF
15010 rm -f conftest.$ac_objext conftest$ac_exeext
15011 if { (ac_try="$ac_link"
15012 case "(($ac_try" in
15013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15014 *) ac_try_echo=$ac_try;;
15015 esac
15016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15017 (eval "$ac_link") 2>conftest.er1
15018 ac_status=$?
15019 grep -v '^ *+' conftest.er1 >conftest.err
15020 rm -f conftest.er1
15021 cat conftest.err >&5
15022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023 (exit $ac_status); } && {
15024 test -z "$ac_c_werror_flag" ||
15025 test ! -s conftest.err
15026 } && test -s conftest$ac_exeext &&
15027 $as_test_x conftest$ac_exeext; then
15028 ac_cv_lib_mail_maillock=yes
15029 else
15030 echo "$as_me: failed program was:" >&5
15031 sed 's/^/| /' conftest.$ac_ext >&5
15033 ac_cv_lib_mail_maillock=no
15036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15037 conftest$ac_exeext conftest.$ac_ext
15038 LIBS=$ac_check_lib_save_LIBS
15040 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15041 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15042 if test $ac_cv_lib_mail_maillock = yes; then
15043 cat >>confdefs.h <<_ACEOF
15044 #define HAVE_LIBMAIL 1
15045 _ACEOF
15047 LIBS="-lmail $LIBS"
15052 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15053 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15054 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15055 echo $ECHO_N "(cached) $ECHO_C" >&6
15056 else
15057 ac_check_lib_save_LIBS=$LIBS
15058 LIBS="-llockfile $LIBS"
15059 cat >conftest.$ac_ext <<_ACEOF
15060 /* confdefs.h. */
15061 _ACEOF
15062 cat confdefs.h >>conftest.$ac_ext
15063 cat >>conftest.$ac_ext <<_ACEOF
15064 /* end confdefs.h. */
15066 /* Override any GCC internal prototype to avoid an error.
15067 Use char because int might match the return type of a GCC
15068 builtin and then its argument prototype would still apply. */
15069 #ifdef __cplusplus
15070 extern "C"
15071 #endif
15072 char maillock ();
15074 main ()
15076 return maillock ();
15078 return 0;
15080 _ACEOF
15081 rm -f conftest.$ac_objext conftest$ac_exeext
15082 if { (ac_try="$ac_link"
15083 case "(($ac_try" in
15084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15085 *) ac_try_echo=$ac_try;;
15086 esac
15087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15088 (eval "$ac_link") 2>conftest.er1
15089 ac_status=$?
15090 grep -v '^ *+' conftest.er1 >conftest.err
15091 rm -f conftest.er1
15092 cat conftest.err >&5
15093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094 (exit $ac_status); } && {
15095 test -z "$ac_c_werror_flag" ||
15096 test ! -s conftest.err
15097 } && test -s conftest$ac_exeext &&
15098 $as_test_x conftest$ac_exeext; then
15099 ac_cv_lib_lockfile_maillock=yes
15100 else
15101 echo "$as_me: failed program was:" >&5
15102 sed 's/^/| /' conftest.$ac_ext >&5
15104 ac_cv_lib_lockfile_maillock=no
15107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15108 conftest$ac_exeext conftest.$ac_ext
15109 LIBS=$ac_check_lib_save_LIBS
15111 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15112 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15113 if test $ac_cv_lib_lockfile_maillock = yes; then
15114 cat >>confdefs.h <<_ACEOF
15115 #define HAVE_LIBLOCKFILE 1
15116 _ACEOF
15118 LIBS="-llockfile $LIBS"
15122 # If we have the shared liblockfile, assume we must use it for mail
15123 # locking (e.g. Debian). If we couldn't link against liblockfile
15124 # (no liblockfile.a installed), ensure that we don't need to.
15125 if test "$ac_cv_lib_lockfile_maillock" = no; then
15126 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15127 set dummy liblockfile.so; ac_word=$2
15128 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15130 if test "${ac_cv_prog_liblockfile+set}" = set; then
15131 echo $ECHO_N "(cached) $ECHO_C" >&6
15132 else
15133 if test -n "$liblockfile"; then
15134 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15135 else
15136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15137 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15138 for as_dir in $as_dummy
15140 IFS=$as_save_IFS
15141 test -z "$as_dir" && as_dir=.
15142 for ac_exec_ext in '' $ac_executable_extensions; do
15143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15144 ac_cv_prog_liblockfile="yes"
15145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15146 break 2
15148 done
15149 done
15150 IFS=$as_save_IFS
15152 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15155 liblockfile=$ac_cv_prog_liblockfile
15156 if test -n "$liblockfile"; then
15157 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15158 echo "${ECHO_T}$liblockfile" >&6; }
15159 else
15160 { echo "$as_me:$LINENO: result: no" >&5
15161 echo "${ECHO_T}no" >&6; }
15165 if test $ac_cv_prog_liblockfile = yes; then
15166 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15167 This probably means that movemail could lose mail.
15168 There may be a \`development' package to install containing liblockfile." >&5
15169 echo "$as_me: error: Shared liblockfile found but can't link against it.
15170 This probably means that movemail could lose mail.
15171 There may be a \`development' package to install containing liblockfile." >&2;}
15172 { (exit 1); exit 1; }; }
15173 else :
15177 for ac_func in touchlock
15179 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15180 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15181 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15182 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15183 echo $ECHO_N "(cached) $ECHO_C" >&6
15184 else
15185 cat >conftest.$ac_ext <<_ACEOF
15186 /* confdefs.h. */
15187 _ACEOF
15188 cat confdefs.h >>conftest.$ac_ext
15189 cat >>conftest.$ac_ext <<_ACEOF
15190 /* end confdefs.h. */
15191 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15192 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15193 #define $ac_func innocuous_$ac_func
15195 /* System header to define __stub macros and hopefully few prototypes,
15196 which can conflict with char $ac_func (); below.
15197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15198 <limits.h> exists even on freestanding compilers. */
15200 #ifdef __STDC__
15201 # include <limits.h>
15202 #else
15203 # include <assert.h>
15204 #endif
15206 #undef $ac_func
15208 /* Override any GCC internal prototype to avoid an error.
15209 Use char because int might match the return type of a GCC
15210 builtin and then its argument prototype would still apply. */
15211 #ifdef __cplusplus
15212 extern "C"
15213 #endif
15214 char $ac_func ();
15215 /* The GNU C library defines this for functions which it implements
15216 to always fail with ENOSYS. Some functions are actually named
15217 something starting with __ and the normal name is an alias. */
15218 #if defined __stub_$ac_func || defined __stub___$ac_func
15219 choke me
15220 #endif
15223 main ()
15225 return $ac_func ();
15227 return 0;
15229 _ACEOF
15230 rm -f conftest.$ac_objext conftest$ac_exeext
15231 if { (ac_try="$ac_link"
15232 case "(($ac_try" in
15233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15234 *) ac_try_echo=$ac_try;;
15235 esac
15236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15237 (eval "$ac_link") 2>conftest.er1
15238 ac_status=$?
15239 grep -v '^ *+' conftest.er1 >conftest.err
15240 rm -f conftest.er1
15241 cat conftest.err >&5
15242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243 (exit $ac_status); } && {
15244 test -z "$ac_c_werror_flag" ||
15245 test ! -s conftest.err
15246 } && test -s conftest$ac_exeext &&
15247 $as_test_x conftest$ac_exeext; then
15248 eval "$as_ac_var=yes"
15249 else
15250 echo "$as_me: failed program was:" >&5
15251 sed 's/^/| /' conftest.$ac_ext >&5
15253 eval "$as_ac_var=no"
15256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15257 conftest$ac_exeext conftest.$ac_ext
15259 ac_res=`eval echo '${'$as_ac_var'}'`
15260 { echo "$as_me:$LINENO: result: $ac_res" >&5
15261 echo "${ECHO_T}$ac_res" >&6; }
15262 if test `eval echo '${'$as_ac_var'}'` = yes; then
15263 cat >>confdefs.h <<_ACEOF
15264 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15265 _ACEOF
15268 done
15271 for ac_header in maillock.h
15273 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15275 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15278 echo $ECHO_N "(cached) $ECHO_C" >&6
15280 ac_res=`eval echo '${'$as_ac_Header'}'`
15281 { echo "$as_me:$LINENO: result: $ac_res" >&5
15282 echo "${ECHO_T}$ac_res" >&6; }
15283 else
15284 # Is the header compilable?
15285 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15286 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15287 cat >conftest.$ac_ext <<_ACEOF
15288 /* confdefs.h. */
15289 _ACEOF
15290 cat confdefs.h >>conftest.$ac_ext
15291 cat >>conftest.$ac_ext <<_ACEOF
15292 /* end confdefs.h. */
15293 $ac_includes_default
15294 #include <$ac_header>
15295 _ACEOF
15296 rm -f conftest.$ac_objext
15297 if { (ac_try="$ac_compile"
15298 case "(($ac_try" in
15299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15300 *) ac_try_echo=$ac_try;;
15301 esac
15302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15303 (eval "$ac_compile") 2>conftest.er1
15304 ac_status=$?
15305 grep -v '^ *+' conftest.er1 >conftest.err
15306 rm -f conftest.er1
15307 cat conftest.err >&5
15308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15309 (exit $ac_status); } && {
15310 test -z "$ac_c_werror_flag" ||
15311 test ! -s conftest.err
15312 } && test -s conftest.$ac_objext; then
15313 ac_header_compiler=yes
15314 else
15315 echo "$as_me: failed program was:" >&5
15316 sed 's/^/| /' conftest.$ac_ext >&5
15318 ac_header_compiler=no
15321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15322 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15323 echo "${ECHO_T}$ac_header_compiler" >&6; }
15325 # Is the header present?
15326 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15327 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
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. */
15334 #include <$ac_header>
15335 _ACEOF
15336 if { (ac_try="$ac_cpp conftest.$ac_ext"
15337 case "(($ac_try" in
15338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15339 *) ac_try_echo=$ac_try;;
15340 esac
15341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15342 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15343 ac_status=$?
15344 grep -v '^ *+' conftest.er1 >conftest.err
15345 rm -f conftest.er1
15346 cat conftest.err >&5
15347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348 (exit $ac_status); } >/dev/null && {
15349 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15350 test ! -s conftest.err
15351 }; then
15352 ac_header_preproc=yes
15353 else
15354 echo "$as_me: failed program was:" >&5
15355 sed 's/^/| /' conftest.$ac_ext >&5
15357 ac_header_preproc=no
15360 rm -f conftest.err conftest.$ac_ext
15361 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15362 echo "${ECHO_T}$ac_header_preproc" >&6; }
15364 # So? What about this header?
15365 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15366 yes:no: )
15367 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15368 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15370 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15371 ac_header_preproc=yes
15373 no:yes:* )
15374 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15375 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15376 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15377 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15378 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15379 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15380 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15381 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15383 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15384 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15385 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15388 esac
15389 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15391 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15392 echo $ECHO_N "(cached) $ECHO_C" >&6
15393 else
15394 eval "$as_ac_Header=\$ac_header_preproc"
15396 ac_res=`eval echo '${'$as_ac_Header'}'`
15397 { echo "$as_me:$LINENO: result: $ac_res" >&5
15398 echo "${ECHO_T}$ac_res" >&6; }
15401 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15402 cat >>confdefs.h <<_ACEOF
15403 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15404 _ACEOF
15408 done
15480 for ac_func in gethostname getdomainname dup2 \
15481 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15482 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15483 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15484 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15485 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15486 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15487 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15488 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15490 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15491 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15492 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15493 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15494 echo $ECHO_N "(cached) $ECHO_C" >&6
15495 else
15496 cat >conftest.$ac_ext <<_ACEOF
15497 /* confdefs.h. */
15498 _ACEOF
15499 cat confdefs.h >>conftest.$ac_ext
15500 cat >>conftest.$ac_ext <<_ACEOF
15501 /* end confdefs.h. */
15502 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15504 #define $ac_func innocuous_$ac_func
15506 /* System header to define __stub macros and hopefully few prototypes,
15507 which can conflict with char $ac_func (); below.
15508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15509 <limits.h> exists even on freestanding compilers. */
15511 #ifdef __STDC__
15512 # include <limits.h>
15513 #else
15514 # include <assert.h>
15515 #endif
15517 #undef $ac_func
15519 /* Override any GCC internal prototype to avoid an error.
15520 Use char because int might match the return type of a GCC
15521 builtin and then its argument prototype would still apply. */
15522 #ifdef __cplusplus
15523 extern "C"
15524 #endif
15525 char $ac_func ();
15526 /* The GNU C library defines this for functions which it implements
15527 to always fail with ENOSYS. Some functions are actually named
15528 something starting with __ and the normal name is an alias. */
15529 #if defined __stub_$ac_func || defined __stub___$ac_func
15530 choke me
15531 #endif
15534 main ()
15536 return $ac_func ();
15538 return 0;
15540 _ACEOF
15541 rm -f conftest.$ac_objext conftest$ac_exeext
15542 if { (ac_try="$ac_link"
15543 case "(($ac_try" in
15544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15545 *) ac_try_echo=$ac_try;;
15546 esac
15547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15548 (eval "$ac_link") 2>conftest.er1
15549 ac_status=$?
15550 grep -v '^ *+' conftest.er1 >conftest.err
15551 rm -f conftest.er1
15552 cat conftest.err >&5
15553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15554 (exit $ac_status); } && {
15555 test -z "$ac_c_werror_flag" ||
15556 test ! -s conftest.err
15557 } && test -s conftest$ac_exeext &&
15558 $as_test_x conftest$ac_exeext; then
15559 eval "$as_ac_var=yes"
15560 else
15561 echo "$as_me: failed program was:" >&5
15562 sed 's/^/| /' conftest.$ac_ext >&5
15564 eval "$as_ac_var=no"
15567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15568 conftest$ac_exeext conftest.$ac_ext
15570 ac_res=`eval echo '${'$as_ac_var'}'`
15571 { echo "$as_me:$LINENO: result: $ac_res" >&5
15572 echo "${ECHO_T}$ac_res" >&6; }
15573 if test `eval echo '${'$as_ac_var'}'` = yes; then
15574 cat >>confdefs.h <<_ACEOF
15575 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15576 _ACEOF
15579 done
15583 for ac_header in sys/un.h
15585 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15587 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15589 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15590 echo $ECHO_N "(cached) $ECHO_C" >&6
15592 ac_res=`eval echo '${'$as_ac_Header'}'`
15593 { echo "$as_me:$LINENO: result: $ac_res" >&5
15594 echo "${ECHO_T}$ac_res" >&6; }
15595 else
15596 # Is the header compilable?
15597 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15598 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15599 cat >conftest.$ac_ext <<_ACEOF
15600 /* confdefs.h. */
15601 _ACEOF
15602 cat confdefs.h >>conftest.$ac_ext
15603 cat >>conftest.$ac_ext <<_ACEOF
15604 /* end confdefs.h. */
15605 $ac_includes_default
15606 #include <$ac_header>
15607 _ACEOF
15608 rm -f conftest.$ac_objext
15609 if { (ac_try="$ac_compile"
15610 case "(($ac_try" in
15611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15612 *) ac_try_echo=$ac_try;;
15613 esac
15614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15615 (eval "$ac_compile") 2>conftest.er1
15616 ac_status=$?
15617 grep -v '^ *+' conftest.er1 >conftest.err
15618 rm -f conftest.er1
15619 cat conftest.err >&5
15620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621 (exit $ac_status); } && {
15622 test -z "$ac_c_werror_flag" ||
15623 test ! -s conftest.err
15624 } && test -s conftest.$ac_objext; then
15625 ac_header_compiler=yes
15626 else
15627 echo "$as_me: failed program was:" >&5
15628 sed 's/^/| /' conftest.$ac_ext >&5
15630 ac_header_compiler=no
15633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15634 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15635 echo "${ECHO_T}$ac_header_compiler" >&6; }
15637 # Is the header present?
15638 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15639 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15640 cat >conftest.$ac_ext <<_ACEOF
15641 /* confdefs.h. */
15642 _ACEOF
15643 cat confdefs.h >>conftest.$ac_ext
15644 cat >>conftest.$ac_ext <<_ACEOF
15645 /* end confdefs.h. */
15646 #include <$ac_header>
15647 _ACEOF
15648 if { (ac_try="$ac_cpp conftest.$ac_ext"
15649 case "(($ac_try" in
15650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15651 *) ac_try_echo=$ac_try;;
15652 esac
15653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15654 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15655 ac_status=$?
15656 grep -v '^ *+' conftest.er1 >conftest.err
15657 rm -f conftest.er1
15658 cat conftest.err >&5
15659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15660 (exit $ac_status); } >/dev/null && {
15661 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15662 test ! -s conftest.err
15663 }; then
15664 ac_header_preproc=yes
15665 else
15666 echo "$as_me: failed program was:" >&5
15667 sed 's/^/| /' conftest.$ac_ext >&5
15669 ac_header_preproc=no
15672 rm -f conftest.err conftest.$ac_ext
15673 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15674 echo "${ECHO_T}$ac_header_preproc" >&6; }
15676 # So? What about this header?
15677 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15678 yes:no: )
15679 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15680 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15682 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15683 ac_header_preproc=yes
15685 no:yes:* )
15686 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15687 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15688 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15689 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15690 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15691 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15692 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15693 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15695 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15696 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15697 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15700 esac
15701 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15703 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15704 echo $ECHO_N "(cached) $ECHO_C" >&6
15705 else
15706 eval "$as_ac_Header=\$ac_header_preproc"
15708 ac_res=`eval echo '${'$as_ac_Header'}'`
15709 { echo "$as_me:$LINENO: result: $ac_res" >&5
15710 echo "${ECHO_T}$ac_res" >&6; }
15713 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15714 cat >>confdefs.h <<_ACEOF
15715 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15716 _ACEOF
15720 done
15727 for ac_header in $ac_header_list
15729 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15730 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15731 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15734 echo $ECHO_N "(cached) $ECHO_C" >&6
15736 ac_res=`eval echo '${'$as_ac_Header'}'`
15737 { echo "$as_me:$LINENO: result: $ac_res" >&5
15738 echo "${ECHO_T}$ac_res" >&6; }
15739 else
15740 # Is the header compilable?
15741 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15742 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15743 cat >conftest.$ac_ext <<_ACEOF
15744 /* confdefs.h. */
15745 _ACEOF
15746 cat confdefs.h >>conftest.$ac_ext
15747 cat >>conftest.$ac_ext <<_ACEOF
15748 /* end confdefs.h. */
15749 $ac_includes_default
15750 #include <$ac_header>
15751 _ACEOF
15752 rm -f conftest.$ac_objext
15753 if { (ac_try="$ac_compile"
15754 case "(($ac_try" in
15755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15756 *) ac_try_echo=$ac_try;;
15757 esac
15758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15759 (eval "$ac_compile") 2>conftest.er1
15760 ac_status=$?
15761 grep -v '^ *+' conftest.er1 >conftest.err
15762 rm -f conftest.er1
15763 cat conftest.err >&5
15764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765 (exit $ac_status); } && {
15766 test -z "$ac_c_werror_flag" ||
15767 test ! -s conftest.err
15768 } && test -s conftest.$ac_objext; then
15769 ac_header_compiler=yes
15770 else
15771 echo "$as_me: failed program was:" >&5
15772 sed 's/^/| /' conftest.$ac_ext >&5
15774 ac_header_compiler=no
15777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15778 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15779 echo "${ECHO_T}$ac_header_compiler" >&6; }
15781 # Is the header present?
15782 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15783 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15784 cat >conftest.$ac_ext <<_ACEOF
15785 /* confdefs.h. */
15786 _ACEOF
15787 cat confdefs.h >>conftest.$ac_ext
15788 cat >>conftest.$ac_ext <<_ACEOF
15789 /* end confdefs.h. */
15790 #include <$ac_header>
15791 _ACEOF
15792 if { (ac_try="$ac_cpp conftest.$ac_ext"
15793 case "(($ac_try" in
15794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15795 *) ac_try_echo=$ac_try;;
15796 esac
15797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15798 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15799 ac_status=$?
15800 grep -v '^ *+' conftest.er1 >conftest.err
15801 rm -f conftest.er1
15802 cat conftest.err >&5
15803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); } >/dev/null && {
15805 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15806 test ! -s conftest.err
15807 }; then
15808 ac_header_preproc=yes
15809 else
15810 echo "$as_me: failed program was:" >&5
15811 sed 's/^/| /' conftest.$ac_ext >&5
15813 ac_header_preproc=no
15816 rm -f conftest.err conftest.$ac_ext
15817 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15818 echo "${ECHO_T}$ac_header_preproc" >&6; }
15820 # So? What about this header?
15821 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15822 yes:no: )
15823 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15824 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15825 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15826 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15827 ac_header_preproc=yes
15829 no:yes:* )
15830 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15831 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15832 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15833 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15834 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15835 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15836 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15837 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15838 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15839 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15840 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15841 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15844 esac
15845 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15848 echo $ECHO_N "(cached) $ECHO_C" >&6
15849 else
15850 eval "$as_ac_Header=\$ac_header_preproc"
15852 ac_res=`eval echo '${'$as_ac_Header'}'`
15853 { echo "$as_me:$LINENO: result: $ac_res" >&5
15854 echo "${ECHO_T}$ac_res" >&6; }
15857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15858 cat >>confdefs.h <<_ACEOF
15859 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15860 _ACEOF
15864 done
15874 for ac_func in $ac_func_list
15876 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15877 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15878 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15879 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15880 echo $ECHO_N "(cached) $ECHO_C" >&6
15881 else
15882 cat >conftest.$ac_ext <<_ACEOF
15883 /* confdefs.h. */
15884 _ACEOF
15885 cat confdefs.h >>conftest.$ac_ext
15886 cat >>conftest.$ac_ext <<_ACEOF
15887 /* end confdefs.h. */
15888 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15890 #define $ac_func innocuous_$ac_func
15892 /* System header to define __stub macros and hopefully few prototypes,
15893 which can conflict with char $ac_func (); below.
15894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15895 <limits.h> exists even on freestanding compilers. */
15897 #ifdef __STDC__
15898 # include <limits.h>
15899 #else
15900 # include <assert.h>
15901 #endif
15903 #undef $ac_func
15905 /* Override any GCC internal prototype to avoid an error.
15906 Use char because int might match the return type of a GCC
15907 builtin and then its argument prototype would still apply. */
15908 #ifdef __cplusplus
15909 extern "C"
15910 #endif
15911 char $ac_func ();
15912 /* The GNU C library defines this for functions which it implements
15913 to always fail with ENOSYS. Some functions are actually named
15914 something starting with __ and the normal name is an alias. */
15915 #if defined __stub_$ac_func || defined __stub___$ac_func
15916 choke me
15917 #endif
15920 main ()
15922 return $ac_func ();
15924 return 0;
15926 _ACEOF
15927 rm -f conftest.$ac_objext conftest$ac_exeext
15928 if { (ac_try="$ac_link"
15929 case "(($ac_try" in
15930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15931 *) ac_try_echo=$ac_try;;
15932 esac
15933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15934 (eval "$ac_link") 2>conftest.er1
15935 ac_status=$?
15936 grep -v '^ *+' conftest.er1 >conftest.err
15937 rm -f conftest.er1
15938 cat conftest.err >&5
15939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15940 (exit $ac_status); } && {
15941 test -z "$ac_c_werror_flag" ||
15942 test ! -s conftest.err
15943 } && test -s conftest$ac_exeext &&
15944 $as_test_x conftest$ac_exeext; then
15945 eval "$as_ac_var=yes"
15946 else
15947 echo "$as_me: failed program was:" >&5
15948 sed 's/^/| /' conftest.$ac_ext >&5
15950 eval "$as_ac_var=no"
15953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15954 conftest$ac_exeext conftest.$ac_ext
15956 ac_res=`eval echo '${'$as_ac_var'}'`
15957 { echo "$as_me:$LINENO: result: $ac_res" >&5
15958 echo "${ECHO_T}$ac_res" >&6; }
15959 if test `eval echo '${'$as_ac_var'}'` = yes; then
15960 cat >>confdefs.h <<_ACEOF
15961 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15962 _ACEOF
15965 done
15983 { echo "$as_me:$LINENO: checking for working mktime" >&5
15984 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
15985 if test "${ac_cv_func_working_mktime+set}" = set; then
15986 echo $ECHO_N "(cached) $ECHO_C" >&6
15987 else
15988 if test "$cross_compiling" = yes; then
15989 ac_cv_func_working_mktime=no
15990 else
15991 cat >conftest.$ac_ext <<_ACEOF
15992 /* confdefs.h. */
15993 _ACEOF
15994 cat confdefs.h >>conftest.$ac_ext
15995 cat >>conftest.$ac_ext <<_ACEOF
15996 /* end confdefs.h. */
15997 /* Test program from Paul Eggert and Tony Leneis. */
15998 #ifdef TIME_WITH_SYS_TIME
15999 # include <sys/time.h>
16000 # include <time.h>
16001 #else
16002 # ifdef HAVE_SYS_TIME_H
16003 # include <sys/time.h>
16004 # else
16005 # include <time.h>
16006 # endif
16007 #endif
16009 #include <stdlib.h>
16011 #ifdef HAVE_UNISTD_H
16012 # include <unistd.h>
16013 #endif
16015 #ifndef HAVE_ALARM
16016 # define alarm(X) /* empty */
16017 #endif
16019 /* Work around redefinition to rpl_putenv by other config tests. */
16020 #undef putenv
16022 static time_t time_t_max;
16023 static time_t time_t_min;
16025 /* Values we'll use to set the TZ environment variable. */
16026 static char *tz_strings[] = {
16027 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16028 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16030 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16032 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16033 Based on a problem report from Andreas Jaeger. */
16034 static int
16035 spring_forward_gap ()
16037 /* glibc (up to about 1998-10-07) failed this test. */
16038 struct tm tm;
16040 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16041 instead of "TZ=America/Vancouver" in order to detect the bug even
16042 on systems that don't support the Olson extension, or don't have the
16043 full zoneinfo tables installed. */
16044 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16046 tm.tm_year = 98;
16047 tm.tm_mon = 3;
16048 tm.tm_mday = 5;
16049 tm.tm_hour = 2;
16050 tm.tm_min = 0;
16051 tm.tm_sec = 0;
16052 tm.tm_isdst = -1;
16053 return mktime (&tm) != (time_t) -1;
16056 static int
16057 mktime_test1 (now)
16058 time_t now;
16060 struct tm *lt;
16061 return ! (lt = localtime (&now)) || mktime (lt) == now;
16064 static int
16065 mktime_test (now)
16066 time_t now;
16068 return (mktime_test1 (now)
16069 && mktime_test1 ((time_t) (time_t_max - now))
16070 && mktime_test1 ((time_t) (time_t_min + now)));
16073 static int
16074 irix_6_4_bug ()
16076 /* Based on code from Ariel Faigon. */
16077 struct tm tm;
16078 tm.tm_year = 96;
16079 tm.tm_mon = 3;
16080 tm.tm_mday = 0;
16081 tm.tm_hour = 0;
16082 tm.tm_min = 0;
16083 tm.tm_sec = 0;
16084 tm.tm_isdst = -1;
16085 mktime (&tm);
16086 return tm.tm_mon == 2 && tm.tm_mday == 31;
16089 static int
16090 bigtime_test (j)
16091 int j;
16093 struct tm tm;
16094 time_t now;
16095 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16096 now = mktime (&tm);
16097 if (now != (time_t) -1)
16099 struct tm *lt = localtime (&now);
16100 if (! (lt
16101 && lt->tm_year == tm.tm_year
16102 && lt->tm_mon == tm.tm_mon
16103 && lt->tm_mday == tm.tm_mday
16104 && lt->tm_hour == tm.tm_hour
16105 && lt->tm_min == tm.tm_min
16106 && lt->tm_sec == tm.tm_sec
16107 && lt->tm_yday == tm.tm_yday
16108 && lt->tm_wday == tm.tm_wday
16109 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16110 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16111 return 0;
16113 return 1;
16116 static int
16117 year_2050_test ()
16119 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16120 ignoring leap seconds. */
16121 unsigned long int answer = 2527315200UL;
16123 struct tm tm;
16124 time_t t;
16125 tm.tm_year = 2050 - 1900;
16126 tm.tm_mon = 2 - 1;
16127 tm.tm_mday = 1;
16128 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16129 tm.tm_isdst = -1;
16131 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16132 instead of "TZ=America/Vancouver" in order to detect the bug even
16133 on systems that don't support the Olson extension, or don't have the
16134 full zoneinfo tables installed. */
16135 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16137 t = mktime (&tm);
16139 /* Check that the result is either a failure, or close enough
16140 to the correct answer that we can assume the discrepancy is
16141 due to leap seconds. */
16142 return (t == (time_t) -1
16143 || (0 < t && answer - 120 <= t && t <= answer + 120));
16147 main ()
16149 time_t t, delta;
16150 int i, j;
16152 /* This test makes some buggy mktime implementations loop.
16153 Give up after 60 seconds; a mktime slower than that
16154 isn't worth using anyway. */
16155 alarm (60);
16157 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16158 continue;
16159 time_t_max--;
16160 if ((time_t) -1 < 0)
16161 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16162 continue;
16163 delta = time_t_max / 997; /* a suitable prime number */
16164 for (i = 0; i < N_STRINGS; i++)
16166 if (tz_strings[i])
16167 putenv (tz_strings[i]);
16169 for (t = 0; t <= time_t_max - delta; t += delta)
16170 if (! mktime_test (t))
16171 return 1;
16172 if (! (mktime_test ((time_t) 1)
16173 && mktime_test ((time_t) (60 * 60))
16174 && mktime_test ((time_t) (60 * 60 * 24))))
16175 return 1;
16177 for (j = 1; 0 < j; j *= 2)
16178 if (! bigtime_test (j))
16179 return 1;
16180 if (! bigtime_test (j - 1))
16181 return 1;
16183 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16185 _ACEOF
16186 rm -f conftest$ac_exeext
16187 if { (ac_try="$ac_link"
16188 case "(($ac_try" in
16189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16190 *) ac_try_echo=$ac_try;;
16191 esac
16192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16193 (eval "$ac_link") 2>&5
16194 ac_status=$?
16195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16196 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16197 { (case "(($ac_try" in
16198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16199 *) ac_try_echo=$ac_try;;
16200 esac
16201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16202 (eval "$ac_try") 2>&5
16203 ac_status=$?
16204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205 (exit $ac_status); }; }; then
16206 ac_cv_func_working_mktime=yes
16207 else
16208 echo "$as_me: program exited with status $ac_status" >&5
16209 echo "$as_me: failed program was:" >&5
16210 sed 's/^/| /' conftest.$ac_ext >&5
16212 ( exit $ac_status )
16213 ac_cv_func_working_mktime=no
16215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16220 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16221 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16222 if test $ac_cv_func_working_mktime = no; then
16223 case " $LIBOBJS " in
16224 *" mktime.$ac_objext "* ) ;;
16225 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16227 esac
16231 if test "$ac_cv_func_working_mktime" = no; then
16233 cat >>confdefs.h <<\_ACEOF
16234 #define BROKEN_MKTIME 1
16235 _ACEOF
16239 ac_have_func=no # yes means we've found a way to get the load average.
16241 # Make sure getloadavg.c is where it belongs, at configure-time.
16242 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16243 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16244 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16245 { (exit 1); exit 1; }; }
16247 ac_save_LIBS=$LIBS
16249 # Check for getloadavg, but be sure not to touch the cache variable.
16250 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16251 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16252 if test "${ac_cv_func_getloadavg+set}" = set; then
16253 echo $ECHO_N "(cached) $ECHO_C" >&6
16254 else
16255 cat >conftest.$ac_ext <<_ACEOF
16256 /* confdefs.h. */
16257 _ACEOF
16258 cat confdefs.h >>conftest.$ac_ext
16259 cat >>conftest.$ac_ext <<_ACEOF
16260 /* end confdefs.h. */
16261 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16262 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16263 #define getloadavg innocuous_getloadavg
16265 /* System header to define __stub macros and hopefully few prototypes,
16266 which can conflict with char getloadavg (); below.
16267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16268 <limits.h> exists even on freestanding compilers. */
16270 #ifdef __STDC__
16271 # include <limits.h>
16272 #else
16273 # include <assert.h>
16274 #endif
16276 #undef getloadavg
16278 /* Override any GCC internal prototype to avoid an error.
16279 Use char because int might match the return type of a GCC
16280 builtin and then its argument prototype would still apply. */
16281 #ifdef __cplusplus
16282 extern "C"
16283 #endif
16284 char getloadavg ();
16285 /* The GNU C library defines this for functions which it implements
16286 to always fail with ENOSYS. Some functions are actually named
16287 something starting with __ and the normal name is an alias. */
16288 #if defined __stub_getloadavg || defined __stub___getloadavg
16289 choke me
16290 #endif
16293 main ()
16295 return getloadavg ();
16297 return 0;
16299 _ACEOF
16300 rm -f conftest.$ac_objext conftest$ac_exeext
16301 if { (ac_try="$ac_link"
16302 case "(($ac_try" in
16303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16304 *) ac_try_echo=$ac_try;;
16305 esac
16306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16307 (eval "$ac_link") 2>conftest.er1
16308 ac_status=$?
16309 grep -v '^ *+' conftest.er1 >conftest.err
16310 rm -f conftest.er1
16311 cat conftest.err >&5
16312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313 (exit $ac_status); } && {
16314 test -z "$ac_c_werror_flag" ||
16315 test ! -s conftest.err
16316 } && test -s conftest$ac_exeext &&
16317 $as_test_x conftest$ac_exeext; then
16318 ac_cv_func_getloadavg=yes
16319 else
16320 echo "$as_me: failed program was:" >&5
16321 sed 's/^/| /' conftest.$ac_ext >&5
16323 ac_cv_func_getloadavg=no
16326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16327 conftest$ac_exeext conftest.$ac_ext
16329 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16330 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16331 if test $ac_cv_func_getloadavg = yes; then
16332 exit 0
16333 else
16334 exit 1
16336 ) && ac_have_func=yes
16338 # On HPUX9, an unprivileged user can get load averages through this function.
16340 for ac_func in pstat_getdynamic
16342 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16343 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16344 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16345 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16346 echo $ECHO_N "(cached) $ECHO_C" >&6
16347 else
16348 cat >conftest.$ac_ext <<_ACEOF
16349 /* confdefs.h. */
16350 _ACEOF
16351 cat confdefs.h >>conftest.$ac_ext
16352 cat >>conftest.$ac_ext <<_ACEOF
16353 /* end confdefs.h. */
16354 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16355 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16356 #define $ac_func innocuous_$ac_func
16358 /* System header to define __stub macros and hopefully few prototypes,
16359 which can conflict with char $ac_func (); below.
16360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16361 <limits.h> exists even on freestanding compilers. */
16363 #ifdef __STDC__
16364 # include <limits.h>
16365 #else
16366 # include <assert.h>
16367 #endif
16369 #undef $ac_func
16371 /* Override any GCC internal prototype to avoid an error.
16372 Use char because int might match the return type of a GCC
16373 builtin and then its argument prototype would still apply. */
16374 #ifdef __cplusplus
16375 extern "C"
16376 #endif
16377 char $ac_func ();
16378 /* The GNU C library defines this for functions which it implements
16379 to always fail with ENOSYS. Some functions are actually named
16380 something starting with __ and the normal name is an alias. */
16381 #if defined __stub_$ac_func || defined __stub___$ac_func
16382 choke me
16383 #endif
16386 main ()
16388 return $ac_func ();
16390 return 0;
16392 _ACEOF
16393 rm -f conftest.$ac_objext conftest$ac_exeext
16394 if { (ac_try="$ac_link"
16395 case "(($ac_try" in
16396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16397 *) ac_try_echo=$ac_try;;
16398 esac
16399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16400 (eval "$ac_link") 2>conftest.er1
16401 ac_status=$?
16402 grep -v '^ *+' conftest.er1 >conftest.err
16403 rm -f conftest.er1
16404 cat conftest.err >&5
16405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406 (exit $ac_status); } && {
16407 test -z "$ac_c_werror_flag" ||
16408 test ! -s conftest.err
16409 } && test -s conftest$ac_exeext &&
16410 $as_test_x conftest$ac_exeext; then
16411 eval "$as_ac_var=yes"
16412 else
16413 echo "$as_me: failed program was:" >&5
16414 sed 's/^/| /' conftest.$ac_ext >&5
16416 eval "$as_ac_var=no"
16419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16420 conftest$ac_exeext conftest.$ac_ext
16422 ac_res=`eval echo '${'$as_ac_var'}'`
16423 { echo "$as_me:$LINENO: result: $ac_res" >&5
16424 echo "${ECHO_T}$ac_res" >&6; }
16425 if test `eval echo '${'$as_ac_var'}'` = yes; then
16426 cat >>confdefs.h <<_ACEOF
16427 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16428 _ACEOF
16431 done
16434 # Solaris has libkstat which does not require root.
16436 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16437 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
16438 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16439 echo $ECHO_N "(cached) $ECHO_C" >&6
16440 else
16441 ac_check_lib_save_LIBS=$LIBS
16442 LIBS="-lkstat $LIBS"
16443 cat >conftest.$ac_ext <<_ACEOF
16444 /* confdefs.h. */
16445 _ACEOF
16446 cat confdefs.h >>conftest.$ac_ext
16447 cat >>conftest.$ac_ext <<_ACEOF
16448 /* end confdefs.h. */
16450 /* Override any GCC internal prototype to avoid an error.
16451 Use char because int might match the return type of a GCC
16452 builtin and then its argument prototype would still apply. */
16453 #ifdef __cplusplus
16454 extern "C"
16455 #endif
16456 char kstat_open ();
16458 main ()
16460 return kstat_open ();
16462 return 0;
16464 _ACEOF
16465 rm -f conftest.$ac_objext conftest$ac_exeext
16466 if { (ac_try="$ac_link"
16467 case "(($ac_try" in
16468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16469 *) ac_try_echo=$ac_try;;
16470 esac
16471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16472 (eval "$ac_link") 2>conftest.er1
16473 ac_status=$?
16474 grep -v '^ *+' conftest.er1 >conftest.err
16475 rm -f conftest.er1
16476 cat conftest.err >&5
16477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16478 (exit $ac_status); } && {
16479 test -z "$ac_c_werror_flag" ||
16480 test ! -s conftest.err
16481 } && test -s conftest$ac_exeext &&
16482 $as_test_x conftest$ac_exeext; then
16483 ac_cv_lib_kstat_kstat_open=yes
16484 else
16485 echo "$as_me: failed program was:" >&5
16486 sed 's/^/| /' conftest.$ac_ext >&5
16488 ac_cv_lib_kstat_kstat_open=no
16491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16492 conftest$ac_exeext conftest.$ac_ext
16493 LIBS=$ac_check_lib_save_LIBS
16495 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
16496 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16497 if test $ac_cv_lib_kstat_kstat_open = yes; then
16498 cat >>confdefs.h <<_ACEOF
16499 #define HAVE_LIBKSTAT 1
16500 _ACEOF
16502 LIBS="-lkstat $LIBS"
16506 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16508 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16509 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16510 # to get the right answer into the cache.
16511 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16512 if test $ac_have_func = no; then
16513 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
16514 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
16515 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16516 echo $ECHO_N "(cached) $ECHO_C" >&6
16517 else
16518 ac_check_lib_save_LIBS=$LIBS
16519 LIBS="-lelf $LIBS"
16520 cat >conftest.$ac_ext <<_ACEOF
16521 /* confdefs.h. */
16522 _ACEOF
16523 cat confdefs.h >>conftest.$ac_ext
16524 cat >>conftest.$ac_ext <<_ACEOF
16525 /* end confdefs.h. */
16527 /* Override any GCC internal prototype to avoid an error.
16528 Use char because int might match the return type of a GCC
16529 builtin and then its argument prototype would still apply. */
16530 #ifdef __cplusplus
16531 extern "C"
16532 #endif
16533 char elf_begin ();
16535 main ()
16537 return elf_begin ();
16539 return 0;
16541 _ACEOF
16542 rm -f conftest.$ac_objext conftest$ac_exeext
16543 if { (ac_try="$ac_link"
16544 case "(($ac_try" in
16545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16546 *) ac_try_echo=$ac_try;;
16547 esac
16548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16549 (eval "$ac_link") 2>conftest.er1
16550 ac_status=$?
16551 grep -v '^ *+' conftest.er1 >conftest.err
16552 rm -f conftest.er1
16553 cat conftest.err >&5
16554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555 (exit $ac_status); } && {
16556 test -z "$ac_c_werror_flag" ||
16557 test ! -s conftest.err
16558 } && test -s conftest$ac_exeext &&
16559 $as_test_x conftest$ac_exeext; then
16560 ac_cv_lib_elf_elf_begin=yes
16561 else
16562 echo "$as_me: failed program was:" >&5
16563 sed 's/^/| /' conftest.$ac_ext >&5
16565 ac_cv_lib_elf_elf_begin=no
16568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16569 conftest$ac_exeext conftest.$ac_ext
16570 LIBS=$ac_check_lib_save_LIBS
16572 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
16573 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16574 if test $ac_cv_lib_elf_elf_begin = yes; then
16575 LIBS="-lelf $LIBS"
16579 if test $ac_have_func = no; then
16580 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
16581 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
16582 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16583 echo $ECHO_N "(cached) $ECHO_C" >&6
16584 else
16585 ac_check_lib_save_LIBS=$LIBS
16586 LIBS="-lkvm $LIBS"
16587 cat >conftest.$ac_ext <<_ACEOF
16588 /* confdefs.h. */
16589 _ACEOF
16590 cat confdefs.h >>conftest.$ac_ext
16591 cat >>conftest.$ac_ext <<_ACEOF
16592 /* end confdefs.h. */
16594 /* Override any GCC internal prototype to avoid an error.
16595 Use char because int might match the return type of a GCC
16596 builtin and then its argument prototype would still apply. */
16597 #ifdef __cplusplus
16598 extern "C"
16599 #endif
16600 char kvm_open ();
16602 main ()
16604 return kvm_open ();
16606 return 0;
16608 _ACEOF
16609 rm -f conftest.$ac_objext conftest$ac_exeext
16610 if { (ac_try="$ac_link"
16611 case "(($ac_try" in
16612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16613 *) ac_try_echo=$ac_try;;
16614 esac
16615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16616 (eval "$ac_link") 2>conftest.er1
16617 ac_status=$?
16618 grep -v '^ *+' conftest.er1 >conftest.err
16619 rm -f conftest.er1
16620 cat conftest.err >&5
16621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16622 (exit $ac_status); } && {
16623 test -z "$ac_c_werror_flag" ||
16624 test ! -s conftest.err
16625 } && test -s conftest$ac_exeext &&
16626 $as_test_x conftest$ac_exeext; then
16627 ac_cv_lib_kvm_kvm_open=yes
16628 else
16629 echo "$as_me: failed program was:" >&5
16630 sed 's/^/| /' conftest.$ac_ext >&5
16632 ac_cv_lib_kvm_kvm_open=no
16635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16636 conftest$ac_exeext conftest.$ac_ext
16637 LIBS=$ac_check_lib_save_LIBS
16639 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
16640 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
16641 if test $ac_cv_lib_kvm_kvm_open = yes; then
16642 LIBS="-lkvm $LIBS"
16645 # Check for the 4.4BSD definition of getloadavg.
16646 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
16647 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
16648 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16649 echo $ECHO_N "(cached) $ECHO_C" >&6
16650 else
16651 ac_check_lib_save_LIBS=$LIBS
16652 LIBS="-lutil $LIBS"
16653 cat >conftest.$ac_ext <<_ACEOF
16654 /* confdefs.h. */
16655 _ACEOF
16656 cat confdefs.h >>conftest.$ac_ext
16657 cat >>conftest.$ac_ext <<_ACEOF
16658 /* end confdefs.h. */
16660 /* Override any GCC internal prototype to avoid an error.
16661 Use char because int might match the return type of a GCC
16662 builtin and then its argument prototype would still apply. */
16663 #ifdef __cplusplus
16664 extern "C"
16665 #endif
16666 char getloadavg ();
16668 main ()
16670 return getloadavg ();
16672 return 0;
16674 _ACEOF
16675 rm -f conftest.$ac_objext conftest$ac_exeext
16676 if { (ac_try="$ac_link"
16677 case "(($ac_try" in
16678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16679 *) ac_try_echo=$ac_try;;
16680 esac
16681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16682 (eval "$ac_link") 2>conftest.er1
16683 ac_status=$?
16684 grep -v '^ *+' conftest.er1 >conftest.err
16685 rm -f conftest.er1
16686 cat conftest.err >&5
16687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688 (exit $ac_status); } && {
16689 test -z "$ac_c_werror_flag" ||
16690 test ! -s conftest.err
16691 } && test -s conftest$ac_exeext &&
16692 $as_test_x conftest$ac_exeext; then
16693 ac_cv_lib_util_getloadavg=yes
16694 else
16695 echo "$as_me: failed program was:" >&5
16696 sed 's/^/| /' conftest.$ac_ext >&5
16698 ac_cv_lib_util_getloadavg=no
16701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16702 conftest$ac_exeext conftest.$ac_ext
16703 LIBS=$ac_check_lib_save_LIBS
16705 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
16706 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
16707 if test $ac_cv_lib_util_getloadavg = yes; then
16708 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16713 if test $ac_have_func = no; then
16714 # There is a commonly available library for RS/6000 AIX.
16715 # Since it is not a standard part of AIX, it might be installed locally.
16716 ac_getloadavg_LIBS=$LIBS
16717 LIBS="-L/usr/local/lib $LIBS"
16718 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
16719 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
16720 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16721 echo $ECHO_N "(cached) $ECHO_C" >&6
16722 else
16723 ac_check_lib_save_LIBS=$LIBS
16724 LIBS="-lgetloadavg $LIBS"
16725 cat >conftest.$ac_ext <<_ACEOF
16726 /* confdefs.h. */
16727 _ACEOF
16728 cat confdefs.h >>conftest.$ac_ext
16729 cat >>conftest.$ac_ext <<_ACEOF
16730 /* end confdefs.h. */
16732 /* Override any GCC internal prototype to avoid an error.
16733 Use char because int might match the return type of a GCC
16734 builtin and then its argument prototype would still apply. */
16735 #ifdef __cplusplus
16736 extern "C"
16737 #endif
16738 char getloadavg ();
16740 main ()
16742 return getloadavg ();
16744 return 0;
16746 _ACEOF
16747 rm -f conftest.$ac_objext conftest$ac_exeext
16748 if { (ac_try="$ac_link"
16749 case "(($ac_try" in
16750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16751 *) ac_try_echo=$ac_try;;
16752 esac
16753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16754 (eval "$ac_link") 2>conftest.er1
16755 ac_status=$?
16756 grep -v '^ *+' conftest.er1 >conftest.err
16757 rm -f conftest.er1
16758 cat conftest.err >&5
16759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760 (exit $ac_status); } && {
16761 test -z "$ac_c_werror_flag" ||
16762 test ! -s conftest.err
16763 } && test -s conftest$ac_exeext &&
16764 $as_test_x conftest$ac_exeext; then
16765 ac_cv_lib_getloadavg_getloadavg=yes
16766 else
16767 echo "$as_me: failed program was:" >&5
16768 sed 's/^/| /' conftest.$ac_ext >&5
16770 ac_cv_lib_getloadavg_getloadavg=no
16773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16774 conftest$ac_exeext conftest.$ac_ext
16775 LIBS=$ac_check_lib_save_LIBS
16777 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
16778 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
16779 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16780 LIBS="-lgetloadavg $LIBS"
16781 else
16782 LIBS=$ac_getloadavg_LIBS
16787 # Make sure it is really in the library, if we think we found it,
16788 # otherwise set up the replacement function.
16790 for ac_func in getloadavg
16792 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16793 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16794 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16795 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16796 echo $ECHO_N "(cached) $ECHO_C" >&6
16797 else
16798 cat >conftest.$ac_ext <<_ACEOF
16799 /* confdefs.h. */
16800 _ACEOF
16801 cat confdefs.h >>conftest.$ac_ext
16802 cat >>conftest.$ac_ext <<_ACEOF
16803 /* end confdefs.h. */
16804 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16806 #define $ac_func innocuous_$ac_func
16808 /* System header to define __stub macros and hopefully few prototypes,
16809 which can conflict with char $ac_func (); below.
16810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16811 <limits.h> exists even on freestanding compilers. */
16813 #ifdef __STDC__
16814 # include <limits.h>
16815 #else
16816 # include <assert.h>
16817 #endif
16819 #undef $ac_func
16821 /* Override any GCC internal prototype to avoid an error.
16822 Use char because int might match the return type of a GCC
16823 builtin and then its argument prototype would still apply. */
16824 #ifdef __cplusplus
16825 extern "C"
16826 #endif
16827 char $ac_func ();
16828 /* The GNU C library defines this for functions which it implements
16829 to always fail with ENOSYS. Some functions are actually named
16830 something starting with __ and the normal name is an alias. */
16831 #if defined __stub_$ac_func || defined __stub___$ac_func
16832 choke me
16833 #endif
16836 main ()
16838 return $ac_func ();
16840 return 0;
16842 _ACEOF
16843 rm -f conftest.$ac_objext conftest$ac_exeext
16844 if { (ac_try="$ac_link"
16845 case "(($ac_try" in
16846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16847 *) ac_try_echo=$ac_try;;
16848 esac
16849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16850 (eval "$ac_link") 2>conftest.er1
16851 ac_status=$?
16852 grep -v '^ *+' conftest.er1 >conftest.err
16853 rm -f conftest.er1
16854 cat conftest.err >&5
16855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16856 (exit $ac_status); } && {
16857 test -z "$ac_c_werror_flag" ||
16858 test ! -s conftest.err
16859 } && test -s conftest$ac_exeext &&
16860 $as_test_x conftest$ac_exeext; then
16861 eval "$as_ac_var=yes"
16862 else
16863 echo "$as_me: failed program was:" >&5
16864 sed 's/^/| /' conftest.$ac_ext >&5
16866 eval "$as_ac_var=no"
16869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16870 conftest$ac_exeext conftest.$ac_ext
16872 ac_res=`eval echo '${'$as_ac_var'}'`
16873 { echo "$as_me:$LINENO: result: $ac_res" >&5
16874 echo "${ECHO_T}$ac_res" >&6; }
16875 if test `eval echo '${'$as_ac_var'}'` = yes; then
16876 cat >>confdefs.h <<_ACEOF
16877 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16878 _ACEOF
16880 else
16881 case " $LIBOBJS " in
16882 *" getloadavg.$ac_objext "* ) ;;
16883 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
16885 esac
16888 cat >>confdefs.h <<\_ACEOF
16889 #define C_GETLOADAVG 1
16890 _ACEOF
16892 # Figure out what our getloadavg.c needs.
16893 ac_have_func=no
16894 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16895 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16896 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
16897 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16898 echo $ECHO_N "(cached) $ECHO_C" >&6
16900 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16901 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16902 else
16903 # Is the header compilable?
16904 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
16905 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
16906 cat >conftest.$ac_ext <<_ACEOF
16907 /* confdefs.h. */
16908 _ACEOF
16909 cat confdefs.h >>conftest.$ac_ext
16910 cat >>conftest.$ac_ext <<_ACEOF
16911 /* end confdefs.h. */
16912 $ac_includes_default
16913 #include <sys/dg_sys_info.h>
16914 _ACEOF
16915 rm -f conftest.$ac_objext
16916 if { (ac_try="$ac_compile"
16917 case "(($ac_try" in
16918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16919 *) ac_try_echo=$ac_try;;
16920 esac
16921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16922 (eval "$ac_compile") 2>conftest.er1
16923 ac_status=$?
16924 grep -v '^ *+' conftest.er1 >conftest.err
16925 rm -f conftest.er1
16926 cat conftest.err >&5
16927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928 (exit $ac_status); } && {
16929 test -z "$ac_c_werror_flag" ||
16930 test ! -s conftest.err
16931 } && test -s conftest.$ac_objext; then
16932 ac_header_compiler=yes
16933 else
16934 echo "$as_me: failed program was:" >&5
16935 sed 's/^/| /' conftest.$ac_ext >&5
16937 ac_header_compiler=no
16940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16941 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16942 echo "${ECHO_T}$ac_header_compiler" >&6; }
16944 # Is the header present?
16945 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
16946 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
16947 cat >conftest.$ac_ext <<_ACEOF
16948 /* confdefs.h. */
16949 _ACEOF
16950 cat confdefs.h >>conftest.$ac_ext
16951 cat >>conftest.$ac_ext <<_ACEOF
16952 /* end confdefs.h. */
16953 #include <sys/dg_sys_info.h>
16954 _ACEOF
16955 if { (ac_try="$ac_cpp conftest.$ac_ext"
16956 case "(($ac_try" in
16957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16958 *) ac_try_echo=$ac_try;;
16959 esac
16960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16962 ac_status=$?
16963 grep -v '^ *+' conftest.er1 >conftest.err
16964 rm -f conftest.er1
16965 cat conftest.err >&5
16966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967 (exit $ac_status); } >/dev/null && {
16968 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16969 test ! -s conftest.err
16970 }; then
16971 ac_header_preproc=yes
16972 else
16973 echo "$as_me: failed program was:" >&5
16974 sed 's/^/| /' conftest.$ac_ext >&5
16976 ac_header_preproc=no
16979 rm -f conftest.err conftest.$ac_ext
16980 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16981 echo "${ECHO_T}$ac_header_preproc" >&6; }
16983 # So? What about this header?
16984 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16985 yes:no: )
16986 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
16987 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16988 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
16989 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
16990 ac_header_preproc=yes
16992 no:yes:* )
16993 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
16994 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
16995 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
16996 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
16997 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
16998 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
16999 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17000 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17001 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17002 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17003 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17004 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17007 esac
17008 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17009 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17010 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17011 echo $ECHO_N "(cached) $ECHO_C" >&6
17012 else
17013 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17015 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17016 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17019 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17020 ac_have_func=yes
17022 cat >>confdefs.h <<\_ACEOF
17023 #define DGUX 1
17024 _ACEOF
17027 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17028 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17029 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17030 echo $ECHO_N "(cached) $ECHO_C" >&6
17031 else
17032 ac_check_lib_save_LIBS=$LIBS
17033 LIBS="-ldgc $LIBS"
17034 cat >conftest.$ac_ext <<_ACEOF
17035 /* confdefs.h. */
17036 _ACEOF
17037 cat confdefs.h >>conftest.$ac_ext
17038 cat >>conftest.$ac_ext <<_ACEOF
17039 /* end confdefs.h. */
17041 /* Override any GCC internal prototype to avoid an error.
17042 Use char because int might match the return type of a GCC
17043 builtin and then its argument prototype would still apply. */
17044 #ifdef __cplusplus
17045 extern "C"
17046 #endif
17047 char dg_sys_info ();
17049 main ()
17051 return dg_sys_info ();
17053 return 0;
17055 _ACEOF
17056 rm -f conftest.$ac_objext conftest$ac_exeext
17057 if { (ac_try="$ac_link"
17058 case "(($ac_try" in
17059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17060 *) ac_try_echo=$ac_try;;
17061 esac
17062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17063 (eval "$ac_link") 2>conftest.er1
17064 ac_status=$?
17065 grep -v '^ *+' conftest.er1 >conftest.err
17066 rm -f conftest.er1
17067 cat conftest.err >&5
17068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069 (exit $ac_status); } && {
17070 test -z "$ac_c_werror_flag" ||
17071 test ! -s conftest.err
17072 } && test -s conftest$ac_exeext &&
17073 $as_test_x conftest$ac_exeext; then
17074 ac_cv_lib_dgc_dg_sys_info=yes
17075 else
17076 echo "$as_me: failed program was:" >&5
17077 sed 's/^/| /' conftest.$ac_ext >&5
17079 ac_cv_lib_dgc_dg_sys_info=no
17082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17083 conftest$ac_exeext conftest.$ac_ext
17084 LIBS=$ac_check_lib_save_LIBS
17086 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17087 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17088 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17089 cat >>confdefs.h <<_ACEOF
17090 #define HAVE_LIBDGC 1
17091 _ACEOF
17093 LIBS="-ldgc $LIBS"
17101 if test "${ac_cv_header_locale_h+set}" = set; then
17102 { echo "$as_me:$LINENO: checking for locale.h" >&5
17103 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17104 if test "${ac_cv_header_locale_h+set}" = set; then
17105 echo $ECHO_N "(cached) $ECHO_C" >&6
17107 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17108 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17109 else
17110 # Is the header compilable?
17111 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17112 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17113 cat >conftest.$ac_ext <<_ACEOF
17114 /* confdefs.h. */
17115 _ACEOF
17116 cat confdefs.h >>conftest.$ac_ext
17117 cat >>conftest.$ac_ext <<_ACEOF
17118 /* end confdefs.h. */
17119 $ac_includes_default
17120 #include <locale.h>
17121 _ACEOF
17122 rm -f conftest.$ac_objext
17123 if { (ac_try="$ac_compile"
17124 case "(($ac_try" in
17125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17126 *) ac_try_echo=$ac_try;;
17127 esac
17128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17129 (eval "$ac_compile") 2>conftest.er1
17130 ac_status=$?
17131 grep -v '^ *+' conftest.er1 >conftest.err
17132 rm -f conftest.er1
17133 cat conftest.err >&5
17134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135 (exit $ac_status); } && {
17136 test -z "$ac_c_werror_flag" ||
17137 test ! -s conftest.err
17138 } && test -s conftest.$ac_objext; then
17139 ac_header_compiler=yes
17140 else
17141 echo "$as_me: failed program was:" >&5
17142 sed 's/^/| /' conftest.$ac_ext >&5
17144 ac_header_compiler=no
17147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17148 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17149 echo "${ECHO_T}$ac_header_compiler" >&6; }
17151 # Is the header present?
17152 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17153 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17154 cat >conftest.$ac_ext <<_ACEOF
17155 /* confdefs.h. */
17156 _ACEOF
17157 cat confdefs.h >>conftest.$ac_ext
17158 cat >>conftest.$ac_ext <<_ACEOF
17159 /* end confdefs.h. */
17160 #include <locale.h>
17161 _ACEOF
17162 if { (ac_try="$ac_cpp conftest.$ac_ext"
17163 case "(($ac_try" in
17164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17165 *) ac_try_echo=$ac_try;;
17166 esac
17167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17168 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17169 ac_status=$?
17170 grep -v '^ *+' conftest.er1 >conftest.err
17171 rm -f conftest.er1
17172 cat conftest.err >&5
17173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174 (exit $ac_status); } >/dev/null && {
17175 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17176 test ! -s conftest.err
17177 }; then
17178 ac_header_preproc=yes
17179 else
17180 echo "$as_me: failed program was:" >&5
17181 sed 's/^/| /' conftest.$ac_ext >&5
17183 ac_header_preproc=no
17186 rm -f conftest.err conftest.$ac_ext
17187 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17188 echo "${ECHO_T}$ac_header_preproc" >&6; }
17190 # So? What about this header?
17191 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17192 yes:no: )
17193 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17194 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17195 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17196 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17197 ac_header_preproc=yes
17199 no:yes:* )
17200 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17201 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17202 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17203 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17204 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17205 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17206 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17207 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17208 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17209 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17210 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17211 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17214 esac
17215 { echo "$as_me:$LINENO: checking for locale.h" >&5
17216 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17217 if test "${ac_cv_header_locale_h+set}" = set; then
17218 echo $ECHO_N "(cached) $ECHO_C" >&6
17219 else
17220 ac_cv_header_locale_h=$ac_header_preproc
17222 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17223 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17229 for ac_func in setlocale
17231 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17232 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17233 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17234 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17235 echo $ECHO_N "(cached) $ECHO_C" >&6
17236 else
17237 cat >conftest.$ac_ext <<_ACEOF
17238 /* confdefs.h. */
17239 _ACEOF
17240 cat confdefs.h >>conftest.$ac_ext
17241 cat >>conftest.$ac_ext <<_ACEOF
17242 /* end confdefs.h. */
17243 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17245 #define $ac_func innocuous_$ac_func
17247 /* System header to define __stub macros and hopefully few prototypes,
17248 which can conflict with char $ac_func (); below.
17249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17250 <limits.h> exists even on freestanding compilers. */
17252 #ifdef __STDC__
17253 # include <limits.h>
17254 #else
17255 # include <assert.h>
17256 #endif
17258 #undef $ac_func
17260 /* Override any GCC internal prototype to avoid an error.
17261 Use char because int might match the return type of a GCC
17262 builtin and then its argument prototype would still apply. */
17263 #ifdef __cplusplus
17264 extern "C"
17265 #endif
17266 char $ac_func ();
17267 /* The GNU C library defines this for functions which it implements
17268 to always fail with ENOSYS. Some functions are actually named
17269 something starting with __ and the normal name is an alias. */
17270 #if defined __stub_$ac_func || defined __stub___$ac_func
17271 choke me
17272 #endif
17275 main ()
17277 return $ac_func ();
17279 return 0;
17281 _ACEOF
17282 rm -f conftest.$ac_objext conftest$ac_exeext
17283 if { (ac_try="$ac_link"
17284 case "(($ac_try" in
17285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17286 *) ac_try_echo=$ac_try;;
17287 esac
17288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17289 (eval "$ac_link") 2>conftest.er1
17290 ac_status=$?
17291 grep -v '^ *+' conftest.er1 >conftest.err
17292 rm -f conftest.er1
17293 cat conftest.err >&5
17294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17295 (exit $ac_status); } && {
17296 test -z "$ac_c_werror_flag" ||
17297 test ! -s conftest.err
17298 } && test -s conftest$ac_exeext &&
17299 $as_test_x conftest$ac_exeext; then
17300 eval "$as_ac_var=yes"
17301 else
17302 echo "$as_me: failed program was:" >&5
17303 sed 's/^/| /' conftest.$ac_ext >&5
17305 eval "$as_ac_var=no"
17308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17309 conftest$ac_exeext conftest.$ac_ext
17311 ac_res=`eval echo '${'$as_ac_var'}'`
17312 { echo "$as_me:$LINENO: result: $ac_res" >&5
17313 echo "${ECHO_T}$ac_res" >&6; }
17314 if test `eval echo '${'$as_ac_var'}'` = yes; then
17315 cat >>confdefs.h <<_ACEOF
17316 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17317 _ACEOF
17320 done
17323 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17324 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17325 # Irix 4.0.5F has the header but not the library.
17326 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17327 ac_have_func=yes
17329 cat >>confdefs.h <<\_ACEOF
17330 #define SVR4 1
17331 _ACEOF
17335 if test $ac_have_func = no; then
17336 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17337 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17338 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17339 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17340 echo $ECHO_N "(cached) $ECHO_C" >&6
17342 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17343 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17344 else
17345 # Is the header compilable?
17346 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17347 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
17348 cat >conftest.$ac_ext <<_ACEOF
17349 /* confdefs.h. */
17350 _ACEOF
17351 cat confdefs.h >>conftest.$ac_ext
17352 cat >>conftest.$ac_ext <<_ACEOF
17353 /* end confdefs.h. */
17354 $ac_includes_default
17355 #include <inq_stats/cpustats.h>
17356 _ACEOF
17357 rm -f conftest.$ac_objext
17358 if { (ac_try="$ac_compile"
17359 case "(($ac_try" in
17360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17361 *) ac_try_echo=$ac_try;;
17362 esac
17363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17364 (eval "$ac_compile") 2>conftest.er1
17365 ac_status=$?
17366 grep -v '^ *+' conftest.er1 >conftest.err
17367 rm -f conftest.er1
17368 cat conftest.err >&5
17369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370 (exit $ac_status); } && {
17371 test -z "$ac_c_werror_flag" ||
17372 test ! -s conftest.err
17373 } && test -s conftest.$ac_objext; then
17374 ac_header_compiler=yes
17375 else
17376 echo "$as_me: failed program was:" >&5
17377 sed 's/^/| /' conftest.$ac_ext >&5
17379 ac_header_compiler=no
17382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17383 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17384 echo "${ECHO_T}$ac_header_compiler" >&6; }
17386 # Is the header present?
17387 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17388 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
17389 cat >conftest.$ac_ext <<_ACEOF
17390 /* confdefs.h. */
17391 _ACEOF
17392 cat confdefs.h >>conftest.$ac_ext
17393 cat >>conftest.$ac_ext <<_ACEOF
17394 /* end confdefs.h. */
17395 #include <inq_stats/cpustats.h>
17396 _ACEOF
17397 if { (ac_try="$ac_cpp conftest.$ac_ext"
17398 case "(($ac_try" in
17399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17400 *) ac_try_echo=$ac_try;;
17401 esac
17402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17403 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17404 ac_status=$?
17405 grep -v '^ *+' conftest.er1 >conftest.err
17406 rm -f conftest.er1
17407 cat conftest.err >&5
17408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409 (exit $ac_status); } >/dev/null && {
17410 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17411 test ! -s conftest.err
17412 }; then
17413 ac_header_preproc=yes
17414 else
17415 echo "$as_me: failed program was:" >&5
17416 sed 's/^/| /' conftest.$ac_ext >&5
17418 ac_header_preproc=no
17421 rm -f conftest.err conftest.$ac_ext
17422 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17423 echo "${ECHO_T}$ac_header_preproc" >&6; }
17425 # So? What about this header?
17426 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17427 yes:no: )
17428 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17429 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17430 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17431 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17432 ac_header_preproc=yes
17434 no:yes:* )
17435 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17436 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17437 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17438 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17439 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17440 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17441 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17442 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17443 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17444 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17445 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17446 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17449 esac
17450 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17451 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17452 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17453 echo $ECHO_N "(cached) $ECHO_C" >&6
17454 else
17455 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17457 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17458 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17461 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17462 ac_have_func=yes
17464 cat >>confdefs.h <<\_ACEOF
17465 #define UMAX 1
17466 _ACEOF
17469 cat >>confdefs.h <<\_ACEOF
17470 #define UMAX4_3 1
17471 _ACEOF
17478 if test $ac_have_func = no; then
17479 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17480 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17481 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17482 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17483 echo $ECHO_N "(cached) $ECHO_C" >&6
17485 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17486 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17487 else
17488 # Is the header compilable?
17489 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
17490 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
17491 cat >conftest.$ac_ext <<_ACEOF
17492 /* confdefs.h. */
17493 _ACEOF
17494 cat confdefs.h >>conftest.$ac_ext
17495 cat >>conftest.$ac_ext <<_ACEOF
17496 /* end confdefs.h. */
17497 $ac_includes_default
17498 #include <sys/cpustats.h>
17499 _ACEOF
17500 rm -f conftest.$ac_objext
17501 if { (ac_try="$ac_compile"
17502 case "(($ac_try" in
17503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17504 *) ac_try_echo=$ac_try;;
17505 esac
17506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17507 (eval "$ac_compile") 2>conftest.er1
17508 ac_status=$?
17509 grep -v '^ *+' conftest.er1 >conftest.err
17510 rm -f conftest.er1
17511 cat conftest.err >&5
17512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513 (exit $ac_status); } && {
17514 test -z "$ac_c_werror_flag" ||
17515 test ! -s conftest.err
17516 } && test -s conftest.$ac_objext; then
17517 ac_header_compiler=yes
17518 else
17519 echo "$as_me: failed program was:" >&5
17520 sed 's/^/| /' conftest.$ac_ext >&5
17522 ac_header_compiler=no
17525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17526 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17527 echo "${ECHO_T}$ac_header_compiler" >&6; }
17529 # Is the header present?
17530 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
17531 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
17532 cat >conftest.$ac_ext <<_ACEOF
17533 /* confdefs.h. */
17534 _ACEOF
17535 cat confdefs.h >>conftest.$ac_ext
17536 cat >>conftest.$ac_ext <<_ACEOF
17537 /* end confdefs.h. */
17538 #include <sys/cpustats.h>
17539 _ACEOF
17540 if { (ac_try="$ac_cpp conftest.$ac_ext"
17541 case "(($ac_try" in
17542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17543 *) ac_try_echo=$ac_try;;
17544 esac
17545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17546 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17547 ac_status=$?
17548 grep -v '^ *+' conftest.er1 >conftest.err
17549 rm -f conftest.er1
17550 cat conftest.err >&5
17551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17552 (exit $ac_status); } >/dev/null && {
17553 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17554 test ! -s conftest.err
17555 }; then
17556 ac_header_preproc=yes
17557 else
17558 echo "$as_me: failed program was:" >&5
17559 sed 's/^/| /' conftest.$ac_ext >&5
17561 ac_header_preproc=no
17564 rm -f conftest.err conftest.$ac_ext
17565 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17566 echo "${ECHO_T}$ac_header_preproc" >&6; }
17568 # So? What about this header?
17569 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17570 yes:no: )
17571 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17572 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17573 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
17574 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
17575 ac_header_preproc=yes
17577 no:yes:* )
17578 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
17579 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
17580 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
17581 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
17582 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
17583 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
17584 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17585 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17586 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
17587 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
17588 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
17589 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
17592 esac
17593 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17594 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17595 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17596 echo $ECHO_N "(cached) $ECHO_C" >&6
17597 else
17598 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17600 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17601 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17604 if test $ac_cv_header_sys_cpustats_h = yes; then
17605 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17606 #define UMAX 1
17607 _ACEOF
17614 if test $ac_have_func = no; then
17616 for ac_header in mach/mach.h
17618 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17620 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17623 echo $ECHO_N "(cached) $ECHO_C" >&6
17625 ac_res=`eval echo '${'$as_ac_Header'}'`
17626 { echo "$as_me:$LINENO: result: $ac_res" >&5
17627 echo "${ECHO_T}$ac_res" >&6; }
17628 else
17629 # Is the header compilable?
17630 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17631 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17632 cat >conftest.$ac_ext <<_ACEOF
17633 /* confdefs.h. */
17634 _ACEOF
17635 cat confdefs.h >>conftest.$ac_ext
17636 cat >>conftest.$ac_ext <<_ACEOF
17637 /* end confdefs.h. */
17638 $ac_includes_default
17639 #include <$ac_header>
17640 _ACEOF
17641 rm -f conftest.$ac_objext
17642 if { (ac_try="$ac_compile"
17643 case "(($ac_try" in
17644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17645 *) ac_try_echo=$ac_try;;
17646 esac
17647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17648 (eval "$ac_compile") 2>conftest.er1
17649 ac_status=$?
17650 grep -v '^ *+' conftest.er1 >conftest.err
17651 rm -f conftest.er1
17652 cat conftest.err >&5
17653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654 (exit $ac_status); } && {
17655 test -z "$ac_c_werror_flag" ||
17656 test ! -s conftest.err
17657 } && test -s conftest.$ac_objext; then
17658 ac_header_compiler=yes
17659 else
17660 echo "$as_me: failed program was:" >&5
17661 sed 's/^/| /' conftest.$ac_ext >&5
17663 ac_header_compiler=no
17666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17667 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17668 echo "${ECHO_T}$ac_header_compiler" >&6; }
17670 # Is the header present?
17671 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17672 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17673 cat >conftest.$ac_ext <<_ACEOF
17674 /* confdefs.h. */
17675 _ACEOF
17676 cat confdefs.h >>conftest.$ac_ext
17677 cat >>conftest.$ac_ext <<_ACEOF
17678 /* end confdefs.h. */
17679 #include <$ac_header>
17680 _ACEOF
17681 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
17694 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17695 test ! -s conftest.err
17696 }; then
17697 ac_header_preproc=yes
17698 else
17699 echo "$as_me: failed program was:" >&5
17700 sed 's/^/| /' conftest.$ac_ext >&5
17702 ac_header_preproc=no
17705 rm -f conftest.err conftest.$ac_ext
17706 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17707 echo "${ECHO_T}$ac_header_preproc" >&6; }
17709 # So? What about this header?
17710 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17711 yes:no: )
17712 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17713 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17715 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17716 ac_header_preproc=yes
17718 no:yes:* )
17719 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17720 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17721 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17722 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17723 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17724 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17725 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17726 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17728 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17729 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17730 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17733 esac
17734 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17737 echo $ECHO_N "(cached) $ECHO_C" >&6
17738 else
17739 eval "$as_ac_Header=\$ac_header_preproc"
17741 ac_res=`eval echo '${'$as_ac_Header'}'`
17742 { echo "$as_me:$LINENO: result: $ac_res" >&5
17743 echo "${ECHO_T}$ac_res" >&6; }
17746 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17747 cat >>confdefs.h <<_ACEOF
17748 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17749 _ACEOF
17753 done
17758 for ac_header in nlist.h
17760 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17761 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17762 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17765 echo $ECHO_N "(cached) $ECHO_C" >&6
17767 ac_res=`eval echo '${'$as_ac_Header'}'`
17768 { echo "$as_me:$LINENO: result: $ac_res" >&5
17769 echo "${ECHO_T}$ac_res" >&6; }
17770 else
17771 # Is the header compilable?
17772 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17773 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17774 cat >conftest.$ac_ext <<_ACEOF
17775 /* confdefs.h. */
17776 _ACEOF
17777 cat confdefs.h >>conftest.$ac_ext
17778 cat >>conftest.$ac_ext <<_ACEOF
17779 /* end confdefs.h. */
17780 $ac_includes_default
17781 #include <$ac_header>
17782 _ACEOF
17783 rm -f conftest.$ac_objext
17784 if { (ac_try="$ac_compile"
17785 case "(($ac_try" in
17786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17787 *) ac_try_echo=$ac_try;;
17788 esac
17789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17790 (eval "$ac_compile") 2>conftest.er1
17791 ac_status=$?
17792 grep -v '^ *+' conftest.er1 >conftest.err
17793 rm -f conftest.er1
17794 cat conftest.err >&5
17795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17796 (exit $ac_status); } && {
17797 test -z "$ac_c_werror_flag" ||
17798 test ! -s conftest.err
17799 } && test -s conftest.$ac_objext; then
17800 ac_header_compiler=yes
17801 else
17802 echo "$as_me: failed program was:" >&5
17803 sed 's/^/| /' conftest.$ac_ext >&5
17805 ac_header_compiler=no
17808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17809 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17810 echo "${ECHO_T}$ac_header_compiler" >&6; }
17812 # Is the header present?
17813 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17814 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17815 cat >conftest.$ac_ext <<_ACEOF
17816 /* confdefs.h. */
17817 _ACEOF
17818 cat confdefs.h >>conftest.$ac_ext
17819 cat >>conftest.$ac_ext <<_ACEOF
17820 /* end confdefs.h. */
17821 #include <$ac_header>
17822 _ACEOF
17823 if { (ac_try="$ac_cpp conftest.$ac_ext"
17824 case "(($ac_try" in
17825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17826 *) ac_try_echo=$ac_try;;
17827 esac
17828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17829 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17830 ac_status=$?
17831 grep -v '^ *+' conftest.er1 >conftest.err
17832 rm -f conftest.er1
17833 cat conftest.err >&5
17834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835 (exit $ac_status); } >/dev/null && {
17836 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17837 test ! -s conftest.err
17838 }; then
17839 ac_header_preproc=yes
17840 else
17841 echo "$as_me: failed program was:" >&5
17842 sed 's/^/| /' conftest.$ac_ext >&5
17844 ac_header_preproc=no
17847 rm -f conftest.err conftest.$ac_ext
17848 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17849 echo "${ECHO_T}$ac_header_preproc" >&6; }
17851 # So? What about this header?
17852 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17853 yes:no: )
17854 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17855 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17856 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17857 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17858 ac_header_preproc=yes
17860 no:yes:* )
17861 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17862 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17863 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17864 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17865 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17866 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17867 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17868 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17870 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17871 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17872 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17875 esac
17876 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17879 echo $ECHO_N "(cached) $ECHO_C" >&6
17880 else
17881 eval "$as_ac_Header=\$ac_header_preproc"
17883 ac_res=`eval echo '${'$as_ac_Header'}'`
17884 { echo "$as_me:$LINENO: result: $ac_res" >&5
17885 echo "${ECHO_T}$ac_res" >&6; }
17888 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17889 cat >>confdefs.h <<_ACEOF
17890 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17891 _ACEOF
17892 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
17893 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
17894 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17895 echo $ECHO_N "(cached) $ECHO_C" >&6
17896 else
17897 cat >conftest.$ac_ext <<_ACEOF
17898 /* confdefs.h. */
17899 _ACEOF
17900 cat confdefs.h >>conftest.$ac_ext
17901 cat >>conftest.$ac_ext <<_ACEOF
17902 /* end confdefs.h. */
17903 #include <nlist.h>
17906 main ()
17908 static struct nlist ac_aggr;
17909 if (ac_aggr.n_un.n_name)
17910 return 0;
17912 return 0;
17914 _ACEOF
17915 rm -f conftest.$ac_objext
17916 if { (ac_try="$ac_compile"
17917 case "(($ac_try" in
17918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17919 *) ac_try_echo=$ac_try;;
17920 esac
17921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17922 (eval "$ac_compile") 2>conftest.er1
17923 ac_status=$?
17924 grep -v '^ *+' conftest.er1 >conftest.err
17925 rm -f conftest.er1
17926 cat conftest.err >&5
17927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17928 (exit $ac_status); } && {
17929 test -z "$ac_c_werror_flag" ||
17930 test ! -s conftest.err
17931 } && test -s conftest.$ac_objext; then
17932 ac_cv_member_struct_nlist_n_un_n_name=yes
17933 else
17934 echo "$as_me: failed program was:" >&5
17935 sed 's/^/| /' conftest.$ac_ext >&5
17937 cat >conftest.$ac_ext <<_ACEOF
17938 /* confdefs.h. */
17939 _ACEOF
17940 cat confdefs.h >>conftest.$ac_ext
17941 cat >>conftest.$ac_ext <<_ACEOF
17942 /* end confdefs.h. */
17943 #include <nlist.h>
17946 main ()
17948 static struct nlist ac_aggr;
17949 if (sizeof ac_aggr.n_un.n_name)
17950 return 0;
17952 return 0;
17954 _ACEOF
17955 rm -f conftest.$ac_objext
17956 if { (ac_try="$ac_compile"
17957 case "(($ac_try" in
17958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17959 *) ac_try_echo=$ac_try;;
17960 esac
17961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17962 (eval "$ac_compile") 2>conftest.er1
17963 ac_status=$?
17964 grep -v '^ *+' conftest.er1 >conftest.err
17965 rm -f conftest.er1
17966 cat conftest.err >&5
17967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968 (exit $ac_status); } && {
17969 test -z "$ac_c_werror_flag" ||
17970 test ! -s conftest.err
17971 } && test -s conftest.$ac_objext; then
17972 ac_cv_member_struct_nlist_n_un_n_name=yes
17973 else
17974 echo "$as_me: failed program was:" >&5
17975 sed 's/^/| /' conftest.$ac_ext >&5
17977 ac_cv_member_struct_nlist_n_un_n_name=no
17980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17985 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17986 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
17987 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17989 cat >>confdefs.h <<_ACEOF
17990 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17991 _ACEOF
17994 cat >>confdefs.h <<\_ACEOF
17995 #define NLIST_NAME_UNION 1
17996 _ACEOF
18003 done
18006 done
18009 # Some definitions of getloadavg require that the program be installed setgid.
18010 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18011 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18012 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18013 echo $ECHO_N "(cached) $ECHO_C" >&6
18014 else
18015 cat >conftest.$ac_ext <<_ACEOF
18016 /* confdefs.h. */
18017 _ACEOF
18018 cat confdefs.h >>conftest.$ac_ext
18019 cat >>conftest.$ac_ext <<_ACEOF
18020 /* end confdefs.h. */
18021 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18022 #ifdef LDAV_PRIVILEGED
18023 Yowza Am I SETGID yet
18024 #endif
18025 _ACEOF
18026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18027 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18028 ac_cv_func_getloadavg_setgid=yes
18029 else
18030 ac_cv_func_getloadavg_setgid=no
18032 rm -f conftest*
18035 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18036 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18037 if test $ac_cv_func_getloadavg_setgid = yes; then
18038 NEED_SETGID=true
18040 cat >>confdefs.h <<\_ACEOF
18041 #define GETLOADAVG_PRIVILEGED 1
18042 _ACEOF
18044 else
18045 NEED_SETGID=false
18048 if test $ac_cv_func_getloadavg_setgid = yes; then
18049 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18050 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18051 if test "${ac_cv_group_kmem+set}" = set; then
18052 echo $ECHO_N "(cached) $ECHO_C" >&6
18053 else
18054 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18055 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18056 # If we got an error (system does not support symlinks), try without -L.
18057 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18058 ac_cv_group_kmem=`echo $ac_ls_output \
18059 | sed -ne 's/[ ][ ]*/ /g;
18060 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18061 / /s/.* //;p;'`
18064 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18065 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18066 KMEM_GROUP=$ac_cv_group_kmem
18068 if test "x$ac_save_LIBS" = x; then
18069 GETLOADAVG_LIBS=$LIBS
18070 else
18071 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18073 LIBS=$ac_save_LIBS
18077 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18078 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18079 if test "${ac_cv_sys_largefile_source+set}" = set; then
18080 echo $ECHO_N "(cached) $ECHO_C" >&6
18081 else
18082 while :; do
18083 cat >conftest.$ac_ext <<_ACEOF
18084 /* confdefs.h. */
18085 _ACEOF
18086 cat confdefs.h >>conftest.$ac_ext
18087 cat >>conftest.$ac_ext <<_ACEOF
18088 /* end confdefs.h. */
18089 #include <stdio.h>
18091 main ()
18093 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18095 return 0;
18097 _ACEOF
18098 rm -f conftest.$ac_objext conftest$ac_exeext
18099 if { (ac_try="$ac_link"
18100 case "(($ac_try" in
18101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18102 *) ac_try_echo=$ac_try;;
18103 esac
18104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18105 (eval "$ac_link") 2>conftest.er1
18106 ac_status=$?
18107 grep -v '^ *+' conftest.er1 >conftest.err
18108 rm -f conftest.er1
18109 cat conftest.err >&5
18110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18111 (exit $ac_status); } && {
18112 test -z "$ac_c_werror_flag" ||
18113 test ! -s conftest.err
18114 } && test -s conftest$ac_exeext &&
18115 $as_test_x conftest$ac_exeext; then
18116 ac_cv_sys_largefile_source=no; break
18117 else
18118 echo "$as_me: failed program was:" >&5
18119 sed 's/^/| /' conftest.$ac_ext >&5
18124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18125 conftest$ac_exeext conftest.$ac_ext
18126 cat >conftest.$ac_ext <<_ACEOF
18127 /* confdefs.h. */
18128 _ACEOF
18129 cat confdefs.h >>conftest.$ac_ext
18130 cat >>conftest.$ac_ext <<_ACEOF
18131 /* end confdefs.h. */
18132 #define _LARGEFILE_SOURCE 1
18133 #include <stdio.h>
18135 main ()
18137 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18139 return 0;
18141 _ACEOF
18142 rm -f conftest.$ac_objext conftest$ac_exeext
18143 if { (ac_try="$ac_link"
18144 case "(($ac_try" in
18145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18146 *) ac_try_echo=$ac_try;;
18147 esac
18148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18149 (eval "$ac_link") 2>conftest.er1
18150 ac_status=$?
18151 grep -v '^ *+' conftest.er1 >conftest.err
18152 rm -f conftest.er1
18153 cat conftest.err >&5
18154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155 (exit $ac_status); } && {
18156 test -z "$ac_c_werror_flag" ||
18157 test ! -s conftest.err
18158 } && test -s conftest$ac_exeext &&
18159 $as_test_x conftest$ac_exeext; then
18160 ac_cv_sys_largefile_source=1; break
18161 else
18162 echo "$as_me: failed program was:" >&5
18163 sed 's/^/| /' conftest.$ac_ext >&5
18168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18169 conftest$ac_exeext conftest.$ac_ext
18170 ac_cv_sys_largefile_source=unknown
18171 break
18172 done
18174 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18175 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18176 case $ac_cv_sys_largefile_source in #(
18177 no | unknown) ;;
18179 cat >>confdefs.h <<_ACEOF
18180 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18181 _ACEOF
18183 esac
18184 rm -f conftest*
18186 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18187 # in glibc 2.1.3, but that breaks too many other things.
18188 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18189 if test $ac_cv_sys_largefile_source != unknown; then
18191 cat >>confdefs.h <<\_ACEOF
18192 #define HAVE_FSEEKO 1
18193 _ACEOF
18198 # Configure getopt.
18199 # getopt.m4 serial 10
18201 # The getopt module assume you want GNU getopt, with getopt_long etc,
18202 # rather than vanilla POSIX getopt. This means your your code should
18203 # always include <getopt.h> for the getopt prototypes.
18215 # Prerequisites of lib/getopt*.
18220 GETOPT_H=
18222 for ac_header in getopt.h
18224 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18226 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18229 echo $ECHO_N "(cached) $ECHO_C" >&6
18231 ac_res=`eval echo '${'$as_ac_Header'}'`
18232 { echo "$as_me:$LINENO: result: $ac_res" >&5
18233 echo "${ECHO_T}$ac_res" >&6; }
18234 else
18235 # Is the header compilable?
18236 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18237 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18238 cat >conftest.$ac_ext <<_ACEOF
18239 /* confdefs.h. */
18240 _ACEOF
18241 cat confdefs.h >>conftest.$ac_ext
18242 cat >>conftest.$ac_ext <<_ACEOF
18243 /* end confdefs.h. */
18244 $ac_includes_default
18245 #include <$ac_header>
18246 _ACEOF
18247 rm -f conftest.$ac_objext
18248 if { (ac_try="$ac_compile"
18249 case "(($ac_try" in
18250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18251 *) ac_try_echo=$ac_try;;
18252 esac
18253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18254 (eval "$ac_compile") 2>conftest.er1
18255 ac_status=$?
18256 grep -v '^ *+' conftest.er1 >conftest.err
18257 rm -f conftest.er1
18258 cat conftest.err >&5
18259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260 (exit $ac_status); } && {
18261 test -z "$ac_c_werror_flag" ||
18262 test ! -s conftest.err
18263 } && test -s conftest.$ac_objext; then
18264 ac_header_compiler=yes
18265 else
18266 echo "$as_me: failed program was:" >&5
18267 sed 's/^/| /' conftest.$ac_ext >&5
18269 ac_header_compiler=no
18272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18273 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18274 echo "${ECHO_T}$ac_header_compiler" >&6; }
18276 # Is the header present?
18277 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18278 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18279 cat >conftest.$ac_ext <<_ACEOF
18280 /* confdefs.h. */
18281 _ACEOF
18282 cat confdefs.h >>conftest.$ac_ext
18283 cat >>conftest.$ac_ext <<_ACEOF
18284 /* end confdefs.h. */
18285 #include <$ac_header>
18286 _ACEOF
18287 if { (ac_try="$ac_cpp conftest.$ac_ext"
18288 case "(($ac_try" in
18289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18290 *) ac_try_echo=$ac_try;;
18291 esac
18292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18293 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18294 ac_status=$?
18295 grep -v '^ *+' conftest.er1 >conftest.err
18296 rm -f conftest.er1
18297 cat conftest.err >&5
18298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299 (exit $ac_status); } >/dev/null && {
18300 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18301 test ! -s conftest.err
18302 }; then
18303 ac_header_preproc=yes
18304 else
18305 echo "$as_me: failed program was:" >&5
18306 sed 's/^/| /' conftest.$ac_ext >&5
18308 ac_header_preproc=no
18311 rm -f conftest.err conftest.$ac_ext
18312 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18313 echo "${ECHO_T}$ac_header_preproc" >&6; }
18315 # So? What about this header?
18316 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18317 yes:no: )
18318 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18319 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18320 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18321 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18322 ac_header_preproc=yes
18324 no:yes:* )
18325 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18326 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18327 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18328 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18329 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18330 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18331 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18332 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18333 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18334 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18335 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18336 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18339 esac
18340 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18343 echo $ECHO_N "(cached) $ECHO_C" >&6
18344 else
18345 eval "$as_ac_Header=\$ac_header_preproc"
18347 ac_res=`eval echo '${'$as_ac_Header'}'`
18348 { echo "$as_me:$LINENO: result: $ac_res" >&5
18349 echo "${ECHO_T}$ac_res" >&6; }
18352 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18353 cat >>confdefs.h <<_ACEOF
18354 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18355 _ACEOF
18357 else
18358 GETOPT_H=getopt.h
18361 done
18363 if test -z "$GETOPT_H"; then
18365 for ac_func in getopt_long_only
18367 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18368 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18369 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18370 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18371 echo $ECHO_N "(cached) $ECHO_C" >&6
18372 else
18373 cat >conftest.$ac_ext <<_ACEOF
18374 /* confdefs.h. */
18375 _ACEOF
18376 cat confdefs.h >>conftest.$ac_ext
18377 cat >>conftest.$ac_ext <<_ACEOF
18378 /* end confdefs.h. */
18379 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18380 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18381 #define $ac_func innocuous_$ac_func
18383 /* System header to define __stub macros and hopefully few prototypes,
18384 which can conflict with char $ac_func (); below.
18385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18386 <limits.h> exists even on freestanding compilers. */
18388 #ifdef __STDC__
18389 # include <limits.h>
18390 #else
18391 # include <assert.h>
18392 #endif
18394 #undef $ac_func
18396 /* Override any GCC internal prototype to avoid an error.
18397 Use char because int might match the return type of a GCC
18398 builtin and then its argument prototype would still apply. */
18399 #ifdef __cplusplus
18400 extern "C"
18401 #endif
18402 char $ac_func ();
18403 /* The GNU C library defines this for functions which it implements
18404 to always fail with ENOSYS. Some functions are actually named
18405 something starting with __ and the normal name is an alias. */
18406 #if defined __stub_$ac_func || defined __stub___$ac_func
18407 choke me
18408 #endif
18411 main ()
18413 return $ac_func ();
18415 return 0;
18417 _ACEOF
18418 rm -f conftest.$ac_objext conftest$ac_exeext
18419 if { (ac_try="$ac_link"
18420 case "(($ac_try" in
18421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18422 *) ac_try_echo=$ac_try;;
18423 esac
18424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18425 (eval "$ac_link") 2>conftest.er1
18426 ac_status=$?
18427 grep -v '^ *+' conftest.er1 >conftest.err
18428 rm -f conftest.er1
18429 cat conftest.err >&5
18430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431 (exit $ac_status); } && {
18432 test -z "$ac_c_werror_flag" ||
18433 test ! -s conftest.err
18434 } && test -s conftest$ac_exeext &&
18435 $as_test_x conftest$ac_exeext; then
18436 eval "$as_ac_var=yes"
18437 else
18438 echo "$as_me: failed program was:" >&5
18439 sed 's/^/| /' conftest.$ac_ext >&5
18441 eval "$as_ac_var=no"
18444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18445 conftest$ac_exeext conftest.$ac_ext
18447 ac_res=`eval echo '${'$as_ac_var'}'`
18448 { echo "$as_me:$LINENO: result: $ac_res" >&5
18449 echo "${ECHO_T}$ac_res" >&6; }
18450 if test `eval echo '${'$as_ac_var'}'` = yes; then
18451 cat >>confdefs.h <<_ACEOF
18452 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18453 _ACEOF
18455 else
18456 GETOPT_H=getopt.h
18458 done
18462 if test -z "$GETOPT_H"; then
18463 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
18464 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
18465 if test "${ac_cv_have_decl_optreset+set}" = set; then
18466 echo $ECHO_N "(cached) $ECHO_C" >&6
18467 else
18468 cat >conftest.$ac_ext <<_ACEOF
18469 /* confdefs.h. */
18470 _ACEOF
18471 cat confdefs.h >>conftest.$ac_ext
18472 cat >>conftest.$ac_ext <<_ACEOF
18473 /* end confdefs.h. */
18474 #include <getopt.h>
18477 main ()
18479 #ifndef optreset
18480 (void) optreset;
18481 #endif
18484 return 0;
18486 _ACEOF
18487 rm -f conftest.$ac_objext
18488 if { (ac_try="$ac_compile"
18489 case "(($ac_try" in
18490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18491 *) ac_try_echo=$ac_try;;
18492 esac
18493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18494 (eval "$ac_compile") 2>conftest.er1
18495 ac_status=$?
18496 grep -v '^ *+' conftest.er1 >conftest.err
18497 rm -f conftest.er1
18498 cat conftest.err >&5
18499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18500 (exit $ac_status); } && {
18501 test -z "$ac_c_werror_flag" ||
18502 test ! -s conftest.err
18503 } && test -s conftest.$ac_objext; then
18504 ac_cv_have_decl_optreset=yes
18505 else
18506 echo "$as_me: failed program was:" >&5
18507 sed 's/^/| /' conftest.$ac_ext >&5
18509 ac_cv_have_decl_optreset=no
18512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18514 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
18515 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18516 if test $ac_cv_have_decl_optreset = yes; then
18517 GETOPT_H=getopt.h
18522 if test -z "$GETOPT_H"; then
18523 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
18524 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
18525 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18526 echo $ECHO_N "(cached) $ECHO_C" >&6
18527 else
18528 if test "$cross_compiling" = yes; then
18529 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
18530 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
18531 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18532 echo $ECHO_N "(cached) $ECHO_C" >&6
18533 else
18534 cat >conftest.$ac_ext <<_ACEOF
18535 /* confdefs.h. */
18536 _ACEOF
18537 cat confdefs.h >>conftest.$ac_ext
18538 cat >>conftest.$ac_ext <<_ACEOF
18539 /* end confdefs.h. */
18540 #include <getopt.h>
18543 main ()
18545 #ifndef getopt_clip
18546 (void) getopt_clip;
18547 #endif
18550 return 0;
18552 _ACEOF
18553 rm -f conftest.$ac_objext
18554 if { (ac_try="$ac_compile"
18555 case "(($ac_try" in
18556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18557 *) ac_try_echo=$ac_try;;
18558 esac
18559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18560 (eval "$ac_compile") 2>conftest.er1
18561 ac_status=$?
18562 grep -v '^ *+' conftest.er1 >conftest.err
18563 rm -f conftest.er1
18564 cat conftest.err >&5
18565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18566 (exit $ac_status); } && {
18567 test -z "$ac_c_werror_flag" ||
18568 test ! -s conftest.err
18569 } && test -s conftest.$ac_objext; then
18570 ac_cv_have_decl_getopt_clip=yes
18571 else
18572 echo "$as_me: failed program was:" >&5
18573 sed 's/^/| /' conftest.$ac_ext >&5
18575 ac_cv_have_decl_getopt_clip=no
18578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18580 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
18581 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18582 if test $ac_cv_have_decl_getopt_clip = yes; then
18583 gl_cv_func_gnu_getopt=no
18584 else
18585 gl_cv_func_gnu_getopt=yes
18588 else
18589 cat >conftest.$ac_ext <<_ACEOF
18590 /* confdefs.h. */
18591 _ACEOF
18592 cat confdefs.h >>conftest.$ac_ext
18593 cat >>conftest.$ac_ext <<_ACEOF
18594 /* end confdefs.h. */
18595 #include <getopt.h>
18597 main ()
18600 char *myargv[3];
18601 myargv[0] = "conftest";
18602 myargv[1] = "-+";
18603 myargv[2] = 0;
18604 return getopt (2, myargv, "+a") != '?';
18607 return 0;
18609 _ACEOF
18610 rm -f conftest$ac_exeext
18611 if { (ac_try="$ac_link"
18612 case "(($ac_try" in
18613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18614 *) ac_try_echo=$ac_try;;
18615 esac
18616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18617 (eval "$ac_link") 2>&5
18618 ac_status=$?
18619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18620 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18621 { (case "(($ac_try" in
18622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18623 *) ac_try_echo=$ac_try;;
18624 esac
18625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18626 (eval "$ac_try") 2>&5
18627 ac_status=$?
18628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18629 (exit $ac_status); }; }; then
18630 gl_cv_func_gnu_getopt=yes
18631 else
18632 echo "$as_me: program exited with status $ac_status" >&5
18633 echo "$as_me: failed program was:" >&5
18634 sed 's/^/| /' conftest.$ac_ext >&5
18636 ( exit $ac_status )
18637 gl_cv_func_gnu_getopt=no
18639 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18644 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
18645 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
18646 if test "$gl_cv_func_gnu_getopt" = "no"; then
18647 GETOPT_H=getopt.h
18653 if test -n "$GETOPT_H"; then
18656 GETOPT_H=getopt.h
18658 cat >>confdefs.h <<\_ACEOF
18659 #define __GETOPT_PREFIX rpl_
18660 _ACEOF
18665 GETOPTOBJS='getopt.o getopt1.o'
18672 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
18673 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
18674 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18675 echo $ECHO_N "(cached) $ECHO_C" >&6
18676 else
18677 # Use it with a single arg.
18678 cat >conftest.$ac_ext <<_ACEOF
18679 /* confdefs.h. */
18680 _ACEOF
18681 cat confdefs.h >>conftest.$ac_ext
18682 cat >>conftest.$ac_ext <<_ACEOF
18683 /* end confdefs.h. */
18684 $ac_includes_default
18686 main ()
18688 getpgrp (0);
18690 return 0;
18692 _ACEOF
18693 rm -f conftest.$ac_objext
18694 if { (ac_try="$ac_compile"
18695 case "(($ac_try" in
18696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18697 *) ac_try_echo=$ac_try;;
18698 esac
18699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18700 (eval "$ac_compile") 2>conftest.er1
18701 ac_status=$?
18702 grep -v '^ *+' conftest.er1 >conftest.err
18703 rm -f conftest.er1
18704 cat conftest.err >&5
18705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706 (exit $ac_status); } && {
18707 test -z "$ac_c_werror_flag" ||
18708 test ! -s conftest.err
18709 } && test -s conftest.$ac_objext; then
18710 ac_cv_func_getpgrp_void=no
18711 else
18712 echo "$as_me: failed program was:" >&5
18713 sed 's/^/| /' conftest.$ac_ext >&5
18715 ac_cv_func_getpgrp_void=yes
18718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18721 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
18722 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
18723 if test $ac_cv_func_getpgrp_void = yes; then
18725 cat >>confdefs.h <<\_ACEOF
18726 #define GETPGRP_VOID 1
18727 _ACEOF
18733 for ac_func in strftime
18735 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18736 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18737 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18738 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18739 echo $ECHO_N "(cached) $ECHO_C" >&6
18740 else
18741 cat >conftest.$ac_ext <<_ACEOF
18742 /* confdefs.h. */
18743 _ACEOF
18744 cat confdefs.h >>conftest.$ac_ext
18745 cat >>conftest.$ac_ext <<_ACEOF
18746 /* end confdefs.h. */
18747 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18748 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18749 #define $ac_func innocuous_$ac_func
18751 /* System header to define __stub macros and hopefully few prototypes,
18752 which can conflict with char $ac_func (); below.
18753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18754 <limits.h> exists even on freestanding compilers. */
18756 #ifdef __STDC__
18757 # include <limits.h>
18758 #else
18759 # include <assert.h>
18760 #endif
18762 #undef $ac_func
18764 /* Override any GCC internal prototype to avoid an error.
18765 Use char because int might match the return type of a GCC
18766 builtin and then its argument prototype would still apply. */
18767 #ifdef __cplusplus
18768 extern "C"
18769 #endif
18770 char $ac_func ();
18771 /* The GNU C library defines this for functions which it implements
18772 to always fail with ENOSYS. Some functions are actually named
18773 something starting with __ and the normal name is an alias. */
18774 #if defined __stub_$ac_func || defined __stub___$ac_func
18775 choke me
18776 #endif
18779 main ()
18781 return $ac_func ();
18783 return 0;
18785 _ACEOF
18786 rm -f conftest.$ac_objext conftest$ac_exeext
18787 if { (ac_try="$ac_link"
18788 case "(($ac_try" in
18789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18790 *) ac_try_echo=$ac_try;;
18791 esac
18792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18793 (eval "$ac_link") 2>conftest.er1
18794 ac_status=$?
18795 grep -v '^ *+' conftest.er1 >conftest.err
18796 rm -f conftest.er1
18797 cat conftest.err >&5
18798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799 (exit $ac_status); } && {
18800 test -z "$ac_c_werror_flag" ||
18801 test ! -s conftest.err
18802 } && test -s conftest$ac_exeext &&
18803 $as_test_x conftest$ac_exeext; then
18804 eval "$as_ac_var=yes"
18805 else
18806 echo "$as_me: failed program was:" >&5
18807 sed 's/^/| /' conftest.$ac_ext >&5
18809 eval "$as_ac_var=no"
18812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18813 conftest$ac_exeext conftest.$ac_ext
18815 ac_res=`eval echo '${'$as_ac_var'}'`
18816 { echo "$as_me:$LINENO: result: $ac_res" >&5
18817 echo "${ECHO_T}$ac_res" >&6; }
18818 if test `eval echo '${'$as_ac_var'}'` = yes; then
18819 cat >>confdefs.h <<_ACEOF
18820 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18821 _ACEOF
18823 else
18824 # strftime is in -lintl on SCO UNIX.
18825 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18826 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
18827 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18828 echo $ECHO_N "(cached) $ECHO_C" >&6
18829 else
18830 ac_check_lib_save_LIBS=$LIBS
18831 LIBS="-lintl $LIBS"
18832 cat >conftest.$ac_ext <<_ACEOF
18833 /* confdefs.h. */
18834 _ACEOF
18835 cat confdefs.h >>conftest.$ac_ext
18836 cat >>conftest.$ac_ext <<_ACEOF
18837 /* end confdefs.h. */
18839 /* Override any GCC internal prototype to avoid an error.
18840 Use char because int might match the return type of a GCC
18841 builtin and then its argument prototype would still apply. */
18842 #ifdef __cplusplus
18843 extern "C"
18844 #endif
18845 char strftime ();
18847 main ()
18849 return strftime ();
18851 return 0;
18853 _ACEOF
18854 rm -f conftest.$ac_objext conftest$ac_exeext
18855 if { (ac_try="$ac_link"
18856 case "(($ac_try" in
18857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18858 *) ac_try_echo=$ac_try;;
18859 esac
18860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18861 (eval "$ac_link") 2>conftest.er1
18862 ac_status=$?
18863 grep -v '^ *+' conftest.er1 >conftest.err
18864 rm -f conftest.er1
18865 cat conftest.err >&5
18866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867 (exit $ac_status); } && {
18868 test -z "$ac_c_werror_flag" ||
18869 test ! -s conftest.err
18870 } && test -s conftest$ac_exeext &&
18871 $as_test_x conftest$ac_exeext; then
18872 ac_cv_lib_intl_strftime=yes
18873 else
18874 echo "$as_me: failed program was:" >&5
18875 sed 's/^/| /' conftest.$ac_ext >&5
18877 ac_cv_lib_intl_strftime=no
18880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18881 conftest$ac_exeext conftest.$ac_ext
18882 LIBS=$ac_check_lib_save_LIBS
18884 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18885 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
18886 if test $ac_cv_lib_intl_strftime = yes; then
18887 cat >>confdefs.h <<\_ACEOF
18888 #define HAVE_STRFTIME 1
18889 _ACEOF
18891 LIBS="-lintl $LIBS"
18895 done
18898 # UNIX98 PTYs.
18900 for ac_func in grantpt
18902 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18903 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18904 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18905 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18906 echo $ECHO_N "(cached) $ECHO_C" >&6
18907 else
18908 cat >conftest.$ac_ext <<_ACEOF
18909 /* confdefs.h. */
18910 _ACEOF
18911 cat confdefs.h >>conftest.$ac_ext
18912 cat >>conftest.$ac_ext <<_ACEOF
18913 /* end confdefs.h. */
18914 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18916 #define $ac_func innocuous_$ac_func
18918 /* System header to define __stub macros and hopefully few prototypes,
18919 which can conflict with char $ac_func (); below.
18920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18921 <limits.h> exists even on freestanding compilers. */
18923 #ifdef __STDC__
18924 # include <limits.h>
18925 #else
18926 # include <assert.h>
18927 #endif
18929 #undef $ac_func
18931 /* Override any GCC internal prototype to avoid an error.
18932 Use char because int might match the return type of a GCC
18933 builtin and then its argument prototype would still apply. */
18934 #ifdef __cplusplus
18935 extern "C"
18936 #endif
18937 char $ac_func ();
18938 /* The GNU C library defines this for functions which it implements
18939 to always fail with ENOSYS. Some functions are actually named
18940 something starting with __ and the normal name is an alias. */
18941 #if defined __stub_$ac_func || defined __stub___$ac_func
18942 choke me
18943 #endif
18946 main ()
18948 return $ac_func ();
18950 return 0;
18952 _ACEOF
18953 rm -f conftest.$ac_objext conftest$ac_exeext
18954 if { (ac_try="$ac_link"
18955 case "(($ac_try" in
18956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18957 *) ac_try_echo=$ac_try;;
18958 esac
18959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18960 (eval "$ac_link") 2>conftest.er1
18961 ac_status=$?
18962 grep -v '^ *+' conftest.er1 >conftest.err
18963 rm -f conftest.er1
18964 cat conftest.err >&5
18965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966 (exit $ac_status); } && {
18967 test -z "$ac_c_werror_flag" ||
18968 test ! -s conftest.err
18969 } && test -s conftest$ac_exeext &&
18970 $as_test_x conftest$ac_exeext; then
18971 eval "$as_ac_var=yes"
18972 else
18973 echo "$as_me: failed program was:" >&5
18974 sed 's/^/| /' conftest.$ac_ext >&5
18976 eval "$as_ac_var=no"
18979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18980 conftest$ac_exeext conftest.$ac_ext
18982 ac_res=`eval echo '${'$as_ac_var'}'`
18983 { echo "$as_me:$LINENO: result: $ac_res" >&5
18984 echo "${ECHO_T}$ac_res" >&6; }
18985 if test `eval echo '${'$as_ac_var'}'` = yes; then
18986 cat >>confdefs.h <<_ACEOF
18987 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18988 _ACEOF
18991 done
18994 # PTY-related GNU extensions.
18996 for ac_func in getpt
18998 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18999 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19000 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19001 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19002 echo $ECHO_N "(cached) $ECHO_C" >&6
19003 else
19004 cat >conftest.$ac_ext <<_ACEOF
19005 /* confdefs.h. */
19006 _ACEOF
19007 cat confdefs.h >>conftest.$ac_ext
19008 cat >>conftest.$ac_ext <<_ACEOF
19009 /* end confdefs.h. */
19010 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19011 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19012 #define $ac_func innocuous_$ac_func
19014 /* System header to define __stub macros and hopefully few prototypes,
19015 which can conflict with char $ac_func (); below.
19016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19017 <limits.h> exists even on freestanding compilers. */
19019 #ifdef __STDC__
19020 # include <limits.h>
19021 #else
19022 # include <assert.h>
19023 #endif
19025 #undef $ac_func
19027 /* Override any GCC internal prototype to avoid an error.
19028 Use char because int might match the return type of a GCC
19029 builtin and then its argument prototype would still apply. */
19030 #ifdef __cplusplus
19031 extern "C"
19032 #endif
19033 char $ac_func ();
19034 /* The GNU C library defines this for functions which it implements
19035 to always fail with ENOSYS. Some functions are actually named
19036 something starting with __ and the normal name is an alias. */
19037 #if defined __stub_$ac_func || defined __stub___$ac_func
19038 choke me
19039 #endif
19042 main ()
19044 return $ac_func ();
19046 return 0;
19048 _ACEOF
19049 rm -f conftest.$ac_objext conftest$ac_exeext
19050 if { (ac_try="$ac_link"
19051 case "(($ac_try" in
19052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19053 *) ac_try_echo=$ac_try;;
19054 esac
19055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19056 (eval "$ac_link") 2>conftest.er1
19057 ac_status=$?
19058 grep -v '^ *+' conftest.er1 >conftest.err
19059 rm -f conftest.er1
19060 cat conftest.err >&5
19061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062 (exit $ac_status); } && {
19063 test -z "$ac_c_werror_flag" ||
19064 test ! -s conftest.err
19065 } && test -s conftest$ac_exeext &&
19066 $as_test_x conftest$ac_exeext; then
19067 eval "$as_ac_var=yes"
19068 else
19069 echo "$as_me: failed program was:" >&5
19070 sed 's/^/| /' conftest.$ac_ext >&5
19072 eval "$as_ac_var=no"
19075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19076 conftest$ac_exeext conftest.$ac_ext
19078 ac_res=`eval echo '${'$as_ac_var'}'`
19079 { echo "$as_me:$LINENO: result: $ac_res" >&5
19080 echo "${ECHO_T}$ac_res" >&6; }
19081 if test `eval echo '${'$as_ac_var'}'` = yes; then
19082 cat >>confdefs.h <<_ACEOF
19083 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19084 _ACEOF
19087 done
19090 # Check this now, so that we will NOT find the above functions in ncurses.
19091 # That is because we have not set up to link ncurses in lib-src.
19092 # It's better to believe a function is not available
19093 # than to expect to find it in ncurses.
19095 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19096 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19097 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19098 echo $ECHO_N "(cached) $ECHO_C" >&6
19099 else
19100 ac_check_lib_save_LIBS=$LIBS
19101 LIBS="-lncurses $LIBS"
19102 cat >conftest.$ac_ext <<_ACEOF
19103 /* confdefs.h. */
19104 _ACEOF
19105 cat confdefs.h >>conftest.$ac_ext
19106 cat >>conftest.$ac_ext <<_ACEOF
19107 /* end confdefs.h. */
19109 /* Override any GCC internal prototype to avoid an error.
19110 Use char because int might match the return type of a GCC
19111 builtin and then its argument prototype would still apply. */
19112 #ifdef __cplusplus
19113 extern "C"
19114 #endif
19115 char tparm ();
19117 main ()
19119 return tparm ();
19121 return 0;
19123 _ACEOF
19124 rm -f conftest.$ac_objext conftest$ac_exeext
19125 if { (ac_try="$ac_link"
19126 case "(($ac_try" in
19127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19128 *) ac_try_echo=$ac_try;;
19129 esac
19130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19131 (eval "$ac_link") 2>conftest.er1
19132 ac_status=$?
19133 grep -v '^ *+' conftest.er1 >conftest.err
19134 rm -f conftest.er1
19135 cat conftest.err >&5
19136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19137 (exit $ac_status); } && {
19138 test -z "$ac_c_werror_flag" ||
19139 test ! -s conftest.err
19140 } && test -s conftest$ac_exeext &&
19141 $as_test_x conftest$ac_exeext; then
19142 ac_cv_lib_ncurses_tparm=yes
19143 else
19144 echo "$as_me: failed program was:" >&5
19145 sed 's/^/| /' conftest.$ac_ext >&5
19147 ac_cv_lib_ncurses_tparm=no
19150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19151 conftest$ac_exeext conftest.$ac_ext
19152 LIBS=$ac_check_lib_save_LIBS
19154 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19155 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19156 if test $ac_cv_lib_ncurses_tparm = yes; then
19157 cat >>confdefs.h <<_ACEOF
19158 #define HAVE_LIBNCURSES 1
19159 _ACEOF
19161 LIBS="-lncurses $LIBS"
19166 # Do we need the Hesiod library to provide the support routines?
19167 if test "$with_hesiod" = yes ; then
19168 # Don't set $LIBS here -- see comments above.
19169 resolv=no
19170 { echo "$as_me:$LINENO: checking for res_send" >&5
19171 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
19172 if test "${ac_cv_func_res_send+set}" = set; then
19173 echo $ECHO_N "(cached) $ECHO_C" >&6
19174 else
19175 cat >conftest.$ac_ext <<_ACEOF
19176 /* confdefs.h. */
19177 _ACEOF
19178 cat confdefs.h >>conftest.$ac_ext
19179 cat >>conftest.$ac_ext <<_ACEOF
19180 /* end confdefs.h. */
19181 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19182 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19183 #define res_send innocuous_res_send
19185 /* System header to define __stub macros and hopefully few prototypes,
19186 which can conflict with char res_send (); below.
19187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19188 <limits.h> exists even on freestanding compilers. */
19190 #ifdef __STDC__
19191 # include <limits.h>
19192 #else
19193 # include <assert.h>
19194 #endif
19196 #undef res_send
19198 /* Override any GCC internal prototype to avoid an error.
19199 Use char because int might match the return type of a GCC
19200 builtin and then its argument prototype would still apply. */
19201 #ifdef __cplusplus
19202 extern "C"
19203 #endif
19204 char res_send ();
19205 /* The GNU C library defines this for functions which it implements
19206 to always fail with ENOSYS. Some functions are actually named
19207 something starting with __ and the normal name is an alias. */
19208 #if defined __stub_res_send || defined __stub___res_send
19209 choke me
19210 #endif
19213 main ()
19215 return res_send ();
19217 return 0;
19219 _ACEOF
19220 rm -f conftest.$ac_objext conftest$ac_exeext
19221 if { (ac_try="$ac_link"
19222 case "(($ac_try" in
19223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19224 *) ac_try_echo=$ac_try;;
19225 esac
19226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19227 (eval "$ac_link") 2>conftest.er1
19228 ac_status=$?
19229 grep -v '^ *+' conftest.er1 >conftest.err
19230 rm -f conftest.er1
19231 cat conftest.err >&5
19232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233 (exit $ac_status); } && {
19234 test -z "$ac_c_werror_flag" ||
19235 test ! -s conftest.err
19236 } && test -s conftest$ac_exeext &&
19237 $as_test_x conftest$ac_exeext; then
19238 ac_cv_func_res_send=yes
19239 else
19240 echo "$as_me: failed program was:" >&5
19241 sed 's/^/| /' conftest.$ac_ext >&5
19243 ac_cv_func_res_send=no
19246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19247 conftest$ac_exeext conftest.$ac_ext
19249 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19250 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19251 if test $ac_cv_func_res_send = yes; then
19253 else
19254 { echo "$as_me:$LINENO: checking for __res_send" >&5
19255 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
19256 if test "${ac_cv_func___res_send+set}" = set; then
19257 echo $ECHO_N "(cached) $ECHO_C" >&6
19258 else
19259 cat >conftest.$ac_ext <<_ACEOF
19260 /* confdefs.h. */
19261 _ACEOF
19262 cat confdefs.h >>conftest.$ac_ext
19263 cat >>conftest.$ac_ext <<_ACEOF
19264 /* end confdefs.h. */
19265 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19266 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19267 #define __res_send innocuous___res_send
19269 /* System header to define __stub macros and hopefully few prototypes,
19270 which can conflict with char __res_send (); below.
19271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19272 <limits.h> exists even on freestanding compilers. */
19274 #ifdef __STDC__
19275 # include <limits.h>
19276 #else
19277 # include <assert.h>
19278 #endif
19280 #undef __res_send
19282 /* Override any GCC internal prototype to avoid an error.
19283 Use char because int might match the return type of a GCC
19284 builtin and then its argument prototype would still apply. */
19285 #ifdef __cplusplus
19286 extern "C"
19287 #endif
19288 char __res_send ();
19289 /* The GNU C library defines this for functions which it implements
19290 to always fail with ENOSYS. Some functions are actually named
19291 something starting with __ and the normal name is an alias. */
19292 #if defined __stub___res_send || defined __stub_____res_send
19293 choke me
19294 #endif
19297 main ()
19299 return __res_send ();
19301 return 0;
19303 _ACEOF
19304 rm -f conftest.$ac_objext conftest$ac_exeext
19305 if { (ac_try="$ac_link"
19306 case "(($ac_try" in
19307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19308 *) ac_try_echo=$ac_try;;
19309 esac
19310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19311 (eval "$ac_link") 2>conftest.er1
19312 ac_status=$?
19313 grep -v '^ *+' conftest.er1 >conftest.err
19314 rm -f conftest.er1
19315 cat conftest.err >&5
19316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317 (exit $ac_status); } && {
19318 test -z "$ac_c_werror_flag" ||
19319 test ! -s conftest.err
19320 } && test -s conftest$ac_exeext &&
19321 $as_test_x conftest$ac_exeext; then
19322 ac_cv_func___res_send=yes
19323 else
19324 echo "$as_me: failed program was:" >&5
19325 sed 's/^/| /' conftest.$ac_ext >&5
19327 ac_cv_func___res_send=no
19330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19331 conftest$ac_exeext conftest.$ac_ext
19333 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
19334 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19335 if test $ac_cv_func___res_send = yes; then
19337 else
19338 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
19339 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
19340 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19341 echo $ECHO_N "(cached) $ECHO_C" >&6
19342 else
19343 ac_check_lib_save_LIBS=$LIBS
19344 LIBS="-lresolv $LIBS"
19345 cat >conftest.$ac_ext <<_ACEOF
19346 /* confdefs.h. */
19347 _ACEOF
19348 cat confdefs.h >>conftest.$ac_ext
19349 cat >>conftest.$ac_ext <<_ACEOF
19350 /* end confdefs.h. */
19352 /* Override any GCC internal prototype to avoid an error.
19353 Use char because int might match the return type of a GCC
19354 builtin and then its argument prototype would still apply. */
19355 #ifdef __cplusplus
19356 extern "C"
19357 #endif
19358 char res_send ();
19360 main ()
19362 return res_send ();
19364 return 0;
19366 _ACEOF
19367 rm -f conftest.$ac_objext conftest$ac_exeext
19368 if { (ac_try="$ac_link"
19369 case "(($ac_try" in
19370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19371 *) ac_try_echo=$ac_try;;
19372 esac
19373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19374 (eval "$ac_link") 2>conftest.er1
19375 ac_status=$?
19376 grep -v '^ *+' conftest.er1 >conftest.err
19377 rm -f conftest.er1
19378 cat conftest.err >&5
19379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19380 (exit $ac_status); } && {
19381 test -z "$ac_c_werror_flag" ||
19382 test ! -s conftest.err
19383 } && test -s conftest$ac_exeext &&
19384 $as_test_x conftest$ac_exeext; then
19385 ac_cv_lib_resolv_res_send=yes
19386 else
19387 echo "$as_me: failed program was:" >&5
19388 sed 's/^/| /' conftest.$ac_ext >&5
19390 ac_cv_lib_resolv_res_send=no
19393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19394 conftest$ac_exeext conftest.$ac_ext
19395 LIBS=$ac_check_lib_save_LIBS
19397 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
19398 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19399 if test $ac_cv_lib_resolv_res_send = yes; then
19400 resolv=yes
19401 else
19402 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
19403 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
19404 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19405 echo $ECHO_N "(cached) $ECHO_C" >&6
19406 else
19407 ac_check_lib_save_LIBS=$LIBS
19408 LIBS="-lresolv $LIBS"
19409 cat >conftest.$ac_ext <<_ACEOF
19410 /* confdefs.h. */
19411 _ACEOF
19412 cat confdefs.h >>conftest.$ac_ext
19413 cat >>conftest.$ac_ext <<_ACEOF
19414 /* end confdefs.h. */
19416 /* Override any GCC internal prototype to avoid an error.
19417 Use char because int might match the return type of a GCC
19418 builtin and then its argument prototype would still apply. */
19419 #ifdef __cplusplus
19420 extern "C"
19421 #endif
19422 char __res_send ();
19424 main ()
19426 return __res_send ();
19428 return 0;
19430 _ACEOF
19431 rm -f conftest.$ac_objext conftest$ac_exeext
19432 if { (ac_try="$ac_link"
19433 case "(($ac_try" in
19434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19435 *) ac_try_echo=$ac_try;;
19436 esac
19437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19438 (eval "$ac_link") 2>conftest.er1
19439 ac_status=$?
19440 grep -v '^ *+' conftest.er1 >conftest.err
19441 rm -f conftest.er1
19442 cat conftest.err >&5
19443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444 (exit $ac_status); } && {
19445 test -z "$ac_c_werror_flag" ||
19446 test ! -s conftest.err
19447 } && test -s conftest$ac_exeext &&
19448 $as_test_x conftest$ac_exeext; then
19449 ac_cv_lib_resolv___res_send=yes
19450 else
19451 echo "$as_me: failed program was:" >&5
19452 sed 's/^/| /' conftest.$ac_ext >&5
19454 ac_cv_lib_resolv___res_send=no
19457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19458 conftest$ac_exeext conftest.$ac_ext
19459 LIBS=$ac_check_lib_save_LIBS
19461 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
19462 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19463 if test $ac_cv_lib_resolv___res_send = yes; then
19464 resolv=yes
19473 if test "$resolv" = yes ; then
19474 RESOLVLIB=-lresolv
19476 cat >>confdefs.h <<\_ACEOF
19477 #define HAVE_LIBRESOLV 1
19478 _ACEOF
19480 else
19481 RESOLVLIB=
19483 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
19484 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
19485 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19486 echo $ECHO_N "(cached) $ECHO_C" >&6
19487 else
19488 cat >conftest.$ac_ext <<_ACEOF
19489 /* confdefs.h. */
19490 _ACEOF
19491 cat confdefs.h >>conftest.$ac_ext
19492 cat >>conftest.$ac_ext <<_ACEOF
19493 /* end confdefs.h. */
19494 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19496 #define hes_getmailhost innocuous_hes_getmailhost
19498 /* System header to define __stub macros and hopefully few prototypes,
19499 which can conflict with char hes_getmailhost (); below.
19500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19501 <limits.h> exists even on freestanding compilers. */
19503 #ifdef __STDC__
19504 # include <limits.h>
19505 #else
19506 # include <assert.h>
19507 #endif
19509 #undef hes_getmailhost
19511 /* Override any GCC internal prototype to avoid an error.
19512 Use char because int might match the return type of a GCC
19513 builtin and then its argument prototype would still apply. */
19514 #ifdef __cplusplus
19515 extern "C"
19516 #endif
19517 char hes_getmailhost ();
19518 /* The GNU C library defines this for functions which it implements
19519 to always fail with ENOSYS. Some functions are actually named
19520 something starting with __ and the normal name is an alias. */
19521 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19522 choke me
19523 #endif
19526 main ()
19528 return hes_getmailhost ();
19530 return 0;
19532 _ACEOF
19533 rm -f conftest.$ac_objext conftest$ac_exeext
19534 if { (ac_try="$ac_link"
19535 case "(($ac_try" in
19536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19537 *) ac_try_echo=$ac_try;;
19538 esac
19539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19540 (eval "$ac_link") 2>conftest.er1
19541 ac_status=$?
19542 grep -v '^ *+' conftest.er1 >conftest.err
19543 rm -f conftest.er1
19544 cat conftest.err >&5
19545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546 (exit $ac_status); } && {
19547 test -z "$ac_c_werror_flag" ||
19548 test ! -s conftest.err
19549 } && test -s conftest$ac_exeext &&
19550 $as_test_x conftest$ac_exeext; then
19551 ac_cv_func_hes_getmailhost=yes
19552 else
19553 echo "$as_me: failed program was:" >&5
19554 sed 's/^/| /' conftest.$ac_ext >&5
19556 ac_cv_func_hes_getmailhost=no
19559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19560 conftest$ac_exeext conftest.$ac_ext
19562 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
19563 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19564 if test $ac_cv_func_hes_getmailhost = yes; then
19566 else
19567 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
19568 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
19569 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19570 echo $ECHO_N "(cached) $ECHO_C" >&6
19571 else
19572 ac_check_lib_save_LIBS=$LIBS
19573 LIBS="-lhesiod $RESOLVLIB $LIBS"
19574 cat >conftest.$ac_ext <<_ACEOF
19575 /* confdefs.h. */
19576 _ACEOF
19577 cat confdefs.h >>conftest.$ac_ext
19578 cat >>conftest.$ac_ext <<_ACEOF
19579 /* end confdefs.h. */
19581 /* Override any GCC internal prototype to avoid an error.
19582 Use char because int might match the return type of a GCC
19583 builtin and then its argument prototype would still apply. */
19584 #ifdef __cplusplus
19585 extern "C"
19586 #endif
19587 char hes_getmailhost ();
19589 main ()
19591 return hes_getmailhost ();
19593 return 0;
19595 _ACEOF
19596 rm -f conftest.$ac_objext conftest$ac_exeext
19597 if { (ac_try="$ac_link"
19598 case "(($ac_try" in
19599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19600 *) ac_try_echo=$ac_try;;
19601 esac
19602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19603 (eval "$ac_link") 2>conftest.er1
19604 ac_status=$?
19605 grep -v '^ *+' conftest.er1 >conftest.err
19606 rm -f conftest.er1
19607 cat conftest.err >&5
19608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19609 (exit $ac_status); } && {
19610 test -z "$ac_c_werror_flag" ||
19611 test ! -s conftest.err
19612 } && test -s conftest$ac_exeext &&
19613 $as_test_x conftest$ac_exeext; then
19614 ac_cv_lib_hesiod_hes_getmailhost=yes
19615 else
19616 echo "$as_me: failed program was:" >&5
19617 sed 's/^/| /' conftest.$ac_ext >&5
19619 ac_cv_lib_hesiod_hes_getmailhost=no
19622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19623 conftest$ac_exeext conftest.$ac_ext
19624 LIBS=$ac_check_lib_save_LIBS
19626 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19627 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19628 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19630 cat >>confdefs.h <<\_ACEOF
19631 #define HAVE_LIBHESIOD 1
19632 _ACEOF
19634 else
19642 # These tell us which Kerberos-related libraries to use.
19643 if test "${with_kerberos+set}" = set; then
19645 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
19646 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
19647 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19648 echo $ECHO_N "(cached) $ECHO_C" >&6
19649 else
19650 ac_check_lib_save_LIBS=$LIBS
19651 LIBS="-lcom_err $LIBS"
19652 cat >conftest.$ac_ext <<_ACEOF
19653 /* confdefs.h. */
19654 _ACEOF
19655 cat confdefs.h >>conftest.$ac_ext
19656 cat >>conftest.$ac_ext <<_ACEOF
19657 /* end confdefs.h. */
19659 /* Override any GCC internal prototype to avoid an error.
19660 Use char because int might match the return type of a GCC
19661 builtin and then its argument prototype would still apply. */
19662 #ifdef __cplusplus
19663 extern "C"
19664 #endif
19665 char com_err ();
19667 main ()
19669 return com_err ();
19671 return 0;
19673 _ACEOF
19674 rm -f conftest.$ac_objext conftest$ac_exeext
19675 if { (ac_try="$ac_link"
19676 case "(($ac_try" in
19677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19678 *) ac_try_echo=$ac_try;;
19679 esac
19680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19681 (eval "$ac_link") 2>conftest.er1
19682 ac_status=$?
19683 grep -v '^ *+' conftest.er1 >conftest.err
19684 rm -f conftest.er1
19685 cat conftest.err >&5
19686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19687 (exit $ac_status); } && {
19688 test -z "$ac_c_werror_flag" ||
19689 test ! -s conftest.err
19690 } && test -s conftest$ac_exeext &&
19691 $as_test_x conftest$ac_exeext; then
19692 ac_cv_lib_com_err_com_err=yes
19693 else
19694 echo "$as_me: failed program was:" >&5
19695 sed 's/^/| /' conftest.$ac_ext >&5
19697 ac_cv_lib_com_err_com_err=no
19700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19701 conftest$ac_exeext conftest.$ac_ext
19702 LIBS=$ac_check_lib_save_LIBS
19704 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
19705 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
19706 if test $ac_cv_lib_com_err_com_err = yes; then
19707 cat >>confdefs.h <<_ACEOF
19708 #define HAVE_LIBCOM_ERR 1
19709 _ACEOF
19711 LIBS="-lcom_err $LIBS"
19716 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
19717 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
19718 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19719 echo $ECHO_N "(cached) $ECHO_C" >&6
19720 else
19721 ac_check_lib_save_LIBS=$LIBS
19722 LIBS="-lk5crypto $LIBS"
19723 cat >conftest.$ac_ext <<_ACEOF
19724 /* confdefs.h. */
19725 _ACEOF
19726 cat confdefs.h >>conftest.$ac_ext
19727 cat >>conftest.$ac_ext <<_ACEOF
19728 /* end confdefs.h. */
19730 /* Override any GCC internal prototype to avoid an error.
19731 Use char because int might match the return type of a GCC
19732 builtin and then its argument prototype would still apply. */
19733 #ifdef __cplusplus
19734 extern "C"
19735 #endif
19736 char mit_des_cbc_encrypt ();
19738 main ()
19740 return mit_des_cbc_encrypt ();
19742 return 0;
19744 _ACEOF
19745 rm -f conftest.$ac_objext conftest$ac_exeext
19746 if { (ac_try="$ac_link"
19747 case "(($ac_try" in
19748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19749 *) ac_try_echo=$ac_try;;
19750 esac
19751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19752 (eval "$ac_link") 2>conftest.er1
19753 ac_status=$?
19754 grep -v '^ *+' conftest.er1 >conftest.err
19755 rm -f conftest.er1
19756 cat conftest.err >&5
19757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758 (exit $ac_status); } && {
19759 test -z "$ac_c_werror_flag" ||
19760 test ! -s conftest.err
19761 } && test -s conftest$ac_exeext &&
19762 $as_test_x conftest$ac_exeext; then
19763 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19764 else
19765 echo "$as_me: failed program was:" >&5
19766 sed 's/^/| /' conftest.$ac_ext >&5
19768 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19772 conftest$ac_exeext conftest.$ac_ext
19773 LIBS=$ac_check_lib_save_LIBS
19775 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19776 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19777 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19778 cat >>confdefs.h <<_ACEOF
19779 #define HAVE_LIBK5CRYPTO 1
19780 _ACEOF
19782 LIBS="-lk5crypto $LIBS"
19787 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
19788 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
19789 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19790 echo $ECHO_N "(cached) $ECHO_C" >&6
19791 else
19792 ac_check_lib_save_LIBS=$LIBS
19793 LIBS="-lcrypto $LIBS"
19794 cat >conftest.$ac_ext <<_ACEOF
19795 /* confdefs.h. */
19796 _ACEOF
19797 cat confdefs.h >>conftest.$ac_ext
19798 cat >>conftest.$ac_ext <<_ACEOF
19799 /* end confdefs.h. */
19801 /* Override any GCC internal prototype to avoid an error.
19802 Use char because int might match the return type of a GCC
19803 builtin and then its argument prototype would still apply. */
19804 #ifdef __cplusplus
19805 extern "C"
19806 #endif
19807 char mit_des_cbc_encrypt ();
19809 main ()
19811 return mit_des_cbc_encrypt ();
19813 return 0;
19815 _ACEOF
19816 rm -f conftest.$ac_objext conftest$ac_exeext
19817 if { (ac_try="$ac_link"
19818 case "(($ac_try" in
19819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19820 *) ac_try_echo=$ac_try;;
19821 esac
19822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19823 (eval "$ac_link") 2>conftest.er1
19824 ac_status=$?
19825 grep -v '^ *+' conftest.er1 >conftest.err
19826 rm -f conftest.er1
19827 cat conftest.err >&5
19828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19829 (exit $ac_status); } && {
19830 test -z "$ac_c_werror_flag" ||
19831 test ! -s conftest.err
19832 } && test -s conftest$ac_exeext &&
19833 $as_test_x conftest$ac_exeext; then
19834 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19835 else
19836 echo "$as_me: failed program was:" >&5
19837 sed 's/^/| /' conftest.$ac_ext >&5
19839 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19843 conftest$ac_exeext conftest.$ac_ext
19844 LIBS=$ac_check_lib_save_LIBS
19846 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19847 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
19848 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19849 cat >>confdefs.h <<_ACEOF
19850 #define HAVE_LIBCRYPTO 1
19851 _ACEOF
19853 LIBS="-lcrypto $LIBS"
19858 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
19859 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
19860 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19861 echo $ECHO_N "(cached) $ECHO_C" >&6
19862 else
19863 ac_check_lib_save_LIBS=$LIBS
19864 LIBS="-lkrb5 $LIBS"
19865 cat >conftest.$ac_ext <<_ACEOF
19866 /* confdefs.h. */
19867 _ACEOF
19868 cat confdefs.h >>conftest.$ac_ext
19869 cat >>conftest.$ac_ext <<_ACEOF
19870 /* end confdefs.h. */
19872 /* Override any GCC internal prototype to avoid an error.
19873 Use char because int might match the return type of a GCC
19874 builtin and then its argument prototype would still apply. */
19875 #ifdef __cplusplus
19876 extern "C"
19877 #endif
19878 char krb5_init_context ();
19880 main ()
19882 return krb5_init_context ();
19884 return 0;
19886 _ACEOF
19887 rm -f conftest.$ac_objext conftest$ac_exeext
19888 if { (ac_try="$ac_link"
19889 case "(($ac_try" in
19890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19891 *) ac_try_echo=$ac_try;;
19892 esac
19893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19894 (eval "$ac_link") 2>conftest.er1
19895 ac_status=$?
19896 grep -v '^ *+' conftest.er1 >conftest.err
19897 rm -f conftest.er1
19898 cat conftest.err >&5
19899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19900 (exit $ac_status); } && {
19901 test -z "$ac_c_werror_flag" ||
19902 test ! -s conftest.err
19903 } && test -s conftest$ac_exeext &&
19904 $as_test_x conftest$ac_exeext; then
19905 ac_cv_lib_krb5_krb5_init_context=yes
19906 else
19907 echo "$as_me: failed program was:" >&5
19908 sed 's/^/| /' conftest.$ac_ext >&5
19910 ac_cv_lib_krb5_krb5_init_context=no
19913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19914 conftest$ac_exeext conftest.$ac_ext
19915 LIBS=$ac_check_lib_save_LIBS
19917 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
19918 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
19919 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19920 cat >>confdefs.h <<_ACEOF
19921 #define HAVE_LIBKRB5 1
19922 _ACEOF
19924 LIBS="-lkrb5 $LIBS"
19928 if test "${with_kerberos5+set}" != set; then
19930 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
19931 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
19932 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19933 echo $ECHO_N "(cached) $ECHO_C" >&6
19934 else
19935 ac_check_lib_save_LIBS=$LIBS
19936 LIBS="-ldes425 $LIBS"
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. */
19944 /* Override any GCC internal prototype to avoid an error.
19945 Use char because int might match the return type of a GCC
19946 builtin and then its argument prototype would still apply. */
19947 #ifdef __cplusplus
19948 extern "C"
19949 #endif
19950 char des_cbc_encrypt ();
19952 main ()
19954 return des_cbc_encrypt ();
19956 return 0;
19958 _ACEOF
19959 rm -f conftest.$ac_objext conftest$ac_exeext
19960 if { (ac_try="$ac_link"
19961 case "(($ac_try" in
19962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19963 *) ac_try_echo=$ac_try;;
19964 esac
19965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19966 (eval "$ac_link") 2>conftest.er1
19967 ac_status=$?
19968 grep -v '^ *+' conftest.er1 >conftest.err
19969 rm -f conftest.er1
19970 cat conftest.err >&5
19971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972 (exit $ac_status); } && {
19973 test -z "$ac_c_werror_flag" ||
19974 test ! -s conftest.err
19975 } && test -s conftest$ac_exeext &&
19976 $as_test_x conftest$ac_exeext; then
19977 ac_cv_lib_des425_des_cbc_encrypt=yes
19978 else
19979 echo "$as_me: failed program was:" >&5
19980 sed 's/^/| /' conftest.$ac_ext >&5
19982 ac_cv_lib_des425_des_cbc_encrypt=no
19985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19986 conftest$ac_exeext conftest.$ac_ext
19987 LIBS=$ac_check_lib_save_LIBS
19989 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19990 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
19991 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19992 cat >>confdefs.h <<_ACEOF
19993 #define HAVE_LIBDES425 1
19994 _ACEOF
19996 LIBS="-ldes425 $LIBS"
19998 else
20000 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20001 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20002 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20003 echo $ECHO_N "(cached) $ECHO_C" >&6
20004 else
20005 ac_check_lib_save_LIBS=$LIBS
20006 LIBS="-ldes $LIBS"
20007 cat >conftest.$ac_ext <<_ACEOF
20008 /* confdefs.h. */
20009 _ACEOF
20010 cat confdefs.h >>conftest.$ac_ext
20011 cat >>conftest.$ac_ext <<_ACEOF
20012 /* end confdefs.h. */
20014 /* Override any GCC internal prototype to avoid an error.
20015 Use char because int might match the return type of a GCC
20016 builtin and then its argument prototype would still apply. */
20017 #ifdef __cplusplus
20018 extern "C"
20019 #endif
20020 char des_cbc_encrypt ();
20022 main ()
20024 return des_cbc_encrypt ();
20026 return 0;
20028 _ACEOF
20029 rm -f conftest.$ac_objext conftest$ac_exeext
20030 if { (ac_try="$ac_link"
20031 case "(($ac_try" in
20032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20033 *) ac_try_echo=$ac_try;;
20034 esac
20035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20036 (eval "$ac_link") 2>conftest.er1
20037 ac_status=$?
20038 grep -v '^ *+' conftest.er1 >conftest.err
20039 rm -f conftest.er1
20040 cat conftest.err >&5
20041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20042 (exit $ac_status); } && {
20043 test -z "$ac_c_werror_flag" ||
20044 test ! -s conftest.err
20045 } && test -s conftest$ac_exeext &&
20046 $as_test_x conftest$ac_exeext; then
20047 ac_cv_lib_des_des_cbc_encrypt=yes
20048 else
20049 echo "$as_me: failed program was:" >&5
20050 sed 's/^/| /' conftest.$ac_ext >&5
20052 ac_cv_lib_des_des_cbc_encrypt=no
20055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20056 conftest$ac_exeext conftest.$ac_ext
20057 LIBS=$ac_check_lib_save_LIBS
20059 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20060 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20061 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20062 cat >>confdefs.h <<_ACEOF
20063 #define HAVE_LIBDES 1
20064 _ACEOF
20066 LIBS="-ldes $LIBS"
20073 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20074 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20075 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20076 echo $ECHO_N "(cached) $ECHO_C" >&6
20077 else
20078 ac_check_lib_save_LIBS=$LIBS
20079 LIBS="-lkrb4 $LIBS"
20080 cat >conftest.$ac_ext <<_ACEOF
20081 /* confdefs.h. */
20082 _ACEOF
20083 cat confdefs.h >>conftest.$ac_ext
20084 cat >>conftest.$ac_ext <<_ACEOF
20085 /* end confdefs.h. */
20087 /* Override any GCC internal prototype to avoid an error.
20088 Use char because int might match the return type of a GCC
20089 builtin and then its argument prototype would still apply. */
20090 #ifdef __cplusplus
20091 extern "C"
20092 #endif
20093 char krb_get_cred ();
20095 main ()
20097 return krb_get_cred ();
20099 return 0;
20101 _ACEOF
20102 rm -f conftest.$ac_objext conftest$ac_exeext
20103 if { (ac_try="$ac_link"
20104 case "(($ac_try" in
20105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20106 *) ac_try_echo=$ac_try;;
20107 esac
20108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20109 (eval "$ac_link") 2>conftest.er1
20110 ac_status=$?
20111 grep -v '^ *+' conftest.er1 >conftest.err
20112 rm -f conftest.er1
20113 cat conftest.err >&5
20114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115 (exit $ac_status); } && {
20116 test -z "$ac_c_werror_flag" ||
20117 test ! -s conftest.err
20118 } && test -s conftest$ac_exeext &&
20119 $as_test_x conftest$ac_exeext; then
20120 ac_cv_lib_krb4_krb_get_cred=yes
20121 else
20122 echo "$as_me: failed program was:" >&5
20123 sed 's/^/| /' conftest.$ac_ext >&5
20125 ac_cv_lib_krb4_krb_get_cred=no
20128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20129 conftest$ac_exeext conftest.$ac_ext
20130 LIBS=$ac_check_lib_save_LIBS
20132 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20133 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20134 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20135 cat >>confdefs.h <<_ACEOF
20136 #define HAVE_LIBKRB4 1
20137 _ACEOF
20139 LIBS="-lkrb4 $LIBS"
20141 else
20143 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20144 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
20145 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20146 echo $ECHO_N "(cached) $ECHO_C" >&6
20147 else
20148 ac_check_lib_save_LIBS=$LIBS
20149 LIBS="-lkrb $LIBS"
20150 cat >conftest.$ac_ext <<_ACEOF
20151 /* confdefs.h. */
20152 _ACEOF
20153 cat confdefs.h >>conftest.$ac_ext
20154 cat >>conftest.$ac_ext <<_ACEOF
20155 /* end confdefs.h. */
20157 /* Override any GCC internal prototype to avoid an error.
20158 Use char because int might match the return type of a GCC
20159 builtin and then its argument prototype would still apply. */
20160 #ifdef __cplusplus
20161 extern "C"
20162 #endif
20163 char krb_get_cred ();
20165 main ()
20167 return krb_get_cred ();
20169 return 0;
20171 _ACEOF
20172 rm -f conftest.$ac_objext conftest$ac_exeext
20173 if { (ac_try="$ac_link"
20174 case "(($ac_try" in
20175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20176 *) ac_try_echo=$ac_try;;
20177 esac
20178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20179 (eval "$ac_link") 2>conftest.er1
20180 ac_status=$?
20181 grep -v '^ *+' conftest.er1 >conftest.err
20182 rm -f conftest.er1
20183 cat conftest.err >&5
20184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20185 (exit $ac_status); } && {
20186 test -z "$ac_c_werror_flag" ||
20187 test ! -s conftest.err
20188 } && test -s conftest$ac_exeext &&
20189 $as_test_x conftest$ac_exeext; then
20190 ac_cv_lib_krb_krb_get_cred=yes
20191 else
20192 echo "$as_me: failed program was:" >&5
20193 sed 's/^/| /' conftest.$ac_ext >&5
20195 ac_cv_lib_krb_krb_get_cred=no
20198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20199 conftest$ac_exeext conftest.$ac_ext
20200 LIBS=$ac_check_lib_save_LIBS
20202 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20203 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20204 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20205 cat >>confdefs.h <<_ACEOF
20206 #define HAVE_LIBKRB 1
20207 _ACEOF
20209 LIBS="-lkrb $LIBS"
20217 if test "${with_kerberos5+set}" = set; then
20219 for ac_header in krb5.h
20221 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20223 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20226 echo $ECHO_N "(cached) $ECHO_C" >&6
20228 ac_res=`eval echo '${'$as_ac_Header'}'`
20229 { echo "$as_me:$LINENO: result: $ac_res" >&5
20230 echo "${ECHO_T}$ac_res" >&6; }
20231 else
20232 # Is the header compilable?
20233 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20234 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20235 cat >conftest.$ac_ext <<_ACEOF
20236 /* confdefs.h. */
20237 _ACEOF
20238 cat confdefs.h >>conftest.$ac_ext
20239 cat >>conftest.$ac_ext <<_ACEOF
20240 /* end confdefs.h. */
20241 $ac_includes_default
20242 #include <$ac_header>
20243 _ACEOF
20244 rm -f conftest.$ac_objext
20245 if { (ac_try="$ac_compile"
20246 case "(($ac_try" in
20247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20248 *) ac_try_echo=$ac_try;;
20249 esac
20250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20251 (eval "$ac_compile") 2>conftest.er1
20252 ac_status=$?
20253 grep -v '^ *+' conftest.er1 >conftest.err
20254 rm -f conftest.er1
20255 cat conftest.err >&5
20256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20257 (exit $ac_status); } && {
20258 test -z "$ac_c_werror_flag" ||
20259 test ! -s conftest.err
20260 } && test -s conftest.$ac_objext; then
20261 ac_header_compiler=yes
20262 else
20263 echo "$as_me: failed program was:" >&5
20264 sed 's/^/| /' conftest.$ac_ext >&5
20266 ac_header_compiler=no
20269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20270 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20271 echo "${ECHO_T}$ac_header_compiler" >&6; }
20273 # Is the header present?
20274 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20275 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20276 cat >conftest.$ac_ext <<_ACEOF
20277 /* confdefs.h. */
20278 _ACEOF
20279 cat confdefs.h >>conftest.$ac_ext
20280 cat >>conftest.$ac_ext <<_ACEOF
20281 /* end confdefs.h. */
20282 #include <$ac_header>
20283 _ACEOF
20284 if { (ac_try="$ac_cpp conftest.$ac_ext"
20285 case "(($ac_try" in
20286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20287 *) ac_try_echo=$ac_try;;
20288 esac
20289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20290 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20291 ac_status=$?
20292 grep -v '^ *+' conftest.er1 >conftest.err
20293 rm -f conftest.er1
20294 cat conftest.err >&5
20295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296 (exit $ac_status); } >/dev/null && {
20297 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20298 test ! -s conftest.err
20299 }; then
20300 ac_header_preproc=yes
20301 else
20302 echo "$as_me: failed program was:" >&5
20303 sed 's/^/| /' conftest.$ac_ext >&5
20305 ac_header_preproc=no
20308 rm -f conftest.err conftest.$ac_ext
20309 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20310 echo "${ECHO_T}$ac_header_preproc" >&6; }
20312 # So? What about this header?
20313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20314 yes:no: )
20315 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20316 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20318 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20319 ac_header_preproc=yes
20321 no:yes:* )
20322 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20323 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20324 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20325 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20326 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20327 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20328 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20329 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20331 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20332 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20333 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20336 esac
20337 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20340 echo $ECHO_N "(cached) $ECHO_C" >&6
20341 else
20342 eval "$as_ac_Header=\$ac_header_preproc"
20344 ac_res=`eval echo '${'$as_ac_Header'}'`
20345 { echo "$as_me:$LINENO: result: $ac_res" >&5
20346 echo "${ECHO_T}$ac_res" >&6; }
20349 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20350 cat >>confdefs.h <<_ACEOF
20351 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20352 _ACEOF
20356 done
20358 else
20360 for ac_header in des.h
20362 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20364 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20367 echo $ECHO_N "(cached) $ECHO_C" >&6
20369 ac_res=`eval echo '${'$as_ac_Header'}'`
20370 { echo "$as_me:$LINENO: result: $ac_res" >&5
20371 echo "${ECHO_T}$ac_res" >&6; }
20372 else
20373 # Is the header compilable?
20374 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20375 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20376 cat >conftest.$ac_ext <<_ACEOF
20377 /* confdefs.h. */
20378 _ACEOF
20379 cat confdefs.h >>conftest.$ac_ext
20380 cat >>conftest.$ac_ext <<_ACEOF
20381 /* end confdefs.h. */
20382 $ac_includes_default
20383 #include <$ac_header>
20384 _ACEOF
20385 rm -f conftest.$ac_objext
20386 if { (ac_try="$ac_compile"
20387 case "(($ac_try" in
20388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20389 *) ac_try_echo=$ac_try;;
20390 esac
20391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20392 (eval "$ac_compile") 2>conftest.er1
20393 ac_status=$?
20394 grep -v '^ *+' conftest.er1 >conftest.err
20395 rm -f conftest.er1
20396 cat conftest.err >&5
20397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20398 (exit $ac_status); } && {
20399 test -z "$ac_c_werror_flag" ||
20400 test ! -s conftest.err
20401 } && test -s conftest.$ac_objext; then
20402 ac_header_compiler=yes
20403 else
20404 echo "$as_me: failed program was:" >&5
20405 sed 's/^/| /' conftest.$ac_ext >&5
20407 ac_header_compiler=no
20410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20411 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20412 echo "${ECHO_T}$ac_header_compiler" >&6; }
20414 # Is the header present?
20415 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20416 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20417 cat >conftest.$ac_ext <<_ACEOF
20418 /* confdefs.h. */
20419 _ACEOF
20420 cat confdefs.h >>conftest.$ac_ext
20421 cat >>conftest.$ac_ext <<_ACEOF
20422 /* end confdefs.h. */
20423 #include <$ac_header>
20424 _ACEOF
20425 if { (ac_try="$ac_cpp conftest.$ac_ext"
20426 case "(($ac_try" in
20427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20428 *) ac_try_echo=$ac_try;;
20429 esac
20430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20431 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20432 ac_status=$?
20433 grep -v '^ *+' conftest.er1 >conftest.err
20434 rm -f conftest.er1
20435 cat conftest.err >&5
20436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20437 (exit $ac_status); } >/dev/null && {
20438 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20439 test ! -s conftest.err
20440 }; then
20441 ac_header_preproc=yes
20442 else
20443 echo "$as_me: failed program was:" >&5
20444 sed 's/^/| /' conftest.$ac_ext >&5
20446 ac_header_preproc=no
20449 rm -f conftest.err conftest.$ac_ext
20450 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20451 echo "${ECHO_T}$ac_header_preproc" >&6; }
20453 # So? What about this header?
20454 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20455 yes:no: )
20456 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20457 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20459 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20460 ac_header_preproc=yes
20462 no:yes:* )
20463 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20464 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20465 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20466 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20467 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20468 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20469 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20470 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20471 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20472 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20473 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20474 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20477 esac
20478 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20481 echo $ECHO_N "(cached) $ECHO_C" >&6
20482 else
20483 eval "$as_ac_Header=\$ac_header_preproc"
20485 ac_res=`eval echo '${'$as_ac_Header'}'`
20486 { echo "$as_me:$LINENO: result: $ac_res" >&5
20487 echo "${ECHO_T}$ac_res" >&6; }
20490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20491 cat >>confdefs.h <<_ACEOF
20492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20493 _ACEOF
20495 else
20497 for ac_header in kerberosIV/des.h
20499 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20501 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20503 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20504 echo $ECHO_N "(cached) $ECHO_C" >&6
20506 ac_res=`eval echo '${'$as_ac_Header'}'`
20507 { echo "$as_me:$LINENO: result: $ac_res" >&5
20508 echo "${ECHO_T}$ac_res" >&6; }
20509 else
20510 # Is the header compilable?
20511 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20512 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20513 cat >conftest.$ac_ext <<_ACEOF
20514 /* confdefs.h. */
20515 _ACEOF
20516 cat confdefs.h >>conftest.$ac_ext
20517 cat >>conftest.$ac_ext <<_ACEOF
20518 /* end confdefs.h. */
20519 $ac_includes_default
20520 #include <$ac_header>
20521 _ACEOF
20522 rm -f conftest.$ac_objext
20523 if { (ac_try="$ac_compile"
20524 case "(($ac_try" in
20525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20526 *) ac_try_echo=$ac_try;;
20527 esac
20528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20529 (eval "$ac_compile") 2>conftest.er1
20530 ac_status=$?
20531 grep -v '^ *+' conftest.er1 >conftest.err
20532 rm -f conftest.er1
20533 cat conftest.err >&5
20534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535 (exit $ac_status); } && {
20536 test -z "$ac_c_werror_flag" ||
20537 test ! -s conftest.err
20538 } && test -s conftest.$ac_objext; then
20539 ac_header_compiler=yes
20540 else
20541 echo "$as_me: failed program was:" >&5
20542 sed 's/^/| /' conftest.$ac_ext >&5
20544 ac_header_compiler=no
20547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20548 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20549 echo "${ECHO_T}$ac_header_compiler" >&6; }
20551 # Is the header present?
20552 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20553 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20554 cat >conftest.$ac_ext <<_ACEOF
20555 /* confdefs.h. */
20556 _ACEOF
20557 cat confdefs.h >>conftest.$ac_ext
20558 cat >>conftest.$ac_ext <<_ACEOF
20559 /* end confdefs.h. */
20560 #include <$ac_header>
20561 _ACEOF
20562 if { (ac_try="$ac_cpp conftest.$ac_ext"
20563 case "(($ac_try" in
20564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20565 *) ac_try_echo=$ac_try;;
20566 esac
20567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20568 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20569 ac_status=$?
20570 grep -v '^ *+' conftest.er1 >conftest.err
20571 rm -f conftest.er1
20572 cat conftest.err >&5
20573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20574 (exit $ac_status); } >/dev/null && {
20575 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20576 test ! -s conftest.err
20577 }; then
20578 ac_header_preproc=yes
20579 else
20580 echo "$as_me: failed program was:" >&5
20581 sed 's/^/| /' conftest.$ac_ext >&5
20583 ac_header_preproc=no
20586 rm -f conftest.err conftest.$ac_ext
20587 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20588 echo "${ECHO_T}$ac_header_preproc" >&6; }
20590 # So? What about this header?
20591 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20592 yes:no: )
20593 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20594 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20595 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20596 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20597 ac_header_preproc=yes
20599 no:yes:* )
20600 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20601 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20602 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20603 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20604 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20605 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20606 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20607 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20609 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20610 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20611 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20614 esac
20615 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20617 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20618 echo $ECHO_N "(cached) $ECHO_C" >&6
20619 else
20620 eval "$as_ac_Header=\$ac_header_preproc"
20622 ac_res=`eval echo '${'$as_ac_Header'}'`
20623 { echo "$as_me:$LINENO: result: $ac_res" >&5
20624 echo "${ECHO_T}$ac_res" >&6; }
20627 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20628 cat >>confdefs.h <<_ACEOF
20629 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20630 _ACEOF
20632 else
20634 for ac_header in kerberos/des.h
20636 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20637 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20638 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20641 echo $ECHO_N "(cached) $ECHO_C" >&6
20643 ac_res=`eval echo '${'$as_ac_Header'}'`
20644 { echo "$as_me:$LINENO: result: $ac_res" >&5
20645 echo "${ECHO_T}$ac_res" >&6; }
20646 else
20647 # Is the header compilable?
20648 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20649 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20650 cat >conftest.$ac_ext <<_ACEOF
20651 /* confdefs.h. */
20652 _ACEOF
20653 cat confdefs.h >>conftest.$ac_ext
20654 cat >>conftest.$ac_ext <<_ACEOF
20655 /* end confdefs.h. */
20656 $ac_includes_default
20657 #include <$ac_header>
20658 _ACEOF
20659 rm -f conftest.$ac_objext
20660 if { (ac_try="$ac_compile"
20661 case "(($ac_try" in
20662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20663 *) ac_try_echo=$ac_try;;
20664 esac
20665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20666 (eval "$ac_compile") 2>conftest.er1
20667 ac_status=$?
20668 grep -v '^ *+' conftest.er1 >conftest.err
20669 rm -f conftest.er1
20670 cat conftest.err >&5
20671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20672 (exit $ac_status); } && {
20673 test -z "$ac_c_werror_flag" ||
20674 test ! -s conftest.err
20675 } && test -s conftest.$ac_objext; then
20676 ac_header_compiler=yes
20677 else
20678 echo "$as_me: failed program was:" >&5
20679 sed 's/^/| /' conftest.$ac_ext >&5
20681 ac_header_compiler=no
20684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20685 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20686 echo "${ECHO_T}$ac_header_compiler" >&6; }
20688 # Is the header present?
20689 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20690 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20691 cat >conftest.$ac_ext <<_ACEOF
20692 /* confdefs.h. */
20693 _ACEOF
20694 cat confdefs.h >>conftest.$ac_ext
20695 cat >>conftest.$ac_ext <<_ACEOF
20696 /* end confdefs.h. */
20697 #include <$ac_header>
20698 _ACEOF
20699 if { (ac_try="$ac_cpp conftest.$ac_ext"
20700 case "(($ac_try" in
20701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20702 *) ac_try_echo=$ac_try;;
20703 esac
20704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20705 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20706 ac_status=$?
20707 grep -v '^ *+' conftest.er1 >conftest.err
20708 rm -f conftest.er1
20709 cat conftest.err >&5
20710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20711 (exit $ac_status); } >/dev/null && {
20712 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20713 test ! -s conftest.err
20714 }; then
20715 ac_header_preproc=yes
20716 else
20717 echo "$as_me: failed program was:" >&5
20718 sed 's/^/| /' conftest.$ac_ext >&5
20720 ac_header_preproc=no
20723 rm -f conftest.err conftest.$ac_ext
20724 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20725 echo "${ECHO_T}$ac_header_preproc" >&6; }
20727 # So? What about this header?
20728 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20729 yes:no: )
20730 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20731 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20733 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20734 ac_header_preproc=yes
20736 no:yes:* )
20737 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20738 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20739 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20740 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20741 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20742 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20743 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20744 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20746 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20747 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20748 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20751 esac
20752 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20754 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20755 echo $ECHO_N "(cached) $ECHO_C" >&6
20756 else
20757 eval "$as_ac_Header=\$ac_header_preproc"
20759 ac_res=`eval echo '${'$as_ac_Header'}'`
20760 { echo "$as_me:$LINENO: result: $ac_res" >&5
20761 echo "${ECHO_T}$ac_res" >&6; }
20764 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20765 cat >>confdefs.h <<_ACEOF
20766 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20767 _ACEOF
20771 done
20775 done
20779 done
20782 for ac_header in krb.h
20784 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20785 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20786 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20788 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20789 echo $ECHO_N "(cached) $ECHO_C" >&6
20791 ac_res=`eval echo '${'$as_ac_Header'}'`
20792 { echo "$as_me:$LINENO: result: $ac_res" >&5
20793 echo "${ECHO_T}$ac_res" >&6; }
20794 else
20795 # Is the header compilable?
20796 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20797 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20798 cat >conftest.$ac_ext <<_ACEOF
20799 /* confdefs.h. */
20800 _ACEOF
20801 cat confdefs.h >>conftest.$ac_ext
20802 cat >>conftest.$ac_ext <<_ACEOF
20803 /* end confdefs.h. */
20804 $ac_includes_default
20805 #include <$ac_header>
20806 _ACEOF
20807 rm -f conftest.$ac_objext
20808 if { (ac_try="$ac_compile"
20809 case "(($ac_try" in
20810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20811 *) ac_try_echo=$ac_try;;
20812 esac
20813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20814 (eval "$ac_compile") 2>conftest.er1
20815 ac_status=$?
20816 grep -v '^ *+' conftest.er1 >conftest.err
20817 rm -f conftest.er1
20818 cat conftest.err >&5
20819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20820 (exit $ac_status); } && {
20821 test -z "$ac_c_werror_flag" ||
20822 test ! -s conftest.err
20823 } && test -s conftest.$ac_objext; then
20824 ac_header_compiler=yes
20825 else
20826 echo "$as_me: failed program was:" >&5
20827 sed 's/^/| /' conftest.$ac_ext >&5
20829 ac_header_compiler=no
20832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20833 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20834 echo "${ECHO_T}$ac_header_compiler" >&6; }
20836 # Is the header present?
20837 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20838 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20839 cat >conftest.$ac_ext <<_ACEOF
20840 /* confdefs.h. */
20841 _ACEOF
20842 cat confdefs.h >>conftest.$ac_ext
20843 cat >>conftest.$ac_ext <<_ACEOF
20844 /* end confdefs.h. */
20845 #include <$ac_header>
20846 _ACEOF
20847 if { (ac_try="$ac_cpp conftest.$ac_ext"
20848 case "(($ac_try" in
20849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20850 *) ac_try_echo=$ac_try;;
20851 esac
20852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20853 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20854 ac_status=$?
20855 grep -v '^ *+' conftest.er1 >conftest.err
20856 rm -f conftest.er1
20857 cat conftest.err >&5
20858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20859 (exit $ac_status); } >/dev/null && {
20860 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20861 test ! -s conftest.err
20862 }; then
20863 ac_header_preproc=yes
20864 else
20865 echo "$as_me: failed program was:" >&5
20866 sed 's/^/| /' conftest.$ac_ext >&5
20868 ac_header_preproc=no
20871 rm -f conftest.err conftest.$ac_ext
20872 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20873 echo "${ECHO_T}$ac_header_preproc" >&6; }
20875 # So? What about this header?
20876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20877 yes:no: )
20878 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20879 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20881 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20882 ac_header_preproc=yes
20884 no:yes:* )
20885 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20886 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20887 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20888 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20889 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20890 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20891 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20892 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20894 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20895 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20896 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20899 esac
20900 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20903 echo $ECHO_N "(cached) $ECHO_C" >&6
20904 else
20905 eval "$as_ac_Header=\$ac_header_preproc"
20907 ac_res=`eval echo '${'$as_ac_Header'}'`
20908 { echo "$as_me:$LINENO: result: $ac_res" >&5
20909 echo "${ECHO_T}$ac_res" >&6; }
20912 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20913 cat >>confdefs.h <<_ACEOF
20914 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20915 _ACEOF
20917 else
20919 for ac_header in kerberosIV/krb.h
20921 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20923 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20925 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20926 echo $ECHO_N "(cached) $ECHO_C" >&6
20928 ac_res=`eval echo '${'$as_ac_Header'}'`
20929 { echo "$as_me:$LINENO: result: $ac_res" >&5
20930 echo "${ECHO_T}$ac_res" >&6; }
20931 else
20932 # Is the header compilable?
20933 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20934 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20935 cat >conftest.$ac_ext <<_ACEOF
20936 /* confdefs.h. */
20937 _ACEOF
20938 cat confdefs.h >>conftest.$ac_ext
20939 cat >>conftest.$ac_ext <<_ACEOF
20940 /* end confdefs.h. */
20941 $ac_includes_default
20942 #include <$ac_header>
20943 _ACEOF
20944 rm -f conftest.$ac_objext
20945 if { (ac_try="$ac_compile"
20946 case "(($ac_try" in
20947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20948 *) ac_try_echo=$ac_try;;
20949 esac
20950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20951 (eval "$ac_compile") 2>conftest.er1
20952 ac_status=$?
20953 grep -v '^ *+' conftest.er1 >conftest.err
20954 rm -f conftest.er1
20955 cat conftest.err >&5
20956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957 (exit $ac_status); } && {
20958 test -z "$ac_c_werror_flag" ||
20959 test ! -s conftest.err
20960 } && test -s conftest.$ac_objext; then
20961 ac_header_compiler=yes
20962 else
20963 echo "$as_me: failed program was:" >&5
20964 sed 's/^/| /' conftest.$ac_ext >&5
20966 ac_header_compiler=no
20969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20970 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20971 echo "${ECHO_T}$ac_header_compiler" >&6; }
20973 # Is the header present?
20974 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20975 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20976 cat >conftest.$ac_ext <<_ACEOF
20977 /* confdefs.h. */
20978 _ACEOF
20979 cat confdefs.h >>conftest.$ac_ext
20980 cat >>conftest.$ac_ext <<_ACEOF
20981 /* end confdefs.h. */
20982 #include <$ac_header>
20983 _ACEOF
20984 if { (ac_try="$ac_cpp conftest.$ac_ext"
20985 case "(($ac_try" in
20986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20987 *) ac_try_echo=$ac_try;;
20988 esac
20989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20991 ac_status=$?
20992 grep -v '^ *+' conftest.er1 >conftest.err
20993 rm -f conftest.er1
20994 cat conftest.err >&5
20995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996 (exit $ac_status); } >/dev/null && {
20997 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20998 test ! -s conftest.err
20999 }; then
21000 ac_header_preproc=yes
21001 else
21002 echo "$as_me: failed program was:" >&5
21003 sed 's/^/| /' conftest.$ac_ext >&5
21005 ac_header_preproc=no
21008 rm -f conftest.err conftest.$ac_ext
21009 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21010 echo "${ECHO_T}$ac_header_preproc" >&6; }
21012 # So? What about this header?
21013 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21014 yes:no: )
21015 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21016 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21018 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21019 ac_header_preproc=yes
21021 no:yes:* )
21022 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21023 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21024 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21025 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21026 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21027 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21028 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21029 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21030 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21031 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21032 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21033 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21036 esac
21037 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21040 echo $ECHO_N "(cached) $ECHO_C" >&6
21041 else
21042 eval "$as_ac_Header=\$ac_header_preproc"
21044 ac_res=`eval echo '${'$as_ac_Header'}'`
21045 { echo "$as_me:$LINENO: result: $ac_res" >&5
21046 echo "${ECHO_T}$ac_res" >&6; }
21049 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21050 cat >>confdefs.h <<_ACEOF
21051 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21052 _ACEOF
21054 else
21056 for ac_header in kerberos/krb.h
21058 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21060 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21062 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21063 echo $ECHO_N "(cached) $ECHO_C" >&6
21065 ac_res=`eval echo '${'$as_ac_Header'}'`
21066 { echo "$as_me:$LINENO: result: $ac_res" >&5
21067 echo "${ECHO_T}$ac_res" >&6; }
21068 else
21069 # Is the header compilable?
21070 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21071 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21072 cat >conftest.$ac_ext <<_ACEOF
21073 /* confdefs.h. */
21074 _ACEOF
21075 cat confdefs.h >>conftest.$ac_ext
21076 cat >>conftest.$ac_ext <<_ACEOF
21077 /* end confdefs.h. */
21078 $ac_includes_default
21079 #include <$ac_header>
21080 _ACEOF
21081 rm -f conftest.$ac_objext
21082 if { (ac_try="$ac_compile"
21083 case "(($ac_try" in
21084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21085 *) ac_try_echo=$ac_try;;
21086 esac
21087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21088 (eval "$ac_compile") 2>conftest.er1
21089 ac_status=$?
21090 grep -v '^ *+' conftest.er1 >conftest.err
21091 rm -f conftest.er1
21092 cat conftest.err >&5
21093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21094 (exit $ac_status); } && {
21095 test -z "$ac_c_werror_flag" ||
21096 test ! -s conftest.err
21097 } && test -s conftest.$ac_objext; then
21098 ac_header_compiler=yes
21099 else
21100 echo "$as_me: failed program was:" >&5
21101 sed 's/^/| /' conftest.$ac_ext >&5
21103 ac_header_compiler=no
21106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21107 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21108 echo "${ECHO_T}$ac_header_compiler" >&6; }
21110 # Is the header present?
21111 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21112 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21113 cat >conftest.$ac_ext <<_ACEOF
21114 /* confdefs.h. */
21115 _ACEOF
21116 cat confdefs.h >>conftest.$ac_ext
21117 cat >>conftest.$ac_ext <<_ACEOF
21118 /* end confdefs.h. */
21119 #include <$ac_header>
21120 _ACEOF
21121 if { (ac_try="$ac_cpp conftest.$ac_ext"
21122 case "(($ac_try" in
21123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21124 *) ac_try_echo=$ac_try;;
21125 esac
21126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21127 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21128 ac_status=$?
21129 grep -v '^ *+' conftest.er1 >conftest.err
21130 rm -f conftest.er1
21131 cat conftest.err >&5
21132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21133 (exit $ac_status); } >/dev/null && {
21134 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21135 test ! -s conftest.err
21136 }; then
21137 ac_header_preproc=yes
21138 else
21139 echo "$as_me: failed program was:" >&5
21140 sed 's/^/| /' conftest.$ac_ext >&5
21142 ac_header_preproc=no
21145 rm -f conftest.err conftest.$ac_ext
21146 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21147 echo "${ECHO_T}$ac_header_preproc" >&6; }
21149 # So? What about this header?
21150 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21151 yes:no: )
21152 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21153 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21155 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21156 ac_header_preproc=yes
21158 no:yes:* )
21159 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21160 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21161 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21162 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21163 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21164 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21165 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21166 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21168 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21169 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21170 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21173 esac
21174 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21177 echo $ECHO_N "(cached) $ECHO_C" >&6
21178 else
21179 eval "$as_ac_Header=\$ac_header_preproc"
21181 ac_res=`eval echo '${'$as_ac_Header'}'`
21182 { echo "$as_me:$LINENO: result: $ac_res" >&5
21183 echo "${ECHO_T}$ac_res" >&6; }
21186 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21187 cat >>confdefs.h <<_ACEOF
21188 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21189 _ACEOF
21193 done
21197 done
21201 done
21205 for ac_header in com_err.h
21207 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21208 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21209 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21212 echo $ECHO_N "(cached) $ECHO_C" >&6
21214 ac_res=`eval echo '${'$as_ac_Header'}'`
21215 { echo "$as_me:$LINENO: result: $ac_res" >&5
21216 echo "${ECHO_T}$ac_res" >&6; }
21217 else
21218 # Is the header compilable?
21219 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21220 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21221 cat >conftest.$ac_ext <<_ACEOF
21222 /* confdefs.h. */
21223 _ACEOF
21224 cat confdefs.h >>conftest.$ac_ext
21225 cat >>conftest.$ac_ext <<_ACEOF
21226 /* end confdefs.h. */
21227 $ac_includes_default
21228 #include <$ac_header>
21229 _ACEOF
21230 rm -f conftest.$ac_objext
21231 if { (ac_try="$ac_compile"
21232 case "(($ac_try" in
21233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21234 *) ac_try_echo=$ac_try;;
21235 esac
21236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21237 (eval "$ac_compile") 2>conftest.er1
21238 ac_status=$?
21239 grep -v '^ *+' conftest.er1 >conftest.err
21240 rm -f conftest.er1
21241 cat conftest.err >&5
21242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21243 (exit $ac_status); } && {
21244 test -z "$ac_c_werror_flag" ||
21245 test ! -s conftest.err
21246 } && test -s conftest.$ac_objext; then
21247 ac_header_compiler=yes
21248 else
21249 echo "$as_me: failed program was:" >&5
21250 sed 's/^/| /' conftest.$ac_ext >&5
21252 ac_header_compiler=no
21255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21256 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21257 echo "${ECHO_T}$ac_header_compiler" >&6; }
21259 # Is the header present?
21260 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21261 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21262 cat >conftest.$ac_ext <<_ACEOF
21263 /* confdefs.h. */
21264 _ACEOF
21265 cat confdefs.h >>conftest.$ac_ext
21266 cat >>conftest.$ac_ext <<_ACEOF
21267 /* end confdefs.h. */
21268 #include <$ac_header>
21269 _ACEOF
21270 if { (ac_try="$ac_cpp conftest.$ac_ext"
21271 case "(($ac_try" in
21272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21273 *) ac_try_echo=$ac_try;;
21274 esac
21275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21276 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21277 ac_status=$?
21278 grep -v '^ *+' conftest.er1 >conftest.err
21279 rm -f conftest.er1
21280 cat conftest.err >&5
21281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21282 (exit $ac_status); } >/dev/null && {
21283 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21284 test ! -s conftest.err
21285 }; then
21286 ac_header_preproc=yes
21287 else
21288 echo "$as_me: failed program was:" >&5
21289 sed 's/^/| /' conftest.$ac_ext >&5
21291 ac_header_preproc=no
21294 rm -f conftest.err conftest.$ac_ext
21295 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21296 echo "${ECHO_T}$ac_header_preproc" >&6; }
21298 # So? What about this header?
21299 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21300 yes:no: )
21301 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21302 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21304 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21305 ac_header_preproc=yes
21307 no:yes:* )
21308 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21309 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21310 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21311 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21312 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21313 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21314 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21315 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21317 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21318 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21319 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21322 esac
21323 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21326 echo $ECHO_N "(cached) $ECHO_C" >&6
21327 else
21328 eval "$as_ac_Header=\$ac_header_preproc"
21330 ac_res=`eval echo '${'$as_ac_Header'}'`
21331 { echo "$as_me:$LINENO: result: $ac_res" >&5
21332 echo "${ECHO_T}$ac_res" >&6; }
21335 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21336 cat >>confdefs.h <<_ACEOF
21337 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21338 _ACEOF
21342 done
21346 # Solaris requires -lintl if you want strerror (which calls dgettext)
21347 # to return localized messages.
21349 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21350 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
21351 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21352 echo $ECHO_N "(cached) $ECHO_C" >&6
21353 else
21354 ac_check_lib_save_LIBS=$LIBS
21355 LIBS="-lintl $LIBS"
21356 cat >conftest.$ac_ext <<_ACEOF
21357 /* confdefs.h. */
21358 _ACEOF
21359 cat confdefs.h >>conftest.$ac_ext
21360 cat >>conftest.$ac_ext <<_ACEOF
21361 /* end confdefs.h. */
21363 /* Override any GCC internal prototype to avoid an error.
21364 Use char because int might match the return type of a GCC
21365 builtin and then its argument prototype would still apply. */
21366 #ifdef __cplusplus
21367 extern "C"
21368 #endif
21369 char dgettext ();
21371 main ()
21373 return dgettext ();
21375 return 0;
21377 _ACEOF
21378 rm -f conftest.$ac_objext conftest$ac_exeext
21379 if { (ac_try="$ac_link"
21380 case "(($ac_try" in
21381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21382 *) ac_try_echo=$ac_try;;
21383 esac
21384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21385 (eval "$ac_link") 2>conftest.er1
21386 ac_status=$?
21387 grep -v '^ *+' conftest.er1 >conftest.err
21388 rm -f conftest.er1
21389 cat conftest.err >&5
21390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21391 (exit $ac_status); } && {
21392 test -z "$ac_c_werror_flag" ||
21393 test ! -s conftest.err
21394 } && test -s conftest$ac_exeext &&
21395 $as_test_x conftest$ac_exeext; then
21396 ac_cv_lib_intl_dgettext=yes
21397 else
21398 echo "$as_me: failed program was:" >&5
21399 sed 's/^/| /' conftest.$ac_ext >&5
21401 ac_cv_lib_intl_dgettext=no
21404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21405 conftest$ac_exeext conftest.$ac_ext
21406 LIBS=$ac_check_lib_save_LIBS
21408 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
21409 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21410 if test $ac_cv_lib_intl_dgettext = yes; then
21411 cat >>confdefs.h <<_ACEOF
21412 #define HAVE_LIBINTL 1
21413 _ACEOF
21415 LIBS="-lintl $LIBS"
21420 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
21421 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
21422 if test "${emacs_cv_localtime_cache+set}" = set; then
21423 echo $ECHO_N "(cached) $ECHO_C" >&6
21424 else
21425 if test x$ac_cv_func_tzset = xyes; then
21426 if test "$cross_compiling" = yes; then
21427 # If we have tzset, assume the worst when cross-compiling.
21428 emacs_cv_localtime_cache=yes
21429 else
21430 cat >conftest.$ac_ext <<_ACEOF
21431 /* confdefs.h. */
21432 _ACEOF
21433 cat confdefs.h >>conftest.$ac_ext
21434 cat >>conftest.$ac_ext <<_ACEOF
21435 /* end confdefs.h. */
21436 #include <time.h>
21437 extern char **environ;
21438 unset_TZ ()
21440 char **from, **to;
21441 for (to = from = environ; (*to = *from); from++)
21442 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21443 to++;
21445 char TZ_GMT0[] = "TZ=GMT0";
21446 char TZ_PST8[] = "TZ=PST8";
21447 main()
21449 time_t now = time ((time_t *) 0);
21450 int hour_GMT0, hour_unset;
21451 if (putenv (TZ_GMT0) != 0)
21452 exit (1);
21453 hour_GMT0 = localtime (&now)->tm_hour;
21454 unset_TZ ();
21455 hour_unset = localtime (&now)->tm_hour;
21456 if (putenv (TZ_PST8) != 0)
21457 exit (1);
21458 if (localtime (&now)->tm_hour == hour_GMT0)
21459 exit (1);
21460 unset_TZ ();
21461 if (localtime (&now)->tm_hour != hour_unset)
21462 exit (1);
21463 exit (0);
21465 _ACEOF
21466 rm -f conftest$ac_exeext
21467 if { (ac_try="$ac_link"
21468 case "(($ac_try" in
21469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21470 *) ac_try_echo=$ac_try;;
21471 esac
21472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21473 (eval "$ac_link") 2>&5
21474 ac_status=$?
21475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21476 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21477 { (case "(($ac_try" in
21478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21479 *) ac_try_echo=$ac_try;;
21480 esac
21481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21482 (eval "$ac_try") 2>&5
21483 ac_status=$?
21484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21485 (exit $ac_status); }; }; then
21486 emacs_cv_localtime_cache=no
21487 else
21488 echo "$as_me: program exited with status $ac_status" >&5
21489 echo "$as_me: failed program was:" >&5
21490 sed 's/^/| /' conftest.$ac_ext >&5
21492 ( exit $ac_status )
21493 emacs_cv_localtime_cache=yes
21495 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21499 else
21500 # If we lack tzset, report that localtime does not cache TZ,
21501 # since we can't invalidate the cache if we don't have tzset.
21502 emacs_cv_localtime_cache=no
21505 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
21506 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21507 if test $emacs_cv_localtime_cache = yes; then
21509 cat >>confdefs.h <<\_ACEOF
21510 #define LOCALTIME_CACHE 1
21511 _ACEOF
21515 if test "x$HAVE_TIMEVAL" = xyes; then
21517 for ac_func in gettimeofday
21519 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21520 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21521 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21522 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21523 echo $ECHO_N "(cached) $ECHO_C" >&6
21524 else
21525 cat >conftest.$ac_ext <<_ACEOF
21526 /* confdefs.h. */
21527 _ACEOF
21528 cat confdefs.h >>conftest.$ac_ext
21529 cat >>conftest.$ac_ext <<_ACEOF
21530 /* end confdefs.h. */
21531 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21532 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21533 #define $ac_func innocuous_$ac_func
21535 /* System header to define __stub macros and hopefully few prototypes,
21536 which can conflict with char $ac_func (); below.
21537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21538 <limits.h> exists even on freestanding compilers. */
21540 #ifdef __STDC__
21541 # include <limits.h>
21542 #else
21543 # include <assert.h>
21544 #endif
21546 #undef $ac_func
21548 /* Override any GCC internal prototype to avoid an error.
21549 Use char because int might match the return type of a GCC
21550 builtin and then its argument prototype would still apply. */
21551 #ifdef __cplusplus
21552 extern "C"
21553 #endif
21554 char $ac_func ();
21555 /* The GNU C library defines this for functions which it implements
21556 to always fail with ENOSYS. Some functions are actually named
21557 something starting with __ and the normal name is an alias. */
21558 #if defined __stub_$ac_func || defined __stub___$ac_func
21559 choke me
21560 #endif
21563 main ()
21565 return $ac_func ();
21567 return 0;
21569 _ACEOF
21570 rm -f conftest.$ac_objext conftest$ac_exeext
21571 if { (ac_try="$ac_link"
21572 case "(($ac_try" in
21573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21574 *) ac_try_echo=$ac_try;;
21575 esac
21576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21577 (eval "$ac_link") 2>conftest.er1
21578 ac_status=$?
21579 grep -v '^ *+' conftest.er1 >conftest.err
21580 rm -f conftest.er1
21581 cat conftest.err >&5
21582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21583 (exit $ac_status); } && {
21584 test -z "$ac_c_werror_flag" ||
21585 test ! -s conftest.err
21586 } && test -s conftest$ac_exeext &&
21587 $as_test_x conftest$ac_exeext; then
21588 eval "$as_ac_var=yes"
21589 else
21590 echo "$as_me: failed program was:" >&5
21591 sed 's/^/| /' conftest.$ac_ext >&5
21593 eval "$as_ac_var=no"
21596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21597 conftest$ac_exeext conftest.$ac_ext
21599 ac_res=`eval echo '${'$as_ac_var'}'`
21600 { echo "$as_me:$LINENO: result: $ac_res" >&5
21601 echo "${ECHO_T}$ac_res" >&6; }
21602 if test `eval echo '${'$as_ac_var'}'` = yes; then
21603 cat >>confdefs.h <<_ACEOF
21604 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21605 _ACEOF
21608 done
21610 if test $ac_cv_func_gettimeofday = yes; then
21611 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
21612 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
21613 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21614 echo $ECHO_N "(cached) $ECHO_C" >&6
21615 else
21616 cat >conftest.$ac_ext <<_ACEOF
21617 /* confdefs.h. */
21618 _ACEOF
21619 cat confdefs.h >>conftest.$ac_ext
21620 cat >>conftest.$ac_ext <<_ACEOF
21621 /* end confdefs.h. */
21623 #ifdef TIME_WITH_SYS_TIME
21624 #include <sys/time.h>
21625 #include <time.h>
21626 #else
21627 #ifdef HAVE_SYS_TIME_H
21628 #include <sys/time.h>
21629 #else
21630 #include <time.h>
21631 #endif
21632 #endif
21634 main ()
21636 struct timeval time;
21637 gettimeofday (&time, 0);
21639 return 0;
21641 _ACEOF
21642 rm -f conftest.$ac_objext
21643 if { (ac_try="$ac_compile"
21644 case "(($ac_try" in
21645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21646 *) ac_try_echo=$ac_try;;
21647 esac
21648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21649 (eval "$ac_compile") 2>conftest.er1
21650 ac_status=$?
21651 grep -v '^ *+' conftest.er1 >conftest.err
21652 rm -f conftest.er1
21653 cat conftest.err >&5
21654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21655 (exit $ac_status); } && {
21656 test -z "$ac_c_werror_flag" ||
21657 test ! -s conftest.err
21658 } && test -s conftest.$ac_objext; then
21659 emacs_cv_gettimeofday_two_arguments=yes
21660 else
21661 echo "$as_me: failed program was:" >&5
21662 sed 's/^/| /' conftest.$ac_ext >&5
21664 emacs_cv_gettimeofday_two_arguments=no
21667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21669 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
21670 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
21671 if test $emacs_cv_gettimeofday_two_arguments = no; then
21673 cat >>confdefs.h <<\_ACEOF
21674 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21675 _ACEOF
21681 ok_so_far=yes
21682 { echo "$as_me:$LINENO: checking for socket" >&5
21683 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
21684 if test "${ac_cv_func_socket+set}" = set; then
21685 echo $ECHO_N "(cached) $ECHO_C" >&6
21686 else
21687 cat >conftest.$ac_ext <<_ACEOF
21688 /* confdefs.h. */
21689 _ACEOF
21690 cat confdefs.h >>conftest.$ac_ext
21691 cat >>conftest.$ac_ext <<_ACEOF
21692 /* end confdefs.h. */
21693 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21695 #define socket innocuous_socket
21697 /* System header to define __stub macros and hopefully few prototypes,
21698 which can conflict with char socket (); below.
21699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21700 <limits.h> exists even on freestanding compilers. */
21702 #ifdef __STDC__
21703 # include <limits.h>
21704 #else
21705 # include <assert.h>
21706 #endif
21708 #undef socket
21710 /* Override any GCC internal prototype to avoid an error.
21711 Use char because int might match the return type of a GCC
21712 builtin and then its argument prototype would still apply. */
21713 #ifdef __cplusplus
21714 extern "C"
21715 #endif
21716 char socket ();
21717 /* The GNU C library defines this for functions which it implements
21718 to always fail with ENOSYS. Some functions are actually named
21719 something starting with __ and the normal name is an alias. */
21720 #if defined __stub_socket || defined __stub___socket
21721 choke me
21722 #endif
21725 main ()
21727 return socket ();
21729 return 0;
21731 _ACEOF
21732 rm -f conftest.$ac_objext conftest$ac_exeext
21733 if { (ac_try="$ac_link"
21734 case "(($ac_try" in
21735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21736 *) ac_try_echo=$ac_try;;
21737 esac
21738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21739 (eval "$ac_link") 2>conftest.er1
21740 ac_status=$?
21741 grep -v '^ *+' conftest.er1 >conftest.err
21742 rm -f conftest.er1
21743 cat conftest.err >&5
21744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21745 (exit $ac_status); } && {
21746 test -z "$ac_c_werror_flag" ||
21747 test ! -s conftest.err
21748 } && test -s conftest$ac_exeext &&
21749 $as_test_x conftest$ac_exeext; then
21750 ac_cv_func_socket=yes
21751 else
21752 echo "$as_me: failed program was:" >&5
21753 sed 's/^/| /' conftest.$ac_ext >&5
21755 ac_cv_func_socket=no
21758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21759 conftest$ac_exeext conftest.$ac_ext
21761 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21762 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21763 if test $ac_cv_func_socket = yes; then
21765 else
21766 ok_so_far=no
21769 if test $ok_so_far = yes; then
21770 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21771 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21772 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
21773 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21774 echo $ECHO_N "(cached) $ECHO_C" >&6
21776 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21777 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21778 else
21779 # Is the header compilable?
21780 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21781 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
21782 cat >conftest.$ac_ext <<_ACEOF
21783 /* confdefs.h. */
21784 _ACEOF
21785 cat confdefs.h >>conftest.$ac_ext
21786 cat >>conftest.$ac_ext <<_ACEOF
21787 /* end confdefs.h. */
21788 $ac_includes_default
21789 #include <netinet/in.h>
21790 _ACEOF
21791 rm -f conftest.$ac_objext
21792 if { (ac_try="$ac_compile"
21793 case "(($ac_try" in
21794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21795 *) ac_try_echo=$ac_try;;
21796 esac
21797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21798 (eval "$ac_compile") 2>conftest.er1
21799 ac_status=$?
21800 grep -v '^ *+' conftest.er1 >conftest.err
21801 rm -f conftest.er1
21802 cat conftest.err >&5
21803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21804 (exit $ac_status); } && {
21805 test -z "$ac_c_werror_flag" ||
21806 test ! -s conftest.err
21807 } && test -s conftest.$ac_objext; then
21808 ac_header_compiler=yes
21809 else
21810 echo "$as_me: failed program was:" >&5
21811 sed 's/^/| /' conftest.$ac_ext >&5
21813 ac_header_compiler=no
21816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21817 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21818 echo "${ECHO_T}$ac_header_compiler" >&6; }
21820 # Is the header present?
21821 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21822 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
21823 cat >conftest.$ac_ext <<_ACEOF
21824 /* confdefs.h. */
21825 _ACEOF
21826 cat confdefs.h >>conftest.$ac_ext
21827 cat >>conftest.$ac_ext <<_ACEOF
21828 /* end confdefs.h. */
21829 #include <netinet/in.h>
21830 _ACEOF
21831 if { (ac_try="$ac_cpp conftest.$ac_ext"
21832 case "(($ac_try" in
21833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21834 *) ac_try_echo=$ac_try;;
21835 esac
21836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21837 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21838 ac_status=$?
21839 grep -v '^ *+' conftest.er1 >conftest.err
21840 rm -f conftest.er1
21841 cat conftest.err >&5
21842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843 (exit $ac_status); } >/dev/null && {
21844 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21845 test ! -s conftest.err
21846 }; then
21847 ac_header_preproc=yes
21848 else
21849 echo "$as_me: failed program was:" >&5
21850 sed 's/^/| /' conftest.$ac_ext >&5
21852 ac_header_preproc=no
21855 rm -f conftest.err conftest.$ac_ext
21856 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21857 echo "${ECHO_T}$ac_header_preproc" >&6; }
21859 # So? What about this header?
21860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21861 yes:no: )
21862 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21863 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21864 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21865 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21866 ac_header_preproc=yes
21868 no:yes:* )
21869 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21870 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21871 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21872 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21873 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21874 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21875 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21876 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21877 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21878 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21879 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21880 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21883 esac
21884 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21885 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
21886 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21887 echo $ECHO_N "(cached) $ECHO_C" >&6
21888 else
21889 ac_cv_header_netinet_in_h=$ac_header_preproc
21891 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21892 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21895 if test $ac_cv_header_netinet_in_h = yes; then
21897 else
21898 ok_so_far=no
21903 if test $ok_so_far = yes; then
21904 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21905 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21906 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
21907 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21908 echo $ECHO_N "(cached) $ECHO_C" >&6
21910 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21911 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21912 else
21913 # Is the header compilable?
21914 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21915 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
21916 cat >conftest.$ac_ext <<_ACEOF
21917 /* confdefs.h. */
21918 _ACEOF
21919 cat confdefs.h >>conftest.$ac_ext
21920 cat >>conftest.$ac_ext <<_ACEOF
21921 /* end confdefs.h. */
21922 $ac_includes_default
21923 #include <arpa/inet.h>
21924 _ACEOF
21925 rm -f conftest.$ac_objext
21926 if { (ac_try="$ac_compile"
21927 case "(($ac_try" in
21928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21929 *) ac_try_echo=$ac_try;;
21930 esac
21931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21932 (eval "$ac_compile") 2>conftest.er1
21933 ac_status=$?
21934 grep -v '^ *+' conftest.er1 >conftest.err
21935 rm -f conftest.er1
21936 cat conftest.err >&5
21937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21938 (exit $ac_status); } && {
21939 test -z "$ac_c_werror_flag" ||
21940 test ! -s conftest.err
21941 } && test -s conftest.$ac_objext; then
21942 ac_header_compiler=yes
21943 else
21944 echo "$as_me: failed program was:" >&5
21945 sed 's/^/| /' conftest.$ac_ext >&5
21947 ac_header_compiler=no
21950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21951 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21952 echo "${ECHO_T}$ac_header_compiler" >&6; }
21954 # Is the header present?
21955 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21956 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
21957 cat >conftest.$ac_ext <<_ACEOF
21958 /* confdefs.h. */
21959 _ACEOF
21960 cat confdefs.h >>conftest.$ac_ext
21961 cat >>conftest.$ac_ext <<_ACEOF
21962 /* end confdefs.h. */
21963 #include <arpa/inet.h>
21964 _ACEOF
21965 if { (ac_try="$ac_cpp conftest.$ac_ext"
21966 case "(($ac_try" in
21967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21968 *) ac_try_echo=$ac_try;;
21969 esac
21970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21971 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21972 ac_status=$?
21973 grep -v '^ *+' conftest.er1 >conftest.err
21974 rm -f conftest.er1
21975 cat conftest.err >&5
21976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21977 (exit $ac_status); } >/dev/null && {
21978 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21979 test ! -s conftest.err
21980 }; then
21981 ac_header_preproc=yes
21982 else
21983 echo "$as_me: failed program was:" >&5
21984 sed 's/^/| /' conftest.$ac_ext >&5
21986 ac_header_preproc=no
21989 rm -f conftest.err conftest.$ac_ext
21990 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21991 echo "${ECHO_T}$ac_header_preproc" >&6; }
21993 # So? What about this header?
21994 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21995 yes:no: )
21996 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21997 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21998 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21999 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
22000 ac_header_preproc=yes
22002 no:yes:* )
22003 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
22004 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
22005 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
22006 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
22007 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
22008 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
22009 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
22010 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
22011 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
22012 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
22013 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
22014 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
22017 esac
22018 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22019 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22020 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22021 echo $ECHO_N "(cached) $ECHO_C" >&6
22022 else
22023 ac_cv_header_arpa_inet_h=$ac_header_preproc
22025 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22026 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22029 if test $ac_cv_header_arpa_inet_h = yes; then
22031 else
22032 ok_so_far=no
22037 if test $ok_so_far = yes; then
22039 cat >>confdefs.h <<\_ACEOF
22040 #define HAVE_INET_SOCKETS 1
22041 _ACEOF
22046 for ac_header in sys/ioctl.h
22048 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22050 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22053 echo $ECHO_N "(cached) $ECHO_C" >&6
22055 ac_res=`eval echo '${'$as_ac_Header'}'`
22056 { echo "$as_me:$LINENO: result: $ac_res" >&5
22057 echo "${ECHO_T}$ac_res" >&6; }
22058 else
22059 # Is the header compilable?
22060 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22061 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22062 cat >conftest.$ac_ext <<_ACEOF
22063 /* confdefs.h. */
22064 _ACEOF
22065 cat confdefs.h >>conftest.$ac_ext
22066 cat >>conftest.$ac_ext <<_ACEOF
22067 /* end confdefs.h. */
22068 $ac_includes_default
22069 #include <$ac_header>
22070 _ACEOF
22071 rm -f conftest.$ac_objext
22072 if { (ac_try="$ac_compile"
22073 case "(($ac_try" in
22074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22075 *) ac_try_echo=$ac_try;;
22076 esac
22077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22078 (eval "$ac_compile") 2>conftest.er1
22079 ac_status=$?
22080 grep -v '^ *+' conftest.er1 >conftest.err
22081 rm -f conftest.er1
22082 cat conftest.err >&5
22083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22084 (exit $ac_status); } && {
22085 test -z "$ac_c_werror_flag" ||
22086 test ! -s conftest.err
22087 } && test -s conftest.$ac_objext; then
22088 ac_header_compiler=yes
22089 else
22090 echo "$as_me: failed program was:" >&5
22091 sed 's/^/| /' conftest.$ac_ext >&5
22093 ac_header_compiler=no
22096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22097 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22098 echo "${ECHO_T}$ac_header_compiler" >&6; }
22100 # Is the header present?
22101 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22102 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22103 cat >conftest.$ac_ext <<_ACEOF
22104 /* confdefs.h. */
22105 _ACEOF
22106 cat confdefs.h >>conftest.$ac_ext
22107 cat >>conftest.$ac_ext <<_ACEOF
22108 /* end confdefs.h. */
22109 #include <$ac_header>
22110 _ACEOF
22111 if { (ac_try="$ac_cpp conftest.$ac_ext"
22112 case "(($ac_try" in
22113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22114 *) ac_try_echo=$ac_try;;
22115 esac
22116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22117 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22118 ac_status=$?
22119 grep -v '^ *+' conftest.er1 >conftest.err
22120 rm -f conftest.er1
22121 cat conftest.err >&5
22122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22123 (exit $ac_status); } >/dev/null && {
22124 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22125 test ! -s conftest.err
22126 }; then
22127 ac_header_preproc=yes
22128 else
22129 echo "$as_me: failed program was:" >&5
22130 sed 's/^/| /' conftest.$ac_ext >&5
22132 ac_header_preproc=no
22135 rm -f conftest.err conftest.$ac_ext
22136 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22137 echo "${ECHO_T}$ac_header_preproc" >&6; }
22139 # So? What about this header?
22140 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22141 yes:no: )
22142 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22143 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22145 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22146 ac_header_preproc=yes
22148 no:yes:* )
22149 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22150 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22151 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22152 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22153 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22154 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22155 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22156 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22158 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22159 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22160 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22163 esac
22164 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22166 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22167 echo $ECHO_N "(cached) $ECHO_C" >&6
22168 else
22169 eval "$as_ac_Header=\$ac_header_preproc"
22171 ac_res=`eval echo '${'$as_ac_Header'}'`
22172 { echo "$as_me:$LINENO: result: $ac_res" >&5
22173 echo "${ECHO_T}$ac_res" >&6; }
22176 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22177 cat >>confdefs.h <<_ACEOF
22178 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22179 _ACEOF
22183 done
22186 if test -f /usr/lpp/X11/bin/smt.exp; then
22188 cat >>confdefs.h <<\_ACEOF
22189 #define HAVE_AIX_SMT_EXP 1
22190 _ACEOF
22194 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
22195 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
22196 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22197 { echo "$as_me:$LINENO: result: yes" >&5
22198 echo "${ECHO_T}yes" >&6; }
22200 cat >>confdefs.h <<\_ACEOF
22201 #define HAVE_DEV_PTMX 1
22202 _ACEOF
22204 else
22205 { echo "$as_me:$LINENO: result: no" >&5
22206 echo "${ECHO_T}no" >&6; }
22209 { echo "$as_me:$LINENO: checking for pid_t" >&5
22210 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22211 if test "${ac_cv_type_pid_t+set}" = set; then
22212 echo $ECHO_N "(cached) $ECHO_C" >&6
22213 else
22214 cat >conftest.$ac_ext <<_ACEOF
22215 /* confdefs.h. */
22216 _ACEOF
22217 cat confdefs.h >>conftest.$ac_ext
22218 cat >>conftest.$ac_ext <<_ACEOF
22219 /* end confdefs.h. */
22220 $ac_includes_default
22221 typedef pid_t ac__type_new_;
22223 main ()
22225 if ((ac__type_new_ *) 0)
22226 return 0;
22227 if (sizeof (ac__type_new_))
22228 return 0;
22230 return 0;
22232 _ACEOF
22233 rm -f conftest.$ac_objext
22234 if { (ac_try="$ac_compile"
22235 case "(($ac_try" in
22236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22237 *) ac_try_echo=$ac_try;;
22238 esac
22239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22240 (eval "$ac_compile") 2>conftest.er1
22241 ac_status=$?
22242 grep -v '^ *+' conftest.er1 >conftest.err
22243 rm -f conftest.er1
22244 cat conftest.err >&5
22245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22246 (exit $ac_status); } && {
22247 test -z "$ac_c_werror_flag" ||
22248 test ! -s conftest.err
22249 } && test -s conftest.$ac_objext; then
22250 ac_cv_type_pid_t=yes
22251 else
22252 echo "$as_me: failed program was:" >&5
22253 sed 's/^/| /' conftest.$ac_ext >&5
22255 ac_cv_type_pid_t=no
22258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22260 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22261 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22262 if test $ac_cv_type_pid_t = yes; then
22264 else
22266 cat >>confdefs.h <<_ACEOF
22267 #define pid_t int
22268 _ACEOF
22273 for ac_header in vfork.h
22275 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22277 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22280 echo $ECHO_N "(cached) $ECHO_C" >&6
22282 ac_res=`eval echo '${'$as_ac_Header'}'`
22283 { echo "$as_me:$LINENO: result: $ac_res" >&5
22284 echo "${ECHO_T}$ac_res" >&6; }
22285 else
22286 # Is the header compilable?
22287 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22288 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22289 cat >conftest.$ac_ext <<_ACEOF
22290 /* confdefs.h. */
22291 _ACEOF
22292 cat confdefs.h >>conftest.$ac_ext
22293 cat >>conftest.$ac_ext <<_ACEOF
22294 /* end confdefs.h. */
22295 $ac_includes_default
22296 #include <$ac_header>
22297 _ACEOF
22298 rm -f conftest.$ac_objext
22299 if { (ac_try="$ac_compile"
22300 case "(($ac_try" in
22301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22302 *) ac_try_echo=$ac_try;;
22303 esac
22304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22305 (eval "$ac_compile") 2>conftest.er1
22306 ac_status=$?
22307 grep -v '^ *+' conftest.er1 >conftest.err
22308 rm -f conftest.er1
22309 cat conftest.err >&5
22310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311 (exit $ac_status); } && {
22312 test -z "$ac_c_werror_flag" ||
22313 test ! -s conftest.err
22314 } && test -s conftest.$ac_objext; then
22315 ac_header_compiler=yes
22316 else
22317 echo "$as_me: failed program was:" >&5
22318 sed 's/^/| /' conftest.$ac_ext >&5
22320 ac_header_compiler=no
22323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22324 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22325 echo "${ECHO_T}$ac_header_compiler" >&6; }
22327 # Is the header present?
22328 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22329 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22330 cat >conftest.$ac_ext <<_ACEOF
22331 /* confdefs.h. */
22332 _ACEOF
22333 cat confdefs.h >>conftest.$ac_ext
22334 cat >>conftest.$ac_ext <<_ACEOF
22335 /* end confdefs.h. */
22336 #include <$ac_header>
22337 _ACEOF
22338 if { (ac_try="$ac_cpp conftest.$ac_ext"
22339 case "(($ac_try" in
22340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22341 *) ac_try_echo=$ac_try;;
22342 esac
22343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22344 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22345 ac_status=$?
22346 grep -v '^ *+' conftest.er1 >conftest.err
22347 rm -f conftest.er1
22348 cat conftest.err >&5
22349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22350 (exit $ac_status); } >/dev/null && {
22351 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22352 test ! -s conftest.err
22353 }; then
22354 ac_header_preproc=yes
22355 else
22356 echo "$as_me: failed program was:" >&5
22357 sed 's/^/| /' conftest.$ac_ext >&5
22359 ac_header_preproc=no
22362 rm -f conftest.err conftest.$ac_ext
22363 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22364 echo "${ECHO_T}$ac_header_preproc" >&6; }
22366 # So? What about this header?
22367 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22368 yes:no: )
22369 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22370 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22372 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22373 ac_header_preproc=yes
22375 no:yes:* )
22376 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22377 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22378 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22379 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22380 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22381 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22382 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22383 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22384 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22385 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22386 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22387 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22390 esac
22391 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22393 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22394 echo $ECHO_N "(cached) $ECHO_C" >&6
22395 else
22396 eval "$as_ac_Header=\$ac_header_preproc"
22398 ac_res=`eval echo '${'$as_ac_Header'}'`
22399 { echo "$as_me:$LINENO: result: $ac_res" >&5
22400 echo "${ECHO_T}$ac_res" >&6; }
22403 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22404 cat >>confdefs.h <<_ACEOF
22405 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22406 _ACEOF
22410 done
22414 for ac_func in fork vfork
22416 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22417 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22418 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22419 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22420 echo $ECHO_N "(cached) $ECHO_C" >&6
22421 else
22422 cat >conftest.$ac_ext <<_ACEOF
22423 /* confdefs.h. */
22424 _ACEOF
22425 cat confdefs.h >>conftest.$ac_ext
22426 cat >>conftest.$ac_ext <<_ACEOF
22427 /* end confdefs.h. */
22428 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22429 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22430 #define $ac_func innocuous_$ac_func
22432 /* System header to define __stub macros and hopefully few prototypes,
22433 which can conflict with char $ac_func (); below.
22434 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22435 <limits.h> exists even on freestanding compilers. */
22437 #ifdef __STDC__
22438 # include <limits.h>
22439 #else
22440 # include <assert.h>
22441 #endif
22443 #undef $ac_func
22445 /* Override any GCC internal prototype to avoid an error.
22446 Use char because int might match the return type of a GCC
22447 builtin and then its argument prototype would still apply. */
22448 #ifdef __cplusplus
22449 extern "C"
22450 #endif
22451 char $ac_func ();
22452 /* The GNU C library defines this for functions which it implements
22453 to always fail with ENOSYS. Some functions are actually named
22454 something starting with __ and the normal name is an alias. */
22455 #if defined __stub_$ac_func || defined __stub___$ac_func
22456 choke me
22457 #endif
22460 main ()
22462 return $ac_func ();
22464 return 0;
22466 _ACEOF
22467 rm -f conftest.$ac_objext conftest$ac_exeext
22468 if { (ac_try="$ac_link"
22469 case "(($ac_try" in
22470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22471 *) ac_try_echo=$ac_try;;
22472 esac
22473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22474 (eval "$ac_link") 2>conftest.er1
22475 ac_status=$?
22476 grep -v '^ *+' conftest.er1 >conftest.err
22477 rm -f conftest.er1
22478 cat conftest.err >&5
22479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22480 (exit $ac_status); } && {
22481 test -z "$ac_c_werror_flag" ||
22482 test ! -s conftest.err
22483 } && test -s conftest$ac_exeext &&
22484 $as_test_x conftest$ac_exeext; then
22485 eval "$as_ac_var=yes"
22486 else
22487 echo "$as_me: failed program was:" >&5
22488 sed 's/^/| /' conftest.$ac_ext >&5
22490 eval "$as_ac_var=no"
22493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22494 conftest$ac_exeext conftest.$ac_ext
22496 ac_res=`eval echo '${'$as_ac_var'}'`
22497 { echo "$as_me:$LINENO: result: $ac_res" >&5
22498 echo "${ECHO_T}$ac_res" >&6; }
22499 if test `eval echo '${'$as_ac_var'}'` = yes; then
22500 cat >>confdefs.h <<_ACEOF
22501 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22502 _ACEOF
22505 done
22507 if test "x$ac_cv_func_fork" = xyes; then
22508 { echo "$as_me:$LINENO: checking for working fork" >&5
22509 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
22510 if test "${ac_cv_func_fork_works+set}" = set; then
22511 echo $ECHO_N "(cached) $ECHO_C" >&6
22512 else
22513 if test "$cross_compiling" = yes; then
22514 ac_cv_func_fork_works=cross
22515 else
22516 cat >conftest.$ac_ext <<_ACEOF
22517 /* confdefs.h. */
22518 _ACEOF
22519 cat confdefs.h >>conftest.$ac_ext
22520 cat >>conftest.$ac_ext <<_ACEOF
22521 /* end confdefs.h. */
22522 $ac_includes_default
22524 main ()
22527 /* By Ruediger Kuhlmann. */
22528 return fork () < 0;
22531 return 0;
22533 _ACEOF
22534 rm -f conftest$ac_exeext
22535 if { (ac_try="$ac_link"
22536 case "(($ac_try" in
22537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22538 *) ac_try_echo=$ac_try;;
22539 esac
22540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22541 (eval "$ac_link") 2>&5
22542 ac_status=$?
22543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22544 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22545 { (case "(($ac_try" in
22546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22547 *) ac_try_echo=$ac_try;;
22548 esac
22549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22550 (eval "$ac_try") 2>&5
22551 ac_status=$?
22552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22553 (exit $ac_status); }; }; then
22554 ac_cv_func_fork_works=yes
22555 else
22556 echo "$as_me: program exited with status $ac_status" >&5
22557 echo "$as_me: failed program was:" >&5
22558 sed 's/^/| /' conftest.$ac_ext >&5
22560 ( exit $ac_status )
22561 ac_cv_func_fork_works=no
22563 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22568 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22569 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22571 else
22572 ac_cv_func_fork_works=$ac_cv_func_fork
22574 if test "x$ac_cv_func_fork_works" = xcross; then
22575 case $host in
22576 *-*-amigaos* | *-*-msdosdjgpp*)
22577 # Override, as these systems have only a dummy fork() stub
22578 ac_cv_func_fork_works=no
22581 ac_cv_func_fork_works=yes
22583 esac
22584 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22585 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22587 ac_cv_func_vfork_works=$ac_cv_func_vfork
22588 if test "x$ac_cv_func_vfork" = xyes; then
22589 { echo "$as_me:$LINENO: checking for working vfork" >&5
22590 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
22591 if test "${ac_cv_func_vfork_works+set}" = set; then
22592 echo $ECHO_N "(cached) $ECHO_C" >&6
22593 else
22594 if test "$cross_compiling" = yes; then
22595 ac_cv_func_vfork_works=cross
22596 else
22597 cat >conftest.$ac_ext <<_ACEOF
22598 /* confdefs.h. */
22599 _ACEOF
22600 cat confdefs.h >>conftest.$ac_ext
22601 cat >>conftest.$ac_ext <<_ACEOF
22602 /* end confdefs.h. */
22603 /* Thanks to Paul Eggert for this test. */
22604 $ac_includes_default
22605 #include <sys/wait.h>
22606 #ifdef HAVE_VFORK_H
22607 # include <vfork.h>
22608 #endif
22609 /* On some sparc systems, changes by the child to local and incoming
22610 argument registers are propagated back to the parent. The compiler
22611 is told about this with #include <vfork.h>, but some compilers
22612 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22613 static variable whose address is put into a register that is
22614 clobbered by the vfork. */
22615 static void
22616 #ifdef __cplusplus
22617 sparc_address_test (int arg)
22618 # else
22619 sparc_address_test (arg) int arg;
22620 #endif
22622 static pid_t child;
22623 if (!child) {
22624 child = vfork ();
22625 if (child < 0) {
22626 perror ("vfork");
22627 _exit(2);
22629 if (!child) {
22630 arg = getpid();
22631 write(-1, "", 0);
22632 _exit (arg);
22638 main ()
22640 pid_t parent = getpid ();
22641 pid_t child;
22643 sparc_address_test (0);
22645 child = vfork ();
22647 if (child == 0) {
22648 /* Here is another test for sparc vfork register problems. This
22649 test uses lots of local variables, at least as many local
22650 variables as main has allocated so far including compiler
22651 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22652 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22653 reuse the register of parent for one of the local variables,
22654 since it will think that parent can't possibly be used any more
22655 in this routine. Assigning to the local variable will thus
22656 munge parent in the parent process. */
22657 pid_t
22658 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22659 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22660 /* Convince the compiler that p..p7 are live; otherwise, it might
22661 use the same hardware register for all 8 local variables. */
22662 if (p != p1 || p != p2 || p != p3 || p != p4
22663 || p != p5 || p != p6 || p != p7)
22664 _exit(1);
22666 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22667 from child file descriptors. If the child closes a descriptor
22668 before it execs or exits, this munges the parent's descriptor
22669 as well. Test for this by closing stdout in the child. */
22670 _exit(close(fileno(stdout)) != 0);
22671 } else {
22672 int status;
22673 struct stat st;
22675 while (wait(&status) != child)
22677 return (
22678 /* Was there some problem with vforking? */
22679 child < 0
22681 /* Did the child fail? (This shouldn't happen.) */
22682 || status
22684 /* Did the vfork/compiler bug occur? */
22685 || parent != getpid()
22687 /* Did the file descriptor bug occur? */
22688 || fstat(fileno(stdout), &st) != 0
22692 _ACEOF
22693 rm -f conftest$ac_exeext
22694 if { (ac_try="$ac_link"
22695 case "(($ac_try" in
22696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22697 *) ac_try_echo=$ac_try;;
22698 esac
22699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22700 (eval "$ac_link") 2>&5
22701 ac_status=$?
22702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22703 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22704 { (case "(($ac_try" in
22705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22706 *) ac_try_echo=$ac_try;;
22707 esac
22708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22709 (eval "$ac_try") 2>&5
22710 ac_status=$?
22711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22712 (exit $ac_status); }; }; then
22713 ac_cv_func_vfork_works=yes
22714 else
22715 echo "$as_me: program exited with status $ac_status" >&5
22716 echo "$as_me: failed program was:" >&5
22717 sed 's/^/| /' conftest.$ac_ext >&5
22719 ( exit $ac_status )
22720 ac_cv_func_vfork_works=no
22722 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22727 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22728 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22731 if test "x$ac_cv_func_fork_works" = xcross; then
22732 ac_cv_func_vfork_works=$ac_cv_func_vfork
22733 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22734 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22737 if test "x$ac_cv_func_vfork_works" = xyes; then
22739 cat >>confdefs.h <<\_ACEOF
22740 #define HAVE_WORKING_VFORK 1
22741 _ACEOF
22743 else
22745 cat >>confdefs.h <<\_ACEOF
22746 #define vfork fork
22747 _ACEOF
22750 if test "x$ac_cv_func_fork_works" = xyes; then
22752 cat >>confdefs.h <<\_ACEOF
22753 #define HAVE_WORKING_FORK 1
22754 _ACEOF
22759 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22760 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22761 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22762 echo $ECHO_N "(cached) $ECHO_C" >&6
22763 else
22764 cat >conftest.$ac_ext <<_ACEOF
22765 /* confdefs.h. */
22766 _ACEOF
22767 cat confdefs.h >>conftest.$ac_ext
22768 cat >>conftest.$ac_ext <<_ACEOF
22769 /* end confdefs.h. */
22770 #include <langinfo.h>
22772 main ()
22774 char* cs = nl_langinfo(CODESET);
22776 return 0;
22778 _ACEOF
22779 rm -f conftest.$ac_objext conftest$ac_exeext
22780 if { (ac_try="$ac_link"
22781 case "(($ac_try" in
22782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22783 *) ac_try_echo=$ac_try;;
22784 esac
22785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22786 (eval "$ac_link") 2>conftest.er1
22787 ac_status=$?
22788 grep -v '^ *+' conftest.er1 >conftest.err
22789 rm -f conftest.er1
22790 cat conftest.err >&5
22791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22792 (exit $ac_status); } && {
22793 test -z "$ac_c_werror_flag" ||
22794 test ! -s conftest.err
22795 } && test -s conftest$ac_exeext &&
22796 $as_test_x conftest$ac_exeext; then
22797 emacs_cv_langinfo_codeset=yes
22798 else
22799 echo "$as_me: failed program was:" >&5
22800 sed 's/^/| /' conftest.$ac_ext >&5
22802 emacs_cv_langinfo_codeset=no
22805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22806 conftest$ac_exeext conftest.$ac_ext
22809 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22810 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
22811 if test $emacs_cv_langinfo_codeset = yes; then
22813 cat >>confdefs.h <<\_ACEOF
22814 #define HAVE_LANGINFO_CODESET 1
22815 _ACEOF
22819 { echo "$as_me:$LINENO: checking for size_t" >&5
22820 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22821 if test "${ac_cv_type_size_t+set}" = set; then
22822 echo $ECHO_N "(cached) $ECHO_C" >&6
22823 else
22824 cat >conftest.$ac_ext <<_ACEOF
22825 /* confdefs.h. */
22826 _ACEOF
22827 cat confdefs.h >>conftest.$ac_ext
22828 cat >>conftest.$ac_ext <<_ACEOF
22829 /* end confdefs.h. */
22830 $ac_includes_default
22831 typedef size_t ac__type_new_;
22833 main ()
22835 if ((ac__type_new_ *) 0)
22836 return 0;
22837 if (sizeof (ac__type_new_))
22838 return 0;
22840 return 0;
22842 _ACEOF
22843 rm -f conftest.$ac_objext
22844 if { (ac_try="$ac_compile"
22845 case "(($ac_try" in
22846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22847 *) ac_try_echo=$ac_try;;
22848 esac
22849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22850 (eval "$ac_compile") 2>conftest.er1
22851 ac_status=$?
22852 grep -v '^ *+' conftest.er1 >conftest.err
22853 rm -f conftest.er1
22854 cat conftest.err >&5
22855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22856 (exit $ac_status); } && {
22857 test -z "$ac_c_werror_flag" ||
22858 test ! -s conftest.err
22859 } && test -s conftest.$ac_objext; then
22860 ac_cv_type_size_t=yes
22861 else
22862 echo "$as_me: failed program was:" >&5
22863 sed 's/^/| /' conftest.$ac_ext >&5
22865 ac_cv_type_size_t=no
22868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22870 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22871 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22872 if test $ac_cv_type_size_t = yes; then
22874 cat >>confdefs.h <<_ACEOF
22875 #define HAVE_SIZE_T 1
22876 _ACEOF
22882 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
22883 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
22884 if test "${ac_cv_type_mbstate_t+set}" = set; then
22885 echo $ECHO_N "(cached) $ECHO_C" >&6
22886 else
22887 cat >conftest.$ac_ext <<_ACEOF
22888 /* confdefs.h. */
22889 _ACEOF
22890 cat confdefs.h >>conftest.$ac_ext
22891 cat >>conftest.$ac_ext <<_ACEOF
22892 /* end confdefs.h. */
22893 $ac_includes_default
22894 # include <wchar.h>
22896 main ()
22898 mbstate_t x; return sizeof x;
22900 return 0;
22902 _ACEOF
22903 rm -f conftest.$ac_objext
22904 if { (ac_try="$ac_compile"
22905 case "(($ac_try" in
22906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22907 *) ac_try_echo=$ac_try;;
22908 esac
22909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22910 (eval "$ac_compile") 2>conftest.er1
22911 ac_status=$?
22912 grep -v '^ *+' conftest.er1 >conftest.err
22913 rm -f conftest.er1
22914 cat conftest.err >&5
22915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22916 (exit $ac_status); } && {
22917 test -z "$ac_c_werror_flag" ||
22918 test ! -s conftest.err
22919 } && test -s conftest.$ac_objext; then
22920 ac_cv_type_mbstate_t=yes
22921 else
22922 echo "$as_me: failed program was:" >&5
22923 sed 's/^/| /' conftest.$ac_ext >&5
22925 ac_cv_type_mbstate_t=no
22928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22930 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22931 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
22932 if test $ac_cv_type_mbstate_t = yes; then
22934 cat >>confdefs.h <<\_ACEOF
22935 #define HAVE_MBSTATE_T 1
22936 _ACEOF
22938 else
22940 cat >>confdefs.h <<\_ACEOF
22941 #define mbstate_t int
22942 _ACEOF
22946 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22947 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
22948 if test "${emacs_cv_c_restrict+set}" = set; then
22949 echo $ECHO_N "(cached) $ECHO_C" >&6
22950 else
22951 cat >conftest.$ac_ext <<_ACEOF
22952 /* confdefs.h. */
22953 _ACEOF
22954 cat confdefs.h >>conftest.$ac_ext
22955 cat >>conftest.$ac_ext <<_ACEOF
22956 /* end confdefs.h. */
22957 void fred (int *restrict x);
22959 main ()
22963 return 0;
22965 _ACEOF
22966 rm -f conftest.$ac_objext
22967 if { (ac_try="$ac_compile"
22968 case "(($ac_try" in
22969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22970 *) ac_try_echo=$ac_try;;
22971 esac
22972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22973 (eval "$ac_compile") 2>conftest.er1
22974 ac_status=$?
22975 grep -v '^ *+' conftest.er1 >conftest.err
22976 rm -f conftest.er1
22977 cat conftest.err >&5
22978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22979 (exit $ac_status); } && {
22980 test -z "$ac_c_werror_flag" ||
22981 test ! -s conftest.err
22982 } && test -s conftest.$ac_objext; then
22983 emacs_cv_c_restrict=yes
22984 else
22985 echo "$as_me: failed program was:" >&5
22986 sed 's/^/| /' conftest.$ac_ext >&5
22988 cat >conftest.$ac_ext <<_ACEOF
22989 /* confdefs.h. */
22990 _ACEOF
22991 cat confdefs.h >>conftest.$ac_ext
22992 cat >>conftest.$ac_ext <<_ACEOF
22993 /* end confdefs.h. */
22994 void fred (int *__restrict x);
22996 main ()
23000 return 0;
23002 _ACEOF
23003 rm -f conftest.$ac_objext
23004 if { (ac_try="$ac_compile"
23005 case "(($ac_try" in
23006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23007 *) ac_try_echo=$ac_try;;
23008 esac
23009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23010 (eval "$ac_compile") 2>conftest.er1
23011 ac_status=$?
23012 grep -v '^ *+' conftest.er1 >conftest.err
23013 rm -f conftest.er1
23014 cat conftest.err >&5
23015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23016 (exit $ac_status); } && {
23017 test -z "$ac_c_werror_flag" ||
23018 test ! -s conftest.err
23019 } && test -s conftest.$ac_objext; then
23020 emacs_cv_c_restrict=__restrict
23021 else
23022 echo "$as_me: failed program was:" >&5
23023 sed 's/^/| /' conftest.$ac_ext >&5
23025 emacs_cv_c_restrict=no
23028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23033 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
23034 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23035 case "$emacs_cv_c_restrict" in
23036 yes) emacs_restrict=restrict;;
23037 no) emacs_restrict="";;
23038 *) emacs_restrict="$emacs_cv_c_restrict";;
23039 esac
23040 if test "$emacs_restrict" != __restrict; then
23042 cat >>confdefs.h <<_ACEOF
23043 #define __restrict $emacs_restrict
23044 _ACEOF
23048 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
23049 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
23050 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23051 echo $ECHO_N "(cached) $ECHO_C" >&6
23052 else
23053 cat >conftest.$ac_ext <<_ACEOF
23054 /* confdefs.h. */
23055 _ACEOF
23056 cat confdefs.h >>conftest.$ac_ext
23057 cat >>conftest.$ac_ext <<_ACEOF
23058 /* end confdefs.h. */
23059 void fred (int x[__restrict]);
23061 main ()
23065 return 0;
23067 _ACEOF
23068 rm -f conftest.$ac_objext
23069 if { (ac_try="$ac_compile"
23070 case "(($ac_try" in
23071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23072 *) ac_try_echo=$ac_try;;
23073 esac
23074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23075 (eval "$ac_compile") 2>conftest.er1
23076 ac_status=$?
23077 grep -v '^ *+' conftest.er1 >conftest.err
23078 rm -f conftest.er1
23079 cat conftest.err >&5
23080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23081 (exit $ac_status); } && {
23082 test -z "$ac_c_werror_flag" ||
23083 test ! -s conftest.err
23084 } && test -s conftest.$ac_objext; then
23085 emacs_cv_c_restrict_arr=yes
23086 else
23087 echo "$as_me: failed program was:" >&5
23088 sed 's/^/| /' conftest.$ac_ext >&5
23090 emacs_cv_c_restrict_arr=no
23093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23095 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
23096 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23097 if test "$emacs_cv_c_restrict_arr" = yes; then
23099 cat >>confdefs.h <<\_ACEOF
23100 #define __restrict_arr __restrict
23101 _ACEOF
23107 # Set up the CFLAGS for real compilation, so we can substitute it.
23108 CFLAGS="$REAL_CFLAGS"
23109 CPPFLAGS="$REAL_CPPFLAGS"
23111 #### Find out which version of Emacs this is.
23112 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23113 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
23114 if test x"${version}" = x; then
23115 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
23116 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
23117 { (exit 1); exit 1; }; }
23120 ### Specify what sort of things we'll be editing into Makefile and config.h.
23121 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23157 cat >>confdefs.h <<_ACEOF
23158 #define EMACS_CONFIGURATION "${canonical}"
23159 _ACEOF
23162 cat >>confdefs.h <<_ACEOF
23163 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23164 _ACEOF
23167 cat >>confdefs.h <<_ACEOF
23168 #define config_machfile "${machfile}"
23169 _ACEOF
23172 cat >>confdefs.h <<_ACEOF
23173 #define config_opsysfile "${opsysfile}"
23174 _ACEOF
23177 cat >>confdefs.h <<_ACEOF
23178 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23179 _ACEOF
23182 cat >>confdefs.h <<_ACEOF
23183 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23184 _ACEOF
23187 cat >>confdefs.h <<_ACEOF
23188 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23189 _ACEOF
23192 cat >>confdefs.h <<_ACEOF
23193 #define UNEXEC_SRC ${UNEXEC_SRC}
23194 _ACEOF
23197 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23199 cat >>confdefs.h <<\_ACEOF
23200 #define HAVE_X_WINDOWS 1
23201 _ACEOF
23204 if test "${USE_X_TOOLKIT}" != "none" ; then
23206 cat >>confdefs.h <<\_ACEOF
23207 #define USE_X_TOOLKIT 1
23208 _ACEOF
23211 if test "${HAVE_X11}" = "yes" ; then
23213 cat >>confdefs.h <<\_ACEOF
23214 #define HAVE_X11 1
23215 _ACEOF
23218 if test "${HAVE_XFREE386}" = "yes" ; then
23220 cat >>confdefs.h <<\_ACEOF
23221 #define HAVE_XFREE386 1
23222 _ACEOF
23225 if test "${HAVE_MENUS}" = "yes" ; then
23227 cat >>confdefs.h <<\_ACEOF
23228 #define HAVE_MENUS 1
23229 _ACEOF
23232 if test "${GNU_MALLOC}" = "yes" ; then
23234 cat >>confdefs.h <<\_ACEOF
23235 #define GNU_MALLOC 1
23236 _ACEOF
23239 if test "${REL_ALLOC}" = "yes" ; then
23241 cat >>confdefs.h <<\_ACEOF
23242 #define REL_ALLOC 1
23243 _ACEOF
23251 #### Report on what we decided to do.
23252 #### Report GTK as a toolkit, even if it doesn't use Xt.
23253 #### It makes printing result more understandable as using GTK sets
23254 #### toolkit_scroll_bars to yes by default.
23255 if test "${HAVE_GTK}" = "yes"; then
23256 USE_X_TOOLKIT=GTK
23259 echo "
23260 Configured for \`${canonical}'.
23262 Where should the build process find the source code? ${srcdir}
23263 What operating system and machine description files should Emacs use?
23264 \`${opsysfile}' and \`${machfile}'
23265 What compiler should emacs be built with? ${CC} ${CFLAGS}
23266 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23267 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23268 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23269 What window system should Emacs use? ${window_system}
23270 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23272 if test -n "${x_includes}"; then
23273 echo " Where do we find X Windows header files? ${x_includes}"
23274 else
23275 echo " Where do we find X Windows header files? Standard dirs"
23277 if test -n "${x_libraries}"; then
23278 echo " Where do we find X Windows libraries? ${x_libraries}"
23279 else
23280 echo " Where do we find X Windows libraries? Standard dirs"
23283 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23284 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23285 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23286 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23287 echo " Does Emacs use -lungif? ${HAVE_GIF}"
23288 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23289 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23290 echo
23292 if test $USE_XASSERTS = yes; then
23293 echo " Compiling with asserts turned on."
23294 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23295 echo
23298 if test "$USE_X_TOOLKIT" = GTK; then
23299 case "$canonical" in
23300 *cygwin*)
23301 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
23302 will probably get a crash on startup. If this happens, please use another
23303 toolkit for Emacs. See etc/PROBLEMS for more information."
23305 esac
23310 # Remove any trailing slashes in these variables.
23311 test "${prefix}" != NONE &&
23312 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23313 test "${exec_prefix}" != NONE &&
23314 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23316 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23317 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23318 ## from Makefile.c can correctly provide the arg `-traditional' to the
23319 ## C preprocessor.
23321 cat >conftest.$ac_ext <<_ACEOF
23322 /* confdefs.h. */
23323 _ACEOF
23324 cat confdefs.h >>conftest.$ac_ext
23325 cat >>conftest.$ac_ext <<_ACEOF
23326 /* end confdefs.h. */
23327 yes..yes
23328 _ACEOF
23329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23330 $EGREP "yes..yes" >/dev/null 2>&1; then
23331 CPP_NEED_TRADITIONAL=no
23332 else
23333 CPP_NEED_TRADITIONAL=yes
23335 rm -f conftest*
23338 ac_config_files="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in lisp/Makefile lispref/Makefile lispintro/Makefile leim/Makefile"
23340 ac_config_commands="$ac_config_commands default"
23342 cat >confcache <<\_ACEOF
23343 # This file is a shell script that caches the results of configure
23344 # tests run on this system so they can be shared between configure
23345 # scripts and configure runs, see configure's option --config-cache.
23346 # It is not useful on other systems. If it contains results you don't
23347 # want to keep, you may remove or edit it.
23349 # config.status only pays attention to the cache file if you give it
23350 # the --recheck option to rerun configure.
23352 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23353 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23354 # following values.
23356 _ACEOF
23358 # The following way of writing the cache mishandles newlines in values,
23359 # but we know of no workaround that is simple, portable, and efficient.
23360 # So, we kill variables containing newlines.
23361 # Ultrix sh set writes to stderr and can't be redirected directly,
23362 # and sets the high bit in the cache file unless we assign to the vars.
23364 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23365 eval ac_val=\$$ac_var
23366 case $ac_val in #(
23367 *${as_nl}*)
23368 case $ac_var in #(
23369 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23370 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23371 esac
23372 case $ac_var in #(
23373 _ | IFS | as_nl) ;; #(
23374 *) $as_unset $ac_var ;;
23375 esac ;;
23376 esac
23377 done
23379 (set) 2>&1 |
23380 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23381 *${as_nl}ac_space=\ *)
23382 # `set' does not quote correctly, so add quotes (double-quote
23383 # substitution turns \\\\ into \\, and sed turns \\ into \).
23384 sed -n \
23385 "s/'/'\\\\''/g;
23386 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23387 ;; #(
23389 # `set' quotes correctly as required by POSIX, so do not add quotes.
23390 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23392 esac |
23393 sort
23395 sed '
23396 /^ac_cv_env_/b end
23397 t clear
23398 :clear
23399 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23400 t end
23401 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23402 :end' >>confcache
23403 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23404 if test -w "$cache_file"; then
23405 test "x$cache_file" != "x/dev/null" &&
23406 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23407 echo "$as_me: updating cache $cache_file" >&6;}
23408 cat confcache >$cache_file
23409 else
23410 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23411 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23414 rm -f confcache
23416 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23417 # Let make expand exec_prefix.
23418 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23420 DEFS=-DHAVE_CONFIG_H
23422 ac_libobjs=
23423 ac_ltlibobjs=
23424 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23425 # 1. Remove the extension, and $U if already installed.
23426 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23427 ac_i=`echo "$ac_i" | sed "$ac_script"`
23428 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23429 # will be set to the directory where LIBOBJS objects are built.
23430 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23431 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23432 done
23433 LIBOBJS=$ac_libobjs
23435 LTLIBOBJS=$ac_ltlibobjs
23439 : ${CONFIG_STATUS=./config.status}
23440 ac_clean_files_save=$ac_clean_files
23441 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23442 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23443 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23444 cat >$CONFIG_STATUS <<_ACEOF
23445 #! $SHELL
23446 # Generated by $as_me.
23447 # Run this file to recreate the current configuration.
23448 # Compiler output produced by configure, useful for debugging
23449 # configure, is in config.log if it exists.
23451 debug=false
23452 ac_cs_recheck=false
23453 ac_cs_silent=false
23454 SHELL=\${CONFIG_SHELL-$SHELL}
23455 _ACEOF
23457 cat >>$CONFIG_STATUS <<\_ACEOF
23458 ## --------------------- ##
23459 ## M4sh Initialization. ##
23460 ## --------------------- ##
23462 # Be more Bourne compatible
23463 DUALCASE=1; export DUALCASE # for MKS sh
23464 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23465 emulate sh
23466 NULLCMD=:
23467 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23468 # is contrary to our usage. Disable this feature.
23469 alias -g '${1+"$@"}'='"$@"'
23470 setopt NO_GLOB_SUBST
23471 else
23472 case `(set -o) 2>/dev/null` in
23473 *posix*) set -o posix ;;
23474 esac
23481 # PATH needs CR
23482 # Avoid depending upon Character Ranges.
23483 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23484 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23485 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23486 as_cr_digits='0123456789'
23487 as_cr_alnum=$as_cr_Letters$as_cr_digits
23489 # The user is always right.
23490 if test "${PATH_SEPARATOR+set}" != set; then
23491 echo "#! /bin/sh" >conf$$.sh
23492 echo "exit 0" >>conf$$.sh
23493 chmod +x conf$$.sh
23494 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23495 PATH_SEPARATOR=';'
23496 else
23497 PATH_SEPARATOR=:
23499 rm -f conf$$.sh
23502 # Support unset when possible.
23503 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23504 as_unset=unset
23505 else
23506 as_unset=false
23510 # IFS
23511 # We need space, tab and new line, in precisely that order. Quoting is
23512 # there to prevent editors from complaining about space-tab.
23513 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23514 # splitting by setting IFS to empty value.)
23515 as_nl='
23517 IFS=" "" $as_nl"
23519 # Find who we are. Look in the path if we contain no directory separator.
23520 case $0 in
23521 *[\\/]* ) as_myself=$0 ;;
23522 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23523 for as_dir in $PATH
23525 IFS=$as_save_IFS
23526 test -z "$as_dir" && as_dir=.
23527 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23528 done
23529 IFS=$as_save_IFS
23532 esac
23533 # We did not find ourselves, most probably we were run as `sh COMMAND'
23534 # in which case we are not to be found in the path.
23535 if test "x$as_myself" = x; then
23536 as_myself=$0
23538 if test ! -f "$as_myself"; then
23539 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23540 { (exit 1); exit 1; }
23543 # Work around bugs in pre-3.0 UWIN ksh.
23544 for as_var in ENV MAIL MAILPATH
23545 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23546 done
23547 PS1='$ '
23548 PS2='> '
23549 PS4='+ '
23551 # NLS nuisances.
23552 for as_var in \
23553 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23554 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23555 LC_TELEPHONE LC_TIME
23557 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23558 eval $as_var=C; export $as_var
23559 else
23560 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23562 done
23564 # Required to use basename.
23565 if expr a : '\(a\)' >/dev/null 2>&1 &&
23566 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23567 as_expr=expr
23568 else
23569 as_expr=false
23572 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23573 as_basename=basename
23574 else
23575 as_basename=false
23579 # Name of the executable.
23580 as_me=`$as_basename -- "$0" ||
23581 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23582 X"$0" : 'X\(//\)$' \| \
23583 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23584 echo X/"$0" |
23585 sed '/^.*\/\([^/][^/]*\)\/*$/{
23586 s//\1/
23589 /^X\/\(\/\/\)$/{
23590 s//\1/
23593 /^X\/\(\/\).*/{
23594 s//\1/
23597 s/.*/./; q'`
23599 # CDPATH.
23600 $as_unset CDPATH
23604 as_lineno_1=$LINENO
23605 as_lineno_2=$LINENO
23606 test "x$as_lineno_1" != "x$as_lineno_2" &&
23607 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23609 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23610 # uniformly replaced by the line number. The first 'sed' inserts a
23611 # line-number line after each line using $LINENO; the second 'sed'
23612 # does the real work. The second script uses 'N' to pair each
23613 # line-number line with the line containing $LINENO, and appends
23614 # trailing '-' during substitution so that $LINENO is not a special
23615 # case at line end.
23616 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23617 # scripts with optimization help from Paolo Bonzini. Blame Lee
23618 # E. McMahon (1931-1989) for sed's syntax. :-)
23619 sed -n '
23621 /[$]LINENO/=
23622 ' <$as_myself |
23623 sed '
23624 s/[$]LINENO.*/&-/
23625 t lineno
23627 :lineno
23629 :loop
23630 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23631 t loop
23632 s/-\n.*//
23633 ' >$as_me.lineno &&
23634 chmod +x "$as_me.lineno" ||
23635 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23636 { (exit 1); exit 1; }; }
23638 # Don't try to exec as it changes $[0], causing all sort of problems
23639 # (the dirname of $[0] is not the place where we might find the
23640 # original and so on. Autoconf is especially sensitive to this).
23641 . "./$as_me.lineno"
23642 # Exit status is that of the last command.
23643 exit
23647 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23648 as_dirname=dirname
23649 else
23650 as_dirname=false
23653 ECHO_C= ECHO_N= ECHO_T=
23654 case `echo -n x` in
23655 -n*)
23656 case `echo 'x\c'` in
23657 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23658 *) ECHO_C='\c';;
23659 esac;;
23661 ECHO_N='-n';;
23662 esac
23664 if expr a : '\(a\)' >/dev/null 2>&1 &&
23665 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23666 as_expr=expr
23667 else
23668 as_expr=false
23671 rm -f conf$$ conf$$.exe conf$$.file
23672 if test -d conf$$.dir; then
23673 rm -f conf$$.dir/conf$$.file
23674 else
23675 rm -f conf$$.dir
23676 mkdir conf$$.dir
23678 echo >conf$$.file
23679 if ln -s conf$$.file conf$$ 2>/dev/null; then
23680 as_ln_s='ln -s'
23681 # ... but there are two gotchas:
23682 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23683 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23684 # In both cases, we have to default to `cp -p'.
23685 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23686 as_ln_s='cp -p'
23687 elif ln conf$$.file conf$$ 2>/dev/null; then
23688 as_ln_s=ln
23689 else
23690 as_ln_s='cp -p'
23692 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23693 rmdir conf$$.dir 2>/dev/null
23695 if mkdir -p . 2>/dev/null; then
23696 as_mkdir_p=:
23697 else
23698 test -d ./-p && rmdir ./-p
23699 as_mkdir_p=false
23702 if test -x / >/dev/null 2>&1; then
23703 as_test_x='test -x'
23704 else
23705 if ls -dL / >/dev/null 2>&1; then
23706 as_ls_L_option=L
23707 else
23708 as_ls_L_option=
23710 as_test_x='
23711 eval sh -c '\''
23712 if test -d "$1"; then
23713 test -d "$1/.";
23714 else
23715 case $1 in
23716 -*)set "./$1";;
23717 esac;
23718 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23719 ???[sx]*):;;*)false;;esac;fi
23720 '\'' sh
23723 as_executable_p=$as_test_x
23725 # Sed expression to map a string onto a valid CPP name.
23726 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23728 # Sed expression to map a string onto a valid variable name.
23729 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23732 exec 6>&1
23734 # Save the log message, to keep $[0] and so on meaningful, and to
23735 # report actual input values of CONFIG_FILES etc. instead of their
23736 # values after options handling.
23737 ac_log="
23738 This file was extended by $as_me, which was
23739 generated by GNU Autoconf 2.61. Invocation command line was
23741 CONFIG_FILES = $CONFIG_FILES
23742 CONFIG_HEADERS = $CONFIG_HEADERS
23743 CONFIG_LINKS = $CONFIG_LINKS
23744 CONFIG_COMMANDS = $CONFIG_COMMANDS
23745 $ $0 $@
23747 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23750 _ACEOF
23752 cat >>$CONFIG_STATUS <<_ACEOF
23753 # Files that config.status was made for.
23754 config_files="$ac_config_files"
23755 config_headers="$ac_config_headers"
23756 config_commands="$ac_config_commands"
23758 _ACEOF
23760 cat >>$CONFIG_STATUS <<\_ACEOF
23761 ac_cs_usage="\
23762 \`$as_me' instantiates files from templates according to the
23763 current configuration.
23765 Usage: $0 [OPTIONS] [FILE]...
23767 -h, --help print this help, then exit
23768 -V, --version print version number and configuration settings, then exit
23769 -q, --quiet do not print progress messages
23770 -d, --debug don't remove temporary files
23771 --recheck update $as_me by reconfiguring in the same conditions
23772 --file=FILE[:TEMPLATE]
23773 instantiate the configuration file FILE
23774 --header=FILE[:TEMPLATE]
23775 instantiate the configuration header FILE
23777 Configuration files:
23778 $config_files
23780 Configuration headers:
23781 $config_headers
23783 Configuration commands:
23784 $config_commands
23786 Report bugs to <bug-autoconf@gnu.org>."
23788 _ACEOF
23789 cat >>$CONFIG_STATUS <<_ACEOF
23790 ac_cs_version="\\
23791 config.status
23792 configured by $0, generated by GNU Autoconf 2.61,
23793 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23795 Copyright (C) 2006 Free Software Foundation, Inc.
23796 This config.status script is free software; the Free Software Foundation
23797 gives unlimited permission to copy, distribute and modify it."
23799 ac_pwd='$ac_pwd'
23800 srcdir='$srcdir'
23801 INSTALL='$INSTALL'
23802 _ACEOF
23804 cat >>$CONFIG_STATUS <<\_ACEOF
23805 # If no file are specified by the user, then we need to provide default
23806 # value. By we need to know if files were specified by the user.
23807 ac_need_defaults=:
23808 while test $# != 0
23810 case $1 in
23811 --*=*)
23812 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23813 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23814 ac_shift=:
23817 ac_option=$1
23818 ac_optarg=$2
23819 ac_shift=shift
23821 esac
23823 case $ac_option in
23824 # Handling of the options.
23825 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23826 ac_cs_recheck=: ;;
23827 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23828 echo "$ac_cs_version"; exit ;;
23829 --debug | --debu | --deb | --de | --d | -d )
23830 debug=: ;;
23831 --file | --fil | --fi | --f )
23832 $ac_shift
23833 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23834 ac_need_defaults=false;;
23835 --header | --heade | --head | --hea )
23836 $ac_shift
23837 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23838 ac_need_defaults=false;;
23839 --he | --h)
23840 # Conflict between --help and --header
23841 { echo "$as_me: error: ambiguous option: $1
23842 Try \`$0 --help' for more information." >&2
23843 { (exit 1); exit 1; }; };;
23844 --help | --hel | -h )
23845 echo "$ac_cs_usage"; exit ;;
23846 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23847 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23848 ac_cs_silent=: ;;
23850 # This is an error.
23851 -*) { echo "$as_me: error: unrecognized option: $1
23852 Try \`$0 --help' for more information." >&2
23853 { (exit 1); exit 1; }; } ;;
23855 *) ac_config_targets="$ac_config_targets $1"
23856 ac_need_defaults=false ;;
23858 esac
23859 shift
23860 done
23862 ac_configure_extra_args=
23864 if $ac_cs_silent; then
23865 exec 6>/dev/null
23866 ac_configure_extra_args="$ac_configure_extra_args --silent"
23869 _ACEOF
23870 cat >>$CONFIG_STATUS <<_ACEOF
23871 if \$ac_cs_recheck; then
23872 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23873 CONFIG_SHELL=$SHELL
23874 export CONFIG_SHELL
23875 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23878 _ACEOF
23879 cat >>$CONFIG_STATUS <<\_ACEOF
23880 exec 5>>config.log
23882 echo
23883 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23884 ## Running $as_me. ##
23885 _ASBOX
23886 echo "$ac_log"
23887 } >&5
23889 _ACEOF
23890 cat >>$CONFIG_STATUS <<_ACEOF
23892 # INIT-COMMANDS
23894 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23896 _ACEOF
23898 cat >>$CONFIG_STATUS <<\_ACEOF
23900 # Handling of arguments.
23901 for ac_config_target in $ac_config_targets
23903 case $ac_config_target in
23904 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23905 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23906 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23907 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
23908 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23909 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
23910 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23911 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23912 "lispref/Makefile") CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
23913 "lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
23914 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
23915 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23917 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23918 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23919 { (exit 1); exit 1; }; };;
23920 esac
23921 done
23924 # If the user did not use the arguments to specify the items to instantiate,
23925 # then the envvar interface is used. Set only those that are not.
23926 # We use the long form for the default assignment because of an extremely
23927 # bizarre bug on SunOS 4.1.3.
23928 if $ac_need_defaults; then
23929 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23930 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23931 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23934 # Have a temporary directory for convenience. Make it in the build tree
23935 # simply because there is no reason against having it here, and in addition,
23936 # creating and moving files from /tmp can sometimes cause problems.
23937 # Hook for its removal unless debugging.
23938 # Note that there is a small window in which the directory will not be cleaned:
23939 # after its creation but before its name has been assigned to `$tmp'.
23940 $debug ||
23942 tmp=
23943 trap 'exit_status=$?
23944 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23946 trap '{ (exit 1); exit 1; }' 1 2 13 15
23948 # Create a (secure) tmp directory for tmp files.
23951 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23952 test -n "$tmp" && test -d "$tmp"
23953 } ||
23955 tmp=./conf$$-$RANDOM
23956 (umask 077 && mkdir "$tmp")
23957 } ||
23959 echo "$me: cannot create a temporary directory in ." >&2
23960 { (exit 1); exit 1; }
23964 # Set up the sed scripts for CONFIG_FILES section.
23967 # No need to generate the scripts if there are no CONFIG_FILES.
23968 # This happens for instance when ./config.status config.h
23969 if test -n "$CONFIG_FILES"; then
23971 _ACEOF
23975 ac_delim='%!_!# '
23976 for ac_last_try in false false false false false :; do
23977 cat >conf$$subs.sed <<_ACEOF
23978 SHELL!$SHELL$ac_delim
23979 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23980 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23981 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23982 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23983 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23984 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23985 exec_prefix!$exec_prefix$ac_delim
23986 prefix!$prefix$ac_delim
23987 program_transform_name!$program_transform_name$ac_delim
23988 bindir!$bindir$ac_delim
23989 sbindir!$sbindir$ac_delim
23990 libexecdir!$libexecdir$ac_delim
23991 datarootdir!$datarootdir$ac_delim
23992 datadir!$datadir$ac_delim
23993 sysconfdir!$sysconfdir$ac_delim
23994 sharedstatedir!$sharedstatedir$ac_delim
23995 localstatedir!$localstatedir$ac_delim
23996 includedir!$includedir$ac_delim
23997 oldincludedir!$oldincludedir$ac_delim
23998 docdir!$docdir$ac_delim
23999 infodir!$infodir$ac_delim
24000 htmldir!$htmldir$ac_delim
24001 dvidir!$dvidir$ac_delim
24002 pdfdir!$pdfdir$ac_delim
24003 psdir!$psdir$ac_delim
24004 libdir!$libdir$ac_delim
24005 localedir!$localedir$ac_delim
24006 mandir!$mandir$ac_delim
24007 DEFS!$DEFS$ac_delim
24008 ECHO_C!$ECHO_C$ac_delim
24009 ECHO_N!$ECHO_N$ac_delim
24010 ECHO_T!$ECHO_T$ac_delim
24011 LIBS!$LIBS$ac_delim
24012 build_alias!$build_alias$ac_delim
24013 host_alias!$host_alias$ac_delim
24014 target_alias!$target_alias$ac_delim
24015 MAINT!$MAINT$ac_delim
24016 build!$build$ac_delim
24017 build_cpu!$build_cpu$ac_delim
24018 build_vendor!$build_vendor$ac_delim
24019 build_os!$build_os$ac_delim
24020 host!$host$ac_delim
24021 host_cpu!$host_cpu$ac_delim
24022 host_vendor!$host_vendor$ac_delim
24023 host_os!$host_os$ac_delim
24024 CC!$CC$ac_delim
24025 CFLAGS!$CFLAGS$ac_delim
24026 LDFLAGS!$LDFLAGS$ac_delim
24027 CPPFLAGS!$CPPFLAGS$ac_delim
24028 ac_ct_CC!$ac_ct_CC$ac_delim
24029 EXEEXT!$EXEEXT$ac_delim
24030 OBJEXT!$OBJEXT$ac_delim
24031 CPP!$CPP$ac_delim
24032 GREP!$GREP$ac_delim
24033 EGREP!$EGREP$ac_delim
24034 LN_S!$LN_S$ac_delim
24035 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24036 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24037 INSTALL_DATA!$INSTALL_DATA$ac_delim
24038 RANLIB!$RANLIB$ac_delim
24039 INSTALL_INFO!$INSTALL_INFO$ac_delim
24040 GZIP_PROG!$GZIP_PROG$ac_delim
24041 LIBSOUND!$LIBSOUND$ac_delim
24042 PKG_CONFIG!$PKG_CONFIG$ac_delim
24043 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24044 ALSA_LIBS!$ALSA_LIBS$ac_delim
24045 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24046 SET_MAKE!$SET_MAKE$ac_delim
24047 XMKMF!$XMKMF$ac_delim
24048 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24049 GTK_LIBS!$GTK_LIBS$ac_delim
24050 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24051 XFT_LIBS!$XFT_LIBS$ac_delim
24052 ALLOCA!$ALLOCA$ac_delim
24053 liblockfile!$liblockfile$ac_delim
24054 LIBOBJS!$LIBOBJS$ac_delim
24055 NEED_SETGID!$NEED_SETGID$ac_delim
24056 KMEM_GROUP!$KMEM_GROUP$ac_delim
24057 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24058 GETOPT_H!$GETOPT_H$ac_delim
24059 GETOPTOBJS!$GETOPTOBJS$ac_delim
24060 version!$version$ac_delim
24061 configuration!$configuration$ac_delim
24062 canonical!$canonical$ac_delim
24063 srcdir!$srcdir$ac_delim
24064 lispdir!$lispdir$ac_delim
24065 locallisppath!$locallisppath$ac_delim
24066 lisppath!$lisppath$ac_delim
24067 x_default_search_path!$x_default_search_path$ac_delim
24068 etcdir!$etcdir$ac_delim
24069 archlibdir!$archlibdir$ac_delim
24070 bitmapdir!$bitmapdir$ac_delim
24071 gamedir!$gamedir$ac_delim
24072 gameuser!$gameuser$ac_delim
24073 c_switch_system!$c_switch_system$ac_delim
24074 c_switch_machine!$c_switch_machine$ac_delim
24075 _ACEOF
24077 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24078 break
24079 elif $ac_last_try; then
24080 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24081 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24082 { (exit 1); exit 1; }; }
24083 else
24084 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24086 done
24088 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24089 if test -n "$ac_eof"; then
24090 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24091 ac_eof=`expr $ac_eof + 1`
24094 cat >>$CONFIG_STATUS <<_ACEOF
24095 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24096 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24097 _ACEOF
24098 sed '
24099 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24100 s/^/s,@/; s/!/@,|#_!!_#|/
24103 s/'"$ac_delim"'$/,g/; t
24104 s/$/\\/; p
24105 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24106 ' >>$CONFIG_STATUS <conf$$subs.sed
24107 rm -f conf$$subs.sed
24108 cat >>$CONFIG_STATUS <<_ACEOF
24109 CEOF$ac_eof
24110 _ACEOF
24113 ac_delim='%!_!# '
24114 for ac_last_try in false false false false false :; do
24115 cat >conf$$subs.sed <<_ACEOF
24116 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24117 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24118 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24119 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24120 machfile!$machfile$ac_delim
24121 opsysfile!$opsysfile$ac_delim
24122 carbon_appdir!$carbon_appdir$ac_delim
24123 LTLIBOBJS!$LTLIBOBJS$ac_delim
24124 _ACEOF
24126 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then
24127 break
24128 elif $ac_last_try; then
24129 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24130 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24131 { (exit 1); exit 1; }; }
24132 else
24133 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24135 done
24137 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24138 if test -n "$ac_eof"; then
24139 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24140 ac_eof=`expr $ac_eof + 1`
24143 cat >>$CONFIG_STATUS <<_ACEOF
24144 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24145 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24146 _ACEOF
24147 sed '
24148 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24149 s/^/s,@/; s/!/@,|#_!!_#|/
24152 s/'"$ac_delim"'$/,g/; t
24153 s/$/\\/; p
24154 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24155 ' >>$CONFIG_STATUS <conf$$subs.sed
24156 rm -f conf$$subs.sed
24157 cat >>$CONFIG_STATUS <<_ACEOF
24158 :end
24159 s/|#_!!_#|//g
24160 CEOF$ac_eof
24161 _ACEOF
24164 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24165 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24166 # trailing colons and then remove the whole line if VPATH becomes empty
24167 # (actually we leave an empty line to preserve line numbers).
24168 if test "x$srcdir" = x.; then
24169 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24170 s/:*\$(srcdir):*/:/
24171 s/:*\${srcdir}:*/:/
24172 s/:*@srcdir@:*/:/
24173 s/^\([^=]*=[ ]*\):*/\1/
24174 s/:*$//
24175 s/^[^=]*=[ ]*$//
24179 cat >>$CONFIG_STATUS <<\_ACEOF
24180 fi # test -n "$CONFIG_FILES"
24183 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24185 case $ac_tag in
24186 :[FHLC]) ac_mode=$ac_tag; continue;;
24187 esac
24188 case $ac_mode$ac_tag in
24189 :[FHL]*:*);;
24190 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24191 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24192 { (exit 1); exit 1; }; };;
24193 :[FH]-) ac_tag=-:-;;
24194 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24195 esac
24196 ac_save_IFS=$IFS
24197 IFS=:
24198 set x $ac_tag
24199 IFS=$ac_save_IFS
24200 shift
24201 ac_file=$1
24202 shift
24204 case $ac_mode in
24205 :L) ac_source=$1;;
24206 :[FH])
24207 ac_file_inputs=
24208 for ac_f
24210 case $ac_f in
24211 -) ac_f="$tmp/stdin";;
24212 *) # Look for the file first in the build tree, then in the source tree
24213 # (if the path is not absolute). The absolute path cannot be DOS-style,
24214 # because $ac_f cannot contain `:'.
24215 test -f "$ac_f" ||
24216 case $ac_f in
24217 [\\/$]*) false;;
24218 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24219 esac ||
24220 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24221 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24222 { (exit 1); exit 1; }; };;
24223 esac
24224 ac_file_inputs="$ac_file_inputs $ac_f"
24225 done
24227 # Let's still pretend it is `configure' which instantiates (i.e., don't
24228 # use $as_me), people would be surprised to read:
24229 # /* config.h. Generated by config.status. */
24230 configure_input="Generated from "`IFS=:
24231 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24232 if test x"$ac_file" != x-; then
24233 configure_input="$ac_file. $configure_input"
24234 { echo "$as_me:$LINENO: creating $ac_file" >&5
24235 echo "$as_me: creating $ac_file" >&6;}
24238 case $ac_tag in
24239 *:-:* | *:-) cat >"$tmp/stdin";;
24240 esac
24242 esac
24244 ac_dir=`$as_dirname -- "$ac_file" ||
24245 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24246 X"$ac_file" : 'X\(//\)[^/]' \| \
24247 X"$ac_file" : 'X\(//\)$' \| \
24248 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24249 echo X"$ac_file" |
24250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24251 s//\1/
24254 /^X\(\/\/\)[^/].*/{
24255 s//\1/
24258 /^X\(\/\/\)$/{
24259 s//\1/
24262 /^X\(\/\).*/{
24263 s//\1/
24266 s/.*/./; q'`
24267 { as_dir="$ac_dir"
24268 case $as_dir in #(
24269 -*) as_dir=./$as_dir;;
24270 esac
24271 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24272 as_dirs=
24273 while :; do
24274 case $as_dir in #(
24275 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24276 *) as_qdir=$as_dir;;
24277 esac
24278 as_dirs="'$as_qdir' $as_dirs"
24279 as_dir=`$as_dirname -- "$as_dir" ||
24280 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24281 X"$as_dir" : 'X\(//\)[^/]' \| \
24282 X"$as_dir" : 'X\(//\)$' \| \
24283 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24284 echo X"$as_dir" |
24285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24286 s//\1/
24289 /^X\(\/\/\)[^/].*/{
24290 s//\1/
24293 /^X\(\/\/\)$/{
24294 s//\1/
24297 /^X\(\/\).*/{
24298 s//\1/
24301 s/.*/./; q'`
24302 test -d "$as_dir" && break
24303 done
24304 test -z "$as_dirs" || eval "mkdir $as_dirs"
24305 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24306 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24307 { (exit 1); exit 1; }; }; }
24308 ac_builddir=.
24310 case "$ac_dir" in
24311 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24313 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24314 # A ".." for each directory in $ac_dir_suffix.
24315 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24316 case $ac_top_builddir_sub in
24317 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24318 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24319 esac ;;
24320 esac
24321 ac_abs_top_builddir=$ac_pwd
24322 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24323 # for backward compatibility:
24324 ac_top_builddir=$ac_top_build_prefix
24326 case $srcdir in
24327 .) # We are building in place.
24328 ac_srcdir=.
24329 ac_top_srcdir=$ac_top_builddir_sub
24330 ac_abs_top_srcdir=$ac_pwd ;;
24331 [\\/]* | ?:[\\/]* ) # Absolute name.
24332 ac_srcdir=$srcdir$ac_dir_suffix;
24333 ac_top_srcdir=$srcdir
24334 ac_abs_top_srcdir=$srcdir ;;
24335 *) # Relative name.
24336 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24337 ac_top_srcdir=$ac_top_build_prefix$srcdir
24338 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24339 esac
24340 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24343 case $ac_mode in
24346 # CONFIG_FILE
24349 case $INSTALL in
24350 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24351 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24352 esac
24353 _ACEOF
24355 cat >>$CONFIG_STATUS <<\_ACEOF
24356 # If the template does not know about datarootdir, expand it.
24357 # FIXME: This hack should be removed a few years after 2.60.
24358 ac_datarootdir_hack=; ac_datarootdir_seen=
24360 case `sed -n '/datarootdir/ {
24364 /@datadir@/p
24365 /@docdir@/p
24366 /@infodir@/p
24367 /@localedir@/p
24368 /@mandir@/p
24369 ' $ac_file_inputs` in
24370 *datarootdir*) ac_datarootdir_seen=yes;;
24371 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24372 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24373 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24374 _ACEOF
24375 cat >>$CONFIG_STATUS <<_ACEOF
24376 ac_datarootdir_hack='
24377 s&@datadir@&$datadir&g
24378 s&@docdir@&$docdir&g
24379 s&@infodir@&$infodir&g
24380 s&@localedir@&$localedir&g
24381 s&@mandir@&$mandir&g
24382 s&\\\${datarootdir}&$datarootdir&g' ;;
24383 esac
24384 _ACEOF
24386 # Neutralize VPATH when `$srcdir' = `.'.
24387 # Shell code in configure.ac might set extrasub.
24388 # FIXME: do we really want to maintain this feature?
24389 cat >>$CONFIG_STATUS <<_ACEOF
24390 sed "$ac_vpsub
24391 $extrasub
24392 _ACEOF
24393 cat >>$CONFIG_STATUS <<\_ACEOF
24395 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24396 s&@configure_input@&$configure_input&;t t
24397 s&@top_builddir@&$ac_top_builddir_sub&;t t
24398 s&@srcdir@&$ac_srcdir&;t t
24399 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24400 s&@top_srcdir@&$ac_top_srcdir&;t t
24401 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24402 s&@builddir@&$ac_builddir&;t t
24403 s&@abs_builddir@&$ac_abs_builddir&;t t
24404 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24405 s&@INSTALL@&$ac_INSTALL&;t t
24406 $ac_datarootdir_hack
24407 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24409 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24410 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24411 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24412 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24413 which seems to be undefined. Please make sure it is defined." >&5
24414 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24415 which seems to be undefined. Please make sure it is defined." >&2;}
24417 rm -f "$tmp/stdin"
24418 case $ac_file in
24419 -) cat "$tmp/out"; rm -f "$tmp/out";;
24420 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24421 esac
24425 # CONFIG_HEADER
24427 _ACEOF
24429 # Transform confdefs.h into a sed script `conftest.defines', that
24430 # substitutes the proper values into config.h.in to produce config.h.
24431 rm -f conftest.defines conftest.tail
24432 # First, append a space to every undef/define line, to ease matching.
24433 echo 's/$/ /' >conftest.defines
24434 # Then, protect against being on the right side of a sed subst, or in
24435 # an unquoted here document, in config.status. If some macros were
24436 # called several times there might be several #defines for the same
24437 # symbol, which is useless. But do not sort them, since the last
24438 # AC_DEFINE must be honored.
24439 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24440 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24441 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24442 # PARAMS is the parameter list in the macro definition--in most cases, it's
24443 # just an empty string.
24444 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24445 ac_dB='\\)[ (].*,\\1define\\2'
24446 ac_dC=' '
24447 ac_dD=' ,'
24449 uniq confdefs.h |
24450 sed -n '
24451 t rset
24452 :rset
24453 s/^[ ]*#[ ]*define[ ][ ]*//
24454 t ok
24457 s/[\\&,]/\\&/g
24458 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24459 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24460 ' >>conftest.defines
24462 # Remove the space that was appended to ease matching.
24463 # Then replace #undef with comments. This is necessary, for
24464 # example, in the case of _POSIX_SOURCE, which is predefined and required
24465 # on some systems where configure will not decide to define it.
24466 # (The regexp can be short, since the line contains either #define or #undef.)
24467 echo 's/ $//
24468 s,^[ #]*u.*,/* & */,' >>conftest.defines
24470 # Break up conftest.defines:
24471 ac_max_sed_lines=50
24473 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24474 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24475 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24476 # et cetera.
24477 ac_in='$ac_file_inputs'
24478 ac_out='"$tmp/out1"'
24479 ac_nxt='"$tmp/out2"'
24481 while :
24483 # Write a here document:
24484 cat >>$CONFIG_STATUS <<_ACEOF
24485 # First, check the format of the line:
24486 cat >"\$tmp/defines.sed" <<\\CEOF
24487 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24488 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24490 :def
24491 _ACEOF
24492 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24493 echo 'CEOF
24494 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24495 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24496 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24497 grep . conftest.tail >/dev/null || break
24498 rm -f conftest.defines
24499 mv conftest.tail conftest.defines
24500 done
24501 rm -f conftest.defines conftest.tail
24503 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24504 cat >>$CONFIG_STATUS <<\_ACEOF
24505 if test x"$ac_file" != x-; then
24506 echo "/* $configure_input */" >"$tmp/config.h"
24507 cat "$ac_result" >>"$tmp/config.h"
24508 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24509 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24510 echo "$as_me: $ac_file is unchanged" >&6;}
24511 else
24512 rm -f $ac_file
24513 mv "$tmp/config.h" $ac_file
24515 else
24516 echo "/* $configure_input */"
24517 cat "$ac_result"
24519 rm -f "$tmp/out12"
24522 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24523 echo "$as_me: executing $ac_file commands" >&6;}
24525 esac
24528 case $ac_file$ac_mode in
24529 "default":C)
24531 ### Make the necessary directories, if they don't exist.
24532 for dir in etc lisp ; do
24533 test -d ${dir} || mkdir ${dir}
24534 done
24536 # Build src/Makefile from ${srcdir}/src/Makefile.c
24537 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24538 # This must be done after src/config.h is built, since we rely on that file.
24540 # Now get this: Some word that is part of the ${srcdir} directory name
24541 # or the ${configuration} value might, just might, happen to be an
24542 # identifier like `sun4' or `i386' or something, and be predefined by
24543 # the C preprocessor to some helpful value like 1, or maybe the empty
24544 # string. Needless to say consequent macro substitutions are less
24545 # than conducive to the makefile finding the correct directory.
24546 undefs="`echo $top_srcdir $configuration $canonical |
24547 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24548 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24551 echo creating src/epaths.h
24552 ${MAKE-make} epaths-force
24554 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24555 # `..' to `. .' unless invoked with -traditional
24557 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
24558 CPPFLAGS="$CPPFLAGS -traditional"
24561 echo creating lib-src/Makefile
24562 ( cd lib-src
24563 rm -f junk.c junk1.c junk2.c
24564 sed -e '/start of cpp stuff/q' \
24565 < Makefile.c > junk1.c
24566 sed -e '1,/start of cpp stuff/d'\
24567 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24568 < Makefile.c > junk.c
24569 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24570 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24571 cat junk1.c junk2.c > Makefile.new
24572 rm -f junk.c junk1.c junk2.c
24573 chmod 444 Makefile.new
24574 mv -f Makefile.new Makefile
24577 echo creating src/Makefile
24578 ( cd src
24579 rm -f junk.c junk1.c junk2.c
24580 sed -e '/start of cpp stuff/q' \
24581 < Makefile.c > junk1.c
24582 sed -e '1,/start of cpp stuff/d'\
24583 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24584 < Makefile.c > junk.c
24585 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24586 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24587 cat junk1.c junk2.c > Makefile.new
24588 rm -f junk.c junk1.c junk2.c
24589 chmod 444 Makefile.new
24590 mv -f Makefile.new Makefile
24593 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24594 echo creating src/.gdbinit
24595 echo source $srcdir/src/.gdbinit > src/.gdbinit
24598 # This is how we know whether to re-run configure in certain cases.
24599 touch src/config.stamp
24603 esac
24604 done # for ac_tag
24607 { (exit 0); exit 0; }
24608 _ACEOF
24609 chmod +x $CONFIG_STATUS
24610 ac_clean_files=$ac_clean_files_save
24613 # configure is writing to config.log, and then calls config.status.
24614 # config.status does its own redirection, appending to config.log.
24615 # Unfortunately, on DOS this fails, as config.log is still kept open
24616 # by configure, so config.status won't be able to write to it; its
24617 # output is simply discarded. So we exec the FD to /dev/null,
24618 # effectively closing config.log, so it can be properly (re)opened and
24619 # appended to by config.status. When coming back to configure, we
24620 # need to make the FD available again.
24621 if test "$no_create" != yes; then
24622 ac_cs_success=:
24623 ac_config_status_args=
24624 test "$silent" = yes &&
24625 ac_config_status_args="$ac_config_status_args --quiet"
24626 exec 5>/dev/null
24627 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24628 exec 5>>config.log
24629 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24630 # would make configure fail if this is the last instruction.
24631 $ac_cs_success || { (exit 1); exit 1; }