(vc-sccs-diff): Fix setting of oldvers and newvers.
[emacs.git] / configure
blob3bcee6cb97e00569443701d7e61cfdeaa6861294
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for emacs 23.0.50.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560 # Initializations.
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
573 PACKAGE_NAME='emacs'
574 PACKAGE_TARNAME='emacs'
575 PACKAGE_VERSION='23.0.50'
576 PACKAGE_STRING='emacs 23.0.50'
577 PACKAGE_BUGREPORT=''
579 ac_unique_file="src/lisp.h"
580 ac_config_libobj_dir=src
581 # Factoring default headers for most tests.
582 ac_includes_default="\
583 #include <stdio.h>
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
586 #endif
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
589 #endif
590 #ifdef STDC_HEADERS
591 # include <stdlib.h>
592 # include <stddef.h>
593 #else
594 # ifdef HAVE_STDLIB_H
595 # include <stdlib.h>
596 # endif
597 #endif
598 #ifdef HAVE_STRING_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600 # include <memory.h>
601 # endif
602 # include <string.h>
603 #endif
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
606 #endif
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
609 #endif
610 #ifdef HAVE_STDINT_H
611 # include <stdint.h>
612 #endif
613 #ifdef HAVE_UNISTD_H
614 # include <unistd.h>
615 #endif"
617 ac_header_list=
618 ac_func_list=
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 MAINT
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
673 GREP
674 EGREP
675 LN_S
676 INSTALL_PROGRAM
677 INSTALL_SCRIPT
678 INSTALL_DATA
679 RANLIB
680 INSTALL_INFO
681 GZIP_PROG
682 MAKEINFO
683 LIBSOUND
684 PKG_CONFIG
685 ALSA_CFLAGS
686 ALSA_LIBS
687 CFLAGS_SOUND
688 SET_MAKE
689 XMKMF
690 HAVE_XSERVER
691 RSVG_CFLAGS
692 RSVG_LIBS
693 GTK_CFLAGS
694 GTK_LIBS
695 DBUS_CFLAGS
696 DBUS_LIBS
697 XFT_CFLAGS
698 XFT_LIBS
699 FREETYPE_CFLAGS
700 FREETYPE_LIBS
701 FONTCONFIG_CFLAGS
702 FONTCONFIG_LIBS
703 LIBOTF_CFLAGS
704 LIBOTF_LIBS
705 M17N_FLT_CFLAGS
706 M17N_FLT_LIBS
707 ALLOCA
708 liblockfile
709 LIBOBJS
710 NEED_SETGID
711 KMEM_GROUP
712 GETLOADAVG_LIBS
713 GETOPT_H
714 GETOPTOBJS
715 version
716 configuration
717 canonical
718 srcdir
719 lispdir
720 locallisppath
721 lisppath
722 x_default_search_path
723 etcdir
724 archlibdir
725 bitmapdir
726 gamedir
727 gameuser
728 c_switch_system
729 c_switch_machine
730 LD_SWITCH_X_SITE
731 LD_SWITCH_X_SITE_AUX
732 C_SWITCH_X_SITE
733 X_TOOLKIT_TYPE
734 machfile
735 opsysfile
736 carbon_appdir
737 LTLIBOBJS'
738 ac_subst_files=''
739 ac_precious_vars='build_alias
740 host_alias
741 target_alias
743 CFLAGS
744 LDFLAGS
745 LIBS
746 CPPFLAGS
748 XMKMF'
751 # Initialize some variables set by options.
752 ac_init_help=
753 ac_init_version=false
754 # The variables have the same names as the options, with
755 # dashes changed to underlines.
756 cache_file=/dev/null
757 exec_prefix=NONE
758 no_create=
759 no_recursion=
760 prefix=NONE
761 program_prefix=NONE
762 program_suffix=NONE
763 program_transform_name=s,x,x,
764 silent=
765 site=
766 srcdir=
767 verbose=
768 x_includes=NONE
769 x_libraries=NONE
771 # Installation directory options.
772 # These are left unexpanded so users can "make install exec_prefix=/foo"
773 # and all the variables that are supposed to be based on exec_prefix
774 # by default will actually change.
775 # Use braces instead of parens because sh, perl, etc. also accept them.
776 # (The list follows the same order as the GNU Coding Standards.)
777 bindir='${exec_prefix}/bin'
778 sbindir='${exec_prefix}/sbin'
779 libexecdir='${exec_prefix}/libexec'
780 datarootdir='${prefix}/share'
781 datadir='${datarootdir}'
782 sysconfdir='${prefix}/etc'
783 sharedstatedir='${prefix}/com'
784 localstatedir='${prefix}/var'
785 includedir='${prefix}/include'
786 oldincludedir='/usr/include'
787 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
788 infodir='${datarootdir}/info'
789 htmldir='${docdir}'
790 dvidir='${docdir}'
791 pdfdir='${docdir}'
792 psdir='${docdir}'
793 libdir='${exec_prefix}/lib'
794 localedir='${datarootdir}/locale'
795 mandir='${datarootdir}/man'
797 ac_prev=
798 ac_dashdash=
799 for ac_option
801 # If the previous option needs an argument, assign it.
802 if test -n "$ac_prev"; then
803 eval $ac_prev=\$ac_option
804 ac_prev=
805 continue
808 case $ac_option in
809 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
810 *) ac_optarg=yes ;;
811 esac
813 # Accept the important Cygnus configure options, so we can diagnose typos.
815 case $ac_dashdash$ac_option in
817 ac_dashdash=yes ;;
819 -bindir | --bindir | --bindi | --bind | --bin | --bi)
820 ac_prev=bindir ;;
821 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
822 bindir=$ac_optarg ;;
824 -build | --build | --buil | --bui | --bu)
825 ac_prev=build_alias ;;
826 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
827 build_alias=$ac_optarg ;;
829 -cache-file | --cache-file | --cache-fil | --cache-fi \
830 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
831 ac_prev=cache_file ;;
832 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
833 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
834 cache_file=$ac_optarg ;;
836 --config-cache | -C)
837 cache_file=config.cache ;;
839 -datadir | --datadir | --datadi | --datad)
840 ac_prev=datadir ;;
841 -datadir=* | --datadir=* | --datadi=* | --datad=*)
842 datadir=$ac_optarg ;;
844 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
845 | --dataroo | --dataro | --datar)
846 ac_prev=datarootdir ;;
847 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
848 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
849 datarootdir=$ac_optarg ;;
851 -disable-* | --disable-*)
852 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
853 # Reject names that are not valid shell variable names.
854 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
855 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
856 { (exit 1); exit 1; }; }
857 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
858 eval enable_$ac_feature=no ;;
860 -docdir | --docdir | --docdi | --doc | --do)
861 ac_prev=docdir ;;
862 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
863 docdir=$ac_optarg ;;
865 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
866 ac_prev=dvidir ;;
867 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
868 dvidir=$ac_optarg ;;
870 -enable-* | --enable-*)
871 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
872 # Reject names that are not valid shell variable names.
873 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
874 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
875 { (exit 1); exit 1; }; }
876 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
877 eval enable_$ac_feature=\$ac_optarg ;;
879 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
880 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
881 | --exec | --exe | --ex)
882 ac_prev=exec_prefix ;;
883 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
884 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
885 | --exec=* | --exe=* | --ex=*)
886 exec_prefix=$ac_optarg ;;
888 -gas | --gas | --ga | --g)
889 # Obsolete; use --with-gas.
890 with_gas=yes ;;
892 -help | --help | --hel | --he | -h)
893 ac_init_help=long ;;
894 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
895 ac_init_help=recursive ;;
896 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
897 ac_init_help=short ;;
899 -host | --host | --hos | --ho)
900 ac_prev=host_alias ;;
901 -host=* | --host=* | --hos=* | --ho=*)
902 host_alias=$ac_optarg ;;
904 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
905 ac_prev=htmldir ;;
906 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
907 | --ht=*)
908 htmldir=$ac_optarg ;;
910 -includedir | --includedir | --includedi | --included | --include \
911 | --includ | --inclu | --incl | --inc)
912 ac_prev=includedir ;;
913 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
914 | --includ=* | --inclu=* | --incl=* | --inc=*)
915 includedir=$ac_optarg ;;
917 -infodir | --infodir | --infodi | --infod | --info | --inf)
918 ac_prev=infodir ;;
919 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
920 infodir=$ac_optarg ;;
922 -libdir | --libdir | --libdi | --libd)
923 ac_prev=libdir ;;
924 -libdir=* | --libdir=* | --libdi=* | --libd=*)
925 libdir=$ac_optarg ;;
927 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
928 | --libexe | --libex | --libe)
929 ac_prev=libexecdir ;;
930 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
931 | --libexe=* | --libex=* | --libe=*)
932 libexecdir=$ac_optarg ;;
934 -localedir | --localedir | --localedi | --localed | --locale)
935 ac_prev=localedir ;;
936 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
937 localedir=$ac_optarg ;;
939 -localstatedir | --localstatedir | --localstatedi | --localstated \
940 | --localstate | --localstat | --localsta | --localst | --locals)
941 ac_prev=localstatedir ;;
942 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
943 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
944 localstatedir=$ac_optarg ;;
946 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
947 ac_prev=mandir ;;
948 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
949 mandir=$ac_optarg ;;
951 -nfp | --nfp | --nf)
952 # Obsolete; use --without-fp.
953 with_fp=no ;;
955 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
956 | --no-cr | --no-c | -n)
957 no_create=yes ;;
959 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
960 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
961 no_recursion=yes ;;
963 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
964 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
965 | --oldin | --oldi | --old | --ol | --o)
966 ac_prev=oldincludedir ;;
967 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
968 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
969 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
970 oldincludedir=$ac_optarg ;;
972 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
973 ac_prev=prefix ;;
974 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
975 prefix=$ac_optarg ;;
977 -program-prefix | --program-prefix | --program-prefi | --program-pref \
978 | --program-pre | --program-pr | --program-p)
979 ac_prev=program_prefix ;;
980 -program-prefix=* | --program-prefix=* | --program-prefi=* \
981 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
982 program_prefix=$ac_optarg ;;
984 -program-suffix | --program-suffix | --program-suffi | --program-suff \
985 | --program-suf | --program-su | --program-s)
986 ac_prev=program_suffix ;;
987 -program-suffix=* | --program-suffix=* | --program-suffi=* \
988 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
989 program_suffix=$ac_optarg ;;
991 -program-transform-name | --program-transform-name \
992 | --program-transform-nam | --program-transform-na \
993 | --program-transform-n | --program-transform- \
994 | --program-transform | --program-transfor \
995 | --program-transfo | --program-transf \
996 | --program-trans | --program-tran \
997 | --progr-tra | --program-tr | --program-t)
998 ac_prev=program_transform_name ;;
999 -program-transform-name=* | --program-transform-name=* \
1000 | --program-transform-nam=* | --program-transform-na=* \
1001 | --program-transform-n=* | --program-transform-=* \
1002 | --program-transform=* | --program-transfor=* \
1003 | --program-transfo=* | --program-transf=* \
1004 | --program-trans=* | --program-tran=* \
1005 | --progr-tra=* | --program-tr=* | --program-t=*)
1006 program_transform_name=$ac_optarg ;;
1008 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1009 ac_prev=pdfdir ;;
1010 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1011 pdfdir=$ac_optarg ;;
1013 -psdir | --psdir | --psdi | --psd | --ps)
1014 ac_prev=psdir ;;
1015 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1016 psdir=$ac_optarg ;;
1018 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1019 | -silent | --silent | --silen | --sile | --sil)
1020 silent=yes ;;
1022 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1023 ac_prev=sbindir ;;
1024 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1025 | --sbi=* | --sb=*)
1026 sbindir=$ac_optarg ;;
1028 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1029 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1030 | --sharedst | --shareds | --shared | --share | --shar \
1031 | --sha | --sh)
1032 ac_prev=sharedstatedir ;;
1033 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1034 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1035 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1036 | --sha=* | --sh=*)
1037 sharedstatedir=$ac_optarg ;;
1039 -site | --site | --sit)
1040 ac_prev=site ;;
1041 -site=* | --site=* | --sit=*)
1042 site=$ac_optarg ;;
1044 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1045 ac_prev=srcdir ;;
1046 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1047 srcdir=$ac_optarg ;;
1049 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1050 | --syscon | --sysco | --sysc | --sys | --sy)
1051 ac_prev=sysconfdir ;;
1052 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1053 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1054 sysconfdir=$ac_optarg ;;
1056 -target | --target | --targe | --targ | --tar | --ta | --t)
1057 ac_prev=target_alias ;;
1058 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1059 target_alias=$ac_optarg ;;
1061 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1062 verbose=yes ;;
1064 -version | --version | --versio | --versi | --vers | -V)
1065 ac_init_version=: ;;
1067 -with-* | --with-*)
1068 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1071 { echo "$as_me: error: invalid package name: $ac_package" >&2
1072 { (exit 1); exit 1; }; }
1073 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1074 eval with_$ac_package=\$ac_optarg ;;
1076 -without-* | --without-*)
1077 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1080 { echo "$as_me: error: invalid package name: $ac_package" >&2
1081 { (exit 1); exit 1; }; }
1082 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1083 eval with_$ac_package=no ;;
1085 --x)
1086 # Obsolete; use --with-x.
1087 with_x=yes ;;
1089 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1090 | --x-incl | --x-inc | --x-in | --x-i)
1091 ac_prev=x_includes ;;
1092 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1093 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1094 x_includes=$ac_optarg ;;
1096 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1097 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1098 ac_prev=x_libraries ;;
1099 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1100 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1101 x_libraries=$ac_optarg ;;
1103 -*) { echo "$as_me: error: unrecognized option: $ac_option
1104 Try \`$0 --help' for more information." >&2
1105 { (exit 1); exit 1; }; }
1108 *=*)
1109 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1112 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1113 { (exit 1); exit 1; }; }
1114 eval $ac_envvar=\$ac_optarg
1115 export $ac_envvar ;;
1118 # FIXME: should be removed in autoconf 3.0.
1119 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1120 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1121 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1122 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1125 esac
1126 done
1128 if test -n "$ac_prev"; then
1129 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1130 { echo "$as_me: error: missing argument to $ac_option" >&2
1131 { (exit 1); exit 1; }; }
1134 # Be sure to have absolute directory names.
1135 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1136 datadir sysconfdir sharedstatedir localstatedir includedir \
1137 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1138 libdir localedir mandir
1140 eval ac_val=\$$ac_var
1141 case $ac_val in
1142 [\\/$]* | ?:[\\/]* ) continue;;
1143 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1144 esac
1145 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1146 { (exit 1); exit 1; }; }
1147 done
1149 # There might be people who depend on the old broken behavior: `$host'
1150 # used to hold the argument of --host etc.
1151 # FIXME: To remove some day.
1152 build=$build_alias
1153 host=$host_alias
1154 target=$target_alias
1156 # FIXME: To remove some day.
1157 if test "x$host_alias" != x; then
1158 if test "x$build_alias" = x; then
1159 cross_compiling=maybe
1160 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1161 If a cross compiler is detected then cross compile mode will be used." >&2
1162 elif test "x$build_alias" != "x$host_alias"; then
1163 cross_compiling=yes
1167 ac_tool_prefix=
1168 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1170 test "$silent" = yes && exec 6>/dev/null
1173 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1174 ac_ls_di=`ls -di .` &&
1175 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1176 { echo "$as_me: error: Working directory cannot be determined" >&2
1177 { (exit 1); exit 1; }; }
1178 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1179 { echo "$as_me: error: pwd does not report name of working directory" >&2
1180 { (exit 1); exit 1; }; }
1183 # Find the source files, if location was not specified.
1184 if test -z "$srcdir"; then
1185 ac_srcdir_defaulted=yes
1186 # Try the directory containing this script, then the parent directory.
1187 ac_confdir=`$as_dirname -- "$0" ||
1188 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1189 X"$0" : 'X\(//\)[^/]' \| \
1190 X"$0" : 'X\(//\)$' \| \
1191 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1192 echo X"$0" |
1193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1194 s//\1/
1197 /^X\(\/\/\)[^/].*/{
1198 s//\1/
1201 /^X\(\/\/\)$/{
1202 s//\1/
1205 /^X\(\/\).*/{
1206 s//\1/
1209 s/.*/./; q'`
1210 srcdir=$ac_confdir
1211 if test ! -r "$srcdir/$ac_unique_file"; then
1212 srcdir=..
1214 else
1215 ac_srcdir_defaulted=no
1217 if test ! -r "$srcdir/$ac_unique_file"; then
1218 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1219 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1220 { (exit 1); exit 1; }; }
1222 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1223 ac_abs_confdir=`(
1224 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1225 { (exit 1); exit 1; }; }
1226 pwd)`
1227 # When building in place, set srcdir=.
1228 if test "$ac_abs_confdir" = "$ac_pwd"; then
1229 srcdir=.
1231 # Remove unnecessary trailing slashes from srcdir.
1232 # Double slashes in file names in object file debugging info
1233 # mess up M-x gdb in Emacs.
1234 case $srcdir in
1235 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1236 esac
1237 for ac_var in $ac_precious_vars; do
1238 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1239 eval ac_env_${ac_var}_value=\$${ac_var}
1240 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1241 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1242 done
1245 # Report the --help message.
1247 if test "$ac_init_help" = "long"; then
1248 # Omit some internal or obsolete options to make the list less imposing.
1249 # This message is too long to be a string in the A/UX 3.1 sh.
1250 cat <<_ACEOF
1251 \`configure' configures emacs 23.0.50 to adapt to many kinds of systems.
1253 Usage: $0 [OPTION]... [VAR=VALUE]...
1255 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1256 VAR=VALUE. See below for descriptions of some of the useful variables.
1258 Defaults for the options are specified in brackets.
1260 Configuration:
1261 -h, --help display this help and exit
1262 --help=short display options specific to this package
1263 --help=recursive display the short help of all the included packages
1264 -V, --version display version information and exit
1265 -q, --quiet, --silent do not print \`checking...' messages
1266 --cache-file=FILE cache test results in FILE [disabled]
1267 -C, --config-cache alias for \`--cache-file=config.cache'
1268 -n, --no-create do not create output files
1269 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1271 Installation directories:
1272 --prefix=PREFIX install architecture-independent files in PREFIX
1273 [$ac_default_prefix]
1274 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1275 [PREFIX]
1277 By default, \`make install' will install all the files in
1278 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1279 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1280 for instance \`--prefix=\$HOME'.
1282 For better control, use the options below.
1284 Fine tuning of the installation directories:
1285 --bindir=DIR user executables [EPREFIX/bin]
1286 --sbindir=DIR system admin executables [EPREFIX/sbin]
1287 --libexecdir=DIR program executables [EPREFIX/libexec]
1288 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1289 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1290 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1291 --libdir=DIR object code libraries [EPREFIX/lib]
1292 --includedir=DIR C header files [PREFIX/include]
1293 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1294 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1295 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1296 --infodir=DIR info documentation [DATAROOTDIR/info]
1297 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1298 --mandir=DIR man documentation [DATAROOTDIR/man]
1299 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1300 --htmldir=DIR html documentation [DOCDIR]
1301 --dvidir=DIR dvi documentation [DOCDIR]
1302 --pdfdir=DIR pdf documentation [DOCDIR]
1303 --psdir=DIR ps documentation [DOCDIR]
1304 _ACEOF
1306 cat <<\_ACEOF
1308 Program names:
1309 --program-prefix=PREFIX prepend PREFIX to installed program names
1310 --program-suffix=SUFFIX append SUFFIX to installed program names
1311 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1313 X features:
1314 --x-includes=DIR X include files are in DIR
1315 --x-libraries=DIR X library files are in DIR
1317 System types:
1318 --build=BUILD configure for building on BUILD [guessed]
1319 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1320 _ACEOF
1323 if test -n "$ac_init_help"; then
1324 case $ac_init_help in
1325 short | recursive ) echo "Configuration of emacs 23.0.50:";;
1326 esac
1327 cat <<\_ACEOF
1329 Optional Features:
1330 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1331 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1332 --enable-carbon-app[=DIR]
1333 specify install directory for Emacs.app on Mac OS X
1334 [DIR=/Application]
1335 --enable-font-backend compile code of font-backend support
1336 --enable-asserts compile code with asserts enabled
1337 --enable-maintainer-mode
1338 enable make rules and dependencies not useful (and
1339 sometimes confusing) to the casual installer
1340 --enable-locallisppath=PATH
1341 directories Emacs should search for lisp files
1342 specific to this site
1343 --disable-largefile omit support for large files
1345 Optional Packages:
1346 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1347 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1348 --without-pop don't support POP mail retrieval with movemail
1349 --with-kerberos support Kerberos-authenticated POP
1350 --with-kerberos5 support Kerberos version 5 authenticated POP
1351 --with-hesiod support Hesiod to get the POP server host
1352 --without-sound don't compile with sound support
1353 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1354 motif, gtk, no)
1355 --without-xpm don't compile with XPM image support
1356 --without-jpeg don't compile with JPEG image support
1357 --without-tiff don't compile with TIFF image support
1358 --without-gif don't compile with GIF image support
1359 --without-png don't compile with PNG image support
1360 --without-rsvg don't compile with SVG image support
1361 --without-freetype don't use Freetype for local font support
1362 --without-xft don't use XFT for anti aliased fonts
1363 --without-libotf don't use libotf for OpenType font support
1364 --without-m17n-flt don't use m17n-flt for text shaping
1365 --without-toolkit-scroll-bars
1366 don't use Motif or Xaw3d scroll bars
1367 --without-xaw3d don't use Xaw3d
1368 --without-xim don't use X11 XIM
1369 --with-carbon use Carbon GUI on Mac OS X. This is unsupported!
1370 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1371 console
1372 --without-dbus don't compile with D-Bus support
1374 --with-pkg-config-prog=PATH
1375 Path to pkg-config for finding GTK and librsvg
1376 --with-x use the X Window System
1378 Some influential environment variables:
1379 CC C compiler command
1380 CFLAGS C compiler flags
1381 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1382 nonstandard directory <lib dir>
1383 LIBS libraries to pass to the linker, e.g. -l<library>
1384 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1385 you have headers in a nonstandard directory <include dir>
1386 CPP C preprocessor
1387 XMKMF Path to xmkmf, Makefile generator for X Window System
1389 Use these variables to override the choices made by `configure' or to help
1390 it to find libraries and programs with nonstandard names/locations.
1392 _ACEOF
1393 ac_status=$?
1396 if test "$ac_init_help" = "recursive"; then
1397 # If there are subdirs, report their specific --help.
1398 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1399 test -d "$ac_dir" || continue
1400 ac_builddir=.
1402 case "$ac_dir" in
1403 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1405 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1406 # A ".." for each directory in $ac_dir_suffix.
1407 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1408 case $ac_top_builddir_sub in
1409 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1410 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1411 esac ;;
1412 esac
1413 ac_abs_top_builddir=$ac_pwd
1414 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1415 # for backward compatibility:
1416 ac_top_builddir=$ac_top_build_prefix
1418 case $srcdir in
1419 .) # We are building in place.
1420 ac_srcdir=.
1421 ac_top_srcdir=$ac_top_builddir_sub
1422 ac_abs_top_srcdir=$ac_pwd ;;
1423 [\\/]* | ?:[\\/]* ) # Absolute name.
1424 ac_srcdir=$srcdir$ac_dir_suffix;
1425 ac_top_srcdir=$srcdir
1426 ac_abs_top_srcdir=$srcdir ;;
1427 *) # Relative name.
1428 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1429 ac_top_srcdir=$ac_top_build_prefix$srcdir
1430 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1431 esac
1432 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1434 cd "$ac_dir" || { ac_status=$?; continue; }
1435 # Check for guested configure.
1436 if test -f "$ac_srcdir/configure.gnu"; then
1437 echo &&
1438 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1439 elif test -f "$ac_srcdir/configure"; then
1440 echo &&
1441 $SHELL "$ac_srcdir/configure" --help=recursive
1442 else
1443 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1444 fi || ac_status=$?
1445 cd "$ac_pwd" || { ac_status=$?; break; }
1446 done
1449 test -n "$ac_init_help" && exit $ac_status
1450 if $ac_init_version; then
1451 cat <<\_ACEOF
1452 emacs configure 23.0.50
1453 generated by GNU Autoconf 2.61
1455 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1456 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1457 This configure script is free software; the Free Software Foundation
1458 gives unlimited permission to copy, distribute and modify it.
1459 _ACEOF
1460 exit
1462 cat >config.log <<_ACEOF
1463 This file contains any messages produced by compilers while
1464 running configure, to aid debugging if configure makes a mistake.
1466 It was created by emacs $as_me 23.0.50, which was
1467 generated by GNU Autoconf 2.61. Invocation command line was
1469 $ $0 $@
1471 _ACEOF
1472 exec 5>>config.log
1474 cat <<_ASUNAME
1475 ## --------- ##
1476 ## Platform. ##
1477 ## --------- ##
1479 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1480 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1481 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1482 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1483 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1485 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1486 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1488 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1489 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1490 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1491 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1492 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1493 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1494 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1496 _ASUNAME
1498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1499 for as_dir in $PATH
1501 IFS=$as_save_IFS
1502 test -z "$as_dir" && as_dir=.
1503 echo "PATH: $as_dir"
1504 done
1505 IFS=$as_save_IFS
1507 } >&5
1509 cat >&5 <<_ACEOF
1512 ## ----------- ##
1513 ## Core tests. ##
1514 ## ----------- ##
1516 _ACEOF
1519 # Keep a trace of the command line.
1520 # Strip out --no-create and --no-recursion so they do not pile up.
1521 # Strip out --silent because we don't want to record it for future runs.
1522 # Also quote any args containing shell meta-characters.
1523 # Make two passes to allow for proper duplicate-argument suppression.
1524 ac_configure_args=
1525 ac_configure_args0=
1526 ac_configure_args1=
1527 ac_must_keep_next=false
1528 for ac_pass in 1 2
1530 for ac_arg
1532 case $ac_arg in
1533 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1534 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1535 | -silent | --silent | --silen | --sile | --sil)
1536 continue ;;
1537 *\'*)
1538 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1539 esac
1540 case $ac_pass in
1541 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1543 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1544 if test $ac_must_keep_next = true; then
1545 ac_must_keep_next=false # Got value, back to normal.
1546 else
1547 case $ac_arg in
1548 *=* | --config-cache | -C | -disable-* | --disable-* \
1549 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1550 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1551 | -with-* | --with-* | -without-* | --without-* | --x)
1552 case "$ac_configure_args0 " in
1553 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1554 esac
1556 -* ) ac_must_keep_next=true ;;
1557 esac
1559 ac_configure_args="$ac_configure_args '$ac_arg'"
1561 esac
1562 done
1563 done
1564 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1565 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1567 # When interrupted or exit'd, cleanup temporary files, and complete
1568 # config.log. We remove comments because anyway the quotes in there
1569 # would cause problems or look ugly.
1570 # WARNING: Use '\'' to represent an apostrophe within the trap.
1571 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1572 trap 'exit_status=$?
1573 # Save into config.log some information that might help in debugging.
1575 echo
1577 cat <<\_ASBOX
1578 ## ---------------- ##
1579 ## Cache variables. ##
1580 ## ---------------- ##
1581 _ASBOX
1582 echo
1583 # The following way of writing the cache mishandles newlines in values,
1585 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1586 eval ac_val=\$$ac_var
1587 case $ac_val in #(
1588 *${as_nl}*)
1589 case $ac_var in #(
1590 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1591 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1592 esac
1593 case $ac_var in #(
1594 _ | IFS | as_nl) ;; #(
1595 *) $as_unset $ac_var ;;
1596 esac ;;
1597 esac
1598 done
1599 (set) 2>&1 |
1600 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1601 *${as_nl}ac_space=\ *)
1602 sed -n \
1603 "s/'\''/'\''\\\\'\'''\''/g;
1604 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1605 ;; #(
1607 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1609 esac |
1610 sort
1612 echo
1614 cat <<\_ASBOX
1615 ## ----------------- ##
1616 ## Output variables. ##
1617 ## ----------------- ##
1618 _ASBOX
1619 echo
1620 for ac_var in $ac_subst_vars
1622 eval ac_val=\$$ac_var
1623 case $ac_val in
1624 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1625 esac
1626 echo "$ac_var='\''$ac_val'\''"
1627 done | sort
1628 echo
1630 if test -n "$ac_subst_files"; then
1631 cat <<\_ASBOX
1632 ## ------------------- ##
1633 ## File substitutions. ##
1634 ## ------------------- ##
1635 _ASBOX
1636 echo
1637 for ac_var in $ac_subst_files
1639 eval ac_val=\$$ac_var
1640 case $ac_val in
1641 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1642 esac
1643 echo "$ac_var='\''$ac_val'\''"
1644 done | sort
1645 echo
1648 if test -s confdefs.h; then
1649 cat <<\_ASBOX
1650 ## ----------- ##
1651 ## confdefs.h. ##
1652 ## ----------- ##
1653 _ASBOX
1654 echo
1655 cat confdefs.h
1656 echo
1658 test "$ac_signal" != 0 &&
1659 echo "$as_me: caught signal $ac_signal"
1660 echo "$as_me: exit $exit_status"
1661 } >&5
1662 rm -f core *.core core.conftest.* &&
1663 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1664 exit $exit_status
1666 for ac_signal in 1 2 13 15; do
1667 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1668 done
1669 ac_signal=0
1671 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1672 rm -f -r conftest* confdefs.h
1674 # Predefined preprocessor variables.
1676 cat >>confdefs.h <<_ACEOF
1677 #define PACKAGE_NAME "$PACKAGE_NAME"
1678 _ACEOF
1681 cat >>confdefs.h <<_ACEOF
1682 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1683 _ACEOF
1686 cat >>confdefs.h <<_ACEOF
1687 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1688 _ACEOF
1691 cat >>confdefs.h <<_ACEOF
1692 #define PACKAGE_STRING "$PACKAGE_STRING"
1693 _ACEOF
1696 cat >>confdefs.h <<_ACEOF
1697 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1698 _ACEOF
1701 # Let the site file select an alternate cache file if it wants to.
1702 # Prefer explicitly selected file to automatically selected ones.
1703 if test -n "$CONFIG_SITE"; then
1704 set x "$CONFIG_SITE"
1705 elif test "x$prefix" != xNONE; then
1706 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1707 else
1708 set x "$ac_default_prefix/share/config.site" \
1709 "$ac_default_prefix/etc/config.site"
1711 shift
1712 for ac_site_file
1714 if test -r "$ac_site_file"; then
1715 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1716 echo "$as_me: loading site script $ac_site_file" >&6;}
1717 sed 's/^/| /' "$ac_site_file" >&5
1718 . "$ac_site_file"
1720 done
1722 if test -r "$cache_file"; then
1723 # Some versions of bash will fail to source /dev/null (special
1724 # files actually), so we avoid doing that.
1725 if test -f "$cache_file"; then
1726 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1727 echo "$as_me: loading cache $cache_file" >&6;}
1728 case $cache_file in
1729 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1730 *) . "./$cache_file";;
1731 esac
1733 else
1734 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1735 echo "$as_me: creating cache $cache_file" >&6;}
1736 >$cache_file
1739 ac_header_list="$ac_header_list sys/time.h"
1740 ac_header_list="$ac_header_list unistd.h"
1741 ac_func_list="$ac_func_list alarm"
1742 # Check that the precious variables saved in the cache have kept the same
1743 # value.
1744 ac_cache_corrupted=false
1745 for ac_var in $ac_precious_vars; do
1746 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1747 eval ac_new_set=\$ac_env_${ac_var}_set
1748 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1749 eval ac_new_val=\$ac_env_${ac_var}_value
1750 case $ac_old_set,$ac_new_set in
1751 set,)
1752 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1753 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1754 ac_cache_corrupted=: ;;
1755 ,set)
1756 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1757 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1758 ac_cache_corrupted=: ;;
1759 ,);;
1761 if test "x$ac_old_val" != "x$ac_new_val"; then
1762 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1763 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1764 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1765 echo "$as_me: former value: $ac_old_val" >&2;}
1766 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1767 echo "$as_me: current value: $ac_new_val" >&2;}
1768 ac_cache_corrupted=:
1769 fi;;
1770 esac
1771 # Pass precious variables to config.status.
1772 if test "$ac_new_set" = set; then
1773 case $ac_new_val in
1774 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1775 *) ac_arg=$ac_var=$ac_new_val ;;
1776 esac
1777 case " $ac_configure_args " in
1778 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1779 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1780 esac
1782 done
1783 if $ac_cache_corrupted; then
1784 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1785 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1786 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1787 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1788 { (exit 1); exit 1; }; }
1815 ac_ext=c
1816 ac_cpp='$CPP $CPPFLAGS'
1817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1822 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1826 test "$program_prefix" != NONE &&
1827 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1828 # Use a double $ so make ignores it.
1829 test "$program_suffix" != NONE &&
1830 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1831 # Double any \ or $. echo might interpret backslashes.
1832 # By default was `s,x,x', remove it if useless.
1833 cat <<\_ACEOF >conftest.sed
1834 s/[\\$]/&&/g;s/;s,x,x,$//
1835 _ACEOF
1836 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1837 rm -f conftest.sed
1840 lispdir='${datadir}/emacs/${version}/lisp'
1841 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1842 '${datadir}/emacs/site-lisp'
1843 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1844 etcdir='${datadir}/emacs/${version}/etc'
1845 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1846 docdir='${datadir}/emacs/${version}/etc'
1847 gamedir='${localstatedir}/games/emacs'
1849 gameuser=games
1854 # Check whether --with-pop was given.
1855 if test "${with_pop+set}" = set; then
1856 withval=$with_pop;
1857 else
1858 with_pop=yes
1861 if test "$with_pop" = yes; then
1862 cat >>confdefs.h <<\_ACEOF
1863 #define MAIL_USE_POP 1
1864 _ACEOF
1870 # Check whether --with-kerberos was given.
1871 if test "${with_kerberos+set}" = set; then
1872 withval=$with_kerberos;
1873 else
1874 with_kerberos=no
1877 if test "$with_kerberos" = yes; then
1878 cat >>confdefs.h <<\_ACEOF
1879 #define KERBEROS 1
1880 _ACEOF
1886 # Check whether --with-kerberos5 was given.
1887 if test "${with_kerberos5+set}" = set; then
1888 withval=$with_kerberos5;
1889 else
1890 with_kerberos5=no
1893 if test "${with_kerberos5}" = yes; then
1894 if test "${with_kerberos}" != yes; then
1895 with_kerberos=yes
1896 cat >>confdefs.h <<\_ACEOF
1897 #define KERBEROS 1
1898 _ACEOF
1902 cat >>confdefs.h <<\_ACEOF
1903 #define KERBEROS5 1
1904 _ACEOF
1909 # Check whether --with-hesiod was given.
1910 if test "${with_hesiod+set}" = set; then
1911 withval=$with_hesiod;
1912 else
1913 with_hesiod=no
1916 if test "$with_hesiod" = yes; then
1918 cat >>confdefs.h <<\_ACEOF
1919 #define HESIOD 1
1920 _ACEOF
1925 # Check whether --with-sound was given.
1926 if test "${with_sound+set}" = set; then
1927 withval=$with_sound;
1928 else
1929 with_sound=yes
1934 # Check whether --with-x-toolkit was given.
1935 if test "${with_x_toolkit+set}" = set; then
1936 withval=$with_x_toolkit; case "${withval}" in
1937 y | ye | yes ) val=gtk ;;
1938 n | no ) val=no ;;
1939 l | lu | luc | luci | lucid ) val=lucid ;;
1940 a | at | ath | athe | athen | athena ) val=athena ;;
1941 m | mo | mot | moti | motif ) val=motif ;;
1942 g | gt | gtk ) val=gtk ;;
1944 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1945 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1946 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1947 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1948 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1949 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1950 { (exit 1); exit 1; }; }
1952 esac
1953 with_x_toolkit=$val
1959 # Check whether --with-xpm was given.
1960 if test "${with_xpm+set}" = set; then
1961 withval=$with_xpm;
1962 else
1963 with_xpm=yes
1967 # Check whether --with-jpeg was given.
1968 if test "${with_jpeg+set}" = set; then
1969 withval=$with_jpeg;
1970 else
1971 with_jpeg=yes
1975 # Check whether --with-tiff was given.
1976 if test "${with_tiff+set}" = set; then
1977 withval=$with_tiff;
1978 else
1979 with_tiff=yes
1983 # Check whether --with-gif was given.
1984 if test "${with_gif+set}" = set; then
1985 withval=$with_gif;
1986 else
1987 with_gif=yes
1991 # Check whether --with-png was given.
1992 if test "${with_png+set}" = set; then
1993 withval=$with_png;
1994 else
1995 with_png=yes
1999 # Check whether --with-rsvg was given.
2000 if test "${with_rsvg+set}" = set; then
2001 withval=$with_rsvg;
2002 else
2003 with_rsvg=yes
2008 # Check whether --with-freetype was given.
2009 if test "${with_freetype+set}" = set; then
2010 withval=$with_freetype;
2011 else
2012 with_freetype=yes
2016 # Check whether --with-xft was given.
2017 if test "${with_xft+set}" = set; then
2018 withval=$with_xft;
2019 else
2020 with_xft=yes
2024 # Check whether --with-libotf was given.
2025 if test "${with_libotf+set}" = set; then
2026 withval=$with_libotf;
2027 else
2028 with_libotf=yes
2032 # Check whether --with-m17n-flt was given.
2033 if test "${with_m17n_flt+set}" = set; then
2034 withval=$with_m17n_flt;
2035 else
2036 with_m17n_flt=yes
2041 # Check whether --with-toolkit-scroll-bars was given.
2042 if test "${with_toolkit_scroll_bars+set}" = set; then
2043 withval=$with_toolkit_scroll_bars;
2044 else
2045 with_toolkit_scroll_bars=yes
2049 # Check whether --with-xaw3d was given.
2050 if test "${with_xaw3d+set}" = set; then
2051 withval=$with_xaw3d;
2052 else
2053 with_xaw3d=yes
2057 # Check whether --with-xim was given.
2058 if test "${with_xim+set}" = set; then
2059 withval=$with_xim;
2060 else
2061 with_xim=yes
2065 # Check whether --with-carbon was given.
2066 if test "${with_carbon+set}" = set; then
2067 withval=$with_carbon;
2068 else
2069 with_carbon=no
2074 # Check whether --with-gpm was given.
2075 if test "${with_gpm+set}" = set; then
2076 withval=$with_gpm;
2077 else
2078 with_gpm=yes
2082 # Check whether --with-dbus was given.
2083 if test "${with_dbus+set}" = set; then
2084 withval=$with_dbus;
2085 else
2086 with_dbus=yes
2091 # Check whether --with-gtk was given.
2092 if test "${with_gtk+set}" = set; then
2093 withval=$with_gtk; { { echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2094 specify a toolkit." >&5
2095 echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2096 specify a toolkit." >&2;}
2097 { (exit 1); exit 1; }; }
2102 # Check whether --with-gcc was given.
2103 if test "${with_gcc+set}" = set; then
2104 withval=$with_gcc; { { echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2105 variable to specify a compiler." >&5
2106 echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2107 variable to specify a compiler." >&2;}
2108 { (exit 1); exit 1; }; }
2113 # Check whether --with-pkg-config-prog was given.
2114 if test "${with_pkg_config_prog+set}" = set; then
2115 withval=$with_pkg_config_prog;
2118 if test "X${with_pkg_config_prog}" != X; then
2119 if test "${with_pkg_config_prog}" != yes; then
2120 PKG_CONFIG="${with_pkg_config_prog}"
2124 # Check whether --enable-carbon-app was given.
2125 if test "${enable_carbon_app+set}" = set; then
2126 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
2130 # Check whether --enable-font-backend was given.
2131 if test "${enable_font_backend+set}" = set; then
2132 enableval=$enable_font_backend; USE_FONT_BACKEND=$enableval
2133 else
2134 USE_FONT_BACKEND=no
2138 # Check whether --enable-asserts was given.
2139 if test "${enable_asserts+set}" = set; then
2140 enableval=$enable_asserts; USE_XASSERTS=$enableval
2141 else
2142 USE_XASSERTS=no
2146 # Check whether --enable-maintainer-mode was given.
2147 if test "${enable_maintainer_mode+set}" = set; then
2148 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2149 else
2150 USE_MAINTAINER_MODE=no
2153 if test $USE_MAINTAINER_MODE = yes; then
2154 MAINT=
2155 else
2156 MAINT=#
2160 # Check whether --enable-locallisppath was given.
2161 if test "${enable_locallisppath+set}" = set; then
2162 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2163 locallisppath=
2164 elif test "${enableval}" != "yes"; then
2165 locallisppath=${enableval}
2170 #### Make srcdir absolute, if it isn't already. It's important to
2171 #### avoid running the path through pwd unnecessarily, since pwd can
2172 #### give you automounter prefixes, which can go away. We do all this
2173 #### so Emacs can find its files when run uninstalled.
2174 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2175 unset CDPATH
2176 case "${srcdir}" in
2177 /* ) ;;
2179 ## We may be able to use the $PWD environment variable to make this
2180 ## absolute. But sometimes PWD is inaccurate.
2181 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2182 ## but that tested only for a well-formed and valid PWD,
2183 ## it did not object when PWD was well-formed and valid but just wrong.
2184 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2185 then
2186 srcdir="$PWD"
2187 else
2188 srcdir="`(cd ${srcdir}; pwd)`"
2191 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2192 esac
2194 #### Check if the source directory already has a configured system in it.
2195 if test `pwd` != `(cd ${srcdir} && pwd)` \
2196 && test -f "${srcdir}/src/config.h" ; then
2197 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2198 as a build directory right now; it has been configured in its own
2199 right. To configure in another directory as well, you MUST
2200 use GNU make. If you do not have GNU make, then you must
2201 now do \`make distclean' in ${srcdir},
2202 and then run $0 again." >&5
2203 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2204 as a build directory right now; it has been configured in its own
2205 right. To configure in another directory as well, you MUST
2206 use GNU make. If you do not have GNU make, then you must
2207 now do \`make distclean' in ${srcdir},
2208 and then run $0 again." >&2;}
2211 #### Given the configuration name, set machfile and opsysfile to the
2212 #### names of the m/*.h and s/*.h files we should use.
2214 ### Canonicalize the configuration name.
2216 ac_aux_dir=
2217 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2218 if test -f "$ac_dir/install-sh"; then
2219 ac_aux_dir=$ac_dir
2220 ac_install_sh="$ac_aux_dir/install-sh -c"
2221 break
2222 elif test -f "$ac_dir/install.sh"; then
2223 ac_aux_dir=$ac_dir
2224 ac_install_sh="$ac_aux_dir/install.sh -c"
2225 break
2226 elif test -f "$ac_dir/shtool"; then
2227 ac_aux_dir=$ac_dir
2228 ac_install_sh="$ac_aux_dir/shtool install -c"
2229 break
2231 done
2232 if test -z "$ac_aux_dir"; then
2233 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2234 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2235 { (exit 1); exit 1; }; }
2238 # These three variables are undocumented and unsupported,
2239 # and are intended to be withdrawn in a future Autoconf release.
2240 # They can cause serious problems if a builder's source tree is in a directory
2241 # whose full name contains unusual characters.
2242 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2243 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2244 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2247 # Make sure we can run config.sub.
2248 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2249 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2250 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2251 { (exit 1); exit 1; }; }
2253 { echo "$as_me:$LINENO: checking build system type" >&5
2254 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2255 if test "${ac_cv_build+set}" = set; then
2256 echo $ECHO_N "(cached) $ECHO_C" >&6
2257 else
2258 ac_build_alias=$build_alias
2259 test "x$ac_build_alias" = x &&
2260 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2261 test "x$ac_build_alias" = x &&
2262 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2263 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2264 { (exit 1); exit 1; }; }
2265 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2266 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2267 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2268 { (exit 1); exit 1; }; }
2271 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2272 echo "${ECHO_T}$ac_cv_build" >&6; }
2273 case $ac_cv_build in
2274 *-*-*) ;;
2275 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2276 echo "$as_me: error: invalid value of canonical build" >&2;}
2277 { (exit 1); exit 1; }; };;
2278 esac
2279 build=$ac_cv_build
2280 ac_save_IFS=$IFS; IFS='-'
2281 set x $ac_cv_build
2282 shift
2283 build_cpu=$1
2284 build_vendor=$2
2285 shift; shift
2286 # Remember, the first character of IFS is used to create $*,
2287 # except with old shells:
2288 build_os=$*
2289 IFS=$ac_save_IFS
2290 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2293 { echo "$as_me:$LINENO: checking host system type" >&5
2294 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2295 if test "${ac_cv_host+set}" = set; then
2296 echo $ECHO_N "(cached) $ECHO_C" >&6
2297 else
2298 if test "x$host_alias" = x; then
2299 ac_cv_host=$ac_cv_build
2300 else
2301 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2302 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2303 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2304 { (exit 1); exit 1; }; }
2308 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2309 echo "${ECHO_T}$ac_cv_host" >&6; }
2310 case $ac_cv_host in
2311 *-*-*) ;;
2312 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2313 echo "$as_me: error: invalid value of canonical host" >&2;}
2314 { (exit 1); exit 1; }; };;
2315 esac
2316 host=$ac_cv_host
2317 ac_save_IFS=$IFS; IFS='-'
2318 set x $ac_cv_host
2319 shift
2320 host_cpu=$1
2321 host_vendor=$2
2322 shift; shift
2323 # Remember, the first character of IFS is used to create $*,
2324 # except with old shells:
2325 host_os=$*
2326 IFS=$ac_save_IFS
2327 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2330 canonical=$host
2331 configuration=${host_alias-${build_alias-$host}}
2335 ### If you add support for a new configuration, add code to this
2336 ### switch statement to recognize your configuration name and select
2337 ### the appropriate operating system and machine description files.
2339 ### You would hope that you could choose an m/*.h file pretty much
2340 ### based on the machine portion of the configuration name, and an s-
2341 ### file based on the operating system portion. However, it turns out
2342 ### that each m/*.h file is pretty manufacturer-specific - for
2343 ### example hp9000s300.h is a 68000 machine;
2344 ### mips.h, pmax.h are all MIPS
2345 ### machines. So we basically have to have a special case for each
2346 ### configuration name.
2348 ### As far as handling version numbers on operating systems is
2349 ### concerned, make sure things will fail in a fixable way. If
2350 ### /etc/MACHINES doesn't say anything about version numbers, be
2351 ### prepared to handle anything reasonably. If version numbers
2352 ### matter, be sure /etc/MACHINES says something about it.
2354 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2355 ### "System V Release 4"; he writes, "The old convention encouraged
2356 ### confusion between `system' and `release' levels'."
2358 machine='' opsys='' unported=no
2359 case "${canonical}" in
2361 ## FreeBSD ports
2362 *-*-freebsd* )
2363 opsys=freebsd
2364 case "${canonical}" in
2365 alpha*-*-freebsd*) machine=alpha ;;
2366 arm*-*-freebsd*) machine=arm ;;
2367 ia64-*-freebsd*) machine=ia64 ;;
2368 sparc64-*-freebsd*) machine=sparc ;;
2369 powerpc-*-freebsd*) machine=macppc ;;
2370 i[3456]86-*-freebsd*) machine=intel386 ;;
2371 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2372 esac
2375 ## FreeBSD kernel + glibc based userland
2376 *-*-kfreebsd*gnu* )
2377 opsys=gnu-kfreebsd
2378 case "${canonical}" in
2379 alpha*-*-kfreebsd*) machine=alpha ;;
2380 ia64-*-kfreebsd*) machine=ia64 ;;
2381 sparc64-*-kfreebsd*) machine=sparc ;;
2382 powerpc-*-kfreebsd*) machine=macppc ;;
2383 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2384 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2385 esac
2388 ## NetBSD ports
2389 *-*-netbsd* )
2390 opsys=netbsd
2391 if test -f /usr/lib/crti.o; then
2393 cat >>confdefs.h <<\_ACEOF
2394 #define HAVE_CRTIN
2395 _ACEOF
2399 case "${canonical}" in
2400 alpha*-*-netbsd*) machine=alpha ;;
2401 i[3456]86-*-netbsd*) machine=intel386 ;;
2402 m68k-*-netbsd*)
2403 # This is somewhat bogus.
2404 machine=hp9000s300 ;;
2405 mips-*-netbsd*) machine=pmax ;;
2406 mipsel-*-netbsd*) machine=pmax ;;
2407 mipseb-*-netbsd*) machine=pmax ;;
2408 powerpc-*-netbsd*) machine=macppc ;;
2409 sparc*-*-netbsd*) machine=sparc ;;
2410 vax-*-netbsd*) machine=vax ;;
2411 arm-*-netbsd*) machine=arm ;;
2412 x86_64-*-netbsd*) machine=amdx86-64 ;;
2413 hppa-*-netbsd*) machine=hp800 ;;
2414 esac
2417 ## OpenBSD ports
2418 *-*-openbsd* )
2419 opsys=openbsd
2420 case "${canonical}" in
2421 alpha*-*-openbsd*) machine=alpha ;;
2422 arm-*-openbsd*) machine=arm ;;
2423 hppa-*-openbsd*) machine=hp9000s300 ;;
2424 i386-*-openbsd*) machine=intel386 ;;
2425 m68k-*-openbsd*) machine=hp9000s300 ;;
2426 mips64-*-openbsd*) machine=mips64 ;;
2427 powerpc-*-openbsd*) machine=macppc ;;
2428 sparc*-*-openbsd*) machine=sparc ;;
2429 vax-*-openbsd*) machine=vax ;;
2430 x86_64-*-openbsd*) machine=amdx86-64 ;;
2431 esac
2434 ## LynxOS ports
2435 *-*-lynxos* )
2436 opsys=lynxos
2437 case "${canonical}" in
2438 i[3456]86-*-lynxos*) machine=intel386 ;;
2439 powerpc-*-lynxos*) machine=powerpc ;;
2440 esac
2443 ## BSDI ports
2444 *-*-bsdi* )
2445 opsys=bsdi
2446 case "${canonical}" in
2447 i[345]86-*-bsdi*) machine=intel386 ;;
2448 sparc-*-bsdi*) machine=sparc ;;
2449 powerpc-*-bsdi*) machine=macppc ;;
2450 esac
2451 case "${canonical}" in
2452 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2453 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2454 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2455 *-*-bsdi3* ) opsys=bsdos3 ;;
2456 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2457 esac
2460 alpha*-*-linux-gnu* )
2461 machine=alpha opsys=gnu-linux
2464 arm*-*-linux-gnu* )
2465 machine=arm opsys=gnu-linux
2468 ## Apple Darwin / Mac OS X
2469 *-apple-darwin* )
2470 case "${canonical}" in
2471 i[3456]86-* ) machine=intel386 ;;
2472 powerpc-* ) machine=powermac ;;
2473 * ) unported=yes ;;
2474 esac
2475 opsys=darwin
2476 # Define CPP as follows to make autoconf work correctly.
2477 CPP="${CC-cc} -E -no-cpp-precomp"
2478 # Use fink packages if available.
2479 if test -d /sw/include && test -d /sw/lib; then
2480 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2481 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2482 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2486 ## Compaq Nonstop
2487 mips-compaq-nonstopux* )
2488 machine=nonstopux opsys=nonstopux
2491 ## Cubix QBx/386
2492 i[3456]86-cubix-sysv* )
2493 machine=intel386 opsys=usg5-3
2496 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2497 machine=pmax opsys=bsd4-2
2499 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2500 machine=pmax opsys=bsd4-3
2502 mips-dec-ultrix* )
2503 machine=pmax opsys=ultrix4-3
2505 ## HP 9000 series 200 or 300
2506 m68*-hp-bsd* )
2507 machine=hp9000s300 opsys=bsd4-3
2509 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2510 m68*-hp-hpux* )
2511 case "`uname -r`" in
2512 ## Someone's system reports A.B8.05 for this.
2513 ## I wonder what other possibilities there are.
2514 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2515 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2516 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2517 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2518 *) machine=hp9000s300 opsys=hpux ;;
2519 esac
2522 ## HP 9000 series 700 and 800, running HP/UX
2523 hppa*-hp-hpux7* )
2524 machine=hp800 opsys=hpux
2526 hppa*-hp-hpux8* )
2527 machine=hp800 opsys=hpux8
2529 hppa*-hp-hpux9shr* )
2530 machine=hp800 opsys=hpux9shr
2532 hppa*-hp-hpux9* )
2533 machine=hp800 opsys=hpux9
2535 hppa*-hp-hpux10.2* )
2536 machine=hp800 opsys=hpux10-20
2538 hppa*-hp-hpux10* )
2539 machine=hp800 opsys=hpux10
2541 hppa*-hp-hpux1[1-9]* )
2542 machine=hp800 opsys=hpux11
2543 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2546 hppa*-*-linux-gnu* )
2547 machine=hp800 opsys=gnu-linux
2550 ## HP 9000 series 700 and 800, running HP/UX
2551 hppa*-hp-hpux* )
2552 ## Cross-compilation? Nah!
2553 case "`uname -r`" in
2554 ## Someone's system reports A.B8.05 for this.
2555 ## I wonder what other possibilities there are.
2556 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2557 *.08.* ) machine=hp800 opsys=hpux8 ;;
2558 *.09.* ) machine=hp800 opsys=hpux9 ;;
2559 *) machine=hp800 opsys=hpux10 ;;
2560 esac
2562 hppa*-*-nextstep* )
2563 machine=hp800 opsys=nextstep
2566 ## IBM machines
2567 i370-ibm-aix*)
2568 machine=ibm370aix opsys=usg5-3
2570 s390-*-linux-gnu* )
2571 machine=ibms390 opsys=gnu-linux
2573 s390x-*-linux-gnu* )
2574 machine=ibms390x opsys=gnu-linux
2576 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2577 machine=ibmrs6000 opsys=aix3-1
2579 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2580 machine=ibmrs6000 opsys=aix3-2-5
2582 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2583 machine=ibmrs6000 opsys=aix4-1
2585 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2586 machine=ibmrs6000 opsys=aix4-2
2588 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2589 machine=ibmrs6000 opsys=aix4-2
2591 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2592 machine=ibmrs6000 opsys=aix4-2
2594 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2595 machine=ibmrs6000 opsys=aix4
2597 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2598 machine=ibmrs6000 opsys=aix4-1
2600 rs6000-ibm-aix* | powerpc-ibm-aix* )
2601 machine=ibmrs6000 opsys=aix3-2
2604 ## Prime EXL
2605 i[3456]86-prime-sysv* )
2606 machine=i386 opsys=usg5-3
2609 ## ncr machine running svr4.3.
2610 i[3456]86-ncr-sysv4.3 )
2611 machine=ncr386 opsys=usg5-4-3
2614 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2615 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2616 i[3456]86-ncr-sysv* )
2617 machine=ncr386 opsys=usg5-4-2
2620 ## Macintosh PowerPC
2621 powerpc*-*-linux-gnu* )
2622 machine=macppc opsys=gnu-linux
2625 ## Workstations sold by MIPS
2626 ## This is not necessarily all workstations using the MIPS processor -
2627 ## Irises are produced by SGI, and DECstations by DEC.
2629 mips-mips-bsd* )
2630 machine=mips opsys=bsd4-3
2632 mips-mips-* )
2633 machine=mips opsys=usg5-2-2
2636 ## NeXT
2637 m68*-next-* | m68k-*-nextstep* )
2638 machine=m68k opsys=nextstep
2641 ## NEC EWS4800
2642 mips-nec-sysv4*)
2643 machine=ews4800 opsys=ux4800
2646 ## Siemens Nixdorf
2647 mips-siemens-sysv* | mips-sni-sysv*)
2648 machine=mips-siemens opsys=usg5-4
2649 NON_GNU_CC=/usr/ccs/bin/cc
2650 NON_GNU_CPP=/usr/ccs/lib/cpp
2653 ## Silicon Graphics machines
2654 ## Iris 4D
2655 mips-sgi-irix6.5 )
2656 machine=iris4d opsys=irix6-5
2657 # Without defining _LANGUAGE_C, things get masked out in the headers
2658 # so that, for instance, grepping for `free' in stdlib.h fails and
2659 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2660 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2661 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2664 ## Suns
2665 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2666 machine=sparc opsys=gnu-linux
2669 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2670 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2671 | rs6000-*-solaris2*)
2672 case "${canonical}" in
2673 i[3456]86-*-* ) machine=intel386 ;;
2674 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2675 powerpcle* ) machine=powerpcle ;;
2676 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2677 sparc* ) machine=sparc ;;
2678 * ) unported=yes ;;
2679 esac
2680 case "${canonical}" in
2681 *-sunos5.3* | *-solaris2.3* )
2682 opsys=sol2-3
2683 NON_GNU_CPP=/usr/ccs/lib/cpp
2685 *-sunos5.4* | *-solaris2.4* )
2686 opsys=sol2-4
2687 NON_GNU_CPP=/usr/ccs/lib/cpp
2688 RANLIB="ar -ts"
2690 *-sunos5.5* | *-solaris2.5* )
2691 opsys=sol2-5
2692 NON_GNU_CPP=/usr/ccs/lib/cpp
2693 RANLIB="ar -ts"
2695 *-sunos5.6* | *-solaris2.6* )
2696 opsys=sol2-6
2697 NON_GNU_CPP=/usr/ccs/lib/cpp
2698 RANLIB="ar -ts"
2700 *-sunos5* | *-solaris* )
2701 opsys=sol2-6
2702 emacs_check_sunpro_c=yes
2703 NON_GNU_CPP=/usr/ccs/lib/cpp
2705 * ) opsys=bsd4-2 ;;
2706 esac
2707 ## Watch out for a compiler that we know will not work.
2708 case "${canonical}" in
2709 *-solaris* | *-sunos5* )
2710 if [ "x$CC" = x/usr/ucb/cc ]; then
2711 ## /usr/ucb/cc doesn't work;
2712 ## we should find some other compiler that does work.
2713 unset CC
2716 *) ;;
2717 esac
2719 sparc-*-nextstep* )
2720 machine=sparc opsys=nextstep
2723 ## Tandem Integrity S2
2724 mips-tandem-sysv* )
2725 machine=tandem-s2 opsys=usg5-3
2728 ## Vaxen.
2729 vax-dec-* )
2730 machine=vax
2731 case "${canonical}" in
2732 *-bsd4.1* ) opsys=bsd4-1 ;;
2733 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2734 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2735 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2736 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2737 *-vms* ) opsys=vms ;;
2738 * ) unported=yes
2739 esac
2742 ## IA-64
2743 ia64*-*-linux* )
2744 machine=ia64 opsys=gnu-linux
2747 ## Intel 386 machines where we don't care about the manufacturer
2748 i[3456]86-*-* )
2749 machine=intel386
2750 case "${canonical}" in
2751 *-cygwin ) opsys=cygwin ;;
2752 *-darwin* ) opsys=darwin
2753 CPP="${CC-cc} -E -no-cpp-precomp"
2755 *-linux-gnu* ) opsys=gnu-linux ;;
2756 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2757 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2758 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2759 *-386bsd* ) opsys=386bsd ;;
2760 *-nextstep* ) opsys=nextstep ;;
2761 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2762 esac
2765 ## m68k Linux-based GNU system
2766 m68k-*-linux-gnu* )
2767 machine=m68k opsys=gnu-linux
2770 ## Mips Linux-based GNU system
2771 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2772 machine=mips opsys=gnu-linux
2775 ## UXP/DS
2776 sparc-fujitsu-sysv4* )
2777 machine=sparc opsys=uxpds
2778 NON_GNU_CPP=/usr/ccs/lib/cpp
2779 RANLIB="ar -ts"
2782 ## AMD x86-64 Linux-based GNU system
2783 x86_64-*-linux-gnu* )
2784 machine=amdx86-64 opsys=gnu-linux
2787 ## Tensilica Xtensa Linux-based GNU system
2788 xtensa*-*-linux-gnu* )
2789 machine=xtensa opsys=gnu-linux
2793 unported=yes
2795 esac
2797 ### If the code above didn't choose an operating system, just choose
2798 ### an operating system based on the configuration name. You really
2799 ### only want to use this when you have no idea what the right
2800 ### operating system is; if you know what operating systems a machine
2801 ### runs, it's cleaner to make it explicit in the case statement
2802 ### above.
2803 if test x"${opsys}" = x; then
2804 case "${canonical}" in
2805 *-gnu* ) opsys=gnu ;;
2806 *-bsd4.[01] ) opsys=bsd4-1 ;;
2807 *-bsd4.2 ) opsys=bsd4-2 ;;
2808 *-bsd4.3 ) opsys=bsd4-3 ;;
2809 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2810 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2811 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2812 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2813 *-sysv4.2uw* ) opsys=unixware ;;
2814 *-sysv5uw* ) opsys=unixware ;;
2815 *-sysv5OpenUNIX* ) opsys=unixware ;;
2816 *-sysv4.1* | *-sysvr4.1* )
2817 NON_GNU_CPP=/usr/lib/cpp
2818 opsys=usg5-4 ;;
2819 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2820 if [ x$NON_GNU_CPP = x ]; then
2821 if [ -f /usr/ccs/lib/cpp ]; then
2822 NON_GNU_CPP=/usr/ccs/lib/cpp
2823 else
2824 NON_GNU_CPP=/lib/cpp
2827 opsys=usg5-4-2 ;;
2828 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2830 unported=yes
2832 esac
2837 if test $unported = yes; then
2838 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2839 Check \`etc/MACHINES' for recognized configuration names." >&5
2840 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2841 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2842 { (exit 1); exit 1; }; }
2845 machfile="m/${machine}.h"
2846 opsysfile="s/${opsys}.h"
2849 #### Choose a compiler.
2850 test -n "$CC" && cc_specified=yes
2852 # Save the value of CFLAGS that the user specified.
2853 SPECIFIED_CFLAGS="$CFLAGS"
2855 ac_ext=c
2856 ac_cpp='$CPP $CPPFLAGS'
2857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2860 if test -n "$ac_tool_prefix"; then
2861 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2862 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2865 if test "${ac_cv_prog_CC+set}" = set; then
2866 echo $ECHO_N "(cached) $ECHO_C" >&6
2867 else
2868 if test -n "$CC"; then
2869 ac_cv_prog_CC="$CC" # Let the user override the test.
2870 else
2871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2872 for as_dir in $PATH
2874 IFS=$as_save_IFS
2875 test -z "$as_dir" && as_dir=.
2876 for ac_exec_ext in '' $ac_executable_extensions; do
2877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2878 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2880 break 2
2882 done
2883 done
2884 IFS=$as_save_IFS
2888 CC=$ac_cv_prog_CC
2889 if test -n "$CC"; then
2890 { echo "$as_me:$LINENO: result: $CC" >&5
2891 echo "${ECHO_T}$CC" >&6; }
2892 else
2893 { echo "$as_me:$LINENO: result: no" >&5
2894 echo "${ECHO_T}no" >&6; }
2899 if test -z "$ac_cv_prog_CC"; then
2900 ac_ct_CC=$CC
2901 # Extract the first word of "gcc", so it can be a program name with args.
2902 set dummy gcc; ac_word=$2
2903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2905 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2906 echo $ECHO_N "(cached) $ECHO_C" >&6
2907 else
2908 if test -n "$ac_ct_CC"; then
2909 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2910 else
2911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2912 for as_dir in $PATH
2914 IFS=$as_save_IFS
2915 test -z "$as_dir" && as_dir=.
2916 for ac_exec_ext in '' $ac_executable_extensions; do
2917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2918 ac_cv_prog_ac_ct_CC="gcc"
2919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2920 break 2
2922 done
2923 done
2924 IFS=$as_save_IFS
2928 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2929 if test -n "$ac_ct_CC"; then
2930 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2931 echo "${ECHO_T}$ac_ct_CC" >&6; }
2932 else
2933 { echo "$as_me:$LINENO: result: no" >&5
2934 echo "${ECHO_T}no" >&6; }
2937 if test "x$ac_ct_CC" = x; then
2938 CC=""
2939 else
2940 case $cross_compiling:$ac_tool_warned in
2941 yes:)
2942 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2943 whose name does not start with the host triplet. If you think this
2944 configuration is useful to you, please write to autoconf@gnu.org." >&5
2945 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2946 whose name does not start with the host triplet. If you think this
2947 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2948 ac_tool_warned=yes ;;
2949 esac
2950 CC=$ac_ct_CC
2952 else
2953 CC="$ac_cv_prog_CC"
2956 if test -z "$CC"; then
2957 if test -n "$ac_tool_prefix"; then
2958 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2959 set dummy ${ac_tool_prefix}cc; ac_word=$2
2960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2962 if test "${ac_cv_prog_CC+set}" = set; then
2963 echo $ECHO_N "(cached) $ECHO_C" >&6
2964 else
2965 if test -n "$CC"; then
2966 ac_cv_prog_CC="$CC" # Let the user override the test.
2967 else
2968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2969 for as_dir in $PATH
2971 IFS=$as_save_IFS
2972 test -z "$as_dir" && as_dir=.
2973 for ac_exec_ext in '' $ac_executable_extensions; do
2974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2975 ac_cv_prog_CC="${ac_tool_prefix}cc"
2976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2977 break 2
2979 done
2980 done
2981 IFS=$as_save_IFS
2985 CC=$ac_cv_prog_CC
2986 if test -n "$CC"; then
2987 { echo "$as_me:$LINENO: result: $CC" >&5
2988 echo "${ECHO_T}$CC" >&6; }
2989 else
2990 { echo "$as_me:$LINENO: result: no" >&5
2991 echo "${ECHO_T}no" >&6; }
2997 if test -z "$CC"; then
2998 # Extract the first word of "cc", so it can be a program name with args.
2999 set dummy cc; ac_word=$2
3000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3002 if test "${ac_cv_prog_CC+set}" = set; then
3003 echo $ECHO_N "(cached) $ECHO_C" >&6
3004 else
3005 if test -n "$CC"; then
3006 ac_cv_prog_CC="$CC" # Let the user override the test.
3007 else
3008 ac_prog_rejected=no
3009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3010 for as_dir in $PATH
3012 IFS=$as_save_IFS
3013 test -z "$as_dir" && as_dir=.
3014 for ac_exec_ext in '' $ac_executable_extensions; do
3015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3016 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3017 ac_prog_rejected=yes
3018 continue
3020 ac_cv_prog_CC="cc"
3021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3022 break 2
3024 done
3025 done
3026 IFS=$as_save_IFS
3028 if test $ac_prog_rejected = yes; then
3029 # We found a bogon in the path, so make sure we never use it.
3030 set dummy $ac_cv_prog_CC
3031 shift
3032 if test $# != 0; then
3033 # We chose a different compiler from the bogus one.
3034 # However, it has the same basename, so the bogon will be chosen
3035 # first if we set CC to just the basename; use the full file name.
3036 shift
3037 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3042 CC=$ac_cv_prog_CC
3043 if test -n "$CC"; then
3044 { echo "$as_me:$LINENO: result: $CC" >&5
3045 echo "${ECHO_T}$CC" >&6; }
3046 else
3047 { echo "$as_me:$LINENO: result: no" >&5
3048 echo "${ECHO_T}no" >&6; }
3053 if test -z "$CC"; then
3054 if test -n "$ac_tool_prefix"; then
3055 for ac_prog in cl.exe
3057 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3058 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3061 if test "${ac_cv_prog_CC+set}" = set; then
3062 echo $ECHO_N "(cached) $ECHO_C" >&6
3063 else
3064 if test -n "$CC"; then
3065 ac_cv_prog_CC="$CC" # Let the user override the test.
3066 else
3067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068 for as_dir in $PATH
3070 IFS=$as_save_IFS
3071 test -z "$as_dir" && as_dir=.
3072 for ac_exec_ext in '' $ac_executable_extensions; do
3073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3074 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3076 break 2
3078 done
3079 done
3080 IFS=$as_save_IFS
3084 CC=$ac_cv_prog_CC
3085 if test -n "$CC"; then
3086 { echo "$as_me:$LINENO: result: $CC" >&5
3087 echo "${ECHO_T}$CC" >&6; }
3088 else
3089 { echo "$as_me:$LINENO: result: no" >&5
3090 echo "${ECHO_T}no" >&6; }
3094 test -n "$CC" && break
3095 done
3097 if test -z "$CC"; then
3098 ac_ct_CC=$CC
3099 for ac_prog in cl.exe
3101 # Extract the first word of "$ac_prog", so it can be a program name with args.
3102 set dummy $ac_prog; ac_word=$2
3103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3105 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3106 echo $ECHO_N "(cached) $ECHO_C" >&6
3107 else
3108 if test -n "$ac_ct_CC"; then
3109 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3110 else
3111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3112 for as_dir in $PATH
3114 IFS=$as_save_IFS
3115 test -z "$as_dir" && as_dir=.
3116 for ac_exec_ext in '' $ac_executable_extensions; do
3117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3118 ac_cv_prog_ac_ct_CC="$ac_prog"
3119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3120 break 2
3122 done
3123 done
3124 IFS=$as_save_IFS
3128 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3129 if test -n "$ac_ct_CC"; then
3130 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3131 echo "${ECHO_T}$ac_ct_CC" >&6; }
3132 else
3133 { echo "$as_me:$LINENO: result: no" >&5
3134 echo "${ECHO_T}no" >&6; }
3138 test -n "$ac_ct_CC" && break
3139 done
3141 if test "x$ac_ct_CC" = x; then
3142 CC=""
3143 else
3144 case $cross_compiling:$ac_tool_warned in
3145 yes:)
3146 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3147 whose name does not start with the host triplet. If you think this
3148 configuration is useful to you, please write to autoconf@gnu.org." >&5
3149 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3150 whose name does not start with the host triplet. If you think this
3151 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3152 ac_tool_warned=yes ;;
3153 esac
3154 CC=$ac_ct_CC
3161 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3162 See \`config.log' for more details." >&5
3163 echo "$as_me: error: no acceptable C compiler found in \$PATH
3164 See \`config.log' for more details." >&2;}
3165 { (exit 1); exit 1; }; }
3167 # Provide some information about the compiler.
3168 echo "$as_me:$LINENO: checking for C compiler version" >&5
3169 ac_compiler=`set X $ac_compile; echo $2`
3170 { (ac_try="$ac_compiler --version >&5"
3171 case "(($ac_try" in
3172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173 *) ac_try_echo=$ac_try;;
3174 esac
3175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3176 (eval "$ac_compiler --version >&5") 2>&5
3177 ac_status=$?
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); }
3180 { (ac_try="$ac_compiler -v >&5"
3181 case "(($ac_try" in
3182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3183 *) ac_try_echo=$ac_try;;
3184 esac
3185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3186 (eval "$ac_compiler -v >&5") 2>&5
3187 ac_status=$?
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); }
3190 { (ac_try="$ac_compiler -V >&5"
3191 case "(($ac_try" in
3192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3193 *) ac_try_echo=$ac_try;;
3194 esac
3195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3196 (eval "$ac_compiler -V >&5") 2>&5
3197 ac_status=$?
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); }
3201 cat >conftest.$ac_ext <<_ACEOF
3202 /* confdefs.h. */
3203 _ACEOF
3204 cat confdefs.h >>conftest.$ac_ext
3205 cat >>conftest.$ac_ext <<_ACEOF
3206 /* end confdefs.h. */
3209 main ()
3213 return 0;
3215 _ACEOF
3216 ac_clean_files_save=$ac_clean_files
3217 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3218 # Try to create an executable without -o first, disregard a.out.
3219 # It will help us diagnose broken compilers, and finding out an intuition
3220 # of exeext.
3221 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3222 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3223 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3225 # List of possible output files, starting from the most likely.
3226 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3227 # only as a last resort. b.out is created by i960 compilers.
3228 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3230 # The IRIX 6 linker writes into existing files which may not be
3231 # executable, retaining their permissions. Remove them first so a
3232 # subsequent execution test works.
3233 ac_rmfiles=
3234 for ac_file in $ac_files
3236 case $ac_file in
3237 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3238 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3239 esac
3240 done
3241 rm -f $ac_rmfiles
3243 if { (ac_try="$ac_link_default"
3244 case "(($ac_try" in
3245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246 *) ac_try_echo=$ac_try;;
3247 esac
3248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3249 (eval "$ac_link_default") 2>&5
3250 ac_status=$?
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); }; then
3253 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3254 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3255 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3256 # so that the user can short-circuit this test for compilers unknown to
3257 # Autoconf.
3258 for ac_file in $ac_files ''
3260 test -f "$ac_file" || continue
3261 case $ac_file in
3262 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3264 [ab].out )
3265 # We found the default executable, but exeext='' is most
3266 # certainly right.
3267 break;;
3268 *.* )
3269 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3270 then :; else
3271 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3273 # We set ac_cv_exeext here because the later test for it is not
3274 # safe: cross compilers may not add the suffix if given an `-o'
3275 # argument, so we may need to know it at that point already.
3276 # Even if this section looks crufty: it has the advantage of
3277 # actually working.
3278 break;;
3280 break;;
3281 esac
3282 done
3283 test "$ac_cv_exeext" = no && ac_cv_exeext=
3285 else
3286 ac_file=''
3289 { echo "$as_me:$LINENO: result: $ac_file" >&5
3290 echo "${ECHO_T}$ac_file" >&6; }
3291 if test -z "$ac_file"; then
3292 echo "$as_me: failed program was:" >&5
3293 sed 's/^/| /' conftest.$ac_ext >&5
3295 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3296 See \`config.log' for more details." >&5
3297 echo "$as_me: error: C compiler cannot create executables
3298 See \`config.log' for more details." >&2;}
3299 { (exit 77); exit 77; }; }
3302 ac_exeext=$ac_cv_exeext
3304 # Check that the compiler produces executables we can run. If not, either
3305 # the compiler is broken, or we cross compile.
3306 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3307 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3308 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3309 # If not cross compiling, check that we can run a simple program.
3310 if test "$cross_compiling" != yes; then
3311 if { ac_try='./$ac_file'
3312 { (case "(($ac_try" in
3313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314 *) ac_try_echo=$ac_try;;
3315 esac
3316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3317 (eval "$ac_try") 2>&5
3318 ac_status=$?
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); }; }; then
3321 cross_compiling=no
3322 else
3323 if test "$cross_compiling" = maybe; then
3324 cross_compiling=yes
3325 else
3326 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3327 If you meant to cross compile, use \`--host'.
3328 See \`config.log' for more details." >&5
3329 echo "$as_me: error: cannot run C compiled programs.
3330 If you meant to cross compile, use \`--host'.
3331 See \`config.log' for more details." >&2;}
3332 { (exit 1); exit 1; }; }
3336 { echo "$as_me:$LINENO: result: yes" >&5
3337 echo "${ECHO_T}yes" >&6; }
3339 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3340 ac_clean_files=$ac_clean_files_save
3341 # Check that the compiler produces executables we can run. If not, either
3342 # the compiler is broken, or we cross compile.
3343 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3344 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3345 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3346 echo "${ECHO_T}$cross_compiling" >&6; }
3348 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3349 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3350 if { (ac_try="$ac_link"
3351 case "(($ac_try" in
3352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353 *) ac_try_echo=$ac_try;;
3354 esac
3355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3356 (eval "$ac_link") 2>&5
3357 ac_status=$?
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); }; then
3360 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3361 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3362 # work properly (i.e., refer to `conftest.exe'), while it won't with
3363 # `rm'.
3364 for ac_file in conftest.exe conftest conftest.*; do
3365 test -f "$ac_file" || continue
3366 case $ac_file in
3367 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3368 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3369 break;;
3370 * ) break;;
3371 esac
3372 done
3373 else
3374 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3375 See \`config.log' for more details." >&5
3376 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3377 See \`config.log' for more details." >&2;}
3378 { (exit 1); exit 1; }; }
3381 rm -f conftest$ac_cv_exeext
3382 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3383 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3385 rm -f conftest.$ac_ext
3386 EXEEXT=$ac_cv_exeext
3387 ac_exeext=$EXEEXT
3388 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3389 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3390 if test "${ac_cv_objext+set}" = set; then
3391 echo $ECHO_N "(cached) $ECHO_C" >&6
3392 else
3393 cat >conftest.$ac_ext <<_ACEOF
3394 /* confdefs.h. */
3395 _ACEOF
3396 cat confdefs.h >>conftest.$ac_ext
3397 cat >>conftest.$ac_ext <<_ACEOF
3398 /* end confdefs.h. */
3401 main ()
3405 return 0;
3407 _ACEOF
3408 rm -f conftest.o conftest.obj
3409 if { (ac_try="$ac_compile"
3410 case "(($ac_try" in
3411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3412 *) ac_try_echo=$ac_try;;
3413 esac
3414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3415 (eval "$ac_compile") 2>&5
3416 ac_status=$?
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); }; then
3419 for ac_file in conftest.o conftest.obj conftest.*; do
3420 test -f "$ac_file" || continue;
3421 case $ac_file in
3422 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3423 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3424 break;;
3425 esac
3426 done
3427 else
3428 echo "$as_me: failed program was:" >&5
3429 sed 's/^/| /' conftest.$ac_ext >&5
3431 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3432 See \`config.log' for more details." >&5
3433 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3434 See \`config.log' for more details." >&2;}
3435 { (exit 1); exit 1; }; }
3438 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3440 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3441 echo "${ECHO_T}$ac_cv_objext" >&6; }
3442 OBJEXT=$ac_cv_objext
3443 ac_objext=$OBJEXT
3444 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3445 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3446 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3447 echo $ECHO_N "(cached) $ECHO_C" >&6
3448 else
3449 cat >conftest.$ac_ext <<_ACEOF
3450 /* confdefs.h. */
3451 _ACEOF
3452 cat confdefs.h >>conftest.$ac_ext
3453 cat >>conftest.$ac_ext <<_ACEOF
3454 /* end confdefs.h. */
3457 main ()
3459 #ifndef __GNUC__
3460 choke me
3461 #endif
3464 return 0;
3466 _ACEOF
3467 rm -f conftest.$ac_objext
3468 if { (ac_try="$ac_compile"
3469 case "(($ac_try" in
3470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3471 *) ac_try_echo=$ac_try;;
3472 esac
3473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3474 (eval "$ac_compile") 2>conftest.er1
3475 ac_status=$?
3476 grep -v '^ *+' conftest.er1 >conftest.err
3477 rm -f conftest.er1
3478 cat conftest.err >&5
3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); } && {
3481 test -z "$ac_c_werror_flag" ||
3482 test ! -s conftest.err
3483 } && test -s conftest.$ac_objext; then
3484 ac_compiler_gnu=yes
3485 else
3486 echo "$as_me: failed program was:" >&5
3487 sed 's/^/| /' conftest.$ac_ext >&5
3489 ac_compiler_gnu=no
3492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3493 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3496 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3497 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3498 GCC=`test $ac_compiler_gnu = yes && echo yes`
3499 ac_test_CFLAGS=${CFLAGS+set}
3500 ac_save_CFLAGS=$CFLAGS
3501 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3502 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3503 if test "${ac_cv_prog_cc_g+set}" = set; then
3504 echo $ECHO_N "(cached) $ECHO_C" >&6
3505 else
3506 ac_save_c_werror_flag=$ac_c_werror_flag
3507 ac_c_werror_flag=yes
3508 ac_cv_prog_cc_g=no
3509 CFLAGS="-g"
3510 cat >conftest.$ac_ext <<_ACEOF
3511 /* confdefs.h. */
3512 _ACEOF
3513 cat confdefs.h >>conftest.$ac_ext
3514 cat >>conftest.$ac_ext <<_ACEOF
3515 /* end confdefs.h. */
3518 main ()
3522 return 0;
3524 _ACEOF
3525 rm -f conftest.$ac_objext
3526 if { (ac_try="$ac_compile"
3527 case "(($ac_try" in
3528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3529 *) ac_try_echo=$ac_try;;
3530 esac
3531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3532 (eval "$ac_compile") 2>conftest.er1
3533 ac_status=$?
3534 grep -v '^ *+' conftest.er1 >conftest.err
3535 rm -f conftest.er1
3536 cat conftest.err >&5
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); } && {
3539 test -z "$ac_c_werror_flag" ||
3540 test ! -s conftest.err
3541 } && test -s conftest.$ac_objext; then
3542 ac_cv_prog_cc_g=yes
3543 else
3544 echo "$as_me: failed program was:" >&5
3545 sed 's/^/| /' conftest.$ac_ext >&5
3547 CFLAGS=""
3548 cat >conftest.$ac_ext <<_ACEOF
3549 /* confdefs.h. */
3550 _ACEOF
3551 cat confdefs.h >>conftest.$ac_ext
3552 cat >>conftest.$ac_ext <<_ACEOF
3553 /* end confdefs.h. */
3556 main ()
3560 return 0;
3562 _ACEOF
3563 rm -f conftest.$ac_objext
3564 if { (ac_try="$ac_compile"
3565 case "(($ac_try" in
3566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3567 *) ac_try_echo=$ac_try;;
3568 esac
3569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3570 (eval "$ac_compile") 2>conftest.er1
3571 ac_status=$?
3572 grep -v '^ *+' conftest.er1 >conftest.err
3573 rm -f conftest.er1
3574 cat conftest.err >&5
3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576 (exit $ac_status); } && {
3577 test -z "$ac_c_werror_flag" ||
3578 test ! -s conftest.err
3579 } && test -s conftest.$ac_objext; then
3581 else
3582 echo "$as_me: failed program was:" >&5
3583 sed 's/^/| /' conftest.$ac_ext >&5
3585 ac_c_werror_flag=$ac_save_c_werror_flag
3586 CFLAGS="-g"
3587 cat >conftest.$ac_ext <<_ACEOF
3588 /* confdefs.h. */
3589 _ACEOF
3590 cat confdefs.h >>conftest.$ac_ext
3591 cat >>conftest.$ac_ext <<_ACEOF
3592 /* end confdefs.h. */
3595 main ()
3599 return 0;
3601 _ACEOF
3602 rm -f conftest.$ac_objext
3603 if { (ac_try="$ac_compile"
3604 case "(($ac_try" in
3605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3606 *) ac_try_echo=$ac_try;;
3607 esac
3608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3609 (eval "$ac_compile") 2>conftest.er1
3610 ac_status=$?
3611 grep -v '^ *+' conftest.er1 >conftest.err
3612 rm -f conftest.er1
3613 cat conftest.err >&5
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); } && {
3616 test -z "$ac_c_werror_flag" ||
3617 test ! -s conftest.err
3618 } && test -s conftest.$ac_objext; then
3619 ac_cv_prog_cc_g=yes
3620 else
3621 echo "$as_me: failed program was:" >&5
3622 sed 's/^/| /' conftest.$ac_ext >&5
3627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3634 ac_c_werror_flag=$ac_save_c_werror_flag
3636 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3637 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3638 if test "$ac_test_CFLAGS" = set; then
3639 CFLAGS=$ac_save_CFLAGS
3640 elif test $ac_cv_prog_cc_g = yes; then
3641 if test "$GCC" = yes; then
3642 CFLAGS="-g -O2"
3643 else
3644 CFLAGS="-g"
3646 else
3647 if test "$GCC" = yes; then
3648 CFLAGS="-O2"
3649 else
3650 CFLAGS=
3653 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3654 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3655 if test "${ac_cv_prog_cc_c89+set}" = set; then
3656 echo $ECHO_N "(cached) $ECHO_C" >&6
3657 else
3658 ac_cv_prog_cc_c89=no
3659 ac_save_CC=$CC
3660 cat >conftest.$ac_ext <<_ACEOF
3661 /* confdefs.h. */
3662 _ACEOF
3663 cat confdefs.h >>conftest.$ac_ext
3664 cat >>conftest.$ac_ext <<_ACEOF
3665 /* end confdefs.h. */
3666 #include <stdarg.h>
3667 #include <stdio.h>
3668 #include <sys/types.h>
3669 #include <sys/stat.h>
3670 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3671 struct buf { int x; };
3672 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3673 static char *e (p, i)
3674 char **p;
3675 int i;
3677 return p[i];
3679 static char *f (char * (*g) (char **, int), char **p, ...)
3681 char *s;
3682 va_list v;
3683 va_start (v,p);
3684 s = g (p, va_arg (v,int));
3685 va_end (v);
3686 return s;
3689 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3690 function prototypes and stuff, but not '\xHH' hex character constants.
3691 These don't provoke an error unfortunately, instead are silently treated
3692 as 'x'. The following induces an error, until -std is added to get
3693 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3694 array size at least. It's necessary to write '\x00'==0 to get something
3695 that's true only with -std. */
3696 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3698 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3699 inside strings and character constants. */
3700 #define FOO(x) 'x'
3701 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3703 int test (int i, double x);
3704 struct s1 {int (*f) (int a);};
3705 struct s2 {int (*f) (double a);};
3706 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3707 int argc;
3708 char **argv;
3710 main ()
3712 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3714 return 0;
3716 _ACEOF
3717 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3718 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3720 CC="$ac_save_CC $ac_arg"
3721 rm -f conftest.$ac_objext
3722 if { (ac_try="$ac_compile"
3723 case "(($ac_try" in
3724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3725 *) ac_try_echo=$ac_try;;
3726 esac
3727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3728 (eval "$ac_compile") 2>conftest.er1
3729 ac_status=$?
3730 grep -v '^ *+' conftest.er1 >conftest.err
3731 rm -f conftest.er1
3732 cat conftest.err >&5
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); } && {
3735 test -z "$ac_c_werror_flag" ||
3736 test ! -s conftest.err
3737 } && test -s conftest.$ac_objext; then
3738 ac_cv_prog_cc_c89=$ac_arg
3739 else
3740 echo "$as_me: failed program was:" >&5
3741 sed 's/^/| /' conftest.$ac_ext >&5
3746 rm -f core conftest.err conftest.$ac_objext
3747 test "x$ac_cv_prog_cc_c89" != "xno" && break
3748 done
3749 rm -f conftest.$ac_ext
3750 CC=$ac_save_CC
3753 # AC_CACHE_VAL
3754 case "x$ac_cv_prog_cc_c89" in
3756 { echo "$as_me:$LINENO: result: none needed" >&5
3757 echo "${ECHO_T}none needed" >&6; } ;;
3758 xno)
3759 { echo "$as_me:$LINENO: result: unsupported" >&5
3760 echo "${ECHO_T}unsupported" >&6; } ;;
3762 CC="$CC $ac_cv_prog_cc_c89"
3763 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3764 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3765 esac
3768 ac_ext=c
3769 ac_cpp='$CPP $CPPFLAGS'
3770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3775 # On Suns, sometimes $CPP names a directory.
3776 if test -n "$CPP" && test -d "$CPP"; then
3777 CPP=
3780 ## If not using gcc, and on Solaris, and no CPP specified, see if
3781 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3782 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3783 test x"$CPP" = x; then
3784 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3785 echo $ECHO_N "checking whether we are using a Sun C compiler... $ECHO_C" >&6; }
3787 if test "${emacs_cv_sunpro_c+set}" = set; then
3788 echo $ECHO_N "(cached) $ECHO_C" >&6
3789 else
3790 cat >conftest.$ac_ext <<_ACEOF
3791 /* confdefs.h. */
3792 _ACEOF
3793 cat confdefs.h >>conftest.$ac_ext
3794 cat >>conftest.$ac_ext <<_ACEOF
3795 /* end confdefs.h. */
3798 main ()
3800 #ifndef __SUNPRO_C
3801 fail;
3802 #endif
3805 return 0;
3807 _ACEOF
3808 rm -f conftest.$ac_objext conftest$ac_exeext
3809 if { (ac_try="$ac_link"
3810 case "(($ac_try" in
3811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3812 *) ac_try_echo=$ac_try;;
3813 esac
3814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3815 (eval "$ac_link") 2>conftest.er1
3816 ac_status=$?
3817 grep -v '^ *+' conftest.er1 >conftest.err
3818 rm -f conftest.er1
3819 cat conftest.err >&5
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); } && {
3822 test -z "$ac_c_werror_flag" ||
3823 test ! -s conftest.err
3824 } && test -s conftest$ac_exeext &&
3825 $as_test_x conftest$ac_exeext; then
3826 emacs_cv_sunpro_c=yes
3827 else
3828 echo "$as_me: failed program was:" >&5
3829 sed 's/^/| /' conftest.$ac_ext >&5
3831 emacs_cv_sunpro_c=no
3834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3835 conftest$ac_exeext conftest.$ac_ext
3838 { echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
3839 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3841 if test x"$emacs_cv_sunpro_c" = xyes; then
3842 NON_GNU_CPP="$CC -E -Xs"
3846 #### Some systems specify a CPP to use unless we are using GCC.
3847 #### Now that we know whether we are using GCC, we can decide whether
3848 #### to use that one.
3849 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3850 then
3851 CPP="$NON_GNU_CPP"
3854 #### Some systems specify a CC to use unless we are using GCC.
3855 #### Now that we know whether we are using GCC, we can decide whether
3856 #### to use that one.
3857 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3858 test x$cc_specified != xyes
3859 then
3860 CC="$NON_GNU_CC"
3863 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3864 then
3865 CC="$CC $GCC_TEST_OPTIONS"
3868 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3869 then
3870 CC="$CC $NON_GCC_TEST_OPTIONS"
3873 ac_ext=c
3874 ac_cpp='$CPP $CPPFLAGS'
3875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3878 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3879 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3880 # On Suns, sometimes $CPP names a directory.
3881 if test -n "$CPP" && test -d "$CPP"; then
3882 CPP=
3884 if test -z "$CPP"; then
3885 if test "${ac_cv_prog_CPP+set}" = set; then
3886 echo $ECHO_N "(cached) $ECHO_C" >&6
3887 else
3888 # Double quotes because CPP needs to be expanded
3889 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3891 ac_preproc_ok=false
3892 for ac_c_preproc_warn_flag in '' yes
3894 # Use a header file that comes with gcc, so configuring glibc
3895 # with a fresh cross-compiler works.
3896 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3897 # <limits.h> exists even on freestanding compilers.
3898 # On the NeXT, cc -E runs the code through the compiler's parser,
3899 # not just through cpp. "Syntax error" is here to catch this case.
3900 cat >conftest.$ac_ext <<_ACEOF
3901 /* confdefs.h. */
3902 _ACEOF
3903 cat confdefs.h >>conftest.$ac_ext
3904 cat >>conftest.$ac_ext <<_ACEOF
3905 /* end confdefs.h. */
3906 #ifdef __STDC__
3907 # include <limits.h>
3908 #else
3909 # include <assert.h>
3910 #endif
3911 Syntax error
3912 _ACEOF
3913 if { (ac_try="$ac_cpp conftest.$ac_ext"
3914 case "(($ac_try" in
3915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3916 *) ac_try_echo=$ac_try;;
3917 esac
3918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3919 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3920 ac_status=$?
3921 grep -v '^ *+' conftest.er1 >conftest.err
3922 rm -f conftest.er1
3923 cat conftest.err >&5
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); } >/dev/null && {
3926 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3927 test ! -s conftest.err
3928 }; then
3930 else
3931 echo "$as_me: failed program was:" >&5
3932 sed 's/^/| /' conftest.$ac_ext >&5
3934 # Broken: fails on valid input.
3935 continue
3938 rm -f conftest.err conftest.$ac_ext
3940 # OK, works on sane cases. Now check whether nonexistent headers
3941 # can be detected and how.
3942 cat >conftest.$ac_ext <<_ACEOF
3943 /* confdefs.h. */
3944 _ACEOF
3945 cat confdefs.h >>conftest.$ac_ext
3946 cat >>conftest.$ac_ext <<_ACEOF
3947 /* end confdefs.h. */
3948 #include <ac_nonexistent.h>
3949 _ACEOF
3950 if { (ac_try="$ac_cpp conftest.$ac_ext"
3951 case "(($ac_try" in
3952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3953 *) ac_try_echo=$ac_try;;
3954 esac
3955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3956 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3957 ac_status=$?
3958 grep -v '^ *+' conftest.er1 >conftest.err
3959 rm -f conftest.er1
3960 cat conftest.err >&5
3961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962 (exit $ac_status); } >/dev/null && {
3963 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3964 test ! -s conftest.err
3965 }; then
3966 # Broken: success on invalid input.
3967 continue
3968 else
3969 echo "$as_me: failed program was:" >&5
3970 sed 's/^/| /' conftest.$ac_ext >&5
3972 # Passes both tests.
3973 ac_preproc_ok=:
3974 break
3977 rm -f conftest.err conftest.$ac_ext
3979 done
3980 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3981 rm -f conftest.err conftest.$ac_ext
3982 if $ac_preproc_ok; then
3983 break
3986 done
3987 ac_cv_prog_CPP=$CPP
3990 CPP=$ac_cv_prog_CPP
3991 else
3992 ac_cv_prog_CPP=$CPP
3994 { echo "$as_me:$LINENO: result: $CPP" >&5
3995 echo "${ECHO_T}$CPP" >&6; }
3996 ac_preproc_ok=false
3997 for ac_c_preproc_warn_flag in '' yes
3999 # Use a header file that comes with gcc, so configuring glibc
4000 # with a fresh cross-compiler works.
4001 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4002 # <limits.h> exists even on freestanding compilers.
4003 # On the NeXT, cc -E runs the code through the compiler's parser,
4004 # not just through cpp. "Syntax error" is here to catch this case.
4005 cat >conftest.$ac_ext <<_ACEOF
4006 /* confdefs.h. */
4007 _ACEOF
4008 cat confdefs.h >>conftest.$ac_ext
4009 cat >>conftest.$ac_ext <<_ACEOF
4010 /* end confdefs.h. */
4011 #ifdef __STDC__
4012 # include <limits.h>
4013 #else
4014 # include <assert.h>
4015 #endif
4016 Syntax error
4017 _ACEOF
4018 if { (ac_try="$ac_cpp conftest.$ac_ext"
4019 case "(($ac_try" in
4020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4021 *) ac_try_echo=$ac_try;;
4022 esac
4023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4024 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4025 ac_status=$?
4026 grep -v '^ *+' conftest.er1 >conftest.err
4027 rm -f conftest.er1
4028 cat conftest.err >&5
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); } >/dev/null && {
4031 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4032 test ! -s conftest.err
4033 }; then
4035 else
4036 echo "$as_me: failed program was:" >&5
4037 sed 's/^/| /' conftest.$ac_ext >&5
4039 # Broken: fails on valid input.
4040 continue
4043 rm -f conftest.err conftest.$ac_ext
4045 # OK, works on sane cases. Now check whether nonexistent headers
4046 # can be detected and how.
4047 cat >conftest.$ac_ext <<_ACEOF
4048 /* confdefs.h. */
4049 _ACEOF
4050 cat confdefs.h >>conftest.$ac_ext
4051 cat >>conftest.$ac_ext <<_ACEOF
4052 /* end confdefs.h. */
4053 #include <ac_nonexistent.h>
4054 _ACEOF
4055 if { (ac_try="$ac_cpp conftest.$ac_ext"
4056 case "(($ac_try" in
4057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4058 *) ac_try_echo=$ac_try;;
4059 esac
4060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4061 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4062 ac_status=$?
4063 grep -v '^ *+' conftest.er1 >conftest.err
4064 rm -f conftest.er1
4065 cat conftest.err >&5
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); } >/dev/null && {
4068 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4069 test ! -s conftest.err
4070 }; then
4071 # Broken: success on invalid input.
4072 continue
4073 else
4074 echo "$as_me: failed program was:" >&5
4075 sed 's/^/| /' conftest.$ac_ext >&5
4077 # Passes both tests.
4078 ac_preproc_ok=:
4079 break
4082 rm -f conftest.err conftest.$ac_ext
4084 done
4085 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4086 rm -f conftest.err conftest.$ac_ext
4087 if $ac_preproc_ok; then
4089 else
4090 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4091 See \`config.log' for more details." >&5
4092 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4093 See \`config.log' for more details." >&2;}
4094 { (exit 1); exit 1; }; }
4097 ac_ext=c
4098 ac_cpp='$CPP $CPPFLAGS'
4099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4104 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4105 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4106 if test "${ac_cv_path_GREP+set}" = set; then
4107 echo $ECHO_N "(cached) $ECHO_C" >&6
4108 else
4109 # Extract the first word of "grep ggrep" to use in msg output
4110 if test -z "$GREP"; then
4111 set dummy grep ggrep; ac_prog_name=$2
4112 if test "${ac_cv_path_GREP+set}" = set; then
4113 echo $ECHO_N "(cached) $ECHO_C" >&6
4114 else
4115 ac_path_GREP_found=false
4116 # Loop through the user's path and test for each of PROGNAME-LIST
4117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4118 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4120 IFS=$as_save_IFS
4121 test -z "$as_dir" && as_dir=.
4122 for ac_prog in grep ggrep; do
4123 for ac_exec_ext in '' $ac_executable_extensions; do
4124 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4125 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4126 # Check for GNU ac_path_GREP and select it if it is found.
4127 # Check for GNU $ac_path_GREP
4128 case `"$ac_path_GREP" --version 2>&1` in
4129 *GNU*)
4130 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4132 ac_count=0
4133 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4134 while :
4136 cat "conftest.in" "conftest.in" >"conftest.tmp"
4137 mv "conftest.tmp" "conftest.in"
4138 cp "conftest.in" "conftest.nl"
4139 echo 'GREP' >> "conftest.nl"
4140 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4141 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4142 ac_count=`expr $ac_count + 1`
4143 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4144 # Best one so far, save it but keep looking for a better one
4145 ac_cv_path_GREP="$ac_path_GREP"
4146 ac_path_GREP_max=$ac_count
4148 # 10*(2^10) chars as input seems more than enough
4149 test $ac_count -gt 10 && break
4150 done
4151 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4152 esac
4155 $ac_path_GREP_found && break 3
4156 done
4157 done
4159 done
4160 IFS=$as_save_IFS
4165 GREP="$ac_cv_path_GREP"
4166 if test -z "$GREP"; then
4167 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4168 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4169 { (exit 1); exit 1; }; }
4172 else
4173 ac_cv_path_GREP=$GREP
4178 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4179 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4180 GREP="$ac_cv_path_GREP"
4183 { echo "$as_me:$LINENO: checking for egrep" >&5
4184 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4185 if test "${ac_cv_path_EGREP+set}" = set; then
4186 echo $ECHO_N "(cached) $ECHO_C" >&6
4187 else
4188 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4189 then ac_cv_path_EGREP="$GREP -E"
4190 else
4191 # Extract the first word of "egrep" to use in msg output
4192 if test -z "$EGREP"; then
4193 set dummy egrep; ac_prog_name=$2
4194 if test "${ac_cv_path_EGREP+set}" = set; then
4195 echo $ECHO_N "(cached) $ECHO_C" >&6
4196 else
4197 ac_path_EGREP_found=false
4198 # Loop through the user's path and test for each of PROGNAME-LIST
4199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4200 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4202 IFS=$as_save_IFS
4203 test -z "$as_dir" && as_dir=.
4204 for ac_prog in egrep; do
4205 for ac_exec_ext in '' $ac_executable_extensions; do
4206 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4207 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4208 # Check for GNU ac_path_EGREP and select it if it is found.
4209 # Check for GNU $ac_path_EGREP
4210 case `"$ac_path_EGREP" --version 2>&1` in
4211 *GNU*)
4212 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4214 ac_count=0
4215 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4216 while :
4218 cat "conftest.in" "conftest.in" >"conftest.tmp"
4219 mv "conftest.tmp" "conftest.in"
4220 cp "conftest.in" "conftest.nl"
4221 echo 'EGREP' >> "conftest.nl"
4222 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4223 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4224 ac_count=`expr $ac_count + 1`
4225 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4226 # Best one so far, save it but keep looking for a better one
4227 ac_cv_path_EGREP="$ac_path_EGREP"
4228 ac_path_EGREP_max=$ac_count
4230 # 10*(2^10) chars as input seems more than enough
4231 test $ac_count -gt 10 && break
4232 done
4233 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4234 esac
4237 $ac_path_EGREP_found && break 3
4238 done
4239 done
4241 done
4242 IFS=$as_save_IFS
4247 EGREP="$ac_cv_path_EGREP"
4248 if test -z "$EGREP"; then
4249 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4250 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4251 { (exit 1); exit 1; }; }
4254 else
4255 ac_cv_path_EGREP=$EGREP
4261 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4262 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4263 EGREP="$ac_cv_path_EGREP"
4267 { echo "$as_me:$LINENO: checking for AIX" >&5
4268 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4269 cat >conftest.$ac_ext <<_ACEOF
4270 /* confdefs.h. */
4271 _ACEOF
4272 cat confdefs.h >>conftest.$ac_ext
4273 cat >>conftest.$ac_ext <<_ACEOF
4274 /* end confdefs.h. */
4275 #ifdef _AIX
4277 #endif
4279 _ACEOF
4280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4281 $EGREP "yes" >/dev/null 2>&1; then
4282 { echo "$as_me:$LINENO: result: yes" >&5
4283 echo "${ECHO_T}yes" >&6; }
4284 cat >>confdefs.h <<\_ACEOF
4285 #define _ALL_SOURCE 1
4286 _ACEOF
4288 else
4289 { echo "$as_me:$LINENO: result: no" >&5
4290 echo "${ECHO_T}no" >&6; }
4292 rm -f conftest*
4296 cat >>confdefs.h <<\_ACEOF
4297 #define _GNU_SOURCE 1
4298 _ACEOF
4302 ### Use -Wno-pointer-sign if the compiler supports it
4303 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4304 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4305 SAVE_CFLAGS="$CFLAGS"
4306 CFLAGS="$CFLAGS -Wno-pointer-sign"
4307 cat >conftest.$ac_ext <<_ACEOF
4308 /* confdefs.h. */
4309 _ACEOF
4310 cat confdefs.h >>conftest.$ac_ext
4311 cat >>conftest.$ac_ext <<_ACEOF
4312 /* end confdefs.h. */
4315 main ()
4319 return 0;
4321 _ACEOF
4322 rm -f conftest.$ac_objext
4323 if { (ac_try="$ac_compile"
4324 case "(($ac_try" in
4325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4326 *) ac_try_echo=$ac_try;;
4327 esac
4328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4329 (eval "$ac_compile") 2>conftest.er1
4330 ac_status=$?
4331 grep -v '^ *+' conftest.er1 >conftest.err
4332 rm -f conftest.er1
4333 cat conftest.err >&5
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); } && {
4336 test -z "$ac_c_werror_flag" ||
4337 test ! -s conftest.err
4338 } && test -s conftest.$ac_objext; then
4339 has_option=yes
4340 else
4341 echo "$as_me: failed program was:" >&5
4342 sed 's/^/| /' conftest.$ac_ext >&5
4344 has_option=no
4347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4348 if test $has_option = yes; then
4349 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4351 { echo "$as_me:$LINENO: result: $has_option" >&5
4352 echo "${ECHO_T}$has_option" >&6; }
4353 CFLAGS="$SAVE_CFLAGS"
4354 unset has_option
4355 unset SAVE_CFLAGS
4357 #### Some other nice autoconf tests.
4359 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4360 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4361 LN_S=$as_ln_s
4362 if test "$LN_S" = "ln -s"; then
4363 { echo "$as_me:$LINENO: result: yes" >&5
4364 echo "${ECHO_T}yes" >&6; }
4365 else
4366 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4367 echo "${ECHO_T}no, using $LN_S" >&6; }
4370 ac_ext=c
4371 ac_cpp='$CPP $CPPFLAGS'
4372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4375 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4376 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4377 # On Suns, sometimes $CPP names a directory.
4378 if test -n "$CPP" && test -d "$CPP"; then
4379 CPP=
4381 if test -z "$CPP"; then
4382 if test "${ac_cv_prog_CPP+set}" = set; then
4383 echo $ECHO_N "(cached) $ECHO_C" >&6
4384 else
4385 # Double quotes because CPP needs to be expanded
4386 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4388 ac_preproc_ok=false
4389 for ac_c_preproc_warn_flag in '' yes
4391 # Use a header file that comes with gcc, so configuring glibc
4392 # with a fresh cross-compiler works.
4393 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4394 # <limits.h> exists even on freestanding compilers.
4395 # On the NeXT, cc -E runs the code through the compiler's parser,
4396 # not just through cpp. "Syntax error" is here to catch this case.
4397 cat >conftest.$ac_ext <<_ACEOF
4398 /* confdefs.h. */
4399 _ACEOF
4400 cat confdefs.h >>conftest.$ac_ext
4401 cat >>conftest.$ac_ext <<_ACEOF
4402 /* end confdefs.h. */
4403 #ifdef __STDC__
4404 # include <limits.h>
4405 #else
4406 # include <assert.h>
4407 #endif
4408 Syntax error
4409 _ACEOF
4410 if { (ac_try="$ac_cpp conftest.$ac_ext"
4411 case "(($ac_try" in
4412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4413 *) ac_try_echo=$ac_try;;
4414 esac
4415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4417 ac_status=$?
4418 grep -v '^ *+' conftest.er1 >conftest.err
4419 rm -f conftest.er1
4420 cat conftest.err >&5
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); } >/dev/null && {
4423 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4424 test ! -s conftest.err
4425 }; then
4427 else
4428 echo "$as_me: failed program was:" >&5
4429 sed 's/^/| /' conftest.$ac_ext >&5
4431 # Broken: fails on valid input.
4432 continue
4435 rm -f conftest.err conftest.$ac_ext
4437 # OK, works on sane cases. Now check whether nonexistent headers
4438 # can be detected and how.
4439 cat >conftest.$ac_ext <<_ACEOF
4440 /* confdefs.h. */
4441 _ACEOF
4442 cat confdefs.h >>conftest.$ac_ext
4443 cat >>conftest.$ac_ext <<_ACEOF
4444 /* end confdefs.h. */
4445 #include <ac_nonexistent.h>
4446 _ACEOF
4447 if { (ac_try="$ac_cpp conftest.$ac_ext"
4448 case "(($ac_try" in
4449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4450 *) ac_try_echo=$ac_try;;
4451 esac
4452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4453 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4454 ac_status=$?
4455 grep -v '^ *+' conftest.er1 >conftest.err
4456 rm -f conftest.er1
4457 cat conftest.err >&5
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); } >/dev/null && {
4460 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4461 test ! -s conftest.err
4462 }; then
4463 # Broken: success on invalid input.
4464 continue
4465 else
4466 echo "$as_me: failed program was:" >&5
4467 sed 's/^/| /' conftest.$ac_ext >&5
4469 # Passes both tests.
4470 ac_preproc_ok=:
4471 break
4474 rm -f conftest.err conftest.$ac_ext
4476 done
4477 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4478 rm -f conftest.err conftest.$ac_ext
4479 if $ac_preproc_ok; then
4480 break
4483 done
4484 ac_cv_prog_CPP=$CPP
4487 CPP=$ac_cv_prog_CPP
4488 else
4489 ac_cv_prog_CPP=$CPP
4491 { echo "$as_me:$LINENO: result: $CPP" >&5
4492 echo "${ECHO_T}$CPP" >&6; }
4493 ac_preproc_ok=false
4494 for ac_c_preproc_warn_flag in '' yes
4496 # Use a header file that comes with gcc, so configuring glibc
4497 # with a fresh cross-compiler works.
4498 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4499 # <limits.h> exists even on freestanding compilers.
4500 # On the NeXT, cc -E runs the code through the compiler's parser,
4501 # not just through cpp. "Syntax error" is here to catch this case.
4502 cat >conftest.$ac_ext <<_ACEOF
4503 /* confdefs.h. */
4504 _ACEOF
4505 cat confdefs.h >>conftest.$ac_ext
4506 cat >>conftest.$ac_ext <<_ACEOF
4507 /* end confdefs.h. */
4508 #ifdef __STDC__
4509 # include <limits.h>
4510 #else
4511 # include <assert.h>
4512 #endif
4513 Syntax error
4514 _ACEOF
4515 if { (ac_try="$ac_cpp conftest.$ac_ext"
4516 case "(($ac_try" in
4517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4518 *) ac_try_echo=$ac_try;;
4519 esac
4520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4521 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4522 ac_status=$?
4523 grep -v '^ *+' conftest.er1 >conftest.err
4524 rm -f conftest.er1
4525 cat conftest.err >&5
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); } >/dev/null && {
4528 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4529 test ! -s conftest.err
4530 }; then
4532 else
4533 echo "$as_me: failed program was:" >&5
4534 sed 's/^/| /' conftest.$ac_ext >&5
4536 # Broken: fails on valid input.
4537 continue
4540 rm -f conftest.err conftest.$ac_ext
4542 # OK, works on sane cases. Now check whether nonexistent headers
4543 # can be detected and how.
4544 cat >conftest.$ac_ext <<_ACEOF
4545 /* confdefs.h. */
4546 _ACEOF
4547 cat confdefs.h >>conftest.$ac_ext
4548 cat >>conftest.$ac_ext <<_ACEOF
4549 /* end confdefs.h. */
4550 #include <ac_nonexistent.h>
4551 _ACEOF
4552 if { (ac_try="$ac_cpp conftest.$ac_ext"
4553 case "(($ac_try" in
4554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4555 *) ac_try_echo=$ac_try;;
4556 esac
4557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4558 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4559 ac_status=$?
4560 grep -v '^ *+' conftest.er1 >conftest.err
4561 rm -f conftest.er1
4562 cat conftest.err >&5
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); } >/dev/null && {
4565 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4566 test ! -s conftest.err
4567 }; then
4568 # Broken: success on invalid input.
4569 continue
4570 else
4571 echo "$as_me: failed program was:" >&5
4572 sed 's/^/| /' conftest.$ac_ext >&5
4574 # Passes both tests.
4575 ac_preproc_ok=:
4576 break
4579 rm -f conftest.err conftest.$ac_ext
4581 done
4582 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4583 rm -f conftest.err conftest.$ac_ext
4584 if $ac_preproc_ok; then
4586 else
4587 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4588 See \`config.log' for more details." >&5
4589 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4590 See \`config.log' for more details." >&2;}
4591 { (exit 1); exit 1; }; }
4594 ac_ext=c
4595 ac_cpp='$CPP $CPPFLAGS'
4596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4600 # Find a good install program. We prefer a C program (faster),
4601 # so one script is as good as another. But avoid the broken or
4602 # incompatible versions:
4603 # SysV /etc/install, /usr/sbin/install
4604 # SunOS /usr/etc/install
4605 # IRIX /sbin/install
4606 # AIX /bin/install
4607 # AmigaOS /C/install, which installs bootblocks on floppy discs
4608 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4609 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4610 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4611 # OS/2's system install, which has a completely different semantic
4612 # ./install, which can be erroneously created by make from ./install.sh.
4613 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4614 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4615 if test -z "$INSTALL"; then
4616 if test "${ac_cv_path_install+set}" = set; then
4617 echo $ECHO_N "(cached) $ECHO_C" >&6
4618 else
4619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4620 for as_dir in $PATH
4622 IFS=$as_save_IFS
4623 test -z "$as_dir" && as_dir=.
4624 # Account for people who put trailing slashes in PATH elements.
4625 case $as_dir/ in
4626 ./ | .// | /cC/* | \
4627 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4628 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4629 /usr/ucb/* ) ;;
4631 # OSF1 and SCO ODT 3.0 have their own names for install.
4632 # Don't use installbsd from OSF since it installs stuff as root
4633 # by default.
4634 for ac_prog in ginstall scoinst install; do
4635 for ac_exec_ext in '' $ac_executable_extensions; do
4636 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4637 if test $ac_prog = install &&
4638 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4639 # AIX install. It has an incompatible calling convention.
4641 elif test $ac_prog = install &&
4642 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4643 # program-specific install script used by HP pwplus--don't use.
4645 else
4646 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4647 break 3
4650 done
4651 done
4653 esac
4654 done
4655 IFS=$as_save_IFS
4659 if test "${ac_cv_path_install+set}" = set; then
4660 INSTALL=$ac_cv_path_install
4661 else
4662 # As a last resort, use the slow shell script. Don't cache a
4663 # value for INSTALL within a source directory, because that will
4664 # break other packages using the cache if that directory is
4665 # removed, or if the value is a relative name.
4666 INSTALL=$ac_install_sh
4669 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4670 echo "${ECHO_T}$INSTALL" >&6; }
4672 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4673 # It thinks the first close brace ends the variable substitution.
4674 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4676 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4678 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4680 if test "x$RANLIB" = x; then
4681 if test -n "$ac_tool_prefix"; then
4682 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4683 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4684 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4686 if test "${ac_cv_prog_RANLIB+set}" = set; then
4687 echo $ECHO_N "(cached) $ECHO_C" >&6
4688 else
4689 if test -n "$RANLIB"; then
4690 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4691 else
4692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693 for as_dir in $PATH
4695 IFS=$as_save_IFS
4696 test -z "$as_dir" && as_dir=.
4697 for ac_exec_ext in '' $ac_executable_extensions; do
4698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4699 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4701 break 2
4703 done
4704 done
4705 IFS=$as_save_IFS
4709 RANLIB=$ac_cv_prog_RANLIB
4710 if test -n "$RANLIB"; then
4711 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4712 echo "${ECHO_T}$RANLIB" >&6; }
4713 else
4714 { echo "$as_me:$LINENO: result: no" >&5
4715 echo "${ECHO_T}no" >&6; }
4720 if test -z "$ac_cv_prog_RANLIB"; then
4721 ac_ct_RANLIB=$RANLIB
4722 # Extract the first word of "ranlib", so it can be a program name with args.
4723 set dummy ranlib; ac_word=$2
4724 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4726 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4727 echo $ECHO_N "(cached) $ECHO_C" >&6
4728 else
4729 if test -n "$ac_ct_RANLIB"; then
4730 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4731 else
4732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4733 for as_dir in $PATH
4735 IFS=$as_save_IFS
4736 test -z "$as_dir" && as_dir=.
4737 for ac_exec_ext in '' $ac_executable_extensions; do
4738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4739 ac_cv_prog_ac_ct_RANLIB="ranlib"
4740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4741 break 2
4743 done
4744 done
4745 IFS=$as_save_IFS
4749 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4750 if test -n "$ac_ct_RANLIB"; then
4751 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4752 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4753 else
4754 { echo "$as_me:$LINENO: result: no" >&5
4755 echo "${ECHO_T}no" >&6; }
4758 if test "x$ac_ct_RANLIB" = x; then
4759 RANLIB=":"
4760 else
4761 case $cross_compiling:$ac_tool_warned in
4762 yes:)
4763 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4764 whose name does not start with the host triplet. If you think this
4765 configuration is useful to you, please write to autoconf@gnu.org." >&5
4766 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4767 whose name does not start with the host triplet. If you think this
4768 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4769 ac_tool_warned=yes ;;
4770 esac
4771 RANLIB=$ac_ct_RANLIB
4773 else
4774 RANLIB="$ac_cv_prog_RANLIB"
4778 # Extract the first word of "install-info", so it can be a program name with args.
4779 set dummy install-info; ac_word=$2
4780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4782 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4783 echo $ECHO_N "(cached) $ECHO_C" >&6
4784 else
4785 case $INSTALL_INFO in
4786 [\\/]* | ?:[\\/]*)
4787 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791 for as_dir in $PATH
4793 IFS=$as_save_IFS
4794 test -z "$as_dir" && as_dir=.
4795 for ac_exec_ext in '' $ac_executable_extensions; do
4796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4797 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4799 break 2
4801 done
4802 done
4803 IFS=$as_save_IFS
4806 esac
4808 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4809 if test -n "$INSTALL_INFO"; then
4810 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4811 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4812 else
4813 { echo "$as_me:$LINENO: result: no" >&5
4814 echo "${ECHO_T}no" >&6; }
4818 # Extract the first word of "install-info", so it can be a program name with args.
4819 set dummy install-info; ac_word=$2
4820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4822 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4823 echo $ECHO_N "(cached) $ECHO_C" >&6
4824 else
4825 case $INSTALL_INFO in
4826 [\\/]* | ?:[\\/]*)
4827 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831 for as_dir in /usr/sbin
4833 IFS=$as_save_IFS
4834 test -z "$as_dir" && as_dir=.
4835 for ac_exec_ext in '' $ac_executable_extensions; do
4836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4837 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4839 break 2
4841 done
4842 done
4843 IFS=$as_save_IFS
4846 esac
4848 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4849 if test -n "$INSTALL_INFO"; then
4850 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4851 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4852 else
4853 { echo "$as_me:$LINENO: result: no" >&5
4854 echo "${ECHO_T}no" >&6; }
4858 # Extract the first word of "install-info", so it can be a program name with args.
4859 set dummy install-info; ac_word=$2
4860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4862 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4863 echo $ECHO_N "(cached) $ECHO_C" >&6
4864 else
4865 case $INSTALL_INFO in
4866 [\\/]* | ?:[\\/]*)
4867 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871 for as_dir in /sbin
4873 IFS=$as_save_IFS
4874 test -z "$as_dir" && as_dir=.
4875 for ac_exec_ext in '' $ac_executable_extensions; do
4876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4877 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4879 break 2
4881 done
4882 done
4883 IFS=$as_save_IFS
4885 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4887 esac
4889 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4890 if test -n "$INSTALL_INFO"; then
4891 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4892 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4893 else
4894 { echo "$as_me:$LINENO: result: no" >&5
4895 echo "${ECHO_T}no" >&6; }
4899 # Extract the first word of "gzip", so it can be a program name with args.
4900 set dummy gzip; ac_word=$2
4901 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4903 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4904 echo $ECHO_N "(cached) $ECHO_C" >&6
4905 else
4906 case $GZIP_PROG in
4907 [\\/]* | ?:[\\/]*)
4908 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
4911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912 for as_dir in $PATH
4914 IFS=$as_save_IFS
4915 test -z "$as_dir" && as_dir=.
4916 for ac_exec_ext in '' $ac_executable_extensions; do
4917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4918 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
4919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4920 break 2
4922 done
4923 done
4924 IFS=$as_save_IFS
4927 esac
4929 GZIP_PROG=$ac_cv_path_GZIP_PROG
4930 if test -n "$GZIP_PROG"; then
4931 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4932 echo "${ECHO_T}$GZIP_PROG" >&6; }
4933 else
4934 { echo "$as_me:$LINENO: result: no" >&5
4935 echo "${ECHO_T}no" >&6; }
4941 ## Need makeinfo >= 4.6 (?) to build the manuals.
4942 # Extract the first word of "makeinfo", so it can be a program name with args.
4943 set dummy makeinfo; ac_word=$2
4944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4946 if test "${ac_cv_path_MAKEINFO+set}" = set; then
4947 echo $ECHO_N "(cached) $ECHO_C" >&6
4948 else
4949 case $MAKEINFO in
4950 [\\/]* | ?:[\\/]*)
4951 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
4954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955 for as_dir in $PATH
4957 IFS=$as_save_IFS
4958 test -z "$as_dir" && as_dir=.
4959 for ac_exec_ext in '' $ac_executable_extensions; do
4960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4961 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
4962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4963 break 2
4965 done
4966 done
4967 IFS=$as_save_IFS
4969 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
4971 esac
4973 MAKEINFO=$ac_cv_path_MAKEINFO
4974 if test -n "$MAKEINFO"; then
4975 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
4976 echo "${ECHO_T}$MAKEINFO" >&6; }
4977 else
4978 { echo "$as_me:$LINENO: result: no" >&5
4979 echo "${ECHO_T}no" >&6; }
4983 if test "$MAKEINFO" != "no" && \
4984 test x"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[6-9]|4\.[1-5][0-9]+)'`" = x; then
4985 MAKEINFO=no
4988 if test "$MAKEINFO" = "no"; then
4989 { { echo "$as_me:$LINENO: error: makeinfo >= 4.6 is required " >&5
4990 echo "$as_me: error: makeinfo >= 4.6 is required " >&2;}
4991 { (exit 1); exit 1; }; }
4996 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4997 then
4998 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5001 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5002 then
5003 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5007 late_LDFLAGS=$LDFLAGS
5008 if test "$GCC" = yes; then
5009 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5010 else
5011 LDFLAGS="$LDFLAGS -znocombreloc"
5014 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5015 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5016 cat >conftest.$ac_ext <<_ACEOF
5017 main(){return 0;}
5018 _ACEOF
5019 rm -f conftest.$ac_objext conftest$ac_exeext
5020 if { (ac_try="$ac_link"
5021 case "(($ac_try" in
5022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5023 *) ac_try_echo=$ac_try;;
5024 esac
5025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5026 (eval "$ac_link") 2>conftest.er1
5027 ac_status=$?
5028 grep -v '^ *+' conftest.er1 >conftest.err
5029 rm -f conftest.er1
5030 cat conftest.err >&5
5031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032 (exit $ac_status); } && {
5033 test -z "$ac_c_werror_flag" ||
5034 test ! -s conftest.err
5035 } && test -s conftest$ac_exeext &&
5036 $as_test_x conftest$ac_exeext; then
5037 { echo "$as_me:$LINENO: result: yes" >&5
5038 echo "${ECHO_T}yes" >&6; }
5039 else
5040 echo "$as_me: failed program was:" >&5
5041 sed 's/^/| /' conftest.$ac_ext >&5
5043 LDFLAGS=$late_LDFLAGS
5044 { echo "$as_me:$LINENO: result: no" >&5
5045 echo "${ECHO_T}no" >&6; }
5048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5049 conftest$ac_exeext conftest.$ac_ext
5051 #### Extract some information from the operating system and machine files.
5053 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5054 - which libraries the lib-src programs will want, and
5055 - whether the GNU malloc routines are usable..." >&5
5056 echo "$as_me: checking the machine- and system-dependent files to find out
5057 - which libraries the lib-src programs will want, and
5058 - whether the GNU malloc routines are usable..." >&6;}
5060 ### First figure out CFLAGS (which we use for running the compiler here)
5061 ### and REAL_CFLAGS (which we use for real compilation).
5062 ### The two are the same except on a few systems, where they are made
5063 ### different to work around various lossages. For example,
5064 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5065 ### as implying static linking.
5067 ### If the CFLAGS env var is specified, we use that value
5068 ### instead of the default.
5070 ### It's not important that this name contain the PID; you can't run
5071 ### two configures in the same directory and have anything work
5072 ### anyway.
5073 tempcname="conftest.c"
5075 echo '
5076 #include "'${srcdir}'/src/'${opsysfile}'"
5077 #include "'${srcdir}'/src/'${machfile}'"
5078 #ifndef LIBS_MACHINE
5079 #define LIBS_MACHINE
5080 #endif
5081 #ifndef LIBS_SYSTEM
5082 #define LIBS_SYSTEM
5083 #endif
5084 #ifndef C_SWITCH_SYSTEM
5085 #define C_SWITCH_SYSTEM
5086 #endif
5087 #ifndef C_SWITCH_MACHINE
5088 #define C_SWITCH_MACHINE
5089 #endif
5090 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5091 configure___ c_switch_system=C_SWITCH_SYSTEM
5092 configure___ c_switch_machine=C_SWITCH_MACHINE
5094 #ifndef LIB_X11_LIB
5095 #define LIB_X11_LIB -lX11
5096 #endif
5098 #ifndef LIBX11_SYSTEM
5099 #define LIBX11_SYSTEM
5100 #endif
5101 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5103 #ifdef UNEXEC
5104 configure___ unexec=UNEXEC
5105 #else
5106 configure___ unexec=unexec.o
5107 #endif
5109 #ifdef SYSTEM_MALLOC
5110 configure___ system_malloc=yes
5111 #else
5112 configure___ system_malloc=no
5113 #endif
5115 #ifdef USE_MMAP_FOR_BUFFERS
5116 configure___ use_mmap_for_buffers=yes
5117 #else
5118 configure___ use_mmap_for_buffers=no
5119 #endif
5121 #ifndef C_DEBUG_SWITCH
5122 #define C_DEBUG_SWITCH -g
5123 #endif
5125 #ifndef C_OPTIMIZE_SWITCH
5126 #ifdef __GNUC__
5127 #define C_OPTIMIZE_SWITCH -O2
5128 #else
5129 #define C_OPTIMIZE_SWITCH -O
5130 #endif
5131 #endif
5133 #ifndef C_WARNINGS_SWITCH
5134 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5135 #endif
5137 #ifndef LD_SWITCH_MACHINE
5138 #define LD_SWITCH_MACHINE
5139 #endif
5141 #ifndef LD_SWITCH_SYSTEM
5142 #define LD_SWITCH_SYSTEM
5143 #endif
5145 #ifndef LD_SWITCH_X_SITE_AUX
5146 #define LD_SWITCH_X_SITE_AUX
5147 #endif
5149 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5150 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5152 #ifdef THIS_IS_CONFIGURE
5154 /* Get the CFLAGS for tests in configure. */
5155 #ifdef __GNUC__
5156 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5157 #else
5158 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5159 #endif
5161 #else /* not THIS_IS_CONFIGURE */
5163 /* Get the CFLAGS for real compilation. */
5164 #ifdef __GNUC__
5165 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5166 #else
5167 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5168 #endif
5170 #endif /* not THIS_IS_CONFIGURE */
5171 ' > ${tempcname}
5173 # The value of CPP is a quoted variable reference, so we need to do this
5174 # to get its actual value...
5175 CPP=`eval "echo $CPP"`
5176 eval `${CPP} -Isrc ${tempcname} \
5177 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5178 if test "x$SPECIFIED_CFLAGS" = x; then
5179 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5180 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5181 else
5182 REAL_CFLAGS="$CFLAGS"
5184 rm ${tempcname}
5186 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5188 ### Make sure subsequent tests use flags consistent with the build flags.
5190 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5191 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5192 else
5193 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5198 # Check whether --enable-largefile was given.
5199 if test "${enable_largefile+set}" = set; then
5200 enableval=$enable_largefile;
5203 if test "$enable_largefile" != no; then
5205 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5206 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5207 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5208 echo $ECHO_N "(cached) $ECHO_C" >&6
5209 else
5210 ac_cv_sys_largefile_CC=no
5211 if test "$GCC" != yes; then
5212 ac_save_CC=$CC
5213 while :; do
5214 # IRIX 6.2 and later do not support large files by default,
5215 # so use the C compiler's -n32 option if that helps.
5216 cat >conftest.$ac_ext <<_ACEOF
5217 /* confdefs.h. */
5218 _ACEOF
5219 cat confdefs.h >>conftest.$ac_ext
5220 cat >>conftest.$ac_ext <<_ACEOF
5221 /* end confdefs.h. */
5222 #include <sys/types.h>
5223 /* Check that off_t can represent 2**63 - 1 correctly.
5224 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5225 since some C++ compilers masquerading as C compilers
5226 incorrectly reject 9223372036854775807. */
5227 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5228 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5229 && LARGE_OFF_T % 2147483647 == 1)
5230 ? 1 : -1];
5232 main ()
5236 return 0;
5238 _ACEOF
5239 rm -f conftest.$ac_objext
5240 if { (ac_try="$ac_compile"
5241 case "(($ac_try" in
5242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5243 *) ac_try_echo=$ac_try;;
5244 esac
5245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5246 (eval "$ac_compile") 2>conftest.er1
5247 ac_status=$?
5248 grep -v '^ *+' conftest.er1 >conftest.err
5249 rm -f conftest.er1
5250 cat conftest.err >&5
5251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252 (exit $ac_status); } && {
5253 test -z "$ac_c_werror_flag" ||
5254 test ! -s conftest.err
5255 } && test -s conftest.$ac_objext; then
5256 break
5257 else
5258 echo "$as_me: failed program was:" >&5
5259 sed 's/^/| /' conftest.$ac_ext >&5
5264 rm -f core conftest.err conftest.$ac_objext
5265 CC="$CC -n32"
5266 rm -f conftest.$ac_objext
5267 if { (ac_try="$ac_compile"
5268 case "(($ac_try" in
5269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5270 *) ac_try_echo=$ac_try;;
5271 esac
5272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5273 (eval "$ac_compile") 2>conftest.er1
5274 ac_status=$?
5275 grep -v '^ *+' conftest.er1 >conftest.err
5276 rm -f conftest.er1
5277 cat conftest.err >&5
5278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279 (exit $ac_status); } && {
5280 test -z "$ac_c_werror_flag" ||
5281 test ! -s conftest.err
5282 } && test -s conftest.$ac_objext; then
5283 ac_cv_sys_largefile_CC=' -n32'; break
5284 else
5285 echo "$as_me: failed program was:" >&5
5286 sed 's/^/| /' conftest.$ac_ext >&5
5291 rm -f core conftest.err conftest.$ac_objext
5292 break
5293 done
5294 CC=$ac_save_CC
5295 rm -f conftest.$ac_ext
5298 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5299 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5300 if test "$ac_cv_sys_largefile_CC" != no; then
5301 CC=$CC$ac_cv_sys_largefile_CC
5304 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5305 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5306 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5307 echo $ECHO_N "(cached) $ECHO_C" >&6
5308 else
5309 while :; do
5310 cat >conftest.$ac_ext <<_ACEOF
5311 /* confdefs.h. */
5312 _ACEOF
5313 cat confdefs.h >>conftest.$ac_ext
5314 cat >>conftest.$ac_ext <<_ACEOF
5315 /* end confdefs.h. */
5316 #include <sys/types.h>
5317 /* Check that off_t can represent 2**63 - 1 correctly.
5318 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5319 since some C++ compilers masquerading as C compilers
5320 incorrectly reject 9223372036854775807. */
5321 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5322 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5323 && LARGE_OFF_T % 2147483647 == 1)
5324 ? 1 : -1];
5326 main ()
5330 return 0;
5332 _ACEOF
5333 rm -f conftest.$ac_objext
5334 if { (ac_try="$ac_compile"
5335 case "(($ac_try" in
5336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5337 *) ac_try_echo=$ac_try;;
5338 esac
5339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5340 (eval "$ac_compile") 2>conftest.er1
5341 ac_status=$?
5342 grep -v '^ *+' conftest.er1 >conftest.err
5343 rm -f conftest.er1
5344 cat conftest.err >&5
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); } && {
5347 test -z "$ac_c_werror_flag" ||
5348 test ! -s conftest.err
5349 } && test -s conftest.$ac_objext; then
5350 ac_cv_sys_file_offset_bits=no; break
5351 else
5352 echo "$as_me: failed program was:" >&5
5353 sed 's/^/| /' conftest.$ac_ext >&5
5358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5359 cat >conftest.$ac_ext <<_ACEOF
5360 /* confdefs.h. */
5361 _ACEOF
5362 cat confdefs.h >>conftest.$ac_ext
5363 cat >>conftest.$ac_ext <<_ACEOF
5364 /* end confdefs.h. */
5365 #define _FILE_OFFSET_BITS 64
5366 #include <sys/types.h>
5367 /* Check that off_t can represent 2**63 - 1 correctly.
5368 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5369 since some C++ compilers masquerading as C compilers
5370 incorrectly reject 9223372036854775807. */
5371 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5372 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5373 && LARGE_OFF_T % 2147483647 == 1)
5374 ? 1 : -1];
5376 main ()
5380 return 0;
5382 _ACEOF
5383 rm -f conftest.$ac_objext
5384 if { (ac_try="$ac_compile"
5385 case "(($ac_try" in
5386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5387 *) ac_try_echo=$ac_try;;
5388 esac
5389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5390 (eval "$ac_compile") 2>conftest.er1
5391 ac_status=$?
5392 grep -v '^ *+' conftest.er1 >conftest.err
5393 rm -f conftest.er1
5394 cat conftest.err >&5
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); } && {
5397 test -z "$ac_c_werror_flag" ||
5398 test ! -s conftest.err
5399 } && test -s conftest.$ac_objext; then
5400 ac_cv_sys_file_offset_bits=64; break
5401 else
5402 echo "$as_me: failed program was:" >&5
5403 sed 's/^/| /' conftest.$ac_ext >&5
5408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5409 ac_cv_sys_file_offset_bits=unknown
5410 break
5411 done
5413 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5414 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5415 case $ac_cv_sys_file_offset_bits in #(
5416 no | unknown) ;;
5418 cat >>confdefs.h <<_ACEOF
5419 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5420 _ACEOF
5422 esac
5423 rm -f conftest*
5424 if test $ac_cv_sys_file_offset_bits = unknown; then
5425 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5426 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5427 if test "${ac_cv_sys_large_files+set}" = set; then
5428 echo $ECHO_N "(cached) $ECHO_C" >&6
5429 else
5430 while :; do
5431 cat >conftest.$ac_ext <<_ACEOF
5432 /* confdefs.h. */
5433 _ACEOF
5434 cat confdefs.h >>conftest.$ac_ext
5435 cat >>conftest.$ac_ext <<_ACEOF
5436 /* end confdefs.h. */
5437 #include <sys/types.h>
5438 /* Check that off_t can represent 2**63 - 1 correctly.
5439 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5440 since some C++ compilers masquerading as C compilers
5441 incorrectly reject 9223372036854775807. */
5442 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5443 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5444 && LARGE_OFF_T % 2147483647 == 1)
5445 ? 1 : -1];
5447 main ()
5451 return 0;
5453 _ACEOF
5454 rm -f conftest.$ac_objext
5455 if { (ac_try="$ac_compile"
5456 case "(($ac_try" in
5457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5458 *) ac_try_echo=$ac_try;;
5459 esac
5460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5461 (eval "$ac_compile") 2>conftest.er1
5462 ac_status=$?
5463 grep -v '^ *+' conftest.er1 >conftest.err
5464 rm -f conftest.er1
5465 cat conftest.err >&5
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); } && {
5468 test -z "$ac_c_werror_flag" ||
5469 test ! -s conftest.err
5470 } && test -s conftest.$ac_objext; then
5471 ac_cv_sys_large_files=no; break
5472 else
5473 echo "$as_me: failed program was:" >&5
5474 sed 's/^/| /' conftest.$ac_ext >&5
5479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5480 cat >conftest.$ac_ext <<_ACEOF
5481 /* confdefs.h. */
5482 _ACEOF
5483 cat confdefs.h >>conftest.$ac_ext
5484 cat >>conftest.$ac_ext <<_ACEOF
5485 /* end confdefs.h. */
5486 #define _LARGE_FILES 1
5487 #include <sys/types.h>
5488 /* Check that off_t can represent 2**63 - 1 correctly.
5489 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5490 since some C++ compilers masquerading as C compilers
5491 incorrectly reject 9223372036854775807. */
5492 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5493 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5494 && LARGE_OFF_T % 2147483647 == 1)
5495 ? 1 : -1];
5497 main ()
5501 return 0;
5503 _ACEOF
5504 rm -f conftest.$ac_objext
5505 if { (ac_try="$ac_compile"
5506 case "(($ac_try" in
5507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5508 *) ac_try_echo=$ac_try;;
5509 esac
5510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5511 (eval "$ac_compile") 2>conftest.er1
5512 ac_status=$?
5513 grep -v '^ *+' conftest.er1 >conftest.err
5514 rm -f conftest.er1
5515 cat conftest.err >&5
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); } && {
5518 test -z "$ac_c_werror_flag" ||
5519 test ! -s conftest.err
5520 } && test -s conftest.$ac_objext; then
5521 ac_cv_sys_large_files=1; break
5522 else
5523 echo "$as_me: failed program was:" >&5
5524 sed 's/^/| /' conftest.$ac_ext >&5
5529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5530 ac_cv_sys_large_files=unknown
5531 break
5532 done
5534 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5535 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5536 case $ac_cv_sys_large_files in #(
5537 no | unknown) ;;
5539 cat >>confdefs.h <<_ACEOF
5540 #define _LARGE_FILES $ac_cv_sys_large_files
5541 _ACEOF
5543 esac
5544 rm -f conftest*
5550 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5551 ### be located in either /usr/lib64 or /usr/lib.
5552 case "${canonical}" in
5553 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5554 if test -d /usr/lib64; then
5556 cat >>confdefs.h <<\_ACEOF
5557 #define HAVE_LIB64_DIR 1
5558 _ACEOF
5561 esac
5566 if test "${with_sound}" != "no"; then
5567 # Sound support for GNU/Linux and the free BSDs.
5568 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5569 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5570 if test "${ac_cv_header_stdc+set}" = set; then
5571 echo $ECHO_N "(cached) $ECHO_C" >&6
5572 else
5573 cat >conftest.$ac_ext <<_ACEOF
5574 /* confdefs.h. */
5575 _ACEOF
5576 cat confdefs.h >>conftest.$ac_ext
5577 cat >>conftest.$ac_ext <<_ACEOF
5578 /* end confdefs.h. */
5579 #include <stdlib.h>
5580 #include <stdarg.h>
5581 #include <string.h>
5582 #include <float.h>
5585 main ()
5589 return 0;
5591 _ACEOF
5592 rm -f conftest.$ac_objext
5593 if { (ac_try="$ac_compile"
5594 case "(($ac_try" in
5595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5596 *) ac_try_echo=$ac_try;;
5597 esac
5598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5599 (eval "$ac_compile") 2>conftest.er1
5600 ac_status=$?
5601 grep -v '^ *+' conftest.er1 >conftest.err
5602 rm -f conftest.er1
5603 cat conftest.err >&5
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); } && {
5606 test -z "$ac_c_werror_flag" ||
5607 test ! -s conftest.err
5608 } && test -s conftest.$ac_objext; then
5609 ac_cv_header_stdc=yes
5610 else
5611 echo "$as_me: failed program was:" >&5
5612 sed 's/^/| /' conftest.$ac_ext >&5
5614 ac_cv_header_stdc=no
5617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5619 if test $ac_cv_header_stdc = yes; then
5620 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5621 cat >conftest.$ac_ext <<_ACEOF
5622 /* confdefs.h. */
5623 _ACEOF
5624 cat confdefs.h >>conftest.$ac_ext
5625 cat >>conftest.$ac_ext <<_ACEOF
5626 /* end confdefs.h. */
5627 #include <string.h>
5629 _ACEOF
5630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5631 $EGREP "memchr" >/dev/null 2>&1; then
5633 else
5634 ac_cv_header_stdc=no
5636 rm -f conftest*
5640 if test $ac_cv_header_stdc = yes; then
5641 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5642 cat >conftest.$ac_ext <<_ACEOF
5643 /* confdefs.h. */
5644 _ACEOF
5645 cat confdefs.h >>conftest.$ac_ext
5646 cat >>conftest.$ac_ext <<_ACEOF
5647 /* end confdefs.h. */
5648 #include <stdlib.h>
5650 _ACEOF
5651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5652 $EGREP "free" >/dev/null 2>&1; then
5654 else
5655 ac_cv_header_stdc=no
5657 rm -f conftest*
5661 if test $ac_cv_header_stdc = yes; then
5662 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5663 if test "$cross_compiling" = yes; then
5665 else
5666 cat >conftest.$ac_ext <<_ACEOF
5667 /* confdefs.h. */
5668 _ACEOF
5669 cat confdefs.h >>conftest.$ac_ext
5670 cat >>conftest.$ac_ext <<_ACEOF
5671 /* end confdefs.h. */
5672 #include <ctype.h>
5673 #include <stdlib.h>
5674 #if ((' ' & 0x0FF) == 0x020)
5675 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5676 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5677 #else
5678 # define ISLOWER(c) \
5679 (('a' <= (c) && (c) <= 'i') \
5680 || ('j' <= (c) && (c) <= 'r') \
5681 || ('s' <= (c) && (c) <= 'z'))
5682 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5683 #endif
5685 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5687 main ()
5689 int i;
5690 for (i = 0; i < 256; i++)
5691 if (XOR (islower (i), ISLOWER (i))
5692 || toupper (i) != TOUPPER (i))
5693 return 2;
5694 return 0;
5696 _ACEOF
5697 rm -f conftest$ac_exeext
5698 if { (ac_try="$ac_link"
5699 case "(($ac_try" in
5700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5701 *) ac_try_echo=$ac_try;;
5702 esac
5703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5704 (eval "$ac_link") 2>&5
5705 ac_status=$?
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5708 { (case "(($ac_try" in
5709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5710 *) ac_try_echo=$ac_try;;
5711 esac
5712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5713 (eval "$ac_try") 2>&5
5714 ac_status=$?
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }; }; then
5718 else
5719 echo "$as_me: program exited with status $ac_status" >&5
5720 echo "$as_me: failed program was:" >&5
5721 sed 's/^/| /' conftest.$ac_ext >&5
5723 ( exit $ac_status )
5724 ac_cv_header_stdc=no
5726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5732 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5733 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5734 if test $ac_cv_header_stdc = yes; then
5736 cat >>confdefs.h <<\_ACEOF
5737 #define STDC_HEADERS 1
5738 _ACEOF
5742 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5752 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5753 inttypes.h stdint.h unistd.h
5755 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5756 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5759 echo $ECHO_N "(cached) $ECHO_C" >&6
5760 else
5761 cat >conftest.$ac_ext <<_ACEOF
5762 /* confdefs.h. */
5763 _ACEOF
5764 cat confdefs.h >>conftest.$ac_ext
5765 cat >>conftest.$ac_ext <<_ACEOF
5766 /* end confdefs.h. */
5767 $ac_includes_default
5769 #include <$ac_header>
5770 _ACEOF
5771 rm -f conftest.$ac_objext
5772 if { (ac_try="$ac_compile"
5773 case "(($ac_try" in
5774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5775 *) ac_try_echo=$ac_try;;
5776 esac
5777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5778 (eval "$ac_compile") 2>conftest.er1
5779 ac_status=$?
5780 grep -v '^ *+' conftest.er1 >conftest.err
5781 rm -f conftest.er1
5782 cat conftest.err >&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); } && {
5785 test -z "$ac_c_werror_flag" ||
5786 test ! -s conftest.err
5787 } && test -s conftest.$ac_objext; then
5788 eval "$as_ac_Header=yes"
5789 else
5790 echo "$as_me: failed program was:" >&5
5791 sed 's/^/| /' conftest.$ac_ext >&5
5793 eval "$as_ac_Header=no"
5796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5798 ac_res=`eval echo '${'$as_ac_Header'}'`
5799 { echo "$as_me:$LINENO: result: $ac_res" >&5
5800 echo "${ECHO_T}$ac_res" >&6; }
5801 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5802 cat >>confdefs.h <<_ACEOF
5803 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5804 _ACEOF
5808 done
5814 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5816 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5818 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5821 echo $ECHO_N "(cached) $ECHO_C" >&6
5823 ac_res=`eval echo '${'$as_ac_Header'}'`
5824 { echo "$as_me:$LINENO: result: $ac_res" >&5
5825 echo "${ECHO_T}$ac_res" >&6; }
5826 else
5827 # Is the header compilable?
5828 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5829 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5830 cat >conftest.$ac_ext <<_ACEOF
5831 /* confdefs.h. */
5832 _ACEOF
5833 cat confdefs.h >>conftest.$ac_ext
5834 cat >>conftest.$ac_ext <<_ACEOF
5835 /* end confdefs.h. */
5836 $ac_includes_default
5837 #include <$ac_header>
5838 _ACEOF
5839 rm -f conftest.$ac_objext
5840 if { (ac_try="$ac_compile"
5841 case "(($ac_try" in
5842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5843 *) ac_try_echo=$ac_try;;
5844 esac
5845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5846 (eval "$ac_compile") 2>conftest.er1
5847 ac_status=$?
5848 grep -v '^ *+' conftest.er1 >conftest.err
5849 rm -f conftest.er1
5850 cat conftest.err >&5
5851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852 (exit $ac_status); } && {
5853 test -z "$ac_c_werror_flag" ||
5854 test ! -s conftest.err
5855 } && test -s conftest.$ac_objext; then
5856 ac_header_compiler=yes
5857 else
5858 echo "$as_me: failed program was:" >&5
5859 sed 's/^/| /' conftest.$ac_ext >&5
5861 ac_header_compiler=no
5864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5865 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5866 echo "${ECHO_T}$ac_header_compiler" >&6; }
5868 # Is the header present?
5869 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5870 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5871 cat >conftest.$ac_ext <<_ACEOF
5872 /* confdefs.h. */
5873 _ACEOF
5874 cat confdefs.h >>conftest.$ac_ext
5875 cat >>conftest.$ac_ext <<_ACEOF
5876 /* end confdefs.h. */
5877 #include <$ac_header>
5878 _ACEOF
5879 if { (ac_try="$ac_cpp conftest.$ac_ext"
5880 case "(($ac_try" in
5881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5882 *) ac_try_echo=$ac_try;;
5883 esac
5884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5886 ac_status=$?
5887 grep -v '^ *+' conftest.er1 >conftest.err
5888 rm -f conftest.er1
5889 cat conftest.err >&5
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); } >/dev/null && {
5892 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5893 test ! -s conftest.err
5894 }; then
5895 ac_header_preproc=yes
5896 else
5897 echo "$as_me: failed program was:" >&5
5898 sed 's/^/| /' conftest.$ac_ext >&5
5900 ac_header_preproc=no
5903 rm -f conftest.err conftest.$ac_ext
5904 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5905 echo "${ECHO_T}$ac_header_preproc" >&6; }
5907 # So? What about this header?
5908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5909 yes:no: )
5910 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5911 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5913 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5914 ac_header_preproc=yes
5916 no:yes:* )
5917 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5918 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5919 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5920 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5921 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5922 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5923 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5924 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5926 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5927 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5928 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5931 esac
5932 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5934 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5935 echo $ECHO_N "(cached) $ECHO_C" >&6
5936 else
5937 eval "$as_ac_Header=\$ac_header_preproc"
5939 ac_res=`eval echo '${'$as_ac_Header'}'`
5940 { echo "$as_me:$LINENO: result: $ac_res" >&5
5941 echo "${ECHO_T}$ac_res" >&6; }
5944 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5945 cat >>confdefs.h <<_ACEOF
5946 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5947 _ACEOF
5951 done
5953 # Emulation library used on NetBSD.
5954 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5955 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
5956 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5957 echo $ECHO_N "(cached) $ECHO_C" >&6
5958 else
5959 ac_check_lib_save_LIBS=$LIBS
5960 LIBS="-lossaudio $LIBS"
5961 cat >conftest.$ac_ext <<_ACEOF
5962 /* confdefs.h. */
5963 _ACEOF
5964 cat confdefs.h >>conftest.$ac_ext
5965 cat >>conftest.$ac_ext <<_ACEOF
5966 /* end confdefs.h. */
5968 /* Override any GCC internal prototype to avoid an error.
5969 Use char because int might match the return type of a GCC
5970 builtin and then its argument prototype would still apply. */
5971 #ifdef __cplusplus
5972 extern "C"
5973 #endif
5974 char _oss_ioctl ();
5976 main ()
5978 return _oss_ioctl ();
5980 return 0;
5982 _ACEOF
5983 rm -f conftest.$ac_objext conftest$ac_exeext
5984 if { (ac_try="$ac_link"
5985 case "(($ac_try" in
5986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5987 *) ac_try_echo=$ac_try;;
5988 esac
5989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5990 (eval "$ac_link") 2>conftest.er1
5991 ac_status=$?
5992 grep -v '^ *+' conftest.er1 >conftest.err
5993 rm -f conftest.er1
5994 cat conftest.err >&5
5995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996 (exit $ac_status); } && {
5997 test -z "$ac_c_werror_flag" ||
5998 test ! -s conftest.err
5999 } && test -s conftest$ac_exeext &&
6000 $as_test_x conftest$ac_exeext; then
6001 ac_cv_lib_ossaudio__oss_ioctl=yes
6002 else
6003 echo "$as_me: failed program was:" >&5
6004 sed 's/^/| /' conftest.$ac_ext >&5
6006 ac_cv_lib_ossaudio__oss_ioctl=no
6009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6010 conftest$ac_exeext conftest.$ac_ext
6011 LIBS=$ac_check_lib_save_LIBS
6013 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6014 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6015 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6016 LIBSOUND=-lossaudio
6017 else
6018 LIBSOUND=
6023 ALSA_REQUIRED=1.0.0
6024 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6026 succeeded=no
6028 # Extract the first word of "pkg-config", so it can be a program name with args.
6029 set dummy pkg-config; ac_word=$2
6030 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6032 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6033 echo $ECHO_N "(cached) $ECHO_C" >&6
6034 else
6035 case $PKG_CONFIG in
6036 [\\/]* | ?:[\\/]*)
6037 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6041 for as_dir in $PATH
6043 IFS=$as_save_IFS
6044 test -z "$as_dir" && as_dir=.
6045 for ac_exec_ext in '' $ac_executable_extensions; do
6046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6047 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6049 break 2
6051 done
6052 done
6053 IFS=$as_save_IFS
6055 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6057 esac
6059 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6060 if test -n "$PKG_CONFIG"; then
6061 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6062 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6063 else
6064 { echo "$as_me:$LINENO: result: no" >&5
6065 echo "${ECHO_T}no" >&6; }
6070 if test "$PKG_CONFIG" = "no" ; then
6071 HAVE_ALSA=no
6072 else
6073 PKG_CONFIG_MIN_VERSION=0.9.0
6074 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6075 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6076 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6078 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6079 { echo "$as_me:$LINENO: result: yes" >&5
6080 echo "${ECHO_T}yes" >&6; }
6081 succeeded=yes
6083 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6084 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6085 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6086 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6087 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6089 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6090 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6091 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6092 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6093 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6094 else
6095 { echo "$as_me:$LINENO: result: no" >&5
6096 echo "${ECHO_T}no" >&6; }
6097 ALSA_CFLAGS=""
6098 ALSA_LIBS=""
6099 ## If we have a custom action on failure, don't print errors, but
6100 ## do set a variable so people can do so.
6101 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6107 else
6108 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6109 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6113 if test $succeeded = yes; then
6114 HAVE_ALSA=yes
6115 else
6116 HAVE_ALSA=no
6119 if test $HAVE_ALSA = yes; then
6120 SAVE_CFLAGS="$CFLAGS"
6121 SAVE_LDFLAGS="$LDFLAGS"
6122 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6123 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6124 cat >conftest.$ac_ext <<_ACEOF
6125 /* confdefs.h. */
6126 _ACEOF
6127 cat confdefs.h >>conftest.$ac_ext
6128 cat >>conftest.$ac_ext <<_ACEOF
6129 /* end confdefs.h. */
6130 #include <asoundlib.h>
6132 main ()
6134 snd_lib_error_set_handler (0);
6136 return 0;
6138 _ACEOF
6139 rm -f conftest.$ac_objext
6140 if { (ac_try="$ac_compile"
6141 case "(($ac_try" in
6142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6143 *) ac_try_echo=$ac_try;;
6144 esac
6145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6146 (eval "$ac_compile") 2>conftest.er1
6147 ac_status=$?
6148 grep -v '^ *+' conftest.er1 >conftest.err
6149 rm -f conftest.er1
6150 cat conftest.err >&5
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); } && {
6153 test -z "$ac_c_werror_flag" ||
6154 test ! -s conftest.err
6155 } && test -s conftest.$ac_objext; then
6156 emacs_alsa_normal=yes
6157 else
6158 echo "$as_me: failed program was:" >&5
6159 sed 's/^/| /' conftest.$ac_ext >&5
6161 emacs_alsa_normal=no
6164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6165 if test "$emacs_alsa_normal" != yes; then
6166 cat >conftest.$ac_ext <<_ACEOF
6167 /* confdefs.h. */
6168 _ACEOF
6169 cat confdefs.h >>conftest.$ac_ext
6170 cat >>conftest.$ac_ext <<_ACEOF
6171 /* end confdefs.h. */
6172 #include <alsa/asoundlib.h>
6174 main ()
6176 snd_lib_error_set_handler (0);
6178 return 0;
6180 _ACEOF
6181 rm -f conftest.$ac_objext
6182 if { (ac_try="$ac_compile"
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_compile") 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); } && {
6195 test -z "$ac_c_werror_flag" ||
6196 test ! -s conftest.err
6197 } && test -s conftest.$ac_objext; then
6198 emacs_alsa_subdir=yes
6199 else
6200 echo "$as_me: failed program was:" >&5
6201 sed 's/^/| /' conftest.$ac_ext >&5
6203 emacs_alsa_subdir=no
6206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6207 if test "$emacs_alsa_subdir" != yes; then
6208 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6209 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6210 { (exit 1); exit 1; }; }
6212 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6215 CFLAGS="$SAVE_CFLAGS"
6216 LDFLAGS="$SAVE_LDFLAGS"
6217 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6218 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6220 cat >>confdefs.h <<\_ACEOF
6221 #define HAVE_ALSA 1
6222 _ACEOF
6253 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6254 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6255 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6256 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6257 sys/utsname.h pwd.h
6259 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6261 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6264 echo $ECHO_N "(cached) $ECHO_C" >&6
6266 ac_res=`eval echo '${'$as_ac_Header'}'`
6267 { echo "$as_me:$LINENO: result: $ac_res" >&5
6268 echo "${ECHO_T}$ac_res" >&6; }
6269 else
6270 # Is the header compilable?
6271 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6272 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6273 cat >conftest.$ac_ext <<_ACEOF
6274 /* confdefs.h. */
6275 _ACEOF
6276 cat confdefs.h >>conftest.$ac_ext
6277 cat >>conftest.$ac_ext <<_ACEOF
6278 /* end confdefs.h. */
6279 $ac_includes_default
6280 #include <$ac_header>
6281 _ACEOF
6282 rm -f conftest.$ac_objext
6283 if { (ac_try="$ac_compile"
6284 case "(($ac_try" in
6285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6286 *) ac_try_echo=$ac_try;;
6287 esac
6288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6289 (eval "$ac_compile") 2>conftest.er1
6290 ac_status=$?
6291 grep -v '^ *+' conftest.er1 >conftest.err
6292 rm -f conftest.er1
6293 cat conftest.err >&5
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); } && {
6296 test -z "$ac_c_werror_flag" ||
6297 test ! -s conftest.err
6298 } && test -s conftest.$ac_objext; then
6299 ac_header_compiler=yes
6300 else
6301 echo "$as_me: failed program was:" >&5
6302 sed 's/^/| /' conftest.$ac_ext >&5
6304 ac_header_compiler=no
6307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6308 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6309 echo "${ECHO_T}$ac_header_compiler" >&6; }
6311 # Is the header present?
6312 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6313 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6314 cat >conftest.$ac_ext <<_ACEOF
6315 /* confdefs.h. */
6316 _ACEOF
6317 cat confdefs.h >>conftest.$ac_ext
6318 cat >>conftest.$ac_ext <<_ACEOF
6319 /* end confdefs.h. */
6320 #include <$ac_header>
6321 _ACEOF
6322 if { (ac_try="$ac_cpp conftest.$ac_ext"
6323 case "(($ac_try" in
6324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6325 *) ac_try_echo=$ac_try;;
6326 esac
6327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6328 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6329 ac_status=$?
6330 grep -v '^ *+' conftest.er1 >conftest.err
6331 rm -f conftest.er1
6332 cat conftest.err >&5
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); } >/dev/null && {
6335 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6336 test ! -s conftest.err
6337 }; then
6338 ac_header_preproc=yes
6339 else
6340 echo "$as_me: failed program was:" >&5
6341 sed 's/^/| /' conftest.$ac_ext >&5
6343 ac_header_preproc=no
6346 rm -f conftest.err conftest.$ac_ext
6347 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6348 echo "${ECHO_T}$ac_header_preproc" >&6; }
6350 # So? What about this header?
6351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6352 yes:no: )
6353 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6354 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6356 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6357 ac_header_preproc=yes
6359 no:yes:* )
6360 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6361 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6362 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6363 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6364 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6365 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6366 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6367 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6369 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6370 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6371 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6374 esac
6375 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6378 echo $ECHO_N "(cached) $ECHO_C" >&6
6379 else
6380 eval "$as_ac_Header=\$ac_header_preproc"
6382 ac_res=`eval echo '${'$as_ac_Header'}'`
6383 { echo "$as_me:$LINENO: result: $ac_res" >&5
6384 echo "${ECHO_T}$ac_res" >&6; }
6387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6388 cat >>confdefs.h <<_ACEOF
6389 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6390 _ACEOF
6394 done
6397 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6398 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6399 cat >conftest.$ac_ext <<_ACEOF
6400 /* confdefs.h. */
6401 _ACEOF
6402 cat confdefs.h >>conftest.$ac_ext
6403 cat >>conftest.$ac_ext <<_ACEOF
6404 /* end confdefs.h. */
6405 #include <sys/personality.h>
6407 main ()
6409 personality (PER_LINUX32)
6411 return 0;
6413 _ACEOF
6414 rm -f conftest.$ac_objext
6415 if { (ac_try="$ac_compile"
6416 case "(($ac_try" in
6417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6418 *) ac_try_echo=$ac_try;;
6419 esac
6420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6421 (eval "$ac_compile") 2>conftest.er1
6422 ac_status=$?
6423 grep -v '^ *+' conftest.er1 >conftest.err
6424 rm -f conftest.er1
6425 cat conftest.err >&5
6426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427 (exit $ac_status); } && {
6428 test -z "$ac_c_werror_flag" ||
6429 test ! -s conftest.err
6430 } && test -s conftest.$ac_objext; then
6431 emacs_cv_personality_linux32=yes
6432 else
6433 echo "$as_me: failed program was:" >&5
6434 sed 's/^/| /' conftest.$ac_ext >&5
6436 emacs_cv_personality_linux32=no
6439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6440 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6441 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6443 if test $emacs_cv_personality_linux32 = yes; then
6445 cat >>confdefs.h <<\_ACEOF
6446 #define HAVE_PERSONALITY_LINUX32 1
6447 _ACEOF
6452 for ac_header in term.h
6454 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6455 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6458 echo $ECHO_N "(cached) $ECHO_C" >&6
6459 else
6460 cat >conftest.$ac_ext <<_ACEOF
6461 /* confdefs.h. */
6462 _ACEOF
6463 cat confdefs.h >>conftest.$ac_ext
6464 cat >>conftest.$ac_ext <<_ACEOF
6465 /* end confdefs.h. */
6466 #include <$ac_header>
6467 _ACEOF
6468 if { (ac_try="$ac_cpp conftest.$ac_ext"
6469 case "(($ac_try" in
6470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6471 *) ac_try_echo=$ac_try;;
6472 esac
6473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6475 ac_status=$?
6476 grep -v '^ *+' conftest.er1 >conftest.err
6477 rm -f conftest.er1
6478 cat conftest.err >&5
6479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480 (exit $ac_status); } >/dev/null && {
6481 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6482 test ! -s conftest.err
6483 }; then
6484 eval "$as_ac_Header=yes"
6485 else
6486 echo "$as_me: failed program was:" >&5
6487 sed 's/^/| /' conftest.$ac_ext >&5
6489 eval "$as_ac_Header=no"
6492 rm -f conftest.err conftest.$ac_ext
6494 ac_res=`eval echo '${'$as_ac_Header'}'`
6495 { echo "$as_me:$LINENO: result: $ac_res" >&5
6496 echo "${ECHO_T}$ac_res" >&6; }
6497 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6498 cat >>confdefs.h <<_ACEOF
6499 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6500 _ACEOF
6504 done
6506 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6507 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6508 if test "${ac_cv_header_stdc+set}" = set; then
6509 echo $ECHO_N "(cached) $ECHO_C" >&6
6510 else
6511 cat >conftest.$ac_ext <<_ACEOF
6512 /* confdefs.h. */
6513 _ACEOF
6514 cat confdefs.h >>conftest.$ac_ext
6515 cat >>conftest.$ac_ext <<_ACEOF
6516 /* end confdefs.h. */
6517 #include <stdlib.h>
6518 #include <stdarg.h>
6519 #include <string.h>
6520 #include <float.h>
6523 main ()
6527 return 0;
6529 _ACEOF
6530 rm -f conftest.$ac_objext
6531 if { (ac_try="$ac_compile"
6532 case "(($ac_try" in
6533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6534 *) ac_try_echo=$ac_try;;
6535 esac
6536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6537 (eval "$ac_compile") 2>conftest.er1
6538 ac_status=$?
6539 grep -v '^ *+' conftest.er1 >conftest.err
6540 rm -f conftest.er1
6541 cat conftest.err >&5
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); } && {
6544 test -z "$ac_c_werror_flag" ||
6545 test ! -s conftest.err
6546 } && test -s conftest.$ac_objext; then
6547 ac_cv_header_stdc=yes
6548 else
6549 echo "$as_me: failed program was:" >&5
6550 sed 's/^/| /' conftest.$ac_ext >&5
6552 ac_cv_header_stdc=no
6555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6557 if test $ac_cv_header_stdc = yes; then
6558 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6559 cat >conftest.$ac_ext <<_ACEOF
6560 /* confdefs.h. */
6561 _ACEOF
6562 cat confdefs.h >>conftest.$ac_ext
6563 cat >>conftest.$ac_ext <<_ACEOF
6564 /* end confdefs.h. */
6565 #include <string.h>
6567 _ACEOF
6568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6569 $EGREP "memchr" >/dev/null 2>&1; then
6571 else
6572 ac_cv_header_stdc=no
6574 rm -f conftest*
6578 if test $ac_cv_header_stdc = yes; then
6579 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6580 cat >conftest.$ac_ext <<_ACEOF
6581 /* confdefs.h. */
6582 _ACEOF
6583 cat confdefs.h >>conftest.$ac_ext
6584 cat >>conftest.$ac_ext <<_ACEOF
6585 /* end confdefs.h. */
6586 #include <stdlib.h>
6588 _ACEOF
6589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6590 $EGREP "free" >/dev/null 2>&1; then
6592 else
6593 ac_cv_header_stdc=no
6595 rm -f conftest*
6599 if test $ac_cv_header_stdc = yes; then
6600 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6601 if test "$cross_compiling" = yes; then
6603 else
6604 cat >conftest.$ac_ext <<_ACEOF
6605 /* confdefs.h. */
6606 _ACEOF
6607 cat confdefs.h >>conftest.$ac_ext
6608 cat >>conftest.$ac_ext <<_ACEOF
6609 /* end confdefs.h. */
6610 #include <ctype.h>
6611 #include <stdlib.h>
6612 #if ((' ' & 0x0FF) == 0x020)
6613 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6614 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6615 #else
6616 # define ISLOWER(c) \
6617 (('a' <= (c) && (c) <= 'i') \
6618 || ('j' <= (c) && (c) <= 'r') \
6619 || ('s' <= (c) && (c) <= 'z'))
6620 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6621 #endif
6623 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6625 main ()
6627 int i;
6628 for (i = 0; i < 256; i++)
6629 if (XOR (islower (i), ISLOWER (i))
6630 || toupper (i) != TOUPPER (i))
6631 return 2;
6632 return 0;
6634 _ACEOF
6635 rm -f conftest$ac_exeext
6636 if { (ac_try="$ac_link"
6637 case "(($ac_try" in
6638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6639 *) ac_try_echo=$ac_try;;
6640 esac
6641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6642 (eval "$ac_link") 2>&5
6643 ac_status=$?
6644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6646 { (case "(($ac_try" in
6647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6648 *) ac_try_echo=$ac_try;;
6649 esac
6650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6651 (eval "$ac_try") 2>&5
6652 ac_status=$?
6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); }; }; then
6656 else
6657 echo "$as_me: program exited with status $ac_status" >&5
6658 echo "$as_me: failed program was:" >&5
6659 sed 's/^/| /' conftest.$ac_ext >&5
6661 ( exit $ac_status )
6662 ac_cv_header_stdc=no
6664 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6670 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6671 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6672 if test $ac_cv_header_stdc = yes; then
6674 cat >>confdefs.h <<\_ACEOF
6675 #define STDC_HEADERS 1
6676 _ACEOF
6680 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6681 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6682 if test "${ac_cv_header_time+set}" = set; then
6683 echo $ECHO_N "(cached) $ECHO_C" >&6
6684 else
6685 cat >conftest.$ac_ext <<_ACEOF
6686 /* confdefs.h. */
6687 _ACEOF
6688 cat confdefs.h >>conftest.$ac_ext
6689 cat >>conftest.$ac_ext <<_ACEOF
6690 /* end confdefs.h. */
6691 #include <sys/types.h>
6692 #include <sys/time.h>
6693 #include <time.h>
6696 main ()
6698 if ((struct tm *) 0)
6699 return 0;
6701 return 0;
6703 _ACEOF
6704 rm -f conftest.$ac_objext
6705 if { (ac_try="$ac_compile"
6706 case "(($ac_try" in
6707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6708 *) ac_try_echo=$ac_try;;
6709 esac
6710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6711 (eval "$ac_compile") 2>conftest.er1
6712 ac_status=$?
6713 grep -v '^ *+' conftest.er1 >conftest.err
6714 rm -f conftest.er1
6715 cat conftest.err >&5
6716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); } && {
6718 test -z "$ac_c_werror_flag" ||
6719 test ! -s conftest.err
6720 } && test -s conftest.$ac_objext; then
6721 ac_cv_header_time=yes
6722 else
6723 echo "$as_me: failed program was:" >&5
6724 sed 's/^/| /' conftest.$ac_ext >&5
6726 ac_cv_header_time=no
6729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6731 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6732 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6733 if test $ac_cv_header_time = yes; then
6735 cat >>confdefs.h <<\_ACEOF
6736 #define TIME_WITH_SYS_TIME 1
6737 _ACEOF
6741 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6742 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6743 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6744 echo $ECHO_N "(cached) $ECHO_C" >&6
6745 else
6746 cat >conftest.$ac_ext <<_ACEOF
6747 /* confdefs.h. */
6748 _ACEOF
6749 cat confdefs.h >>conftest.$ac_ext
6750 cat >>conftest.$ac_ext <<_ACEOF
6751 /* end confdefs.h. */
6752 $ac_includes_default
6754 main ()
6756 #ifndef sys_siglist
6757 (void) sys_siglist;
6758 #endif
6761 return 0;
6763 _ACEOF
6764 rm -f conftest.$ac_objext
6765 if { (ac_try="$ac_compile"
6766 case "(($ac_try" in
6767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6768 *) ac_try_echo=$ac_try;;
6769 esac
6770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6771 (eval "$ac_compile") 2>conftest.er1
6772 ac_status=$?
6773 grep -v '^ *+' conftest.er1 >conftest.err
6774 rm -f conftest.er1
6775 cat conftest.err >&5
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); } && {
6778 test -z "$ac_c_werror_flag" ||
6779 test ! -s conftest.err
6780 } && test -s conftest.$ac_objext; then
6781 ac_cv_have_decl_sys_siglist=yes
6782 else
6783 echo "$as_me: failed program was:" >&5
6784 sed 's/^/| /' conftest.$ac_ext >&5
6786 ac_cv_have_decl_sys_siglist=no
6789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6791 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6792 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6793 if test $ac_cv_have_decl_sys_siglist = yes; then
6795 cat >>confdefs.h <<_ACEOF
6796 #define HAVE_DECL_SYS_SIGLIST 1
6797 _ACEOF
6800 else
6801 cat >>confdefs.h <<_ACEOF
6802 #define HAVE_DECL_SYS_SIGLIST 0
6803 _ACEOF
6809 if test $ac_cv_have_decl_sys_siglist != yes; then
6810 # For Tru64, at least:
6811 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6812 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
6813 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6814 echo $ECHO_N "(cached) $ECHO_C" >&6
6815 else
6816 cat >conftest.$ac_ext <<_ACEOF
6817 /* confdefs.h. */
6818 _ACEOF
6819 cat confdefs.h >>conftest.$ac_ext
6820 cat >>conftest.$ac_ext <<_ACEOF
6821 /* end confdefs.h. */
6822 $ac_includes_default
6824 main ()
6826 #ifndef __sys_siglist
6827 (void) __sys_siglist;
6828 #endif
6831 return 0;
6833 _ACEOF
6834 rm -f conftest.$ac_objext
6835 if { (ac_try="$ac_compile"
6836 case "(($ac_try" in
6837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6838 *) ac_try_echo=$ac_try;;
6839 esac
6840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6841 (eval "$ac_compile") 2>conftest.er1
6842 ac_status=$?
6843 grep -v '^ *+' conftest.er1 >conftest.err
6844 rm -f conftest.er1
6845 cat conftest.err >&5
6846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847 (exit $ac_status); } && {
6848 test -z "$ac_c_werror_flag" ||
6849 test ! -s conftest.err
6850 } && test -s conftest.$ac_objext; then
6851 ac_cv_have_decl___sys_siglist=yes
6852 else
6853 echo "$as_me: failed program was:" >&5
6854 sed 's/^/| /' conftest.$ac_ext >&5
6856 ac_cv_have_decl___sys_siglist=no
6859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6861 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6862 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
6863 if test $ac_cv_have_decl___sys_siglist = yes; then
6865 cat >>confdefs.h <<_ACEOF
6866 #define HAVE_DECL___SYS_SIGLIST 1
6867 _ACEOF
6870 else
6871 cat >>confdefs.h <<_ACEOF
6872 #define HAVE_DECL___SYS_SIGLIST 0
6873 _ACEOF
6879 if test $ac_cv_have_decl___sys_siglist = yes; then
6881 cat >>confdefs.h <<\_ACEOF
6882 #define sys_siglist __sys_siglist
6883 _ACEOF
6887 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6888 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6889 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6890 echo $ECHO_N "(cached) $ECHO_C" >&6
6891 else
6892 cat >conftest.$ac_ext <<_ACEOF
6893 /* confdefs.h. */
6894 _ACEOF
6895 cat confdefs.h >>conftest.$ac_ext
6896 cat >>conftest.$ac_ext <<_ACEOF
6897 /* end confdefs.h. */
6898 #include <sys/types.h>
6899 #include <sys/wait.h>
6900 #ifndef WEXITSTATUS
6901 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6902 #endif
6903 #ifndef WIFEXITED
6904 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6905 #endif
6908 main ()
6910 int s;
6911 wait (&s);
6912 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6914 return 0;
6916 _ACEOF
6917 rm -f conftest.$ac_objext
6918 if { (ac_try="$ac_compile"
6919 case "(($ac_try" in
6920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6921 *) ac_try_echo=$ac_try;;
6922 esac
6923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6924 (eval "$ac_compile") 2>conftest.er1
6925 ac_status=$?
6926 grep -v '^ *+' conftest.er1 >conftest.err
6927 rm -f conftest.er1
6928 cat conftest.err >&5
6929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930 (exit $ac_status); } && {
6931 test -z "$ac_c_werror_flag" ||
6932 test ! -s conftest.err
6933 } && test -s conftest.$ac_objext; then
6934 ac_cv_header_sys_wait_h=yes
6935 else
6936 echo "$as_me: failed program was:" >&5
6937 sed 's/^/| /' conftest.$ac_ext >&5
6939 ac_cv_header_sys_wait_h=no
6942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6944 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6945 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6946 if test $ac_cv_header_sys_wait_h = yes; then
6948 cat >>confdefs.h <<\_ACEOF
6949 #define HAVE_SYS_WAIT_H 1
6950 _ACEOF
6955 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6956 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
6957 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6958 echo $ECHO_N "(cached) $ECHO_C" >&6
6959 else
6960 cat >conftest.$ac_ext <<_ACEOF
6961 /* confdefs.h. */
6962 _ACEOF
6963 cat confdefs.h >>conftest.$ac_ext
6964 cat >>conftest.$ac_ext <<_ACEOF
6965 /* end confdefs.h. */
6966 #ifdef TIME_WITH_SYS_TIME
6967 #include <sys/time.h>
6968 #include <time.h>
6969 #else
6970 #ifdef HAVE_SYS_TIME_H
6971 #include <sys/time.h>
6972 #else
6973 #include <time.h>
6974 #endif
6975 #endif
6976 #ifdef HAVE_UTIME_H
6977 #include <utime.h>
6978 #endif
6980 main ()
6982 static struct utimbuf x; x.actime = x.modtime;
6984 return 0;
6986 _ACEOF
6987 rm -f conftest.$ac_objext
6988 if { (ac_try="$ac_compile"
6989 case "(($ac_try" in
6990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6991 *) ac_try_echo=$ac_try;;
6992 esac
6993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6994 (eval "$ac_compile") 2>conftest.er1
6995 ac_status=$?
6996 grep -v '^ *+' conftest.er1 >conftest.err
6997 rm -f conftest.er1
6998 cat conftest.err >&5
6999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000 (exit $ac_status); } && {
7001 test -z "$ac_c_werror_flag" ||
7002 test ! -s conftest.err
7003 } && test -s conftest.$ac_objext; then
7004 emacs_cv_struct_utimbuf=yes
7005 else
7006 echo "$as_me: failed program was:" >&5
7007 sed 's/^/| /' conftest.$ac_ext >&5
7009 emacs_cv_struct_utimbuf=no
7012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7014 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7015 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7016 if test $emacs_cv_struct_utimbuf = yes; then
7018 cat >>confdefs.h <<\_ACEOF
7019 #define HAVE_STRUCT_UTIMBUF 1
7020 _ACEOF
7024 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7025 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7026 if test "${ac_cv_type_signal+set}" = set; then
7027 echo $ECHO_N "(cached) $ECHO_C" >&6
7028 else
7029 cat >conftest.$ac_ext <<_ACEOF
7030 /* confdefs.h. */
7031 _ACEOF
7032 cat confdefs.h >>conftest.$ac_ext
7033 cat >>conftest.$ac_ext <<_ACEOF
7034 /* end confdefs.h. */
7035 #include <sys/types.h>
7036 #include <signal.h>
7039 main ()
7041 return *(signal (0, 0)) (0) == 1;
7043 return 0;
7045 _ACEOF
7046 rm -f conftest.$ac_objext
7047 if { (ac_try="$ac_compile"
7048 case "(($ac_try" in
7049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7050 *) ac_try_echo=$ac_try;;
7051 esac
7052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7053 (eval "$ac_compile") 2>conftest.er1
7054 ac_status=$?
7055 grep -v '^ *+' conftest.er1 >conftest.err
7056 rm -f conftest.er1
7057 cat conftest.err >&5
7058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059 (exit $ac_status); } && {
7060 test -z "$ac_c_werror_flag" ||
7061 test ! -s conftest.err
7062 } && test -s conftest.$ac_objext; then
7063 ac_cv_type_signal=int
7064 else
7065 echo "$as_me: failed program was:" >&5
7066 sed 's/^/| /' conftest.$ac_ext >&5
7068 ac_cv_type_signal=void
7071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7073 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7074 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7076 cat >>confdefs.h <<_ACEOF
7077 #define RETSIGTYPE $ac_cv_type_signal
7078 _ACEOF
7082 { echo "$as_me:$LINENO: checking for speed_t" >&5
7083 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7084 if test "${emacs_cv_speed_t+set}" = set; then
7085 echo $ECHO_N "(cached) $ECHO_C" >&6
7086 else
7087 cat >conftest.$ac_ext <<_ACEOF
7088 /* confdefs.h. */
7089 _ACEOF
7090 cat confdefs.h >>conftest.$ac_ext
7091 cat >>conftest.$ac_ext <<_ACEOF
7092 /* end confdefs.h. */
7093 #include <termios.h>
7095 main ()
7097 speed_t x = 1;
7099 return 0;
7101 _ACEOF
7102 rm -f conftest.$ac_objext
7103 if { (ac_try="$ac_compile"
7104 case "(($ac_try" in
7105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7106 *) ac_try_echo=$ac_try;;
7107 esac
7108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7109 (eval "$ac_compile") 2>conftest.er1
7110 ac_status=$?
7111 grep -v '^ *+' conftest.er1 >conftest.err
7112 rm -f conftest.er1
7113 cat conftest.err >&5
7114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115 (exit $ac_status); } && {
7116 test -z "$ac_c_werror_flag" ||
7117 test ! -s conftest.err
7118 } && test -s conftest.$ac_objext; then
7119 emacs_cv_speed_t=yes
7120 else
7121 echo "$as_me: failed program was:" >&5
7122 sed 's/^/| /' conftest.$ac_ext >&5
7124 emacs_cv_speed_t=no
7127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7129 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7130 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7131 if test $emacs_cv_speed_t = yes; then
7133 cat >>confdefs.h <<\_ACEOF
7134 #define HAVE_SPEED_T 1
7135 _ACEOF
7139 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7140 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7141 if test "${emacs_cv_struct_timeval+set}" = set; then
7142 echo $ECHO_N "(cached) $ECHO_C" >&6
7143 else
7144 cat >conftest.$ac_ext <<_ACEOF
7145 /* confdefs.h. */
7146 _ACEOF
7147 cat confdefs.h >>conftest.$ac_ext
7148 cat >>conftest.$ac_ext <<_ACEOF
7149 /* end confdefs.h. */
7150 #ifdef TIME_WITH_SYS_TIME
7151 #include <sys/time.h>
7152 #include <time.h>
7153 #else
7154 #ifdef HAVE_SYS_TIME_H
7155 #include <sys/time.h>
7156 #else
7157 #include <time.h>
7158 #endif
7159 #endif
7161 main ()
7163 static struct timeval x; x.tv_sec = x.tv_usec;
7165 return 0;
7167 _ACEOF
7168 rm -f conftest.$ac_objext
7169 if { (ac_try="$ac_compile"
7170 case "(($ac_try" in
7171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7172 *) ac_try_echo=$ac_try;;
7173 esac
7174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7175 (eval "$ac_compile") 2>conftest.er1
7176 ac_status=$?
7177 grep -v '^ *+' conftest.er1 >conftest.err
7178 rm -f conftest.er1
7179 cat conftest.err >&5
7180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7181 (exit $ac_status); } && {
7182 test -z "$ac_c_werror_flag" ||
7183 test ! -s conftest.err
7184 } && test -s conftest.$ac_objext; then
7185 emacs_cv_struct_timeval=yes
7186 else
7187 echo "$as_me: failed program was:" >&5
7188 sed 's/^/| /' conftest.$ac_ext >&5
7190 emacs_cv_struct_timeval=no
7193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7195 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7196 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7197 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7198 if test $emacs_cv_struct_timeval = yes; then
7200 cat >>confdefs.h <<\_ACEOF
7201 #define HAVE_TIMEVAL 1
7202 _ACEOF
7206 { echo "$as_me:$LINENO: checking for struct exception" >&5
7207 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7208 if test "${emacs_cv_struct_exception+set}" = set; then
7209 echo $ECHO_N "(cached) $ECHO_C" >&6
7210 else
7211 cat >conftest.$ac_ext <<_ACEOF
7212 /* confdefs.h. */
7213 _ACEOF
7214 cat confdefs.h >>conftest.$ac_ext
7215 cat >>conftest.$ac_ext <<_ACEOF
7216 /* end confdefs.h. */
7217 #include <math.h>
7219 main ()
7221 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7223 return 0;
7225 _ACEOF
7226 rm -f conftest.$ac_objext
7227 if { (ac_try="$ac_compile"
7228 case "(($ac_try" in
7229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7230 *) ac_try_echo=$ac_try;;
7231 esac
7232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7233 (eval "$ac_compile") 2>conftest.er1
7234 ac_status=$?
7235 grep -v '^ *+' conftest.er1 >conftest.err
7236 rm -f conftest.er1
7237 cat conftest.err >&5
7238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239 (exit $ac_status); } && {
7240 test -z "$ac_c_werror_flag" ||
7241 test ! -s conftest.err
7242 } && test -s conftest.$ac_objext; then
7243 emacs_cv_struct_exception=yes
7244 else
7245 echo "$as_me: failed program was:" >&5
7246 sed 's/^/| /' conftest.$ac_ext >&5
7248 emacs_cv_struct_exception=no
7251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7253 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7254 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7255 HAVE_EXCEPTION=$emacs_cv_struct_exception
7256 if test $emacs_cv_struct_exception != yes; then
7258 cat >>confdefs.h <<\_ACEOF
7259 #define NO_MATHERR 1
7260 _ACEOF
7265 for ac_header in sys/socket.h
7267 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7269 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7272 echo $ECHO_N "(cached) $ECHO_C" >&6
7274 ac_res=`eval echo '${'$as_ac_Header'}'`
7275 { echo "$as_me:$LINENO: result: $ac_res" >&5
7276 echo "${ECHO_T}$ac_res" >&6; }
7277 else
7278 # Is the header compilable?
7279 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7280 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7281 cat >conftest.$ac_ext <<_ACEOF
7282 /* confdefs.h. */
7283 _ACEOF
7284 cat confdefs.h >>conftest.$ac_ext
7285 cat >>conftest.$ac_ext <<_ACEOF
7286 /* end confdefs.h. */
7287 $ac_includes_default
7288 #include <$ac_header>
7289 _ACEOF
7290 rm -f conftest.$ac_objext
7291 if { (ac_try="$ac_compile"
7292 case "(($ac_try" in
7293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7294 *) ac_try_echo=$ac_try;;
7295 esac
7296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7297 (eval "$ac_compile") 2>conftest.er1
7298 ac_status=$?
7299 grep -v '^ *+' conftest.er1 >conftest.err
7300 rm -f conftest.er1
7301 cat conftest.err >&5
7302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303 (exit $ac_status); } && {
7304 test -z "$ac_c_werror_flag" ||
7305 test ! -s conftest.err
7306 } && test -s conftest.$ac_objext; then
7307 ac_header_compiler=yes
7308 else
7309 echo "$as_me: failed program was:" >&5
7310 sed 's/^/| /' conftest.$ac_ext >&5
7312 ac_header_compiler=no
7315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7316 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7317 echo "${ECHO_T}$ac_header_compiler" >&6; }
7319 # Is the header present?
7320 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7321 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7322 cat >conftest.$ac_ext <<_ACEOF
7323 /* confdefs.h. */
7324 _ACEOF
7325 cat confdefs.h >>conftest.$ac_ext
7326 cat >>conftest.$ac_ext <<_ACEOF
7327 /* end confdefs.h. */
7328 #include <$ac_header>
7329 _ACEOF
7330 if { (ac_try="$ac_cpp conftest.$ac_ext"
7331 case "(($ac_try" in
7332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7333 *) ac_try_echo=$ac_try;;
7334 esac
7335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7336 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7337 ac_status=$?
7338 grep -v '^ *+' conftest.er1 >conftest.err
7339 rm -f conftest.er1
7340 cat conftest.err >&5
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); } >/dev/null && {
7343 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7344 test ! -s conftest.err
7345 }; then
7346 ac_header_preproc=yes
7347 else
7348 echo "$as_me: failed program was:" >&5
7349 sed 's/^/| /' conftest.$ac_ext >&5
7351 ac_header_preproc=no
7354 rm -f conftest.err conftest.$ac_ext
7355 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7356 echo "${ECHO_T}$ac_header_preproc" >&6; }
7358 # So? What about this header?
7359 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7360 yes:no: )
7361 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7362 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7364 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7365 ac_header_preproc=yes
7367 no:yes:* )
7368 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7369 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7370 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7371 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7372 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7373 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7374 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7375 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7377 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7378 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7379 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7382 esac
7383 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7386 echo $ECHO_N "(cached) $ECHO_C" >&6
7387 else
7388 eval "$as_ac_Header=\$ac_header_preproc"
7390 ac_res=`eval echo '${'$as_ac_Header'}'`
7391 { echo "$as_me:$LINENO: result: $ac_res" >&5
7392 echo "${ECHO_T}$ac_res" >&6; }
7395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7396 cat >>confdefs.h <<_ACEOF
7397 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7398 _ACEOF
7402 done
7405 for ac_header in net/if.h
7407 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7408 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7411 echo $ECHO_N "(cached) $ECHO_C" >&6
7412 else
7413 cat >conftest.$ac_ext <<_ACEOF
7414 /* confdefs.h. */
7415 _ACEOF
7416 cat confdefs.h >>conftest.$ac_ext
7417 cat >>conftest.$ac_ext <<_ACEOF
7418 /* end confdefs.h. */
7419 $ac_includes_default
7420 #if HAVE_SYS_SOCKET_H
7421 #include <sys/socket.h>
7422 #endif
7424 #include <$ac_header>
7425 _ACEOF
7426 rm -f conftest.$ac_objext
7427 if { (ac_try="$ac_compile"
7428 case "(($ac_try" in
7429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7430 *) ac_try_echo=$ac_try;;
7431 esac
7432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7433 (eval "$ac_compile") 2>conftest.er1
7434 ac_status=$?
7435 grep -v '^ *+' conftest.er1 >conftest.err
7436 rm -f conftest.er1
7437 cat conftest.err >&5
7438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439 (exit $ac_status); } && {
7440 test -z "$ac_c_werror_flag" ||
7441 test ! -s conftest.err
7442 } && test -s conftest.$ac_objext; then
7443 eval "$as_ac_Header=yes"
7444 else
7445 echo "$as_me: failed program was:" >&5
7446 sed 's/^/| /' conftest.$ac_ext >&5
7448 eval "$as_ac_Header=no"
7451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7453 ac_res=`eval echo '${'$as_ac_Header'}'`
7454 { echo "$as_me:$LINENO: result: $ac_res" >&5
7455 echo "${ECHO_T}$ac_res" >&6; }
7456 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7457 cat >>confdefs.h <<_ACEOF
7458 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7459 _ACEOF
7463 done
7466 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7467 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7468 if test "${ac_cv_struct_tm+set}" = set; then
7469 echo $ECHO_N "(cached) $ECHO_C" >&6
7470 else
7471 cat >conftest.$ac_ext <<_ACEOF
7472 /* confdefs.h. */
7473 _ACEOF
7474 cat confdefs.h >>conftest.$ac_ext
7475 cat >>conftest.$ac_ext <<_ACEOF
7476 /* end confdefs.h. */
7477 #include <sys/types.h>
7478 #include <time.h>
7481 main ()
7483 struct tm tm;
7484 int *p = &tm.tm_sec;
7485 return !p;
7487 return 0;
7489 _ACEOF
7490 rm -f conftest.$ac_objext
7491 if { (ac_try="$ac_compile"
7492 case "(($ac_try" in
7493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7494 *) ac_try_echo=$ac_try;;
7495 esac
7496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7497 (eval "$ac_compile") 2>conftest.er1
7498 ac_status=$?
7499 grep -v '^ *+' conftest.er1 >conftest.err
7500 rm -f conftest.er1
7501 cat conftest.err >&5
7502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503 (exit $ac_status); } && {
7504 test -z "$ac_c_werror_flag" ||
7505 test ! -s conftest.err
7506 } && test -s conftest.$ac_objext; then
7507 ac_cv_struct_tm=time.h
7508 else
7509 echo "$as_me: failed program was:" >&5
7510 sed 's/^/| /' conftest.$ac_ext >&5
7512 ac_cv_struct_tm=sys/time.h
7515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7517 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7518 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7519 if test $ac_cv_struct_tm = sys/time.h; then
7521 cat >>confdefs.h <<\_ACEOF
7522 #define TM_IN_SYS_TIME 1
7523 _ACEOF
7527 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7528 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7529 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7530 echo $ECHO_N "(cached) $ECHO_C" >&6
7531 else
7532 cat >conftest.$ac_ext <<_ACEOF
7533 /* confdefs.h. */
7534 _ACEOF
7535 cat confdefs.h >>conftest.$ac_ext
7536 cat >>conftest.$ac_ext <<_ACEOF
7537 /* end confdefs.h. */
7538 #include <sys/types.h>
7539 #include <$ac_cv_struct_tm>
7543 main ()
7545 static struct tm ac_aggr;
7546 if (ac_aggr.tm_zone)
7547 return 0;
7549 return 0;
7551 _ACEOF
7552 rm -f conftest.$ac_objext
7553 if { (ac_try="$ac_compile"
7554 case "(($ac_try" in
7555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7556 *) ac_try_echo=$ac_try;;
7557 esac
7558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7559 (eval "$ac_compile") 2>conftest.er1
7560 ac_status=$?
7561 grep -v '^ *+' conftest.er1 >conftest.err
7562 rm -f conftest.er1
7563 cat conftest.err >&5
7564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565 (exit $ac_status); } && {
7566 test -z "$ac_c_werror_flag" ||
7567 test ! -s conftest.err
7568 } && test -s conftest.$ac_objext; then
7569 ac_cv_member_struct_tm_tm_zone=yes
7570 else
7571 echo "$as_me: failed program was:" >&5
7572 sed 's/^/| /' conftest.$ac_ext >&5
7574 cat >conftest.$ac_ext <<_ACEOF
7575 /* confdefs.h. */
7576 _ACEOF
7577 cat confdefs.h >>conftest.$ac_ext
7578 cat >>conftest.$ac_ext <<_ACEOF
7579 /* end confdefs.h. */
7580 #include <sys/types.h>
7581 #include <$ac_cv_struct_tm>
7585 main ()
7587 static struct tm ac_aggr;
7588 if (sizeof ac_aggr.tm_zone)
7589 return 0;
7591 return 0;
7593 _ACEOF
7594 rm -f conftest.$ac_objext
7595 if { (ac_try="$ac_compile"
7596 case "(($ac_try" in
7597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7598 *) ac_try_echo=$ac_try;;
7599 esac
7600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7601 (eval "$ac_compile") 2>conftest.er1
7602 ac_status=$?
7603 grep -v '^ *+' conftest.er1 >conftest.err
7604 rm -f conftest.er1
7605 cat conftest.err >&5
7606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607 (exit $ac_status); } && {
7608 test -z "$ac_c_werror_flag" ||
7609 test ! -s conftest.err
7610 } && test -s conftest.$ac_objext; then
7611 ac_cv_member_struct_tm_tm_zone=yes
7612 else
7613 echo "$as_me: failed program was:" >&5
7614 sed 's/^/| /' conftest.$ac_ext >&5
7616 ac_cv_member_struct_tm_tm_zone=no
7619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7624 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7625 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7626 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7628 cat >>confdefs.h <<_ACEOF
7629 #define HAVE_STRUCT_TM_TM_ZONE 1
7630 _ACEOF
7635 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7637 cat >>confdefs.h <<\_ACEOF
7638 #define HAVE_TM_ZONE 1
7639 _ACEOF
7641 else
7642 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7643 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7644 if test "${ac_cv_have_decl_tzname+set}" = set; then
7645 echo $ECHO_N "(cached) $ECHO_C" >&6
7646 else
7647 cat >conftest.$ac_ext <<_ACEOF
7648 /* confdefs.h. */
7649 _ACEOF
7650 cat confdefs.h >>conftest.$ac_ext
7651 cat >>conftest.$ac_ext <<_ACEOF
7652 /* end confdefs.h. */
7653 #include <time.h>
7656 main ()
7658 #ifndef tzname
7659 (void) tzname;
7660 #endif
7663 return 0;
7665 _ACEOF
7666 rm -f conftest.$ac_objext
7667 if { (ac_try="$ac_compile"
7668 case "(($ac_try" in
7669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7670 *) ac_try_echo=$ac_try;;
7671 esac
7672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7673 (eval "$ac_compile") 2>conftest.er1
7674 ac_status=$?
7675 grep -v '^ *+' conftest.er1 >conftest.err
7676 rm -f conftest.er1
7677 cat conftest.err >&5
7678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679 (exit $ac_status); } && {
7680 test -z "$ac_c_werror_flag" ||
7681 test ! -s conftest.err
7682 } && test -s conftest.$ac_objext; then
7683 ac_cv_have_decl_tzname=yes
7684 else
7685 echo "$as_me: failed program was:" >&5
7686 sed 's/^/| /' conftest.$ac_ext >&5
7688 ac_cv_have_decl_tzname=no
7691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7693 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7694 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7695 if test $ac_cv_have_decl_tzname = yes; then
7697 cat >>confdefs.h <<_ACEOF
7698 #define HAVE_DECL_TZNAME 1
7699 _ACEOF
7702 else
7703 cat >>confdefs.h <<_ACEOF
7704 #define HAVE_DECL_TZNAME 0
7705 _ACEOF
7711 { echo "$as_me:$LINENO: checking for tzname" >&5
7712 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7713 if test "${ac_cv_var_tzname+set}" = set; then
7714 echo $ECHO_N "(cached) $ECHO_C" >&6
7715 else
7716 cat >conftest.$ac_ext <<_ACEOF
7717 /* confdefs.h. */
7718 _ACEOF
7719 cat confdefs.h >>conftest.$ac_ext
7720 cat >>conftest.$ac_ext <<_ACEOF
7721 /* end confdefs.h. */
7722 #include <time.h>
7723 #if !HAVE_DECL_TZNAME
7724 extern char *tzname[];
7725 #endif
7728 main ()
7730 return tzname[0][0];
7732 return 0;
7734 _ACEOF
7735 rm -f conftest.$ac_objext conftest$ac_exeext
7736 if { (ac_try="$ac_link"
7737 case "(($ac_try" in
7738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7739 *) ac_try_echo=$ac_try;;
7740 esac
7741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7742 (eval "$ac_link") 2>conftest.er1
7743 ac_status=$?
7744 grep -v '^ *+' conftest.er1 >conftest.err
7745 rm -f conftest.er1
7746 cat conftest.err >&5
7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 (exit $ac_status); } && {
7749 test -z "$ac_c_werror_flag" ||
7750 test ! -s conftest.err
7751 } && test -s conftest$ac_exeext &&
7752 $as_test_x conftest$ac_exeext; then
7753 ac_cv_var_tzname=yes
7754 else
7755 echo "$as_me: failed program was:" >&5
7756 sed 's/^/| /' conftest.$ac_ext >&5
7758 ac_cv_var_tzname=no
7761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7762 conftest$ac_exeext conftest.$ac_ext
7764 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7765 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7766 if test $ac_cv_var_tzname = yes; then
7768 cat >>confdefs.h <<\_ACEOF
7769 #define HAVE_TZNAME 1
7770 _ACEOF
7775 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7776 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7777 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7778 echo $ECHO_N "(cached) $ECHO_C" >&6
7779 else
7780 cat >conftest.$ac_ext <<_ACEOF
7781 /* confdefs.h. */
7782 _ACEOF
7783 cat confdefs.h >>conftest.$ac_ext
7784 cat >>conftest.$ac_ext <<_ACEOF
7785 /* end confdefs.h. */
7786 #include <time.h>
7789 main ()
7791 static struct tm ac_aggr;
7792 if (ac_aggr.tm_gmtoff)
7793 return 0;
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_member_struct_tm_tm_gmtoff=yes
7816 else
7817 echo "$as_me: failed program was:" >&5
7818 sed 's/^/| /' conftest.$ac_ext >&5
7820 cat >conftest.$ac_ext <<_ACEOF
7821 /* confdefs.h. */
7822 _ACEOF
7823 cat confdefs.h >>conftest.$ac_ext
7824 cat >>conftest.$ac_ext <<_ACEOF
7825 /* end confdefs.h. */
7826 #include <time.h>
7829 main ()
7831 static struct tm ac_aggr;
7832 if (sizeof ac_aggr.tm_gmtoff)
7833 return 0;
7835 return 0;
7837 _ACEOF
7838 rm -f conftest.$ac_objext
7839 if { (ac_try="$ac_compile"
7840 case "(($ac_try" in
7841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7842 *) ac_try_echo=$ac_try;;
7843 esac
7844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7845 (eval "$ac_compile") 2>conftest.er1
7846 ac_status=$?
7847 grep -v '^ *+' conftest.er1 >conftest.err
7848 rm -f conftest.er1
7849 cat conftest.err >&5
7850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851 (exit $ac_status); } && {
7852 test -z "$ac_c_werror_flag" ||
7853 test ! -s conftest.err
7854 } && test -s conftest.$ac_objext; then
7855 ac_cv_member_struct_tm_tm_gmtoff=yes
7856 else
7857 echo "$as_me: failed program was:" >&5
7858 sed 's/^/| /' conftest.$ac_ext >&5
7860 ac_cv_member_struct_tm_tm_gmtoff=no
7863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7868 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7869 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7870 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7872 cat >>confdefs.h <<\_ACEOF
7873 #define HAVE_TM_GMTOFF 1
7874 _ACEOF
7878 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7879 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
7880 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7881 echo $ECHO_N "(cached) $ECHO_C" >&6
7882 else
7883 cat >conftest.$ac_ext <<_ACEOF
7884 /* confdefs.h. */
7885 _ACEOF
7886 cat confdefs.h >>conftest.$ac_ext
7887 cat >>conftest.$ac_ext <<_ACEOF
7888 /* end confdefs.h. */
7889 $ac_includes_default
7890 #if HAVE_SYS_SOCKET_H
7891 #include <sys/socket.h>
7892 #endif
7893 #if HAVE_NET_IF_H
7894 #include <net/if.h>
7895 #endif
7898 main ()
7900 static struct ifreq ac_aggr;
7901 if (ac_aggr.ifr_flags)
7902 return 0;
7904 return 0;
7906 _ACEOF
7907 rm -f conftest.$ac_objext
7908 if { (ac_try="$ac_compile"
7909 case "(($ac_try" in
7910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7911 *) ac_try_echo=$ac_try;;
7912 esac
7913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7914 (eval "$ac_compile") 2>conftest.er1
7915 ac_status=$?
7916 grep -v '^ *+' conftest.er1 >conftest.err
7917 rm -f conftest.er1
7918 cat conftest.err >&5
7919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920 (exit $ac_status); } && {
7921 test -z "$ac_c_werror_flag" ||
7922 test ! -s conftest.err
7923 } && test -s conftest.$ac_objext; then
7924 ac_cv_member_struct_ifreq_ifr_flags=yes
7925 else
7926 echo "$as_me: failed program was:" >&5
7927 sed 's/^/| /' conftest.$ac_ext >&5
7929 cat >conftest.$ac_ext <<_ACEOF
7930 /* confdefs.h. */
7931 _ACEOF
7932 cat confdefs.h >>conftest.$ac_ext
7933 cat >>conftest.$ac_ext <<_ACEOF
7934 /* end confdefs.h. */
7935 $ac_includes_default
7936 #if HAVE_SYS_SOCKET_H
7937 #include <sys/socket.h>
7938 #endif
7939 #if HAVE_NET_IF_H
7940 #include <net/if.h>
7941 #endif
7944 main ()
7946 static struct ifreq ac_aggr;
7947 if (sizeof ac_aggr.ifr_flags)
7948 return 0;
7950 return 0;
7952 _ACEOF
7953 rm -f conftest.$ac_objext
7954 if { (ac_try="$ac_compile"
7955 case "(($ac_try" in
7956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7957 *) ac_try_echo=$ac_try;;
7958 esac
7959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7960 (eval "$ac_compile") 2>conftest.er1
7961 ac_status=$?
7962 grep -v '^ *+' conftest.er1 >conftest.err
7963 rm -f conftest.er1
7964 cat conftest.err >&5
7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966 (exit $ac_status); } && {
7967 test -z "$ac_c_werror_flag" ||
7968 test ! -s conftest.err
7969 } && test -s conftest.$ac_objext; then
7970 ac_cv_member_struct_ifreq_ifr_flags=yes
7971 else
7972 echo "$as_me: failed program was:" >&5
7973 sed 's/^/| /' conftest.$ac_ext >&5
7975 ac_cv_member_struct_ifreq_ifr_flags=no
7978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7983 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7984 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
7985 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7987 cat >>confdefs.h <<_ACEOF
7988 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7989 _ACEOF
7993 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7994 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
7995 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7996 echo $ECHO_N "(cached) $ECHO_C" >&6
7997 else
7998 cat >conftest.$ac_ext <<_ACEOF
7999 /* confdefs.h. */
8000 _ACEOF
8001 cat confdefs.h >>conftest.$ac_ext
8002 cat >>conftest.$ac_ext <<_ACEOF
8003 /* end confdefs.h. */
8004 $ac_includes_default
8005 #if HAVE_SYS_SOCKET_H
8006 #include <sys/socket.h>
8007 #endif
8008 #if HAVE_NET_IF_H
8009 #include <net/if.h>
8010 #endif
8013 main ()
8015 static struct ifreq ac_aggr;
8016 if (ac_aggr.ifr_hwaddr)
8017 return 0;
8019 return 0;
8021 _ACEOF
8022 rm -f conftest.$ac_objext
8023 if { (ac_try="$ac_compile"
8024 case "(($ac_try" in
8025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8026 *) ac_try_echo=$ac_try;;
8027 esac
8028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8029 (eval "$ac_compile") 2>conftest.er1
8030 ac_status=$?
8031 grep -v '^ *+' conftest.er1 >conftest.err
8032 rm -f conftest.er1
8033 cat conftest.err >&5
8034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); } && {
8036 test -z "$ac_c_werror_flag" ||
8037 test ! -s conftest.err
8038 } && test -s conftest.$ac_objext; then
8039 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8040 else
8041 echo "$as_me: failed program was:" >&5
8042 sed 's/^/| /' conftest.$ac_ext >&5
8044 cat >conftest.$ac_ext <<_ACEOF
8045 /* confdefs.h. */
8046 _ACEOF
8047 cat confdefs.h >>conftest.$ac_ext
8048 cat >>conftest.$ac_ext <<_ACEOF
8049 /* end confdefs.h. */
8050 $ac_includes_default
8051 #if HAVE_SYS_SOCKET_H
8052 #include <sys/socket.h>
8053 #endif
8054 #if HAVE_NET_IF_H
8055 #include <net/if.h>
8056 #endif
8059 main ()
8061 static struct ifreq ac_aggr;
8062 if (sizeof ac_aggr.ifr_hwaddr)
8063 return 0;
8065 return 0;
8067 _ACEOF
8068 rm -f conftest.$ac_objext
8069 if { (ac_try="$ac_compile"
8070 case "(($ac_try" in
8071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8072 *) ac_try_echo=$ac_try;;
8073 esac
8074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8075 (eval "$ac_compile") 2>conftest.er1
8076 ac_status=$?
8077 grep -v '^ *+' conftest.er1 >conftest.err
8078 rm -f conftest.er1
8079 cat conftest.err >&5
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); } && {
8082 test -z "$ac_c_werror_flag" ||
8083 test ! -s conftest.err
8084 } && test -s conftest.$ac_objext; then
8085 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8086 else
8087 echo "$as_me: failed program was:" >&5
8088 sed 's/^/| /' conftest.$ac_ext >&5
8090 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8098 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8099 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8100 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8102 cat >>confdefs.h <<_ACEOF
8103 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8104 _ACEOF
8108 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8109 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8110 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8111 echo $ECHO_N "(cached) $ECHO_C" >&6
8112 else
8113 cat >conftest.$ac_ext <<_ACEOF
8114 /* confdefs.h. */
8115 _ACEOF
8116 cat confdefs.h >>conftest.$ac_ext
8117 cat >>conftest.$ac_ext <<_ACEOF
8118 /* end confdefs.h. */
8119 $ac_includes_default
8120 #if HAVE_SYS_SOCKET_H
8121 #include <sys/socket.h>
8122 #endif
8123 #if HAVE_NET_IF_H
8124 #include <net/if.h>
8125 #endif
8128 main ()
8130 static struct ifreq ac_aggr;
8131 if (ac_aggr.ifr_netmask)
8132 return 0;
8134 return 0;
8136 _ACEOF
8137 rm -f conftest.$ac_objext
8138 if { (ac_try="$ac_compile"
8139 case "(($ac_try" in
8140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8141 *) ac_try_echo=$ac_try;;
8142 esac
8143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8144 (eval "$ac_compile") 2>conftest.er1
8145 ac_status=$?
8146 grep -v '^ *+' conftest.er1 >conftest.err
8147 rm -f conftest.er1
8148 cat conftest.err >&5
8149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150 (exit $ac_status); } && {
8151 test -z "$ac_c_werror_flag" ||
8152 test ! -s conftest.err
8153 } && test -s conftest.$ac_objext; then
8154 ac_cv_member_struct_ifreq_ifr_netmask=yes
8155 else
8156 echo "$as_me: failed program was:" >&5
8157 sed 's/^/| /' conftest.$ac_ext >&5
8159 cat >conftest.$ac_ext <<_ACEOF
8160 /* confdefs.h. */
8161 _ACEOF
8162 cat confdefs.h >>conftest.$ac_ext
8163 cat >>conftest.$ac_ext <<_ACEOF
8164 /* end confdefs.h. */
8165 $ac_includes_default
8166 #if HAVE_SYS_SOCKET_H
8167 #include <sys/socket.h>
8168 #endif
8169 #if HAVE_NET_IF_H
8170 #include <net/if.h>
8171 #endif
8174 main ()
8176 static struct ifreq ac_aggr;
8177 if (sizeof ac_aggr.ifr_netmask)
8178 return 0;
8180 return 0;
8182 _ACEOF
8183 rm -f conftest.$ac_objext
8184 if { (ac_try="$ac_compile"
8185 case "(($ac_try" in
8186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8187 *) ac_try_echo=$ac_try;;
8188 esac
8189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8190 (eval "$ac_compile") 2>conftest.er1
8191 ac_status=$?
8192 grep -v '^ *+' conftest.er1 >conftest.err
8193 rm -f conftest.er1
8194 cat conftest.err >&5
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); } && {
8197 test -z "$ac_c_werror_flag" ||
8198 test ! -s conftest.err
8199 } && test -s conftest.$ac_objext; then
8200 ac_cv_member_struct_ifreq_ifr_netmask=yes
8201 else
8202 echo "$as_me: failed program was:" >&5
8203 sed 's/^/| /' conftest.$ac_ext >&5
8205 ac_cv_member_struct_ifreq_ifr_netmask=no
8208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8213 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8214 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8215 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8217 cat >>confdefs.h <<_ACEOF
8218 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8219 _ACEOF
8223 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8224 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8225 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8226 echo $ECHO_N "(cached) $ECHO_C" >&6
8227 else
8228 cat >conftest.$ac_ext <<_ACEOF
8229 /* confdefs.h. */
8230 _ACEOF
8231 cat confdefs.h >>conftest.$ac_ext
8232 cat >>conftest.$ac_ext <<_ACEOF
8233 /* end confdefs.h. */
8234 $ac_includes_default
8235 #if HAVE_SYS_SOCKET_H
8236 #include <sys/socket.h>
8237 #endif
8238 #if HAVE_NET_IF_H
8239 #include <net/if.h>
8240 #endif
8243 main ()
8245 static struct ifreq ac_aggr;
8246 if (ac_aggr.ifr_broadaddr)
8247 return 0;
8249 return 0;
8251 _ACEOF
8252 rm -f conftest.$ac_objext
8253 if { (ac_try="$ac_compile"
8254 case "(($ac_try" in
8255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8256 *) ac_try_echo=$ac_try;;
8257 esac
8258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8259 (eval "$ac_compile") 2>conftest.er1
8260 ac_status=$?
8261 grep -v '^ *+' conftest.er1 >conftest.err
8262 rm -f conftest.er1
8263 cat conftest.err >&5
8264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265 (exit $ac_status); } && {
8266 test -z "$ac_c_werror_flag" ||
8267 test ! -s conftest.err
8268 } && test -s conftest.$ac_objext; then
8269 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8270 else
8271 echo "$as_me: failed program was:" >&5
8272 sed 's/^/| /' conftest.$ac_ext >&5
8274 cat >conftest.$ac_ext <<_ACEOF
8275 /* confdefs.h. */
8276 _ACEOF
8277 cat confdefs.h >>conftest.$ac_ext
8278 cat >>conftest.$ac_ext <<_ACEOF
8279 /* end confdefs.h. */
8280 $ac_includes_default
8281 #if HAVE_SYS_SOCKET_H
8282 #include <sys/socket.h>
8283 #endif
8284 #if HAVE_NET_IF_H
8285 #include <net/if.h>
8286 #endif
8289 main ()
8291 static struct ifreq ac_aggr;
8292 if (sizeof ac_aggr.ifr_broadaddr)
8293 return 0;
8295 return 0;
8297 _ACEOF
8298 rm -f conftest.$ac_objext
8299 if { (ac_try="$ac_compile"
8300 case "(($ac_try" in
8301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8302 *) ac_try_echo=$ac_try;;
8303 esac
8304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8305 (eval "$ac_compile") 2>conftest.er1
8306 ac_status=$?
8307 grep -v '^ *+' conftest.er1 >conftest.err
8308 rm -f conftest.er1
8309 cat conftest.err >&5
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); } && {
8312 test -z "$ac_c_werror_flag" ||
8313 test ! -s conftest.err
8314 } && test -s conftest.$ac_objext; then
8315 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8316 else
8317 echo "$as_me: failed program was:" >&5
8318 sed 's/^/| /' conftest.$ac_ext >&5
8320 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8328 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8329 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8330 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8332 cat >>confdefs.h <<_ACEOF
8333 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8334 _ACEOF
8338 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8339 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8340 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8341 echo $ECHO_N "(cached) $ECHO_C" >&6
8342 else
8343 cat >conftest.$ac_ext <<_ACEOF
8344 /* confdefs.h. */
8345 _ACEOF
8346 cat confdefs.h >>conftest.$ac_ext
8347 cat >>conftest.$ac_ext <<_ACEOF
8348 /* end confdefs.h. */
8349 $ac_includes_default
8350 #if HAVE_SYS_SOCKET_H
8351 #include <sys/socket.h>
8352 #endif
8353 #if HAVE_NET_IF_H
8354 #include <net/if.h>
8355 #endif
8358 main ()
8360 static struct ifreq ac_aggr;
8361 if (ac_aggr.ifr_addr)
8362 return 0;
8364 return 0;
8366 _ACEOF
8367 rm -f conftest.$ac_objext
8368 if { (ac_try="$ac_compile"
8369 case "(($ac_try" in
8370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8371 *) ac_try_echo=$ac_try;;
8372 esac
8373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8374 (eval "$ac_compile") 2>conftest.er1
8375 ac_status=$?
8376 grep -v '^ *+' conftest.er1 >conftest.err
8377 rm -f conftest.er1
8378 cat conftest.err >&5
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); } && {
8381 test -z "$ac_c_werror_flag" ||
8382 test ! -s conftest.err
8383 } && test -s conftest.$ac_objext; then
8384 ac_cv_member_struct_ifreq_ifr_addr=yes
8385 else
8386 echo "$as_me: failed program was:" >&5
8387 sed 's/^/| /' conftest.$ac_ext >&5
8389 cat >conftest.$ac_ext <<_ACEOF
8390 /* confdefs.h. */
8391 _ACEOF
8392 cat confdefs.h >>conftest.$ac_ext
8393 cat >>conftest.$ac_ext <<_ACEOF
8394 /* end confdefs.h. */
8395 $ac_includes_default
8396 #if HAVE_SYS_SOCKET_H
8397 #include <sys/socket.h>
8398 #endif
8399 #if HAVE_NET_IF_H
8400 #include <net/if.h>
8401 #endif
8404 main ()
8406 static struct ifreq ac_aggr;
8407 if (sizeof ac_aggr.ifr_addr)
8408 return 0;
8410 return 0;
8412 _ACEOF
8413 rm -f conftest.$ac_objext
8414 if { (ac_try="$ac_compile"
8415 case "(($ac_try" in
8416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8417 *) ac_try_echo=$ac_try;;
8418 esac
8419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8420 (eval "$ac_compile") 2>conftest.er1
8421 ac_status=$?
8422 grep -v '^ *+' conftest.er1 >conftest.err
8423 rm -f conftest.er1
8424 cat conftest.err >&5
8425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426 (exit $ac_status); } && {
8427 test -z "$ac_c_werror_flag" ||
8428 test ! -s conftest.err
8429 } && test -s conftest.$ac_objext; then
8430 ac_cv_member_struct_ifreq_ifr_addr=yes
8431 else
8432 echo "$as_me: failed program was:" >&5
8433 sed 's/^/| /' conftest.$ac_ext >&5
8435 ac_cv_member_struct_ifreq_ifr_addr=no
8438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8443 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8444 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8445 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8447 cat >>confdefs.h <<_ACEOF
8448 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8449 _ACEOF
8456 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8457 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8458 if test "$ac_cv_prog_cc_c89" != no; then
8459 { echo "$as_me:$LINENO: result: yes" >&5
8460 echo "${ECHO_T}yes" >&6; }
8462 cat >>confdefs.h <<\_ACEOF
8463 #define PROTOTYPES 1
8464 _ACEOF
8467 cat >>confdefs.h <<\_ACEOF
8468 #define __PROTOTYPES 1
8469 _ACEOF
8471 else
8472 { echo "$as_me:$LINENO: result: no" >&5
8473 echo "${ECHO_T}no" >&6; }
8476 { echo "$as_me:$LINENO: checking for working volatile" >&5
8477 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8478 if test "${ac_cv_c_volatile+set}" = set; then
8479 echo $ECHO_N "(cached) $ECHO_C" >&6
8480 else
8481 cat >conftest.$ac_ext <<_ACEOF
8482 /* confdefs.h. */
8483 _ACEOF
8484 cat confdefs.h >>conftest.$ac_ext
8485 cat >>conftest.$ac_ext <<_ACEOF
8486 /* end confdefs.h. */
8489 main ()
8492 volatile int x;
8493 int * volatile y = (int *) 0;
8494 return !x && !y;
8496 return 0;
8498 _ACEOF
8499 rm -f conftest.$ac_objext
8500 if { (ac_try="$ac_compile"
8501 case "(($ac_try" in
8502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8503 *) ac_try_echo=$ac_try;;
8504 esac
8505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8506 (eval "$ac_compile") 2>conftest.er1
8507 ac_status=$?
8508 grep -v '^ *+' conftest.er1 >conftest.err
8509 rm -f conftest.er1
8510 cat conftest.err >&5
8511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512 (exit $ac_status); } && {
8513 test -z "$ac_c_werror_flag" ||
8514 test ! -s conftest.err
8515 } && test -s conftest.$ac_objext; then
8516 ac_cv_c_volatile=yes
8517 else
8518 echo "$as_me: failed program was:" >&5
8519 sed 's/^/| /' conftest.$ac_ext >&5
8521 ac_cv_c_volatile=no
8524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8526 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8527 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8528 if test $ac_cv_c_volatile = no; then
8530 cat >>confdefs.h <<\_ACEOF
8531 #define volatile
8532 _ACEOF
8536 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8537 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8538 if test "${ac_cv_c_const+set}" = set; then
8539 echo $ECHO_N "(cached) $ECHO_C" >&6
8540 else
8541 cat >conftest.$ac_ext <<_ACEOF
8542 /* confdefs.h. */
8543 _ACEOF
8544 cat confdefs.h >>conftest.$ac_ext
8545 cat >>conftest.$ac_ext <<_ACEOF
8546 /* end confdefs.h. */
8549 main ()
8551 /* FIXME: Include the comments suggested by Paul. */
8552 #ifndef __cplusplus
8553 /* Ultrix mips cc rejects this. */
8554 typedef int charset[2];
8555 const charset cs;
8556 /* SunOS 4.1.1 cc rejects this. */
8557 char const *const *pcpcc;
8558 char **ppc;
8559 /* NEC SVR4.0.2 mips cc rejects this. */
8560 struct point {int x, y;};
8561 static struct point const zero = {0,0};
8562 /* AIX XL C 1.02.0.0 rejects this.
8563 It does not let you subtract one const X* pointer from another in
8564 an arm of an if-expression whose if-part is not a constant
8565 expression */
8566 const char *g = "string";
8567 pcpcc = &g + (g ? g-g : 0);
8568 /* HPUX 7.0 cc rejects these. */
8569 ++pcpcc;
8570 ppc = (char**) pcpcc;
8571 pcpcc = (char const *const *) ppc;
8572 { /* SCO 3.2v4 cc rejects this. */
8573 char *t;
8574 char const *s = 0 ? (char *) 0 : (char const *) 0;
8576 *t++ = 0;
8577 if (s) return 0;
8579 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8580 int x[] = {25, 17};
8581 const int *foo = &x[0];
8582 ++foo;
8584 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8585 typedef const int *iptr;
8586 iptr p = 0;
8587 ++p;
8589 { /* AIX XL C 1.02.0.0 rejects this saying
8590 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8591 struct s { int j; const int *ap[3]; };
8592 struct s *b; b->j = 5;
8594 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8595 const int foo = 10;
8596 if (!foo) return 0;
8598 return !cs[0] && !zero.x;
8599 #endif
8602 return 0;
8604 _ACEOF
8605 rm -f conftest.$ac_objext
8606 if { (ac_try="$ac_compile"
8607 case "(($ac_try" in
8608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8609 *) ac_try_echo=$ac_try;;
8610 esac
8611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8612 (eval "$ac_compile") 2>conftest.er1
8613 ac_status=$?
8614 grep -v '^ *+' conftest.er1 >conftest.err
8615 rm -f conftest.er1
8616 cat conftest.err >&5
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); } && {
8619 test -z "$ac_c_werror_flag" ||
8620 test ! -s conftest.err
8621 } && test -s conftest.$ac_objext; then
8622 ac_cv_c_const=yes
8623 else
8624 echo "$as_me: failed program was:" >&5
8625 sed 's/^/| /' conftest.$ac_ext >&5
8627 ac_cv_c_const=no
8630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8632 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8633 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8634 if test $ac_cv_c_const = no; then
8636 cat >>confdefs.h <<\_ACEOF
8637 #define const
8638 _ACEOF
8642 { echo "$as_me:$LINENO: checking for void * support" >&5
8643 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8644 if test "${emacs_cv_void_star+set}" = set; then
8645 echo $ECHO_N "(cached) $ECHO_C" >&6
8646 else
8647 cat >conftest.$ac_ext <<_ACEOF
8648 /* confdefs.h. */
8649 _ACEOF
8650 cat confdefs.h >>conftest.$ac_ext
8651 cat >>conftest.$ac_ext <<_ACEOF
8652 /* end confdefs.h. */
8655 main ()
8657 void * foo;
8659 return 0;
8661 _ACEOF
8662 rm -f conftest.$ac_objext
8663 if { (ac_try="$ac_compile"
8664 case "(($ac_try" in
8665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8666 *) ac_try_echo=$ac_try;;
8667 esac
8668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8669 (eval "$ac_compile") 2>conftest.er1
8670 ac_status=$?
8671 grep -v '^ *+' conftest.er1 >conftest.err
8672 rm -f conftest.er1
8673 cat conftest.err >&5
8674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675 (exit $ac_status); } && {
8676 test -z "$ac_c_werror_flag" ||
8677 test ! -s conftest.err
8678 } && test -s conftest.$ac_objext; then
8679 emacs_cv_void_star=yes
8680 else
8681 echo "$as_me: failed program was:" >&5
8682 sed 's/^/| /' conftest.$ac_ext >&5
8684 emacs_cv_void_star=no
8687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8689 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8690 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8691 if test $emacs_cv_void_star = yes; then
8692 cat >>confdefs.h <<\_ACEOF
8693 #define POINTER_TYPE void
8694 _ACEOF
8696 else
8697 cat >>confdefs.h <<\_ACEOF
8698 #define POINTER_TYPE char
8699 _ACEOF
8707 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8708 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8709 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8710 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8711 echo $ECHO_N "(cached) $ECHO_C" >&6
8712 else
8713 cat >conftest.make <<\_ACEOF
8714 SHELL = /bin/sh
8715 all:
8716 @echo '@@@%%%=$(MAKE)=@@@%%%'
8717 _ACEOF
8718 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8719 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8720 *@@@%%%=?*=@@@%%%*)
8721 eval ac_cv_prog_make_${ac_make}_set=yes;;
8723 eval ac_cv_prog_make_${ac_make}_set=no;;
8724 esac
8725 rm -f conftest.make
8727 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8728 { echo "$as_me:$LINENO: result: yes" >&5
8729 echo "${ECHO_T}yes" >&6; }
8730 SET_MAKE=
8731 else
8732 { echo "$as_me:$LINENO: result: no" >&5
8733 echo "${ECHO_T}no" >&6; }
8734 SET_MAKE="MAKE=${MAKE-make}"
8738 { echo "$as_me:$LINENO: checking for long file names" >&5
8739 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8740 if test "${ac_cv_sys_long_file_names+set}" = set; then
8741 echo $ECHO_N "(cached) $ECHO_C" >&6
8742 else
8743 ac_cv_sys_long_file_names=yes
8744 # Test for long file names in all the places we know might matter:
8745 # . the current directory, where building will happen
8746 # $prefix/lib where we will be installing things
8747 # $exec_prefix/lib likewise
8748 # $TMPDIR if set, where it might want to write temporary files
8749 # /tmp where it might want to write temporary files
8750 # /var/tmp likewise
8751 # /usr/tmp likewise
8752 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8753 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8754 # in the usual case where exec_prefix is '${prefix}'.
8755 case $ac_dir in #(
8756 . | /* | ?:[\\/]*) ;; #(
8757 *) continue;;
8758 esac
8759 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8760 ac_xdir=$ac_dir/cf$$
8761 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8762 ac_tf1=$ac_xdir/conftest9012345
8763 ac_tf2=$ac_xdir/conftest9012346
8764 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8765 ac_cv_sys_long_file_names=no
8766 rm -f -r "$ac_xdir" 2>/dev/null
8767 test $ac_cv_sys_long_file_names = no && break
8768 done
8770 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8771 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8772 if test $ac_cv_sys_long_file_names = yes; then
8774 cat >>confdefs.h <<\_ACEOF
8775 #define HAVE_LONG_FILE_NAMES 1
8776 _ACEOF
8781 #### Choose a window system.
8783 { echo "$as_me:$LINENO: checking for X" >&5
8784 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8787 # Check whether --with-x was given.
8788 if test "${with_x+set}" = set; then
8789 withval=$with_x;
8792 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8793 if test "x$with_x" = xno; then
8794 # The user explicitly disabled X.
8795 have_x=disabled
8796 else
8797 case $x_includes,$x_libraries in #(
8798 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8799 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8800 { (exit 1); exit 1; }; };; #(
8801 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8802 echo $ECHO_N "(cached) $ECHO_C" >&6
8803 else
8804 # One or both of the vars are not set, and there is no cached value.
8805 ac_x_includes=no ac_x_libraries=no
8806 rm -f -r conftest.dir
8807 if mkdir conftest.dir; then
8808 cd conftest.dir
8809 cat >Imakefile <<'_ACEOF'
8810 incroot:
8811 @echo incroot='${INCROOT}'
8812 usrlibdir:
8813 @echo usrlibdir='${USRLIBDIR}'
8814 libdir:
8815 @echo libdir='${LIBDIR}'
8816 _ACEOF
8817 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8818 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8819 for ac_var in incroot usrlibdir libdir; do
8820 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8821 done
8822 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8823 for ac_extension in a so sl; do
8824 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8825 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8826 ac_im_usrlibdir=$ac_im_libdir; break
8828 done
8829 # Screen out bogus values from the imake configuration. They are
8830 # bogus both because they are the default anyway, and because
8831 # using them would break gcc on systems where it needs fixed includes.
8832 case $ac_im_incroot in
8833 /usr/include) ac_x_includes= ;;
8834 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8835 esac
8836 case $ac_im_usrlibdir in
8837 /usr/lib | /lib) ;;
8838 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8839 esac
8841 cd ..
8842 rm -f -r conftest.dir
8845 # Standard set of common directories for X headers.
8846 # Check X11 before X11Rn because it is often a symlink to the current release.
8847 ac_x_header_dirs='
8848 /usr/X11/include
8849 /usr/X11R6/include
8850 /usr/X11R5/include
8851 /usr/X11R4/include
8853 /usr/include/X11
8854 /usr/include/X11R6
8855 /usr/include/X11R5
8856 /usr/include/X11R4
8858 /usr/local/X11/include
8859 /usr/local/X11R6/include
8860 /usr/local/X11R5/include
8861 /usr/local/X11R4/include
8863 /usr/local/include/X11
8864 /usr/local/include/X11R6
8865 /usr/local/include/X11R5
8866 /usr/local/include/X11R4
8868 /usr/X386/include
8869 /usr/x386/include
8870 /usr/XFree86/include/X11
8872 /usr/include
8873 /usr/local/include
8874 /usr/unsupported/include
8875 /usr/athena/include
8876 /usr/local/x11r5/include
8877 /usr/lpp/Xamples/include
8879 /usr/openwin/include
8880 /usr/openwin/share/include'
8882 if test "$ac_x_includes" = no; then
8883 # Guess where to find include files, by looking for Xlib.h.
8884 # First, try using that file with no special directory specified.
8885 cat >conftest.$ac_ext <<_ACEOF
8886 /* confdefs.h. */
8887 _ACEOF
8888 cat confdefs.h >>conftest.$ac_ext
8889 cat >>conftest.$ac_ext <<_ACEOF
8890 /* end confdefs.h. */
8891 #include <X11/Xlib.h>
8892 _ACEOF
8893 if { (ac_try="$ac_cpp conftest.$ac_ext"
8894 case "(($ac_try" in
8895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8896 *) ac_try_echo=$ac_try;;
8897 esac
8898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8899 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8900 ac_status=$?
8901 grep -v '^ *+' conftest.er1 >conftest.err
8902 rm -f conftest.er1
8903 cat conftest.err >&5
8904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905 (exit $ac_status); } >/dev/null && {
8906 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8907 test ! -s conftest.err
8908 }; then
8909 # We can compile using X headers with no special include directory.
8910 ac_x_includes=
8911 else
8912 echo "$as_me: failed program was:" >&5
8913 sed 's/^/| /' conftest.$ac_ext >&5
8915 for ac_dir in $ac_x_header_dirs; do
8916 if test -r "$ac_dir/X11/Xlib.h"; then
8917 ac_x_includes=$ac_dir
8918 break
8920 done
8923 rm -f conftest.err conftest.$ac_ext
8924 fi # $ac_x_includes = no
8926 if test "$ac_x_libraries" = no; then
8927 # Check for the libraries.
8928 # See if we find them without any special options.
8929 # Don't add to $LIBS permanently.
8930 ac_save_LIBS=$LIBS
8931 LIBS="-lX11 $LIBS"
8932 cat >conftest.$ac_ext <<_ACEOF
8933 /* confdefs.h. */
8934 _ACEOF
8935 cat confdefs.h >>conftest.$ac_ext
8936 cat >>conftest.$ac_ext <<_ACEOF
8937 /* end confdefs.h. */
8938 #include <X11/Xlib.h>
8940 main ()
8942 XrmInitialize ()
8944 return 0;
8946 _ACEOF
8947 rm -f conftest.$ac_objext conftest$ac_exeext
8948 if { (ac_try="$ac_link"
8949 case "(($ac_try" in
8950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8951 *) ac_try_echo=$ac_try;;
8952 esac
8953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8954 (eval "$ac_link") 2>conftest.er1
8955 ac_status=$?
8956 grep -v '^ *+' conftest.er1 >conftest.err
8957 rm -f conftest.er1
8958 cat conftest.err >&5
8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960 (exit $ac_status); } && {
8961 test -z "$ac_c_werror_flag" ||
8962 test ! -s conftest.err
8963 } && test -s conftest$ac_exeext &&
8964 $as_test_x conftest$ac_exeext; then
8965 LIBS=$ac_save_LIBS
8966 # We can link X programs with no special library path.
8967 ac_x_libraries=
8968 else
8969 echo "$as_me: failed program was:" >&5
8970 sed 's/^/| /' conftest.$ac_ext >&5
8972 LIBS=$ac_save_LIBS
8973 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8975 # Don't even attempt the hair of trying to link an X program!
8976 for ac_extension in a so sl; do
8977 if test -r "$ac_dir/libX11.$ac_extension"; then
8978 ac_x_libraries=$ac_dir
8979 break 2
8981 done
8982 done
8985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8986 conftest$ac_exeext conftest.$ac_ext
8987 fi # $ac_x_libraries = no
8989 case $ac_x_includes,$ac_x_libraries in #(
8990 no,* | *,no | *\'*)
8991 # Didn't find X, or a directory has "'" in its name.
8992 ac_cv_have_x="have_x=no";; #(
8994 # Record where we found X for the cache.
8995 ac_cv_have_x="have_x=yes\
8996 ac_x_includes='$ac_x_includes'\
8997 ac_x_libraries='$ac_x_libraries'"
8998 esac
9000 ;; #(
9001 *) have_x=yes;;
9002 esac
9003 eval "$ac_cv_have_x"
9004 fi # $with_x != no
9006 if test "$have_x" != yes; then
9007 { echo "$as_me:$LINENO: result: $have_x" >&5
9008 echo "${ECHO_T}$have_x" >&6; }
9009 no_x=yes
9010 else
9011 # If each of the values was on the command line, it overrides each guess.
9012 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9013 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9014 # Update the cache value to reflect the command line values.
9015 ac_cv_have_x="have_x=yes\
9016 ac_x_includes='$x_includes'\
9017 ac_x_libraries='$x_libraries'"
9018 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9019 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9022 if test "$no_x" = yes; then
9023 window_system=none
9024 else
9025 window_system=x11
9028 if test "${x_libraries}" != NONE; then
9029 if test -n "${x_libraries}"; then
9030 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9031 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9033 x_default_search_path=""
9034 x_search_path=${x_libraries}
9035 if test -z "${x_search_path}"; then
9036 x_search_path=/usr/lib
9038 for x_library in `echo ${x_search_path}: | \
9039 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9040 x_search_path="\
9041 ${x_library}/X11/%L/%T/%N%C%S:\
9042 ${x_library}/X11/%l/%T/%N%C%S:\
9043 ${x_library}/X11/%T/%N%C%S:\
9044 ${x_library}/X11/%L/%T/%N%S:\
9045 ${x_library}/X11/%l/%T/%N%S:\
9046 ${x_library}/X11/%T/%N%S"
9047 if test x"${x_default_search_path}" = x; then
9048 x_default_search_path=${x_search_path}
9049 else
9050 x_default_search_path="${x_search_path}:${x_default_search_path}"
9052 done
9054 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9055 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9058 if test x"${x_includes}" = x; then
9059 bitmapdir=/usr/include/X11/bitmaps
9060 else
9061 # accumulate include directories that have X11 bitmap subdirectories
9062 bmd_acc="dummyval"
9063 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9064 if test -d "${bmd}/X11/bitmaps"; then
9065 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9067 if test -d "${bmd}/bitmaps"; then
9068 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9070 done
9071 if test ${bmd_acc} != "dummyval"; then
9072 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9076 HAVE_CARBON=no
9077 if test "${with_carbon}" != no; then
9078 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9079 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9080 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9081 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9082 echo $ECHO_N "(cached) $ECHO_C" >&6
9084 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9085 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9086 else
9087 # Is the header compilable?
9088 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9089 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9090 cat >conftest.$ac_ext <<_ACEOF
9091 /* confdefs.h. */
9092 _ACEOF
9093 cat confdefs.h >>conftest.$ac_ext
9094 cat >>conftest.$ac_ext <<_ACEOF
9095 /* end confdefs.h. */
9096 $ac_includes_default
9097 #include <Carbon/Carbon.h>
9098 _ACEOF
9099 rm -f conftest.$ac_objext
9100 if { (ac_try="$ac_compile"
9101 case "(($ac_try" in
9102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9103 *) ac_try_echo=$ac_try;;
9104 esac
9105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9106 (eval "$ac_compile") 2>conftest.er1
9107 ac_status=$?
9108 grep -v '^ *+' conftest.er1 >conftest.err
9109 rm -f conftest.er1
9110 cat conftest.err >&5
9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 (exit $ac_status); } && {
9113 test -z "$ac_c_werror_flag" ||
9114 test ! -s conftest.err
9115 } && test -s conftest.$ac_objext; then
9116 ac_header_compiler=yes
9117 else
9118 echo "$as_me: failed program was:" >&5
9119 sed 's/^/| /' conftest.$ac_ext >&5
9121 ac_header_compiler=no
9124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9125 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9126 echo "${ECHO_T}$ac_header_compiler" >&6; }
9128 # Is the header present?
9129 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9130 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9131 cat >conftest.$ac_ext <<_ACEOF
9132 /* confdefs.h. */
9133 _ACEOF
9134 cat confdefs.h >>conftest.$ac_ext
9135 cat >>conftest.$ac_ext <<_ACEOF
9136 /* end confdefs.h. */
9137 #include <Carbon/Carbon.h>
9138 _ACEOF
9139 if { (ac_try="$ac_cpp conftest.$ac_ext"
9140 case "(($ac_try" in
9141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9142 *) ac_try_echo=$ac_try;;
9143 esac
9144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9145 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9146 ac_status=$?
9147 grep -v '^ *+' conftest.er1 >conftest.err
9148 rm -f conftest.er1
9149 cat conftest.err >&5
9150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151 (exit $ac_status); } >/dev/null && {
9152 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9153 test ! -s conftest.err
9154 }; then
9155 ac_header_preproc=yes
9156 else
9157 echo "$as_me: failed program was:" >&5
9158 sed 's/^/| /' conftest.$ac_ext >&5
9160 ac_header_preproc=no
9163 rm -f conftest.err conftest.$ac_ext
9164 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9165 echo "${ECHO_T}$ac_header_preproc" >&6; }
9167 # So? What about this header?
9168 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9169 yes:no: )
9170 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9171 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9172 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9173 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9174 ac_header_preproc=yes
9176 no:yes:* )
9177 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9178 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9179 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9180 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9181 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9182 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9183 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9184 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9185 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9186 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9187 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9188 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9191 esac
9192 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9193 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9194 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9195 echo $ECHO_N "(cached) $ECHO_C" >&6
9196 else
9197 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9199 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9200 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9203 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9204 HAVE_CARBON=yes
9209 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9210 if test "${with_carbon+set}" != set \
9211 && test "${carbon_appdir_x+set}" != set; then
9212 for var in with_x with_x_toolkit with_xim \
9213 with_xpm with_jpeg with_tiff with_gif with_png; do
9214 if eval test \"\${$var+set}\" = set; then
9215 HAVE_CARBON=no
9216 break
9218 done
9221 if test "${HAVE_CARBON}" = yes; then
9222 window_system=mac
9225 case "${window_system}" in
9226 x11 )
9227 HAVE_X_WINDOWS=yes
9228 HAVE_X11=yes
9229 case "${with_x_toolkit}" in
9230 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9231 motif ) USE_X_TOOLKIT=MOTIF ;;
9232 gtk ) with_gtk=yes
9233 USE_X_TOOLKIT=none ;;
9234 no ) USE_X_TOOLKIT=none ;;
9235 * ) USE_X_TOOLKIT=maybe ;;
9236 esac
9238 mac | none )
9239 HAVE_X_WINDOWS=no
9240 HAVE_X11=no
9241 USE_X_TOOLKIT=none
9243 esac
9245 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9246 # Extract the first word of "X", so it can be a program name with args.
9247 set dummy X; ac_word=$2
9248 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9250 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9251 echo $ECHO_N "(cached) $ECHO_C" >&6
9252 else
9253 if test -n "$HAVE_XSERVER"; then
9254 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9255 else
9256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9257 for as_dir in $PATH
9259 IFS=$as_save_IFS
9260 test -z "$as_dir" && as_dir=.
9261 for ac_exec_ext in '' $ac_executable_extensions; do
9262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9263 ac_cv_prog_HAVE_XSERVER="true"
9264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9265 break 2
9267 done
9268 done
9269 IFS=$as_save_IFS
9271 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9274 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9275 if test -n "$HAVE_XSERVER"; then
9276 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9277 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9278 else
9279 { echo "$as_me:$LINENO: result: no" >&5
9280 echo "${ECHO_T}no" >&6; }
9284 if test "$HAVE_XSERVER" = true ||
9285 test -n "$DISPLAY" ||
9286 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9287 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9288 were found. You should install the relevant development files for X
9289 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9290 sure you have development files for image handling, i.e.
9291 tiff, gif, jpeg, png and xpm.
9292 If you are sure you want Emacs compiled without X window support, pass
9293 --without-x
9294 to configure." >&5
9295 echo "$as_me: error: You seem to be running X, but no X development libraries
9296 were found. You should install the relevant development files for X
9297 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9298 sure you have development files for image handling, i.e.
9299 tiff, gif, jpeg, png and xpm.
9300 If you are sure you want Emacs compiled without X window support, pass
9301 --without-x
9302 to configure." >&2;}
9303 { (exit 1); exit 1; }; }
9307 ### If we're using X11, we should use the X menu package.
9308 HAVE_MENUS=no
9309 case ${HAVE_X11} in
9310 yes ) HAVE_MENUS=yes ;;
9311 esac
9313 ### Compute the unexec source name from the object name.
9314 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9316 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9317 # Assume not, until told otherwise.
9318 GNU_MALLOC=yes
9319 doug_lea_malloc=yes
9320 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9321 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9322 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9323 echo $ECHO_N "(cached) $ECHO_C" >&6
9324 else
9325 cat >conftest.$ac_ext <<_ACEOF
9326 /* confdefs.h. */
9327 _ACEOF
9328 cat confdefs.h >>conftest.$ac_ext
9329 cat >>conftest.$ac_ext <<_ACEOF
9330 /* end confdefs.h. */
9331 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9332 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9333 #define malloc_get_state innocuous_malloc_get_state
9335 /* System header to define __stub macros and hopefully few prototypes,
9336 which can conflict with char malloc_get_state (); below.
9337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9338 <limits.h> exists even on freestanding compilers. */
9340 #ifdef __STDC__
9341 # include <limits.h>
9342 #else
9343 # include <assert.h>
9344 #endif
9346 #undef malloc_get_state
9348 /* Override any GCC internal prototype to avoid an error.
9349 Use char because int might match the return type of a GCC
9350 builtin and then its argument prototype would still apply. */
9351 #ifdef __cplusplus
9352 extern "C"
9353 #endif
9354 char malloc_get_state ();
9355 /* The GNU C library defines this for functions which it implements
9356 to always fail with ENOSYS. Some functions are actually named
9357 something starting with __ and the normal name is an alias. */
9358 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9359 choke me
9360 #endif
9363 main ()
9365 return malloc_get_state ();
9367 return 0;
9369 _ACEOF
9370 rm -f conftest.$ac_objext conftest$ac_exeext
9371 if { (ac_try="$ac_link"
9372 case "(($ac_try" in
9373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9374 *) ac_try_echo=$ac_try;;
9375 esac
9376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9377 (eval "$ac_link") 2>conftest.er1
9378 ac_status=$?
9379 grep -v '^ *+' conftest.er1 >conftest.err
9380 rm -f conftest.er1
9381 cat conftest.err >&5
9382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383 (exit $ac_status); } && {
9384 test -z "$ac_c_werror_flag" ||
9385 test ! -s conftest.err
9386 } && test -s conftest$ac_exeext &&
9387 $as_test_x conftest$ac_exeext; then
9388 ac_cv_func_malloc_get_state=yes
9389 else
9390 echo "$as_me: failed program was:" >&5
9391 sed 's/^/| /' conftest.$ac_ext >&5
9393 ac_cv_func_malloc_get_state=no
9396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9397 conftest$ac_exeext conftest.$ac_ext
9399 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9400 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9401 if test $ac_cv_func_malloc_get_state = yes; then
9403 else
9404 doug_lea_malloc=no
9407 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9408 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9409 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9410 echo $ECHO_N "(cached) $ECHO_C" >&6
9411 else
9412 cat >conftest.$ac_ext <<_ACEOF
9413 /* confdefs.h. */
9414 _ACEOF
9415 cat confdefs.h >>conftest.$ac_ext
9416 cat >>conftest.$ac_ext <<_ACEOF
9417 /* end confdefs.h. */
9418 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9420 #define malloc_set_state innocuous_malloc_set_state
9422 /* System header to define __stub macros and hopefully few prototypes,
9423 which can conflict with char malloc_set_state (); below.
9424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9425 <limits.h> exists even on freestanding compilers. */
9427 #ifdef __STDC__
9428 # include <limits.h>
9429 #else
9430 # include <assert.h>
9431 #endif
9433 #undef malloc_set_state
9435 /* Override any GCC internal prototype to avoid an error.
9436 Use char because int might match the return type of a GCC
9437 builtin and then its argument prototype would still apply. */
9438 #ifdef __cplusplus
9439 extern "C"
9440 #endif
9441 char malloc_set_state ();
9442 /* The GNU C library defines this for functions which it implements
9443 to always fail with ENOSYS. Some functions are actually named
9444 something starting with __ and the normal name is an alias. */
9445 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9446 choke me
9447 #endif
9450 main ()
9452 return malloc_set_state ();
9454 return 0;
9456 _ACEOF
9457 rm -f conftest.$ac_objext conftest$ac_exeext
9458 if { (ac_try="$ac_link"
9459 case "(($ac_try" in
9460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9461 *) ac_try_echo=$ac_try;;
9462 esac
9463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9464 (eval "$ac_link") 2>conftest.er1
9465 ac_status=$?
9466 grep -v '^ *+' conftest.er1 >conftest.err
9467 rm -f conftest.er1
9468 cat conftest.err >&5
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); } && {
9471 test -z "$ac_c_werror_flag" ||
9472 test ! -s conftest.err
9473 } && test -s conftest$ac_exeext &&
9474 $as_test_x conftest$ac_exeext; then
9475 ac_cv_func_malloc_set_state=yes
9476 else
9477 echo "$as_me: failed program was:" >&5
9478 sed 's/^/| /' conftest.$ac_ext >&5
9480 ac_cv_func_malloc_set_state=no
9483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9484 conftest$ac_exeext conftest.$ac_ext
9486 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9487 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9488 if test $ac_cv_func_malloc_set_state = yes; then
9490 else
9491 doug_lea_malloc=no
9494 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9495 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9496 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9497 echo $ECHO_N "(cached) $ECHO_C" >&6
9498 else
9499 cat >conftest.$ac_ext <<_ACEOF
9500 /* confdefs.h. */
9501 _ACEOF
9502 cat confdefs.h >>conftest.$ac_ext
9503 cat >>conftest.$ac_ext <<_ACEOF
9504 /* end confdefs.h. */
9505 extern void (* __after_morecore_hook)();
9507 main ()
9509 __after_morecore_hook = 0
9511 return 0;
9513 _ACEOF
9514 rm -f conftest.$ac_objext conftest$ac_exeext
9515 if { (ac_try="$ac_link"
9516 case "(($ac_try" in
9517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9518 *) ac_try_echo=$ac_try;;
9519 esac
9520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9521 (eval "$ac_link") 2>conftest.er1
9522 ac_status=$?
9523 grep -v '^ *+' conftest.er1 >conftest.err
9524 rm -f conftest.er1
9525 cat conftest.err >&5
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); } && {
9528 test -z "$ac_c_werror_flag" ||
9529 test ! -s conftest.err
9530 } && test -s conftest$ac_exeext &&
9531 $as_test_x conftest$ac_exeext; then
9532 emacs_cv_var___after_morecore_hook=yes
9533 else
9534 echo "$as_me: failed program was:" >&5
9535 sed 's/^/| /' conftest.$ac_ext >&5
9537 emacs_cv_var___after_morecore_hook=no
9540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9541 conftest$ac_exeext conftest.$ac_ext
9543 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9544 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9545 if test $emacs_cv_var___after_morecore_hook = no; then
9546 doug_lea_malloc=no
9548 if test "${system_malloc}" = "yes"; then
9549 GNU_MALLOC=no
9550 GNU_MALLOC_reason="
9551 (The GNU allocators don't work with this system configuration.)"
9553 if test "$doug_lea_malloc" = "yes" ; then
9554 if test "$GNU_MALLOC" = yes ; then
9555 GNU_MALLOC_reason="
9556 (Using Doug Lea's new malloc from the GNU C Library.)"
9559 cat >>confdefs.h <<\_ACEOF
9560 #define DOUG_LEA_MALLOC 1
9561 _ACEOF
9565 if test x"${REL_ALLOC}" = x; then
9566 REL_ALLOC=${GNU_MALLOC}
9572 for ac_header in stdlib.h unistd.h
9574 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9576 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9577 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9578 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9579 echo $ECHO_N "(cached) $ECHO_C" >&6
9581 ac_res=`eval echo '${'$as_ac_Header'}'`
9582 { echo "$as_me:$LINENO: result: $ac_res" >&5
9583 echo "${ECHO_T}$ac_res" >&6; }
9584 else
9585 # Is the header compilable?
9586 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9587 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9588 cat >conftest.$ac_ext <<_ACEOF
9589 /* confdefs.h. */
9590 _ACEOF
9591 cat confdefs.h >>conftest.$ac_ext
9592 cat >>conftest.$ac_ext <<_ACEOF
9593 /* end confdefs.h. */
9594 $ac_includes_default
9595 #include <$ac_header>
9596 _ACEOF
9597 rm -f conftest.$ac_objext
9598 if { (ac_try="$ac_compile"
9599 case "(($ac_try" in
9600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9601 *) ac_try_echo=$ac_try;;
9602 esac
9603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9604 (eval "$ac_compile") 2>conftest.er1
9605 ac_status=$?
9606 grep -v '^ *+' conftest.er1 >conftest.err
9607 rm -f conftest.er1
9608 cat conftest.err >&5
9609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610 (exit $ac_status); } && {
9611 test -z "$ac_c_werror_flag" ||
9612 test ! -s conftest.err
9613 } && test -s conftest.$ac_objext; then
9614 ac_header_compiler=yes
9615 else
9616 echo "$as_me: failed program was:" >&5
9617 sed 's/^/| /' conftest.$ac_ext >&5
9619 ac_header_compiler=no
9622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9623 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9624 echo "${ECHO_T}$ac_header_compiler" >&6; }
9626 # Is the header present?
9627 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9628 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9629 cat >conftest.$ac_ext <<_ACEOF
9630 /* confdefs.h. */
9631 _ACEOF
9632 cat confdefs.h >>conftest.$ac_ext
9633 cat >>conftest.$ac_ext <<_ACEOF
9634 /* end confdefs.h. */
9635 #include <$ac_header>
9636 _ACEOF
9637 if { (ac_try="$ac_cpp conftest.$ac_ext"
9638 case "(($ac_try" in
9639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9640 *) ac_try_echo=$ac_try;;
9641 esac
9642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9644 ac_status=$?
9645 grep -v '^ *+' conftest.er1 >conftest.err
9646 rm -f conftest.er1
9647 cat conftest.err >&5
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); } >/dev/null && {
9650 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9651 test ! -s conftest.err
9652 }; then
9653 ac_header_preproc=yes
9654 else
9655 echo "$as_me: failed program was:" >&5
9656 sed 's/^/| /' conftest.$ac_ext >&5
9658 ac_header_preproc=no
9661 rm -f conftest.err conftest.$ac_ext
9662 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9663 echo "${ECHO_T}$ac_header_preproc" >&6; }
9665 # So? What about this header?
9666 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9667 yes:no: )
9668 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9669 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9671 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9672 ac_header_preproc=yes
9674 no:yes:* )
9675 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9676 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9677 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9678 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9679 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9680 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9681 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9682 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9684 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9685 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9686 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9689 esac
9690 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9693 echo $ECHO_N "(cached) $ECHO_C" >&6
9694 else
9695 eval "$as_ac_Header=\$ac_header_preproc"
9697 ac_res=`eval echo '${'$as_ac_Header'}'`
9698 { echo "$as_me:$LINENO: result: $ac_res" >&5
9699 echo "${ECHO_T}$ac_res" >&6; }
9702 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9703 cat >>confdefs.h <<_ACEOF
9704 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9705 _ACEOF
9709 done
9712 for ac_func in getpagesize
9714 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9715 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9716 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9717 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9718 echo $ECHO_N "(cached) $ECHO_C" >&6
9719 else
9720 cat >conftest.$ac_ext <<_ACEOF
9721 /* confdefs.h. */
9722 _ACEOF
9723 cat confdefs.h >>conftest.$ac_ext
9724 cat >>conftest.$ac_ext <<_ACEOF
9725 /* end confdefs.h. */
9726 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9728 #define $ac_func innocuous_$ac_func
9730 /* System header to define __stub macros and hopefully few prototypes,
9731 which can conflict with char $ac_func (); below.
9732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9733 <limits.h> exists even on freestanding compilers. */
9735 #ifdef __STDC__
9736 # include <limits.h>
9737 #else
9738 # include <assert.h>
9739 #endif
9741 #undef $ac_func
9743 /* Override any GCC internal prototype to avoid an error.
9744 Use char because int might match the return type of a GCC
9745 builtin and then its argument prototype would still apply. */
9746 #ifdef __cplusplus
9747 extern "C"
9748 #endif
9749 char $ac_func ();
9750 /* The GNU C library defines this for functions which it implements
9751 to always fail with ENOSYS. Some functions are actually named
9752 something starting with __ and the normal name is an alias. */
9753 #if defined __stub_$ac_func || defined __stub___$ac_func
9754 choke me
9755 #endif
9758 main ()
9760 return $ac_func ();
9762 return 0;
9764 _ACEOF
9765 rm -f conftest.$ac_objext conftest$ac_exeext
9766 if { (ac_try="$ac_link"
9767 case "(($ac_try" in
9768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9769 *) ac_try_echo=$ac_try;;
9770 esac
9771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9772 (eval "$ac_link") 2>conftest.er1
9773 ac_status=$?
9774 grep -v '^ *+' conftest.er1 >conftest.err
9775 rm -f conftest.er1
9776 cat conftest.err >&5
9777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778 (exit $ac_status); } && {
9779 test -z "$ac_c_werror_flag" ||
9780 test ! -s conftest.err
9781 } && test -s conftest$ac_exeext &&
9782 $as_test_x conftest$ac_exeext; then
9783 eval "$as_ac_var=yes"
9784 else
9785 echo "$as_me: failed program was:" >&5
9786 sed 's/^/| /' conftest.$ac_ext >&5
9788 eval "$as_ac_var=no"
9791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9792 conftest$ac_exeext conftest.$ac_ext
9794 ac_res=`eval echo '${'$as_ac_var'}'`
9795 { echo "$as_me:$LINENO: result: $ac_res" >&5
9796 echo "${ECHO_T}$ac_res" >&6; }
9797 if test `eval echo '${'$as_ac_var'}'` = yes; then
9798 cat >>confdefs.h <<_ACEOF
9799 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9800 _ACEOF
9803 done
9805 { echo "$as_me:$LINENO: checking for working mmap" >&5
9806 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9807 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9808 echo $ECHO_N "(cached) $ECHO_C" >&6
9809 else
9810 if test "$cross_compiling" = yes; then
9811 ac_cv_func_mmap_fixed_mapped=no
9812 else
9813 cat >conftest.$ac_ext <<_ACEOF
9814 /* confdefs.h. */
9815 _ACEOF
9816 cat confdefs.h >>conftest.$ac_ext
9817 cat >>conftest.$ac_ext <<_ACEOF
9818 /* end confdefs.h. */
9819 $ac_includes_default
9820 /* malloc might have been renamed as rpl_malloc. */
9821 #undef malloc
9823 /* Thanks to Mike Haertel and Jim Avera for this test.
9824 Here is a matrix of mmap possibilities:
9825 mmap private not fixed
9826 mmap private fixed at somewhere currently unmapped
9827 mmap private fixed at somewhere already mapped
9828 mmap shared not fixed
9829 mmap shared fixed at somewhere currently unmapped
9830 mmap shared fixed at somewhere already mapped
9831 For private mappings, we should verify that changes cannot be read()
9832 back from the file, nor mmap's back from the file at a different
9833 address. (There have been systems where private was not correctly
9834 implemented like the infamous i386 svr4.0, and systems where the
9835 VM page cache was not coherent with the file system buffer cache
9836 like early versions of FreeBSD and possibly contemporary NetBSD.)
9837 For shared mappings, we should conversely verify that changes get
9838 propagated back to all the places they're supposed to be.
9840 Grep wants private fixed already mapped.
9841 The main things grep needs to know about mmap are:
9842 * does it exist and is it safe to write into the mmap'd area
9843 * how to use it (BSD variants) */
9845 #include <fcntl.h>
9846 #include <sys/mman.h>
9848 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9849 char *malloc ();
9850 #endif
9852 /* This mess was copied from the GNU getpagesize.h. */
9853 #ifndef HAVE_GETPAGESIZE
9854 /* Assume that all systems that can run configure have sys/param.h. */
9855 # ifndef HAVE_SYS_PARAM_H
9856 # define HAVE_SYS_PARAM_H 1
9857 # endif
9859 # ifdef _SC_PAGESIZE
9860 # define getpagesize() sysconf(_SC_PAGESIZE)
9861 # else /* no _SC_PAGESIZE */
9862 # ifdef HAVE_SYS_PARAM_H
9863 # include <sys/param.h>
9864 # ifdef EXEC_PAGESIZE
9865 # define getpagesize() EXEC_PAGESIZE
9866 # else /* no EXEC_PAGESIZE */
9867 # ifdef NBPG
9868 # define getpagesize() NBPG * CLSIZE
9869 # ifndef CLSIZE
9870 # define CLSIZE 1
9871 # endif /* no CLSIZE */
9872 # else /* no NBPG */
9873 # ifdef NBPC
9874 # define getpagesize() NBPC
9875 # else /* no NBPC */
9876 # ifdef PAGESIZE
9877 # define getpagesize() PAGESIZE
9878 # endif /* PAGESIZE */
9879 # endif /* no NBPC */
9880 # endif /* no NBPG */
9881 # endif /* no EXEC_PAGESIZE */
9882 # else /* no HAVE_SYS_PARAM_H */
9883 # define getpagesize() 8192 /* punt totally */
9884 # endif /* no HAVE_SYS_PARAM_H */
9885 # endif /* no _SC_PAGESIZE */
9887 #endif /* no HAVE_GETPAGESIZE */
9890 main ()
9892 char *data, *data2, *data3;
9893 int i, pagesize;
9894 int fd;
9896 pagesize = getpagesize ();
9898 /* First, make a file with some known garbage in it. */
9899 data = (char *) malloc (pagesize);
9900 if (!data)
9901 return 1;
9902 for (i = 0; i < pagesize; ++i)
9903 *(data + i) = rand ();
9904 umask (0);
9905 fd = creat ("conftest.mmap", 0600);
9906 if (fd < 0)
9907 return 1;
9908 if (write (fd, data, pagesize) != pagesize)
9909 return 1;
9910 close (fd);
9912 /* Next, try to mmap the file at a fixed address which already has
9913 something else allocated at it. If we can, also make sure that
9914 we see the same garbage. */
9915 fd = open ("conftest.mmap", O_RDWR);
9916 if (fd < 0)
9917 return 1;
9918 data2 = (char *) malloc (2 * pagesize);
9919 if (!data2)
9920 return 1;
9921 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9922 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9923 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9924 return 1;
9925 for (i = 0; i < pagesize; ++i)
9926 if (*(data + i) != *(data2 + i))
9927 return 1;
9929 /* Finally, make sure that changes to the mapped area do not
9930 percolate back to the file as seen by read(). (This is a bug on
9931 some variants of i386 svr4.0.) */
9932 for (i = 0; i < pagesize; ++i)
9933 *(data2 + i) = *(data2 + i) + 1;
9934 data3 = (char *) malloc (pagesize);
9935 if (!data3)
9936 return 1;
9937 if (read (fd, data3, pagesize) != pagesize)
9938 return 1;
9939 for (i = 0; i < pagesize; ++i)
9940 if (*(data + i) != *(data3 + i))
9941 return 1;
9942 close (fd);
9943 return 0;
9945 _ACEOF
9946 rm -f conftest$ac_exeext
9947 if { (ac_try="$ac_link"
9948 case "(($ac_try" in
9949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9950 *) ac_try_echo=$ac_try;;
9951 esac
9952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9953 (eval "$ac_link") 2>&5
9954 ac_status=$?
9955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9957 { (case "(($ac_try" in
9958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9959 *) ac_try_echo=$ac_try;;
9960 esac
9961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9962 (eval "$ac_try") 2>&5
9963 ac_status=$?
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); }; }; then
9966 ac_cv_func_mmap_fixed_mapped=yes
9967 else
9968 echo "$as_me: program exited with status $ac_status" >&5
9969 echo "$as_me: failed program was:" >&5
9970 sed 's/^/| /' conftest.$ac_ext >&5
9972 ( exit $ac_status )
9973 ac_cv_func_mmap_fixed_mapped=no
9975 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9980 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9981 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
9982 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9984 cat >>confdefs.h <<\_ACEOF
9985 #define HAVE_MMAP 1
9986 _ACEOF
9989 rm -f conftest.mmap
9991 if test $use_mmap_for_buffers = yes; then
9992 REL_ALLOC=no
9995 LIBS="$libsrc_libs $LIBS"
9998 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9999 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10000 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10001 echo $ECHO_N "(cached) $ECHO_C" >&6
10002 else
10003 ac_check_lib_save_LIBS=$LIBS
10004 LIBS="-ldnet $LIBS"
10005 cat >conftest.$ac_ext <<_ACEOF
10006 /* confdefs.h. */
10007 _ACEOF
10008 cat confdefs.h >>conftest.$ac_ext
10009 cat >>conftest.$ac_ext <<_ACEOF
10010 /* end confdefs.h. */
10012 /* Override any GCC internal prototype to avoid an error.
10013 Use char because int might match the return type of a GCC
10014 builtin and then its argument prototype would still apply. */
10015 #ifdef __cplusplus
10016 extern "C"
10017 #endif
10018 char dnet_ntoa ();
10020 main ()
10022 return dnet_ntoa ();
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 ac_cv_lib_dnet_dnet_ntoa=yes
10046 else
10047 echo "$as_me: failed program was:" >&5
10048 sed 's/^/| /' conftest.$ac_ext >&5
10050 ac_cv_lib_dnet_dnet_ntoa=no
10053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10054 conftest$ac_exeext conftest.$ac_ext
10055 LIBS=$ac_check_lib_save_LIBS
10057 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10058 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10059 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10060 cat >>confdefs.h <<_ACEOF
10061 #define HAVE_LIBDNET 1
10062 _ACEOF
10064 LIBS="-ldnet $LIBS"
10069 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10070 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10071 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10072 echo $ECHO_N "(cached) $ECHO_C" >&6
10073 else
10074 ac_check_lib_save_LIBS=$LIBS
10075 LIBS="-lXbsd $LIBS"
10076 cat >conftest.$ac_ext <<_ACEOF
10077 /* confdefs.h. */
10078 _ACEOF
10079 cat confdefs.h >>conftest.$ac_ext
10080 cat >>conftest.$ac_ext <<_ACEOF
10081 /* end confdefs.h. */
10085 main ()
10087 return main ();
10089 return 0;
10091 _ACEOF
10092 rm -f conftest.$ac_objext conftest$ac_exeext
10093 if { (ac_try="$ac_link"
10094 case "(($ac_try" in
10095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10096 *) ac_try_echo=$ac_try;;
10097 esac
10098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10099 (eval "$ac_link") 2>conftest.er1
10100 ac_status=$?
10101 grep -v '^ *+' conftest.er1 >conftest.err
10102 rm -f conftest.er1
10103 cat conftest.err >&5
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105 (exit $ac_status); } && {
10106 test -z "$ac_c_werror_flag" ||
10107 test ! -s conftest.err
10108 } && test -s conftest$ac_exeext &&
10109 $as_test_x conftest$ac_exeext; then
10110 ac_cv_lib_Xbsd_main=yes
10111 else
10112 echo "$as_me: failed program was:" >&5
10113 sed 's/^/| /' conftest.$ac_ext >&5
10115 ac_cv_lib_Xbsd_main=no
10118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10119 conftest$ac_exeext conftest.$ac_ext
10120 LIBS=$ac_check_lib_save_LIBS
10122 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10123 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10124 if test $ac_cv_lib_Xbsd_main = yes; then
10125 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10130 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10131 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10132 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10133 echo $ECHO_N "(cached) $ECHO_C" >&6
10134 else
10135 ac_check_lib_save_LIBS=$LIBS
10136 LIBS="-lpthreads $LIBS"
10137 cat >conftest.$ac_ext <<_ACEOF
10138 /* confdefs.h. */
10139 _ACEOF
10140 cat confdefs.h >>conftest.$ac_ext
10141 cat >>conftest.$ac_ext <<_ACEOF
10142 /* end confdefs.h. */
10144 /* Override any GCC internal prototype to avoid an error.
10145 Use char because int might match the return type of a GCC
10146 builtin and then its argument prototype would still apply. */
10147 #ifdef __cplusplus
10148 extern "C"
10149 #endif
10150 char cma_open ();
10152 main ()
10154 return cma_open ();
10156 return 0;
10158 _ACEOF
10159 rm -f conftest.$ac_objext conftest$ac_exeext
10160 if { (ac_try="$ac_link"
10161 case "(($ac_try" in
10162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10163 *) ac_try_echo=$ac_try;;
10164 esac
10165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10166 (eval "$ac_link") 2>conftest.er1
10167 ac_status=$?
10168 grep -v '^ *+' conftest.er1 >conftest.err
10169 rm -f conftest.er1
10170 cat conftest.err >&5
10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 (exit $ac_status); } && {
10173 test -z "$ac_c_werror_flag" ||
10174 test ! -s conftest.err
10175 } && test -s conftest$ac_exeext &&
10176 $as_test_x conftest$ac_exeext; then
10177 ac_cv_lib_pthreads_cma_open=yes
10178 else
10179 echo "$as_me: failed program was:" >&5
10180 sed 's/^/| /' conftest.$ac_ext >&5
10182 ac_cv_lib_pthreads_cma_open=no
10185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10186 conftest$ac_exeext conftest.$ac_ext
10187 LIBS=$ac_check_lib_save_LIBS
10189 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10190 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10191 if test $ac_cv_lib_pthreads_cma_open = yes; then
10192 cat >>confdefs.h <<_ACEOF
10193 #define HAVE_LIBPTHREADS 1
10194 _ACEOF
10196 LIBS="-lpthreads $LIBS"
10202 case ${host_os} in
10203 aix*)
10204 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10205 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10206 if test "${gdb_cv_bigtoc+set}" = set; then
10207 echo $ECHO_N "(cached) $ECHO_C" >&6
10208 else
10210 case $GCC in
10211 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10212 *) gdb_cv_bigtoc=-bbigtoc ;;
10213 esac
10215 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10216 cat >conftest.$ac_ext <<_ACEOF
10217 /* confdefs.h. */
10218 _ACEOF
10219 cat confdefs.h >>conftest.$ac_ext
10220 cat >>conftest.$ac_ext <<_ACEOF
10221 /* end confdefs.h. */
10224 main ()
10226 int i;
10228 return 0;
10230 _ACEOF
10231 rm -f conftest.$ac_objext conftest$ac_exeext
10232 if { (ac_try="$ac_link"
10233 case "(($ac_try" in
10234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10235 *) ac_try_echo=$ac_try;;
10236 esac
10237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10238 (eval "$ac_link") 2>conftest.er1
10239 ac_status=$?
10240 grep -v '^ *+' conftest.er1 >conftest.err
10241 rm -f conftest.er1
10242 cat conftest.err >&5
10243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244 (exit $ac_status); } && {
10245 test -z "$ac_c_werror_flag" ||
10246 test ! -s conftest.err
10247 } && test -s conftest$ac_exeext &&
10248 $as_test_x conftest$ac_exeext; then
10250 else
10251 echo "$as_me: failed program was:" >&5
10252 sed 's/^/| /' conftest.$ac_ext >&5
10254 gdb_cv_bigtoc=
10257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10258 conftest$ac_exeext conftest.$ac_ext
10261 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10262 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10264 esac
10266 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10267 # used for the tests that follow. We set them back to REAL_CFLAGS and
10268 # REAL_CPPFLAGS later on.
10270 REAL_CPPFLAGS="$CPPFLAGS"
10272 if test "${HAVE_X11}" = "yes"; then
10273 DEFS="$C_SWITCH_X_SITE $DEFS"
10274 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10275 LIBS="$LIBX $LIBS"
10276 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10277 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10279 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10280 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10281 # but it's more convenient here to set LD_RUN_PATH
10282 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10283 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10284 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10285 export LD_RUN_PATH
10288 if test "${opsys}" = "gnu-linux"; then
10289 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10290 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10291 cat >conftest.$ac_ext <<_ACEOF
10292 /* confdefs.h. */
10293 _ACEOF
10294 cat confdefs.h >>conftest.$ac_ext
10295 cat >>conftest.$ac_ext <<_ACEOF
10296 /* end confdefs.h. */
10299 main ()
10301 XOpenDisplay ("foo");
10303 return 0;
10305 _ACEOF
10306 rm -f conftest.$ac_objext conftest$ac_exeext
10307 if { (ac_try="$ac_link"
10308 case "(($ac_try" in
10309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10310 *) ac_try_echo=$ac_try;;
10311 esac
10312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10313 (eval "$ac_link") 2>conftest.er1
10314 ac_status=$?
10315 grep -v '^ *+' conftest.er1 >conftest.err
10316 rm -f conftest.er1
10317 cat conftest.err >&5
10318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319 (exit $ac_status); } && {
10320 test -z "$ac_c_werror_flag" ||
10321 test ! -s conftest.err
10322 } && test -s conftest$ac_exeext &&
10323 $as_test_x conftest$ac_exeext; then
10324 xlinux_first_failure=no
10325 else
10326 echo "$as_me: failed program was:" >&5
10327 sed 's/^/| /' conftest.$ac_ext >&5
10329 xlinux_first_failure=yes
10332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10333 conftest$ac_exeext conftest.$ac_ext
10334 if test "${xlinux_first_failure}" = "yes"; then
10335 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10336 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10337 OLD_CPPFLAGS="$CPPFLAGS"
10338 OLD_LIBS="$LIBS"
10339 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10340 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10341 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10342 LIBS="$LIBS -b i486-linuxaout"
10343 cat >conftest.$ac_ext <<_ACEOF
10344 /* confdefs.h. */
10345 _ACEOF
10346 cat confdefs.h >>conftest.$ac_ext
10347 cat >>conftest.$ac_ext <<_ACEOF
10348 /* end confdefs.h. */
10351 main ()
10353 XOpenDisplay ("foo");
10355 return 0;
10357 _ACEOF
10358 rm -f conftest.$ac_objext conftest$ac_exeext
10359 if { (ac_try="$ac_link"
10360 case "(($ac_try" in
10361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10362 *) ac_try_echo=$ac_try;;
10363 esac
10364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10365 (eval "$ac_link") 2>conftest.er1
10366 ac_status=$?
10367 grep -v '^ *+' conftest.er1 >conftest.err
10368 rm -f conftest.er1
10369 cat conftest.err >&5
10370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371 (exit $ac_status); } && {
10372 test -z "$ac_c_werror_flag" ||
10373 test ! -s conftest.err
10374 } && test -s conftest$ac_exeext &&
10375 $as_test_x conftest$ac_exeext; then
10376 xlinux_second_failure=no
10377 else
10378 echo "$as_me: failed program was:" >&5
10379 sed 's/^/| /' conftest.$ac_ext >&5
10381 xlinux_second_failure=yes
10384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10385 conftest$ac_exeext conftest.$ac_ext
10386 if test "${xlinux_second_failure}" = "yes"; then
10387 # If we get the same failure with -b, there is no use adding -b.
10388 # So take it out. This plays safe.
10389 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10390 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10391 CPPFLAGS="$OLD_CPPFLAGS"
10392 LIBS="$OLD_LIBS"
10393 { echo "$as_me:$LINENO: result: no" >&5
10394 echo "${ECHO_T}no" >&6; }
10395 else
10396 { echo "$as_me:$LINENO: result: yes" >&5
10397 echo "${ECHO_T}yes" >&6; }
10399 else
10400 { echo "$as_me:$LINENO: result: no" >&5
10401 echo "${ECHO_T}no" >&6; }
10405 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10406 # header files included from there.
10407 { echo "$as_me:$LINENO: checking for Xkb" >&5
10408 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10409 cat >conftest.$ac_ext <<_ACEOF
10410 /* confdefs.h. */
10411 _ACEOF
10412 cat confdefs.h >>conftest.$ac_ext
10413 cat >>conftest.$ac_ext <<_ACEOF
10414 /* end confdefs.h. */
10415 #include <X11/Xlib.h>
10416 #include <X11/XKBlib.h>
10418 main ()
10420 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10422 return 0;
10424 _ACEOF
10425 rm -f conftest.$ac_objext conftest$ac_exeext
10426 if { (ac_try="$ac_link"
10427 case "(($ac_try" in
10428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10429 *) ac_try_echo=$ac_try;;
10430 esac
10431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10432 (eval "$ac_link") 2>conftest.er1
10433 ac_status=$?
10434 grep -v '^ *+' conftest.er1 >conftest.err
10435 rm -f conftest.er1
10436 cat conftest.err >&5
10437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438 (exit $ac_status); } && {
10439 test -z "$ac_c_werror_flag" ||
10440 test ! -s conftest.err
10441 } && test -s conftest$ac_exeext &&
10442 $as_test_x conftest$ac_exeext; then
10443 emacs_xkb=yes
10444 else
10445 echo "$as_me: failed program was:" >&5
10446 sed 's/^/| /' conftest.$ac_ext >&5
10448 emacs_xkb=no
10451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10452 conftest$ac_exeext conftest.$ac_ext
10453 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10454 echo "${ECHO_T}$emacs_xkb" >&6; }
10455 if test $emacs_xkb = yes; then
10457 cat >>confdefs.h <<\_ACEOF
10458 #define HAVE_XKBGETKEYBOARD 1
10459 _ACEOF
10467 for ac_func in XrmSetDatabase XScreenResourceString \
10468 XScreenNumberOfScreen XSetWMProtocols
10470 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10471 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10472 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10473 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10474 echo $ECHO_N "(cached) $ECHO_C" >&6
10475 else
10476 cat >conftest.$ac_ext <<_ACEOF
10477 /* confdefs.h. */
10478 _ACEOF
10479 cat confdefs.h >>conftest.$ac_ext
10480 cat >>conftest.$ac_ext <<_ACEOF
10481 /* end confdefs.h. */
10482 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10484 #define $ac_func innocuous_$ac_func
10486 /* System header to define __stub macros and hopefully few prototypes,
10487 which can conflict with char $ac_func (); below.
10488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10489 <limits.h> exists even on freestanding compilers. */
10491 #ifdef __STDC__
10492 # include <limits.h>
10493 #else
10494 # include <assert.h>
10495 #endif
10497 #undef $ac_func
10499 /* Override any GCC internal prototype to avoid an error.
10500 Use char because int might match the return type of a GCC
10501 builtin and then its argument prototype would still apply. */
10502 #ifdef __cplusplus
10503 extern "C"
10504 #endif
10505 char $ac_func ();
10506 /* The GNU C library defines this for functions which it implements
10507 to always fail with ENOSYS. Some functions are actually named
10508 something starting with __ and the normal name is an alias. */
10509 #if defined __stub_$ac_func || defined __stub___$ac_func
10510 choke me
10511 #endif
10514 main ()
10516 return $ac_func ();
10518 return 0;
10520 _ACEOF
10521 rm -f conftest.$ac_objext conftest$ac_exeext
10522 if { (ac_try="$ac_link"
10523 case "(($ac_try" in
10524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10525 *) ac_try_echo=$ac_try;;
10526 esac
10527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10528 (eval "$ac_link") 2>conftest.er1
10529 ac_status=$?
10530 grep -v '^ *+' conftest.er1 >conftest.err
10531 rm -f conftest.er1
10532 cat conftest.err >&5
10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 (exit $ac_status); } && {
10535 test -z "$ac_c_werror_flag" ||
10536 test ! -s conftest.err
10537 } && test -s conftest$ac_exeext &&
10538 $as_test_x conftest$ac_exeext; then
10539 eval "$as_ac_var=yes"
10540 else
10541 echo "$as_me: failed program was:" >&5
10542 sed 's/^/| /' conftest.$ac_ext >&5
10544 eval "$as_ac_var=no"
10547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10548 conftest$ac_exeext conftest.$ac_ext
10550 ac_res=`eval echo '${'$as_ac_var'}'`
10551 { echo "$as_me:$LINENO: result: $ac_res" >&5
10552 echo "${ECHO_T}$ac_res" >&6; }
10553 if test `eval echo '${'$as_ac_var'}'` = yes; then
10554 cat >>confdefs.h <<_ACEOF
10555 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10556 _ACEOF
10559 done
10563 if test "${window_system}" = "x11"; then
10564 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10565 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10566 if test "${emacs_cv_x11_version_6+set}" = set; then
10567 echo $ECHO_N "(cached) $ECHO_C" >&6
10568 else
10569 cat >conftest.$ac_ext <<_ACEOF
10570 /* confdefs.h. */
10571 _ACEOF
10572 cat confdefs.h >>conftest.$ac_ext
10573 cat >>conftest.$ac_ext <<_ACEOF
10574 /* end confdefs.h. */
10575 #include <X11/Xlib.h>
10577 main ()
10579 #if XlibSpecificationRelease < 6
10580 fail;
10581 #endif
10584 return 0;
10586 _ACEOF
10587 rm -f conftest.$ac_objext conftest$ac_exeext
10588 if { (ac_try="$ac_link"
10589 case "(($ac_try" in
10590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10591 *) ac_try_echo=$ac_try;;
10592 esac
10593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10594 (eval "$ac_link") 2>conftest.er1
10595 ac_status=$?
10596 grep -v '^ *+' conftest.er1 >conftest.err
10597 rm -f conftest.er1
10598 cat conftest.err >&5
10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); } && {
10601 test -z "$ac_c_werror_flag" ||
10602 test ! -s conftest.err
10603 } && test -s conftest$ac_exeext &&
10604 $as_test_x conftest$ac_exeext; then
10605 emacs_cv_x11_version_6=yes
10606 else
10607 echo "$as_me: failed program was:" >&5
10608 sed 's/^/| /' conftest.$ac_ext >&5
10610 emacs_cv_x11_version_6=no
10613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10614 conftest$ac_exeext conftest.$ac_ext
10617 if test $emacs_cv_x11_version_6 = yes; then
10618 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10619 echo "${ECHO_T}6 or newer" >&6; }
10621 cat >>confdefs.h <<\_ACEOF
10622 #define HAVE_X11R6 1
10623 _ACEOF
10625 else
10626 { echo "$as_me:$LINENO: result: before 6" >&5
10627 echo "${ECHO_T}before 6" >&6; }
10632 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10633 HAVE_RSVG=no
10634 if test "${HAVE_X11}" = "yes" || test "${HAVE_CARBON}" = "yes"; then
10635 if test "${with_rsvg}" != "no"; then
10636 RSVG_REQUIRED=2.0.0
10637 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10640 succeeded=no
10642 # Extract the first word of "pkg-config", so it can be a program name with args.
10643 set dummy pkg-config; ac_word=$2
10644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10646 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10647 echo $ECHO_N "(cached) $ECHO_C" >&6
10648 else
10649 case $PKG_CONFIG in
10650 [\\/]* | ?:[\\/]*)
10651 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10655 for as_dir in $PATH
10657 IFS=$as_save_IFS
10658 test -z "$as_dir" && as_dir=.
10659 for ac_exec_ext in '' $ac_executable_extensions; do
10660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10661 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10663 break 2
10665 done
10666 done
10667 IFS=$as_save_IFS
10669 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10671 esac
10673 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10674 if test -n "$PKG_CONFIG"; then
10675 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10676 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10677 else
10678 { echo "$as_me:$LINENO: result: no" >&5
10679 echo "${ECHO_T}no" >&6; }
10684 if test "$PKG_CONFIG" = "no" ; then
10686 else
10687 PKG_CONFIG_MIN_VERSION=0.9.0
10688 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10689 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10690 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10692 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10693 { echo "$as_me:$LINENO: result: yes" >&5
10694 echo "${ECHO_T}yes" >&6; }
10695 succeeded=yes
10697 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
10698 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
10699 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10700 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
10701 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10703 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
10704 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
10705 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10706 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
10707 echo "${ECHO_T}$RSVG_LIBS" >&6; }
10708 else
10709 { echo "$as_me:$LINENO: result: no" >&5
10710 echo "${ECHO_T}no" >&6; }
10711 RSVG_CFLAGS=""
10712 RSVG_LIBS=""
10713 ## If we have a custom action on failure, don't print errors, but
10714 ## do set a variable so people can do so.
10715 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10721 else
10722 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10723 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10727 if test $succeeded = yes; then
10729 else
10736 if test ".${RSVG_CFLAGS}" != "."; then
10737 HAVE_RSVG=yes
10739 cat >>confdefs.h <<\_ACEOF
10740 #define HAVE_RSVG 1
10741 _ACEOF
10743 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10744 LIBS="$RSVG_LIBS $LIBS"
10750 HAVE_GTK=no
10751 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10752 GLIB_REQUIRED=2.6
10753 GTK_REQUIRED=2.6
10754 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10757 succeeded=no
10759 # Extract the first word of "pkg-config", so it can be a program name with args.
10760 set dummy pkg-config; ac_word=$2
10761 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10763 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10764 echo $ECHO_N "(cached) $ECHO_C" >&6
10765 else
10766 case $PKG_CONFIG in
10767 [\\/]* | ?:[\\/]*)
10768 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10772 for as_dir in $PATH
10774 IFS=$as_save_IFS
10775 test -z "$as_dir" && as_dir=.
10776 for ac_exec_ext in '' $ac_executable_extensions; do
10777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10778 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10780 break 2
10782 done
10783 done
10784 IFS=$as_save_IFS
10786 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10788 esac
10790 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10791 if test -n "$PKG_CONFIG"; then
10792 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10793 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10794 else
10795 { echo "$as_me:$LINENO: result: no" >&5
10796 echo "${ECHO_T}no" >&6; }
10801 if test "$PKG_CONFIG" = "no" ; then
10802 pkg_check_gtk=no
10803 else
10804 PKG_CONFIG_MIN_VERSION=0.9.0
10805 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10806 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10807 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10809 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10810 { echo "$as_me:$LINENO: result: yes" >&5
10811 echo "${ECHO_T}yes" >&6; }
10812 succeeded=yes
10814 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10815 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10816 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10817 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10818 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10820 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10821 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10822 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10823 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10824 echo "${ECHO_T}$GTK_LIBS" >&6; }
10825 else
10826 { echo "$as_me:$LINENO: result: no" >&5
10827 echo "${ECHO_T}no" >&6; }
10828 GTK_CFLAGS=""
10829 GTK_LIBS=""
10830 ## If we have a custom action on failure, don't print errors, but
10831 ## do set a variable so people can do so.
10832 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10838 else
10839 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10840 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10844 if test $succeeded = yes; then
10845 pkg_check_gtk=yes
10846 else
10847 pkg_check_gtk=no
10850 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10851 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
10852 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
10853 { (exit 1); exit 1; }; }
10858 if test x"$pkg_check_gtk" = xyes; then
10862 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10863 CFLAGS="$CFLAGS $GTK_CFLAGS"
10864 LIBS="$GTK_LIBS $LIBS"
10865 GTK_COMPILES=no
10867 for ac_func in gtk_main
10869 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10870 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10871 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10872 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10873 echo $ECHO_N "(cached) $ECHO_C" >&6
10874 else
10875 cat >conftest.$ac_ext <<_ACEOF
10876 /* confdefs.h. */
10877 _ACEOF
10878 cat confdefs.h >>conftest.$ac_ext
10879 cat >>conftest.$ac_ext <<_ACEOF
10880 /* end confdefs.h. */
10881 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10883 #define $ac_func innocuous_$ac_func
10885 /* System header to define __stub macros and hopefully few prototypes,
10886 which can conflict with char $ac_func (); below.
10887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10888 <limits.h> exists even on freestanding compilers. */
10890 #ifdef __STDC__
10891 # include <limits.h>
10892 #else
10893 # include <assert.h>
10894 #endif
10896 #undef $ac_func
10898 /* Override any GCC internal prototype to avoid an error.
10899 Use char because int might match the return type of a GCC
10900 builtin and then its argument prototype would still apply. */
10901 #ifdef __cplusplus
10902 extern "C"
10903 #endif
10904 char $ac_func ();
10905 /* The GNU C library defines this for functions which it implements
10906 to always fail with ENOSYS. Some functions are actually named
10907 something starting with __ and the normal name is an alias. */
10908 #if defined __stub_$ac_func || defined __stub___$ac_func
10909 choke me
10910 #endif
10913 main ()
10915 return $ac_func ();
10917 return 0;
10919 _ACEOF
10920 rm -f conftest.$ac_objext conftest$ac_exeext
10921 if { (ac_try="$ac_link"
10922 case "(($ac_try" in
10923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10924 *) ac_try_echo=$ac_try;;
10925 esac
10926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10927 (eval "$ac_link") 2>conftest.er1
10928 ac_status=$?
10929 grep -v '^ *+' conftest.er1 >conftest.err
10930 rm -f conftest.er1
10931 cat conftest.err >&5
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); } && {
10934 test -z "$ac_c_werror_flag" ||
10935 test ! -s conftest.err
10936 } && test -s conftest$ac_exeext &&
10937 $as_test_x conftest$ac_exeext; then
10938 eval "$as_ac_var=yes"
10939 else
10940 echo "$as_me: failed program was:" >&5
10941 sed 's/^/| /' conftest.$ac_ext >&5
10943 eval "$as_ac_var=no"
10946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10947 conftest$ac_exeext conftest.$ac_ext
10949 ac_res=`eval echo '${'$as_ac_var'}'`
10950 { echo "$as_me:$LINENO: result: $ac_res" >&5
10951 echo "${ECHO_T}$ac_res" >&6; }
10952 if test `eval echo '${'$as_ac_var'}'` = yes; then
10953 cat >>confdefs.h <<_ACEOF
10954 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10955 _ACEOF
10956 GTK_COMPILES=yes
10958 done
10960 if test "${GTK_COMPILES}" != "yes"; then
10961 if test "$USE_X_TOOLKIT" != "maybe"; then
10962 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
10963 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
10964 { (exit 1); exit 1; }; };
10966 else
10967 HAVE_GTK=yes
10969 cat >>confdefs.h <<\_ACEOF
10970 #define HAVE_GTK 1
10971 _ACEOF
10973 USE_X_TOOLKIT=none
10979 if test "${HAVE_GTK}" = "yes"; then
10981 if test "$with_toolkit_scroll_bars" != no; then
10982 with_toolkit_scroll_bars=yes
10985 HAVE_GTK_MULTIDISPLAY=no
10987 for ac_func in gdk_display_open
10989 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10990 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10991 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10992 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10993 echo $ECHO_N "(cached) $ECHO_C" >&6
10994 else
10995 cat >conftest.$ac_ext <<_ACEOF
10996 /* confdefs.h. */
10997 _ACEOF
10998 cat confdefs.h >>conftest.$ac_ext
10999 cat >>conftest.$ac_ext <<_ACEOF
11000 /* end confdefs.h. */
11001 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11003 #define $ac_func innocuous_$ac_func
11005 /* System header to define __stub macros and hopefully few prototypes,
11006 which can conflict with char $ac_func (); below.
11007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11008 <limits.h> exists even on freestanding compilers. */
11010 #ifdef __STDC__
11011 # include <limits.h>
11012 #else
11013 # include <assert.h>
11014 #endif
11016 #undef $ac_func
11018 /* Override any GCC internal prototype to avoid an error.
11019 Use char because int might match the return type of a GCC
11020 builtin and then its argument prototype would still apply. */
11021 #ifdef __cplusplus
11022 extern "C"
11023 #endif
11024 char $ac_func ();
11025 /* The GNU C library defines this for functions which it implements
11026 to always fail with ENOSYS. Some functions are actually named
11027 something starting with __ and the normal name is an alias. */
11028 #if defined __stub_$ac_func || defined __stub___$ac_func
11029 choke me
11030 #endif
11033 main ()
11035 return $ac_func ();
11037 return 0;
11039 _ACEOF
11040 rm -f conftest.$ac_objext conftest$ac_exeext
11041 if { (ac_try="$ac_link"
11042 case "(($ac_try" in
11043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11044 *) ac_try_echo=$ac_try;;
11045 esac
11046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11047 (eval "$ac_link") 2>conftest.er1
11048 ac_status=$?
11049 grep -v '^ *+' conftest.er1 >conftest.err
11050 rm -f conftest.er1
11051 cat conftest.err >&5
11052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053 (exit $ac_status); } && {
11054 test -z "$ac_c_werror_flag" ||
11055 test ! -s conftest.err
11056 } && test -s conftest$ac_exeext &&
11057 $as_test_x conftest$ac_exeext; then
11058 eval "$as_ac_var=yes"
11059 else
11060 echo "$as_me: failed program was:" >&5
11061 sed 's/^/| /' conftest.$ac_ext >&5
11063 eval "$as_ac_var=no"
11066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11067 conftest$ac_exeext conftest.$ac_ext
11069 ac_res=`eval echo '${'$as_ac_var'}'`
11070 { echo "$as_me:$LINENO: result: $ac_res" >&5
11071 echo "${ECHO_T}$ac_res" >&6; }
11072 if test `eval echo '${'$as_ac_var'}'` = yes; then
11073 cat >>confdefs.h <<_ACEOF
11074 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11075 _ACEOF
11076 HAVE_GTK_MULTIDISPLAY=yes
11078 done
11080 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11082 cat >>confdefs.h <<\_ACEOF
11083 #define HAVE_GTK_MULTIDISPLAY 1
11084 _ACEOF
11088 HAVE_GTK_FILE_SELECTION=no
11090 for ac_func in gtk_file_selection_new
11092 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11093 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11094 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11095 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11096 echo $ECHO_N "(cached) $ECHO_C" >&6
11097 else
11098 cat >conftest.$ac_ext <<_ACEOF
11099 /* confdefs.h. */
11100 _ACEOF
11101 cat confdefs.h >>conftest.$ac_ext
11102 cat >>conftest.$ac_ext <<_ACEOF
11103 /* end confdefs.h. */
11104 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11105 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11106 #define $ac_func innocuous_$ac_func
11108 /* System header to define __stub macros and hopefully few prototypes,
11109 which can conflict with char $ac_func (); below.
11110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11111 <limits.h> exists even on freestanding compilers. */
11113 #ifdef __STDC__
11114 # include <limits.h>
11115 #else
11116 # include <assert.h>
11117 #endif
11119 #undef $ac_func
11121 /* Override any GCC internal prototype to avoid an error.
11122 Use char because int might match the return type of a GCC
11123 builtin and then its argument prototype would still apply. */
11124 #ifdef __cplusplus
11125 extern "C"
11126 #endif
11127 char $ac_func ();
11128 /* The GNU C library defines this for functions which it implements
11129 to always fail with ENOSYS. Some functions are actually named
11130 something starting with __ and the normal name is an alias. */
11131 #if defined __stub_$ac_func || defined __stub___$ac_func
11132 choke me
11133 #endif
11136 main ()
11138 return $ac_func ();
11140 return 0;
11142 _ACEOF
11143 rm -f conftest.$ac_objext conftest$ac_exeext
11144 if { (ac_try="$ac_link"
11145 case "(($ac_try" in
11146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11147 *) ac_try_echo=$ac_try;;
11148 esac
11149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11150 (eval "$ac_link") 2>conftest.er1
11151 ac_status=$?
11152 grep -v '^ *+' conftest.er1 >conftest.err
11153 rm -f conftest.er1
11154 cat conftest.err >&5
11155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156 (exit $ac_status); } && {
11157 test -z "$ac_c_werror_flag" ||
11158 test ! -s conftest.err
11159 } && test -s conftest$ac_exeext &&
11160 $as_test_x conftest$ac_exeext; then
11161 eval "$as_ac_var=yes"
11162 else
11163 echo "$as_me: failed program was:" >&5
11164 sed 's/^/| /' conftest.$ac_ext >&5
11166 eval "$as_ac_var=no"
11169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11170 conftest$ac_exeext conftest.$ac_ext
11172 ac_res=`eval echo '${'$as_ac_var'}'`
11173 { echo "$as_me:$LINENO: result: $ac_res" >&5
11174 echo "${ECHO_T}$ac_res" >&6; }
11175 if test `eval echo '${'$as_ac_var'}'` = yes; then
11176 cat >>confdefs.h <<_ACEOF
11177 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11178 _ACEOF
11179 HAVE_GTK_FILE_SELECTION=yes
11181 done
11184 HAVE_GTK_FILE_CHOOSER=no
11186 for ac_func in gtk_file_chooser_dialog_new
11188 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11189 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11190 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11191 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11192 echo $ECHO_N "(cached) $ECHO_C" >&6
11193 else
11194 cat >conftest.$ac_ext <<_ACEOF
11195 /* confdefs.h. */
11196 _ACEOF
11197 cat confdefs.h >>conftest.$ac_ext
11198 cat >>conftest.$ac_ext <<_ACEOF
11199 /* end confdefs.h. */
11200 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11202 #define $ac_func innocuous_$ac_func
11204 /* System header to define __stub macros and hopefully few prototypes,
11205 which can conflict with char $ac_func (); below.
11206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11207 <limits.h> exists even on freestanding compilers. */
11209 #ifdef __STDC__
11210 # include <limits.h>
11211 #else
11212 # include <assert.h>
11213 #endif
11215 #undef $ac_func
11217 /* Override any GCC internal prototype to avoid an error.
11218 Use char because int might match the return type of a GCC
11219 builtin and then its argument prototype would still apply. */
11220 #ifdef __cplusplus
11221 extern "C"
11222 #endif
11223 char $ac_func ();
11224 /* The GNU C library defines this for functions which it implements
11225 to always fail with ENOSYS. Some functions are actually named
11226 something starting with __ and the normal name is an alias. */
11227 #if defined __stub_$ac_func || defined __stub___$ac_func
11228 choke me
11229 #endif
11232 main ()
11234 return $ac_func ();
11236 return 0;
11238 _ACEOF
11239 rm -f conftest.$ac_objext conftest$ac_exeext
11240 if { (ac_try="$ac_link"
11241 case "(($ac_try" in
11242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11243 *) ac_try_echo=$ac_try;;
11244 esac
11245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11246 (eval "$ac_link") 2>conftest.er1
11247 ac_status=$?
11248 grep -v '^ *+' conftest.er1 >conftest.err
11249 rm -f conftest.er1
11250 cat conftest.err >&5
11251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252 (exit $ac_status); } && {
11253 test -z "$ac_c_werror_flag" ||
11254 test ! -s conftest.err
11255 } && test -s conftest$ac_exeext &&
11256 $as_test_x conftest$ac_exeext; then
11257 eval "$as_ac_var=yes"
11258 else
11259 echo "$as_me: failed program was:" >&5
11260 sed 's/^/| /' conftest.$ac_ext >&5
11262 eval "$as_ac_var=no"
11265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11266 conftest$ac_exeext conftest.$ac_ext
11268 ac_res=`eval echo '${'$as_ac_var'}'`
11269 { echo "$as_me:$LINENO: result: $ac_res" >&5
11270 echo "${ECHO_T}$ac_res" >&6; }
11271 if test `eval echo '${'$as_ac_var'}'` = yes; then
11272 cat >>confdefs.h <<_ACEOF
11273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11274 _ACEOF
11275 HAVE_GTK_FILE_CHOOSER=yes
11277 done
11280 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11281 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11283 cat >>confdefs.h <<\_ACEOF
11284 #define HAVE_GTK_FILE_BOTH 1
11285 _ACEOF
11289 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11290 HAVE_GTK_AND_PTHREAD=no
11292 for ac_header in pthread.h
11294 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11296 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11299 echo $ECHO_N "(cached) $ECHO_C" >&6
11301 ac_res=`eval echo '${'$as_ac_Header'}'`
11302 { echo "$as_me:$LINENO: result: $ac_res" >&5
11303 echo "${ECHO_T}$ac_res" >&6; }
11304 else
11305 # Is the header compilable?
11306 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11307 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11308 cat >conftest.$ac_ext <<_ACEOF
11309 /* confdefs.h. */
11310 _ACEOF
11311 cat confdefs.h >>conftest.$ac_ext
11312 cat >>conftest.$ac_ext <<_ACEOF
11313 /* end confdefs.h. */
11314 $ac_includes_default
11315 #include <$ac_header>
11316 _ACEOF
11317 rm -f conftest.$ac_objext
11318 if { (ac_try="$ac_compile"
11319 case "(($ac_try" in
11320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11321 *) ac_try_echo=$ac_try;;
11322 esac
11323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11324 (eval "$ac_compile") 2>conftest.er1
11325 ac_status=$?
11326 grep -v '^ *+' conftest.er1 >conftest.err
11327 rm -f conftest.er1
11328 cat conftest.err >&5
11329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330 (exit $ac_status); } && {
11331 test -z "$ac_c_werror_flag" ||
11332 test ! -s conftest.err
11333 } && test -s conftest.$ac_objext; then
11334 ac_header_compiler=yes
11335 else
11336 echo "$as_me: failed program was:" >&5
11337 sed 's/^/| /' conftest.$ac_ext >&5
11339 ac_header_compiler=no
11342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11343 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11344 echo "${ECHO_T}$ac_header_compiler" >&6; }
11346 # Is the header present?
11347 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11348 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11349 cat >conftest.$ac_ext <<_ACEOF
11350 /* confdefs.h. */
11351 _ACEOF
11352 cat confdefs.h >>conftest.$ac_ext
11353 cat >>conftest.$ac_ext <<_ACEOF
11354 /* end confdefs.h. */
11355 #include <$ac_header>
11356 _ACEOF
11357 if { (ac_try="$ac_cpp conftest.$ac_ext"
11358 case "(($ac_try" in
11359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11360 *) ac_try_echo=$ac_try;;
11361 esac
11362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11363 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11364 ac_status=$?
11365 grep -v '^ *+' conftest.er1 >conftest.err
11366 rm -f conftest.er1
11367 cat conftest.err >&5
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); } >/dev/null && {
11370 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11371 test ! -s conftest.err
11372 }; then
11373 ac_header_preproc=yes
11374 else
11375 echo "$as_me: failed program was:" >&5
11376 sed 's/^/| /' conftest.$ac_ext >&5
11378 ac_header_preproc=no
11381 rm -f conftest.err conftest.$ac_ext
11382 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11383 echo "${ECHO_T}$ac_header_preproc" >&6; }
11385 # So? What about this header?
11386 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11387 yes:no: )
11388 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11389 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11390 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11391 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11392 ac_header_preproc=yes
11394 no:yes:* )
11395 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11396 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11397 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11398 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11399 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11400 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11401 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11402 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11404 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11405 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11406 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11409 esac
11410 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11412 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11413 echo $ECHO_N "(cached) $ECHO_C" >&6
11414 else
11415 eval "$as_ac_Header=\$ac_header_preproc"
11417 ac_res=`eval echo '${'$as_ac_Header'}'`
11418 { echo "$as_me:$LINENO: result: $ac_res" >&5
11419 echo "${ECHO_T}$ac_res" >&6; }
11422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11423 cat >>confdefs.h <<_ACEOF
11424 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11425 _ACEOF
11429 done
11431 if test "$ac_cv_header_pthread_h"; then
11432 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11433 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11434 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11435 echo $ECHO_N "(cached) $ECHO_C" >&6
11436 else
11437 ac_check_lib_save_LIBS=$LIBS
11438 LIBS="-lpthread $LIBS"
11439 cat >conftest.$ac_ext <<_ACEOF
11440 /* confdefs.h. */
11441 _ACEOF
11442 cat confdefs.h >>conftest.$ac_ext
11443 cat >>conftest.$ac_ext <<_ACEOF
11444 /* end confdefs.h. */
11446 /* Override any GCC internal prototype to avoid an error.
11447 Use char because int might match the return type of a GCC
11448 builtin and then its argument prototype would still apply. */
11449 #ifdef __cplusplus
11450 extern "C"
11451 #endif
11452 char pthread_self ();
11454 main ()
11456 return pthread_self ();
11458 return 0;
11460 _ACEOF
11461 rm -f conftest.$ac_objext conftest$ac_exeext
11462 if { (ac_try="$ac_link"
11463 case "(($ac_try" in
11464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11465 *) ac_try_echo=$ac_try;;
11466 esac
11467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11468 (eval "$ac_link") 2>conftest.er1
11469 ac_status=$?
11470 grep -v '^ *+' conftest.er1 >conftest.err
11471 rm -f conftest.er1
11472 cat conftest.err >&5
11473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474 (exit $ac_status); } && {
11475 test -z "$ac_c_werror_flag" ||
11476 test ! -s conftest.err
11477 } && test -s conftest$ac_exeext &&
11478 $as_test_x conftest$ac_exeext; then
11479 ac_cv_lib_pthread_pthread_self=yes
11480 else
11481 echo "$as_me: failed program was:" >&5
11482 sed 's/^/| /' conftest.$ac_ext >&5
11484 ac_cv_lib_pthread_pthread_self=no
11487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11488 conftest$ac_exeext conftest.$ac_ext
11489 LIBS=$ac_check_lib_save_LIBS
11491 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11492 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11493 if test $ac_cv_lib_pthread_pthread_self = yes; then
11494 HAVE_GTK_AND_PTHREAD=yes
11498 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11499 case "${canonical}" in
11500 *-hpux*) ;;
11501 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11502 esac
11504 cat >>confdefs.h <<\_ACEOF
11505 #define HAVE_GTK_AND_PTHREAD 1
11506 _ACEOF
11512 HAVE_DBUS=no
11513 if test "${with_dbus}" = "yes"; then
11515 succeeded=no
11517 # Extract the first word of "pkg-config", so it can be a program name with args.
11518 set dummy pkg-config; ac_word=$2
11519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11521 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11522 echo $ECHO_N "(cached) $ECHO_C" >&6
11523 else
11524 case $PKG_CONFIG in
11525 [\\/]* | ?:[\\/]*)
11526 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11530 for as_dir in $PATH
11532 IFS=$as_save_IFS
11533 test -z "$as_dir" && as_dir=.
11534 for ac_exec_ext in '' $ac_executable_extensions; do
11535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11536 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11538 break 2
11540 done
11541 done
11542 IFS=$as_save_IFS
11544 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11546 esac
11548 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11549 if test -n "$PKG_CONFIG"; then
11550 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11551 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11552 else
11553 { echo "$as_me:$LINENO: result: no" >&5
11554 echo "${ECHO_T}no" >&6; }
11559 if test "$PKG_CONFIG" = "no" ; then
11560 HAVE_DBUS=no
11561 else
11562 PKG_CONFIG_MIN_VERSION=0.9.0
11563 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11564 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11565 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11567 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11568 { echo "$as_me:$LINENO: result: yes" >&5
11569 echo "${ECHO_T}yes" >&6; }
11570 succeeded=yes
11572 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11573 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11574 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11575 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11576 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11578 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11579 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11580 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11581 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11582 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11583 else
11584 { echo "$as_me:$LINENO: result: no" >&5
11585 echo "${ECHO_T}no" >&6; }
11586 DBUS_CFLAGS=""
11587 DBUS_LIBS=""
11588 ## If we have a custom action on failure, don't print errors, but
11589 ## do set a variable so people can do so.
11590 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11596 else
11597 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11598 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11602 if test $succeeded = yes; then
11603 HAVE_DBUS=yes
11604 else
11605 HAVE_DBUS=no
11608 if test "$HAVE_DBUS" = yes; then
11610 cat >>confdefs.h <<\_ACEOF
11611 #define HAVE_DBUS 1
11612 _ACEOF
11617 HAVE_XAW3D=no
11618 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11619 if test "$with_xaw3d" != no; then
11620 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11621 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11622 if test "${emacs_cv_xaw3d+set}" = set; then
11623 echo $ECHO_N "(cached) $ECHO_C" >&6
11624 else
11625 cat >conftest.$ac_ext <<_ACEOF
11626 /* confdefs.h. */
11627 _ACEOF
11628 cat confdefs.h >>conftest.$ac_ext
11629 cat >>conftest.$ac_ext <<_ACEOF
11630 /* end confdefs.h. */
11632 #include <X11/Intrinsic.h>
11633 #include <X11/Xaw3d/Simple.h>
11635 main ()
11639 return 0;
11641 _ACEOF
11642 rm -f conftest.$ac_objext conftest$ac_exeext
11643 if { (ac_try="$ac_link"
11644 case "(($ac_try" in
11645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11646 *) ac_try_echo=$ac_try;;
11647 esac
11648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11649 (eval "$ac_link") 2>conftest.er1
11650 ac_status=$?
11651 grep -v '^ *+' conftest.er1 >conftest.err
11652 rm -f conftest.er1
11653 cat conftest.err >&5
11654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655 (exit $ac_status); } && {
11656 test -z "$ac_c_werror_flag" ||
11657 test ! -s conftest.err
11658 } && test -s conftest$ac_exeext &&
11659 $as_test_x conftest$ac_exeext; then
11660 emacs_cv_xaw3d=yes
11661 else
11662 echo "$as_me: failed program was:" >&5
11663 sed 's/^/| /' conftest.$ac_ext >&5
11665 emacs_cv_xaw3d=no
11668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11669 conftest$ac_exeext conftest.$ac_ext
11672 else
11673 emacs_cv_xaw3d=no
11675 if test $emacs_cv_xaw3d = yes; then
11676 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11677 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11678 USE_X_TOOLKIT=LUCID
11679 HAVE_XAW3D=yes
11681 cat >>confdefs.h <<\_ACEOF
11682 #define HAVE_XAW3D 1
11683 _ACEOF
11685 else
11686 { echo "$as_me:$LINENO: result: no" >&5
11687 echo "${ECHO_T}no" >&6; }
11688 { echo "$as_me:$LINENO: checking for libXaw" >&5
11689 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
11690 if test "${emacs_cv_xaw+set}" = set; then
11691 echo $ECHO_N "(cached) $ECHO_C" >&6
11692 else
11693 cat >conftest.$ac_ext <<_ACEOF
11694 /* confdefs.h. */
11695 _ACEOF
11696 cat confdefs.h >>conftest.$ac_ext
11697 cat >>conftest.$ac_ext <<_ACEOF
11698 /* end confdefs.h. */
11700 #include <X11/Intrinsic.h>
11701 #include <X11/Xaw/Simple.h>
11703 main ()
11707 return 0;
11709 _ACEOF
11710 rm -f conftest.$ac_objext conftest$ac_exeext
11711 if { (ac_try="$ac_link"
11712 case "(($ac_try" in
11713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11714 *) ac_try_echo=$ac_try;;
11715 esac
11716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11717 (eval "$ac_link") 2>conftest.er1
11718 ac_status=$?
11719 grep -v '^ *+' conftest.er1 >conftest.err
11720 rm -f conftest.er1
11721 cat conftest.err >&5
11722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); } && {
11724 test -z "$ac_c_werror_flag" ||
11725 test ! -s conftest.err
11726 } && test -s conftest$ac_exeext &&
11727 $as_test_x conftest$ac_exeext; then
11728 emacs_cv_xaw=yes
11729 else
11730 echo "$as_me: failed program was:" >&5
11731 sed 's/^/| /' conftest.$ac_ext >&5
11733 emacs_cv_xaw=no
11736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11737 conftest$ac_exeext conftest.$ac_ext
11740 if test $emacs_cv_xaw = yes; then
11741 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11742 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11743 USE_X_TOOLKIT=LUCID
11744 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11745 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
11746 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
11747 { (exit 1); exit 1; }; }
11748 else
11749 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
11750 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
11751 USE_X_TOOLKIT=none
11756 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11758 if test "${USE_X_TOOLKIT}" != "none"; then
11759 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11760 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11761 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11762 echo $ECHO_N "(cached) $ECHO_C" >&6
11763 else
11764 cat >conftest.$ac_ext <<_ACEOF
11765 /* confdefs.h. */
11766 _ACEOF
11767 cat confdefs.h >>conftest.$ac_ext
11768 cat >>conftest.$ac_ext <<_ACEOF
11769 /* end confdefs.h. */
11770 #include <X11/Intrinsic.h>
11772 main ()
11774 #if XtSpecificationRelease < 6
11775 fail;
11776 #endif
11779 return 0;
11781 _ACEOF
11782 rm -f conftest.$ac_objext conftest$ac_exeext
11783 if { (ac_try="$ac_link"
11784 case "(($ac_try" in
11785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11786 *) ac_try_echo=$ac_try;;
11787 esac
11788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11789 (eval "$ac_link") 2>conftest.er1
11790 ac_status=$?
11791 grep -v '^ *+' conftest.er1 >conftest.err
11792 rm -f conftest.er1
11793 cat conftest.err >&5
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); } && {
11796 test -z "$ac_c_werror_flag" ||
11797 test ! -s conftest.err
11798 } && test -s conftest$ac_exeext &&
11799 $as_test_x conftest$ac_exeext; then
11800 emacs_cv_x11_toolkit_version_6=yes
11801 else
11802 echo "$as_me: failed program was:" >&5
11803 sed 's/^/| /' conftest.$ac_ext >&5
11805 emacs_cv_x11_toolkit_version_6=no
11808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11809 conftest$ac_exeext conftest.$ac_ext
11812 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11813 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11814 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11815 echo "${ECHO_T}6 or newer" >&6; }
11817 cat >>confdefs.h <<\_ACEOF
11818 #define HAVE_X11XTR6 1
11819 _ACEOF
11821 else
11822 { echo "$as_me:$LINENO: result: before 6" >&5
11823 echo "${ECHO_T}before 6" >&6; }
11826 OLDLIBS="$LIBS"
11827 if test x$HAVE_X11XTR6 = xyes; then
11828 LIBS="-lXt -lSM -lICE $LIBS"
11829 else
11830 LIBS="-lXt $LIBS"
11833 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11834 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
11835 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11836 echo $ECHO_N "(cached) $ECHO_C" >&6
11837 else
11838 ac_check_lib_save_LIBS=$LIBS
11839 LIBS="-lXmu $LIBS"
11840 cat >conftest.$ac_ext <<_ACEOF
11841 /* confdefs.h. */
11842 _ACEOF
11843 cat confdefs.h >>conftest.$ac_ext
11844 cat >>conftest.$ac_ext <<_ACEOF
11845 /* end confdefs.h. */
11847 /* Override any GCC internal prototype to avoid an error.
11848 Use char because int might match the return type of a GCC
11849 builtin and then its argument prototype would still apply. */
11850 #ifdef __cplusplus
11851 extern "C"
11852 #endif
11853 char XmuConvertStandardSelection ();
11855 main ()
11857 return XmuConvertStandardSelection ();
11859 return 0;
11861 _ACEOF
11862 rm -f conftest.$ac_objext conftest$ac_exeext
11863 if { (ac_try="$ac_link"
11864 case "(($ac_try" in
11865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11866 *) ac_try_echo=$ac_try;;
11867 esac
11868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11869 (eval "$ac_link") 2>conftest.er1
11870 ac_status=$?
11871 grep -v '^ *+' conftest.er1 >conftest.err
11872 rm -f conftest.er1
11873 cat conftest.err >&5
11874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875 (exit $ac_status); } && {
11876 test -z "$ac_c_werror_flag" ||
11877 test ! -s conftest.err
11878 } && test -s conftest$ac_exeext &&
11879 $as_test_x conftest$ac_exeext; then
11880 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11881 else
11882 echo "$as_me: failed program was:" >&5
11883 sed 's/^/| /' conftest.$ac_ext >&5
11885 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11889 conftest$ac_exeext conftest.$ac_ext
11890 LIBS=$ac_check_lib_save_LIBS
11892 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11893 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11894 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11895 cat >>confdefs.h <<_ACEOF
11896 #define HAVE_LIBXMU 1
11897 _ACEOF
11899 LIBS="-lXmu $LIBS"
11903 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11906 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11907 if test "${HAVE_X11}" = "yes"; then
11908 if test "${USE_X_TOOLKIT}" != "none"; then
11910 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11911 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
11912 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11913 echo $ECHO_N "(cached) $ECHO_C" >&6
11914 else
11915 ac_check_lib_save_LIBS=$LIBS
11916 LIBS="-lXext $LIBS"
11917 cat >conftest.$ac_ext <<_ACEOF
11918 /* confdefs.h. */
11919 _ACEOF
11920 cat confdefs.h >>conftest.$ac_ext
11921 cat >>conftest.$ac_ext <<_ACEOF
11922 /* end confdefs.h. */
11924 /* Override any GCC internal prototype to avoid an error.
11925 Use char because int might match the return type of a GCC
11926 builtin and then its argument prototype would still apply. */
11927 #ifdef __cplusplus
11928 extern "C"
11929 #endif
11930 char XShapeQueryExtension ();
11932 main ()
11934 return XShapeQueryExtension ();
11936 return 0;
11938 _ACEOF
11939 rm -f conftest.$ac_objext conftest$ac_exeext
11940 if { (ac_try="$ac_link"
11941 case "(($ac_try" in
11942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11943 *) ac_try_echo=$ac_try;;
11944 esac
11945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11946 (eval "$ac_link") 2>conftest.er1
11947 ac_status=$?
11948 grep -v '^ *+' conftest.er1 >conftest.err
11949 rm -f conftest.er1
11950 cat conftest.err >&5
11951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952 (exit $ac_status); } && {
11953 test -z "$ac_c_werror_flag" ||
11954 test ! -s conftest.err
11955 } && test -s conftest$ac_exeext &&
11956 $as_test_x conftest$ac_exeext; then
11957 ac_cv_lib_Xext_XShapeQueryExtension=yes
11958 else
11959 echo "$as_me: failed program was:" >&5
11960 sed 's/^/| /' conftest.$ac_ext >&5
11962 ac_cv_lib_Xext_XShapeQueryExtension=no
11965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11966 conftest$ac_exeext conftest.$ac_ext
11967 LIBS=$ac_check_lib_save_LIBS
11969 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11970 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11971 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
11972 cat >>confdefs.h <<_ACEOF
11973 #define HAVE_LIBXEXT 1
11974 _ACEOF
11976 LIBS="-lXext $LIBS"
11983 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11984 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
11985 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
11986 if test "${emacs_cv_motif_version_2_1+set}" = set; then
11987 echo $ECHO_N "(cached) $ECHO_C" >&6
11988 else
11989 cat >conftest.$ac_ext <<_ACEOF
11990 /* confdefs.h. */
11991 _ACEOF
11992 cat confdefs.h >>conftest.$ac_ext
11993 cat >>conftest.$ac_ext <<_ACEOF
11994 /* end confdefs.h. */
11995 #include <Xm/Xm.h>
11997 main ()
11999 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12000 int x = 5;
12001 #else
12002 Motif version prior to 2.1.
12003 #endif
12005 return 0;
12007 _ACEOF
12008 rm -f conftest.$ac_objext
12009 if { (ac_try="$ac_compile"
12010 case "(($ac_try" in
12011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12012 *) ac_try_echo=$ac_try;;
12013 esac
12014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12015 (eval "$ac_compile") 2>conftest.er1
12016 ac_status=$?
12017 grep -v '^ *+' conftest.er1 >conftest.err
12018 rm -f conftest.er1
12019 cat conftest.err >&5
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); } && {
12022 test -z "$ac_c_werror_flag" ||
12023 test ! -s conftest.err
12024 } && test -s conftest.$ac_objext; then
12025 emacs_cv_motif_version_2_1=yes
12026 else
12027 echo "$as_me: failed program was:" >&5
12028 sed 's/^/| /' conftest.$ac_ext >&5
12030 emacs_cv_motif_version_2_1=no
12033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12035 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12036 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12037 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12038 if test $emacs_cv_motif_version_2_1 = yes; then
12039 HAVE_LIBXP=no
12041 cat >>confdefs.h <<\_ACEOF
12042 #define HAVE_MOTIF_2_1 1
12043 _ACEOF
12045 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12046 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12047 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12048 echo $ECHO_N "(cached) $ECHO_C" >&6
12049 else
12050 ac_check_lib_save_LIBS=$LIBS
12051 LIBS="-lXp $LIBS"
12052 cat >conftest.$ac_ext <<_ACEOF
12053 /* confdefs.h. */
12054 _ACEOF
12055 cat confdefs.h >>conftest.$ac_ext
12056 cat >>conftest.$ac_ext <<_ACEOF
12057 /* end confdefs.h. */
12059 /* Override any GCC internal prototype to avoid an error.
12060 Use char because int might match the return type of a GCC
12061 builtin and then its argument prototype would still apply. */
12062 #ifdef __cplusplus
12063 extern "C"
12064 #endif
12065 char XpCreateContext ();
12067 main ()
12069 return XpCreateContext ();
12071 return 0;
12073 _ACEOF
12074 rm -f conftest.$ac_objext conftest$ac_exeext
12075 if { (ac_try="$ac_link"
12076 case "(($ac_try" in
12077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12078 *) ac_try_echo=$ac_try;;
12079 esac
12080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12081 (eval "$ac_link") 2>conftest.er1
12082 ac_status=$?
12083 grep -v '^ *+' conftest.er1 >conftest.err
12084 rm -f conftest.er1
12085 cat conftest.err >&5
12086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087 (exit $ac_status); } && {
12088 test -z "$ac_c_werror_flag" ||
12089 test ! -s conftest.err
12090 } && test -s conftest$ac_exeext &&
12091 $as_test_x conftest$ac_exeext; then
12092 ac_cv_lib_Xp_XpCreateContext=yes
12093 else
12094 echo "$as_me: failed program was:" >&5
12095 sed 's/^/| /' conftest.$ac_ext >&5
12097 ac_cv_lib_Xp_XpCreateContext=no
12100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12101 conftest$ac_exeext conftest.$ac_ext
12102 LIBS=$ac_check_lib_save_LIBS
12104 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12105 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12106 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12107 HAVE_LIBXP=yes
12110 if test ${HAVE_LIBXP} = yes; then
12112 cat >>confdefs.h <<\_ACEOF
12113 #define HAVE_LIBXP 1
12114 _ACEOF
12117 else
12118 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12119 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12120 if test "${emacs_cv_lesstif+set}" = set; then
12121 echo $ECHO_N "(cached) $ECHO_C" >&6
12122 else
12123 # We put this in CFLAGS temporarily to precede other -I options
12124 # that might be in CFLAGS temporarily.
12125 # We put this in CPPFLAGS where it precedes the other -I options.
12126 OLD_CPPFLAGS=$CPPFLAGS
12127 OLD_CFLAGS=$CFLAGS
12128 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12129 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12130 cat >conftest.$ac_ext <<_ACEOF
12131 /* confdefs.h. */
12132 _ACEOF
12133 cat confdefs.h >>conftest.$ac_ext
12134 cat >>conftest.$ac_ext <<_ACEOF
12135 /* end confdefs.h. */
12136 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12138 main ()
12140 int x = 5;
12142 return 0;
12144 _ACEOF
12145 rm -f conftest.$ac_objext
12146 if { (ac_try="$ac_compile"
12147 case "(($ac_try" in
12148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12149 *) ac_try_echo=$ac_try;;
12150 esac
12151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12152 (eval "$ac_compile") 2>conftest.er1
12153 ac_status=$?
12154 grep -v '^ *+' conftest.er1 >conftest.err
12155 rm -f conftest.er1
12156 cat conftest.err >&5
12157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158 (exit $ac_status); } && {
12159 test -z "$ac_c_werror_flag" ||
12160 test ! -s conftest.err
12161 } && test -s conftest.$ac_objext; then
12162 emacs_cv_lesstif=yes
12163 else
12164 echo "$as_me: failed program was:" >&5
12165 sed 's/^/| /' conftest.$ac_ext >&5
12167 emacs_cv_lesstif=no
12170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12172 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12173 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12174 if test $emacs_cv_lesstif = yes; then
12175 # Make sure this -I option remains in CPPFLAGS after it is set
12176 # back to REAL_CPPFLAGS.
12177 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12178 # have those other -I options anyway. Ultimately, having this
12179 # directory ultimately in CPPFLAGS will be enough.
12180 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12181 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12182 else
12183 CFLAGS=$OLD_CFLAGS
12184 CPPFLAGS=$OLD_CPPFLAGS
12191 USE_TOOLKIT_SCROLL_BARS=no
12192 if test "${with_toolkit_scroll_bars}" != "no"; then
12193 if test "${USE_X_TOOLKIT}" != "none"; then
12194 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12195 cat >>confdefs.h <<\_ACEOF
12196 #define USE_TOOLKIT_SCROLL_BARS 1
12197 _ACEOF
12199 HAVE_XAW3D=no
12200 USE_TOOLKIT_SCROLL_BARS=yes
12201 elif test "${HAVE_XAW3D}" = "yes"; then
12202 cat >>confdefs.h <<\_ACEOF
12203 #define USE_TOOLKIT_SCROLL_BARS 1
12204 _ACEOF
12206 USE_TOOLKIT_SCROLL_BARS=yes
12208 elif test "${HAVE_GTK}" = "yes"; then
12209 cat >>confdefs.h <<\_ACEOF
12210 #define USE_TOOLKIT_SCROLL_BARS 1
12211 _ACEOF
12213 USE_TOOLKIT_SCROLL_BARS=yes
12214 elif test "${HAVE_CARBON}" = "yes"; then
12215 cat >>confdefs.h <<\_ACEOF
12216 #define USE_TOOLKIT_SCROLL_BARS 1
12217 _ACEOF
12219 USE_TOOLKIT_SCROLL_BARS=yes
12223 cat >conftest.$ac_ext <<_ACEOF
12224 /* confdefs.h. */
12225 _ACEOF
12226 cat confdefs.h >>conftest.$ac_ext
12227 cat >>conftest.$ac_ext <<_ACEOF
12228 /* end confdefs.h. */
12230 #include <X11/Xlib.h>
12231 #include <X11/Xresource.h>
12233 main ()
12235 XIMProc callback;
12237 return 0;
12239 _ACEOF
12240 rm -f conftest.$ac_objext
12241 if { (ac_try="$ac_compile"
12242 case "(($ac_try" in
12243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12244 *) ac_try_echo=$ac_try;;
12245 esac
12246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12247 (eval "$ac_compile") 2>conftest.er1
12248 ac_status=$?
12249 grep -v '^ *+' conftest.er1 >conftest.err
12250 rm -f conftest.er1
12251 cat conftest.err >&5
12252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253 (exit $ac_status); } && {
12254 test -z "$ac_c_werror_flag" ||
12255 test ! -s conftest.err
12256 } && test -s conftest.$ac_objext; then
12257 HAVE_XIM=yes
12259 cat >>confdefs.h <<\_ACEOF
12260 #define HAVE_XIM 1
12261 _ACEOF
12263 else
12264 echo "$as_me: failed program was:" >&5
12265 sed 's/^/| /' conftest.$ac_ext >&5
12267 HAVE_XIM=no
12270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12273 if test "${with_xim}" != "no"; then
12275 cat >>confdefs.h <<\_ACEOF
12276 #define USE_XIM 1
12277 _ACEOF
12282 if test "${HAVE_XIM}" != "no"; then
12283 late_CFLAGS=$CFLAGS
12284 if test "$GCC" = yes; then
12285 CFLAGS="$CFLAGS --pedantic-errors"
12287 cat >conftest.$ac_ext <<_ACEOF
12288 /* confdefs.h. */
12289 _ACEOF
12290 cat confdefs.h >>conftest.$ac_ext
12291 cat >>conftest.$ac_ext <<_ACEOF
12292 /* end confdefs.h. */
12294 #include <X11/Xlib.h>
12295 #include <X11/Xresource.h>
12297 main ()
12299 Display *display;
12300 XrmDatabase db;
12301 char *res_name;
12302 char *res_class;
12303 XIMProc callback;
12304 XPointer *client_data;
12305 #ifndef __GNUC__
12306 /* If we're not using GCC, it's probably not XFree86, and this is
12307 probably right, but we can't use something like --pedantic-errors. */
12308 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12309 char*, XIMProc, XPointer*);
12310 #endif
12311 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12312 client_data);
12314 return 0;
12316 _ACEOF
12317 rm -f conftest.$ac_objext
12318 if { (ac_try="$ac_compile"
12319 case "(($ac_try" in
12320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12321 *) ac_try_echo=$ac_try;;
12322 esac
12323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12324 (eval "$ac_compile") 2>conftest.er1
12325 ac_status=$?
12326 grep -v '^ *+' conftest.er1 >conftest.err
12327 rm -f conftest.er1
12328 cat conftest.err >&5
12329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330 (exit $ac_status); } && {
12331 test -z "$ac_c_werror_flag" ||
12332 test ! -s conftest.err
12333 } && test -s conftest.$ac_objext; then
12334 emacs_cv_arg6_star=yes
12335 else
12336 echo "$as_me: failed program was:" >&5
12337 sed 's/^/| /' conftest.$ac_ext >&5
12342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12344 if test "$emacs_cv_arg6_star" = yes; then
12345 cat >>confdefs.h <<\_ACEOF
12346 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12347 _ACEOF
12349 else
12350 cat >>confdefs.h <<\_ACEOF
12351 #define XRegisterIMInstantiateCallback_arg6 XPointer
12352 _ACEOF
12355 CFLAGS=$late_CFLAGS
12358 #### For font-backend
12359 if test "${USE_FONT_BACKEND}" = "yes"; then
12362 cat >>confdefs.h <<\_ACEOF
12363 #define USE_FONT_BACKEND 1
12364 _ACEOF
12367 ### Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
12368 HAVE_XFT=maybe
12369 if test "${HAVE_X11}" = "yes"; then
12370 if test "x${with_freetype}" = "xno"; then
12371 with_xft="no";
12373 if test "x${with_xft}" != "xno"; then
12375 if test "X${with_pkg_config_prog}" != X; then
12376 PKG_CONFIG="${with_pkg_config_prog}"
12380 succeeded=no
12382 # Extract the first word of "pkg-config", so it can be a program name with args.
12383 set dummy pkg-config; ac_word=$2
12384 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12386 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12387 echo $ECHO_N "(cached) $ECHO_C" >&6
12388 else
12389 case $PKG_CONFIG in
12390 [\\/]* | ?:[\\/]*)
12391 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12395 for as_dir in $PATH
12397 IFS=$as_save_IFS
12398 test -z "$as_dir" && as_dir=.
12399 for ac_exec_ext in '' $ac_executable_extensions; do
12400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12401 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12403 break 2
12405 done
12406 done
12407 IFS=$as_save_IFS
12409 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12411 esac
12413 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12414 if test -n "$PKG_CONFIG"; then
12415 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12416 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12417 else
12418 { echo "$as_me:$LINENO: result: no" >&5
12419 echo "${ECHO_T}no" >&6; }
12424 if test "$PKG_CONFIG" = "no" ; then
12425 HAVE_XFT=no
12426 else
12427 PKG_CONFIG_MIN_VERSION=0.9.0
12428 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12429 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12430 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12432 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12433 { echo "$as_me:$LINENO: result: yes" >&5
12434 echo "${ECHO_T}yes" >&6; }
12435 succeeded=yes
12437 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12438 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12439 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12440 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12441 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12443 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12444 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12445 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12446 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12447 echo "${ECHO_T}$XFT_LIBS" >&6; }
12448 else
12449 { echo "$as_me:$LINENO: result: no" >&5
12450 echo "${ECHO_T}no" >&6; }
12451 XFT_CFLAGS=""
12452 XFT_LIBS=""
12453 ## If we have a custom action on failure, don't print errors, but
12454 ## do set a variable so people can do so.
12455 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12461 else
12462 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12463 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12467 if test $succeeded = yes; then
12469 else
12470 HAVE_XFT=no
12473 if test "$HAVE_XFT" != no; then
12474 OLD_CPPFLAGS="$CPPFLAGS"
12475 OLD_CFLAGS="$CFLAGS"
12476 OLD_LIBS="$LIBS"
12477 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12478 CFLAGS="$CFLAGS $XFT_CFLAGS"
12479 LIBS="$XFT_LIBS $LIBS"
12480 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12481 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12482 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12483 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12484 echo $ECHO_N "(cached) $ECHO_C" >&6
12486 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12487 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12488 else
12489 # Is the header compilable?
12490 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12491 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12492 cat >conftest.$ac_ext <<_ACEOF
12493 /* confdefs.h. */
12494 _ACEOF
12495 cat confdefs.h >>conftest.$ac_ext
12496 cat >>conftest.$ac_ext <<_ACEOF
12497 /* end confdefs.h. */
12498 $ac_includes_default
12499 #include <X11/Xft/Xft.h>
12500 _ACEOF
12501 rm -f conftest.$ac_objext
12502 if { (ac_try="$ac_compile"
12503 case "(($ac_try" in
12504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12505 *) ac_try_echo=$ac_try;;
12506 esac
12507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12508 (eval "$ac_compile") 2>conftest.er1
12509 ac_status=$?
12510 grep -v '^ *+' conftest.er1 >conftest.err
12511 rm -f conftest.er1
12512 cat conftest.err >&5
12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); } && {
12515 test -z "$ac_c_werror_flag" ||
12516 test ! -s conftest.err
12517 } && test -s conftest.$ac_objext; then
12518 ac_header_compiler=yes
12519 else
12520 echo "$as_me: failed program was:" >&5
12521 sed 's/^/| /' conftest.$ac_ext >&5
12523 ac_header_compiler=no
12526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12527 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12528 echo "${ECHO_T}$ac_header_compiler" >&6; }
12530 # Is the header present?
12531 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12532 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12533 cat >conftest.$ac_ext <<_ACEOF
12534 /* confdefs.h. */
12535 _ACEOF
12536 cat confdefs.h >>conftest.$ac_ext
12537 cat >>conftest.$ac_ext <<_ACEOF
12538 /* end confdefs.h. */
12539 #include <X11/Xft/Xft.h>
12540 _ACEOF
12541 if { (ac_try="$ac_cpp conftest.$ac_ext"
12542 case "(($ac_try" in
12543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12544 *) ac_try_echo=$ac_try;;
12545 esac
12546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12547 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12548 ac_status=$?
12549 grep -v '^ *+' conftest.er1 >conftest.err
12550 rm -f conftest.er1
12551 cat conftest.err >&5
12552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553 (exit $ac_status); } >/dev/null && {
12554 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12555 test ! -s conftest.err
12556 }; then
12557 ac_header_preproc=yes
12558 else
12559 echo "$as_me: failed program was:" >&5
12560 sed 's/^/| /' conftest.$ac_ext >&5
12562 ac_header_preproc=no
12565 rm -f conftest.err conftest.$ac_ext
12566 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12567 echo "${ECHO_T}$ac_header_preproc" >&6; }
12569 # So? What about this header?
12570 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12571 yes:no: )
12572 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12573 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12574 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12575 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12576 ac_header_preproc=yes
12578 no:yes:* )
12579 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12580 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12581 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12582 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12583 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12584 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12585 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12586 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12587 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12588 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12589 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12590 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12593 esac
12594 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12595 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12596 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12597 echo $ECHO_N "(cached) $ECHO_C" >&6
12598 else
12599 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12601 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12602 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12605 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12606 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12607 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12608 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12609 echo $ECHO_N "(cached) $ECHO_C" >&6
12610 else
12611 ac_check_lib_save_LIBS=$LIBS
12612 LIBS="-lXft $XFT_LIBS $LIBS"
12613 cat >conftest.$ac_ext <<_ACEOF
12614 /* confdefs.h. */
12615 _ACEOF
12616 cat confdefs.h >>conftest.$ac_ext
12617 cat >>conftest.$ac_ext <<_ACEOF
12618 /* end confdefs.h. */
12620 /* Override any GCC internal prototype to avoid an error.
12621 Use char because int might match the return type of a GCC
12622 builtin and then its argument prototype would still apply. */
12623 #ifdef __cplusplus
12624 extern "C"
12625 #endif
12626 char XftFontOpen ();
12628 main ()
12630 return XftFontOpen ();
12632 return 0;
12634 _ACEOF
12635 rm -f conftest.$ac_objext conftest$ac_exeext
12636 if { (ac_try="$ac_link"
12637 case "(($ac_try" in
12638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12639 *) ac_try_echo=$ac_try;;
12640 esac
12641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12642 (eval "$ac_link") 2>conftest.er1
12643 ac_status=$?
12644 grep -v '^ *+' conftest.er1 >conftest.err
12645 rm -f conftest.er1
12646 cat conftest.err >&5
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); } && {
12649 test -z "$ac_c_werror_flag" ||
12650 test ! -s conftest.err
12651 } && test -s conftest$ac_exeext &&
12652 $as_test_x conftest$ac_exeext; then
12653 ac_cv_lib_Xft_XftFontOpen=yes
12654 else
12655 echo "$as_me: failed program was:" >&5
12656 sed 's/^/| /' conftest.$ac_ext >&5
12658 ac_cv_lib_Xft_XftFontOpen=no
12661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12662 conftest$ac_exeext conftest.$ac_ext
12663 LIBS=$ac_check_lib_save_LIBS
12665 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12666 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12667 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12668 HAVE_XFT=yes
12675 if test "${HAVE_XFT}" = "yes"; then
12677 cat >>confdefs.h <<\_ACEOF
12678 #define HAVE_XFT 1
12679 _ACEOF
12682 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12683 else
12684 CPPFLAGS="$OLD_CPPFLAGS"
12685 CFLAGS="$OLD_CFLAGS"
12686 LIBS="$OLD_LIBS"
12691 if test "$HAVE_XFT" != "yes"; then
12692 HAVE_XFT=no
12696 HAVE_FREETYPE=no
12697 ### Use -lfreetype if available, unless `--with-freetype=no'.
12698 if test "${HAVE_XFT}" = "yes"; then
12699 HAVE_FREETYPE=yes
12700 elif test "x${with_freetype}" != "xno"; then
12701 if test "X${with_pkg_config_prog}" != X; then
12702 PKG_CONFIG="${with_pkg_config_prog}"
12706 succeeded=no
12708 # Extract the first word of "pkg-config", so it can be a program name with args.
12709 set dummy pkg-config; ac_word=$2
12710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12712 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12713 echo $ECHO_N "(cached) $ECHO_C" >&6
12714 else
12715 case $PKG_CONFIG in
12716 [\\/]* | ?:[\\/]*)
12717 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12721 for as_dir in $PATH
12723 IFS=$as_save_IFS
12724 test -z "$as_dir" && as_dir=.
12725 for ac_exec_ext in '' $ac_executable_extensions; do
12726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12727 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12729 break 2
12731 done
12732 done
12733 IFS=$as_save_IFS
12735 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12737 esac
12739 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12740 if test -n "$PKG_CONFIG"; then
12741 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12742 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12743 else
12744 { echo "$as_me:$LINENO: result: no" >&5
12745 echo "${ECHO_T}no" >&6; }
12750 if test "$PKG_CONFIG" = "no" ; then
12751 HAVE_FREETYPE=no
12752 else
12753 PKG_CONFIG_MIN_VERSION=0.9.0
12754 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12755 { echo "$as_me:$LINENO: checking for freetype2" >&5
12756 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
12758 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12759 { echo "$as_me:$LINENO: result: yes" >&5
12760 echo "${ECHO_T}yes" >&6; }
12761 succeeded=yes
12763 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12764 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
12765 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
12766 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12767 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
12769 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12770 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
12771 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
12772 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12773 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
12774 else
12775 { echo "$as_me:$LINENO: result: no" >&5
12776 echo "${ECHO_T}no" >&6; }
12777 FREETYPE_CFLAGS=""
12778 FREETYPE_LIBS=""
12779 ## If we have a custom action on failure, don't print errors, but
12780 ## do set a variable so people can do so.
12781 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12787 else
12788 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12789 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12793 if test $succeeded = yes; then
12794 HAVE_FREETYPE=yes
12795 else
12796 HAVE_FREETYPE=no
12799 if test "${HAVE_FREETYPE}" = "yes"; then
12801 succeeded=no
12803 # Extract the first word of "pkg-config", so it can be a program name with args.
12804 set dummy pkg-config; ac_word=$2
12805 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12807 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12808 echo $ECHO_N "(cached) $ECHO_C" >&6
12809 else
12810 case $PKG_CONFIG in
12811 [\\/]* | ?:[\\/]*)
12812 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12816 for as_dir in $PATH
12818 IFS=$as_save_IFS
12819 test -z "$as_dir" && as_dir=.
12820 for ac_exec_ext in '' $ac_executable_extensions; do
12821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12822 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12824 break 2
12826 done
12827 done
12828 IFS=$as_save_IFS
12830 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12832 esac
12834 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12835 if test -n "$PKG_CONFIG"; then
12836 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12837 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12838 else
12839 { echo "$as_me:$LINENO: result: no" >&5
12840 echo "${ECHO_T}no" >&6; }
12845 if test "$PKG_CONFIG" = "no" ; then
12846 HAVE_FC=no
12847 else
12848 PKG_CONFIG_MIN_VERSION=0.9.0
12849 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12850 { echo "$as_me:$LINENO: checking for fontconfig" >&5
12851 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
12853 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
12854 { echo "$as_me:$LINENO: result: yes" >&5
12855 echo "${ECHO_T}yes" >&6; }
12856 succeeded=yes
12858 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
12859 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
12860 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
12861 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
12862 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
12864 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
12865 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
12866 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
12867 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
12868 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
12869 else
12870 { echo "$as_me:$LINENO: result: no" >&5
12871 echo "${ECHO_T}no" >&6; }
12872 FONTCONFIG_CFLAGS=""
12873 FONTCONFIG_LIBS=""
12874 ## If we have a custom action on failure, don't print errors, but
12875 ## do set a variable so people can do so.
12876 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
12882 else
12883 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12884 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12888 if test $succeeded = yes; then
12889 HAVE_FC=yes
12890 else
12891 HAVE_FC=no
12894 if test "${HAVE_FC}" = "no"; then
12895 HAVE_FREETYPE=no
12900 HAVE_LIBOTF=no
12901 if test "${HAVE_FREETYPE}" = "yes"; then
12903 cat >>confdefs.h <<\_ACEOF
12904 #define HAVE_FREETYPE 1
12905 _ACEOF
12907 if test "${with_libotf}" != "no"; then
12908 if test "X${with_pkg_config_prog}" != X; then
12909 PKG_CONFIG="${with_pkg_config_prog}"
12912 succeeded=no
12914 # Extract the first word of "pkg-config", so it can be a program name with args.
12915 set dummy pkg-config; ac_word=$2
12916 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12918 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12919 echo $ECHO_N "(cached) $ECHO_C" >&6
12920 else
12921 case $PKG_CONFIG in
12922 [\\/]* | ?:[\\/]*)
12923 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12927 for as_dir in $PATH
12929 IFS=$as_save_IFS
12930 test -z "$as_dir" && as_dir=.
12931 for ac_exec_ext in '' $ac_executable_extensions; do
12932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12933 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12935 break 2
12937 done
12938 done
12939 IFS=$as_save_IFS
12941 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12943 esac
12945 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12946 if test -n "$PKG_CONFIG"; then
12947 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12948 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12949 else
12950 { echo "$as_me:$LINENO: result: no" >&5
12951 echo "${ECHO_T}no" >&6; }
12956 if test "$PKG_CONFIG" = "no" ; then
12957 HAVE_LIBOTF=no
12958 else
12959 PKG_CONFIG_MIN_VERSION=0.9.0
12960 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12961 { echo "$as_me:$LINENO: checking for libotf" >&5
12962 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
12964 if $PKG_CONFIG --exists "libotf" 2>&5; then
12965 { echo "$as_me:$LINENO: result: yes" >&5
12966 echo "${ECHO_T}yes" >&6; }
12967 succeeded=yes
12969 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
12970 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
12971 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
12972 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
12973 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
12975 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
12976 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
12977 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
12978 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
12979 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
12980 else
12981 { echo "$as_me:$LINENO: result: no" >&5
12982 echo "${ECHO_T}no" >&6; }
12983 LIBOTF_CFLAGS=""
12984 LIBOTF_LIBS=""
12985 ## If we have a custom action on failure, don't print errors, but
12986 ## do set a variable so people can do so.
12987 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
12993 else
12994 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12995 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12999 if test $succeeded = yes; then
13000 HAVE_LIBOTF=yes
13001 else
13002 HAVE_LIBOTF=no
13005 if test "$HAVE_LIBOTF" = "yes"; then
13007 cat >>confdefs.h <<\_ACEOF
13008 #define HAVE_LIBOTF 1
13009 _ACEOF
13015 HAVE_M17N_FLT=no
13016 if test "${with_m17n_flt}" != "no"; then
13017 if test "X${with_pkg_config_prog}" != X; then
13018 PKG_CONFIG="${with_pkg_config_prog}"
13021 succeeded=no
13023 # Extract the first word of "pkg-config", so it can be a program name with args.
13024 set dummy pkg-config; ac_word=$2
13025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13027 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13028 echo $ECHO_N "(cached) $ECHO_C" >&6
13029 else
13030 case $PKG_CONFIG in
13031 [\\/]* | ?:[\\/]*)
13032 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13036 for as_dir in $PATH
13038 IFS=$as_save_IFS
13039 test -z "$as_dir" && as_dir=.
13040 for ac_exec_ext in '' $ac_executable_extensions; do
13041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13042 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13044 break 2
13046 done
13047 done
13048 IFS=$as_save_IFS
13050 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13052 esac
13054 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13055 if test -n "$PKG_CONFIG"; then
13056 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13057 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13058 else
13059 { echo "$as_me:$LINENO: result: no" >&5
13060 echo "${ECHO_T}no" >&6; }
13065 if test "$PKG_CONFIG" = "no" ; then
13066 HAVE_M17N_FLT=no
13067 else
13068 PKG_CONFIG_MIN_VERSION=0.9.0
13069 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13070 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13071 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13073 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13074 { echo "$as_me:$LINENO: result: yes" >&5
13075 echo "${ECHO_T}yes" >&6; }
13076 succeeded=yes
13078 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13079 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13080 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13081 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13082 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13084 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13085 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13086 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13087 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13088 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13089 else
13090 { echo "$as_me:$LINENO: result: no" >&5
13091 echo "${ECHO_T}no" >&6; }
13092 M17N_FLT_CFLAGS=""
13093 M17N_FLT_LIBS=""
13094 ## If we have a custom action on failure, don't print errors, but
13095 ## do set a variable so people can do so.
13096 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13102 else
13103 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13104 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13108 if test $succeeded = yes; then
13109 HAVE_M17N_FLT=yes
13110 else
13111 HAVE_M17N_FLT=no
13114 if test "$HAVE_M17N_FLT" = "yes"; then
13116 cat >>confdefs.h <<\_ACEOF
13117 #define HAVE_M17N_FLT 1
13118 _ACEOF
13133 #### End for font-backend
13135 ### Use -lXpm if available, unless `--with-xpm=no'.
13136 HAVE_XPM=no
13137 if test "${HAVE_X11}" = "yes"; then
13138 if test "${with_xpm}" != "no"; then
13139 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13140 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13141 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13142 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13143 echo $ECHO_N "(cached) $ECHO_C" >&6
13145 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13146 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13147 else
13148 # Is the header compilable?
13149 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13150 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13151 cat >conftest.$ac_ext <<_ACEOF
13152 /* confdefs.h. */
13153 _ACEOF
13154 cat confdefs.h >>conftest.$ac_ext
13155 cat >>conftest.$ac_ext <<_ACEOF
13156 /* end confdefs.h. */
13157 $ac_includes_default
13158 #include <X11/xpm.h>
13159 _ACEOF
13160 rm -f conftest.$ac_objext
13161 if { (ac_try="$ac_compile"
13162 case "(($ac_try" in
13163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13164 *) ac_try_echo=$ac_try;;
13165 esac
13166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13167 (eval "$ac_compile") 2>conftest.er1
13168 ac_status=$?
13169 grep -v '^ *+' conftest.er1 >conftest.err
13170 rm -f conftest.er1
13171 cat conftest.err >&5
13172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173 (exit $ac_status); } && {
13174 test -z "$ac_c_werror_flag" ||
13175 test ! -s conftest.err
13176 } && test -s conftest.$ac_objext; then
13177 ac_header_compiler=yes
13178 else
13179 echo "$as_me: failed program was:" >&5
13180 sed 's/^/| /' conftest.$ac_ext >&5
13182 ac_header_compiler=no
13185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13186 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13187 echo "${ECHO_T}$ac_header_compiler" >&6; }
13189 # Is the header present?
13190 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13191 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13192 cat >conftest.$ac_ext <<_ACEOF
13193 /* confdefs.h. */
13194 _ACEOF
13195 cat confdefs.h >>conftest.$ac_ext
13196 cat >>conftest.$ac_ext <<_ACEOF
13197 /* end confdefs.h. */
13198 #include <X11/xpm.h>
13199 _ACEOF
13200 if { (ac_try="$ac_cpp conftest.$ac_ext"
13201 case "(($ac_try" in
13202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13203 *) ac_try_echo=$ac_try;;
13204 esac
13205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13206 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13207 ac_status=$?
13208 grep -v '^ *+' conftest.er1 >conftest.err
13209 rm -f conftest.er1
13210 cat conftest.err >&5
13211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 (exit $ac_status); } >/dev/null && {
13213 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13214 test ! -s conftest.err
13215 }; then
13216 ac_header_preproc=yes
13217 else
13218 echo "$as_me: failed program was:" >&5
13219 sed 's/^/| /' conftest.$ac_ext >&5
13221 ac_header_preproc=no
13224 rm -f conftest.err conftest.$ac_ext
13225 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13226 echo "${ECHO_T}$ac_header_preproc" >&6; }
13228 # So? What about this header?
13229 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13230 yes:no: )
13231 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13232 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13233 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13234 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13235 ac_header_preproc=yes
13237 no:yes:* )
13238 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13239 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13240 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13241 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13242 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13243 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13244 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13245 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13246 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13247 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13248 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13249 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13252 esac
13253 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13254 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13255 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13256 echo $ECHO_N "(cached) $ECHO_C" >&6
13257 else
13258 ac_cv_header_X11_xpm_h=$ac_header_preproc
13260 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13261 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13264 if test $ac_cv_header_X11_xpm_h = yes; then
13265 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13266 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13267 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13268 echo $ECHO_N "(cached) $ECHO_C" >&6
13269 else
13270 ac_check_lib_save_LIBS=$LIBS
13271 LIBS="-lXpm -lX11 $LIBS"
13272 cat >conftest.$ac_ext <<_ACEOF
13273 /* confdefs.h. */
13274 _ACEOF
13275 cat confdefs.h >>conftest.$ac_ext
13276 cat >>conftest.$ac_ext <<_ACEOF
13277 /* end confdefs.h. */
13279 /* Override any GCC internal prototype to avoid an error.
13280 Use char because int might match the return type of a GCC
13281 builtin and then its argument prototype would still apply. */
13282 #ifdef __cplusplus
13283 extern "C"
13284 #endif
13285 char XpmReadFileToPixmap ();
13287 main ()
13289 return XpmReadFileToPixmap ();
13291 return 0;
13293 _ACEOF
13294 rm -f conftest.$ac_objext conftest$ac_exeext
13295 if { (ac_try="$ac_link"
13296 case "(($ac_try" in
13297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13298 *) ac_try_echo=$ac_try;;
13299 esac
13300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13301 (eval "$ac_link") 2>conftest.er1
13302 ac_status=$?
13303 grep -v '^ *+' conftest.er1 >conftest.err
13304 rm -f conftest.er1
13305 cat conftest.err >&5
13306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13307 (exit $ac_status); } && {
13308 test -z "$ac_c_werror_flag" ||
13309 test ! -s conftest.err
13310 } && test -s conftest$ac_exeext &&
13311 $as_test_x conftest$ac_exeext; then
13312 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13313 else
13314 echo "$as_me: failed program was:" >&5
13315 sed 's/^/| /' conftest.$ac_ext >&5
13317 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13321 conftest$ac_exeext conftest.$ac_ext
13322 LIBS=$ac_check_lib_save_LIBS
13324 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13325 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13326 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13327 HAVE_XPM=yes
13333 if test "${HAVE_XPM}" = "yes"; then
13334 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13335 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13336 cat >conftest.$ac_ext <<_ACEOF
13337 /* confdefs.h. */
13338 _ACEOF
13339 cat confdefs.h >>conftest.$ac_ext
13340 cat >>conftest.$ac_ext <<_ACEOF
13341 /* end confdefs.h. */
13342 #include "X11/xpm.h"
13343 #ifndef XpmReturnAllocPixels
13344 no_return_alloc_pixels
13345 #endif
13347 _ACEOF
13348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13349 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13350 HAVE_XPM=no
13351 else
13352 HAVE_XPM=yes
13354 rm -f conftest*
13357 if test "${HAVE_XPM}" = "yes"; then
13358 { echo "$as_me:$LINENO: result: yes" >&5
13359 echo "${ECHO_T}yes" >&6; }
13360 else
13361 { echo "$as_me:$LINENO: result: no" >&5
13362 echo "${ECHO_T}no" >&6; }
13367 if test "${HAVE_XPM}" = "yes"; then
13369 cat >>confdefs.h <<\_ACEOF
13370 #define HAVE_XPM 1
13371 _ACEOF
13376 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13377 HAVE_JPEG=no
13378 if test "${HAVE_X11}" = "yes"; then
13379 if test "${with_jpeg}" != "no"; then
13380 if test "${ac_cv_header_jerror_h+set}" = set; then
13381 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13382 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13383 if test "${ac_cv_header_jerror_h+set}" = set; then
13384 echo $ECHO_N "(cached) $ECHO_C" >&6
13386 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13387 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13388 else
13389 # Is the header compilable?
13390 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13391 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13392 cat >conftest.$ac_ext <<_ACEOF
13393 /* confdefs.h. */
13394 _ACEOF
13395 cat confdefs.h >>conftest.$ac_ext
13396 cat >>conftest.$ac_ext <<_ACEOF
13397 /* end confdefs.h. */
13398 $ac_includes_default
13399 #include <jerror.h>
13400 _ACEOF
13401 rm -f conftest.$ac_objext
13402 if { (ac_try="$ac_compile"
13403 case "(($ac_try" in
13404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13405 *) ac_try_echo=$ac_try;;
13406 esac
13407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13408 (eval "$ac_compile") 2>conftest.er1
13409 ac_status=$?
13410 grep -v '^ *+' conftest.er1 >conftest.err
13411 rm -f conftest.er1
13412 cat conftest.err >&5
13413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414 (exit $ac_status); } && {
13415 test -z "$ac_c_werror_flag" ||
13416 test ! -s conftest.err
13417 } && test -s conftest.$ac_objext; then
13418 ac_header_compiler=yes
13419 else
13420 echo "$as_me: failed program was:" >&5
13421 sed 's/^/| /' conftest.$ac_ext >&5
13423 ac_header_compiler=no
13426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13427 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13428 echo "${ECHO_T}$ac_header_compiler" >&6; }
13430 # Is the header present?
13431 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13432 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13433 cat >conftest.$ac_ext <<_ACEOF
13434 /* confdefs.h. */
13435 _ACEOF
13436 cat confdefs.h >>conftest.$ac_ext
13437 cat >>conftest.$ac_ext <<_ACEOF
13438 /* end confdefs.h. */
13439 #include <jerror.h>
13440 _ACEOF
13441 if { (ac_try="$ac_cpp conftest.$ac_ext"
13442 case "(($ac_try" in
13443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13444 *) ac_try_echo=$ac_try;;
13445 esac
13446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13447 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13448 ac_status=$?
13449 grep -v '^ *+' conftest.er1 >conftest.err
13450 rm -f conftest.er1
13451 cat conftest.err >&5
13452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 (exit $ac_status); } >/dev/null && {
13454 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13455 test ! -s conftest.err
13456 }; then
13457 ac_header_preproc=yes
13458 else
13459 echo "$as_me: failed program was:" >&5
13460 sed 's/^/| /' conftest.$ac_ext >&5
13462 ac_header_preproc=no
13465 rm -f conftest.err conftest.$ac_ext
13466 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13467 echo "${ECHO_T}$ac_header_preproc" >&6; }
13469 # So? What about this header?
13470 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13471 yes:no: )
13472 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13473 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13474 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13475 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13476 ac_header_preproc=yes
13478 no:yes:* )
13479 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13480 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13481 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13482 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13483 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13484 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13485 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13486 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13487 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13488 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13489 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13490 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13493 esac
13494 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13495 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13496 if test "${ac_cv_header_jerror_h+set}" = set; then
13497 echo $ECHO_N "(cached) $ECHO_C" >&6
13498 else
13499 ac_cv_header_jerror_h=$ac_header_preproc
13501 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13502 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13505 if test $ac_cv_header_jerror_h = yes; then
13506 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13507 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13508 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13509 echo $ECHO_N "(cached) $ECHO_C" >&6
13510 else
13511 ac_check_lib_save_LIBS=$LIBS
13512 LIBS="-ljpeg $LIBS"
13513 cat >conftest.$ac_ext <<_ACEOF
13514 /* confdefs.h. */
13515 _ACEOF
13516 cat confdefs.h >>conftest.$ac_ext
13517 cat >>conftest.$ac_ext <<_ACEOF
13518 /* end confdefs.h. */
13520 /* Override any GCC internal prototype to avoid an error.
13521 Use char because int might match the return type of a GCC
13522 builtin and then its argument prototype would still apply. */
13523 #ifdef __cplusplus
13524 extern "C"
13525 #endif
13526 char jpeg_destroy_compress ();
13528 main ()
13530 return jpeg_destroy_compress ();
13532 return 0;
13534 _ACEOF
13535 rm -f conftest.$ac_objext conftest$ac_exeext
13536 if { (ac_try="$ac_link"
13537 case "(($ac_try" in
13538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13539 *) ac_try_echo=$ac_try;;
13540 esac
13541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13542 (eval "$ac_link") 2>conftest.er1
13543 ac_status=$?
13544 grep -v '^ *+' conftest.er1 >conftest.err
13545 rm -f conftest.er1
13546 cat conftest.err >&5
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); } && {
13549 test -z "$ac_c_werror_flag" ||
13550 test ! -s conftest.err
13551 } && test -s conftest$ac_exeext &&
13552 $as_test_x conftest$ac_exeext; then
13553 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13554 else
13555 echo "$as_me: failed program was:" >&5
13556 sed 's/^/| /' conftest.$ac_ext >&5
13558 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13562 conftest$ac_exeext conftest.$ac_ext
13563 LIBS=$ac_check_lib_save_LIBS
13565 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13566 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13567 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13568 HAVE_JPEG=yes
13577 if test "${HAVE_JPEG}" = "yes"; then
13578 cat >>confdefs.h <<\_ACEOF
13579 #define HAVE_JPEG 1
13580 _ACEOF
13582 cat >conftest.$ac_ext <<_ACEOF
13583 /* confdefs.h. */
13584 _ACEOF
13585 cat confdefs.h >>conftest.$ac_ext
13586 cat >>conftest.$ac_ext <<_ACEOF
13587 /* end confdefs.h. */
13588 #include <jpeglib.h>
13589 version=JPEG_LIB_VERSION
13591 _ACEOF
13592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13593 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13594 cat >>confdefs.h <<\_ACEOF
13595 #define HAVE_JPEG 1
13596 _ACEOF
13598 else
13599 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13600 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13601 HAVE_JPEG=no
13603 rm -f conftest*
13608 ### Use -lpng if available, unless `--with-png=no'.
13609 HAVE_PNG=no
13610 if test "${HAVE_X11}" = "yes"; then
13611 if test "${with_png}" != "no"; then
13612 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13613 # in /usr/include/libpng.
13616 for ac_header in png.h libpng/png.h
13618 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13620 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13623 echo $ECHO_N "(cached) $ECHO_C" >&6
13625 ac_res=`eval echo '${'$as_ac_Header'}'`
13626 { echo "$as_me:$LINENO: result: $ac_res" >&5
13627 echo "${ECHO_T}$ac_res" >&6; }
13628 else
13629 # Is the header compilable?
13630 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13631 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13632 cat >conftest.$ac_ext <<_ACEOF
13633 /* confdefs.h. */
13634 _ACEOF
13635 cat confdefs.h >>conftest.$ac_ext
13636 cat >>conftest.$ac_ext <<_ACEOF
13637 /* end confdefs.h. */
13638 $ac_includes_default
13639 #include <$ac_header>
13640 _ACEOF
13641 rm -f conftest.$ac_objext
13642 if { (ac_try="$ac_compile"
13643 case "(($ac_try" in
13644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13645 *) ac_try_echo=$ac_try;;
13646 esac
13647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13648 (eval "$ac_compile") 2>conftest.er1
13649 ac_status=$?
13650 grep -v '^ *+' conftest.er1 >conftest.err
13651 rm -f conftest.er1
13652 cat conftest.err >&5
13653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654 (exit $ac_status); } && {
13655 test -z "$ac_c_werror_flag" ||
13656 test ! -s conftest.err
13657 } && test -s conftest.$ac_objext; then
13658 ac_header_compiler=yes
13659 else
13660 echo "$as_me: failed program was:" >&5
13661 sed 's/^/| /' conftest.$ac_ext >&5
13663 ac_header_compiler=no
13666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13667 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13668 echo "${ECHO_T}$ac_header_compiler" >&6; }
13670 # Is the header present?
13671 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13672 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13673 cat >conftest.$ac_ext <<_ACEOF
13674 /* confdefs.h. */
13675 _ACEOF
13676 cat confdefs.h >>conftest.$ac_ext
13677 cat >>conftest.$ac_ext <<_ACEOF
13678 /* end confdefs.h. */
13679 #include <$ac_header>
13680 _ACEOF
13681 if { (ac_try="$ac_cpp conftest.$ac_ext"
13682 case "(($ac_try" in
13683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13684 *) ac_try_echo=$ac_try;;
13685 esac
13686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13688 ac_status=$?
13689 grep -v '^ *+' conftest.er1 >conftest.err
13690 rm -f conftest.er1
13691 cat conftest.err >&5
13692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693 (exit $ac_status); } >/dev/null && {
13694 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13695 test ! -s conftest.err
13696 }; then
13697 ac_header_preproc=yes
13698 else
13699 echo "$as_me: failed program was:" >&5
13700 sed 's/^/| /' conftest.$ac_ext >&5
13702 ac_header_preproc=no
13705 rm -f conftest.err conftest.$ac_ext
13706 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13707 echo "${ECHO_T}$ac_header_preproc" >&6; }
13709 # So? What about this header?
13710 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13711 yes:no: )
13712 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13713 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13715 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13716 ac_header_preproc=yes
13718 no:yes:* )
13719 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13720 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13721 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13722 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13723 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13724 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13725 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13726 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13728 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13729 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13730 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13733 esac
13734 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13737 echo $ECHO_N "(cached) $ECHO_C" >&6
13738 else
13739 eval "$as_ac_Header=\$ac_header_preproc"
13741 ac_res=`eval echo '${'$as_ac_Header'}'`
13742 { echo "$as_me:$LINENO: result: $ac_res" >&5
13743 echo "${ECHO_T}$ac_res" >&6; }
13746 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13747 cat >>confdefs.h <<_ACEOF
13748 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13749 _ACEOF
13753 done
13755 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13756 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13757 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13758 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13759 echo $ECHO_N "(cached) $ECHO_C" >&6
13760 else
13761 ac_check_lib_save_LIBS=$LIBS
13762 LIBS="-lpng -lz -lm $LIBS"
13763 cat >conftest.$ac_ext <<_ACEOF
13764 /* confdefs.h. */
13765 _ACEOF
13766 cat confdefs.h >>conftest.$ac_ext
13767 cat >>conftest.$ac_ext <<_ACEOF
13768 /* end confdefs.h. */
13770 /* Override any GCC internal prototype to avoid an error.
13771 Use char because int might match the return type of a GCC
13772 builtin and then its argument prototype would still apply. */
13773 #ifdef __cplusplus
13774 extern "C"
13775 #endif
13776 char png_get_channels ();
13778 main ()
13780 return png_get_channels ();
13782 return 0;
13784 _ACEOF
13785 rm -f conftest.$ac_objext conftest$ac_exeext
13786 if { (ac_try="$ac_link"
13787 case "(($ac_try" in
13788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13789 *) ac_try_echo=$ac_try;;
13790 esac
13791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13792 (eval "$ac_link") 2>conftest.er1
13793 ac_status=$?
13794 grep -v '^ *+' conftest.er1 >conftest.err
13795 rm -f conftest.er1
13796 cat conftest.err >&5
13797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); } && {
13799 test -z "$ac_c_werror_flag" ||
13800 test ! -s conftest.err
13801 } && test -s conftest$ac_exeext &&
13802 $as_test_x conftest$ac_exeext; then
13803 ac_cv_lib_png_png_get_channels=yes
13804 else
13805 echo "$as_me: failed program was:" >&5
13806 sed 's/^/| /' conftest.$ac_ext >&5
13808 ac_cv_lib_png_png_get_channels=no
13811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13812 conftest$ac_exeext conftest.$ac_ext
13813 LIBS=$ac_check_lib_save_LIBS
13815 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13816 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13817 if test $ac_cv_lib_png_png_get_channels = yes; then
13818 HAVE_PNG=yes
13824 if test "${HAVE_PNG}" = "yes"; then
13826 cat >>confdefs.h <<\_ACEOF
13827 #define HAVE_PNG 1
13828 _ACEOF
13833 ### Use -ltiff if available, unless `--with-tiff=no'.
13834 HAVE_TIFF=no
13835 if test "${HAVE_X11}" = "yes"; then
13836 if test "${with_tiff}" != "no"; then
13837 if test "${ac_cv_header_tiffio_h+set}" = set; then
13838 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13839 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13840 if test "${ac_cv_header_tiffio_h+set}" = set; then
13841 echo $ECHO_N "(cached) $ECHO_C" >&6
13843 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13844 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13845 else
13846 # Is the header compilable?
13847 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13848 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13849 cat >conftest.$ac_ext <<_ACEOF
13850 /* confdefs.h. */
13851 _ACEOF
13852 cat confdefs.h >>conftest.$ac_ext
13853 cat >>conftest.$ac_ext <<_ACEOF
13854 /* end confdefs.h. */
13855 $ac_includes_default
13856 #include <tiffio.h>
13857 _ACEOF
13858 rm -f conftest.$ac_objext
13859 if { (ac_try="$ac_compile"
13860 case "(($ac_try" in
13861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13862 *) ac_try_echo=$ac_try;;
13863 esac
13864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13865 (eval "$ac_compile") 2>conftest.er1
13866 ac_status=$?
13867 grep -v '^ *+' conftest.er1 >conftest.err
13868 rm -f conftest.er1
13869 cat conftest.err >&5
13870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871 (exit $ac_status); } && {
13872 test -z "$ac_c_werror_flag" ||
13873 test ! -s conftest.err
13874 } && test -s conftest.$ac_objext; then
13875 ac_header_compiler=yes
13876 else
13877 echo "$as_me: failed program was:" >&5
13878 sed 's/^/| /' conftest.$ac_ext >&5
13880 ac_header_compiler=no
13883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13884 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13885 echo "${ECHO_T}$ac_header_compiler" >&6; }
13887 # Is the header present?
13888 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13889 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13890 cat >conftest.$ac_ext <<_ACEOF
13891 /* confdefs.h. */
13892 _ACEOF
13893 cat confdefs.h >>conftest.$ac_ext
13894 cat >>conftest.$ac_ext <<_ACEOF
13895 /* end confdefs.h. */
13896 #include <tiffio.h>
13897 _ACEOF
13898 if { (ac_try="$ac_cpp conftest.$ac_ext"
13899 case "(($ac_try" in
13900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13901 *) ac_try_echo=$ac_try;;
13902 esac
13903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13904 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13905 ac_status=$?
13906 grep -v '^ *+' conftest.er1 >conftest.err
13907 rm -f conftest.er1
13908 cat conftest.err >&5
13909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910 (exit $ac_status); } >/dev/null && {
13911 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13912 test ! -s conftest.err
13913 }; then
13914 ac_header_preproc=yes
13915 else
13916 echo "$as_me: failed program was:" >&5
13917 sed 's/^/| /' conftest.$ac_ext >&5
13919 ac_header_preproc=no
13922 rm -f conftest.err conftest.$ac_ext
13923 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13924 echo "${ECHO_T}$ac_header_preproc" >&6; }
13926 # So? What about this header?
13927 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13928 yes:no: )
13929 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13930 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13931 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13932 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13933 ac_header_preproc=yes
13935 no:yes:* )
13936 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13937 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13938 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13939 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13940 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13941 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13942 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13943 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13944 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13945 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13946 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13947 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13950 esac
13951 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13952 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13953 if test "${ac_cv_header_tiffio_h+set}" = set; then
13954 echo $ECHO_N "(cached) $ECHO_C" >&6
13955 else
13956 ac_cv_header_tiffio_h=$ac_header_preproc
13958 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13959 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13962 if test $ac_cv_header_tiffio_h = yes; then
13963 tifflibs="-lz -lm"
13964 # At least one tiff package requires the jpeg library.
13965 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13966 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13967 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13968 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13969 echo $ECHO_N "(cached) $ECHO_C" >&6
13970 else
13971 ac_check_lib_save_LIBS=$LIBS
13972 LIBS="-ltiff $tifflibs $LIBS"
13973 cat >conftest.$ac_ext <<_ACEOF
13974 /* confdefs.h. */
13975 _ACEOF
13976 cat confdefs.h >>conftest.$ac_ext
13977 cat >>conftest.$ac_ext <<_ACEOF
13978 /* end confdefs.h. */
13980 /* Override any GCC internal prototype to avoid an error.
13981 Use char because int might match the return type of a GCC
13982 builtin and then its argument prototype would still apply. */
13983 #ifdef __cplusplus
13984 extern "C"
13985 #endif
13986 char TIFFGetVersion ();
13988 main ()
13990 return TIFFGetVersion ();
13992 return 0;
13994 _ACEOF
13995 rm -f conftest.$ac_objext conftest$ac_exeext
13996 if { (ac_try="$ac_link"
13997 case "(($ac_try" in
13998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13999 *) ac_try_echo=$ac_try;;
14000 esac
14001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14002 (eval "$ac_link") 2>conftest.er1
14003 ac_status=$?
14004 grep -v '^ *+' conftest.er1 >conftest.err
14005 rm -f conftest.er1
14006 cat conftest.err >&5
14007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14008 (exit $ac_status); } && {
14009 test -z "$ac_c_werror_flag" ||
14010 test ! -s conftest.err
14011 } && test -s conftest$ac_exeext &&
14012 $as_test_x conftest$ac_exeext; then
14013 ac_cv_lib_tiff_TIFFGetVersion=yes
14014 else
14015 echo "$as_me: failed program was:" >&5
14016 sed 's/^/| /' conftest.$ac_ext >&5
14018 ac_cv_lib_tiff_TIFFGetVersion=no
14021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14022 conftest$ac_exeext conftest.$ac_ext
14023 LIBS=$ac_check_lib_save_LIBS
14025 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14026 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14027 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14028 HAVE_TIFF=yes
14036 if test "${HAVE_TIFF}" = "yes"; then
14038 cat >>confdefs.h <<\_ACEOF
14039 #define HAVE_TIFF 1
14040 _ACEOF
14045 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14046 HAVE_GIF=no
14047 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14048 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14049 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14050 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14051 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14052 echo $ECHO_N "(cached) $ECHO_C" >&6
14054 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14055 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14056 else
14057 # Is the header compilable?
14058 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14059 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14060 cat >conftest.$ac_ext <<_ACEOF
14061 /* confdefs.h. */
14062 _ACEOF
14063 cat confdefs.h >>conftest.$ac_ext
14064 cat >>conftest.$ac_ext <<_ACEOF
14065 /* end confdefs.h. */
14066 $ac_includes_default
14067 #include <gif_lib.h>
14068 _ACEOF
14069 rm -f conftest.$ac_objext
14070 if { (ac_try="$ac_compile"
14071 case "(($ac_try" in
14072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14073 *) ac_try_echo=$ac_try;;
14074 esac
14075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14076 (eval "$ac_compile") 2>conftest.er1
14077 ac_status=$?
14078 grep -v '^ *+' conftest.er1 >conftest.err
14079 rm -f conftest.er1
14080 cat conftest.err >&5
14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); } && {
14083 test -z "$ac_c_werror_flag" ||
14084 test ! -s conftest.err
14085 } && test -s conftest.$ac_objext; then
14086 ac_header_compiler=yes
14087 else
14088 echo "$as_me: failed program was:" >&5
14089 sed 's/^/| /' conftest.$ac_ext >&5
14091 ac_header_compiler=no
14094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14095 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14096 echo "${ECHO_T}$ac_header_compiler" >&6; }
14098 # Is the header present?
14099 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14100 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14101 cat >conftest.$ac_ext <<_ACEOF
14102 /* confdefs.h. */
14103 _ACEOF
14104 cat confdefs.h >>conftest.$ac_ext
14105 cat >>conftest.$ac_ext <<_ACEOF
14106 /* end confdefs.h. */
14107 #include <gif_lib.h>
14108 _ACEOF
14109 if { (ac_try="$ac_cpp conftest.$ac_ext"
14110 case "(($ac_try" in
14111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14112 *) ac_try_echo=$ac_try;;
14113 esac
14114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14115 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14116 ac_status=$?
14117 grep -v '^ *+' conftest.er1 >conftest.err
14118 rm -f conftest.er1
14119 cat conftest.err >&5
14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121 (exit $ac_status); } >/dev/null && {
14122 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14123 test ! -s conftest.err
14124 }; then
14125 ac_header_preproc=yes
14126 else
14127 echo "$as_me: failed program was:" >&5
14128 sed 's/^/| /' conftest.$ac_ext >&5
14130 ac_header_preproc=no
14133 rm -f conftest.err conftest.$ac_ext
14134 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14135 echo "${ECHO_T}$ac_header_preproc" >&6; }
14137 # So? What about this header?
14138 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14139 yes:no: )
14140 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14141 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14142 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14143 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14144 ac_header_preproc=yes
14146 no:yes:* )
14147 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14148 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14149 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14150 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14151 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14152 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14153 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14154 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14155 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14156 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14157 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14158 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14161 esac
14162 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14163 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14164 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14165 echo $ECHO_N "(cached) $ECHO_C" >&6
14166 else
14167 ac_cv_header_gif_lib_h=$ac_header_preproc
14169 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14170 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14173 if test $ac_cv_header_gif_lib_h = yes; then
14174 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14175 # Earlier versions can crash Emacs.
14176 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14177 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14178 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14179 echo $ECHO_N "(cached) $ECHO_C" >&6
14180 else
14181 ac_check_lib_save_LIBS=$LIBS
14182 LIBS="-lgif $LIBS"
14183 cat >conftest.$ac_ext <<_ACEOF
14184 /* confdefs.h. */
14185 _ACEOF
14186 cat confdefs.h >>conftest.$ac_ext
14187 cat >>conftest.$ac_ext <<_ACEOF
14188 /* end confdefs.h. */
14190 /* Override any GCC internal prototype to avoid an error.
14191 Use char because int might match the return type of a GCC
14192 builtin and then its argument prototype would still apply. */
14193 #ifdef __cplusplus
14194 extern "C"
14195 #endif
14196 char EGifPutExtensionLast ();
14198 main ()
14200 return EGifPutExtensionLast ();
14202 return 0;
14204 _ACEOF
14205 rm -f conftest.$ac_objext conftest$ac_exeext
14206 if { (ac_try="$ac_link"
14207 case "(($ac_try" in
14208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14209 *) ac_try_echo=$ac_try;;
14210 esac
14211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14212 (eval "$ac_link") 2>conftest.er1
14213 ac_status=$?
14214 grep -v '^ *+' conftest.er1 >conftest.err
14215 rm -f conftest.er1
14216 cat conftest.err >&5
14217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218 (exit $ac_status); } && {
14219 test -z "$ac_c_werror_flag" ||
14220 test ! -s conftest.err
14221 } && test -s conftest$ac_exeext &&
14222 $as_test_x conftest$ac_exeext; then
14223 ac_cv_lib_gif_EGifPutExtensionLast=yes
14224 else
14225 echo "$as_me: failed program was:" >&5
14226 sed 's/^/| /' conftest.$ac_ext >&5
14228 ac_cv_lib_gif_EGifPutExtensionLast=no
14231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14232 conftest$ac_exeext conftest.$ac_ext
14233 LIBS=$ac_check_lib_save_LIBS
14235 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14236 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14237 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14238 HAVE_GIF=yes
14239 else
14240 try_libungif=yes
14247 if test "$HAVE_GIF" = yes; then
14248 ac_gif_lib_name="-lgif"
14251 # If gif_lib.h but no libgif, try libungif.
14252 if test x"$try_libungif" = xyes; then
14253 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14254 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14255 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14256 echo $ECHO_N "(cached) $ECHO_C" >&6
14257 else
14258 ac_check_lib_save_LIBS=$LIBS
14259 LIBS="-lungif $LIBS"
14260 cat >conftest.$ac_ext <<_ACEOF
14261 /* confdefs.h. */
14262 _ACEOF
14263 cat confdefs.h >>conftest.$ac_ext
14264 cat >>conftest.$ac_ext <<_ACEOF
14265 /* end confdefs.h. */
14267 /* Override any GCC internal prototype to avoid an error.
14268 Use char because int might match the return type of a GCC
14269 builtin and then its argument prototype would still apply. */
14270 #ifdef __cplusplus
14271 extern "C"
14272 #endif
14273 char EGifPutExtensionLast ();
14275 main ()
14277 return EGifPutExtensionLast ();
14279 return 0;
14281 _ACEOF
14282 rm -f conftest.$ac_objext conftest$ac_exeext
14283 if { (ac_try="$ac_link"
14284 case "(($ac_try" in
14285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14286 *) ac_try_echo=$ac_try;;
14287 esac
14288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14289 (eval "$ac_link") 2>conftest.er1
14290 ac_status=$?
14291 grep -v '^ *+' conftest.er1 >conftest.err
14292 rm -f conftest.er1
14293 cat conftest.err >&5
14294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295 (exit $ac_status); } && {
14296 test -z "$ac_c_werror_flag" ||
14297 test ! -s conftest.err
14298 } && test -s conftest$ac_exeext &&
14299 $as_test_x conftest$ac_exeext; then
14300 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14301 else
14302 echo "$as_me: failed program was:" >&5
14303 sed 's/^/| /' conftest.$ac_ext >&5
14305 ac_cv_lib_ungif_EGifPutExtensionLast=no
14308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14309 conftest$ac_exeext conftest.$ac_ext
14310 LIBS=$ac_check_lib_save_LIBS
14312 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14313 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14314 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14315 HAVE_GIF=yes
14319 if test "$HAVE_GIF" = yes; then
14321 cat >>confdefs.h <<\_ACEOF
14322 #define LIBGIF -lungif
14323 _ACEOF
14325 ac_gif_lib_name="-lungif"
14329 if test "${HAVE_GIF}" = "yes"; then
14331 cat >>confdefs.h <<\_ACEOF
14332 #define HAVE_GIF 1
14333 _ACEOF
14338 if test "${HAVE_X11}" = "yes"; then
14339 MISSING=""
14340 WITH_NO=""
14341 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14342 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14343 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14344 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
14345 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14346 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
14347 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14348 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
14349 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14350 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
14352 if test "X${MISSING}" != X; then
14353 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14354 $MISSING
14355 Maybe some development libraries/packages are missing?
14356 If you don't want to link with them give
14357 $WITH_NO
14358 as options to configure" >&5
14359 echo "$as_me: error: The following required libraries were not found:
14360 $MISSING
14361 Maybe some development libraries/packages are missing?
14362 If you don't want to link with them give
14363 $WITH_NO
14364 as options to configure" >&2;}
14365 { (exit 1); exit 1; }; }
14369 ### Use -lgpm if available, unless `--with-gpm=no'.
14370 HAVE_GPM=no
14371 if test "${with_gpm}" != "no"; then
14372 if test "${ac_cv_header_gpm_h+set}" = set; then
14373 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14374 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14375 if test "${ac_cv_header_gpm_h+set}" = set; then
14376 echo $ECHO_N "(cached) $ECHO_C" >&6
14378 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14379 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14380 else
14381 # Is the header compilable?
14382 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14383 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14384 cat >conftest.$ac_ext <<_ACEOF
14385 /* confdefs.h. */
14386 _ACEOF
14387 cat confdefs.h >>conftest.$ac_ext
14388 cat >>conftest.$ac_ext <<_ACEOF
14389 /* end confdefs.h. */
14390 $ac_includes_default
14391 #include <gpm.h>
14392 _ACEOF
14393 rm -f conftest.$ac_objext
14394 if { (ac_try="$ac_compile"
14395 case "(($ac_try" in
14396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14397 *) ac_try_echo=$ac_try;;
14398 esac
14399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14400 (eval "$ac_compile") 2>conftest.er1
14401 ac_status=$?
14402 grep -v '^ *+' conftest.er1 >conftest.err
14403 rm -f conftest.er1
14404 cat conftest.err >&5
14405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406 (exit $ac_status); } && {
14407 test -z "$ac_c_werror_flag" ||
14408 test ! -s conftest.err
14409 } && test -s conftest.$ac_objext; then
14410 ac_header_compiler=yes
14411 else
14412 echo "$as_me: failed program was:" >&5
14413 sed 's/^/| /' conftest.$ac_ext >&5
14415 ac_header_compiler=no
14418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14419 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14420 echo "${ECHO_T}$ac_header_compiler" >&6; }
14422 # Is the header present?
14423 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14424 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14425 cat >conftest.$ac_ext <<_ACEOF
14426 /* confdefs.h. */
14427 _ACEOF
14428 cat confdefs.h >>conftest.$ac_ext
14429 cat >>conftest.$ac_ext <<_ACEOF
14430 /* end confdefs.h. */
14431 #include <gpm.h>
14432 _ACEOF
14433 if { (ac_try="$ac_cpp conftest.$ac_ext"
14434 case "(($ac_try" in
14435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14436 *) ac_try_echo=$ac_try;;
14437 esac
14438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14440 ac_status=$?
14441 grep -v '^ *+' conftest.er1 >conftest.err
14442 rm -f conftest.er1
14443 cat conftest.err >&5
14444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445 (exit $ac_status); } >/dev/null && {
14446 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14447 test ! -s conftest.err
14448 }; then
14449 ac_header_preproc=yes
14450 else
14451 echo "$as_me: failed program was:" >&5
14452 sed 's/^/| /' conftest.$ac_ext >&5
14454 ac_header_preproc=no
14457 rm -f conftest.err conftest.$ac_ext
14458 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14459 echo "${ECHO_T}$ac_header_preproc" >&6; }
14461 # So? What about this header?
14462 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14463 yes:no: )
14464 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14465 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14466 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14467 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14468 ac_header_preproc=yes
14470 no:yes:* )
14471 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14472 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14473 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14474 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14475 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14476 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14477 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14478 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14479 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14480 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14481 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14482 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14485 esac
14486 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14487 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14488 if test "${ac_cv_header_gpm_h+set}" = set; then
14489 echo $ECHO_N "(cached) $ECHO_C" >&6
14490 else
14491 ac_cv_header_gpm_h=$ac_header_preproc
14493 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14494 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14497 if test $ac_cv_header_gpm_h = yes; then
14498 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14499 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14500 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14501 echo $ECHO_N "(cached) $ECHO_C" >&6
14502 else
14503 ac_check_lib_save_LIBS=$LIBS
14504 LIBS="-lgpm $LIBS"
14505 cat >conftest.$ac_ext <<_ACEOF
14506 /* confdefs.h. */
14507 _ACEOF
14508 cat confdefs.h >>conftest.$ac_ext
14509 cat >>conftest.$ac_ext <<_ACEOF
14510 /* end confdefs.h. */
14512 /* Override any GCC internal prototype to avoid an error.
14513 Use char because int might match the return type of a GCC
14514 builtin and then its argument prototype would still apply. */
14515 #ifdef __cplusplus
14516 extern "C"
14517 #endif
14518 char Gpm_Open ();
14520 main ()
14522 return Gpm_Open ();
14524 return 0;
14526 _ACEOF
14527 rm -f conftest.$ac_objext conftest$ac_exeext
14528 if { (ac_try="$ac_link"
14529 case "(($ac_try" in
14530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14531 *) ac_try_echo=$ac_try;;
14532 esac
14533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14534 (eval "$ac_link") 2>conftest.er1
14535 ac_status=$?
14536 grep -v '^ *+' conftest.er1 >conftest.err
14537 rm -f conftest.er1
14538 cat conftest.err >&5
14539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540 (exit $ac_status); } && {
14541 test -z "$ac_c_werror_flag" ||
14542 test ! -s conftest.err
14543 } && test -s conftest$ac_exeext &&
14544 $as_test_x conftest$ac_exeext; then
14545 ac_cv_lib_gpm_Gpm_Open=yes
14546 else
14547 echo "$as_me: failed program was:" >&5
14548 sed 's/^/| /' conftest.$ac_ext >&5
14550 ac_cv_lib_gpm_Gpm_Open=no
14553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14554 conftest$ac_exeext conftest.$ac_ext
14555 LIBS=$ac_check_lib_save_LIBS
14557 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14558 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14559 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14560 HAVE_GPM=yes
14568 if test "${HAVE_GPM}" = "yes"; then
14570 cat >>confdefs.h <<\_ACEOF
14571 #define HAVE_GPM 1
14572 _ACEOF
14576 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14577 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14578 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14579 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14580 echo $ECHO_N "(cached) $ECHO_C" >&6
14582 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14583 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14584 else
14585 # Is the header compilable?
14586 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14587 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14588 cat >conftest.$ac_ext <<_ACEOF
14589 /* confdefs.h. */
14590 _ACEOF
14591 cat confdefs.h >>conftest.$ac_ext
14592 cat >>conftest.$ac_ext <<_ACEOF
14593 /* end confdefs.h. */
14594 $ac_includes_default
14595 #include <malloc/malloc.h>
14596 _ACEOF
14597 rm -f conftest.$ac_objext
14598 if { (ac_try="$ac_compile"
14599 case "(($ac_try" in
14600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14601 *) ac_try_echo=$ac_try;;
14602 esac
14603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14604 (eval "$ac_compile") 2>conftest.er1
14605 ac_status=$?
14606 grep -v '^ *+' conftest.er1 >conftest.err
14607 rm -f conftest.er1
14608 cat conftest.err >&5
14609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610 (exit $ac_status); } && {
14611 test -z "$ac_c_werror_flag" ||
14612 test ! -s conftest.err
14613 } && test -s conftest.$ac_objext; then
14614 ac_header_compiler=yes
14615 else
14616 echo "$as_me: failed program was:" >&5
14617 sed 's/^/| /' conftest.$ac_ext >&5
14619 ac_header_compiler=no
14622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14623 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14624 echo "${ECHO_T}$ac_header_compiler" >&6; }
14626 # Is the header present?
14627 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14628 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14629 cat >conftest.$ac_ext <<_ACEOF
14630 /* confdefs.h. */
14631 _ACEOF
14632 cat confdefs.h >>conftest.$ac_ext
14633 cat >>conftest.$ac_ext <<_ACEOF
14634 /* end confdefs.h. */
14635 #include <malloc/malloc.h>
14636 _ACEOF
14637 if { (ac_try="$ac_cpp conftest.$ac_ext"
14638 case "(($ac_try" in
14639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14640 *) ac_try_echo=$ac_try;;
14641 esac
14642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14644 ac_status=$?
14645 grep -v '^ *+' conftest.er1 >conftest.err
14646 rm -f conftest.er1
14647 cat conftest.err >&5
14648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649 (exit $ac_status); } >/dev/null && {
14650 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14651 test ! -s conftest.err
14652 }; then
14653 ac_header_preproc=yes
14654 else
14655 echo "$as_me: failed program was:" >&5
14656 sed 's/^/| /' conftest.$ac_ext >&5
14658 ac_header_preproc=no
14661 rm -f conftest.err conftest.$ac_ext
14662 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14663 echo "${ECHO_T}$ac_header_preproc" >&6; }
14665 # So? What about this header?
14666 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14667 yes:no: )
14668 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14669 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14670 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14671 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14672 ac_header_preproc=yes
14674 no:yes:* )
14675 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14676 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14677 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14678 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14679 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14680 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14681 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14682 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14683 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14684 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14685 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14686 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14689 esac
14690 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14691 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14692 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14693 echo $ECHO_N "(cached) $ECHO_C" >&6
14694 else
14695 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14697 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14698 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14701 if test $ac_cv_header_malloc_malloc_h = yes; then
14703 cat >>confdefs.h <<\_ACEOF
14704 #define HAVE_MALLOC_MALLOC_H 1
14705 _ACEOF
14711 ### Use Mac OS X Carbon API to implement GUI.
14712 if test "${HAVE_CARBON}" = "yes"; then
14714 cat >>confdefs.h <<\_ACEOF
14715 #define HAVE_CARBON 1
14716 _ACEOF
14718 ## Specify the install directory
14719 carbon_appdir=
14720 if test "${carbon_appdir_x}" != ""; then
14721 case ${carbon_appdir_x} in
14722 y | ye | yes) carbon_appdir=/Applications ;;
14723 * ) carbon_appdir=${carbon_appdir_x} ;;
14724 esac
14726 # We also have mouse menus.
14727 HAVE_MENUS=yes
14730 ### Use session management (-lSM -lICE) if available
14731 HAVE_X_SM=no
14732 if test "${HAVE_X11}" = "yes"; then
14733 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14734 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14735 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14736 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14737 echo $ECHO_N "(cached) $ECHO_C" >&6
14739 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14740 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14741 else
14742 # Is the header compilable?
14743 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14744 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14745 cat >conftest.$ac_ext <<_ACEOF
14746 /* confdefs.h. */
14747 _ACEOF
14748 cat confdefs.h >>conftest.$ac_ext
14749 cat >>conftest.$ac_ext <<_ACEOF
14750 /* end confdefs.h. */
14751 $ac_includes_default
14752 #include <X11/SM/SMlib.h>
14753 _ACEOF
14754 rm -f conftest.$ac_objext
14755 if { (ac_try="$ac_compile"
14756 case "(($ac_try" in
14757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14758 *) ac_try_echo=$ac_try;;
14759 esac
14760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14761 (eval "$ac_compile") 2>conftest.er1
14762 ac_status=$?
14763 grep -v '^ *+' conftest.er1 >conftest.err
14764 rm -f conftest.er1
14765 cat conftest.err >&5
14766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767 (exit $ac_status); } && {
14768 test -z "$ac_c_werror_flag" ||
14769 test ! -s conftest.err
14770 } && test -s conftest.$ac_objext; then
14771 ac_header_compiler=yes
14772 else
14773 echo "$as_me: failed program was:" >&5
14774 sed 's/^/| /' conftest.$ac_ext >&5
14776 ac_header_compiler=no
14779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14780 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14781 echo "${ECHO_T}$ac_header_compiler" >&6; }
14783 # Is the header present?
14784 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14785 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14786 cat >conftest.$ac_ext <<_ACEOF
14787 /* confdefs.h. */
14788 _ACEOF
14789 cat confdefs.h >>conftest.$ac_ext
14790 cat >>conftest.$ac_ext <<_ACEOF
14791 /* end confdefs.h. */
14792 #include <X11/SM/SMlib.h>
14793 _ACEOF
14794 if { (ac_try="$ac_cpp conftest.$ac_ext"
14795 case "(($ac_try" in
14796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14797 *) ac_try_echo=$ac_try;;
14798 esac
14799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14801 ac_status=$?
14802 grep -v '^ *+' conftest.er1 >conftest.err
14803 rm -f conftest.er1
14804 cat conftest.err >&5
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); } >/dev/null && {
14807 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14808 test ! -s conftest.err
14809 }; then
14810 ac_header_preproc=yes
14811 else
14812 echo "$as_me: failed program was:" >&5
14813 sed 's/^/| /' conftest.$ac_ext >&5
14815 ac_header_preproc=no
14818 rm -f conftest.err conftest.$ac_ext
14819 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14820 echo "${ECHO_T}$ac_header_preproc" >&6; }
14822 # So? What about this header?
14823 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14824 yes:no: )
14825 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14826 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14827 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14828 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14829 ac_header_preproc=yes
14831 no:yes:* )
14832 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14833 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14834 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14835 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14836 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14837 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14838 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14839 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14840 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14841 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14842 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14843 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14846 esac
14847 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14848 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14849 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14850 echo $ECHO_N "(cached) $ECHO_C" >&6
14851 else
14852 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14854 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14855 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14858 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14859 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14860 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14861 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14862 echo $ECHO_N "(cached) $ECHO_C" >&6
14863 else
14864 ac_check_lib_save_LIBS=$LIBS
14865 LIBS="-lSM -lICE $LIBS"
14866 cat >conftest.$ac_ext <<_ACEOF
14867 /* confdefs.h. */
14868 _ACEOF
14869 cat confdefs.h >>conftest.$ac_ext
14870 cat >>conftest.$ac_ext <<_ACEOF
14871 /* end confdefs.h. */
14873 /* Override any GCC internal prototype to avoid an error.
14874 Use char because int might match the return type of a GCC
14875 builtin and then its argument prototype would still apply. */
14876 #ifdef __cplusplus
14877 extern "C"
14878 #endif
14879 char SmcOpenConnection ();
14881 main ()
14883 return SmcOpenConnection ();
14885 return 0;
14887 _ACEOF
14888 rm -f conftest.$ac_objext conftest$ac_exeext
14889 if { (ac_try="$ac_link"
14890 case "(($ac_try" in
14891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14892 *) ac_try_echo=$ac_try;;
14893 esac
14894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14895 (eval "$ac_link") 2>conftest.er1
14896 ac_status=$?
14897 grep -v '^ *+' conftest.er1 >conftest.err
14898 rm -f conftest.er1
14899 cat conftest.err >&5
14900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901 (exit $ac_status); } && {
14902 test -z "$ac_c_werror_flag" ||
14903 test ! -s conftest.err
14904 } && test -s conftest$ac_exeext &&
14905 $as_test_x conftest$ac_exeext; then
14906 ac_cv_lib_SM_SmcOpenConnection=yes
14907 else
14908 echo "$as_me: failed program was:" >&5
14909 sed 's/^/| /' conftest.$ac_ext >&5
14911 ac_cv_lib_SM_SmcOpenConnection=no
14914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14915 conftest$ac_exeext conftest.$ac_ext
14916 LIBS=$ac_check_lib_save_LIBS
14918 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14919 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14920 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14921 HAVE_X_SM=yes
14928 if test "${HAVE_X_SM}" = "yes"; then
14930 cat >>confdefs.h <<\_ACEOF
14931 #define HAVE_X_SM 1
14932 _ACEOF
14934 case "$LIBS" in
14935 *-lSM*) ;;
14936 *) LIBS="-lSM -lICE $LIBS" ;;
14937 esac
14941 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14942 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14943 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14944 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14945 echo $ECHO_N "(cached) $ECHO_C" >&6
14946 else
14947 cat >conftest.$ac_ext <<_ACEOF
14948 /* confdefs.h. */
14949 _ACEOF
14950 cat confdefs.h >>conftest.$ac_ext
14951 cat >>conftest.$ac_ext <<_ACEOF
14952 /* end confdefs.h. */
14953 #include <netdb.h>
14955 main ()
14957 return h_errno;
14959 return 0;
14961 _ACEOF
14962 rm -f conftest.$ac_objext conftest$ac_exeext
14963 if { (ac_try="$ac_link"
14964 case "(($ac_try" in
14965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14966 *) ac_try_echo=$ac_try;;
14967 esac
14968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14969 (eval "$ac_link") 2>conftest.er1
14970 ac_status=$?
14971 grep -v '^ *+' conftest.er1 >conftest.err
14972 rm -f conftest.er1
14973 cat conftest.err >&5
14974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975 (exit $ac_status); } && {
14976 test -z "$ac_c_werror_flag" ||
14977 test ! -s conftest.err
14978 } && test -s conftest$ac_exeext &&
14979 $as_test_x conftest$ac_exeext; then
14980 emacs_cv_netdb_declares_h_errno=yes
14981 else
14982 echo "$as_me: failed program was:" >&5
14983 sed 's/^/| /' conftest.$ac_ext >&5
14985 emacs_cv_netdb_declares_h_errno=no
14988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14989 conftest$ac_exeext conftest.$ac_ext
14991 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14992 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14993 if test $emacs_cv_netdb_declares_h_errno = yes; then
14995 cat >>confdefs.h <<\_ACEOF
14996 #define HAVE_H_ERRNO 1
14997 _ACEOF
15001 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15002 # for constant arguments. Useless!
15003 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15004 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15005 if test "${ac_cv_working_alloca_h+set}" = set; then
15006 echo $ECHO_N "(cached) $ECHO_C" >&6
15007 else
15008 cat >conftest.$ac_ext <<_ACEOF
15009 /* confdefs.h. */
15010 _ACEOF
15011 cat confdefs.h >>conftest.$ac_ext
15012 cat >>conftest.$ac_ext <<_ACEOF
15013 /* end confdefs.h. */
15014 #include <alloca.h>
15016 main ()
15018 char *p = (char *) alloca (2 * sizeof (int));
15019 if (p) return 0;
15021 return 0;
15023 _ACEOF
15024 rm -f conftest.$ac_objext conftest$ac_exeext
15025 if { (ac_try="$ac_link"
15026 case "(($ac_try" in
15027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15028 *) ac_try_echo=$ac_try;;
15029 esac
15030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15031 (eval "$ac_link") 2>conftest.er1
15032 ac_status=$?
15033 grep -v '^ *+' conftest.er1 >conftest.err
15034 rm -f conftest.er1
15035 cat conftest.err >&5
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); } && {
15038 test -z "$ac_c_werror_flag" ||
15039 test ! -s conftest.err
15040 } && test -s conftest$ac_exeext &&
15041 $as_test_x conftest$ac_exeext; then
15042 ac_cv_working_alloca_h=yes
15043 else
15044 echo "$as_me: failed program was:" >&5
15045 sed 's/^/| /' conftest.$ac_ext >&5
15047 ac_cv_working_alloca_h=no
15050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15051 conftest$ac_exeext conftest.$ac_ext
15053 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15054 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15055 if test $ac_cv_working_alloca_h = yes; then
15057 cat >>confdefs.h <<\_ACEOF
15058 #define HAVE_ALLOCA_H 1
15059 _ACEOF
15063 { echo "$as_me:$LINENO: checking for alloca" >&5
15064 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15065 if test "${ac_cv_func_alloca_works+set}" = set; then
15066 echo $ECHO_N "(cached) $ECHO_C" >&6
15067 else
15068 cat >conftest.$ac_ext <<_ACEOF
15069 /* confdefs.h. */
15070 _ACEOF
15071 cat confdefs.h >>conftest.$ac_ext
15072 cat >>conftest.$ac_ext <<_ACEOF
15073 /* end confdefs.h. */
15074 #ifdef __GNUC__
15075 # define alloca __builtin_alloca
15076 #else
15077 # ifdef _MSC_VER
15078 # include <malloc.h>
15079 # define alloca _alloca
15080 # else
15081 # ifdef HAVE_ALLOCA_H
15082 # include <alloca.h>
15083 # else
15084 # ifdef _AIX
15085 #pragma alloca
15086 # else
15087 # ifndef alloca /* predefined by HP cc +Olibcalls */
15088 char *alloca ();
15089 # endif
15090 # endif
15091 # endif
15092 # endif
15093 #endif
15096 main ()
15098 char *p = (char *) alloca (1);
15099 if (p) return 0;
15101 return 0;
15103 _ACEOF
15104 rm -f conftest.$ac_objext conftest$ac_exeext
15105 if { (ac_try="$ac_link"
15106 case "(($ac_try" in
15107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15108 *) ac_try_echo=$ac_try;;
15109 esac
15110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15111 (eval "$ac_link") 2>conftest.er1
15112 ac_status=$?
15113 grep -v '^ *+' conftest.er1 >conftest.err
15114 rm -f conftest.er1
15115 cat conftest.err >&5
15116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117 (exit $ac_status); } && {
15118 test -z "$ac_c_werror_flag" ||
15119 test ! -s conftest.err
15120 } && test -s conftest$ac_exeext &&
15121 $as_test_x conftest$ac_exeext; then
15122 ac_cv_func_alloca_works=yes
15123 else
15124 echo "$as_me: failed program was:" >&5
15125 sed 's/^/| /' conftest.$ac_ext >&5
15127 ac_cv_func_alloca_works=no
15130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15131 conftest$ac_exeext conftest.$ac_ext
15133 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15134 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15136 if test $ac_cv_func_alloca_works = yes; then
15138 cat >>confdefs.h <<\_ACEOF
15139 #define HAVE_ALLOCA 1
15140 _ACEOF
15142 else
15143 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15144 # that cause trouble. Some versions do not even contain alloca or
15145 # contain a buggy version. If you still want to use their alloca,
15146 # use ar to extract alloca.o from them instead of compiling alloca.c.
15148 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15150 cat >>confdefs.h <<\_ACEOF
15151 #define C_ALLOCA 1
15152 _ACEOF
15155 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15156 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
15157 if test "${ac_cv_os_cray+set}" = set; then
15158 echo $ECHO_N "(cached) $ECHO_C" >&6
15159 else
15160 cat >conftest.$ac_ext <<_ACEOF
15161 /* confdefs.h. */
15162 _ACEOF
15163 cat confdefs.h >>conftest.$ac_ext
15164 cat >>conftest.$ac_ext <<_ACEOF
15165 /* end confdefs.h. */
15166 #if defined CRAY && ! defined CRAY2
15167 webecray
15168 #else
15169 wenotbecray
15170 #endif
15172 _ACEOF
15173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15174 $EGREP "webecray" >/dev/null 2>&1; then
15175 ac_cv_os_cray=yes
15176 else
15177 ac_cv_os_cray=no
15179 rm -f conftest*
15182 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15183 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15184 if test $ac_cv_os_cray = yes; then
15185 for ac_func in _getb67 GETB67 getb67; do
15186 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15187 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15188 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15189 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15190 echo $ECHO_N "(cached) $ECHO_C" >&6
15191 else
15192 cat >conftest.$ac_ext <<_ACEOF
15193 /* confdefs.h. */
15194 _ACEOF
15195 cat confdefs.h >>conftest.$ac_ext
15196 cat >>conftest.$ac_ext <<_ACEOF
15197 /* end confdefs.h. */
15198 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15200 #define $ac_func innocuous_$ac_func
15202 /* System header to define __stub macros and hopefully few prototypes,
15203 which can conflict with char $ac_func (); below.
15204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15205 <limits.h> exists even on freestanding compilers. */
15207 #ifdef __STDC__
15208 # include <limits.h>
15209 #else
15210 # include <assert.h>
15211 #endif
15213 #undef $ac_func
15215 /* Override any GCC internal prototype to avoid an error.
15216 Use char because int might match the return type of a GCC
15217 builtin and then its argument prototype would still apply. */
15218 #ifdef __cplusplus
15219 extern "C"
15220 #endif
15221 char $ac_func ();
15222 /* The GNU C library defines this for functions which it implements
15223 to always fail with ENOSYS. Some functions are actually named
15224 something starting with __ and the normal name is an alias. */
15225 #if defined __stub_$ac_func || defined __stub___$ac_func
15226 choke me
15227 #endif
15230 main ()
15232 return $ac_func ();
15234 return 0;
15236 _ACEOF
15237 rm -f conftest.$ac_objext conftest$ac_exeext
15238 if { (ac_try="$ac_link"
15239 case "(($ac_try" in
15240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15241 *) ac_try_echo=$ac_try;;
15242 esac
15243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15244 (eval "$ac_link") 2>conftest.er1
15245 ac_status=$?
15246 grep -v '^ *+' conftest.er1 >conftest.err
15247 rm -f conftest.er1
15248 cat conftest.err >&5
15249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250 (exit $ac_status); } && {
15251 test -z "$ac_c_werror_flag" ||
15252 test ! -s conftest.err
15253 } && test -s conftest$ac_exeext &&
15254 $as_test_x conftest$ac_exeext; then
15255 eval "$as_ac_var=yes"
15256 else
15257 echo "$as_me: failed program was:" >&5
15258 sed 's/^/| /' conftest.$ac_ext >&5
15260 eval "$as_ac_var=no"
15263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15264 conftest$ac_exeext conftest.$ac_ext
15266 ac_res=`eval echo '${'$as_ac_var'}'`
15267 { echo "$as_me:$LINENO: result: $ac_res" >&5
15268 echo "${ECHO_T}$ac_res" >&6; }
15269 if test `eval echo '${'$as_ac_var'}'` = yes; then
15271 cat >>confdefs.h <<_ACEOF
15272 #define CRAY_STACKSEG_END $ac_func
15273 _ACEOF
15275 break
15278 done
15281 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15282 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
15283 if test "${ac_cv_c_stack_direction+set}" = set; then
15284 echo $ECHO_N "(cached) $ECHO_C" >&6
15285 else
15286 if test "$cross_compiling" = yes; then
15287 ac_cv_c_stack_direction=0
15288 else
15289 cat >conftest.$ac_ext <<_ACEOF
15290 /* confdefs.h. */
15291 _ACEOF
15292 cat confdefs.h >>conftest.$ac_ext
15293 cat >>conftest.$ac_ext <<_ACEOF
15294 /* end confdefs.h. */
15295 $ac_includes_default
15297 find_stack_direction ()
15299 static char *addr = 0;
15300 auto char dummy;
15301 if (addr == 0)
15303 addr = &dummy;
15304 return find_stack_direction ();
15306 else
15307 return (&dummy > addr) ? 1 : -1;
15311 main ()
15313 return find_stack_direction () < 0;
15315 _ACEOF
15316 rm -f conftest$ac_exeext
15317 if { (ac_try="$ac_link"
15318 case "(($ac_try" in
15319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15320 *) ac_try_echo=$ac_try;;
15321 esac
15322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15323 (eval "$ac_link") 2>&5
15324 ac_status=$?
15325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15327 { (case "(($ac_try" in
15328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15329 *) ac_try_echo=$ac_try;;
15330 esac
15331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15332 (eval "$ac_try") 2>&5
15333 ac_status=$?
15334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 (exit $ac_status); }; }; then
15336 ac_cv_c_stack_direction=1
15337 else
15338 echo "$as_me: program exited with status $ac_status" >&5
15339 echo "$as_me: failed program was:" >&5
15340 sed 's/^/| /' conftest.$ac_ext >&5
15342 ( exit $ac_status )
15343 ac_cv_c_stack_direction=-1
15345 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15350 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15351 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15353 cat >>confdefs.h <<_ACEOF
15354 #define STACK_DIRECTION $ac_cv_c_stack_direction
15355 _ACEOF
15361 if test x"$ac_cv_func_alloca_works" != xyes; then
15362 { { echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
15363 echo "$as_me: error: a system implementation of alloca is required " >&2;}
15364 { (exit 1); exit 1; }; }
15367 # fmod, logb, and frexp are found in -lm on most systems.
15368 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15370 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15371 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15372 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15373 echo $ECHO_N "(cached) $ECHO_C" >&6
15374 else
15375 ac_check_lib_save_LIBS=$LIBS
15376 LIBS="-lm $LIBS"
15377 cat >conftest.$ac_ext <<_ACEOF
15378 /* confdefs.h. */
15379 _ACEOF
15380 cat confdefs.h >>conftest.$ac_ext
15381 cat >>conftest.$ac_ext <<_ACEOF
15382 /* end confdefs.h. */
15384 /* Override any GCC internal prototype to avoid an error.
15385 Use char because int might match the return type of a GCC
15386 builtin and then its argument prototype would still apply. */
15387 #ifdef __cplusplus
15388 extern "C"
15389 #endif
15390 char sqrt ();
15392 main ()
15394 return sqrt ();
15396 return 0;
15398 _ACEOF
15399 rm -f conftest.$ac_objext conftest$ac_exeext
15400 if { (ac_try="$ac_link"
15401 case "(($ac_try" in
15402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15403 *) ac_try_echo=$ac_try;;
15404 esac
15405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15406 (eval "$ac_link") 2>conftest.er1
15407 ac_status=$?
15408 grep -v '^ *+' conftest.er1 >conftest.err
15409 rm -f conftest.er1
15410 cat conftest.err >&5
15411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412 (exit $ac_status); } && {
15413 test -z "$ac_c_werror_flag" ||
15414 test ! -s conftest.err
15415 } && test -s conftest$ac_exeext &&
15416 $as_test_x conftest$ac_exeext; then
15417 ac_cv_lib_m_sqrt=yes
15418 else
15419 echo "$as_me: failed program was:" >&5
15420 sed 's/^/| /' conftest.$ac_ext >&5
15422 ac_cv_lib_m_sqrt=no
15425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15426 conftest$ac_exeext conftest.$ac_ext
15427 LIBS=$ac_check_lib_save_LIBS
15429 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15430 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15431 if test $ac_cv_lib_m_sqrt = yes; then
15432 cat >>confdefs.h <<_ACEOF
15433 #define HAVE_LIBM 1
15434 _ACEOF
15436 LIBS="-lm $LIBS"
15441 # Check for mail-locking functions in a "mail" library. Probably this should
15442 # have the same check as for liblockfile below.
15444 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15445 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15446 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15447 echo $ECHO_N "(cached) $ECHO_C" >&6
15448 else
15449 ac_check_lib_save_LIBS=$LIBS
15450 LIBS="-lmail $LIBS"
15451 cat >conftest.$ac_ext <<_ACEOF
15452 /* confdefs.h. */
15453 _ACEOF
15454 cat confdefs.h >>conftest.$ac_ext
15455 cat >>conftest.$ac_ext <<_ACEOF
15456 /* end confdefs.h. */
15458 /* Override any GCC internal prototype to avoid an error.
15459 Use char because int might match the return type of a GCC
15460 builtin and then its argument prototype would still apply. */
15461 #ifdef __cplusplus
15462 extern "C"
15463 #endif
15464 char maillock ();
15466 main ()
15468 return maillock ();
15470 return 0;
15472 _ACEOF
15473 rm -f conftest.$ac_objext conftest$ac_exeext
15474 if { (ac_try="$ac_link"
15475 case "(($ac_try" in
15476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15477 *) ac_try_echo=$ac_try;;
15478 esac
15479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15480 (eval "$ac_link") 2>conftest.er1
15481 ac_status=$?
15482 grep -v '^ *+' conftest.er1 >conftest.err
15483 rm -f conftest.er1
15484 cat conftest.err >&5
15485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15486 (exit $ac_status); } && {
15487 test -z "$ac_c_werror_flag" ||
15488 test ! -s conftest.err
15489 } && test -s conftest$ac_exeext &&
15490 $as_test_x conftest$ac_exeext; then
15491 ac_cv_lib_mail_maillock=yes
15492 else
15493 echo "$as_me: failed program was:" >&5
15494 sed 's/^/| /' conftest.$ac_ext >&5
15496 ac_cv_lib_mail_maillock=no
15499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15500 conftest$ac_exeext conftest.$ac_ext
15501 LIBS=$ac_check_lib_save_LIBS
15503 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15504 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15505 if test $ac_cv_lib_mail_maillock = yes; then
15506 cat >>confdefs.h <<_ACEOF
15507 #define HAVE_LIBMAIL 1
15508 _ACEOF
15510 LIBS="-lmail $LIBS"
15515 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15516 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15517 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15518 echo $ECHO_N "(cached) $ECHO_C" >&6
15519 else
15520 ac_check_lib_save_LIBS=$LIBS
15521 LIBS="-llockfile $LIBS"
15522 cat >conftest.$ac_ext <<_ACEOF
15523 /* confdefs.h. */
15524 _ACEOF
15525 cat confdefs.h >>conftest.$ac_ext
15526 cat >>conftest.$ac_ext <<_ACEOF
15527 /* end confdefs.h. */
15529 /* Override any GCC internal prototype to avoid an error.
15530 Use char because int might match the return type of a GCC
15531 builtin and then its argument prototype would still apply. */
15532 #ifdef __cplusplus
15533 extern "C"
15534 #endif
15535 char maillock ();
15537 main ()
15539 return maillock ();
15541 return 0;
15543 _ACEOF
15544 rm -f conftest.$ac_objext conftest$ac_exeext
15545 if { (ac_try="$ac_link"
15546 case "(($ac_try" in
15547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15548 *) ac_try_echo=$ac_try;;
15549 esac
15550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15551 (eval "$ac_link") 2>conftest.er1
15552 ac_status=$?
15553 grep -v '^ *+' conftest.er1 >conftest.err
15554 rm -f conftest.er1
15555 cat conftest.err >&5
15556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557 (exit $ac_status); } && {
15558 test -z "$ac_c_werror_flag" ||
15559 test ! -s conftest.err
15560 } && test -s conftest$ac_exeext &&
15561 $as_test_x conftest$ac_exeext; then
15562 ac_cv_lib_lockfile_maillock=yes
15563 else
15564 echo "$as_me: failed program was:" >&5
15565 sed 's/^/| /' conftest.$ac_ext >&5
15567 ac_cv_lib_lockfile_maillock=no
15570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15571 conftest$ac_exeext conftest.$ac_ext
15572 LIBS=$ac_check_lib_save_LIBS
15574 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15575 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15576 if test $ac_cv_lib_lockfile_maillock = yes; then
15577 cat >>confdefs.h <<_ACEOF
15578 #define HAVE_LIBLOCKFILE 1
15579 _ACEOF
15581 LIBS="-llockfile $LIBS"
15585 # If we have the shared liblockfile, assume we must use it for mail
15586 # locking (e.g. Debian). If we couldn't link against liblockfile
15587 # (no liblockfile.a installed), ensure that we don't need to.
15588 if test "$ac_cv_lib_lockfile_maillock" = no; then
15589 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15590 set dummy liblockfile.so; ac_word=$2
15591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15593 if test "${ac_cv_prog_liblockfile+set}" = set; then
15594 echo $ECHO_N "(cached) $ECHO_C" >&6
15595 else
15596 if test -n "$liblockfile"; then
15597 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15598 else
15599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15600 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15601 for as_dir in $as_dummy
15603 IFS=$as_save_IFS
15604 test -z "$as_dir" && as_dir=.
15605 for ac_exec_ext in '' $ac_executable_extensions; do
15606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15607 ac_cv_prog_liblockfile="yes"
15608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15609 break 2
15611 done
15612 done
15613 IFS=$as_save_IFS
15615 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15618 liblockfile=$ac_cv_prog_liblockfile
15619 if test -n "$liblockfile"; then
15620 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15621 echo "${ECHO_T}$liblockfile" >&6; }
15622 else
15623 { echo "$as_me:$LINENO: result: no" >&5
15624 echo "${ECHO_T}no" >&6; }
15628 if test $ac_cv_prog_liblockfile = yes; then
15629 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15630 This probably means that movemail could lose mail.
15631 There may be a \`development' package to install containing liblockfile." >&5
15632 echo "$as_me: error: Shared liblockfile found but can't link against it.
15633 This probably means that movemail could lose mail.
15634 There may be a \`development' package to install containing liblockfile." >&2;}
15635 { (exit 1); exit 1; }; }
15636 else :
15640 for ac_func in touchlock
15642 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15643 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15644 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15645 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15646 echo $ECHO_N "(cached) $ECHO_C" >&6
15647 else
15648 cat >conftest.$ac_ext <<_ACEOF
15649 /* confdefs.h. */
15650 _ACEOF
15651 cat confdefs.h >>conftest.$ac_ext
15652 cat >>conftest.$ac_ext <<_ACEOF
15653 /* end confdefs.h. */
15654 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15655 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15656 #define $ac_func innocuous_$ac_func
15658 /* System header to define __stub macros and hopefully few prototypes,
15659 which can conflict with char $ac_func (); below.
15660 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15661 <limits.h> exists even on freestanding compilers. */
15663 #ifdef __STDC__
15664 # include <limits.h>
15665 #else
15666 # include <assert.h>
15667 #endif
15669 #undef $ac_func
15671 /* Override any GCC internal prototype to avoid an error.
15672 Use char because int might match the return type of a GCC
15673 builtin and then its argument prototype would still apply. */
15674 #ifdef __cplusplus
15675 extern "C"
15676 #endif
15677 char $ac_func ();
15678 /* The GNU C library defines this for functions which it implements
15679 to always fail with ENOSYS. Some functions are actually named
15680 something starting with __ and the normal name is an alias. */
15681 #if defined __stub_$ac_func || defined __stub___$ac_func
15682 choke me
15683 #endif
15686 main ()
15688 return $ac_func ();
15690 return 0;
15692 _ACEOF
15693 rm -f conftest.$ac_objext conftest$ac_exeext
15694 if { (ac_try="$ac_link"
15695 case "(($ac_try" in
15696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15697 *) ac_try_echo=$ac_try;;
15698 esac
15699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15700 (eval "$ac_link") 2>conftest.er1
15701 ac_status=$?
15702 grep -v '^ *+' conftest.er1 >conftest.err
15703 rm -f conftest.er1
15704 cat conftest.err >&5
15705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706 (exit $ac_status); } && {
15707 test -z "$ac_c_werror_flag" ||
15708 test ! -s conftest.err
15709 } && test -s conftest$ac_exeext &&
15710 $as_test_x conftest$ac_exeext; then
15711 eval "$as_ac_var=yes"
15712 else
15713 echo "$as_me: failed program was:" >&5
15714 sed 's/^/| /' conftest.$ac_ext >&5
15716 eval "$as_ac_var=no"
15719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15720 conftest$ac_exeext conftest.$ac_ext
15722 ac_res=`eval echo '${'$as_ac_var'}'`
15723 { echo "$as_me:$LINENO: result: $ac_res" >&5
15724 echo "${ECHO_T}$ac_res" >&6; }
15725 if test `eval echo '${'$as_ac_var'}'` = yes; then
15726 cat >>confdefs.h <<_ACEOF
15727 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15728 _ACEOF
15731 done
15734 for ac_header in maillock.h
15736 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15738 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15740 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15741 echo $ECHO_N "(cached) $ECHO_C" >&6
15743 ac_res=`eval echo '${'$as_ac_Header'}'`
15744 { echo "$as_me:$LINENO: result: $ac_res" >&5
15745 echo "${ECHO_T}$ac_res" >&6; }
15746 else
15747 # Is the header compilable?
15748 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15749 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15750 cat >conftest.$ac_ext <<_ACEOF
15751 /* confdefs.h. */
15752 _ACEOF
15753 cat confdefs.h >>conftest.$ac_ext
15754 cat >>conftest.$ac_ext <<_ACEOF
15755 /* end confdefs.h. */
15756 $ac_includes_default
15757 #include <$ac_header>
15758 _ACEOF
15759 rm -f conftest.$ac_objext
15760 if { (ac_try="$ac_compile"
15761 case "(($ac_try" in
15762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15763 *) ac_try_echo=$ac_try;;
15764 esac
15765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15766 (eval "$ac_compile") 2>conftest.er1
15767 ac_status=$?
15768 grep -v '^ *+' conftest.er1 >conftest.err
15769 rm -f conftest.er1
15770 cat conftest.err >&5
15771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772 (exit $ac_status); } && {
15773 test -z "$ac_c_werror_flag" ||
15774 test ! -s conftest.err
15775 } && test -s conftest.$ac_objext; then
15776 ac_header_compiler=yes
15777 else
15778 echo "$as_me: failed program was:" >&5
15779 sed 's/^/| /' conftest.$ac_ext >&5
15781 ac_header_compiler=no
15784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15785 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15786 echo "${ECHO_T}$ac_header_compiler" >&6; }
15788 # Is the header present?
15789 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15790 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15791 cat >conftest.$ac_ext <<_ACEOF
15792 /* confdefs.h. */
15793 _ACEOF
15794 cat confdefs.h >>conftest.$ac_ext
15795 cat >>conftest.$ac_ext <<_ACEOF
15796 /* end confdefs.h. */
15797 #include <$ac_header>
15798 _ACEOF
15799 if { (ac_try="$ac_cpp conftest.$ac_ext"
15800 case "(($ac_try" in
15801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15802 *) ac_try_echo=$ac_try;;
15803 esac
15804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15805 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15806 ac_status=$?
15807 grep -v '^ *+' conftest.er1 >conftest.err
15808 rm -f conftest.er1
15809 cat conftest.err >&5
15810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811 (exit $ac_status); } >/dev/null && {
15812 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15813 test ! -s conftest.err
15814 }; then
15815 ac_header_preproc=yes
15816 else
15817 echo "$as_me: failed program was:" >&5
15818 sed 's/^/| /' conftest.$ac_ext >&5
15820 ac_header_preproc=no
15823 rm -f conftest.err conftest.$ac_ext
15824 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15825 echo "${ECHO_T}$ac_header_preproc" >&6; }
15827 # So? What about this header?
15828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15829 yes:no: )
15830 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15831 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15833 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15834 ac_header_preproc=yes
15836 no:yes:* )
15837 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15838 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15839 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15840 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15841 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15842 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15843 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15844 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15846 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15847 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15848 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15851 esac
15852 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15855 echo $ECHO_N "(cached) $ECHO_C" >&6
15856 else
15857 eval "$as_ac_Header=\$ac_header_preproc"
15859 ac_res=`eval echo '${'$as_ac_Header'}'`
15860 { echo "$as_me:$LINENO: result: $ac_res" >&5
15861 echo "${ECHO_T}$ac_res" >&6; }
15864 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15865 cat >>confdefs.h <<_ACEOF
15866 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15867 _ACEOF
15871 done
15942 for ac_func in gethostname getdomainname dup2 \
15943 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15944 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
15945 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15946 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15947 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15948 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15949 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15950 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15952 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15953 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15955 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15956 echo $ECHO_N "(cached) $ECHO_C" >&6
15957 else
15958 cat >conftest.$ac_ext <<_ACEOF
15959 /* confdefs.h. */
15960 _ACEOF
15961 cat confdefs.h >>conftest.$ac_ext
15962 cat >>conftest.$ac_ext <<_ACEOF
15963 /* end confdefs.h. */
15964 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15966 #define $ac_func innocuous_$ac_func
15968 /* System header to define __stub macros and hopefully few prototypes,
15969 which can conflict with char $ac_func (); below.
15970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15971 <limits.h> exists even on freestanding compilers. */
15973 #ifdef __STDC__
15974 # include <limits.h>
15975 #else
15976 # include <assert.h>
15977 #endif
15979 #undef $ac_func
15981 /* Override any GCC internal prototype to avoid an error.
15982 Use char because int might match the return type of a GCC
15983 builtin and then its argument prototype would still apply. */
15984 #ifdef __cplusplus
15985 extern "C"
15986 #endif
15987 char $ac_func ();
15988 /* The GNU C library defines this for functions which it implements
15989 to always fail with ENOSYS. Some functions are actually named
15990 something starting with __ and the normal name is an alias. */
15991 #if defined __stub_$ac_func || defined __stub___$ac_func
15992 choke me
15993 #endif
15996 main ()
15998 return $ac_func ();
16000 return 0;
16002 _ACEOF
16003 rm -f conftest.$ac_objext conftest$ac_exeext
16004 if { (ac_try="$ac_link"
16005 case "(($ac_try" in
16006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16007 *) ac_try_echo=$ac_try;;
16008 esac
16009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16010 (eval "$ac_link") 2>conftest.er1
16011 ac_status=$?
16012 grep -v '^ *+' conftest.er1 >conftest.err
16013 rm -f conftest.er1
16014 cat conftest.err >&5
16015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016 (exit $ac_status); } && {
16017 test -z "$ac_c_werror_flag" ||
16018 test ! -s conftest.err
16019 } && test -s conftest$ac_exeext &&
16020 $as_test_x conftest$ac_exeext; then
16021 eval "$as_ac_var=yes"
16022 else
16023 echo "$as_me: failed program was:" >&5
16024 sed 's/^/| /' conftest.$ac_ext >&5
16026 eval "$as_ac_var=no"
16029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16030 conftest$ac_exeext conftest.$ac_ext
16032 ac_res=`eval echo '${'$as_ac_var'}'`
16033 { echo "$as_me:$LINENO: result: $ac_res" >&5
16034 echo "${ECHO_T}$ac_res" >&6; }
16035 if test `eval echo '${'$as_ac_var'}'` = yes; then
16036 cat >>confdefs.h <<_ACEOF
16037 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16038 _ACEOF
16041 done
16045 for ac_header in sys/un.h
16047 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16049 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16052 echo $ECHO_N "(cached) $ECHO_C" >&6
16054 ac_res=`eval echo '${'$as_ac_Header'}'`
16055 { echo "$as_me:$LINENO: result: $ac_res" >&5
16056 echo "${ECHO_T}$ac_res" >&6; }
16057 else
16058 # Is the header compilable?
16059 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16060 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16061 cat >conftest.$ac_ext <<_ACEOF
16062 /* confdefs.h. */
16063 _ACEOF
16064 cat confdefs.h >>conftest.$ac_ext
16065 cat >>conftest.$ac_ext <<_ACEOF
16066 /* end confdefs.h. */
16067 $ac_includes_default
16068 #include <$ac_header>
16069 _ACEOF
16070 rm -f conftest.$ac_objext
16071 if { (ac_try="$ac_compile"
16072 case "(($ac_try" in
16073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16074 *) ac_try_echo=$ac_try;;
16075 esac
16076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16077 (eval "$ac_compile") 2>conftest.er1
16078 ac_status=$?
16079 grep -v '^ *+' conftest.er1 >conftest.err
16080 rm -f conftest.er1
16081 cat conftest.err >&5
16082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083 (exit $ac_status); } && {
16084 test -z "$ac_c_werror_flag" ||
16085 test ! -s conftest.err
16086 } && test -s conftest.$ac_objext; then
16087 ac_header_compiler=yes
16088 else
16089 echo "$as_me: failed program was:" >&5
16090 sed 's/^/| /' conftest.$ac_ext >&5
16092 ac_header_compiler=no
16095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16096 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16097 echo "${ECHO_T}$ac_header_compiler" >&6; }
16099 # Is the header present?
16100 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16101 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16102 cat >conftest.$ac_ext <<_ACEOF
16103 /* confdefs.h. */
16104 _ACEOF
16105 cat confdefs.h >>conftest.$ac_ext
16106 cat >>conftest.$ac_ext <<_ACEOF
16107 /* end confdefs.h. */
16108 #include <$ac_header>
16109 _ACEOF
16110 if { (ac_try="$ac_cpp conftest.$ac_ext"
16111 case "(($ac_try" in
16112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16113 *) ac_try_echo=$ac_try;;
16114 esac
16115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16116 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16117 ac_status=$?
16118 grep -v '^ *+' conftest.er1 >conftest.err
16119 rm -f conftest.er1
16120 cat conftest.err >&5
16121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16122 (exit $ac_status); } >/dev/null && {
16123 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16124 test ! -s conftest.err
16125 }; then
16126 ac_header_preproc=yes
16127 else
16128 echo "$as_me: failed program was:" >&5
16129 sed 's/^/| /' conftest.$ac_ext >&5
16131 ac_header_preproc=no
16134 rm -f conftest.err conftest.$ac_ext
16135 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16136 echo "${ECHO_T}$ac_header_preproc" >&6; }
16138 # So? What about this header?
16139 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16140 yes:no: )
16141 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16142 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16144 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16145 ac_header_preproc=yes
16147 no:yes:* )
16148 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16149 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16150 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16151 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16152 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16153 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16154 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16155 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16156 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16157 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16158 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16159 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16162 esac
16163 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16164 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16165 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16166 echo $ECHO_N "(cached) $ECHO_C" >&6
16167 else
16168 eval "$as_ac_Header=\$ac_header_preproc"
16170 ac_res=`eval echo '${'$as_ac_Header'}'`
16171 { echo "$as_me:$LINENO: result: $ac_res" >&5
16172 echo "${ECHO_T}$ac_res" >&6; }
16175 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16176 cat >>confdefs.h <<_ACEOF
16177 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16178 _ACEOF
16182 done
16189 for ac_header in $ac_header_list
16191 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16193 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16196 echo $ECHO_N "(cached) $ECHO_C" >&6
16198 ac_res=`eval echo '${'$as_ac_Header'}'`
16199 { echo "$as_me:$LINENO: result: $ac_res" >&5
16200 echo "${ECHO_T}$ac_res" >&6; }
16201 else
16202 # Is the header compilable?
16203 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16204 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16205 cat >conftest.$ac_ext <<_ACEOF
16206 /* confdefs.h. */
16207 _ACEOF
16208 cat confdefs.h >>conftest.$ac_ext
16209 cat >>conftest.$ac_ext <<_ACEOF
16210 /* end confdefs.h. */
16211 $ac_includes_default
16212 #include <$ac_header>
16213 _ACEOF
16214 rm -f conftest.$ac_objext
16215 if { (ac_try="$ac_compile"
16216 case "(($ac_try" in
16217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16218 *) ac_try_echo=$ac_try;;
16219 esac
16220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16221 (eval "$ac_compile") 2>conftest.er1
16222 ac_status=$?
16223 grep -v '^ *+' conftest.er1 >conftest.err
16224 rm -f conftest.er1
16225 cat conftest.err >&5
16226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227 (exit $ac_status); } && {
16228 test -z "$ac_c_werror_flag" ||
16229 test ! -s conftest.err
16230 } && test -s conftest.$ac_objext; then
16231 ac_header_compiler=yes
16232 else
16233 echo "$as_me: failed program was:" >&5
16234 sed 's/^/| /' conftest.$ac_ext >&5
16236 ac_header_compiler=no
16239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16240 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16241 echo "${ECHO_T}$ac_header_compiler" >&6; }
16243 # Is the header present?
16244 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16245 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16246 cat >conftest.$ac_ext <<_ACEOF
16247 /* confdefs.h. */
16248 _ACEOF
16249 cat confdefs.h >>conftest.$ac_ext
16250 cat >>conftest.$ac_ext <<_ACEOF
16251 /* end confdefs.h. */
16252 #include <$ac_header>
16253 _ACEOF
16254 if { (ac_try="$ac_cpp conftest.$ac_ext"
16255 case "(($ac_try" in
16256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16257 *) ac_try_echo=$ac_try;;
16258 esac
16259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16261 ac_status=$?
16262 grep -v '^ *+' conftest.er1 >conftest.err
16263 rm -f conftest.er1
16264 cat conftest.err >&5
16265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266 (exit $ac_status); } >/dev/null && {
16267 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16268 test ! -s conftest.err
16269 }; then
16270 ac_header_preproc=yes
16271 else
16272 echo "$as_me: failed program was:" >&5
16273 sed 's/^/| /' conftest.$ac_ext >&5
16275 ac_header_preproc=no
16278 rm -f conftest.err conftest.$ac_ext
16279 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16280 echo "${ECHO_T}$ac_header_preproc" >&6; }
16282 # So? What about this header?
16283 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16284 yes:no: )
16285 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16286 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16287 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16288 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16289 ac_header_preproc=yes
16291 no:yes:* )
16292 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16293 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16294 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16295 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16296 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16297 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16298 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16299 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16300 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16301 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16302 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16303 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16306 esac
16307 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16310 echo $ECHO_N "(cached) $ECHO_C" >&6
16311 else
16312 eval "$as_ac_Header=\$ac_header_preproc"
16314 ac_res=`eval echo '${'$as_ac_Header'}'`
16315 { echo "$as_me:$LINENO: result: $ac_res" >&5
16316 echo "${ECHO_T}$ac_res" >&6; }
16319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16320 cat >>confdefs.h <<_ACEOF
16321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16322 _ACEOF
16326 done
16336 for ac_func in $ac_func_list
16338 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16339 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16341 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16342 echo $ECHO_N "(cached) $ECHO_C" >&6
16343 else
16344 cat >conftest.$ac_ext <<_ACEOF
16345 /* confdefs.h. */
16346 _ACEOF
16347 cat confdefs.h >>conftest.$ac_ext
16348 cat >>conftest.$ac_ext <<_ACEOF
16349 /* end confdefs.h. */
16350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16352 #define $ac_func innocuous_$ac_func
16354 /* System header to define __stub macros and hopefully few prototypes,
16355 which can conflict with char $ac_func (); below.
16356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16357 <limits.h> exists even on freestanding compilers. */
16359 #ifdef __STDC__
16360 # include <limits.h>
16361 #else
16362 # include <assert.h>
16363 #endif
16365 #undef $ac_func
16367 /* Override any GCC internal prototype to avoid an error.
16368 Use char because int might match the return type of a GCC
16369 builtin and then its argument prototype would still apply. */
16370 #ifdef __cplusplus
16371 extern "C"
16372 #endif
16373 char $ac_func ();
16374 /* The GNU C library defines this for functions which it implements
16375 to always fail with ENOSYS. Some functions are actually named
16376 something starting with __ and the normal name is an alias. */
16377 #if defined __stub_$ac_func || defined __stub___$ac_func
16378 choke me
16379 #endif
16382 main ()
16384 return $ac_func ();
16386 return 0;
16388 _ACEOF
16389 rm -f conftest.$ac_objext conftest$ac_exeext
16390 if { (ac_try="$ac_link"
16391 case "(($ac_try" in
16392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16393 *) ac_try_echo=$ac_try;;
16394 esac
16395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16396 (eval "$ac_link") 2>conftest.er1
16397 ac_status=$?
16398 grep -v '^ *+' conftest.er1 >conftest.err
16399 rm -f conftest.er1
16400 cat conftest.err >&5
16401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402 (exit $ac_status); } && {
16403 test -z "$ac_c_werror_flag" ||
16404 test ! -s conftest.err
16405 } && test -s conftest$ac_exeext &&
16406 $as_test_x conftest$ac_exeext; then
16407 eval "$as_ac_var=yes"
16408 else
16409 echo "$as_me: failed program was:" >&5
16410 sed 's/^/| /' conftest.$ac_ext >&5
16412 eval "$as_ac_var=no"
16415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16416 conftest$ac_exeext conftest.$ac_ext
16418 ac_res=`eval echo '${'$as_ac_var'}'`
16419 { echo "$as_me:$LINENO: result: $ac_res" >&5
16420 echo "${ECHO_T}$ac_res" >&6; }
16421 if test `eval echo '${'$as_ac_var'}'` = yes; then
16422 cat >>confdefs.h <<_ACEOF
16423 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16424 _ACEOF
16427 done
16445 { echo "$as_me:$LINENO: checking for working mktime" >&5
16446 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16447 if test "${ac_cv_func_working_mktime+set}" = set; then
16448 echo $ECHO_N "(cached) $ECHO_C" >&6
16449 else
16450 if test "$cross_compiling" = yes; then
16451 ac_cv_func_working_mktime=no
16452 else
16453 cat >conftest.$ac_ext <<_ACEOF
16454 /* confdefs.h. */
16455 _ACEOF
16456 cat confdefs.h >>conftest.$ac_ext
16457 cat >>conftest.$ac_ext <<_ACEOF
16458 /* end confdefs.h. */
16459 /* Test program from Paul Eggert and Tony Leneis. */
16460 #ifdef TIME_WITH_SYS_TIME
16461 # include <sys/time.h>
16462 # include <time.h>
16463 #else
16464 # ifdef HAVE_SYS_TIME_H
16465 # include <sys/time.h>
16466 # else
16467 # include <time.h>
16468 # endif
16469 #endif
16471 #include <stdlib.h>
16473 #ifdef HAVE_UNISTD_H
16474 # include <unistd.h>
16475 #endif
16477 #ifndef HAVE_ALARM
16478 # define alarm(X) /* empty */
16479 #endif
16481 /* Work around redefinition to rpl_putenv by other config tests. */
16482 #undef putenv
16484 static time_t time_t_max;
16485 static time_t time_t_min;
16487 /* Values we'll use to set the TZ environment variable. */
16488 static char *tz_strings[] = {
16489 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16490 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16492 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16494 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16495 Based on a problem report from Andreas Jaeger. */
16496 static int
16497 spring_forward_gap ()
16499 /* glibc (up to about 1998-10-07) failed this test. */
16500 struct tm tm;
16502 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16503 instead of "TZ=America/Vancouver" in order to detect the bug even
16504 on systems that don't support the Olson extension, or don't have the
16505 full zoneinfo tables installed. */
16506 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16508 tm.tm_year = 98;
16509 tm.tm_mon = 3;
16510 tm.tm_mday = 5;
16511 tm.tm_hour = 2;
16512 tm.tm_min = 0;
16513 tm.tm_sec = 0;
16514 tm.tm_isdst = -1;
16515 return mktime (&tm) != (time_t) -1;
16518 static int
16519 mktime_test1 (now)
16520 time_t now;
16522 struct tm *lt;
16523 return ! (lt = localtime (&now)) || mktime (lt) == now;
16526 static int
16527 mktime_test (now)
16528 time_t now;
16530 return (mktime_test1 (now)
16531 && mktime_test1 ((time_t) (time_t_max - now))
16532 && mktime_test1 ((time_t) (time_t_min + now)));
16535 static int
16536 irix_6_4_bug ()
16538 /* Based on code from Ariel Faigon. */
16539 struct tm tm;
16540 tm.tm_year = 96;
16541 tm.tm_mon = 3;
16542 tm.tm_mday = 0;
16543 tm.tm_hour = 0;
16544 tm.tm_min = 0;
16545 tm.tm_sec = 0;
16546 tm.tm_isdst = -1;
16547 mktime (&tm);
16548 return tm.tm_mon == 2 && tm.tm_mday == 31;
16551 static int
16552 bigtime_test (j)
16553 int j;
16555 struct tm tm;
16556 time_t now;
16557 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16558 now = mktime (&tm);
16559 if (now != (time_t) -1)
16561 struct tm *lt = localtime (&now);
16562 if (! (lt
16563 && lt->tm_year == tm.tm_year
16564 && lt->tm_mon == tm.tm_mon
16565 && lt->tm_mday == tm.tm_mday
16566 && lt->tm_hour == tm.tm_hour
16567 && lt->tm_min == tm.tm_min
16568 && lt->tm_sec == tm.tm_sec
16569 && lt->tm_yday == tm.tm_yday
16570 && lt->tm_wday == tm.tm_wday
16571 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16572 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16573 return 0;
16575 return 1;
16578 static int
16579 year_2050_test ()
16581 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16582 ignoring leap seconds. */
16583 unsigned long int answer = 2527315200UL;
16585 struct tm tm;
16586 time_t t;
16587 tm.tm_year = 2050 - 1900;
16588 tm.tm_mon = 2 - 1;
16589 tm.tm_mday = 1;
16590 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16591 tm.tm_isdst = -1;
16593 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16594 instead of "TZ=America/Vancouver" in order to detect the bug even
16595 on systems that don't support the Olson extension, or don't have the
16596 full zoneinfo tables installed. */
16597 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16599 t = mktime (&tm);
16601 /* Check that the result is either a failure, or close enough
16602 to the correct answer that we can assume the discrepancy is
16603 due to leap seconds. */
16604 return (t == (time_t) -1
16605 || (0 < t && answer - 120 <= t && t <= answer + 120));
16609 main ()
16611 time_t t, delta;
16612 int i, j;
16614 /* This test makes some buggy mktime implementations loop.
16615 Give up after 60 seconds; a mktime slower than that
16616 isn't worth using anyway. */
16617 alarm (60);
16619 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16620 continue;
16621 time_t_max--;
16622 if ((time_t) -1 < 0)
16623 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16624 continue;
16625 delta = time_t_max / 997; /* a suitable prime number */
16626 for (i = 0; i < N_STRINGS; i++)
16628 if (tz_strings[i])
16629 putenv (tz_strings[i]);
16631 for (t = 0; t <= time_t_max - delta; t += delta)
16632 if (! mktime_test (t))
16633 return 1;
16634 if (! (mktime_test ((time_t) 1)
16635 && mktime_test ((time_t) (60 * 60))
16636 && mktime_test ((time_t) (60 * 60 * 24))))
16637 return 1;
16639 for (j = 1; 0 < j; j *= 2)
16640 if (! bigtime_test (j))
16641 return 1;
16642 if (! bigtime_test (j - 1))
16643 return 1;
16645 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16647 _ACEOF
16648 rm -f conftest$ac_exeext
16649 if { (ac_try="$ac_link"
16650 case "(($ac_try" in
16651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16652 *) ac_try_echo=$ac_try;;
16653 esac
16654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16655 (eval "$ac_link") 2>&5
16656 ac_status=$?
16657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16659 { (case "(($ac_try" in
16660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16661 *) ac_try_echo=$ac_try;;
16662 esac
16663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16664 (eval "$ac_try") 2>&5
16665 ac_status=$?
16666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667 (exit $ac_status); }; }; then
16668 ac_cv_func_working_mktime=yes
16669 else
16670 echo "$as_me: program exited with status $ac_status" >&5
16671 echo "$as_me: failed program was:" >&5
16672 sed 's/^/| /' conftest.$ac_ext >&5
16674 ( exit $ac_status )
16675 ac_cv_func_working_mktime=no
16677 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16682 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16683 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16684 if test $ac_cv_func_working_mktime = no; then
16685 case " $LIBOBJS " in
16686 *" mktime.$ac_objext "* ) ;;
16687 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16689 esac
16693 if test "$ac_cv_func_working_mktime" = no; then
16695 cat >>confdefs.h <<\_ACEOF
16696 #define BROKEN_MKTIME 1
16697 _ACEOF
16701 ac_have_func=no # yes means we've found a way to get the load average.
16703 # Make sure getloadavg.c is where it belongs, at configure-time.
16704 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16705 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16706 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16707 { (exit 1); exit 1; }; }
16709 ac_save_LIBS=$LIBS
16711 # Check for getloadavg, but be sure not to touch the cache variable.
16712 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16713 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16714 if test "${ac_cv_func_getloadavg+set}" = set; then
16715 echo $ECHO_N "(cached) $ECHO_C" >&6
16716 else
16717 cat >conftest.$ac_ext <<_ACEOF
16718 /* confdefs.h. */
16719 _ACEOF
16720 cat confdefs.h >>conftest.$ac_ext
16721 cat >>conftest.$ac_ext <<_ACEOF
16722 /* end confdefs.h. */
16723 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16725 #define getloadavg innocuous_getloadavg
16727 /* System header to define __stub macros and hopefully few prototypes,
16728 which can conflict with char getloadavg (); below.
16729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16730 <limits.h> exists even on freestanding compilers. */
16732 #ifdef __STDC__
16733 # include <limits.h>
16734 #else
16735 # include <assert.h>
16736 #endif
16738 #undef getloadavg
16740 /* Override any GCC internal prototype to avoid an error.
16741 Use char because int might match the return type of a GCC
16742 builtin and then its argument prototype would still apply. */
16743 #ifdef __cplusplus
16744 extern "C"
16745 #endif
16746 char getloadavg ();
16747 /* The GNU C library defines this for functions which it implements
16748 to always fail with ENOSYS. Some functions are actually named
16749 something starting with __ and the normal name is an alias. */
16750 #if defined __stub_getloadavg || defined __stub___getloadavg
16751 choke me
16752 #endif
16755 main ()
16757 return getloadavg ();
16759 return 0;
16761 _ACEOF
16762 rm -f conftest.$ac_objext conftest$ac_exeext
16763 if { (ac_try="$ac_link"
16764 case "(($ac_try" in
16765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16766 *) ac_try_echo=$ac_try;;
16767 esac
16768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16769 (eval "$ac_link") 2>conftest.er1
16770 ac_status=$?
16771 grep -v '^ *+' conftest.er1 >conftest.err
16772 rm -f conftest.er1
16773 cat conftest.err >&5
16774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775 (exit $ac_status); } && {
16776 test -z "$ac_c_werror_flag" ||
16777 test ! -s conftest.err
16778 } && test -s conftest$ac_exeext &&
16779 $as_test_x conftest$ac_exeext; then
16780 ac_cv_func_getloadavg=yes
16781 else
16782 echo "$as_me: failed program was:" >&5
16783 sed 's/^/| /' conftest.$ac_ext >&5
16785 ac_cv_func_getloadavg=no
16788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16789 conftest$ac_exeext conftest.$ac_ext
16791 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16792 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16793 if test $ac_cv_func_getloadavg = yes; then
16794 exit 0
16795 else
16796 exit 1
16798 ) && ac_have_func=yes
16800 # On HPUX9, an unprivileged user can get load averages through this function.
16802 for ac_func in pstat_getdynamic
16804 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16805 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16806 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16807 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16808 echo $ECHO_N "(cached) $ECHO_C" >&6
16809 else
16810 cat >conftest.$ac_ext <<_ACEOF
16811 /* confdefs.h. */
16812 _ACEOF
16813 cat confdefs.h >>conftest.$ac_ext
16814 cat >>conftest.$ac_ext <<_ACEOF
16815 /* end confdefs.h. */
16816 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16818 #define $ac_func innocuous_$ac_func
16820 /* System header to define __stub macros and hopefully few prototypes,
16821 which can conflict with char $ac_func (); below.
16822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16823 <limits.h> exists even on freestanding compilers. */
16825 #ifdef __STDC__
16826 # include <limits.h>
16827 #else
16828 # include <assert.h>
16829 #endif
16831 #undef $ac_func
16833 /* Override any GCC internal prototype to avoid an error.
16834 Use char because int might match the return type of a GCC
16835 builtin and then its argument prototype would still apply. */
16836 #ifdef __cplusplus
16837 extern "C"
16838 #endif
16839 char $ac_func ();
16840 /* The GNU C library defines this for functions which it implements
16841 to always fail with ENOSYS. Some functions are actually named
16842 something starting with __ and the normal name is an alias. */
16843 #if defined __stub_$ac_func || defined __stub___$ac_func
16844 choke me
16845 #endif
16848 main ()
16850 return $ac_func ();
16852 return 0;
16854 _ACEOF
16855 rm -f conftest.$ac_objext conftest$ac_exeext
16856 if { (ac_try="$ac_link"
16857 case "(($ac_try" in
16858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16859 *) ac_try_echo=$ac_try;;
16860 esac
16861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16862 (eval "$ac_link") 2>conftest.er1
16863 ac_status=$?
16864 grep -v '^ *+' conftest.er1 >conftest.err
16865 rm -f conftest.er1
16866 cat conftest.err >&5
16867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16868 (exit $ac_status); } && {
16869 test -z "$ac_c_werror_flag" ||
16870 test ! -s conftest.err
16871 } && test -s conftest$ac_exeext &&
16872 $as_test_x conftest$ac_exeext; then
16873 eval "$as_ac_var=yes"
16874 else
16875 echo "$as_me: failed program was:" >&5
16876 sed 's/^/| /' conftest.$ac_ext >&5
16878 eval "$as_ac_var=no"
16881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16882 conftest$ac_exeext conftest.$ac_ext
16884 ac_res=`eval echo '${'$as_ac_var'}'`
16885 { echo "$as_me:$LINENO: result: $ac_res" >&5
16886 echo "${ECHO_T}$ac_res" >&6; }
16887 if test `eval echo '${'$as_ac_var'}'` = yes; then
16888 cat >>confdefs.h <<_ACEOF
16889 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16890 _ACEOF
16893 done
16896 # Solaris has libkstat which does not require root.
16898 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16899 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
16900 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16901 echo $ECHO_N "(cached) $ECHO_C" >&6
16902 else
16903 ac_check_lib_save_LIBS=$LIBS
16904 LIBS="-lkstat $LIBS"
16905 cat >conftest.$ac_ext <<_ACEOF
16906 /* confdefs.h. */
16907 _ACEOF
16908 cat confdefs.h >>conftest.$ac_ext
16909 cat >>conftest.$ac_ext <<_ACEOF
16910 /* end confdefs.h. */
16912 /* Override any GCC internal prototype to avoid an error.
16913 Use char because int might match the return type of a GCC
16914 builtin and then its argument prototype would still apply. */
16915 #ifdef __cplusplus
16916 extern "C"
16917 #endif
16918 char kstat_open ();
16920 main ()
16922 return kstat_open ();
16924 return 0;
16926 _ACEOF
16927 rm -f conftest.$ac_objext conftest$ac_exeext
16928 if { (ac_try="$ac_link"
16929 case "(($ac_try" in
16930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16931 *) ac_try_echo=$ac_try;;
16932 esac
16933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16934 (eval "$ac_link") 2>conftest.er1
16935 ac_status=$?
16936 grep -v '^ *+' conftest.er1 >conftest.err
16937 rm -f conftest.er1
16938 cat conftest.err >&5
16939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16940 (exit $ac_status); } && {
16941 test -z "$ac_c_werror_flag" ||
16942 test ! -s conftest.err
16943 } && test -s conftest$ac_exeext &&
16944 $as_test_x conftest$ac_exeext; then
16945 ac_cv_lib_kstat_kstat_open=yes
16946 else
16947 echo "$as_me: failed program was:" >&5
16948 sed 's/^/| /' conftest.$ac_ext >&5
16950 ac_cv_lib_kstat_kstat_open=no
16953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16954 conftest$ac_exeext conftest.$ac_ext
16955 LIBS=$ac_check_lib_save_LIBS
16957 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
16958 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16959 if test $ac_cv_lib_kstat_kstat_open = yes; then
16960 cat >>confdefs.h <<_ACEOF
16961 #define HAVE_LIBKSTAT 1
16962 _ACEOF
16964 LIBS="-lkstat $LIBS"
16968 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16970 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16971 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16972 # to get the right answer into the cache.
16973 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16974 if test $ac_have_func = no; then
16975 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
16976 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
16977 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16978 echo $ECHO_N "(cached) $ECHO_C" >&6
16979 else
16980 ac_check_lib_save_LIBS=$LIBS
16981 LIBS="-lelf $LIBS"
16982 cat >conftest.$ac_ext <<_ACEOF
16983 /* confdefs.h. */
16984 _ACEOF
16985 cat confdefs.h >>conftest.$ac_ext
16986 cat >>conftest.$ac_ext <<_ACEOF
16987 /* end confdefs.h. */
16989 /* Override any GCC internal prototype to avoid an error.
16990 Use char because int might match the return type of a GCC
16991 builtin and then its argument prototype would still apply. */
16992 #ifdef __cplusplus
16993 extern "C"
16994 #endif
16995 char elf_begin ();
16997 main ()
16999 return elf_begin ();
17001 return 0;
17003 _ACEOF
17004 rm -f conftest.$ac_objext conftest$ac_exeext
17005 if { (ac_try="$ac_link"
17006 case "(($ac_try" in
17007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17008 *) ac_try_echo=$ac_try;;
17009 esac
17010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17011 (eval "$ac_link") 2>conftest.er1
17012 ac_status=$?
17013 grep -v '^ *+' conftest.er1 >conftest.err
17014 rm -f conftest.er1
17015 cat conftest.err >&5
17016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17017 (exit $ac_status); } && {
17018 test -z "$ac_c_werror_flag" ||
17019 test ! -s conftest.err
17020 } && test -s conftest$ac_exeext &&
17021 $as_test_x conftest$ac_exeext; then
17022 ac_cv_lib_elf_elf_begin=yes
17023 else
17024 echo "$as_me: failed program was:" >&5
17025 sed 's/^/| /' conftest.$ac_ext >&5
17027 ac_cv_lib_elf_elf_begin=no
17030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17031 conftest$ac_exeext conftest.$ac_ext
17032 LIBS=$ac_check_lib_save_LIBS
17034 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
17035 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17036 if test $ac_cv_lib_elf_elf_begin = yes; then
17037 LIBS="-lelf $LIBS"
17041 if test $ac_have_func = no; then
17042 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17043 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
17044 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17045 echo $ECHO_N "(cached) $ECHO_C" >&6
17046 else
17047 ac_check_lib_save_LIBS=$LIBS
17048 LIBS="-lkvm $LIBS"
17049 cat >conftest.$ac_ext <<_ACEOF
17050 /* confdefs.h. */
17051 _ACEOF
17052 cat confdefs.h >>conftest.$ac_ext
17053 cat >>conftest.$ac_ext <<_ACEOF
17054 /* end confdefs.h. */
17056 /* Override any GCC internal prototype to avoid an error.
17057 Use char because int might match the return type of a GCC
17058 builtin and then its argument prototype would still apply. */
17059 #ifdef __cplusplus
17060 extern "C"
17061 #endif
17062 char kvm_open ();
17064 main ()
17066 return kvm_open ();
17068 return 0;
17070 _ACEOF
17071 rm -f conftest.$ac_objext conftest$ac_exeext
17072 if { (ac_try="$ac_link"
17073 case "(($ac_try" in
17074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17075 *) ac_try_echo=$ac_try;;
17076 esac
17077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17078 (eval "$ac_link") 2>conftest.er1
17079 ac_status=$?
17080 grep -v '^ *+' conftest.er1 >conftest.err
17081 rm -f conftest.er1
17082 cat conftest.err >&5
17083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084 (exit $ac_status); } && {
17085 test -z "$ac_c_werror_flag" ||
17086 test ! -s conftest.err
17087 } && test -s conftest$ac_exeext &&
17088 $as_test_x conftest$ac_exeext; then
17089 ac_cv_lib_kvm_kvm_open=yes
17090 else
17091 echo "$as_me: failed program was:" >&5
17092 sed 's/^/| /' conftest.$ac_ext >&5
17094 ac_cv_lib_kvm_kvm_open=no
17097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17098 conftest$ac_exeext conftest.$ac_ext
17099 LIBS=$ac_check_lib_save_LIBS
17101 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
17102 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17103 if test $ac_cv_lib_kvm_kvm_open = yes; then
17104 LIBS="-lkvm $LIBS"
17107 # Check for the 4.4BSD definition of getloadavg.
17108 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
17109 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
17110 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17111 echo $ECHO_N "(cached) $ECHO_C" >&6
17112 else
17113 ac_check_lib_save_LIBS=$LIBS
17114 LIBS="-lutil $LIBS"
17115 cat >conftest.$ac_ext <<_ACEOF
17116 /* confdefs.h. */
17117 _ACEOF
17118 cat confdefs.h >>conftest.$ac_ext
17119 cat >>conftest.$ac_ext <<_ACEOF
17120 /* end confdefs.h. */
17122 /* Override any GCC internal prototype to avoid an error.
17123 Use char because int might match the return type of a GCC
17124 builtin and then its argument prototype would still apply. */
17125 #ifdef __cplusplus
17126 extern "C"
17127 #endif
17128 char getloadavg ();
17130 main ()
17132 return getloadavg ();
17134 return 0;
17136 _ACEOF
17137 rm -f conftest.$ac_objext conftest$ac_exeext
17138 if { (ac_try="$ac_link"
17139 case "(($ac_try" in
17140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17141 *) ac_try_echo=$ac_try;;
17142 esac
17143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17144 (eval "$ac_link") 2>conftest.er1
17145 ac_status=$?
17146 grep -v '^ *+' conftest.er1 >conftest.err
17147 rm -f conftest.er1
17148 cat conftest.err >&5
17149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17150 (exit $ac_status); } && {
17151 test -z "$ac_c_werror_flag" ||
17152 test ! -s conftest.err
17153 } && test -s conftest$ac_exeext &&
17154 $as_test_x conftest$ac_exeext; then
17155 ac_cv_lib_util_getloadavg=yes
17156 else
17157 echo "$as_me: failed program was:" >&5
17158 sed 's/^/| /' conftest.$ac_ext >&5
17160 ac_cv_lib_util_getloadavg=no
17163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17164 conftest$ac_exeext conftest.$ac_ext
17165 LIBS=$ac_check_lib_save_LIBS
17167 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
17168 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17169 if test $ac_cv_lib_util_getloadavg = yes; then
17170 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17175 if test $ac_have_func = no; then
17176 # There is a commonly available library for RS/6000 AIX.
17177 # Since it is not a standard part of AIX, it might be installed locally.
17178 ac_getloadavg_LIBS=$LIBS
17179 LIBS="-L/usr/local/lib $LIBS"
17180 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
17181 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
17182 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17183 echo $ECHO_N "(cached) $ECHO_C" >&6
17184 else
17185 ac_check_lib_save_LIBS=$LIBS
17186 LIBS="-lgetloadavg $LIBS"
17187 cat >conftest.$ac_ext <<_ACEOF
17188 /* confdefs.h. */
17189 _ACEOF
17190 cat confdefs.h >>conftest.$ac_ext
17191 cat >>conftest.$ac_ext <<_ACEOF
17192 /* end confdefs.h. */
17194 /* Override any GCC internal prototype to avoid an error.
17195 Use char because int might match the return type of a GCC
17196 builtin and then its argument prototype would still apply. */
17197 #ifdef __cplusplus
17198 extern "C"
17199 #endif
17200 char getloadavg ();
17202 main ()
17204 return getloadavg ();
17206 return 0;
17208 _ACEOF
17209 rm -f conftest.$ac_objext conftest$ac_exeext
17210 if { (ac_try="$ac_link"
17211 case "(($ac_try" in
17212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17213 *) ac_try_echo=$ac_try;;
17214 esac
17215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17216 (eval "$ac_link") 2>conftest.er1
17217 ac_status=$?
17218 grep -v '^ *+' conftest.er1 >conftest.err
17219 rm -f conftest.er1
17220 cat conftest.err >&5
17221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222 (exit $ac_status); } && {
17223 test -z "$ac_c_werror_flag" ||
17224 test ! -s conftest.err
17225 } && test -s conftest$ac_exeext &&
17226 $as_test_x conftest$ac_exeext; then
17227 ac_cv_lib_getloadavg_getloadavg=yes
17228 else
17229 echo "$as_me: failed program was:" >&5
17230 sed 's/^/| /' conftest.$ac_ext >&5
17232 ac_cv_lib_getloadavg_getloadavg=no
17235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17236 conftest$ac_exeext conftest.$ac_ext
17237 LIBS=$ac_check_lib_save_LIBS
17239 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
17240 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17241 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17242 LIBS="-lgetloadavg $LIBS"
17243 else
17244 LIBS=$ac_getloadavg_LIBS
17249 # Make sure it is really in the library, if we think we found it,
17250 # otherwise set up the replacement function.
17252 for ac_func in getloadavg
17254 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17255 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17256 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17257 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17258 echo $ECHO_N "(cached) $ECHO_C" >&6
17259 else
17260 cat >conftest.$ac_ext <<_ACEOF
17261 /* confdefs.h. */
17262 _ACEOF
17263 cat confdefs.h >>conftest.$ac_ext
17264 cat >>conftest.$ac_ext <<_ACEOF
17265 /* end confdefs.h. */
17266 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17267 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17268 #define $ac_func innocuous_$ac_func
17270 /* System header to define __stub macros and hopefully few prototypes,
17271 which can conflict with char $ac_func (); below.
17272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17273 <limits.h> exists even on freestanding compilers. */
17275 #ifdef __STDC__
17276 # include <limits.h>
17277 #else
17278 # include <assert.h>
17279 #endif
17281 #undef $ac_func
17283 /* Override any GCC internal prototype to avoid an error.
17284 Use char because int might match the return type of a GCC
17285 builtin and then its argument prototype would still apply. */
17286 #ifdef __cplusplus
17287 extern "C"
17288 #endif
17289 char $ac_func ();
17290 /* The GNU C library defines this for functions which it implements
17291 to always fail with ENOSYS. Some functions are actually named
17292 something starting with __ and the normal name is an alias. */
17293 #if defined __stub_$ac_func || defined __stub___$ac_func
17294 choke me
17295 #endif
17298 main ()
17300 return $ac_func ();
17302 return 0;
17304 _ACEOF
17305 rm -f conftest.$ac_objext conftest$ac_exeext
17306 if { (ac_try="$ac_link"
17307 case "(($ac_try" in
17308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17309 *) ac_try_echo=$ac_try;;
17310 esac
17311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17312 (eval "$ac_link") 2>conftest.er1
17313 ac_status=$?
17314 grep -v '^ *+' conftest.er1 >conftest.err
17315 rm -f conftest.er1
17316 cat conftest.err >&5
17317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17318 (exit $ac_status); } && {
17319 test -z "$ac_c_werror_flag" ||
17320 test ! -s conftest.err
17321 } && test -s conftest$ac_exeext &&
17322 $as_test_x conftest$ac_exeext; then
17323 eval "$as_ac_var=yes"
17324 else
17325 echo "$as_me: failed program was:" >&5
17326 sed 's/^/| /' conftest.$ac_ext >&5
17328 eval "$as_ac_var=no"
17331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17332 conftest$ac_exeext conftest.$ac_ext
17334 ac_res=`eval echo '${'$as_ac_var'}'`
17335 { echo "$as_me:$LINENO: result: $ac_res" >&5
17336 echo "${ECHO_T}$ac_res" >&6; }
17337 if test `eval echo '${'$as_ac_var'}'` = yes; then
17338 cat >>confdefs.h <<_ACEOF
17339 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17340 _ACEOF
17342 else
17343 case " $LIBOBJS " in
17344 *" getloadavg.$ac_objext "* ) ;;
17345 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17347 esac
17350 cat >>confdefs.h <<\_ACEOF
17351 #define C_GETLOADAVG 1
17352 _ACEOF
17354 # Figure out what our getloadavg.c needs.
17355 ac_have_func=no
17356 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17357 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17358 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17359 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17360 echo $ECHO_N "(cached) $ECHO_C" >&6
17362 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17363 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17364 else
17365 # Is the header compilable?
17366 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17367 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17368 cat >conftest.$ac_ext <<_ACEOF
17369 /* confdefs.h. */
17370 _ACEOF
17371 cat confdefs.h >>conftest.$ac_ext
17372 cat >>conftest.$ac_ext <<_ACEOF
17373 /* end confdefs.h. */
17374 $ac_includes_default
17375 #include <sys/dg_sys_info.h>
17376 _ACEOF
17377 rm -f conftest.$ac_objext
17378 if { (ac_try="$ac_compile"
17379 case "(($ac_try" in
17380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17381 *) ac_try_echo=$ac_try;;
17382 esac
17383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17384 (eval "$ac_compile") 2>conftest.er1
17385 ac_status=$?
17386 grep -v '^ *+' conftest.er1 >conftest.err
17387 rm -f conftest.er1
17388 cat conftest.err >&5
17389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390 (exit $ac_status); } && {
17391 test -z "$ac_c_werror_flag" ||
17392 test ! -s conftest.err
17393 } && test -s conftest.$ac_objext; then
17394 ac_header_compiler=yes
17395 else
17396 echo "$as_me: failed program was:" >&5
17397 sed 's/^/| /' conftest.$ac_ext >&5
17399 ac_header_compiler=no
17402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17403 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17404 echo "${ECHO_T}$ac_header_compiler" >&6; }
17406 # Is the header present?
17407 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17408 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17409 cat >conftest.$ac_ext <<_ACEOF
17410 /* confdefs.h. */
17411 _ACEOF
17412 cat confdefs.h >>conftest.$ac_ext
17413 cat >>conftest.$ac_ext <<_ACEOF
17414 /* end confdefs.h. */
17415 #include <sys/dg_sys_info.h>
17416 _ACEOF
17417 if { (ac_try="$ac_cpp conftest.$ac_ext"
17418 case "(($ac_try" in
17419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17420 *) ac_try_echo=$ac_try;;
17421 esac
17422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17423 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17424 ac_status=$?
17425 grep -v '^ *+' conftest.er1 >conftest.err
17426 rm -f conftest.er1
17427 cat conftest.err >&5
17428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429 (exit $ac_status); } >/dev/null && {
17430 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17431 test ! -s conftest.err
17432 }; then
17433 ac_header_preproc=yes
17434 else
17435 echo "$as_me: failed program was:" >&5
17436 sed 's/^/| /' conftest.$ac_ext >&5
17438 ac_header_preproc=no
17441 rm -f conftest.err conftest.$ac_ext
17442 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17443 echo "${ECHO_T}$ac_header_preproc" >&6; }
17445 # So? What about this header?
17446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17447 yes:no: )
17448 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17449 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17450 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17451 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17452 ac_header_preproc=yes
17454 no:yes:* )
17455 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17456 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17457 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17458 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17459 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17460 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17461 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17462 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17463 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17464 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17465 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17466 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17469 esac
17470 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17471 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17472 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17473 echo $ECHO_N "(cached) $ECHO_C" >&6
17474 else
17475 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17477 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17478 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17481 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17482 ac_have_func=yes
17484 cat >>confdefs.h <<\_ACEOF
17485 #define DGUX 1
17486 _ACEOF
17489 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17490 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17491 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17492 echo $ECHO_N "(cached) $ECHO_C" >&6
17493 else
17494 ac_check_lib_save_LIBS=$LIBS
17495 LIBS="-ldgc $LIBS"
17496 cat >conftest.$ac_ext <<_ACEOF
17497 /* confdefs.h. */
17498 _ACEOF
17499 cat confdefs.h >>conftest.$ac_ext
17500 cat >>conftest.$ac_ext <<_ACEOF
17501 /* end confdefs.h. */
17503 /* Override any GCC internal prototype to avoid an error.
17504 Use char because int might match the return type of a GCC
17505 builtin and then its argument prototype would still apply. */
17506 #ifdef __cplusplus
17507 extern "C"
17508 #endif
17509 char dg_sys_info ();
17511 main ()
17513 return dg_sys_info ();
17515 return 0;
17517 _ACEOF
17518 rm -f conftest.$ac_objext conftest$ac_exeext
17519 if { (ac_try="$ac_link"
17520 case "(($ac_try" in
17521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17522 *) ac_try_echo=$ac_try;;
17523 esac
17524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17525 (eval "$ac_link") 2>conftest.er1
17526 ac_status=$?
17527 grep -v '^ *+' conftest.er1 >conftest.err
17528 rm -f conftest.er1
17529 cat conftest.err >&5
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); } && {
17532 test -z "$ac_c_werror_flag" ||
17533 test ! -s conftest.err
17534 } && test -s conftest$ac_exeext &&
17535 $as_test_x conftest$ac_exeext; then
17536 ac_cv_lib_dgc_dg_sys_info=yes
17537 else
17538 echo "$as_me: failed program was:" >&5
17539 sed 's/^/| /' conftest.$ac_ext >&5
17541 ac_cv_lib_dgc_dg_sys_info=no
17544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17545 conftest$ac_exeext conftest.$ac_ext
17546 LIBS=$ac_check_lib_save_LIBS
17548 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17549 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17550 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17551 cat >>confdefs.h <<_ACEOF
17552 #define HAVE_LIBDGC 1
17553 _ACEOF
17555 LIBS="-ldgc $LIBS"
17563 if test "${ac_cv_header_locale_h+set}" = set; then
17564 { echo "$as_me:$LINENO: checking for locale.h" >&5
17565 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17566 if test "${ac_cv_header_locale_h+set}" = set; then
17567 echo $ECHO_N "(cached) $ECHO_C" >&6
17569 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17570 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17571 else
17572 # Is the header compilable?
17573 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17574 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17575 cat >conftest.$ac_ext <<_ACEOF
17576 /* confdefs.h. */
17577 _ACEOF
17578 cat confdefs.h >>conftest.$ac_ext
17579 cat >>conftest.$ac_ext <<_ACEOF
17580 /* end confdefs.h. */
17581 $ac_includes_default
17582 #include <locale.h>
17583 _ACEOF
17584 rm -f conftest.$ac_objext
17585 if { (ac_try="$ac_compile"
17586 case "(($ac_try" in
17587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17588 *) ac_try_echo=$ac_try;;
17589 esac
17590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17591 (eval "$ac_compile") 2>conftest.er1
17592 ac_status=$?
17593 grep -v '^ *+' conftest.er1 >conftest.err
17594 rm -f conftest.er1
17595 cat conftest.err >&5
17596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597 (exit $ac_status); } && {
17598 test -z "$ac_c_werror_flag" ||
17599 test ! -s conftest.err
17600 } && test -s conftest.$ac_objext; then
17601 ac_header_compiler=yes
17602 else
17603 echo "$as_me: failed program was:" >&5
17604 sed 's/^/| /' conftest.$ac_ext >&5
17606 ac_header_compiler=no
17609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17610 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17611 echo "${ECHO_T}$ac_header_compiler" >&6; }
17613 # Is the header present?
17614 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17615 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17616 cat >conftest.$ac_ext <<_ACEOF
17617 /* confdefs.h. */
17618 _ACEOF
17619 cat confdefs.h >>conftest.$ac_ext
17620 cat >>conftest.$ac_ext <<_ACEOF
17621 /* end confdefs.h. */
17622 #include <locale.h>
17623 _ACEOF
17624 if { (ac_try="$ac_cpp conftest.$ac_ext"
17625 case "(($ac_try" in
17626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17627 *) ac_try_echo=$ac_try;;
17628 esac
17629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17630 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17631 ac_status=$?
17632 grep -v '^ *+' conftest.er1 >conftest.err
17633 rm -f conftest.er1
17634 cat conftest.err >&5
17635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17636 (exit $ac_status); } >/dev/null && {
17637 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17638 test ! -s conftest.err
17639 }; then
17640 ac_header_preproc=yes
17641 else
17642 echo "$as_me: failed program was:" >&5
17643 sed 's/^/| /' conftest.$ac_ext >&5
17645 ac_header_preproc=no
17648 rm -f conftest.err conftest.$ac_ext
17649 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17650 echo "${ECHO_T}$ac_header_preproc" >&6; }
17652 # So? What about this header?
17653 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17654 yes:no: )
17655 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17656 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17657 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17658 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17659 ac_header_preproc=yes
17661 no:yes:* )
17662 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17663 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17664 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17665 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17666 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17667 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17668 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17669 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17670 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17671 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17672 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17673 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17676 esac
17677 { echo "$as_me:$LINENO: checking for locale.h" >&5
17678 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17679 if test "${ac_cv_header_locale_h+set}" = set; then
17680 echo $ECHO_N "(cached) $ECHO_C" >&6
17681 else
17682 ac_cv_header_locale_h=$ac_header_preproc
17684 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17685 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17691 for ac_func in setlocale
17693 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17694 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17695 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17696 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17697 echo $ECHO_N "(cached) $ECHO_C" >&6
17698 else
17699 cat >conftest.$ac_ext <<_ACEOF
17700 /* confdefs.h. */
17701 _ACEOF
17702 cat confdefs.h >>conftest.$ac_ext
17703 cat >>conftest.$ac_ext <<_ACEOF
17704 /* end confdefs.h. */
17705 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17706 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17707 #define $ac_func innocuous_$ac_func
17709 /* System header to define __stub macros and hopefully few prototypes,
17710 which can conflict with char $ac_func (); below.
17711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17712 <limits.h> exists even on freestanding compilers. */
17714 #ifdef __STDC__
17715 # include <limits.h>
17716 #else
17717 # include <assert.h>
17718 #endif
17720 #undef $ac_func
17722 /* Override any GCC internal prototype to avoid an error.
17723 Use char because int might match the return type of a GCC
17724 builtin and then its argument prototype would still apply. */
17725 #ifdef __cplusplus
17726 extern "C"
17727 #endif
17728 char $ac_func ();
17729 /* The GNU C library defines this for functions which it implements
17730 to always fail with ENOSYS. Some functions are actually named
17731 something starting with __ and the normal name is an alias. */
17732 #if defined __stub_$ac_func || defined __stub___$ac_func
17733 choke me
17734 #endif
17737 main ()
17739 return $ac_func ();
17741 return 0;
17743 _ACEOF
17744 rm -f conftest.$ac_objext conftest$ac_exeext
17745 if { (ac_try="$ac_link"
17746 case "(($ac_try" in
17747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17748 *) ac_try_echo=$ac_try;;
17749 esac
17750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17751 (eval "$ac_link") 2>conftest.er1
17752 ac_status=$?
17753 grep -v '^ *+' conftest.er1 >conftest.err
17754 rm -f conftest.er1
17755 cat conftest.err >&5
17756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 (exit $ac_status); } && {
17758 test -z "$ac_c_werror_flag" ||
17759 test ! -s conftest.err
17760 } && test -s conftest$ac_exeext &&
17761 $as_test_x conftest$ac_exeext; then
17762 eval "$as_ac_var=yes"
17763 else
17764 echo "$as_me: failed program was:" >&5
17765 sed 's/^/| /' conftest.$ac_ext >&5
17767 eval "$as_ac_var=no"
17770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17771 conftest$ac_exeext conftest.$ac_ext
17773 ac_res=`eval echo '${'$as_ac_var'}'`
17774 { echo "$as_me:$LINENO: result: $ac_res" >&5
17775 echo "${ECHO_T}$ac_res" >&6; }
17776 if test `eval echo '${'$as_ac_var'}'` = yes; then
17777 cat >>confdefs.h <<_ACEOF
17778 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17779 _ACEOF
17782 done
17785 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17786 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17787 # Irix 4.0.5F has the header but not the library.
17788 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17789 ac_have_func=yes
17791 cat >>confdefs.h <<\_ACEOF
17792 #define SVR4 1
17793 _ACEOF
17797 if test $ac_have_func = no; then
17798 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17799 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17800 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17801 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17802 echo $ECHO_N "(cached) $ECHO_C" >&6
17804 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17805 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17806 else
17807 # Is the header compilable?
17808 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17809 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
17810 cat >conftest.$ac_ext <<_ACEOF
17811 /* confdefs.h. */
17812 _ACEOF
17813 cat confdefs.h >>conftest.$ac_ext
17814 cat >>conftest.$ac_ext <<_ACEOF
17815 /* end confdefs.h. */
17816 $ac_includes_default
17817 #include <inq_stats/cpustats.h>
17818 _ACEOF
17819 rm -f conftest.$ac_objext
17820 if { (ac_try="$ac_compile"
17821 case "(($ac_try" in
17822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17823 *) ac_try_echo=$ac_try;;
17824 esac
17825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17826 (eval "$ac_compile") 2>conftest.er1
17827 ac_status=$?
17828 grep -v '^ *+' conftest.er1 >conftest.err
17829 rm -f conftest.er1
17830 cat conftest.err >&5
17831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832 (exit $ac_status); } && {
17833 test -z "$ac_c_werror_flag" ||
17834 test ! -s conftest.err
17835 } && test -s conftest.$ac_objext; then
17836 ac_header_compiler=yes
17837 else
17838 echo "$as_me: failed program was:" >&5
17839 sed 's/^/| /' conftest.$ac_ext >&5
17841 ac_header_compiler=no
17844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17845 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17846 echo "${ECHO_T}$ac_header_compiler" >&6; }
17848 # Is the header present?
17849 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17850 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
17851 cat >conftest.$ac_ext <<_ACEOF
17852 /* confdefs.h. */
17853 _ACEOF
17854 cat confdefs.h >>conftest.$ac_ext
17855 cat >>conftest.$ac_ext <<_ACEOF
17856 /* end confdefs.h. */
17857 #include <inq_stats/cpustats.h>
17858 _ACEOF
17859 if { (ac_try="$ac_cpp conftest.$ac_ext"
17860 case "(($ac_try" in
17861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17862 *) ac_try_echo=$ac_try;;
17863 esac
17864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17865 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17866 ac_status=$?
17867 grep -v '^ *+' conftest.er1 >conftest.err
17868 rm -f conftest.er1
17869 cat conftest.err >&5
17870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871 (exit $ac_status); } >/dev/null && {
17872 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17873 test ! -s conftest.err
17874 }; then
17875 ac_header_preproc=yes
17876 else
17877 echo "$as_me: failed program was:" >&5
17878 sed 's/^/| /' conftest.$ac_ext >&5
17880 ac_header_preproc=no
17883 rm -f conftest.err conftest.$ac_ext
17884 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17885 echo "${ECHO_T}$ac_header_preproc" >&6; }
17887 # So? What about this header?
17888 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17889 yes:no: )
17890 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17891 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17892 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17893 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17894 ac_header_preproc=yes
17896 no:yes:* )
17897 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17898 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17899 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17900 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17901 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17902 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17903 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17904 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17905 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17906 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17907 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17908 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17911 esac
17912 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17913 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17914 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17915 echo $ECHO_N "(cached) $ECHO_C" >&6
17916 else
17917 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17919 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17920 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17923 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17924 ac_have_func=yes
17926 cat >>confdefs.h <<\_ACEOF
17927 #define UMAX 1
17928 _ACEOF
17931 cat >>confdefs.h <<\_ACEOF
17932 #define UMAX4_3 1
17933 _ACEOF
17940 if test $ac_have_func = no; then
17941 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17942 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17943 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17944 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17945 echo $ECHO_N "(cached) $ECHO_C" >&6
17947 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17948 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17949 else
17950 # Is the header compilable?
17951 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
17952 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
17953 cat >conftest.$ac_ext <<_ACEOF
17954 /* confdefs.h. */
17955 _ACEOF
17956 cat confdefs.h >>conftest.$ac_ext
17957 cat >>conftest.$ac_ext <<_ACEOF
17958 /* end confdefs.h. */
17959 $ac_includes_default
17960 #include <sys/cpustats.h>
17961 _ACEOF
17962 rm -f conftest.$ac_objext
17963 if { (ac_try="$ac_compile"
17964 case "(($ac_try" in
17965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17966 *) ac_try_echo=$ac_try;;
17967 esac
17968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17969 (eval "$ac_compile") 2>conftest.er1
17970 ac_status=$?
17971 grep -v '^ *+' conftest.er1 >conftest.err
17972 rm -f conftest.er1
17973 cat conftest.err >&5
17974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17975 (exit $ac_status); } && {
17976 test -z "$ac_c_werror_flag" ||
17977 test ! -s conftest.err
17978 } && test -s conftest.$ac_objext; then
17979 ac_header_compiler=yes
17980 else
17981 echo "$as_me: failed program was:" >&5
17982 sed 's/^/| /' conftest.$ac_ext >&5
17984 ac_header_compiler=no
17987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17988 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17989 echo "${ECHO_T}$ac_header_compiler" >&6; }
17991 # Is the header present?
17992 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
17993 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
17994 cat >conftest.$ac_ext <<_ACEOF
17995 /* confdefs.h. */
17996 _ACEOF
17997 cat confdefs.h >>conftest.$ac_ext
17998 cat >>conftest.$ac_ext <<_ACEOF
17999 /* end confdefs.h. */
18000 #include <sys/cpustats.h>
18001 _ACEOF
18002 if { (ac_try="$ac_cpp conftest.$ac_ext"
18003 case "(($ac_try" in
18004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18005 *) ac_try_echo=$ac_try;;
18006 esac
18007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18008 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18009 ac_status=$?
18010 grep -v '^ *+' conftest.er1 >conftest.err
18011 rm -f conftest.er1
18012 cat conftest.err >&5
18013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014 (exit $ac_status); } >/dev/null && {
18015 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18016 test ! -s conftest.err
18017 }; then
18018 ac_header_preproc=yes
18019 else
18020 echo "$as_me: failed program was:" >&5
18021 sed 's/^/| /' conftest.$ac_ext >&5
18023 ac_header_preproc=no
18026 rm -f conftest.err conftest.$ac_ext
18027 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18028 echo "${ECHO_T}$ac_header_preproc" >&6; }
18030 # So? What about this header?
18031 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18032 yes:no: )
18033 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18034 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18035 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
18036 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
18037 ac_header_preproc=yes
18039 no:yes:* )
18040 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
18041 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
18042 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
18043 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
18044 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
18045 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
18046 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18047 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18048 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
18049 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
18050 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
18051 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
18054 esac
18055 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18056 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18057 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18058 echo $ECHO_N "(cached) $ECHO_C" >&6
18059 else
18060 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18062 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18063 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18066 if test $ac_cv_header_sys_cpustats_h = yes; then
18067 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18068 #define UMAX 1
18069 _ACEOF
18076 if test $ac_have_func = no; then
18078 for ac_header in mach/mach.h
18080 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18082 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18085 echo $ECHO_N "(cached) $ECHO_C" >&6
18087 ac_res=`eval echo '${'$as_ac_Header'}'`
18088 { echo "$as_me:$LINENO: result: $ac_res" >&5
18089 echo "${ECHO_T}$ac_res" >&6; }
18090 else
18091 # Is the header compilable?
18092 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18093 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18094 cat >conftest.$ac_ext <<_ACEOF
18095 /* confdefs.h. */
18096 _ACEOF
18097 cat confdefs.h >>conftest.$ac_ext
18098 cat >>conftest.$ac_ext <<_ACEOF
18099 /* end confdefs.h. */
18100 $ac_includes_default
18101 #include <$ac_header>
18102 _ACEOF
18103 rm -f conftest.$ac_objext
18104 if { (ac_try="$ac_compile"
18105 case "(($ac_try" in
18106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18107 *) ac_try_echo=$ac_try;;
18108 esac
18109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18110 (eval "$ac_compile") 2>conftest.er1
18111 ac_status=$?
18112 grep -v '^ *+' conftest.er1 >conftest.err
18113 rm -f conftest.er1
18114 cat conftest.err >&5
18115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116 (exit $ac_status); } && {
18117 test -z "$ac_c_werror_flag" ||
18118 test ! -s conftest.err
18119 } && test -s conftest.$ac_objext; then
18120 ac_header_compiler=yes
18121 else
18122 echo "$as_me: failed program was:" >&5
18123 sed 's/^/| /' conftest.$ac_ext >&5
18125 ac_header_compiler=no
18128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18129 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18130 echo "${ECHO_T}$ac_header_compiler" >&6; }
18132 # Is the header present?
18133 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18134 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18135 cat >conftest.$ac_ext <<_ACEOF
18136 /* confdefs.h. */
18137 _ACEOF
18138 cat confdefs.h >>conftest.$ac_ext
18139 cat >>conftest.$ac_ext <<_ACEOF
18140 /* end confdefs.h. */
18141 #include <$ac_header>
18142 _ACEOF
18143 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
18156 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18157 test ! -s conftest.err
18158 }; then
18159 ac_header_preproc=yes
18160 else
18161 echo "$as_me: failed program was:" >&5
18162 sed 's/^/| /' conftest.$ac_ext >&5
18164 ac_header_preproc=no
18167 rm -f conftest.err conftest.$ac_ext
18168 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18169 echo "${ECHO_T}$ac_header_preproc" >&6; }
18171 # So? What about this header?
18172 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18173 yes:no: )
18174 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18175 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18177 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18178 ac_header_preproc=yes
18180 no:yes:* )
18181 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18182 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18183 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18184 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18185 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18186 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18187 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18188 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18190 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18191 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18192 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18195 esac
18196 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18199 echo $ECHO_N "(cached) $ECHO_C" >&6
18200 else
18201 eval "$as_ac_Header=\$ac_header_preproc"
18203 ac_res=`eval echo '${'$as_ac_Header'}'`
18204 { echo "$as_me:$LINENO: result: $ac_res" >&5
18205 echo "${ECHO_T}$ac_res" >&6; }
18208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18209 cat >>confdefs.h <<_ACEOF
18210 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18211 _ACEOF
18215 done
18220 for ac_header in nlist.h
18222 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18224 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18227 echo $ECHO_N "(cached) $ECHO_C" >&6
18229 ac_res=`eval echo '${'$as_ac_Header'}'`
18230 { echo "$as_me:$LINENO: result: $ac_res" >&5
18231 echo "${ECHO_T}$ac_res" >&6; }
18232 else
18233 # Is the header compilable?
18234 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18235 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18236 cat >conftest.$ac_ext <<_ACEOF
18237 /* confdefs.h. */
18238 _ACEOF
18239 cat confdefs.h >>conftest.$ac_ext
18240 cat >>conftest.$ac_ext <<_ACEOF
18241 /* end confdefs.h. */
18242 $ac_includes_default
18243 #include <$ac_header>
18244 _ACEOF
18245 rm -f conftest.$ac_objext
18246 if { (ac_try="$ac_compile"
18247 case "(($ac_try" in
18248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18249 *) ac_try_echo=$ac_try;;
18250 esac
18251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18252 (eval "$ac_compile") 2>conftest.er1
18253 ac_status=$?
18254 grep -v '^ *+' conftest.er1 >conftest.err
18255 rm -f conftest.er1
18256 cat conftest.err >&5
18257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258 (exit $ac_status); } && {
18259 test -z "$ac_c_werror_flag" ||
18260 test ! -s conftest.err
18261 } && test -s conftest.$ac_objext; then
18262 ac_header_compiler=yes
18263 else
18264 echo "$as_me: failed program was:" >&5
18265 sed 's/^/| /' conftest.$ac_ext >&5
18267 ac_header_compiler=no
18270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18271 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18272 echo "${ECHO_T}$ac_header_compiler" >&6; }
18274 # Is the header present?
18275 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18276 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18277 cat >conftest.$ac_ext <<_ACEOF
18278 /* confdefs.h. */
18279 _ACEOF
18280 cat confdefs.h >>conftest.$ac_ext
18281 cat >>conftest.$ac_ext <<_ACEOF
18282 /* end confdefs.h. */
18283 #include <$ac_header>
18284 _ACEOF
18285 if { (ac_try="$ac_cpp conftest.$ac_ext"
18286 case "(($ac_try" in
18287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18288 *) ac_try_echo=$ac_try;;
18289 esac
18290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18291 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18292 ac_status=$?
18293 grep -v '^ *+' conftest.er1 >conftest.err
18294 rm -f conftest.er1
18295 cat conftest.err >&5
18296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18297 (exit $ac_status); } >/dev/null && {
18298 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18299 test ! -s conftest.err
18300 }; then
18301 ac_header_preproc=yes
18302 else
18303 echo "$as_me: failed program was:" >&5
18304 sed 's/^/| /' conftest.$ac_ext >&5
18306 ac_header_preproc=no
18309 rm -f conftest.err conftest.$ac_ext
18310 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18311 echo "${ECHO_T}$ac_header_preproc" >&6; }
18313 # So? What about this header?
18314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18315 yes:no: )
18316 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18317 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18319 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18320 ac_header_preproc=yes
18322 no:yes:* )
18323 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18324 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18325 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18326 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18327 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18328 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18329 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18330 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18332 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18333 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18334 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18337 esac
18338 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18341 echo $ECHO_N "(cached) $ECHO_C" >&6
18342 else
18343 eval "$as_ac_Header=\$ac_header_preproc"
18345 ac_res=`eval echo '${'$as_ac_Header'}'`
18346 { echo "$as_me:$LINENO: result: $ac_res" >&5
18347 echo "${ECHO_T}$ac_res" >&6; }
18350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18351 cat >>confdefs.h <<_ACEOF
18352 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18353 _ACEOF
18354 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18355 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18356 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18357 echo $ECHO_N "(cached) $ECHO_C" >&6
18358 else
18359 cat >conftest.$ac_ext <<_ACEOF
18360 /* confdefs.h. */
18361 _ACEOF
18362 cat confdefs.h >>conftest.$ac_ext
18363 cat >>conftest.$ac_ext <<_ACEOF
18364 /* end confdefs.h. */
18365 #include <nlist.h>
18368 main ()
18370 static struct nlist ac_aggr;
18371 if (ac_aggr.n_un.n_name)
18372 return 0;
18374 return 0;
18376 _ACEOF
18377 rm -f conftest.$ac_objext
18378 if { (ac_try="$ac_compile"
18379 case "(($ac_try" in
18380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18381 *) ac_try_echo=$ac_try;;
18382 esac
18383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18384 (eval "$ac_compile") 2>conftest.er1
18385 ac_status=$?
18386 grep -v '^ *+' conftest.er1 >conftest.err
18387 rm -f conftest.er1
18388 cat conftest.err >&5
18389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18390 (exit $ac_status); } && {
18391 test -z "$ac_c_werror_flag" ||
18392 test ! -s conftest.err
18393 } && test -s conftest.$ac_objext; then
18394 ac_cv_member_struct_nlist_n_un_n_name=yes
18395 else
18396 echo "$as_me: failed program was:" >&5
18397 sed 's/^/| /' conftest.$ac_ext >&5
18399 cat >conftest.$ac_ext <<_ACEOF
18400 /* confdefs.h. */
18401 _ACEOF
18402 cat confdefs.h >>conftest.$ac_ext
18403 cat >>conftest.$ac_ext <<_ACEOF
18404 /* end confdefs.h. */
18405 #include <nlist.h>
18408 main ()
18410 static struct nlist ac_aggr;
18411 if (sizeof ac_aggr.n_un.n_name)
18412 return 0;
18414 return 0;
18416 _ACEOF
18417 rm -f conftest.$ac_objext
18418 if { (ac_try="$ac_compile"
18419 case "(($ac_try" in
18420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18421 *) ac_try_echo=$ac_try;;
18422 esac
18423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18424 (eval "$ac_compile") 2>conftest.er1
18425 ac_status=$?
18426 grep -v '^ *+' conftest.er1 >conftest.err
18427 rm -f conftest.er1
18428 cat conftest.err >&5
18429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430 (exit $ac_status); } && {
18431 test -z "$ac_c_werror_flag" ||
18432 test ! -s conftest.err
18433 } && test -s conftest.$ac_objext; then
18434 ac_cv_member_struct_nlist_n_un_n_name=yes
18435 else
18436 echo "$as_me: failed program was:" >&5
18437 sed 's/^/| /' conftest.$ac_ext >&5
18439 ac_cv_member_struct_nlist_n_un_n_name=no
18442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18447 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18448 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18449 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18451 cat >>confdefs.h <<_ACEOF
18452 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18453 _ACEOF
18456 cat >>confdefs.h <<\_ACEOF
18457 #define NLIST_NAME_UNION 1
18458 _ACEOF
18465 done
18468 done
18471 # Some definitions of getloadavg require that the program be installed setgid.
18472 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18473 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18474 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18475 echo $ECHO_N "(cached) $ECHO_C" >&6
18476 else
18477 cat >conftest.$ac_ext <<_ACEOF
18478 /* confdefs.h. */
18479 _ACEOF
18480 cat confdefs.h >>conftest.$ac_ext
18481 cat >>conftest.$ac_ext <<_ACEOF
18482 /* end confdefs.h. */
18483 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18484 #ifdef LDAV_PRIVILEGED
18485 Yowza Am I SETGID yet
18486 #endif
18487 _ACEOF
18488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18489 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18490 ac_cv_func_getloadavg_setgid=yes
18491 else
18492 ac_cv_func_getloadavg_setgid=no
18494 rm -f conftest*
18497 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18498 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18499 if test $ac_cv_func_getloadavg_setgid = yes; then
18500 NEED_SETGID=true
18502 cat >>confdefs.h <<\_ACEOF
18503 #define GETLOADAVG_PRIVILEGED 1
18504 _ACEOF
18506 else
18507 NEED_SETGID=false
18510 if test $ac_cv_func_getloadavg_setgid = yes; then
18511 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18512 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18513 if test "${ac_cv_group_kmem+set}" = set; then
18514 echo $ECHO_N "(cached) $ECHO_C" >&6
18515 else
18516 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18517 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18518 # If we got an error (system does not support symlinks), try without -L.
18519 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18520 ac_cv_group_kmem=`echo $ac_ls_output \
18521 | sed -ne 's/[ ][ ]*/ /g;
18522 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18523 / /s/.* //;p;'`
18526 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18527 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18528 KMEM_GROUP=$ac_cv_group_kmem
18530 if test "x$ac_save_LIBS" = x; then
18531 GETLOADAVG_LIBS=$LIBS
18532 else
18533 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18535 LIBS=$ac_save_LIBS
18539 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18540 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18541 if test "${ac_cv_sys_largefile_source+set}" = set; then
18542 echo $ECHO_N "(cached) $ECHO_C" >&6
18543 else
18544 while :; do
18545 cat >conftest.$ac_ext <<_ACEOF
18546 /* confdefs.h. */
18547 _ACEOF
18548 cat confdefs.h >>conftest.$ac_ext
18549 cat >>conftest.$ac_ext <<_ACEOF
18550 /* end confdefs.h. */
18551 #include <stdio.h>
18553 main ()
18555 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18557 return 0;
18559 _ACEOF
18560 rm -f conftest.$ac_objext conftest$ac_exeext
18561 if { (ac_try="$ac_link"
18562 case "(($ac_try" in
18563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18564 *) ac_try_echo=$ac_try;;
18565 esac
18566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18567 (eval "$ac_link") 2>conftest.er1
18568 ac_status=$?
18569 grep -v '^ *+' conftest.er1 >conftest.err
18570 rm -f conftest.er1
18571 cat conftest.err >&5
18572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18573 (exit $ac_status); } && {
18574 test -z "$ac_c_werror_flag" ||
18575 test ! -s conftest.err
18576 } && test -s conftest$ac_exeext &&
18577 $as_test_x conftest$ac_exeext; then
18578 ac_cv_sys_largefile_source=no; break
18579 else
18580 echo "$as_me: failed program was:" >&5
18581 sed 's/^/| /' conftest.$ac_ext >&5
18586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18587 conftest$ac_exeext conftest.$ac_ext
18588 cat >conftest.$ac_ext <<_ACEOF
18589 /* confdefs.h. */
18590 _ACEOF
18591 cat confdefs.h >>conftest.$ac_ext
18592 cat >>conftest.$ac_ext <<_ACEOF
18593 /* end confdefs.h. */
18594 #define _LARGEFILE_SOURCE 1
18595 #include <stdio.h>
18597 main ()
18599 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18601 return 0;
18603 _ACEOF
18604 rm -f conftest.$ac_objext conftest$ac_exeext
18605 if { (ac_try="$ac_link"
18606 case "(($ac_try" in
18607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18608 *) ac_try_echo=$ac_try;;
18609 esac
18610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18611 (eval "$ac_link") 2>conftest.er1
18612 ac_status=$?
18613 grep -v '^ *+' conftest.er1 >conftest.err
18614 rm -f conftest.er1
18615 cat conftest.err >&5
18616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617 (exit $ac_status); } && {
18618 test -z "$ac_c_werror_flag" ||
18619 test ! -s conftest.err
18620 } && test -s conftest$ac_exeext &&
18621 $as_test_x conftest$ac_exeext; then
18622 ac_cv_sys_largefile_source=1; break
18623 else
18624 echo "$as_me: failed program was:" >&5
18625 sed 's/^/| /' conftest.$ac_ext >&5
18630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18631 conftest$ac_exeext conftest.$ac_ext
18632 ac_cv_sys_largefile_source=unknown
18633 break
18634 done
18636 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18637 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18638 case $ac_cv_sys_largefile_source in #(
18639 no | unknown) ;;
18641 cat >>confdefs.h <<_ACEOF
18642 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18643 _ACEOF
18645 esac
18646 rm -f conftest*
18648 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18649 # in glibc 2.1.3, but that breaks too many other things.
18650 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18651 if test $ac_cv_sys_largefile_source != unknown; then
18653 cat >>confdefs.h <<\_ACEOF
18654 #define HAVE_FSEEKO 1
18655 _ACEOF
18660 # Configure getopt.
18661 # getopt.m4 serial 10
18663 # The getopt module assume you want GNU getopt, with getopt_long etc,
18664 # rather than vanilla POSIX getopt. This means your your code should
18665 # always include <getopt.h> for the getopt prototypes.
18677 # Prerequisites of lib/getopt*.
18682 GETOPT_H=
18684 for ac_header in getopt.h
18686 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18688 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18690 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18691 echo $ECHO_N "(cached) $ECHO_C" >&6
18693 ac_res=`eval echo '${'$as_ac_Header'}'`
18694 { echo "$as_me:$LINENO: result: $ac_res" >&5
18695 echo "${ECHO_T}$ac_res" >&6; }
18696 else
18697 # Is the header compilable?
18698 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18699 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18700 cat >conftest.$ac_ext <<_ACEOF
18701 /* confdefs.h. */
18702 _ACEOF
18703 cat confdefs.h >>conftest.$ac_ext
18704 cat >>conftest.$ac_ext <<_ACEOF
18705 /* end confdefs.h. */
18706 $ac_includes_default
18707 #include <$ac_header>
18708 _ACEOF
18709 rm -f conftest.$ac_objext
18710 if { (ac_try="$ac_compile"
18711 case "(($ac_try" in
18712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18713 *) ac_try_echo=$ac_try;;
18714 esac
18715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18716 (eval "$ac_compile") 2>conftest.er1
18717 ac_status=$?
18718 grep -v '^ *+' conftest.er1 >conftest.err
18719 rm -f conftest.er1
18720 cat conftest.err >&5
18721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18722 (exit $ac_status); } && {
18723 test -z "$ac_c_werror_flag" ||
18724 test ! -s conftest.err
18725 } && test -s conftest.$ac_objext; then
18726 ac_header_compiler=yes
18727 else
18728 echo "$as_me: failed program was:" >&5
18729 sed 's/^/| /' conftest.$ac_ext >&5
18731 ac_header_compiler=no
18734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18735 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18736 echo "${ECHO_T}$ac_header_compiler" >&6; }
18738 # Is the header present?
18739 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18740 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
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 #include <$ac_header>
18748 _ACEOF
18749 if { (ac_try="$ac_cpp conftest.$ac_ext"
18750 case "(($ac_try" in
18751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18752 *) ac_try_echo=$ac_try;;
18753 esac
18754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18755 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18756 ac_status=$?
18757 grep -v '^ *+' conftest.er1 >conftest.err
18758 rm -f conftest.er1
18759 cat conftest.err >&5
18760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18761 (exit $ac_status); } >/dev/null && {
18762 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18763 test ! -s conftest.err
18764 }; then
18765 ac_header_preproc=yes
18766 else
18767 echo "$as_me: failed program was:" >&5
18768 sed 's/^/| /' conftest.$ac_ext >&5
18770 ac_header_preproc=no
18773 rm -f conftest.err conftest.$ac_ext
18774 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18775 echo "${ECHO_T}$ac_header_preproc" >&6; }
18777 # So? What about this header?
18778 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18779 yes:no: )
18780 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18781 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18782 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18783 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18784 ac_header_preproc=yes
18786 no:yes:* )
18787 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18788 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18789 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18790 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18791 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18792 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18793 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18794 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18795 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18796 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18797 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18798 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18801 esac
18802 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18805 echo $ECHO_N "(cached) $ECHO_C" >&6
18806 else
18807 eval "$as_ac_Header=\$ac_header_preproc"
18809 ac_res=`eval echo '${'$as_ac_Header'}'`
18810 { echo "$as_me:$LINENO: result: $ac_res" >&5
18811 echo "${ECHO_T}$ac_res" >&6; }
18814 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18815 cat >>confdefs.h <<_ACEOF
18816 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18817 _ACEOF
18819 else
18820 GETOPT_H=getopt.h
18823 done
18825 if test -z "$GETOPT_H"; then
18827 for ac_func in getopt_long_only
18829 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18830 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18831 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18832 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18833 echo $ECHO_N "(cached) $ECHO_C" >&6
18834 else
18835 cat >conftest.$ac_ext <<_ACEOF
18836 /* confdefs.h. */
18837 _ACEOF
18838 cat confdefs.h >>conftest.$ac_ext
18839 cat >>conftest.$ac_ext <<_ACEOF
18840 /* end confdefs.h. */
18841 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18842 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18843 #define $ac_func innocuous_$ac_func
18845 /* System header to define __stub macros and hopefully few prototypes,
18846 which can conflict with char $ac_func (); below.
18847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18848 <limits.h> exists even on freestanding compilers. */
18850 #ifdef __STDC__
18851 # include <limits.h>
18852 #else
18853 # include <assert.h>
18854 #endif
18856 #undef $ac_func
18858 /* Override any GCC internal prototype to avoid an error.
18859 Use char because int might match the return type of a GCC
18860 builtin and then its argument prototype would still apply. */
18861 #ifdef __cplusplus
18862 extern "C"
18863 #endif
18864 char $ac_func ();
18865 /* The GNU C library defines this for functions which it implements
18866 to always fail with ENOSYS. Some functions are actually named
18867 something starting with __ and the normal name is an alias. */
18868 #if defined __stub_$ac_func || defined __stub___$ac_func
18869 choke me
18870 #endif
18873 main ()
18875 return $ac_func ();
18877 return 0;
18879 _ACEOF
18880 rm -f conftest.$ac_objext conftest$ac_exeext
18881 if { (ac_try="$ac_link"
18882 case "(($ac_try" in
18883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18884 *) ac_try_echo=$ac_try;;
18885 esac
18886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18887 (eval "$ac_link") 2>conftest.er1
18888 ac_status=$?
18889 grep -v '^ *+' conftest.er1 >conftest.err
18890 rm -f conftest.er1
18891 cat conftest.err >&5
18892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893 (exit $ac_status); } && {
18894 test -z "$ac_c_werror_flag" ||
18895 test ! -s conftest.err
18896 } && test -s conftest$ac_exeext &&
18897 $as_test_x conftest$ac_exeext; then
18898 eval "$as_ac_var=yes"
18899 else
18900 echo "$as_me: failed program was:" >&5
18901 sed 's/^/| /' conftest.$ac_ext >&5
18903 eval "$as_ac_var=no"
18906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18907 conftest$ac_exeext conftest.$ac_ext
18909 ac_res=`eval echo '${'$as_ac_var'}'`
18910 { echo "$as_me:$LINENO: result: $ac_res" >&5
18911 echo "${ECHO_T}$ac_res" >&6; }
18912 if test `eval echo '${'$as_ac_var'}'` = yes; then
18913 cat >>confdefs.h <<_ACEOF
18914 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18915 _ACEOF
18917 else
18918 GETOPT_H=getopt.h
18920 done
18924 if test -z "$GETOPT_H"; then
18925 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
18926 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
18927 if test "${ac_cv_have_decl_optreset+set}" = set; then
18928 echo $ECHO_N "(cached) $ECHO_C" >&6
18929 else
18930 cat >conftest.$ac_ext <<_ACEOF
18931 /* confdefs.h. */
18932 _ACEOF
18933 cat confdefs.h >>conftest.$ac_ext
18934 cat >>conftest.$ac_ext <<_ACEOF
18935 /* end confdefs.h. */
18936 #include <getopt.h>
18939 main ()
18941 #ifndef optreset
18942 (void) optreset;
18943 #endif
18946 return 0;
18948 _ACEOF
18949 rm -f conftest.$ac_objext
18950 if { (ac_try="$ac_compile"
18951 case "(($ac_try" in
18952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18953 *) ac_try_echo=$ac_try;;
18954 esac
18955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18956 (eval "$ac_compile") 2>conftest.er1
18957 ac_status=$?
18958 grep -v '^ *+' conftest.er1 >conftest.err
18959 rm -f conftest.er1
18960 cat conftest.err >&5
18961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962 (exit $ac_status); } && {
18963 test -z "$ac_c_werror_flag" ||
18964 test ! -s conftest.err
18965 } && test -s conftest.$ac_objext; then
18966 ac_cv_have_decl_optreset=yes
18967 else
18968 echo "$as_me: failed program was:" >&5
18969 sed 's/^/| /' conftest.$ac_ext >&5
18971 ac_cv_have_decl_optreset=no
18974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18976 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
18977 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18978 if test $ac_cv_have_decl_optreset = yes; then
18979 GETOPT_H=getopt.h
18984 if test -z "$GETOPT_H"; then
18985 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
18986 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
18987 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18988 echo $ECHO_N "(cached) $ECHO_C" >&6
18989 else
18990 if test "$cross_compiling" = yes; then
18991 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
18992 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
18993 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18994 echo $ECHO_N "(cached) $ECHO_C" >&6
18995 else
18996 cat >conftest.$ac_ext <<_ACEOF
18997 /* confdefs.h. */
18998 _ACEOF
18999 cat confdefs.h >>conftest.$ac_ext
19000 cat >>conftest.$ac_ext <<_ACEOF
19001 /* end confdefs.h. */
19002 #include <getopt.h>
19005 main ()
19007 #ifndef getopt_clip
19008 (void) getopt_clip;
19009 #endif
19012 return 0;
19014 _ACEOF
19015 rm -f conftest.$ac_objext
19016 if { (ac_try="$ac_compile"
19017 case "(($ac_try" in
19018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19019 *) ac_try_echo=$ac_try;;
19020 esac
19021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19022 (eval "$ac_compile") 2>conftest.er1
19023 ac_status=$?
19024 grep -v '^ *+' conftest.er1 >conftest.err
19025 rm -f conftest.er1
19026 cat conftest.err >&5
19027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028 (exit $ac_status); } && {
19029 test -z "$ac_c_werror_flag" ||
19030 test ! -s conftest.err
19031 } && test -s conftest.$ac_objext; then
19032 ac_cv_have_decl_getopt_clip=yes
19033 else
19034 echo "$as_me: failed program was:" >&5
19035 sed 's/^/| /' conftest.$ac_ext >&5
19037 ac_cv_have_decl_getopt_clip=no
19040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19042 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
19043 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19044 if test $ac_cv_have_decl_getopt_clip = yes; then
19045 gl_cv_func_gnu_getopt=no
19046 else
19047 gl_cv_func_gnu_getopt=yes
19050 else
19051 cat >conftest.$ac_ext <<_ACEOF
19052 /* confdefs.h. */
19053 _ACEOF
19054 cat confdefs.h >>conftest.$ac_ext
19055 cat >>conftest.$ac_ext <<_ACEOF
19056 /* end confdefs.h. */
19057 #include <getopt.h>
19059 main ()
19062 char *myargv[3];
19063 myargv[0] = "conftest";
19064 myargv[1] = "-+";
19065 myargv[2] = 0;
19066 return getopt (2, myargv, "+a") != '?';
19069 return 0;
19071 _ACEOF
19072 rm -f conftest$ac_exeext
19073 if { (ac_try="$ac_link"
19074 case "(($ac_try" in
19075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19076 *) ac_try_echo=$ac_try;;
19077 esac
19078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19079 (eval "$ac_link") 2>&5
19080 ac_status=$?
19081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19083 { (case "(($ac_try" in
19084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19085 *) ac_try_echo=$ac_try;;
19086 esac
19087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19088 (eval "$ac_try") 2>&5
19089 ac_status=$?
19090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091 (exit $ac_status); }; }; then
19092 gl_cv_func_gnu_getopt=yes
19093 else
19094 echo "$as_me: program exited with status $ac_status" >&5
19095 echo "$as_me: failed program was:" >&5
19096 sed 's/^/| /' conftest.$ac_ext >&5
19098 ( exit $ac_status )
19099 gl_cv_func_gnu_getopt=no
19101 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19106 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
19107 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19108 if test "$gl_cv_func_gnu_getopt" = "no"; then
19109 GETOPT_H=getopt.h
19115 if test -n "$GETOPT_H"; then
19118 GETOPT_H=getopt.h
19120 cat >>confdefs.h <<\_ACEOF
19121 #define __GETOPT_PREFIX rpl_
19122 _ACEOF
19127 GETOPTOBJS='getopt.o getopt1.o'
19134 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
19135 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
19136 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19137 echo $ECHO_N "(cached) $ECHO_C" >&6
19138 else
19139 # Use it with a single arg.
19140 cat >conftest.$ac_ext <<_ACEOF
19141 /* confdefs.h. */
19142 _ACEOF
19143 cat confdefs.h >>conftest.$ac_ext
19144 cat >>conftest.$ac_ext <<_ACEOF
19145 /* end confdefs.h. */
19146 $ac_includes_default
19148 main ()
19150 getpgrp (0);
19152 return 0;
19154 _ACEOF
19155 rm -f conftest.$ac_objext
19156 if { (ac_try="$ac_compile"
19157 case "(($ac_try" in
19158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19159 *) ac_try_echo=$ac_try;;
19160 esac
19161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19162 (eval "$ac_compile") 2>conftest.er1
19163 ac_status=$?
19164 grep -v '^ *+' conftest.er1 >conftest.err
19165 rm -f conftest.er1
19166 cat conftest.err >&5
19167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19168 (exit $ac_status); } && {
19169 test -z "$ac_c_werror_flag" ||
19170 test ! -s conftest.err
19171 } && test -s conftest.$ac_objext; then
19172 ac_cv_func_getpgrp_void=no
19173 else
19174 echo "$as_me: failed program was:" >&5
19175 sed 's/^/| /' conftest.$ac_ext >&5
19177 ac_cv_func_getpgrp_void=yes
19180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19183 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
19184 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19185 if test $ac_cv_func_getpgrp_void = yes; then
19187 cat >>confdefs.h <<\_ACEOF
19188 #define GETPGRP_VOID 1
19189 _ACEOF
19195 for ac_func in strftime
19197 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19198 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19199 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19200 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19201 echo $ECHO_N "(cached) $ECHO_C" >&6
19202 else
19203 cat >conftest.$ac_ext <<_ACEOF
19204 /* confdefs.h. */
19205 _ACEOF
19206 cat confdefs.h >>conftest.$ac_ext
19207 cat >>conftest.$ac_ext <<_ACEOF
19208 /* end confdefs.h. */
19209 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19211 #define $ac_func innocuous_$ac_func
19213 /* System header to define __stub macros and hopefully few prototypes,
19214 which can conflict with char $ac_func (); below.
19215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19216 <limits.h> exists even on freestanding compilers. */
19218 #ifdef __STDC__
19219 # include <limits.h>
19220 #else
19221 # include <assert.h>
19222 #endif
19224 #undef $ac_func
19226 /* Override any GCC internal prototype to avoid an error.
19227 Use char because int might match the return type of a GCC
19228 builtin and then its argument prototype would still apply. */
19229 #ifdef __cplusplus
19230 extern "C"
19231 #endif
19232 char $ac_func ();
19233 /* The GNU C library defines this for functions which it implements
19234 to always fail with ENOSYS. Some functions are actually named
19235 something starting with __ and the normal name is an alias. */
19236 #if defined __stub_$ac_func || defined __stub___$ac_func
19237 choke me
19238 #endif
19241 main ()
19243 return $ac_func ();
19245 return 0;
19247 _ACEOF
19248 rm -f conftest.$ac_objext conftest$ac_exeext
19249 if { (ac_try="$ac_link"
19250 case "(($ac_try" in
19251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19252 *) ac_try_echo=$ac_try;;
19253 esac
19254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19255 (eval "$ac_link") 2>conftest.er1
19256 ac_status=$?
19257 grep -v '^ *+' conftest.er1 >conftest.err
19258 rm -f conftest.er1
19259 cat conftest.err >&5
19260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261 (exit $ac_status); } && {
19262 test -z "$ac_c_werror_flag" ||
19263 test ! -s conftest.err
19264 } && test -s conftest$ac_exeext &&
19265 $as_test_x conftest$ac_exeext; then
19266 eval "$as_ac_var=yes"
19267 else
19268 echo "$as_me: failed program was:" >&5
19269 sed 's/^/| /' conftest.$ac_ext >&5
19271 eval "$as_ac_var=no"
19274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19275 conftest$ac_exeext conftest.$ac_ext
19277 ac_res=`eval echo '${'$as_ac_var'}'`
19278 { echo "$as_me:$LINENO: result: $ac_res" >&5
19279 echo "${ECHO_T}$ac_res" >&6; }
19280 if test `eval echo '${'$as_ac_var'}'` = yes; then
19281 cat >>confdefs.h <<_ACEOF
19282 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19283 _ACEOF
19285 else
19286 # strftime is in -lintl on SCO UNIX.
19287 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19288 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
19289 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19290 echo $ECHO_N "(cached) $ECHO_C" >&6
19291 else
19292 ac_check_lib_save_LIBS=$LIBS
19293 LIBS="-lintl $LIBS"
19294 cat >conftest.$ac_ext <<_ACEOF
19295 /* confdefs.h. */
19296 _ACEOF
19297 cat confdefs.h >>conftest.$ac_ext
19298 cat >>conftest.$ac_ext <<_ACEOF
19299 /* end confdefs.h. */
19301 /* Override any GCC internal prototype to avoid an error.
19302 Use char because int might match the return type of a GCC
19303 builtin and then its argument prototype would still apply. */
19304 #ifdef __cplusplus
19305 extern "C"
19306 #endif
19307 char strftime ();
19309 main ()
19311 return strftime ();
19313 return 0;
19315 _ACEOF
19316 rm -f conftest.$ac_objext conftest$ac_exeext
19317 if { (ac_try="$ac_link"
19318 case "(($ac_try" in
19319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19320 *) ac_try_echo=$ac_try;;
19321 esac
19322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19323 (eval "$ac_link") 2>conftest.er1
19324 ac_status=$?
19325 grep -v '^ *+' conftest.er1 >conftest.err
19326 rm -f conftest.er1
19327 cat conftest.err >&5
19328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19329 (exit $ac_status); } && {
19330 test -z "$ac_c_werror_flag" ||
19331 test ! -s conftest.err
19332 } && test -s conftest$ac_exeext &&
19333 $as_test_x conftest$ac_exeext; then
19334 ac_cv_lib_intl_strftime=yes
19335 else
19336 echo "$as_me: failed program was:" >&5
19337 sed 's/^/| /' conftest.$ac_ext >&5
19339 ac_cv_lib_intl_strftime=no
19342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19343 conftest$ac_exeext conftest.$ac_ext
19344 LIBS=$ac_check_lib_save_LIBS
19346 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19347 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19348 if test $ac_cv_lib_intl_strftime = yes; then
19349 cat >>confdefs.h <<\_ACEOF
19350 #define HAVE_STRFTIME 1
19351 _ACEOF
19353 LIBS="-lintl $LIBS"
19357 done
19360 # UNIX98 PTYs.
19362 for ac_func in grantpt
19364 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19365 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19366 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19367 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19368 echo $ECHO_N "(cached) $ECHO_C" >&6
19369 else
19370 cat >conftest.$ac_ext <<_ACEOF
19371 /* confdefs.h. */
19372 _ACEOF
19373 cat confdefs.h >>conftest.$ac_ext
19374 cat >>conftest.$ac_ext <<_ACEOF
19375 /* end confdefs.h. */
19376 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19377 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19378 #define $ac_func innocuous_$ac_func
19380 /* System header to define __stub macros and hopefully few prototypes,
19381 which can conflict with char $ac_func (); below.
19382 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19383 <limits.h> exists even on freestanding compilers. */
19385 #ifdef __STDC__
19386 # include <limits.h>
19387 #else
19388 # include <assert.h>
19389 #endif
19391 #undef $ac_func
19393 /* Override any GCC internal prototype to avoid an error.
19394 Use char because int might match the return type of a GCC
19395 builtin and then its argument prototype would still apply. */
19396 #ifdef __cplusplus
19397 extern "C"
19398 #endif
19399 char $ac_func ();
19400 /* The GNU C library defines this for functions which it implements
19401 to always fail with ENOSYS. Some functions are actually named
19402 something starting with __ and the normal name is an alias. */
19403 #if defined __stub_$ac_func || defined __stub___$ac_func
19404 choke me
19405 #endif
19408 main ()
19410 return $ac_func ();
19412 return 0;
19414 _ACEOF
19415 rm -f conftest.$ac_objext conftest$ac_exeext
19416 if { (ac_try="$ac_link"
19417 case "(($ac_try" in
19418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19419 *) ac_try_echo=$ac_try;;
19420 esac
19421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19422 (eval "$ac_link") 2>conftest.er1
19423 ac_status=$?
19424 grep -v '^ *+' conftest.er1 >conftest.err
19425 rm -f conftest.er1
19426 cat conftest.err >&5
19427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428 (exit $ac_status); } && {
19429 test -z "$ac_c_werror_flag" ||
19430 test ! -s conftest.err
19431 } && test -s conftest$ac_exeext &&
19432 $as_test_x conftest$ac_exeext; then
19433 eval "$as_ac_var=yes"
19434 else
19435 echo "$as_me: failed program was:" >&5
19436 sed 's/^/| /' conftest.$ac_ext >&5
19438 eval "$as_ac_var=no"
19441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19442 conftest$ac_exeext conftest.$ac_ext
19444 ac_res=`eval echo '${'$as_ac_var'}'`
19445 { echo "$as_me:$LINENO: result: $ac_res" >&5
19446 echo "${ECHO_T}$ac_res" >&6; }
19447 if test `eval echo '${'$as_ac_var'}'` = yes; then
19448 cat >>confdefs.h <<_ACEOF
19449 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19450 _ACEOF
19453 done
19456 # PTY-related GNU extensions.
19458 for ac_func in getpt
19460 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19461 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19462 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19463 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19464 echo $ECHO_N "(cached) $ECHO_C" >&6
19465 else
19466 cat >conftest.$ac_ext <<_ACEOF
19467 /* confdefs.h. */
19468 _ACEOF
19469 cat confdefs.h >>conftest.$ac_ext
19470 cat >>conftest.$ac_ext <<_ACEOF
19471 /* end confdefs.h. */
19472 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19473 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19474 #define $ac_func innocuous_$ac_func
19476 /* System header to define __stub macros and hopefully few prototypes,
19477 which can conflict with char $ac_func (); below.
19478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19479 <limits.h> exists even on freestanding compilers. */
19481 #ifdef __STDC__
19482 # include <limits.h>
19483 #else
19484 # include <assert.h>
19485 #endif
19487 #undef $ac_func
19489 /* Override any GCC internal prototype to avoid an error.
19490 Use char because int might match the return type of a GCC
19491 builtin and then its argument prototype would still apply. */
19492 #ifdef __cplusplus
19493 extern "C"
19494 #endif
19495 char $ac_func ();
19496 /* The GNU C library defines this for functions which it implements
19497 to always fail with ENOSYS. Some functions are actually named
19498 something starting with __ and the normal name is an alias. */
19499 #if defined __stub_$ac_func || defined __stub___$ac_func
19500 choke me
19501 #endif
19504 main ()
19506 return $ac_func ();
19508 return 0;
19510 _ACEOF
19511 rm -f conftest.$ac_objext conftest$ac_exeext
19512 if { (ac_try="$ac_link"
19513 case "(($ac_try" in
19514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19515 *) ac_try_echo=$ac_try;;
19516 esac
19517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19518 (eval "$ac_link") 2>conftest.er1
19519 ac_status=$?
19520 grep -v '^ *+' conftest.er1 >conftest.err
19521 rm -f conftest.er1
19522 cat conftest.err >&5
19523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524 (exit $ac_status); } && {
19525 test -z "$ac_c_werror_flag" ||
19526 test ! -s conftest.err
19527 } && test -s conftest$ac_exeext &&
19528 $as_test_x conftest$ac_exeext; then
19529 eval "$as_ac_var=yes"
19530 else
19531 echo "$as_me: failed program was:" >&5
19532 sed 's/^/| /' conftest.$ac_ext >&5
19534 eval "$as_ac_var=no"
19537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19538 conftest$ac_exeext conftest.$ac_ext
19540 ac_res=`eval echo '${'$as_ac_var'}'`
19541 { echo "$as_me:$LINENO: result: $ac_res" >&5
19542 echo "${ECHO_T}$ac_res" >&6; }
19543 if test `eval echo '${'$as_ac_var'}'` = yes; then
19544 cat >>confdefs.h <<_ACEOF
19545 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19546 _ACEOF
19549 done
19552 # Check this now, so that we will NOT find the above functions in ncurses.
19553 # That is because we have not set up to link ncurses in lib-src.
19554 # It's better to believe a function is not available
19555 # than to expect to find it in ncurses.
19557 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19558 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19559 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19560 echo $ECHO_N "(cached) $ECHO_C" >&6
19561 else
19562 ac_check_lib_save_LIBS=$LIBS
19563 LIBS="-lncurses $LIBS"
19564 cat >conftest.$ac_ext <<_ACEOF
19565 /* confdefs.h. */
19566 _ACEOF
19567 cat confdefs.h >>conftest.$ac_ext
19568 cat >>conftest.$ac_ext <<_ACEOF
19569 /* end confdefs.h. */
19571 /* Override any GCC internal prototype to avoid an error.
19572 Use char because int might match the return type of a GCC
19573 builtin and then its argument prototype would still apply. */
19574 #ifdef __cplusplus
19575 extern "C"
19576 #endif
19577 char tparm ();
19579 main ()
19581 return tparm ();
19583 return 0;
19585 _ACEOF
19586 rm -f conftest.$ac_objext conftest$ac_exeext
19587 if { (ac_try="$ac_link"
19588 case "(($ac_try" in
19589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19590 *) ac_try_echo=$ac_try;;
19591 esac
19592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19593 (eval "$ac_link") 2>conftest.er1
19594 ac_status=$?
19595 grep -v '^ *+' conftest.er1 >conftest.err
19596 rm -f conftest.er1
19597 cat conftest.err >&5
19598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19599 (exit $ac_status); } && {
19600 test -z "$ac_c_werror_flag" ||
19601 test ! -s conftest.err
19602 } && test -s conftest$ac_exeext &&
19603 $as_test_x conftest$ac_exeext; then
19604 ac_cv_lib_ncurses_tparm=yes
19605 else
19606 echo "$as_me: failed program was:" >&5
19607 sed 's/^/| /' conftest.$ac_ext >&5
19609 ac_cv_lib_ncurses_tparm=no
19612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19613 conftest$ac_exeext conftest.$ac_ext
19614 LIBS=$ac_check_lib_save_LIBS
19616 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19617 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19618 if test $ac_cv_lib_ncurses_tparm = yes; then
19619 cat >>confdefs.h <<_ACEOF
19620 #define HAVE_LIBNCURSES 1
19621 _ACEOF
19623 LIBS="-lncurses $LIBS"
19628 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19630 resolv=no
19631 cat >conftest.$ac_ext <<_ACEOF
19632 /* confdefs.h. */
19633 _ACEOF
19634 cat confdefs.h >>conftest.$ac_ext
19635 cat >>conftest.$ac_ext <<_ACEOF
19636 /* end confdefs.h. */
19637 #include <netinet/in.h>
19638 #include <arpa/nameser.h>
19639 #include <resolv.h>
19641 main ()
19643 return res_init();
19645 return 0;
19647 _ACEOF
19648 rm -f conftest.$ac_objext conftest$ac_exeext
19649 if { (ac_try="$ac_link"
19650 case "(($ac_try" in
19651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19652 *) ac_try_echo=$ac_try;;
19653 esac
19654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19655 (eval "$ac_link") 2>conftest.er1
19656 ac_status=$?
19657 grep -v '^ *+' conftest.er1 >conftest.err
19658 rm -f conftest.er1
19659 cat conftest.err >&5
19660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19661 (exit $ac_status); } && {
19662 test -z "$ac_c_werror_flag" ||
19663 test ! -s conftest.err
19664 } && test -s conftest$ac_exeext &&
19665 $as_test_x conftest$ac_exeext; then
19666 have_res_init=yes
19667 else
19668 echo "$as_me: failed program was:" >&5
19669 sed 's/^/| /' conftest.$ac_ext >&5
19671 have_res_init=no
19674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19675 conftest$ac_exeext conftest.$ac_ext
19676 if test "$have_res_init" = no; then
19677 OLIBS="$LIBS"
19678 LIBS="$LIBS -lresolv"
19679 { echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
19680 echo $ECHO_N "checking for res_init with -lresolv... $ECHO_C" >&6; }
19681 cat >conftest.$ac_ext <<_ACEOF
19682 /* confdefs.h. */
19683 _ACEOF
19684 cat confdefs.h >>conftest.$ac_ext
19685 cat >>conftest.$ac_ext <<_ACEOF
19686 /* end confdefs.h. */
19687 #include <netinet/in.h>
19688 #include <arpa/nameser.h>
19689 #include <resolv.h>
19691 main ()
19693 return res_init();
19695 return 0;
19697 _ACEOF
19698 rm -f conftest.$ac_objext conftest$ac_exeext
19699 if { (ac_try="$ac_link"
19700 case "(($ac_try" in
19701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19702 *) ac_try_echo=$ac_try;;
19703 esac
19704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19705 (eval "$ac_link") 2>conftest.er1
19706 ac_status=$?
19707 grep -v '^ *+' conftest.er1 >conftest.err
19708 rm -f conftest.er1
19709 cat conftest.err >&5
19710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711 (exit $ac_status); } && {
19712 test -z "$ac_c_werror_flag" ||
19713 test ! -s conftest.err
19714 } && test -s conftest$ac_exeext &&
19715 $as_test_x conftest$ac_exeext; then
19716 have_res_init=yes
19717 else
19718 echo "$as_me: failed program was:" >&5
19719 sed 's/^/| /' conftest.$ac_ext >&5
19721 have_res_init=no
19724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19725 conftest$ac_exeext conftest.$ac_ext
19726 { echo "$as_me:$LINENO: result: $have_res_init" >&5
19727 echo "${ECHO_T}$have_res_init" >&6; }
19728 if test "$have_res_init" = yes ; then
19729 resolv=yes
19731 LIBS="$OLIBS"
19734 if test "$have_res_init" = yes; then
19736 cat >>confdefs.h <<\_ACEOF
19737 #define HAVE_RES_INIT 1
19738 _ACEOF
19742 # Do we need the Hesiod library to provide the support routines?
19743 if test "$with_hesiod" = yes ; then
19744 # Don't set $LIBS here -- see comments above.
19745 { echo "$as_me:$LINENO: checking for res_send" >&5
19746 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
19747 if test "${ac_cv_func_res_send+set}" = set; then
19748 echo $ECHO_N "(cached) $ECHO_C" >&6
19749 else
19750 cat >conftest.$ac_ext <<_ACEOF
19751 /* confdefs.h. */
19752 _ACEOF
19753 cat confdefs.h >>conftest.$ac_ext
19754 cat >>conftest.$ac_ext <<_ACEOF
19755 /* end confdefs.h. */
19756 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19758 #define res_send innocuous_res_send
19760 /* System header to define __stub macros and hopefully few prototypes,
19761 which can conflict with char res_send (); below.
19762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19763 <limits.h> exists even on freestanding compilers. */
19765 #ifdef __STDC__
19766 # include <limits.h>
19767 #else
19768 # include <assert.h>
19769 #endif
19771 #undef res_send
19773 /* Override any GCC internal prototype to avoid an error.
19774 Use char because int might match the return type of a GCC
19775 builtin and then its argument prototype would still apply. */
19776 #ifdef __cplusplus
19777 extern "C"
19778 #endif
19779 char res_send ();
19780 /* The GNU C library defines this for functions which it implements
19781 to always fail with ENOSYS. Some functions are actually named
19782 something starting with __ and the normal name is an alias. */
19783 #if defined __stub_res_send || defined __stub___res_send
19784 choke me
19785 #endif
19788 main ()
19790 return res_send ();
19792 return 0;
19794 _ACEOF
19795 rm -f conftest.$ac_objext conftest$ac_exeext
19796 if { (ac_try="$ac_link"
19797 case "(($ac_try" in
19798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19799 *) ac_try_echo=$ac_try;;
19800 esac
19801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19802 (eval "$ac_link") 2>conftest.er1
19803 ac_status=$?
19804 grep -v '^ *+' conftest.er1 >conftest.err
19805 rm -f conftest.er1
19806 cat conftest.err >&5
19807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808 (exit $ac_status); } && {
19809 test -z "$ac_c_werror_flag" ||
19810 test ! -s conftest.err
19811 } && test -s conftest$ac_exeext &&
19812 $as_test_x conftest$ac_exeext; then
19813 ac_cv_func_res_send=yes
19814 else
19815 echo "$as_me: failed program was:" >&5
19816 sed 's/^/| /' conftest.$ac_ext >&5
19818 ac_cv_func_res_send=no
19821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19822 conftest$ac_exeext conftest.$ac_ext
19824 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19825 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19826 if test $ac_cv_func_res_send = yes; then
19828 else
19829 { echo "$as_me:$LINENO: checking for __res_send" >&5
19830 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
19831 if test "${ac_cv_func___res_send+set}" = set; then
19832 echo $ECHO_N "(cached) $ECHO_C" >&6
19833 else
19834 cat >conftest.$ac_ext <<_ACEOF
19835 /* confdefs.h. */
19836 _ACEOF
19837 cat confdefs.h >>conftest.$ac_ext
19838 cat >>conftest.$ac_ext <<_ACEOF
19839 /* end confdefs.h. */
19840 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19842 #define __res_send innocuous___res_send
19844 /* System header to define __stub macros and hopefully few prototypes,
19845 which can conflict with char __res_send (); below.
19846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19847 <limits.h> exists even on freestanding compilers. */
19849 #ifdef __STDC__
19850 # include <limits.h>
19851 #else
19852 # include <assert.h>
19853 #endif
19855 #undef __res_send
19857 /* Override any GCC internal prototype to avoid an error.
19858 Use char because int might match the return type of a GCC
19859 builtin and then its argument prototype would still apply. */
19860 #ifdef __cplusplus
19861 extern "C"
19862 #endif
19863 char __res_send ();
19864 /* The GNU C library defines this for functions which it implements
19865 to always fail with ENOSYS. Some functions are actually named
19866 something starting with __ and the normal name is an alias. */
19867 #if defined __stub___res_send || defined __stub_____res_send
19868 choke me
19869 #endif
19872 main ()
19874 return __res_send ();
19876 return 0;
19878 _ACEOF
19879 rm -f conftest.$ac_objext conftest$ac_exeext
19880 if { (ac_try="$ac_link"
19881 case "(($ac_try" in
19882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19883 *) ac_try_echo=$ac_try;;
19884 esac
19885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19886 (eval "$ac_link") 2>conftest.er1
19887 ac_status=$?
19888 grep -v '^ *+' conftest.er1 >conftest.err
19889 rm -f conftest.er1
19890 cat conftest.err >&5
19891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892 (exit $ac_status); } && {
19893 test -z "$ac_c_werror_flag" ||
19894 test ! -s conftest.err
19895 } && test -s conftest$ac_exeext &&
19896 $as_test_x conftest$ac_exeext; then
19897 ac_cv_func___res_send=yes
19898 else
19899 echo "$as_me: failed program was:" >&5
19900 sed 's/^/| /' conftest.$ac_ext >&5
19902 ac_cv_func___res_send=no
19905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19906 conftest$ac_exeext conftest.$ac_ext
19908 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
19909 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19910 if test $ac_cv_func___res_send = yes; then
19912 else
19913 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
19914 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
19915 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19916 echo $ECHO_N "(cached) $ECHO_C" >&6
19917 else
19918 ac_check_lib_save_LIBS=$LIBS
19919 LIBS="-lresolv $LIBS"
19920 cat >conftest.$ac_ext <<_ACEOF
19921 /* confdefs.h. */
19922 _ACEOF
19923 cat confdefs.h >>conftest.$ac_ext
19924 cat >>conftest.$ac_ext <<_ACEOF
19925 /* end confdefs.h. */
19927 /* Override any GCC internal prototype to avoid an error.
19928 Use char because int might match the return type of a GCC
19929 builtin and then its argument prototype would still apply. */
19930 #ifdef __cplusplus
19931 extern "C"
19932 #endif
19933 char res_send ();
19935 main ()
19937 return res_send ();
19939 return 0;
19941 _ACEOF
19942 rm -f conftest.$ac_objext conftest$ac_exeext
19943 if { (ac_try="$ac_link"
19944 case "(($ac_try" in
19945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19946 *) ac_try_echo=$ac_try;;
19947 esac
19948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19949 (eval "$ac_link") 2>conftest.er1
19950 ac_status=$?
19951 grep -v '^ *+' conftest.er1 >conftest.err
19952 rm -f conftest.er1
19953 cat conftest.err >&5
19954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19955 (exit $ac_status); } && {
19956 test -z "$ac_c_werror_flag" ||
19957 test ! -s conftest.err
19958 } && test -s conftest$ac_exeext &&
19959 $as_test_x conftest$ac_exeext; then
19960 ac_cv_lib_resolv_res_send=yes
19961 else
19962 echo "$as_me: failed program was:" >&5
19963 sed 's/^/| /' conftest.$ac_ext >&5
19965 ac_cv_lib_resolv_res_send=no
19968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19969 conftest$ac_exeext conftest.$ac_ext
19970 LIBS=$ac_check_lib_save_LIBS
19972 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
19973 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19974 if test $ac_cv_lib_resolv_res_send = yes; then
19975 resolv=yes
19976 else
19977 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
19978 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
19979 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19980 echo $ECHO_N "(cached) $ECHO_C" >&6
19981 else
19982 ac_check_lib_save_LIBS=$LIBS
19983 LIBS="-lresolv $LIBS"
19984 cat >conftest.$ac_ext <<_ACEOF
19985 /* confdefs.h. */
19986 _ACEOF
19987 cat confdefs.h >>conftest.$ac_ext
19988 cat >>conftest.$ac_ext <<_ACEOF
19989 /* end confdefs.h. */
19991 /* Override any GCC internal prototype to avoid an error.
19992 Use char because int might match the return type of a GCC
19993 builtin and then its argument prototype would still apply. */
19994 #ifdef __cplusplus
19995 extern "C"
19996 #endif
19997 char __res_send ();
19999 main ()
20001 return __res_send ();
20003 return 0;
20005 _ACEOF
20006 rm -f conftest.$ac_objext conftest$ac_exeext
20007 if { (ac_try="$ac_link"
20008 case "(($ac_try" in
20009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20010 *) ac_try_echo=$ac_try;;
20011 esac
20012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20013 (eval "$ac_link") 2>conftest.er1
20014 ac_status=$?
20015 grep -v '^ *+' conftest.er1 >conftest.err
20016 rm -f conftest.er1
20017 cat conftest.err >&5
20018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20019 (exit $ac_status); } && {
20020 test -z "$ac_c_werror_flag" ||
20021 test ! -s conftest.err
20022 } && test -s conftest$ac_exeext &&
20023 $as_test_x conftest$ac_exeext; then
20024 ac_cv_lib_resolv___res_send=yes
20025 else
20026 echo "$as_me: failed program was:" >&5
20027 sed 's/^/| /' conftest.$ac_ext >&5
20029 ac_cv_lib_resolv___res_send=no
20032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20033 conftest$ac_exeext conftest.$ac_ext
20034 LIBS=$ac_check_lib_save_LIBS
20036 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
20037 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20038 if test $ac_cv_lib_resolv___res_send = yes; then
20039 resolv=yes
20048 if test "$resolv" = yes ; then
20049 RESOLVLIB=-lresolv
20050 else
20051 RESOLVLIB=
20053 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
20054 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
20055 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20056 echo $ECHO_N "(cached) $ECHO_C" >&6
20057 else
20058 cat >conftest.$ac_ext <<_ACEOF
20059 /* confdefs.h. */
20060 _ACEOF
20061 cat confdefs.h >>conftest.$ac_ext
20062 cat >>conftest.$ac_ext <<_ACEOF
20063 /* end confdefs.h. */
20064 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20065 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20066 #define hes_getmailhost innocuous_hes_getmailhost
20068 /* System header to define __stub macros and hopefully few prototypes,
20069 which can conflict with char hes_getmailhost (); below.
20070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20071 <limits.h> exists even on freestanding compilers. */
20073 #ifdef __STDC__
20074 # include <limits.h>
20075 #else
20076 # include <assert.h>
20077 #endif
20079 #undef hes_getmailhost
20081 /* Override any GCC internal prototype to avoid an error.
20082 Use char because int might match the return type of a GCC
20083 builtin and then its argument prototype would still apply. */
20084 #ifdef __cplusplus
20085 extern "C"
20086 #endif
20087 char hes_getmailhost ();
20088 /* The GNU C library defines this for functions which it implements
20089 to always fail with ENOSYS. Some functions are actually named
20090 something starting with __ and the normal name is an alias. */
20091 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20092 choke me
20093 #endif
20096 main ()
20098 return hes_getmailhost ();
20100 return 0;
20102 _ACEOF
20103 rm -f conftest.$ac_objext conftest$ac_exeext
20104 if { (ac_try="$ac_link"
20105 case "(($ac_try" in
20106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20107 *) ac_try_echo=$ac_try;;
20108 esac
20109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20110 (eval "$ac_link") 2>conftest.er1
20111 ac_status=$?
20112 grep -v '^ *+' conftest.er1 >conftest.err
20113 rm -f conftest.er1
20114 cat conftest.err >&5
20115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116 (exit $ac_status); } && {
20117 test -z "$ac_c_werror_flag" ||
20118 test ! -s conftest.err
20119 } && test -s conftest$ac_exeext &&
20120 $as_test_x conftest$ac_exeext; then
20121 ac_cv_func_hes_getmailhost=yes
20122 else
20123 echo "$as_me: failed program was:" >&5
20124 sed 's/^/| /' conftest.$ac_ext >&5
20126 ac_cv_func_hes_getmailhost=no
20129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20130 conftest$ac_exeext conftest.$ac_ext
20132 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
20133 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20134 if test $ac_cv_func_hes_getmailhost = yes; then
20136 else
20137 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
20138 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
20139 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20140 echo $ECHO_N "(cached) $ECHO_C" >&6
20141 else
20142 ac_check_lib_save_LIBS=$LIBS
20143 LIBS="-lhesiod $RESOLVLIB $LIBS"
20144 cat >conftest.$ac_ext <<_ACEOF
20145 /* confdefs.h. */
20146 _ACEOF
20147 cat confdefs.h >>conftest.$ac_ext
20148 cat >>conftest.$ac_ext <<_ACEOF
20149 /* end confdefs.h. */
20151 /* Override any GCC internal prototype to avoid an error.
20152 Use char because int might match the return type of a GCC
20153 builtin and then its argument prototype would still apply. */
20154 #ifdef __cplusplus
20155 extern "C"
20156 #endif
20157 char hes_getmailhost ();
20159 main ()
20161 return hes_getmailhost ();
20163 return 0;
20165 _ACEOF
20166 rm -f conftest.$ac_objext conftest$ac_exeext
20167 if { (ac_try="$ac_link"
20168 case "(($ac_try" in
20169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20170 *) ac_try_echo=$ac_try;;
20171 esac
20172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20173 (eval "$ac_link") 2>conftest.er1
20174 ac_status=$?
20175 grep -v '^ *+' conftest.er1 >conftest.err
20176 rm -f conftest.er1
20177 cat conftest.err >&5
20178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20179 (exit $ac_status); } && {
20180 test -z "$ac_c_werror_flag" ||
20181 test ! -s conftest.err
20182 } && test -s conftest$ac_exeext &&
20183 $as_test_x conftest$ac_exeext; then
20184 ac_cv_lib_hesiod_hes_getmailhost=yes
20185 else
20186 echo "$as_me: failed program was:" >&5
20187 sed 's/^/| /' conftest.$ac_ext >&5
20189 ac_cv_lib_hesiod_hes_getmailhost=no
20192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20193 conftest$ac_exeext conftest.$ac_ext
20194 LIBS=$ac_check_lib_save_LIBS
20196 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20197 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20198 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20200 cat >>confdefs.h <<\_ACEOF
20201 #define HAVE_LIBHESIOD 1
20202 _ACEOF
20204 else
20212 # Do we need libresolv (due to res_init or Hesiod)?
20213 if test "$resolv" = yes ; then
20215 cat >>confdefs.h <<\_ACEOF
20216 #define HAVE_LIBRESOLV 1
20217 _ACEOF
20221 # These tell us which Kerberos-related libraries to use.
20222 if test "${with_kerberos+set}" = set; then
20224 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
20225 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
20226 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20227 echo $ECHO_N "(cached) $ECHO_C" >&6
20228 else
20229 ac_check_lib_save_LIBS=$LIBS
20230 LIBS="-lcom_err $LIBS"
20231 cat >conftest.$ac_ext <<_ACEOF
20232 /* confdefs.h. */
20233 _ACEOF
20234 cat confdefs.h >>conftest.$ac_ext
20235 cat >>conftest.$ac_ext <<_ACEOF
20236 /* end confdefs.h. */
20238 /* Override any GCC internal prototype to avoid an error.
20239 Use char because int might match the return type of a GCC
20240 builtin and then its argument prototype would still apply. */
20241 #ifdef __cplusplus
20242 extern "C"
20243 #endif
20244 char com_err ();
20246 main ()
20248 return com_err ();
20250 return 0;
20252 _ACEOF
20253 rm -f conftest.$ac_objext conftest$ac_exeext
20254 if { (ac_try="$ac_link"
20255 case "(($ac_try" in
20256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20257 *) ac_try_echo=$ac_try;;
20258 esac
20259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20260 (eval "$ac_link") 2>conftest.er1
20261 ac_status=$?
20262 grep -v '^ *+' conftest.er1 >conftest.err
20263 rm -f conftest.er1
20264 cat conftest.err >&5
20265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266 (exit $ac_status); } && {
20267 test -z "$ac_c_werror_flag" ||
20268 test ! -s conftest.err
20269 } && test -s conftest$ac_exeext &&
20270 $as_test_x conftest$ac_exeext; then
20271 ac_cv_lib_com_err_com_err=yes
20272 else
20273 echo "$as_me: failed program was:" >&5
20274 sed 's/^/| /' conftest.$ac_ext >&5
20276 ac_cv_lib_com_err_com_err=no
20279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20280 conftest$ac_exeext conftest.$ac_ext
20281 LIBS=$ac_check_lib_save_LIBS
20283 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
20284 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20285 if test $ac_cv_lib_com_err_com_err = yes; then
20286 cat >>confdefs.h <<_ACEOF
20287 #define HAVE_LIBCOM_ERR 1
20288 _ACEOF
20290 LIBS="-lcom_err $LIBS"
20295 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
20296 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
20297 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20298 echo $ECHO_N "(cached) $ECHO_C" >&6
20299 else
20300 ac_check_lib_save_LIBS=$LIBS
20301 LIBS="-lk5crypto $LIBS"
20302 cat >conftest.$ac_ext <<_ACEOF
20303 /* confdefs.h. */
20304 _ACEOF
20305 cat confdefs.h >>conftest.$ac_ext
20306 cat >>conftest.$ac_ext <<_ACEOF
20307 /* end confdefs.h. */
20309 /* Override any GCC internal prototype to avoid an error.
20310 Use char because int might match the return type of a GCC
20311 builtin and then its argument prototype would still apply. */
20312 #ifdef __cplusplus
20313 extern "C"
20314 #endif
20315 char mit_des_cbc_encrypt ();
20317 main ()
20319 return mit_des_cbc_encrypt ();
20321 return 0;
20323 _ACEOF
20324 rm -f conftest.$ac_objext conftest$ac_exeext
20325 if { (ac_try="$ac_link"
20326 case "(($ac_try" in
20327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20328 *) ac_try_echo=$ac_try;;
20329 esac
20330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20331 (eval "$ac_link") 2>conftest.er1
20332 ac_status=$?
20333 grep -v '^ *+' conftest.er1 >conftest.err
20334 rm -f conftest.er1
20335 cat conftest.err >&5
20336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20337 (exit $ac_status); } && {
20338 test -z "$ac_c_werror_flag" ||
20339 test ! -s conftest.err
20340 } && test -s conftest$ac_exeext &&
20341 $as_test_x conftest$ac_exeext; then
20342 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20343 else
20344 echo "$as_me: failed program was:" >&5
20345 sed 's/^/| /' conftest.$ac_ext >&5
20347 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20351 conftest$ac_exeext conftest.$ac_ext
20352 LIBS=$ac_check_lib_save_LIBS
20354 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20355 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20356 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20357 cat >>confdefs.h <<_ACEOF
20358 #define HAVE_LIBK5CRYPTO 1
20359 _ACEOF
20361 LIBS="-lk5crypto $LIBS"
20366 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
20367 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
20368 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20369 echo $ECHO_N "(cached) $ECHO_C" >&6
20370 else
20371 ac_check_lib_save_LIBS=$LIBS
20372 LIBS="-lcrypto $LIBS"
20373 cat >conftest.$ac_ext <<_ACEOF
20374 /* confdefs.h. */
20375 _ACEOF
20376 cat confdefs.h >>conftest.$ac_ext
20377 cat >>conftest.$ac_ext <<_ACEOF
20378 /* end confdefs.h. */
20380 /* Override any GCC internal prototype to avoid an error.
20381 Use char because int might match the return type of a GCC
20382 builtin and then its argument prototype would still apply. */
20383 #ifdef __cplusplus
20384 extern "C"
20385 #endif
20386 char mit_des_cbc_encrypt ();
20388 main ()
20390 return mit_des_cbc_encrypt ();
20392 return 0;
20394 _ACEOF
20395 rm -f conftest.$ac_objext conftest$ac_exeext
20396 if { (ac_try="$ac_link"
20397 case "(($ac_try" in
20398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20399 *) ac_try_echo=$ac_try;;
20400 esac
20401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20402 (eval "$ac_link") 2>conftest.er1
20403 ac_status=$?
20404 grep -v '^ *+' conftest.er1 >conftest.err
20405 rm -f conftest.er1
20406 cat conftest.err >&5
20407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20408 (exit $ac_status); } && {
20409 test -z "$ac_c_werror_flag" ||
20410 test ! -s conftest.err
20411 } && test -s conftest$ac_exeext &&
20412 $as_test_x conftest$ac_exeext; then
20413 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20414 else
20415 echo "$as_me: failed program was:" >&5
20416 sed 's/^/| /' conftest.$ac_ext >&5
20418 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20422 conftest$ac_exeext conftest.$ac_ext
20423 LIBS=$ac_check_lib_save_LIBS
20425 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20426 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20427 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20428 cat >>confdefs.h <<_ACEOF
20429 #define HAVE_LIBCRYPTO 1
20430 _ACEOF
20432 LIBS="-lcrypto $LIBS"
20437 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20438 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20439 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20440 echo $ECHO_N "(cached) $ECHO_C" >&6
20441 else
20442 ac_check_lib_save_LIBS=$LIBS
20443 LIBS="-lkrb5 $LIBS"
20444 cat >conftest.$ac_ext <<_ACEOF
20445 /* confdefs.h. */
20446 _ACEOF
20447 cat confdefs.h >>conftest.$ac_ext
20448 cat >>conftest.$ac_ext <<_ACEOF
20449 /* end confdefs.h. */
20451 /* Override any GCC internal prototype to avoid an error.
20452 Use char because int might match the return type of a GCC
20453 builtin and then its argument prototype would still apply. */
20454 #ifdef __cplusplus
20455 extern "C"
20456 #endif
20457 char krb5_init_context ();
20459 main ()
20461 return krb5_init_context ();
20463 return 0;
20465 _ACEOF
20466 rm -f conftest.$ac_objext conftest$ac_exeext
20467 if { (ac_try="$ac_link"
20468 case "(($ac_try" in
20469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20470 *) ac_try_echo=$ac_try;;
20471 esac
20472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20473 (eval "$ac_link") 2>conftest.er1
20474 ac_status=$?
20475 grep -v '^ *+' conftest.er1 >conftest.err
20476 rm -f conftest.er1
20477 cat conftest.err >&5
20478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479 (exit $ac_status); } && {
20480 test -z "$ac_c_werror_flag" ||
20481 test ! -s conftest.err
20482 } && test -s conftest$ac_exeext &&
20483 $as_test_x conftest$ac_exeext; then
20484 ac_cv_lib_krb5_krb5_init_context=yes
20485 else
20486 echo "$as_me: failed program was:" >&5
20487 sed 's/^/| /' conftest.$ac_ext >&5
20489 ac_cv_lib_krb5_krb5_init_context=no
20492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20493 conftest$ac_exeext conftest.$ac_ext
20494 LIBS=$ac_check_lib_save_LIBS
20496 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20497 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20498 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20499 cat >>confdefs.h <<_ACEOF
20500 #define HAVE_LIBKRB5 1
20501 _ACEOF
20503 LIBS="-lkrb5 $LIBS"
20507 if test "${with_kerberos5+set}" != set; then
20509 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20510 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20511 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20512 echo $ECHO_N "(cached) $ECHO_C" >&6
20513 else
20514 ac_check_lib_save_LIBS=$LIBS
20515 LIBS="-ldes425 $LIBS"
20516 cat >conftest.$ac_ext <<_ACEOF
20517 /* confdefs.h. */
20518 _ACEOF
20519 cat confdefs.h >>conftest.$ac_ext
20520 cat >>conftest.$ac_ext <<_ACEOF
20521 /* end confdefs.h. */
20523 /* Override any GCC internal prototype to avoid an error.
20524 Use char because int might match the return type of a GCC
20525 builtin and then its argument prototype would still apply. */
20526 #ifdef __cplusplus
20527 extern "C"
20528 #endif
20529 char des_cbc_encrypt ();
20531 main ()
20533 return des_cbc_encrypt ();
20535 return 0;
20537 _ACEOF
20538 rm -f conftest.$ac_objext conftest$ac_exeext
20539 if { (ac_try="$ac_link"
20540 case "(($ac_try" in
20541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20542 *) ac_try_echo=$ac_try;;
20543 esac
20544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20545 (eval "$ac_link") 2>conftest.er1
20546 ac_status=$?
20547 grep -v '^ *+' conftest.er1 >conftest.err
20548 rm -f conftest.er1
20549 cat conftest.err >&5
20550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20551 (exit $ac_status); } && {
20552 test -z "$ac_c_werror_flag" ||
20553 test ! -s conftest.err
20554 } && test -s conftest$ac_exeext &&
20555 $as_test_x conftest$ac_exeext; then
20556 ac_cv_lib_des425_des_cbc_encrypt=yes
20557 else
20558 echo "$as_me: failed program was:" >&5
20559 sed 's/^/| /' conftest.$ac_ext >&5
20561 ac_cv_lib_des425_des_cbc_encrypt=no
20564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20565 conftest$ac_exeext conftest.$ac_ext
20566 LIBS=$ac_check_lib_save_LIBS
20568 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20569 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20570 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20571 cat >>confdefs.h <<_ACEOF
20572 #define HAVE_LIBDES425 1
20573 _ACEOF
20575 LIBS="-ldes425 $LIBS"
20577 else
20579 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20580 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20581 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20582 echo $ECHO_N "(cached) $ECHO_C" >&6
20583 else
20584 ac_check_lib_save_LIBS=$LIBS
20585 LIBS="-ldes $LIBS"
20586 cat >conftest.$ac_ext <<_ACEOF
20587 /* confdefs.h. */
20588 _ACEOF
20589 cat confdefs.h >>conftest.$ac_ext
20590 cat >>conftest.$ac_ext <<_ACEOF
20591 /* end confdefs.h. */
20593 /* Override any GCC internal prototype to avoid an error.
20594 Use char because int might match the return type of a GCC
20595 builtin and then its argument prototype would still apply. */
20596 #ifdef __cplusplus
20597 extern "C"
20598 #endif
20599 char des_cbc_encrypt ();
20601 main ()
20603 return des_cbc_encrypt ();
20605 return 0;
20607 _ACEOF
20608 rm -f conftest.$ac_objext conftest$ac_exeext
20609 if { (ac_try="$ac_link"
20610 case "(($ac_try" in
20611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20612 *) ac_try_echo=$ac_try;;
20613 esac
20614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20615 (eval "$ac_link") 2>conftest.er1
20616 ac_status=$?
20617 grep -v '^ *+' conftest.er1 >conftest.err
20618 rm -f conftest.er1
20619 cat conftest.err >&5
20620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621 (exit $ac_status); } && {
20622 test -z "$ac_c_werror_flag" ||
20623 test ! -s conftest.err
20624 } && test -s conftest$ac_exeext &&
20625 $as_test_x conftest$ac_exeext; then
20626 ac_cv_lib_des_des_cbc_encrypt=yes
20627 else
20628 echo "$as_me: failed program was:" >&5
20629 sed 's/^/| /' conftest.$ac_ext >&5
20631 ac_cv_lib_des_des_cbc_encrypt=no
20634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20635 conftest$ac_exeext conftest.$ac_ext
20636 LIBS=$ac_check_lib_save_LIBS
20638 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20639 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20640 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20641 cat >>confdefs.h <<_ACEOF
20642 #define HAVE_LIBDES 1
20643 _ACEOF
20645 LIBS="-ldes $LIBS"
20652 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20653 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20654 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20655 echo $ECHO_N "(cached) $ECHO_C" >&6
20656 else
20657 ac_check_lib_save_LIBS=$LIBS
20658 LIBS="-lkrb4 $LIBS"
20659 cat >conftest.$ac_ext <<_ACEOF
20660 /* confdefs.h. */
20661 _ACEOF
20662 cat confdefs.h >>conftest.$ac_ext
20663 cat >>conftest.$ac_ext <<_ACEOF
20664 /* end confdefs.h. */
20666 /* Override any GCC internal prototype to avoid an error.
20667 Use char because int might match the return type of a GCC
20668 builtin and then its argument prototype would still apply. */
20669 #ifdef __cplusplus
20670 extern "C"
20671 #endif
20672 char krb_get_cred ();
20674 main ()
20676 return krb_get_cred ();
20678 return 0;
20680 _ACEOF
20681 rm -f conftest.$ac_objext conftest$ac_exeext
20682 if { (ac_try="$ac_link"
20683 case "(($ac_try" in
20684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20685 *) ac_try_echo=$ac_try;;
20686 esac
20687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20688 (eval "$ac_link") 2>conftest.er1
20689 ac_status=$?
20690 grep -v '^ *+' conftest.er1 >conftest.err
20691 rm -f conftest.er1
20692 cat conftest.err >&5
20693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694 (exit $ac_status); } && {
20695 test -z "$ac_c_werror_flag" ||
20696 test ! -s conftest.err
20697 } && test -s conftest$ac_exeext &&
20698 $as_test_x conftest$ac_exeext; then
20699 ac_cv_lib_krb4_krb_get_cred=yes
20700 else
20701 echo "$as_me: failed program was:" >&5
20702 sed 's/^/| /' conftest.$ac_ext >&5
20704 ac_cv_lib_krb4_krb_get_cred=no
20707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20708 conftest$ac_exeext conftest.$ac_ext
20709 LIBS=$ac_check_lib_save_LIBS
20711 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20712 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20713 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20714 cat >>confdefs.h <<_ACEOF
20715 #define HAVE_LIBKRB4 1
20716 _ACEOF
20718 LIBS="-lkrb4 $LIBS"
20720 else
20722 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20723 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
20724 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20725 echo $ECHO_N "(cached) $ECHO_C" >&6
20726 else
20727 ac_check_lib_save_LIBS=$LIBS
20728 LIBS="-lkrb $LIBS"
20729 cat >conftest.$ac_ext <<_ACEOF
20730 /* confdefs.h. */
20731 _ACEOF
20732 cat confdefs.h >>conftest.$ac_ext
20733 cat >>conftest.$ac_ext <<_ACEOF
20734 /* end confdefs.h. */
20736 /* Override any GCC internal prototype to avoid an error.
20737 Use char because int might match the return type of a GCC
20738 builtin and then its argument prototype would still apply. */
20739 #ifdef __cplusplus
20740 extern "C"
20741 #endif
20742 char krb_get_cred ();
20744 main ()
20746 return krb_get_cred ();
20748 return 0;
20750 _ACEOF
20751 rm -f conftest.$ac_objext conftest$ac_exeext
20752 if { (ac_try="$ac_link"
20753 case "(($ac_try" in
20754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20755 *) ac_try_echo=$ac_try;;
20756 esac
20757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20758 (eval "$ac_link") 2>conftest.er1
20759 ac_status=$?
20760 grep -v '^ *+' conftest.er1 >conftest.err
20761 rm -f conftest.er1
20762 cat conftest.err >&5
20763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764 (exit $ac_status); } && {
20765 test -z "$ac_c_werror_flag" ||
20766 test ! -s conftest.err
20767 } && test -s conftest$ac_exeext &&
20768 $as_test_x conftest$ac_exeext; then
20769 ac_cv_lib_krb_krb_get_cred=yes
20770 else
20771 echo "$as_me: failed program was:" >&5
20772 sed 's/^/| /' conftest.$ac_ext >&5
20774 ac_cv_lib_krb_krb_get_cred=no
20777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20778 conftest$ac_exeext conftest.$ac_ext
20779 LIBS=$ac_check_lib_save_LIBS
20781 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20782 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20783 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20784 cat >>confdefs.h <<_ACEOF
20785 #define HAVE_LIBKRB 1
20786 _ACEOF
20788 LIBS="-lkrb $LIBS"
20796 if test "${with_kerberos5+set}" = set; then
20798 for ac_header in krb5.h
20800 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20801 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20802 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20805 echo $ECHO_N "(cached) $ECHO_C" >&6
20807 ac_res=`eval echo '${'$as_ac_Header'}'`
20808 { echo "$as_me:$LINENO: result: $ac_res" >&5
20809 echo "${ECHO_T}$ac_res" >&6; }
20810 else
20811 # Is the header compilable?
20812 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20813 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20814 cat >conftest.$ac_ext <<_ACEOF
20815 /* confdefs.h. */
20816 _ACEOF
20817 cat confdefs.h >>conftest.$ac_ext
20818 cat >>conftest.$ac_ext <<_ACEOF
20819 /* end confdefs.h. */
20820 $ac_includes_default
20821 #include <$ac_header>
20822 _ACEOF
20823 rm -f conftest.$ac_objext
20824 if { (ac_try="$ac_compile"
20825 case "(($ac_try" in
20826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20827 *) ac_try_echo=$ac_try;;
20828 esac
20829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20830 (eval "$ac_compile") 2>conftest.er1
20831 ac_status=$?
20832 grep -v '^ *+' conftest.er1 >conftest.err
20833 rm -f conftest.er1
20834 cat conftest.err >&5
20835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836 (exit $ac_status); } && {
20837 test -z "$ac_c_werror_flag" ||
20838 test ! -s conftest.err
20839 } && test -s conftest.$ac_objext; then
20840 ac_header_compiler=yes
20841 else
20842 echo "$as_me: failed program was:" >&5
20843 sed 's/^/| /' conftest.$ac_ext >&5
20845 ac_header_compiler=no
20848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20849 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20850 echo "${ECHO_T}$ac_header_compiler" >&6; }
20852 # Is the header present?
20853 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20854 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20855 cat >conftest.$ac_ext <<_ACEOF
20856 /* confdefs.h. */
20857 _ACEOF
20858 cat confdefs.h >>conftest.$ac_ext
20859 cat >>conftest.$ac_ext <<_ACEOF
20860 /* end confdefs.h. */
20861 #include <$ac_header>
20862 _ACEOF
20863 if { (ac_try="$ac_cpp conftest.$ac_ext"
20864 case "(($ac_try" in
20865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20866 *) ac_try_echo=$ac_try;;
20867 esac
20868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20869 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20870 ac_status=$?
20871 grep -v '^ *+' conftest.er1 >conftest.err
20872 rm -f conftest.er1
20873 cat conftest.err >&5
20874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20875 (exit $ac_status); } >/dev/null && {
20876 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20877 test ! -s conftest.err
20878 }; then
20879 ac_header_preproc=yes
20880 else
20881 echo "$as_me: failed program was:" >&5
20882 sed 's/^/| /' conftest.$ac_ext >&5
20884 ac_header_preproc=no
20887 rm -f conftest.err conftest.$ac_ext
20888 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20889 echo "${ECHO_T}$ac_header_preproc" >&6; }
20891 # So? What about this header?
20892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20893 yes:no: )
20894 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20895 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20897 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20898 ac_header_preproc=yes
20900 no:yes:* )
20901 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20902 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20903 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20904 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20905 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20906 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20907 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20908 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20910 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20911 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20912 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20915 esac
20916 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20919 echo $ECHO_N "(cached) $ECHO_C" >&6
20920 else
20921 eval "$as_ac_Header=\$ac_header_preproc"
20923 ac_res=`eval echo '${'$as_ac_Header'}'`
20924 { echo "$as_me:$LINENO: result: $ac_res" >&5
20925 echo "${ECHO_T}$ac_res" >&6; }
20928 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20929 cat >>confdefs.h <<_ACEOF
20930 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20931 _ACEOF
20935 done
20937 else
20939 for ac_header in des.h
20941 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20943 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20946 echo $ECHO_N "(cached) $ECHO_C" >&6
20948 ac_res=`eval echo '${'$as_ac_Header'}'`
20949 { echo "$as_me:$LINENO: result: $ac_res" >&5
20950 echo "${ECHO_T}$ac_res" >&6; }
20951 else
20952 # Is the header compilable?
20953 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20954 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20955 cat >conftest.$ac_ext <<_ACEOF
20956 /* confdefs.h. */
20957 _ACEOF
20958 cat confdefs.h >>conftest.$ac_ext
20959 cat >>conftest.$ac_ext <<_ACEOF
20960 /* end confdefs.h. */
20961 $ac_includes_default
20962 #include <$ac_header>
20963 _ACEOF
20964 rm -f conftest.$ac_objext
20965 if { (ac_try="$ac_compile"
20966 case "(($ac_try" in
20967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20968 *) ac_try_echo=$ac_try;;
20969 esac
20970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20971 (eval "$ac_compile") 2>conftest.er1
20972 ac_status=$?
20973 grep -v '^ *+' conftest.er1 >conftest.err
20974 rm -f conftest.er1
20975 cat conftest.err >&5
20976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977 (exit $ac_status); } && {
20978 test -z "$ac_c_werror_flag" ||
20979 test ! -s conftest.err
20980 } && test -s conftest.$ac_objext; then
20981 ac_header_compiler=yes
20982 else
20983 echo "$as_me: failed program was:" >&5
20984 sed 's/^/| /' conftest.$ac_ext >&5
20986 ac_header_compiler=no
20989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20990 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20991 echo "${ECHO_T}$ac_header_compiler" >&6; }
20993 # Is the header present?
20994 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20995 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20996 cat >conftest.$ac_ext <<_ACEOF
20997 /* confdefs.h. */
20998 _ACEOF
20999 cat confdefs.h >>conftest.$ac_ext
21000 cat >>conftest.$ac_ext <<_ACEOF
21001 /* end confdefs.h. */
21002 #include <$ac_header>
21003 _ACEOF
21004 if { (ac_try="$ac_cpp conftest.$ac_ext"
21005 case "(($ac_try" in
21006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21007 *) ac_try_echo=$ac_try;;
21008 esac
21009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21011 ac_status=$?
21012 grep -v '^ *+' conftest.er1 >conftest.err
21013 rm -f conftest.er1
21014 cat conftest.err >&5
21015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21016 (exit $ac_status); } >/dev/null && {
21017 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21018 test ! -s conftest.err
21019 }; then
21020 ac_header_preproc=yes
21021 else
21022 echo "$as_me: failed program was:" >&5
21023 sed 's/^/| /' conftest.$ac_ext >&5
21025 ac_header_preproc=no
21028 rm -f conftest.err conftest.$ac_ext
21029 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21030 echo "${ECHO_T}$ac_header_preproc" >&6; }
21032 # So? What about this header?
21033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21034 yes:no: )
21035 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21036 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21038 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21039 ac_header_preproc=yes
21041 no:yes:* )
21042 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21043 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21044 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21045 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21046 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21047 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21048 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21049 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21052 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21053 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21056 esac
21057 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21060 echo $ECHO_N "(cached) $ECHO_C" >&6
21061 else
21062 eval "$as_ac_Header=\$ac_header_preproc"
21064 ac_res=`eval echo '${'$as_ac_Header'}'`
21065 { echo "$as_me:$LINENO: result: $ac_res" >&5
21066 echo "${ECHO_T}$ac_res" >&6; }
21069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21070 cat >>confdefs.h <<_ACEOF
21071 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21072 _ACEOF
21074 else
21076 for ac_header in kerberosIV/des.h
21078 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21080 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21083 echo $ECHO_N "(cached) $ECHO_C" >&6
21085 ac_res=`eval echo '${'$as_ac_Header'}'`
21086 { echo "$as_me:$LINENO: result: $ac_res" >&5
21087 echo "${ECHO_T}$ac_res" >&6; }
21088 else
21089 # Is the header compilable?
21090 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21091 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21092 cat >conftest.$ac_ext <<_ACEOF
21093 /* confdefs.h. */
21094 _ACEOF
21095 cat confdefs.h >>conftest.$ac_ext
21096 cat >>conftest.$ac_ext <<_ACEOF
21097 /* end confdefs.h. */
21098 $ac_includes_default
21099 #include <$ac_header>
21100 _ACEOF
21101 rm -f conftest.$ac_objext
21102 if { (ac_try="$ac_compile"
21103 case "(($ac_try" in
21104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21105 *) ac_try_echo=$ac_try;;
21106 esac
21107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21108 (eval "$ac_compile") 2>conftest.er1
21109 ac_status=$?
21110 grep -v '^ *+' conftest.er1 >conftest.err
21111 rm -f conftest.er1
21112 cat conftest.err >&5
21113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114 (exit $ac_status); } && {
21115 test -z "$ac_c_werror_flag" ||
21116 test ! -s conftest.err
21117 } && test -s conftest.$ac_objext; then
21118 ac_header_compiler=yes
21119 else
21120 echo "$as_me: failed program was:" >&5
21121 sed 's/^/| /' conftest.$ac_ext >&5
21123 ac_header_compiler=no
21126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21127 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21128 echo "${ECHO_T}$ac_header_compiler" >&6; }
21130 # Is the header present?
21131 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21132 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21133 cat >conftest.$ac_ext <<_ACEOF
21134 /* confdefs.h. */
21135 _ACEOF
21136 cat confdefs.h >>conftest.$ac_ext
21137 cat >>conftest.$ac_ext <<_ACEOF
21138 /* end confdefs.h. */
21139 #include <$ac_header>
21140 _ACEOF
21141 if { (ac_try="$ac_cpp conftest.$ac_ext"
21142 case "(($ac_try" in
21143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21144 *) ac_try_echo=$ac_try;;
21145 esac
21146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21147 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21148 ac_status=$?
21149 grep -v '^ *+' conftest.er1 >conftest.err
21150 rm -f conftest.er1
21151 cat conftest.err >&5
21152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21153 (exit $ac_status); } >/dev/null && {
21154 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21155 test ! -s conftest.err
21156 }; then
21157 ac_header_preproc=yes
21158 else
21159 echo "$as_me: failed program was:" >&5
21160 sed 's/^/| /' conftest.$ac_ext >&5
21162 ac_header_preproc=no
21165 rm -f conftest.err conftest.$ac_ext
21166 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21167 echo "${ECHO_T}$ac_header_preproc" >&6; }
21169 # So? What about this header?
21170 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21171 yes:no: )
21172 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21173 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21175 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21176 ac_header_preproc=yes
21178 no:yes:* )
21179 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21180 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21181 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21182 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21183 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21184 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21185 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21186 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21188 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21189 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21190 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21193 esac
21194 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21196 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21197 echo $ECHO_N "(cached) $ECHO_C" >&6
21198 else
21199 eval "$as_ac_Header=\$ac_header_preproc"
21201 ac_res=`eval echo '${'$as_ac_Header'}'`
21202 { echo "$as_me:$LINENO: result: $ac_res" >&5
21203 echo "${ECHO_T}$ac_res" >&6; }
21206 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21207 cat >>confdefs.h <<_ACEOF
21208 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21209 _ACEOF
21211 else
21213 for ac_header in kerberos/des.h
21215 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21217 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21220 echo $ECHO_N "(cached) $ECHO_C" >&6
21222 ac_res=`eval echo '${'$as_ac_Header'}'`
21223 { echo "$as_me:$LINENO: result: $ac_res" >&5
21224 echo "${ECHO_T}$ac_res" >&6; }
21225 else
21226 # Is the header compilable?
21227 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21228 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21229 cat >conftest.$ac_ext <<_ACEOF
21230 /* confdefs.h. */
21231 _ACEOF
21232 cat confdefs.h >>conftest.$ac_ext
21233 cat >>conftest.$ac_ext <<_ACEOF
21234 /* end confdefs.h. */
21235 $ac_includes_default
21236 #include <$ac_header>
21237 _ACEOF
21238 rm -f conftest.$ac_objext
21239 if { (ac_try="$ac_compile"
21240 case "(($ac_try" in
21241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21242 *) ac_try_echo=$ac_try;;
21243 esac
21244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21245 (eval "$ac_compile") 2>conftest.er1
21246 ac_status=$?
21247 grep -v '^ *+' conftest.er1 >conftest.err
21248 rm -f conftest.er1
21249 cat conftest.err >&5
21250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21251 (exit $ac_status); } && {
21252 test -z "$ac_c_werror_flag" ||
21253 test ! -s conftest.err
21254 } && test -s conftest.$ac_objext; then
21255 ac_header_compiler=yes
21256 else
21257 echo "$as_me: failed program was:" >&5
21258 sed 's/^/| /' conftest.$ac_ext >&5
21260 ac_header_compiler=no
21263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21264 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21265 echo "${ECHO_T}$ac_header_compiler" >&6; }
21267 # Is the header present?
21268 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21269 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21270 cat >conftest.$ac_ext <<_ACEOF
21271 /* confdefs.h. */
21272 _ACEOF
21273 cat confdefs.h >>conftest.$ac_ext
21274 cat >>conftest.$ac_ext <<_ACEOF
21275 /* end confdefs.h. */
21276 #include <$ac_header>
21277 _ACEOF
21278 if { (ac_try="$ac_cpp conftest.$ac_ext"
21279 case "(($ac_try" in
21280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21281 *) ac_try_echo=$ac_try;;
21282 esac
21283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21284 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21285 ac_status=$?
21286 grep -v '^ *+' conftest.er1 >conftest.err
21287 rm -f conftest.er1
21288 cat conftest.err >&5
21289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21290 (exit $ac_status); } >/dev/null && {
21291 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21292 test ! -s conftest.err
21293 }; then
21294 ac_header_preproc=yes
21295 else
21296 echo "$as_me: failed program was:" >&5
21297 sed 's/^/| /' conftest.$ac_ext >&5
21299 ac_header_preproc=no
21302 rm -f conftest.err conftest.$ac_ext
21303 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21304 echo "${ECHO_T}$ac_header_preproc" >&6; }
21306 # So? What about this header?
21307 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21308 yes:no: )
21309 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21310 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21311 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21312 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21313 ac_header_preproc=yes
21315 no:yes:* )
21316 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21317 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21318 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21319 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21320 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21321 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21322 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21323 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21325 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21326 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21327 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21330 esac
21331 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21334 echo $ECHO_N "(cached) $ECHO_C" >&6
21335 else
21336 eval "$as_ac_Header=\$ac_header_preproc"
21338 ac_res=`eval echo '${'$as_ac_Header'}'`
21339 { echo "$as_me:$LINENO: result: $ac_res" >&5
21340 echo "${ECHO_T}$ac_res" >&6; }
21343 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21344 cat >>confdefs.h <<_ACEOF
21345 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21346 _ACEOF
21350 done
21354 done
21358 done
21361 for ac_header in krb.h
21363 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21365 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21368 echo $ECHO_N "(cached) $ECHO_C" >&6
21370 ac_res=`eval echo '${'$as_ac_Header'}'`
21371 { echo "$as_me:$LINENO: result: $ac_res" >&5
21372 echo "${ECHO_T}$ac_res" >&6; }
21373 else
21374 # Is the header compilable?
21375 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21376 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21377 cat >conftest.$ac_ext <<_ACEOF
21378 /* confdefs.h. */
21379 _ACEOF
21380 cat confdefs.h >>conftest.$ac_ext
21381 cat >>conftest.$ac_ext <<_ACEOF
21382 /* end confdefs.h. */
21383 $ac_includes_default
21384 #include <$ac_header>
21385 _ACEOF
21386 rm -f conftest.$ac_objext
21387 if { (ac_try="$ac_compile"
21388 case "(($ac_try" in
21389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21390 *) ac_try_echo=$ac_try;;
21391 esac
21392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21393 (eval "$ac_compile") 2>conftest.er1
21394 ac_status=$?
21395 grep -v '^ *+' conftest.er1 >conftest.err
21396 rm -f conftest.er1
21397 cat conftest.err >&5
21398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21399 (exit $ac_status); } && {
21400 test -z "$ac_c_werror_flag" ||
21401 test ! -s conftest.err
21402 } && test -s conftest.$ac_objext; then
21403 ac_header_compiler=yes
21404 else
21405 echo "$as_me: failed program was:" >&5
21406 sed 's/^/| /' conftest.$ac_ext >&5
21408 ac_header_compiler=no
21411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21412 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21413 echo "${ECHO_T}$ac_header_compiler" >&6; }
21415 # Is the header present?
21416 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21417 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21418 cat >conftest.$ac_ext <<_ACEOF
21419 /* confdefs.h. */
21420 _ACEOF
21421 cat confdefs.h >>conftest.$ac_ext
21422 cat >>conftest.$ac_ext <<_ACEOF
21423 /* end confdefs.h. */
21424 #include <$ac_header>
21425 _ACEOF
21426 if { (ac_try="$ac_cpp conftest.$ac_ext"
21427 case "(($ac_try" in
21428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21429 *) ac_try_echo=$ac_try;;
21430 esac
21431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21432 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21433 ac_status=$?
21434 grep -v '^ *+' conftest.er1 >conftest.err
21435 rm -f conftest.er1
21436 cat conftest.err >&5
21437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21438 (exit $ac_status); } >/dev/null && {
21439 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21440 test ! -s conftest.err
21441 }; then
21442 ac_header_preproc=yes
21443 else
21444 echo "$as_me: failed program was:" >&5
21445 sed 's/^/| /' conftest.$ac_ext >&5
21447 ac_header_preproc=no
21450 rm -f conftest.err conftest.$ac_ext
21451 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21452 echo "${ECHO_T}$ac_header_preproc" >&6; }
21454 # So? What about this header?
21455 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21456 yes:no: )
21457 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21458 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21460 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21461 ac_header_preproc=yes
21463 no:yes:* )
21464 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21465 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21466 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21467 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21468 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21469 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21470 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21471 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21473 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21474 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21475 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21478 esac
21479 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21481 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21482 echo $ECHO_N "(cached) $ECHO_C" >&6
21483 else
21484 eval "$as_ac_Header=\$ac_header_preproc"
21486 ac_res=`eval echo '${'$as_ac_Header'}'`
21487 { echo "$as_me:$LINENO: result: $ac_res" >&5
21488 echo "${ECHO_T}$ac_res" >&6; }
21491 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21492 cat >>confdefs.h <<_ACEOF
21493 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21494 _ACEOF
21496 else
21498 for ac_header in kerberosIV/krb.h
21500 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21502 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21505 echo $ECHO_N "(cached) $ECHO_C" >&6
21507 ac_res=`eval echo '${'$as_ac_Header'}'`
21508 { echo "$as_me:$LINENO: result: $ac_res" >&5
21509 echo "${ECHO_T}$ac_res" >&6; }
21510 else
21511 # Is the header compilable?
21512 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21513 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21514 cat >conftest.$ac_ext <<_ACEOF
21515 /* confdefs.h. */
21516 _ACEOF
21517 cat confdefs.h >>conftest.$ac_ext
21518 cat >>conftest.$ac_ext <<_ACEOF
21519 /* end confdefs.h. */
21520 $ac_includes_default
21521 #include <$ac_header>
21522 _ACEOF
21523 rm -f conftest.$ac_objext
21524 if { (ac_try="$ac_compile"
21525 case "(($ac_try" in
21526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21527 *) ac_try_echo=$ac_try;;
21528 esac
21529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21530 (eval "$ac_compile") 2>conftest.er1
21531 ac_status=$?
21532 grep -v '^ *+' conftest.er1 >conftest.err
21533 rm -f conftest.er1
21534 cat conftest.err >&5
21535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21536 (exit $ac_status); } && {
21537 test -z "$ac_c_werror_flag" ||
21538 test ! -s conftest.err
21539 } && test -s conftest.$ac_objext; then
21540 ac_header_compiler=yes
21541 else
21542 echo "$as_me: failed program was:" >&5
21543 sed 's/^/| /' conftest.$ac_ext >&5
21545 ac_header_compiler=no
21548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21549 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21550 echo "${ECHO_T}$ac_header_compiler" >&6; }
21552 # Is the header present?
21553 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21554 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21555 cat >conftest.$ac_ext <<_ACEOF
21556 /* confdefs.h. */
21557 _ACEOF
21558 cat confdefs.h >>conftest.$ac_ext
21559 cat >>conftest.$ac_ext <<_ACEOF
21560 /* end confdefs.h. */
21561 #include <$ac_header>
21562 _ACEOF
21563 if { (ac_try="$ac_cpp conftest.$ac_ext"
21564 case "(($ac_try" in
21565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21566 *) ac_try_echo=$ac_try;;
21567 esac
21568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21570 ac_status=$?
21571 grep -v '^ *+' conftest.er1 >conftest.err
21572 rm -f conftest.er1
21573 cat conftest.err >&5
21574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21575 (exit $ac_status); } >/dev/null && {
21576 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21577 test ! -s conftest.err
21578 }; then
21579 ac_header_preproc=yes
21580 else
21581 echo "$as_me: failed program was:" >&5
21582 sed 's/^/| /' conftest.$ac_ext >&5
21584 ac_header_preproc=no
21587 rm -f conftest.err conftest.$ac_ext
21588 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21589 echo "${ECHO_T}$ac_header_preproc" >&6; }
21591 # So? What about this header?
21592 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21593 yes:no: )
21594 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21595 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21596 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21597 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21598 ac_header_preproc=yes
21600 no:yes:* )
21601 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21602 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21603 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21604 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21605 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21606 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21607 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21608 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21609 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21610 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21611 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21612 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21615 esac
21616 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21618 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21619 echo $ECHO_N "(cached) $ECHO_C" >&6
21620 else
21621 eval "$as_ac_Header=\$ac_header_preproc"
21623 ac_res=`eval echo '${'$as_ac_Header'}'`
21624 { echo "$as_me:$LINENO: result: $ac_res" >&5
21625 echo "${ECHO_T}$ac_res" >&6; }
21628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21629 cat >>confdefs.h <<_ACEOF
21630 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21631 _ACEOF
21633 else
21635 for ac_header in kerberos/krb.h
21637 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21639 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21641 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21642 echo $ECHO_N "(cached) $ECHO_C" >&6
21644 ac_res=`eval echo '${'$as_ac_Header'}'`
21645 { echo "$as_me:$LINENO: result: $ac_res" >&5
21646 echo "${ECHO_T}$ac_res" >&6; }
21647 else
21648 # Is the header compilable?
21649 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21650 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21651 cat >conftest.$ac_ext <<_ACEOF
21652 /* confdefs.h. */
21653 _ACEOF
21654 cat confdefs.h >>conftest.$ac_ext
21655 cat >>conftest.$ac_ext <<_ACEOF
21656 /* end confdefs.h. */
21657 $ac_includes_default
21658 #include <$ac_header>
21659 _ACEOF
21660 rm -f conftest.$ac_objext
21661 if { (ac_try="$ac_compile"
21662 case "(($ac_try" in
21663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21664 *) ac_try_echo=$ac_try;;
21665 esac
21666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21667 (eval "$ac_compile") 2>conftest.er1
21668 ac_status=$?
21669 grep -v '^ *+' conftest.er1 >conftest.err
21670 rm -f conftest.er1
21671 cat conftest.err >&5
21672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673 (exit $ac_status); } && {
21674 test -z "$ac_c_werror_flag" ||
21675 test ! -s conftest.err
21676 } && test -s conftest.$ac_objext; then
21677 ac_header_compiler=yes
21678 else
21679 echo "$as_me: failed program was:" >&5
21680 sed 's/^/| /' conftest.$ac_ext >&5
21682 ac_header_compiler=no
21685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21686 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21687 echo "${ECHO_T}$ac_header_compiler" >&6; }
21689 # Is the header present?
21690 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21691 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21692 cat >conftest.$ac_ext <<_ACEOF
21693 /* confdefs.h. */
21694 _ACEOF
21695 cat confdefs.h >>conftest.$ac_ext
21696 cat >>conftest.$ac_ext <<_ACEOF
21697 /* end confdefs.h. */
21698 #include <$ac_header>
21699 _ACEOF
21700 if { (ac_try="$ac_cpp conftest.$ac_ext"
21701 case "(($ac_try" in
21702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21703 *) ac_try_echo=$ac_try;;
21704 esac
21705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21707 ac_status=$?
21708 grep -v '^ *+' conftest.er1 >conftest.err
21709 rm -f conftest.er1
21710 cat conftest.err >&5
21711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21712 (exit $ac_status); } >/dev/null && {
21713 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21714 test ! -s conftest.err
21715 }; then
21716 ac_header_preproc=yes
21717 else
21718 echo "$as_me: failed program was:" >&5
21719 sed 's/^/| /' conftest.$ac_ext >&5
21721 ac_header_preproc=no
21724 rm -f conftest.err conftest.$ac_ext
21725 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21726 echo "${ECHO_T}$ac_header_preproc" >&6; }
21728 # So? What about this header?
21729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21730 yes:no: )
21731 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21732 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21734 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21735 ac_header_preproc=yes
21737 no:yes:* )
21738 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21739 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21740 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21741 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21742 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21743 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21744 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21745 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21746 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21747 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21748 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21749 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21752 esac
21753 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21756 echo $ECHO_N "(cached) $ECHO_C" >&6
21757 else
21758 eval "$as_ac_Header=\$ac_header_preproc"
21760 ac_res=`eval echo '${'$as_ac_Header'}'`
21761 { echo "$as_me:$LINENO: result: $ac_res" >&5
21762 echo "${ECHO_T}$ac_res" >&6; }
21765 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21766 cat >>confdefs.h <<_ACEOF
21767 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21768 _ACEOF
21772 done
21776 done
21780 done
21784 for ac_header in com_err.h
21786 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21788 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21791 echo $ECHO_N "(cached) $ECHO_C" >&6
21793 ac_res=`eval echo '${'$as_ac_Header'}'`
21794 { echo "$as_me:$LINENO: result: $ac_res" >&5
21795 echo "${ECHO_T}$ac_res" >&6; }
21796 else
21797 # Is the header compilable?
21798 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21799 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21800 cat >conftest.$ac_ext <<_ACEOF
21801 /* confdefs.h. */
21802 _ACEOF
21803 cat confdefs.h >>conftest.$ac_ext
21804 cat >>conftest.$ac_ext <<_ACEOF
21805 /* end confdefs.h. */
21806 $ac_includes_default
21807 #include <$ac_header>
21808 _ACEOF
21809 rm -f conftest.$ac_objext
21810 if { (ac_try="$ac_compile"
21811 case "(($ac_try" in
21812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21813 *) ac_try_echo=$ac_try;;
21814 esac
21815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21816 (eval "$ac_compile") 2>conftest.er1
21817 ac_status=$?
21818 grep -v '^ *+' conftest.er1 >conftest.err
21819 rm -f conftest.er1
21820 cat conftest.err >&5
21821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21822 (exit $ac_status); } && {
21823 test -z "$ac_c_werror_flag" ||
21824 test ! -s conftest.err
21825 } && test -s conftest.$ac_objext; then
21826 ac_header_compiler=yes
21827 else
21828 echo "$as_me: failed program was:" >&5
21829 sed 's/^/| /' conftest.$ac_ext >&5
21831 ac_header_compiler=no
21834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21835 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21836 echo "${ECHO_T}$ac_header_compiler" >&6; }
21838 # Is the header present?
21839 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21840 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21841 cat >conftest.$ac_ext <<_ACEOF
21842 /* confdefs.h. */
21843 _ACEOF
21844 cat confdefs.h >>conftest.$ac_ext
21845 cat >>conftest.$ac_ext <<_ACEOF
21846 /* end confdefs.h. */
21847 #include <$ac_header>
21848 _ACEOF
21849 if { (ac_try="$ac_cpp conftest.$ac_ext"
21850 case "(($ac_try" in
21851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21852 *) ac_try_echo=$ac_try;;
21853 esac
21854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21855 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21856 ac_status=$?
21857 grep -v '^ *+' conftest.er1 >conftest.err
21858 rm -f conftest.er1
21859 cat conftest.err >&5
21860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21861 (exit $ac_status); } >/dev/null && {
21862 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21863 test ! -s conftest.err
21864 }; then
21865 ac_header_preproc=yes
21866 else
21867 echo "$as_me: failed program was:" >&5
21868 sed 's/^/| /' conftest.$ac_ext >&5
21870 ac_header_preproc=no
21873 rm -f conftest.err conftest.$ac_ext
21874 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21875 echo "${ECHO_T}$ac_header_preproc" >&6; }
21877 # So? What about this header?
21878 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21879 yes:no: )
21880 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21881 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21883 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21884 ac_header_preproc=yes
21886 no:yes:* )
21887 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21888 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21889 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21890 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21891 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21892 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21893 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21894 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21896 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21897 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21898 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21901 esac
21902 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21905 echo $ECHO_N "(cached) $ECHO_C" >&6
21906 else
21907 eval "$as_ac_Header=\$ac_header_preproc"
21909 ac_res=`eval echo '${'$as_ac_Header'}'`
21910 { echo "$as_me:$LINENO: result: $ac_res" >&5
21911 echo "${ECHO_T}$ac_res" >&6; }
21914 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21915 cat >>confdefs.h <<_ACEOF
21916 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21917 _ACEOF
21921 done
21925 # Solaris requires -lintl if you want strerror (which calls dgettext)
21926 # to return localized messages.
21928 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21929 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
21930 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21931 echo $ECHO_N "(cached) $ECHO_C" >&6
21932 else
21933 ac_check_lib_save_LIBS=$LIBS
21934 LIBS="-lintl $LIBS"
21935 cat >conftest.$ac_ext <<_ACEOF
21936 /* confdefs.h. */
21937 _ACEOF
21938 cat confdefs.h >>conftest.$ac_ext
21939 cat >>conftest.$ac_ext <<_ACEOF
21940 /* end confdefs.h. */
21942 /* Override any GCC internal prototype to avoid an error.
21943 Use char because int might match the return type of a GCC
21944 builtin and then its argument prototype would still apply. */
21945 #ifdef __cplusplus
21946 extern "C"
21947 #endif
21948 char dgettext ();
21950 main ()
21952 return dgettext ();
21954 return 0;
21956 _ACEOF
21957 rm -f conftest.$ac_objext conftest$ac_exeext
21958 if { (ac_try="$ac_link"
21959 case "(($ac_try" in
21960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21961 *) ac_try_echo=$ac_try;;
21962 esac
21963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21964 (eval "$ac_link") 2>conftest.er1
21965 ac_status=$?
21966 grep -v '^ *+' conftest.er1 >conftest.err
21967 rm -f conftest.er1
21968 cat conftest.err >&5
21969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21970 (exit $ac_status); } && {
21971 test -z "$ac_c_werror_flag" ||
21972 test ! -s conftest.err
21973 } && test -s conftest$ac_exeext &&
21974 $as_test_x conftest$ac_exeext; then
21975 ac_cv_lib_intl_dgettext=yes
21976 else
21977 echo "$as_me: failed program was:" >&5
21978 sed 's/^/| /' conftest.$ac_ext >&5
21980 ac_cv_lib_intl_dgettext=no
21983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21984 conftest$ac_exeext conftest.$ac_ext
21985 LIBS=$ac_check_lib_save_LIBS
21987 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
21988 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21989 if test $ac_cv_lib_intl_dgettext = yes; then
21990 cat >>confdefs.h <<_ACEOF
21991 #define HAVE_LIBINTL 1
21992 _ACEOF
21994 LIBS="-lintl $LIBS"
21999 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
22000 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
22001 if test "${emacs_cv_localtime_cache+set}" = set; then
22002 echo $ECHO_N "(cached) $ECHO_C" >&6
22003 else
22004 if test x$ac_cv_func_tzset = xyes; then
22005 if test "$cross_compiling" = yes; then
22006 # If we have tzset, assume the worst when cross-compiling.
22007 emacs_cv_localtime_cache=yes
22008 else
22009 cat >conftest.$ac_ext <<_ACEOF
22010 /* confdefs.h. */
22011 _ACEOF
22012 cat confdefs.h >>conftest.$ac_ext
22013 cat >>conftest.$ac_ext <<_ACEOF
22014 /* end confdefs.h. */
22015 #include <time.h>
22016 extern char **environ;
22017 unset_TZ ()
22019 char **from, **to;
22020 for (to = from = environ; (*to = *from); from++)
22021 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22022 to++;
22024 char TZ_GMT0[] = "TZ=GMT0";
22025 char TZ_PST8[] = "TZ=PST8";
22026 main()
22028 time_t now = time ((time_t *) 0);
22029 int hour_GMT0, hour_unset;
22030 if (putenv (TZ_GMT0) != 0)
22031 exit (1);
22032 hour_GMT0 = localtime (&now)->tm_hour;
22033 unset_TZ ();
22034 hour_unset = localtime (&now)->tm_hour;
22035 if (putenv (TZ_PST8) != 0)
22036 exit (1);
22037 if (localtime (&now)->tm_hour == hour_GMT0)
22038 exit (1);
22039 unset_TZ ();
22040 if (localtime (&now)->tm_hour != hour_unset)
22041 exit (1);
22042 exit (0);
22044 _ACEOF
22045 rm -f conftest$ac_exeext
22046 if { (ac_try="$ac_link"
22047 case "(($ac_try" in
22048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22049 *) ac_try_echo=$ac_try;;
22050 esac
22051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22052 (eval "$ac_link") 2>&5
22053 ac_status=$?
22054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22055 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22056 { (case "(($ac_try" in
22057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22058 *) ac_try_echo=$ac_try;;
22059 esac
22060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22061 (eval "$ac_try") 2>&5
22062 ac_status=$?
22063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22064 (exit $ac_status); }; }; then
22065 emacs_cv_localtime_cache=no
22066 else
22067 echo "$as_me: program exited with status $ac_status" >&5
22068 echo "$as_me: failed program was:" >&5
22069 sed 's/^/| /' conftest.$ac_ext >&5
22071 ( exit $ac_status )
22072 emacs_cv_localtime_cache=yes
22074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22078 else
22079 # If we lack tzset, report that localtime does not cache TZ,
22080 # since we can't invalidate the cache if we don't have tzset.
22081 emacs_cv_localtime_cache=no
22084 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
22085 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22086 if test $emacs_cv_localtime_cache = yes; then
22088 cat >>confdefs.h <<\_ACEOF
22089 #define LOCALTIME_CACHE 1
22090 _ACEOF
22094 if test "x$HAVE_TIMEVAL" = xyes; then
22096 for ac_func in gettimeofday
22098 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22099 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22100 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22101 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22102 echo $ECHO_N "(cached) $ECHO_C" >&6
22103 else
22104 cat >conftest.$ac_ext <<_ACEOF
22105 /* confdefs.h. */
22106 _ACEOF
22107 cat confdefs.h >>conftest.$ac_ext
22108 cat >>conftest.$ac_ext <<_ACEOF
22109 /* end confdefs.h. */
22110 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22111 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22112 #define $ac_func innocuous_$ac_func
22114 /* System header to define __stub macros and hopefully few prototypes,
22115 which can conflict with char $ac_func (); below.
22116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22117 <limits.h> exists even on freestanding compilers. */
22119 #ifdef __STDC__
22120 # include <limits.h>
22121 #else
22122 # include <assert.h>
22123 #endif
22125 #undef $ac_func
22127 /* Override any GCC internal prototype to avoid an error.
22128 Use char because int might match the return type of a GCC
22129 builtin and then its argument prototype would still apply. */
22130 #ifdef __cplusplus
22131 extern "C"
22132 #endif
22133 char $ac_func ();
22134 /* The GNU C library defines this for functions which it implements
22135 to always fail with ENOSYS. Some functions are actually named
22136 something starting with __ and the normal name is an alias. */
22137 #if defined __stub_$ac_func || defined __stub___$ac_func
22138 choke me
22139 #endif
22142 main ()
22144 return $ac_func ();
22146 return 0;
22148 _ACEOF
22149 rm -f conftest.$ac_objext conftest$ac_exeext
22150 if { (ac_try="$ac_link"
22151 case "(($ac_try" in
22152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22153 *) ac_try_echo=$ac_try;;
22154 esac
22155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22156 (eval "$ac_link") 2>conftest.er1
22157 ac_status=$?
22158 grep -v '^ *+' conftest.er1 >conftest.err
22159 rm -f conftest.er1
22160 cat conftest.err >&5
22161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22162 (exit $ac_status); } && {
22163 test -z "$ac_c_werror_flag" ||
22164 test ! -s conftest.err
22165 } && test -s conftest$ac_exeext &&
22166 $as_test_x conftest$ac_exeext; then
22167 eval "$as_ac_var=yes"
22168 else
22169 echo "$as_me: failed program was:" >&5
22170 sed 's/^/| /' conftest.$ac_ext >&5
22172 eval "$as_ac_var=no"
22175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22176 conftest$ac_exeext conftest.$ac_ext
22178 ac_res=`eval echo '${'$as_ac_var'}'`
22179 { echo "$as_me:$LINENO: result: $ac_res" >&5
22180 echo "${ECHO_T}$ac_res" >&6; }
22181 if test `eval echo '${'$as_ac_var'}'` = yes; then
22182 cat >>confdefs.h <<_ACEOF
22183 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22184 _ACEOF
22187 done
22189 if test $ac_cv_func_gettimeofday = yes; then
22190 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
22191 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
22192 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22193 echo $ECHO_N "(cached) $ECHO_C" >&6
22194 else
22195 cat >conftest.$ac_ext <<_ACEOF
22196 /* confdefs.h. */
22197 _ACEOF
22198 cat confdefs.h >>conftest.$ac_ext
22199 cat >>conftest.$ac_ext <<_ACEOF
22200 /* end confdefs.h. */
22202 #ifdef TIME_WITH_SYS_TIME
22203 #include <sys/time.h>
22204 #include <time.h>
22205 #else
22206 #ifdef HAVE_SYS_TIME_H
22207 #include <sys/time.h>
22208 #else
22209 #include <time.h>
22210 #endif
22211 #endif
22213 main ()
22215 struct timeval time;
22216 gettimeofday (&time, 0);
22218 return 0;
22220 _ACEOF
22221 rm -f conftest.$ac_objext
22222 if { (ac_try="$ac_compile"
22223 case "(($ac_try" in
22224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22225 *) ac_try_echo=$ac_try;;
22226 esac
22227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22228 (eval "$ac_compile") 2>conftest.er1
22229 ac_status=$?
22230 grep -v '^ *+' conftest.er1 >conftest.err
22231 rm -f conftest.er1
22232 cat conftest.err >&5
22233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22234 (exit $ac_status); } && {
22235 test -z "$ac_c_werror_flag" ||
22236 test ! -s conftest.err
22237 } && test -s conftest.$ac_objext; then
22238 emacs_cv_gettimeofday_two_arguments=yes
22239 else
22240 echo "$as_me: failed program was:" >&5
22241 sed 's/^/| /' conftest.$ac_ext >&5
22243 emacs_cv_gettimeofday_two_arguments=no
22246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22248 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
22249 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22250 if test $emacs_cv_gettimeofday_two_arguments = no; then
22252 cat >>confdefs.h <<\_ACEOF
22253 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22254 _ACEOF
22260 ok_so_far=yes
22261 { echo "$as_me:$LINENO: checking for socket" >&5
22262 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
22263 if test "${ac_cv_func_socket+set}" = set; then
22264 echo $ECHO_N "(cached) $ECHO_C" >&6
22265 else
22266 cat >conftest.$ac_ext <<_ACEOF
22267 /* confdefs.h. */
22268 _ACEOF
22269 cat confdefs.h >>conftest.$ac_ext
22270 cat >>conftest.$ac_ext <<_ACEOF
22271 /* end confdefs.h. */
22272 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22274 #define socket innocuous_socket
22276 /* System header to define __stub macros and hopefully few prototypes,
22277 which can conflict with char socket (); below.
22278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22279 <limits.h> exists even on freestanding compilers. */
22281 #ifdef __STDC__
22282 # include <limits.h>
22283 #else
22284 # include <assert.h>
22285 #endif
22287 #undef socket
22289 /* Override any GCC internal prototype to avoid an error.
22290 Use char because int might match the return type of a GCC
22291 builtin and then its argument prototype would still apply. */
22292 #ifdef __cplusplus
22293 extern "C"
22294 #endif
22295 char socket ();
22296 /* The GNU C library defines this for functions which it implements
22297 to always fail with ENOSYS. Some functions are actually named
22298 something starting with __ and the normal name is an alias. */
22299 #if defined __stub_socket || defined __stub___socket
22300 choke me
22301 #endif
22304 main ()
22306 return socket ();
22308 return 0;
22310 _ACEOF
22311 rm -f conftest.$ac_objext conftest$ac_exeext
22312 if { (ac_try="$ac_link"
22313 case "(($ac_try" in
22314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22315 *) ac_try_echo=$ac_try;;
22316 esac
22317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22318 (eval "$ac_link") 2>conftest.er1
22319 ac_status=$?
22320 grep -v '^ *+' conftest.er1 >conftest.err
22321 rm -f conftest.er1
22322 cat conftest.err >&5
22323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22324 (exit $ac_status); } && {
22325 test -z "$ac_c_werror_flag" ||
22326 test ! -s conftest.err
22327 } && test -s conftest$ac_exeext &&
22328 $as_test_x conftest$ac_exeext; then
22329 ac_cv_func_socket=yes
22330 else
22331 echo "$as_me: failed program was:" >&5
22332 sed 's/^/| /' conftest.$ac_ext >&5
22334 ac_cv_func_socket=no
22337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22338 conftest$ac_exeext conftest.$ac_ext
22340 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22341 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22342 if test $ac_cv_func_socket = yes; then
22344 else
22345 ok_so_far=no
22348 if test $ok_so_far = yes; then
22349 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22350 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22351 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22352 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22353 echo $ECHO_N "(cached) $ECHO_C" >&6
22355 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22356 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22357 else
22358 # Is the header compilable?
22359 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22360 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
22361 cat >conftest.$ac_ext <<_ACEOF
22362 /* confdefs.h. */
22363 _ACEOF
22364 cat confdefs.h >>conftest.$ac_ext
22365 cat >>conftest.$ac_ext <<_ACEOF
22366 /* end confdefs.h. */
22367 $ac_includes_default
22368 #include <netinet/in.h>
22369 _ACEOF
22370 rm -f conftest.$ac_objext
22371 if { (ac_try="$ac_compile"
22372 case "(($ac_try" in
22373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22374 *) ac_try_echo=$ac_try;;
22375 esac
22376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22377 (eval "$ac_compile") 2>conftest.er1
22378 ac_status=$?
22379 grep -v '^ *+' conftest.er1 >conftest.err
22380 rm -f conftest.er1
22381 cat conftest.err >&5
22382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22383 (exit $ac_status); } && {
22384 test -z "$ac_c_werror_flag" ||
22385 test ! -s conftest.err
22386 } && test -s conftest.$ac_objext; then
22387 ac_header_compiler=yes
22388 else
22389 echo "$as_me: failed program was:" >&5
22390 sed 's/^/| /' conftest.$ac_ext >&5
22392 ac_header_compiler=no
22395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22396 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22397 echo "${ECHO_T}$ac_header_compiler" >&6; }
22399 # Is the header present?
22400 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22401 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
22402 cat >conftest.$ac_ext <<_ACEOF
22403 /* confdefs.h. */
22404 _ACEOF
22405 cat confdefs.h >>conftest.$ac_ext
22406 cat >>conftest.$ac_ext <<_ACEOF
22407 /* end confdefs.h. */
22408 #include <netinet/in.h>
22409 _ACEOF
22410 if { (ac_try="$ac_cpp conftest.$ac_ext"
22411 case "(($ac_try" in
22412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22413 *) ac_try_echo=$ac_try;;
22414 esac
22415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22417 ac_status=$?
22418 grep -v '^ *+' conftest.er1 >conftest.err
22419 rm -f conftest.er1
22420 cat conftest.err >&5
22421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22422 (exit $ac_status); } >/dev/null && {
22423 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22424 test ! -s conftest.err
22425 }; then
22426 ac_header_preproc=yes
22427 else
22428 echo "$as_me: failed program was:" >&5
22429 sed 's/^/| /' conftest.$ac_ext >&5
22431 ac_header_preproc=no
22434 rm -f conftest.err conftest.$ac_ext
22435 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22436 echo "${ECHO_T}$ac_header_preproc" >&6; }
22438 # So? What about this header?
22439 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22440 yes:no: )
22441 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22442 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22443 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22444 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22445 ac_header_preproc=yes
22447 no:yes:* )
22448 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22449 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22450 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22451 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22452 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22453 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22454 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22455 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22456 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22457 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22458 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22459 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22462 esac
22463 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22464 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22465 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22466 echo $ECHO_N "(cached) $ECHO_C" >&6
22467 else
22468 ac_cv_header_netinet_in_h=$ac_header_preproc
22470 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22471 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22474 if test $ac_cv_header_netinet_in_h = yes; then
22476 else
22477 ok_so_far=no
22482 if test $ok_so_far = yes; then
22483 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22484 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22485 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22486 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22487 echo $ECHO_N "(cached) $ECHO_C" >&6
22489 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22490 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22491 else
22492 # Is the header compilable?
22493 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22494 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
22495 cat >conftest.$ac_ext <<_ACEOF
22496 /* confdefs.h. */
22497 _ACEOF
22498 cat confdefs.h >>conftest.$ac_ext
22499 cat >>conftest.$ac_ext <<_ACEOF
22500 /* end confdefs.h. */
22501 $ac_includes_default
22502 #include <arpa/inet.h>
22503 _ACEOF
22504 rm -f conftest.$ac_objext
22505 if { (ac_try="$ac_compile"
22506 case "(($ac_try" in
22507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22508 *) ac_try_echo=$ac_try;;
22509 esac
22510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22511 (eval "$ac_compile") 2>conftest.er1
22512 ac_status=$?
22513 grep -v '^ *+' conftest.er1 >conftest.err
22514 rm -f conftest.er1
22515 cat conftest.err >&5
22516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22517 (exit $ac_status); } && {
22518 test -z "$ac_c_werror_flag" ||
22519 test ! -s conftest.err
22520 } && test -s conftest.$ac_objext; then
22521 ac_header_compiler=yes
22522 else
22523 echo "$as_me: failed program was:" >&5
22524 sed 's/^/| /' conftest.$ac_ext >&5
22526 ac_header_compiler=no
22529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22530 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22531 echo "${ECHO_T}$ac_header_compiler" >&6; }
22533 # Is the header present?
22534 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22535 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
22536 cat >conftest.$ac_ext <<_ACEOF
22537 /* confdefs.h. */
22538 _ACEOF
22539 cat confdefs.h >>conftest.$ac_ext
22540 cat >>conftest.$ac_ext <<_ACEOF
22541 /* end confdefs.h. */
22542 #include <arpa/inet.h>
22543 _ACEOF
22544 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
22551 ac_status=$?
22552 grep -v '^ *+' conftest.er1 >conftest.err
22553 rm -f conftest.er1
22554 cat conftest.err >&5
22555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22556 (exit $ac_status); } >/dev/null && {
22557 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22558 test ! -s conftest.err
22559 }; then
22560 ac_header_preproc=yes
22561 else
22562 echo "$as_me: failed program was:" >&5
22563 sed 's/^/| /' conftest.$ac_ext >&5
22565 ac_header_preproc=no
22568 rm -f conftest.err conftest.$ac_ext
22569 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22570 echo "${ECHO_T}$ac_header_preproc" >&6; }
22572 # So? What about this header?
22573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22574 yes:no: )
22575 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
22576 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22577 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
22578 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
22579 ac_header_preproc=yes
22581 no:yes:* )
22582 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
22583 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
22584 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
22585 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
22586 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
22587 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
22588 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
22589 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
22590 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
22591 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
22592 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
22593 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
22596 esac
22597 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22598 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22599 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22600 echo $ECHO_N "(cached) $ECHO_C" >&6
22601 else
22602 ac_cv_header_arpa_inet_h=$ac_header_preproc
22604 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22605 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22608 if test $ac_cv_header_arpa_inet_h = yes; then
22610 else
22611 ok_so_far=no
22616 if test $ok_so_far = yes; then
22618 cat >>confdefs.h <<\_ACEOF
22619 #define HAVE_INET_SOCKETS 1
22620 _ACEOF
22625 for ac_header in sys/ioctl.h
22627 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22629 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22630 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22631 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22632 echo $ECHO_N "(cached) $ECHO_C" >&6
22634 ac_res=`eval echo '${'$as_ac_Header'}'`
22635 { echo "$as_me:$LINENO: result: $ac_res" >&5
22636 echo "${ECHO_T}$ac_res" >&6; }
22637 else
22638 # Is the header compilable?
22639 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22640 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22641 cat >conftest.$ac_ext <<_ACEOF
22642 /* confdefs.h. */
22643 _ACEOF
22644 cat confdefs.h >>conftest.$ac_ext
22645 cat >>conftest.$ac_ext <<_ACEOF
22646 /* end confdefs.h. */
22647 $ac_includes_default
22648 #include <$ac_header>
22649 _ACEOF
22650 rm -f conftest.$ac_objext
22651 if { (ac_try="$ac_compile"
22652 case "(($ac_try" in
22653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22654 *) ac_try_echo=$ac_try;;
22655 esac
22656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22657 (eval "$ac_compile") 2>conftest.er1
22658 ac_status=$?
22659 grep -v '^ *+' conftest.er1 >conftest.err
22660 rm -f conftest.er1
22661 cat conftest.err >&5
22662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22663 (exit $ac_status); } && {
22664 test -z "$ac_c_werror_flag" ||
22665 test ! -s conftest.err
22666 } && test -s conftest.$ac_objext; then
22667 ac_header_compiler=yes
22668 else
22669 echo "$as_me: failed program was:" >&5
22670 sed 's/^/| /' conftest.$ac_ext >&5
22672 ac_header_compiler=no
22675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22676 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22677 echo "${ECHO_T}$ac_header_compiler" >&6; }
22679 # Is the header present?
22680 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22681 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22682 cat >conftest.$ac_ext <<_ACEOF
22683 /* confdefs.h. */
22684 _ACEOF
22685 cat confdefs.h >>conftest.$ac_ext
22686 cat >>conftest.$ac_ext <<_ACEOF
22687 /* end confdefs.h. */
22688 #include <$ac_header>
22689 _ACEOF
22690 if { (ac_try="$ac_cpp conftest.$ac_ext"
22691 case "(($ac_try" in
22692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22693 *) ac_try_echo=$ac_try;;
22694 esac
22695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22696 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22697 ac_status=$?
22698 grep -v '^ *+' conftest.er1 >conftest.err
22699 rm -f conftest.er1
22700 cat conftest.err >&5
22701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22702 (exit $ac_status); } >/dev/null && {
22703 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22704 test ! -s conftest.err
22705 }; then
22706 ac_header_preproc=yes
22707 else
22708 echo "$as_me: failed program was:" >&5
22709 sed 's/^/| /' conftest.$ac_ext >&5
22711 ac_header_preproc=no
22714 rm -f conftest.err conftest.$ac_ext
22715 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22716 echo "${ECHO_T}$ac_header_preproc" >&6; }
22718 # So? What about this header?
22719 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22720 yes:no: )
22721 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22722 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22724 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22725 ac_header_preproc=yes
22727 no:yes:* )
22728 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22729 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22730 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22731 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22732 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22733 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22734 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22735 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22736 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22737 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22738 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22739 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22742 esac
22743 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22746 echo $ECHO_N "(cached) $ECHO_C" >&6
22747 else
22748 eval "$as_ac_Header=\$ac_header_preproc"
22750 ac_res=`eval echo '${'$as_ac_Header'}'`
22751 { echo "$as_me:$LINENO: result: $ac_res" >&5
22752 echo "${ECHO_T}$ac_res" >&6; }
22755 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22756 cat >>confdefs.h <<_ACEOF
22757 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22758 _ACEOF
22762 done
22765 if test -f /usr/lpp/X11/bin/smt.exp; then
22767 cat >>confdefs.h <<\_ACEOF
22768 #define HAVE_AIX_SMT_EXP 1
22769 _ACEOF
22773 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
22774 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
22775 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22776 { echo "$as_me:$LINENO: result: yes" >&5
22777 echo "${ECHO_T}yes" >&6; }
22779 cat >>confdefs.h <<\_ACEOF
22780 #define HAVE_DEV_PTMX 1
22781 _ACEOF
22783 else
22784 { echo "$as_me:$LINENO: result: no" >&5
22785 echo "${ECHO_T}no" >&6; }
22788 { echo "$as_me:$LINENO: checking for pid_t" >&5
22789 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22790 if test "${ac_cv_type_pid_t+set}" = set; then
22791 echo $ECHO_N "(cached) $ECHO_C" >&6
22792 else
22793 cat >conftest.$ac_ext <<_ACEOF
22794 /* confdefs.h. */
22795 _ACEOF
22796 cat confdefs.h >>conftest.$ac_ext
22797 cat >>conftest.$ac_ext <<_ACEOF
22798 /* end confdefs.h. */
22799 $ac_includes_default
22800 typedef pid_t ac__type_new_;
22802 main ()
22804 if ((ac__type_new_ *) 0)
22805 return 0;
22806 if (sizeof (ac__type_new_))
22807 return 0;
22809 return 0;
22811 _ACEOF
22812 rm -f conftest.$ac_objext
22813 if { (ac_try="$ac_compile"
22814 case "(($ac_try" in
22815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22816 *) ac_try_echo=$ac_try;;
22817 esac
22818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22819 (eval "$ac_compile") 2>conftest.er1
22820 ac_status=$?
22821 grep -v '^ *+' conftest.er1 >conftest.err
22822 rm -f conftest.er1
22823 cat conftest.err >&5
22824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22825 (exit $ac_status); } && {
22826 test -z "$ac_c_werror_flag" ||
22827 test ! -s conftest.err
22828 } && test -s conftest.$ac_objext; then
22829 ac_cv_type_pid_t=yes
22830 else
22831 echo "$as_me: failed program was:" >&5
22832 sed 's/^/| /' conftest.$ac_ext >&5
22834 ac_cv_type_pid_t=no
22837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22839 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22840 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22841 if test $ac_cv_type_pid_t = yes; then
22843 else
22845 cat >>confdefs.h <<_ACEOF
22846 #define pid_t int
22847 _ACEOF
22852 for ac_header in vfork.h
22854 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22856 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22858 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22859 echo $ECHO_N "(cached) $ECHO_C" >&6
22861 ac_res=`eval echo '${'$as_ac_Header'}'`
22862 { echo "$as_me:$LINENO: result: $ac_res" >&5
22863 echo "${ECHO_T}$ac_res" >&6; }
22864 else
22865 # Is the header compilable?
22866 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22867 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22868 cat >conftest.$ac_ext <<_ACEOF
22869 /* confdefs.h. */
22870 _ACEOF
22871 cat confdefs.h >>conftest.$ac_ext
22872 cat >>conftest.$ac_ext <<_ACEOF
22873 /* end confdefs.h. */
22874 $ac_includes_default
22875 #include <$ac_header>
22876 _ACEOF
22877 rm -f conftest.$ac_objext
22878 if { (ac_try="$ac_compile"
22879 case "(($ac_try" in
22880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22881 *) ac_try_echo=$ac_try;;
22882 esac
22883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22884 (eval "$ac_compile") 2>conftest.er1
22885 ac_status=$?
22886 grep -v '^ *+' conftest.er1 >conftest.err
22887 rm -f conftest.er1
22888 cat conftest.err >&5
22889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22890 (exit $ac_status); } && {
22891 test -z "$ac_c_werror_flag" ||
22892 test ! -s conftest.err
22893 } && test -s conftest.$ac_objext; then
22894 ac_header_compiler=yes
22895 else
22896 echo "$as_me: failed program was:" >&5
22897 sed 's/^/| /' conftest.$ac_ext >&5
22899 ac_header_compiler=no
22902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22903 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22904 echo "${ECHO_T}$ac_header_compiler" >&6; }
22906 # Is the header present?
22907 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22908 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22909 cat >conftest.$ac_ext <<_ACEOF
22910 /* confdefs.h. */
22911 _ACEOF
22912 cat confdefs.h >>conftest.$ac_ext
22913 cat >>conftest.$ac_ext <<_ACEOF
22914 /* end confdefs.h. */
22915 #include <$ac_header>
22916 _ACEOF
22917 if { (ac_try="$ac_cpp conftest.$ac_ext"
22918 case "(($ac_try" in
22919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22920 *) ac_try_echo=$ac_try;;
22921 esac
22922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22924 ac_status=$?
22925 grep -v '^ *+' conftest.er1 >conftest.err
22926 rm -f conftest.er1
22927 cat conftest.err >&5
22928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22929 (exit $ac_status); } >/dev/null && {
22930 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22931 test ! -s conftest.err
22932 }; then
22933 ac_header_preproc=yes
22934 else
22935 echo "$as_me: failed program was:" >&5
22936 sed 's/^/| /' conftest.$ac_ext >&5
22938 ac_header_preproc=no
22941 rm -f conftest.err conftest.$ac_ext
22942 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22943 echo "${ECHO_T}$ac_header_preproc" >&6; }
22945 # So? What about this header?
22946 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22947 yes:no: )
22948 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22949 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22950 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22951 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22952 ac_header_preproc=yes
22954 no:yes:* )
22955 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22956 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22957 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22958 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22959 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22960 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22961 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22962 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22964 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22965 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22966 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22969 esac
22970 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22973 echo $ECHO_N "(cached) $ECHO_C" >&6
22974 else
22975 eval "$as_ac_Header=\$ac_header_preproc"
22977 ac_res=`eval echo '${'$as_ac_Header'}'`
22978 { echo "$as_me:$LINENO: result: $ac_res" >&5
22979 echo "${ECHO_T}$ac_res" >&6; }
22982 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22983 cat >>confdefs.h <<_ACEOF
22984 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22985 _ACEOF
22989 done
22993 for ac_func in fork vfork
22995 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22996 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22997 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22998 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22999 echo $ECHO_N "(cached) $ECHO_C" >&6
23000 else
23001 cat >conftest.$ac_ext <<_ACEOF
23002 /* confdefs.h. */
23003 _ACEOF
23004 cat confdefs.h >>conftest.$ac_ext
23005 cat >>conftest.$ac_ext <<_ACEOF
23006 /* end confdefs.h. */
23007 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23008 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23009 #define $ac_func innocuous_$ac_func
23011 /* System header to define __stub macros and hopefully few prototypes,
23012 which can conflict with char $ac_func (); below.
23013 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23014 <limits.h> exists even on freestanding compilers. */
23016 #ifdef __STDC__
23017 # include <limits.h>
23018 #else
23019 # include <assert.h>
23020 #endif
23022 #undef $ac_func
23024 /* Override any GCC internal prototype to avoid an error.
23025 Use char because int might match the return type of a GCC
23026 builtin and then its argument prototype would still apply. */
23027 #ifdef __cplusplus
23028 extern "C"
23029 #endif
23030 char $ac_func ();
23031 /* The GNU C library defines this for functions which it implements
23032 to always fail with ENOSYS. Some functions are actually named
23033 something starting with __ and the normal name is an alias. */
23034 #if defined __stub_$ac_func || defined __stub___$ac_func
23035 choke me
23036 #endif
23039 main ()
23041 return $ac_func ();
23043 return 0;
23045 _ACEOF
23046 rm -f conftest.$ac_objext conftest$ac_exeext
23047 if { (ac_try="$ac_link"
23048 case "(($ac_try" in
23049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23050 *) ac_try_echo=$ac_try;;
23051 esac
23052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23053 (eval "$ac_link") 2>conftest.er1
23054 ac_status=$?
23055 grep -v '^ *+' conftest.er1 >conftest.err
23056 rm -f conftest.er1
23057 cat conftest.err >&5
23058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23059 (exit $ac_status); } && {
23060 test -z "$ac_c_werror_flag" ||
23061 test ! -s conftest.err
23062 } && test -s conftest$ac_exeext &&
23063 $as_test_x conftest$ac_exeext; then
23064 eval "$as_ac_var=yes"
23065 else
23066 echo "$as_me: failed program was:" >&5
23067 sed 's/^/| /' conftest.$ac_ext >&5
23069 eval "$as_ac_var=no"
23072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23073 conftest$ac_exeext conftest.$ac_ext
23075 ac_res=`eval echo '${'$as_ac_var'}'`
23076 { echo "$as_me:$LINENO: result: $ac_res" >&5
23077 echo "${ECHO_T}$ac_res" >&6; }
23078 if test `eval echo '${'$as_ac_var'}'` = yes; then
23079 cat >>confdefs.h <<_ACEOF
23080 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23081 _ACEOF
23084 done
23086 if test "x$ac_cv_func_fork" = xyes; then
23087 { echo "$as_me:$LINENO: checking for working fork" >&5
23088 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
23089 if test "${ac_cv_func_fork_works+set}" = set; then
23090 echo $ECHO_N "(cached) $ECHO_C" >&6
23091 else
23092 if test "$cross_compiling" = yes; then
23093 ac_cv_func_fork_works=cross
23094 else
23095 cat >conftest.$ac_ext <<_ACEOF
23096 /* confdefs.h. */
23097 _ACEOF
23098 cat confdefs.h >>conftest.$ac_ext
23099 cat >>conftest.$ac_ext <<_ACEOF
23100 /* end confdefs.h. */
23101 $ac_includes_default
23103 main ()
23106 /* By Ruediger Kuhlmann. */
23107 return fork () < 0;
23110 return 0;
23112 _ACEOF
23113 rm -f conftest$ac_exeext
23114 if { (ac_try="$ac_link"
23115 case "(($ac_try" in
23116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23117 *) ac_try_echo=$ac_try;;
23118 esac
23119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23120 (eval "$ac_link") 2>&5
23121 ac_status=$?
23122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23123 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23124 { (case "(($ac_try" in
23125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23126 *) ac_try_echo=$ac_try;;
23127 esac
23128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23129 (eval "$ac_try") 2>&5
23130 ac_status=$?
23131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23132 (exit $ac_status); }; }; then
23133 ac_cv_func_fork_works=yes
23134 else
23135 echo "$as_me: program exited with status $ac_status" >&5
23136 echo "$as_me: failed program was:" >&5
23137 sed 's/^/| /' conftest.$ac_ext >&5
23139 ( exit $ac_status )
23140 ac_cv_func_fork_works=no
23142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23147 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23148 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23150 else
23151 ac_cv_func_fork_works=$ac_cv_func_fork
23153 if test "x$ac_cv_func_fork_works" = xcross; then
23154 case $host in
23155 *-*-amigaos* | *-*-msdosdjgpp*)
23156 # Override, as these systems have only a dummy fork() stub
23157 ac_cv_func_fork_works=no
23160 ac_cv_func_fork_works=yes
23162 esac
23163 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23164 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23166 ac_cv_func_vfork_works=$ac_cv_func_vfork
23167 if test "x$ac_cv_func_vfork" = xyes; then
23168 { echo "$as_me:$LINENO: checking for working vfork" >&5
23169 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
23170 if test "${ac_cv_func_vfork_works+set}" = set; then
23171 echo $ECHO_N "(cached) $ECHO_C" >&6
23172 else
23173 if test "$cross_compiling" = yes; then
23174 ac_cv_func_vfork_works=cross
23175 else
23176 cat >conftest.$ac_ext <<_ACEOF
23177 /* confdefs.h. */
23178 _ACEOF
23179 cat confdefs.h >>conftest.$ac_ext
23180 cat >>conftest.$ac_ext <<_ACEOF
23181 /* end confdefs.h. */
23182 /* Thanks to Paul Eggert for this test. */
23183 $ac_includes_default
23184 #include <sys/wait.h>
23185 #ifdef HAVE_VFORK_H
23186 # include <vfork.h>
23187 #endif
23188 /* On some sparc systems, changes by the child to local and incoming
23189 argument registers are propagated back to the parent. The compiler
23190 is told about this with #include <vfork.h>, but some compilers
23191 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23192 static variable whose address is put into a register that is
23193 clobbered by the vfork. */
23194 static void
23195 #ifdef __cplusplus
23196 sparc_address_test (int arg)
23197 # else
23198 sparc_address_test (arg) int arg;
23199 #endif
23201 static pid_t child;
23202 if (!child) {
23203 child = vfork ();
23204 if (child < 0) {
23205 perror ("vfork");
23206 _exit(2);
23208 if (!child) {
23209 arg = getpid();
23210 write(-1, "", 0);
23211 _exit (arg);
23217 main ()
23219 pid_t parent = getpid ();
23220 pid_t child;
23222 sparc_address_test (0);
23224 child = vfork ();
23226 if (child == 0) {
23227 /* Here is another test for sparc vfork register problems. This
23228 test uses lots of local variables, at least as many local
23229 variables as main has allocated so far including compiler
23230 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23231 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23232 reuse the register of parent for one of the local variables,
23233 since it will think that parent can't possibly be used any more
23234 in this routine. Assigning to the local variable will thus
23235 munge parent in the parent process. */
23236 pid_t
23237 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23238 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23239 /* Convince the compiler that p..p7 are live; otherwise, it might
23240 use the same hardware register for all 8 local variables. */
23241 if (p != p1 || p != p2 || p != p3 || p != p4
23242 || p != p5 || p != p6 || p != p7)
23243 _exit(1);
23245 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23246 from child file descriptors. If the child closes a descriptor
23247 before it execs or exits, this munges the parent's descriptor
23248 as well. Test for this by closing stdout in the child. */
23249 _exit(close(fileno(stdout)) != 0);
23250 } else {
23251 int status;
23252 struct stat st;
23254 while (wait(&status) != child)
23256 return (
23257 /* Was there some problem with vforking? */
23258 child < 0
23260 /* Did the child fail? (This shouldn't happen.) */
23261 || status
23263 /* Did the vfork/compiler bug occur? */
23264 || parent != getpid()
23266 /* Did the file descriptor bug occur? */
23267 || fstat(fileno(stdout), &st) != 0
23271 _ACEOF
23272 rm -f conftest$ac_exeext
23273 if { (ac_try="$ac_link"
23274 case "(($ac_try" in
23275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23276 *) ac_try_echo=$ac_try;;
23277 esac
23278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23279 (eval "$ac_link") 2>&5
23280 ac_status=$?
23281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23282 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23283 { (case "(($ac_try" in
23284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23285 *) ac_try_echo=$ac_try;;
23286 esac
23287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23288 (eval "$ac_try") 2>&5
23289 ac_status=$?
23290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23291 (exit $ac_status); }; }; then
23292 ac_cv_func_vfork_works=yes
23293 else
23294 echo "$as_me: program exited with status $ac_status" >&5
23295 echo "$as_me: failed program was:" >&5
23296 sed 's/^/| /' conftest.$ac_ext >&5
23298 ( exit $ac_status )
23299 ac_cv_func_vfork_works=no
23301 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23306 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23307 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23310 if test "x$ac_cv_func_fork_works" = xcross; then
23311 ac_cv_func_vfork_works=$ac_cv_func_vfork
23312 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23313 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23316 if test "x$ac_cv_func_vfork_works" = xyes; then
23318 cat >>confdefs.h <<\_ACEOF
23319 #define HAVE_WORKING_VFORK 1
23320 _ACEOF
23322 else
23324 cat >>confdefs.h <<\_ACEOF
23325 #define vfork fork
23326 _ACEOF
23329 if test "x$ac_cv_func_fork_works" = xyes; then
23331 cat >>confdefs.h <<\_ACEOF
23332 #define HAVE_WORKING_FORK 1
23333 _ACEOF
23338 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23339 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
23340 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23341 echo $ECHO_N "(cached) $ECHO_C" >&6
23342 else
23343 cat >conftest.$ac_ext <<_ACEOF
23344 /* confdefs.h. */
23345 _ACEOF
23346 cat confdefs.h >>conftest.$ac_ext
23347 cat >>conftest.$ac_ext <<_ACEOF
23348 /* end confdefs.h. */
23349 #include <langinfo.h>
23351 main ()
23353 char* cs = nl_langinfo(CODESET);
23355 return 0;
23357 _ACEOF
23358 rm -f conftest.$ac_objext conftest$ac_exeext
23359 if { (ac_try="$ac_link"
23360 case "(($ac_try" in
23361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23362 *) ac_try_echo=$ac_try;;
23363 esac
23364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23365 (eval "$ac_link") 2>conftest.er1
23366 ac_status=$?
23367 grep -v '^ *+' conftest.er1 >conftest.err
23368 rm -f conftest.er1
23369 cat conftest.err >&5
23370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23371 (exit $ac_status); } && {
23372 test -z "$ac_c_werror_flag" ||
23373 test ! -s conftest.err
23374 } && test -s conftest$ac_exeext &&
23375 $as_test_x conftest$ac_exeext; then
23376 emacs_cv_langinfo_codeset=yes
23377 else
23378 echo "$as_me: failed program was:" >&5
23379 sed 's/^/| /' conftest.$ac_ext >&5
23381 emacs_cv_langinfo_codeset=no
23384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23385 conftest$ac_exeext conftest.$ac_ext
23388 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23389 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23390 if test $emacs_cv_langinfo_codeset = yes; then
23392 cat >>confdefs.h <<\_ACEOF
23393 #define HAVE_LANGINFO_CODESET 1
23394 _ACEOF
23398 { echo "$as_me:$LINENO: checking for size_t" >&5
23399 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23400 if test "${ac_cv_type_size_t+set}" = set; then
23401 echo $ECHO_N "(cached) $ECHO_C" >&6
23402 else
23403 cat >conftest.$ac_ext <<_ACEOF
23404 /* confdefs.h. */
23405 _ACEOF
23406 cat confdefs.h >>conftest.$ac_ext
23407 cat >>conftest.$ac_ext <<_ACEOF
23408 /* end confdefs.h. */
23409 $ac_includes_default
23410 typedef size_t ac__type_new_;
23412 main ()
23414 if ((ac__type_new_ *) 0)
23415 return 0;
23416 if (sizeof (ac__type_new_))
23417 return 0;
23419 return 0;
23421 _ACEOF
23422 rm -f conftest.$ac_objext
23423 if { (ac_try="$ac_compile"
23424 case "(($ac_try" in
23425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23426 *) ac_try_echo=$ac_try;;
23427 esac
23428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23429 (eval "$ac_compile") 2>conftest.er1
23430 ac_status=$?
23431 grep -v '^ *+' conftest.er1 >conftest.err
23432 rm -f conftest.er1
23433 cat conftest.err >&5
23434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23435 (exit $ac_status); } && {
23436 test -z "$ac_c_werror_flag" ||
23437 test ! -s conftest.err
23438 } && test -s conftest.$ac_objext; then
23439 ac_cv_type_size_t=yes
23440 else
23441 echo "$as_me: failed program was:" >&5
23442 sed 's/^/| /' conftest.$ac_ext >&5
23444 ac_cv_type_size_t=no
23447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23449 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23450 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23451 if test $ac_cv_type_size_t = yes; then
23453 cat >>confdefs.h <<_ACEOF
23454 #define HAVE_SIZE_T 1
23455 _ACEOF
23461 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23462 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23463 if test "${ac_cv_type_mbstate_t+set}" = set; then
23464 echo $ECHO_N "(cached) $ECHO_C" >&6
23465 else
23466 cat >conftest.$ac_ext <<_ACEOF
23467 /* confdefs.h. */
23468 _ACEOF
23469 cat confdefs.h >>conftest.$ac_ext
23470 cat >>conftest.$ac_ext <<_ACEOF
23471 /* end confdefs.h. */
23472 $ac_includes_default
23473 # include <wchar.h>
23475 main ()
23477 mbstate_t x; return sizeof x;
23479 return 0;
23481 _ACEOF
23482 rm -f conftest.$ac_objext
23483 if { (ac_try="$ac_compile"
23484 case "(($ac_try" in
23485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23486 *) ac_try_echo=$ac_try;;
23487 esac
23488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23489 (eval "$ac_compile") 2>conftest.er1
23490 ac_status=$?
23491 grep -v '^ *+' conftest.er1 >conftest.err
23492 rm -f conftest.er1
23493 cat conftest.err >&5
23494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23495 (exit $ac_status); } && {
23496 test -z "$ac_c_werror_flag" ||
23497 test ! -s conftest.err
23498 } && test -s conftest.$ac_objext; then
23499 ac_cv_type_mbstate_t=yes
23500 else
23501 echo "$as_me: failed program was:" >&5
23502 sed 's/^/| /' conftest.$ac_ext >&5
23504 ac_cv_type_mbstate_t=no
23507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23509 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23510 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23511 if test $ac_cv_type_mbstate_t = yes; then
23513 cat >>confdefs.h <<\_ACEOF
23514 #define HAVE_MBSTATE_T 1
23515 _ACEOF
23517 else
23519 cat >>confdefs.h <<\_ACEOF
23520 #define mbstate_t int
23521 _ACEOF
23525 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23526 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
23527 if test "${emacs_cv_c_restrict+set}" = set; then
23528 echo $ECHO_N "(cached) $ECHO_C" >&6
23529 else
23530 cat >conftest.$ac_ext <<_ACEOF
23531 /* confdefs.h. */
23532 _ACEOF
23533 cat confdefs.h >>conftest.$ac_ext
23534 cat >>conftest.$ac_ext <<_ACEOF
23535 /* end confdefs.h. */
23536 void fred (int *restrict x);
23538 main ()
23542 return 0;
23544 _ACEOF
23545 rm -f conftest.$ac_objext
23546 if { (ac_try="$ac_compile"
23547 case "(($ac_try" in
23548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23549 *) ac_try_echo=$ac_try;;
23550 esac
23551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23552 (eval "$ac_compile") 2>conftest.er1
23553 ac_status=$?
23554 grep -v '^ *+' conftest.er1 >conftest.err
23555 rm -f conftest.er1
23556 cat conftest.err >&5
23557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23558 (exit $ac_status); } && {
23559 test -z "$ac_c_werror_flag" ||
23560 test ! -s conftest.err
23561 } && test -s conftest.$ac_objext; then
23562 emacs_cv_c_restrict=yes
23563 else
23564 echo "$as_me: failed program was:" >&5
23565 sed 's/^/| /' conftest.$ac_ext >&5
23567 cat >conftest.$ac_ext <<_ACEOF
23568 /* confdefs.h. */
23569 _ACEOF
23570 cat confdefs.h >>conftest.$ac_ext
23571 cat >>conftest.$ac_ext <<_ACEOF
23572 /* end confdefs.h. */
23573 void fred (int *__restrict x);
23575 main ()
23579 return 0;
23581 _ACEOF
23582 rm -f conftest.$ac_objext
23583 if { (ac_try="$ac_compile"
23584 case "(($ac_try" in
23585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23586 *) ac_try_echo=$ac_try;;
23587 esac
23588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23589 (eval "$ac_compile") 2>conftest.er1
23590 ac_status=$?
23591 grep -v '^ *+' conftest.er1 >conftest.err
23592 rm -f conftest.er1
23593 cat conftest.err >&5
23594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23595 (exit $ac_status); } && {
23596 test -z "$ac_c_werror_flag" ||
23597 test ! -s conftest.err
23598 } && test -s conftest.$ac_objext; then
23599 emacs_cv_c_restrict=__restrict
23600 else
23601 echo "$as_me: failed program was:" >&5
23602 sed 's/^/| /' conftest.$ac_ext >&5
23604 emacs_cv_c_restrict=no
23607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23612 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
23613 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23614 case "$emacs_cv_c_restrict" in
23615 yes) emacs_restrict=restrict;;
23616 no) emacs_restrict="";;
23617 *) emacs_restrict="$emacs_cv_c_restrict";;
23618 esac
23619 if test "$emacs_restrict" != __restrict; then
23621 cat >>confdefs.h <<_ACEOF
23622 #define __restrict $emacs_restrict
23623 _ACEOF
23627 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
23628 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
23629 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23630 echo $ECHO_N "(cached) $ECHO_C" >&6
23631 else
23632 cat >conftest.$ac_ext <<_ACEOF
23633 /* confdefs.h. */
23634 _ACEOF
23635 cat confdefs.h >>conftest.$ac_ext
23636 cat >>conftest.$ac_ext <<_ACEOF
23637 /* end confdefs.h. */
23638 void fred (int x[__restrict]);
23640 main ()
23644 return 0;
23646 _ACEOF
23647 rm -f conftest.$ac_objext
23648 if { (ac_try="$ac_compile"
23649 case "(($ac_try" in
23650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23651 *) ac_try_echo=$ac_try;;
23652 esac
23653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23654 (eval "$ac_compile") 2>conftest.er1
23655 ac_status=$?
23656 grep -v '^ *+' conftest.er1 >conftest.err
23657 rm -f conftest.er1
23658 cat conftest.err >&5
23659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23660 (exit $ac_status); } && {
23661 test -z "$ac_c_werror_flag" ||
23662 test ! -s conftest.err
23663 } && test -s conftest.$ac_objext; then
23664 emacs_cv_c_restrict_arr=yes
23665 else
23666 echo "$as_me: failed program was:" >&5
23667 sed 's/^/| /' conftest.$ac_ext >&5
23669 emacs_cv_c_restrict_arr=no
23672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23674 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
23675 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23676 if test "$emacs_cv_c_restrict_arr" = yes; then
23678 cat >>confdefs.h <<\_ACEOF
23679 #define __restrict_arr __restrict
23680 _ACEOF
23686 # Set up the CFLAGS for real compilation, so we can substitute it.
23687 CFLAGS="$REAL_CFLAGS"
23688 CPPFLAGS="$REAL_CPPFLAGS"
23690 #### Find out which version of Emacs this is.
23691 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23692 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
23693 if test x"${version}" = x; then
23694 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
23695 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
23696 { (exit 1); exit 1; }; }
23699 ### Specify what sort of things we'll be editing into Makefile and config.h.
23700 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23736 cat >>confdefs.h <<_ACEOF
23737 #define EMACS_CONFIGURATION "${canonical}"
23738 _ACEOF
23741 cat >>confdefs.h <<_ACEOF
23742 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23743 _ACEOF
23746 cat >>confdefs.h <<_ACEOF
23747 #define config_machfile "${machfile}"
23748 _ACEOF
23751 cat >>confdefs.h <<_ACEOF
23752 #define config_opsysfile "${opsysfile}"
23753 _ACEOF
23756 cat >>confdefs.h <<_ACEOF
23757 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23758 _ACEOF
23761 cat >>confdefs.h <<_ACEOF
23762 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23763 _ACEOF
23766 cat >>confdefs.h <<_ACEOF
23767 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23768 _ACEOF
23771 cat >>confdefs.h <<_ACEOF
23772 #define UNEXEC_SRC ${UNEXEC_SRC}
23773 _ACEOF
23776 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23778 cat >>confdefs.h <<\_ACEOF
23779 #define HAVE_X_WINDOWS 1
23780 _ACEOF
23783 if test "${USE_X_TOOLKIT}" != "none" ; then
23785 cat >>confdefs.h <<\_ACEOF
23786 #define USE_X_TOOLKIT 1
23787 _ACEOF
23790 if test "${HAVE_X11}" = "yes" ; then
23792 cat >>confdefs.h <<\_ACEOF
23793 #define HAVE_X11 1
23794 _ACEOF
23797 if test "${HAVE_MENUS}" = "yes" ; then
23799 cat >>confdefs.h <<\_ACEOF
23800 #define HAVE_MENUS 1
23801 _ACEOF
23804 if test "${GNU_MALLOC}" = "yes" ; then
23806 cat >>confdefs.h <<\_ACEOF
23807 #define GNU_MALLOC 1
23808 _ACEOF
23811 if test "${REL_ALLOC}" = "yes" ; then
23813 cat >>confdefs.h <<\_ACEOF
23814 #define REL_ALLOC 1
23815 _ACEOF
23824 #### Report on what we decided to do.
23825 #### Report GTK as a toolkit, even if it doesn't use Xt.
23826 #### It makes printing result more understandable as using GTK sets
23827 #### toolkit_scroll_bars to yes by default.
23828 if test "${HAVE_GTK}" = "yes"; then
23829 USE_X_TOOLKIT=GTK
23832 echo "
23833 Configured for \`${canonical}'.
23835 Where should the build process find the source code? ${srcdir}
23836 What operating system and machine description files should Emacs use?
23837 \`${opsysfile}' and \`${machfile}'
23838 What compiler should emacs be built with? ${CC} ${CFLAGS}
23839 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23840 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23841 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23842 What window system should Emacs use? ${window_system}
23843 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23845 if test -n "${x_includes}"; then
23846 echo " Where do we find X Windows header files? ${x_includes}"
23847 else
23848 echo " Where do we find X Windows header files? Standard dirs"
23850 if test -n "${x_libraries}"; then
23851 echo " Where do we find X Windows libraries? ${x_libraries}"
23852 else
23853 echo " Where do we find X Windows libraries? Standard dirs"
23856 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23857 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23858 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23859 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23860 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
23861 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23862 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
23863 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
23864 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
23865 echo " Does Emacs use a font backend? ${USE_FONT_BACKEND}"
23867 if test "${USE_FONT_BACKEND}" = "yes"; then
23868 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
23869 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
23870 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
23871 echo " Does Emacs use -lxft? ${HAVE_XFT}"
23873 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23874 echo
23876 if test $USE_XASSERTS = yes; then
23877 echo " Compiling with asserts turned on."
23878 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23879 echo
23882 if test "$USE_X_TOOLKIT" = GTK; then
23883 case "$canonical" in
23884 *cygwin*)
23885 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
23886 will probably get a crash on startup. If this happens, please use another
23887 toolkit for Emacs. See etc/PROBLEMS for more information."
23889 esac
23893 if test "$HAVE_CARBON" = "yes"; then
23894 echo
23895 echo "Warning: The Mac Carbon port is currently unsupported and has
23896 known problems. It is not recommended for use by non-developers.
23897 Read the emacs-devel archives for more information."
23898 echo
23901 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
23902 echo "D-Bus integration has been tested for GNU/Linux only."
23903 echo
23907 # Remove any trailing slashes in these variables.
23908 test "${prefix}" != NONE &&
23909 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23910 test "${exec_prefix}" != NONE &&
23911 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23913 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23914 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23915 ## from Makefile.c can correctly provide the arg `-traditional' to the
23916 ## C preprocessor.
23918 cat >conftest.$ac_ext <<_ACEOF
23919 /* confdefs.h. */
23920 _ACEOF
23921 cat confdefs.h >>conftest.$ac_ext
23922 cat >>conftest.$ac_ext <<_ACEOF
23923 /* end confdefs.h. */
23924 yes..yes
23925 _ACEOF
23926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23927 $EGREP "yes..yes" >/dev/null 2>&1; then
23928 CPP_NEED_TRADITIONAL=no
23929 else
23930 CPP_NEED_TRADITIONAL=yes
23932 rm -f conftest*
23935 ac_config_files="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile.c:src/Makefile.in lwlib/Makefile lisp/Makefile leim/Makefile"
23937 ac_config_commands="$ac_config_commands default"
23939 cat >confcache <<\_ACEOF
23940 # This file is a shell script that caches the results of configure
23941 # tests run on this system so they can be shared between configure
23942 # scripts and configure runs, see configure's option --config-cache.
23943 # It is not useful on other systems. If it contains results you don't
23944 # want to keep, you may remove or edit it.
23946 # config.status only pays attention to the cache file if you give it
23947 # the --recheck option to rerun configure.
23949 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23950 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23951 # following values.
23953 _ACEOF
23955 # The following way of writing the cache mishandles newlines in values,
23956 # but we know of no workaround that is simple, portable, and efficient.
23957 # So, we kill variables containing newlines.
23958 # Ultrix sh set writes to stderr and can't be redirected directly,
23959 # and sets the high bit in the cache file unless we assign to the vars.
23961 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23962 eval ac_val=\$$ac_var
23963 case $ac_val in #(
23964 *${as_nl}*)
23965 case $ac_var in #(
23966 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23967 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23968 esac
23969 case $ac_var in #(
23970 _ | IFS | as_nl) ;; #(
23971 *) $as_unset $ac_var ;;
23972 esac ;;
23973 esac
23974 done
23976 (set) 2>&1 |
23977 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23978 *${as_nl}ac_space=\ *)
23979 # `set' does not quote correctly, so add quotes (double-quote
23980 # substitution turns \\\\ into \\, and sed turns \\ into \).
23981 sed -n \
23982 "s/'/'\\\\''/g;
23983 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23984 ;; #(
23986 # `set' quotes correctly as required by POSIX, so do not add quotes.
23987 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23989 esac |
23990 sort
23992 sed '
23993 /^ac_cv_env_/b end
23994 t clear
23995 :clear
23996 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23997 t end
23998 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23999 :end' >>confcache
24000 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24001 if test -w "$cache_file"; then
24002 test "x$cache_file" != "x/dev/null" &&
24003 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24004 echo "$as_me: updating cache $cache_file" >&6;}
24005 cat confcache >$cache_file
24006 else
24007 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24008 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24011 rm -f confcache
24013 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24014 # Let make expand exec_prefix.
24015 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24017 DEFS=-DHAVE_CONFIG_H
24019 ac_libobjs=
24020 ac_ltlibobjs=
24021 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24022 # 1. Remove the extension, and $U if already installed.
24023 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24024 ac_i=`echo "$ac_i" | sed "$ac_script"`
24025 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24026 # will be set to the directory where LIBOBJS objects are built.
24027 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24028 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24029 done
24030 LIBOBJS=$ac_libobjs
24032 LTLIBOBJS=$ac_ltlibobjs
24036 : ${CONFIG_STATUS=./config.status}
24037 ac_clean_files_save=$ac_clean_files
24038 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24039 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24040 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24041 cat >$CONFIG_STATUS <<_ACEOF
24042 #! $SHELL
24043 # Generated by $as_me.
24044 # Run this file to recreate the current configuration.
24045 # Compiler output produced by configure, useful for debugging
24046 # configure, is in config.log if it exists.
24048 debug=false
24049 ac_cs_recheck=false
24050 ac_cs_silent=false
24051 SHELL=\${CONFIG_SHELL-$SHELL}
24052 _ACEOF
24054 cat >>$CONFIG_STATUS <<\_ACEOF
24055 ## --------------------- ##
24056 ## M4sh Initialization. ##
24057 ## --------------------- ##
24059 # Be more Bourne compatible
24060 DUALCASE=1; export DUALCASE # for MKS sh
24061 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24062 emulate sh
24063 NULLCMD=:
24064 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24065 # is contrary to our usage. Disable this feature.
24066 alias -g '${1+"$@"}'='"$@"'
24067 setopt NO_GLOB_SUBST
24068 else
24069 case `(set -o) 2>/dev/null` in
24070 *posix*) set -o posix ;;
24071 esac
24078 # PATH needs CR
24079 # Avoid depending upon Character Ranges.
24080 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24081 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24082 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24083 as_cr_digits='0123456789'
24084 as_cr_alnum=$as_cr_Letters$as_cr_digits
24086 # The user is always right.
24087 if test "${PATH_SEPARATOR+set}" != set; then
24088 echo "#! /bin/sh" >conf$$.sh
24089 echo "exit 0" >>conf$$.sh
24090 chmod +x conf$$.sh
24091 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24092 PATH_SEPARATOR=';'
24093 else
24094 PATH_SEPARATOR=:
24096 rm -f conf$$.sh
24099 # Support unset when possible.
24100 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24101 as_unset=unset
24102 else
24103 as_unset=false
24107 # IFS
24108 # We need space, tab and new line, in precisely that order. Quoting is
24109 # there to prevent editors from complaining about space-tab.
24110 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24111 # splitting by setting IFS to empty value.)
24112 as_nl='
24114 IFS=" "" $as_nl"
24116 # Find who we are. Look in the path if we contain no directory separator.
24117 case $0 in
24118 *[\\/]* ) as_myself=$0 ;;
24119 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24120 for as_dir in $PATH
24122 IFS=$as_save_IFS
24123 test -z "$as_dir" && as_dir=.
24124 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24125 done
24126 IFS=$as_save_IFS
24129 esac
24130 # We did not find ourselves, most probably we were run as `sh COMMAND'
24131 # in which case we are not to be found in the path.
24132 if test "x$as_myself" = x; then
24133 as_myself=$0
24135 if test ! -f "$as_myself"; then
24136 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24137 { (exit 1); exit 1; }
24140 # Work around bugs in pre-3.0 UWIN ksh.
24141 for as_var in ENV MAIL MAILPATH
24142 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24143 done
24144 PS1='$ '
24145 PS2='> '
24146 PS4='+ '
24148 # NLS nuisances.
24149 for as_var in \
24150 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24151 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24152 LC_TELEPHONE LC_TIME
24154 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24155 eval $as_var=C; export $as_var
24156 else
24157 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24159 done
24161 # Required to use basename.
24162 if expr a : '\(a\)' >/dev/null 2>&1 &&
24163 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24164 as_expr=expr
24165 else
24166 as_expr=false
24169 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24170 as_basename=basename
24171 else
24172 as_basename=false
24176 # Name of the executable.
24177 as_me=`$as_basename -- "$0" ||
24178 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24179 X"$0" : 'X\(//\)$' \| \
24180 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24181 echo X/"$0" |
24182 sed '/^.*\/\([^/][^/]*\)\/*$/{
24183 s//\1/
24186 /^X\/\(\/\/\)$/{
24187 s//\1/
24190 /^X\/\(\/\).*/{
24191 s//\1/
24194 s/.*/./; q'`
24196 # CDPATH.
24197 $as_unset CDPATH
24201 as_lineno_1=$LINENO
24202 as_lineno_2=$LINENO
24203 test "x$as_lineno_1" != "x$as_lineno_2" &&
24204 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24206 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24207 # uniformly replaced by the line number. The first 'sed' inserts a
24208 # line-number line after each line using $LINENO; the second 'sed'
24209 # does the real work. The second script uses 'N' to pair each
24210 # line-number line with the line containing $LINENO, and appends
24211 # trailing '-' during substitution so that $LINENO is not a special
24212 # case at line end.
24213 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24214 # scripts with optimization help from Paolo Bonzini. Blame Lee
24215 # E. McMahon (1931-1989) for sed's syntax. :-)
24216 sed -n '
24218 /[$]LINENO/=
24219 ' <$as_myself |
24220 sed '
24221 s/[$]LINENO.*/&-/
24222 t lineno
24224 :lineno
24226 :loop
24227 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24228 t loop
24229 s/-\n.*//
24230 ' >$as_me.lineno &&
24231 chmod +x "$as_me.lineno" ||
24232 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24233 { (exit 1); exit 1; }; }
24235 # Don't try to exec as it changes $[0], causing all sort of problems
24236 # (the dirname of $[0] is not the place where we might find the
24237 # original and so on. Autoconf is especially sensitive to this).
24238 . "./$as_me.lineno"
24239 # Exit status is that of the last command.
24240 exit
24244 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24245 as_dirname=dirname
24246 else
24247 as_dirname=false
24250 ECHO_C= ECHO_N= ECHO_T=
24251 case `echo -n x` in
24252 -n*)
24253 case `echo 'x\c'` in
24254 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24255 *) ECHO_C='\c';;
24256 esac;;
24258 ECHO_N='-n';;
24259 esac
24261 if expr a : '\(a\)' >/dev/null 2>&1 &&
24262 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24263 as_expr=expr
24264 else
24265 as_expr=false
24268 rm -f conf$$ conf$$.exe conf$$.file
24269 if test -d conf$$.dir; then
24270 rm -f conf$$.dir/conf$$.file
24271 else
24272 rm -f conf$$.dir
24273 mkdir conf$$.dir
24275 echo >conf$$.file
24276 if ln -s conf$$.file conf$$ 2>/dev/null; then
24277 as_ln_s='ln -s'
24278 # ... but there are two gotchas:
24279 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24280 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24281 # In both cases, we have to default to `cp -p'.
24282 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24283 as_ln_s='cp -p'
24284 elif ln conf$$.file conf$$ 2>/dev/null; then
24285 as_ln_s=ln
24286 else
24287 as_ln_s='cp -p'
24289 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24290 rmdir conf$$.dir 2>/dev/null
24292 if mkdir -p . 2>/dev/null; then
24293 as_mkdir_p=:
24294 else
24295 test -d ./-p && rmdir ./-p
24296 as_mkdir_p=false
24299 if test -x / >/dev/null 2>&1; then
24300 as_test_x='test -x'
24301 else
24302 if ls -dL / >/dev/null 2>&1; then
24303 as_ls_L_option=L
24304 else
24305 as_ls_L_option=
24307 as_test_x='
24308 eval sh -c '\''
24309 if test -d "$1"; then
24310 test -d "$1/.";
24311 else
24312 case $1 in
24313 -*)set "./$1";;
24314 esac;
24315 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24316 ???[sx]*):;;*)false;;esac;fi
24317 '\'' sh
24320 as_executable_p=$as_test_x
24322 # Sed expression to map a string onto a valid CPP name.
24323 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24325 # Sed expression to map a string onto a valid variable name.
24326 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24329 exec 6>&1
24331 # Save the log message, to keep $[0] and so on meaningful, and to
24332 # report actual input values of CONFIG_FILES etc. instead of their
24333 # values after options handling.
24334 ac_log="
24335 This file was extended by emacs $as_me 23.0.50, which was
24336 generated by GNU Autoconf 2.61. Invocation command line was
24338 CONFIG_FILES = $CONFIG_FILES
24339 CONFIG_HEADERS = $CONFIG_HEADERS
24340 CONFIG_LINKS = $CONFIG_LINKS
24341 CONFIG_COMMANDS = $CONFIG_COMMANDS
24342 $ $0 $@
24344 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24347 _ACEOF
24349 cat >>$CONFIG_STATUS <<_ACEOF
24350 # Files that config.status was made for.
24351 config_files="$ac_config_files"
24352 config_headers="$ac_config_headers"
24353 config_commands="$ac_config_commands"
24355 _ACEOF
24357 cat >>$CONFIG_STATUS <<\_ACEOF
24358 ac_cs_usage="\
24359 \`$as_me' instantiates files from templates according to the
24360 current configuration.
24362 Usage: $0 [OPTIONS] [FILE]...
24364 -h, --help print this help, then exit
24365 -V, --version print version number and configuration settings, then exit
24366 -q, --quiet do not print progress messages
24367 -d, --debug don't remove temporary files
24368 --recheck update $as_me by reconfiguring in the same conditions
24369 --file=FILE[:TEMPLATE]
24370 instantiate the configuration file FILE
24371 --header=FILE[:TEMPLATE]
24372 instantiate the configuration header FILE
24374 Configuration files:
24375 $config_files
24377 Configuration headers:
24378 $config_headers
24380 Configuration commands:
24381 $config_commands
24383 Report bugs to <bug-autoconf@gnu.org>."
24385 _ACEOF
24386 cat >>$CONFIG_STATUS <<_ACEOF
24387 ac_cs_version="\\
24388 emacs config.status 23.0.50
24389 configured by $0, generated by GNU Autoconf 2.61,
24390 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24392 Copyright (C) 2006 Free Software Foundation, Inc.
24393 This config.status script is free software; the Free Software Foundation
24394 gives unlimited permission to copy, distribute and modify it."
24396 ac_pwd='$ac_pwd'
24397 srcdir='$srcdir'
24398 INSTALL='$INSTALL'
24399 _ACEOF
24401 cat >>$CONFIG_STATUS <<\_ACEOF
24402 # If no file are specified by the user, then we need to provide default
24403 # value. By we need to know if files were specified by the user.
24404 ac_need_defaults=:
24405 while test $# != 0
24407 case $1 in
24408 --*=*)
24409 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24410 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24411 ac_shift=:
24414 ac_option=$1
24415 ac_optarg=$2
24416 ac_shift=shift
24418 esac
24420 case $ac_option in
24421 # Handling of the options.
24422 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24423 ac_cs_recheck=: ;;
24424 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24425 echo "$ac_cs_version"; exit ;;
24426 --debug | --debu | --deb | --de | --d | -d )
24427 debug=: ;;
24428 --file | --fil | --fi | --f )
24429 $ac_shift
24430 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24431 ac_need_defaults=false;;
24432 --header | --heade | --head | --hea )
24433 $ac_shift
24434 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24435 ac_need_defaults=false;;
24436 --he | --h)
24437 # Conflict between --help and --header
24438 { echo "$as_me: error: ambiguous option: $1
24439 Try \`$0 --help' for more information." >&2
24440 { (exit 1); exit 1; }; };;
24441 --help | --hel | -h )
24442 echo "$ac_cs_usage"; exit ;;
24443 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24444 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24445 ac_cs_silent=: ;;
24447 # This is an error.
24448 -*) { echo "$as_me: error: unrecognized option: $1
24449 Try \`$0 --help' for more information." >&2
24450 { (exit 1); exit 1; }; } ;;
24452 *) ac_config_targets="$ac_config_targets $1"
24453 ac_need_defaults=false ;;
24455 esac
24456 shift
24457 done
24459 ac_configure_extra_args=
24461 if $ac_cs_silent; then
24462 exec 6>/dev/null
24463 ac_configure_extra_args="$ac_configure_extra_args --silent"
24466 _ACEOF
24467 cat >>$CONFIG_STATUS <<_ACEOF
24468 if \$ac_cs_recheck; then
24469 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24470 CONFIG_SHELL=$SHELL
24471 export CONFIG_SHELL
24472 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24475 _ACEOF
24476 cat >>$CONFIG_STATUS <<\_ACEOF
24477 exec 5>>config.log
24479 echo
24480 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24481 ## Running $as_me. ##
24482 _ASBOX
24483 echo "$ac_log"
24484 } >&5
24486 _ACEOF
24487 cat >>$CONFIG_STATUS <<_ACEOF
24489 # INIT-COMMANDS
24491 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24493 _ACEOF
24495 cat >>$CONFIG_STATUS <<\_ACEOF
24497 # Handling of arguments.
24498 for ac_config_target in $ac_config_targets
24500 case $ac_config_target in
24501 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24502 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24503 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24504 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24505 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
24506 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
24507 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
24508 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
24509 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24510 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24511 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24512 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24513 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24515 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24516 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24517 { (exit 1); exit 1; }; };;
24518 esac
24519 done
24522 # If the user did not use the arguments to specify the items to instantiate,
24523 # then the envvar interface is used. Set only those that are not.
24524 # We use the long form for the default assignment because of an extremely
24525 # bizarre bug on SunOS 4.1.3.
24526 if $ac_need_defaults; then
24527 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24528 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24529 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24532 # Have a temporary directory for convenience. Make it in the build tree
24533 # simply because there is no reason against having it here, and in addition,
24534 # creating and moving files from /tmp can sometimes cause problems.
24535 # Hook for its removal unless debugging.
24536 # Note that there is a small window in which the directory will not be cleaned:
24537 # after its creation but before its name has been assigned to `$tmp'.
24538 $debug ||
24540 tmp=
24541 trap 'exit_status=$?
24542 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24544 trap '{ (exit 1); exit 1; }' 1 2 13 15
24546 # Create a (secure) tmp directory for tmp files.
24549 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24550 test -n "$tmp" && test -d "$tmp"
24551 } ||
24553 tmp=./conf$$-$RANDOM
24554 (umask 077 && mkdir "$tmp")
24555 } ||
24557 echo "$me: cannot create a temporary directory in ." >&2
24558 { (exit 1); exit 1; }
24562 # Set up the sed scripts for CONFIG_FILES section.
24565 # No need to generate the scripts if there are no CONFIG_FILES.
24566 # This happens for instance when ./config.status config.h
24567 if test -n "$CONFIG_FILES"; then
24569 _ACEOF
24573 ac_delim='%!_!# '
24574 for ac_last_try in false false false false false :; do
24575 cat >conf$$subs.sed <<_ACEOF
24576 SHELL!$SHELL$ac_delim
24577 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24578 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24579 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24580 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24581 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24582 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24583 exec_prefix!$exec_prefix$ac_delim
24584 prefix!$prefix$ac_delim
24585 program_transform_name!$program_transform_name$ac_delim
24586 bindir!$bindir$ac_delim
24587 sbindir!$sbindir$ac_delim
24588 libexecdir!$libexecdir$ac_delim
24589 datarootdir!$datarootdir$ac_delim
24590 datadir!$datadir$ac_delim
24591 sysconfdir!$sysconfdir$ac_delim
24592 sharedstatedir!$sharedstatedir$ac_delim
24593 localstatedir!$localstatedir$ac_delim
24594 includedir!$includedir$ac_delim
24595 oldincludedir!$oldincludedir$ac_delim
24596 docdir!$docdir$ac_delim
24597 infodir!$infodir$ac_delim
24598 htmldir!$htmldir$ac_delim
24599 dvidir!$dvidir$ac_delim
24600 pdfdir!$pdfdir$ac_delim
24601 psdir!$psdir$ac_delim
24602 libdir!$libdir$ac_delim
24603 localedir!$localedir$ac_delim
24604 mandir!$mandir$ac_delim
24605 DEFS!$DEFS$ac_delim
24606 ECHO_C!$ECHO_C$ac_delim
24607 ECHO_N!$ECHO_N$ac_delim
24608 ECHO_T!$ECHO_T$ac_delim
24609 LIBS!$LIBS$ac_delim
24610 build_alias!$build_alias$ac_delim
24611 host_alias!$host_alias$ac_delim
24612 target_alias!$target_alias$ac_delim
24613 MAINT!$MAINT$ac_delim
24614 build!$build$ac_delim
24615 build_cpu!$build_cpu$ac_delim
24616 build_vendor!$build_vendor$ac_delim
24617 build_os!$build_os$ac_delim
24618 host!$host$ac_delim
24619 host_cpu!$host_cpu$ac_delim
24620 host_vendor!$host_vendor$ac_delim
24621 host_os!$host_os$ac_delim
24622 CC!$CC$ac_delim
24623 CFLAGS!$CFLAGS$ac_delim
24624 LDFLAGS!$LDFLAGS$ac_delim
24625 CPPFLAGS!$CPPFLAGS$ac_delim
24626 ac_ct_CC!$ac_ct_CC$ac_delim
24627 EXEEXT!$EXEEXT$ac_delim
24628 OBJEXT!$OBJEXT$ac_delim
24629 CPP!$CPP$ac_delim
24630 GREP!$GREP$ac_delim
24631 EGREP!$EGREP$ac_delim
24632 LN_S!$LN_S$ac_delim
24633 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24634 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24635 INSTALL_DATA!$INSTALL_DATA$ac_delim
24636 RANLIB!$RANLIB$ac_delim
24637 INSTALL_INFO!$INSTALL_INFO$ac_delim
24638 GZIP_PROG!$GZIP_PROG$ac_delim
24639 MAKEINFO!$MAKEINFO$ac_delim
24640 LIBSOUND!$LIBSOUND$ac_delim
24641 PKG_CONFIG!$PKG_CONFIG$ac_delim
24642 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24643 ALSA_LIBS!$ALSA_LIBS$ac_delim
24644 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24645 SET_MAKE!$SET_MAKE$ac_delim
24646 XMKMF!$XMKMF$ac_delim
24647 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24648 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
24649 RSVG_LIBS!$RSVG_LIBS$ac_delim
24650 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24651 GTK_LIBS!$GTK_LIBS$ac_delim
24652 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
24653 DBUS_LIBS!$DBUS_LIBS$ac_delim
24654 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24655 XFT_LIBS!$XFT_LIBS$ac_delim
24656 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
24657 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
24658 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
24659 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
24660 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
24661 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
24662 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
24663 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
24664 ALLOCA!$ALLOCA$ac_delim
24665 liblockfile!$liblockfile$ac_delim
24666 LIBOBJS!$LIBOBJS$ac_delim
24667 NEED_SETGID!$NEED_SETGID$ac_delim
24668 KMEM_GROUP!$KMEM_GROUP$ac_delim
24669 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24670 GETOPT_H!$GETOPT_H$ac_delim
24671 GETOPTOBJS!$GETOPTOBJS$ac_delim
24672 version!$version$ac_delim
24673 _ACEOF
24675 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24676 break
24677 elif $ac_last_try; then
24678 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24679 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24680 { (exit 1); exit 1; }; }
24681 else
24682 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24684 done
24686 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24687 if test -n "$ac_eof"; then
24688 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24689 ac_eof=`expr $ac_eof + 1`
24692 cat >>$CONFIG_STATUS <<_ACEOF
24693 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24694 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24695 _ACEOF
24696 sed '
24697 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24698 s/^/s,@/; s/!/@,|#_!!_#|/
24701 s/'"$ac_delim"'$/,g/; t
24702 s/$/\\/; p
24703 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24704 ' >>$CONFIG_STATUS <conf$$subs.sed
24705 rm -f conf$$subs.sed
24706 cat >>$CONFIG_STATUS <<_ACEOF
24707 CEOF$ac_eof
24708 _ACEOF
24711 ac_delim='%!_!# '
24712 for ac_last_try in false false false false false :; do
24713 cat >conf$$subs.sed <<_ACEOF
24714 configuration!$configuration$ac_delim
24715 canonical!$canonical$ac_delim
24716 srcdir!$srcdir$ac_delim
24717 lispdir!$lispdir$ac_delim
24718 locallisppath!$locallisppath$ac_delim
24719 lisppath!$lisppath$ac_delim
24720 x_default_search_path!$x_default_search_path$ac_delim
24721 etcdir!$etcdir$ac_delim
24722 archlibdir!$archlibdir$ac_delim
24723 bitmapdir!$bitmapdir$ac_delim
24724 gamedir!$gamedir$ac_delim
24725 gameuser!$gameuser$ac_delim
24726 c_switch_system!$c_switch_system$ac_delim
24727 c_switch_machine!$c_switch_machine$ac_delim
24728 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24729 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24730 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24731 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24732 machfile!$machfile$ac_delim
24733 opsysfile!$opsysfile$ac_delim
24734 carbon_appdir!$carbon_appdir$ac_delim
24735 LTLIBOBJS!$LTLIBOBJS$ac_delim
24736 _ACEOF
24738 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
24739 break
24740 elif $ac_last_try; then
24741 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24742 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24743 { (exit 1); exit 1; }; }
24744 else
24745 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24747 done
24749 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24750 if test -n "$ac_eof"; then
24751 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24752 ac_eof=`expr $ac_eof + 1`
24755 cat >>$CONFIG_STATUS <<_ACEOF
24756 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24757 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24758 _ACEOF
24759 sed '
24760 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24761 s/^/s,@/; s/!/@,|#_!!_#|/
24764 s/'"$ac_delim"'$/,g/; t
24765 s/$/\\/; p
24766 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24767 ' >>$CONFIG_STATUS <conf$$subs.sed
24768 rm -f conf$$subs.sed
24769 cat >>$CONFIG_STATUS <<_ACEOF
24770 :end
24771 s/|#_!!_#|//g
24772 CEOF$ac_eof
24773 _ACEOF
24776 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24777 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24778 # trailing colons and then remove the whole line if VPATH becomes empty
24779 # (actually we leave an empty line to preserve line numbers).
24780 if test "x$srcdir" = x.; then
24781 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24782 s/:*\$(srcdir):*/:/
24783 s/:*\${srcdir}:*/:/
24784 s/:*@srcdir@:*/:/
24785 s/^\([^=]*=[ ]*\):*/\1/
24786 s/:*$//
24787 s/^[^=]*=[ ]*$//
24791 cat >>$CONFIG_STATUS <<\_ACEOF
24792 fi # test -n "$CONFIG_FILES"
24795 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24797 case $ac_tag in
24798 :[FHLC]) ac_mode=$ac_tag; continue;;
24799 esac
24800 case $ac_mode$ac_tag in
24801 :[FHL]*:*);;
24802 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24803 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24804 { (exit 1); exit 1; }; };;
24805 :[FH]-) ac_tag=-:-;;
24806 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24807 esac
24808 ac_save_IFS=$IFS
24809 IFS=:
24810 set x $ac_tag
24811 IFS=$ac_save_IFS
24812 shift
24813 ac_file=$1
24814 shift
24816 case $ac_mode in
24817 :L) ac_source=$1;;
24818 :[FH])
24819 ac_file_inputs=
24820 for ac_f
24822 case $ac_f in
24823 -) ac_f="$tmp/stdin";;
24824 *) # Look for the file first in the build tree, then in the source tree
24825 # (if the path is not absolute). The absolute path cannot be DOS-style,
24826 # because $ac_f cannot contain `:'.
24827 test -f "$ac_f" ||
24828 case $ac_f in
24829 [\\/$]*) false;;
24830 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24831 esac ||
24832 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24833 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24834 { (exit 1); exit 1; }; };;
24835 esac
24836 ac_file_inputs="$ac_file_inputs $ac_f"
24837 done
24839 # Let's still pretend it is `configure' which instantiates (i.e., don't
24840 # use $as_me), people would be surprised to read:
24841 # /* config.h. Generated by config.status. */
24842 configure_input="Generated from "`IFS=:
24843 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24844 if test x"$ac_file" != x-; then
24845 configure_input="$ac_file. $configure_input"
24846 { echo "$as_me:$LINENO: creating $ac_file" >&5
24847 echo "$as_me: creating $ac_file" >&6;}
24850 case $ac_tag in
24851 *:-:* | *:-) cat >"$tmp/stdin";;
24852 esac
24854 esac
24856 ac_dir=`$as_dirname -- "$ac_file" ||
24857 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24858 X"$ac_file" : 'X\(//\)[^/]' \| \
24859 X"$ac_file" : 'X\(//\)$' \| \
24860 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24861 echo X"$ac_file" |
24862 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24863 s//\1/
24866 /^X\(\/\/\)[^/].*/{
24867 s//\1/
24870 /^X\(\/\/\)$/{
24871 s//\1/
24874 /^X\(\/\).*/{
24875 s//\1/
24878 s/.*/./; q'`
24879 { as_dir="$ac_dir"
24880 case $as_dir in #(
24881 -*) as_dir=./$as_dir;;
24882 esac
24883 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24884 as_dirs=
24885 while :; do
24886 case $as_dir in #(
24887 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24888 *) as_qdir=$as_dir;;
24889 esac
24890 as_dirs="'$as_qdir' $as_dirs"
24891 as_dir=`$as_dirname -- "$as_dir" ||
24892 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24893 X"$as_dir" : 'X\(//\)[^/]' \| \
24894 X"$as_dir" : 'X\(//\)$' \| \
24895 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24896 echo X"$as_dir" |
24897 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24898 s//\1/
24901 /^X\(\/\/\)[^/].*/{
24902 s//\1/
24905 /^X\(\/\/\)$/{
24906 s//\1/
24909 /^X\(\/\).*/{
24910 s//\1/
24913 s/.*/./; q'`
24914 test -d "$as_dir" && break
24915 done
24916 test -z "$as_dirs" || eval "mkdir $as_dirs"
24917 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24918 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24919 { (exit 1); exit 1; }; }; }
24920 ac_builddir=.
24922 case "$ac_dir" in
24923 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24925 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24926 # A ".." for each directory in $ac_dir_suffix.
24927 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24928 case $ac_top_builddir_sub in
24929 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24930 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24931 esac ;;
24932 esac
24933 ac_abs_top_builddir=$ac_pwd
24934 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24935 # for backward compatibility:
24936 ac_top_builddir=$ac_top_build_prefix
24938 case $srcdir in
24939 .) # We are building in place.
24940 ac_srcdir=.
24941 ac_top_srcdir=$ac_top_builddir_sub
24942 ac_abs_top_srcdir=$ac_pwd ;;
24943 [\\/]* | ?:[\\/]* ) # Absolute name.
24944 ac_srcdir=$srcdir$ac_dir_suffix;
24945 ac_top_srcdir=$srcdir
24946 ac_abs_top_srcdir=$srcdir ;;
24947 *) # Relative name.
24948 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24949 ac_top_srcdir=$ac_top_build_prefix$srcdir
24950 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24951 esac
24952 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24955 case $ac_mode in
24958 # CONFIG_FILE
24961 case $INSTALL in
24962 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24963 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24964 esac
24965 _ACEOF
24967 cat >>$CONFIG_STATUS <<\_ACEOF
24968 # If the template does not know about datarootdir, expand it.
24969 # FIXME: This hack should be removed a few years after 2.60.
24970 ac_datarootdir_hack=; ac_datarootdir_seen=
24972 case `sed -n '/datarootdir/ {
24976 /@datadir@/p
24977 /@docdir@/p
24978 /@infodir@/p
24979 /@localedir@/p
24980 /@mandir@/p
24981 ' $ac_file_inputs` in
24982 *datarootdir*) ac_datarootdir_seen=yes;;
24983 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24984 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24985 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24986 _ACEOF
24987 cat >>$CONFIG_STATUS <<_ACEOF
24988 ac_datarootdir_hack='
24989 s&@datadir@&$datadir&g
24990 s&@docdir@&$docdir&g
24991 s&@infodir@&$infodir&g
24992 s&@localedir@&$localedir&g
24993 s&@mandir@&$mandir&g
24994 s&\\\${datarootdir}&$datarootdir&g' ;;
24995 esac
24996 _ACEOF
24998 # Neutralize VPATH when `$srcdir' = `.'.
24999 # Shell code in configure.ac might set extrasub.
25000 # FIXME: do we really want to maintain this feature?
25001 cat >>$CONFIG_STATUS <<_ACEOF
25002 sed "$ac_vpsub
25003 $extrasub
25004 _ACEOF
25005 cat >>$CONFIG_STATUS <<\_ACEOF
25007 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25008 s&@configure_input@&$configure_input&;t t
25009 s&@top_builddir@&$ac_top_builddir_sub&;t t
25010 s&@srcdir@&$ac_srcdir&;t t
25011 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25012 s&@top_srcdir@&$ac_top_srcdir&;t t
25013 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25014 s&@builddir@&$ac_builddir&;t t
25015 s&@abs_builddir@&$ac_abs_builddir&;t t
25016 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25017 s&@INSTALL@&$ac_INSTALL&;t t
25018 $ac_datarootdir_hack
25019 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25021 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25022 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25023 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25024 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25025 which seems to be undefined. Please make sure it is defined." >&5
25026 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25027 which seems to be undefined. Please make sure it is defined." >&2;}
25029 rm -f "$tmp/stdin"
25030 case $ac_file in
25031 -) cat "$tmp/out"; rm -f "$tmp/out";;
25032 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25033 esac
25037 # CONFIG_HEADER
25039 _ACEOF
25041 # Transform confdefs.h into a sed script `conftest.defines', that
25042 # substitutes the proper values into config.h.in to produce config.h.
25043 rm -f conftest.defines conftest.tail
25044 # First, append a space to every undef/define line, to ease matching.
25045 echo 's/$/ /' >conftest.defines
25046 # Then, protect against being on the right side of a sed subst, or in
25047 # an unquoted here document, in config.status. If some macros were
25048 # called several times there might be several #defines for the same
25049 # symbol, which is useless. But do not sort them, since the last
25050 # AC_DEFINE must be honored.
25051 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25052 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25053 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25054 # PARAMS is the parameter list in the macro definition--in most cases, it's
25055 # just an empty string.
25056 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25057 ac_dB='\\)[ (].*,\\1define\\2'
25058 ac_dC=' '
25059 ac_dD=' ,'
25061 uniq confdefs.h |
25062 sed -n '
25063 t rset
25064 :rset
25065 s/^[ ]*#[ ]*define[ ][ ]*//
25066 t ok
25069 s/[\\&,]/\\&/g
25070 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25071 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25072 ' >>conftest.defines
25074 # Remove the space that was appended to ease matching.
25075 # Then replace #undef with comments. This is necessary, for
25076 # example, in the case of _POSIX_SOURCE, which is predefined and required
25077 # on some systems where configure will not decide to define it.
25078 # (The regexp can be short, since the line contains either #define or #undef.)
25079 echo 's/ $//
25080 s,^[ #]*u.*,/* & */,' >>conftest.defines
25082 # Break up conftest.defines:
25083 ac_max_sed_lines=50
25085 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25086 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25087 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25088 # et cetera.
25089 ac_in='$ac_file_inputs'
25090 ac_out='"$tmp/out1"'
25091 ac_nxt='"$tmp/out2"'
25093 while :
25095 # Write a here document:
25096 cat >>$CONFIG_STATUS <<_ACEOF
25097 # First, check the format of the line:
25098 cat >"\$tmp/defines.sed" <<\\CEOF
25099 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25100 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25102 :def
25103 _ACEOF
25104 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25105 echo 'CEOF
25106 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25107 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25108 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25109 grep . conftest.tail >/dev/null || break
25110 rm -f conftest.defines
25111 mv conftest.tail conftest.defines
25112 done
25113 rm -f conftest.defines conftest.tail
25115 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25116 cat >>$CONFIG_STATUS <<\_ACEOF
25117 if test x"$ac_file" != x-; then
25118 echo "/* $configure_input */" >"$tmp/config.h"
25119 cat "$ac_result" >>"$tmp/config.h"
25120 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25121 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25122 echo "$as_me: $ac_file is unchanged" >&6;}
25123 else
25124 rm -f $ac_file
25125 mv "$tmp/config.h" $ac_file
25127 else
25128 echo "/* $configure_input */"
25129 cat "$ac_result"
25131 rm -f "$tmp/out12"
25134 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25135 echo "$as_me: executing $ac_file commands" >&6;}
25137 esac
25140 case $ac_file$ac_mode in
25141 "default":C)
25143 ### Make the necessary directories, if they don't exist.
25144 for dir in etc lisp ; do
25145 test -d ${dir} || mkdir ${dir}
25146 done
25148 # Build src/Makefile from ${srcdir}/src/Makefile.c
25149 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25150 # This must be done after src/config.h is built, since we rely on that file.
25152 # Now get this: Some word that is part of the ${srcdir} directory name
25153 # or the ${configuration} value might, just might, happen to be an
25154 # identifier like `sun4' or `i386' or something, and be predefined by
25155 # the C preprocessor to some helpful value like 1, or maybe the empty
25156 # string. Needless to say consequent macro substitutions are less
25157 # than conducive to the makefile finding the correct directory.
25158 undefs="`echo $top_srcdir $configuration $canonical |
25159 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25160 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
25163 echo creating src/epaths.h
25164 ${MAKE-make} epaths-force
25166 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25167 # `..' to `. .' unless invoked with -traditional
25169 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
25170 CPPFLAGS="$CPPFLAGS -traditional"
25173 echo creating lib-src/Makefile
25174 ( cd lib-src
25175 rm -f junk.c junk1.c junk2.c
25176 sed -e '/start of cpp stuff/q' \
25177 < Makefile.c > junk1.c
25178 sed -e '1,/start of cpp stuff/d'\
25179 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25180 < Makefile.c > junk.c
25181 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25182 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25183 cat junk1.c junk2.c > Makefile.new
25184 rm -f junk.c junk1.c junk2.c
25185 chmod 444 Makefile.new
25186 mv -f Makefile.new Makefile
25189 echo creating src/Makefile
25190 ( cd src
25191 rm -f junk.c junk1.c junk2.c
25192 sed -e '/start of cpp stuff/q' \
25193 < Makefile.c > junk1.c
25194 sed -e '1,/start of cpp stuff/d'\
25195 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25196 < Makefile.c > junk.c
25197 if test -f ${srcdir}/admin/unidata/UnicodeData.txt; then
25198 echo creating ${srcdir}/admin/unidata/Makefile
25199 cp ${srcdir}/admin/unidata/Makefile.in ${srcdir}/admin/unidata/Makefile
25200 CPPFLAGS="$CPPFLAGS -DHAVE_UNIDATA"
25202 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25203 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25204 cat junk1.c junk2.c > Makefile.new
25205 rm -f junk.c junk1.c junk2.c
25206 chmod 444 Makefile.new
25207 mv -f Makefile.new Makefile
25210 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25211 echo creating src/.gdbinit
25212 echo source $srcdir/src/.gdbinit > src/.gdbinit
25215 # This is how we know whether to re-run configure in certain cases.
25216 touch src/config.stamp
25220 esac
25221 done # for ac_tag
25224 { (exit 0); exit 0; }
25225 _ACEOF
25226 chmod +x $CONFIG_STATUS
25227 ac_clean_files=$ac_clean_files_save
25230 # configure is writing to config.log, and then calls config.status.
25231 # config.status does its own redirection, appending to config.log.
25232 # Unfortunately, on DOS this fails, as config.log is still kept open
25233 # by configure, so config.status won't be able to write to it; its
25234 # output is simply discarded. So we exec the FD to /dev/null,
25235 # effectively closing config.log, so it can be properly (re)opened and
25236 # appended to by config.status. When coming back to configure, we
25237 # need to make the FD available again.
25238 if test "$no_create" != yes; then
25239 ac_cs_success=:
25240 ac_config_status_args=
25241 test "$silent" = yes &&
25242 ac_config_status_args="$ac_config_status_args --quiet"
25243 exec 5>/dev/null
25244 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25245 exec 5>>config.log
25246 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25247 # would make configure fail if this is the last instruction.
25248 $ac_cs_success || { (exit 1); exit 1; }