Paren typo.
[emacs.git] / configure
blob457cc2c911c7c490ebb7db6514a655225e5eb8d6
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for emacs 23.0.60.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560 # Initializations.
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
573 PACKAGE_NAME='emacs'
574 PACKAGE_TARNAME='emacs'
575 PACKAGE_VERSION='23.0.60'
576 PACKAGE_STRING='emacs 23.0.60'
577 PACKAGE_BUGREPORT=''
579 ac_unique_file="src/lisp.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
616 ac_config_libobj_dir=src
617 ac_header_list=
618 ac_func_list=
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 MAINT
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
673 GREP
674 EGREP
675 LN_S
676 INSTALL_PROGRAM
677 INSTALL_SCRIPT
678 INSTALL_DATA
679 RANLIB
680 INSTALL_INFO
681 GZIP_PROG
682 MAKEINFO
683 LIBSOUND
684 PKG_CONFIG
685 ALSA_CFLAGS
686 ALSA_LIBS
687 CFLAGS_SOUND
688 SET_MAKE
689 XMKMF
690 HAVE_XSERVER
691 RSVG_CFLAGS
692 RSVG_LIBS
693 GTK_CFLAGS
694 GTK_LIBS
695 DBUS_CFLAGS
696 DBUS_LIBS
697 XFT_CFLAGS
698 XFT_LIBS
699 FREETYPE_CFLAGS
700 FREETYPE_LIBS
701 FONTCONFIG_CFLAGS
702 FONTCONFIG_LIBS
703 LIBOTF_CFLAGS
704 LIBOTF_LIBS
705 M17N_FLT_CFLAGS
706 M17N_FLT_LIBS
707 ALLOCA
708 liblockfile
709 LIBOBJS
710 NEED_SETGID
711 KMEM_GROUP
712 GETLOADAVG_LIBS
713 GETOPT_H
714 GETOPTOBJS
715 version
716 configuration
717 canonical
718 srcdir
719 lispdir
720 locallisppath
721 lisppath
722 x_default_search_path
723 etcdir
724 archlibdir
725 bitmapdir
726 gamedir
727 gameuser
728 c_switch_system
729 c_switch_machine
730 LD_SWITCH_X_SITE
731 LD_SWITCH_X_SITE_AUX
732 C_SWITCH_X_SITE
733 X_TOOLKIT_TYPE
734 machfile
735 opsysfile
736 carbon_appdir
737 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.60 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.60:";;
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-asserts compile code with asserts enabled
1336 --enable-maintainer-mode
1337 enable make rules and dependencies not useful (and
1338 sometimes confusing) to the casual installer
1339 --enable-locallisppath=PATH
1340 directories Emacs should search for lisp files
1341 specific to this site
1342 --disable-largefile omit support for large files
1344 Optional Packages:
1345 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1346 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1347 --without-pop don't support POP mail retrieval with movemail
1348 --with-kerberos support Kerberos-authenticated POP
1349 --with-kerberos5 support Kerberos version 5 authenticated POP
1350 --with-hesiod support Hesiod to get the POP server host
1351 --without-sound don't compile with sound support
1352 --without-sync-input Process async input synchronously
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
1373 --without-makeinfo don't require makeinfo for building manuals
1375 --with-pkg-config-prog=PATH
1376 Path to pkg-config for finding GTK and librsvg
1377 --with-x use the X Window System
1379 Some influential environment variables:
1380 CC C compiler command
1381 CFLAGS C compiler flags
1382 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1383 nonstandard directory <lib dir>
1384 LIBS libraries to pass to the linker, e.g. -l<library>
1385 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1386 you have headers in a nonstandard directory <include dir>
1387 CPP C preprocessor
1388 XMKMF Path to xmkmf, Makefile generator for X Window System
1390 Use these variables to override the choices made by `configure' or to help
1391 it to find libraries and programs with nonstandard names/locations.
1393 _ACEOF
1394 ac_status=$?
1397 if test "$ac_init_help" = "recursive"; then
1398 # If there are subdirs, report their specific --help.
1399 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1400 test -d "$ac_dir" || continue
1401 ac_builddir=.
1403 case "$ac_dir" in
1404 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1406 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1407 # A ".." for each directory in $ac_dir_suffix.
1408 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1409 case $ac_top_builddir_sub in
1410 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1411 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1412 esac ;;
1413 esac
1414 ac_abs_top_builddir=$ac_pwd
1415 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1416 # for backward compatibility:
1417 ac_top_builddir=$ac_top_build_prefix
1419 case $srcdir in
1420 .) # We are building in place.
1421 ac_srcdir=.
1422 ac_top_srcdir=$ac_top_builddir_sub
1423 ac_abs_top_srcdir=$ac_pwd ;;
1424 [\\/]* | ?:[\\/]* ) # Absolute name.
1425 ac_srcdir=$srcdir$ac_dir_suffix;
1426 ac_top_srcdir=$srcdir
1427 ac_abs_top_srcdir=$srcdir ;;
1428 *) # Relative name.
1429 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1430 ac_top_srcdir=$ac_top_build_prefix$srcdir
1431 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1432 esac
1433 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1435 cd "$ac_dir" || { ac_status=$?; continue; }
1436 # Check for guested configure.
1437 if test -f "$ac_srcdir/configure.gnu"; then
1438 echo &&
1439 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1440 elif test -f "$ac_srcdir/configure"; then
1441 echo &&
1442 $SHELL "$ac_srcdir/configure" --help=recursive
1443 else
1444 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1445 fi || ac_status=$?
1446 cd "$ac_pwd" || { ac_status=$?; break; }
1447 done
1450 test -n "$ac_init_help" && exit $ac_status
1451 if $ac_init_version; then
1452 cat <<\_ACEOF
1453 emacs configure 23.0.60
1454 generated by GNU Autoconf 2.61
1456 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1457 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1458 This configure script is free software; the Free Software Foundation
1459 gives unlimited permission to copy, distribute and modify it.
1460 _ACEOF
1461 exit
1463 cat >config.log <<_ACEOF
1464 This file contains any messages produced by compilers while
1465 running configure, to aid debugging if configure makes a mistake.
1467 It was created by emacs $as_me 23.0.60, which was
1468 generated by GNU Autoconf 2.61. Invocation command line was
1470 $ $0 $@
1472 _ACEOF
1473 exec 5>>config.log
1475 cat <<_ASUNAME
1476 ## --------- ##
1477 ## Platform. ##
1478 ## --------- ##
1480 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1481 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1482 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1483 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1484 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1486 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1487 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1489 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1490 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1491 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1492 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1493 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1494 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1495 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1497 _ASUNAME
1499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1500 for as_dir in $PATH
1502 IFS=$as_save_IFS
1503 test -z "$as_dir" && as_dir=.
1504 echo "PATH: $as_dir"
1505 done
1506 IFS=$as_save_IFS
1508 } >&5
1510 cat >&5 <<_ACEOF
1513 ## ----------- ##
1514 ## Core tests. ##
1515 ## ----------- ##
1517 _ACEOF
1520 # Keep a trace of the command line.
1521 # Strip out --no-create and --no-recursion so they do not pile up.
1522 # Strip out --silent because we don't want to record it for future runs.
1523 # Also quote any args containing shell meta-characters.
1524 # Make two passes to allow for proper duplicate-argument suppression.
1525 ac_configure_args=
1526 ac_configure_args0=
1527 ac_configure_args1=
1528 ac_must_keep_next=false
1529 for ac_pass in 1 2
1531 for ac_arg
1533 case $ac_arg in
1534 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1535 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1536 | -silent | --silent | --silen | --sile | --sil)
1537 continue ;;
1538 *\'*)
1539 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1540 esac
1541 case $ac_pass in
1542 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1544 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1545 if test $ac_must_keep_next = true; then
1546 ac_must_keep_next=false # Got value, back to normal.
1547 else
1548 case $ac_arg in
1549 *=* | --config-cache | -C | -disable-* | --disable-* \
1550 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1551 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1552 | -with-* | --with-* | -without-* | --without-* | --x)
1553 case "$ac_configure_args0 " in
1554 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1555 esac
1557 -* ) ac_must_keep_next=true ;;
1558 esac
1560 ac_configure_args="$ac_configure_args '$ac_arg'"
1562 esac
1563 done
1564 done
1565 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1566 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1568 # When interrupted or exit'd, cleanup temporary files, and complete
1569 # config.log. We remove comments because anyway the quotes in there
1570 # would cause problems or look ugly.
1571 # WARNING: Use '\'' to represent an apostrophe within the trap.
1572 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1573 trap 'exit_status=$?
1574 # Save into config.log some information that might help in debugging.
1576 echo
1578 cat <<\_ASBOX
1579 ## ---------------- ##
1580 ## Cache variables. ##
1581 ## ---------------- ##
1582 _ASBOX
1583 echo
1584 # The following way of writing the cache mishandles newlines in values,
1586 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1587 eval ac_val=\$$ac_var
1588 case $ac_val in #(
1589 *${as_nl}*)
1590 case $ac_var in #(
1591 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1592 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1593 esac
1594 case $ac_var in #(
1595 _ | IFS | as_nl) ;; #(
1596 *) $as_unset $ac_var ;;
1597 esac ;;
1598 esac
1599 done
1600 (set) 2>&1 |
1601 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1602 *${as_nl}ac_space=\ *)
1603 sed -n \
1604 "s/'\''/'\''\\\\'\'''\''/g;
1605 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1606 ;; #(
1608 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1610 esac |
1611 sort
1613 echo
1615 cat <<\_ASBOX
1616 ## ----------------- ##
1617 ## Output variables. ##
1618 ## ----------------- ##
1619 _ASBOX
1620 echo
1621 for ac_var in $ac_subst_vars
1623 eval ac_val=\$$ac_var
1624 case $ac_val in
1625 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1626 esac
1627 echo "$ac_var='\''$ac_val'\''"
1628 done | sort
1629 echo
1631 if test -n "$ac_subst_files"; then
1632 cat <<\_ASBOX
1633 ## ------------------- ##
1634 ## File substitutions. ##
1635 ## ------------------- ##
1636 _ASBOX
1637 echo
1638 for ac_var in $ac_subst_files
1640 eval ac_val=\$$ac_var
1641 case $ac_val in
1642 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1643 esac
1644 echo "$ac_var='\''$ac_val'\''"
1645 done | sort
1646 echo
1649 if test -s confdefs.h; then
1650 cat <<\_ASBOX
1651 ## ----------- ##
1652 ## confdefs.h. ##
1653 ## ----------- ##
1654 _ASBOX
1655 echo
1656 cat confdefs.h
1657 echo
1659 test "$ac_signal" != 0 &&
1660 echo "$as_me: caught signal $ac_signal"
1661 echo "$as_me: exit $exit_status"
1662 } >&5
1663 rm -f core *.core core.conftest.* &&
1664 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1665 exit $exit_status
1667 for ac_signal in 1 2 13 15; do
1668 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1669 done
1670 ac_signal=0
1672 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1673 rm -f -r conftest* confdefs.h
1675 # Predefined preprocessor variables.
1677 cat >>confdefs.h <<_ACEOF
1678 #define PACKAGE_NAME "$PACKAGE_NAME"
1679 _ACEOF
1682 cat >>confdefs.h <<_ACEOF
1683 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1684 _ACEOF
1687 cat >>confdefs.h <<_ACEOF
1688 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1689 _ACEOF
1692 cat >>confdefs.h <<_ACEOF
1693 #define PACKAGE_STRING "$PACKAGE_STRING"
1694 _ACEOF
1697 cat >>confdefs.h <<_ACEOF
1698 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1699 _ACEOF
1702 # Let the site file select an alternate cache file if it wants to.
1703 # Prefer explicitly selected file to automatically selected ones.
1704 if test -n "$CONFIG_SITE"; then
1705 set x "$CONFIG_SITE"
1706 elif test "x$prefix" != xNONE; then
1707 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1708 else
1709 set x "$ac_default_prefix/share/config.site" \
1710 "$ac_default_prefix/etc/config.site"
1712 shift
1713 for ac_site_file
1715 if test -r "$ac_site_file"; then
1716 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1717 echo "$as_me: loading site script $ac_site_file" >&6;}
1718 sed 's/^/| /' "$ac_site_file" >&5
1719 . "$ac_site_file"
1721 done
1723 if test -r "$cache_file"; then
1724 # Some versions of bash will fail to source /dev/null (special
1725 # files actually), so we avoid doing that.
1726 if test -f "$cache_file"; then
1727 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1728 echo "$as_me: loading cache $cache_file" >&6;}
1729 case $cache_file in
1730 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1731 *) . "./$cache_file";;
1732 esac
1734 else
1735 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1736 echo "$as_me: creating cache $cache_file" >&6;}
1737 >$cache_file
1740 ac_header_list="$ac_header_list sys/time.h"
1741 ac_header_list="$ac_header_list unistd.h"
1742 ac_func_list="$ac_func_list alarm"
1743 # Check that the precious variables saved in the cache have kept the same
1744 # value.
1745 ac_cache_corrupted=false
1746 for ac_var in $ac_precious_vars; do
1747 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1748 eval ac_new_set=\$ac_env_${ac_var}_set
1749 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1750 eval ac_new_val=\$ac_env_${ac_var}_value
1751 case $ac_old_set,$ac_new_set in
1752 set,)
1753 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1754 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1755 ac_cache_corrupted=: ;;
1756 ,set)
1757 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1758 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1759 ac_cache_corrupted=: ;;
1760 ,);;
1762 if test "x$ac_old_val" != "x$ac_new_val"; then
1763 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1764 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1765 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1766 echo "$as_me: former value: $ac_old_val" >&2;}
1767 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1768 echo "$as_me: current value: $ac_new_val" >&2;}
1769 ac_cache_corrupted=:
1770 fi;;
1771 esac
1772 # Pass precious variables to config.status.
1773 if test "$ac_new_set" = set; then
1774 case $ac_new_val in
1775 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1776 *) ac_arg=$ac_var=$ac_new_val ;;
1777 esac
1778 case " $ac_configure_args " in
1779 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1780 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1781 esac
1783 done
1784 if $ac_cache_corrupted; then
1785 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1786 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1787 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1788 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1789 { (exit 1); exit 1; }; }
1816 ac_ext=c
1817 ac_cpp='$CPP $CPPFLAGS'
1818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1823 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1827 test "$program_prefix" != NONE &&
1828 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1829 # Use a double $ so make ignores it.
1830 test "$program_suffix" != NONE &&
1831 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1832 # Double any \ or $. echo might interpret backslashes.
1833 # By default was `s,x,x', remove it if useless.
1834 cat <<\_ACEOF >conftest.sed
1835 s/[\\$]/&&/g;s/;s,x,x,$//
1836 _ACEOF
1837 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1838 rm -f conftest.sed
1841 lispdir='${datadir}/emacs/${version}/lisp'
1842 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1843 '${datadir}/emacs/site-lisp'
1844 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1845 etcdir='${datadir}/emacs/${version}/etc'
1846 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1847 docdir='${datadir}/emacs/${version}/etc'
1848 gamedir='${localstatedir}/games/emacs'
1850 gameuser=games
1855 # Check whether --with-pop was given.
1856 if test "${with_pop+set}" = set; then
1857 withval=$with_pop;
1858 else
1859 with_pop=yes
1862 if test "$with_pop" = yes; then
1863 cat >>confdefs.h <<\_ACEOF
1864 #define MAIL_USE_POP 1
1865 _ACEOF
1871 # Check whether --with-kerberos was given.
1872 if test "${with_kerberos+set}" = set; then
1873 withval=$with_kerberos;
1874 else
1875 with_kerberos=no
1878 if test "$with_kerberos" = yes; then
1879 cat >>confdefs.h <<\_ACEOF
1880 #define KERBEROS 1
1881 _ACEOF
1887 # Check whether --with-kerberos5 was given.
1888 if test "${with_kerberos5+set}" = set; then
1889 withval=$with_kerberos5;
1890 else
1891 with_kerberos5=no
1894 if test "${with_kerberos5}" = yes; then
1895 if test "${with_kerberos}" != yes; then
1896 with_kerberos=yes
1897 cat >>confdefs.h <<\_ACEOF
1898 #define KERBEROS 1
1899 _ACEOF
1903 cat >>confdefs.h <<\_ACEOF
1904 #define KERBEROS5 1
1905 _ACEOF
1910 # Check whether --with-hesiod was given.
1911 if test "${with_hesiod+set}" = set; then
1912 withval=$with_hesiod;
1913 else
1914 with_hesiod=no
1917 if test "$with_hesiod" = yes; then
1919 cat >>confdefs.h <<\_ACEOF
1920 #define HESIOD 1
1921 _ACEOF
1926 # Check whether --with-sound was given.
1927 if test "${with_sound+set}" = set; then
1928 withval=$with_sound;
1929 else
1930 with_sound=yes
1935 # Check whether --with-sync-input was given.
1936 if test "${with_sync_input+set}" = set; then
1937 withval=$with_sync_input;
1938 else
1939 with_sync_input=yes
1942 if test "$with_sync_input" = yes; then
1944 cat >>confdefs.h <<\_ACEOF
1945 #define SYNC_INPUT 1
1946 _ACEOF
1951 # Check whether --with-x-toolkit was given.
1952 if test "${with_x_toolkit+set}" = set; then
1953 withval=$with_x_toolkit; case "${withval}" in
1954 y | ye | yes ) val=gtk ;;
1955 n | no ) val=no ;;
1956 l | lu | luc | luci | lucid ) val=lucid ;;
1957 a | at | ath | athe | athen | athena ) val=athena ;;
1958 m | mo | mot | moti | motif ) val=motif ;;
1959 g | gt | gtk ) val=gtk ;;
1961 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1962 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1963 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1964 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1965 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1966 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1967 { (exit 1); exit 1; }; }
1969 esac
1970 with_x_toolkit=$val
1976 # Check whether --with-xpm was given.
1977 if test "${with_xpm+set}" = set; then
1978 withval=$with_xpm;
1979 else
1980 with_xpm=yes
1984 # Check whether --with-jpeg was given.
1985 if test "${with_jpeg+set}" = set; then
1986 withval=$with_jpeg;
1987 else
1988 with_jpeg=yes
1992 # Check whether --with-tiff was given.
1993 if test "${with_tiff+set}" = set; then
1994 withval=$with_tiff;
1995 else
1996 with_tiff=yes
2000 # Check whether --with-gif was given.
2001 if test "${with_gif+set}" = set; then
2002 withval=$with_gif;
2003 else
2004 with_gif=yes
2008 # Check whether --with-png was given.
2009 if test "${with_png+set}" = set; then
2010 withval=$with_png;
2011 else
2012 with_png=yes
2016 # Check whether --with-rsvg was given.
2017 if test "${with_rsvg+set}" = set; then
2018 withval=$with_rsvg;
2019 else
2020 with_rsvg=yes
2025 # Check whether --with-freetype was given.
2026 if test "${with_freetype+set}" = set; then
2027 withval=$with_freetype;
2028 else
2029 with_freetype=yes
2033 # Check whether --with-xft was given.
2034 if test "${with_xft+set}" = set; then
2035 withval=$with_xft;
2036 else
2037 with_xft=yes
2041 # Check whether --with-libotf was given.
2042 if test "${with_libotf+set}" = set; then
2043 withval=$with_libotf;
2044 else
2045 with_libotf=yes
2049 # Check whether --with-m17n-flt was given.
2050 if test "${with_m17n_flt+set}" = set; then
2051 withval=$with_m17n_flt;
2052 else
2053 with_m17n_flt=yes
2058 # Check whether --with-toolkit-scroll-bars was given.
2059 if test "${with_toolkit_scroll_bars+set}" = set; then
2060 withval=$with_toolkit_scroll_bars;
2061 else
2062 with_toolkit_scroll_bars=yes
2066 # Check whether --with-xaw3d was given.
2067 if test "${with_xaw3d+set}" = set; then
2068 withval=$with_xaw3d;
2069 else
2070 with_xaw3d=yes
2074 # Check whether --with-xim was given.
2075 if test "${with_xim+set}" = set; then
2076 withval=$with_xim;
2077 else
2078 with_xim=yes
2082 # Check whether --with-carbon was given.
2083 if test "${with_carbon+set}" = set; then
2084 withval=$with_carbon;
2085 else
2086 with_carbon=no
2091 # Check whether --with-gpm was given.
2092 if test "${with_gpm+set}" = set; then
2093 withval=$with_gpm;
2094 else
2095 with_gpm=yes
2099 # Check whether --with-dbus was given.
2100 if test "${with_dbus+set}" = set; then
2101 withval=$with_dbus;
2102 else
2103 with_dbus=yes
2107 ## For the times when you want to build Emacs but don't have
2108 ## a suitable makeinfo, and can live without the manuals.
2110 # Check whether --with-makeinfo was given.
2111 if test "${with_makeinfo+set}" = set; then
2112 withval=$with_makeinfo;
2113 else
2114 with_makeinfo=yes
2119 # Check whether --with-gtk was given.
2120 if test "${with_gtk+set}" = set; then
2121 withval=$with_gtk; { { echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2122 specify a toolkit." >&5
2123 echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2124 specify a toolkit." >&2;}
2125 { (exit 1); exit 1; }; }
2130 # Check whether --with-gcc was given.
2131 if test "${with_gcc+set}" = set; then
2132 withval=$with_gcc; { { echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2133 variable to specify a compiler." >&5
2134 echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2135 variable to specify a compiler." >&2;}
2136 { (exit 1); exit 1; }; }
2141 # Check whether --with-pkg-config-prog was given.
2142 if test "${with_pkg_config_prog+set}" = set; then
2143 withval=$with_pkg_config_prog;
2146 if test "X${with_pkg_config_prog}" != X; then
2147 if test "${with_pkg_config_prog}" != yes; then
2148 PKG_CONFIG="${with_pkg_config_prog}"
2152 # Check whether --enable-carbon-app was given.
2153 if test "${enable_carbon_app+set}" = set; then
2154 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
2158 # Check whether --enable-asserts was given.
2159 if test "${enable_asserts+set}" = set; then
2160 enableval=$enable_asserts; USE_XASSERTS=$enableval
2161 else
2162 USE_XASSERTS=no
2166 # Check whether --enable-maintainer-mode was given.
2167 if test "${enable_maintainer_mode+set}" = set; then
2168 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2169 else
2170 USE_MAINTAINER_MODE=no
2173 if test $USE_MAINTAINER_MODE = yes; then
2174 MAINT=
2175 else
2176 MAINT=#
2180 # Check whether --enable-locallisppath was given.
2181 if test "${enable_locallisppath+set}" = set; then
2182 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2183 locallisppath=
2184 elif test "${enableval}" != "yes"; then
2185 locallisppath=${enableval}
2190 #### Make srcdir absolute, if it isn't already. It's important to
2191 #### avoid running the path through pwd unnecessarily, since pwd can
2192 #### give you automounter prefixes, which can go away. We do all this
2193 #### so Emacs can find its files when run uninstalled.
2194 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2195 unset CDPATH
2196 case "${srcdir}" in
2197 /* ) ;;
2199 ## We may be able to use the $PWD environment variable to make this
2200 ## absolute. But sometimes PWD is inaccurate.
2201 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2202 ## but that tested only for a well-formed and valid PWD,
2203 ## it did not object when PWD was well-formed and valid but just wrong.
2204 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2205 then
2206 srcdir="$PWD"
2207 else
2208 srcdir="`(cd ${srcdir}; pwd)`"
2211 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2212 esac
2214 #### Check if the source directory already has a configured system in it.
2215 if test `pwd` != `(cd ${srcdir} && pwd)` \
2216 && test -f "${srcdir}/src/config.h" ; then
2217 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2218 as a build directory right now; it has been configured in its own
2219 right. To configure in another directory as well, you MUST
2220 use GNU make. If you do not have GNU make, then you must
2221 now do \`make distclean' in ${srcdir},
2222 and then run $0 again." >&5
2223 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2224 as a build directory right now; it has been configured in its own
2225 right. To configure in another directory as well, you MUST
2226 use GNU make. If you do not have GNU make, then you must
2227 now do \`make distclean' in ${srcdir},
2228 and then run $0 again." >&2;}
2231 #### Given the configuration name, set machfile and opsysfile to the
2232 #### names of the m/*.h and s/*.h files we should use.
2234 ### Canonicalize the configuration name.
2236 ac_aux_dir=
2237 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2238 if test -f "$ac_dir/install-sh"; then
2239 ac_aux_dir=$ac_dir
2240 ac_install_sh="$ac_aux_dir/install-sh -c"
2241 break
2242 elif test -f "$ac_dir/install.sh"; then
2243 ac_aux_dir=$ac_dir
2244 ac_install_sh="$ac_aux_dir/install.sh -c"
2245 break
2246 elif test -f "$ac_dir/shtool"; then
2247 ac_aux_dir=$ac_dir
2248 ac_install_sh="$ac_aux_dir/shtool install -c"
2249 break
2251 done
2252 if test -z "$ac_aux_dir"; then
2253 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2254 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2255 { (exit 1); exit 1; }; }
2258 # These three variables are undocumented and unsupported,
2259 # and are intended to be withdrawn in a future Autoconf release.
2260 # They can cause serious problems if a builder's source tree is in a directory
2261 # whose full name contains unusual characters.
2262 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2263 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2264 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2267 # Make sure we can run config.sub.
2268 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2269 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2270 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2271 { (exit 1); exit 1; }; }
2273 { echo "$as_me:$LINENO: checking build system type" >&5
2274 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2275 if test "${ac_cv_build+set}" = set; then
2276 echo $ECHO_N "(cached) $ECHO_C" >&6
2277 else
2278 ac_build_alias=$build_alias
2279 test "x$ac_build_alias" = x &&
2280 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2281 test "x$ac_build_alias" = x &&
2282 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2283 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2284 { (exit 1); exit 1; }; }
2285 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2286 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2287 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2288 { (exit 1); exit 1; }; }
2291 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2292 echo "${ECHO_T}$ac_cv_build" >&6; }
2293 case $ac_cv_build in
2294 *-*-*) ;;
2295 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2296 echo "$as_me: error: invalid value of canonical build" >&2;}
2297 { (exit 1); exit 1; }; };;
2298 esac
2299 build=$ac_cv_build
2300 ac_save_IFS=$IFS; IFS='-'
2301 set x $ac_cv_build
2302 shift
2303 build_cpu=$1
2304 build_vendor=$2
2305 shift; shift
2306 # Remember, the first character of IFS is used to create $*,
2307 # except with old shells:
2308 build_os=$*
2309 IFS=$ac_save_IFS
2310 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2313 { echo "$as_me:$LINENO: checking host system type" >&5
2314 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2315 if test "${ac_cv_host+set}" = set; then
2316 echo $ECHO_N "(cached) $ECHO_C" >&6
2317 else
2318 if test "x$host_alias" = x; then
2319 ac_cv_host=$ac_cv_build
2320 else
2321 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2322 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2323 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2324 { (exit 1); exit 1; }; }
2328 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2329 echo "${ECHO_T}$ac_cv_host" >&6; }
2330 case $ac_cv_host in
2331 *-*-*) ;;
2332 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2333 echo "$as_me: error: invalid value of canonical host" >&2;}
2334 { (exit 1); exit 1; }; };;
2335 esac
2336 host=$ac_cv_host
2337 ac_save_IFS=$IFS; IFS='-'
2338 set x $ac_cv_host
2339 shift
2340 host_cpu=$1
2341 host_vendor=$2
2342 shift; shift
2343 # Remember, the first character of IFS is used to create $*,
2344 # except with old shells:
2345 host_os=$*
2346 IFS=$ac_save_IFS
2347 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2350 canonical=$host
2351 configuration=${host_alias-${build_alias-$host}}
2355 ### If you add support for a new configuration, add code to this
2356 ### switch statement to recognize your configuration name and select
2357 ### the appropriate operating system and machine description files.
2359 ### You would hope that you could choose an m/*.h file pretty much
2360 ### based on the machine portion of the configuration name, and an s-
2361 ### file based on the operating system portion. However, it turns out
2362 ### that each m/*.h file is pretty manufacturer-specific - for
2363 ### example hp9000s300.h is a 68000 machine;
2364 ### mips.h, pmax.h are all MIPS
2365 ### machines. So we basically have to have a special case for each
2366 ### configuration name.
2368 ### As far as handling version numbers on operating systems is
2369 ### concerned, make sure things will fail in a fixable way. If
2370 ### /etc/MACHINES doesn't say anything about version numbers, be
2371 ### prepared to handle anything reasonably. If version numbers
2372 ### matter, be sure /etc/MACHINES says something about it.
2374 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2375 ### "System V Release 4"; he writes, "The old convention encouraged
2376 ### confusion between `system' and `release' levels'."
2378 machine='' opsys='' unported=no
2379 case "${canonical}" in
2381 ## FreeBSD ports
2382 *-*-freebsd* )
2383 opsys=freebsd
2384 case "${canonical}" in
2385 alpha*-*-freebsd*) machine=alpha ;;
2386 arm*-*-freebsd*) machine=arm ;;
2387 ia64-*-freebsd*) machine=ia64 ;;
2388 sparc64-*-freebsd*) machine=sparc ;;
2389 powerpc-*-freebsd*) machine=macppc ;;
2390 i[3456]86-*-freebsd*) machine=intel386 ;;
2391 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2392 esac
2395 ## FreeBSD kernel + glibc based userland
2396 *-*-kfreebsd*gnu* )
2397 opsys=gnu-kfreebsd
2398 case "${canonical}" in
2399 alpha*-*-kfreebsd*) machine=alpha ;;
2400 ia64-*-kfreebsd*) machine=ia64 ;;
2401 sparc64-*-kfreebsd*) machine=sparc ;;
2402 powerpc-*-kfreebsd*) machine=macppc ;;
2403 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2404 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2405 esac
2408 ## NetBSD ports
2409 *-*-netbsd* )
2410 opsys=netbsd
2411 if test -f /usr/lib/crti.o; then
2413 cat >>confdefs.h <<\_ACEOF
2414 #define HAVE_CRTIN
2415 _ACEOF
2419 case "${canonical}" in
2420 alpha*-*-netbsd*) machine=alpha ;;
2421 i[3456]86-*-netbsd*) machine=intel386 ;;
2422 m68k-*-netbsd*)
2423 # This is somewhat bogus.
2424 machine=hp9000s300 ;;
2425 mips-*-netbsd*) machine=pmax ;;
2426 mipsel-*-netbsd*) machine=pmax ;;
2427 mipseb-*-netbsd*) machine=pmax ;;
2428 powerpc-*-netbsd*) machine=macppc ;;
2429 sparc*-*-netbsd*) machine=sparc ;;
2430 vax-*-netbsd*) machine=vax ;;
2431 arm-*-netbsd*) machine=arm ;;
2432 x86_64-*-netbsd*) machine=amdx86-64 ;;
2433 hppa-*-netbsd*) machine=hp800 ;;
2434 esac
2437 ## OpenBSD ports
2438 *-*-openbsd* )
2439 opsys=openbsd
2440 case "${canonical}" in
2441 alpha*-*-openbsd*) machine=alpha ;;
2442 arm-*-openbsd*) machine=arm ;;
2443 hppa-*-openbsd*) machine=hp9000s300 ;;
2444 i386-*-openbsd*) machine=intel386 ;;
2445 m68k-*-openbsd*) machine=hp9000s300 ;;
2446 powerpc-*-openbsd*) machine=macppc ;;
2447 sparc*-*-openbsd*) machine=sparc ;;
2448 vax-*-openbsd*) machine=vax ;;
2449 x86_64-*-openbsd*) machine=amdx86-64 ;;
2450 esac
2453 ## LynxOS ports
2454 *-*-lynxos* )
2455 opsys=lynxos
2456 case "${canonical}" in
2457 i[3456]86-*-lynxos*) machine=intel386 ;;
2458 powerpc-*-lynxos*) machine=powerpc ;;
2459 esac
2462 ## BSDI ports
2463 *-*-bsdi* )
2464 opsys=bsdi
2465 case "${canonical}" in
2466 i[345]86-*-bsdi*) machine=intel386 ;;
2467 sparc-*-bsdi*) machine=sparc ;;
2468 powerpc-*-bsdi*) machine=macppc ;;
2469 esac
2470 case "${canonical}" in
2471 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2472 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2473 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2474 *-*-bsdi3* ) opsys=bsdos3 ;;
2475 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2476 esac
2479 alpha*-*-linux-gnu* )
2480 machine=alpha opsys=gnu-linux
2483 arm*-*-linux-gnu* )
2484 machine=arm opsys=gnu-linux
2487 ## Apple Darwin / Mac OS X
2488 *-apple-darwin* )
2489 case "${canonical}" in
2490 i[3456]86-* ) machine=intel386 ;;
2491 powerpc-* ) machine=powermac ;;
2492 * ) unported=yes ;;
2493 esac
2494 opsys=darwin
2495 # Define CPP as follows to make autoconf work correctly.
2496 CPP="${CC-cc} -E -no-cpp-precomp"
2497 # Use fink packages if available.
2498 if test -d /sw/include && test -d /sw/lib; then
2499 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2500 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2501 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2505 ## Cubix QBx/386
2506 i[3456]86-cubix-sysv* )
2507 machine=intel386 opsys=usg5-3
2510 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2511 machine=pmax opsys=bsd4-2
2513 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2514 machine=pmax opsys=bsd4-3
2516 mips-dec-ultrix* )
2517 machine=pmax opsys=ultrix4-3
2519 ## HP 9000 series 200 or 300
2520 m68*-hp-bsd* )
2521 machine=hp9000s300 opsys=bsd4-3
2523 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2524 m68*-hp-hpux* )
2525 case "`uname -r`" in
2526 ## Someone's system reports A.B8.05 for this.
2527 ## I wonder what other possibilities there are.
2528 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2529 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2530 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2531 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2532 *) machine=hp9000s300 opsys=hpux ;;
2533 esac
2536 ## HP 9000 series 700 and 800, running HP/UX
2537 hppa*-hp-hpux7* )
2538 machine=hp800 opsys=hpux
2540 hppa*-hp-hpux8* )
2541 machine=hp800 opsys=hpux8
2543 hppa*-hp-hpux9shr* )
2544 machine=hp800 opsys=hpux9shr
2546 hppa*-hp-hpux9* )
2547 machine=hp800 opsys=hpux9
2549 hppa*-hp-hpux10.2* )
2550 machine=hp800 opsys=hpux10-20
2552 hppa*-hp-hpux10* )
2553 machine=hp800 opsys=hpux10
2555 hppa*-hp-hpux1[1-9]* )
2556 machine=hp800 opsys=hpux11
2557 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2560 hppa*-*-linux-gnu* )
2561 machine=hp800 opsys=gnu-linux
2564 ## HP 9000 series 700 and 800, running HP/UX
2565 hppa*-hp-hpux* )
2566 ## Cross-compilation? Nah!
2567 case "`uname -r`" in
2568 ## Someone's system reports A.B8.05 for this.
2569 ## I wonder what other possibilities there are.
2570 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2571 *.08.* ) machine=hp800 opsys=hpux8 ;;
2572 *.09.* ) machine=hp800 opsys=hpux9 ;;
2573 *) machine=hp800 opsys=hpux10 ;;
2574 esac
2576 hppa*-*-nextstep* )
2577 machine=hp800 opsys=nextstep
2580 ## IBM machines
2581 i370-ibm-aix*)
2582 machine=ibm370aix opsys=usg5-3
2584 s390-*-linux-gnu* )
2585 machine=ibms390 opsys=gnu-linux
2587 s390x-*-linux-gnu* )
2588 machine=ibms390x opsys=gnu-linux
2590 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2591 machine=ibmrs6000 opsys=aix3-1
2593 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2594 machine=ibmrs6000 opsys=aix3-2-5
2596 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2597 machine=ibmrs6000 opsys=aix4-1
2599 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2600 machine=ibmrs6000 opsys=aix4-2
2602 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2603 machine=ibmrs6000 opsys=aix4-2
2605 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2606 machine=ibmrs6000 opsys=aix4-2
2608 rs6000-ibm-aix5* | powerpc-ibm-aix6* )
2609 machine=ibmrs6000 opsys=aix4-2
2611 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2612 machine=ibmrs6000 opsys=aix4
2614 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2615 machine=ibmrs6000 opsys=aix4-1
2617 rs6000-ibm-aix* | powerpc-ibm-aix* )
2618 machine=ibmrs6000 opsys=aix3-2
2621 ## Prime EXL
2622 i[3456]86-prime-sysv* )
2623 machine=i386 opsys=usg5-3
2626 ## ncr machine running svr4.3.
2627 i[3456]86-ncr-sysv4.3 )
2628 machine=ncr386 opsys=usg5-4-3
2631 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2632 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2633 i[3456]86-ncr-sysv* )
2634 machine=ncr386 opsys=usg5-4-2
2637 ## Macintosh PowerPC
2638 powerpc*-*-linux-gnu* )
2639 machine=macppc opsys=gnu-linux
2642 ## Workstations sold by MIPS
2643 ## This is not necessarily all workstations using the MIPS processor -
2644 ## Irises are produced by SGI, and DECstations by DEC.
2646 mips-mips-bsd* )
2647 machine=mips opsys=bsd4-3
2649 mips-mips-* )
2650 machine=mips opsys=usg5-2-2
2653 ## NeXT
2654 m68*-next-* | m68k-*-nextstep* )
2655 machine=m68k opsys=nextstep
2658 ## NEC EWS4800
2659 mips-nec-sysv4*)
2660 machine=ews4800 opsys=ux4800
2663 ## Siemens Nixdorf
2664 mips-siemens-sysv* | mips-sni-sysv*)
2665 machine=mips-siemens opsys=usg5-4
2666 NON_GNU_CC=/usr/ccs/bin/cc
2667 NON_GNU_CPP=/usr/ccs/lib/cpp
2670 ## Silicon Graphics machines
2671 ## Iris 4D
2672 mips-sgi-irix6.5 )
2673 machine=iris4d opsys=irix6-5
2674 # Without defining _LANGUAGE_C, things get masked out in the headers
2675 # so that, for instance, grepping for `free' in stdlib.h fails and
2676 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2677 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2678 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2681 ## Suns
2682 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2683 machine=sparc opsys=gnu-linux
2686 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2687 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2688 | rs6000-*-solaris2*)
2689 case "${canonical}" in
2690 i[3456]86-*-* ) machine=intel386 ;;
2691 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2692 powerpcle* ) machine=powerpcle ;;
2693 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2694 sparc* ) machine=sparc ;;
2695 * ) unported=yes ;;
2696 esac
2697 case "${canonical}" in
2698 *-sunos5.3* | *-solaris2.3* )
2699 opsys=sol2-3
2700 NON_GNU_CPP=/usr/ccs/lib/cpp
2702 *-sunos5.4* | *-solaris2.4* )
2703 opsys=sol2-4
2704 NON_GNU_CPP=/usr/ccs/lib/cpp
2705 RANLIB="ar -ts"
2707 *-sunos5.5* | *-solaris2.5* )
2708 opsys=sol2-5
2709 NON_GNU_CPP=/usr/ccs/lib/cpp
2710 RANLIB="ar -ts"
2712 *-sunos5.6* | *-solaris2.6* )
2713 opsys=sol2-6
2714 NON_GNU_CPP=/usr/ccs/lib/cpp
2715 RANLIB="ar -ts"
2717 *-sunos5* | *-solaris* )
2718 opsys=sol2-6
2719 emacs_check_sunpro_c=yes
2720 NON_GNU_CPP=/usr/ccs/lib/cpp
2722 * ) opsys=bsd4-2 ;;
2723 esac
2724 ## Watch out for a compiler that we know will not work.
2725 case "${canonical}" in
2726 *-solaris* | *-sunos5* )
2727 if [ "x$CC" = x/usr/ucb/cc ]; then
2728 ## /usr/ucb/cc doesn't work;
2729 ## we should find some other compiler that does work.
2730 unset CC
2733 *) ;;
2734 esac
2736 sparc-*-nextstep* )
2737 machine=sparc opsys=nextstep
2740 ## Tandem Integrity S2
2741 mips-tandem-sysv* )
2742 machine=tandem-s2 opsys=usg5-3
2745 ## Vaxen.
2746 vax-dec-* )
2747 machine=vax
2748 case "${canonical}" in
2749 *-bsd4.1* ) opsys=bsd4-1 ;;
2750 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2751 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2752 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2753 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2754 *-vms* ) opsys=vms ;;
2755 * ) unported=yes
2756 esac
2759 ## IA-64
2760 ia64*-*-linux* )
2761 machine=ia64 opsys=gnu-linux
2764 ## Intel 386 machines where we don't care about the manufacturer
2765 i[3456]86-*-* )
2766 machine=intel386
2767 case "${canonical}" in
2768 *-cygwin ) opsys=cygwin ;;
2769 *-darwin* ) opsys=darwin
2770 CPP="${CC-cc} -E -no-cpp-precomp"
2772 *-linux-gnu* ) opsys=gnu-linux ;;
2773 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2774 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2775 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2776 *-386bsd* ) opsys=386bsd ;;
2777 *-nextstep* ) opsys=nextstep ;;
2778 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2779 esac
2782 ## m68k Linux-based GNU system
2783 m68k-*-linux-gnu* )
2784 machine=m68k opsys=gnu-linux
2787 ## Mips Linux-based GNU system
2788 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2789 machine=mips opsys=gnu-linux
2792 ## UXP/DS
2793 sparc-fujitsu-sysv4* )
2794 machine=sparc opsys=uxpds
2795 NON_GNU_CPP=/usr/ccs/lib/cpp
2796 RANLIB="ar -ts"
2799 ## AMD x86-64 Linux-based GNU system
2800 x86_64-*-linux-gnu* )
2801 machine=amdx86-64 opsys=gnu-linux
2804 ## Tensilica Xtensa Linux-based GNU system
2805 xtensa*-*-linux-gnu* )
2806 machine=xtensa opsys=gnu-linux
2810 unported=yes
2812 esac
2814 ### If the code above didn't choose an operating system, just choose
2815 ### an operating system based on the configuration name. You really
2816 ### only want to use this when you have no idea what the right
2817 ### operating system is; if you know what operating systems a machine
2818 ### runs, it's cleaner to make it explicit in the case statement
2819 ### above.
2820 if test x"${opsys}" = x; then
2821 case "${canonical}" in
2822 *-gnu* ) opsys=gnu ;;
2823 *-bsd4.[01] ) opsys=bsd4-1 ;;
2824 *-bsd4.2 ) opsys=bsd4-2 ;;
2825 *-bsd4.3 ) opsys=bsd4-3 ;;
2826 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2827 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2828 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2829 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2830 *-sysv4.2uw* ) opsys=unixware ;;
2831 *-sysv5uw* ) opsys=unixware ;;
2832 *-sysv5OpenUNIX* ) opsys=unixware ;;
2833 *-sysv4.1* | *-sysvr4.1* )
2834 NON_GNU_CPP=/usr/lib/cpp
2835 opsys=usg5-4 ;;
2836 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2837 if [ x$NON_GNU_CPP = x ]; then
2838 if [ -f /usr/ccs/lib/cpp ]; then
2839 NON_GNU_CPP=/usr/ccs/lib/cpp
2840 else
2841 NON_GNU_CPP=/lib/cpp
2844 opsys=usg5-4-2 ;;
2845 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2847 unported=yes
2849 esac
2852 ### Tests for sytems that we beleive are obsolete and should be desupported.
2854 case "${machine}" in
2855 pmax | hp9000s300 | ibm370aix | ncr386 | ews4800 | mips-siemens | powerpcle | tandem-s2 )
2856 echo "The system that you are configuring on: ${canonical} is considered to be obsolete"
2857 echo "and it is planned to be desupported in the next version of Emacs"
2858 echo "Please email emacs-devel@gnu.org as soon as possible if this system is still in use."
2859 echo "The code is still functional, but you need to edit the 'configure' script and remove the"
2860 echo "exit 33 line. After that you can run configure again and 'complete' the build."
2861 exit 33
2863 esac
2865 case "${opsys}" in
2866 bsd386 | bsdos2-1 | bsdos2 | bsdos3 | bsdos4 | bsd4-1 | bsd4-2 | bsd4-3 | usg5-0 | usg5-2-2 | usg5-2 | usg5-3 | ultrix4-3 | 386bsd | hpux | hpux8 | hpux9 | hpux9shr | hpux10 | aix3-1 | aix3-2-5 | aix3-2 | aix4-1 | nextstep | ux4800 | uxpds | uxpv )
2867 echo "The system that you are configuring on: ${canonical} is considered to be obsolete"
2868 echo "and it is planned to be desupported in the next version of Emacs"
2869 echo "Please email emacs-devel@gnu.org as soon as possible if this system is still in use."
2870 echo "The code is still functional, but you need to edit the 'configure' script and remove the"
2871 echo "'exit 44' line. After that you can run 'configure' again and complete the build."
2872 exit 44
2874 esac
2878 if test $unported = yes; then
2879 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2880 Check \`etc/MACHINES' for recognized configuration names." >&5
2881 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2882 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2883 { (exit 1); exit 1; }; }
2886 machfile="m/${machine}.h"
2887 opsysfile="s/${opsys}.h"
2890 #### Choose a compiler.
2891 test -n "$CC" && cc_specified=yes
2893 # Save the value of CFLAGS that the user specified.
2894 SPECIFIED_CFLAGS="$CFLAGS"
2896 ac_ext=c
2897 ac_cpp='$CPP $CPPFLAGS'
2898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2901 if test -n "$ac_tool_prefix"; then
2902 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2903 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2906 if test "${ac_cv_prog_CC+set}" = set; then
2907 echo $ECHO_N "(cached) $ECHO_C" >&6
2908 else
2909 if test -n "$CC"; then
2910 ac_cv_prog_CC="$CC" # Let the user override the test.
2911 else
2912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2913 for as_dir in $PATH
2915 IFS=$as_save_IFS
2916 test -z "$as_dir" && as_dir=.
2917 for ac_exec_ext in '' $ac_executable_extensions; do
2918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2919 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2921 break 2
2923 done
2924 done
2925 IFS=$as_save_IFS
2929 CC=$ac_cv_prog_CC
2930 if test -n "$CC"; then
2931 { echo "$as_me:$LINENO: result: $CC" >&5
2932 echo "${ECHO_T}$CC" >&6; }
2933 else
2934 { echo "$as_me:$LINENO: result: no" >&5
2935 echo "${ECHO_T}no" >&6; }
2940 if test -z "$ac_cv_prog_CC"; then
2941 ac_ct_CC=$CC
2942 # Extract the first word of "gcc", so it can be a program name with args.
2943 set dummy gcc; ac_word=$2
2944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2946 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2947 echo $ECHO_N "(cached) $ECHO_C" >&6
2948 else
2949 if test -n "$ac_ct_CC"; then
2950 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2951 else
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953 for as_dir in $PATH
2955 IFS=$as_save_IFS
2956 test -z "$as_dir" && as_dir=.
2957 for ac_exec_ext in '' $ac_executable_extensions; do
2958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2959 ac_cv_prog_ac_ct_CC="gcc"
2960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2961 break 2
2963 done
2964 done
2965 IFS=$as_save_IFS
2969 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2970 if test -n "$ac_ct_CC"; then
2971 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2972 echo "${ECHO_T}$ac_ct_CC" >&6; }
2973 else
2974 { echo "$as_me:$LINENO: result: no" >&5
2975 echo "${ECHO_T}no" >&6; }
2978 if test "x$ac_ct_CC" = x; then
2979 CC=""
2980 else
2981 case $cross_compiling:$ac_tool_warned in
2982 yes:)
2983 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2984 whose name does not start with the host triplet. If you think this
2985 configuration is useful to you, please write to autoconf@gnu.org." >&5
2986 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2987 whose name does not start with the host triplet. If you think this
2988 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2989 ac_tool_warned=yes ;;
2990 esac
2991 CC=$ac_ct_CC
2993 else
2994 CC="$ac_cv_prog_CC"
2997 if test -z "$CC"; then
2998 if test -n "$ac_tool_prefix"; then
2999 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3000 set dummy ${ac_tool_prefix}cc; ac_word=$2
3001 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3003 if test "${ac_cv_prog_CC+set}" = set; then
3004 echo $ECHO_N "(cached) $ECHO_C" >&6
3005 else
3006 if test -n "$CC"; then
3007 ac_cv_prog_CC="$CC" # Let the user override the test.
3008 else
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 ac_cv_prog_CC="${ac_tool_prefix}cc"
3017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3018 break 2
3020 done
3021 done
3022 IFS=$as_save_IFS
3026 CC=$ac_cv_prog_CC
3027 if test -n "$CC"; then
3028 { echo "$as_me:$LINENO: result: $CC" >&5
3029 echo "${ECHO_T}$CC" >&6; }
3030 else
3031 { echo "$as_me:$LINENO: result: no" >&5
3032 echo "${ECHO_T}no" >&6; }
3038 if test -z "$CC"; then
3039 # Extract the first word of "cc", so it can be a program name with args.
3040 set dummy cc; ac_word=$2
3041 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3043 if test "${ac_cv_prog_CC+set}" = set; then
3044 echo $ECHO_N "(cached) $ECHO_C" >&6
3045 else
3046 if test -n "$CC"; then
3047 ac_cv_prog_CC="$CC" # Let the user override the test.
3048 else
3049 ac_prog_rejected=no
3050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3051 for as_dir in $PATH
3053 IFS=$as_save_IFS
3054 test -z "$as_dir" && as_dir=.
3055 for ac_exec_ext in '' $ac_executable_extensions; do
3056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3057 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3058 ac_prog_rejected=yes
3059 continue
3061 ac_cv_prog_CC="cc"
3062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3063 break 2
3065 done
3066 done
3067 IFS=$as_save_IFS
3069 if test $ac_prog_rejected = yes; then
3070 # We found a bogon in the path, so make sure we never use it.
3071 set dummy $ac_cv_prog_CC
3072 shift
3073 if test $# != 0; then
3074 # We chose a different compiler from the bogus one.
3075 # However, it has the same basename, so the bogon will be chosen
3076 # first if we set CC to just the basename; use the full file name.
3077 shift
3078 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3083 CC=$ac_cv_prog_CC
3084 if test -n "$CC"; then
3085 { echo "$as_me:$LINENO: result: $CC" >&5
3086 echo "${ECHO_T}$CC" >&6; }
3087 else
3088 { echo "$as_me:$LINENO: result: no" >&5
3089 echo "${ECHO_T}no" >&6; }
3094 if test -z "$CC"; then
3095 if test -n "$ac_tool_prefix"; then
3096 for ac_prog in cl.exe
3098 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3099 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3100 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3102 if test "${ac_cv_prog_CC+set}" = set; then
3103 echo $ECHO_N "(cached) $ECHO_C" >&6
3104 else
3105 if test -n "$CC"; then
3106 ac_cv_prog_CC="$CC" # Let the user override the test.
3107 else
3108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109 for as_dir in $PATH
3111 IFS=$as_save_IFS
3112 test -z "$as_dir" && as_dir=.
3113 for ac_exec_ext in '' $ac_executable_extensions; do
3114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3115 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3117 break 2
3119 done
3120 done
3121 IFS=$as_save_IFS
3125 CC=$ac_cv_prog_CC
3126 if test -n "$CC"; then
3127 { echo "$as_me:$LINENO: result: $CC" >&5
3128 echo "${ECHO_T}$CC" >&6; }
3129 else
3130 { echo "$as_me:$LINENO: result: no" >&5
3131 echo "${ECHO_T}no" >&6; }
3135 test -n "$CC" && break
3136 done
3138 if test -z "$CC"; then
3139 ac_ct_CC=$CC
3140 for ac_prog in cl.exe
3142 # Extract the first word of "$ac_prog", so it can be a program name with args.
3143 set dummy $ac_prog; ac_word=$2
3144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3146 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3147 echo $ECHO_N "(cached) $ECHO_C" >&6
3148 else
3149 if test -n "$ac_ct_CC"; then
3150 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3151 else
3152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3153 for as_dir in $PATH
3155 IFS=$as_save_IFS
3156 test -z "$as_dir" && as_dir=.
3157 for ac_exec_ext in '' $ac_executable_extensions; do
3158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3159 ac_cv_prog_ac_ct_CC="$ac_prog"
3160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3161 break 2
3163 done
3164 done
3165 IFS=$as_save_IFS
3169 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3170 if test -n "$ac_ct_CC"; then
3171 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3172 echo "${ECHO_T}$ac_ct_CC" >&6; }
3173 else
3174 { echo "$as_me:$LINENO: result: no" >&5
3175 echo "${ECHO_T}no" >&6; }
3179 test -n "$ac_ct_CC" && break
3180 done
3182 if test "x$ac_ct_CC" = x; then
3183 CC=""
3184 else
3185 case $cross_compiling:$ac_tool_warned in
3186 yes:)
3187 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3188 whose name does not start with the host triplet. If you think this
3189 configuration is useful to you, please write to autoconf@gnu.org." >&5
3190 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3191 whose name does not start with the host triplet. If you think this
3192 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3193 ac_tool_warned=yes ;;
3194 esac
3195 CC=$ac_ct_CC
3202 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3203 See \`config.log' for more details." >&5
3204 echo "$as_me: error: no acceptable C compiler found in \$PATH
3205 See \`config.log' for more details." >&2;}
3206 { (exit 1); exit 1; }; }
3208 # Provide some information about the compiler.
3209 echo "$as_me:$LINENO: checking for C compiler version" >&5
3210 ac_compiler=`set X $ac_compile; echo $2`
3211 { (ac_try="$ac_compiler --version >&5"
3212 case "(($ac_try" in
3213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214 *) ac_try_echo=$ac_try;;
3215 esac
3216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3217 (eval "$ac_compiler --version >&5") 2>&5
3218 ac_status=$?
3219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220 (exit $ac_status); }
3221 { (ac_try="$ac_compiler -v >&5"
3222 case "(($ac_try" in
3223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224 *) ac_try_echo=$ac_try;;
3225 esac
3226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3227 (eval "$ac_compiler -v >&5") 2>&5
3228 ac_status=$?
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); }
3231 { (ac_try="$ac_compiler -V >&5"
3232 case "(($ac_try" in
3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234 *) ac_try_echo=$ac_try;;
3235 esac
3236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3237 (eval "$ac_compiler -V >&5") 2>&5
3238 ac_status=$?
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); }
3242 cat >conftest.$ac_ext <<_ACEOF
3243 /* confdefs.h. */
3244 _ACEOF
3245 cat confdefs.h >>conftest.$ac_ext
3246 cat >>conftest.$ac_ext <<_ACEOF
3247 /* end confdefs.h. */
3250 main ()
3254 return 0;
3256 _ACEOF
3257 ac_clean_files_save=$ac_clean_files
3258 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3259 # Try to create an executable without -o first, disregard a.out.
3260 # It will help us diagnose broken compilers, and finding out an intuition
3261 # of exeext.
3262 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3263 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3264 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3266 # List of possible output files, starting from the most likely.
3267 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3268 # only as a last resort. b.out is created by i960 compilers.
3269 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3271 # The IRIX 6 linker writes into existing files which may not be
3272 # executable, retaining their permissions. Remove them first so a
3273 # subsequent execution test works.
3274 ac_rmfiles=
3275 for ac_file in $ac_files
3277 case $ac_file in
3278 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3279 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3280 esac
3281 done
3282 rm -f $ac_rmfiles
3284 if { (ac_try="$ac_link_default"
3285 case "(($ac_try" in
3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287 *) ac_try_echo=$ac_try;;
3288 esac
3289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3290 (eval "$ac_link_default") 2>&5
3291 ac_status=$?
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); }; then
3294 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3295 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3296 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3297 # so that the user can short-circuit this test for compilers unknown to
3298 # Autoconf.
3299 for ac_file in $ac_files ''
3301 test -f "$ac_file" || continue
3302 case $ac_file in
3303 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3305 [ab].out )
3306 # We found the default executable, but exeext='' is most
3307 # certainly right.
3308 break;;
3309 *.* )
3310 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3311 then :; else
3312 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3314 # We set ac_cv_exeext here because the later test for it is not
3315 # safe: cross compilers may not add the suffix if given an `-o'
3316 # argument, so we may need to know it at that point already.
3317 # Even if this section looks crufty: it has the advantage of
3318 # actually working.
3319 break;;
3321 break;;
3322 esac
3323 done
3324 test "$ac_cv_exeext" = no && ac_cv_exeext=
3326 else
3327 ac_file=''
3330 { echo "$as_me:$LINENO: result: $ac_file" >&5
3331 echo "${ECHO_T}$ac_file" >&6; }
3332 if test -z "$ac_file"; then
3333 echo "$as_me: failed program was:" >&5
3334 sed 's/^/| /' conftest.$ac_ext >&5
3336 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3337 See \`config.log' for more details." >&5
3338 echo "$as_me: error: C compiler cannot create executables
3339 See \`config.log' for more details." >&2;}
3340 { (exit 77); exit 77; }; }
3343 ac_exeext=$ac_cv_exeext
3345 # Check that the compiler produces executables we can run. If not, either
3346 # the compiler is broken, or we cross compile.
3347 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3348 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3349 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3350 # If not cross compiling, check that we can run a simple program.
3351 if test "$cross_compiling" != yes; then
3352 if { ac_try='./$ac_file'
3353 { (case "(($ac_try" in
3354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3355 *) ac_try_echo=$ac_try;;
3356 esac
3357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3358 (eval "$ac_try") 2>&5
3359 ac_status=$?
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); }; }; then
3362 cross_compiling=no
3363 else
3364 if test "$cross_compiling" = maybe; then
3365 cross_compiling=yes
3366 else
3367 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3368 If you meant to cross compile, use \`--host'.
3369 See \`config.log' for more details." >&5
3370 echo "$as_me: error: cannot run C compiled programs.
3371 If you meant to cross compile, use \`--host'.
3372 See \`config.log' for more details." >&2;}
3373 { (exit 1); exit 1; }; }
3377 { echo "$as_me:$LINENO: result: yes" >&5
3378 echo "${ECHO_T}yes" >&6; }
3380 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3381 ac_clean_files=$ac_clean_files_save
3382 # Check that the compiler produces executables we can run. If not, either
3383 # the compiler is broken, or we cross compile.
3384 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3385 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3386 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3387 echo "${ECHO_T}$cross_compiling" >&6; }
3389 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3390 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3391 if { (ac_try="$ac_link"
3392 case "(($ac_try" in
3393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3394 *) ac_try_echo=$ac_try;;
3395 esac
3396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3397 (eval "$ac_link") 2>&5
3398 ac_status=$?
3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400 (exit $ac_status); }; then
3401 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3402 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3403 # work properly (i.e., refer to `conftest.exe'), while it won't with
3404 # `rm'.
3405 for ac_file in conftest.exe conftest conftest.*; do
3406 test -f "$ac_file" || continue
3407 case $ac_file in
3408 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3409 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3410 break;;
3411 * ) break;;
3412 esac
3413 done
3414 else
3415 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3416 See \`config.log' for more details." >&5
3417 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3418 See \`config.log' for more details." >&2;}
3419 { (exit 1); exit 1; }; }
3422 rm -f conftest$ac_cv_exeext
3423 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3424 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3426 rm -f conftest.$ac_ext
3427 EXEEXT=$ac_cv_exeext
3428 ac_exeext=$EXEEXT
3429 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3430 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3431 if test "${ac_cv_objext+set}" = set; then
3432 echo $ECHO_N "(cached) $ECHO_C" >&6
3433 else
3434 cat >conftest.$ac_ext <<_ACEOF
3435 /* confdefs.h. */
3436 _ACEOF
3437 cat confdefs.h >>conftest.$ac_ext
3438 cat >>conftest.$ac_ext <<_ACEOF
3439 /* end confdefs.h. */
3442 main ()
3446 return 0;
3448 _ACEOF
3449 rm -f conftest.o conftest.obj
3450 if { (ac_try="$ac_compile"
3451 case "(($ac_try" in
3452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3453 *) ac_try_echo=$ac_try;;
3454 esac
3455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3456 (eval "$ac_compile") 2>&5
3457 ac_status=$?
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); }; then
3460 for ac_file in conftest.o conftest.obj conftest.*; do
3461 test -f "$ac_file" || continue;
3462 case $ac_file in
3463 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3464 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3465 break;;
3466 esac
3467 done
3468 else
3469 echo "$as_me: failed program was:" >&5
3470 sed 's/^/| /' conftest.$ac_ext >&5
3472 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3473 See \`config.log' for more details." >&5
3474 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3475 See \`config.log' for more details." >&2;}
3476 { (exit 1); exit 1; }; }
3479 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3481 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3482 echo "${ECHO_T}$ac_cv_objext" >&6; }
3483 OBJEXT=$ac_cv_objext
3484 ac_objext=$OBJEXT
3485 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3486 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3487 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3488 echo $ECHO_N "(cached) $ECHO_C" >&6
3489 else
3490 cat >conftest.$ac_ext <<_ACEOF
3491 /* confdefs.h. */
3492 _ACEOF
3493 cat confdefs.h >>conftest.$ac_ext
3494 cat >>conftest.$ac_ext <<_ACEOF
3495 /* end confdefs.h. */
3498 main ()
3500 #ifndef __GNUC__
3501 choke me
3502 #endif
3505 return 0;
3507 _ACEOF
3508 rm -f conftest.$ac_objext
3509 if { (ac_try="$ac_compile"
3510 case "(($ac_try" in
3511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3512 *) ac_try_echo=$ac_try;;
3513 esac
3514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3515 (eval "$ac_compile") 2>conftest.er1
3516 ac_status=$?
3517 grep -v '^ *+' conftest.er1 >conftest.err
3518 rm -f conftest.er1
3519 cat conftest.err >&5
3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521 (exit $ac_status); } && {
3522 test -z "$ac_c_werror_flag" ||
3523 test ! -s conftest.err
3524 } && test -s conftest.$ac_objext; then
3525 ac_compiler_gnu=yes
3526 else
3527 echo "$as_me: failed program was:" >&5
3528 sed 's/^/| /' conftest.$ac_ext >&5
3530 ac_compiler_gnu=no
3533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3534 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3537 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3538 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3539 GCC=`test $ac_compiler_gnu = yes && echo yes`
3540 ac_test_CFLAGS=${CFLAGS+set}
3541 ac_save_CFLAGS=$CFLAGS
3542 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3543 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3544 if test "${ac_cv_prog_cc_g+set}" = set; then
3545 echo $ECHO_N "(cached) $ECHO_C" >&6
3546 else
3547 ac_save_c_werror_flag=$ac_c_werror_flag
3548 ac_c_werror_flag=yes
3549 ac_cv_prog_cc_g=no
3550 CFLAGS="-g"
3551 cat >conftest.$ac_ext <<_ACEOF
3552 /* confdefs.h. */
3553 _ACEOF
3554 cat confdefs.h >>conftest.$ac_ext
3555 cat >>conftest.$ac_ext <<_ACEOF
3556 /* end confdefs.h. */
3559 main ()
3563 return 0;
3565 _ACEOF
3566 rm -f conftest.$ac_objext
3567 if { (ac_try="$ac_compile"
3568 case "(($ac_try" in
3569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3570 *) ac_try_echo=$ac_try;;
3571 esac
3572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3573 (eval "$ac_compile") 2>conftest.er1
3574 ac_status=$?
3575 grep -v '^ *+' conftest.er1 >conftest.err
3576 rm -f conftest.er1
3577 cat conftest.err >&5
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); } && {
3580 test -z "$ac_c_werror_flag" ||
3581 test ! -s conftest.err
3582 } && test -s conftest.$ac_objext; then
3583 ac_cv_prog_cc_g=yes
3584 else
3585 echo "$as_me: failed program was:" >&5
3586 sed 's/^/| /' conftest.$ac_ext >&5
3588 CFLAGS=""
3589 cat >conftest.$ac_ext <<_ACEOF
3590 /* confdefs.h. */
3591 _ACEOF
3592 cat confdefs.h >>conftest.$ac_ext
3593 cat >>conftest.$ac_ext <<_ACEOF
3594 /* end confdefs.h. */
3597 main ()
3601 return 0;
3603 _ACEOF
3604 rm -f conftest.$ac_objext
3605 if { (ac_try="$ac_compile"
3606 case "(($ac_try" in
3607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3608 *) ac_try_echo=$ac_try;;
3609 esac
3610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3611 (eval "$ac_compile") 2>conftest.er1
3612 ac_status=$?
3613 grep -v '^ *+' conftest.er1 >conftest.err
3614 rm -f conftest.er1
3615 cat conftest.err >&5
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); } && {
3618 test -z "$ac_c_werror_flag" ||
3619 test ! -s conftest.err
3620 } && test -s conftest.$ac_objext; then
3622 else
3623 echo "$as_me: failed program was:" >&5
3624 sed 's/^/| /' conftest.$ac_ext >&5
3626 ac_c_werror_flag=$ac_save_c_werror_flag
3627 CFLAGS="-g"
3628 cat >conftest.$ac_ext <<_ACEOF
3629 /* confdefs.h. */
3630 _ACEOF
3631 cat confdefs.h >>conftest.$ac_ext
3632 cat >>conftest.$ac_ext <<_ACEOF
3633 /* end confdefs.h. */
3636 main ()
3640 return 0;
3642 _ACEOF
3643 rm -f conftest.$ac_objext
3644 if { (ac_try="$ac_compile"
3645 case "(($ac_try" in
3646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3647 *) ac_try_echo=$ac_try;;
3648 esac
3649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3650 (eval "$ac_compile") 2>conftest.er1
3651 ac_status=$?
3652 grep -v '^ *+' conftest.er1 >conftest.err
3653 rm -f conftest.er1
3654 cat conftest.err >&5
3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); } && {
3657 test -z "$ac_c_werror_flag" ||
3658 test ! -s conftest.err
3659 } && test -s conftest.$ac_objext; then
3660 ac_cv_prog_cc_g=yes
3661 else
3662 echo "$as_me: failed program was:" >&5
3663 sed 's/^/| /' conftest.$ac_ext >&5
3668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3675 ac_c_werror_flag=$ac_save_c_werror_flag
3677 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3678 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3679 if test "$ac_test_CFLAGS" = set; then
3680 CFLAGS=$ac_save_CFLAGS
3681 elif test $ac_cv_prog_cc_g = yes; then
3682 if test "$GCC" = yes; then
3683 CFLAGS="-g -O2"
3684 else
3685 CFLAGS="-g"
3687 else
3688 if test "$GCC" = yes; then
3689 CFLAGS="-O2"
3690 else
3691 CFLAGS=
3694 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3695 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3696 if test "${ac_cv_prog_cc_c89+set}" = set; then
3697 echo $ECHO_N "(cached) $ECHO_C" >&6
3698 else
3699 ac_cv_prog_cc_c89=no
3700 ac_save_CC=$CC
3701 cat >conftest.$ac_ext <<_ACEOF
3702 /* confdefs.h. */
3703 _ACEOF
3704 cat confdefs.h >>conftest.$ac_ext
3705 cat >>conftest.$ac_ext <<_ACEOF
3706 /* end confdefs.h. */
3707 #include <stdarg.h>
3708 #include <stdio.h>
3709 #include <sys/types.h>
3710 #include <sys/stat.h>
3711 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3712 struct buf { int x; };
3713 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3714 static char *e (p, i)
3715 char **p;
3716 int i;
3718 return p[i];
3720 static char *f (char * (*g) (char **, int), char **p, ...)
3722 char *s;
3723 va_list v;
3724 va_start (v,p);
3725 s = g (p, va_arg (v,int));
3726 va_end (v);
3727 return s;
3730 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3731 function prototypes and stuff, but not '\xHH' hex character constants.
3732 These don't provoke an error unfortunately, instead are silently treated
3733 as 'x'. The following induces an error, until -std is added to get
3734 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3735 array size at least. It's necessary to write '\x00'==0 to get something
3736 that's true only with -std. */
3737 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3739 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3740 inside strings and character constants. */
3741 #define FOO(x) 'x'
3742 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3744 int test (int i, double x);
3745 struct s1 {int (*f) (int a);};
3746 struct s2 {int (*f) (double a);};
3747 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3748 int argc;
3749 char **argv;
3751 main ()
3753 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3755 return 0;
3757 _ACEOF
3758 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3759 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3761 CC="$ac_save_CC $ac_arg"
3762 rm -f conftest.$ac_objext
3763 if { (ac_try="$ac_compile"
3764 case "(($ac_try" in
3765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3766 *) ac_try_echo=$ac_try;;
3767 esac
3768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3769 (eval "$ac_compile") 2>conftest.er1
3770 ac_status=$?
3771 grep -v '^ *+' conftest.er1 >conftest.err
3772 rm -f conftest.er1
3773 cat conftest.err >&5
3774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775 (exit $ac_status); } && {
3776 test -z "$ac_c_werror_flag" ||
3777 test ! -s conftest.err
3778 } && test -s conftest.$ac_objext; then
3779 ac_cv_prog_cc_c89=$ac_arg
3780 else
3781 echo "$as_me: failed program was:" >&5
3782 sed 's/^/| /' conftest.$ac_ext >&5
3787 rm -f core conftest.err conftest.$ac_objext
3788 test "x$ac_cv_prog_cc_c89" != "xno" && break
3789 done
3790 rm -f conftest.$ac_ext
3791 CC=$ac_save_CC
3794 # AC_CACHE_VAL
3795 case "x$ac_cv_prog_cc_c89" in
3797 { echo "$as_me:$LINENO: result: none needed" >&5
3798 echo "${ECHO_T}none needed" >&6; } ;;
3799 xno)
3800 { echo "$as_me:$LINENO: result: unsupported" >&5
3801 echo "${ECHO_T}unsupported" >&6; } ;;
3803 CC="$CC $ac_cv_prog_cc_c89"
3804 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3805 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3806 esac
3809 ac_ext=c
3810 ac_cpp='$CPP $CPPFLAGS'
3811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3816 # On Suns, sometimes $CPP names a directory.
3817 if test -n "$CPP" && test -d "$CPP"; then
3818 CPP=
3821 ## If not using gcc, and on Solaris, and no CPP specified, see if
3822 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3823 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3824 test x"$CPP" = x; then
3825 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3826 echo $ECHO_N "checking whether we are using a Sun C compiler... $ECHO_C" >&6; }
3828 if test "${emacs_cv_sunpro_c+set}" = set; then
3829 echo $ECHO_N "(cached) $ECHO_C" >&6
3830 else
3831 cat >conftest.$ac_ext <<_ACEOF
3832 /* confdefs.h. */
3833 _ACEOF
3834 cat confdefs.h >>conftest.$ac_ext
3835 cat >>conftest.$ac_ext <<_ACEOF
3836 /* end confdefs.h. */
3839 main ()
3841 #ifndef __SUNPRO_C
3842 fail;
3843 #endif
3846 return 0;
3848 _ACEOF
3849 rm -f conftest.$ac_objext conftest$ac_exeext
3850 if { (ac_try="$ac_link"
3851 case "(($ac_try" in
3852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3853 *) ac_try_echo=$ac_try;;
3854 esac
3855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3856 (eval "$ac_link") 2>conftest.er1
3857 ac_status=$?
3858 grep -v '^ *+' conftest.er1 >conftest.err
3859 rm -f conftest.er1
3860 cat conftest.err >&5
3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862 (exit $ac_status); } && {
3863 test -z "$ac_c_werror_flag" ||
3864 test ! -s conftest.err
3865 } && test -s conftest$ac_exeext &&
3866 $as_test_x conftest$ac_exeext; then
3867 emacs_cv_sunpro_c=yes
3868 else
3869 echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3872 emacs_cv_sunpro_c=no
3875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3876 conftest$ac_exeext conftest.$ac_ext
3879 { echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
3880 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3882 if test x"$emacs_cv_sunpro_c" = xyes; then
3883 NON_GNU_CPP="$CC -E -Xs"
3887 #### Some systems specify a CPP to use unless we are using GCC.
3888 #### Now that we know whether we are using GCC, we can decide whether
3889 #### to use that one.
3890 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3891 then
3892 CPP="$NON_GNU_CPP"
3895 #### Some systems specify a CC to use unless we are using GCC.
3896 #### Now that we know whether we are using GCC, we can decide whether
3897 #### to use that one.
3898 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3899 test x$cc_specified != xyes
3900 then
3901 CC="$NON_GNU_CC"
3904 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3905 then
3906 CC="$CC $GCC_TEST_OPTIONS"
3909 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3910 then
3911 CC="$CC $NON_GCC_TEST_OPTIONS"
3915 cat >>confdefs.h <<\_ACEOF
3916 #define _GNU_SOURCE 1
3917 _ACEOF
3920 ac_ext=c
3921 ac_cpp='$CPP $CPPFLAGS'
3922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3925 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3926 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3927 # On Suns, sometimes $CPP names a directory.
3928 if test -n "$CPP" && test -d "$CPP"; then
3929 CPP=
3931 if test -z "$CPP"; then
3932 if test "${ac_cv_prog_CPP+set}" = set; then
3933 echo $ECHO_N "(cached) $ECHO_C" >&6
3934 else
3935 # Double quotes because CPP needs to be expanded
3936 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3938 ac_preproc_ok=false
3939 for ac_c_preproc_warn_flag in '' yes
3941 # Use a header file that comes with gcc, so configuring glibc
3942 # with a fresh cross-compiler works.
3943 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3944 # <limits.h> exists even on freestanding compilers.
3945 # On the NeXT, cc -E runs the code through the compiler's parser,
3946 # not just through cpp. "Syntax error" is here to catch this case.
3947 cat >conftest.$ac_ext <<_ACEOF
3948 /* confdefs.h. */
3949 _ACEOF
3950 cat confdefs.h >>conftest.$ac_ext
3951 cat >>conftest.$ac_ext <<_ACEOF
3952 /* end confdefs.h. */
3953 #ifdef __STDC__
3954 # include <limits.h>
3955 #else
3956 # include <assert.h>
3957 #endif
3958 Syntax error
3959 _ACEOF
3960 if { (ac_try="$ac_cpp conftest.$ac_ext"
3961 case "(($ac_try" in
3962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3963 *) ac_try_echo=$ac_try;;
3964 esac
3965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3966 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3967 ac_status=$?
3968 grep -v '^ *+' conftest.er1 >conftest.err
3969 rm -f conftest.er1
3970 cat conftest.err >&5
3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); } >/dev/null && {
3973 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3974 test ! -s conftest.err
3975 }; then
3977 else
3978 echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3981 # Broken: fails on valid input.
3982 continue
3985 rm -f conftest.err conftest.$ac_ext
3987 # OK, works on sane cases. Now check whether nonexistent headers
3988 # can be detected and how.
3989 cat >conftest.$ac_ext <<_ACEOF
3990 /* confdefs.h. */
3991 _ACEOF
3992 cat confdefs.h >>conftest.$ac_ext
3993 cat >>conftest.$ac_ext <<_ACEOF
3994 /* end confdefs.h. */
3995 #include <ac_nonexistent.h>
3996 _ACEOF
3997 if { (ac_try="$ac_cpp conftest.$ac_ext"
3998 case "(($ac_try" in
3999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4000 *) ac_try_echo=$ac_try;;
4001 esac
4002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4003 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4004 ac_status=$?
4005 grep -v '^ *+' conftest.er1 >conftest.err
4006 rm -f conftest.er1
4007 cat conftest.err >&5
4008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); } >/dev/null && {
4010 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4011 test ! -s conftest.err
4012 }; then
4013 # Broken: success on invalid input.
4014 continue
4015 else
4016 echo "$as_me: failed program was:" >&5
4017 sed 's/^/| /' conftest.$ac_ext >&5
4019 # Passes both tests.
4020 ac_preproc_ok=:
4021 break
4024 rm -f conftest.err conftest.$ac_ext
4026 done
4027 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4028 rm -f conftest.err conftest.$ac_ext
4029 if $ac_preproc_ok; then
4030 break
4033 done
4034 ac_cv_prog_CPP=$CPP
4037 CPP=$ac_cv_prog_CPP
4038 else
4039 ac_cv_prog_CPP=$CPP
4041 { echo "$as_me:$LINENO: result: $CPP" >&5
4042 echo "${ECHO_T}$CPP" >&6; }
4043 ac_preproc_ok=false
4044 for ac_c_preproc_warn_flag in '' yes
4046 # Use a header file that comes with gcc, so configuring glibc
4047 # with a fresh cross-compiler works.
4048 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4049 # <limits.h> exists even on freestanding compilers.
4050 # On the NeXT, cc -E runs the code through the compiler's parser,
4051 # not just through cpp. "Syntax error" is here to catch this case.
4052 cat >conftest.$ac_ext <<_ACEOF
4053 /* confdefs.h. */
4054 _ACEOF
4055 cat confdefs.h >>conftest.$ac_ext
4056 cat >>conftest.$ac_ext <<_ACEOF
4057 /* end confdefs.h. */
4058 #ifdef __STDC__
4059 # include <limits.h>
4060 #else
4061 # include <assert.h>
4062 #endif
4063 Syntax error
4064 _ACEOF
4065 if { (ac_try="$ac_cpp conftest.$ac_ext"
4066 case "(($ac_try" in
4067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4068 *) ac_try_echo=$ac_try;;
4069 esac
4070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4071 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4072 ac_status=$?
4073 grep -v '^ *+' conftest.er1 >conftest.err
4074 rm -f conftest.er1
4075 cat conftest.err >&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); } >/dev/null && {
4078 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4079 test ! -s conftest.err
4080 }; then
4082 else
4083 echo "$as_me: failed program was:" >&5
4084 sed 's/^/| /' conftest.$ac_ext >&5
4086 # Broken: fails on valid input.
4087 continue
4090 rm -f conftest.err conftest.$ac_ext
4092 # OK, works on sane cases. Now check whether nonexistent headers
4093 # can be detected and how.
4094 cat >conftest.$ac_ext <<_ACEOF
4095 /* confdefs.h. */
4096 _ACEOF
4097 cat confdefs.h >>conftest.$ac_ext
4098 cat >>conftest.$ac_ext <<_ACEOF
4099 /* end confdefs.h. */
4100 #include <ac_nonexistent.h>
4101 _ACEOF
4102 if { (ac_try="$ac_cpp conftest.$ac_ext"
4103 case "(($ac_try" in
4104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4105 *) ac_try_echo=$ac_try;;
4106 esac
4107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4108 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4109 ac_status=$?
4110 grep -v '^ *+' conftest.er1 >conftest.err
4111 rm -f conftest.er1
4112 cat conftest.err >&5
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); } >/dev/null && {
4115 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4116 test ! -s conftest.err
4117 }; then
4118 # Broken: success on invalid input.
4119 continue
4120 else
4121 echo "$as_me: failed program was:" >&5
4122 sed 's/^/| /' conftest.$ac_ext >&5
4124 # Passes both tests.
4125 ac_preproc_ok=:
4126 break
4129 rm -f conftest.err conftest.$ac_ext
4131 done
4132 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4133 rm -f conftest.err conftest.$ac_ext
4134 if $ac_preproc_ok; then
4136 else
4137 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4138 See \`config.log' for more details." >&5
4139 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4140 See \`config.log' for more details." >&2;}
4141 { (exit 1); exit 1; }; }
4144 ac_ext=c
4145 ac_cpp='$CPP $CPPFLAGS'
4146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4151 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4152 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4153 if test "${ac_cv_path_GREP+set}" = set; then
4154 echo $ECHO_N "(cached) $ECHO_C" >&6
4155 else
4156 # Extract the first word of "grep ggrep" to use in msg output
4157 if test -z "$GREP"; then
4158 set dummy grep ggrep; ac_prog_name=$2
4159 if test "${ac_cv_path_GREP+set}" = set; then
4160 echo $ECHO_N "(cached) $ECHO_C" >&6
4161 else
4162 ac_path_GREP_found=false
4163 # Loop through the user's path and test for each of PROGNAME-LIST
4164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4165 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4167 IFS=$as_save_IFS
4168 test -z "$as_dir" && as_dir=.
4169 for ac_prog in grep ggrep; do
4170 for ac_exec_ext in '' $ac_executable_extensions; do
4171 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4172 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4173 # Check for GNU ac_path_GREP and select it if it is found.
4174 # Check for GNU $ac_path_GREP
4175 case `"$ac_path_GREP" --version 2>&1` in
4176 *GNU*)
4177 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4179 ac_count=0
4180 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4181 while :
4183 cat "conftest.in" "conftest.in" >"conftest.tmp"
4184 mv "conftest.tmp" "conftest.in"
4185 cp "conftest.in" "conftest.nl"
4186 echo 'GREP' >> "conftest.nl"
4187 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4188 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4189 ac_count=`expr $ac_count + 1`
4190 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4191 # Best one so far, save it but keep looking for a better one
4192 ac_cv_path_GREP="$ac_path_GREP"
4193 ac_path_GREP_max=$ac_count
4195 # 10*(2^10) chars as input seems more than enough
4196 test $ac_count -gt 10 && break
4197 done
4198 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4199 esac
4202 $ac_path_GREP_found && break 3
4203 done
4204 done
4206 done
4207 IFS=$as_save_IFS
4212 GREP="$ac_cv_path_GREP"
4213 if test -z "$GREP"; then
4214 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4215 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4216 { (exit 1); exit 1; }; }
4219 else
4220 ac_cv_path_GREP=$GREP
4225 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4226 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4227 GREP="$ac_cv_path_GREP"
4230 { echo "$as_me:$LINENO: checking for egrep" >&5
4231 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4232 if test "${ac_cv_path_EGREP+set}" = set; then
4233 echo $ECHO_N "(cached) $ECHO_C" >&6
4234 else
4235 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4236 then ac_cv_path_EGREP="$GREP -E"
4237 else
4238 # Extract the first word of "egrep" to use in msg output
4239 if test -z "$EGREP"; then
4240 set dummy egrep; ac_prog_name=$2
4241 if test "${ac_cv_path_EGREP+set}" = set; then
4242 echo $ECHO_N "(cached) $ECHO_C" >&6
4243 else
4244 ac_path_EGREP_found=false
4245 # Loop through the user's path and test for each of PROGNAME-LIST
4246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4247 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4249 IFS=$as_save_IFS
4250 test -z "$as_dir" && as_dir=.
4251 for ac_prog in egrep; do
4252 for ac_exec_ext in '' $ac_executable_extensions; do
4253 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4254 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4255 # Check for GNU ac_path_EGREP and select it if it is found.
4256 # Check for GNU $ac_path_EGREP
4257 case `"$ac_path_EGREP" --version 2>&1` in
4258 *GNU*)
4259 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4261 ac_count=0
4262 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4263 while :
4265 cat "conftest.in" "conftest.in" >"conftest.tmp"
4266 mv "conftest.tmp" "conftest.in"
4267 cp "conftest.in" "conftest.nl"
4268 echo 'EGREP' >> "conftest.nl"
4269 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4270 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4271 ac_count=`expr $ac_count + 1`
4272 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4273 # Best one so far, save it but keep looking for a better one
4274 ac_cv_path_EGREP="$ac_path_EGREP"
4275 ac_path_EGREP_max=$ac_count
4277 # 10*(2^10) chars as input seems more than enough
4278 test $ac_count -gt 10 && break
4279 done
4280 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4281 esac
4284 $ac_path_EGREP_found && break 3
4285 done
4286 done
4288 done
4289 IFS=$as_save_IFS
4294 EGREP="$ac_cv_path_EGREP"
4295 if test -z "$EGREP"; then
4296 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4297 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4298 { (exit 1); exit 1; }; }
4301 else
4302 ac_cv_path_EGREP=$EGREP
4308 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4309 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4310 EGREP="$ac_cv_path_EGREP"
4314 { echo "$as_me:$LINENO: checking for AIX" >&5
4315 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4316 cat >conftest.$ac_ext <<_ACEOF
4317 /* confdefs.h. */
4318 _ACEOF
4319 cat confdefs.h >>conftest.$ac_ext
4320 cat >>conftest.$ac_ext <<_ACEOF
4321 /* end confdefs.h. */
4322 #ifdef _AIX
4324 #endif
4326 _ACEOF
4327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4328 $EGREP "yes" >/dev/null 2>&1; then
4329 { echo "$as_me:$LINENO: result: yes" >&5
4330 echo "${ECHO_T}yes" >&6; }
4331 cat >>confdefs.h <<\_ACEOF
4332 #define _ALL_SOURCE 1
4333 _ACEOF
4335 else
4336 { echo "$as_me:$LINENO: result: no" >&5
4337 echo "${ECHO_T}no" >&6; }
4339 rm -f conftest*
4342 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4343 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4344 if test "${ac_cv_header_stdc+set}" = set; then
4345 echo $ECHO_N "(cached) $ECHO_C" >&6
4346 else
4347 cat >conftest.$ac_ext <<_ACEOF
4348 /* confdefs.h. */
4349 _ACEOF
4350 cat confdefs.h >>conftest.$ac_ext
4351 cat >>conftest.$ac_ext <<_ACEOF
4352 /* end confdefs.h. */
4353 #include <stdlib.h>
4354 #include <stdarg.h>
4355 #include <string.h>
4356 #include <float.h>
4359 main ()
4363 return 0;
4365 _ACEOF
4366 rm -f conftest.$ac_objext
4367 if { (ac_try="$ac_compile"
4368 case "(($ac_try" in
4369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4370 *) ac_try_echo=$ac_try;;
4371 esac
4372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4373 (eval "$ac_compile") 2>conftest.er1
4374 ac_status=$?
4375 grep -v '^ *+' conftest.er1 >conftest.err
4376 rm -f conftest.er1
4377 cat conftest.err >&5
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); } && {
4380 test -z "$ac_c_werror_flag" ||
4381 test ! -s conftest.err
4382 } && test -s conftest.$ac_objext; then
4383 ac_cv_header_stdc=yes
4384 else
4385 echo "$as_me: failed program was:" >&5
4386 sed 's/^/| /' conftest.$ac_ext >&5
4388 ac_cv_header_stdc=no
4391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4393 if test $ac_cv_header_stdc = yes; then
4394 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4395 cat >conftest.$ac_ext <<_ACEOF
4396 /* confdefs.h. */
4397 _ACEOF
4398 cat confdefs.h >>conftest.$ac_ext
4399 cat >>conftest.$ac_ext <<_ACEOF
4400 /* end confdefs.h. */
4401 #include <string.h>
4403 _ACEOF
4404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4405 $EGREP "memchr" >/dev/null 2>&1; then
4407 else
4408 ac_cv_header_stdc=no
4410 rm -f conftest*
4414 if test $ac_cv_header_stdc = yes; then
4415 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4416 cat >conftest.$ac_ext <<_ACEOF
4417 /* confdefs.h. */
4418 _ACEOF
4419 cat confdefs.h >>conftest.$ac_ext
4420 cat >>conftest.$ac_ext <<_ACEOF
4421 /* end confdefs.h. */
4422 #include <stdlib.h>
4424 _ACEOF
4425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4426 $EGREP "free" >/dev/null 2>&1; then
4428 else
4429 ac_cv_header_stdc=no
4431 rm -f conftest*
4435 if test $ac_cv_header_stdc = yes; then
4436 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4437 if test "$cross_compiling" = yes; then
4439 else
4440 cat >conftest.$ac_ext <<_ACEOF
4441 /* confdefs.h. */
4442 _ACEOF
4443 cat confdefs.h >>conftest.$ac_ext
4444 cat >>conftest.$ac_ext <<_ACEOF
4445 /* end confdefs.h. */
4446 #include <ctype.h>
4447 #include <stdlib.h>
4448 #if ((' ' & 0x0FF) == 0x020)
4449 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4450 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4451 #else
4452 # define ISLOWER(c) \
4453 (('a' <= (c) && (c) <= 'i') \
4454 || ('j' <= (c) && (c) <= 'r') \
4455 || ('s' <= (c) && (c) <= 'z'))
4456 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4457 #endif
4459 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4461 main ()
4463 int i;
4464 for (i = 0; i < 256; i++)
4465 if (XOR (islower (i), ISLOWER (i))
4466 || toupper (i) != TOUPPER (i))
4467 return 2;
4468 return 0;
4470 _ACEOF
4471 rm -f conftest$ac_exeext
4472 if { (ac_try="$ac_link"
4473 case "(($ac_try" in
4474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4475 *) ac_try_echo=$ac_try;;
4476 esac
4477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4478 (eval "$ac_link") 2>&5
4479 ac_status=$?
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4482 { (case "(($ac_try" in
4483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4484 *) ac_try_echo=$ac_try;;
4485 esac
4486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4487 (eval "$ac_try") 2>&5
4488 ac_status=$?
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); }; }; then
4492 else
4493 echo "$as_me: program exited with status $ac_status" >&5
4494 echo "$as_me: failed program was:" >&5
4495 sed 's/^/| /' conftest.$ac_ext >&5
4497 ( exit $ac_status )
4498 ac_cv_header_stdc=no
4500 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4506 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4507 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4508 if test $ac_cv_header_stdc = yes; then
4510 cat >>confdefs.h <<\_ACEOF
4511 #define STDC_HEADERS 1
4512 _ACEOF
4516 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4526 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4527 inttypes.h stdint.h unistd.h
4529 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4530 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4531 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4532 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4533 echo $ECHO_N "(cached) $ECHO_C" >&6
4534 else
4535 cat >conftest.$ac_ext <<_ACEOF
4536 /* confdefs.h. */
4537 _ACEOF
4538 cat confdefs.h >>conftest.$ac_ext
4539 cat >>conftest.$ac_ext <<_ACEOF
4540 /* end confdefs.h. */
4541 $ac_includes_default
4543 #include <$ac_header>
4544 _ACEOF
4545 rm -f conftest.$ac_objext
4546 if { (ac_try="$ac_compile"
4547 case "(($ac_try" in
4548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4549 *) ac_try_echo=$ac_try;;
4550 esac
4551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4552 (eval "$ac_compile") 2>conftest.er1
4553 ac_status=$?
4554 grep -v '^ *+' conftest.er1 >conftest.err
4555 rm -f conftest.er1
4556 cat conftest.err >&5
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); } && {
4559 test -z "$ac_c_werror_flag" ||
4560 test ! -s conftest.err
4561 } && test -s conftest.$ac_objext; then
4562 eval "$as_ac_Header=yes"
4563 else
4564 echo "$as_me: failed program was:" >&5
4565 sed 's/^/| /' conftest.$ac_ext >&5
4567 eval "$as_ac_Header=no"
4570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4572 ac_res=`eval echo '${'$as_ac_Header'}'`
4573 { echo "$as_me:$LINENO: result: $ac_res" >&5
4574 echo "${ECHO_T}$ac_res" >&6; }
4575 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4576 cat >>confdefs.h <<_ACEOF
4577 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4578 _ACEOF
4582 done
4585 if test "${ac_cv_header_minix_config_h+set}" = set; then
4586 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4587 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4588 if test "${ac_cv_header_minix_config_h+set}" = set; then
4589 echo $ECHO_N "(cached) $ECHO_C" >&6
4591 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4592 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4593 else
4594 # Is the header compilable?
4595 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4596 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4597 cat >conftest.$ac_ext <<_ACEOF
4598 /* confdefs.h. */
4599 _ACEOF
4600 cat confdefs.h >>conftest.$ac_ext
4601 cat >>conftest.$ac_ext <<_ACEOF
4602 /* end confdefs.h. */
4603 $ac_includes_default
4604 #include <minix/config.h>
4605 _ACEOF
4606 rm -f conftest.$ac_objext
4607 if { (ac_try="$ac_compile"
4608 case "(($ac_try" in
4609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4610 *) ac_try_echo=$ac_try;;
4611 esac
4612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4613 (eval "$ac_compile") 2>conftest.er1
4614 ac_status=$?
4615 grep -v '^ *+' conftest.er1 >conftest.err
4616 rm -f conftest.er1
4617 cat conftest.err >&5
4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 (exit $ac_status); } && {
4620 test -z "$ac_c_werror_flag" ||
4621 test ! -s conftest.err
4622 } && test -s conftest.$ac_objext; then
4623 ac_header_compiler=yes
4624 else
4625 echo "$as_me: failed program was:" >&5
4626 sed 's/^/| /' conftest.$ac_ext >&5
4628 ac_header_compiler=no
4631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4632 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4633 echo "${ECHO_T}$ac_header_compiler" >&6; }
4635 # Is the header present?
4636 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4637 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4638 cat >conftest.$ac_ext <<_ACEOF
4639 /* confdefs.h. */
4640 _ACEOF
4641 cat confdefs.h >>conftest.$ac_ext
4642 cat >>conftest.$ac_ext <<_ACEOF
4643 /* end confdefs.h. */
4644 #include <minix/config.h>
4645 _ACEOF
4646 if { (ac_try="$ac_cpp conftest.$ac_ext"
4647 case "(($ac_try" in
4648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4649 *) ac_try_echo=$ac_try;;
4650 esac
4651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4652 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4653 ac_status=$?
4654 grep -v '^ *+' conftest.er1 >conftest.err
4655 rm -f conftest.er1
4656 cat conftest.err >&5
4657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); } >/dev/null && {
4659 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4660 test ! -s conftest.err
4661 }; then
4662 ac_header_preproc=yes
4663 else
4664 echo "$as_me: failed program was:" >&5
4665 sed 's/^/| /' conftest.$ac_ext >&5
4667 ac_header_preproc=no
4670 rm -f conftest.err conftest.$ac_ext
4671 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4672 echo "${ECHO_T}$ac_header_preproc" >&6; }
4674 # So? What about this header?
4675 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4676 yes:no: )
4677 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4678 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4679 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4680 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4681 ac_header_preproc=yes
4683 no:yes:* )
4684 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4685 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4686 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4687 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4688 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4689 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4690 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4691 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4692 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4693 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4694 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4695 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4698 esac
4699 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4700 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4701 if test "${ac_cv_header_minix_config_h+set}" = set; then
4702 echo $ECHO_N "(cached) $ECHO_C" >&6
4703 else
4704 ac_cv_header_minix_config_h=$ac_header_preproc
4706 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4707 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4710 if test $ac_cv_header_minix_config_h = yes; then
4711 MINIX=yes
4712 else
4713 MINIX=
4717 if test "$MINIX" = yes; then
4719 cat >>confdefs.h <<\_ACEOF
4720 #define _POSIX_SOURCE 1
4721 _ACEOF
4724 cat >>confdefs.h <<\_ACEOF
4725 #define _POSIX_1_SOURCE 2
4726 _ACEOF
4729 cat >>confdefs.h <<\_ACEOF
4730 #define _MINIX 1
4731 _ACEOF
4745 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4746 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4747 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4748 echo $ECHO_N "(cached) $ECHO_C" >&6
4749 else
4750 cat >conftest.$ac_ext <<_ACEOF
4751 /* confdefs.h. */
4752 _ACEOF
4753 cat confdefs.h >>conftest.$ac_ext
4754 cat >>conftest.$ac_ext <<_ACEOF
4755 /* end confdefs.h. */
4757 # define __EXTENSIONS__ 1
4758 $ac_includes_default
4760 main ()
4764 return 0;
4766 _ACEOF
4767 rm -f conftest.$ac_objext
4768 if { (ac_try="$ac_compile"
4769 case "(($ac_try" in
4770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4771 *) ac_try_echo=$ac_try;;
4772 esac
4773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4774 (eval "$ac_compile") 2>conftest.er1
4775 ac_status=$?
4776 grep -v '^ *+' conftest.er1 >conftest.err
4777 rm -f conftest.er1
4778 cat conftest.err >&5
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); } && {
4781 test -z "$ac_c_werror_flag" ||
4782 test ! -s conftest.err
4783 } && test -s conftest.$ac_objext; then
4784 ac_cv_safe_to_define___extensions__=yes
4785 else
4786 echo "$as_me: failed program was:" >&5
4787 sed 's/^/| /' conftest.$ac_ext >&5
4789 ac_cv_safe_to_define___extensions__=no
4792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4794 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4795 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4796 test $ac_cv_safe_to_define___extensions__ = yes &&
4797 cat >>confdefs.h <<\_ACEOF
4798 #define __EXTENSIONS__ 1
4799 _ACEOF
4801 cat >>confdefs.h <<\_ACEOF
4802 #define _POSIX_PTHREAD_SEMANTICS 1
4803 _ACEOF
4805 cat >>confdefs.h <<\_ACEOF
4806 #define _TANDEM_SOURCE 1
4807 _ACEOF
4811 ### Use -Wno-pointer-sign if the compiler supports it
4812 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4813 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4814 SAVE_CFLAGS="$CFLAGS"
4815 CFLAGS="$CFLAGS -Wno-pointer-sign"
4816 cat >conftest.$ac_ext <<_ACEOF
4817 /* confdefs.h. */
4818 _ACEOF
4819 cat confdefs.h >>conftest.$ac_ext
4820 cat >>conftest.$ac_ext <<_ACEOF
4821 /* end confdefs.h. */
4824 main ()
4828 return 0;
4830 _ACEOF
4831 rm -f conftest.$ac_objext
4832 if { (ac_try="$ac_compile"
4833 case "(($ac_try" in
4834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4835 *) ac_try_echo=$ac_try;;
4836 esac
4837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4838 (eval "$ac_compile") 2>conftest.er1
4839 ac_status=$?
4840 grep -v '^ *+' conftest.er1 >conftest.err
4841 rm -f conftest.er1
4842 cat conftest.err >&5
4843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844 (exit $ac_status); } && {
4845 test -z "$ac_c_werror_flag" ||
4846 test ! -s conftest.err
4847 } && test -s conftest.$ac_objext; then
4848 has_option=yes
4849 else
4850 echo "$as_me: failed program was:" >&5
4851 sed 's/^/| /' conftest.$ac_ext >&5
4853 has_option=no
4856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4857 if test $has_option = yes; then
4858 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4860 { echo "$as_me:$LINENO: result: $has_option" >&5
4861 echo "${ECHO_T}$has_option" >&6; }
4862 CFLAGS="$SAVE_CFLAGS"
4863 unset has_option
4864 unset SAVE_CFLAGS
4866 #### Some other nice autoconf tests.
4868 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4869 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4870 LN_S=$as_ln_s
4871 if test "$LN_S" = "ln -s"; then
4872 { echo "$as_me:$LINENO: result: yes" >&5
4873 echo "${ECHO_T}yes" >&6; }
4874 else
4875 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4876 echo "${ECHO_T}no, using $LN_S" >&6; }
4879 ac_ext=c
4880 ac_cpp='$CPP $CPPFLAGS'
4881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4884 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4885 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4886 # On Suns, sometimes $CPP names a directory.
4887 if test -n "$CPP" && test -d "$CPP"; then
4888 CPP=
4890 if test -z "$CPP"; then
4891 if test "${ac_cv_prog_CPP+set}" = set; then
4892 echo $ECHO_N "(cached) $ECHO_C" >&6
4893 else
4894 # Double quotes because CPP needs to be expanded
4895 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4897 ac_preproc_ok=false
4898 for ac_c_preproc_warn_flag in '' yes
4900 # Use a header file that comes with gcc, so configuring glibc
4901 # with a fresh cross-compiler works.
4902 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4903 # <limits.h> exists even on freestanding compilers.
4904 # On the NeXT, cc -E runs the code through the compiler's parser,
4905 # not just through cpp. "Syntax error" is here to catch this case.
4906 cat >conftest.$ac_ext <<_ACEOF
4907 /* confdefs.h. */
4908 _ACEOF
4909 cat confdefs.h >>conftest.$ac_ext
4910 cat >>conftest.$ac_ext <<_ACEOF
4911 /* end confdefs.h. */
4912 #ifdef __STDC__
4913 # include <limits.h>
4914 #else
4915 # include <assert.h>
4916 #endif
4917 Syntax error
4918 _ACEOF
4919 if { (ac_try="$ac_cpp conftest.$ac_ext"
4920 case "(($ac_try" in
4921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4922 *) ac_try_echo=$ac_try;;
4923 esac
4924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4925 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4926 ac_status=$?
4927 grep -v '^ *+' conftest.er1 >conftest.err
4928 rm -f conftest.er1
4929 cat conftest.err >&5
4930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931 (exit $ac_status); } >/dev/null && {
4932 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4933 test ! -s conftest.err
4934 }; then
4936 else
4937 echo "$as_me: failed program was:" >&5
4938 sed 's/^/| /' conftest.$ac_ext >&5
4940 # Broken: fails on valid input.
4941 continue
4944 rm -f conftest.err conftest.$ac_ext
4946 # OK, works on sane cases. Now check whether nonexistent headers
4947 # can be detected and how.
4948 cat >conftest.$ac_ext <<_ACEOF
4949 /* confdefs.h. */
4950 _ACEOF
4951 cat confdefs.h >>conftest.$ac_ext
4952 cat >>conftest.$ac_ext <<_ACEOF
4953 /* end confdefs.h. */
4954 #include <ac_nonexistent.h>
4955 _ACEOF
4956 if { (ac_try="$ac_cpp conftest.$ac_ext"
4957 case "(($ac_try" in
4958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4959 *) ac_try_echo=$ac_try;;
4960 esac
4961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4962 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4963 ac_status=$?
4964 grep -v '^ *+' conftest.er1 >conftest.err
4965 rm -f conftest.er1
4966 cat conftest.err >&5
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); } >/dev/null && {
4969 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4970 test ! -s conftest.err
4971 }; then
4972 # Broken: success on invalid input.
4973 continue
4974 else
4975 echo "$as_me: failed program was:" >&5
4976 sed 's/^/| /' conftest.$ac_ext >&5
4978 # Passes both tests.
4979 ac_preproc_ok=:
4980 break
4983 rm -f conftest.err conftest.$ac_ext
4985 done
4986 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4987 rm -f conftest.err conftest.$ac_ext
4988 if $ac_preproc_ok; then
4989 break
4992 done
4993 ac_cv_prog_CPP=$CPP
4996 CPP=$ac_cv_prog_CPP
4997 else
4998 ac_cv_prog_CPP=$CPP
5000 { echo "$as_me:$LINENO: result: $CPP" >&5
5001 echo "${ECHO_T}$CPP" >&6; }
5002 ac_preproc_ok=false
5003 for ac_c_preproc_warn_flag in '' yes
5005 # Use a header file that comes with gcc, so configuring glibc
5006 # with a fresh cross-compiler works.
5007 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5008 # <limits.h> exists even on freestanding compilers.
5009 # On the NeXT, cc -E runs the code through the compiler's parser,
5010 # not just through cpp. "Syntax error" is here to catch this case.
5011 cat >conftest.$ac_ext <<_ACEOF
5012 /* confdefs.h. */
5013 _ACEOF
5014 cat confdefs.h >>conftest.$ac_ext
5015 cat >>conftest.$ac_ext <<_ACEOF
5016 /* end confdefs.h. */
5017 #ifdef __STDC__
5018 # include <limits.h>
5019 #else
5020 # include <assert.h>
5021 #endif
5022 Syntax error
5023 _ACEOF
5024 if { (ac_try="$ac_cpp conftest.$ac_ext"
5025 case "(($ac_try" in
5026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5027 *) ac_try_echo=$ac_try;;
5028 esac
5029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5030 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5031 ac_status=$?
5032 grep -v '^ *+' conftest.er1 >conftest.err
5033 rm -f conftest.er1
5034 cat conftest.err >&5
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); } >/dev/null && {
5037 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5038 test ! -s conftest.err
5039 }; then
5041 else
5042 echo "$as_me: failed program was:" >&5
5043 sed 's/^/| /' conftest.$ac_ext >&5
5045 # Broken: fails on valid input.
5046 continue
5049 rm -f conftest.err conftest.$ac_ext
5051 # OK, works on sane cases. Now check whether nonexistent headers
5052 # can be detected and how.
5053 cat >conftest.$ac_ext <<_ACEOF
5054 /* confdefs.h. */
5055 _ACEOF
5056 cat confdefs.h >>conftest.$ac_ext
5057 cat >>conftest.$ac_ext <<_ACEOF
5058 /* end confdefs.h. */
5059 #include <ac_nonexistent.h>
5060 _ACEOF
5061 if { (ac_try="$ac_cpp conftest.$ac_ext"
5062 case "(($ac_try" in
5063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5064 *) ac_try_echo=$ac_try;;
5065 esac
5066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5067 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5068 ac_status=$?
5069 grep -v '^ *+' conftest.er1 >conftest.err
5070 rm -f conftest.er1
5071 cat conftest.err >&5
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); } >/dev/null && {
5074 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5075 test ! -s conftest.err
5076 }; then
5077 # Broken: success on invalid input.
5078 continue
5079 else
5080 echo "$as_me: failed program was:" >&5
5081 sed 's/^/| /' conftest.$ac_ext >&5
5083 # Passes both tests.
5084 ac_preproc_ok=:
5085 break
5088 rm -f conftest.err conftest.$ac_ext
5090 done
5091 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5092 rm -f conftest.err conftest.$ac_ext
5093 if $ac_preproc_ok; then
5095 else
5096 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5097 See \`config.log' for more details." >&5
5098 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5099 See \`config.log' for more details." >&2;}
5100 { (exit 1); exit 1; }; }
5103 ac_ext=c
5104 ac_cpp='$CPP $CPPFLAGS'
5105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5109 # Find a good install program. We prefer a C program (faster),
5110 # so one script is as good as another. But avoid the broken or
5111 # incompatible versions:
5112 # SysV /etc/install, /usr/sbin/install
5113 # SunOS /usr/etc/install
5114 # IRIX /sbin/install
5115 # AIX /bin/install
5116 # AmigaOS /C/install, which installs bootblocks on floppy discs
5117 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5118 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5119 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5120 # OS/2's system install, which has a completely different semantic
5121 # ./install, which can be erroneously created by make from ./install.sh.
5122 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5123 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5124 if test -z "$INSTALL"; then
5125 if test "${ac_cv_path_install+set}" = set; then
5126 echo $ECHO_N "(cached) $ECHO_C" >&6
5127 else
5128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5129 for as_dir in $PATH
5131 IFS=$as_save_IFS
5132 test -z "$as_dir" && as_dir=.
5133 # Account for people who put trailing slashes in PATH elements.
5134 case $as_dir/ in
5135 ./ | .// | /cC/* | \
5136 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5137 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5138 /usr/ucb/* ) ;;
5140 # OSF1 and SCO ODT 3.0 have their own names for install.
5141 # Don't use installbsd from OSF since it installs stuff as root
5142 # by default.
5143 for ac_prog in ginstall scoinst install; do
5144 for ac_exec_ext in '' $ac_executable_extensions; do
5145 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5146 if test $ac_prog = install &&
5147 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5148 # AIX install. It has an incompatible calling convention.
5150 elif test $ac_prog = install &&
5151 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5152 # program-specific install script used by HP pwplus--don't use.
5154 else
5155 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5156 break 3
5159 done
5160 done
5162 esac
5163 done
5164 IFS=$as_save_IFS
5168 if test "${ac_cv_path_install+set}" = set; then
5169 INSTALL=$ac_cv_path_install
5170 else
5171 # As a last resort, use the slow shell script. Don't cache a
5172 # value for INSTALL within a source directory, because that will
5173 # break other packages using the cache if that directory is
5174 # removed, or if the value is a relative name.
5175 INSTALL=$ac_install_sh
5178 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5179 echo "${ECHO_T}$INSTALL" >&6; }
5181 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5182 # It thinks the first close brace ends the variable substitution.
5183 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5185 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5187 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5189 if test "x$RANLIB" = x; then
5190 if test -n "$ac_tool_prefix"; then
5191 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5192 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5193 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5195 if test "${ac_cv_prog_RANLIB+set}" = set; then
5196 echo $ECHO_N "(cached) $ECHO_C" >&6
5197 else
5198 if test -n "$RANLIB"; then
5199 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5200 else
5201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5202 for as_dir in $PATH
5204 IFS=$as_save_IFS
5205 test -z "$as_dir" && as_dir=.
5206 for ac_exec_ext in '' $ac_executable_extensions; do
5207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5208 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5210 break 2
5212 done
5213 done
5214 IFS=$as_save_IFS
5218 RANLIB=$ac_cv_prog_RANLIB
5219 if test -n "$RANLIB"; then
5220 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5221 echo "${ECHO_T}$RANLIB" >&6; }
5222 else
5223 { echo "$as_me:$LINENO: result: no" >&5
5224 echo "${ECHO_T}no" >&6; }
5229 if test -z "$ac_cv_prog_RANLIB"; then
5230 ac_ct_RANLIB=$RANLIB
5231 # Extract the first word of "ranlib", so it can be a program name with args.
5232 set dummy ranlib; ac_word=$2
5233 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5235 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5236 echo $ECHO_N "(cached) $ECHO_C" >&6
5237 else
5238 if test -n "$ac_ct_RANLIB"; then
5239 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5240 else
5241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5242 for as_dir in $PATH
5244 IFS=$as_save_IFS
5245 test -z "$as_dir" && as_dir=.
5246 for ac_exec_ext in '' $ac_executable_extensions; do
5247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5248 ac_cv_prog_ac_ct_RANLIB="ranlib"
5249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5250 break 2
5252 done
5253 done
5254 IFS=$as_save_IFS
5258 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5259 if test -n "$ac_ct_RANLIB"; then
5260 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5261 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5262 else
5263 { echo "$as_me:$LINENO: result: no" >&5
5264 echo "${ECHO_T}no" >&6; }
5267 if test "x$ac_ct_RANLIB" = x; then
5268 RANLIB=":"
5269 else
5270 case $cross_compiling:$ac_tool_warned in
5271 yes:)
5272 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5273 whose name does not start with the host triplet. If you think this
5274 configuration is useful to you, please write to autoconf@gnu.org." >&5
5275 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5276 whose name does not start with the host triplet. If you think this
5277 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5278 ac_tool_warned=yes ;;
5279 esac
5280 RANLIB=$ac_ct_RANLIB
5282 else
5283 RANLIB="$ac_cv_prog_RANLIB"
5287 # Extract the first word of "install-info", so it can be a program name with args.
5288 set dummy install-info; ac_word=$2
5289 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5291 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5292 echo $ECHO_N "(cached) $ECHO_C" >&6
5293 else
5294 case $INSTALL_INFO in
5295 [\\/]* | ?:[\\/]*)
5296 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5300 for as_dir in $PATH
5302 IFS=$as_save_IFS
5303 test -z "$as_dir" && as_dir=.
5304 for ac_exec_ext in '' $ac_executable_extensions; do
5305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5306 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5308 break 2
5310 done
5311 done
5312 IFS=$as_save_IFS
5315 esac
5317 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5318 if test -n "$INSTALL_INFO"; then
5319 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5320 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5321 else
5322 { echo "$as_me:$LINENO: result: no" >&5
5323 echo "${ECHO_T}no" >&6; }
5327 # Extract the first word of "install-info", so it can be a program name with args.
5328 set dummy install-info; ac_word=$2
5329 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5331 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5332 echo $ECHO_N "(cached) $ECHO_C" >&6
5333 else
5334 case $INSTALL_INFO in
5335 [\\/]* | ?:[\\/]*)
5336 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5340 for as_dir in /usr/sbin
5342 IFS=$as_save_IFS
5343 test -z "$as_dir" && as_dir=.
5344 for ac_exec_ext in '' $ac_executable_extensions; do
5345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5346 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5348 break 2
5350 done
5351 done
5352 IFS=$as_save_IFS
5355 esac
5357 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5358 if test -n "$INSTALL_INFO"; then
5359 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5360 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5361 else
5362 { echo "$as_me:$LINENO: result: no" >&5
5363 echo "${ECHO_T}no" >&6; }
5367 # Extract the first word of "install-info", so it can be a program name with args.
5368 set dummy install-info; ac_word=$2
5369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5371 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5372 echo $ECHO_N "(cached) $ECHO_C" >&6
5373 else
5374 case $INSTALL_INFO in
5375 [\\/]* | ?:[\\/]*)
5376 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5380 for as_dir in /sbin
5382 IFS=$as_save_IFS
5383 test -z "$as_dir" && as_dir=.
5384 for ac_exec_ext in '' $ac_executable_extensions; do
5385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5386 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5388 break 2
5390 done
5391 done
5392 IFS=$as_save_IFS
5394 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5396 esac
5398 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5399 if test -n "$INSTALL_INFO"; then
5400 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5401 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5402 else
5403 { echo "$as_me:$LINENO: result: no" >&5
5404 echo "${ECHO_T}no" >&6; }
5408 # Extract the first word of "gzip", so it can be a program name with args.
5409 set dummy gzip; ac_word=$2
5410 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5412 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5413 echo $ECHO_N "(cached) $ECHO_C" >&6
5414 else
5415 case $GZIP_PROG in
5416 [\\/]* | ?:[\\/]*)
5417 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5421 for as_dir in $PATH
5423 IFS=$as_save_IFS
5424 test -z "$as_dir" && as_dir=.
5425 for ac_exec_ext in '' $ac_executable_extensions; do
5426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5427 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5429 break 2
5431 done
5432 done
5433 IFS=$as_save_IFS
5436 esac
5438 GZIP_PROG=$ac_cv_path_GZIP_PROG
5439 if test -n "$GZIP_PROG"; then
5440 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5441 echo "${ECHO_T}$GZIP_PROG" >&6; }
5442 else
5443 { echo "$as_me:$LINENO: result: no" >&5
5444 echo "${ECHO_T}no" >&6; }
5450 ## Need makeinfo >= 4.6 (?) to build the manuals.
5451 # Extract the first word of "makeinfo", so it can be a program name with args.
5452 set dummy makeinfo; ac_word=$2
5453 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5455 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5456 echo $ECHO_N "(cached) $ECHO_C" >&6
5457 else
5458 case $MAKEINFO in
5459 [\\/]* | ?:[\\/]*)
5460 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464 for as_dir in $PATH
5466 IFS=$as_save_IFS
5467 test -z "$as_dir" && as_dir=.
5468 for ac_exec_ext in '' $ac_executable_extensions; do
5469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5470 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5472 break 2
5474 done
5475 done
5476 IFS=$as_save_IFS
5478 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5480 esac
5482 MAKEINFO=$ac_cv_path_MAKEINFO
5483 if test -n "$MAKEINFO"; then
5484 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5485 echo "${ECHO_T}$MAKEINFO" >&6; }
5486 else
5487 { echo "$as_me:$LINENO: result: no" >&5
5488 echo "${ECHO_T}no" >&6; }
5492 if test "$MAKEINFO" != "no" && \
5493 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
5494 MAKEINFO=no
5497 ## Makeinfo is unusual. For a released Emacs, the manuals are
5498 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5499 ## therefore in the category of "special tools" not normally required, which
5500 ## configure does not have to check for (eg autoconf itself).
5501 ## In a CVS checkout on the other hand, the manuals are not included.
5502 ## So makeinfo is a requirement to build from CVS, and configure
5503 ## should test for it as it does for any other build requirement.
5504 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5505 ## with pre-built manuals, from a CVS checkout.
5506 if test "$MAKEINFO" = "no"; then
5507 if test "x${with_makeinfo}" = "xno"; then
5508 MAKEINFO=off
5509 elif ! test -e $srcdir/info/emacs; then
5510 { { echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5511 source tree does not seem to have pre-built manuals in the \`info' directory.
5512 Either install a suitable version of makeinfo, or re-run configure
5513 with the \`--without-makeinfo' option to build without the manuals. " >&5
5514 echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5515 source tree does not seem to have pre-built manuals in the \`info' directory.
5516 Either install a suitable version of makeinfo, or re-run configure
5517 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5518 { (exit 1); exit 1; }; }
5523 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5524 then
5525 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5528 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5529 then
5530 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5534 late_LDFLAGS=$LDFLAGS
5535 if test "$GCC" = yes; then
5536 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5537 else
5538 LDFLAGS="$LDFLAGS -znocombreloc"
5541 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5542 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5543 cat >conftest.$ac_ext <<_ACEOF
5544 main(){return 0;}
5545 _ACEOF
5546 rm -f conftest.$ac_objext conftest$ac_exeext
5547 if { (ac_try="$ac_link"
5548 case "(($ac_try" in
5549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5550 *) ac_try_echo=$ac_try;;
5551 esac
5552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5553 (eval "$ac_link") 2>conftest.er1
5554 ac_status=$?
5555 grep -v '^ *+' conftest.er1 >conftest.err
5556 rm -f conftest.er1
5557 cat conftest.err >&5
5558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559 (exit $ac_status); } && {
5560 test -z "$ac_c_werror_flag" ||
5561 test ! -s conftest.err
5562 } && test -s conftest$ac_exeext &&
5563 $as_test_x conftest$ac_exeext; then
5564 { echo "$as_me:$LINENO: result: yes" >&5
5565 echo "${ECHO_T}yes" >&6; }
5566 else
5567 echo "$as_me: failed program was:" >&5
5568 sed 's/^/| /' conftest.$ac_ext >&5
5570 LDFLAGS=$late_LDFLAGS
5571 { echo "$as_me:$LINENO: result: no" >&5
5572 echo "${ECHO_T}no" >&6; }
5575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5576 conftest$ac_exeext conftest.$ac_ext
5578 #### Extract some information from the operating system and machine files.
5580 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5581 - which libraries the lib-src programs will want, and
5582 - whether the GNU malloc routines are usable..." >&5
5583 echo "$as_me: checking the machine- and system-dependent files to find out
5584 - which libraries the lib-src programs will want, and
5585 - whether the GNU malloc routines are usable..." >&6;}
5587 ### First figure out CFLAGS (which we use for running the compiler here)
5588 ### and REAL_CFLAGS (which we use for real compilation).
5589 ### The two are the same except on a few systems, where they are made
5590 ### different to work around various lossages. For example,
5591 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5592 ### as implying static linking.
5594 ### If the CFLAGS env var is specified, we use that value
5595 ### instead of the default.
5597 ### It's not important that this name contain the PID; you can't run
5598 ### two configures in the same directory and have anything work
5599 ### anyway.
5600 tempcname="conftest.c"
5602 echo '
5603 #include "'${srcdir}'/src/'${opsysfile}'"
5604 #include "'${srcdir}'/src/'${machfile}'"
5605 #ifndef LIBS_MACHINE
5606 #define LIBS_MACHINE
5607 #endif
5608 #ifndef LIBS_SYSTEM
5609 #define LIBS_SYSTEM
5610 #endif
5611 #ifndef C_SWITCH_SYSTEM
5612 #define C_SWITCH_SYSTEM
5613 #endif
5614 #ifndef C_SWITCH_MACHINE
5615 #define C_SWITCH_MACHINE
5616 #endif
5617 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5618 configure___ c_switch_system=C_SWITCH_SYSTEM
5619 configure___ c_switch_machine=C_SWITCH_MACHINE
5621 #ifndef LIB_X11_LIB
5622 #define LIB_X11_LIB -lX11
5623 #endif
5625 #ifndef LIBX11_SYSTEM
5626 #define LIBX11_SYSTEM
5627 #endif
5628 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5630 #ifdef UNEXEC
5631 configure___ unexec=UNEXEC
5632 #else
5633 configure___ unexec=unexec.o
5634 #endif
5636 #ifdef SYSTEM_MALLOC
5637 configure___ system_malloc=yes
5638 #else
5639 configure___ system_malloc=no
5640 #endif
5642 #ifdef USE_MMAP_FOR_BUFFERS
5643 configure___ use_mmap_for_buffers=yes
5644 #else
5645 configure___ use_mmap_for_buffers=no
5646 #endif
5648 #ifndef C_DEBUG_SWITCH
5649 #define C_DEBUG_SWITCH -g
5650 #endif
5652 #ifndef C_OPTIMIZE_SWITCH
5653 #ifdef __GNUC__
5654 #define C_OPTIMIZE_SWITCH -O2
5655 #else
5656 #define C_OPTIMIZE_SWITCH -O
5657 #endif
5658 #endif
5660 #ifndef C_WARNINGS_SWITCH
5661 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5662 #endif
5664 #ifndef LD_SWITCH_MACHINE
5665 #define LD_SWITCH_MACHINE
5666 #endif
5668 #ifndef LD_SWITCH_SYSTEM
5669 #define LD_SWITCH_SYSTEM
5670 #endif
5672 #ifndef LD_SWITCH_X_SITE_AUX
5673 #define LD_SWITCH_X_SITE_AUX
5674 #endif
5676 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5677 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5679 #ifdef THIS_IS_CONFIGURE
5681 /* Get the CFLAGS for tests in configure. */
5682 #ifdef __GNUC__
5683 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5684 #else
5685 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5686 #endif
5688 #else /* not THIS_IS_CONFIGURE */
5690 /* Get the CFLAGS for real compilation. */
5691 #ifdef __GNUC__
5692 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5693 #else
5694 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5695 #endif
5697 #endif /* not THIS_IS_CONFIGURE */
5698 ' > ${tempcname}
5700 # The value of CPP is a quoted variable reference, so we need to do this
5701 # to get its actual value...
5702 CPP=`eval "echo $CPP"`
5703 eval `${CPP} -Isrc ${tempcname} \
5704 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5705 if test "x$SPECIFIED_CFLAGS" = x; then
5706 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5707 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5708 else
5709 REAL_CFLAGS="$CFLAGS"
5711 rm ${tempcname}
5713 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5715 ### Make sure subsequent tests use flags consistent with the build flags.
5717 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5718 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5719 else
5720 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5725 # Check whether --enable-largefile was given.
5726 if test "${enable_largefile+set}" = set; then
5727 enableval=$enable_largefile;
5730 if test "$enable_largefile" != no; then
5732 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5733 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5734 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5735 echo $ECHO_N "(cached) $ECHO_C" >&6
5736 else
5737 ac_cv_sys_largefile_CC=no
5738 if test "$GCC" != yes; then
5739 ac_save_CC=$CC
5740 while :; do
5741 # IRIX 6.2 and later do not support large files by default,
5742 # so use the C compiler's -n32 option if that helps.
5743 cat >conftest.$ac_ext <<_ACEOF
5744 /* confdefs.h. */
5745 _ACEOF
5746 cat confdefs.h >>conftest.$ac_ext
5747 cat >>conftest.$ac_ext <<_ACEOF
5748 /* end confdefs.h. */
5749 #include <sys/types.h>
5750 /* Check that off_t can represent 2**63 - 1 correctly.
5751 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5752 since some C++ compilers masquerading as C compilers
5753 incorrectly reject 9223372036854775807. */
5754 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5755 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5756 && LARGE_OFF_T % 2147483647 == 1)
5757 ? 1 : -1];
5759 main ()
5763 return 0;
5765 _ACEOF
5766 rm -f conftest.$ac_objext
5767 if { (ac_try="$ac_compile"
5768 case "(($ac_try" in
5769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5770 *) ac_try_echo=$ac_try;;
5771 esac
5772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5773 (eval "$ac_compile") 2>conftest.er1
5774 ac_status=$?
5775 grep -v '^ *+' conftest.er1 >conftest.err
5776 rm -f conftest.er1
5777 cat conftest.err >&5
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); } && {
5780 test -z "$ac_c_werror_flag" ||
5781 test ! -s conftest.err
5782 } && test -s conftest.$ac_objext; then
5783 break
5784 else
5785 echo "$as_me: failed program was:" >&5
5786 sed 's/^/| /' conftest.$ac_ext >&5
5791 rm -f core conftest.err conftest.$ac_objext
5792 CC="$CC -n32"
5793 rm -f conftest.$ac_objext
5794 if { (ac_try="$ac_compile"
5795 case "(($ac_try" in
5796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5797 *) ac_try_echo=$ac_try;;
5798 esac
5799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5800 (eval "$ac_compile") 2>conftest.er1
5801 ac_status=$?
5802 grep -v '^ *+' conftest.er1 >conftest.err
5803 rm -f conftest.er1
5804 cat conftest.err >&5
5805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806 (exit $ac_status); } && {
5807 test -z "$ac_c_werror_flag" ||
5808 test ! -s conftest.err
5809 } && test -s conftest.$ac_objext; then
5810 ac_cv_sys_largefile_CC=' -n32'; break
5811 else
5812 echo "$as_me: failed program was:" >&5
5813 sed 's/^/| /' conftest.$ac_ext >&5
5818 rm -f core conftest.err conftest.$ac_objext
5819 break
5820 done
5821 CC=$ac_save_CC
5822 rm -f conftest.$ac_ext
5825 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5826 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5827 if test "$ac_cv_sys_largefile_CC" != no; then
5828 CC=$CC$ac_cv_sys_largefile_CC
5831 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5832 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5833 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5834 echo $ECHO_N "(cached) $ECHO_C" >&6
5835 else
5836 while :; do
5837 cat >conftest.$ac_ext <<_ACEOF
5838 /* confdefs.h. */
5839 _ACEOF
5840 cat confdefs.h >>conftest.$ac_ext
5841 cat >>conftest.$ac_ext <<_ACEOF
5842 /* end confdefs.h. */
5843 #include <sys/types.h>
5844 /* Check that off_t can represent 2**63 - 1 correctly.
5845 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5846 since some C++ compilers masquerading as C compilers
5847 incorrectly reject 9223372036854775807. */
5848 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5849 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5850 && LARGE_OFF_T % 2147483647 == 1)
5851 ? 1 : -1];
5853 main ()
5857 return 0;
5859 _ACEOF
5860 rm -f conftest.$ac_objext
5861 if { (ac_try="$ac_compile"
5862 case "(($ac_try" in
5863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5864 *) ac_try_echo=$ac_try;;
5865 esac
5866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5867 (eval "$ac_compile") 2>conftest.er1
5868 ac_status=$?
5869 grep -v '^ *+' conftest.er1 >conftest.err
5870 rm -f conftest.er1
5871 cat conftest.err >&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); } && {
5874 test -z "$ac_c_werror_flag" ||
5875 test ! -s conftest.err
5876 } && test -s conftest.$ac_objext; then
5877 ac_cv_sys_file_offset_bits=no; break
5878 else
5879 echo "$as_me: failed program was:" >&5
5880 sed 's/^/| /' conftest.$ac_ext >&5
5885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5886 cat >conftest.$ac_ext <<_ACEOF
5887 /* confdefs.h. */
5888 _ACEOF
5889 cat confdefs.h >>conftest.$ac_ext
5890 cat >>conftest.$ac_ext <<_ACEOF
5891 /* end confdefs.h. */
5892 #define _FILE_OFFSET_BITS 64
5893 #include <sys/types.h>
5894 /* Check that off_t can represent 2**63 - 1 correctly.
5895 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5896 since some C++ compilers masquerading as C compilers
5897 incorrectly reject 9223372036854775807. */
5898 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5899 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5900 && LARGE_OFF_T % 2147483647 == 1)
5901 ? 1 : -1];
5903 main ()
5907 return 0;
5909 _ACEOF
5910 rm -f conftest.$ac_objext
5911 if { (ac_try="$ac_compile"
5912 case "(($ac_try" in
5913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5914 *) ac_try_echo=$ac_try;;
5915 esac
5916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5917 (eval "$ac_compile") 2>conftest.er1
5918 ac_status=$?
5919 grep -v '^ *+' conftest.er1 >conftest.err
5920 rm -f conftest.er1
5921 cat conftest.err >&5
5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923 (exit $ac_status); } && {
5924 test -z "$ac_c_werror_flag" ||
5925 test ! -s conftest.err
5926 } && test -s conftest.$ac_objext; then
5927 ac_cv_sys_file_offset_bits=64; break
5928 else
5929 echo "$as_me: failed program was:" >&5
5930 sed 's/^/| /' conftest.$ac_ext >&5
5935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5936 ac_cv_sys_file_offset_bits=unknown
5937 break
5938 done
5940 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5941 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5942 case $ac_cv_sys_file_offset_bits in #(
5943 no | unknown) ;;
5945 cat >>confdefs.h <<_ACEOF
5946 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5947 _ACEOF
5949 esac
5950 rm -f conftest*
5951 if test $ac_cv_sys_file_offset_bits = unknown; then
5952 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5953 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5954 if test "${ac_cv_sys_large_files+set}" = set; then
5955 echo $ECHO_N "(cached) $ECHO_C" >&6
5956 else
5957 while :; do
5958 cat >conftest.$ac_ext <<_ACEOF
5959 /* confdefs.h. */
5960 _ACEOF
5961 cat confdefs.h >>conftest.$ac_ext
5962 cat >>conftest.$ac_ext <<_ACEOF
5963 /* end confdefs.h. */
5964 #include <sys/types.h>
5965 /* Check that off_t can represent 2**63 - 1 correctly.
5966 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5967 since some C++ compilers masquerading as C compilers
5968 incorrectly reject 9223372036854775807. */
5969 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5970 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5971 && LARGE_OFF_T % 2147483647 == 1)
5972 ? 1 : -1];
5974 main ()
5978 return 0;
5980 _ACEOF
5981 rm -f conftest.$ac_objext
5982 if { (ac_try="$ac_compile"
5983 case "(($ac_try" in
5984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5985 *) ac_try_echo=$ac_try;;
5986 esac
5987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5988 (eval "$ac_compile") 2>conftest.er1
5989 ac_status=$?
5990 grep -v '^ *+' conftest.er1 >conftest.err
5991 rm -f conftest.er1
5992 cat conftest.err >&5
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); } && {
5995 test -z "$ac_c_werror_flag" ||
5996 test ! -s conftest.err
5997 } && test -s conftest.$ac_objext; then
5998 ac_cv_sys_large_files=no; break
5999 else
6000 echo "$as_me: failed program was:" >&5
6001 sed 's/^/| /' conftest.$ac_ext >&5
6006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6007 cat >conftest.$ac_ext <<_ACEOF
6008 /* confdefs.h. */
6009 _ACEOF
6010 cat confdefs.h >>conftest.$ac_ext
6011 cat >>conftest.$ac_ext <<_ACEOF
6012 /* end confdefs.h. */
6013 #define _LARGE_FILES 1
6014 #include <sys/types.h>
6015 /* Check that off_t can represent 2**63 - 1 correctly.
6016 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6017 since some C++ compilers masquerading as C compilers
6018 incorrectly reject 9223372036854775807. */
6019 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6020 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6021 && LARGE_OFF_T % 2147483647 == 1)
6022 ? 1 : -1];
6024 main ()
6028 return 0;
6030 _ACEOF
6031 rm -f conftest.$ac_objext
6032 if { (ac_try="$ac_compile"
6033 case "(($ac_try" in
6034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6035 *) ac_try_echo=$ac_try;;
6036 esac
6037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6038 (eval "$ac_compile") 2>conftest.er1
6039 ac_status=$?
6040 grep -v '^ *+' conftest.er1 >conftest.err
6041 rm -f conftest.er1
6042 cat conftest.err >&5
6043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044 (exit $ac_status); } && {
6045 test -z "$ac_c_werror_flag" ||
6046 test ! -s conftest.err
6047 } && test -s conftest.$ac_objext; then
6048 ac_cv_sys_large_files=1; break
6049 else
6050 echo "$as_me: failed program was:" >&5
6051 sed 's/^/| /' conftest.$ac_ext >&5
6056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6057 ac_cv_sys_large_files=unknown
6058 break
6059 done
6061 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6062 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
6063 case $ac_cv_sys_large_files in #(
6064 no | unknown) ;;
6066 cat >>confdefs.h <<_ACEOF
6067 #define _LARGE_FILES $ac_cv_sys_large_files
6068 _ACEOF
6070 esac
6071 rm -f conftest*
6077 ### The standard library on x86-64 and s390x GNU/Linux distributions can
6078 ### be located in either /usr/lib64 or /usr/lib.
6079 case "${canonical}" in
6080 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
6081 if test -d /usr/lib64; then
6083 cat >>confdefs.h <<\_ACEOF
6084 #define HAVE_LIB64_DIR 1
6085 _ACEOF
6088 esac
6093 if test "${with_sound}" != "no"; then
6094 # Sound support for GNU/Linux and the free BSDs.
6098 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6100 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6102 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6105 echo $ECHO_N "(cached) $ECHO_C" >&6
6107 ac_res=`eval echo '${'$as_ac_Header'}'`
6108 { echo "$as_me:$LINENO: result: $ac_res" >&5
6109 echo "${ECHO_T}$ac_res" >&6; }
6110 else
6111 # Is the header compilable?
6112 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6113 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6114 cat >conftest.$ac_ext <<_ACEOF
6115 /* confdefs.h. */
6116 _ACEOF
6117 cat confdefs.h >>conftest.$ac_ext
6118 cat >>conftest.$ac_ext <<_ACEOF
6119 /* end confdefs.h. */
6120 $ac_includes_default
6121 #include <$ac_header>
6122 _ACEOF
6123 rm -f conftest.$ac_objext
6124 if { (ac_try="$ac_compile"
6125 case "(($ac_try" in
6126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6127 *) ac_try_echo=$ac_try;;
6128 esac
6129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6130 (eval "$ac_compile") 2>conftest.er1
6131 ac_status=$?
6132 grep -v '^ *+' conftest.er1 >conftest.err
6133 rm -f conftest.er1
6134 cat conftest.err >&5
6135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136 (exit $ac_status); } && {
6137 test -z "$ac_c_werror_flag" ||
6138 test ! -s conftest.err
6139 } && test -s conftest.$ac_objext; then
6140 ac_header_compiler=yes
6141 else
6142 echo "$as_me: failed program was:" >&5
6143 sed 's/^/| /' conftest.$ac_ext >&5
6145 ac_header_compiler=no
6148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6149 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6150 echo "${ECHO_T}$ac_header_compiler" >&6; }
6152 # Is the header present?
6153 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6154 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6155 cat >conftest.$ac_ext <<_ACEOF
6156 /* confdefs.h. */
6157 _ACEOF
6158 cat confdefs.h >>conftest.$ac_ext
6159 cat >>conftest.$ac_ext <<_ACEOF
6160 /* end confdefs.h. */
6161 #include <$ac_header>
6162 _ACEOF
6163 if { (ac_try="$ac_cpp conftest.$ac_ext"
6164 case "(($ac_try" in
6165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6166 *) ac_try_echo=$ac_try;;
6167 esac
6168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6169 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6170 ac_status=$?
6171 grep -v '^ *+' conftest.er1 >conftest.err
6172 rm -f conftest.er1
6173 cat conftest.err >&5
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); } >/dev/null && {
6176 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6177 test ! -s conftest.err
6178 }; then
6179 ac_header_preproc=yes
6180 else
6181 echo "$as_me: failed program was:" >&5
6182 sed 's/^/| /' conftest.$ac_ext >&5
6184 ac_header_preproc=no
6187 rm -f conftest.err conftest.$ac_ext
6188 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6189 echo "${ECHO_T}$ac_header_preproc" >&6; }
6191 # So? What about this header?
6192 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6193 yes:no: )
6194 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6195 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6197 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6198 ac_header_preproc=yes
6200 no:yes:* )
6201 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6202 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6203 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6204 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6205 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6206 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6207 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6208 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6209 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6210 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6211 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6212 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6215 esac
6216 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6219 echo $ECHO_N "(cached) $ECHO_C" >&6
6220 else
6221 eval "$as_ac_Header=\$ac_header_preproc"
6223 ac_res=`eval echo '${'$as_ac_Header'}'`
6224 { echo "$as_me:$LINENO: result: $ac_res" >&5
6225 echo "${ECHO_T}$ac_res" >&6; }
6228 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6229 cat >>confdefs.h <<_ACEOF
6230 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6231 _ACEOF
6235 done
6237 # Emulation library used on NetBSD.
6238 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6239 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6240 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6241 echo $ECHO_N "(cached) $ECHO_C" >&6
6242 else
6243 ac_check_lib_save_LIBS=$LIBS
6244 LIBS="-lossaudio $LIBS"
6245 cat >conftest.$ac_ext <<_ACEOF
6246 /* confdefs.h. */
6247 _ACEOF
6248 cat confdefs.h >>conftest.$ac_ext
6249 cat >>conftest.$ac_ext <<_ACEOF
6250 /* end confdefs.h. */
6252 /* Override any GCC internal prototype to avoid an error.
6253 Use char because int might match the return type of a GCC
6254 builtin and then its argument prototype would still apply. */
6255 #ifdef __cplusplus
6256 extern "C"
6257 #endif
6258 char _oss_ioctl ();
6260 main ()
6262 return _oss_ioctl ();
6264 return 0;
6266 _ACEOF
6267 rm -f conftest.$ac_objext conftest$ac_exeext
6268 if { (ac_try="$ac_link"
6269 case "(($ac_try" in
6270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6271 *) ac_try_echo=$ac_try;;
6272 esac
6273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6274 (eval "$ac_link") 2>conftest.er1
6275 ac_status=$?
6276 grep -v '^ *+' conftest.er1 >conftest.err
6277 rm -f conftest.er1
6278 cat conftest.err >&5
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); } && {
6281 test -z "$ac_c_werror_flag" ||
6282 test ! -s conftest.err
6283 } && test -s conftest$ac_exeext &&
6284 $as_test_x conftest$ac_exeext; then
6285 ac_cv_lib_ossaudio__oss_ioctl=yes
6286 else
6287 echo "$as_me: failed program was:" >&5
6288 sed 's/^/| /' conftest.$ac_ext >&5
6290 ac_cv_lib_ossaudio__oss_ioctl=no
6293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6294 conftest$ac_exeext conftest.$ac_ext
6295 LIBS=$ac_check_lib_save_LIBS
6297 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6298 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6299 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6300 LIBSOUND=-lossaudio
6301 else
6302 LIBSOUND=
6307 ALSA_REQUIRED=1.0.0
6308 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6310 succeeded=no
6312 # Extract the first word of "pkg-config", so it can be a program name with args.
6313 set dummy pkg-config; ac_word=$2
6314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6316 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6317 echo $ECHO_N "(cached) $ECHO_C" >&6
6318 else
6319 case $PKG_CONFIG in
6320 [\\/]* | ?:[\\/]*)
6321 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6325 for as_dir in $PATH
6327 IFS=$as_save_IFS
6328 test -z "$as_dir" && as_dir=.
6329 for ac_exec_ext in '' $ac_executable_extensions; do
6330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6331 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6333 break 2
6335 done
6336 done
6337 IFS=$as_save_IFS
6339 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6341 esac
6343 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6344 if test -n "$PKG_CONFIG"; then
6345 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6346 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6347 else
6348 { echo "$as_me:$LINENO: result: no" >&5
6349 echo "${ECHO_T}no" >&6; }
6354 if test "$PKG_CONFIG" = "no" ; then
6355 HAVE_ALSA=no
6356 else
6357 PKG_CONFIG_MIN_VERSION=0.9.0
6358 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6359 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6360 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6362 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6363 { echo "$as_me:$LINENO: result: yes" >&5
6364 echo "${ECHO_T}yes" >&6; }
6365 succeeded=yes
6367 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6368 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6369 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6370 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6371 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6373 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6374 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6375 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6376 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6377 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6378 else
6379 { echo "$as_me:$LINENO: result: no" >&5
6380 echo "${ECHO_T}no" >&6; }
6381 ALSA_CFLAGS=""
6382 ALSA_LIBS=""
6383 ## If we have a custom action on failure, don't print errors, but
6384 ## do set a variable so people can do so.
6385 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6391 else
6392 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6393 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6397 if test $succeeded = yes; then
6398 HAVE_ALSA=yes
6399 else
6400 HAVE_ALSA=no
6403 if test $HAVE_ALSA = yes; then
6404 SAVE_CFLAGS="$CFLAGS"
6405 SAVE_LDFLAGS="$LDFLAGS"
6406 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6407 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6408 cat >conftest.$ac_ext <<_ACEOF
6409 /* confdefs.h. */
6410 _ACEOF
6411 cat confdefs.h >>conftest.$ac_ext
6412 cat >>conftest.$ac_ext <<_ACEOF
6413 /* end confdefs.h. */
6414 #include <asoundlib.h>
6416 main ()
6418 snd_lib_error_set_handler (0);
6420 return 0;
6422 _ACEOF
6423 rm -f conftest.$ac_objext
6424 if { (ac_try="$ac_compile"
6425 case "(($ac_try" in
6426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6427 *) ac_try_echo=$ac_try;;
6428 esac
6429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6430 (eval "$ac_compile") 2>conftest.er1
6431 ac_status=$?
6432 grep -v '^ *+' conftest.er1 >conftest.err
6433 rm -f conftest.er1
6434 cat conftest.err >&5
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); } && {
6437 test -z "$ac_c_werror_flag" ||
6438 test ! -s conftest.err
6439 } && test -s conftest.$ac_objext; then
6440 emacs_alsa_normal=yes
6441 else
6442 echo "$as_me: failed program was:" >&5
6443 sed 's/^/| /' conftest.$ac_ext >&5
6445 emacs_alsa_normal=no
6448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6449 if test "$emacs_alsa_normal" != yes; then
6450 cat >conftest.$ac_ext <<_ACEOF
6451 /* confdefs.h. */
6452 _ACEOF
6453 cat confdefs.h >>conftest.$ac_ext
6454 cat >>conftest.$ac_ext <<_ACEOF
6455 /* end confdefs.h. */
6456 #include <alsa/asoundlib.h>
6458 main ()
6460 snd_lib_error_set_handler (0);
6462 return 0;
6464 _ACEOF
6465 rm -f conftest.$ac_objext
6466 if { (ac_try="$ac_compile"
6467 case "(($ac_try" in
6468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6469 *) ac_try_echo=$ac_try;;
6470 esac
6471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6472 (eval "$ac_compile") 2>conftest.er1
6473 ac_status=$?
6474 grep -v '^ *+' conftest.er1 >conftest.err
6475 rm -f conftest.er1
6476 cat conftest.err >&5
6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478 (exit $ac_status); } && {
6479 test -z "$ac_c_werror_flag" ||
6480 test ! -s conftest.err
6481 } && test -s conftest.$ac_objext; then
6482 emacs_alsa_subdir=yes
6483 else
6484 echo "$as_me: failed program was:" >&5
6485 sed 's/^/| /' conftest.$ac_ext >&5
6487 emacs_alsa_subdir=no
6490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6491 if test "$emacs_alsa_subdir" != yes; then
6492 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6493 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6494 { (exit 1); exit 1; }; }
6496 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6499 CFLAGS="$SAVE_CFLAGS"
6500 LDFLAGS="$SAVE_LDFLAGS"
6501 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6502 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6504 cat >>confdefs.h <<\_ACEOF
6505 #define HAVE_ALSA 1
6506 _ACEOF
6537 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6538 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6539 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6540 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6541 sys/utsname.h pwd.h
6543 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6545 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6548 echo $ECHO_N "(cached) $ECHO_C" >&6
6550 ac_res=`eval echo '${'$as_ac_Header'}'`
6551 { echo "$as_me:$LINENO: result: $ac_res" >&5
6552 echo "${ECHO_T}$ac_res" >&6; }
6553 else
6554 # Is the header compilable?
6555 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6556 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6557 cat >conftest.$ac_ext <<_ACEOF
6558 /* confdefs.h. */
6559 _ACEOF
6560 cat confdefs.h >>conftest.$ac_ext
6561 cat >>conftest.$ac_ext <<_ACEOF
6562 /* end confdefs.h. */
6563 $ac_includes_default
6564 #include <$ac_header>
6565 _ACEOF
6566 rm -f conftest.$ac_objext
6567 if { (ac_try="$ac_compile"
6568 case "(($ac_try" in
6569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6570 *) ac_try_echo=$ac_try;;
6571 esac
6572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6573 (eval "$ac_compile") 2>conftest.er1
6574 ac_status=$?
6575 grep -v '^ *+' conftest.er1 >conftest.err
6576 rm -f conftest.er1
6577 cat conftest.err >&5
6578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579 (exit $ac_status); } && {
6580 test -z "$ac_c_werror_flag" ||
6581 test ! -s conftest.err
6582 } && test -s conftest.$ac_objext; then
6583 ac_header_compiler=yes
6584 else
6585 echo "$as_me: failed program was:" >&5
6586 sed 's/^/| /' conftest.$ac_ext >&5
6588 ac_header_compiler=no
6591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6592 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6593 echo "${ECHO_T}$ac_header_compiler" >&6; }
6595 # Is the header present?
6596 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6597 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6598 cat >conftest.$ac_ext <<_ACEOF
6599 /* confdefs.h. */
6600 _ACEOF
6601 cat confdefs.h >>conftest.$ac_ext
6602 cat >>conftest.$ac_ext <<_ACEOF
6603 /* end confdefs.h. */
6604 #include <$ac_header>
6605 _ACEOF
6606 if { (ac_try="$ac_cpp conftest.$ac_ext"
6607 case "(($ac_try" in
6608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6609 *) ac_try_echo=$ac_try;;
6610 esac
6611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6612 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6613 ac_status=$?
6614 grep -v '^ *+' conftest.er1 >conftest.err
6615 rm -f conftest.er1
6616 cat conftest.err >&5
6617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618 (exit $ac_status); } >/dev/null && {
6619 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6620 test ! -s conftest.err
6621 }; then
6622 ac_header_preproc=yes
6623 else
6624 echo "$as_me: failed program was:" >&5
6625 sed 's/^/| /' conftest.$ac_ext >&5
6627 ac_header_preproc=no
6630 rm -f conftest.err conftest.$ac_ext
6631 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6632 echo "${ECHO_T}$ac_header_preproc" >&6; }
6634 # So? What about this header?
6635 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6636 yes:no: )
6637 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6638 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6640 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6641 ac_header_preproc=yes
6643 no:yes:* )
6644 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6645 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6646 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6647 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6648 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6649 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6650 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6651 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6652 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6653 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6654 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6655 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6658 esac
6659 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6662 echo $ECHO_N "(cached) $ECHO_C" >&6
6663 else
6664 eval "$as_ac_Header=\$ac_header_preproc"
6666 ac_res=`eval echo '${'$as_ac_Header'}'`
6667 { echo "$as_me:$LINENO: result: $ac_res" >&5
6668 echo "${ECHO_T}$ac_res" >&6; }
6671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6672 cat >>confdefs.h <<_ACEOF
6673 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6674 _ACEOF
6678 done
6681 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6682 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6683 cat >conftest.$ac_ext <<_ACEOF
6684 /* confdefs.h. */
6685 _ACEOF
6686 cat confdefs.h >>conftest.$ac_ext
6687 cat >>conftest.$ac_ext <<_ACEOF
6688 /* end confdefs.h. */
6689 #include <sys/personality.h>
6691 main ()
6693 personality (PER_LINUX32)
6695 return 0;
6697 _ACEOF
6698 rm -f conftest.$ac_objext
6699 if { (ac_try="$ac_compile"
6700 case "(($ac_try" in
6701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6702 *) ac_try_echo=$ac_try;;
6703 esac
6704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6705 (eval "$ac_compile") 2>conftest.er1
6706 ac_status=$?
6707 grep -v '^ *+' conftest.er1 >conftest.err
6708 rm -f conftest.er1
6709 cat conftest.err >&5
6710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711 (exit $ac_status); } && {
6712 test -z "$ac_c_werror_flag" ||
6713 test ! -s conftest.err
6714 } && test -s conftest.$ac_objext; then
6715 emacs_cv_personality_linux32=yes
6716 else
6717 echo "$as_me: failed program was:" >&5
6718 sed 's/^/| /' conftest.$ac_ext >&5
6720 emacs_cv_personality_linux32=no
6723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6724 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6725 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6727 if test $emacs_cv_personality_linux32 = yes; then
6729 cat >>confdefs.h <<\_ACEOF
6730 #define HAVE_PERSONALITY_LINUX32 1
6731 _ACEOF
6736 for ac_header in term.h
6738 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6739 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6741 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6742 echo $ECHO_N "(cached) $ECHO_C" >&6
6743 else
6744 cat >conftest.$ac_ext <<_ACEOF
6745 /* confdefs.h. */
6746 _ACEOF
6747 cat confdefs.h >>conftest.$ac_ext
6748 cat >>conftest.$ac_ext <<_ACEOF
6749 /* end confdefs.h. */
6750 #include <$ac_header>
6751 _ACEOF
6752 if { (ac_try="$ac_cpp conftest.$ac_ext"
6753 case "(($ac_try" in
6754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6755 *) ac_try_echo=$ac_try;;
6756 esac
6757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6758 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6759 ac_status=$?
6760 grep -v '^ *+' conftest.er1 >conftest.err
6761 rm -f conftest.er1
6762 cat conftest.err >&5
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); } >/dev/null && {
6765 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6766 test ! -s conftest.err
6767 }; then
6768 eval "$as_ac_Header=yes"
6769 else
6770 echo "$as_me: failed program was:" >&5
6771 sed 's/^/| /' conftest.$ac_ext >&5
6773 eval "$as_ac_Header=no"
6776 rm -f conftest.err conftest.$ac_ext
6778 ac_res=`eval echo '${'$as_ac_Header'}'`
6779 { echo "$as_me:$LINENO: result: $ac_res" >&5
6780 echo "${ECHO_T}$ac_res" >&6; }
6781 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6782 cat >>confdefs.h <<_ACEOF
6783 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6784 _ACEOF
6788 done
6790 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6791 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6792 if test "${ac_cv_header_stdc+set}" = set; then
6793 echo $ECHO_N "(cached) $ECHO_C" >&6
6794 else
6795 cat >conftest.$ac_ext <<_ACEOF
6796 /* confdefs.h. */
6797 _ACEOF
6798 cat confdefs.h >>conftest.$ac_ext
6799 cat >>conftest.$ac_ext <<_ACEOF
6800 /* end confdefs.h. */
6801 #include <stdlib.h>
6802 #include <stdarg.h>
6803 #include <string.h>
6804 #include <float.h>
6807 main ()
6811 return 0;
6813 _ACEOF
6814 rm -f conftest.$ac_objext
6815 if { (ac_try="$ac_compile"
6816 case "(($ac_try" in
6817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6818 *) ac_try_echo=$ac_try;;
6819 esac
6820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6821 (eval "$ac_compile") 2>conftest.er1
6822 ac_status=$?
6823 grep -v '^ *+' conftest.er1 >conftest.err
6824 rm -f conftest.er1
6825 cat conftest.err >&5
6826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827 (exit $ac_status); } && {
6828 test -z "$ac_c_werror_flag" ||
6829 test ! -s conftest.err
6830 } && test -s conftest.$ac_objext; then
6831 ac_cv_header_stdc=yes
6832 else
6833 echo "$as_me: failed program was:" >&5
6834 sed 's/^/| /' conftest.$ac_ext >&5
6836 ac_cv_header_stdc=no
6839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6841 if test $ac_cv_header_stdc = yes; then
6842 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6843 cat >conftest.$ac_ext <<_ACEOF
6844 /* confdefs.h. */
6845 _ACEOF
6846 cat confdefs.h >>conftest.$ac_ext
6847 cat >>conftest.$ac_ext <<_ACEOF
6848 /* end confdefs.h. */
6849 #include <string.h>
6851 _ACEOF
6852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6853 $EGREP "memchr" >/dev/null 2>&1; then
6855 else
6856 ac_cv_header_stdc=no
6858 rm -f conftest*
6862 if test $ac_cv_header_stdc = yes; then
6863 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6864 cat >conftest.$ac_ext <<_ACEOF
6865 /* confdefs.h. */
6866 _ACEOF
6867 cat confdefs.h >>conftest.$ac_ext
6868 cat >>conftest.$ac_ext <<_ACEOF
6869 /* end confdefs.h. */
6870 #include <stdlib.h>
6872 _ACEOF
6873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6874 $EGREP "free" >/dev/null 2>&1; then
6876 else
6877 ac_cv_header_stdc=no
6879 rm -f conftest*
6883 if test $ac_cv_header_stdc = yes; then
6884 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6885 if test "$cross_compiling" = yes; then
6887 else
6888 cat >conftest.$ac_ext <<_ACEOF
6889 /* confdefs.h. */
6890 _ACEOF
6891 cat confdefs.h >>conftest.$ac_ext
6892 cat >>conftest.$ac_ext <<_ACEOF
6893 /* end confdefs.h. */
6894 #include <ctype.h>
6895 #include <stdlib.h>
6896 #if ((' ' & 0x0FF) == 0x020)
6897 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6898 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6899 #else
6900 # define ISLOWER(c) \
6901 (('a' <= (c) && (c) <= 'i') \
6902 || ('j' <= (c) && (c) <= 'r') \
6903 || ('s' <= (c) && (c) <= 'z'))
6904 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6905 #endif
6907 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6909 main ()
6911 int i;
6912 for (i = 0; i < 256; i++)
6913 if (XOR (islower (i), ISLOWER (i))
6914 || toupper (i) != TOUPPER (i))
6915 return 2;
6916 return 0;
6918 _ACEOF
6919 rm -f conftest$ac_exeext
6920 if { (ac_try="$ac_link"
6921 case "(($ac_try" in
6922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6923 *) ac_try_echo=$ac_try;;
6924 esac
6925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6926 (eval "$ac_link") 2>&5
6927 ac_status=$?
6928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6930 { (case "(($ac_try" in
6931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6932 *) ac_try_echo=$ac_try;;
6933 esac
6934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6935 (eval "$ac_try") 2>&5
6936 ac_status=$?
6937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6938 (exit $ac_status); }; }; then
6940 else
6941 echo "$as_me: program exited with status $ac_status" >&5
6942 echo "$as_me: failed program was:" >&5
6943 sed 's/^/| /' conftest.$ac_ext >&5
6945 ( exit $ac_status )
6946 ac_cv_header_stdc=no
6948 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6954 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6955 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6956 if test $ac_cv_header_stdc = yes; then
6958 cat >>confdefs.h <<\_ACEOF
6959 #define STDC_HEADERS 1
6960 _ACEOF
6964 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6965 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6966 if test "${ac_cv_header_time+set}" = set; then
6967 echo $ECHO_N "(cached) $ECHO_C" >&6
6968 else
6969 cat >conftest.$ac_ext <<_ACEOF
6970 /* confdefs.h. */
6971 _ACEOF
6972 cat confdefs.h >>conftest.$ac_ext
6973 cat >>conftest.$ac_ext <<_ACEOF
6974 /* end confdefs.h. */
6975 #include <sys/types.h>
6976 #include <sys/time.h>
6977 #include <time.h>
6980 main ()
6982 if ((struct tm *) 0)
6983 return 0;
6985 return 0;
6987 _ACEOF
6988 rm -f conftest.$ac_objext
6989 if { (ac_try="$ac_compile"
6990 case "(($ac_try" in
6991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6992 *) ac_try_echo=$ac_try;;
6993 esac
6994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6995 (eval "$ac_compile") 2>conftest.er1
6996 ac_status=$?
6997 grep -v '^ *+' conftest.er1 >conftest.err
6998 rm -f conftest.er1
6999 cat conftest.err >&5
7000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001 (exit $ac_status); } && {
7002 test -z "$ac_c_werror_flag" ||
7003 test ! -s conftest.err
7004 } && test -s conftest.$ac_objext; then
7005 ac_cv_header_time=yes
7006 else
7007 echo "$as_me: failed program was:" >&5
7008 sed 's/^/| /' conftest.$ac_ext >&5
7010 ac_cv_header_time=no
7013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7015 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7016 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7017 if test $ac_cv_header_time = yes; then
7019 cat >>confdefs.h <<\_ACEOF
7020 #define TIME_WITH_SYS_TIME 1
7021 _ACEOF
7025 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7026 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7027 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7028 echo $ECHO_N "(cached) $ECHO_C" >&6
7029 else
7030 cat >conftest.$ac_ext <<_ACEOF
7031 /* confdefs.h. */
7032 _ACEOF
7033 cat confdefs.h >>conftest.$ac_ext
7034 cat >>conftest.$ac_ext <<_ACEOF
7035 /* end confdefs.h. */
7036 $ac_includes_default
7038 main ()
7040 #ifndef sys_siglist
7041 (void) sys_siglist;
7042 #endif
7045 return 0;
7047 _ACEOF
7048 rm -f conftest.$ac_objext
7049 if { (ac_try="$ac_compile"
7050 case "(($ac_try" in
7051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7052 *) ac_try_echo=$ac_try;;
7053 esac
7054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7055 (eval "$ac_compile") 2>conftest.er1
7056 ac_status=$?
7057 grep -v '^ *+' conftest.er1 >conftest.err
7058 rm -f conftest.er1
7059 cat conftest.err >&5
7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061 (exit $ac_status); } && {
7062 test -z "$ac_c_werror_flag" ||
7063 test ! -s conftest.err
7064 } && test -s conftest.$ac_objext; then
7065 ac_cv_have_decl_sys_siglist=yes
7066 else
7067 echo "$as_me: failed program was:" >&5
7068 sed 's/^/| /' conftest.$ac_ext >&5
7070 ac_cv_have_decl_sys_siglist=no
7073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7075 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7076 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7077 if test $ac_cv_have_decl_sys_siglist = yes; then
7079 cat >>confdefs.h <<_ACEOF
7080 #define HAVE_DECL_SYS_SIGLIST 1
7081 _ACEOF
7084 else
7085 cat >>confdefs.h <<_ACEOF
7086 #define HAVE_DECL_SYS_SIGLIST 0
7087 _ACEOF
7093 if test $ac_cv_have_decl_sys_siglist != yes; then
7094 # For Tru64, at least:
7095 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7096 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7097 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7098 echo $ECHO_N "(cached) $ECHO_C" >&6
7099 else
7100 cat >conftest.$ac_ext <<_ACEOF
7101 /* confdefs.h. */
7102 _ACEOF
7103 cat confdefs.h >>conftest.$ac_ext
7104 cat >>conftest.$ac_ext <<_ACEOF
7105 /* end confdefs.h. */
7106 $ac_includes_default
7108 main ()
7110 #ifndef __sys_siglist
7111 (void) __sys_siglist;
7112 #endif
7115 return 0;
7117 _ACEOF
7118 rm -f conftest.$ac_objext
7119 if { (ac_try="$ac_compile"
7120 case "(($ac_try" in
7121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7122 *) ac_try_echo=$ac_try;;
7123 esac
7124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7125 (eval "$ac_compile") 2>conftest.er1
7126 ac_status=$?
7127 grep -v '^ *+' conftest.er1 >conftest.err
7128 rm -f conftest.er1
7129 cat conftest.err >&5
7130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131 (exit $ac_status); } && {
7132 test -z "$ac_c_werror_flag" ||
7133 test ! -s conftest.err
7134 } && test -s conftest.$ac_objext; then
7135 ac_cv_have_decl___sys_siglist=yes
7136 else
7137 echo "$as_me: failed program was:" >&5
7138 sed 's/^/| /' conftest.$ac_ext >&5
7140 ac_cv_have_decl___sys_siglist=no
7143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7145 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7146 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7147 if test $ac_cv_have_decl___sys_siglist = yes; then
7149 cat >>confdefs.h <<_ACEOF
7150 #define HAVE_DECL___SYS_SIGLIST 1
7151 _ACEOF
7154 else
7155 cat >>confdefs.h <<_ACEOF
7156 #define HAVE_DECL___SYS_SIGLIST 0
7157 _ACEOF
7163 if test $ac_cv_have_decl___sys_siglist = yes; then
7165 cat >>confdefs.h <<\_ACEOF
7166 #define sys_siglist __sys_siglist
7167 _ACEOF
7171 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7172 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7173 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7174 echo $ECHO_N "(cached) $ECHO_C" >&6
7175 else
7176 cat >conftest.$ac_ext <<_ACEOF
7177 /* confdefs.h. */
7178 _ACEOF
7179 cat confdefs.h >>conftest.$ac_ext
7180 cat >>conftest.$ac_ext <<_ACEOF
7181 /* end confdefs.h. */
7182 #include <sys/types.h>
7183 #include <sys/wait.h>
7184 #ifndef WEXITSTATUS
7185 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7186 #endif
7187 #ifndef WIFEXITED
7188 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7189 #endif
7192 main ()
7194 int s;
7195 wait (&s);
7196 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7198 return 0;
7200 _ACEOF
7201 rm -f conftest.$ac_objext
7202 if { (ac_try="$ac_compile"
7203 case "(($ac_try" in
7204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7205 *) ac_try_echo=$ac_try;;
7206 esac
7207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7208 (eval "$ac_compile") 2>conftest.er1
7209 ac_status=$?
7210 grep -v '^ *+' conftest.er1 >conftest.err
7211 rm -f conftest.er1
7212 cat conftest.err >&5
7213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214 (exit $ac_status); } && {
7215 test -z "$ac_c_werror_flag" ||
7216 test ! -s conftest.err
7217 } && test -s conftest.$ac_objext; then
7218 ac_cv_header_sys_wait_h=yes
7219 else
7220 echo "$as_me: failed program was:" >&5
7221 sed 's/^/| /' conftest.$ac_ext >&5
7223 ac_cv_header_sys_wait_h=no
7226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7228 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7229 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7230 if test $ac_cv_header_sys_wait_h = yes; then
7232 cat >>confdefs.h <<\_ACEOF
7233 #define HAVE_SYS_WAIT_H 1
7234 _ACEOF
7239 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7240 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7241 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7242 echo $ECHO_N "(cached) $ECHO_C" >&6
7243 else
7244 cat >conftest.$ac_ext <<_ACEOF
7245 /* confdefs.h. */
7246 _ACEOF
7247 cat confdefs.h >>conftest.$ac_ext
7248 cat >>conftest.$ac_ext <<_ACEOF
7249 /* end confdefs.h. */
7250 #ifdef TIME_WITH_SYS_TIME
7251 #include <sys/time.h>
7252 #include <time.h>
7253 #else
7254 #ifdef HAVE_SYS_TIME_H
7255 #include <sys/time.h>
7256 #else
7257 #include <time.h>
7258 #endif
7259 #endif
7260 #ifdef HAVE_UTIME_H
7261 #include <utime.h>
7262 #endif
7264 main ()
7266 static struct utimbuf x; x.actime = x.modtime;
7268 return 0;
7270 _ACEOF
7271 rm -f conftest.$ac_objext
7272 if { (ac_try="$ac_compile"
7273 case "(($ac_try" in
7274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7275 *) ac_try_echo=$ac_try;;
7276 esac
7277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7278 (eval "$ac_compile") 2>conftest.er1
7279 ac_status=$?
7280 grep -v '^ *+' conftest.er1 >conftest.err
7281 rm -f conftest.er1
7282 cat conftest.err >&5
7283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284 (exit $ac_status); } && {
7285 test -z "$ac_c_werror_flag" ||
7286 test ! -s conftest.err
7287 } && test -s conftest.$ac_objext; then
7288 emacs_cv_struct_utimbuf=yes
7289 else
7290 echo "$as_me: failed program was:" >&5
7291 sed 's/^/| /' conftest.$ac_ext >&5
7293 emacs_cv_struct_utimbuf=no
7296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7298 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7299 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7300 if test $emacs_cv_struct_utimbuf = yes; then
7302 cat >>confdefs.h <<\_ACEOF
7303 #define HAVE_STRUCT_UTIMBUF 1
7304 _ACEOF
7308 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7309 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7310 if test "${ac_cv_type_signal+set}" = set; then
7311 echo $ECHO_N "(cached) $ECHO_C" >&6
7312 else
7313 cat >conftest.$ac_ext <<_ACEOF
7314 /* confdefs.h. */
7315 _ACEOF
7316 cat confdefs.h >>conftest.$ac_ext
7317 cat >>conftest.$ac_ext <<_ACEOF
7318 /* end confdefs.h. */
7319 #include <sys/types.h>
7320 #include <signal.h>
7323 main ()
7325 return *(signal (0, 0)) (0) == 1;
7327 return 0;
7329 _ACEOF
7330 rm -f conftest.$ac_objext
7331 if { (ac_try="$ac_compile"
7332 case "(($ac_try" in
7333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7334 *) ac_try_echo=$ac_try;;
7335 esac
7336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7337 (eval "$ac_compile") 2>conftest.er1
7338 ac_status=$?
7339 grep -v '^ *+' conftest.er1 >conftest.err
7340 rm -f conftest.er1
7341 cat conftest.err >&5
7342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343 (exit $ac_status); } && {
7344 test -z "$ac_c_werror_flag" ||
7345 test ! -s conftest.err
7346 } && test -s conftest.$ac_objext; then
7347 ac_cv_type_signal=int
7348 else
7349 echo "$as_me: failed program was:" >&5
7350 sed 's/^/| /' conftest.$ac_ext >&5
7352 ac_cv_type_signal=void
7355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7357 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7358 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7360 cat >>confdefs.h <<_ACEOF
7361 #define RETSIGTYPE $ac_cv_type_signal
7362 _ACEOF
7366 { echo "$as_me:$LINENO: checking for speed_t" >&5
7367 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7368 if test "${emacs_cv_speed_t+set}" = set; then
7369 echo $ECHO_N "(cached) $ECHO_C" >&6
7370 else
7371 cat >conftest.$ac_ext <<_ACEOF
7372 /* confdefs.h. */
7373 _ACEOF
7374 cat confdefs.h >>conftest.$ac_ext
7375 cat >>conftest.$ac_ext <<_ACEOF
7376 /* end confdefs.h. */
7377 #include <termios.h>
7379 main ()
7381 speed_t x = 1;
7383 return 0;
7385 _ACEOF
7386 rm -f conftest.$ac_objext
7387 if { (ac_try="$ac_compile"
7388 case "(($ac_try" in
7389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7390 *) ac_try_echo=$ac_try;;
7391 esac
7392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7393 (eval "$ac_compile") 2>conftest.er1
7394 ac_status=$?
7395 grep -v '^ *+' conftest.er1 >conftest.err
7396 rm -f conftest.er1
7397 cat conftest.err >&5
7398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7399 (exit $ac_status); } && {
7400 test -z "$ac_c_werror_flag" ||
7401 test ! -s conftest.err
7402 } && test -s conftest.$ac_objext; then
7403 emacs_cv_speed_t=yes
7404 else
7405 echo "$as_me: failed program was:" >&5
7406 sed 's/^/| /' conftest.$ac_ext >&5
7408 emacs_cv_speed_t=no
7411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7413 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7414 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7415 if test $emacs_cv_speed_t = yes; then
7417 cat >>confdefs.h <<\_ACEOF
7418 #define HAVE_SPEED_T 1
7419 _ACEOF
7423 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7424 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7425 if test "${emacs_cv_struct_timeval+set}" = set; then
7426 echo $ECHO_N "(cached) $ECHO_C" >&6
7427 else
7428 cat >conftest.$ac_ext <<_ACEOF
7429 /* confdefs.h. */
7430 _ACEOF
7431 cat confdefs.h >>conftest.$ac_ext
7432 cat >>conftest.$ac_ext <<_ACEOF
7433 /* end confdefs.h. */
7434 #ifdef TIME_WITH_SYS_TIME
7435 #include <sys/time.h>
7436 #include <time.h>
7437 #else
7438 #ifdef HAVE_SYS_TIME_H
7439 #include <sys/time.h>
7440 #else
7441 #include <time.h>
7442 #endif
7443 #endif
7445 main ()
7447 static struct timeval x; x.tv_sec = x.tv_usec;
7449 return 0;
7451 _ACEOF
7452 rm -f conftest.$ac_objext
7453 if { (ac_try="$ac_compile"
7454 case "(($ac_try" in
7455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7456 *) ac_try_echo=$ac_try;;
7457 esac
7458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7459 (eval "$ac_compile") 2>conftest.er1
7460 ac_status=$?
7461 grep -v '^ *+' conftest.er1 >conftest.err
7462 rm -f conftest.er1
7463 cat conftest.err >&5
7464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465 (exit $ac_status); } && {
7466 test -z "$ac_c_werror_flag" ||
7467 test ! -s conftest.err
7468 } && test -s conftest.$ac_objext; then
7469 emacs_cv_struct_timeval=yes
7470 else
7471 echo "$as_me: failed program was:" >&5
7472 sed 's/^/| /' conftest.$ac_ext >&5
7474 emacs_cv_struct_timeval=no
7477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7479 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7480 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7481 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7482 if test $emacs_cv_struct_timeval = yes; then
7484 cat >>confdefs.h <<\_ACEOF
7485 #define HAVE_TIMEVAL 1
7486 _ACEOF
7490 { echo "$as_me:$LINENO: checking for struct exception" >&5
7491 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7492 if test "${emacs_cv_struct_exception+set}" = set; then
7493 echo $ECHO_N "(cached) $ECHO_C" >&6
7494 else
7495 cat >conftest.$ac_ext <<_ACEOF
7496 /* confdefs.h. */
7497 _ACEOF
7498 cat confdefs.h >>conftest.$ac_ext
7499 cat >>conftest.$ac_ext <<_ACEOF
7500 /* end confdefs.h. */
7501 #include <math.h>
7503 main ()
7505 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7507 return 0;
7509 _ACEOF
7510 rm -f conftest.$ac_objext
7511 if { (ac_try="$ac_compile"
7512 case "(($ac_try" in
7513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7514 *) ac_try_echo=$ac_try;;
7515 esac
7516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7517 (eval "$ac_compile") 2>conftest.er1
7518 ac_status=$?
7519 grep -v '^ *+' conftest.er1 >conftest.err
7520 rm -f conftest.er1
7521 cat conftest.err >&5
7522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7523 (exit $ac_status); } && {
7524 test -z "$ac_c_werror_flag" ||
7525 test ! -s conftest.err
7526 } && test -s conftest.$ac_objext; then
7527 emacs_cv_struct_exception=yes
7528 else
7529 echo "$as_me: failed program was:" >&5
7530 sed 's/^/| /' conftest.$ac_ext >&5
7532 emacs_cv_struct_exception=no
7535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7537 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7538 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7539 HAVE_EXCEPTION=$emacs_cv_struct_exception
7540 if test $emacs_cv_struct_exception != yes; then
7542 cat >>confdefs.h <<\_ACEOF
7543 #define NO_MATHERR 1
7544 _ACEOF
7549 for ac_header in sys/socket.h
7551 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7553 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7556 echo $ECHO_N "(cached) $ECHO_C" >&6
7558 ac_res=`eval echo '${'$as_ac_Header'}'`
7559 { echo "$as_me:$LINENO: result: $ac_res" >&5
7560 echo "${ECHO_T}$ac_res" >&6; }
7561 else
7562 # Is the header compilable?
7563 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7564 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7565 cat >conftest.$ac_ext <<_ACEOF
7566 /* confdefs.h. */
7567 _ACEOF
7568 cat confdefs.h >>conftest.$ac_ext
7569 cat >>conftest.$ac_ext <<_ACEOF
7570 /* end confdefs.h. */
7571 $ac_includes_default
7572 #include <$ac_header>
7573 _ACEOF
7574 rm -f conftest.$ac_objext
7575 if { (ac_try="$ac_compile"
7576 case "(($ac_try" in
7577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7578 *) ac_try_echo=$ac_try;;
7579 esac
7580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7581 (eval "$ac_compile") 2>conftest.er1
7582 ac_status=$?
7583 grep -v '^ *+' conftest.er1 >conftest.err
7584 rm -f conftest.er1
7585 cat conftest.err >&5
7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); } && {
7588 test -z "$ac_c_werror_flag" ||
7589 test ! -s conftest.err
7590 } && test -s conftest.$ac_objext; then
7591 ac_header_compiler=yes
7592 else
7593 echo "$as_me: failed program was:" >&5
7594 sed 's/^/| /' conftest.$ac_ext >&5
7596 ac_header_compiler=no
7599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7600 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7601 echo "${ECHO_T}$ac_header_compiler" >&6; }
7603 # Is the header present?
7604 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7605 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7606 cat >conftest.$ac_ext <<_ACEOF
7607 /* confdefs.h. */
7608 _ACEOF
7609 cat confdefs.h >>conftest.$ac_ext
7610 cat >>conftest.$ac_ext <<_ACEOF
7611 /* end confdefs.h. */
7612 #include <$ac_header>
7613 _ACEOF
7614 if { (ac_try="$ac_cpp conftest.$ac_ext"
7615 case "(($ac_try" in
7616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7617 *) ac_try_echo=$ac_try;;
7618 esac
7619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7620 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7621 ac_status=$?
7622 grep -v '^ *+' conftest.er1 >conftest.err
7623 rm -f conftest.er1
7624 cat conftest.err >&5
7625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626 (exit $ac_status); } >/dev/null && {
7627 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7628 test ! -s conftest.err
7629 }; then
7630 ac_header_preproc=yes
7631 else
7632 echo "$as_me: failed program was:" >&5
7633 sed 's/^/| /' conftest.$ac_ext >&5
7635 ac_header_preproc=no
7638 rm -f conftest.err conftest.$ac_ext
7639 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7640 echo "${ECHO_T}$ac_header_preproc" >&6; }
7642 # So? What about this header?
7643 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7644 yes:no: )
7645 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7646 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7648 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7649 ac_header_preproc=yes
7651 no:yes:* )
7652 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7653 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7654 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7655 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7656 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7657 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7658 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7659 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7661 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7662 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7663 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7666 esac
7667 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7668 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7670 echo $ECHO_N "(cached) $ECHO_C" >&6
7671 else
7672 eval "$as_ac_Header=\$ac_header_preproc"
7674 ac_res=`eval echo '${'$as_ac_Header'}'`
7675 { echo "$as_me:$LINENO: result: $ac_res" >&5
7676 echo "${ECHO_T}$ac_res" >&6; }
7679 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7680 cat >>confdefs.h <<_ACEOF
7681 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7682 _ACEOF
7686 done
7689 for ac_header in net/if.h
7691 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7692 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7695 echo $ECHO_N "(cached) $ECHO_C" >&6
7696 else
7697 cat >conftest.$ac_ext <<_ACEOF
7698 /* confdefs.h. */
7699 _ACEOF
7700 cat confdefs.h >>conftest.$ac_ext
7701 cat >>conftest.$ac_ext <<_ACEOF
7702 /* end confdefs.h. */
7703 $ac_includes_default
7704 #if HAVE_SYS_SOCKET_H
7705 #include <sys/socket.h>
7706 #endif
7708 #include <$ac_header>
7709 _ACEOF
7710 rm -f conftest.$ac_objext
7711 if { (ac_try="$ac_compile"
7712 case "(($ac_try" in
7713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7714 *) ac_try_echo=$ac_try;;
7715 esac
7716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7717 (eval "$ac_compile") 2>conftest.er1
7718 ac_status=$?
7719 grep -v '^ *+' conftest.er1 >conftest.err
7720 rm -f conftest.er1
7721 cat conftest.err >&5
7722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723 (exit $ac_status); } && {
7724 test -z "$ac_c_werror_flag" ||
7725 test ! -s conftest.err
7726 } && test -s conftest.$ac_objext; then
7727 eval "$as_ac_Header=yes"
7728 else
7729 echo "$as_me: failed program was:" >&5
7730 sed 's/^/| /' conftest.$ac_ext >&5
7732 eval "$as_ac_Header=no"
7735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7737 ac_res=`eval echo '${'$as_ac_Header'}'`
7738 { echo "$as_me:$LINENO: result: $ac_res" >&5
7739 echo "${ECHO_T}$ac_res" >&6; }
7740 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7741 cat >>confdefs.h <<_ACEOF
7742 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7743 _ACEOF
7747 done
7750 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7751 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7752 if test "${ac_cv_struct_tm+set}" = set; then
7753 echo $ECHO_N "(cached) $ECHO_C" >&6
7754 else
7755 cat >conftest.$ac_ext <<_ACEOF
7756 /* confdefs.h. */
7757 _ACEOF
7758 cat confdefs.h >>conftest.$ac_ext
7759 cat >>conftest.$ac_ext <<_ACEOF
7760 /* end confdefs.h. */
7761 #include <sys/types.h>
7762 #include <time.h>
7765 main ()
7767 struct tm tm;
7768 int *p = &tm.tm_sec;
7769 return !p;
7771 return 0;
7773 _ACEOF
7774 rm -f conftest.$ac_objext
7775 if { (ac_try="$ac_compile"
7776 case "(($ac_try" in
7777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7778 *) ac_try_echo=$ac_try;;
7779 esac
7780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7781 (eval "$ac_compile") 2>conftest.er1
7782 ac_status=$?
7783 grep -v '^ *+' conftest.er1 >conftest.err
7784 rm -f conftest.er1
7785 cat conftest.err >&5
7786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787 (exit $ac_status); } && {
7788 test -z "$ac_c_werror_flag" ||
7789 test ! -s conftest.err
7790 } && test -s conftest.$ac_objext; then
7791 ac_cv_struct_tm=time.h
7792 else
7793 echo "$as_me: failed program was:" >&5
7794 sed 's/^/| /' conftest.$ac_ext >&5
7796 ac_cv_struct_tm=sys/time.h
7799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7801 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7802 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7803 if test $ac_cv_struct_tm = sys/time.h; then
7805 cat >>confdefs.h <<\_ACEOF
7806 #define TM_IN_SYS_TIME 1
7807 _ACEOF
7811 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7812 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7813 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7814 echo $ECHO_N "(cached) $ECHO_C" >&6
7815 else
7816 cat >conftest.$ac_ext <<_ACEOF
7817 /* confdefs.h. */
7818 _ACEOF
7819 cat confdefs.h >>conftest.$ac_ext
7820 cat >>conftest.$ac_ext <<_ACEOF
7821 /* end confdefs.h. */
7822 #include <sys/types.h>
7823 #include <$ac_cv_struct_tm>
7827 main ()
7829 static struct tm ac_aggr;
7830 if (ac_aggr.tm_zone)
7831 return 0;
7833 return 0;
7835 _ACEOF
7836 rm -f conftest.$ac_objext
7837 if { (ac_try="$ac_compile"
7838 case "(($ac_try" in
7839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7840 *) ac_try_echo=$ac_try;;
7841 esac
7842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7843 (eval "$ac_compile") 2>conftest.er1
7844 ac_status=$?
7845 grep -v '^ *+' conftest.er1 >conftest.err
7846 rm -f conftest.er1
7847 cat conftest.err >&5
7848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849 (exit $ac_status); } && {
7850 test -z "$ac_c_werror_flag" ||
7851 test ! -s conftest.err
7852 } && test -s conftest.$ac_objext; then
7853 ac_cv_member_struct_tm_tm_zone=yes
7854 else
7855 echo "$as_me: failed program was:" >&5
7856 sed 's/^/| /' conftest.$ac_ext >&5
7858 cat >conftest.$ac_ext <<_ACEOF
7859 /* confdefs.h. */
7860 _ACEOF
7861 cat confdefs.h >>conftest.$ac_ext
7862 cat >>conftest.$ac_ext <<_ACEOF
7863 /* end confdefs.h. */
7864 #include <sys/types.h>
7865 #include <$ac_cv_struct_tm>
7869 main ()
7871 static struct tm ac_aggr;
7872 if (sizeof ac_aggr.tm_zone)
7873 return 0;
7875 return 0;
7877 _ACEOF
7878 rm -f conftest.$ac_objext
7879 if { (ac_try="$ac_compile"
7880 case "(($ac_try" in
7881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7882 *) ac_try_echo=$ac_try;;
7883 esac
7884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7885 (eval "$ac_compile") 2>conftest.er1
7886 ac_status=$?
7887 grep -v '^ *+' conftest.er1 >conftest.err
7888 rm -f conftest.er1
7889 cat conftest.err >&5
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); } && {
7892 test -z "$ac_c_werror_flag" ||
7893 test ! -s conftest.err
7894 } && test -s conftest.$ac_objext; then
7895 ac_cv_member_struct_tm_tm_zone=yes
7896 else
7897 echo "$as_me: failed program was:" >&5
7898 sed 's/^/| /' conftest.$ac_ext >&5
7900 ac_cv_member_struct_tm_tm_zone=no
7903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7908 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7909 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7910 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7912 cat >>confdefs.h <<_ACEOF
7913 #define HAVE_STRUCT_TM_TM_ZONE 1
7914 _ACEOF
7919 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7921 cat >>confdefs.h <<\_ACEOF
7922 #define HAVE_TM_ZONE 1
7923 _ACEOF
7925 else
7926 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7927 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7928 if test "${ac_cv_have_decl_tzname+set}" = set; then
7929 echo $ECHO_N "(cached) $ECHO_C" >&6
7930 else
7931 cat >conftest.$ac_ext <<_ACEOF
7932 /* confdefs.h. */
7933 _ACEOF
7934 cat confdefs.h >>conftest.$ac_ext
7935 cat >>conftest.$ac_ext <<_ACEOF
7936 /* end confdefs.h. */
7937 #include <time.h>
7940 main ()
7942 #ifndef tzname
7943 (void) tzname;
7944 #endif
7947 return 0;
7949 _ACEOF
7950 rm -f conftest.$ac_objext
7951 if { (ac_try="$ac_compile"
7952 case "(($ac_try" in
7953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7954 *) ac_try_echo=$ac_try;;
7955 esac
7956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7957 (eval "$ac_compile") 2>conftest.er1
7958 ac_status=$?
7959 grep -v '^ *+' conftest.er1 >conftest.err
7960 rm -f conftest.er1
7961 cat conftest.err >&5
7962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963 (exit $ac_status); } && {
7964 test -z "$ac_c_werror_flag" ||
7965 test ! -s conftest.err
7966 } && test -s conftest.$ac_objext; then
7967 ac_cv_have_decl_tzname=yes
7968 else
7969 echo "$as_me: failed program was:" >&5
7970 sed 's/^/| /' conftest.$ac_ext >&5
7972 ac_cv_have_decl_tzname=no
7975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7977 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7978 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7979 if test $ac_cv_have_decl_tzname = yes; then
7981 cat >>confdefs.h <<_ACEOF
7982 #define HAVE_DECL_TZNAME 1
7983 _ACEOF
7986 else
7987 cat >>confdefs.h <<_ACEOF
7988 #define HAVE_DECL_TZNAME 0
7989 _ACEOF
7995 { echo "$as_me:$LINENO: checking for tzname" >&5
7996 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7997 if test "${ac_cv_var_tzname+set}" = set; then
7998 echo $ECHO_N "(cached) $ECHO_C" >&6
7999 else
8000 cat >conftest.$ac_ext <<_ACEOF
8001 /* confdefs.h. */
8002 _ACEOF
8003 cat confdefs.h >>conftest.$ac_ext
8004 cat >>conftest.$ac_ext <<_ACEOF
8005 /* end confdefs.h. */
8006 #include <time.h>
8007 #if !HAVE_DECL_TZNAME
8008 extern char *tzname[];
8009 #endif
8012 main ()
8014 return tzname[0][0];
8016 return 0;
8018 _ACEOF
8019 rm -f conftest.$ac_objext conftest$ac_exeext
8020 if { (ac_try="$ac_link"
8021 case "(($ac_try" in
8022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8023 *) ac_try_echo=$ac_try;;
8024 esac
8025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8026 (eval "$ac_link") 2>conftest.er1
8027 ac_status=$?
8028 grep -v '^ *+' conftest.er1 >conftest.err
8029 rm -f conftest.er1
8030 cat conftest.err >&5
8031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032 (exit $ac_status); } && {
8033 test -z "$ac_c_werror_flag" ||
8034 test ! -s conftest.err
8035 } && test -s conftest$ac_exeext &&
8036 $as_test_x conftest$ac_exeext; then
8037 ac_cv_var_tzname=yes
8038 else
8039 echo "$as_me: failed program was:" >&5
8040 sed 's/^/| /' conftest.$ac_ext >&5
8042 ac_cv_var_tzname=no
8045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8046 conftest$ac_exeext conftest.$ac_ext
8048 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8049 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8050 if test $ac_cv_var_tzname = yes; then
8052 cat >>confdefs.h <<\_ACEOF
8053 #define HAVE_TZNAME 1
8054 _ACEOF
8059 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8060 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8061 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8062 echo $ECHO_N "(cached) $ECHO_C" >&6
8063 else
8064 cat >conftest.$ac_ext <<_ACEOF
8065 /* confdefs.h. */
8066 _ACEOF
8067 cat confdefs.h >>conftest.$ac_ext
8068 cat >>conftest.$ac_ext <<_ACEOF
8069 /* end confdefs.h. */
8070 #include <time.h>
8073 main ()
8075 static struct tm ac_aggr;
8076 if (ac_aggr.tm_gmtoff)
8077 return 0;
8079 return 0;
8081 _ACEOF
8082 rm -f conftest.$ac_objext
8083 if { (ac_try="$ac_compile"
8084 case "(($ac_try" in
8085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8086 *) ac_try_echo=$ac_try;;
8087 esac
8088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8089 (eval "$ac_compile") 2>conftest.er1
8090 ac_status=$?
8091 grep -v '^ *+' conftest.er1 >conftest.err
8092 rm -f conftest.er1
8093 cat conftest.err >&5
8094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8095 (exit $ac_status); } && {
8096 test -z "$ac_c_werror_flag" ||
8097 test ! -s conftest.err
8098 } && test -s conftest.$ac_objext; then
8099 ac_cv_member_struct_tm_tm_gmtoff=yes
8100 else
8101 echo "$as_me: failed program was:" >&5
8102 sed 's/^/| /' conftest.$ac_ext >&5
8104 cat >conftest.$ac_ext <<_ACEOF
8105 /* confdefs.h. */
8106 _ACEOF
8107 cat confdefs.h >>conftest.$ac_ext
8108 cat >>conftest.$ac_ext <<_ACEOF
8109 /* end confdefs.h. */
8110 #include <time.h>
8113 main ()
8115 static struct tm ac_aggr;
8116 if (sizeof ac_aggr.tm_gmtoff)
8117 return 0;
8119 return 0;
8121 _ACEOF
8122 rm -f conftest.$ac_objext
8123 if { (ac_try="$ac_compile"
8124 case "(($ac_try" in
8125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8126 *) ac_try_echo=$ac_try;;
8127 esac
8128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8129 (eval "$ac_compile") 2>conftest.er1
8130 ac_status=$?
8131 grep -v '^ *+' conftest.er1 >conftest.err
8132 rm -f conftest.er1
8133 cat conftest.err >&5
8134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135 (exit $ac_status); } && {
8136 test -z "$ac_c_werror_flag" ||
8137 test ! -s conftest.err
8138 } && test -s conftest.$ac_objext; then
8139 ac_cv_member_struct_tm_tm_gmtoff=yes
8140 else
8141 echo "$as_me: failed program was:" >&5
8142 sed 's/^/| /' conftest.$ac_ext >&5
8144 ac_cv_member_struct_tm_tm_gmtoff=no
8147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8152 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8153 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8154 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8156 cat >>confdefs.h <<\_ACEOF
8157 #define HAVE_TM_GMTOFF 1
8158 _ACEOF
8162 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8163 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8164 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8165 echo $ECHO_N "(cached) $ECHO_C" >&6
8166 else
8167 cat >conftest.$ac_ext <<_ACEOF
8168 /* confdefs.h. */
8169 _ACEOF
8170 cat confdefs.h >>conftest.$ac_ext
8171 cat >>conftest.$ac_ext <<_ACEOF
8172 /* end confdefs.h. */
8173 $ac_includes_default
8174 #if HAVE_SYS_SOCKET_H
8175 #include <sys/socket.h>
8176 #endif
8177 #if HAVE_NET_IF_H
8178 #include <net/if.h>
8179 #endif
8182 main ()
8184 static struct ifreq ac_aggr;
8185 if (ac_aggr.ifr_flags)
8186 return 0;
8188 return 0;
8190 _ACEOF
8191 rm -f conftest.$ac_objext
8192 if { (ac_try="$ac_compile"
8193 case "(($ac_try" in
8194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8195 *) ac_try_echo=$ac_try;;
8196 esac
8197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8198 (eval "$ac_compile") 2>conftest.er1
8199 ac_status=$?
8200 grep -v '^ *+' conftest.er1 >conftest.err
8201 rm -f conftest.er1
8202 cat conftest.err >&5
8203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204 (exit $ac_status); } && {
8205 test -z "$ac_c_werror_flag" ||
8206 test ! -s conftest.err
8207 } && test -s conftest.$ac_objext; then
8208 ac_cv_member_struct_ifreq_ifr_flags=yes
8209 else
8210 echo "$as_me: failed program was:" >&5
8211 sed 's/^/| /' conftest.$ac_ext >&5
8213 cat >conftest.$ac_ext <<_ACEOF
8214 /* confdefs.h. */
8215 _ACEOF
8216 cat confdefs.h >>conftest.$ac_ext
8217 cat >>conftest.$ac_ext <<_ACEOF
8218 /* end confdefs.h. */
8219 $ac_includes_default
8220 #if HAVE_SYS_SOCKET_H
8221 #include <sys/socket.h>
8222 #endif
8223 #if HAVE_NET_IF_H
8224 #include <net/if.h>
8225 #endif
8228 main ()
8230 static struct ifreq ac_aggr;
8231 if (sizeof ac_aggr.ifr_flags)
8232 return 0;
8234 return 0;
8236 _ACEOF
8237 rm -f conftest.$ac_objext
8238 if { (ac_try="$ac_compile"
8239 case "(($ac_try" in
8240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8241 *) ac_try_echo=$ac_try;;
8242 esac
8243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8244 (eval "$ac_compile") 2>conftest.er1
8245 ac_status=$?
8246 grep -v '^ *+' conftest.er1 >conftest.err
8247 rm -f conftest.er1
8248 cat conftest.err >&5
8249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250 (exit $ac_status); } && {
8251 test -z "$ac_c_werror_flag" ||
8252 test ! -s conftest.err
8253 } && test -s conftest.$ac_objext; then
8254 ac_cv_member_struct_ifreq_ifr_flags=yes
8255 else
8256 echo "$as_me: failed program was:" >&5
8257 sed 's/^/| /' conftest.$ac_ext >&5
8259 ac_cv_member_struct_ifreq_ifr_flags=no
8262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8267 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8268 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8269 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8271 cat >>confdefs.h <<_ACEOF
8272 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8273 _ACEOF
8277 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8278 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8279 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8280 echo $ECHO_N "(cached) $ECHO_C" >&6
8281 else
8282 cat >conftest.$ac_ext <<_ACEOF
8283 /* confdefs.h. */
8284 _ACEOF
8285 cat confdefs.h >>conftest.$ac_ext
8286 cat >>conftest.$ac_ext <<_ACEOF
8287 /* end confdefs.h. */
8288 $ac_includes_default
8289 #if HAVE_SYS_SOCKET_H
8290 #include <sys/socket.h>
8291 #endif
8292 #if HAVE_NET_IF_H
8293 #include <net/if.h>
8294 #endif
8297 main ()
8299 static struct ifreq ac_aggr;
8300 if (ac_aggr.ifr_hwaddr)
8301 return 0;
8303 return 0;
8305 _ACEOF
8306 rm -f conftest.$ac_objext
8307 if { (ac_try="$ac_compile"
8308 case "(($ac_try" in
8309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8310 *) ac_try_echo=$ac_try;;
8311 esac
8312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8313 (eval "$ac_compile") 2>conftest.er1
8314 ac_status=$?
8315 grep -v '^ *+' conftest.er1 >conftest.err
8316 rm -f conftest.er1
8317 cat conftest.err >&5
8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319 (exit $ac_status); } && {
8320 test -z "$ac_c_werror_flag" ||
8321 test ! -s conftest.err
8322 } && test -s conftest.$ac_objext; then
8323 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8324 else
8325 echo "$as_me: failed program was:" >&5
8326 sed 's/^/| /' conftest.$ac_ext >&5
8328 cat >conftest.$ac_ext <<_ACEOF
8329 /* confdefs.h. */
8330 _ACEOF
8331 cat confdefs.h >>conftest.$ac_ext
8332 cat >>conftest.$ac_ext <<_ACEOF
8333 /* end confdefs.h. */
8334 $ac_includes_default
8335 #if HAVE_SYS_SOCKET_H
8336 #include <sys/socket.h>
8337 #endif
8338 #if HAVE_NET_IF_H
8339 #include <net/if.h>
8340 #endif
8343 main ()
8345 static struct ifreq ac_aggr;
8346 if (sizeof ac_aggr.ifr_hwaddr)
8347 return 0;
8349 return 0;
8351 _ACEOF
8352 rm -f conftest.$ac_objext
8353 if { (ac_try="$ac_compile"
8354 case "(($ac_try" in
8355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8356 *) ac_try_echo=$ac_try;;
8357 esac
8358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8359 (eval "$ac_compile") 2>conftest.er1
8360 ac_status=$?
8361 grep -v '^ *+' conftest.er1 >conftest.err
8362 rm -f conftest.er1
8363 cat conftest.err >&5
8364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365 (exit $ac_status); } && {
8366 test -z "$ac_c_werror_flag" ||
8367 test ! -s conftest.err
8368 } && test -s conftest.$ac_objext; then
8369 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8370 else
8371 echo "$as_me: failed program was:" >&5
8372 sed 's/^/| /' conftest.$ac_ext >&5
8374 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8382 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8383 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8384 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8386 cat >>confdefs.h <<_ACEOF
8387 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8388 _ACEOF
8392 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8393 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8394 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8395 echo $ECHO_N "(cached) $ECHO_C" >&6
8396 else
8397 cat >conftest.$ac_ext <<_ACEOF
8398 /* confdefs.h. */
8399 _ACEOF
8400 cat confdefs.h >>conftest.$ac_ext
8401 cat >>conftest.$ac_ext <<_ACEOF
8402 /* end confdefs.h. */
8403 $ac_includes_default
8404 #if HAVE_SYS_SOCKET_H
8405 #include <sys/socket.h>
8406 #endif
8407 #if HAVE_NET_IF_H
8408 #include <net/if.h>
8409 #endif
8412 main ()
8414 static struct ifreq ac_aggr;
8415 if (ac_aggr.ifr_netmask)
8416 return 0;
8418 return 0;
8420 _ACEOF
8421 rm -f conftest.$ac_objext
8422 if { (ac_try="$ac_compile"
8423 case "(($ac_try" in
8424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8425 *) ac_try_echo=$ac_try;;
8426 esac
8427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8428 (eval "$ac_compile") 2>conftest.er1
8429 ac_status=$?
8430 grep -v '^ *+' conftest.er1 >conftest.err
8431 rm -f conftest.er1
8432 cat conftest.err >&5
8433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434 (exit $ac_status); } && {
8435 test -z "$ac_c_werror_flag" ||
8436 test ! -s conftest.err
8437 } && test -s conftest.$ac_objext; then
8438 ac_cv_member_struct_ifreq_ifr_netmask=yes
8439 else
8440 echo "$as_me: failed program was:" >&5
8441 sed 's/^/| /' conftest.$ac_ext >&5
8443 cat >conftest.$ac_ext <<_ACEOF
8444 /* confdefs.h. */
8445 _ACEOF
8446 cat confdefs.h >>conftest.$ac_ext
8447 cat >>conftest.$ac_ext <<_ACEOF
8448 /* end confdefs.h. */
8449 $ac_includes_default
8450 #if HAVE_SYS_SOCKET_H
8451 #include <sys/socket.h>
8452 #endif
8453 #if HAVE_NET_IF_H
8454 #include <net/if.h>
8455 #endif
8458 main ()
8460 static struct ifreq ac_aggr;
8461 if (sizeof ac_aggr.ifr_netmask)
8462 return 0;
8464 return 0;
8466 _ACEOF
8467 rm -f conftest.$ac_objext
8468 if { (ac_try="$ac_compile"
8469 case "(($ac_try" in
8470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8471 *) ac_try_echo=$ac_try;;
8472 esac
8473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8474 (eval "$ac_compile") 2>conftest.er1
8475 ac_status=$?
8476 grep -v '^ *+' conftest.er1 >conftest.err
8477 rm -f conftest.er1
8478 cat conftest.err >&5
8479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480 (exit $ac_status); } && {
8481 test -z "$ac_c_werror_flag" ||
8482 test ! -s conftest.err
8483 } && test -s conftest.$ac_objext; then
8484 ac_cv_member_struct_ifreq_ifr_netmask=yes
8485 else
8486 echo "$as_me: failed program was:" >&5
8487 sed 's/^/| /' conftest.$ac_ext >&5
8489 ac_cv_member_struct_ifreq_ifr_netmask=no
8492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8497 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8498 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8499 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8501 cat >>confdefs.h <<_ACEOF
8502 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8503 _ACEOF
8507 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8508 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8509 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8510 echo $ECHO_N "(cached) $ECHO_C" >&6
8511 else
8512 cat >conftest.$ac_ext <<_ACEOF
8513 /* confdefs.h. */
8514 _ACEOF
8515 cat confdefs.h >>conftest.$ac_ext
8516 cat >>conftest.$ac_ext <<_ACEOF
8517 /* end confdefs.h. */
8518 $ac_includes_default
8519 #if HAVE_SYS_SOCKET_H
8520 #include <sys/socket.h>
8521 #endif
8522 #if HAVE_NET_IF_H
8523 #include <net/if.h>
8524 #endif
8527 main ()
8529 static struct ifreq ac_aggr;
8530 if (ac_aggr.ifr_broadaddr)
8531 return 0;
8533 return 0;
8535 _ACEOF
8536 rm -f conftest.$ac_objext
8537 if { (ac_try="$ac_compile"
8538 case "(($ac_try" in
8539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8540 *) ac_try_echo=$ac_try;;
8541 esac
8542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8543 (eval "$ac_compile") 2>conftest.er1
8544 ac_status=$?
8545 grep -v '^ *+' conftest.er1 >conftest.err
8546 rm -f conftest.er1
8547 cat conftest.err >&5
8548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549 (exit $ac_status); } && {
8550 test -z "$ac_c_werror_flag" ||
8551 test ! -s conftest.err
8552 } && test -s conftest.$ac_objext; then
8553 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8554 else
8555 echo "$as_me: failed program was:" >&5
8556 sed 's/^/| /' conftest.$ac_ext >&5
8558 cat >conftest.$ac_ext <<_ACEOF
8559 /* confdefs.h. */
8560 _ACEOF
8561 cat confdefs.h >>conftest.$ac_ext
8562 cat >>conftest.$ac_ext <<_ACEOF
8563 /* end confdefs.h. */
8564 $ac_includes_default
8565 #if HAVE_SYS_SOCKET_H
8566 #include <sys/socket.h>
8567 #endif
8568 #if HAVE_NET_IF_H
8569 #include <net/if.h>
8570 #endif
8573 main ()
8575 static struct ifreq ac_aggr;
8576 if (sizeof ac_aggr.ifr_broadaddr)
8577 return 0;
8579 return 0;
8581 _ACEOF
8582 rm -f conftest.$ac_objext
8583 if { (ac_try="$ac_compile"
8584 case "(($ac_try" in
8585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8586 *) ac_try_echo=$ac_try;;
8587 esac
8588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8589 (eval "$ac_compile") 2>conftest.er1
8590 ac_status=$?
8591 grep -v '^ *+' conftest.er1 >conftest.err
8592 rm -f conftest.er1
8593 cat conftest.err >&5
8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595 (exit $ac_status); } && {
8596 test -z "$ac_c_werror_flag" ||
8597 test ! -s conftest.err
8598 } && test -s conftest.$ac_objext; then
8599 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8600 else
8601 echo "$as_me: failed program was:" >&5
8602 sed 's/^/| /' conftest.$ac_ext >&5
8604 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8612 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8613 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8614 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8616 cat >>confdefs.h <<_ACEOF
8617 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8618 _ACEOF
8622 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8623 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8624 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8625 echo $ECHO_N "(cached) $ECHO_C" >&6
8626 else
8627 cat >conftest.$ac_ext <<_ACEOF
8628 /* confdefs.h. */
8629 _ACEOF
8630 cat confdefs.h >>conftest.$ac_ext
8631 cat >>conftest.$ac_ext <<_ACEOF
8632 /* end confdefs.h. */
8633 $ac_includes_default
8634 #if HAVE_SYS_SOCKET_H
8635 #include <sys/socket.h>
8636 #endif
8637 #if HAVE_NET_IF_H
8638 #include <net/if.h>
8639 #endif
8642 main ()
8644 static struct ifreq ac_aggr;
8645 if (ac_aggr.ifr_addr)
8646 return 0;
8648 return 0;
8650 _ACEOF
8651 rm -f conftest.$ac_objext
8652 if { (ac_try="$ac_compile"
8653 case "(($ac_try" in
8654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8655 *) ac_try_echo=$ac_try;;
8656 esac
8657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8658 (eval "$ac_compile") 2>conftest.er1
8659 ac_status=$?
8660 grep -v '^ *+' conftest.er1 >conftest.err
8661 rm -f conftest.er1
8662 cat conftest.err >&5
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); } && {
8665 test -z "$ac_c_werror_flag" ||
8666 test ! -s conftest.err
8667 } && test -s conftest.$ac_objext; then
8668 ac_cv_member_struct_ifreq_ifr_addr=yes
8669 else
8670 echo "$as_me: failed program was:" >&5
8671 sed 's/^/| /' conftest.$ac_ext >&5
8673 cat >conftest.$ac_ext <<_ACEOF
8674 /* confdefs.h. */
8675 _ACEOF
8676 cat confdefs.h >>conftest.$ac_ext
8677 cat >>conftest.$ac_ext <<_ACEOF
8678 /* end confdefs.h. */
8679 $ac_includes_default
8680 #if HAVE_SYS_SOCKET_H
8681 #include <sys/socket.h>
8682 #endif
8683 #if HAVE_NET_IF_H
8684 #include <net/if.h>
8685 #endif
8688 main ()
8690 static struct ifreq ac_aggr;
8691 if (sizeof ac_aggr.ifr_addr)
8692 return 0;
8694 return 0;
8696 _ACEOF
8697 rm -f conftest.$ac_objext
8698 if { (ac_try="$ac_compile"
8699 case "(($ac_try" in
8700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8701 *) ac_try_echo=$ac_try;;
8702 esac
8703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8704 (eval "$ac_compile") 2>conftest.er1
8705 ac_status=$?
8706 grep -v '^ *+' conftest.er1 >conftest.err
8707 rm -f conftest.er1
8708 cat conftest.err >&5
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); } && {
8711 test -z "$ac_c_werror_flag" ||
8712 test ! -s conftest.err
8713 } && test -s conftest.$ac_objext; then
8714 ac_cv_member_struct_ifreq_ifr_addr=yes
8715 else
8716 echo "$as_me: failed program was:" >&5
8717 sed 's/^/| /' conftest.$ac_ext >&5
8719 ac_cv_member_struct_ifreq_ifr_addr=no
8722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8727 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8728 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8729 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8731 cat >>confdefs.h <<_ACEOF
8732 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8733 _ACEOF
8740 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8741 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8742 if test "$ac_cv_prog_cc_c89" != no; then
8743 { echo "$as_me:$LINENO: result: yes" >&5
8744 echo "${ECHO_T}yes" >&6; }
8746 cat >>confdefs.h <<\_ACEOF
8747 #define PROTOTYPES 1
8748 _ACEOF
8751 cat >>confdefs.h <<\_ACEOF
8752 #define __PROTOTYPES 1
8753 _ACEOF
8755 else
8756 { echo "$as_me:$LINENO: result: no" >&5
8757 echo "${ECHO_T}no" >&6; }
8760 { echo "$as_me:$LINENO: checking for working volatile" >&5
8761 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8762 if test "${ac_cv_c_volatile+set}" = set; then
8763 echo $ECHO_N "(cached) $ECHO_C" >&6
8764 else
8765 cat >conftest.$ac_ext <<_ACEOF
8766 /* confdefs.h. */
8767 _ACEOF
8768 cat confdefs.h >>conftest.$ac_ext
8769 cat >>conftest.$ac_ext <<_ACEOF
8770 /* end confdefs.h. */
8773 main ()
8776 volatile int x;
8777 int * volatile y = (int *) 0;
8778 return !x && !y;
8780 return 0;
8782 _ACEOF
8783 rm -f conftest.$ac_objext
8784 if { (ac_try="$ac_compile"
8785 case "(($ac_try" in
8786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8787 *) ac_try_echo=$ac_try;;
8788 esac
8789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8790 (eval "$ac_compile") 2>conftest.er1
8791 ac_status=$?
8792 grep -v '^ *+' conftest.er1 >conftest.err
8793 rm -f conftest.er1
8794 cat conftest.err >&5
8795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796 (exit $ac_status); } && {
8797 test -z "$ac_c_werror_flag" ||
8798 test ! -s conftest.err
8799 } && test -s conftest.$ac_objext; then
8800 ac_cv_c_volatile=yes
8801 else
8802 echo "$as_me: failed program was:" >&5
8803 sed 's/^/| /' conftest.$ac_ext >&5
8805 ac_cv_c_volatile=no
8808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8810 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8811 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8812 if test $ac_cv_c_volatile = no; then
8814 cat >>confdefs.h <<\_ACEOF
8815 #define volatile
8816 _ACEOF
8820 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8821 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8822 if test "${ac_cv_c_const+set}" = set; then
8823 echo $ECHO_N "(cached) $ECHO_C" >&6
8824 else
8825 cat >conftest.$ac_ext <<_ACEOF
8826 /* confdefs.h. */
8827 _ACEOF
8828 cat confdefs.h >>conftest.$ac_ext
8829 cat >>conftest.$ac_ext <<_ACEOF
8830 /* end confdefs.h. */
8833 main ()
8835 /* FIXME: Include the comments suggested by Paul. */
8836 #ifndef __cplusplus
8837 /* Ultrix mips cc rejects this. */
8838 typedef int charset[2];
8839 const charset cs;
8840 /* SunOS 4.1.1 cc rejects this. */
8841 char const *const *pcpcc;
8842 char **ppc;
8843 /* NEC SVR4.0.2 mips cc rejects this. */
8844 struct point {int x, y;};
8845 static struct point const zero = {0,0};
8846 /* AIX XL C 1.02.0.0 rejects this.
8847 It does not let you subtract one const X* pointer from another in
8848 an arm of an if-expression whose if-part is not a constant
8849 expression */
8850 const char *g = "string";
8851 pcpcc = &g + (g ? g-g : 0);
8852 /* HPUX 7.0 cc rejects these. */
8853 ++pcpcc;
8854 ppc = (char**) pcpcc;
8855 pcpcc = (char const *const *) ppc;
8856 { /* SCO 3.2v4 cc rejects this. */
8857 char *t;
8858 char const *s = 0 ? (char *) 0 : (char const *) 0;
8860 *t++ = 0;
8861 if (s) return 0;
8863 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8864 int x[] = {25, 17};
8865 const int *foo = &x[0];
8866 ++foo;
8868 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8869 typedef const int *iptr;
8870 iptr p = 0;
8871 ++p;
8873 { /* AIX XL C 1.02.0.0 rejects this saying
8874 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8875 struct s { int j; const int *ap[3]; };
8876 struct s *b; b->j = 5;
8878 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8879 const int foo = 10;
8880 if (!foo) return 0;
8882 return !cs[0] && !zero.x;
8883 #endif
8886 return 0;
8888 _ACEOF
8889 rm -f conftest.$ac_objext
8890 if { (ac_try="$ac_compile"
8891 case "(($ac_try" in
8892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8893 *) ac_try_echo=$ac_try;;
8894 esac
8895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8896 (eval "$ac_compile") 2>conftest.er1
8897 ac_status=$?
8898 grep -v '^ *+' conftest.er1 >conftest.err
8899 rm -f conftest.er1
8900 cat conftest.err >&5
8901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902 (exit $ac_status); } && {
8903 test -z "$ac_c_werror_flag" ||
8904 test ! -s conftest.err
8905 } && test -s conftest.$ac_objext; then
8906 ac_cv_c_const=yes
8907 else
8908 echo "$as_me: failed program was:" >&5
8909 sed 's/^/| /' conftest.$ac_ext >&5
8911 ac_cv_c_const=no
8914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8916 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8917 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8918 if test $ac_cv_c_const = no; then
8920 cat >>confdefs.h <<\_ACEOF
8921 #define const
8922 _ACEOF
8926 { echo "$as_me:$LINENO: checking for void * support" >&5
8927 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8928 if test "${emacs_cv_void_star+set}" = set; then
8929 echo $ECHO_N "(cached) $ECHO_C" >&6
8930 else
8931 cat >conftest.$ac_ext <<_ACEOF
8932 /* confdefs.h. */
8933 _ACEOF
8934 cat confdefs.h >>conftest.$ac_ext
8935 cat >>conftest.$ac_ext <<_ACEOF
8936 /* end confdefs.h. */
8939 main ()
8941 void * foo;
8943 return 0;
8945 _ACEOF
8946 rm -f conftest.$ac_objext
8947 if { (ac_try="$ac_compile"
8948 case "(($ac_try" in
8949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8950 *) ac_try_echo=$ac_try;;
8951 esac
8952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8953 (eval "$ac_compile") 2>conftest.er1
8954 ac_status=$?
8955 grep -v '^ *+' conftest.er1 >conftest.err
8956 rm -f conftest.er1
8957 cat conftest.err >&5
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); } && {
8960 test -z "$ac_c_werror_flag" ||
8961 test ! -s conftest.err
8962 } && test -s conftest.$ac_objext; then
8963 emacs_cv_void_star=yes
8964 else
8965 echo "$as_me: failed program was:" >&5
8966 sed 's/^/| /' conftest.$ac_ext >&5
8968 emacs_cv_void_star=no
8971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8973 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8974 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8975 if test $emacs_cv_void_star = yes; then
8976 cat >>confdefs.h <<\_ACEOF
8977 #define POINTER_TYPE void
8978 _ACEOF
8980 else
8981 cat >>confdefs.h <<\_ACEOF
8982 #define POINTER_TYPE char
8983 _ACEOF
8991 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8992 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8993 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8994 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8995 echo $ECHO_N "(cached) $ECHO_C" >&6
8996 else
8997 cat >conftest.make <<\_ACEOF
8998 SHELL = /bin/sh
8999 all:
9000 @echo '@@@%%%=$(MAKE)=@@@%%%'
9001 _ACEOF
9002 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9003 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9004 *@@@%%%=?*=@@@%%%*)
9005 eval ac_cv_prog_make_${ac_make}_set=yes;;
9007 eval ac_cv_prog_make_${ac_make}_set=no;;
9008 esac
9009 rm -f conftest.make
9011 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9012 { echo "$as_me:$LINENO: result: yes" >&5
9013 echo "${ECHO_T}yes" >&6; }
9014 SET_MAKE=
9015 else
9016 { echo "$as_me:$LINENO: result: no" >&5
9017 echo "${ECHO_T}no" >&6; }
9018 SET_MAKE="MAKE=${MAKE-make}"
9022 { echo "$as_me:$LINENO: checking for long file names" >&5
9023 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9024 if test "${ac_cv_sys_long_file_names+set}" = set; then
9025 echo $ECHO_N "(cached) $ECHO_C" >&6
9026 else
9027 ac_cv_sys_long_file_names=yes
9028 # Test for long file names in all the places we know might matter:
9029 # . the current directory, where building will happen
9030 # $prefix/lib where we will be installing things
9031 # $exec_prefix/lib likewise
9032 # $TMPDIR if set, where it might want to write temporary files
9033 # /tmp where it might want to write temporary files
9034 # /var/tmp likewise
9035 # /usr/tmp likewise
9036 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9037 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9038 # in the usual case where exec_prefix is '${prefix}'.
9039 case $ac_dir in #(
9040 . | /* | ?:[\\/]*) ;; #(
9041 *) continue;;
9042 esac
9043 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9044 ac_xdir=$ac_dir/cf$$
9045 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9046 ac_tf1=$ac_xdir/conftest9012345
9047 ac_tf2=$ac_xdir/conftest9012346
9048 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9049 ac_cv_sys_long_file_names=no
9050 rm -f -r "$ac_xdir" 2>/dev/null
9051 test $ac_cv_sys_long_file_names = no && break
9052 done
9054 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9055 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9056 if test $ac_cv_sys_long_file_names = yes; then
9058 cat >>confdefs.h <<\_ACEOF
9059 #define HAVE_LONG_FILE_NAMES 1
9060 _ACEOF
9065 #### Choose a window system.
9067 { echo "$as_me:$LINENO: checking for X" >&5
9068 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9071 # Check whether --with-x was given.
9072 if test "${with_x+set}" = set; then
9073 withval=$with_x;
9076 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9077 if test "x$with_x" = xno; then
9078 # The user explicitly disabled X.
9079 have_x=disabled
9080 else
9081 case $x_includes,$x_libraries in #(
9082 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9083 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9084 { (exit 1); exit 1; }; };; #(
9085 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9086 echo $ECHO_N "(cached) $ECHO_C" >&6
9087 else
9088 # One or both of the vars are not set, and there is no cached value.
9089 ac_x_includes=no ac_x_libraries=no
9090 rm -f -r conftest.dir
9091 if mkdir conftest.dir; then
9092 cd conftest.dir
9093 cat >Imakefile <<'_ACEOF'
9094 incroot:
9095 @echo incroot='${INCROOT}'
9096 usrlibdir:
9097 @echo usrlibdir='${USRLIBDIR}'
9098 libdir:
9099 @echo libdir='${LIBDIR}'
9100 _ACEOF
9101 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9102 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9103 for ac_var in incroot usrlibdir libdir; do
9104 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9105 done
9106 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9107 for ac_extension in a so sl; do
9108 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9109 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9110 ac_im_usrlibdir=$ac_im_libdir; break
9112 done
9113 # Screen out bogus values from the imake configuration. They are
9114 # bogus both because they are the default anyway, and because
9115 # using them would break gcc on systems where it needs fixed includes.
9116 case $ac_im_incroot in
9117 /usr/include) ac_x_includes= ;;
9118 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9119 esac
9120 case $ac_im_usrlibdir in
9121 /usr/lib | /lib) ;;
9122 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9123 esac
9125 cd ..
9126 rm -f -r conftest.dir
9129 # Standard set of common directories for X headers.
9130 # Check X11 before X11Rn because it is often a symlink to the current release.
9131 ac_x_header_dirs='
9132 /usr/X11/include
9133 /usr/X11R6/include
9134 /usr/X11R5/include
9135 /usr/X11R4/include
9137 /usr/include/X11
9138 /usr/include/X11R6
9139 /usr/include/X11R5
9140 /usr/include/X11R4
9142 /usr/local/X11/include
9143 /usr/local/X11R6/include
9144 /usr/local/X11R5/include
9145 /usr/local/X11R4/include
9147 /usr/local/include/X11
9148 /usr/local/include/X11R6
9149 /usr/local/include/X11R5
9150 /usr/local/include/X11R4
9152 /usr/X386/include
9153 /usr/x386/include
9154 /usr/XFree86/include/X11
9156 /usr/include
9157 /usr/local/include
9158 /usr/unsupported/include
9159 /usr/athena/include
9160 /usr/local/x11r5/include
9161 /usr/lpp/Xamples/include
9163 /usr/openwin/include
9164 /usr/openwin/share/include'
9166 if test "$ac_x_includes" = no; then
9167 # Guess where to find include files, by looking for Xlib.h.
9168 # First, try using that file with no special directory specified.
9169 cat >conftest.$ac_ext <<_ACEOF
9170 /* confdefs.h. */
9171 _ACEOF
9172 cat confdefs.h >>conftest.$ac_ext
9173 cat >>conftest.$ac_ext <<_ACEOF
9174 /* end confdefs.h. */
9175 #include <X11/Xlib.h>
9176 _ACEOF
9177 if { (ac_try="$ac_cpp conftest.$ac_ext"
9178 case "(($ac_try" in
9179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9180 *) ac_try_echo=$ac_try;;
9181 esac
9182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9183 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9184 ac_status=$?
9185 grep -v '^ *+' conftest.er1 >conftest.err
9186 rm -f conftest.er1
9187 cat conftest.err >&5
9188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189 (exit $ac_status); } >/dev/null && {
9190 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9191 test ! -s conftest.err
9192 }; then
9193 # We can compile using X headers with no special include directory.
9194 ac_x_includes=
9195 else
9196 echo "$as_me: failed program was:" >&5
9197 sed 's/^/| /' conftest.$ac_ext >&5
9199 for ac_dir in $ac_x_header_dirs; do
9200 if test -r "$ac_dir/X11/Xlib.h"; then
9201 ac_x_includes=$ac_dir
9202 break
9204 done
9207 rm -f conftest.err conftest.$ac_ext
9208 fi # $ac_x_includes = no
9210 if test "$ac_x_libraries" = no; then
9211 # Check for the libraries.
9212 # See if we find them without any special options.
9213 # Don't add to $LIBS permanently.
9214 ac_save_LIBS=$LIBS
9215 LIBS="-lX11 $LIBS"
9216 cat >conftest.$ac_ext <<_ACEOF
9217 /* confdefs.h. */
9218 _ACEOF
9219 cat confdefs.h >>conftest.$ac_ext
9220 cat >>conftest.$ac_ext <<_ACEOF
9221 /* end confdefs.h. */
9222 #include <X11/Xlib.h>
9224 main ()
9226 XrmInitialize ()
9228 return 0;
9230 _ACEOF
9231 rm -f conftest.$ac_objext conftest$ac_exeext
9232 if { (ac_try="$ac_link"
9233 case "(($ac_try" in
9234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9235 *) ac_try_echo=$ac_try;;
9236 esac
9237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9238 (eval "$ac_link") 2>conftest.er1
9239 ac_status=$?
9240 grep -v '^ *+' conftest.er1 >conftest.err
9241 rm -f conftest.er1
9242 cat conftest.err >&5
9243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244 (exit $ac_status); } && {
9245 test -z "$ac_c_werror_flag" ||
9246 test ! -s conftest.err
9247 } && test -s conftest$ac_exeext &&
9248 $as_test_x conftest$ac_exeext; then
9249 LIBS=$ac_save_LIBS
9250 # We can link X programs with no special library path.
9251 ac_x_libraries=
9252 else
9253 echo "$as_me: failed program was:" >&5
9254 sed 's/^/| /' conftest.$ac_ext >&5
9256 LIBS=$ac_save_LIBS
9257 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9259 # Don't even attempt the hair of trying to link an X program!
9260 for ac_extension in a so sl; do
9261 if test -r "$ac_dir/libX11.$ac_extension"; then
9262 ac_x_libraries=$ac_dir
9263 break 2
9265 done
9266 done
9269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9270 conftest$ac_exeext conftest.$ac_ext
9271 fi # $ac_x_libraries = no
9273 case $ac_x_includes,$ac_x_libraries in #(
9274 no,* | *,no | *\'*)
9275 # Didn't find X, or a directory has "'" in its name.
9276 ac_cv_have_x="have_x=no";; #(
9278 # Record where we found X for the cache.
9279 ac_cv_have_x="have_x=yes\
9280 ac_x_includes='$ac_x_includes'\
9281 ac_x_libraries='$ac_x_libraries'"
9282 esac
9284 ;; #(
9285 *) have_x=yes;;
9286 esac
9287 eval "$ac_cv_have_x"
9288 fi # $with_x != no
9290 if test "$have_x" != yes; then
9291 { echo "$as_me:$LINENO: result: $have_x" >&5
9292 echo "${ECHO_T}$have_x" >&6; }
9293 no_x=yes
9294 else
9295 # If each of the values was on the command line, it overrides each guess.
9296 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9297 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9298 # Update the cache value to reflect the command line values.
9299 ac_cv_have_x="have_x=yes\
9300 ac_x_includes='$x_includes'\
9301 ac_x_libraries='$x_libraries'"
9302 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9303 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9306 if test "$no_x" = yes; then
9307 window_system=none
9308 else
9309 window_system=x11
9312 ## Workaround for bug in autoconf <= 2.62.
9313 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9314 ## No need to do anything special for these standard directories.
9315 ## This is an experiment, take it out if it causes problems.
9316 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9318 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9322 if test "${x_libraries}" != NONE; then
9323 if test -n "${x_libraries}"; then
9324 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9325 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9327 x_default_search_path=""
9328 x_search_path=${x_libraries}
9329 if test -z "${x_search_path}"; then
9330 x_search_path=/usr/lib
9332 for x_library in `echo ${x_search_path}: | \
9333 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9334 x_search_path="\
9335 ${x_library}/X11/%L/%T/%N%C%S:\
9336 ${x_library}/X11/%l/%T/%N%C%S:\
9337 ${x_library}/X11/%T/%N%C%S:\
9338 ${x_library}/X11/%L/%T/%N%S:\
9339 ${x_library}/X11/%l/%T/%N%S:\
9340 ${x_library}/X11/%T/%N%S"
9341 if test x"${x_default_search_path}" = x; then
9342 x_default_search_path=${x_search_path}
9343 else
9344 x_default_search_path="${x_search_path}:${x_default_search_path}"
9346 done
9348 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9349 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9352 if test x"${x_includes}" = x; then
9353 bitmapdir=/usr/include/X11/bitmaps
9354 else
9355 # accumulate include directories that have X11 bitmap subdirectories
9356 bmd_acc="dummyval"
9357 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9358 if test -d "${bmd}/X11/bitmaps"; then
9359 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9361 if test -d "${bmd}/bitmaps"; then
9362 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9364 done
9365 if test ${bmd_acc} != "dummyval"; then
9366 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9370 HAVE_CARBON=no
9371 if test "${with_carbon}" != no; then
9372 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9373 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9374 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9375 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9376 echo $ECHO_N "(cached) $ECHO_C" >&6
9378 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9379 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9380 else
9381 # Is the header compilable?
9382 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9383 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9384 cat >conftest.$ac_ext <<_ACEOF
9385 /* confdefs.h. */
9386 _ACEOF
9387 cat confdefs.h >>conftest.$ac_ext
9388 cat >>conftest.$ac_ext <<_ACEOF
9389 /* end confdefs.h. */
9390 $ac_includes_default
9391 #include <Carbon/Carbon.h>
9392 _ACEOF
9393 rm -f conftest.$ac_objext
9394 if { (ac_try="$ac_compile"
9395 case "(($ac_try" in
9396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9397 *) ac_try_echo=$ac_try;;
9398 esac
9399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9400 (eval "$ac_compile") 2>conftest.er1
9401 ac_status=$?
9402 grep -v '^ *+' conftest.er1 >conftest.err
9403 rm -f conftest.er1
9404 cat conftest.err >&5
9405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406 (exit $ac_status); } && {
9407 test -z "$ac_c_werror_flag" ||
9408 test ! -s conftest.err
9409 } && test -s conftest.$ac_objext; then
9410 ac_header_compiler=yes
9411 else
9412 echo "$as_me: failed program was:" >&5
9413 sed 's/^/| /' conftest.$ac_ext >&5
9415 ac_header_compiler=no
9418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9419 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9420 echo "${ECHO_T}$ac_header_compiler" >&6; }
9422 # Is the header present?
9423 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9424 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9425 cat >conftest.$ac_ext <<_ACEOF
9426 /* confdefs.h. */
9427 _ACEOF
9428 cat confdefs.h >>conftest.$ac_ext
9429 cat >>conftest.$ac_ext <<_ACEOF
9430 /* end confdefs.h. */
9431 #include <Carbon/Carbon.h>
9432 _ACEOF
9433 if { (ac_try="$ac_cpp conftest.$ac_ext"
9434 case "(($ac_try" in
9435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9436 *) ac_try_echo=$ac_try;;
9437 esac
9438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9440 ac_status=$?
9441 grep -v '^ *+' conftest.er1 >conftest.err
9442 rm -f conftest.er1
9443 cat conftest.err >&5
9444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445 (exit $ac_status); } >/dev/null && {
9446 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9447 test ! -s conftest.err
9448 }; then
9449 ac_header_preproc=yes
9450 else
9451 echo "$as_me: failed program was:" >&5
9452 sed 's/^/| /' conftest.$ac_ext >&5
9454 ac_header_preproc=no
9457 rm -f conftest.err conftest.$ac_ext
9458 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9459 echo "${ECHO_T}$ac_header_preproc" >&6; }
9461 # So? What about this header?
9462 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9463 yes:no: )
9464 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9465 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9466 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9467 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9468 ac_header_preproc=yes
9470 no:yes:* )
9471 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9472 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9473 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9474 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9475 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9476 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9477 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9478 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9479 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9480 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9481 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9482 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9485 esac
9486 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9487 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9488 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9489 echo $ECHO_N "(cached) $ECHO_C" >&6
9490 else
9491 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9493 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9494 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9497 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9498 HAVE_CARBON=yes
9503 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9504 if test "${with_carbon+set}" != set \
9505 && test "${carbon_appdir_x+set}" != set; then
9506 for var in with_x with_x_toolkit with_xim \
9507 with_xpm with_jpeg with_tiff with_gif with_png; do
9508 if eval test \"\${$var+set}\" = set; then
9509 HAVE_CARBON=no
9510 break
9512 done
9515 if test "${HAVE_CARBON}" = yes; then
9516 window_system=mac
9519 case "${window_system}" in
9520 x11 )
9521 HAVE_X_WINDOWS=yes
9522 HAVE_X11=yes
9523 case "${with_x_toolkit}" in
9524 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9525 motif ) USE_X_TOOLKIT=MOTIF ;;
9526 gtk ) with_gtk=yes
9527 USE_X_TOOLKIT=none ;;
9528 no ) USE_X_TOOLKIT=none ;;
9529 * ) USE_X_TOOLKIT=maybe ;;
9530 esac
9532 mac | none )
9533 HAVE_X_WINDOWS=no
9534 HAVE_X11=no
9535 USE_X_TOOLKIT=none
9537 esac
9539 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9540 # Extract the first word of "X", so it can be a program name with args.
9541 set dummy X; ac_word=$2
9542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9544 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9545 echo $ECHO_N "(cached) $ECHO_C" >&6
9546 else
9547 if test -n "$HAVE_XSERVER"; then
9548 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9549 else
9550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9551 for as_dir in $PATH
9553 IFS=$as_save_IFS
9554 test -z "$as_dir" && as_dir=.
9555 for ac_exec_ext in '' $ac_executable_extensions; do
9556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9557 ac_cv_prog_HAVE_XSERVER="true"
9558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9559 break 2
9561 done
9562 done
9563 IFS=$as_save_IFS
9565 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9568 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9569 if test -n "$HAVE_XSERVER"; then
9570 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9571 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9572 else
9573 { echo "$as_me:$LINENO: result: no" >&5
9574 echo "${ECHO_T}no" >&6; }
9578 if test "$HAVE_XSERVER" = true ||
9579 test -n "$DISPLAY" ||
9580 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9581 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9582 were found. You should install the relevant development files for X
9583 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9584 sure you have development files for image handling, i.e.
9585 tiff, gif, jpeg, png and xpm.
9586 If you are sure you want Emacs compiled without X window support, pass
9587 --without-x
9588 to configure." >&5
9589 echo "$as_me: error: You seem to be running X, but no X development libraries
9590 were found. You should install the relevant development files for X
9591 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9592 sure you have development files for image handling, i.e.
9593 tiff, gif, jpeg, png and xpm.
9594 If you are sure you want Emacs compiled without X window support, pass
9595 --without-x
9596 to configure." >&2;}
9597 { (exit 1); exit 1; }; }
9601 ### If we're using X11, we should use the X menu package.
9602 HAVE_MENUS=no
9603 case ${HAVE_X11} in
9604 yes ) HAVE_MENUS=yes ;;
9605 esac
9607 ### Compute the unexec source name from the object name.
9608 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9610 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9611 # Assume not, until told otherwise.
9612 GNU_MALLOC=yes
9613 doug_lea_malloc=yes
9614 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9615 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9616 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9617 echo $ECHO_N "(cached) $ECHO_C" >&6
9618 else
9619 cat >conftest.$ac_ext <<_ACEOF
9620 /* confdefs.h. */
9621 _ACEOF
9622 cat confdefs.h >>conftest.$ac_ext
9623 cat >>conftest.$ac_ext <<_ACEOF
9624 /* end confdefs.h. */
9625 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9626 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9627 #define malloc_get_state innocuous_malloc_get_state
9629 /* System header to define __stub macros and hopefully few prototypes,
9630 which can conflict with char malloc_get_state (); below.
9631 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9632 <limits.h> exists even on freestanding compilers. */
9634 #ifdef __STDC__
9635 # include <limits.h>
9636 #else
9637 # include <assert.h>
9638 #endif
9640 #undef malloc_get_state
9642 /* Override any GCC internal prototype to avoid an error.
9643 Use char because int might match the return type of a GCC
9644 builtin and then its argument prototype would still apply. */
9645 #ifdef __cplusplus
9646 extern "C"
9647 #endif
9648 char malloc_get_state ();
9649 /* The GNU C library defines this for functions which it implements
9650 to always fail with ENOSYS. Some functions are actually named
9651 something starting with __ and the normal name is an alias. */
9652 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9653 choke me
9654 #endif
9657 main ()
9659 return malloc_get_state ();
9661 return 0;
9663 _ACEOF
9664 rm -f conftest.$ac_objext conftest$ac_exeext
9665 if { (ac_try="$ac_link"
9666 case "(($ac_try" in
9667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9668 *) ac_try_echo=$ac_try;;
9669 esac
9670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9671 (eval "$ac_link") 2>conftest.er1
9672 ac_status=$?
9673 grep -v '^ *+' conftest.er1 >conftest.err
9674 rm -f conftest.er1
9675 cat conftest.err >&5
9676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677 (exit $ac_status); } && {
9678 test -z "$ac_c_werror_flag" ||
9679 test ! -s conftest.err
9680 } && test -s conftest$ac_exeext &&
9681 $as_test_x conftest$ac_exeext; then
9682 ac_cv_func_malloc_get_state=yes
9683 else
9684 echo "$as_me: failed program was:" >&5
9685 sed 's/^/| /' conftest.$ac_ext >&5
9687 ac_cv_func_malloc_get_state=no
9690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9691 conftest$ac_exeext conftest.$ac_ext
9693 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9694 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9695 if test $ac_cv_func_malloc_get_state = yes; then
9697 else
9698 doug_lea_malloc=no
9701 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9702 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9703 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9704 echo $ECHO_N "(cached) $ECHO_C" >&6
9705 else
9706 cat >conftest.$ac_ext <<_ACEOF
9707 /* confdefs.h. */
9708 _ACEOF
9709 cat confdefs.h >>conftest.$ac_ext
9710 cat >>conftest.$ac_ext <<_ACEOF
9711 /* end confdefs.h. */
9712 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9713 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9714 #define malloc_set_state innocuous_malloc_set_state
9716 /* System header to define __stub macros and hopefully few prototypes,
9717 which can conflict with char malloc_set_state (); below.
9718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9719 <limits.h> exists even on freestanding compilers. */
9721 #ifdef __STDC__
9722 # include <limits.h>
9723 #else
9724 # include <assert.h>
9725 #endif
9727 #undef malloc_set_state
9729 /* Override any GCC internal prototype to avoid an error.
9730 Use char because int might match the return type of a GCC
9731 builtin and then its argument prototype would still apply. */
9732 #ifdef __cplusplus
9733 extern "C"
9734 #endif
9735 char malloc_set_state ();
9736 /* The GNU C library defines this for functions which it implements
9737 to always fail with ENOSYS. Some functions are actually named
9738 something starting with __ and the normal name is an alias. */
9739 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9740 choke me
9741 #endif
9744 main ()
9746 return malloc_set_state ();
9748 return 0;
9750 _ACEOF
9751 rm -f conftest.$ac_objext conftest$ac_exeext
9752 if { (ac_try="$ac_link"
9753 case "(($ac_try" in
9754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9755 *) ac_try_echo=$ac_try;;
9756 esac
9757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9758 (eval "$ac_link") 2>conftest.er1
9759 ac_status=$?
9760 grep -v '^ *+' conftest.er1 >conftest.err
9761 rm -f conftest.er1
9762 cat conftest.err >&5
9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); } && {
9765 test -z "$ac_c_werror_flag" ||
9766 test ! -s conftest.err
9767 } && test -s conftest$ac_exeext &&
9768 $as_test_x conftest$ac_exeext; then
9769 ac_cv_func_malloc_set_state=yes
9770 else
9771 echo "$as_me: failed program was:" >&5
9772 sed 's/^/| /' conftest.$ac_ext >&5
9774 ac_cv_func_malloc_set_state=no
9777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9778 conftest$ac_exeext conftest.$ac_ext
9780 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9781 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9782 if test $ac_cv_func_malloc_set_state = yes; then
9784 else
9785 doug_lea_malloc=no
9788 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9789 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9790 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9791 echo $ECHO_N "(cached) $ECHO_C" >&6
9792 else
9793 cat >conftest.$ac_ext <<_ACEOF
9794 /* confdefs.h. */
9795 _ACEOF
9796 cat confdefs.h >>conftest.$ac_ext
9797 cat >>conftest.$ac_ext <<_ACEOF
9798 /* end confdefs.h. */
9799 extern void (* __after_morecore_hook)();
9801 main ()
9803 __after_morecore_hook = 0
9805 return 0;
9807 _ACEOF
9808 rm -f conftest.$ac_objext conftest$ac_exeext
9809 if { (ac_try="$ac_link"
9810 case "(($ac_try" in
9811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9812 *) ac_try_echo=$ac_try;;
9813 esac
9814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9815 (eval "$ac_link") 2>conftest.er1
9816 ac_status=$?
9817 grep -v '^ *+' conftest.er1 >conftest.err
9818 rm -f conftest.er1
9819 cat conftest.err >&5
9820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821 (exit $ac_status); } && {
9822 test -z "$ac_c_werror_flag" ||
9823 test ! -s conftest.err
9824 } && test -s conftest$ac_exeext &&
9825 $as_test_x conftest$ac_exeext; then
9826 emacs_cv_var___after_morecore_hook=yes
9827 else
9828 echo "$as_me: failed program was:" >&5
9829 sed 's/^/| /' conftest.$ac_ext >&5
9831 emacs_cv_var___after_morecore_hook=no
9834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9835 conftest$ac_exeext conftest.$ac_ext
9837 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9838 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9839 if test $emacs_cv_var___after_morecore_hook = no; then
9840 doug_lea_malloc=no
9842 if test "${system_malloc}" = "yes"; then
9843 GNU_MALLOC=no
9844 GNU_MALLOC_reason="
9845 (The GNU allocators don't work with this system configuration.)"
9847 if test "$doug_lea_malloc" = "yes" ; then
9848 if test "$GNU_MALLOC" = yes ; then
9849 GNU_MALLOC_reason="
9850 (Using Doug Lea's new malloc from the GNU C Library.)"
9853 cat >>confdefs.h <<\_ACEOF
9854 #define DOUG_LEA_MALLOC 1
9855 _ACEOF
9859 if test x"${REL_ALLOC}" = x; then
9860 REL_ALLOC=${GNU_MALLOC}
9866 for ac_header in stdlib.h unistd.h
9868 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9870 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9873 echo $ECHO_N "(cached) $ECHO_C" >&6
9875 ac_res=`eval echo '${'$as_ac_Header'}'`
9876 { echo "$as_me:$LINENO: result: $ac_res" >&5
9877 echo "${ECHO_T}$ac_res" >&6; }
9878 else
9879 # Is the header compilable?
9880 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9881 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9882 cat >conftest.$ac_ext <<_ACEOF
9883 /* confdefs.h. */
9884 _ACEOF
9885 cat confdefs.h >>conftest.$ac_ext
9886 cat >>conftest.$ac_ext <<_ACEOF
9887 /* end confdefs.h. */
9888 $ac_includes_default
9889 #include <$ac_header>
9890 _ACEOF
9891 rm -f conftest.$ac_objext
9892 if { (ac_try="$ac_compile"
9893 case "(($ac_try" in
9894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9895 *) ac_try_echo=$ac_try;;
9896 esac
9897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9898 (eval "$ac_compile") 2>conftest.er1
9899 ac_status=$?
9900 grep -v '^ *+' conftest.er1 >conftest.err
9901 rm -f conftest.er1
9902 cat conftest.err >&5
9903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904 (exit $ac_status); } && {
9905 test -z "$ac_c_werror_flag" ||
9906 test ! -s conftest.err
9907 } && test -s conftest.$ac_objext; then
9908 ac_header_compiler=yes
9909 else
9910 echo "$as_me: failed program was:" >&5
9911 sed 's/^/| /' conftest.$ac_ext >&5
9913 ac_header_compiler=no
9916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9917 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9918 echo "${ECHO_T}$ac_header_compiler" >&6; }
9920 # Is the header present?
9921 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9922 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9923 cat >conftest.$ac_ext <<_ACEOF
9924 /* confdefs.h. */
9925 _ACEOF
9926 cat confdefs.h >>conftest.$ac_ext
9927 cat >>conftest.$ac_ext <<_ACEOF
9928 /* end confdefs.h. */
9929 #include <$ac_header>
9930 _ACEOF
9931 if { (ac_try="$ac_cpp conftest.$ac_ext"
9932 case "(($ac_try" in
9933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9934 *) ac_try_echo=$ac_try;;
9935 esac
9936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9937 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9938 ac_status=$?
9939 grep -v '^ *+' conftest.er1 >conftest.err
9940 rm -f conftest.er1
9941 cat conftest.err >&5
9942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943 (exit $ac_status); } >/dev/null && {
9944 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9945 test ! -s conftest.err
9946 }; then
9947 ac_header_preproc=yes
9948 else
9949 echo "$as_me: failed program was:" >&5
9950 sed 's/^/| /' conftest.$ac_ext >&5
9952 ac_header_preproc=no
9955 rm -f conftest.err conftest.$ac_ext
9956 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9957 echo "${ECHO_T}$ac_header_preproc" >&6; }
9959 # So? What about this header?
9960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9961 yes:no: )
9962 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9963 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9965 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9966 ac_header_preproc=yes
9968 no:yes:* )
9969 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9970 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9971 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9972 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9973 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9974 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9975 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9976 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9977 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9978 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9979 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9980 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9983 esac
9984 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9987 echo $ECHO_N "(cached) $ECHO_C" >&6
9988 else
9989 eval "$as_ac_Header=\$ac_header_preproc"
9991 ac_res=`eval echo '${'$as_ac_Header'}'`
9992 { echo "$as_me:$LINENO: result: $ac_res" >&5
9993 echo "${ECHO_T}$ac_res" >&6; }
9996 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9997 cat >>confdefs.h <<_ACEOF
9998 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9999 _ACEOF
10003 done
10006 for ac_func in getpagesize
10008 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10009 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10010 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10011 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10012 echo $ECHO_N "(cached) $ECHO_C" >&6
10013 else
10014 cat >conftest.$ac_ext <<_ACEOF
10015 /* confdefs.h. */
10016 _ACEOF
10017 cat confdefs.h >>conftest.$ac_ext
10018 cat >>conftest.$ac_ext <<_ACEOF
10019 /* end confdefs.h. */
10020 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10021 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10022 #define $ac_func innocuous_$ac_func
10024 /* System header to define __stub macros and hopefully few prototypes,
10025 which can conflict with char $ac_func (); below.
10026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10027 <limits.h> exists even on freestanding compilers. */
10029 #ifdef __STDC__
10030 # include <limits.h>
10031 #else
10032 # include <assert.h>
10033 #endif
10035 #undef $ac_func
10037 /* Override any GCC internal prototype to avoid an error.
10038 Use char because int might match the return type of a GCC
10039 builtin and then its argument prototype would still apply. */
10040 #ifdef __cplusplus
10041 extern "C"
10042 #endif
10043 char $ac_func ();
10044 /* The GNU C library defines this for functions which it implements
10045 to always fail with ENOSYS. Some functions are actually named
10046 something starting with __ and the normal name is an alias. */
10047 #if defined __stub_$ac_func || defined __stub___$ac_func
10048 choke me
10049 #endif
10052 main ()
10054 return $ac_func ();
10056 return 0;
10058 _ACEOF
10059 rm -f conftest.$ac_objext conftest$ac_exeext
10060 if { (ac_try="$ac_link"
10061 case "(($ac_try" in
10062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10063 *) ac_try_echo=$ac_try;;
10064 esac
10065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10066 (eval "$ac_link") 2>conftest.er1
10067 ac_status=$?
10068 grep -v '^ *+' conftest.er1 >conftest.err
10069 rm -f conftest.er1
10070 cat conftest.err >&5
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); } && {
10073 test -z "$ac_c_werror_flag" ||
10074 test ! -s conftest.err
10075 } && test -s conftest$ac_exeext &&
10076 $as_test_x conftest$ac_exeext; then
10077 eval "$as_ac_var=yes"
10078 else
10079 echo "$as_me: failed program was:" >&5
10080 sed 's/^/| /' conftest.$ac_ext >&5
10082 eval "$as_ac_var=no"
10085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10086 conftest$ac_exeext conftest.$ac_ext
10088 ac_res=`eval echo '${'$as_ac_var'}'`
10089 { echo "$as_me:$LINENO: result: $ac_res" >&5
10090 echo "${ECHO_T}$ac_res" >&6; }
10091 if test `eval echo '${'$as_ac_var'}'` = yes; then
10092 cat >>confdefs.h <<_ACEOF
10093 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10094 _ACEOF
10097 done
10099 { echo "$as_me:$LINENO: checking for working mmap" >&5
10100 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10101 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10102 echo $ECHO_N "(cached) $ECHO_C" >&6
10103 else
10104 if test "$cross_compiling" = yes; then
10105 ac_cv_func_mmap_fixed_mapped=no
10106 else
10107 cat >conftest.$ac_ext <<_ACEOF
10108 /* confdefs.h. */
10109 _ACEOF
10110 cat confdefs.h >>conftest.$ac_ext
10111 cat >>conftest.$ac_ext <<_ACEOF
10112 /* end confdefs.h. */
10113 $ac_includes_default
10114 /* malloc might have been renamed as rpl_malloc. */
10115 #undef malloc
10117 /* Thanks to Mike Haertel and Jim Avera for this test.
10118 Here is a matrix of mmap possibilities:
10119 mmap private not fixed
10120 mmap private fixed at somewhere currently unmapped
10121 mmap private fixed at somewhere already mapped
10122 mmap shared not fixed
10123 mmap shared fixed at somewhere currently unmapped
10124 mmap shared fixed at somewhere already mapped
10125 For private mappings, we should verify that changes cannot be read()
10126 back from the file, nor mmap's back from the file at a different
10127 address. (There have been systems where private was not correctly
10128 implemented like the infamous i386 svr4.0, and systems where the
10129 VM page cache was not coherent with the file system buffer cache
10130 like early versions of FreeBSD and possibly contemporary NetBSD.)
10131 For shared mappings, we should conversely verify that changes get
10132 propagated back to all the places they're supposed to be.
10134 Grep wants private fixed already mapped.
10135 The main things grep needs to know about mmap are:
10136 * does it exist and is it safe to write into the mmap'd area
10137 * how to use it (BSD variants) */
10139 #include <fcntl.h>
10140 #include <sys/mman.h>
10142 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10143 char *malloc ();
10144 #endif
10146 /* This mess was copied from the GNU getpagesize.h. */
10147 #ifndef HAVE_GETPAGESIZE
10148 /* Assume that all systems that can run configure have sys/param.h. */
10149 # ifndef HAVE_SYS_PARAM_H
10150 # define HAVE_SYS_PARAM_H 1
10151 # endif
10153 # ifdef _SC_PAGESIZE
10154 # define getpagesize() sysconf(_SC_PAGESIZE)
10155 # else /* no _SC_PAGESIZE */
10156 # ifdef HAVE_SYS_PARAM_H
10157 # include <sys/param.h>
10158 # ifdef EXEC_PAGESIZE
10159 # define getpagesize() EXEC_PAGESIZE
10160 # else /* no EXEC_PAGESIZE */
10161 # ifdef NBPG
10162 # define getpagesize() NBPG * CLSIZE
10163 # ifndef CLSIZE
10164 # define CLSIZE 1
10165 # endif /* no CLSIZE */
10166 # else /* no NBPG */
10167 # ifdef NBPC
10168 # define getpagesize() NBPC
10169 # else /* no NBPC */
10170 # ifdef PAGESIZE
10171 # define getpagesize() PAGESIZE
10172 # endif /* PAGESIZE */
10173 # endif /* no NBPC */
10174 # endif /* no NBPG */
10175 # endif /* no EXEC_PAGESIZE */
10176 # else /* no HAVE_SYS_PARAM_H */
10177 # define getpagesize() 8192 /* punt totally */
10178 # endif /* no HAVE_SYS_PARAM_H */
10179 # endif /* no _SC_PAGESIZE */
10181 #endif /* no HAVE_GETPAGESIZE */
10184 main ()
10186 char *data, *data2, *data3;
10187 int i, pagesize;
10188 int fd;
10190 pagesize = getpagesize ();
10192 /* First, make a file with some known garbage in it. */
10193 data = (char *) malloc (pagesize);
10194 if (!data)
10195 return 1;
10196 for (i = 0; i < pagesize; ++i)
10197 *(data + i) = rand ();
10198 umask (0);
10199 fd = creat ("conftest.mmap", 0600);
10200 if (fd < 0)
10201 return 1;
10202 if (write (fd, data, pagesize) != pagesize)
10203 return 1;
10204 close (fd);
10206 /* Next, try to mmap the file at a fixed address which already has
10207 something else allocated at it. If we can, also make sure that
10208 we see the same garbage. */
10209 fd = open ("conftest.mmap", O_RDWR);
10210 if (fd < 0)
10211 return 1;
10212 data2 = (char *) malloc (2 * pagesize);
10213 if (!data2)
10214 return 1;
10215 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10216 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10217 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10218 return 1;
10219 for (i = 0; i < pagesize; ++i)
10220 if (*(data + i) != *(data2 + i))
10221 return 1;
10223 /* Finally, make sure that changes to the mapped area do not
10224 percolate back to the file as seen by read(). (This is a bug on
10225 some variants of i386 svr4.0.) */
10226 for (i = 0; i < pagesize; ++i)
10227 *(data2 + i) = *(data2 + i) + 1;
10228 data3 = (char *) malloc (pagesize);
10229 if (!data3)
10230 return 1;
10231 if (read (fd, data3, pagesize) != pagesize)
10232 return 1;
10233 for (i = 0; i < pagesize; ++i)
10234 if (*(data + i) != *(data3 + i))
10235 return 1;
10236 close (fd);
10237 return 0;
10239 _ACEOF
10240 rm -f conftest$ac_exeext
10241 if { (ac_try="$ac_link"
10242 case "(($ac_try" in
10243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10244 *) ac_try_echo=$ac_try;;
10245 esac
10246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10247 (eval "$ac_link") 2>&5
10248 ac_status=$?
10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10251 { (case "(($ac_try" in
10252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10253 *) ac_try_echo=$ac_try;;
10254 esac
10255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10256 (eval "$ac_try") 2>&5
10257 ac_status=$?
10258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 (exit $ac_status); }; }; then
10260 ac_cv_func_mmap_fixed_mapped=yes
10261 else
10262 echo "$as_me: program exited with status $ac_status" >&5
10263 echo "$as_me: failed program was:" >&5
10264 sed 's/^/| /' conftest.$ac_ext >&5
10266 ( exit $ac_status )
10267 ac_cv_func_mmap_fixed_mapped=no
10269 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10274 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10275 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10276 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10278 cat >>confdefs.h <<\_ACEOF
10279 #define HAVE_MMAP 1
10280 _ACEOF
10283 rm -f conftest.mmap
10285 if test $use_mmap_for_buffers = yes; then
10286 REL_ALLOC=no
10289 LIBS="$libsrc_libs $LIBS"
10292 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10293 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10294 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10295 echo $ECHO_N "(cached) $ECHO_C" >&6
10296 else
10297 ac_check_lib_save_LIBS=$LIBS
10298 LIBS="-ldnet $LIBS"
10299 cat >conftest.$ac_ext <<_ACEOF
10300 /* confdefs.h. */
10301 _ACEOF
10302 cat confdefs.h >>conftest.$ac_ext
10303 cat >>conftest.$ac_ext <<_ACEOF
10304 /* end confdefs.h. */
10306 /* Override any GCC internal prototype to avoid an error.
10307 Use char because int might match the return type of a GCC
10308 builtin and then its argument prototype would still apply. */
10309 #ifdef __cplusplus
10310 extern "C"
10311 #endif
10312 char dnet_ntoa ();
10314 main ()
10316 return dnet_ntoa ();
10318 return 0;
10320 _ACEOF
10321 rm -f conftest.$ac_objext conftest$ac_exeext
10322 if { (ac_try="$ac_link"
10323 case "(($ac_try" in
10324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10325 *) ac_try_echo=$ac_try;;
10326 esac
10327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10328 (eval "$ac_link") 2>conftest.er1
10329 ac_status=$?
10330 grep -v '^ *+' conftest.er1 >conftest.err
10331 rm -f conftest.er1
10332 cat conftest.err >&5
10333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334 (exit $ac_status); } && {
10335 test -z "$ac_c_werror_flag" ||
10336 test ! -s conftest.err
10337 } && test -s conftest$ac_exeext &&
10338 $as_test_x conftest$ac_exeext; then
10339 ac_cv_lib_dnet_dnet_ntoa=yes
10340 else
10341 echo "$as_me: failed program was:" >&5
10342 sed 's/^/| /' conftest.$ac_ext >&5
10344 ac_cv_lib_dnet_dnet_ntoa=no
10347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10348 conftest$ac_exeext conftest.$ac_ext
10349 LIBS=$ac_check_lib_save_LIBS
10351 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10352 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10353 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10354 cat >>confdefs.h <<_ACEOF
10355 #define HAVE_LIBDNET 1
10356 _ACEOF
10358 LIBS="-ldnet $LIBS"
10363 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10364 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10365 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10366 echo $ECHO_N "(cached) $ECHO_C" >&6
10367 else
10368 ac_check_lib_save_LIBS=$LIBS
10369 LIBS="-lXbsd $LIBS"
10370 cat >conftest.$ac_ext <<_ACEOF
10371 /* confdefs.h. */
10372 _ACEOF
10373 cat confdefs.h >>conftest.$ac_ext
10374 cat >>conftest.$ac_ext <<_ACEOF
10375 /* end confdefs.h. */
10379 main ()
10381 return main ();
10383 return 0;
10385 _ACEOF
10386 rm -f conftest.$ac_objext conftest$ac_exeext
10387 if { (ac_try="$ac_link"
10388 case "(($ac_try" in
10389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10390 *) ac_try_echo=$ac_try;;
10391 esac
10392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10393 (eval "$ac_link") 2>conftest.er1
10394 ac_status=$?
10395 grep -v '^ *+' conftest.er1 >conftest.err
10396 rm -f conftest.er1
10397 cat conftest.err >&5
10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); } && {
10400 test -z "$ac_c_werror_flag" ||
10401 test ! -s conftest.err
10402 } && test -s conftest$ac_exeext &&
10403 $as_test_x conftest$ac_exeext; then
10404 ac_cv_lib_Xbsd_main=yes
10405 else
10406 echo "$as_me: failed program was:" >&5
10407 sed 's/^/| /' conftest.$ac_ext >&5
10409 ac_cv_lib_Xbsd_main=no
10412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10413 conftest$ac_exeext conftest.$ac_ext
10414 LIBS=$ac_check_lib_save_LIBS
10416 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10417 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10418 if test $ac_cv_lib_Xbsd_main = yes; then
10419 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10424 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10425 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10426 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10427 echo $ECHO_N "(cached) $ECHO_C" >&6
10428 else
10429 ac_check_lib_save_LIBS=$LIBS
10430 LIBS="-lpthreads $LIBS"
10431 cat >conftest.$ac_ext <<_ACEOF
10432 /* confdefs.h. */
10433 _ACEOF
10434 cat confdefs.h >>conftest.$ac_ext
10435 cat >>conftest.$ac_ext <<_ACEOF
10436 /* end confdefs.h. */
10438 /* Override any GCC internal prototype to avoid an error.
10439 Use char because int might match the return type of a GCC
10440 builtin and then its argument prototype would still apply. */
10441 #ifdef __cplusplus
10442 extern "C"
10443 #endif
10444 char cma_open ();
10446 main ()
10448 return cma_open ();
10450 return 0;
10452 _ACEOF
10453 rm -f conftest.$ac_objext conftest$ac_exeext
10454 if { (ac_try="$ac_link"
10455 case "(($ac_try" in
10456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10457 *) ac_try_echo=$ac_try;;
10458 esac
10459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10460 (eval "$ac_link") 2>conftest.er1
10461 ac_status=$?
10462 grep -v '^ *+' conftest.er1 >conftest.err
10463 rm -f conftest.er1
10464 cat conftest.err >&5
10465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466 (exit $ac_status); } && {
10467 test -z "$ac_c_werror_flag" ||
10468 test ! -s conftest.err
10469 } && test -s conftest$ac_exeext &&
10470 $as_test_x conftest$ac_exeext; then
10471 ac_cv_lib_pthreads_cma_open=yes
10472 else
10473 echo "$as_me: failed program was:" >&5
10474 sed 's/^/| /' conftest.$ac_ext >&5
10476 ac_cv_lib_pthreads_cma_open=no
10479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10480 conftest$ac_exeext conftest.$ac_ext
10481 LIBS=$ac_check_lib_save_LIBS
10483 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10484 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10485 if test $ac_cv_lib_pthreads_cma_open = yes; then
10486 cat >>confdefs.h <<_ACEOF
10487 #define HAVE_LIBPTHREADS 1
10488 _ACEOF
10490 LIBS="-lpthreads $LIBS"
10496 case ${host_os} in
10497 aix*)
10498 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10499 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10500 if test "${gdb_cv_bigtoc+set}" = set; then
10501 echo $ECHO_N "(cached) $ECHO_C" >&6
10502 else
10504 case $GCC in
10505 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10506 *) gdb_cv_bigtoc=-bbigtoc ;;
10507 esac
10509 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10510 cat >conftest.$ac_ext <<_ACEOF
10511 /* confdefs.h. */
10512 _ACEOF
10513 cat confdefs.h >>conftest.$ac_ext
10514 cat >>conftest.$ac_ext <<_ACEOF
10515 /* end confdefs.h. */
10518 main ()
10520 int i;
10522 return 0;
10524 _ACEOF
10525 rm -f conftest.$ac_objext conftest$ac_exeext
10526 if { (ac_try="$ac_link"
10527 case "(($ac_try" in
10528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10529 *) ac_try_echo=$ac_try;;
10530 esac
10531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10532 (eval "$ac_link") 2>conftest.er1
10533 ac_status=$?
10534 grep -v '^ *+' conftest.er1 >conftest.err
10535 rm -f conftest.er1
10536 cat conftest.err >&5
10537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538 (exit $ac_status); } && {
10539 test -z "$ac_c_werror_flag" ||
10540 test ! -s conftest.err
10541 } && test -s conftest$ac_exeext &&
10542 $as_test_x conftest$ac_exeext; then
10544 else
10545 echo "$as_me: failed program was:" >&5
10546 sed 's/^/| /' conftest.$ac_ext >&5
10548 gdb_cv_bigtoc=
10551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10552 conftest$ac_exeext conftest.$ac_ext
10555 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10556 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10558 esac
10560 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10561 # used for the tests that follow. We set them back to REAL_CFLAGS and
10562 # REAL_CPPFLAGS later on.
10564 REAL_CPPFLAGS="$CPPFLAGS"
10566 if test "${HAVE_X11}" = "yes"; then
10567 DEFS="$C_SWITCH_X_SITE $DEFS"
10568 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10569 LIBS="$LIBX $LIBS"
10570 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10571 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10573 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10574 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10575 # but it's more convenient here to set LD_RUN_PATH
10576 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10577 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10578 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10579 export LD_RUN_PATH
10582 if test "${opsys}" = "gnu-linux"; then
10583 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10584 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10585 cat >conftest.$ac_ext <<_ACEOF
10586 /* confdefs.h. */
10587 _ACEOF
10588 cat confdefs.h >>conftest.$ac_ext
10589 cat >>conftest.$ac_ext <<_ACEOF
10590 /* end confdefs.h. */
10593 main ()
10595 XOpenDisplay ("foo");
10597 return 0;
10599 _ACEOF
10600 rm -f conftest.$ac_objext conftest$ac_exeext
10601 if { (ac_try="$ac_link"
10602 case "(($ac_try" in
10603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10604 *) ac_try_echo=$ac_try;;
10605 esac
10606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10607 (eval "$ac_link") 2>conftest.er1
10608 ac_status=$?
10609 grep -v '^ *+' conftest.er1 >conftest.err
10610 rm -f conftest.er1
10611 cat conftest.err >&5
10612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 (exit $ac_status); } && {
10614 test -z "$ac_c_werror_flag" ||
10615 test ! -s conftest.err
10616 } && test -s conftest$ac_exeext &&
10617 $as_test_x conftest$ac_exeext; then
10618 xlinux_first_failure=no
10619 else
10620 echo "$as_me: failed program was:" >&5
10621 sed 's/^/| /' conftest.$ac_ext >&5
10623 xlinux_first_failure=yes
10626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10627 conftest$ac_exeext conftest.$ac_ext
10628 if test "${xlinux_first_failure}" = "yes"; then
10629 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10630 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10631 OLD_CPPFLAGS="$CPPFLAGS"
10632 OLD_LIBS="$LIBS"
10633 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10634 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10635 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10636 LIBS="$LIBS -b i486-linuxaout"
10637 cat >conftest.$ac_ext <<_ACEOF
10638 /* confdefs.h. */
10639 _ACEOF
10640 cat confdefs.h >>conftest.$ac_ext
10641 cat >>conftest.$ac_ext <<_ACEOF
10642 /* end confdefs.h. */
10645 main ()
10647 XOpenDisplay ("foo");
10649 return 0;
10651 _ACEOF
10652 rm -f conftest.$ac_objext conftest$ac_exeext
10653 if { (ac_try="$ac_link"
10654 case "(($ac_try" in
10655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10656 *) ac_try_echo=$ac_try;;
10657 esac
10658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10659 (eval "$ac_link") 2>conftest.er1
10660 ac_status=$?
10661 grep -v '^ *+' conftest.er1 >conftest.err
10662 rm -f conftest.er1
10663 cat conftest.err >&5
10664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); } && {
10666 test -z "$ac_c_werror_flag" ||
10667 test ! -s conftest.err
10668 } && test -s conftest$ac_exeext &&
10669 $as_test_x conftest$ac_exeext; then
10670 xlinux_second_failure=no
10671 else
10672 echo "$as_me: failed program was:" >&5
10673 sed 's/^/| /' conftest.$ac_ext >&5
10675 xlinux_second_failure=yes
10678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10679 conftest$ac_exeext conftest.$ac_ext
10680 if test "${xlinux_second_failure}" = "yes"; then
10681 # If we get the same failure with -b, there is no use adding -b.
10682 # So take it out. This plays safe.
10683 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10684 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10685 CPPFLAGS="$OLD_CPPFLAGS"
10686 LIBS="$OLD_LIBS"
10687 { echo "$as_me:$LINENO: result: no" >&5
10688 echo "${ECHO_T}no" >&6; }
10689 else
10690 { echo "$as_me:$LINENO: result: yes" >&5
10691 echo "${ECHO_T}yes" >&6; }
10693 else
10694 { echo "$as_me:$LINENO: result: no" >&5
10695 echo "${ECHO_T}no" >&6; }
10699 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10700 # header files included from there.
10701 { echo "$as_me:$LINENO: checking for Xkb" >&5
10702 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10703 cat >conftest.$ac_ext <<_ACEOF
10704 /* confdefs.h. */
10705 _ACEOF
10706 cat confdefs.h >>conftest.$ac_ext
10707 cat >>conftest.$ac_ext <<_ACEOF
10708 /* end confdefs.h. */
10709 #include <X11/Xlib.h>
10710 #include <X11/XKBlib.h>
10712 main ()
10714 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10716 return 0;
10718 _ACEOF
10719 rm -f conftest.$ac_objext conftest$ac_exeext
10720 if { (ac_try="$ac_link"
10721 case "(($ac_try" in
10722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10723 *) ac_try_echo=$ac_try;;
10724 esac
10725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10726 (eval "$ac_link") 2>conftest.er1
10727 ac_status=$?
10728 grep -v '^ *+' conftest.er1 >conftest.err
10729 rm -f conftest.er1
10730 cat conftest.err >&5
10731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10732 (exit $ac_status); } && {
10733 test -z "$ac_c_werror_flag" ||
10734 test ! -s conftest.err
10735 } && test -s conftest$ac_exeext &&
10736 $as_test_x conftest$ac_exeext; then
10737 emacs_xkb=yes
10738 else
10739 echo "$as_me: failed program was:" >&5
10740 sed 's/^/| /' conftest.$ac_ext >&5
10742 emacs_xkb=no
10745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10746 conftest$ac_exeext conftest.$ac_ext
10747 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10748 echo "${ECHO_T}$emacs_xkb" >&6; }
10749 if test $emacs_xkb = yes; then
10751 cat >>confdefs.h <<\_ACEOF
10752 #define HAVE_XKBGETKEYBOARD 1
10753 _ACEOF
10761 for ac_func in XrmSetDatabase XScreenResourceString \
10762 XScreenNumberOfScreen XSetWMProtocols
10764 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10765 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10767 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10768 echo $ECHO_N "(cached) $ECHO_C" >&6
10769 else
10770 cat >conftest.$ac_ext <<_ACEOF
10771 /* confdefs.h. */
10772 _ACEOF
10773 cat confdefs.h >>conftest.$ac_ext
10774 cat >>conftest.$ac_ext <<_ACEOF
10775 /* end confdefs.h. */
10776 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10778 #define $ac_func innocuous_$ac_func
10780 /* System header to define __stub macros and hopefully few prototypes,
10781 which can conflict with char $ac_func (); below.
10782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10783 <limits.h> exists even on freestanding compilers. */
10785 #ifdef __STDC__
10786 # include <limits.h>
10787 #else
10788 # include <assert.h>
10789 #endif
10791 #undef $ac_func
10793 /* Override any GCC internal prototype to avoid an error.
10794 Use char because int might match the return type of a GCC
10795 builtin and then its argument prototype would still apply. */
10796 #ifdef __cplusplus
10797 extern "C"
10798 #endif
10799 char $ac_func ();
10800 /* The GNU C library defines this for functions which it implements
10801 to always fail with ENOSYS. Some functions are actually named
10802 something starting with __ and the normal name is an alias. */
10803 #if defined __stub_$ac_func || defined __stub___$ac_func
10804 choke me
10805 #endif
10808 main ()
10810 return $ac_func ();
10812 return 0;
10814 _ACEOF
10815 rm -f conftest.$ac_objext conftest$ac_exeext
10816 if { (ac_try="$ac_link"
10817 case "(($ac_try" in
10818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10819 *) ac_try_echo=$ac_try;;
10820 esac
10821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10822 (eval "$ac_link") 2>conftest.er1
10823 ac_status=$?
10824 grep -v '^ *+' conftest.er1 >conftest.err
10825 rm -f conftest.er1
10826 cat conftest.err >&5
10827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828 (exit $ac_status); } && {
10829 test -z "$ac_c_werror_flag" ||
10830 test ! -s conftest.err
10831 } && test -s conftest$ac_exeext &&
10832 $as_test_x conftest$ac_exeext; then
10833 eval "$as_ac_var=yes"
10834 else
10835 echo "$as_me: failed program was:" >&5
10836 sed 's/^/| /' conftest.$ac_ext >&5
10838 eval "$as_ac_var=no"
10841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10842 conftest$ac_exeext conftest.$ac_ext
10844 ac_res=`eval echo '${'$as_ac_var'}'`
10845 { echo "$as_me:$LINENO: result: $ac_res" >&5
10846 echo "${ECHO_T}$ac_res" >&6; }
10847 if test `eval echo '${'$as_ac_var'}'` = yes; then
10848 cat >>confdefs.h <<_ACEOF
10849 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10850 _ACEOF
10853 done
10857 if test "${window_system}" = "x11"; then
10858 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10859 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10860 if test "${emacs_cv_x11_version_6+set}" = set; then
10861 echo $ECHO_N "(cached) $ECHO_C" >&6
10862 else
10863 cat >conftest.$ac_ext <<_ACEOF
10864 /* confdefs.h. */
10865 _ACEOF
10866 cat confdefs.h >>conftest.$ac_ext
10867 cat >>conftest.$ac_ext <<_ACEOF
10868 /* end confdefs.h. */
10869 #include <X11/Xlib.h>
10871 main ()
10873 #if XlibSpecificationRelease < 6
10874 fail;
10875 #endif
10878 return 0;
10880 _ACEOF
10881 rm -f conftest.$ac_objext conftest$ac_exeext
10882 if { (ac_try="$ac_link"
10883 case "(($ac_try" in
10884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10885 *) ac_try_echo=$ac_try;;
10886 esac
10887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10888 (eval "$ac_link") 2>conftest.er1
10889 ac_status=$?
10890 grep -v '^ *+' conftest.er1 >conftest.err
10891 rm -f conftest.er1
10892 cat conftest.err >&5
10893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894 (exit $ac_status); } && {
10895 test -z "$ac_c_werror_flag" ||
10896 test ! -s conftest.err
10897 } && test -s conftest$ac_exeext &&
10898 $as_test_x conftest$ac_exeext; then
10899 emacs_cv_x11_version_6=yes
10900 else
10901 echo "$as_me: failed program was:" >&5
10902 sed 's/^/| /' conftest.$ac_ext >&5
10904 emacs_cv_x11_version_6=no
10907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10908 conftest$ac_exeext conftest.$ac_ext
10911 if test $emacs_cv_x11_version_6 = yes; then
10912 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10913 echo "${ECHO_T}6 or newer" >&6; }
10915 cat >>confdefs.h <<\_ACEOF
10916 #define HAVE_X11R6 1
10917 _ACEOF
10919 else
10920 { echo "$as_me:$LINENO: result: before 6" >&5
10921 echo "${ECHO_T}before 6" >&6; }
10926 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10927 HAVE_RSVG=no
10928 if test "${HAVE_X11}" = "yes" || test "${HAVE_CARBON}" = "yes"; then
10929 if test "${with_rsvg}" != "no"; then
10930 RSVG_REQUIRED=2.0.0
10931 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10934 succeeded=no
10936 # Extract the first word of "pkg-config", so it can be a program name with args.
10937 set dummy pkg-config; ac_word=$2
10938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10940 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10941 echo $ECHO_N "(cached) $ECHO_C" >&6
10942 else
10943 case $PKG_CONFIG in
10944 [\\/]* | ?:[\\/]*)
10945 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10949 for as_dir in $PATH
10951 IFS=$as_save_IFS
10952 test -z "$as_dir" && as_dir=.
10953 for ac_exec_ext in '' $ac_executable_extensions; do
10954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10955 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10957 break 2
10959 done
10960 done
10961 IFS=$as_save_IFS
10963 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10965 esac
10967 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10968 if test -n "$PKG_CONFIG"; then
10969 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10970 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10971 else
10972 { echo "$as_me:$LINENO: result: no" >&5
10973 echo "${ECHO_T}no" >&6; }
10978 if test "$PKG_CONFIG" = "no" ; then
10980 else
10981 PKG_CONFIG_MIN_VERSION=0.9.0
10982 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10983 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10984 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10986 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10987 { echo "$as_me:$LINENO: result: yes" >&5
10988 echo "${ECHO_T}yes" >&6; }
10989 succeeded=yes
10991 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
10992 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
10993 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10994 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
10995 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10997 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
10998 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
10999 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11000 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11001 echo "${ECHO_T}$RSVG_LIBS" >&6; }
11002 else
11003 { echo "$as_me:$LINENO: result: no" >&5
11004 echo "${ECHO_T}no" >&6; }
11005 RSVG_CFLAGS=""
11006 RSVG_LIBS=""
11007 ## If we have a custom action on failure, don't print errors, but
11008 ## do set a variable so people can do so.
11009 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11015 else
11016 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11017 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11021 if test $succeeded = yes; then
11023 else
11030 if test ".${RSVG_CFLAGS}" != "."; then
11031 HAVE_RSVG=yes
11033 cat >>confdefs.h <<\_ACEOF
11034 #define HAVE_RSVG 1
11035 _ACEOF
11037 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11038 LIBS="$RSVG_LIBS $LIBS"
11044 HAVE_GTK=no
11045 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11046 GLIB_REQUIRED=2.6
11047 GTK_REQUIRED=2.6
11048 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11051 succeeded=no
11053 # Extract the first word of "pkg-config", so it can be a program name with args.
11054 set dummy pkg-config; ac_word=$2
11055 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11057 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11058 echo $ECHO_N "(cached) $ECHO_C" >&6
11059 else
11060 case $PKG_CONFIG in
11061 [\\/]* | ?:[\\/]*)
11062 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11066 for as_dir in $PATH
11068 IFS=$as_save_IFS
11069 test -z "$as_dir" && as_dir=.
11070 for ac_exec_ext in '' $ac_executable_extensions; do
11071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11072 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11074 break 2
11076 done
11077 done
11078 IFS=$as_save_IFS
11080 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11082 esac
11084 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11085 if test -n "$PKG_CONFIG"; then
11086 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11087 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11088 else
11089 { echo "$as_me:$LINENO: result: no" >&5
11090 echo "${ECHO_T}no" >&6; }
11095 if test "$PKG_CONFIG" = "no" ; then
11096 pkg_check_gtk=no
11097 else
11098 PKG_CONFIG_MIN_VERSION=0.9.0
11099 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11100 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11101 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11103 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11104 { echo "$as_me:$LINENO: result: yes" >&5
11105 echo "${ECHO_T}yes" >&6; }
11106 succeeded=yes
11108 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11109 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11110 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11111 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11112 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11114 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11115 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11116 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11117 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11118 echo "${ECHO_T}$GTK_LIBS" >&6; }
11119 else
11120 { echo "$as_me:$LINENO: result: no" >&5
11121 echo "${ECHO_T}no" >&6; }
11122 GTK_CFLAGS=""
11123 GTK_LIBS=""
11124 ## If we have a custom action on failure, don't print errors, but
11125 ## do set a variable so people can do so.
11126 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11132 else
11133 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11134 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11138 if test $succeeded = yes; then
11139 pkg_check_gtk=yes
11140 else
11141 pkg_check_gtk=no
11144 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11145 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11146 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11147 { (exit 1); exit 1; }; }
11152 if test x"$pkg_check_gtk" = xyes; then
11156 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11157 CFLAGS="$CFLAGS $GTK_CFLAGS"
11158 LIBS="$GTK_LIBS $LIBS"
11159 GTK_COMPILES=no
11161 for ac_func in gtk_main
11163 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11164 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11165 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11166 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11167 echo $ECHO_N "(cached) $ECHO_C" >&6
11168 else
11169 cat >conftest.$ac_ext <<_ACEOF
11170 /* confdefs.h. */
11171 _ACEOF
11172 cat confdefs.h >>conftest.$ac_ext
11173 cat >>conftest.$ac_ext <<_ACEOF
11174 /* end confdefs.h. */
11175 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11176 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11177 #define $ac_func innocuous_$ac_func
11179 /* System header to define __stub macros and hopefully few prototypes,
11180 which can conflict with char $ac_func (); below.
11181 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11182 <limits.h> exists even on freestanding compilers. */
11184 #ifdef __STDC__
11185 # include <limits.h>
11186 #else
11187 # include <assert.h>
11188 #endif
11190 #undef $ac_func
11192 /* Override any GCC internal prototype to avoid an error.
11193 Use char because int might match the return type of a GCC
11194 builtin and then its argument prototype would still apply. */
11195 #ifdef __cplusplus
11196 extern "C"
11197 #endif
11198 char $ac_func ();
11199 /* The GNU C library defines this for functions which it implements
11200 to always fail with ENOSYS. Some functions are actually named
11201 something starting with __ and the normal name is an alias. */
11202 #if defined __stub_$ac_func || defined __stub___$ac_func
11203 choke me
11204 #endif
11207 main ()
11209 return $ac_func ();
11211 return 0;
11213 _ACEOF
11214 rm -f conftest.$ac_objext conftest$ac_exeext
11215 if { (ac_try="$ac_link"
11216 case "(($ac_try" in
11217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11218 *) ac_try_echo=$ac_try;;
11219 esac
11220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11221 (eval "$ac_link") 2>conftest.er1
11222 ac_status=$?
11223 grep -v '^ *+' conftest.er1 >conftest.err
11224 rm -f conftest.er1
11225 cat conftest.err >&5
11226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227 (exit $ac_status); } && {
11228 test -z "$ac_c_werror_flag" ||
11229 test ! -s conftest.err
11230 } && test -s conftest$ac_exeext &&
11231 $as_test_x conftest$ac_exeext; then
11232 eval "$as_ac_var=yes"
11233 else
11234 echo "$as_me: failed program was:" >&5
11235 sed 's/^/| /' conftest.$ac_ext >&5
11237 eval "$as_ac_var=no"
11240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11241 conftest$ac_exeext conftest.$ac_ext
11243 ac_res=`eval echo '${'$as_ac_var'}'`
11244 { echo "$as_me:$LINENO: result: $ac_res" >&5
11245 echo "${ECHO_T}$ac_res" >&6; }
11246 if test `eval echo '${'$as_ac_var'}'` = yes; then
11247 cat >>confdefs.h <<_ACEOF
11248 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11249 _ACEOF
11250 GTK_COMPILES=yes
11252 done
11254 if test "${GTK_COMPILES}" != "yes"; then
11255 if test "$USE_X_TOOLKIT" != "maybe"; then
11256 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11257 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11258 { (exit 1); exit 1; }; };
11260 else
11261 HAVE_GTK=yes
11263 cat >>confdefs.h <<\_ACEOF
11264 #define USE_GTK 1
11265 _ACEOF
11267 USE_X_TOOLKIT=none
11268 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11270 else
11271 { echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11272 closing open displays. This is no problem if you just use
11273 one display, but if you use more than one and close one of them
11274 Emacs may crash." >&5
11275 echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11276 closing open displays. This is no problem if you just use
11277 one display, but if you use more than one and close one of them
11278 Emacs may crash." >&2;}
11279 sleep 3
11286 if test "${HAVE_GTK}" = "yes"; then
11288 if test "$with_toolkit_scroll_bars" != no; then
11289 with_toolkit_scroll_bars=yes
11292 HAVE_GTK_MULTIDISPLAY=no
11294 for ac_func in gdk_display_open
11296 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11297 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11298 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11299 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11300 echo $ECHO_N "(cached) $ECHO_C" >&6
11301 else
11302 cat >conftest.$ac_ext <<_ACEOF
11303 /* confdefs.h. */
11304 _ACEOF
11305 cat confdefs.h >>conftest.$ac_ext
11306 cat >>conftest.$ac_ext <<_ACEOF
11307 /* end confdefs.h. */
11308 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11309 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11310 #define $ac_func innocuous_$ac_func
11312 /* System header to define __stub macros and hopefully few prototypes,
11313 which can conflict with char $ac_func (); below.
11314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11315 <limits.h> exists even on freestanding compilers. */
11317 #ifdef __STDC__
11318 # include <limits.h>
11319 #else
11320 # include <assert.h>
11321 #endif
11323 #undef $ac_func
11325 /* Override any GCC internal prototype to avoid an error.
11326 Use char because int might match the return type of a GCC
11327 builtin and then its argument prototype would still apply. */
11328 #ifdef __cplusplus
11329 extern "C"
11330 #endif
11331 char $ac_func ();
11332 /* The GNU C library defines this for functions which it implements
11333 to always fail with ENOSYS. Some functions are actually named
11334 something starting with __ and the normal name is an alias. */
11335 #if defined __stub_$ac_func || defined __stub___$ac_func
11336 choke me
11337 #endif
11340 main ()
11342 return $ac_func ();
11344 return 0;
11346 _ACEOF
11347 rm -f conftest.$ac_objext conftest$ac_exeext
11348 if { (ac_try="$ac_link"
11349 case "(($ac_try" in
11350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11351 *) ac_try_echo=$ac_try;;
11352 esac
11353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11354 (eval "$ac_link") 2>conftest.er1
11355 ac_status=$?
11356 grep -v '^ *+' conftest.er1 >conftest.err
11357 rm -f conftest.er1
11358 cat conftest.err >&5
11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); } && {
11361 test -z "$ac_c_werror_flag" ||
11362 test ! -s conftest.err
11363 } && test -s conftest$ac_exeext &&
11364 $as_test_x conftest$ac_exeext; then
11365 eval "$as_ac_var=yes"
11366 else
11367 echo "$as_me: failed program was:" >&5
11368 sed 's/^/| /' conftest.$ac_ext >&5
11370 eval "$as_ac_var=no"
11373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11374 conftest$ac_exeext conftest.$ac_ext
11376 ac_res=`eval echo '${'$as_ac_var'}'`
11377 { echo "$as_me:$LINENO: result: $ac_res" >&5
11378 echo "${ECHO_T}$ac_res" >&6; }
11379 if test `eval echo '${'$as_ac_var'}'` = yes; then
11380 cat >>confdefs.h <<_ACEOF
11381 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11382 _ACEOF
11383 HAVE_GTK_MULTIDISPLAY=yes
11385 done
11387 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11389 cat >>confdefs.h <<\_ACEOF
11390 #define HAVE_GTK_MULTIDISPLAY 1
11391 _ACEOF
11395 HAVE_GTK_FILE_SELECTION=no
11397 for ac_func in gtk_file_selection_new
11399 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11400 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11401 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11402 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11403 echo $ECHO_N "(cached) $ECHO_C" >&6
11404 else
11405 cat >conftest.$ac_ext <<_ACEOF
11406 /* confdefs.h. */
11407 _ACEOF
11408 cat confdefs.h >>conftest.$ac_ext
11409 cat >>conftest.$ac_ext <<_ACEOF
11410 /* end confdefs.h. */
11411 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11412 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11413 #define $ac_func innocuous_$ac_func
11415 /* System header to define __stub macros and hopefully few prototypes,
11416 which can conflict with char $ac_func (); below.
11417 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11418 <limits.h> exists even on freestanding compilers. */
11420 #ifdef __STDC__
11421 # include <limits.h>
11422 #else
11423 # include <assert.h>
11424 #endif
11426 #undef $ac_func
11428 /* Override any GCC internal prototype to avoid an error.
11429 Use char because int might match the return type of a GCC
11430 builtin and then its argument prototype would still apply. */
11431 #ifdef __cplusplus
11432 extern "C"
11433 #endif
11434 char $ac_func ();
11435 /* The GNU C library defines this for functions which it implements
11436 to always fail with ENOSYS. Some functions are actually named
11437 something starting with __ and the normal name is an alias. */
11438 #if defined __stub_$ac_func || defined __stub___$ac_func
11439 choke me
11440 #endif
11443 main ()
11445 return $ac_func ();
11447 return 0;
11449 _ACEOF
11450 rm -f conftest.$ac_objext conftest$ac_exeext
11451 if { (ac_try="$ac_link"
11452 case "(($ac_try" in
11453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11454 *) ac_try_echo=$ac_try;;
11455 esac
11456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11457 (eval "$ac_link") 2>conftest.er1
11458 ac_status=$?
11459 grep -v '^ *+' conftest.er1 >conftest.err
11460 rm -f conftest.er1
11461 cat conftest.err >&5
11462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463 (exit $ac_status); } && {
11464 test -z "$ac_c_werror_flag" ||
11465 test ! -s conftest.err
11466 } && test -s conftest$ac_exeext &&
11467 $as_test_x conftest$ac_exeext; then
11468 eval "$as_ac_var=yes"
11469 else
11470 echo "$as_me: failed program was:" >&5
11471 sed 's/^/| /' conftest.$ac_ext >&5
11473 eval "$as_ac_var=no"
11476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11477 conftest$ac_exeext conftest.$ac_ext
11479 ac_res=`eval echo '${'$as_ac_var'}'`
11480 { echo "$as_me:$LINENO: result: $ac_res" >&5
11481 echo "${ECHO_T}$ac_res" >&6; }
11482 if test `eval echo '${'$as_ac_var'}'` = yes; then
11483 cat >>confdefs.h <<_ACEOF
11484 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11485 _ACEOF
11486 HAVE_GTK_FILE_SELECTION=yes
11488 done
11491 HAVE_GTK_FILE_CHOOSER=no
11493 for ac_func in gtk_file_chooser_dialog_new
11495 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11496 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11497 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11498 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11499 echo $ECHO_N "(cached) $ECHO_C" >&6
11500 else
11501 cat >conftest.$ac_ext <<_ACEOF
11502 /* confdefs.h. */
11503 _ACEOF
11504 cat confdefs.h >>conftest.$ac_ext
11505 cat >>conftest.$ac_ext <<_ACEOF
11506 /* end confdefs.h. */
11507 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11509 #define $ac_func innocuous_$ac_func
11511 /* System header to define __stub macros and hopefully few prototypes,
11512 which can conflict with char $ac_func (); below.
11513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11514 <limits.h> exists even on freestanding compilers. */
11516 #ifdef __STDC__
11517 # include <limits.h>
11518 #else
11519 # include <assert.h>
11520 #endif
11522 #undef $ac_func
11524 /* Override any GCC internal prototype to avoid an error.
11525 Use char because int might match the return type of a GCC
11526 builtin and then its argument prototype would still apply. */
11527 #ifdef __cplusplus
11528 extern "C"
11529 #endif
11530 char $ac_func ();
11531 /* The GNU C library defines this for functions which it implements
11532 to always fail with ENOSYS. Some functions are actually named
11533 something starting with __ and the normal name is an alias. */
11534 #if defined __stub_$ac_func || defined __stub___$ac_func
11535 choke me
11536 #endif
11539 main ()
11541 return $ac_func ();
11543 return 0;
11545 _ACEOF
11546 rm -f conftest.$ac_objext conftest$ac_exeext
11547 if { (ac_try="$ac_link"
11548 case "(($ac_try" in
11549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11550 *) ac_try_echo=$ac_try;;
11551 esac
11552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11553 (eval "$ac_link") 2>conftest.er1
11554 ac_status=$?
11555 grep -v '^ *+' conftest.er1 >conftest.err
11556 rm -f conftest.er1
11557 cat conftest.err >&5
11558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559 (exit $ac_status); } && {
11560 test -z "$ac_c_werror_flag" ||
11561 test ! -s conftest.err
11562 } && test -s conftest$ac_exeext &&
11563 $as_test_x conftest$ac_exeext; then
11564 eval "$as_ac_var=yes"
11565 else
11566 echo "$as_me: failed program was:" >&5
11567 sed 's/^/| /' conftest.$ac_ext >&5
11569 eval "$as_ac_var=no"
11572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11573 conftest$ac_exeext conftest.$ac_ext
11575 ac_res=`eval echo '${'$as_ac_var'}'`
11576 { echo "$as_me:$LINENO: result: $ac_res" >&5
11577 echo "${ECHO_T}$ac_res" >&6; }
11578 if test `eval echo '${'$as_ac_var'}'` = yes; then
11579 cat >>confdefs.h <<_ACEOF
11580 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11581 _ACEOF
11582 HAVE_GTK_FILE_CHOOSER=yes
11584 done
11587 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11588 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11590 cat >>confdefs.h <<\_ACEOF
11591 #define HAVE_GTK_FILE_BOTH 1
11592 _ACEOF
11596 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11597 HAVE_GTK_AND_PTHREAD=no
11599 for ac_header in pthread.h
11601 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11603 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11606 echo $ECHO_N "(cached) $ECHO_C" >&6
11608 ac_res=`eval echo '${'$as_ac_Header'}'`
11609 { echo "$as_me:$LINENO: result: $ac_res" >&5
11610 echo "${ECHO_T}$ac_res" >&6; }
11611 else
11612 # Is the header compilable?
11613 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11614 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11615 cat >conftest.$ac_ext <<_ACEOF
11616 /* confdefs.h. */
11617 _ACEOF
11618 cat confdefs.h >>conftest.$ac_ext
11619 cat >>conftest.$ac_ext <<_ACEOF
11620 /* end confdefs.h. */
11621 $ac_includes_default
11622 #include <$ac_header>
11623 _ACEOF
11624 rm -f conftest.$ac_objext
11625 if { (ac_try="$ac_compile"
11626 case "(($ac_try" in
11627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11628 *) ac_try_echo=$ac_try;;
11629 esac
11630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11631 (eval "$ac_compile") 2>conftest.er1
11632 ac_status=$?
11633 grep -v '^ *+' conftest.er1 >conftest.err
11634 rm -f conftest.er1
11635 cat conftest.err >&5
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); } && {
11638 test -z "$ac_c_werror_flag" ||
11639 test ! -s conftest.err
11640 } && test -s conftest.$ac_objext; then
11641 ac_header_compiler=yes
11642 else
11643 echo "$as_me: failed program was:" >&5
11644 sed 's/^/| /' conftest.$ac_ext >&5
11646 ac_header_compiler=no
11649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11650 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11651 echo "${ECHO_T}$ac_header_compiler" >&6; }
11653 # Is the header present?
11654 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11655 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11656 cat >conftest.$ac_ext <<_ACEOF
11657 /* confdefs.h. */
11658 _ACEOF
11659 cat confdefs.h >>conftest.$ac_ext
11660 cat >>conftest.$ac_ext <<_ACEOF
11661 /* end confdefs.h. */
11662 #include <$ac_header>
11663 _ACEOF
11664 if { (ac_try="$ac_cpp conftest.$ac_ext"
11665 case "(($ac_try" in
11666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11667 *) ac_try_echo=$ac_try;;
11668 esac
11669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11671 ac_status=$?
11672 grep -v '^ *+' conftest.er1 >conftest.err
11673 rm -f conftest.er1
11674 cat conftest.err >&5
11675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 (exit $ac_status); } >/dev/null && {
11677 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11678 test ! -s conftest.err
11679 }; then
11680 ac_header_preproc=yes
11681 else
11682 echo "$as_me: failed program was:" >&5
11683 sed 's/^/| /' conftest.$ac_ext >&5
11685 ac_header_preproc=no
11688 rm -f conftest.err conftest.$ac_ext
11689 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11690 echo "${ECHO_T}$ac_header_preproc" >&6; }
11692 # So? What about this header?
11693 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11694 yes:no: )
11695 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11696 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11697 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11698 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11699 ac_header_preproc=yes
11701 no:yes:* )
11702 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11703 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11704 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11705 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11706 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11707 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11708 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11709 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11711 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11712 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11713 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11716 esac
11717 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11719 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11720 echo $ECHO_N "(cached) $ECHO_C" >&6
11721 else
11722 eval "$as_ac_Header=\$ac_header_preproc"
11724 ac_res=`eval echo '${'$as_ac_Header'}'`
11725 { echo "$as_me:$LINENO: result: $ac_res" >&5
11726 echo "${ECHO_T}$ac_res" >&6; }
11729 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11730 cat >>confdefs.h <<_ACEOF
11731 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11732 _ACEOF
11736 done
11738 if test "$ac_cv_header_pthread_h"; then
11739 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11740 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11741 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11742 echo $ECHO_N "(cached) $ECHO_C" >&6
11743 else
11744 ac_check_lib_save_LIBS=$LIBS
11745 LIBS="-lpthread $LIBS"
11746 cat >conftest.$ac_ext <<_ACEOF
11747 /* confdefs.h. */
11748 _ACEOF
11749 cat confdefs.h >>conftest.$ac_ext
11750 cat >>conftest.$ac_ext <<_ACEOF
11751 /* end confdefs.h. */
11753 /* Override any GCC internal prototype to avoid an error.
11754 Use char because int might match the return type of a GCC
11755 builtin and then its argument prototype would still apply. */
11756 #ifdef __cplusplus
11757 extern "C"
11758 #endif
11759 char pthread_self ();
11761 main ()
11763 return pthread_self ();
11765 return 0;
11767 _ACEOF
11768 rm -f conftest.$ac_objext conftest$ac_exeext
11769 if { (ac_try="$ac_link"
11770 case "(($ac_try" in
11771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11772 *) ac_try_echo=$ac_try;;
11773 esac
11774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11775 (eval "$ac_link") 2>conftest.er1
11776 ac_status=$?
11777 grep -v '^ *+' conftest.er1 >conftest.err
11778 rm -f conftest.er1
11779 cat conftest.err >&5
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); } && {
11782 test -z "$ac_c_werror_flag" ||
11783 test ! -s conftest.err
11784 } && test -s conftest$ac_exeext &&
11785 $as_test_x conftest$ac_exeext; then
11786 ac_cv_lib_pthread_pthread_self=yes
11787 else
11788 echo "$as_me: failed program was:" >&5
11789 sed 's/^/| /' conftest.$ac_ext >&5
11791 ac_cv_lib_pthread_pthread_self=no
11794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11795 conftest$ac_exeext conftest.$ac_ext
11796 LIBS=$ac_check_lib_save_LIBS
11798 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11799 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11800 if test $ac_cv_lib_pthread_pthread_self = yes; then
11801 HAVE_GTK_AND_PTHREAD=yes
11805 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11806 case "${canonical}" in
11807 *-hpux*) ;;
11808 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11809 esac
11811 cat >>confdefs.h <<\_ACEOF
11812 #define HAVE_GTK_AND_PTHREAD 1
11813 _ACEOF
11819 HAVE_DBUS=no
11820 if test "${with_dbus}" = "yes"; then
11822 succeeded=no
11824 # Extract the first word of "pkg-config", so it can be a program name with args.
11825 set dummy pkg-config; ac_word=$2
11826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11828 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11829 echo $ECHO_N "(cached) $ECHO_C" >&6
11830 else
11831 case $PKG_CONFIG in
11832 [\\/]* | ?:[\\/]*)
11833 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11837 for as_dir in $PATH
11839 IFS=$as_save_IFS
11840 test -z "$as_dir" && as_dir=.
11841 for ac_exec_ext in '' $ac_executable_extensions; do
11842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11843 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11845 break 2
11847 done
11848 done
11849 IFS=$as_save_IFS
11851 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11853 esac
11855 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11856 if test -n "$PKG_CONFIG"; then
11857 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11858 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11859 else
11860 { echo "$as_me:$LINENO: result: no" >&5
11861 echo "${ECHO_T}no" >&6; }
11866 if test "$PKG_CONFIG" = "no" ; then
11867 HAVE_DBUS=no
11868 else
11869 PKG_CONFIG_MIN_VERSION=0.9.0
11870 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11871 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11872 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11874 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11875 { echo "$as_me:$LINENO: result: yes" >&5
11876 echo "${ECHO_T}yes" >&6; }
11877 succeeded=yes
11879 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11880 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11881 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11882 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11883 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11885 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11886 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11887 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11888 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11889 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11890 else
11891 { echo "$as_me:$LINENO: result: no" >&5
11892 echo "${ECHO_T}no" >&6; }
11893 DBUS_CFLAGS=""
11894 DBUS_LIBS=""
11895 ## If we have a custom action on failure, don't print errors, but
11896 ## do set a variable so people can do so.
11897 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11903 else
11904 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11905 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11909 if test $succeeded = yes; then
11910 HAVE_DBUS=yes
11911 else
11912 HAVE_DBUS=no
11915 if test "$HAVE_DBUS" = yes; then
11917 cat >>confdefs.h <<\_ACEOF
11918 #define HAVE_DBUS 1
11919 _ACEOF
11924 HAVE_XAW3D=no
11925 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11926 if test "$with_xaw3d" != no; then
11927 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11928 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11929 if test "${emacs_cv_xaw3d+set}" = set; then
11930 echo $ECHO_N "(cached) $ECHO_C" >&6
11931 else
11932 cat >conftest.$ac_ext <<_ACEOF
11933 /* confdefs.h. */
11934 _ACEOF
11935 cat confdefs.h >>conftest.$ac_ext
11936 cat >>conftest.$ac_ext <<_ACEOF
11937 /* end confdefs.h. */
11939 #include <X11/Intrinsic.h>
11940 #include <X11/Xaw3d/Simple.h>
11942 main ()
11946 return 0;
11948 _ACEOF
11949 rm -f conftest.$ac_objext conftest$ac_exeext
11950 if { (ac_try="$ac_link"
11951 case "(($ac_try" in
11952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11953 *) ac_try_echo=$ac_try;;
11954 esac
11955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11956 (eval "$ac_link") 2>conftest.er1
11957 ac_status=$?
11958 grep -v '^ *+' conftest.er1 >conftest.err
11959 rm -f conftest.er1
11960 cat conftest.err >&5
11961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962 (exit $ac_status); } && {
11963 test -z "$ac_c_werror_flag" ||
11964 test ! -s conftest.err
11965 } && test -s conftest$ac_exeext &&
11966 $as_test_x conftest$ac_exeext; then
11967 emacs_cv_xaw3d=yes
11968 else
11969 echo "$as_me: failed program was:" >&5
11970 sed 's/^/| /' conftest.$ac_ext >&5
11972 emacs_cv_xaw3d=no
11975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11976 conftest$ac_exeext conftest.$ac_ext
11979 else
11980 emacs_cv_xaw3d=no
11982 if test $emacs_cv_xaw3d = yes; then
11983 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11984 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11985 USE_X_TOOLKIT=LUCID
11986 HAVE_XAW3D=yes
11988 cat >>confdefs.h <<\_ACEOF
11989 #define HAVE_XAW3D 1
11990 _ACEOF
11992 else
11993 { echo "$as_me:$LINENO: result: no" >&5
11994 echo "${ECHO_T}no" >&6; }
11995 { echo "$as_me:$LINENO: checking for libXaw" >&5
11996 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
11997 if test "${emacs_cv_xaw+set}" = set; then
11998 echo $ECHO_N "(cached) $ECHO_C" >&6
11999 else
12000 cat >conftest.$ac_ext <<_ACEOF
12001 /* confdefs.h. */
12002 _ACEOF
12003 cat confdefs.h >>conftest.$ac_ext
12004 cat >>conftest.$ac_ext <<_ACEOF
12005 /* end confdefs.h. */
12007 #include <X11/Intrinsic.h>
12008 #include <X11/Xaw/Simple.h>
12010 main ()
12014 return 0;
12016 _ACEOF
12017 rm -f conftest.$ac_objext conftest$ac_exeext
12018 if { (ac_try="$ac_link"
12019 case "(($ac_try" in
12020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12021 *) ac_try_echo=$ac_try;;
12022 esac
12023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12024 (eval "$ac_link") 2>conftest.er1
12025 ac_status=$?
12026 grep -v '^ *+' conftest.er1 >conftest.err
12027 rm -f conftest.er1
12028 cat conftest.err >&5
12029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030 (exit $ac_status); } && {
12031 test -z "$ac_c_werror_flag" ||
12032 test ! -s conftest.err
12033 } && test -s conftest$ac_exeext &&
12034 $as_test_x conftest$ac_exeext; then
12035 emacs_cv_xaw=yes
12036 else
12037 echo "$as_me: failed program was:" >&5
12038 sed 's/^/| /' conftest.$ac_ext >&5
12040 emacs_cv_xaw=no
12043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12044 conftest$ac_exeext conftest.$ac_ext
12047 if test $emacs_cv_xaw = yes; then
12048 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12049 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12050 USE_X_TOOLKIT=LUCID
12051 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12052 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12053 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12054 { (exit 1); exit 1; }; }
12055 else
12056 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12057 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
12058 USE_X_TOOLKIT=none
12063 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12065 if test "${USE_X_TOOLKIT}" != "none"; then
12066 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12067 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12068 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12069 echo $ECHO_N "(cached) $ECHO_C" >&6
12070 else
12071 cat >conftest.$ac_ext <<_ACEOF
12072 /* confdefs.h. */
12073 _ACEOF
12074 cat confdefs.h >>conftest.$ac_ext
12075 cat >>conftest.$ac_ext <<_ACEOF
12076 /* end confdefs.h. */
12077 #include <X11/Intrinsic.h>
12079 main ()
12081 #if XtSpecificationRelease < 6
12082 fail;
12083 #endif
12086 return 0;
12088 _ACEOF
12089 rm -f conftest.$ac_objext conftest$ac_exeext
12090 if { (ac_try="$ac_link"
12091 case "(($ac_try" in
12092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12093 *) ac_try_echo=$ac_try;;
12094 esac
12095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12096 (eval "$ac_link") 2>conftest.er1
12097 ac_status=$?
12098 grep -v '^ *+' conftest.er1 >conftest.err
12099 rm -f conftest.er1
12100 cat conftest.err >&5
12101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102 (exit $ac_status); } && {
12103 test -z "$ac_c_werror_flag" ||
12104 test ! -s conftest.err
12105 } && test -s conftest$ac_exeext &&
12106 $as_test_x conftest$ac_exeext; then
12107 emacs_cv_x11_toolkit_version_6=yes
12108 else
12109 echo "$as_me: failed program was:" >&5
12110 sed 's/^/| /' conftest.$ac_ext >&5
12112 emacs_cv_x11_toolkit_version_6=no
12115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12116 conftest$ac_exeext conftest.$ac_ext
12119 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12120 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12121 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12122 echo "${ECHO_T}6 or newer" >&6; }
12124 cat >>confdefs.h <<\_ACEOF
12125 #define HAVE_X11XTR6 1
12126 _ACEOF
12128 else
12129 { echo "$as_me:$LINENO: result: before 6" >&5
12130 echo "${ECHO_T}before 6" >&6; }
12133 OLDLIBS="$LIBS"
12134 if test x$HAVE_X11XTR6 = xyes; then
12135 LIBS="-lXt -lSM -lICE $LIBS"
12136 else
12137 LIBS="-lXt $LIBS"
12140 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12141 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12142 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12143 echo $ECHO_N "(cached) $ECHO_C" >&6
12144 else
12145 ac_check_lib_save_LIBS=$LIBS
12146 LIBS="-lXmu $LIBS"
12147 cat >conftest.$ac_ext <<_ACEOF
12148 /* confdefs.h. */
12149 _ACEOF
12150 cat confdefs.h >>conftest.$ac_ext
12151 cat >>conftest.$ac_ext <<_ACEOF
12152 /* end confdefs.h. */
12154 /* Override any GCC internal prototype to avoid an error.
12155 Use char because int might match the return type of a GCC
12156 builtin and then its argument prototype would still apply. */
12157 #ifdef __cplusplus
12158 extern "C"
12159 #endif
12160 char XmuConvertStandardSelection ();
12162 main ()
12164 return XmuConvertStandardSelection ();
12166 return 0;
12168 _ACEOF
12169 rm -f conftest.$ac_objext conftest$ac_exeext
12170 if { (ac_try="$ac_link"
12171 case "(($ac_try" in
12172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12173 *) ac_try_echo=$ac_try;;
12174 esac
12175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12176 (eval "$ac_link") 2>conftest.er1
12177 ac_status=$?
12178 grep -v '^ *+' conftest.er1 >conftest.err
12179 rm -f conftest.er1
12180 cat conftest.err >&5
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); } && {
12183 test -z "$ac_c_werror_flag" ||
12184 test ! -s conftest.err
12185 } && test -s conftest$ac_exeext &&
12186 $as_test_x conftest$ac_exeext; then
12187 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12188 else
12189 echo "$as_me: failed program was:" >&5
12190 sed 's/^/| /' conftest.$ac_ext >&5
12192 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12196 conftest$ac_exeext conftest.$ac_ext
12197 LIBS=$ac_check_lib_save_LIBS
12199 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12200 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12201 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12202 cat >>confdefs.h <<_ACEOF
12203 #define HAVE_LIBXMU 1
12204 _ACEOF
12206 LIBS="-lXmu $LIBS"
12210 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12213 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12214 if test "${HAVE_X11}" = "yes"; then
12215 if test "${USE_X_TOOLKIT}" != "none"; then
12217 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12218 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12219 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12220 echo $ECHO_N "(cached) $ECHO_C" >&6
12221 else
12222 ac_check_lib_save_LIBS=$LIBS
12223 LIBS="-lXext $LIBS"
12224 cat >conftest.$ac_ext <<_ACEOF
12225 /* confdefs.h. */
12226 _ACEOF
12227 cat confdefs.h >>conftest.$ac_ext
12228 cat >>conftest.$ac_ext <<_ACEOF
12229 /* end confdefs.h. */
12231 /* Override any GCC internal prototype to avoid an error.
12232 Use char because int might match the return type of a GCC
12233 builtin and then its argument prototype would still apply. */
12234 #ifdef __cplusplus
12235 extern "C"
12236 #endif
12237 char XShapeQueryExtension ();
12239 main ()
12241 return XShapeQueryExtension ();
12243 return 0;
12245 _ACEOF
12246 rm -f conftest.$ac_objext conftest$ac_exeext
12247 if { (ac_try="$ac_link"
12248 case "(($ac_try" in
12249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12250 *) ac_try_echo=$ac_try;;
12251 esac
12252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12253 (eval "$ac_link") 2>conftest.er1
12254 ac_status=$?
12255 grep -v '^ *+' conftest.er1 >conftest.err
12256 rm -f conftest.er1
12257 cat conftest.err >&5
12258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259 (exit $ac_status); } && {
12260 test -z "$ac_c_werror_flag" ||
12261 test ! -s conftest.err
12262 } && test -s conftest$ac_exeext &&
12263 $as_test_x conftest$ac_exeext; then
12264 ac_cv_lib_Xext_XShapeQueryExtension=yes
12265 else
12266 echo "$as_me: failed program was:" >&5
12267 sed 's/^/| /' conftest.$ac_ext >&5
12269 ac_cv_lib_Xext_XShapeQueryExtension=no
12272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12273 conftest$ac_exeext conftest.$ac_ext
12274 LIBS=$ac_check_lib_save_LIBS
12276 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12277 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12278 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12279 cat >>confdefs.h <<_ACEOF
12280 #define HAVE_LIBXEXT 1
12281 _ACEOF
12283 LIBS="-lXext $LIBS"
12290 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12291 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12292 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12293 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12294 echo $ECHO_N "(cached) $ECHO_C" >&6
12295 else
12296 cat >conftest.$ac_ext <<_ACEOF
12297 /* confdefs.h. */
12298 _ACEOF
12299 cat confdefs.h >>conftest.$ac_ext
12300 cat >>conftest.$ac_ext <<_ACEOF
12301 /* end confdefs.h. */
12302 #include <Xm/Xm.h>
12304 main ()
12306 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12307 int x = 5;
12308 #else
12309 Motif version prior to 2.1.
12310 #endif
12312 return 0;
12314 _ACEOF
12315 rm -f conftest.$ac_objext
12316 if { (ac_try="$ac_compile"
12317 case "(($ac_try" in
12318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12319 *) ac_try_echo=$ac_try;;
12320 esac
12321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12322 (eval "$ac_compile") 2>conftest.er1
12323 ac_status=$?
12324 grep -v '^ *+' conftest.er1 >conftest.err
12325 rm -f conftest.er1
12326 cat conftest.err >&5
12327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328 (exit $ac_status); } && {
12329 test -z "$ac_c_werror_flag" ||
12330 test ! -s conftest.err
12331 } && test -s conftest.$ac_objext; then
12332 emacs_cv_motif_version_2_1=yes
12333 else
12334 echo "$as_me: failed program was:" >&5
12335 sed 's/^/| /' conftest.$ac_ext >&5
12337 emacs_cv_motif_version_2_1=no
12340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12342 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12343 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12344 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12345 if test $emacs_cv_motif_version_2_1 = yes; then
12346 HAVE_LIBXP=no
12348 cat >>confdefs.h <<\_ACEOF
12349 #define HAVE_MOTIF_2_1 1
12350 _ACEOF
12352 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12353 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12354 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12355 echo $ECHO_N "(cached) $ECHO_C" >&6
12356 else
12357 ac_check_lib_save_LIBS=$LIBS
12358 LIBS="-lXp $LIBS"
12359 cat >conftest.$ac_ext <<_ACEOF
12360 /* confdefs.h. */
12361 _ACEOF
12362 cat confdefs.h >>conftest.$ac_ext
12363 cat >>conftest.$ac_ext <<_ACEOF
12364 /* end confdefs.h. */
12366 /* Override any GCC internal prototype to avoid an error.
12367 Use char because int might match the return type of a GCC
12368 builtin and then its argument prototype would still apply. */
12369 #ifdef __cplusplus
12370 extern "C"
12371 #endif
12372 char XpCreateContext ();
12374 main ()
12376 return XpCreateContext ();
12378 return 0;
12380 _ACEOF
12381 rm -f conftest.$ac_objext conftest$ac_exeext
12382 if { (ac_try="$ac_link"
12383 case "(($ac_try" in
12384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12385 *) ac_try_echo=$ac_try;;
12386 esac
12387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12388 (eval "$ac_link") 2>conftest.er1
12389 ac_status=$?
12390 grep -v '^ *+' conftest.er1 >conftest.err
12391 rm -f conftest.er1
12392 cat conftest.err >&5
12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); } && {
12395 test -z "$ac_c_werror_flag" ||
12396 test ! -s conftest.err
12397 } && test -s conftest$ac_exeext &&
12398 $as_test_x conftest$ac_exeext; then
12399 ac_cv_lib_Xp_XpCreateContext=yes
12400 else
12401 echo "$as_me: failed program was:" >&5
12402 sed 's/^/| /' conftest.$ac_ext >&5
12404 ac_cv_lib_Xp_XpCreateContext=no
12407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12408 conftest$ac_exeext conftest.$ac_ext
12409 LIBS=$ac_check_lib_save_LIBS
12411 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12412 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12413 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12414 HAVE_LIBXP=yes
12417 if test ${HAVE_LIBXP} = yes; then
12419 cat >>confdefs.h <<\_ACEOF
12420 #define HAVE_LIBXP 1
12421 _ACEOF
12424 else
12425 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12426 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12427 if test "${emacs_cv_lesstif+set}" = set; then
12428 echo $ECHO_N "(cached) $ECHO_C" >&6
12429 else
12430 # We put this in CFLAGS temporarily to precede other -I options
12431 # that might be in CFLAGS temporarily.
12432 # We put this in CPPFLAGS where it precedes the other -I options.
12433 OLD_CPPFLAGS=$CPPFLAGS
12434 OLD_CFLAGS=$CFLAGS
12435 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12436 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12437 cat >conftest.$ac_ext <<_ACEOF
12438 /* confdefs.h. */
12439 _ACEOF
12440 cat confdefs.h >>conftest.$ac_ext
12441 cat >>conftest.$ac_ext <<_ACEOF
12442 /* end confdefs.h. */
12443 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12445 main ()
12447 int x = 5;
12449 return 0;
12451 _ACEOF
12452 rm -f conftest.$ac_objext
12453 if { (ac_try="$ac_compile"
12454 case "(($ac_try" in
12455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12456 *) ac_try_echo=$ac_try;;
12457 esac
12458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12459 (eval "$ac_compile") 2>conftest.er1
12460 ac_status=$?
12461 grep -v '^ *+' conftest.er1 >conftest.err
12462 rm -f conftest.er1
12463 cat conftest.err >&5
12464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465 (exit $ac_status); } && {
12466 test -z "$ac_c_werror_flag" ||
12467 test ! -s conftest.err
12468 } && test -s conftest.$ac_objext; then
12469 emacs_cv_lesstif=yes
12470 else
12471 echo "$as_me: failed program was:" >&5
12472 sed 's/^/| /' conftest.$ac_ext >&5
12474 emacs_cv_lesstif=no
12477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12479 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12480 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12481 if test $emacs_cv_lesstif = yes; then
12482 # Make sure this -I option remains in CPPFLAGS after it is set
12483 # back to REAL_CPPFLAGS.
12484 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12485 # have those other -I options anyway. Ultimately, having this
12486 # directory ultimately in CPPFLAGS will be enough.
12487 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12488 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12489 else
12490 CFLAGS=$OLD_CFLAGS
12491 CPPFLAGS=$OLD_CPPFLAGS
12498 USE_TOOLKIT_SCROLL_BARS=no
12499 if test "${with_toolkit_scroll_bars}" != "no"; then
12500 if test "${USE_X_TOOLKIT}" != "none"; then
12501 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12502 cat >>confdefs.h <<\_ACEOF
12503 #define USE_TOOLKIT_SCROLL_BARS 1
12504 _ACEOF
12506 HAVE_XAW3D=no
12507 USE_TOOLKIT_SCROLL_BARS=yes
12508 elif test "${HAVE_XAW3D}" = "yes"; then
12509 cat >>confdefs.h <<\_ACEOF
12510 #define USE_TOOLKIT_SCROLL_BARS 1
12511 _ACEOF
12513 USE_TOOLKIT_SCROLL_BARS=yes
12515 elif test "${HAVE_GTK}" = "yes"; then
12516 cat >>confdefs.h <<\_ACEOF
12517 #define USE_TOOLKIT_SCROLL_BARS 1
12518 _ACEOF
12520 USE_TOOLKIT_SCROLL_BARS=yes
12521 elif test "${HAVE_CARBON}" = "yes"; then
12522 cat >>confdefs.h <<\_ACEOF
12523 #define USE_TOOLKIT_SCROLL_BARS 1
12524 _ACEOF
12526 USE_TOOLKIT_SCROLL_BARS=yes
12530 cat >conftest.$ac_ext <<_ACEOF
12531 /* confdefs.h. */
12532 _ACEOF
12533 cat confdefs.h >>conftest.$ac_ext
12534 cat >>conftest.$ac_ext <<_ACEOF
12535 /* end confdefs.h. */
12537 #include <X11/Xlib.h>
12538 #include <X11/Xresource.h>
12540 main ()
12542 XIMProc callback;
12544 return 0;
12546 _ACEOF
12547 rm -f conftest.$ac_objext
12548 if { (ac_try="$ac_compile"
12549 case "(($ac_try" in
12550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12551 *) ac_try_echo=$ac_try;;
12552 esac
12553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12554 (eval "$ac_compile") 2>conftest.er1
12555 ac_status=$?
12556 grep -v '^ *+' conftest.er1 >conftest.err
12557 rm -f conftest.er1
12558 cat conftest.err >&5
12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); } && {
12561 test -z "$ac_c_werror_flag" ||
12562 test ! -s conftest.err
12563 } && test -s conftest.$ac_objext; then
12564 HAVE_XIM=yes
12566 cat >>confdefs.h <<\_ACEOF
12567 #define HAVE_XIM 1
12568 _ACEOF
12570 else
12571 echo "$as_me: failed program was:" >&5
12572 sed 's/^/| /' conftest.$ac_ext >&5
12574 HAVE_XIM=no
12577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12580 if test "${with_xim}" != "no"; then
12582 cat >>confdefs.h <<\_ACEOF
12583 #define USE_XIM 1
12584 _ACEOF
12589 if test "${HAVE_XIM}" != "no"; then
12590 late_CFLAGS=$CFLAGS
12591 if test "$GCC" = yes; then
12592 CFLAGS="$CFLAGS --pedantic-errors"
12594 cat >conftest.$ac_ext <<_ACEOF
12595 /* confdefs.h. */
12596 _ACEOF
12597 cat confdefs.h >>conftest.$ac_ext
12598 cat >>conftest.$ac_ext <<_ACEOF
12599 /* end confdefs.h. */
12601 #include <X11/Xlib.h>
12602 #include <X11/Xresource.h>
12604 main ()
12606 Display *display;
12607 XrmDatabase db;
12608 char *res_name;
12609 char *res_class;
12610 XIMProc callback;
12611 XPointer *client_data;
12612 #ifndef __GNUC__
12613 /* If we're not using GCC, it's probably not XFree86, and this is
12614 probably right, but we can't use something like --pedantic-errors. */
12615 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12616 char*, XIMProc, XPointer*);
12617 #endif
12618 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12619 client_data);
12621 return 0;
12623 _ACEOF
12624 rm -f conftest.$ac_objext
12625 if { (ac_try="$ac_compile"
12626 case "(($ac_try" in
12627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12628 *) ac_try_echo=$ac_try;;
12629 esac
12630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12631 (eval "$ac_compile") 2>conftest.er1
12632 ac_status=$?
12633 grep -v '^ *+' conftest.er1 >conftest.err
12634 rm -f conftest.er1
12635 cat conftest.err >&5
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); } && {
12638 test -z "$ac_c_werror_flag" ||
12639 test ! -s conftest.err
12640 } && test -s conftest.$ac_objext; then
12641 emacs_cv_arg6_star=yes
12642 else
12643 echo "$as_me: failed program was:" >&5
12644 sed 's/^/| /' conftest.$ac_ext >&5
12649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12651 if test "$emacs_cv_arg6_star" = yes; then
12652 cat >>confdefs.h <<\_ACEOF
12653 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12654 _ACEOF
12656 else
12657 cat >>confdefs.h <<\_ACEOF
12658 #define XRegisterIMInstantiateCallback_arg6 XPointer
12659 _ACEOF
12662 CFLAGS=$late_CFLAGS
12665 ### Start of font-backend section.
12667 ## Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
12668 HAVE_XFT=maybe
12669 if test "x${with_freetype}" = "xno"; then
12670 with_xft="no";
12672 if test "x${with_xft}" != "xno"; then
12675 succeeded=no
12677 # Extract the first word of "pkg-config", so it can be a program name with args.
12678 set dummy pkg-config; ac_word=$2
12679 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12681 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12682 echo $ECHO_N "(cached) $ECHO_C" >&6
12683 else
12684 case $PKG_CONFIG in
12685 [\\/]* | ?:[\\/]*)
12686 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12690 for as_dir in $PATH
12692 IFS=$as_save_IFS
12693 test -z "$as_dir" && as_dir=.
12694 for ac_exec_ext in '' $ac_executable_extensions; do
12695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12696 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12698 break 2
12700 done
12701 done
12702 IFS=$as_save_IFS
12704 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12706 esac
12708 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12709 if test -n "$PKG_CONFIG"; then
12710 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12711 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12712 else
12713 { echo "$as_me:$LINENO: result: no" >&5
12714 echo "${ECHO_T}no" >&6; }
12719 if test "$PKG_CONFIG" = "no" ; then
12720 HAVE_XFT=no
12721 else
12722 PKG_CONFIG_MIN_VERSION=0.9.0
12723 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12724 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12725 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12727 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12728 { echo "$as_me:$LINENO: result: yes" >&5
12729 echo "${ECHO_T}yes" >&6; }
12730 succeeded=yes
12732 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12733 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12734 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12735 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12736 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12738 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12739 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12740 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12741 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12742 echo "${ECHO_T}$XFT_LIBS" >&6; }
12743 else
12744 { echo "$as_me:$LINENO: result: no" >&5
12745 echo "${ECHO_T}no" >&6; }
12746 XFT_CFLAGS=""
12747 XFT_LIBS=""
12748 ## If we have a custom action on failure, don't print errors, but
12749 ## do set a variable so people can do so.
12750 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12756 else
12757 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12758 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12762 if test $succeeded = yes; then
12764 else
12765 HAVE_XFT=no
12768 if test "$HAVE_XFT" != no; then
12769 OLD_CPPFLAGS="$CPPFLAGS"
12770 OLD_CFLAGS="$CFLAGS"
12771 OLD_LIBS="$LIBS"
12772 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12773 CFLAGS="$CFLAGS $XFT_CFLAGS"
12774 LIBS="$XFT_LIBS $LIBS"
12775 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12776 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12777 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12778 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12779 echo $ECHO_N "(cached) $ECHO_C" >&6
12781 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12782 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12783 else
12784 # Is the header compilable?
12785 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12786 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12787 cat >conftest.$ac_ext <<_ACEOF
12788 /* confdefs.h. */
12789 _ACEOF
12790 cat confdefs.h >>conftest.$ac_ext
12791 cat >>conftest.$ac_ext <<_ACEOF
12792 /* end confdefs.h. */
12793 $ac_includes_default
12794 #include <X11/Xft/Xft.h>
12795 _ACEOF
12796 rm -f conftest.$ac_objext
12797 if { (ac_try="$ac_compile"
12798 case "(($ac_try" in
12799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12800 *) ac_try_echo=$ac_try;;
12801 esac
12802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12803 (eval "$ac_compile") 2>conftest.er1
12804 ac_status=$?
12805 grep -v '^ *+' conftest.er1 >conftest.err
12806 rm -f conftest.er1
12807 cat conftest.err >&5
12808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12809 (exit $ac_status); } && {
12810 test -z "$ac_c_werror_flag" ||
12811 test ! -s conftest.err
12812 } && test -s conftest.$ac_objext; then
12813 ac_header_compiler=yes
12814 else
12815 echo "$as_me: failed program was:" >&5
12816 sed 's/^/| /' conftest.$ac_ext >&5
12818 ac_header_compiler=no
12821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12822 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12823 echo "${ECHO_T}$ac_header_compiler" >&6; }
12825 # Is the header present?
12826 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12827 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12828 cat >conftest.$ac_ext <<_ACEOF
12829 /* confdefs.h. */
12830 _ACEOF
12831 cat confdefs.h >>conftest.$ac_ext
12832 cat >>conftest.$ac_ext <<_ACEOF
12833 /* end confdefs.h. */
12834 #include <X11/Xft/Xft.h>
12835 _ACEOF
12836 if { (ac_try="$ac_cpp conftest.$ac_ext"
12837 case "(($ac_try" in
12838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12839 *) ac_try_echo=$ac_try;;
12840 esac
12841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12842 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12843 ac_status=$?
12844 grep -v '^ *+' conftest.er1 >conftest.err
12845 rm -f conftest.er1
12846 cat conftest.err >&5
12847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848 (exit $ac_status); } >/dev/null && {
12849 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12850 test ! -s conftest.err
12851 }; then
12852 ac_header_preproc=yes
12853 else
12854 echo "$as_me: failed program was:" >&5
12855 sed 's/^/| /' conftest.$ac_ext >&5
12857 ac_header_preproc=no
12860 rm -f conftest.err conftest.$ac_ext
12861 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12862 echo "${ECHO_T}$ac_header_preproc" >&6; }
12864 # So? What about this header?
12865 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12866 yes:no: )
12867 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12868 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12869 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12870 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12871 ac_header_preproc=yes
12873 no:yes:* )
12874 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12875 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12876 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12877 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12878 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12879 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12880 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12881 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12882 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12883 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12884 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12885 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12888 esac
12889 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12890 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12891 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12892 echo $ECHO_N "(cached) $ECHO_C" >&6
12893 else
12894 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12896 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12897 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12900 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12901 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12902 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12903 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12904 echo $ECHO_N "(cached) $ECHO_C" >&6
12905 else
12906 ac_check_lib_save_LIBS=$LIBS
12907 LIBS="-lXft $XFT_LIBS $LIBS"
12908 cat >conftest.$ac_ext <<_ACEOF
12909 /* confdefs.h. */
12910 _ACEOF
12911 cat confdefs.h >>conftest.$ac_ext
12912 cat >>conftest.$ac_ext <<_ACEOF
12913 /* end confdefs.h. */
12915 /* Override any GCC internal prototype to avoid an error.
12916 Use char because int might match the return type of a GCC
12917 builtin and then its argument prototype would still apply. */
12918 #ifdef __cplusplus
12919 extern "C"
12920 #endif
12921 char XftFontOpen ();
12923 main ()
12925 return XftFontOpen ();
12927 return 0;
12929 _ACEOF
12930 rm -f conftest.$ac_objext conftest$ac_exeext
12931 if { (ac_try="$ac_link"
12932 case "(($ac_try" in
12933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12934 *) ac_try_echo=$ac_try;;
12935 esac
12936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12937 (eval "$ac_link") 2>conftest.er1
12938 ac_status=$?
12939 grep -v '^ *+' conftest.er1 >conftest.err
12940 rm -f conftest.er1
12941 cat conftest.err >&5
12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); } && {
12944 test -z "$ac_c_werror_flag" ||
12945 test ! -s conftest.err
12946 } && test -s conftest$ac_exeext &&
12947 $as_test_x conftest$ac_exeext; then
12948 ac_cv_lib_Xft_XftFontOpen=yes
12949 else
12950 echo "$as_me: failed program was:" >&5
12951 sed 's/^/| /' conftest.$ac_ext >&5
12953 ac_cv_lib_Xft_XftFontOpen=no
12956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12957 conftest$ac_exeext conftest.$ac_ext
12958 LIBS=$ac_check_lib_save_LIBS
12960 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12961 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12962 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12963 HAVE_XFT=yes
12970 if test "${HAVE_XFT}" = "yes"; then
12972 cat >>confdefs.h <<\_ACEOF
12973 #define HAVE_XFT 1
12974 _ACEOF
12977 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12978 else
12979 CPPFLAGS="$OLD_CPPFLAGS"
12980 CFLAGS="$OLD_CFLAGS"
12981 LIBS="$OLD_LIBS"
12982 fi # "${HAVE_XFT}" = "yes"
12983 fi # "$HAVE_XFT" != no
12984 fi # "x${with_xft}" != "xno"
12986 if test "$HAVE_XFT" != "yes"; then
12987 HAVE_XFT=no
12991 HAVE_FREETYPE=no
12992 ### Use -lfreetype if available, unless `--with-freetype=no'.
12993 if test "${HAVE_XFT}" = "yes"; then
12994 HAVE_FREETYPE=yes
12995 elif test "x${with_freetype}" != "xno"; then
12998 succeeded=no
13000 # Extract the first word of "pkg-config", so it can be a program name with args.
13001 set dummy pkg-config; ac_word=$2
13002 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13004 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13005 echo $ECHO_N "(cached) $ECHO_C" >&6
13006 else
13007 case $PKG_CONFIG in
13008 [\\/]* | ?:[\\/]*)
13009 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13013 for as_dir in $PATH
13015 IFS=$as_save_IFS
13016 test -z "$as_dir" && as_dir=.
13017 for ac_exec_ext in '' $ac_executable_extensions; do
13018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13019 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13021 break 2
13023 done
13024 done
13025 IFS=$as_save_IFS
13027 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13029 esac
13031 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13032 if test -n "$PKG_CONFIG"; then
13033 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13034 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13035 else
13036 { echo "$as_me:$LINENO: result: no" >&5
13037 echo "${ECHO_T}no" >&6; }
13042 if test "$PKG_CONFIG" = "no" ; then
13043 HAVE_FREETYPE=no
13044 else
13045 PKG_CONFIG_MIN_VERSION=0.9.0
13046 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13047 { echo "$as_me:$LINENO: checking for freetype2" >&5
13048 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
13050 if $PKG_CONFIG --exists "freetype2" 2>&5; then
13051 { echo "$as_me:$LINENO: result: yes" >&5
13052 echo "${ECHO_T}yes" >&6; }
13053 succeeded=yes
13055 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
13056 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
13057 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
13058 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
13059 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
13061 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
13062 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
13063 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
13064 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
13065 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
13066 else
13067 { echo "$as_me:$LINENO: result: no" >&5
13068 echo "${ECHO_T}no" >&6; }
13069 FREETYPE_CFLAGS=""
13070 FREETYPE_LIBS=""
13071 ## If we have a custom action on failure, don't print errors, but
13072 ## do set a variable so people can do so.
13073 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
13079 else
13080 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13081 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13085 if test $succeeded = yes; then
13086 HAVE_FREETYPE=yes
13087 else
13088 HAVE_FREETYPE=no
13091 if test "${HAVE_FREETYPE}" = "yes"; then
13093 succeeded=no
13095 # Extract the first word of "pkg-config", so it can be a program name with args.
13096 set dummy pkg-config; ac_word=$2
13097 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13099 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13100 echo $ECHO_N "(cached) $ECHO_C" >&6
13101 else
13102 case $PKG_CONFIG in
13103 [\\/]* | ?:[\\/]*)
13104 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13108 for as_dir in $PATH
13110 IFS=$as_save_IFS
13111 test -z "$as_dir" && as_dir=.
13112 for ac_exec_ext in '' $ac_executable_extensions; do
13113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13114 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13116 break 2
13118 done
13119 done
13120 IFS=$as_save_IFS
13122 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13124 esac
13126 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13127 if test -n "$PKG_CONFIG"; then
13128 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13129 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13130 else
13131 { echo "$as_me:$LINENO: result: no" >&5
13132 echo "${ECHO_T}no" >&6; }
13137 if test "$PKG_CONFIG" = "no" ; then
13138 HAVE_FC=no
13139 else
13140 PKG_CONFIG_MIN_VERSION=0.9.0
13141 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13142 { echo "$as_me:$LINENO: checking for fontconfig" >&5
13143 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
13145 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
13146 { echo "$as_me:$LINENO: result: yes" >&5
13147 echo "${ECHO_T}yes" >&6; }
13148 succeeded=yes
13150 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13151 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
13152 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
13153 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13154 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
13156 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13157 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
13158 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
13159 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13160 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
13161 else
13162 { echo "$as_me:$LINENO: result: no" >&5
13163 echo "${ECHO_T}no" >&6; }
13164 FONTCONFIG_CFLAGS=""
13165 FONTCONFIG_LIBS=""
13166 ## If we have a custom action on failure, don't print errors, but
13167 ## do set a variable so people can do so.
13168 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
13174 else
13175 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13176 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13180 if test $succeeded = yes; then
13181 HAVE_FC=yes
13182 else
13183 HAVE_FC=no
13186 if test "${HAVE_FC}" = "no"; then
13187 HAVE_FREETYPE=no
13192 HAVE_LIBOTF=no
13193 if test "${HAVE_FREETYPE}" = "yes"; then
13195 cat >>confdefs.h <<\_ACEOF
13196 #define HAVE_FREETYPE 1
13197 _ACEOF
13199 if test "${with_libotf}" != "no"; then
13201 succeeded=no
13203 # Extract the first word of "pkg-config", so it can be a program name with args.
13204 set dummy pkg-config; ac_word=$2
13205 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13207 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13208 echo $ECHO_N "(cached) $ECHO_C" >&6
13209 else
13210 case $PKG_CONFIG in
13211 [\\/]* | ?:[\\/]*)
13212 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13216 for as_dir in $PATH
13218 IFS=$as_save_IFS
13219 test -z "$as_dir" && as_dir=.
13220 for ac_exec_ext in '' $ac_executable_extensions; do
13221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13222 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13224 break 2
13226 done
13227 done
13228 IFS=$as_save_IFS
13230 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13232 esac
13234 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13235 if test -n "$PKG_CONFIG"; then
13236 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13237 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13238 else
13239 { echo "$as_me:$LINENO: result: no" >&5
13240 echo "${ECHO_T}no" >&6; }
13245 if test "$PKG_CONFIG" = "no" ; then
13246 HAVE_LIBOTF=no
13247 else
13248 PKG_CONFIG_MIN_VERSION=0.9.0
13249 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13250 { echo "$as_me:$LINENO: checking for libotf" >&5
13251 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
13253 if $PKG_CONFIG --exists "libotf" 2>&5; then
13254 { echo "$as_me:$LINENO: result: yes" >&5
13255 echo "${ECHO_T}yes" >&6; }
13256 succeeded=yes
13258 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13259 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
13260 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13261 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13262 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13264 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13265 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
13266 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13267 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13268 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13269 else
13270 { echo "$as_me:$LINENO: result: no" >&5
13271 echo "${ECHO_T}no" >&6; }
13272 LIBOTF_CFLAGS=""
13273 LIBOTF_LIBS=""
13274 ## If we have a custom action on failure, don't print errors, but
13275 ## do set a variable so people can do so.
13276 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13282 else
13283 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13284 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13288 if test $succeeded = yes; then
13289 HAVE_LIBOTF=yes
13290 else
13291 HAVE_LIBOTF=no
13294 if test "$HAVE_LIBOTF" = "yes"; then
13296 cat >>confdefs.h <<\_ACEOF
13297 #define HAVE_LIBOTF 1
13298 _ACEOF
13304 HAVE_M17N_FLT=no
13305 if test "${with_m17n_flt}" != "no"; then
13307 succeeded=no
13309 # Extract the first word of "pkg-config", so it can be a program name with args.
13310 set dummy pkg-config; ac_word=$2
13311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13313 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13314 echo $ECHO_N "(cached) $ECHO_C" >&6
13315 else
13316 case $PKG_CONFIG in
13317 [\\/]* | ?:[\\/]*)
13318 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13322 for as_dir in $PATH
13324 IFS=$as_save_IFS
13325 test -z "$as_dir" && as_dir=.
13326 for ac_exec_ext in '' $ac_executable_extensions; do
13327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13328 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13330 break 2
13332 done
13333 done
13334 IFS=$as_save_IFS
13336 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13338 esac
13340 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13341 if test -n "$PKG_CONFIG"; then
13342 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13343 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13344 else
13345 { echo "$as_me:$LINENO: result: no" >&5
13346 echo "${ECHO_T}no" >&6; }
13351 if test "$PKG_CONFIG" = "no" ; then
13352 HAVE_M17N_FLT=no
13353 else
13354 PKG_CONFIG_MIN_VERSION=0.9.0
13355 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13356 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13357 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13359 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13360 { echo "$as_me:$LINENO: result: yes" >&5
13361 echo "${ECHO_T}yes" >&6; }
13362 succeeded=yes
13364 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13365 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13366 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13367 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13368 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13370 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13371 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13372 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13373 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13374 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13375 else
13376 { echo "$as_me:$LINENO: result: no" >&5
13377 echo "${ECHO_T}no" >&6; }
13378 M17N_FLT_CFLAGS=""
13379 M17N_FLT_LIBS=""
13380 ## If we have a custom action on failure, don't print errors, but
13381 ## do set a variable so people can do so.
13382 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13388 else
13389 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13390 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13394 if test $succeeded = yes; then
13395 HAVE_M17N_FLT=yes
13396 else
13397 HAVE_M17N_FLT=no
13400 if test "$HAVE_M17N_FLT" = "yes"; then
13402 cat >>confdefs.h <<\_ACEOF
13403 #define HAVE_M17N_FLT 1
13404 _ACEOF
13418 ### End of font-backend section.
13420 ### Use -lXpm if available, unless `--with-xpm=no'.
13421 HAVE_XPM=no
13422 if test "${HAVE_X11}" = "yes"; then
13423 if test "${with_xpm}" != "no"; then
13424 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13425 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13426 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13427 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13428 echo $ECHO_N "(cached) $ECHO_C" >&6
13430 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13431 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13432 else
13433 # Is the header compilable?
13434 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13435 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13436 cat >conftest.$ac_ext <<_ACEOF
13437 /* confdefs.h. */
13438 _ACEOF
13439 cat confdefs.h >>conftest.$ac_ext
13440 cat >>conftest.$ac_ext <<_ACEOF
13441 /* end confdefs.h. */
13442 $ac_includes_default
13443 #include <X11/xpm.h>
13444 _ACEOF
13445 rm -f conftest.$ac_objext
13446 if { (ac_try="$ac_compile"
13447 case "(($ac_try" in
13448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13449 *) ac_try_echo=$ac_try;;
13450 esac
13451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13452 (eval "$ac_compile") 2>conftest.er1
13453 ac_status=$?
13454 grep -v '^ *+' conftest.er1 >conftest.err
13455 rm -f conftest.er1
13456 cat conftest.err >&5
13457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458 (exit $ac_status); } && {
13459 test -z "$ac_c_werror_flag" ||
13460 test ! -s conftest.err
13461 } && test -s conftest.$ac_objext; then
13462 ac_header_compiler=yes
13463 else
13464 echo "$as_me: failed program was:" >&5
13465 sed 's/^/| /' conftest.$ac_ext >&5
13467 ac_header_compiler=no
13470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13471 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13472 echo "${ECHO_T}$ac_header_compiler" >&6; }
13474 # Is the header present?
13475 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13476 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13477 cat >conftest.$ac_ext <<_ACEOF
13478 /* confdefs.h. */
13479 _ACEOF
13480 cat confdefs.h >>conftest.$ac_ext
13481 cat >>conftest.$ac_ext <<_ACEOF
13482 /* end confdefs.h. */
13483 #include <X11/xpm.h>
13484 _ACEOF
13485 if { (ac_try="$ac_cpp conftest.$ac_ext"
13486 case "(($ac_try" in
13487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13488 *) ac_try_echo=$ac_try;;
13489 esac
13490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13491 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13492 ac_status=$?
13493 grep -v '^ *+' conftest.er1 >conftest.err
13494 rm -f conftest.er1
13495 cat conftest.err >&5
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); } >/dev/null && {
13498 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13499 test ! -s conftest.err
13500 }; then
13501 ac_header_preproc=yes
13502 else
13503 echo "$as_me: failed program was:" >&5
13504 sed 's/^/| /' conftest.$ac_ext >&5
13506 ac_header_preproc=no
13509 rm -f conftest.err conftest.$ac_ext
13510 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13511 echo "${ECHO_T}$ac_header_preproc" >&6; }
13513 # So? What about this header?
13514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13515 yes:no: )
13516 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13517 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13518 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13519 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13520 ac_header_preproc=yes
13522 no:yes:* )
13523 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13524 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13525 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13526 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13527 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13528 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13529 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13530 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13531 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13532 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13533 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13534 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13537 esac
13538 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13539 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13540 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13541 echo $ECHO_N "(cached) $ECHO_C" >&6
13542 else
13543 ac_cv_header_X11_xpm_h=$ac_header_preproc
13545 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13546 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13549 if test $ac_cv_header_X11_xpm_h = yes; then
13550 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13551 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13552 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13553 echo $ECHO_N "(cached) $ECHO_C" >&6
13554 else
13555 ac_check_lib_save_LIBS=$LIBS
13556 LIBS="-lXpm -lX11 $LIBS"
13557 cat >conftest.$ac_ext <<_ACEOF
13558 /* confdefs.h. */
13559 _ACEOF
13560 cat confdefs.h >>conftest.$ac_ext
13561 cat >>conftest.$ac_ext <<_ACEOF
13562 /* end confdefs.h. */
13564 /* Override any GCC internal prototype to avoid an error.
13565 Use char because int might match the return type of a GCC
13566 builtin and then its argument prototype would still apply. */
13567 #ifdef __cplusplus
13568 extern "C"
13569 #endif
13570 char XpmReadFileToPixmap ();
13572 main ()
13574 return XpmReadFileToPixmap ();
13576 return 0;
13578 _ACEOF
13579 rm -f conftest.$ac_objext conftest$ac_exeext
13580 if { (ac_try="$ac_link"
13581 case "(($ac_try" in
13582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13583 *) ac_try_echo=$ac_try;;
13584 esac
13585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13586 (eval "$ac_link") 2>conftest.er1
13587 ac_status=$?
13588 grep -v '^ *+' conftest.er1 >conftest.err
13589 rm -f conftest.er1
13590 cat conftest.err >&5
13591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592 (exit $ac_status); } && {
13593 test -z "$ac_c_werror_flag" ||
13594 test ! -s conftest.err
13595 } && test -s conftest$ac_exeext &&
13596 $as_test_x conftest$ac_exeext; then
13597 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13598 else
13599 echo "$as_me: failed program was:" >&5
13600 sed 's/^/| /' conftest.$ac_ext >&5
13602 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13606 conftest$ac_exeext conftest.$ac_ext
13607 LIBS=$ac_check_lib_save_LIBS
13609 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13610 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13611 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13612 HAVE_XPM=yes
13618 if test "${HAVE_XPM}" = "yes"; then
13619 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13620 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13621 cat >conftest.$ac_ext <<_ACEOF
13622 /* confdefs.h. */
13623 _ACEOF
13624 cat confdefs.h >>conftest.$ac_ext
13625 cat >>conftest.$ac_ext <<_ACEOF
13626 /* end confdefs.h. */
13627 #include "X11/xpm.h"
13628 #ifndef XpmReturnAllocPixels
13629 no_return_alloc_pixels
13630 #endif
13632 _ACEOF
13633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13634 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13635 HAVE_XPM=no
13636 else
13637 HAVE_XPM=yes
13639 rm -f conftest*
13642 if test "${HAVE_XPM}" = "yes"; then
13643 { echo "$as_me:$LINENO: result: yes" >&5
13644 echo "${ECHO_T}yes" >&6; }
13645 else
13646 { echo "$as_me:$LINENO: result: no" >&5
13647 echo "${ECHO_T}no" >&6; }
13652 if test "${HAVE_XPM}" = "yes"; then
13654 cat >>confdefs.h <<\_ACEOF
13655 #define HAVE_XPM 1
13656 _ACEOF
13661 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13662 HAVE_JPEG=no
13663 if test "${HAVE_X11}" = "yes"; then
13664 if test "${with_jpeg}" != "no"; then
13665 if test "${ac_cv_header_jerror_h+set}" = set; then
13666 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13667 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13668 if test "${ac_cv_header_jerror_h+set}" = set; then
13669 echo $ECHO_N "(cached) $ECHO_C" >&6
13671 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13672 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13673 else
13674 # Is the header compilable?
13675 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13676 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13677 cat >conftest.$ac_ext <<_ACEOF
13678 /* confdefs.h. */
13679 _ACEOF
13680 cat confdefs.h >>conftest.$ac_ext
13681 cat >>conftest.$ac_ext <<_ACEOF
13682 /* end confdefs.h. */
13683 $ac_includes_default
13684 #include <jerror.h>
13685 _ACEOF
13686 rm -f conftest.$ac_objext
13687 if { (ac_try="$ac_compile"
13688 case "(($ac_try" in
13689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13690 *) ac_try_echo=$ac_try;;
13691 esac
13692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13693 (eval "$ac_compile") 2>conftest.er1
13694 ac_status=$?
13695 grep -v '^ *+' conftest.er1 >conftest.err
13696 rm -f conftest.er1
13697 cat conftest.err >&5
13698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699 (exit $ac_status); } && {
13700 test -z "$ac_c_werror_flag" ||
13701 test ! -s conftest.err
13702 } && test -s conftest.$ac_objext; then
13703 ac_header_compiler=yes
13704 else
13705 echo "$as_me: failed program was:" >&5
13706 sed 's/^/| /' conftest.$ac_ext >&5
13708 ac_header_compiler=no
13711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13712 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13713 echo "${ECHO_T}$ac_header_compiler" >&6; }
13715 # Is the header present?
13716 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13717 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13718 cat >conftest.$ac_ext <<_ACEOF
13719 /* confdefs.h. */
13720 _ACEOF
13721 cat confdefs.h >>conftest.$ac_ext
13722 cat >>conftest.$ac_ext <<_ACEOF
13723 /* end confdefs.h. */
13724 #include <jerror.h>
13725 _ACEOF
13726 if { (ac_try="$ac_cpp conftest.$ac_ext"
13727 case "(($ac_try" in
13728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13729 *) ac_try_echo=$ac_try;;
13730 esac
13731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13732 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13733 ac_status=$?
13734 grep -v '^ *+' conftest.er1 >conftest.err
13735 rm -f conftest.er1
13736 cat conftest.err >&5
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); } >/dev/null && {
13739 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13740 test ! -s conftest.err
13741 }; then
13742 ac_header_preproc=yes
13743 else
13744 echo "$as_me: failed program was:" >&5
13745 sed 's/^/| /' conftest.$ac_ext >&5
13747 ac_header_preproc=no
13750 rm -f conftest.err conftest.$ac_ext
13751 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13752 echo "${ECHO_T}$ac_header_preproc" >&6; }
13754 # So? What about this header?
13755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13756 yes:no: )
13757 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13758 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13759 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13760 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13761 ac_header_preproc=yes
13763 no:yes:* )
13764 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13765 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13766 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13767 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13768 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13769 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13770 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13771 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13772 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13773 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13774 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13775 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13778 esac
13779 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13780 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13781 if test "${ac_cv_header_jerror_h+set}" = set; then
13782 echo $ECHO_N "(cached) $ECHO_C" >&6
13783 else
13784 ac_cv_header_jerror_h=$ac_header_preproc
13786 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13787 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13790 if test $ac_cv_header_jerror_h = yes; then
13791 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13792 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13793 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13794 echo $ECHO_N "(cached) $ECHO_C" >&6
13795 else
13796 ac_check_lib_save_LIBS=$LIBS
13797 LIBS="-ljpeg $LIBS"
13798 cat >conftest.$ac_ext <<_ACEOF
13799 /* confdefs.h. */
13800 _ACEOF
13801 cat confdefs.h >>conftest.$ac_ext
13802 cat >>conftest.$ac_ext <<_ACEOF
13803 /* end confdefs.h. */
13805 /* Override any GCC internal prototype to avoid an error.
13806 Use char because int might match the return type of a GCC
13807 builtin and then its argument prototype would still apply. */
13808 #ifdef __cplusplus
13809 extern "C"
13810 #endif
13811 char jpeg_destroy_compress ();
13813 main ()
13815 return jpeg_destroy_compress ();
13817 return 0;
13819 _ACEOF
13820 rm -f conftest.$ac_objext conftest$ac_exeext
13821 if { (ac_try="$ac_link"
13822 case "(($ac_try" in
13823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13824 *) ac_try_echo=$ac_try;;
13825 esac
13826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13827 (eval "$ac_link") 2>conftest.er1
13828 ac_status=$?
13829 grep -v '^ *+' conftest.er1 >conftest.err
13830 rm -f conftest.er1
13831 cat conftest.err >&5
13832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833 (exit $ac_status); } && {
13834 test -z "$ac_c_werror_flag" ||
13835 test ! -s conftest.err
13836 } && test -s conftest$ac_exeext &&
13837 $as_test_x conftest$ac_exeext; then
13838 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13839 else
13840 echo "$as_me: failed program was:" >&5
13841 sed 's/^/| /' conftest.$ac_ext >&5
13843 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13847 conftest$ac_exeext conftest.$ac_ext
13848 LIBS=$ac_check_lib_save_LIBS
13850 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13851 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13852 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13853 HAVE_JPEG=yes
13862 if test "${HAVE_JPEG}" = "yes"; then
13863 cat >>confdefs.h <<\_ACEOF
13864 #define HAVE_JPEG 1
13865 _ACEOF
13867 cat >conftest.$ac_ext <<_ACEOF
13868 /* confdefs.h. */
13869 _ACEOF
13870 cat confdefs.h >>conftest.$ac_ext
13871 cat >>conftest.$ac_ext <<_ACEOF
13872 /* end confdefs.h. */
13873 #include <jpeglib.h>
13874 version=JPEG_LIB_VERSION
13876 _ACEOF
13877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13878 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13879 cat >>confdefs.h <<\_ACEOF
13880 #define HAVE_JPEG 1
13881 _ACEOF
13883 else
13884 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13885 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13886 HAVE_JPEG=no
13888 rm -f conftest*
13893 ### Use -lpng if available, unless `--with-png=no'.
13894 HAVE_PNG=no
13895 if test "${HAVE_X11}" = "yes"; then
13896 if test "${with_png}" != "no"; then
13897 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13898 # in /usr/include/libpng.
13901 for ac_header in png.h libpng/png.h
13903 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13905 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13908 echo $ECHO_N "(cached) $ECHO_C" >&6
13910 ac_res=`eval echo '${'$as_ac_Header'}'`
13911 { echo "$as_me:$LINENO: result: $ac_res" >&5
13912 echo "${ECHO_T}$ac_res" >&6; }
13913 else
13914 # Is the header compilable?
13915 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13916 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13917 cat >conftest.$ac_ext <<_ACEOF
13918 /* confdefs.h. */
13919 _ACEOF
13920 cat confdefs.h >>conftest.$ac_ext
13921 cat >>conftest.$ac_ext <<_ACEOF
13922 /* end confdefs.h. */
13923 $ac_includes_default
13924 #include <$ac_header>
13925 _ACEOF
13926 rm -f conftest.$ac_objext
13927 if { (ac_try="$ac_compile"
13928 case "(($ac_try" in
13929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13930 *) ac_try_echo=$ac_try;;
13931 esac
13932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13933 (eval "$ac_compile") 2>conftest.er1
13934 ac_status=$?
13935 grep -v '^ *+' conftest.er1 >conftest.err
13936 rm -f conftest.er1
13937 cat conftest.err >&5
13938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939 (exit $ac_status); } && {
13940 test -z "$ac_c_werror_flag" ||
13941 test ! -s conftest.err
13942 } && test -s conftest.$ac_objext; then
13943 ac_header_compiler=yes
13944 else
13945 echo "$as_me: failed program was:" >&5
13946 sed 's/^/| /' conftest.$ac_ext >&5
13948 ac_header_compiler=no
13951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13952 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13953 echo "${ECHO_T}$ac_header_compiler" >&6; }
13955 # Is the header present?
13956 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13957 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13958 cat >conftest.$ac_ext <<_ACEOF
13959 /* confdefs.h. */
13960 _ACEOF
13961 cat confdefs.h >>conftest.$ac_ext
13962 cat >>conftest.$ac_ext <<_ACEOF
13963 /* end confdefs.h. */
13964 #include <$ac_header>
13965 _ACEOF
13966 if { (ac_try="$ac_cpp conftest.$ac_ext"
13967 case "(($ac_try" in
13968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13969 *) ac_try_echo=$ac_try;;
13970 esac
13971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13972 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13973 ac_status=$?
13974 grep -v '^ *+' conftest.er1 >conftest.err
13975 rm -f conftest.er1
13976 cat conftest.err >&5
13977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13978 (exit $ac_status); } >/dev/null && {
13979 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13980 test ! -s conftest.err
13981 }; then
13982 ac_header_preproc=yes
13983 else
13984 echo "$as_me: failed program was:" >&5
13985 sed 's/^/| /' conftest.$ac_ext >&5
13987 ac_header_preproc=no
13990 rm -f conftest.err conftest.$ac_ext
13991 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13992 echo "${ECHO_T}$ac_header_preproc" >&6; }
13994 # So? What about this header?
13995 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13996 yes:no: )
13997 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13998 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13999 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14000 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14001 ac_header_preproc=yes
14003 no:yes:* )
14004 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14005 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14006 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14007 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14008 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14009 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14010 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14011 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14012 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14013 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14014 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14015 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14018 esac
14019 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14022 echo $ECHO_N "(cached) $ECHO_C" >&6
14023 else
14024 eval "$as_ac_Header=\$ac_header_preproc"
14026 ac_res=`eval echo '${'$as_ac_Header'}'`
14027 { echo "$as_me:$LINENO: result: $ac_res" >&5
14028 echo "${ECHO_T}$ac_res" >&6; }
14031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14032 cat >>confdefs.h <<_ACEOF
14033 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14034 _ACEOF
14038 done
14040 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
14041 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
14042 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
14043 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
14044 echo $ECHO_N "(cached) $ECHO_C" >&6
14045 else
14046 ac_check_lib_save_LIBS=$LIBS
14047 LIBS="-lpng -lz -lm $LIBS"
14048 cat >conftest.$ac_ext <<_ACEOF
14049 /* confdefs.h. */
14050 _ACEOF
14051 cat confdefs.h >>conftest.$ac_ext
14052 cat >>conftest.$ac_ext <<_ACEOF
14053 /* end confdefs.h. */
14055 /* Override any GCC internal prototype to avoid an error.
14056 Use char because int might match the return type of a GCC
14057 builtin and then its argument prototype would still apply. */
14058 #ifdef __cplusplus
14059 extern "C"
14060 #endif
14061 char png_get_channels ();
14063 main ()
14065 return png_get_channels ();
14067 return 0;
14069 _ACEOF
14070 rm -f conftest.$ac_objext conftest$ac_exeext
14071 if { (ac_try="$ac_link"
14072 case "(($ac_try" in
14073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14074 *) ac_try_echo=$ac_try;;
14075 esac
14076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14077 (eval "$ac_link") 2>conftest.er1
14078 ac_status=$?
14079 grep -v '^ *+' conftest.er1 >conftest.err
14080 rm -f conftest.er1
14081 cat conftest.err >&5
14082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083 (exit $ac_status); } && {
14084 test -z "$ac_c_werror_flag" ||
14085 test ! -s conftest.err
14086 } && test -s conftest$ac_exeext &&
14087 $as_test_x conftest$ac_exeext; then
14088 ac_cv_lib_png_png_get_channels=yes
14089 else
14090 echo "$as_me: failed program was:" >&5
14091 sed 's/^/| /' conftest.$ac_ext >&5
14093 ac_cv_lib_png_png_get_channels=no
14096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14097 conftest$ac_exeext conftest.$ac_ext
14098 LIBS=$ac_check_lib_save_LIBS
14100 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
14101 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
14102 if test $ac_cv_lib_png_png_get_channels = yes; then
14103 HAVE_PNG=yes
14109 if test "${HAVE_PNG}" = "yes"; then
14111 cat >>confdefs.h <<\_ACEOF
14112 #define HAVE_PNG 1
14113 _ACEOF
14118 ### Use -ltiff if available, unless `--with-tiff=no'.
14119 HAVE_TIFF=no
14120 if test "${HAVE_X11}" = "yes"; then
14121 if test "${with_tiff}" != "no"; then
14122 if test "${ac_cv_header_tiffio_h+set}" = set; then
14123 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14124 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14125 if test "${ac_cv_header_tiffio_h+set}" = set; then
14126 echo $ECHO_N "(cached) $ECHO_C" >&6
14128 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14129 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14130 else
14131 # Is the header compilable?
14132 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
14133 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
14134 cat >conftest.$ac_ext <<_ACEOF
14135 /* confdefs.h. */
14136 _ACEOF
14137 cat confdefs.h >>conftest.$ac_ext
14138 cat >>conftest.$ac_ext <<_ACEOF
14139 /* end confdefs.h. */
14140 $ac_includes_default
14141 #include <tiffio.h>
14142 _ACEOF
14143 rm -f conftest.$ac_objext
14144 if { (ac_try="$ac_compile"
14145 case "(($ac_try" in
14146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14147 *) ac_try_echo=$ac_try;;
14148 esac
14149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14150 (eval "$ac_compile") 2>conftest.er1
14151 ac_status=$?
14152 grep -v '^ *+' conftest.er1 >conftest.err
14153 rm -f conftest.er1
14154 cat conftest.err >&5
14155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14156 (exit $ac_status); } && {
14157 test -z "$ac_c_werror_flag" ||
14158 test ! -s conftest.err
14159 } && test -s conftest.$ac_objext; then
14160 ac_header_compiler=yes
14161 else
14162 echo "$as_me: failed program was:" >&5
14163 sed 's/^/| /' conftest.$ac_ext >&5
14165 ac_header_compiler=no
14168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14169 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14170 echo "${ECHO_T}$ac_header_compiler" >&6; }
14172 # Is the header present?
14173 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14174 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
14175 cat >conftest.$ac_ext <<_ACEOF
14176 /* confdefs.h. */
14177 _ACEOF
14178 cat confdefs.h >>conftest.$ac_ext
14179 cat >>conftest.$ac_ext <<_ACEOF
14180 /* end confdefs.h. */
14181 #include <tiffio.h>
14182 _ACEOF
14183 if { (ac_try="$ac_cpp conftest.$ac_ext"
14184 case "(($ac_try" in
14185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14186 *) ac_try_echo=$ac_try;;
14187 esac
14188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14189 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14190 ac_status=$?
14191 grep -v '^ *+' conftest.er1 >conftest.err
14192 rm -f conftest.er1
14193 cat conftest.err >&5
14194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195 (exit $ac_status); } >/dev/null && {
14196 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14197 test ! -s conftest.err
14198 }; then
14199 ac_header_preproc=yes
14200 else
14201 echo "$as_me: failed program was:" >&5
14202 sed 's/^/| /' conftest.$ac_ext >&5
14204 ac_header_preproc=no
14207 rm -f conftest.err conftest.$ac_ext
14208 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14209 echo "${ECHO_T}$ac_header_preproc" >&6; }
14211 # So? What about this header?
14212 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14213 yes:no: )
14214 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14215 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14216 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
14217 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
14218 ac_header_preproc=yes
14220 no:yes:* )
14221 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14222 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14223 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14224 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14225 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14226 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14227 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14228 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14229 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
14230 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
14231 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14232 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14235 esac
14236 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14237 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14238 if test "${ac_cv_header_tiffio_h+set}" = set; then
14239 echo $ECHO_N "(cached) $ECHO_C" >&6
14240 else
14241 ac_cv_header_tiffio_h=$ac_header_preproc
14243 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14244 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14247 if test $ac_cv_header_tiffio_h = yes; then
14248 tifflibs="-lz -lm"
14249 # At least one tiff package requires the jpeg library.
14250 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14251 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14252 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14253 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14254 echo $ECHO_N "(cached) $ECHO_C" >&6
14255 else
14256 ac_check_lib_save_LIBS=$LIBS
14257 LIBS="-ltiff $tifflibs $LIBS"
14258 cat >conftest.$ac_ext <<_ACEOF
14259 /* confdefs.h. */
14260 _ACEOF
14261 cat confdefs.h >>conftest.$ac_ext
14262 cat >>conftest.$ac_ext <<_ACEOF
14263 /* end confdefs.h. */
14265 /* Override any GCC internal prototype to avoid an error.
14266 Use char because int might match the return type of a GCC
14267 builtin and then its argument prototype would still apply. */
14268 #ifdef __cplusplus
14269 extern "C"
14270 #endif
14271 char TIFFGetVersion ();
14273 main ()
14275 return TIFFGetVersion ();
14277 return 0;
14279 _ACEOF
14280 rm -f conftest.$ac_objext conftest$ac_exeext
14281 if { (ac_try="$ac_link"
14282 case "(($ac_try" in
14283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14284 *) ac_try_echo=$ac_try;;
14285 esac
14286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14287 (eval "$ac_link") 2>conftest.er1
14288 ac_status=$?
14289 grep -v '^ *+' conftest.er1 >conftest.err
14290 rm -f conftest.er1
14291 cat conftest.err >&5
14292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14293 (exit $ac_status); } && {
14294 test -z "$ac_c_werror_flag" ||
14295 test ! -s conftest.err
14296 } && test -s conftest$ac_exeext &&
14297 $as_test_x conftest$ac_exeext; then
14298 ac_cv_lib_tiff_TIFFGetVersion=yes
14299 else
14300 echo "$as_me: failed program was:" >&5
14301 sed 's/^/| /' conftest.$ac_ext >&5
14303 ac_cv_lib_tiff_TIFFGetVersion=no
14306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14307 conftest$ac_exeext conftest.$ac_ext
14308 LIBS=$ac_check_lib_save_LIBS
14310 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14311 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14312 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14313 HAVE_TIFF=yes
14321 if test "${HAVE_TIFF}" = "yes"; then
14323 cat >>confdefs.h <<\_ACEOF
14324 #define HAVE_TIFF 1
14325 _ACEOF
14330 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14331 HAVE_GIF=no
14332 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14333 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14334 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14335 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14336 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14337 echo $ECHO_N "(cached) $ECHO_C" >&6
14339 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14340 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14341 else
14342 # Is the header compilable?
14343 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14344 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14345 cat >conftest.$ac_ext <<_ACEOF
14346 /* confdefs.h. */
14347 _ACEOF
14348 cat confdefs.h >>conftest.$ac_ext
14349 cat >>conftest.$ac_ext <<_ACEOF
14350 /* end confdefs.h. */
14351 $ac_includes_default
14352 #include <gif_lib.h>
14353 _ACEOF
14354 rm -f conftest.$ac_objext
14355 if { (ac_try="$ac_compile"
14356 case "(($ac_try" in
14357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14358 *) ac_try_echo=$ac_try;;
14359 esac
14360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14361 (eval "$ac_compile") 2>conftest.er1
14362 ac_status=$?
14363 grep -v '^ *+' conftest.er1 >conftest.err
14364 rm -f conftest.er1
14365 cat conftest.err >&5
14366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367 (exit $ac_status); } && {
14368 test -z "$ac_c_werror_flag" ||
14369 test ! -s conftest.err
14370 } && test -s conftest.$ac_objext; then
14371 ac_header_compiler=yes
14372 else
14373 echo "$as_me: failed program was:" >&5
14374 sed 's/^/| /' conftest.$ac_ext >&5
14376 ac_header_compiler=no
14379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14380 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14381 echo "${ECHO_T}$ac_header_compiler" >&6; }
14383 # Is the header present?
14384 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14385 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14386 cat >conftest.$ac_ext <<_ACEOF
14387 /* confdefs.h. */
14388 _ACEOF
14389 cat confdefs.h >>conftest.$ac_ext
14390 cat >>conftest.$ac_ext <<_ACEOF
14391 /* end confdefs.h. */
14392 #include <gif_lib.h>
14393 _ACEOF
14394 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
14407 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14408 test ! -s conftest.err
14409 }; then
14410 ac_header_preproc=yes
14411 else
14412 echo "$as_me: failed program was:" >&5
14413 sed 's/^/| /' conftest.$ac_ext >&5
14415 ac_header_preproc=no
14418 rm -f conftest.err conftest.$ac_ext
14419 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14420 echo "${ECHO_T}$ac_header_preproc" >&6; }
14422 # So? What about this header?
14423 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14424 yes:no: )
14425 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14426 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14427 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14428 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14429 ac_header_preproc=yes
14431 no:yes:* )
14432 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14433 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14434 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14435 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14436 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14437 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14438 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14439 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14440 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14441 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14442 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14443 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14446 esac
14447 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14448 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14449 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14450 echo $ECHO_N "(cached) $ECHO_C" >&6
14451 else
14452 ac_cv_header_gif_lib_h=$ac_header_preproc
14454 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14455 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14458 if test $ac_cv_header_gif_lib_h = yes; then
14459 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14460 # Earlier versions can crash Emacs.
14461 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14462 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14463 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14464 echo $ECHO_N "(cached) $ECHO_C" >&6
14465 else
14466 ac_check_lib_save_LIBS=$LIBS
14467 LIBS="-lgif $LIBS"
14468 cat >conftest.$ac_ext <<_ACEOF
14469 /* confdefs.h. */
14470 _ACEOF
14471 cat confdefs.h >>conftest.$ac_ext
14472 cat >>conftest.$ac_ext <<_ACEOF
14473 /* end confdefs.h. */
14475 /* Override any GCC internal prototype to avoid an error.
14476 Use char because int might match the return type of a GCC
14477 builtin and then its argument prototype would still apply. */
14478 #ifdef __cplusplus
14479 extern "C"
14480 #endif
14481 char EGifPutExtensionLast ();
14483 main ()
14485 return EGifPutExtensionLast ();
14487 return 0;
14489 _ACEOF
14490 rm -f conftest.$ac_objext conftest$ac_exeext
14491 if { (ac_try="$ac_link"
14492 case "(($ac_try" in
14493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14494 *) ac_try_echo=$ac_try;;
14495 esac
14496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14497 (eval "$ac_link") 2>conftest.er1
14498 ac_status=$?
14499 grep -v '^ *+' conftest.er1 >conftest.err
14500 rm -f conftest.er1
14501 cat conftest.err >&5
14502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14503 (exit $ac_status); } && {
14504 test -z "$ac_c_werror_flag" ||
14505 test ! -s conftest.err
14506 } && test -s conftest$ac_exeext &&
14507 $as_test_x conftest$ac_exeext; then
14508 ac_cv_lib_gif_EGifPutExtensionLast=yes
14509 else
14510 echo "$as_me: failed program was:" >&5
14511 sed 's/^/| /' conftest.$ac_ext >&5
14513 ac_cv_lib_gif_EGifPutExtensionLast=no
14516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14517 conftest$ac_exeext conftest.$ac_ext
14518 LIBS=$ac_check_lib_save_LIBS
14520 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14521 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14522 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14523 HAVE_GIF=yes
14524 else
14525 try_libungif=yes
14532 if test "$HAVE_GIF" = yes; then
14533 ac_gif_lib_name="-lgif"
14536 # If gif_lib.h but no libgif, try libungif.
14537 if test x"$try_libungif" = xyes; then
14538 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14539 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14540 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14541 echo $ECHO_N "(cached) $ECHO_C" >&6
14542 else
14543 ac_check_lib_save_LIBS=$LIBS
14544 LIBS="-lungif $LIBS"
14545 cat >conftest.$ac_ext <<_ACEOF
14546 /* confdefs.h. */
14547 _ACEOF
14548 cat confdefs.h >>conftest.$ac_ext
14549 cat >>conftest.$ac_ext <<_ACEOF
14550 /* end confdefs.h. */
14552 /* Override any GCC internal prototype to avoid an error.
14553 Use char because int might match the return type of a GCC
14554 builtin and then its argument prototype would still apply. */
14555 #ifdef __cplusplus
14556 extern "C"
14557 #endif
14558 char EGifPutExtensionLast ();
14560 main ()
14562 return EGifPutExtensionLast ();
14564 return 0;
14566 _ACEOF
14567 rm -f conftest.$ac_objext conftest$ac_exeext
14568 if { (ac_try="$ac_link"
14569 case "(($ac_try" in
14570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14571 *) ac_try_echo=$ac_try;;
14572 esac
14573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14574 (eval "$ac_link") 2>conftest.er1
14575 ac_status=$?
14576 grep -v '^ *+' conftest.er1 >conftest.err
14577 rm -f conftest.er1
14578 cat conftest.err >&5
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); } && {
14581 test -z "$ac_c_werror_flag" ||
14582 test ! -s conftest.err
14583 } && test -s conftest$ac_exeext &&
14584 $as_test_x conftest$ac_exeext; then
14585 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14586 else
14587 echo "$as_me: failed program was:" >&5
14588 sed 's/^/| /' conftest.$ac_ext >&5
14590 ac_cv_lib_ungif_EGifPutExtensionLast=no
14593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14594 conftest$ac_exeext conftest.$ac_ext
14595 LIBS=$ac_check_lib_save_LIBS
14597 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14598 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14599 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14600 HAVE_GIF=yes
14604 if test "$HAVE_GIF" = yes; then
14606 cat >>confdefs.h <<\_ACEOF
14607 #define LIBGIF -lungif
14608 _ACEOF
14610 ac_gif_lib_name="-lungif"
14614 if test "${HAVE_GIF}" = "yes"; then
14616 cat >>confdefs.h <<\_ACEOF
14617 #define HAVE_GIF 1
14618 _ACEOF
14623 if test "${HAVE_X11}" = "yes"; then
14624 MISSING=""
14625 WITH_NO=""
14626 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14627 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14628 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14629 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
14630 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14631 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
14632 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14633 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
14634 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14635 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
14637 if test "X${MISSING}" != X; then
14638 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14639 $MISSING
14640 Maybe some development libraries/packages are missing?
14641 If you don't want to link with them give
14642 $WITH_NO
14643 as options to configure" >&5
14644 echo "$as_me: error: The following required libraries were not found:
14645 $MISSING
14646 Maybe some development libraries/packages are missing?
14647 If you don't want to link with them give
14648 $WITH_NO
14649 as options to configure" >&2;}
14650 { (exit 1); exit 1; }; }
14654 ### Use -lgpm if available, unless `--with-gpm=no'.
14655 HAVE_GPM=no
14656 if test "${with_gpm}" != "no"; then
14657 if test "${ac_cv_header_gpm_h+set}" = set; then
14658 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14659 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14660 if test "${ac_cv_header_gpm_h+set}" = set; then
14661 echo $ECHO_N "(cached) $ECHO_C" >&6
14663 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14664 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14665 else
14666 # Is the header compilable?
14667 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14668 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14669 cat >conftest.$ac_ext <<_ACEOF
14670 /* confdefs.h. */
14671 _ACEOF
14672 cat confdefs.h >>conftest.$ac_ext
14673 cat >>conftest.$ac_ext <<_ACEOF
14674 /* end confdefs.h. */
14675 $ac_includes_default
14676 #include <gpm.h>
14677 _ACEOF
14678 rm -f conftest.$ac_objext
14679 if { (ac_try="$ac_compile"
14680 case "(($ac_try" in
14681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14682 *) ac_try_echo=$ac_try;;
14683 esac
14684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14685 (eval "$ac_compile") 2>conftest.er1
14686 ac_status=$?
14687 grep -v '^ *+' conftest.er1 >conftest.err
14688 rm -f conftest.er1
14689 cat conftest.err >&5
14690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691 (exit $ac_status); } && {
14692 test -z "$ac_c_werror_flag" ||
14693 test ! -s conftest.err
14694 } && test -s conftest.$ac_objext; then
14695 ac_header_compiler=yes
14696 else
14697 echo "$as_me: failed program was:" >&5
14698 sed 's/^/| /' conftest.$ac_ext >&5
14700 ac_header_compiler=no
14703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14704 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14705 echo "${ECHO_T}$ac_header_compiler" >&6; }
14707 # Is the header present?
14708 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14709 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14710 cat >conftest.$ac_ext <<_ACEOF
14711 /* confdefs.h. */
14712 _ACEOF
14713 cat confdefs.h >>conftest.$ac_ext
14714 cat >>conftest.$ac_ext <<_ACEOF
14715 /* end confdefs.h. */
14716 #include <gpm.h>
14717 _ACEOF
14718 if { (ac_try="$ac_cpp conftest.$ac_ext"
14719 case "(($ac_try" in
14720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14721 *) ac_try_echo=$ac_try;;
14722 esac
14723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14724 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14725 ac_status=$?
14726 grep -v '^ *+' conftest.er1 >conftest.err
14727 rm -f conftest.er1
14728 cat conftest.err >&5
14729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730 (exit $ac_status); } >/dev/null && {
14731 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14732 test ! -s conftest.err
14733 }; then
14734 ac_header_preproc=yes
14735 else
14736 echo "$as_me: failed program was:" >&5
14737 sed 's/^/| /' conftest.$ac_ext >&5
14739 ac_header_preproc=no
14742 rm -f conftest.err conftest.$ac_ext
14743 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14744 echo "${ECHO_T}$ac_header_preproc" >&6; }
14746 # So? What about this header?
14747 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14748 yes:no: )
14749 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14750 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14751 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14752 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14753 ac_header_preproc=yes
14755 no:yes:* )
14756 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14757 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14758 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14759 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14760 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14761 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14762 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14763 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14764 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14765 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14766 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14767 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14770 esac
14771 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14772 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14773 if test "${ac_cv_header_gpm_h+set}" = set; then
14774 echo $ECHO_N "(cached) $ECHO_C" >&6
14775 else
14776 ac_cv_header_gpm_h=$ac_header_preproc
14778 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14779 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14782 if test $ac_cv_header_gpm_h = yes; then
14783 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14784 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14785 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14786 echo $ECHO_N "(cached) $ECHO_C" >&6
14787 else
14788 ac_check_lib_save_LIBS=$LIBS
14789 LIBS="-lgpm $LIBS"
14790 cat >conftest.$ac_ext <<_ACEOF
14791 /* confdefs.h. */
14792 _ACEOF
14793 cat confdefs.h >>conftest.$ac_ext
14794 cat >>conftest.$ac_ext <<_ACEOF
14795 /* end confdefs.h. */
14797 /* Override any GCC internal prototype to avoid an error.
14798 Use char because int might match the return type of a GCC
14799 builtin and then its argument prototype would still apply. */
14800 #ifdef __cplusplus
14801 extern "C"
14802 #endif
14803 char Gpm_Open ();
14805 main ()
14807 return Gpm_Open ();
14809 return 0;
14811 _ACEOF
14812 rm -f conftest.$ac_objext conftest$ac_exeext
14813 if { (ac_try="$ac_link"
14814 case "(($ac_try" in
14815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14816 *) ac_try_echo=$ac_try;;
14817 esac
14818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14819 (eval "$ac_link") 2>conftest.er1
14820 ac_status=$?
14821 grep -v '^ *+' conftest.er1 >conftest.err
14822 rm -f conftest.er1
14823 cat conftest.err >&5
14824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825 (exit $ac_status); } && {
14826 test -z "$ac_c_werror_flag" ||
14827 test ! -s conftest.err
14828 } && test -s conftest$ac_exeext &&
14829 $as_test_x conftest$ac_exeext; then
14830 ac_cv_lib_gpm_Gpm_Open=yes
14831 else
14832 echo "$as_me: failed program was:" >&5
14833 sed 's/^/| /' conftest.$ac_ext >&5
14835 ac_cv_lib_gpm_Gpm_Open=no
14838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14839 conftest$ac_exeext conftest.$ac_ext
14840 LIBS=$ac_check_lib_save_LIBS
14842 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14843 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14844 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14845 HAVE_GPM=yes
14853 if test "${HAVE_GPM}" = "yes"; then
14855 cat >>confdefs.h <<\_ACEOF
14856 #define HAVE_GPM 1
14857 _ACEOF
14861 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14862 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14863 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14864 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14865 echo $ECHO_N "(cached) $ECHO_C" >&6
14867 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14868 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14869 else
14870 # Is the header compilable?
14871 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14872 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14873 cat >conftest.$ac_ext <<_ACEOF
14874 /* confdefs.h. */
14875 _ACEOF
14876 cat confdefs.h >>conftest.$ac_ext
14877 cat >>conftest.$ac_ext <<_ACEOF
14878 /* end confdefs.h. */
14879 $ac_includes_default
14880 #include <malloc/malloc.h>
14881 _ACEOF
14882 rm -f conftest.$ac_objext
14883 if { (ac_try="$ac_compile"
14884 case "(($ac_try" in
14885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14886 *) ac_try_echo=$ac_try;;
14887 esac
14888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14889 (eval "$ac_compile") 2>conftest.er1
14890 ac_status=$?
14891 grep -v '^ *+' conftest.er1 >conftest.err
14892 rm -f conftest.er1
14893 cat conftest.err >&5
14894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895 (exit $ac_status); } && {
14896 test -z "$ac_c_werror_flag" ||
14897 test ! -s conftest.err
14898 } && test -s conftest.$ac_objext; then
14899 ac_header_compiler=yes
14900 else
14901 echo "$as_me: failed program was:" >&5
14902 sed 's/^/| /' conftest.$ac_ext >&5
14904 ac_header_compiler=no
14907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14908 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14909 echo "${ECHO_T}$ac_header_compiler" >&6; }
14911 # Is the header present?
14912 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14913 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14914 cat >conftest.$ac_ext <<_ACEOF
14915 /* confdefs.h. */
14916 _ACEOF
14917 cat confdefs.h >>conftest.$ac_ext
14918 cat >>conftest.$ac_ext <<_ACEOF
14919 /* end confdefs.h. */
14920 #include <malloc/malloc.h>
14921 _ACEOF
14922 if { (ac_try="$ac_cpp conftest.$ac_ext"
14923 case "(($ac_try" in
14924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14925 *) ac_try_echo=$ac_try;;
14926 esac
14927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14928 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14929 ac_status=$?
14930 grep -v '^ *+' conftest.er1 >conftest.err
14931 rm -f conftest.er1
14932 cat conftest.err >&5
14933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934 (exit $ac_status); } >/dev/null && {
14935 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14936 test ! -s conftest.err
14937 }; then
14938 ac_header_preproc=yes
14939 else
14940 echo "$as_me: failed program was:" >&5
14941 sed 's/^/| /' conftest.$ac_ext >&5
14943 ac_header_preproc=no
14946 rm -f conftest.err conftest.$ac_ext
14947 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14948 echo "${ECHO_T}$ac_header_preproc" >&6; }
14950 # So? What about this header?
14951 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14952 yes:no: )
14953 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14954 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14955 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14956 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14957 ac_header_preproc=yes
14959 no:yes:* )
14960 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14961 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14962 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14963 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14964 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14965 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14966 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14967 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14968 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14969 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14970 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14971 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14974 esac
14975 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14976 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14977 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14978 echo $ECHO_N "(cached) $ECHO_C" >&6
14979 else
14980 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14982 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14983 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14986 if test $ac_cv_header_malloc_malloc_h = yes; then
14988 cat >>confdefs.h <<\_ACEOF
14989 #define HAVE_MALLOC_MALLOC_H 1
14990 _ACEOF
14996 ### Use Mac OS X Carbon API to implement GUI.
14997 if test "${HAVE_CARBON}" = "yes"; then
14999 cat >>confdefs.h <<\_ACEOF
15000 #define HAVE_CARBON 1
15001 _ACEOF
15004 for ac_header in AvailabilityMacros.h
15006 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15008 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15011 echo $ECHO_N "(cached) $ECHO_C" >&6
15013 ac_res=`eval echo '${'$as_ac_Header'}'`
15014 { echo "$as_me:$LINENO: result: $ac_res" >&5
15015 echo "${ECHO_T}$ac_res" >&6; }
15016 else
15017 # Is the header compilable?
15018 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15019 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15020 cat >conftest.$ac_ext <<_ACEOF
15021 /* confdefs.h. */
15022 _ACEOF
15023 cat confdefs.h >>conftest.$ac_ext
15024 cat >>conftest.$ac_ext <<_ACEOF
15025 /* end confdefs.h. */
15026 $ac_includes_default
15027 #include <$ac_header>
15028 _ACEOF
15029 rm -f conftest.$ac_objext
15030 if { (ac_try="$ac_compile"
15031 case "(($ac_try" in
15032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15033 *) ac_try_echo=$ac_try;;
15034 esac
15035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15036 (eval "$ac_compile") 2>conftest.er1
15037 ac_status=$?
15038 grep -v '^ *+' conftest.er1 >conftest.err
15039 rm -f conftest.er1
15040 cat conftest.err >&5
15041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042 (exit $ac_status); } && {
15043 test -z "$ac_c_werror_flag" ||
15044 test ! -s conftest.err
15045 } && test -s conftest.$ac_objext; then
15046 ac_header_compiler=yes
15047 else
15048 echo "$as_me: failed program was:" >&5
15049 sed 's/^/| /' conftest.$ac_ext >&5
15051 ac_header_compiler=no
15054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15055 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15056 echo "${ECHO_T}$ac_header_compiler" >&6; }
15058 # Is the header present?
15059 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15060 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15061 cat >conftest.$ac_ext <<_ACEOF
15062 /* confdefs.h. */
15063 _ACEOF
15064 cat confdefs.h >>conftest.$ac_ext
15065 cat >>conftest.$ac_ext <<_ACEOF
15066 /* end confdefs.h. */
15067 #include <$ac_header>
15068 _ACEOF
15069 if { (ac_try="$ac_cpp conftest.$ac_ext"
15070 case "(($ac_try" in
15071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15072 *) ac_try_echo=$ac_try;;
15073 esac
15074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15075 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15076 ac_status=$?
15077 grep -v '^ *+' conftest.er1 >conftest.err
15078 rm -f conftest.er1
15079 cat conftest.err >&5
15080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081 (exit $ac_status); } >/dev/null && {
15082 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15083 test ! -s conftest.err
15084 }; then
15085 ac_header_preproc=yes
15086 else
15087 echo "$as_me: failed program was:" >&5
15088 sed 's/^/| /' conftest.$ac_ext >&5
15090 ac_header_preproc=no
15093 rm -f conftest.err conftest.$ac_ext
15094 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15095 echo "${ECHO_T}$ac_header_preproc" >&6; }
15097 # So? What about this header?
15098 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15099 yes:no: )
15100 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15101 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15103 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15104 ac_header_preproc=yes
15106 no:yes:* )
15107 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15108 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15109 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15110 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15111 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15112 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15113 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15114 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15115 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15116 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15117 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15118 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15121 esac
15122 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15125 echo $ECHO_N "(cached) $ECHO_C" >&6
15126 else
15127 eval "$as_ac_Header=\$ac_header_preproc"
15129 ac_res=`eval echo '${'$as_ac_Header'}'`
15130 { echo "$as_me:$LINENO: result: $ac_res" >&5
15131 echo "${ECHO_T}$ac_res" >&6; }
15134 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15135 cat >>confdefs.h <<_ACEOF
15136 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15137 _ACEOF
15141 done
15143 ## Specify the install directory
15144 carbon_appdir=
15145 if test "${carbon_appdir_x}" != ""; then
15146 case ${carbon_appdir_x} in
15147 y | ye | yes) carbon_appdir=/Applications ;;
15148 * ) carbon_appdir=${carbon_appdir_x} ;;
15149 esac
15151 # We also have mouse menus.
15152 HAVE_MENUS=yes
15155 ### Use session management (-lSM -lICE) if available
15156 HAVE_X_SM=no
15157 if test "${HAVE_X11}" = "yes"; then
15158 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15159 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15160 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15161 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15162 echo $ECHO_N "(cached) $ECHO_C" >&6
15164 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15165 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15166 else
15167 # Is the header compilable?
15168 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
15169 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
15170 cat >conftest.$ac_ext <<_ACEOF
15171 /* confdefs.h. */
15172 _ACEOF
15173 cat confdefs.h >>conftest.$ac_ext
15174 cat >>conftest.$ac_ext <<_ACEOF
15175 /* end confdefs.h. */
15176 $ac_includes_default
15177 #include <X11/SM/SMlib.h>
15178 _ACEOF
15179 rm -f conftest.$ac_objext
15180 if { (ac_try="$ac_compile"
15181 case "(($ac_try" in
15182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15183 *) ac_try_echo=$ac_try;;
15184 esac
15185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15186 (eval "$ac_compile") 2>conftest.er1
15187 ac_status=$?
15188 grep -v '^ *+' conftest.er1 >conftest.err
15189 rm -f conftest.er1
15190 cat conftest.err >&5
15191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192 (exit $ac_status); } && {
15193 test -z "$ac_c_werror_flag" ||
15194 test ! -s conftest.err
15195 } && test -s conftest.$ac_objext; then
15196 ac_header_compiler=yes
15197 else
15198 echo "$as_me: failed program was:" >&5
15199 sed 's/^/| /' conftest.$ac_ext >&5
15201 ac_header_compiler=no
15204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15205 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15206 echo "${ECHO_T}$ac_header_compiler" >&6; }
15208 # Is the header present?
15209 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
15210 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
15211 cat >conftest.$ac_ext <<_ACEOF
15212 /* confdefs.h. */
15213 _ACEOF
15214 cat confdefs.h >>conftest.$ac_ext
15215 cat >>conftest.$ac_ext <<_ACEOF
15216 /* end confdefs.h. */
15217 #include <X11/SM/SMlib.h>
15218 _ACEOF
15219 if { (ac_try="$ac_cpp conftest.$ac_ext"
15220 case "(($ac_try" in
15221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15222 *) ac_try_echo=$ac_try;;
15223 esac
15224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15225 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15226 ac_status=$?
15227 grep -v '^ *+' conftest.er1 >conftest.err
15228 rm -f conftest.er1
15229 cat conftest.err >&5
15230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15231 (exit $ac_status); } >/dev/null && {
15232 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15233 test ! -s conftest.err
15234 }; then
15235 ac_header_preproc=yes
15236 else
15237 echo "$as_me: failed program was:" >&5
15238 sed 's/^/| /' conftest.$ac_ext >&5
15240 ac_header_preproc=no
15243 rm -f conftest.err conftest.$ac_ext
15244 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15245 echo "${ECHO_T}$ac_header_preproc" >&6; }
15247 # So? What about this header?
15248 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15249 yes:no: )
15250 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15251 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15252 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
15253 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
15254 ac_header_preproc=yes
15256 no:yes:* )
15257 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
15258 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
15259 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
15260 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
15261 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
15262 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
15263 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
15264 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15265 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
15266 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
15267 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
15268 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
15271 esac
15272 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15273 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15274 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15275 echo $ECHO_N "(cached) $ECHO_C" >&6
15276 else
15277 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15279 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15280 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15283 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15284 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
15285 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
15286 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15287 echo $ECHO_N "(cached) $ECHO_C" >&6
15288 else
15289 ac_check_lib_save_LIBS=$LIBS
15290 LIBS="-lSM -lICE $LIBS"
15291 cat >conftest.$ac_ext <<_ACEOF
15292 /* confdefs.h. */
15293 _ACEOF
15294 cat confdefs.h >>conftest.$ac_ext
15295 cat >>conftest.$ac_ext <<_ACEOF
15296 /* end confdefs.h. */
15298 /* Override any GCC internal prototype to avoid an error.
15299 Use char because int might match the return type of a GCC
15300 builtin and then its argument prototype would still apply. */
15301 #ifdef __cplusplus
15302 extern "C"
15303 #endif
15304 char SmcOpenConnection ();
15306 main ()
15308 return SmcOpenConnection ();
15310 return 0;
15312 _ACEOF
15313 rm -f conftest.$ac_objext conftest$ac_exeext
15314 if { (ac_try="$ac_link"
15315 case "(($ac_try" in
15316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15317 *) ac_try_echo=$ac_try;;
15318 esac
15319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15320 (eval "$ac_link") 2>conftest.er1
15321 ac_status=$?
15322 grep -v '^ *+' conftest.er1 >conftest.err
15323 rm -f conftest.er1
15324 cat conftest.err >&5
15325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326 (exit $ac_status); } && {
15327 test -z "$ac_c_werror_flag" ||
15328 test ! -s conftest.err
15329 } && test -s conftest$ac_exeext &&
15330 $as_test_x conftest$ac_exeext; then
15331 ac_cv_lib_SM_SmcOpenConnection=yes
15332 else
15333 echo "$as_me: failed program was:" >&5
15334 sed 's/^/| /' conftest.$ac_ext >&5
15336 ac_cv_lib_SM_SmcOpenConnection=no
15339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15340 conftest$ac_exeext conftest.$ac_ext
15341 LIBS=$ac_check_lib_save_LIBS
15343 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15344 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15345 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15346 HAVE_X_SM=yes
15353 if test "${HAVE_X_SM}" = "yes"; then
15355 cat >>confdefs.h <<\_ACEOF
15356 #define HAVE_X_SM 1
15357 _ACEOF
15359 case "$LIBS" in
15360 *-lSM*) ;;
15361 *) LIBS="-lSM -lICE $LIBS" ;;
15362 esac
15366 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15367 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15368 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
15369 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15370 echo $ECHO_N "(cached) $ECHO_C" >&6
15371 else
15372 cat >conftest.$ac_ext <<_ACEOF
15373 /* confdefs.h. */
15374 _ACEOF
15375 cat confdefs.h >>conftest.$ac_ext
15376 cat >>conftest.$ac_ext <<_ACEOF
15377 /* end confdefs.h. */
15378 #include <netdb.h>
15380 main ()
15382 return h_errno;
15384 return 0;
15386 _ACEOF
15387 rm -f conftest.$ac_objext conftest$ac_exeext
15388 if { (ac_try="$ac_link"
15389 case "(($ac_try" in
15390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15391 *) ac_try_echo=$ac_try;;
15392 esac
15393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15394 (eval "$ac_link") 2>conftest.er1
15395 ac_status=$?
15396 grep -v '^ *+' conftest.er1 >conftest.err
15397 rm -f conftest.er1
15398 cat conftest.err >&5
15399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400 (exit $ac_status); } && {
15401 test -z "$ac_c_werror_flag" ||
15402 test ! -s conftest.err
15403 } && test -s conftest$ac_exeext &&
15404 $as_test_x conftest$ac_exeext; then
15405 emacs_cv_netdb_declares_h_errno=yes
15406 else
15407 echo "$as_me: failed program was:" >&5
15408 sed 's/^/| /' conftest.$ac_ext >&5
15410 emacs_cv_netdb_declares_h_errno=no
15413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15414 conftest$ac_exeext conftest.$ac_ext
15416 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15417 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15418 if test $emacs_cv_netdb_declares_h_errno = yes; then
15420 cat >>confdefs.h <<\_ACEOF
15421 #define HAVE_H_ERRNO 1
15422 _ACEOF
15426 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15427 # for constant arguments. Useless!
15428 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15429 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15430 if test "${ac_cv_working_alloca_h+set}" = set; then
15431 echo $ECHO_N "(cached) $ECHO_C" >&6
15432 else
15433 cat >conftest.$ac_ext <<_ACEOF
15434 /* confdefs.h. */
15435 _ACEOF
15436 cat confdefs.h >>conftest.$ac_ext
15437 cat >>conftest.$ac_ext <<_ACEOF
15438 /* end confdefs.h. */
15439 #include <alloca.h>
15441 main ()
15443 char *p = (char *) alloca (2 * sizeof (int));
15444 if (p) return 0;
15446 return 0;
15448 _ACEOF
15449 rm -f conftest.$ac_objext conftest$ac_exeext
15450 if { (ac_try="$ac_link"
15451 case "(($ac_try" in
15452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15453 *) ac_try_echo=$ac_try;;
15454 esac
15455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15456 (eval "$ac_link") 2>conftest.er1
15457 ac_status=$?
15458 grep -v '^ *+' conftest.er1 >conftest.err
15459 rm -f conftest.er1
15460 cat conftest.err >&5
15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 (exit $ac_status); } && {
15463 test -z "$ac_c_werror_flag" ||
15464 test ! -s conftest.err
15465 } && test -s conftest$ac_exeext &&
15466 $as_test_x conftest$ac_exeext; then
15467 ac_cv_working_alloca_h=yes
15468 else
15469 echo "$as_me: failed program was:" >&5
15470 sed 's/^/| /' conftest.$ac_ext >&5
15472 ac_cv_working_alloca_h=no
15475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15476 conftest$ac_exeext conftest.$ac_ext
15478 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15479 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15480 if test $ac_cv_working_alloca_h = yes; then
15482 cat >>confdefs.h <<\_ACEOF
15483 #define HAVE_ALLOCA_H 1
15484 _ACEOF
15488 { echo "$as_me:$LINENO: checking for alloca" >&5
15489 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15490 if test "${ac_cv_func_alloca_works+set}" = set; then
15491 echo $ECHO_N "(cached) $ECHO_C" >&6
15492 else
15493 cat >conftest.$ac_ext <<_ACEOF
15494 /* confdefs.h. */
15495 _ACEOF
15496 cat confdefs.h >>conftest.$ac_ext
15497 cat >>conftest.$ac_ext <<_ACEOF
15498 /* end confdefs.h. */
15499 #ifdef __GNUC__
15500 # define alloca __builtin_alloca
15501 #else
15502 # ifdef _MSC_VER
15503 # include <malloc.h>
15504 # define alloca _alloca
15505 # else
15506 # ifdef HAVE_ALLOCA_H
15507 # include <alloca.h>
15508 # else
15509 # ifdef _AIX
15510 #pragma alloca
15511 # else
15512 # ifndef alloca /* predefined by HP cc +Olibcalls */
15513 char *alloca ();
15514 # endif
15515 # endif
15516 # endif
15517 # endif
15518 #endif
15521 main ()
15523 char *p = (char *) alloca (1);
15524 if (p) return 0;
15526 return 0;
15528 _ACEOF
15529 rm -f conftest.$ac_objext conftest$ac_exeext
15530 if { (ac_try="$ac_link"
15531 case "(($ac_try" in
15532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15533 *) ac_try_echo=$ac_try;;
15534 esac
15535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15536 (eval "$ac_link") 2>conftest.er1
15537 ac_status=$?
15538 grep -v '^ *+' conftest.er1 >conftest.err
15539 rm -f conftest.er1
15540 cat conftest.err >&5
15541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542 (exit $ac_status); } && {
15543 test -z "$ac_c_werror_flag" ||
15544 test ! -s conftest.err
15545 } && test -s conftest$ac_exeext &&
15546 $as_test_x conftest$ac_exeext; then
15547 ac_cv_func_alloca_works=yes
15548 else
15549 echo "$as_me: failed program was:" >&5
15550 sed 's/^/| /' conftest.$ac_ext >&5
15552 ac_cv_func_alloca_works=no
15555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15556 conftest$ac_exeext conftest.$ac_ext
15558 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15559 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15561 if test $ac_cv_func_alloca_works = yes; then
15563 cat >>confdefs.h <<\_ACEOF
15564 #define HAVE_ALLOCA 1
15565 _ACEOF
15567 else
15568 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15569 # that cause trouble. Some versions do not even contain alloca or
15570 # contain a buggy version. If you still want to use their alloca,
15571 # use ar to extract alloca.o from them instead of compiling alloca.c.
15573 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15575 cat >>confdefs.h <<\_ACEOF
15576 #define C_ALLOCA 1
15577 _ACEOF
15580 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15581 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
15582 if test "${ac_cv_os_cray+set}" = set; then
15583 echo $ECHO_N "(cached) $ECHO_C" >&6
15584 else
15585 cat >conftest.$ac_ext <<_ACEOF
15586 /* confdefs.h. */
15587 _ACEOF
15588 cat confdefs.h >>conftest.$ac_ext
15589 cat >>conftest.$ac_ext <<_ACEOF
15590 /* end confdefs.h. */
15591 #if defined CRAY && ! defined CRAY2
15592 webecray
15593 #else
15594 wenotbecray
15595 #endif
15597 _ACEOF
15598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15599 $EGREP "webecray" >/dev/null 2>&1; then
15600 ac_cv_os_cray=yes
15601 else
15602 ac_cv_os_cray=no
15604 rm -f conftest*
15607 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15608 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15609 if test $ac_cv_os_cray = yes; then
15610 for ac_func in _getb67 GETB67 getb67; do
15611 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15612 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15613 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15614 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15615 echo $ECHO_N "(cached) $ECHO_C" >&6
15616 else
15617 cat >conftest.$ac_ext <<_ACEOF
15618 /* confdefs.h. */
15619 _ACEOF
15620 cat confdefs.h >>conftest.$ac_ext
15621 cat >>conftest.$ac_ext <<_ACEOF
15622 /* end confdefs.h. */
15623 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15624 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15625 #define $ac_func innocuous_$ac_func
15627 /* System header to define __stub macros and hopefully few prototypes,
15628 which can conflict with char $ac_func (); below.
15629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15630 <limits.h> exists even on freestanding compilers. */
15632 #ifdef __STDC__
15633 # include <limits.h>
15634 #else
15635 # include <assert.h>
15636 #endif
15638 #undef $ac_func
15640 /* Override any GCC internal prototype to avoid an error.
15641 Use char because int might match the return type of a GCC
15642 builtin and then its argument prototype would still apply. */
15643 #ifdef __cplusplus
15644 extern "C"
15645 #endif
15646 char $ac_func ();
15647 /* The GNU C library defines this for functions which it implements
15648 to always fail with ENOSYS. Some functions are actually named
15649 something starting with __ and the normal name is an alias. */
15650 #if defined __stub_$ac_func || defined __stub___$ac_func
15651 choke me
15652 #endif
15655 main ()
15657 return $ac_func ();
15659 return 0;
15661 _ACEOF
15662 rm -f conftest.$ac_objext conftest$ac_exeext
15663 if { (ac_try="$ac_link"
15664 case "(($ac_try" in
15665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15666 *) ac_try_echo=$ac_try;;
15667 esac
15668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15669 (eval "$ac_link") 2>conftest.er1
15670 ac_status=$?
15671 grep -v '^ *+' conftest.er1 >conftest.err
15672 rm -f conftest.er1
15673 cat conftest.err >&5
15674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15675 (exit $ac_status); } && {
15676 test -z "$ac_c_werror_flag" ||
15677 test ! -s conftest.err
15678 } && test -s conftest$ac_exeext &&
15679 $as_test_x conftest$ac_exeext; then
15680 eval "$as_ac_var=yes"
15681 else
15682 echo "$as_me: failed program was:" >&5
15683 sed 's/^/| /' conftest.$ac_ext >&5
15685 eval "$as_ac_var=no"
15688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15689 conftest$ac_exeext conftest.$ac_ext
15691 ac_res=`eval echo '${'$as_ac_var'}'`
15692 { echo "$as_me:$LINENO: result: $ac_res" >&5
15693 echo "${ECHO_T}$ac_res" >&6; }
15694 if test `eval echo '${'$as_ac_var'}'` = yes; then
15696 cat >>confdefs.h <<_ACEOF
15697 #define CRAY_STACKSEG_END $ac_func
15698 _ACEOF
15700 break
15703 done
15706 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15707 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
15708 if test "${ac_cv_c_stack_direction+set}" = set; then
15709 echo $ECHO_N "(cached) $ECHO_C" >&6
15710 else
15711 if test "$cross_compiling" = yes; then
15712 ac_cv_c_stack_direction=0
15713 else
15714 cat >conftest.$ac_ext <<_ACEOF
15715 /* confdefs.h. */
15716 _ACEOF
15717 cat confdefs.h >>conftest.$ac_ext
15718 cat >>conftest.$ac_ext <<_ACEOF
15719 /* end confdefs.h. */
15720 $ac_includes_default
15722 find_stack_direction ()
15724 static char *addr = 0;
15725 auto char dummy;
15726 if (addr == 0)
15728 addr = &dummy;
15729 return find_stack_direction ();
15731 else
15732 return (&dummy > addr) ? 1 : -1;
15736 main ()
15738 return find_stack_direction () < 0;
15740 _ACEOF
15741 rm -f conftest$ac_exeext
15742 if { (ac_try="$ac_link"
15743 case "(($ac_try" in
15744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15745 *) ac_try_echo=$ac_try;;
15746 esac
15747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15748 (eval "$ac_link") 2>&5
15749 ac_status=$?
15750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15751 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15752 { (case "(($ac_try" in
15753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15754 *) ac_try_echo=$ac_try;;
15755 esac
15756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15757 (eval "$ac_try") 2>&5
15758 ac_status=$?
15759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15760 (exit $ac_status); }; }; then
15761 ac_cv_c_stack_direction=1
15762 else
15763 echo "$as_me: program exited with status $ac_status" >&5
15764 echo "$as_me: failed program was:" >&5
15765 sed 's/^/| /' conftest.$ac_ext >&5
15767 ( exit $ac_status )
15768 ac_cv_c_stack_direction=-1
15770 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15775 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15776 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15778 cat >>confdefs.h <<_ACEOF
15779 #define STACK_DIRECTION $ac_cv_c_stack_direction
15780 _ACEOF
15786 if test x"$ac_cv_func_alloca_works" != xyes; then
15787 { { echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
15788 echo "$as_me: error: a system implementation of alloca is required " >&2;}
15789 { (exit 1); exit 1; }; }
15792 # fmod, logb, and frexp are found in -lm on most systems.
15793 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15795 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15796 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15797 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15798 echo $ECHO_N "(cached) $ECHO_C" >&6
15799 else
15800 ac_check_lib_save_LIBS=$LIBS
15801 LIBS="-lm $LIBS"
15802 cat >conftest.$ac_ext <<_ACEOF
15803 /* confdefs.h. */
15804 _ACEOF
15805 cat confdefs.h >>conftest.$ac_ext
15806 cat >>conftest.$ac_ext <<_ACEOF
15807 /* end confdefs.h. */
15809 /* Override any GCC internal prototype to avoid an error.
15810 Use char because int might match the return type of a GCC
15811 builtin and then its argument prototype would still apply. */
15812 #ifdef __cplusplus
15813 extern "C"
15814 #endif
15815 char sqrt ();
15817 main ()
15819 return sqrt ();
15821 return 0;
15823 _ACEOF
15824 rm -f conftest.$ac_objext conftest$ac_exeext
15825 if { (ac_try="$ac_link"
15826 case "(($ac_try" in
15827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15828 *) ac_try_echo=$ac_try;;
15829 esac
15830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15831 (eval "$ac_link") 2>conftest.er1
15832 ac_status=$?
15833 grep -v '^ *+' conftest.er1 >conftest.err
15834 rm -f conftest.er1
15835 cat conftest.err >&5
15836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837 (exit $ac_status); } && {
15838 test -z "$ac_c_werror_flag" ||
15839 test ! -s conftest.err
15840 } && test -s conftest$ac_exeext &&
15841 $as_test_x conftest$ac_exeext; then
15842 ac_cv_lib_m_sqrt=yes
15843 else
15844 echo "$as_me: failed program was:" >&5
15845 sed 's/^/| /' conftest.$ac_ext >&5
15847 ac_cv_lib_m_sqrt=no
15850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15851 conftest$ac_exeext conftest.$ac_ext
15852 LIBS=$ac_check_lib_save_LIBS
15854 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15855 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15856 if test $ac_cv_lib_m_sqrt = yes; then
15857 cat >>confdefs.h <<_ACEOF
15858 #define HAVE_LIBM 1
15859 _ACEOF
15861 LIBS="-lm $LIBS"
15866 # Check for mail-locking functions in a "mail" library. Probably this should
15867 # have the same check as for liblockfile below.
15869 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15870 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15871 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15872 echo $ECHO_N "(cached) $ECHO_C" >&6
15873 else
15874 ac_check_lib_save_LIBS=$LIBS
15875 LIBS="-lmail $LIBS"
15876 cat >conftest.$ac_ext <<_ACEOF
15877 /* confdefs.h. */
15878 _ACEOF
15879 cat confdefs.h >>conftest.$ac_ext
15880 cat >>conftest.$ac_ext <<_ACEOF
15881 /* end confdefs.h. */
15883 /* Override any GCC internal prototype to avoid an error.
15884 Use char because int might match the return type of a GCC
15885 builtin and then its argument prototype would still apply. */
15886 #ifdef __cplusplus
15887 extern "C"
15888 #endif
15889 char maillock ();
15891 main ()
15893 return maillock ();
15895 return 0;
15897 _ACEOF
15898 rm -f conftest.$ac_objext conftest$ac_exeext
15899 if { (ac_try="$ac_link"
15900 case "(($ac_try" in
15901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15902 *) ac_try_echo=$ac_try;;
15903 esac
15904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15905 (eval "$ac_link") 2>conftest.er1
15906 ac_status=$?
15907 grep -v '^ *+' conftest.er1 >conftest.err
15908 rm -f conftest.er1
15909 cat conftest.err >&5
15910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911 (exit $ac_status); } && {
15912 test -z "$ac_c_werror_flag" ||
15913 test ! -s conftest.err
15914 } && test -s conftest$ac_exeext &&
15915 $as_test_x conftest$ac_exeext; then
15916 ac_cv_lib_mail_maillock=yes
15917 else
15918 echo "$as_me: failed program was:" >&5
15919 sed 's/^/| /' conftest.$ac_ext >&5
15921 ac_cv_lib_mail_maillock=no
15924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15925 conftest$ac_exeext conftest.$ac_ext
15926 LIBS=$ac_check_lib_save_LIBS
15928 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15929 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15930 if test $ac_cv_lib_mail_maillock = yes; then
15931 cat >>confdefs.h <<_ACEOF
15932 #define HAVE_LIBMAIL 1
15933 _ACEOF
15935 LIBS="-lmail $LIBS"
15940 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15941 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15942 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15943 echo $ECHO_N "(cached) $ECHO_C" >&6
15944 else
15945 ac_check_lib_save_LIBS=$LIBS
15946 LIBS="-llockfile $LIBS"
15947 cat >conftest.$ac_ext <<_ACEOF
15948 /* confdefs.h. */
15949 _ACEOF
15950 cat confdefs.h >>conftest.$ac_ext
15951 cat >>conftest.$ac_ext <<_ACEOF
15952 /* end confdefs.h. */
15954 /* Override any GCC internal prototype to avoid an error.
15955 Use char because int might match the return type of a GCC
15956 builtin and then its argument prototype would still apply. */
15957 #ifdef __cplusplus
15958 extern "C"
15959 #endif
15960 char maillock ();
15962 main ()
15964 return maillock ();
15966 return 0;
15968 _ACEOF
15969 rm -f conftest.$ac_objext conftest$ac_exeext
15970 if { (ac_try="$ac_link"
15971 case "(($ac_try" in
15972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15973 *) ac_try_echo=$ac_try;;
15974 esac
15975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15976 (eval "$ac_link") 2>conftest.er1
15977 ac_status=$?
15978 grep -v '^ *+' conftest.er1 >conftest.err
15979 rm -f conftest.er1
15980 cat conftest.err >&5
15981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982 (exit $ac_status); } && {
15983 test -z "$ac_c_werror_flag" ||
15984 test ! -s conftest.err
15985 } && test -s conftest$ac_exeext &&
15986 $as_test_x conftest$ac_exeext; then
15987 ac_cv_lib_lockfile_maillock=yes
15988 else
15989 echo "$as_me: failed program was:" >&5
15990 sed 's/^/| /' conftest.$ac_ext >&5
15992 ac_cv_lib_lockfile_maillock=no
15995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15996 conftest$ac_exeext conftest.$ac_ext
15997 LIBS=$ac_check_lib_save_LIBS
15999 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
16000 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
16001 if test $ac_cv_lib_lockfile_maillock = yes; then
16002 cat >>confdefs.h <<_ACEOF
16003 #define HAVE_LIBLOCKFILE 1
16004 _ACEOF
16006 LIBS="-llockfile $LIBS"
16010 # If we have the shared liblockfile, assume we must use it for mail
16011 # locking (e.g. Debian). If we couldn't link against liblockfile
16012 # (no liblockfile.a installed), ensure that we don't need to.
16013 if test "$ac_cv_lib_lockfile_maillock" = no; then
16014 # Extract the first word of "liblockfile.so", so it can be a program name with args.
16015 set dummy liblockfile.so; ac_word=$2
16016 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16018 if test "${ac_cv_prog_liblockfile+set}" = set; then
16019 echo $ECHO_N "(cached) $ECHO_C" >&6
16020 else
16021 if test -n "$liblockfile"; then
16022 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
16023 else
16024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16025 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
16026 for as_dir in $as_dummy
16028 IFS=$as_save_IFS
16029 test -z "$as_dir" && as_dir=.
16030 for ac_exec_ext in '' $ac_executable_extensions; do
16031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16032 ac_cv_prog_liblockfile="yes"
16033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16034 break 2
16036 done
16037 done
16038 IFS=$as_save_IFS
16040 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
16043 liblockfile=$ac_cv_prog_liblockfile
16044 if test -n "$liblockfile"; then
16045 { echo "$as_me:$LINENO: result: $liblockfile" >&5
16046 echo "${ECHO_T}$liblockfile" >&6; }
16047 else
16048 { echo "$as_me:$LINENO: result: no" >&5
16049 echo "${ECHO_T}no" >&6; }
16053 if test $ac_cv_prog_liblockfile = yes; then
16054 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
16055 This probably means that movemail could lose mail.
16056 There may be a \`development' package to install containing liblockfile." >&5
16057 echo "$as_me: error: Shared liblockfile found but can't link against it.
16058 This probably means that movemail could lose mail.
16059 There may be a \`development' package to install containing liblockfile." >&2;}
16060 { (exit 1); exit 1; }; }
16061 else :
16065 for ac_func in touchlock
16067 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16068 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16069 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16070 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16071 echo $ECHO_N "(cached) $ECHO_C" >&6
16072 else
16073 cat >conftest.$ac_ext <<_ACEOF
16074 /* confdefs.h. */
16075 _ACEOF
16076 cat confdefs.h >>conftest.$ac_ext
16077 cat >>conftest.$ac_ext <<_ACEOF
16078 /* end confdefs.h. */
16079 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16080 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16081 #define $ac_func innocuous_$ac_func
16083 /* System header to define __stub macros and hopefully few prototypes,
16084 which can conflict with char $ac_func (); below.
16085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16086 <limits.h> exists even on freestanding compilers. */
16088 #ifdef __STDC__
16089 # include <limits.h>
16090 #else
16091 # include <assert.h>
16092 #endif
16094 #undef $ac_func
16096 /* Override any GCC internal prototype to avoid an error.
16097 Use char because int might match the return type of a GCC
16098 builtin and then its argument prototype would still apply. */
16099 #ifdef __cplusplus
16100 extern "C"
16101 #endif
16102 char $ac_func ();
16103 /* The GNU C library defines this for functions which it implements
16104 to always fail with ENOSYS. Some functions are actually named
16105 something starting with __ and the normal name is an alias. */
16106 #if defined __stub_$ac_func || defined __stub___$ac_func
16107 choke me
16108 #endif
16111 main ()
16113 return $ac_func ();
16115 return 0;
16117 _ACEOF
16118 rm -f conftest.$ac_objext conftest$ac_exeext
16119 if { (ac_try="$ac_link"
16120 case "(($ac_try" in
16121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16122 *) ac_try_echo=$ac_try;;
16123 esac
16124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16125 (eval "$ac_link") 2>conftest.er1
16126 ac_status=$?
16127 grep -v '^ *+' conftest.er1 >conftest.err
16128 rm -f conftest.er1
16129 cat conftest.err >&5
16130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16131 (exit $ac_status); } && {
16132 test -z "$ac_c_werror_flag" ||
16133 test ! -s conftest.err
16134 } && test -s conftest$ac_exeext &&
16135 $as_test_x conftest$ac_exeext; then
16136 eval "$as_ac_var=yes"
16137 else
16138 echo "$as_me: failed program was:" >&5
16139 sed 's/^/| /' conftest.$ac_ext >&5
16141 eval "$as_ac_var=no"
16144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16145 conftest$ac_exeext conftest.$ac_ext
16147 ac_res=`eval echo '${'$as_ac_var'}'`
16148 { echo "$as_me:$LINENO: result: $ac_res" >&5
16149 echo "${ECHO_T}$ac_res" >&6; }
16150 if test `eval echo '${'$as_ac_var'}'` = yes; then
16151 cat >>confdefs.h <<_ACEOF
16152 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16153 _ACEOF
16156 done
16159 for ac_header in maillock.h
16161 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
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
16168 ac_res=`eval echo '${'$as_ac_Header'}'`
16169 { echo "$as_me:$LINENO: result: $ac_res" >&5
16170 echo "${ECHO_T}$ac_res" >&6; }
16171 else
16172 # Is the header compilable?
16173 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16174 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16175 cat >conftest.$ac_ext <<_ACEOF
16176 /* confdefs.h. */
16177 _ACEOF
16178 cat confdefs.h >>conftest.$ac_ext
16179 cat >>conftest.$ac_ext <<_ACEOF
16180 /* end confdefs.h. */
16181 $ac_includes_default
16182 #include <$ac_header>
16183 _ACEOF
16184 rm -f conftest.$ac_objext
16185 if { (ac_try="$ac_compile"
16186 case "(($ac_try" in
16187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16188 *) ac_try_echo=$ac_try;;
16189 esac
16190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16191 (eval "$ac_compile") 2>conftest.er1
16192 ac_status=$?
16193 grep -v '^ *+' conftest.er1 >conftest.err
16194 rm -f conftest.er1
16195 cat conftest.err >&5
16196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197 (exit $ac_status); } && {
16198 test -z "$ac_c_werror_flag" ||
16199 test ! -s conftest.err
16200 } && test -s conftest.$ac_objext; then
16201 ac_header_compiler=yes
16202 else
16203 echo "$as_me: failed program was:" >&5
16204 sed 's/^/| /' conftest.$ac_ext >&5
16206 ac_header_compiler=no
16209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16210 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16211 echo "${ECHO_T}$ac_header_compiler" >&6; }
16213 # Is the header present?
16214 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16215 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16216 cat >conftest.$ac_ext <<_ACEOF
16217 /* confdefs.h. */
16218 _ACEOF
16219 cat confdefs.h >>conftest.$ac_ext
16220 cat >>conftest.$ac_ext <<_ACEOF
16221 /* end confdefs.h. */
16222 #include <$ac_header>
16223 _ACEOF
16224 if { (ac_try="$ac_cpp conftest.$ac_ext"
16225 case "(($ac_try" in
16226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16227 *) ac_try_echo=$ac_try;;
16228 esac
16229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16230 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16231 ac_status=$?
16232 grep -v '^ *+' conftest.er1 >conftest.err
16233 rm -f conftest.er1
16234 cat conftest.err >&5
16235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236 (exit $ac_status); } >/dev/null && {
16237 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16238 test ! -s conftest.err
16239 }; then
16240 ac_header_preproc=yes
16241 else
16242 echo "$as_me: failed program was:" >&5
16243 sed 's/^/| /' conftest.$ac_ext >&5
16245 ac_header_preproc=no
16248 rm -f conftest.err conftest.$ac_ext
16249 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16250 echo "${ECHO_T}$ac_header_preproc" >&6; }
16252 # So? What about this header?
16253 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16254 yes:no: )
16255 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16256 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16257 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16258 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16259 ac_header_preproc=yes
16261 no:yes:* )
16262 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16263 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16264 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16265 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16266 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16267 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16268 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16269 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16270 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16271 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16272 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16273 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16276 esac
16277 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16280 echo $ECHO_N "(cached) $ECHO_C" >&6
16281 else
16282 eval "$as_ac_Header=\$ac_header_preproc"
16284 ac_res=`eval echo '${'$as_ac_Header'}'`
16285 { echo "$as_me:$LINENO: result: $ac_res" >&5
16286 echo "${ECHO_T}$ac_res" >&6; }
16289 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16290 cat >>confdefs.h <<_ACEOF
16291 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16292 _ACEOF
16296 done
16369 for ac_func in gethostname getdomainname dup2 \
16370 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16371 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16372 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16373 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16374 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16375 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16376 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16377 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
16378 cfmakeraw cfsetspeed
16380 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16381 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16382 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16383 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16384 echo $ECHO_N "(cached) $ECHO_C" >&6
16385 else
16386 cat >conftest.$ac_ext <<_ACEOF
16387 /* confdefs.h. */
16388 _ACEOF
16389 cat confdefs.h >>conftest.$ac_ext
16390 cat >>conftest.$ac_ext <<_ACEOF
16391 /* end confdefs.h. */
16392 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16394 #define $ac_func innocuous_$ac_func
16396 /* System header to define __stub macros and hopefully few prototypes,
16397 which can conflict with char $ac_func (); below.
16398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16399 <limits.h> exists even on freestanding compilers. */
16401 #ifdef __STDC__
16402 # include <limits.h>
16403 #else
16404 # include <assert.h>
16405 #endif
16407 #undef $ac_func
16409 /* Override any GCC internal prototype to avoid an error.
16410 Use char because int might match the return type of a GCC
16411 builtin and then its argument prototype would still apply. */
16412 #ifdef __cplusplus
16413 extern "C"
16414 #endif
16415 char $ac_func ();
16416 /* The GNU C library defines this for functions which it implements
16417 to always fail with ENOSYS. Some functions are actually named
16418 something starting with __ and the normal name is an alias. */
16419 #if defined __stub_$ac_func || defined __stub___$ac_func
16420 choke me
16421 #endif
16424 main ()
16426 return $ac_func ();
16428 return 0;
16430 _ACEOF
16431 rm -f conftest.$ac_objext conftest$ac_exeext
16432 if { (ac_try="$ac_link"
16433 case "(($ac_try" in
16434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16435 *) ac_try_echo=$ac_try;;
16436 esac
16437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16438 (eval "$ac_link") 2>conftest.er1
16439 ac_status=$?
16440 grep -v '^ *+' conftest.er1 >conftest.err
16441 rm -f conftest.er1
16442 cat conftest.err >&5
16443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16444 (exit $ac_status); } && {
16445 test -z "$ac_c_werror_flag" ||
16446 test ! -s conftest.err
16447 } && test -s conftest$ac_exeext &&
16448 $as_test_x conftest$ac_exeext; then
16449 eval "$as_ac_var=yes"
16450 else
16451 echo "$as_me: failed program was:" >&5
16452 sed 's/^/| /' conftest.$ac_ext >&5
16454 eval "$as_ac_var=no"
16457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16458 conftest$ac_exeext conftest.$ac_ext
16460 ac_res=`eval echo '${'$as_ac_var'}'`
16461 { echo "$as_me:$LINENO: result: $ac_res" >&5
16462 echo "${ECHO_T}$ac_res" >&6; }
16463 if test `eval echo '${'$as_ac_var'}'` = yes; then
16464 cat >>confdefs.h <<_ACEOF
16465 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16466 _ACEOF
16469 done
16473 for ac_header in sys/un.h
16475 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16477 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16479 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16480 echo $ECHO_N "(cached) $ECHO_C" >&6
16482 ac_res=`eval echo '${'$as_ac_Header'}'`
16483 { echo "$as_me:$LINENO: result: $ac_res" >&5
16484 echo "${ECHO_T}$ac_res" >&6; }
16485 else
16486 # Is the header compilable?
16487 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16488 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16489 cat >conftest.$ac_ext <<_ACEOF
16490 /* confdefs.h. */
16491 _ACEOF
16492 cat confdefs.h >>conftest.$ac_ext
16493 cat >>conftest.$ac_ext <<_ACEOF
16494 /* end confdefs.h. */
16495 $ac_includes_default
16496 #include <$ac_header>
16497 _ACEOF
16498 rm -f conftest.$ac_objext
16499 if { (ac_try="$ac_compile"
16500 case "(($ac_try" in
16501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16502 *) ac_try_echo=$ac_try;;
16503 esac
16504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16505 (eval "$ac_compile") 2>conftest.er1
16506 ac_status=$?
16507 grep -v '^ *+' conftest.er1 >conftest.err
16508 rm -f conftest.er1
16509 cat conftest.err >&5
16510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511 (exit $ac_status); } && {
16512 test -z "$ac_c_werror_flag" ||
16513 test ! -s conftest.err
16514 } && test -s conftest.$ac_objext; then
16515 ac_header_compiler=yes
16516 else
16517 echo "$as_me: failed program was:" >&5
16518 sed 's/^/| /' conftest.$ac_ext >&5
16520 ac_header_compiler=no
16523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16524 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16525 echo "${ECHO_T}$ac_header_compiler" >&6; }
16527 # Is the header present?
16528 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16529 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16530 cat >conftest.$ac_ext <<_ACEOF
16531 /* confdefs.h. */
16532 _ACEOF
16533 cat confdefs.h >>conftest.$ac_ext
16534 cat >>conftest.$ac_ext <<_ACEOF
16535 /* end confdefs.h. */
16536 #include <$ac_header>
16537 _ACEOF
16538 if { (ac_try="$ac_cpp conftest.$ac_ext"
16539 case "(($ac_try" in
16540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16541 *) ac_try_echo=$ac_try;;
16542 esac
16543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16544 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16545 ac_status=$?
16546 grep -v '^ *+' conftest.er1 >conftest.err
16547 rm -f conftest.er1
16548 cat conftest.err >&5
16549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550 (exit $ac_status); } >/dev/null && {
16551 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16552 test ! -s conftest.err
16553 }; then
16554 ac_header_preproc=yes
16555 else
16556 echo "$as_me: failed program was:" >&5
16557 sed 's/^/| /' conftest.$ac_ext >&5
16559 ac_header_preproc=no
16562 rm -f conftest.err conftest.$ac_ext
16563 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16564 echo "${ECHO_T}$ac_header_preproc" >&6; }
16566 # So? What about this header?
16567 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16568 yes:no: )
16569 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16570 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16572 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16573 ac_header_preproc=yes
16575 no:yes:* )
16576 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16577 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16578 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16579 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16580 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16581 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16582 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16583 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16585 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16586 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16587 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16590 esac
16591 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16594 echo $ECHO_N "(cached) $ECHO_C" >&6
16595 else
16596 eval "$as_ac_Header=\$ac_header_preproc"
16598 ac_res=`eval echo '${'$as_ac_Header'}'`
16599 { echo "$as_me:$LINENO: result: $ac_res" >&5
16600 echo "${ECHO_T}$ac_res" >&6; }
16603 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16604 cat >>confdefs.h <<_ACEOF
16605 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16606 _ACEOF
16610 done
16617 for ac_header in $ac_header_list
16619 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16620 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16621 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16623 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16624 echo $ECHO_N "(cached) $ECHO_C" >&6
16626 ac_res=`eval echo '${'$as_ac_Header'}'`
16627 { echo "$as_me:$LINENO: result: $ac_res" >&5
16628 echo "${ECHO_T}$ac_res" >&6; }
16629 else
16630 # Is the header compilable?
16631 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16632 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16633 cat >conftest.$ac_ext <<_ACEOF
16634 /* confdefs.h. */
16635 _ACEOF
16636 cat confdefs.h >>conftest.$ac_ext
16637 cat >>conftest.$ac_ext <<_ACEOF
16638 /* end confdefs.h. */
16639 $ac_includes_default
16640 #include <$ac_header>
16641 _ACEOF
16642 rm -f conftest.$ac_objext
16643 if { (ac_try="$ac_compile"
16644 case "(($ac_try" in
16645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16646 *) ac_try_echo=$ac_try;;
16647 esac
16648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16649 (eval "$ac_compile") 2>conftest.er1
16650 ac_status=$?
16651 grep -v '^ *+' conftest.er1 >conftest.err
16652 rm -f conftest.er1
16653 cat conftest.err >&5
16654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655 (exit $ac_status); } && {
16656 test -z "$ac_c_werror_flag" ||
16657 test ! -s conftest.err
16658 } && test -s conftest.$ac_objext; then
16659 ac_header_compiler=yes
16660 else
16661 echo "$as_me: failed program was:" >&5
16662 sed 's/^/| /' conftest.$ac_ext >&5
16664 ac_header_compiler=no
16667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16668 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16669 echo "${ECHO_T}$ac_header_compiler" >&6; }
16671 # Is the header present?
16672 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16673 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16674 cat >conftest.$ac_ext <<_ACEOF
16675 /* confdefs.h. */
16676 _ACEOF
16677 cat confdefs.h >>conftest.$ac_ext
16678 cat >>conftest.$ac_ext <<_ACEOF
16679 /* end confdefs.h. */
16680 #include <$ac_header>
16681 _ACEOF
16682 if { (ac_try="$ac_cpp conftest.$ac_ext"
16683 case "(($ac_try" in
16684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16685 *) ac_try_echo=$ac_try;;
16686 esac
16687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16689 ac_status=$?
16690 grep -v '^ *+' conftest.er1 >conftest.err
16691 rm -f conftest.er1
16692 cat conftest.err >&5
16693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694 (exit $ac_status); } >/dev/null && {
16695 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16696 test ! -s conftest.err
16697 }; then
16698 ac_header_preproc=yes
16699 else
16700 echo "$as_me: failed program was:" >&5
16701 sed 's/^/| /' conftest.$ac_ext >&5
16703 ac_header_preproc=no
16706 rm -f conftest.err conftest.$ac_ext
16707 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16708 echo "${ECHO_T}$ac_header_preproc" >&6; }
16710 # So? What about this header?
16711 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16712 yes:no: )
16713 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16714 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16716 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16717 ac_header_preproc=yes
16719 no:yes:* )
16720 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16721 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16722 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16723 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16724 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16725 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16726 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16727 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16729 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16730 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16731 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16734 esac
16735 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16738 echo $ECHO_N "(cached) $ECHO_C" >&6
16739 else
16740 eval "$as_ac_Header=\$ac_header_preproc"
16742 ac_res=`eval echo '${'$as_ac_Header'}'`
16743 { echo "$as_me:$LINENO: result: $ac_res" >&5
16744 echo "${ECHO_T}$ac_res" >&6; }
16747 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16748 cat >>confdefs.h <<_ACEOF
16749 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16750 _ACEOF
16754 done
16764 for ac_func in $ac_func_list
16766 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16767 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16768 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16769 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16770 echo $ECHO_N "(cached) $ECHO_C" >&6
16771 else
16772 cat >conftest.$ac_ext <<_ACEOF
16773 /* confdefs.h. */
16774 _ACEOF
16775 cat confdefs.h >>conftest.$ac_ext
16776 cat >>conftest.$ac_ext <<_ACEOF
16777 /* end confdefs.h. */
16778 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16779 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16780 #define $ac_func innocuous_$ac_func
16782 /* System header to define __stub macros and hopefully few prototypes,
16783 which can conflict with char $ac_func (); below.
16784 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16785 <limits.h> exists even on freestanding compilers. */
16787 #ifdef __STDC__
16788 # include <limits.h>
16789 #else
16790 # include <assert.h>
16791 #endif
16793 #undef $ac_func
16795 /* Override any GCC internal prototype to avoid an error.
16796 Use char because int might match the return type of a GCC
16797 builtin and then its argument prototype would still apply. */
16798 #ifdef __cplusplus
16799 extern "C"
16800 #endif
16801 char $ac_func ();
16802 /* The GNU C library defines this for functions which it implements
16803 to always fail with ENOSYS. Some functions are actually named
16804 something starting with __ and the normal name is an alias. */
16805 #if defined __stub_$ac_func || defined __stub___$ac_func
16806 choke me
16807 #endif
16810 main ()
16812 return $ac_func ();
16814 return 0;
16816 _ACEOF
16817 rm -f conftest.$ac_objext conftest$ac_exeext
16818 if { (ac_try="$ac_link"
16819 case "(($ac_try" in
16820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16821 *) ac_try_echo=$ac_try;;
16822 esac
16823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16824 (eval "$ac_link") 2>conftest.er1
16825 ac_status=$?
16826 grep -v '^ *+' conftest.er1 >conftest.err
16827 rm -f conftest.er1
16828 cat conftest.err >&5
16829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16830 (exit $ac_status); } && {
16831 test -z "$ac_c_werror_flag" ||
16832 test ! -s conftest.err
16833 } && test -s conftest$ac_exeext &&
16834 $as_test_x conftest$ac_exeext; then
16835 eval "$as_ac_var=yes"
16836 else
16837 echo "$as_me: failed program was:" >&5
16838 sed 's/^/| /' conftest.$ac_ext >&5
16840 eval "$as_ac_var=no"
16843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16844 conftest$ac_exeext conftest.$ac_ext
16846 ac_res=`eval echo '${'$as_ac_var'}'`
16847 { echo "$as_me:$LINENO: result: $ac_res" >&5
16848 echo "${ECHO_T}$ac_res" >&6; }
16849 if test `eval echo '${'$as_ac_var'}'` = yes; then
16850 cat >>confdefs.h <<_ACEOF
16851 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16852 _ACEOF
16855 done
16873 { echo "$as_me:$LINENO: checking for working mktime" >&5
16874 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16875 if test "${ac_cv_func_working_mktime+set}" = set; then
16876 echo $ECHO_N "(cached) $ECHO_C" >&6
16877 else
16878 if test "$cross_compiling" = yes; then
16879 ac_cv_func_working_mktime=no
16880 else
16881 cat >conftest.$ac_ext <<_ACEOF
16882 /* confdefs.h. */
16883 _ACEOF
16884 cat confdefs.h >>conftest.$ac_ext
16885 cat >>conftest.$ac_ext <<_ACEOF
16886 /* end confdefs.h. */
16887 /* Test program from Paul Eggert and Tony Leneis. */
16888 #ifdef TIME_WITH_SYS_TIME
16889 # include <sys/time.h>
16890 # include <time.h>
16891 #else
16892 # ifdef HAVE_SYS_TIME_H
16893 # include <sys/time.h>
16894 # else
16895 # include <time.h>
16896 # endif
16897 #endif
16899 #include <limits.h>
16900 #include <stdlib.h>
16902 #ifdef HAVE_UNISTD_H
16903 # include <unistd.h>
16904 #endif
16906 #ifndef HAVE_ALARM
16907 # define alarm(X) /* empty */
16908 #endif
16910 /* Work around redefinition to rpl_putenv by other config tests. */
16911 #undef putenv
16913 static time_t time_t_max;
16914 static time_t time_t_min;
16916 /* Values we'll use to set the TZ environment variable. */
16917 static char *tz_strings[] = {
16918 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16919 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16921 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16923 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16924 Based on a problem report from Andreas Jaeger. */
16925 static int
16926 spring_forward_gap ()
16928 /* glibc (up to about 1998-10-07) failed this test. */
16929 struct tm tm;
16931 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16932 instead of "TZ=America/Vancouver" in order to detect the bug even
16933 on systems that don't support the Olson extension, or don't have the
16934 full zoneinfo tables installed. */
16935 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16937 tm.tm_year = 98;
16938 tm.tm_mon = 3;
16939 tm.tm_mday = 5;
16940 tm.tm_hour = 2;
16941 tm.tm_min = 0;
16942 tm.tm_sec = 0;
16943 tm.tm_isdst = -1;
16944 return mktime (&tm) != (time_t) -1;
16947 static int
16948 mktime_test1 (now)
16949 time_t now;
16951 struct tm *lt;
16952 return ! (lt = localtime (&now)) || mktime (lt) == now;
16955 static int
16956 mktime_test (now)
16957 time_t now;
16959 return (mktime_test1 (now)
16960 && mktime_test1 ((time_t) (time_t_max - now))
16961 && mktime_test1 ((time_t) (time_t_min + now)));
16964 static int
16965 irix_6_4_bug ()
16967 /* Based on code from Ariel Faigon. */
16968 struct tm tm;
16969 tm.tm_year = 96;
16970 tm.tm_mon = 3;
16971 tm.tm_mday = 0;
16972 tm.tm_hour = 0;
16973 tm.tm_min = 0;
16974 tm.tm_sec = 0;
16975 tm.tm_isdst = -1;
16976 mktime (&tm);
16977 return tm.tm_mon == 2 && tm.tm_mday == 31;
16980 static int
16981 bigtime_test (j)
16982 int j;
16984 struct tm tm;
16985 time_t now;
16986 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16987 now = mktime (&tm);
16988 if (now != (time_t) -1)
16990 struct tm *lt = localtime (&now);
16991 if (! (lt
16992 && lt->tm_year == tm.tm_year
16993 && lt->tm_mon == tm.tm_mon
16994 && lt->tm_mday == tm.tm_mday
16995 && lt->tm_hour == tm.tm_hour
16996 && lt->tm_min == tm.tm_min
16997 && lt->tm_sec == tm.tm_sec
16998 && lt->tm_yday == tm.tm_yday
16999 && lt->tm_wday == tm.tm_wday
17000 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
17001 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
17002 return 0;
17004 return 1;
17007 static int
17008 year_2050_test ()
17010 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
17011 ignoring leap seconds. */
17012 unsigned long int answer = 2527315200UL;
17014 struct tm tm;
17015 time_t t;
17016 tm.tm_year = 2050 - 1900;
17017 tm.tm_mon = 2 - 1;
17018 tm.tm_mday = 1;
17019 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
17020 tm.tm_isdst = -1;
17022 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17023 instead of "TZ=America/Vancouver" in order to detect the bug even
17024 on systems that don't support the Olson extension, or don't have the
17025 full zoneinfo tables installed. */
17026 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17028 t = mktime (&tm);
17030 /* Check that the result is either a failure, or close enough
17031 to the correct answer that we can assume the discrepancy is
17032 due to leap seconds. */
17033 return (t == (time_t) -1
17034 || (0 < t && answer - 120 <= t && t <= answer + 120));
17038 main ()
17040 time_t t, delta;
17041 int i, j;
17043 /* This test makes some buggy mktime implementations loop.
17044 Give up after 60 seconds; a mktime slower than that
17045 isn't worth using anyway. */
17046 alarm (60);
17048 for (;;)
17050 t = (time_t_max << 1) + 1;
17051 if (t <= time_t_max)
17052 break;
17053 time_t_max = t;
17055 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
17057 delta = time_t_max / 997; /* a suitable prime number */
17058 for (i = 0; i < N_STRINGS; i++)
17060 if (tz_strings[i])
17061 putenv (tz_strings[i]);
17063 for (t = 0; t <= time_t_max - delta; t += delta)
17064 if (! mktime_test (t))
17065 return 1;
17066 if (! (mktime_test ((time_t) 1)
17067 && mktime_test ((time_t) (60 * 60))
17068 && mktime_test ((time_t) (60 * 60 * 24))))
17069 return 1;
17071 for (j = 1; ; j <<= 1)
17072 if (! bigtime_test (j))
17073 return 1;
17074 else if (INT_MAX / 2 < j)
17075 break;
17076 if (! bigtime_test (INT_MAX))
17077 return 1;
17079 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
17081 _ACEOF
17082 rm -f conftest$ac_exeext
17083 if { (ac_try="$ac_link"
17084 case "(($ac_try" in
17085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17086 *) ac_try_echo=$ac_try;;
17087 esac
17088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17089 (eval "$ac_link") 2>&5
17090 ac_status=$?
17091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17093 { (case "(($ac_try" in
17094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17095 *) ac_try_echo=$ac_try;;
17096 esac
17097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17098 (eval "$ac_try") 2>&5
17099 ac_status=$?
17100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101 (exit $ac_status); }; }; then
17102 ac_cv_func_working_mktime=yes
17103 else
17104 echo "$as_me: program exited with status $ac_status" >&5
17105 echo "$as_me: failed program was:" >&5
17106 sed 's/^/| /' conftest.$ac_ext >&5
17108 ( exit $ac_status )
17109 ac_cv_func_working_mktime=no
17111 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17116 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
17117 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
17118 if test $ac_cv_func_working_mktime = no; then
17119 case " $LIBOBJS " in
17120 *" mktime.$ac_objext "* ) ;;
17121 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
17123 esac
17127 if test "$ac_cv_func_working_mktime" = no; then
17129 cat >>confdefs.h <<\_ACEOF
17130 #define BROKEN_MKTIME 1
17131 _ACEOF
17135 ac_have_func=no # yes means we've found a way to get the load average.
17137 # Make sure getloadavg.c is where it belongs, at configure-time.
17138 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
17139 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
17140 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
17141 { (exit 1); exit 1; }; }
17143 ac_save_LIBS=$LIBS
17145 # Check for getloadavg, but be sure not to touch the cache variable.
17146 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
17147 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
17148 if test "${ac_cv_func_getloadavg+set}" = set; then
17149 echo $ECHO_N "(cached) $ECHO_C" >&6
17150 else
17151 cat >conftest.$ac_ext <<_ACEOF
17152 /* confdefs.h. */
17153 _ACEOF
17154 cat confdefs.h >>conftest.$ac_ext
17155 cat >>conftest.$ac_ext <<_ACEOF
17156 /* end confdefs.h. */
17157 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
17158 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17159 #define getloadavg innocuous_getloadavg
17161 /* System header to define __stub macros and hopefully few prototypes,
17162 which can conflict with char getloadavg (); below.
17163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17164 <limits.h> exists even on freestanding compilers. */
17166 #ifdef __STDC__
17167 # include <limits.h>
17168 #else
17169 # include <assert.h>
17170 #endif
17172 #undef getloadavg
17174 /* Override any GCC internal prototype to avoid an error.
17175 Use char because int might match the return type of a GCC
17176 builtin and then its argument prototype would still apply. */
17177 #ifdef __cplusplus
17178 extern "C"
17179 #endif
17180 char getloadavg ();
17181 /* The GNU C library defines this for functions which it implements
17182 to always fail with ENOSYS. Some functions are actually named
17183 something starting with __ and the normal name is an alias. */
17184 #if defined __stub_getloadavg || defined __stub___getloadavg
17185 choke me
17186 #endif
17189 main ()
17191 return getloadavg ();
17193 return 0;
17195 _ACEOF
17196 rm -f conftest.$ac_objext conftest$ac_exeext
17197 if { (ac_try="$ac_link"
17198 case "(($ac_try" in
17199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17200 *) ac_try_echo=$ac_try;;
17201 esac
17202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17203 (eval "$ac_link") 2>conftest.er1
17204 ac_status=$?
17205 grep -v '^ *+' conftest.er1 >conftest.err
17206 rm -f conftest.er1
17207 cat conftest.err >&5
17208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); } && {
17210 test -z "$ac_c_werror_flag" ||
17211 test ! -s conftest.err
17212 } && test -s conftest$ac_exeext &&
17213 $as_test_x conftest$ac_exeext; then
17214 ac_cv_func_getloadavg=yes
17215 else
17216 echo "$as_me: failed program was:" >&5
17217 sed 's/^/| /' conftest.$ac_ext >&5
17219 ac_cv_func_getloadavg=no
17222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17223 conftest$ac_exeext conftest.$ac_ext
17225 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
17226 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
17227 if test $ac_cv_func_getloadavg = yes; then
17228 exit 0
17229 else
17230 exit 1
17232 ) && ac_have_func=yes
17234 # On HPUX9, an unprivileged user can get load averages through this function.
17236 for ac_func in pstat_getdynamic
17238 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17239 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17240 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17241 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17242 echo $ECHO_N "(cached) $ECHO_C" >&6
17243 else
17244 cat >conftest.$ac_ext <<_ACEOF
17245 /* confdefs.h. */
17246 _ACEOF
17247 cat confdefs.h >>conftest.$ac_ext
17248 cat >>conftest.$ac_ext <<_ACEOF
17249 /* end confdefs.h. */
17250 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17252 #define $ac_func innocuous_$ac_func
17254 /* System header to define __stub macros and hopefully few prototypes,
17255 which can conflict with char $ac_func (); below.
17256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17257 <limits.h> exists even on freestanding compilers. */
17259 #ifdef __STDC__
17260 # include <limits.h>
17261 #else
17262 # include <assert.h>
17263 #endif
17265 #undef $ac_func
17267 /* Override any GCC internal prototype to avoid an error.
17268 Use char because int might match the return type of a GCC
17269 builtin and then its argument prototype would still apply. */
17270 #ifdef __cplusplus
17271 extern "C"
17272 #endif
17273 char $ac_func ();
17274 /* The GNU C library defines this for functions which it implements
17275 to always fail with ENOSYS. Some functions are actually named
17276 something starting with __ and the normal name is an alias. */
17277 #if defined __stub_$ac_func || defined __stub___$ac_func
17278 choke me
17279 #endif
17282 main ()
17284 return $ac_func ();
17286 return 0;
17288 _ACEOF
17289 rm -f conftest.$ac_objext conftest$ac_exeext
17290 if { (ac_try="$ac_link"
17291 case "(($ac_try" in
17292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17293 *) ac_try_echo=$ac_try;;
17294 esac
17295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17296 (eval "$ac_link") 2>conftest.er1
17297 ac_status=$?
17298 grep -v '^ *+' conftest.er1 >conftest.err
17299 rm -f conftest.er1
17300 cat conftest.err >&5
17301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302 (exit $ac_status); } && {
17303 test -z "$ac_c_werror_flag" ||
17304 test ! -s conftest.err
17305 } && test -s conftest$ac_exeext &&
17306 $as_test_x conftest$ac_exeext; then
17307 eval "$as_ac_var=yes"
17308 else
17309 echo "$as_me: failed program was:" >&5
17310 sed 's/^/| /' conftest.$ac_ext >&5
17312 eval "$as_ac_var=no"
17315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17316 conftest$ac_exeext conftest.$ac_ext
17318 ac_res=`eval echo '${'$as_ac_var'}'`
17319 { echo "$as_me:$LINENO: result: $ac_res" >&5
17320 echo "${ECHO_T}$ac_res" >&6; }
17321 if test `eval echo '${'$as_ac_var'}'` = yes; then
17322 cat >>confdefs.h <<_ACEOF
17323 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17324 _ACEOF
17327 done
17330 # Solaris has libkstat which does not require root.
17332 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
17333 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
17334 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17335 echo $ECHO_N "(cached) $ECHO_C" >&6
17336 else
17337 ac_check_lib_save_LIBS=$LIBS
17338 LIBS="-lkstat $LIBS"
17339 cat >conftest.$ac_ext <<_ACEOF
17340 /* confdefs.h. */
17341 _ACEOF
17342 cat confdefs.h >>conftest.$ac_ext
17343 cat >>conftest.$ac_ext <<_ACEOF
17344 /* end confdefs.h. */
17346 /* Override any GCC internal prototype to avoid an error.
17347 Use char because int might match the return type of a GCC
17348 builtin and then its argument prototype would still apply. */
17349 #ifdef __cplusplus
17350 extern "C"
17351 #endif
17352 char kstat_open ();
17354 main ()
17356 return kstat_open ();
17358 return 0;
17360 _ACEOF
17361 rm -f conftest.$ac_objext conftest$ac_exeext
17362 if { (ac_try="$ac_link"
17363 case "(($ac_try" in
17364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17365 *) ac_try_echo=$ac_try;;
17366 esac
17367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17368 (eval "$ac_link") 2>conftest.er1
17369 ac_status=$?
17370 grep -v '^ *+' conftest.er1 >conftest.err
17371 rm -f conftest.er1
17372 cat conftest.err >&5
17373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374 (exit $ac_status); } && {
17375 test -z "$ac_c_werror_flag" ||
17376 test ! -s conftest.err
17377 } && test -s conftest$ac_exeext &&
17378 $as_test_x conftest$ac_exeext; then
17379 ac_cv_lib_kstat_kstat_open=yes
17380 else
17381 echo "$as_me: failed program was:" >&5
17382 sed 's/^/| /' conftest.$ac_ext >&5
17384 ac_cv_lib_kstat_kstat_open=no
17387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17388 conftest$ac_exeext conftest.$ac_ext
17389 LIBS=$ac_check_lib_save_LIBS
17391 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
17392 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17393 if test $ac_cv_lib_kstat_kstat_open = yes; then
17394 cat >>confdefs.h <<_ACEOF
17395 #define HAVE_LIBKSTAT 1
17396 _ACEOF
17398 LIBS="-lkstat $LIBS"
17402 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17404 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17405 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17406 # to get the right answer into the cache.
17407 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17408 if test $ac_have_func = no; then
17409 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17410 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
17411 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17412 echo $ECHO_N "(cached) $ECHO_C" >&6
17413 else
17414 ac_check_lib_save_LIBS=$LIBS
17415 LIBS="-lelf $LIBS"
17416 cat >conftest.$ac_ext <<_ACEOF
17417 /* confdefs.h. */
17418 _ACEOF
17419 cat confdefs.h >>conftest.$ac_ext
17420 cat >>conftest.$ac_ext <<_ACEOF
17421 /* end confdefs.h. */
17423 /* Override any GCC internal prototype to avoid an error.
17424 Use char because int might match the return type of a GCC
17425 builtin and then its argument prototype would still apply. */
17426 #ifdef __cplusplus
17427 extern "C"
17428 #endif
17429 char elf_begin ();
17431 main ()
17433 return elf_begin ();
17435 return 0;
17437 _ACEOF
17438 rm -f conftest.$ac_objext conftest$ac_exeext
17439 if { (ac_try="$ac_link"
17440 case "(($ac_try" in
17441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17442 *) ac_try_echo=$ac_try;;
17443 esac
17444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17445 (eval "$ac_link") 2>conftest.er1
17446 ac_status=$?
17447 grep -v '^ *+' conftest.er1 >conftest.err
17448 rm -f conftest.er1
17449 cat conftest.err >&5
17450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451 (exit $ac_status); } && {
17452 test -z "$ac_c_werror_flag" ||
17453 test ! -s conftest.err
17454 } && test -s conftest$ac_exeext &&
17455 $as_test_x conftest$ac_exeext; then
17456 ac_cv_lib_elf_elf_begin=yes
17457 else
17458 echo "$as_me: failed program was:" >&5
17459 sed 's/^/| /' conftest.$ac_ext >&5
17461 ac_cv_lib_elf_elf_begin=no
17464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17465 conftest$ac_exeext conftest.$ac_ext
17466 LIBS=$ac_check_lib_save_LIBS
17468 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
17469 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17470 if test $ac_cv_lib_elf_elf_begin = yes; then
17471 LIBS="-lelf $LIBS"
17475 if test $ac_have_func = no; then
17476 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17477 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
17478 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17479 echo $ECHO_N "(cached) $ECHO_C" >&6
17480 else
17481 ac_check_lib_save_LIBS=$LIBS
17482 LIBS="-lkvm $LIBS"
17483 cat >conftest.$ac_ext <<_ACEOF
17484 /* confdefs.h. */
17485 _ACEOF
17486 cat confdefs.h >>conftest.$ac_ext
17487 cat >>conftest.$ac_ext <<_ACEOF
17488 /* end confdefs.h. */
17490 /* Override any GCC internal prototype to avoid an error.
17491 Use char because int might match the return type of a GCC
17492 builtin and then its argument prototype would still apply. */
17493 #ifdef __cplusplus
17494 extern "C"
17495 #endif
17496 char kvm_open ();
17498 main ()
17500 return kvm_open ();
17502 return 0;
17504 _ACEOF
17505 rm -f conftest.$ac_objext conftest$ac_exeext
17506 if { (ac_try="$ac_link"
17507 case "(($ac_try" in
17508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17509 *) ac_try_echo=$ac_try;;
17510 esac
17511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17512 (eval "$ac_link") 2>conftest.er1
17513 ac_status=$?
17514 grep -v '^ *+' conftest.er1 >conftest.err
17515 rm -f conftest.er1
17516 cat conftest.err >&5
17517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518 (exit $ac_status); } && {
17519 test -z "$ac_c_werror_flag" ||
17520 test ! -s conftest.err
17521 } && test -s conftest$ac_exeext &&
17522 $as_test_x conftest$ac_exeext; then
17523 ac_cv_lib_kvm_kvm_open=yes
17524 else
17525 echo "$as_me: failed program was:" >&5
17526 sed 's/^/| /' conftest.$ac_ext >&5
17528 ac_cv_lib_kvm_kvm_open=no
17531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17532 conftest$ac_exeext conftest.$ac_ext
17533 LIBS=$ac_check_lib_save_LIBS
17535 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
17536 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17537 if test $ac_cv_lib_kvm_kvm_open = yes; then
17538 LIBS="-lkvm $LIBS"
17541 # Check for the 4.4BSD definition of getloadavg.
17542 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
17543 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
17544 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17545 echo $ECHO_N "(cached) $ECHO_C" >&6
17546 else
17547 ac_check_lib_save_LIBS=$LIBS
17548 LIBS="-lutil $LIBS"
17549 cat >conftest.$ac_ext <<_ACEOF
17550 /* confdefs.h. */
17551 _ACEOF
17552 cat confdefs.h >>conftest.$ac_ext
17553 cat >>conftest.$ac_ext <<_ACEOF
17554 /* end confdefs.h. */
17556 /* Override any GCC internal prototype to avoid an error.
17557 Use char because int might match the return type of a GCC
17558 builtin and then its argument prototype would still apply. */
17559 #ifdef __cplusplus
17560 extern "C"
17561 #endif
17562 char getloadavg ();
17564 main ()
17566 return getloadavg ();
17568 return 0;
17570 _ACEOF
17571 rm -f conftest.$ac_objext conftest$ac_exeext
17572 if { (ac_try="$ac_link"
17573 case "(($ac_try" in
17574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17575 *) ac_try_echo=$ac_try;;
17576 esac
17577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17578 (eval "$ac_link") 2>conftest.er1
17579 ac_status=$?
17580 grep -v '^ *+' conftest.er1 >conftest.err
17581 rm -f conftest.er1
17582 cat conftest.err >&5
17583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584 (exit $ac_status); } && {
17585 test -z "$ac_c_werror_flag" ||
17586 test ! -s conftest.err
17587 } && test -s conftest$ac_exeext &&
17588 $as_test_x conftest$ac_exeext; then
17589 ac_cv_lib_util_getloadavg=yes
17590 else
17591 echo "$as_me: failed program was:" >&5
17592 sed 's/^/| /' conftest.$ac_ext >&5
17594 ac_cv_lib_util_getloadavg=no
17597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17598 conftest$ac_exeext conftest.$ac_ext
17599 LIBS=$ac_check_lib_save_LIBS
17601 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
17602 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17603 if test $ac_cv_lib_util_getloadavg = yes; then
17604 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17609 if test $ac_have_func = no; then
17610 # There is a commonly available library for RS/6000 AIX.
17611 # Since it is not a standard part of AIX, it might be installed locally.
17612 ac_getloadavg_LIBS=$LIBS
17613 LIBS="-L/usr/local/lib $LIBS"
17614 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
17615 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
17616 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17617 echo $ECHO_N "(cached) $ECHO_C" >&6
17618 else
17619 ac_check_lib_save_LIBS=$LIBS
17620 LIBS="-lgetloadavg $LIBS"
17621 cat >conftest.$ac_ext <<_ACEOF
17622 /* confdefs.h. */
17623 _ACEOF
17624 cat confdefs.h >>conftest.$ac_ext
17625 cat >>conftest.$ac_ext <<_ACEOF
17626 /* end confdefs.h. */
17628 /* Override any GCC internal prototype to avoid an error.
17629 Use char because int might match the return type of a GCC
17630 builtin and then its argument prototype would still apply. */
17631 #ifdef __cplusplus
17632 extern "C"
17633 #endif
17634 char getloadavg ();
17636 main ()
17638 return getloadavg ();
17640 return 0;
17642 _ACEOF
17643 rm -f conftest.$ac_objext conftest$ac_exeext
17644 if { (ac_try="$ac_link"
17645 case "(($ac_try" in
17646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17647 *) ac_try_echo=$ac_try;;
17648 esac
17649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17650 (eval "$ac_link") 2>conftest.er1
17651 ac_status=$?
17652 grep -v '^ *+' conftest.er1 >conftest.err
17653 rm -f conftest.er1
17654 cat conftest.err >&5
17655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656 (exit $ac_status); } && {
17657 test -z "$ac_c_werror_flag" ||
17658 test ! -s conftest.err
17659 } && test -s conftest$ac_exeext &&
17660 $as_test_x conftest$ac_exeext; then
17661 ac_cv_lib_getloadavg_getloadavg=yes
17662 else
17663 echo "$as_me: failed program was:" >&5
17664 sed 's/^/| /' conftest.$ac_ext >&5
17666 ac_cv_lib_getloadavg_getloadavg=no
17669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17670 conftest$ac_exeext conftest.$ac_ext
17671 LIBS=$ac_check_lib_save_LIBS
17673 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
17674 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17675 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17676 LIBS="-lgetloadavg $LIBS"
17677 else
17678 LIBS=$ac_getloadavg_LIBS
17683 # Make sure it is really in the library, if we think we found it,
17684 # otherwise set up the replacement function.
17686 for ac_func in getloadavg
17688 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17689 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17690 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17691 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17692 echo $ECHO_N "(cached) $ECHO_C" >&6
17693 else
17694 cat >conftest.$ac_ext <<_ACEOF
17695 /* confdefs.h. */
17696 _ACEOF
17697 cat confdefs.h >>conftest.$ac_ext
17698 cat >>conftest.$ac_ext <<_ACEOF
17699 /* end confdefs.h. */
17700 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17701 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17702 #define $ac_func innocuous_$ac_func
17704 /* System header to define __stub macros and hopefully few prototypes,
17705 which can conflict with char $ac_func (); below.
17706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17707 <limits.h> exists even on freestanding compilers. */
17709 #ifdef __STDC__
17710 # include <limits.h>
17711 #else
17712 # include <assert.h>
17713 #endif
17715 #undef $ac_func
17717 /* Override any GCC internal prototype to avoid an error.
17718 Use char because int might match the return type of a GCC
17719 builtin and then its argument prototype would still apply. */
17720 #ifdef __cplusplus
17721 extern "C"
17722 #endif
17723 char $ac_func ();
17724 /* The GNU C library defines this for functions which it implements
17725 to always fail with ENOSYS. Some functions are actually named
17726 something starting with __ and the normal name is an alias. */
17727 #if defined __stub_$ac_func || defined __stub___$ac_func
17728 choke me
17729 #endif
17732 main ()
17734 return $ac_func ();
17736 return 0;
17738 _ACEOF
17739 rm -f conftest.$ac_objext conftest$ac_exeext
17740 if { (ac_try="$ac_link"
17741 case "(($ac_try" in
17742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17743 *) ac_try_echo=$ac_try;;
17744 esac
17745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17746 (eval "$ac_link") 2>conftest.er1
17747 ac_status=$?
17748 grep -v '^ *+' conftest.er1 >conftest.err
17749 rm -f conftest.er1
17750 cat conftest.err >&5
17751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752 (exit $ac_status); } && {
17753 test -z "$ac_c_werror_flag" ||
17754 test ! -s conftest.err
17755 } && test -s conftest$ac_exeext &&
17756 $as_test_x conftest$ac_exeext; then
17757 eval "$as_ac_var=yes"
17758 else
17759 echo "$as_me: failed program was:" >&5
17760 sed 's/^/| /' conftest.$ac_ext >&5
17762 eval "$as_ac_var=no"
17765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17766 conftest$ac_exeext conftest.$ac_ext
17768 ac_res=`eval echo '${'$as_ac_var'}'`
17769 { echo "$as_me:$LINENO: result: $ac_res" >&5
17770 echo "${ECHO_T}$ac_res" >&6; }
17771 if test `eval echo '${'$as_ac_var'}'` = yes; then
17772 cat >>confdefs.h <<_ACEOF
17773 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17774 _ACEOF
17776 else
17777 case " $LIBOBJS " in
17778 *" getloadavg.$ac_objext "* ) ;;
17779 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17781 esac
17784 cat >>confdefs.h <<\_ACEOF
17785 #define C_GETLOADAVG 1
17786 _ACEOF
17788 # Figure out what our getloadavg.c needs.
17789 ac_have_func=no
17790 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17791 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17792 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17793 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17794 echo $ECHO_N "(cached) $ECHO_C" >&6
17796 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17797 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17798 else
17799 # Is the header compilable?
17800 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17801 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17802 cat >conftest.$ac_ext <<_ACEOF
17803 /* confdefs.h. */
17804 _ACEOF
17805 cat confdefs.h >>conftest.$ac_ext
17806 cat >>conftest.$ac_ext <<_ACEOF
17807 /* end confdefs.h. */
17808 $ac_includes_default
17809 #include <sys/dg_sys_info.h>
17810 _ACEOF
17811 rm -f conftest.$ac_objext
17812 if { (ac_try="$ac_compile"
17813 case "(($ac_try" in
17814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17815 *) ac_try_echo=$ac_try;;
17816 esac
17817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17818 (eval "$ac_compile") 2>conftest.er1
17819 ac_status=$?
17820 grep -v '^ *+' conftest.er1 >conftest.err
17821 rm -f conftest.er1
17822 cat conftest.err >&5
17823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824 (exit $ac_status); } && {
17825 test -z "$ac_c_werror_flag" ||
17826 test ! -s conftest.err
17827 } && test -s conftest.$ac_objext; then
17828 ac_header_compiler=yes
17829 else
17830 echo "$as_me: failed program was:" >&5
17831 sed 's/^/| /' conftest.$ac_ext >&5
17833 ac_header_compiler=no
17836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17837 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17838 echo "${ECHO_T}$ac_header_compiler" >&6; }
17840 # Is the header present?
17841 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17842 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17843 cat >conftest.$ac_ext <<_ACEOF
17844 /* confdefs.h. */
17845 _ACEOF
17846 cat confdefs.h >>conftest.$ac_ext
17847 cat >>conftest.$ac_ext <<_ACEOF
17848 /* end confdefs.h. */
17849 #include <sys/dg_sys_info.h>
17850 _ACEOF
17851 if { (ac_try="$ac_cpp conftest.$ac_ext"
17852 case "(($ac_try" in
17853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17854 *) ac_try_echo=$ac_try;;
17855 esac
17856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17857 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17858 ac_status=$?
17859 grep -v '^ *+' conftest.er1 >conftest.err
17860 rm -f conftest.er1
17861 cat conftest.err >&5
17862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17863 (exit $ac_status); } >/dev/null && {
17864 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17865 test ! -s conftest.err
17866 }; then
17867 ac_header_preproc=yes
17868 else
17869 echo "$as_me: failed program was:" >&5
17870 sed 's/^/| /' conftest.$ac_ext >&5
17872 ac_header_preproc=no
17875 rm -f conftest.err conftest.$ac_ext
17876 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17877 echo "${ECHO_T}$ac_header_preproc" >&6; }
17879 # So? What about this header?
17880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17881 yes:no: )
17882 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17883 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17884 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17885 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17886 ac_header_preproc=yes
17888 no:yes:* )
17889 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17890 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17891 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17892 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17893 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17894 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17895 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17896 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17897 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17898 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17899 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17900 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17903 esac
17904 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17905 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17906 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17907 echo $ECHO_N "(cached) $ECHO_C" >&6
17908 else
17909 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17911 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17912 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17915 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17916 ac_have_func=yes
17918 cat >>confdefs.h <<\_ACEOF
17919 #define DGUX 1
17920 _ACEOF
17923 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17924 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17925 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17926 echo $ECHO_N "(cached) $ECHO_C" >&6
17927 else
17928 ac_check_lib_save_LIBS=$LIBS
17929 LIBS="-ldgc $LIBS"
17930 cat >conftest.$ac_ext <<_ACEOF
17931 /* confdefs.h. */
17932 _ACEOF
17933 cat confdefs.h >>conftest.$ac_ext
17934 cat >>conftest.$ac_ext <<_ACEOF
17935 /* end confdefs.h. */
17937 /* Override any GCC internal prototype to avoid an error.
17938 Use char because int might match the return type of a GCC
17939 builtin and then its argument prototype would still apply. */
17940 #ifdef __cplusplus
17941 extern "C"
17942 #endif
17943 char dg_sys_info ();
17945 main ()
17947 return dg_sys_info ();
17949 return 0;
17951 _ACEOF
17952 rm -f conftest.$ac_objext conftest$ac_exeext
17953 if { (ac_try="$ac_link"
17954 case "(($ac_try" in
17955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17956 *) ac_try_echo=$ac_try;;
17957 esac
17958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17959 (eval "$ac_link") 2>conftest.er1
17960 ac_status=$?
17961 grep -v '^ *+' conftest.er1 >conftest.err
17962 rm -f conftest.er1
17963 cat conftest.err >&5
17964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17965 (exit $ac_status); } && {
17966 test -z "$ac_c_werror_flag" ||
17967 test ! -s conftest.err
17968 } && test -s conftest$ac_exeext &&
17969 $as_test_x conftest$ac_exeext; then
17970 ac_cv_lib_dgc_dg_sys_info=yes
17971 else
17972 echo "$as_me: failed program was:" >&5
17973 sed 's/^/| /' conftest.$ac_ext >&5
17975 ac_cv_lib_dgc_dg_sys_info=no
17978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17979 conftest$ac_exeext conftest.$ac_ext
17980 LIBS=$ac_check_lib_save_LIBS
17982 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17983 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17984 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17985 cat >>confdefs.h <<_ACEOF
17986 #define HAVE_LIBDGC 1
17987 _ACEOF
17989 LIBS="-ldgc $LIBS"
17997 if test "${ac_cv_header_locale_h+set}" = set; then
17998 { echo "$as_me:$LINENO: checking for locale.h" >&5
17999 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
18000 if test "${ac_cv_header_locale_h+set}" = set; then
18001 echo $ECHO_N "(cached) $ECHO_C" >&6
18003 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
18004 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
18005 else
18006 # Is the header compilable?
18007 { echo "$as_me:$LINENO: checking locale.h usability" >&5
18008 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
18009 cat >conftest.$ac_ext <<_ACEOF
18010 /* confdefs.h. */
18011 _ACEOF
18012 cat confdefs.h >>conftest.$ac_ext
18013 cat >>conftest.$ac_ext <<_ACEOF
18014 /* end confdefs.h. */
18015 $ac_includes_default
18016 #include <locale.h>
18017 _ACEOF
18018 rm -f conftest.$ac_objext
18019 if { (ac_try="$ac_compile"
18020 case "(($ac_try" in
18021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18022 *) ac_try_echo=$ac_try;;
18023 esac
18024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18025 (eval "$ac_compile") 2>conftest.er1
18026 ac_status=$?
18027 grep -v '^ *+' conftest.er1 >conftest.err
18028 rm -f conftest.er1
18029 cat conftest.err >&5
18030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18031 (exit $ac_status); } && {
18032 test -z "$ac_c_werror_flag" ||
18033 test ! -s conftest.err
18034 } && test -s conftest.$ac_objext; then
18035 ac_header_compiler=yes
18036 else
18037 echo "$as_me: failed program was:" >&5
18038 sed 's/^/| /' conftest.$ac_ext >&5
18040 ac_header_compiler=no
18043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18044 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18045 echo "${ECHO_T}$ac_header_compiler" >&6; }
18047 # Is the header present?
18048 { echo "$as_me:$LINENO: checking locale.h presence" >&5
18049 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
18050 cat >conftest.$ac_ext <<_ACEOF
18051 /* confdefs.h. */
18052 _ACEOF
18053 cat confdefs.h >>conftest.$ac_ext
18054 cat >>conftest.$ac_ext <<_ACEOF
18055 /* end confdefs.h. */
18056 #include <locale.h>
18057 _ACEOF
18058 if { (ac_try="$ac_cpp conftest.$ac_ext"
18059 case "(($ac_try" in
18060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18061 *) ac_try_echo=$ac_try;;
18062 esac
18063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18064 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18065 ac_status=$?
18066 grep -v '^ *+' conftest.er1 >conftest.err
18067 rm -f conftest.er1
18068 cat conftest.err >&5
18069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070 (exit $ac_status); } >/dev/null && {
18071 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18072 test ! -s conftest.err
18073 }; then
18074 ac_header_preproc=yes
18075 else
18076 echo "$as_me: failed program was:" >&5
18077 sed 's/^/| /' conftest.$ac_ext >&5
18079 ac_header_preproc=no
18082 rm -f conftest.err conftest.$ac_ext
18083 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18084 echo "${ECHO_T}$ac_header_preproc" >&6; }
18086 # So? What about this header?
18087 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18088 yes:no: )
18089 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
18090 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18091 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
18092 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
18093 ac_header_preproc=yes
18095 no:yes:* )
18096 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
18097 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
18098 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
18099 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
18100 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
18101 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
18102 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
18103 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
18104 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
18105 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
18106 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
18107 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
18110 esac
18111 { echo "$as_me:$LINENO: checking for locale.h" >&5
18112 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
18113 if test "${ac_cv_header_locale_h+set}" = set; then
18114 echo $ECHO_N "(cached) $ECHO_C" >&6
18115 else
18116 ac_cv_header_locale_h=$ac_header_preproc
18118 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
18119 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
18125 for ac_func in setlocale
18127 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18128 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18129 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18130 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18131 echo $ECHO_N "(cached) $ECHO_C" >&6
18132 else
18133 cat >conftest.$ac_ext <<_ACEOF
18134 /* confdefs.h. */
18135 _ACEOF
18136 cat confdefs.h >>conftest.$ac_ext
18137 cat >>conftest.$ac_ext <<_ACEOF
18138 /* end confdefs.h. */
18139 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18140 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18141 #define $ac_func innocuous_$ac_func
18143 /* System header to define __stub macros and hopefully few prototypes,
18144 which can conflict with char $ac_func (); below.
18145 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18146 <limits.h> exists even on freestanding compilers. */
18148 #ifdef __STDC__
18149 # include <limits.h>
18150 #else
18151 # include <assert.h>
18152 #endif
18154 #undef $ac_func
18156 /* Override any GCC internal prototype to avoid an error.
18157 Use char because int might match the return type of a GCC
18158 builtin and then its argument prototype would still apply. */
18159 #ifdef __cplusplus
18160 extern "C"
18161 #endif
18162 char $ac_func ();
18163 /* The GNU C library defines this for functions which it implements
18164 to always fail with ENOSYS. Some functions are actually named
18165 something starting with __ and the normal name is an alias. */
18166 #if defined __stub_$ac_func || defined __stub___$ac_func
18167 choke me
18168 #endif
18171 main ()
18173 return $ac_func ();
18175 return 0;
18177 _ACEOF
18178 rm -f conftest.$ac_objext conftest$ac_exeext
18179 if { (ac_try="$ac_link"
18180 case "(($ac_try" in
18181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18182 *) ac_try_echo=$ac_try;;
18183 esac
18184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18185 (eval "$ac_link") 2>conftest.er1
18186 ac_status=$?
18187 grep -v '^ *+' conftest.er1 >conftest.err
18188 rm -f conftest.er1
18189 cat conftest.err >&5
18190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18191 (exit $ac_status); } && {
18192 test -z "$ac_c_werror_flag" ||
18193 test ! -s conftest.err
18194 } && test -s conftest$ac_exeext &&
18195 $as_test_x conftest$ac_exeext; then
18196 eval "$as_ac_var=yes"
18197 else
18198 echo "$as_me: failed program was:" >&5
18199 sed 's/^/| /' conftest.$ac_ext >&5
18201 eval "$as_ac_var=no"
18204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18205 conftest$ac_exeext conftest.$ac_ext
18207 ac_res=`eval echo '${'$as_ac_var'}'`
18208 { echo "$as_me:$LINENO: result: $ac_res" >&5
18209 echo "${ECHO_T}$ac_res" >&6; }
18210 if test `eval echo '${'$as_ac_var'}'` = yes; then
18211 cat >>confdefs.h <<_ACEOF
18212 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18213 _ACEOF
18216 done
18219 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18220 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
18221 # Irix 4.0.5F has the header but not the library.
18222 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
18223 ac_have_func=yes
18225 cat >>confdefs.h <<\_ACEOF
18226 #define SVR4 1
18227 _ACEOF
18231 if test $ac_have_func = no; then
18232 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18233 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18234 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18235 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18236 echo $ECHO_N "(cached) $ECHO_C" >&6
18238 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18239 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18240 else
18241 # Is the header compilable?
18242 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
18243 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
18244 cat >conftest.$ac_ext <<_ACEOF
18245 /* confdefs.h. */
18246 _ACEOF
18247 cat confdefs.h >>conftest.$ac_ext
18248 cat >>conftest.$ac_ext <<_ACEOF
18249 /* end confdefs.h. */
18250 $ac_includes_default
18251 #include <inq_stats/cpustats.h>
18252 _ACEOF
18253 rm -f conftest.$ac_objext
18254 if { (ac_try="$ac_compile"
18255 case "(($ac_try" in
18256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18257 *) ac_try_echo=$ac_try;;
18258 esac
18259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18260 (eval "$ac_compile") 2>conftest.er1
18261 ac_status=$?
18262 grep -v '^ *+' conftest.er1 >conftest.err
18263 rm -f conftest.er1
18264 cat conftest.err >&5
18265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18266 (exit $ac_status); } && {
18267 test -z "$ac_c_werror_flag" ||
18268 test ! -s conftest.err
18269 } && test -s conftest.$ac_objext; then
18270 ac_header_compiler=yes
18271 else
18272 echo "$as_me: failed program was:" >&5
18273 sed 's/^/| /' conftest.$ac_ext >&5
18275 ac_header_compiler=no
18278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18279 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18280 echo "${ECHO_T}$ac_header_compiler" >&6; }
18282 # Is the header present?
18283 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
18284 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
18285 cat >conftest.$ac_ext <<_ACEOF
18286 /* confdefs.h. */
18287 _ACEOF
18288 cat confdefs.h >>conftest.$ac_ext
18289 cat >>conftest.$ac_ext <<_ACEOF
18290 /* end confdefs.h. */
18291 #include <inq_stats/cpustats.h>
18292 _ACEOF
18293 if { (ac_try="$ac_cpp conftest.$ac_ext"
18294 case "(($ac_try" in
18295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18296 *) ac_try_echo=$ac_try;;
18297 esac
18298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18299 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18300 ac_status=$?
18301 grep -v '^ *+' conftest.er1 >conftest.err
18302 rm -f conftest.er1
18303 cat conftest.err >&5
18304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305 (exit $ac_status); } >/dev/null && {
18306 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18307 test ! -s conftest.err
18308 }; then
18309 ac_header_preproc=yes
18310 else
18311 echo "$as_me: failed program was:" >&5
18312 sed 's/^/| /' conftest.$ac_ext >&5
18314 ac_header_preproc=no
18317 rm -f conftest.err conftest.$ac_ext
18318 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18319 echo "${ECHO_T}$ac_header_preproc" >&6; }
18321 # So? What about this header?
18322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18323 yes:no: )
18324 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18325 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18326 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
18327 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
18328 ac_header_preproc=yes
18330 no:yes:* )
18331 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
18332 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
18333 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
18334 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
18335 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
18336 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
18337 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18338 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18339 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
18340 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
18341 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
18342 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
18345 esac
18346 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18347 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18348 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18349 echo $ECHO_N "(cached) $ECHO_C" >&6
18350 else
18351 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18353 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18354 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18357 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18358 ac_have_func=yes
18360 cat >>confdefs.h <<\_ACEOF
18361 #define UMAX 1
18362 _ACEOF
18365 cat >>confdefs.h <<\_ACEOF
18366 #define UMAX4_3 1
18367 _ACEOF
18374 if test $ac_have_func = no; then
18375 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18376 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18377 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18378 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18379 echo $ECHO_N "(cached) $ECHO_C" >&6
18381 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18382 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18383 else
18384 # Is the header compilable?
18385 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
18386 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
18387 cat >conftest.$ac_ext <<_ACEOF
18388 /* confdefs.h. */
18389 _ACEOF
18390 cat confdefs.h >>conftest.$ac_ext
18391 cat >>conftest.$ac_ext <<_ACEOF
18392 /* end confdefs.h. */
18393 $ac_includes_default
18394 #include <sys/cpustats.h>
18395 _ACEOF
18396 rm -f conftest.$ac_objext
18397 if { (ac_try="$ac_compile"
18398 case "(($ac_try" in
18399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18400 *) ac_try_echo=$ac_try;;
18401 esac
18402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18403 (eval "$ac_compile") 2>conftest.er1
18404 ac_status=$?
18405 grep -v '^ *+' conftest.er1 >conftest.err
18406 rm -f conftest.er1
18407 cat conftest.err >&5
18408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18409 (exit $ac_status); } && {
18410 test -z "$ac_c_werror_flag" ||
18411 test ! -s conftest.err
18412 } && test -s conftest.$ac_objext; then
18413 ac_header_compiler=yes
18414 else
18415 echo "$as_me: failed program was:" >&5
18416 sed 's/^/| /' conftest.$ac_ext >&5
18418 ac_header_compiler=no
18421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18422 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18423 echo "${ECHO_T}$ac_header_compiler" >&6; }
18425 # Is the header present?
18426 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
18427 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
18428 cat >conftest.$ac_ext <<_ACEOF
18429 /* confdefs.h. */
18430 _ACEOF
18431 cat confdefs.h >>conftest.$ac_ext
18432 cat >>conftest.$ac_ext <<_ACEOF
18433 /* end confdefs.h. */
18434 #include <sys/cpustats.h>
18435 _ACEOF
18436 if { (ac_try="$ac_cpp conftest.$ac_ext"
18437 case "(($ac_try" in
18438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18439 *) ac_try_echo=$ac_try;;
18440 esac
18441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18442 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18443 ac_status=$?
18444 grep -v '^ *+' conftest.er1 >conftest.err
18445 rm -f conftest.er1
18446 cat conftest.err >&5
18447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448 (exit $ac_status); } >/dev/null && {
18449 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18450 test ! -s conftest.err
18451 }; then
18452 ac_header_preproc=yes
18453 else
18454 echo "$as_me: failed program was:" >&5
18455 sed 's/^/| /' conftest.$ac_ext >&5
18457 ac_header_preproc=no
18460 rm -f conftest.err conftest.$ac_ext
18461 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18462 echo "${ECHO_T}$ac_header_preproc" >&6; }
18464 # So? What about this header?
18465 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18466 yes:no: )
18467 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18468 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18469 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
18470 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
18471 ac_header_preproc=yes
18473 no:yes:* )
18474 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
18475 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
18476 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
18477 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
18478 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
18479 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
18480 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18481 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18482 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
18483 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
18484 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
18485 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
18488 esac
18489 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18490 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18491 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18492 echo $ECHO_N "(cached) $ECHO_C" >&6
18493 else
18494 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18496 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18497 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18500 if test $ac_cv_header_sys_cpustats_h = yes; then
18501 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18502 #define UMAX 1
18503 _ACEOF
18510 if test $ac_have_func = no; then
18512 for ac_header in mach/mach.h
18514 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18516 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18519 echo $ECHO_N "(cached) $ECHO_C" >&6
18521 ac_res=`eval echo '${'$as_ac_Header'}'`
18522 { echo "$as_me:$LINENO: result: $ac_res" >&5
18523 echo "${ECHO_T}$ac_res" >&6; }
18524 else
18525 # Is the header compilable?
18526 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18527 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18528 cat >conftest.$ac_ext <<_ACEOF
18529 /* confdefs.h. */
18530 _ACEOF
18531 cat confdefs.h >>conftest.$ac_ext
18532 cat >>conftest.$ac_ext <<_ACEOF
18533 /* end confdefs.h. */
18534 $ac_includes_default
18535 #include <$ac_header>
18536 _ACEOF
18537 rm -f conftest.$ac_objext
18538 if { (ac_try="$ac_compile"
18539 case "(($ac_try" in
18540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18541 *) ac_try_echo=$ac_try;;
18542 esac
18543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18544 (eval "$ac_compile") 2>conftest.er1
18545 ac_status=$?
18546 grep -v '^ *+' conftest.er1 >conftest.err
18547 rm -f conftest.er1
18548 cat conftest.err >&5
18549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550 (exit $ac_status); } && {
18551 test -z "$ac_c_werror_flag" ||
18552 test ! -s conftest.err
18553 } && test -s conftest.$ac_objext; then
18554 ac_header_compiler=yes
18555 else
18556 echo "$as_me: failed program was:" >&5
18557 sed 's/^/| /' conftest.$ac_ext >&5
18559 ac_header_compiler=no
18562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18563 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18564 echo "${ECHO_T}$ac_header_compiler" >&6; }
18566 # Is the header present?
18567 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18568 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18569 cat >conftest.$ac_ext <<_ACEOF
18570 /* confdefs.h. */
18571 _ACEOF
18572 cat confdefs.h >>conftest.$ac_ext
18573 cat >>conftest.$ac_ext <<_ACEOF
18574 /* end confdefs.h. */
18575 #include <$ac_header>
18576 _ACEOF
18577 if { (ac_try="$ac_cpp conftest.$ac_ext"
18578 case "(($ac_try" in
18579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18580 *) ac_try_echo=$ac_try;;
18581 esac
18582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18583 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18584 ac_status=$?
18585 grep -v '^ *+' conftest.er1 >conftest.err
18586 rm -f conftest.er1
18587 cat conftest.err >&5
18588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18589 (exit $ac_status); } >/dev/null && {
18590 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18591 test ! -s conftest.err
18592 }; then
18593 ac_header_preproc=yes
18594 else
18595 echo "$as_me: failed program was:" >&5
18596 sed 's/^/| /' conftest.$ac_ext >&5
18598 ac_header_preproc=no
18601 rm -f conftest.err conftest.$ac_ext
18602 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18603 echo "${ECHO_T}$ac_header_preproc" >&6; }
18605 # So? What about this header?
18606 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18607 yes:no: )
18608 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18609 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18611 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18612 ac_header_preproc=yes
18614 no:yes:* )
18615 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18616 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18617 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18618 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18619 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18620 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18621 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18622 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18623 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18624 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18625 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18626 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18629 esac
18630 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18631 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18632 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18633 echo $ECHO_N "(cached) $ECHO_C" >&6
18634 else
18635 eval "$as_ac_Header=\$ac_header_preproc"
18637 ac_res=`eval echo '${'$as_ac_Header'}'`
18638 { echo "$as_me:$LINENO: result: $ac_res" >&5
18639 echo "${ECHO_T}$ac_res" >&6; }
18642 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18643 cat >>confdefs.h <<_ACEOF
18644 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18645 _ACEOF
18649 done
18654 for ac_header in nlist.h
18656 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18658 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18661 echo $ECHO_N "(cached) $ECHO_C" >&6
18663 ac_res=`eval echo '${'$as_ac_Header'}'`
18664 { echo "$as_me:$LINENO: result: $ac_res" >&5
18665 echo "${ECHO_T}$ac_res" >&6; }
18666 else
18667 # Is the header compilable?
18668 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18669 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18670 cat >conftest.$ac_ext <<_ACEOF
18671 /* confdefs.h. */
18672 _ACEOF
18673 cat confdefs.h >>conftest.$ac_ext
18674 cat >>conftest.$ac_ext <<_ACEOF
18675 /* end confdefs.h. */
18676 $ac_includes_default
18677 #include <$ac_header>
18678 _ACEOF
18679 rm -f conftest.$ac_objext
18680 if { (ac_try="$ac_compile"
18681 case "(($ac_try" in
18682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18683 *) ac_try_echo=$ac_try;;
18684 esac
18685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18686 (eval "$ac_compile") 2>conftest.er1
18687 ac_status=$?
18688 grep -v '^ *+' conftest.er1 >conftest.err
18689 rm -f conftest.er1
18690 cat conftest.err >&5
18691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692 (exit $ac_status); } && {
18693 test -z "$ac_c_werror_flag" ||
18694 test ! -s conftest.err
18695 } && test -s conftest.$ac_objext; then
18696 ac_header_compiler=yes
18697 else
18698 echo "$as_me: failed program was:" >&5
18699 sed 's/^/| /' conftest.$ac_ext >&5
18701 ac_header_compiler=no
18704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18705 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18706 echo "${ECHO_T}$ac_header_compiler" >&6; }
18708 # Is the header present?
18709 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18710 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18711 cat >conftest.$ac_ext <<_ACEOF
18712 /* confdefs.h. */
18713 _ACEOF
18714 cat confdefs.h >>conftest.$ac_ext
18715 cat >>conftest.$ac_ext <<_ACEOF
18716 /* end confdefs.h. */
18717 #include <$ac_header>
18718 _ACEOF
18719 if { (ac_try="$ac_cpp conftest.$ac_ext"
18720 case "(($ac_try" in
18721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18722 *) ac_try_echo=$ac_try;;
18723 esac
18724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18726 ac_status=$?
18727 grep -v '^ *+' conftest.er1 >conftest.err
18728 rm -f conftest.er1
18729 cat conftest.err >&5
18730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731 (exit $ac_status); } >/dev/null && {
18732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18733 test ! -s conftest.err
18734 }; then
18735 ac_header_preproc=yes
18736 else
18737 echo "$as_me: failed program was:" >&5
18738 sed 's/^/| /' conftest.$ac_ext >&5
18740 ac_header_preproc=no
18743 rm -f conftest.err conftest.$ac_ext
18744 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18745 echo "${ECHO_T}$ac_header_preproc" >&6; }
18747 # So? What about this header?
18748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18749 yes:no: )
18750 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18751 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18753 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18754 ac_header_preproc=yes
18756 no:yes:* )
18757 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18758 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18759 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18760 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18761 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18762 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18763 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18764 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18766 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18767 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18768 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18771 esac
18772 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18775 echo $ECHO_N "(cached) $ECHO_C" >&6
18776 else
18777 eval "$as_ac_Header=\$ac_header_preproc"
18779 ac_res=`eval echo '${'$as_ac_Header'}'`
18780 { echo "$as_me:$LINENO: result: $ac_res" >&5
18781 echo "${ECHO_T}$ac_res" >&6; }
18784 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18785 cat >>confdefs.h <<_ACEOF
18786 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18787 _ACEOF
18788 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18789 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18790 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18791 echo $ECHO_N "(cached) $ECHO_C" >&6
18792 else
18793 cat >conftest.$ac_ext <<_ACEOF
18794 /* confdefs.h. */
18795 _ACEOF
18796 cat confdefs.h >>conftest.$ac_ext
18797 cat >>conftest.$ac_ext <<_ACEOF
18798 /* end confdefs.h. */
18799 #include <nlist.h>
18802 main ()
18804 static struct nlist ac_aggr;
18805 if (ac_aggr.n_un.n_name)
18806 return 0;
18808 return 0;
18810 _ACEOF
18811 rm -f conftest.$ac_objext
18812 if { (ac_try="$ac_compile"
18813 case "(($ac_try" in
18814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18815 *) ac_try_echo=$ac_try;;
18816 esac
18817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18818 (eval "$ac_compile") 2>conftest.er1
18819 ac_status=$?
18820 grep -v '^ *+' conftest.er1 >conftest.err
18821 rm -f conftest.er1
18822 cat conftest.err >&5
18823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824 (exit $ac_status); } && {
18825 test -z "$ac_c_werror_flag" ||
18826 test ! -s conftest.err
18827 } && test -s conftest.$ac_objext; then
18828 ac_cv_member_struct_nlist_n_un_n_name=yes
18829 else
18830 echo "$as_me: failed program was:" >&5
18831 sed 's/^/| /' conftest.$ac_ext >&5
18833 cat >conftest.$ac_ext <<_ACEOF
18834 /* confdefs.h. */
18835 _ACEOF
18836 cat confdefs.h >>conftest.$ac_ext
18837 cat >>conftest.$ac_ext <<_ACEOF
18838 /* end confdefs.h. */
18839 #include <nlist.h>
18842 main ()
18844 static struct nlist ac_aggr;
18845 if (sizeof ac_aggr.n_un.n_name)
18846 return 0;
18848 return 0;
18850 _ACEOF
18851 rm -f conftest.$ac_objext
18852 if { (ac_try="$ac_compile"
18853 case "(($ac_try" in
18854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18855 *) ac_try_echo=$ac_try;;
18856 esac
18857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18858 (eval "$ac_compile") 2>conftest.er1
18859 ac_status=$?
18860 grep -v '^ *+' conftest.er1 >conftest.err
18861 rm -f conftest.er1
18862 cat conftest.err >&5
18863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18864 (exit $ac_status); } && {
18865 test -z "$ac_c_werror_flag" ||
18866 test ! -s conftest.err
18867 } && test -s conftest.$ac_objext; then
18868 ac_cv_member_struct_nlist_n_un_n_name=yes
18869 else
18870 echo "$as_me: failed program was:" >&5
18871 sed 's/^/| /' conftest.$ac_ext >&5
18873 ac_cv_member_struct_nlist_n_un_n_name=no
18876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18881 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18882 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18883 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18885 cat >>confdefs.h <<_ACEOF
18886 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18887 _ACEOF
18890 cat >>confdefs.h <<\_ACEOF
18891 #define NLIST_NAME_UNION 1
18892 _ACEOF
18899 done
18902 done
18905 # Some definitions of getloadavg require that the program be installed setgid.
18906 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18907 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18908 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18909 echo $ECHO_N "(cached) $ECHO_C" >&6
18910 else
18911 cat >conftest.$ac_ext <<_ACEOF
18912 /* confdefs.h. */
18913 _ACEOF
18914 cat confdefs.h >>conftest.$ac_ext
18915 cat >>conftest.$ac_ext <<_ACEOF
18916 /* end confdefs.h. */
18917 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18918 #ifdef LDAV_PRIVILEGED
18919 Yowza Am I SETGID yet
18920 #endif
18921 _ACEOF
18922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18923 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18924 ac_cv_func_getloadavg_setgid=yes
18925 else
18926 ac_cv_func_getloadavg_setgid=no
18928 rm -f conftest*
18931 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18932 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18933 if test $ac_cv_func_getloadavg_setgid = yes; then
18934 NEED_SETGID=true
18936 cat >>confdefs.h <<\_ACEOF
18937 #define GETLOADAVG_PRIVILEGED 1
18938 _ACEOF
18940 else
18941 NEED_SETGID=false
18944 if test $ac_cv_func_getloadavg_setgid = yes; then
18945 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18946 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18947 if test "${ac_cv_group_kmem+set}" = set; then
18948 echo $ECHO_N "(cached) $ECHO_C" >&6
18949 else
18950 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18951 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18952 # If we got an error (system does not support symlinks), try without -L.
18953 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18954 ac_cv_group_kmem=`echo $ac_ls_output \
18955 | sed -ne 's/[ ][ ]*/ /g;
18956 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18957 / /s/.* //;p;'`
18960 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18961 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18962 KMEM_GROUP=$ac_cv_group_kmem
18964 if test "x$ac_save_LIBS" = x; then
18965 GETLOADAVG_LIBS=$LIBS
18966 else
18967 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18969 LIBS=$ac_save_LIBS
18973 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18974 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18975 if test "${ac_cv_sys_largefile_source+set}" = set; then
18976 echo $ECHO_N "(cached) $ECHO_C" >&6
18977 else
18978 while :; do
18979 cat >conftest.$ac_ext <<_ACEOF
18980 /* confdefs.h. */
18981 _ACEOF
18982 cat confdefs.h >>conftest.$ac_ext
18983 cat >>conftest.$ac_ext <<_ACEOF
18984 /* end confdefs.h. */
18985 #include <sys/types.h> /* for off_t */
18986 #include <stdio.h>
18988 main ()
18990 int (*fp) (FILE *, off_t, int) = fseeko;
18991 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18993 return 0;
18995 _ACEOF
18996 rm -f conftest.$ac_objext conftest$ac_exeext
18997 if { (ac_try="$ac_link"
18998 case "(($ac_try" in
18999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19000 *) ac_try_echo=$ac_try;;
19001 esac
19002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19003 (eval "$ac_link") 2>conftest.er1
19004 ac_status=$?
19005 grep -v '^ *+' conftest.er1 >conftest.err
19006 rm -f conftest.er1
19007 cat conftest.err >&5
19008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19009 (exit $ac_status); } && {
19010 test -z "$ac_c_werror_flag" ||
19011 test ! -s conftest.err
19012 } && test -s conftest$ac_exeext &&
19013 $as_test_x conftest$ac_exeext; then
19014 ac_cv_sys_largefile_source=no; break
19015 else
19016 echo "$as_me: failed program was:" >&5
19017 sed 's/^/| /' conftest.$ac_ext >&5
19022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19023 conftest$ac_exeext conftest.$ac_ext
19024 cat >conftest.$ac_ext <<_ACEOF
19025 /* confdefs.h. */
19026 _ACEOF
19027 cat confdefs.h >>conftest.$ac_ext
19028 cat >>conftest.$ac_ext <<_ACEOF
19029 /* end confdefs.h. */
19030 #define _LARGEFILE_SOURCE 1
19031 #include <sys/types.h> /* for off_t */
19032 #include <stdio.h>
19034 main ()
19036 int (*fp) (FILE *, off_t, int) = fseeko;
19037 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19039 return 0;
19041 _ACEOF
19042 rm -f conftest.$ac_objext conftest$ac_exeext
19043 if { (ac_try="$ac_link"
19044 case "(($ac_try" in
19045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19046 *) ac_try_echo=$ac_try;;
19047 esac
19048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19049 (eval "$ac_link") 2>conftest.er1
19050 ac_status=$?
19051 grep -v '^ *+' conftest.er1 >conftest.err
19052 rm -f conftest.er1
19053 cat conftest.err >&5
19054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19055 (exit $ac_status); } && {
19056 test -z "$ac_c_werror_flag" ||
19057 test ! -s conftest.err
19058 } && test -s conftest$ac_exeext &&
19059 $as_test_x conftest$ac_exeext; then
19060 ac_cv_sys_largefile_source=1; break
19061 else
19062 echo "$as_me: failed program was:" >&5
19063 sed 's/^/| /' conftest.$ac_ext >&5
19068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19069 conftest$ac_exeext conftest.$ac_ext
19070 ac_cv_sys_largefile_source=unknown
19071 break
19072 done
19074 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19075 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
19076 case $ac_cv_sys_largefile_source in #(
19077 no | unknown) ;;
19079 cat >>confdefs.h <<_ACEOF
19080 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19081 _ACEOF
19083 esac
19084 rm -f conftest*
19086 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19087 # in glibc 2.1.3, but that breaks too many other things.
19088 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19089 if test $ac_cv_sys_largefile_source != unknown; then
19091 cat >>confdefs.h <<\_ACEOF
19092 #define HAVE_FSEEKO 1
19093 _ACEOF
19098 # Configure getopt.
19099 # getopt.m4 serial 10
19101 # The getopt module assume you want GNU getopt, with getopt_long etc,
19102 # rather than vanilla POSIX getopt. This means your your code should
19103 # always include <getopt.h> for the getopt prototypes.
19115 # Prerequisites of lib/getopt*.
19120 GETOPT_H=
19122 for ac_header in getopt.h
19124 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19126 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19129 echo $ECHO_N "(cached) $ECHO_C" >&6
19131 ac_res=`eval echo '${'$as_ac_Header'}'`
19132 { echo "$as_me:$LINENO: result: $ac_res" >&5
19133 echo "${ECHO_T}$ac_res" >&6; }
19134 else
19135 # Is the header compilable?
19136 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19137 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19138 cat >conftest.$ac_ext <<_ACEOF
19139 /* confdefs.h. */
19140 _ACEOF
19141 cat confdefs.h >>conftest.$ac_ext
19142 cat >>conftest.$ac_ext <<_ACEOF
19143 /* end confdefs.h. */
19144 $ac_includes_default
19145 #include <$ac_header>
19146 _ACEOF
19147 rm -f conftest.$ac_objext
19148 if { (ac_try="$ac_compile"
19149 case "(($ac_try" in
19150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19151 *) ac_try_echo=$ac_try;;
19152 esac
19153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19154 (eval "$ac_compile") 2>conftest.er1
19155 ac_status=$?
19156 grep -v '^ *+' conftest.er1 >conftest.err
19157 rm -f conftest.er1
19158 cat conftest.err >&5
19159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160 (exit $ac_status); } && {
19161 test -z "$ac_c_werror_flag" ||
19162 test ! -s conftest.err
19163 } && test -s conftest.$ac_objext; then
19164 ac_header_compiler=yes
19165 else
19166 echo "$as_me: failed program was:" >&5
19167 sed 's/^/| /' conftest.$ac_ext >&5
19169 ac_header_compiler=no
19172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19173 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19174 echo "${ECHO_T}$ac_header_compiler" >&6; }
19176 # Is the header present?
19177 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19178 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19179 cat >conftest.$ac_ext <<_ACEOF
19180 /* confdefs.h. */
19181 _ACEOF
19182 cat confdefs.h >>conftest.$ac_ext
19183 cat >>conftest.$ac_ext <<_ACEOF
19184 /* end confdefs.h. */
19185 #include <$ac_header>
19186 _ACEOF
19187 if { (ac_try="$ac_cpp conftest.$ac_ext"
19188 case "(($ac_try" in
19189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19190 *) ac_try_echo=$ac_try;;
19191 esac
19192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19193 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19194 ac_status=$?
19195 grep -v '^ *+' conftest.er1 >conftest.err
19196 rm -f conftest.er1
19197 cat conftest.err >&5
19198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19199 (exit $ac_status); } >/dev/null && {
19200 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19201 test ! -s conftest.err
19202 }; then
19203 ac_header_preproc=yes
19204 else
19205 echo "$as_me: failed program was:" >&5
19206 sed 's/^/| /' conftest.$ac_ext >&5
19208 ac_header_preproc=no
19211 rm -f conftest.err conftest.$ac_ext
19212 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19213 echo "${ECHO_T}$ac_header_preproc" >&6; }
19215 # So? What about this header?
19216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19217 yes:no: )
19218 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19219 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19221 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19222 ac_header_preproc=yes
19224 no:yes:* )
19225 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19226 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19227 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19228 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19229 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19230 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19231 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19232 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19233 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19234 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19235 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19236 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19239 esac
19240 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19243 echo $ECHO_N "(cached) $ECHO_C" >&6
19244 else
19245 eval "$as_ac_Header=\$ac_header_preproc"
19247 ac_res=`eval echo '${'$as_ac_Header'}'`
19248 { echo "$as_me:$LINENO: result: $ac_res" >&5
19249 echo "${ECHO_T}$ac_res" >&6; }
19252 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19253 cat >>confdefs.h <<_ACEOF
19254 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19255 _ACEOF
19257 else
19258 GETOPT_H=getopt.h
19261 done
19263 if test -z "$GETOPT_H"; then
19265 for ac_func in getopt_long_only
19267 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19268 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19269 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19270 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19271 echo $ECHO_N "(cached) $ECHO_C" >&6
19272 else
19273 cat >conftest.$ac_ext <<_ACEOF
19274 /* confdefs.h. */
19275 _ACEOF
19276 cat confdefs.h >>conftest.$ac_ext
19277 cat >>conftest.$ac_ext <<_ACEOF
19278 /* end confdefs.h. */
19279 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19281 #define $ac_func innocuous_$ac_func
19283 /* System header to define __stub macros and hopefully few prototypes,
19284 which can conflict with char $ac_func (); below.
19285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19286 <limits.h> exists even on freestanding compilers. */
19288 #ifdef __STDC__
19289 # include <limits.h>
19290 #else
19291 # include <assert.h>
19292 #endif
19294 #undef $ac_func
19296 /* Override any GCC internal prototype to avoid an error.
19297 Use char because int might match the return type of a GCC
19298 builtin and then its argument prototype would still apply. */
19299 #ifdef __cplusplus
19300 extern "C"
19301 #endif
19302 char $ac_func ();
19303 /* The GNU C library defines this for functions which it implements
19304 to always fail with ENOSYS. Some functions are actually named
19305 something starting with __ and the normal name is an alias. */
19306 #if defined __stub_$ac_func || defined __stub___$ac_func
19307 choke me
19308 #endif
19311 main ()
19313 return $ac_func ();
19315 return 0;
19317 _ACEOF
19318 rm -f conftest.$ac_objext conftest$ac_exeext
19319 if { (ac_try="$ac_link"
19320 case "(($ac_try" in
19321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19322 *) ac_try_echo=$ac_try;;
19323 esac
19324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19325 (eval "$ac_link") 2>conftest.er1
19326 ac_status=$?
19327 grep -v '^ *+' conftest.er1 >conftest.err
19328 rm -f conftest.er1
19329 cat conftest.err >&5
19330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331 (exit $ac_status); } && {
19332 test -z "$ac_c_werror_flag" ||
19333 test ! -s conftest.err
19334 } && test -s conftest$ac_exeext &&
19335 $as_test_x conftest$ac_exeext; then
19336 eval "$as_ac_var=yes"
19337 else
19338 echo "$as_me: failed program was:" >&5
19339 sed 's/^/| /' conftest.$ac_ext >&5
19341 eval "$as_ac_var=no"
19344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19345 conftest$ac_exeext conftest.$ac_ext
19347 ac_res=`eval echo '${'$as_ac_var'}'`
19348 { echo "$as_me:$LINENO: result: $ac_res" >&5
19349 echo "${ECHO_T}$ac_res" >&6; }
19350 if test `eval echo '${'$as_ac_var'}'` = yes; then
19351 cat >>confdefs.h <<_ACEOF
19352 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19353 _ACEOF
19355 else
19356 GETOPT_H=getopt.h
19358 done
19362 if test -z "$GETOPT_H"; then
19363 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
19364 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
19365 if test "${ac_cv_have_decl_optreset+set}" = set; then
19366 echo $ECHO_N "(cached) $ECHO_C" >&6
19367 else
19368 cat >conftest.$ac_ext <<_ACEOF
19369 /* confdefs.h. */
19370 _ACEOF
19371 cat confdefs.h >>conftest.$ac_ext
19372 cat >>conftest.$ac_ext <<_ACEOF
19373 /* end confdefs.h. */
19374 #include <getopt.h>
19377 main ()
19379 #ifndef optreset
19380 (void) optreset;
19381 #endif
19384 return 0;
19386 _ACEOF
19387 rm -f conftest.$ac_objext
19388 if { (ac_try="$ac_compile"
19389 case "(($ac_try" in
19390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19391 *) ac_try_echo=$ac_try;;
19392 esac
19393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19394 (eval "$ac_compile") 2>conftest.er1
19395 ac_status=$?
19396 grep -v '^ *+' conftest.er1 >conftest.err
19397 rm -f conftest.er1
19398 cat conftest.err >&5
19399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400 (exit $ac_status); } && {
19401 test -z "$ac_c_werror_flag" ||
19402 test ! -s conftest.err
19403 } && test -s conftest.$ac_objext; then
19404 ac_cv_have_decl_optreset=yes
19405 else
19406 echo "$as_me: failed program was:" >&5
19407 sed 's/^/| /' conftest.$ac_ext >&5
19409 ac_cv_have_decl_optreset=no
19412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19414 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
19415 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19416 if test $ac_cv_have_decl_optreset = yes; then
19417 GETOPT_H=getopt.h
19422 if test -z "$GETOPT_H"; then
19423 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
19424 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
19425 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19426 echo $ECHO_N "(cached) $ECHO_C" >&6
19427 else
19428 if test "$cross_compiling" = yes; then
19429 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
19430 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
19431 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19432 echo $ECHO_N "(cached) $ECHO_C" >&6
19433 else
19434 cat >conftest.$ac_ext <<_ACEOF
19435 /* confdefs.h. */
19436 _ACEOF
19437 cat confdefs.h >>conftest.$ac_ext
19438 cat >>conftest.$ac_ext <<_ACEOF
19439 /* end confdefs.h. */
19440 #include <getopt.h>
19443 main ()
19445 #ifndef getopt_clip
19446 (void) getopt_clip;
19447 #endif
19450 return 0;
19452 _ACEOF
19453 rm -f conftest.$ac_objext
19454 if { (ac_try="$ac_compile"
19455 case "(($ac_try" in
19456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19457 *) ac_try_echo=$ac_try;;
19458 esac
19459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19460 (eval "$ac_compile") 2>conftest.er1
19461 ac_status=$?
19462 grep -v '^ *+' conftest.er1 >conftest.err
19463 rm -f conftest.er1
19464 cat conftest.err >&5
19465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19466 (exit $ac_status); } && {
19467 test -z "$ac_c_werror_flag" ||
19468 test ! -s conftest.err
19469 } && test -s conftest.$ac_objext; then
19470 ac_cv_have_decl_getopt_clip=yes
19471 else
19472 echo "$as_me: failed program was:" >&5
19473 sed 's/^/| /' conftest.$ac_ext >&5
19475 ac_cv_have_decl_getopt_clip=no
19478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19480 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
19481 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19482 if test $ac_cv_have_decl_getopt_clip = yes; then
19483 gl_cv_func_gnu_getopt=no
19484 else
19485 gl_cv_func_gnu_getopt=yes
19488 else
19489 cat >conftest.$ac_ext <<_ACEOF
19490 /* confdefs.h. */
19491 _ACEOF
19492 cat confdefs.h >>conftest.$ac_ext
19493 cat >>conftest.$ac_ext <<_ACEOF
19494 /* end confdefs.h. */
19495 #include <getopt.h>
19497 main ()
19500 char *myargv[3];
19501 myargv[0] = "conftest";
19502 myargv[1] = "-+";
19503 myargv[2] = 0;
19504 return getopt (2, myargv, "+a") != '?';
19507 return 0;
19509 _ACEOF
19510 rm -f conftest$ac_exeext
19511 if { (ac_try="$ac_link"
19512 case "(($ac_try" in
19513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19514 *) ac_try_echo=$ac_try;;
19515 esac
19516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19517 (eval "$ac_link") 2>&5
19518 ac_status=$?
19519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19521 { (case "(($ac_try" in
19522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19523 *) ac_try_echo=$ac_try;;
19524 esac
19525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19526 (eval "$ac_try") 2>&5
19527 ac_status=$?
19528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19529 (exit $ac_status); }; }; then
19530 gl_cv_func_gnu_getopt=yes
19531 else
19532 echo "$as_me: program exited with status $ac_status" >&5
19533 echo "$as_me: failed program was:" >&5
19534 sed 's/^/| /' conftest.$ac_ext >&5
19536 ( exit $ac_status )
19537 gl_cv_func_gnu_getopt=no
19539 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19544 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
19545 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19546 if test "$gl_cv_func_gnu_getopt" = "no"; then
19547 GETOPT_H=getopt.h
19553 if test -n "$GETOPT_H"; then
19556 GETOPT_H=getopt.h
19558 cat >>confdefs.h <<\_ACEOF
19559 #define __GETOPT_PREFIX rpl_
19560 _ACEOF
19565 GETOPTOBJS='getopt.o getopt1.o'
19572 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
19573 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
19574 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19575 echo $ECHO_N "(cached) $ECHO_C" >&6
19576 else
19577 # Use it with a single arg.
19578 cat >conftest.$ac_ext <<_ACEOF
19579 /* confdefs.h. */
19580 _ACEOF
19581 cat confdefs.h >>conftest.$ac_ext
19582 cat >>conftest.$ac_ext <<_ACEOF
19583 /* end confdefs.h. */
19584 $ac_includes_default
19586 main ()
19588 getpgrp (0);
19590 return 0;
19592 _ACEOF
19593 rm -f conftest.$ac_objext
19594 if { (ac_try="$ac_compile"
19595 case "(($ac_try" in
19596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19597 *) ac_try_echo=$ac_try;;
19598 esac
19599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19600 (eval "$ac_compile") 2>conftest.er1
19601 ac_status=$?
19602 grep -v '^ *+' conftest.er1 >conftest.err
19603 rm -f conftest.er1
19604 cat conftest.err >&5
19605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19606 (exit $ac_status); } && {
19607 test -z "$ac_c_werror_flag" ||
19608 test ! -s conftest.err
19609 } && test -s conftest.$ac_objext; then
19610 ac_cv_func_getpgrp_void=no
19611 else
19612 echo "$as_me: failed program was:" >&5
19613 sed 's/^/| /' conftest.$ac_ext >&5
19615 ac_cv_func_getpgrp_void=yes
19618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19621 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
19622 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19623 if test $ac_cv_func_getpgrp_void = yes; then
19625 cat >>confdefs.h <<\_ACEOF
19626 #define GETPGRP_VOID 1
19627 _ACEOF
19633 for ac_func in strftime
19635 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19636 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19638 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19639 echo $ECHO_N "(cached) $ECHO_C" >&6
19640 else
19641 cat >conftest.$ac_ext <<_ACEOF
19642 /* confdefs.h. */
19643 _ACEOF
19644 cat confdefs.h >>conftest.$ac_ext
19645 cat >>conftest.$ac_ext <<_ACEOF
19646 /* end confdefs.h. */
19647 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19649 #define $ac_func innocuous_$ac_func
19651 /* System header to define __stub macros and hopefully few prototypes,
19652 which can conflict with char $ac_func (); below.
19653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19654 <limits.h> exists even on freestanding compilers. */
19656 #ifdef __STDC__
19657 # include <limits.h>
19658 #else
19659 # include <assert.h>
19660 #endif
19662 #undef $ac_func
19664 /* Override any GCC internal prototype to avoid an error.
19665 Use char because int might match the return type of a GCC
19666 builtin and then its argument prototype would still apply. */
19667 #ifdef __cplusplus
19668 extern "C"
19669 #endif
19670 char $ac_func ();
19671 /* The GNU C library defines this for functions which it implements
19672 to always fail with ENOSYS. Some functions are actually named
19673 something starting with __ and the normal name is an alias. */
19674 #if defined __stub_$ac_func || defined __stub___$ac_func
19675 choke me
19676 #endif
19679 main ()
19681 return $ac_func ();
19683 return 0;
19685 _ACEOF
19686 rm -f conftest.$ac_objext conftest$ac_exeext
19687 if { (ac_try="$ac_link"
19688 case "(($ac_try" in
19689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19690 *) ac_try_echo=$ac_try;;
19691 esac
19692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19693 (eval "$ac_link") 2>conftest.er1
19694 ac_status=$?
19695 grep -v '^ *+' conftest.er1 >conftest.err
19696 rm -f conftest.er1
19697 cat conftest.err >&5
19698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19699 (exit $ac_status); } && {
19700 test -z "$ac_c_werror_flag" ||
19701 test ! -s conftest.err
19702 } && test -s conftest$ac_exeext &&
19703 $as_test_x conftest$ac_exeext; then
19704 eval "$as_ac_var=yes"
19705 else
19706 echo "$as_me: failed program was:" >&5
19707 sed 's/^/| /' conftest.$ac_ext >&5
19709 eval "$as_ac_var=no"
19712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19713 conftest$ac_exeext conftest.$ac_ext
19715 ac_res=`eval echo '${'$as_ac_var'}'`
19716 { echo "$as_me:$LINENO: result: $ac_res" >&5
19717 echo "${ECHO_T}$ac_res" >&6; }
19718 if test `eval echo '${'$as_ac_var'}'` = yes; then
19719 cat >>confdefs.h <<_ACEOF
19720 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19721 _ACEOF
19723 else
19724 # strftime is in -lintl on SCO UNIX.
19725 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19726 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
19727 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19728 echo $ECHO_N "(cached) $ECHO_C" >&6
19729 else
19730 ac_check_lib_save_LIBS=$LIBS
19731 LIBS="-lintl $LIBS"
19732 cat >conftest.$ac_ext <<_ACEOF
19733 /* confdefs.h. */
19734 _ACEOF
19735 cat confdefs.h >>conftest.$ac_ext
19736 cat >>conftest.$ac_ext <<_ACEOF
19737 /* end confdefs.h. */
19739 /* Override any GCC internal prototype to avoid an error.
19740 Use char because int might match the return type of a GCC
19741 builtin and then its argument prototype would still apply. */
19742 #ifdef __cplusplus
19743 extern "C"
19744 #endif
19745 char strftime ();
19747 main ()
19749 return strftime ();
19751 return 0;
19753 _ACEOF
19754 rm -f conftest.$ac_objext conftest$ac_exeext
19755 if { (ac_try="$ac_link"
19756 case "(($ac_try" in
19757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19758 *) ac_try_echo=$ac_try;;
19759 esac
19760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19761 (eval "$ac_link") 2>conftest.er1
19762 ac_status=$?
19763 grep -v '^ *+' conftest.er1 >conftest.err
19764 rm -f conftest.er1
19765 cat conftest.err >&5
19766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19767 (exit $ac_status); } && {
19768 test -z "$ac_c_werror_flag" ||
19769 test ! -s conftest.err
19770 } && test -s conftest$ac_exeext &&
19771 $as_test_x conftest$ac_exeext; then
19772 ac_cv_lib_intl_strftime=yes
19773 else
19774 echo "$as_me: failed program was:" >&5
19775 sed 's/^/| /' conftest.$ac_ext >&5
19777 ac_cv_lib_intl_strftime=no
19780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19781 conftest$ac_exeext conftest.$ac_ext
19782 LIBS=$ac_check_lib_save_LIBS
19784 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19785 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19786 if test $ac_cv_lib_intl_strftime = yes; then
19787 cat >>confdefs.h <<\_ACEOF
19788 #define HAVE_STRFTIME 1
19789 _ACEOF
19791 LIBS="-lintl $LIBS"
19795 done
19798 # UNIX98 PTYs.
19800 for ac_func in grantpt
19802 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19803 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19804 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19805 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19806 echo $ECHO_N "(cached) $ECHO_C" >&6
19807 else
19808 cat >conftest.$ac_ext <<_ACEOF
19809 /* confdefs.h. */
19810 _ACEOF
19811 cat confdefs.h >>conftest.$ac_ext
19812 cat >>conftest.$ac_ext <<_ACEOF
19813 /* end confdefs.h. */
19814 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19815 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19816 #define $ac_func innocuous_$ac_func
19818 /* System header to define __stub macros and hopefully few prototypes,
19819 which can conflict with char $ac_func (); below.
19820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19821 <limits.h> exists even on freestanding compilers. */
19823 #ifdef __STDC__
19824 # include <limits.h>
19825 #else
19826 # include <assert.h>
19827 #endif
19829 #undef $ac_func
19831 /* Override any GCC internal prototype to avoid an error.
19832 Use char because int might match the return type of a GCC
19833 builtin and then its argument prototype would still apply. */
19834 #ifdef __cplusplus
19835 extern "C"
19836 #endif
19837 char $ac_func ();
19838 /* The GNU C library defines this for functions which it implements
19839 to always fail with ENOSYS. Some functions are actually named
19840 something starting with __ and the normal name is an alias. */
19841 #if defined __stub_$ac_func || defined __stub___$ac_func
19842 choke me
19843 #endif
19846 main ()
19848 return $ac_func ();
19850 return 0;
19852 _ACEOF
19853 rm -f conftest.$ac_objext conftest$ac_exeext
19854 if { (ac_try="$ac_link"
19855 case "(($ac_try" in
19856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19857 *) ac_try_echo=$ac_try;;
19858 esac
19859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19860 (eval "$ac_link") 2>conftest.er1
19861 ac_status=$?
19862 grep -v '^ *+' conftest.er1 >conftest.err
19863 rm -f conftest.er1
19864 cat conftest.err >&5
19865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866 (exit $ac_status); } && {
19867 test -z "$ac_c_werror_flag" ||
19868 test ! -s conftest.err
19869 } && test -s conftest$ac_exeext &&
19870 $as_test_x conftest$ac_exeext; then
19871 eval "$as_ac_var=yes"
19872 else
19873 echo "$as_me: failed program was:" >&5
19874 sed 's/^/| /' conftest.$ac_ext >&5
19876 eval "$as_ac_var=no"
19879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19880 conftest$ac_exeext conftest.$ac_ext
19882 ac_res=`eval echo '${'$as_ac_var'}'`
19883 { echo "$as_me:$LINENO: result: $ac_res" >&5
19884 echo "${ECHO_T}$ac_res" >&6; }
19885 if test `eval echo '${'$as_ac_var'}'` = yes; then
19886 cat >>confdefs.h <<_ACEOF
19887 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19888 _ACEOF
19891 done
19894 # PTY-related GNU extensions.
19896 for ac_func in getpt
19898 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19899 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19900 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19901 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19902 echo $ECHO_N "(cached) $ECHO_C" >&6
19903 else
19904 cat >conftest.$ac_ext <<_ACEOF
19905 /* confdefs.h. */
19906 _ACEOF
19907 cat confdefs.h >>conftest.$ac_ext
19908 cat >>conftest.$ac_ext <<_ACEOF
19909 /* end confdefs.h. */
19910 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19911 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19912 #define $ac_func innocuous_$ac_func
19914 /* System header to define __stub macros and hopefully few prototypes,
19915 which can conflict with char $ac_func (); below.
19916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19917 <limits.h> exists even on freestanding compilers. */
19919 #ifdef __STDC__
19920 # include <limits.h>
19921 #else
19922 # include <assert.h>
19923 #endif
19925 #undef $ac_func
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 $ac_func ();
19934 /* The GNU C library defines this for functions which it implements
19935 to always fail with ENOSYS. Some functions are actually named
19936 something starting with __ and the normal name is an alias. */
19937 #if defined __stub_$ac_func || defined __stub___$ac_func
19938 choke me
19939 #endif
19942 main ()
19944 return $ac_func ();
19946 return 0;
19948 _ACEOF
19949 rm -f conftest.$ac_objext conftest$ac_exeext
19950 if { (ac_try="$ac_link"
19951 case "(($ac_try" in
19952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19953 *) ac_try_echo=$ac_try;;
19954 esac
19955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19956 (eval "$ac_link") 2>conftest.er1
19957 ac_status=$?
19958 grep -v '^ *+' conftest.er1 >conftest.err
19959 rm -f conftest.er1
19960 cat conftest.err >&5
19961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19962 (exit $ac_status); } && {
19963 test -z "$ac_c_werror_flag" ||
19964 test ! -s conftest.err
19965 } && test -s conftest$ac_exeext &&
19966 $as_test_x conftest$ac_exeext; then
19967 eval "$as_ac_var=yes"
19968 else
19969 echo "$as_me: failed program was:" >&5
19970 sed 's/^/| /' conftest.$ac_ext >&5
19972 eval "$as_ac_var=no"
19975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19976 conftest$ac_exeext conftest.$ac_ext
19978 ac_res=`eval echo '${'$as_ac_var'}'`
19979 { echo "$as_me:$LINENO: result: $ac_res" >&5
19980 echo "${ECHO_T}$ac_res" >&6; }
19981 if test `eval echo '${'$as_ac_var'}'` = yes; then
19982 cat >>confdefs.h <<_ACEOF
19983 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19984 _ACEOF
19987 done
19990 # Check this now, so that we will NOT find the above functions in ncurses.
19991 # That is because we have not set up to link ncurses in lib-src.
19992 # It's better to believe a function is not available
19993 # than to expect to find it in ncurses.
19995 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19996 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19997 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19998 echo $ECHO_N "(cached) $ECHO_C" >&6
19999 else
20000 ac_check_lib_save_LIBS=$LIBS
20001 LIBS="-lncurses $LIBS"
20002 cat >conftest.$ac_ext <<_ACEOF
20003 /* confdefs.h. */
20004 _ACEOF
20005 cat confdefs.h >>conftest.$ac_ext
20006 cat >>conftest.$ac_ext <<_ACEOF
20007 /* end confdefs.h. */
20009 /* Override any GCC internal prototype to avoid an error.
20010 Use char because int might match the return type of a GCC
20011 builtin and then its argument prototype would still apply. */
20012 #ifdef __cplusplus
20013 extern "C"
20014 #endif
20015 char tparm ();
20017 main ()
20019 return tparm ();
20021 return 0;
20023 _ACEOF
20024 rm -f conftest.$ac_objext conftest$ac_exeext
20025 if { (ac_try="$ac_link"
20026 case "(($ac_try" in
20027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20028 *) ac_try_echo=$ac_try;;
20029 esac
20030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20031 (eval "$ac_link") 2>conftest.er1
20032 ac_status=$?
20033 grep -v '^ *+' conftest.er1 >conftest.err
20034 rm -f conftest.er1
20035 cat conftest.err >&5
20036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20037 (exit $ac_status); } && {
20038 test -z "$ac_c_werror_flag" ||
20039 test ! -s conftest.err
20040 } && test -s conftest$ac_exeext &&
20041 $as_test_x conftest$ac_exeext; then
20042 ac_cv_lib_ncurses_tparm=yes
20043 else
20044 echo "$as_me: failed program was:" >&5
20045 sed 's/^/| /' conftest.$ac_ext >&5
20047 ac_cv_lib_ncurses_tparm=no
20050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20051 conftest$ac_exeext conftest.$ac_ext
20052 LIBS=$ac_check_lib_save_LIBS
20054 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
20055 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
20056 if test $ac_cv_lib_ncurses_tparm = yes; then
20057 cat >>confdefs.h <<_ACEOF
20058 #define HAVE_LIBNCURSES 1
20059 _ACEOF
20061 LIBS="-lncurses $LIBS"
20066 # Do we have res_init, for detecting changes in /etc/resolv.conf?
20068 resolv=no
20069 cat >conftest.$ac_ext <<_ACEOF
20070 /* confdefs.h. */
20071 _ACEOF
20072 cat confdefs.h >>conftest.$ac_ext
20073 cat >>conftest.$ac_ext <<_ACEOF
20074 /* end confdefs.h. */
20075 #include <netinet/in.h>
20076 #include <arpa/nameser.h>
20077 #include <resolv.h>
20079 main ()
20081 return res_init();
20083 return 0;
20085 _ACEOF
20086 rm -f conftest.$ac_objext conftest$ac_exeext
20087 if { (ac_try="$ac_link"
20088 case "(($ac_try" in
20089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20090 *) ac_try_echo=$ac_try;;
20091 esac
20092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20093 (eval "$ac_link") 2>conftest.er1
20094 ac_status=$?
20095 grep -v '^ *+' conftest.er1 >conftest.err
20096 rm -f conftest.er1
20097 cat conftest.err >&5
20098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20099 (exit $ac_status); } && {
20100 test -z "$ac_c_werror_flag" ||
20101 test ! -s conftest.err
20102 } && test -s conftest$ac_exeext &&
20103 $as_test_x conftest$ac_exeext; then
20104 have_res_init=yes
20105 else
20106 echo "$as_me: failed program was:" >&5
20107 sed 's/^/| /' conftest.$ac_ext >&5
20109 have_res_init=no
20112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20113 conftest$ac_exeext conftest.$ac_ext
20114 if test "$have_res_init" = no; then
20115 OLIBS="$LIBS"
20116 LIBS="$LIBS -lresolv"
20117 { echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
20118 echo $ECHO_N "checking for res_init with -lresolv... $ECHO_C" >&6; }
20119 cat >conftest.$ac_ext <<_ACEOF
20120 /* confdefs.h. */
20121 _ACEOF
20122 cat confdefs.h >>conftest.$ac_ext
20123 cat >>conftest.$ac_ext <<_ACEOF
20124 /* end confdefs.h. */
20125 #include <netinet/in.h>
20126 #include <arpa/nameser.h>
20127 #include <resolv.h>
20129 main ()
20131 return res_init();
20133 return 0;
20135 _ACEOF
20136 rm -f conftest.$ac_objext conftest$ac_exeext
20137 if { (ac_try="$ac_link"
20138 case "(($ac_try" in
20139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20140 *) ac_try_echo=$ac_try;;
20141 esac
20142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20143 (eval "$ac_link") 2>conftest.er1
20144 ac_status=$?
20145 grep -v '^ *+' conftest.er1 >conftest.err
20146 rm -f conftest.er1
20147 cat conftest.err >&5
20148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20149 (exit $ac_status); } && {
20150 test -z "$ac_c_werror_flag" ||
20151 test ! -s conftest.err
20152 } && test -s conftest$ac_exeext &&
20153 $as_test_x conftest$ac_exeext; then
20154 have_res_init=yes
20155 else
20156 echo "$as_me: failed program was:" >&5
20157 sed 's/^/| /' conftest.$ac_ext >&5
20159 have_res_init=no
20162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20163 conftest$ac_exeext conftest.$ac_ext
20164 { echo "$as_me:$LINENO: result: $have_res_init" >&5
20165 echo "${ECHO_T}$have_res_init" >&6; }
20166 if test "$have_res_init" = yes ; then
20167 resolv=yes
20169 LIBS="$OLIBS"
20172 if test "$have_res_init" = yes; then
20174 cat >>confdefs.h <<\_ACEOF
20175 #define HAVE_RES_INIT 1
20176 _ACEOF
20180 # Do we need the Hesiod library to provide the support routines?
20181 if test "$with_hesiod" = yes ; then
20182 # Don't set $LIBS here -- see comments above.
20183 { echo "$as_me:$LINENO: checking for res_send" >&5
20184 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
20185 if test "${ac_cv_func_res_send+set}" = set; then
20186 echo $ECHO_N "(cached) $ECHO_C" >&6
20187 else
20188 cat >conftest.$ac_ext <<_ACEOF
20189 /* confdefs.h. */
20190 _ACEOF
20191 cat confdefs.h >>conftest.$ac_ext
20192 cat >>conftest.$ac_ext <<_ACEOF
20193 /* end confdefs.h. */
20194 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
20195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20196 #define res_send innocuous_res_send
20198 /* System header to define __stub macros and hopefully few prototypes,
20199 which can conflict with char res_send (); below.
20200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20201 <limits.h> exists even on freestanding compilers. */
20203 #ifdef __STDC__
20204 # include <limits.h>
20205 #else
20206 # include <assert.h>
20207 #endif
20209 #undef res_send
20211 /* Override any GCC internal prototype to avoid an error.
20212 Use char because int might match the return type of a GCC
20213 builtin and then its argument prototype would still apply. */
20214 #ifdef __cplusplus
20215 extern "C"
20216 #endif
20217 char res_send ();
20218 /* The GNU C library defines this for functions which it implements
20219 to always fail with ENOSYS. Some functions are actually named
20220 something starting with __ and the normal name is an alias. */
20221 #if defined __stub_res_send || defined __stub___res_send
20222 choke me
20223 #endif
20226 main ()
20228 return res_send ();
20230 return 0;
20232 _ACEOF
20233 rm -f conftest.$ac_objext conftest$ac_exeext
20234 if { (ac_try="$ac_link"
20235 case "(($ac_try" in
20236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20237 *) ac_try_echo=$ac_try;;
20238 esac
20239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20240 (eval "$ac_link") 2>conftest.er1
20241 ac_status=$?
20242 grep -v '^ *+' conftest.er1 >conftest.err
20243 rm -f conftest.er1
20244 cat conftest.err >&5
20245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246 (exit $ac_status); } && {
20247 test -z "$ac_c_werror_flag" ||
20248 test ! -s conftest.err
20249 } && test -s conftest$ac_exeext &&
20250 $as_test_x conftest$ac_exeext; then
20251 ac_cv_func_res_send=yes
20252 else
20253 echo "$as_me: failed program was:" >&5
20254 sed 's/^/| /' conftest.$ac_ext >&5
20256 ac_cv_func_res_send=no
20259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20260 conftest$ac_exeext conftest.$ac_ext
20262 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
20263 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
20264 if test $ac_cv_func_res_send = yes; then
20266 else
20267 { echo "$as_me:$LINENO: checking for __res_send" >&5
20268 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
20269 if test "${ac_cv_func___res_send+set}" = set; then
20270 echo $ECHO_N "(cached) $ECHO_C" >&6
20271 else
20272 cat >conftest.$ac_ext <<_ACEOF
20273 /* confdefs.h. */
20274 _ACEOF
20275 cat confdefs.h >>conftest.$ac_ext
20276 cat >>conftest.$ac_ext <<_ACEOF
20277 /* end confdefs.h. */
20278 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
20279 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20280 #define __res_send innocuous___res_send
20282 /* System header to define __stub macros and hopefully few prototypes,
20283 which can conflict with char __res_send (); below.
20284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20285 <limits.h> exists even on freestanding compilers. */
20287 #ifdef __STDC__
20288 # include <limits.h>
20289 #else
20290 # include <assert.h>
20291 #endif
20293 #undef __res_send
20295 /* Override any GCC internal prototype to avoid an error.
20296 Use char because int might match the return type of a GCC
20297 builtin and then its argument prototype would still apply. */
20298 #ifdef __cplusplus
20299 extern "C"
20300 #endif
20301 char __res_send ();
20302 /* The GNU C library defines this for functions which it implements
20303 to always fail with ENOSYS. Some functions are actually named
20304 something starting with __ and the normal name is an alias. */
20305 #if defined __stub___res_send || defined __stub_____res_send
20306 choke me
20307 #endif
20310 main ()
20312 return __res_send ();
20314 return 0;
20316 _ACEOF
20317 rm -f conftest.$ac_objext conftest$ac_exeext
20318 if { (ac_try="$ac_link"
20319 case "(($ac_try" in
20320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20321 *) ac_try_echo=$ac_try;;
20322 esac
20323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20324 (eval "$ac_link") 2>conftest.er1
20325 ac_status=$?
20326 grep -v '^ *+' conftest.er1 >conftest.err
20327 rm -f conftest.er1
20328 cat conftest.err >&5
20329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20330 (exit $ac_status); } && {
20331 test -z "$ac_c_werror_flag" ||
20332 test ! -s conftest.err
20333 } && test -s conftest$ac_exeext &&
20334 $as_test_x conftest$ac_exeext; then
20335 ac_cv_func___res_send=yes
20336 else
20337 echo "$as_me: failed program was:" >&5
20338 sed 's/^/| /' conftest.$ac_ext >&5
20340 ac_cv_func___res_send=no
20343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20344 conftest$ac_exeext conftest.$ac_ext
20346 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
20347 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
20348 if test $ac_cv_func___res_send = yes; then
20350 else
20351 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
20352 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
20353 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20354 echo $ECHO_N "(cached) $ECHO_C" >&6
20355 else
20356 ac_check_lib_save_LIBS=$LIBS
20357 LIBS="-lresolv $LIBS"
20358 cat >conftest.$ac_ext <<_ACEOF
20359 /* confdefs.h. */
20360 _ACEOF
20361 cat confdefs.h >>conftest.$ac_ext
20362 cat >>conftest.$ac_ext <<_ACEOF
20363 /* end confdefs.h. */
20365 /* Override any GCC internal prototype to avoid an error.
20366 Use char because int might match the return type of a GCC
20367 builtin and then its argument prototype would still apply. */
20368 #ifdef __cplusplus
20369 extern "C"
20370 #endif
20371 char res_send ();
20373 main ()
20375 return res_send ();
20377 return 0;
20379 _ACEOF
20380 rm -f conftest.$ac_objext conftest$ac_exeext
20381 if { (ac_try="$ac_link"
20382 case "(($ac_try" in
20383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20384 *) ac_try_echo=$ac_try;;
20385 esac
20386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20387 (eval "$ac_link") 2>conftest.er1
20388 ac_status=$?
20389 grep -v '^ *+' conftest.er1 >conftest.err
20390 rm -f conftest.er1
20391 cat conftest.err >&5
20392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393 (exit $ac_status); } && {
20394 test -z "$ac_c_werror_flag" ||
20395 test ! -s conftest.err
20396 } && test -s conftest$ac_exeext &&
20397 $as_test_x conftest$ac_exeext; then
20398 ac_cv_lib_resolv_res_send=yes
20399 else
20400 echo "$as_me: failed program was:" >&5
20401 sed 's/^/| /' conftest.$ac_ext >&5
20403 ac_cv_lib_resolv_res_send=no
20406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20407 conftest$ac_exeext conftest.$ac_ext
20408 LIBS=$ac_check_lib_save_LIBS
20410 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
20411 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20412 if test $ac_cv_lib_resolv_res_send = yes; then
20413 resolv=yes
20414 else
20415 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
20416 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
20417 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20418 echo $ECHO_N "(cached) $ECHO_C" >&6
20419 else
20420 ac_check_lib_save_LIBS=$LIBS
20421 LIBS="-lresolv $LIBS"
20422 cat >conftest.$ac_ext <<_ACEOF
20423 /* confdefs.h. */
20424 _ACEOF
20425 cat confdefs.h >>conftest.$ac_ext
20426 cat >>conftest.$ac_ext <<_ACEOF
20427 /* end confdefs.h. */
20429 /* Override any GCC internal prototype to avoid an error.
20430 Use char because int might match the return type of a GCC
20431 builtin and then its argument prototype would still apply. */
20432 #ifdef __cplusplus
20433 extern "C"
20434 #endif
20435 char __res_send ();
20437 main ()
20439 return __res_send ();
20441 return 0;
20443 _ACEOF
20444 rm -f conftest.$ac_objext conftest$ac_exeext
20445 if { (ac_try="$ac_link"
20446 case "(($ac_try" in
20447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20448 *) ac_try_echo=$ac_try;;
20449 esac
20450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20451 (eval "$ac_link") 2>conftest.er1
20452 ac_status=$?
20453 grep -v '^ *+' conftest.er1 >conftest.err
20454 rm -f conftest.er1
20455 cat conftest.err >&5
20456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457 (exit $ac_status); } && {
20458 test -z "$ac_c_werror_flag" ||
20459 test ! -s conftest.err
20460 } && test -s conftest$ac_exeext &&
20461 $as_test_x conftest$ac_exeext; then
20462 ac_cv_lib_resolv___res_send=yes
20463 else
20464 echo "$as_me: failed program was:" >&5
20465 sed 's/^/| /' conftest.$ac_ext >&5
20467 ac_cv_lib_resolv___res_send=no
20470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20471 conftest$ac_exeext conftest.$ac_ext
20472 LIBS=$ac_check_lib_save_LIBS
20474 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
20475 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20476 if test $ac_cv_lib_resolv___res_send = yes; then
20477 resolv=yes
20486 if test "$resolv" = yes ; then
20487 RESOLVLIB=-lresolv
20488 else
20489 RESOLVLIB=
20491 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
20492 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
20493 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20494 echo $ECHO_N "(cached) $ECHO_C" >&6
20495 else
20496 cat >conftest.$ac_ext <<_ACEOF
20497 /* confdefs.h. */
20498 _ACEOF
20499 cat confdefs.h >>conftest.$ac_ext
20500 cat >>conftest.$ac_ext <<_ACEOF
20501 /* end confdefs.h. */
20502 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20504 #define hes_getmailhost innocuous_hes_getmailhost
20506 /* System header to define __stub macros and hopefully few prototypes,
20507 which can conflict with char hes_getmailhost (); below.
20508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20509 <limits.h> exists even on freestanding compilers. */
20511 #ifdef __STDC__
20512 # include <limits.h>
20513 #else
20514 # include <assert.h>
20515 #endif
20517 #undef hes_getmailhost
20519 /* Override any GCC internal prototype to avoid an error.
20520 Use char because int might match the return type of a GCC
20521 builtin and then its argument prototype would still apply. */
20522 #ifdef __cplusplus
20523 extern "C"
20524 #endif
20525 char hes_getmailhost ();
20526 /* The GNU C library defines this for functions which it implements
20527 to always fail with ENOSYS. Some functions are actually named
20528 something starting with __ and the normal name is an alias. */
20529 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20530 choke me
20531 #endif
20534 main ()
20536 return hes_getmailhost ();
20538 return 0;
20540 _ACEOF
20541 rm -f conftest.$ac_objext conftest$ac_exeext
20542 if { (ac_try="$ac_link"
20543 case "(($ac_try" in
20544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20545 *) ac_try_echo=$ac_try;;
20546 esac
20547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20548 (eval "$ac_link") 2>conftest.er1
20549 ac_status=$?
20550 grep -v '^ *+' conftest.er1 >conftest.err
20551 rm -f conftest.er1
20552 cat conftest.err >&5
20553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554 (exit $ac_status); } && {
20555 test -z "$ac_c_werror_flag" ||
20556 test ! -s conftest.err
20557 } && test -s conftest$ac_exeext &&
20558 $as_test_x conftest$ac_exeext; then
20559 ac_cv_func_hes_getmailhost=yes
20560 else
20561 echo "$as_me: failed program was:" >&5
20562 sed 's/^/| /' conftest.$ac_ext >&5
20564 ac_cv_func_hes_getmailhost=no
20567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20568 conftest$ac_exeext conftest.$ac_ext
20570 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
20571 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20572 if test $ac_cv_func_hes_getmailhost = yes; then
20574 else
20575 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
20576 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
20577 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20578 echo $ECHO_N "(cached) $ECHO_C" >&6
20579 else
20580 ac_check_lib_save_LIBS=$LIBS
20581 LIBS="-lhesiod $RESOLVLIB $LIBS"
20582 cat >conftest.$ac_ext <<_ACEOF
20583 /* confdefs.h. */
20584 _ACEOF
20585 cat confdefs.h >>conftest.$ac_ext
20586 cat >>conftest.$ac_ext <<_ACEOF
20587 /* end confdefs.h. */
20589 /* Override any GCC internal prototype to avoid an error.
20590 Use char because int might match the return type of a GCC
20591 builtin and then its argument prototype would still apply. */
20592 #ifdef __cplusplus
20593 extern "C"
20594 #endif
20595 char hes_getmailhost ();
20597 main ()
20599 return hes_getmailhost ();
20601 return 0;
20603 _ACEOF
20604 rm -f conftest.$ac_objext conftest$ac_exeext
20605 if { (ac_try="$ac_link"
20606 case "(($ac_try" in
20607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20608 *) ac_try_echo=$ac_try;;
20609 esac
20610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20611 (eval "$ac_link") 2>conftest.er1
20612 ac_status=$?
20613 grep -v '^ *+' conftest.er1 >conftest.err
20614 rm -f conftest.er1
20615 cat conftest.err >&5
20616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617 (exit $ac_status); } && {
20618 test -z "$ac_c_werror_flag" ||
20619 test ! -s conftest.err
20620 } && test -s conftest$ac_exeext &&
20621 $as_test_x conftest$ac_exeext; then
20622 ac_cv_lib_hesiod_hes_getmailhost=yes
20623 else
20624 echo "$as_me: failed program was:" >&5
20625 sed 's/^/| /' conftest.$ac_ext >&5
20627 ac_cv_lib_hesiod_hes_getmailhost=no
20630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20631 conftest$ac_exeext conftest.$ac_ext
20632 LIBS=$ac_check_lib_save_LIBS
20634 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20635 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20636 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20638 cat >>confdefs.h <<\_ACEOF
20639 #define HAVE_LIBHESIOD 1
20640 _ACEOF
20642 else
20650 # Do we need libresolv (due to res_init or Hesiod)?
20651 if test "$resolv" = yes ; then
20653 cat >>confdefs.h <<\_ACEOF
20654 #define HAVE_LIBRESOLV 1
20655 _ACEOF
20659 # These tell us which Kerberos-related libraries to use.
20660 if test "${with_kerberos+set}" = set; then
20662 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
20663 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
20664 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20665 echo $ECHO_N "(cached) $ECHO_C" >&6
20666 else
20667 ac_check_lib_save_LIBS=$LIBS
20668 LIBS="-lcom_err $LIBS"
20669 cat >conftest.$ac_ext <<_ACEOF
20670 /* confdefs.h. */
20671 _ACEOF
20672 cat confdefs.h >>conftest.$ac_ext
20673 cat >>conftest.$ac_ext <<_ACEOF
20674 /* end confdefs.h. */
20676 /* Override any GCC internal prototype to avoid an error.
20677 Use char because int might match the return type of a GCC
20678 builtin and then its argument prototype would still apply. */
20679 #ifdef __cplusplus
20680 extern "C"
20681 #endif
20682 char com_err ();
20684 main ()
20686 return com_err ();
20688 return 0;
20690 _ACEOF
20691 rm -f conftest.$ac_objext conftest$ac_exeext
20692 if { (ac_try="$ac_link"
20693 case "(($ac_try" in
20694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20695 *) ac_try_echo=$ac_try;;
20696 esac
20697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20698 (eval "$ac_link") 2>conftest.er1
20699 ac_status=$?
20700 grep -v '^ *+' conftest.er1 >conftest.err
20701 rm -f conftest.er1
20702 cat conftest.err >&5
20703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20704 (exit $ac_status); } && {
20705 test -z "$ac_c_werror_flag" ||
20706 test ! -s conftest.err
20707 } && test -s conftest$ac_exeext &&
20708 $as_test_x conftest$ac_exeext; then
20709 ac_cv_lib_com_err_com_err=yes
20710 else
20711 echo "$as_me: failed program was:" >&5
20712 sed 's/^/| /' conftest.$ac_ext >&5
20714 ac_cv_lib_com_err_com_err=no
20717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20718 conftest$ac_exeext conftest.$ac_ext
20719 LIBS=$ac_check_lib_save_LIBS
20721 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
20722 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20723 if test $ac_cv_lib_com_err_com_err = yes; then
20724 cat >>confdefs.h <<_ACEOF
20725 #define HAVE_LIBCOM_ERR 1
20726 _ACEOF
20728 LIBS="-lcom_err $LIBS"
20733 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
20734 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
20735 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20736 echo $ECHO_N "(cached) $ECHO_C" >&6
20737 else
20738 ac_check_lib_save_LIBS=$LIBS
20739 LIBS="-lk5crypto $LIBS"
20740 cat >conftest.$ac_ext <<_ACEOF
20741 /* confdefs.h. */
20742 _ACEOF
20743 cat confdefs.h >>conftest.$ac_ext
20744 cat >>conftest.$ac_ext <<_ACEOF
20745 /* end confdefs.h. */
20747 /* Override any GCC internal prototype to avoid an error.
20748 Use char because int might match the return type of a GCC
20749 builtin and then its argument prototype would still apply. */
20750 #ifdef __cplusplus
20751 extern "C"
20752 #endif
20753 char mit_des_cbc_encrypt ();
20755 main ()
20757 return mit_des_cbc_encrypt ();
20759 return 0;
20761 _ACEOF
20762 rm -f conftest.$ac_objext conftest$ac_exeext
20763 if { (ac_try="$ac_link"
20764 case "(($ac_try" in
20765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20766 *) ac_try_echo=$ac_try;;
20767 esac
20768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20769 (eval "$ac_link") 2>conftest.er1
20770 ac_status=$?
20771 grep -v '^ *+' conftest.er1 >conftest.err
20772 rm -f conftest.er1
20773 cat conftest.err >&5
20774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775 (exit $ac_status); } && {
20776 test -z "$ac_c_werror_flag" ||
20777 test ! -s conftest.err
20778 } && test -s conftest$ac_exeext &&
20779 $as_test_x conftest$ac_exeext; then
20780 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20781 else
20782 echo "$as_me: failed program was:" >&5
20783 sed 's/^/| /' conftest.$ac_ext >&5
20785 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20789 conftest$ac_exeext conftest.$ac_ext
20790 LIBS=$ac_check_lib_save_LIBS
20792 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20793 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20794 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20795 cat >>confdefs.h <<_ACEOF
20796 #define HAVE_LIBK5CRYPTO 1
20797 _ACEOF
20799 LIBS="-lk5crypto $LIBS"
20804 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
20805 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
20806 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20807 echo $ECHO_N "(cached) $ECHO_C" >&6
20808 else
20809 ac_check_lib_save_LIBS=$LIBS
20810 LIBS="-lcrypto $LIBS"
20811 cat >conftest.$ac_ext <<_ACEOF
20812 /* confdefs.h. */
20813 _ACEOF
20814 cat confdefs.h >>conftest.$ac_ext
20815 cat >>conftest.$ac_ext <<_ACEOF
20816 /* end confdefs.h. */
20818 /* Override any GCC internal prototype to avoid an error.
20819 Use char because int might match the return type of a GCC
20820 builtin and then its argument prototype would still apply. */
20821 #ifdef __cplusplus
20822 extern "C"
20823 #endif
20824 char mit_des_cbc_encrypt ();
20826 main ()
20828 return mit_des_cbc_encrypt ();
20830 return 0;
20832 _ACEOF
20833 rm -f conftest.$ac_objext conftest$ac_exeext
20834 if { (ac_try="$ac_link"
20835 case "(($ac_try" in
20836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20837 *) ac_try_echo=$ac_try;;
20838 esac
20839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20840 (eval "$ac_link") 2>conftest.er1
20841 ac_status=$?
20842 grep -v '^ *+' conftest.er1 >conftest.err
20843 rm -f conftest.er1
20844 cat conftest.err >&5
20845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20846 (exit $ac_status); } && {
20847 test -z "$ac_c_werror_flag" ||
20848 test ! -s conftest.err
20849 } && test -s conftest$ac_exeext &&
20850 $as_test_x conftest$ac_exeext; then
20851 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20852 else
20853 echo "$as_me: failed program was:" >&5
20854 sed 's/^/| /' conftest.$ac_ext >&5
20856 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20860 conftest$ac_exeext conftest.$ac_ext
20861 LIBS=$ac_check_lib_save_LIBS
20863 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20864 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20865 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20866 cat >>confdefs.h <<_ACEOF
20867 #define HAVE_LIBCRYPTO 1
20868 _ACEOF
20870 LIBS="-lcrypto $LIBS"
20875 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20876 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20877 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20878 echo $ECHO_N "(cached) $ECHO_C" >&6
20879 else
20880 ac_check_lib_save_LIBS=$LIBS
20881 LIBS="-lkrb5 $LIBS"
20882 cat >conftest.$ac_ext <<_ACEOF
20883 /* confdefs.h. */
20884 _ACEOF
20885 cat confdefs.h >>conftest.$ac_ext
20886 cat >>conftest.$ac_ext <<_ACEOF
20887 /* end confdefs.h. */
20889 /* Override any GCC internal prototype to avoid an error.
20890 Use char because int might match the return type of a GCC
20891 builtin and then its argument prototype would still apply. */
20892 #ifdef __cplusplus
20893 extern "C"
20894 #endif
20895 char krb5_init_context ();
20897 main ()
20899 return krb5_init_context ();
20901 return 0;
20903 _ACEOF
20904 rm -f conftest.$ac_objext conftest$ac_exeext
20905 if { (ac_try="$ac_link"
20906 case "(($ac_try" in
20907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20908 *) ac_try_echo=$ac_try;;
20909 esac
20910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20911 (eval "$ac_link") 2>conftest.er1
20912 ac_status=$?
20913 grep -v '^ *+' conftest.er1 >conftest.err
20914 rm -f conftest.er1
20915 cat conftest.err >&5
20916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20917 (exit $ac_status); } && {
20918 test -z "$ac_c_werror_flag" ||
20919 test ! -s conftest.err
20920 } && test -s conftest$ac_exeext &&
20921 $as_test_x conftest$ac_exeext; then
20922 ac_cv_lib_krb5_krb5_init_context=yes
20923 else
20924 echo "$as_me: failed program was:" >&5
20925 sed 's/^/| /' conftest.$ac_ext >&5
20927 ac_cv_lib_krb5_krb5_init_context=no
20930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20931 conftest$ac_exeext conftest.$ac_ext
20932 LIBS=$ac_check_lib_save_LIBS
20934 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20935 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20936 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20937 cat >>confdefs.h <<_ACEOF
20938 #define HAVE_LIBKRB5 1
20939 _ACEOF
20941 LIBS="-lkrb5 $LIBS"
20945 if test "${with_kerberos5+set}" != set; then
20947 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20948 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20949 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20950 echo $ECHO_N "(cached) $ECHO_C" >&6
20951 else
20952 ac_check_lib_save_LIBS=$LIBS
20953 LIBS="-ldes425 $LIBS"
20954 cat >conftest.$ac_ext <<_ACEOF
20955 /* confdefs.h. */
20956 _ACEOF
20957 cat confdefs.h >>conftest.$ac_ext
20958 cat >>conftest.$ac_ext <<_ACEOF
20959 /* end confdefs.h. */
20961 /* Override any GCC internal prototype to avoid an error.
20962 Use char because int might match the return type of a GCC
20963 builtin and then its argument prototype would still apply. */
20964 #ifdef __cplusplus
20965 extern "C"
20966 #endif
20967 char des_cbc_encrypt ();
20969 main ()
20971 return des_cbc_encrypt ();
20973 return 0;
20975 _ACEOF
20976 rm -f conftest.$ac_objext conftest$ac_exeext
20977 if { (ac_try="$ac_link"
20978 case "(($ac_try" in
20979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20980 *) ac_try_echo=$ac_try;;
20981 esac
20982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20983 (eval "$ac_link") 2>conftest.er1
20984 ac_status=$?
20985 grep -v '^ *+' conftest.er1 >conftest.err
20986 rm -f conftest.er1
20987 cat conftest.err >&5
20988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20989 (exit $ac_status); } && {
20990 test -z "$ac_c_werror_flag" ||
20991 test ! -s conftest.err
20992 } && test -s conftest$ac_exeext &&
20993 $as_test_x conftest$ac_exeext; then
20994 ac_cv_lib_des425_des_cbc_encrypt=yes
20995 else
20996 echo "$as_me: failed program was:" >&5
20997 sed 's/^/| /' conftest.$ac_ext >&5
20999 ac_cv_lib_des425_des_cbc_encrypt=no
21002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21003 conftest$ac_exeext conftest.$ac_ext
21004 LIBS=$ac_check_lib_save_LIBS
21006 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
21007 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
21008 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
21009 cat >>confdefs.h <<_ACEOF
21010 #define HAVE_LIBDES425 1
21011 _ACEOF
21013 LIBS="-ldes425 $LIBS"
21015 else
21017 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
21018 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
21019 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
21020 echo $ECHO_N "(cached) $ECHO_C" >&6
21021 else
21022 ac_check_lib_save_LIBS=$LIBS
21023 LIBS="-ldes $LIBS"
21024 cat >conftest.$ac_ext <<_ACEOF
21025 /* confdefs.h. */
21026 _ACEOF
21027 cat confdefs.h >>conftest.$ac_ext
21028 cat >>conftest.$ac_ext <<_ACEOF
21029 /* end confdefs.h. */
21031 /* Override any GCC internal prototype to avoid an error.
21032 Use char because int might match the return type of a GCC
21033 builtin and then its argument prototype would still apply. */
21034 #ifdef __cplusplus
21035 extern "C"
21036 #endif
21037 char des_cbc_encrypt ();
21039 main ()
21041 return des_cbc_encrypt ();
21043 return 0;
21045 _ACEOF
21046 rm -f conftest.$ac_objext conftest$ac_exeext
21047 if { (ac_try="$ac_link"
21048 case "(($ac_try" in
21049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21050 *) ac_try_echo=$ac_try;;
21051 esac
21052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21053 (eval "$ac_link") 2>conftest.er1
21054 ac_status=$?
21055 grep -v '^ *+' conftest.er1 >conftest.err
21056 rm -f conftest.er1
21057 cat conftest.err >&5
21058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059 (exit $ac_status); } && {
21060 test -z "$ac_c_werror_flag" ||
21061 test ! -s conftest.err
21062 } && test -s conftest$ac_exeext &&
21063 $as_test_x conftest$ac_exeext; then
21064 ac_cv_lib_des_des_cbc_encrypt=yes
21065 else
21066 echo "$as_me: failed program was:" >&5
21067 sed 's/^/| /' conftest.$ac_ext >&5
21069 ac_cv_lib_des_des_cbc_encrypt=no
21072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21073 conftest$ac_exeext conftest.$ac_ext
21074 LIBS=$ac_check_lib_save_LIBS
21076 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
21077 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
21078 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
21079 cat >>confdefs.h <<_ACEOF
21080 #define HAVE_LIBDES 1
21081 _ACEOF
21083 LIBS="-ldes $LIBS"
21090 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
21091 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
21092 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
21093 echo $ECHO_N "(cached) $ECHO_C" >&6
21094 else
21095 ac_check_lib_save_LIBS=$LIBS
21096 LIBS="-lkrb4 $LIBS"
21097 cat >conftest.$ac_ext <<_ACEOF
21098 /* confdefs.h. */
21099 _ACEOF
21100 cat confdefs.h >>conftest.$ac_ext
21101 cat >>conftest.$ac_ext <<_ACEOF
21102 /* end confdefs.h. */
21104 /* Override any GCC internal prototype to avoid an error.
21105 Use char because int might match the return type of a GCC
21106 builtin and then its argument prototype would still apply. */
21107 #ifdef __cplusplus
21108 extern "C"
21109 #endif
21110 char krb_get_cred ();
21112 main ()
21114 return krb_get_cred ();
21116 return 0;
21118 _ACEOF
21119 rm -f conftest.$ac_objext conftest$ac_exeext
21120 if { (ac_try="$ac_link"
21121 case "(($ac_try" in
21122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21123 *) ac_try_echo=$ac_try;;
21124 esac
21125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21126 (eval "$ac_link") 2>conftest.er1
21127 ac_status=$?
21128 grep -v '^ *+' conftest.er1 >conftest.err
21129 rm -f conftest.er1
21130 cat conftest.err >&5
21131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21132 (exit $ac_status); } && {
21133 test -z "$ac_c_werror_flag" ||
21134 test ! -s conftest.err
21135 } && test -s conftest$ac_exeext &&
21136 $as_test_x conftest$ac_exeext; then
21137 ac_cv_lib_krb4_krb_get_cred=yes
21138 else
21139 echo "$as_me: failed program was:" >&5
21140 sed 's/^/| /' conftest.$ac_ext >&5
21142 ac_cv_lib_krb4_krb_get_cred=no
21145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21146 conftest$ac_exeext conftest.$ac_ext
21147 LIBS=$ac_check_lib_save_LIBS
21149 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
21150 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
21151 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
21152 cat >>confdefs.h <<_ACEOF
21153 #define HAVE_LIBKRB4 1
21154 _ACEOF
21156 LIBS="-lkrb4 $LIBS"
21158 else
21160 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
21161 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
21162 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
21163 echo $ECHO_N "(cached) $ECHO_C" >&6
21164 else
21165 ac_check_lib_save_LIBS=$LIBS
21166 LIBS="-lkrb $LIBS"
21167 cat >conftest.$ac_ext <<_ACEOF
21168 /* confdefs.h. */
21169 _ACEOF
21170 cat confdefs.h >>conftest.$ac_ext
21171 cat >>conftest.$ac_ext <<_ACEOF
21172 /* end confdefs.h. */
21174 /* Override any GCC internal prototype to avoid an error.
21175 Use char because int might match the return type of a GCC
21176 builtin and then its argument prototype would still apply. */
21177 #ifdef __cplusplus
21178 extern "C"
21179 #endif
21180 char krb_get_cred ();
21182 main ()
21184 return krb_get_cred ();
21186 return 0;
21188 _ACEOF
21189 rm -f conftest.$ac_objext conftest$ac_exeext
21190 if { (ac_try="$ac_link"
21191 case "(($ac_try" in
21192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21193 *) ac_try_echo=$ac_try;;
21194 esac
21195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21196 (eval "$ac_link") 2>conftest.er1
21197 ac_status=$?
21198 grep -v '^ *+' conftest.er1 >conftest.err
21199 rm -f conftest.er1
21200 cat conftest.err >&5
21201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202 (exit $ac_status); } && {
21203 test -z "$ac_c_werror_flag" ||
21204 test ! -s conftest.err
21205 } && test -s conftest$ac_exeext &&
21206 $as_test_x conftest$ac_exeext; then
21207 ac_cv_lib_krb_krb_get_cred=yes
21208 else
21209 echo "$as_me: failed program was:" >&5
21210 sed 's/^/| /' conftest.$ac_ext >&5
21212 ac_cv_lib_krb_krb_get_cred=no
21215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21216 conftest$ac_exeext conftest.$ac_ext
21217 LIBS=$ac_check_lib_save_LIBS
21219 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
21220 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
21221 if test $ac_cv_lib_krb_krb_get_cred = yes; then
21222 cat >>confdefs.h <<_ACEOF
21223 #define HAVE_LIBKRB 1
21224 _ACEOF
21226 LIBS="-lkrb $LIBS"
21234 if test "${with_kerberos5+set}" = set; then
21236 for ac_header in krb5.h
21238 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21240 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21243 echo $ECHO_N "(cached) $ECHO_C" >&6
21245 ac_res=`eval echo '${'$as_ac_Header'}'`
21246 { echo "$as_me:$LINENO: result: $ac_res" >&5
21247 echo "${ECHO_T}$ac_res" >&6; }
21248 else
21249 # Is the header compilable?
21250 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21251 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21252 cat >conftest.$ac_ext <<_ACEOF
21253 /* confdefs.h. */
21254 _ACEOF
21255 cat confdefs.h >>conftest.$ac_ext
21256 cat >>conftest.$ac_ext <<_ACEOF
21257 /* end confdefs.h. */
21258 $ac_includes_default
21259 #include <$ac_header>
21260 _ACEOF
21261 rm -f conftest.$ac_objext
21262 if { (ac_try="$ac_compile"
21263 case "(($ac_try" in
21264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21265 *) ac_try_echo=$ac_try;;
21266 esac
21267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21268 (eval "$ac_compile") 2>conftest.er1
21269 ac_status=$?
21270 grep -v '^ *+' conftest.er1 >conftest.err
21271 rm -f conftest.er1
21272 cat conftest.err >&5
21273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21274 (exit $ac_status); } && {
21275 test -z "$ac_c_werror_flag" ||
21276 test ! -s conftest.err
21277 } && test -s conftest.$ac_objext; then
21278 ac_header_compiler=yes
21279 else
21280 echo "$as_me: failed program was:" >&5
21281 sed 's/^/| /' conftest.$ac_ext >&5
21283 ac_header_compiler=no
21286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21287 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21288 echo "${ECHO_T}$ac_header_compiler" >&6; }
21290 # Is the header present?
21291 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21292 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21293 cat >conftest.$ac_ext <<_ACEOF
21294 /* confdefs.h. */
21295 _ACEOF
21296 cat confdefs.h >>conftest.$ac_ext
21297 cat >>conftest.$ac_ext <<_ACEOF
21298 /* end confdefs.h. */
21299 #include <$ac_header>
21300 _ACEOF
21301 if { (ac_try="$ac_cpp conftest.$ac_ext"
21302 case "(($ac_try" in
21303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21304 *) ac_try_echo=$ac_try;;
21305 esac
21306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21307 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21308 ac_status=$?
21309 grep -v '^ *+' conftest.er1 >conftest.err
21310 rm -f conftest.er1
21311 cat conftest.err >&5
21312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21313 (exit $ac_status); } >/dev/null && {
21314 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21315 test ! -s conftest.err
21316 }; then
21317 ac_header_preproc=yes
21318 else
21319 echo "$as_me: failed program was:" >&5
21320 sed 's/^/| /' conftest.$ac_ext >&5
21322 ac_header_preproc=no
21325 rm -f conftest.err conftest.$ac_ext
21326 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21327 echo "${ECHO_T}$ac_header_preproc" >&6; }
21329 # So? What about this header?
21330 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21331 yes:no: )
21332 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21333 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21334 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21335 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21336 ac_header_preproc=yes
21338 no:yes:* )
21339 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21340 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21341 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21342 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21343 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21344 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21345 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21346 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21348 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21349 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21350 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21353 esac
21354 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21357 echo $ECHO_N "(cached) $ECHO_C" >&6
21358 else
21359 eval "$as_ac_Header=\$ac_header_preproc"
21361 ac_res=`eval echo '${'$as_ac_Header'}'`
21362 { echo "$as_me:$LINENO: result: $ac_res" >&5
21363 echo "${ECHO_T}$ac_res" >&6; }
21366 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21367 cat >>confdefs.h <<_ACEOF
21368 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21369 _ACEOF
21373 done
21375 else
21377 for ac_header in des.h
21379 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21381 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21383 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21384 echo $ECHO_N "(cached) $ECHO_C" >&6
21386 ac_res=`eval echo '${'$as_ac_Header'}'`
21387 { echo "$as_me:$LINENO: result: $ac_res" >&5
21388 echo "${ECHO_T}$ac_res" >&6; }
21389 else
21390 # Is the header compilable?
21391 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21392 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21393 cat >conftest.$ac_ext <<_ACEOF
21394 /* confdefs.h. */
21395 _ACEOF
21396 cat confdefs.h >>conftest.$ac_ext
21397 cat >>conftest.$ac_ext <<_ACEOF
21398 /* end confdefs.h. */
21399 $ac_includes_default
21400 #include <$ac_header>
21401 _ACEOF
21402 rm -f conftest.$ac_objext
21403 if { (ac_try="$ac_compile"
21404 case "(($ac_try" in
21405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21406 *) ac_try_echo=$ac_try;;
21407 esac
21408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21409 (eval "$ac_compile") 2>conftest.er1
21410 ac_status=$?
21411 grep -v '^ *+' conftest.er1 >conftest.err
21412 rm -f conftest.er1
21413 cat conftest.err >&5
21414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21415 (exit $ac_status); } && {
21416 test -z "$ac_c_werror_flag" ||
21417 test ! -s conftest.err
21418 } && test -s conftest.$ac_objext; then
21419 ac_header_compiler=yes
21420 else
21421 echo "$as_me: failed program was:" >&5
21422 sed 's/^/| /' conftest.$ac_ext >&5
21424 ac_header_compiler=no
21427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21428 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21429 echo "${ECHO_T}$ac_header_compiler" >&6; }
21431 # Is the header present?
21432 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21433 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21434 cat >conftest.$ac_ext <<_ACEOF
21435 /* confdefs.h. */
21436 _ACEOF
21437 cat confdefs.h >>conftest.$ac_ext
21438 cat >>conftest.$ac_ext <<_ACEOF
21439 /* end confdefs.h. */
21440 #include <$ac_header>
21441 _ACEOF
21442 if { (ac_try="$ac_cpp conftest.$ac_ext"
21443 case "(($ac_try" in
21444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21445 *) ac_try_echo=$ac_try;;
21446 esac
21447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21448 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21449 ac_status=$?
21450 grep -v '^ *+' conftest.er1 >conftest.err
21451 rm -f conftest.er1
21452 cat conftest.err >&5
21453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21454 (exit $ac_status); } >/dev/null && {
21455 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21456 test ! -s conftest.err
21457 }; then
21458 ac_header_preproc=yes
21459 else
21460 echo "$as_me: failed program was:" >&5
21461 sed 's/^/| /' conftest.$ac_ext >&5
21463 ac_header_preproc=no
21466 rm -f conftest.err conftest.$ac_ext
21467 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21468 echo "${ECHO_T}$ac_header_preproc" >&6; }
21470 # So? What about this header?
21471 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21472 yes:no: )
21473 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21474 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21475 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21476 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21477 ac_header_preproc=yes
21479 no:yes:* )
21480 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21481 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21482 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21483 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21484 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21485 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21486 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21487 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21488 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21489 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21490 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21491 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21494 esac
21495 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21498 echo $ECHO_N "(cached) $ECHO_C" >&6
21499 else
21500 eval "$as_ac_Header=\$ac_header_preproc"
21502 ac_res=`eval echo '${'$as_ac_Header'}'`
21503 { echo "$as_me:$LINENO: result: $ac_res" >&5
21504 echo "${ECHO_T}$ac_res" >&6; }
21507 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21508 cat >>confdefs.h <<_ACEOF
21509 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21510 _ACEOF
21512 else
21514 for ac_header in kerberosIV/des.h
21516 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21518 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21521 echo $ECHO_N "(cached) $ECHO_C" >&6
21523 ac_res=`eval echo '${'$as_ac_Header'}'`
21524 { echo "$as_me:$LINENO: result: $ac_res" >&5
21525 echo "${ECHO_T}$ac_res" >&6; }
21526 else
21527 # Is the header compilable?
21528 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21529 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21530 cat >conftest.$ac_ext <<_ACEOF
21531 /* confdefs.h. */
21532 _ACEOF
21533 cat confdefs.h >>conftest.$ac_ext
21534 cat >>conftest.$ac_ext <<_ACEOF
21535 /* end confdefs.h. */
21536 $ac_includes_default
21537 #include <$ac_header>
21538 _ACEOF
21539 rm -f conftest.$ac_objext
21540 if { (ac_try="$ac_compile"
21541 case "(($ac_try" in
21542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21543 *) ac_try_echo=$ac_try;;
21544 esac
21545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21546 (eval "$ac_compile") 2>conftest.er1
21547 ac_status=$?
21548 grep -v '^ *+' conftest.er1 >conftest.err
21549 rm -f conftest.er1
21550 cat conftest.err >&5
21551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21552 (exit $ac_status); } && {
21553 test -z "$ac_c_werror_flag" ||
21554 test ! -s conftest.err
21555 } && test -s conftest.$ac_objext; then
21556 ac_header_compiler=yes
21557 else
21558 echo "$as_me: failed program was:" >&5
21559 sed 's/^/| /' conftest.$ac_ext >&5
21561 ac_header_compiler=no
21564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21565 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21566 echo "${ECHO_T}$ac_header_compiler" >&6; }
21568 # Is the header present?
21569 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21570 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21571 cat >conftest.$ac_ext <<_ACEOF
21572 /* confdefs.h. */
21573 _ACEOF
21574 cat confdefs.h >>conftest.$ac_ext
21575 cat >>conftest.$ac_ext <<_ACEOF
21576 /* end confdefs.h. */
21577 #include <$ac_header>
21578 _ACEOF
21579 if { (ac_try="$ac_cpp conftest.$ac_ext"
21580 case "(($ac_try" in
21581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21582 *) ac_try_echo=$ac_try;;
21583 esac
21584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21585 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21586 ac_status=$?
21587 grep -v '^ *+' conftest.er1 >conftest.err
21588 rm -f conftest.er1
21589 cat conftest.err >&5
21590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591 (exit $ac_status); } >/dev/null && {
21592 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21593 test ! -s conftest.err
21594 }; then
21595 ac_header_preproc=yes
21596 else
21597 echo "$as_me: failed program was:" >&5
21598 sed 's/^/| /' conftest.$ac_ext >&5
21600 ac_header_preproc=no
21603 rm -f conftest.err conftest.$ac_ext
21604 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21605 echo "${ECHO_T}$ac_header_preproc" >&6; }
21607 # So? What about this header?
21608 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21609 yes:no: )
21610 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21611 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21612 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21613 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21614 ac_header_preproc=yes
21616 no:yes:* )
21617 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21618 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21619 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21620 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21621 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21622 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21623 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21624 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21625 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21626 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21627 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21628 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21631 esac
21632 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21634 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21635 echo $ECHO_N "(cached) $ECHO_C" >&6
21636 else
21637 eval "$as_ac_Header=\$ac_header_preproc"
21639 ac_res=`eval echo '${'$as_ac_Header'}'`
21640 { echo "$as_me:$LINENO: result: $ac_res" >&5
21641 echo "${ECHO_T}$ac_res" >&6; }
21644 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21645 cat >>confdefs.h <<_ACEOF
21646 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21647 _ACEOF
21649 else
21651 for ac_header in kerberos/des.h
21653 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21655 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21658 echo $ECHO_N "(cached) $ECHO_C" >&6
21660 ac_res=`eval echo '${'$as_ac_Header'}'`
21661 { echo "$as_me:$LINENO: result: $ac_res" >&5
21662 echo "${ECHO_T}$ac_res" >&6; }
21663 else
21664 # Is the header compilable?
21665 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21666 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21667 cat >conftest.$ac_ext <<_ACEOF
21668 /* confdefs.h. */
21669 _ACEOF
21670 cat confdefs.h >>conftest.$ac_ext
21671 cat >>conftest.$ac_ext <<_ACEOF
21672 /* end confdefs.h. */
21673 $ac_includes_default
21674 #include <$ac_header>
21675 _ACEOF
21676 rm -f conftest.$ac_objext
21677 if { (ac_try="$ac_compile"
21678 case "(($ac_try" in
21679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21680 *) ac_try_echo=$ac_try;;
21681 esac
21682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21683 (eval "$ac_compile") 2>conftest.er1
21684 ac_status=$?
21685 grep -v '^ *+' conftest.er1 >conftest.err
21686 rm -f conftest.er1
21687 cat conftest.err >&5
21688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21689 (exit $ac_status); } && {
21690 test -z "$ac_c_werror_flag" ||
21691 test ! -s conftest.err
21692 } && test -s conftest.$ac_objext; then
21693 ac_header_compiler=yes
21694 else
21695 echo "$as_me: failed program was:" >&5
21696 sed 's/^/| /' conftest.$ac_ext >&5
21698 ac_header_compiler=no
21701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21702 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21703 echo "${ECHO_T}$ac_header_compiler" >&6; }
21705 # Is the header present?
21706 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21707 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21708 cat >conftest.$ac_ext <<_ACEOF
21709 /* confdefs.h. */
21710 _ACEOF
21711 cat confdefs.h >>conftest.$ac_ext
21712 cat >>conftest.$ac_ext <<_ACEOF
21713 /* end confdefs.h. */
21714 #include <$ac_header>
21715 _ACEOF
21716 if { (ac_try="$ac_cpp conftest.$ac_ext"
21717 case "(($ac_try" in
21718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21719 *) ac_try_echo=$ac_try;;
21720 esac
21721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21723 ac_status=$?
21724 grep -v '^ *+' conftest.er1 >conftest.err
21725 rm -f conftest.er1
21726 cat conftest.err >&5
21727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21728 (exit $ac_status); } >/dev/null && {
21729 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21730 test ! -s conftest.err
21731 }; then
21732 ac_header_preproc=yes
21733 else
21734 echo "$as_me: failed program was:" >&5
21735 sed 's/^/| /' conftest.$ac_ext >&5
21737 ac_header_preproc=no
21740 rm -f conftest.err conftest.$ac_ext
21741 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21742 echo "${ECHO_T}$ac_header_preproc" >&6; }
21744 # So? What about this header?
21745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21746 yes:no: )
21747 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21748 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21750 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21751 ac_header_preproc=yes
21753 no:yes:* )
21754 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21755 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21756 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21757 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21758 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21759 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21760 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21761 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21763 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21764 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21765 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21768 esac
21769 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21771 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21772 echo $ECHO_N "(cached) $ECHO_C" >&6
21773 else
21774 eval "$as_ac_Header=\$ac_header_preproc"
21776 ac_res=`eval echo '${'$as_ac_Header'}'`
21777 { echo "$as_me:$LINENO: result: $ac_res" >&5
21778 echo "${ECHO_T}$ac_res" >&6; }
21781 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21782 cat >>confdefs.h <<_ACEOF
21783 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21784 _ACEOF
21788 done
21792 done
21796 done
21799 for ac_header in krb.h
21801 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21803 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21805 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21806 echo $ECHO_N "(cached) $ECHO_C" >&6
21808 ac_res=`eval echo '${'$as_ac_Header'}'`
21809 { echo "$as_me:$LINENO: result: $ac_res" >&5
21810 echo "${ECHO_T}$ac_res" >&6; }
21811 else
21812 # Is the header compilable?
21813 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21814 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21815 cat >conftest.$ac_ext <<_ACEOF
21816 /* confdefs.h. */
21817 _ACEOF
21818 cat confdefs.h >>conftest.$ac_ext
21819 cat >>conftest.$ac_ext <<_ACEOF
21820 /* end confdefs.h. */
21821 $ac_includes_default
21822 #include <$ac_header>
21823 _ACEOF
21824 rm -f conftest.$ac_objext
21825 if { (ac_try="$ac_compile"
21826 case "(($ac_try" in
21827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21828 *) ac_try_echo=$ac_try;;
21829 esac
21830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21831 (eval "$ac_compile") 2>conftest.er1
21832 ac_status=$?
21833 grep -v '^ *+' conftest.er1 >conftest.err
21834 rm -f conftest.er1
21835 cat conftest.err >&5
21836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21837 (exit $ac_status); } && {
21838 test -z "$ac_c_werror_flag" ||
21839 test ! -s conftest.err
21840 } && test -s conftest.$ac_objext; then
21841 ac_header_compiler=yes
21842 else
21843 echo "$as_me: failed program was:" >&5
21844 sed 's/^/| /' conftest.$ac_ext >&5
21846 ac_header_compiler=no
21849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21850 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21851 echo "${ECHO_T}$ac_header_compiler" >&6; }
21853 # Is the header present?
21854 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21855 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21856 cat >conftest.$ac_ext <<_ACEOF
21857 /* confdefs.h. */
21858 _ACEOF
21859 cat confdefs.h >>conftest.$ac_ext
21860 cat >>conftest.$ac_ext <<_ACEOF
21861 /* end confdefs.h. */
21862 #include <$ac_header>
21863 _ACEOF
21864 if { (ac_try="$ac_cpp conftest.$ac_ext"
21865 case "(($ac_try" in
21866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21867 *) ac_try_echo=$ac_try;;
21868 esac
21869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21870 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21871 ac_status=$?
21872 grep -v '^ *+' conftest.er1 >conftest.err
21873 rm -f conftest.er1
21874 cat conftest.err >&5
21875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21876 (exit $ac_status); } >/dev/null && {
21877 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21878 test ! -s conftest.err
21879 }; then
21880 ac_header_preproc=yes
21881 else
21882 echo "$as_me: failed program was:" >&5
21883 sed 's/^/| /' conftest.$ac_ext >&5
21885 ac_header_preproc=no
21888 rm -f conftest.err conftest.$ac_ext
21889 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21890 echo "${ECHO_T}$ac_header_preproc" >&6; }
21892 # So? What about this header?
21893 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21894 yes:no: )
21895 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21896 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21898 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21899 ac_header_preproc=yes
21901 no:yes:* )
21902 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21903 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21904 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21905 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21906 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21907 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21908 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21909 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21910 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21911 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21912 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21913 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21916 esac
21917 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21920 echo $ECHO_N "(cached) $ECHO_C" >&6
21921 else
21922 eval "$as_ac_Header=\$ac_header_preproc"
21924 ac_res=`eval echo '${'$as_ac_Header'}'`
21925 { echo "$as_me:$LINENO: result: $ac_res" >&5
21926 echo "${ECHO_T}$ac_res" >&6; }
21929 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21930 cat >>confdefs.h <<_ACEOF
21931 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21932 _ACEOF
21934 else
21936 for ac_header in kerberosIV/krb.h
21938 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21940 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21943 echo $ECHO_N "(cached) $ECHO_C" >&6
21945 ac_res=`eval echo '${'$as_ac_Header'}'`
21946 { echo "$as_me:$LINENO: result: $ac_res" >&5
21947 echo "${ECHO_T}$ac_res" >&6; }
21948 else
21949 # Is the header compilable?
21950 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21951 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21952 cat >conftest.$ac_ext <<_ACEOF
21953 /* confdefs.h. */
21954 _ACEOF
21955 cat confdefs.h >>conftest.$ac_ext
21956 cat >>conftest.$ac_ext <<_ACEOF
21957 /* end confdefs.h. */
21958 $ac_includes_default
21959 #include <$ac_header>
21960 _ACEOF
21961 rm -f conftest.$ac_objext
21962 if { (ac_try="$ac_compile"
21963 case "(($ac_try" in
21964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21965 *) ac_try_echo=$ac_try;;
21966 esac
21967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21968 (eval "$ac_compile") 2>conftest.er1
21969 ac_status=$?
21970 grep -v '^ *+' conftest.er1 >conftest.err
21971 rm -f conftest.er1
21972 cat conftest.err >&5
21973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21974 (exit $ac_status); } && {
21975 test -z "$ac_c_werror_flag" ||
21976 test ! -s conftest.err
21977 } && test -s conftest.$ac_objext; then
21978 ac_header_compiler=yes
21979 else
21980 echo "$as_me: failed program was:" >&5
21981 sed 's/^/| /' conftest.$ac_ext >&5
21983 ac_header_compiler=no
21986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21987 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21988 echo "${ECHO_T}$ac_header_compiler" >&6; }
21990 # Is the header present?
21991 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21992 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21993 cat >conftest.$ac_ext <<_ACEOF
21994 /* confdefs.h. */
21995 _ACEOF
21996 cat confdefs.h >>conftest.$ac_ext
21997 cat >>conftest.$ac_ext <<_ACEOF
21998 /* end confdefs.h. */
21999 #include <$ac_header>
22000 _ACEOF
22001 if { (ac_try="$ac_cpp conftest.$ac_ext"
22002 case "(($ac_try" in
22003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22004 *) ac_try_echo=$ac_try;;
22005 esac
22006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22007 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22008 ac_status=$?
22009 grep -v '^ *+' conftest.er1 >conftest.err
22010 rm -f conftest.er1
22011 cat conftest.err >&5
22012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013 (exit $ac_status); } >/dev/null && {
22014 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22015 test ! -s conftest.err
22016 }; then
22017 ac_header_preproc=yes
22018 else
22019 echo "$as_me: failed program was:" >&5
22020 sed 's/^/| /' conftest.$ac_ext >&5
22022 ac_header_preproc=no
22025 rm -f conftest.err conftest.$ac_ext
22026 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22027 echo "${ECHO_T}$ac_header_preproc" >&6; }
22029 # So? What about this header?
22030 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22031 yes:no: )
22032 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22033 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22035 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22036 ac_header_preproc=yes
22038 no:yes:* )
22039 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22040 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22041 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22042 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22043 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22044 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22045 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22046 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22048 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22049 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22050 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22053 esac
22054 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22057 echo $ECHO_N "(cached) $ECHO_C" >&6
22058 else
22059 eval "$as_ac_Header=\$ac_header_preproc"
22061 ac_res=`eval echo '${'$as_ac_Header'}'`
22062 { echo "$as_me:$LINENO: result: $ac_res" >&5
22063 echo "${ECHO_T}$ac_res" >&6; }
22066 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22067 cat >>confdefs.h <<_ACEOF
22068 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22069 _ACEOF
22071 else
22073 for ac_header in kerberos/krb.h
22075 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22076 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22077 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22080 echo $ECHO_N "(cached) $ECHO_C" >&6
22082 ac_res=`eval echo '${'$as_ac_Header'}'`
22083 { echo "$as_me:$LINENO: result: $ac_res" >&5
22084 echo "${ECHO_T}$ac_res" >&6; }
22085 else
22086 # Is the header compilable?
22087 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22088 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22089 cat >conftest.$ac_ext <<_ACEOF
22090 /* confdefs.h. */
22091 _ACEOF
22092 cat confdefs.h >>conftest.$ac_ext
22093 cat >>conftest.$ac_ext <<_ACEOF
22094 /* end confdefs.h. */
22095 $ac_includes_default
22096 #include <$ac_header>
22097 _ACEOF
22098 rm -f conftest.$ac_objext
22099 if { (ac_try="$ac_compile"
22100 case "(($ac_try" in
22101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22102 *) ac_try_echo=$ac_try;;
22103 esac
22104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22105 (eval "$ac_compile") 2>conftest.er1
22106 ac_status=$?
22107 grep -v '^ *+' conftest.er1 >conftest.err
22108 rm -f conftest.er1
22109 cat conftest.err >&5
22110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111 (exit $ac_status); } && {
22112 test -z "$ac_c_werror_flag" ||
22113 test ! -s conftest.err
22114 } && test -s conftest.$ac_objext; then
22115 ac_header_compiler=yes
22116 else
22117 echo "$as_me: failed program was:" >&5
22118 sed 's/^/| /' conftest.$ac_ext >&5
22120 ac_header_compiler=no
22123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22124 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22125 echo "${ECHO_T}$ac_header_compiler" >&6; }
22127 # Is the header present?
22128 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22129 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22130 cat >conftest.$ac_ext <<_ACEOF
22131 /* confdefs.h. */
22132 _ACEOF
22133 cat confdefs.h >>conftest.$ac_ext
22134 cat >>conftest.$ac_ext <<_ACEOF
22135 /* end confdefs.h. */
22136 #include <$ac_header>
22137 _ACEOF
22138 if { (ac_try="$ac_cpp conftest.$ac_ext"
22139 case "(($ac_try" in
22140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22141 *) ac_try_echo=$ac_try;;
22142 esac
22143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22144 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22145 ac_status=$?
22146 grep -v '^ *+' conftest.er1 >conftest.err
22147 rm -f conftest.er1
22148 cat conftest.err >&5
22149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22150 (exit $ac_status); } >/dev/null && {
22151 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22152 test ! -s conftest.err
22153 }; then
22154 ac_header_preproc=yes
22155 else
22156 echo "$as_me: failed program was:" >&5
22157 sed 's/^/| /' conftest.$ac_ext >&5
22159 ac_header_preproc=no
22162 rm -f conftest.err conftest.$ac_ext
22163 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22164 echo "${ECHO_T}$ac_header_preproc" >&6; }
22166 # So? What about this header?
22167 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22168 yes:no: )
22169 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22170 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22172 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22173 ac_header_preproc=yes
22175 no:yes:* )
22176 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22177 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22178 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22179 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22180 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22181 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22182 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22183 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22185 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22186 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22187 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22190 esac
22191 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22193 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22194 echo $ECHO_N "(cached) $ECHO_C" >&6
22195 else
22196 eval "$as_ac_Header=\$ac_header_preproc"
22198 ac_res=`eval echo '${'$as_ac_Header'}'`
22199 { echo "$as_me:$LINENO: result: $ac_res" >&5
22200 echo "${ECHO_T}$ac_res" >&6; }
22203 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22204 cat >>confdefs.h <<_ACEOF
22205 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22206 _ACEOF
22210 done
22214 done
22218 done
22222 for ac_header in com_err.h
22224 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22226 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22229 echo $ECHO_N "(cached) $ECHO_C" >&6
22231 ac_res=`eval echo '${'$as_ac_Header'}'`
22232 { echo "$as_me:$LINENO: result: $ac_res" >&5
22233 echo "${ECHO_T}$ac_res" >&6; }
22234 else
22235 # Is the header compilable?
22236 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22237 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22238 cat >conftest.$ac_ext <<_ACEOF
22239 /* confdefs.h. */
22240 _ACEOF
22241 cat confdefs.h >>conftest.$ac_ext
22242 cat >>conftest.$ac_ext <<_ACEOF
22243 /* end confdefs.h. */
22244 $ac_includes_default
22245 #include <$ac_header>
22246 _ACEOF
22247 rm -f conftest.$ac_objext
22248 if { (ac_try="$ac_compile"
22249 case "(($ac_try" in
22250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22251 *) ac_try_echo=$ac_try;;
22252 esac
22253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22254 (eval "$ac_compile") 2>conftest.er1
22255 ac_status=$?
22256 grep -v '^ *+' conftest.er1 >conftest.err
22257 rm -f conftest.er1
22258 cat conftest.err >&5
22259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22260 (exit $ac_status); } && {
22261 test -z "$ac_c_werror_flag" ||
22262 test ! -s conftest.err
22263 } && test -s conftest.$ac_objext; then
22264 ac_header_compiler=yes
22265 else
22266 echo "$as_me: failed program was:" >&5
22267 sed 's/^/| /' conftest.$ac_ext >&5
22269 ac_header_compiler=no
22272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22273 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22274 echo "${ECHO_T}$ac_header_compiler" >&6; }
22276 # Is the header present?
22277 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22278 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22279 cat >conftest.$ac_ext <<_ACEOF
22280 /* confdefs.h. */
22281 _ACEOF
22282 cat confdefs.h >>conftest.$ac_ext
22283 cat >>conftest.$ac_ext <<_ACEOF
22284 /* end confdefs.h. */
22285 #include <$ac_header>
22286 _ACEOF
22287 if { (ac_try="$ac_cpp conftest.$ac_ext"
22288 case "(($ac_try" in
22289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22290 *) ac_try_echo=$ac_try;;
22291 esac
22292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22293 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22294 ac_status=$?
22295 grep -v '^ *+' conftest.er1 >conftest.err
22296 rm -f conftest.er1
22297 cat conftest.err >&5
22298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22299 (exit $ac_status); } >/dev/null && {
22300 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22301 test ! -s conftest.err
22302 }; then
22303 ac_header_preproc=yes
22304 else
22305 echo "$as_me: failed program was:" >&5
22306 sed 's/^/| /' conftest.$ac_ext >&5
22308 ac_header_preproc=no
22311 rm -f conftest.err conftest.$ac_ext
22312 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22313 echo "${ECHO_T}$ac_header_preproc" >&6; }
22315 # So? What about this header?
22316 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22317 yes:no: )
22318 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22319 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22320 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22321 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22322 ac_header_preproc=yes
22324 no:yes:* )
22325 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22326 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22327 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22328 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22329 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22330 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22331 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22332 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22333 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22334 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22335 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22336 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22339 esac
22340 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22343 echo $ECHO_N "(cached) $ECHO_C" >&6
22344 else
22345 eval "$as_ac_Header=\$ac_header_preproc"
22347 ac_res=`eval echo '${'$as_ac_Header'}'`
22348 { echo "$as_me:$LINENO: result: $ac_res" >&5
22349 echo "${ECHO_T}$ac_res" >&6; }
22352 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22353 cat >>confdefs.h <<_ACEOF
22354 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22355 _ACEOF
22359 done
22363 # Solaris requires -lintl if you want strerror (which calls dgettext)
22364 # to return localized messages.
22366 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
22367 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
22368 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
22369 echo $ECHO_N "(cached) $ECHO_C" >&6
22370 else
22371 ac_check_lib_save_LIBS=$LIBS
22372 LIBS="-lintl $LIBS"
22373 cat >conftest.$ac_ext <<_ACEOF
22374 /* confdefs.h. */
22375 _ACEOF
22376 cat confdefs.h >>conftest.$ac_ext
22377 cat >>conftest.$ac_ext <<_ACEOF
22378 /* end confdefs.h. */
22380 /* Override any GCC internal prototype to avoid an error.
22381 Use char because int might match the return type of a GCC
22382 builtin and then its argument prototype would still apply. */
22383 #ifdef __cplusplus
22384 extern "C"
22385 #endif
22386 char dgettext ();
22388 main ()
22390 return dgettext ();
22392 return 0;
22394 _ACEOF
22395 rm -f conftest.$ac_objext conftest$ac_exeext
22396 if { (ac_try="$ac_link"
22397 case "(($ac_try" in
22398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22399 *) ac_try_echo=$ac_try;;
22400 esac
22401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22402 (eval "$ac_link") 2>conftest.er1
22403 ac_status=$?
22404 grep -v '^ *+' conftest.er1 >conftest.err
22405 rm -f conftest.er1
22406 cat conftest.err >&5
22407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22408 (exit $ac_status); } && {
22409 test -z "$ac_c_werror_flag" ||
22410 test ! -s conftest.err
22411 } && test -s conftest$ac_exeext &&
22412 $as_test_x conftest$ac_exeext; then
22413 ac_cv_lib_intl_dgettext=yes
22414 else
22415 echo "$as_me: failed program was:" >&5
22416 sed 's/^/| /' conftest.$ac_ext >&5
22418 ac_cv_lib_intl_dgettext=no
22421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22422 conftest$ac_exeext conftest.$ac_ext
22423 LIBS=$ac_check_lib_save_LIBS
22425 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
22426 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22427 if test $ac_cv_lib_intl_dgettext = yes; then
22428 cat >>confdefs.h <<_ACEOF
22429 #define HAVE_LIBINTL 1
22430 _ACEOF
22432 LIBS="-lintl $LIBS"
22437 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
22438 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
22439 if test "${emacs_cv_localtime_cache+set}" = set; then
22440 echo $ECHO_N "(cached) $ECHO_C" >&6
22441 else
22442 if test x$ac_cv_func_tzset = xyes; then
22443 if test "$cross_compiling" = yes; then
22444 # If we have tzset, assume the worst when cross-compiling.
22445 emacs_cv_localtime_cache=yes
22446 else
22447 cat >conftest.$ac_ext <<_ACEOF
22448 /* confdefs.h. */
22449 _ACEOF
22450 cat confdefs.h >>conftest.$ac_ext
22451 cat >>conftest.$ac_ext <<_ACEOF
22452 /* end confdefs.h. */
22453 #include <time.h>
22454 extern char **environ;
22455 unset_TZ ()
22457 char **from, **to;
22458 for (to = from = environ; (*to = *from); from++)
22459 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22460 to++;
22462 char TZ_GMT0[] = "TZ=GMT0";
22463 char TZ_PST8[] = "TZ=PST8";
22464 main()
22466 time_t now = time ((time_t *) 0);
22467 int hour_GMT0, hour_unset;
22468 if (putenv (TZ_GMT0) != 0)
22469 exit (1);
22470 hour_GMT0 = localtime (&now)->tm_hour;
22471 unset_TZ ();
22472 hour_unset = localtime (&now)->tm_hour;
22473 if (putenv (TZ_PST8) != 0)
22474 exit (1);
22475 if (localtime (&now)->tm_hour == hour_GMT0)
22476 exit (1);
22477 unset_TZ ();
22478 if (localtime (&now)->tm_hour != hour_unset)
22479 exit (1);
22480 exit (0);
22482 _ACEOF
22483 rm -f conftest$ac_exeext
22484 if { (ac_try="$ac_link"
22485 case "(($ac_try" in
22486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22487 *) ac_try_echo=$ac_try;;
22488 esac
22489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22490 (eval "$ac_link") 2>&5
22491 ac_status=$?
22492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22493 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22494 { (case "(($ac_try" in
22495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22496 *) ac_try_echo=$ac_try;;
22497 esac
22498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22499 (eval "$ac_try") 2>&5
22500 ac_status=$?
22501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22502 (exit $ac_status); }; }; then
22503 emacs_cv_localtime_cache=no
22504 else
22505 echo "$as_me: program exited with status $ac_status" >&5
22506 echo "$as_me: failed program was:" >&5
22507 sed 's/^/| /' conftest.$ac_ext >&5
22509 ( exit $ac_status )
22510 emacs_cv_localtime_cache=yes
22512 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22516 else
22517 # If we lack tzset, report that localtime does not cache TZ,
22518 # since we can't invalidate the cache if we don't have tzset.
22519 emacs_cv_localtime_cache=no
22522 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
22523 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22524 if test $emacs_cv_localtime_cache = yes; then
22526 cat >>confdefs.h <<\_ACEOF
22527 #define LOCALTIME_CACHE 1
22528 _ACEOF
22532 if test "x$HAVE_TIMEVAL" = xyes; then
22534 for ac_func in gettimeofday
22536 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22537 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22538 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22539 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22540 echo $ECHO_N "(cached) $ECHO_C" >&6
22541 else
22542 cat >conftest.$ac_ext <<_ACEOF
22543 /* confdefs.h. */
22544 _ACEOF
22545 cat confdefs.h >>conftest.$ac_ext
22546 cat >>conftest.$ac_ext <<_ACEOF
22547 /* end confdefs.h. */
22548 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22549 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22550 #define $ac_func innocuous_$ac_func
22552 /* System header to define __stub macros and hopefully few prototypes,
22553 which can conflict with char $ac_func (); below.
22554 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22555 <limits.h> exists even on freestanding compilers. */
22557 #ifdef __STDC__
22558 # include <limits.h>
22559 #else
22560 # include <assert.h>
22561 #endif
22563 #undef $ac_func
22565 /* Override any GCC internal prototype to avoid an error.
22566 Use char because int might match the return type of a GCC
22567 builtin and then its argument prototype would still apply. */
22568 #ifdef __cplusplus
22569 extern "C"
22570 #endif
22571 char $ac_func ();
22572 /* The GNU C library defines this for functions which it implements
22573 to always fail with ENOSYS. Some functions are actually named
22574 something starting with __ and the normal name is an alias. */
22575 #if defined __stub_$ac_func || defined __stub___$ac_func
22576 choke me
22577 #endif
22580 main ()
22582 return $ac_func ();
22584 return 0;
22586 _ACEOF
22587 rm -f conftest.$ac_objext conftest$ac_exeext
22588 if { (ac_try="$ac_link"
22589 case "(($ac_try" in
22590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22591 *) ac_try_echo=$ac_try;;
22592 esac
22593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22594 (eval "$ac_link") 2>conftest.er1
22595 ac_status=$?
22596 grep -v '^ *+' conftest.er1 >conftest.err
22597 rm -f conftest.er1
22598 cat conftest.err >&5
22599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22600 (exit $ac_status); } && {
22601 test -z "$ac_c_werror_flag" ||
22602 test ! -s conftest.err
22603 } && test -s conftest$ac_exeext &&
22604 $as_test_x conftest$ac_exeext; then
22605 eval "$as_ac_var=yes"
22606 else
22607 echo "$as_me: failed program was:" >&5
22608 sed 's/^/| /' conftest.$ac_ext >&5
22610 eval "$as_ac_var=no"
22613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22614 conftest$ac_exeext conftest.$ac_ext
22616 ac_res=`eval echo '${'$as_ac_var'}'`
22617 { echo "$as_me:$LINENO: result: $ac_res" >&5
22618 echo "${ECHO_T}$ac_res" >&6; }
22619 if test `eval echo '${'$as_ac_var'}'` = yes; then
22620 cat >>confdefs.h <<_ACEOF
22621 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22622 _ACEOF
22625 done
22627 if test $ac_cv_func_gettimeofday = yes; then
22628 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
22629 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
22630 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22631 echo $ECHO_N "(cached) $ECHO_C" >&6
22632 else
22633 cat >conftest.$ac_ext <<_ACEOF
22634 /* confdefs.h. */
22635 _ACEOF
22636 cat confdefs.h >>conftest.$ac_ext
22637 cat >>conftest.$ac_ext <<_ACEOF
22638 /* end confdefs.h. */
22640 #ifdef TIME_WITH_SYS_TIME
22641 #include <sys/time.h>
22642 #include <time.h>
22643 #else
22644 #ifdef HAVE_SYS_TIME_H
22645 #include <sys/time.h>
22646 #else
22647 #include <time.h>
22648 #endif
22649 #endif
22651 main ()
22653 struct timeval time;
22654 gettimeofday (&time, 0);
22656 return 0;
22658 _ACEOF
22659 rm -f conftest.$ac_objext
22660 if { (ac_try="$ac_compile"
22661 case "(($ac_try" in
22662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22663 *) ac_try_echo=$ac_try;;
22664 esac
22665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22666 (eval "$ac_compile") 2>conftest.er1
22667 ac_status=$?
22668 grep -v '^ *+' conftest.er1 >conftest.err
22669 rm -f conftest.er1
22670 cat conftest.err >&5
22671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22672 (exit $ac_status); } && {
22673 test -z "$ac_c_werror_flag" ||
22674 test ! -s conftest.err
22675 } && test -s conftest.$ac_objext; then
22676 emacs_cv_gettimeofday_two_arguments=yes
22677 else
22678 echo "$as_me: failed program was:" >&5
22679 sed 's/^/| /' conftest.$ac_ext >&5
22681 emacs_cv_gettimeofday_two_arguments=no
22684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22686 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
22687 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22688 if test $emacs_cv_gettimeofday_two_arguments = no; then
22690 cat >>confdefs.h <<\_ACEOF
22691 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22692 _ACEOF
22698 ok_so_far=yes
22699 { echo "$as_me:$LINENO: checking for socket" >&5
22700 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
22701 if test "${ac_cv_func_socket+set}" = set; then
22702 echo $ECHO_N "(cached) $ECHO_C" >&6
22703 else
22704 cat >conftest.$ac_ext <<_ACEOF
22705 /* confdefs.h. */
22706 _ACEOF
22707 cat confdefs.h >>conftest.$ac_ext
22708 cat >>conftest.$ac_ext <<_ACEOF
22709 /* end confdefs.h. */
22710 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22711 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22712 #define socket innocuous_socket
22714 /* System header to define __stub macros and hopefully few prototypes,
22715 which can conflict with char socket (); below.
22716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22717 <limits.h> exists even on freestanding compilers. */
22719 #ifdef __STDC__
22720 # include <limits.h>
22721 #else
22722 # include <assert.h>
22723 #endif
22725 #undef socket
22727 /* Override any GCC internal prototype to avoid an error.
22728 Use char because int might match the return type of a GCC
22729 builtin and then its argument prototype would still apply. */
22730 #ifdef __cplusplus
22731 extern "C"
22732 #endif
22733 char socket ();
22734 /* The GNU C library defines this for functions which it implements
22735 to always fail with ENOSYS. Some functions are actually named
22736 something starting with __ and the normal name is an alias. */
22737 #if defined __stub_socket || defined __stub___socket
22738 choke me
22739 #endif
22742 main ()
22744 return socket ();
22746 return 0;
22748 _ACEOF
22749 rm -f conftest.$ac_objext conftest$ac_exeext
22750 if { (ac_try="$ac_link"
22751 case "(($ac_try" in
22752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22753 *) ac_try_echo=$ac_try;;
22754 esac
22755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22756 (eval "$ac_link") 2>conftest.er1
22757 ac_status=$?
22758 grep -v '^ *+' conftest.er1 >conftest.err
22759 rm -f conftest.er1
22760 cat conftest.err >&5
22761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22762 (exit $ac_status); } && {
22763 test -z "$ac_c_werror_flag" ||
22764 test ! -s conftest.err
22765 } && test -s conftest$ac_exeext &&
22766 $as_test_x conftest$ac_exeext; then
22767 ac_cv_func_socket=yes
22768 else
22769 echo "$as_me: failed program was:" >&5
22770 sed 's/^/| /' conftest.$ac_ext >&5
22772 ac_cv_func_socket=no
22775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22776 conftest$ac_exeext conftest.$ac_ext
22778 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22779 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22780 if test $ac_cv_func_socket = yes; then
22782 else
22783 ok_so_far=no
22786 if test $ok_so_far = yes; then
22787 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22788 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22789 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22790 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22791 echo $ECHO_N "(cached) $ECHO_C" >&6
22793 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22794 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22795 else
22796 # Is the header compilable?
22797 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22798 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
22799 cat >conftest.$ac_ext <<_ACEOF
22800 /* confdefs.h. */
22801 _ACEOF
22802 cat confdefs.h >>conftest.$ac_ext
22803 cat >>conftest.$ac_ext <<_ACEOF
22804 /* end confdefs.h. */
22805 $ac_includes_default
22806 #include <netinet/in.h>
22807 _ACEOF
22808 rm -f conftest.$ac_objext
22809 if { (ac_try="$ac_compile"
22810 case "(($ac_try" in
22811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22812 *) ac_try_echo=$ac_try;;
22813 esac
22814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22815 (eval "$ac_compile") 2>conftest.er1
22816 ac_status=$?
22817 grep -v '^ *+' conftest.er1 >conftest.err
22818 rm -f conftest.er1
22819 cat conftest.err >&5
22820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22821 (exit $ac_status); } && {
22822 test -z "$ac_c_werror_flag" ||
22823 test ! -s conftest.err
22824 } && test -s conftest.$ac_objext; then
22825 ac_header_compiler=yes
22826 else
22827 echo "$as_me: failed program was:" >&5
22828 sed 's/^/| /' conftest.$ac_ext >&5
22830 ac_header_compiler=no
22833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22834 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22835 echo "${ECHO_T}$ac_header_compiler" >&6; }
22837 # Is the header present?
22838 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22839 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
22840 cat >conftest.$ac_ext <<_ACEOF
22841 /* confdefs.h. */
22842 _ACEOF
22843 cat confdefs.h >>conftest.$ac_ext
22844 cat >>conftest.$ac_ext <<_ACEOF
22845 /* end confdefs.h. */
22846 #include <netinet/in.h>
22847 _ACEOF
22848 if { (ac_try="$ac_cpp conftest.$ac_ext"
22849 case "(($ac_try" in
22850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22851 *) ac_try_echo=$ac_try;;
22852 esac
22853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22854 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22855 ac_status=$?
22856 grep -v '^ *+' conftest.er1 >conftest.err
22857 rm -f conftest.er1
22858 cat conftest.err >&5
22859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22860 (exit $ac_status); } >/dev/null && {
22861 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22862 test ! -s conftest.err
22863 }; then
22864 ac_header_preproc=yes
22865 else
22866 echo "$as_me: failed program was:" >&5
22867 sed 's/^/| /' conftest.$ac_ext >&5
22869 ac_header_preproc=no
22872 rm -f conftest.err conftest.$ac_ext
22873 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22874 echo "${ECHO_T}$ac_header_preproc" >&6; }
22876 # So? What about this header?
22877 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22878 yes:no: )
22879 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22880 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22881 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22882 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22883 ac_header_preproc=yes
22885 no:yes:* )
22886 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22887 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22888 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22889 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22890 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22891 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22892 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22893 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22894 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22895 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22896 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22897 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22900 esac
22901 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22902 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22903 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22904 echo $ECHO_N "(cached) $ECHO_C" >&6
22905 else
22906 ac_cv_header_netinet_in_h=$ac_header_preproc
22908 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22909 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22912 if test $ac_cv_header_netinet_in_h = yes; then
22914 else
22915 ok_so_far=no
22920 if test $ok_so_far = yes; then
22921 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22922 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22923 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22924 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22925 echo $ECHO_N "(cached) $ECHO_C" >&6
22927 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22928 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22929 else
22930 # Is the header compilable?
22931 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22932 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
22933 cat >conftest.$ac_ext <<_ACEOF
22934 /* confdefs.h. */
22935 _ACEOF
22936 cat confdefs.h >>conftest.$ac_ext
22937 cat >>conftest.$ac_ext <<_ACEOF
22938 /* end confdefs.h. */
22939 $ac_includes_default
22940 #include <arpa/inet.h>
22941 _ACEOF
22942 rm -f conftest.$ac_objext
22943 if { (ac_try="$ac_compile"
22944 case "(($ac_try" in
22945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22946 *) ac_try_echo=$ac_try;;
22947 esac
22948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22949 (eval "$ac_compile") 2>conftest.er1
22950 ac_status=$?
22951 grep -v '^ *+' conftest.er1 >conftest.err
22952 rm -f conftest.er1
22953 cat conftest.err >&5
22954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22955 (exit $ac_status); } && {
22956 test -z "$ac_c_werror_flag" ||
22957 test ! -s conftest.err
22958 } && test -s conftest.$ac_objext; then
22959 ac_header_compiler=yes
22960 else
22961 echo "$as_me: failed program was:" >&5
22962 sed 's/^/| /' conftest.$ac_ext >&5
22964 ac_header_compiler=no
22967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22968 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22969 echo "${ECHO_T}$ac_header_compiler" >&6; }
22971 # Is the header present?
22972 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22973 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
22974 cat >conftest.$ac_ext <<_ACEOF
22975 /* confdefs.h. */
22976 _ACEOF
22977 cat confdefs.h >>conftest.$ac_ext
22978 cat >>conftest.$ac_ext <<_ACEOF
22979 /* end confdefs.h. */
22980 #include <arpa/inet.h>
22981 _ACEOF
22982 if { (ac_try="$ac_cpp conftest.$ac_ext"
22983 case "(($ac_try" in
22984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22985 *) ac_try_echo=$ac_try;;
22986 esac
22987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22988 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22989 ac_status=$?
22990 grep -v '^ *+' conftest.er1 >conftest.err
22991 rm -f conftest.er1
22992 cat conftest.err >&5
22993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22994 (exit $ac_status); } >/dev/null && {
22995 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22996 test ! -s conftest.err
22997 }; then
22998 ac_header_preproc=yes
22999 else
23000 echo "$as_me: failed program was:" >&5
23001 sed 's/^/| /' conftest.$ac_ext >&5
23003 ac_header_preproc=no
23006 rm -f conftest.err conftest.$ac_ext
23007 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23008 echo "${ECHO_T}$ac_header_preproc" >&6; }
23010 # So? What about this header?
23011 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23012 yes:no: )
23013 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
23014 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23015 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
23016 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
23017 ac_header_preproc=yes
23019 no:yes:* )
23020 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
23021 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
23022 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
23023 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
23024 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
23025 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
23026 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
23027 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
23028 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
23029 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
23030 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
23031 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
23034 esac
23035 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
23036 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
23037 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23038 echo $ECHO_N "(cached) $ECHO_C" >&6
23039 else
23040 ac_cv_header_arpa_inet_h=$ac_header_preproc
23042 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
23043 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
23046 if test $ac_cv_header_arpa_inet_h = yes; then
23048 else
23049 ok_so_far=no
23054 if test $ok_so_far = yes; then
23056 cat >>confdefs.h <<\_ACEOF
23057 #define HAVE_INET_SOCKETS 1
23058 _ACEOF
23063 for ac_header in sys/ioctl.h
23065 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23066 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23067 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23069 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23070 echo $ECHO_N "(cached) $ECHO_C" >&6
23072 ac_res=`eval echo '${'$as_ac_Header'}'`
23073 { echo "$as_me:$LINENO: result: $ac_res" >&5
23074 echo "${ECHO_T}$ac_res" >&6; }
23075 else
23076 # Is the header compilable?
23077 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23078 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23079 cat >conftest.$ac_ext <<_ACEOF
23080 /* confdefs.h. */
23081 _ACEOF
23082 cat confdefs.h >>conftest.$ac_ext
23083 cat >>conftest.$ac_ext <<_ACEOF
23084 /* end confdefs.h. */
23085 $ac_includes_default
23086 #include <$ac_header>
23087 _ACEOF
23088 rm -f conftest.$ac_objext
23089 if { (ac_try="$ac_compile"
23090 case "(($ac_try" in
23091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23092 *) ac_try_echo=$ac_try;;
23093 esac
23094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23095 (eval "$ac_compile") 2>conftest.er1
23096 ac_status=$?
23097 grep -v '^ *+' conftest.er1 >conftest.err
23098 rm -f conftest.er1
23099 cat conftest.err >&5
23100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23101 (exit $ac_status); } && {
23102 test -z "$ac_c_werror_flag" ||
23103 test ! -s conftest.err
23104 } && test -s conftest.$ac_objext; then
23105 ac_header_compiler=yes
23106 else
23107 echo "$as_me: failed program was:" >&5
23108 sed 's/^/| /' conftest.$ac_ext >&5
23110 ac_header_compiler=no
23113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23114 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23115 echo "${ECHO_T}$ac_header_compiler" >&6; }
23117 # Is the header present?
23118 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23119 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23120 cat >conftest.$ac_ext <<_ACEOF
23121 /* confdefs.h. */
23122 _ACEOF
23123 cat confdefs.h >>conftest.$ac_ext
23124 cat >>conftest.$ac_ext <<_ACEOF
23125 /* end confdefs.h. */
23126 #include <$ac_header>
23127 _ACEOF
23128 if { (ac_try="$ac_cpp conftest.$ac_ext"
23129 case "(($ac_try" in
23130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23131 *) ac_try_echo=$ac_try;;
23132 esac
23133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23134 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23135 ac_status=$?
23136 grep -v '^ *+' conftest.er1 >conftest.err
23137 rm -f conftest.er1
23138 cat conftest.err >&5
23139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23140 (exit $ac_status); } >/dev/null && {
23141 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23142 test ! -s conftest.err
23143 }; then
23144 ac_header_preproc=yes
23145 else
23146 echo "$as_me: failed program was:" >&5
23147 sed 's/^/| /' conftest.$ac_ext >&5
23149 ac_header_preproc=no
23152 rm -f conftest.err conftest.$ac_ext
23153 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23154 echo "${ECHO_T}$ac_header_preproc" >&6; }
23156 # So? What about this header?
23157 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23158 yes:no: )
23159 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23160 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23162 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23163 ac_header_preproc=yes
23165 no:yes:* )
23166 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23167 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23168 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23169 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23170 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23171 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23172 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23173 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23175 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23176 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23177 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23180 esac
23181 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23183 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23184 echo $ECHO_N "(cached) $ECHO_C" >&6
23185 else
23186 eval "$as_ac_Header=\$ac_header_preproc"
23188 ac_res=`eval echo '${'$as_ac_Header'}'`
23189 { echo "$as_me:$LINENO: result: $ac_res" >&5
23190 echo "${ECHO_T}$ac_res" >&6; }
23193 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23194 cat >>confdefs.h <<_ACEOF
23195 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23196 _ACEOF
23200 done
23203 if test -f /usr/lpp/X11/bin/smt.exp; then
23205 cat >>confdefs.h <<\_ACEOF
23206 #define HAVE_AIX_SMT_EXP 1
23207 _ACEOF
23211 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
23212 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
23213 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
23214 { echo "$as_me:$LINENO: result: yes" >&5
23215 echo "${ECHO_T}yes" >&6; }
23217 cat >>confdefs.h <<\_ACEOF
23218 #define HAVE_DEV_PTMX 1
23219 _ACEOF
23221 else
23222 { echo "$as_me:$LINENO: result: no" >&5
23223 echo "${ECHO_T}no" >&6; }
23226 { echo "$as_me:$LINENO: checking for pid_t" >&5
23227 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23228 if test "${ac_cv_type_pid_t+set}" = set; then
23229 echo $ECHO_N "(cached) $ECHO_C" >&6
23230 else
23231 cat >conftest.$ac_ext <<_ACEOF
23232 /* confdefs.h. */
23233 _ACEOF
23234 cat confdefs.h >>conftest.$ac_ext
23235 cat >>conftest.$ac_ext <<_ACEOF
23236 /* end confdefs.h. */
23237 $ac_includes_default
23238 typedef pid_t ac__type_new_;
23240 main ()
23242 if ((ac__type_new_ *) 0)
23243 return 0;
23244 if (sizeof (ac__type_new_))
23245 return 0;
23247 return 0;
23249 _ACEOF
23250 rm -f conftest.$ac_objext
23251 if { (ac_try="$ac_compile"
23252 case "(($ac_try" in
23253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23254 *) ac_try_echo=$ac_try;;
23255 esac
23256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23257 (eval "$ac_compile") 2>conftest.er1
23258 ac_status=$?
23259 grep -v '^ *+' conftest.er1 >conftest.err
23260 rm -f conftest.er1
23261 cat conftest.err >&5
23262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23263 (exit $ac_status); } && {
23264 test -z "$ac_c_werror_flag" ||
23265 test ! -s conftest.err
23266 } && test -s conftest.$ac_objext; then
23267 ac_cv_type_pid_t=yes
23268 else
23269 echo "$as_me: failed program was:" >&5
23270 sed 's/^/| /' conftest.$ac_ext >&5
23272 ac_cv_type_pid_t=no
23275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23277 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23278 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23279 if test $ac_cv_type_pid_t = yes; then
23281 else
23283 cat >>confdefs.h <<_ACEOF
23284 #define pid_t int
23285 _ACEOF
23290 for ac_header in vfork.h
23292 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23294 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23297 echo $ECHO_N "(cached) $ECHO_C" >&6
23299 ac_res=`eval echo '${'$as_ac_Header'}'`
23300 { echo "$as_me:$LINENO: result: $ac_res" >&5
23301 echo "${ECHO_T}$ac_res" >&6; }
23302 else
23303 # Is the header compilable?
23304 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23305 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23306 cat >conftest.$ac_ext <<_ACEOF
23307 /* confdefs.h. */
23308 _ACEOF
23309 cat confdefs.h >>conftest.$ac_ext
23310 cat >>conftest.$ac_ext <<_ACEOF
23311 /* end confdefs.h. */
23312 $ac_includes_default
23313 #include <$ac_header>
23314 _ACEOF
23315 rm -f conftest.$ac_objext
23316 if { (ac_try="$ac_compile"
23317 case "(($ac_try" in
23318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23319 *) ac_try_echo=$ac_try;;
23320 esac
23321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23322 (eval "$ac_compile") 2>conftest.er1
23323 ac_status=$?
23324 grep -v '^ *+' conftest.er1 >conftest.err
23325 rm -f conftest.er1
23326 cat conftest.err >&5
23327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23328 (exit $ac_status); } && {
23329 test -z "$ac_c_werror_flag" ||
23330 test ! -s conftest.err
23331 } && test -s conftest.$ac_objext; then
23332 ac_header_compiler=yes
23333 else
23334 echo "$as_me: failed program was:" >&5
23335 sed 's/^/| /' conftest.$ac_ext >&5
23337 ac_header_compiler=no
23340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23341 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23342 echo "${ECHO_T}$ac_header_compiler" >&6; }
23344 # Is the header present?
23345 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23346 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23347 cat >conftest.$ac_ext <<_ACEOF
23348 /* confdefs.h. */
23349 _ACEOF
23350 cat confdefs.h >>conftest.$ac_ext
23351 cat >>conftest.$ac_ext <<_ACEOF
23352 /* end confdefs.h. */
23353 #include <$ac_header>
23354 _ACEOF
23355 if { (ac_try="$ac_cpp conftest.$ac_ext"
23356 case "(($ac_try" in
23357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23358 *) ac_try_echo=$ac_try;;
23359 esac
23360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23361 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23362 ac_status=$?
23363 grep -v '^ *+' conftest.er1 >conftest.err
23364 rm -f conftest.er1
23365 cat conftest.err >&5
23366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23367 (exit $ac_status); } >/dev/null && {
23368 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23369 test ! -s conftest.err
23370 }; then
23371 ac_header_preproc=yes
23372 else
23373 echo "$as_me: failed program was:" >&5
23374 sed 's/^/| /' conftest.$ac_ext >&5
23376 ac_header_preproc=no
23379 rm -f conftest.err conftest.$ac_ext
23380 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23381 echo "${ECHO_T}$ac_header_preproc" >&6; }
23383 # So? What about this header?
23384 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23385 yes:no: )
23386 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23387 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23389 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23390 ac_header_preproc=yes
23392 no:yes:* )
23393 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23394 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23395 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23396 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23397 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23398 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23399 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23400 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23401 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23402 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23403 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23404 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23407 esac
23408 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23411 echo $ECHO_N "(cached) $ECHO_C" >&6
23412 else
23413 eval "$as_ac_Header=\$ac_header_preproc"
23415 ac_res=`eval echo '${'$as_ac_Header'}'`
23416 { echo "$as_me:$LINENO: result: $ac_res" >&5
23417 echo "${ECHO_T}$ac_res" >&6; }
23420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23421 cat >>confdefs.h <<_ACEOF
23422 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23423 _ACEOF
23427 done
23431 for ac_func in fork vfork
23433 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23434 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23435 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23436 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23437 echo $ECHO_N "(cached) $ECHO_C" >&6
23438 else
23439 cat >conftest.$ac_ext <<_ACEOF
23440 /* confdefs.h. */
23441 _ACEOF
23442 cat confdefs.h >>conftest.$ac_ext
23443 cat >>conftest.$ac_ext <<_ACEOF
23444 /* end confdefs.h. */
23445 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23446 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23447 #define $ac_func innocuous_$ac_func
23449 /* System header to define __stub macros and hopefully few prototypes,
23450 which can conflict with char $ac_func (); below.
23451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23452 <limits.h> exists even on freestanding compilers. */
23454 #ifdef __STDC__
23455 # include <limits.h>
23456 #else
23457 # include <assert.h>
23458 #endif
23460 #undef $ac_func
23462 /* Override any GCC internal prototype to avoid an error.
23463 Use char because int might match the return type of a GCC
23464 builtin and then its argument prototype would still apply. */
23465 #ifdef __cplusplus
23466 extern "C"
23467 #endif
23468 char $ac_func ();
23469 /* The GNU C library defines this for functions which it implements
23470 to always fail with ENOSYS. Some functions are actually named
23471 something starting with __ and the normal name is an alias. */
23472 #if defined __stub_$ac_func || defined __stub___$ac_func
23473 choke me
23474 #endif
23477 main ()
23479 return $ac_func ();
23481 return 0;
23483 _ACEOF
23484 rm -f conftest.$ac_objext conftest$ac_exeext
23485 if { (ac_try="$ac_link"
23486 case "(($ac_try" in
23487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23488 *) ac_try_echo=$ac_try;;
23489 esac
23490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23491 (eval "$ac_link") 2>conftest.er1
23492 ac_status=$?
23493 grep -v '^ *+' conftest.er1 >conftest.err
23494 rm -f conftest.er1
23495 cat conftest.err >&5
23496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23497 (exit $ac_status); } && {
23498 test -z "$ac_c_werror_flag" ||
23499 test ! -s conftest.err
23500 } && test -s conftest$ac_exeext &&
23501 $as_test_x conftest$ac_exeext; then
23502 eval "$as_ac_var=yes"
23503 else
23504 echo "$as_me: failed program was:" >&5
23505 sed 's/^/| /' conftest.$ac_ext >&5
23507 eval "$as_ac_var=no"
23510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23511 conftest$ac_exeext conftest.$ac_ext
23513 ac_res=`eval echo '${'$as_ac_var'}'`
23514 { echo "$as_me:$LINENO: result: $ac_res" >&5
23515 echo "${ECHO_T}$ac_res" >&6; }
23516 if test `eval echo '${'$as_ac_var'}'` = yes; then
23517 cat >>confdefs.h <<_ACEOF
23518 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23519 _ACEOF
23522 done
23524 if test "x$ac_cv_func_fork" = xyes; then
23525 { echo "$as_me:$LINENO: checking for working fork" >&5
23526 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
23527 if test "${ac_cv_func_fork_works+set}" = set; then
23528 echo $ECHO_N "(cached) $ECHO_C" >&6
23529 else
23530 if test "$cross_compiling" = yes; then
23531 ac_cv_func_fork_works=cross
23532 else
23533 cat >conftest.$ac_ext <<_ACEOF
23534 /* confdefs.h. */
23535 _ACEOF
23536 cat confdefs.h >>conftest.$ac_ext
23537 cat >>conftest.$ac_ext <<_ACEOF
23538 /* end confdefs.h. */
23539 $ac_includes_default
23541 main ()
23544 /* By Ruediger Kuhlmann. */
23545 return fork () < 0;
23548 return 0;
23550 _ACEOF
23551 rm -f conftest$ac_exeext
23552 if { (ac_try="$ac_link"
23553 case "(($ac_try" in
23554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23555 *) ac_try_echo=$ac_try;;
23556 esac
23557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23558 (eval "$ac_link") 2>&5
23559 ac_status=$?
23560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23561 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23562 { (case "(($ac_try" in
23563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23564 *) ac_try_echo=$ac_try;;
23565 esac
23566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23567 (eval "$ac_try") 2>&5
23568 ac_status=$?
23569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23570 (exit $ac_status); }; }; then
23571 ac_cv_func_fork_works=yes
23572 else
23573 echo "$as_me: program exited with status $ac_status" >&5
23574 echo "$as_me: failed program was:" >&5
23575 sed 's/^/| /' conftest.$ac_ext >&5
23577 ( exit $ac_status )
23578 ac_cv_func_fork_works=no
23580 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23585 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23586 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23588 else
23589 ac_cv_func_fork_works=$ac_cv_func_fork
23591 if test "x$ac_cv_func_fork_works" = xcross; then
23592 case $host in
23593 *-*-amigaos* | *-*-msdosdjgpp*)
23594 # Override, as these systems have only a dummy fork() stub
23595 ac_cv_func_fork_works=no
23598 ac_cv_func_fork_works=yes
23600 esac
23601 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23602 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23604 ac_cv_func_vfork_works=$ac_cv_func_vfork
23605 if test "x$ac_cv_func_vfork" = xyes; then
23606 { echo "$as_me:$LINENO: checking for working vfork" >&5
23607 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
23608 if test "${ac_cv_func_vfork_works+set}" = set; then
23609 echo $ECHO_N "(cached) $ECHO_C" >&6
23610 else
23611 if test "$cross_compiling" = yes; then
23612 ac_cv_func_vfork_works=cross
23613 else
23614 cat >conftest.$ac_ext <<_ACEOF
23615 /* confdefs.h. */
23616 _ACEOF
23617 cat confdefs.h >>conftest.$ac_ext
23618 cat >>conftest.$ac_ext <<_ACEOF
23619 /* end confdefs.h. */
23620 /* Thanks to Paul Eggert for this test. */
23621 $ac_includes_default
23622 #include <sys/wait.h>
23623 #ifdef HAVE_VFORK_H
23624 # include <vfork.h>
23625 #endif
23626 /* On some sparc systems, changes by the child to local and incoming
23627 argument registers are propagated back to the parent. The compiler
23628 is told about this with #include <vfork.h>, but some compilers
23629 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23630 static variable whose address is put into a register that is
23631 clobbered by the vfork. */
23632 static void
23633 #ifdef __cplusplus
23634 sparc_address_test (int arg)
23635 # else
23636 sparc_address_test (arg) int arg;
23637 #endif
23639 static pid_t child;
23640 if (!child) {
23641 child = vfork ();
23642 if (child < 0) {
23643 perror ("vfork");
23644 _exit(2);
23646 if (!child) {
23647 arg = getpid();
23648 write(-1, "", 0);
23649 _exit (arg);
23655 main ()
23657 pid_t parent = getpid ();
23658 pid_t child;
23660 sparc_address_test (0);
23662 child = vfork ();
23664 if (child == 0) {
23665 /* Here is another test for sparc vfork register problems. This
23666 test uses lots of local variables, at least as many local
23667 variables as main has allocated so far including compiler
23668 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23669 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23670 reuse the register of parent for one of the local variables,
23671 since it will think that parent can't possibly be used any more
23672 in this routine. Assigning to the local variable will thus
23673 munge parent in the parent process. */
23674 pid_t
23675 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23676 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23677 /* Convince the compiler that p..p7 are live; otherwise, it might
23678 use the same hardware register for all 8 local variables. */
23679 if (p != p1 || p != p2 || p != p3 || p != p4
23680 || p != p5 || p != p6 || p != p7)
23681 _exit(1);
23683 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23684 from child file descriptors. If the child closes a descriptor
23685 before it execs or exits, this munges the parent's descriptor
23686 as well. Test for this by closing stdout in the child. */
23687 _exit(close(fileno(stdout)) != 0);
23688 } else {
23689 int status;
23690 struct stat st;
23692 while (wait(&status) != child)
23694 return (
23695 /* Was there some problem with vforking? */
23696 child < 0
23698 /* Did the child fail? (This shouldn't happen.) */
23699 || status
23701 /* Did the vfork/compiler bug occur? */
23702 || parent != getpid()
23704 /* Did the file descriptor bug occur? */
23705 || fstat(fileno(stdout), &st) != 0
23709 _ACEOF
23710 rm -f conftest$ac_exeext
23711 if { (ac_try="$ac_link"
23712 case "(($ac_try" in
23713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23714 *) ac_try_echo=$ac_try;;
23715 esac
23716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23717 (eval "$ac_link") 2>&5
23718 ac_status=$?
23719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23720 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23721 { (case "(($ac_try" in
23722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23723 *) ac_try_echo=$ac_try;;
23724 esac
23725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23726 (eval "$ac_try") 2>&5
23727 ac_status=$?
23728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23729 (exit $ac_status); }; }; then
23730 ac_cv_func_vfork_works=yes
23731 else
23732 echo "$as_me: program exited with status $ac_status" >&5
23733 echo "$as_me: failed program was:" >&5
23734 sed 's/^/| /' conftest.$ac_ext >&5
23736 ( exit $ac_status )
23737 ac_cv_func_vfork_works=no
23739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23744 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23745 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23748 if test "x$ac_cv_func_fork_works" = xcross; then
23749 ac_cv_func_vfork_works=$ac_cv_func_vfork
23750 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23751 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23754 if test "x$ac_cv_func_vfork_works" = xyes; then
23756 cat >>confdefs.h <<\_ACEOF
23757 #define HAVE_WORKING_VFORK 1
23758 _ACEOF
23760 else
23762 cat >>confdefs.h <<\_ACEOF
23763 #define vfork fork
23764 _ACEOF
23767 if test "x$ac_cv_func_fork_works" = xyes; then
23769 cat >>confdefs.h <<\_ACEOF
23770 #define HAVE_WORKING_FORK 1
23771 _ACEOF
23776 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23777 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
23778 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23779 echo $ECHO_N "(cached) $ECHO_C" >&6
23780 else
23781 cat >conftest.$ac_ext <<_ACEOF
23782 /* confdefs.h. */
23783 _ACEOF
23784 cat confdefs.h >>conftest.$ac_ext
23785 cat >>conftest.$ac_ext <<_ACEOF
23786 /* end confdefs.h. */
23787 #include <langinfo.h>
23789 main ()
23791 char* cs = nl_langinfo(CODESET);
23793 return 0;
23795 _ACEOF
23796 rm -f conftest.$ac_objext conftest$ac_exeext
23797 if { (ac_try="$ac_link"
23798 case "(($ac_try" in
23799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23800 *) ac_try_echo=$ac_try;;
23801 esac
23802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23803 (eval "$ac_link") 2>conftest.er1
23804 ac_status=$?
23805 grep -v '^ *+' conftest.er1 >conftest.err
23806 rm -f conftest.er1
23807 cat conftest.err >&5
23808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23809 (exit $ac_status); } && {
23810 test -z "$ac_c_werror_flag" ||
23811 test ! -s conftest.err
23812 } && test -s conftest$ac_exeext &&
23813 $as_test_x conftest$ac_exeext; then
23814 emacs_cv_langinfo_codeset=yes
23815 else
23816 echo "$as_me: failed program was:" >&5
23817 sed 's/^/| /' conftest.$ac_ext >&5
23819 emacs_cv_langinfo_codeset=no
23822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23823 conftest$ac_exeext conftest.$ac_ext
23826 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23827 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23828 if test $emacs_cv_langinfo_codeset = yes; then
23830 cat >>confdefs.h <<\_ACEOF
23831 #define HAVE_LANGINFO_CODESET 1
23832 _ACEOF
23836 { echo "$as_me:$LINENO: checking for size_t" >&5
23837 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23838 if test "${ac_cv_type_size_t+set}" = set; then
23839 echo $ECHO_N "(cached) $ECHO_C" >&6
23840 else
23841 cat >conftest.$ac_ext <<_ACEOF
23842 /* confdefs.h. */
23843 _ACEOF
23844 cat confdefs.h >>conftest.$ac_ext
23845 cat >>conftest.$ac_ext <<_ACEOF
23846 /* end confdefs.h. */
23847 $ac_includes_default
23848 typedef size_t ac__type_new_;
23850 main ()
23852 if ((ac__type_new_ *) 0)
23853 return 0;
23854 if (sizeof (ac__type_new_))
23855 return 0;
23857 return 0;
23859 _ACEOF
23860 rm -f conftest.$ac_objext
23861 if { (ac_try="$ac_compile"
23862 case "(($ac_try" in
23863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23864 *) ac_try_echo=$ac_try;;
23865 esac
23866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23867 (eval "$ac_compile") 2>conftest.er1
23868 ac_status=$?
23869 grep -v '^ *+' conftest.er1 >conftest.err
23870 rm -f conftest.er1
23871 cat conftest.err >&5
23872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23873 (exit $ac_status); } && {
23874 test -z "$ac_c_werror_flag" ||
23875 test ! -s conftest.err
23876 } && test -s conftest.$ac_objext; then
23877 ac_cv_type_size_t=yes
23878 else
23879 echo "$as_me: failed program was:" >&5
23880 sed 's/^/| /' conftest.$ac_ext >&5
23882 ac_cv_type_size_t=no
23885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23887 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23888 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23889 if test $ac_cv_type_size_t = yes; then
23891 cat >>confdefs.h <<_ACEOF
23892 #define HAVE_SIZE_T 1
23893 _ACEOF
23899 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23900 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23901 if test "${ac_cv_type_mbstate_t+set}" = set; then
23902 echo $ECHO_N "(cached) $ECHO_C" >&6
23903 else
23904 cat >conftest.$ac_ext <<_ACEOF
23905 /* confdefs.h. */
23906 _ACEOF
23907 cat confdefs.h >>conftest.$ac_ext
23908 cat >>conftest.$ac_ext <<_ACEOF
23909 /* end confdefs.h. */
23910 $ac_includes_default
23911 # include <wchar.h>
23913 main ()
23915 mbstate_t x; return sizeof x;
23917 return 0;
23919 _ACEOF
23920 rm -f conftest.$ac_objext
23921 if { (ac_try="$ac_compile"
23922 case "(($ac_try" in
23923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23924 *) ac_try_echo=$ac_try;;
23925 esac
23926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23927 (eval "$ac_compile") 2>conftest.er1
23928 ac_status=$?
23929 grep -v '^ *+' conftest.er1 >conftest.err
23930 rm -f conftest.er1
23931 cat conftest.err >&5
23932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23933 (exit $ac_status); } && {
23934 test -z "$ac_c_werror_flag" ||
23935 test ! -s conftest.err
23936 } && test -s conftest.$ac_objext; then
23937 ac_cv_type_mbstate_t=yes
23938 else
23939 echo "$as_me: failed program was:" >&5
23940 sed 's/^/| /' conftest.$ac_ext >&5
23942 ac_cv_type_mbstate_t=no
23945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23947 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23948 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23949 if test $ac_cv_type_mbstate_t = yes; then
23951 cat >>confdefs.h <<\_ACEOF
23952 #define HAVE_MBSTATE_T 1
23953 _ACEOF
23955 else
23957 cat >>confdefs.h <<\_ACEOF
23958 #define mbstate_t int
23959 _ACEOF
23963 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23964 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
23965 if test "${emacs_cv_c_restrict+set}" = set; then
23966 echo $ECHO_N "(cached) $ECHO_C" >&6
23967 else
23968 cat >conftest.$ac_ext <<_ACEOF
23969 /* confdefs.h. */
23970 _ACEOF
23971 cat confdefs.h >>conftest.$ac_ext
23972 cat >>conftest.$ac_ext <<_ACEOF
23973 /* end confdefs.h. */
23974 void fred (int *restrict x);
23976 main ()
23980 return 0;
23982 _ACEOF
23983 rm -f conftest.$ac_objext
23984 if { (ac_try="$ac_compile"
23985 case "(($ac_try" in
23986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23987 *) ac_try_echo=$ac_try;;
23988 esac
23989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23990 (eval "$ac_compile") 2>conftest.er1
23991 ac_status=$?
23992 grep -v '^ *+' conftest.er1 >conftest.err
23993 rm -f conftest.er1
23994 cat conftest.err >&5
23995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23996 (exit $ac_status); } && {
23997 test -z "$ac_c_werror_flag" ||
23998 test ! -s conftest.err
23999 } && test -s conftest.$ac_objext; then
24000 emacs_cv_c_restrict=yes
24001 else
24002 echo "$as_me: failed program was:" >&5
24003 sed 's/^/| /' conftest.$ac_ext >&5
24005 cat >conftest.$ac_ext <<_ACEOF
24006 /* confdefs.h. */
24007 _ACEOF
24008 cat confdefs.h >>conftest.$ac_ext
24009 cat >>conftest.$ac_ext <<_ACEOF
24010 /* end confdefs.h. */
24011 void fred (int *__restrict x);
24013 main ()
24017 return 0;
24019 _ACEOF
24020 rm -f conftest.$ac_objext
24021 if { (ac_try="$ac_compile"
24022 case "(($ac_try" in
24023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24024 *) ac_try_echo=$ac_try;;
24025 esac
24026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24027 (eval "$ac_compile") 2>conftest.er1
24028 ac_status=$?
24029 grep -v '^ *+' conftest.er1 >conftest.err
24030 rm -f conftest.er1
24031 cat conftest.err >&5
24032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24033 (exit $ac_status); } && {
24034 test -z "$ac_c_werror_flag" ||
24035 test ! -s conftest.err
24036 } && test -s conftest.$ac_objext; then
24037 emacs_cv_c_restrict=__restrict
24038 else
24039 echo "$as_me: failed program was:" >&5
24040 sed 's/^/| /' conftest.$ac_ext >&5
24042 emacs_cv_c_restrict=no
24045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24050 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
24051 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
24052 case "$emacs_cv_c_restrict" in
24053 yes) emacs_restrict=restrict;;
24054 no) emacs_restrict="";;
24055 *) emacs_restrict="$emacs_cv_c_restrict";;
24056 esac
24057 if test "$emacs_restrict" != __restrict; then
24059 cat >>confdefs.h <<_ACEOF
24060 #define __restrict $emacs_restrict
24061 _ACEOF
24065 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
24066 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
24067 if test "${emacs_cv_c_restrict_arr+set}" = set; then
24068 echo $ECHO_N "(cached) $ECHO_C" >&6
24069 else
24070 cat >conftest.$ac_ext <<_ACEOF
24071 /* confdefs.h. */
24072 _ACEOF
24073 cat confdefs.h >>conftest.$ac_ext
24074 cat >>conftest.$ac_ext <<_ACEOF
24075 /* end confdefs.h. */
24076 void fred (int x[__restrict]);
24078 main ()
24082 return 0;
24084 _ACEOF
24085 rm -f conftest.$ac_objext
24086 if { (ac_try="$ac_compile"
24087 case "(($ac_try" in
24088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24089 *) ac_try_echo=$ac_try;;
24090 esac
24091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24092 (eval "$ac_compile") 2>conftest.er1
24093 ac_status=$?
24094 grep -v '^ *+' conftest.er1 >conftest.err
24095 rm -f conftest.er1
24096 cat conftest.err >&5
24097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24098 (exit $ac_status); } && {
24099 test -z "$ac_c_werror_flag" ||
24100 test ! -s conftest.err
24101 } && test -s conftest.$ac_objext; then
24102 emacs_cv_c_restrict_arr=yes
24103 else
24104 echo "$as_me: failed program was:" >&5
24105 sed 's/^/| /' conftest.$ac_ext >&5
24107 emacs_cv_c_restrict_arr=no
24110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24112 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
24113 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
24114 if test "$emacs_cv_c_restrict_arr" = yes; then
24116 cat >>confdefs.h <<\_ACEOF
24117 #define __restrict_arr __restrict
24118 _ACEOF
24124 # Set up the CFLAGS for real compilation, so we can substitute it.
24125 CFLAGS="$REAL_CFLAGS"
24126 CPPFLAGS="$REAL_CPPFLAGS"
24128 #### Find out which version of Emacs this is.
24129 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
24130 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
24131 if test x"${version}" = x; then
24132 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
24133 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
24134 { (exit 1); exit 1; }; }
24137 ### Specify what sort of things we'll be editing into Makefile and config.h.
24138 ### Use configuration here uncanonicalized to avoid exceeding size limits.
24174 cat >>confdefs.h <<_ACEOF
24175 #define EMACS_CONFIGURATION "${canonical}"
24176 _ACEOF
24179 cat >>confdefs.h <<_ACEOF
24180 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
24181 _ACEOF
24184 cat >>confdefs.h <<_ACEOF
24185 #define config_machfile "${machfile}"
24186 _ACEOF
24189 cat >>confdefs.h <<_ACEOF
24190 #define config_opsysfile "${opsysfile}"
24191 _ACEOF
24194 cat >>confdefs.h <<_ACEOF
24195 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
24196 _ACEOF
24199 cat >>confdefs.h <<_ACEOF
24200 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
24201 _ACEOF
24204 cat >>confdefs.h <<_ACEOF
24205 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
24206 _ACEOF
24209 cat >>confdefs.h <<_ACEOF
24210 #define UNEXEC_SRC ${UNEXEC_SRC}
24211 _ACEOF
24214 if test "${HAVE_X_WINDOWS}" = "yes" ; then
24216 cat >>confdefs.h <<\_ACEOF
24217 #define HAVE_X_WINDOWS 1
24218 _ACEOF
24221 if test "${USE_X_TOOLKIT}" != "none" ; then
24223 cat >>confdefs.h <<\_ACEOF
24224 #define USE_X_TOOLKIT 1
24225 _ACEOF
24227 if test "${USE_X_TOOLKIT}" = "LUCID"; then
24229 cat >>confdefs.h <<\_ACEOF
24230 #define USE_LUCID 1
24231 _ACEOF
24233 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
24235 cat >>confdefs.h <<\_ACEOF
24236 #define USE_MOTIF 1
24237 _ACEOF
24241 if test "${HAVE_X11}" = "yes" ; then
24243 cat >>confdefs.h <<\_ACEOF
24244 #define HAVE_X11 1
24245 _ACEOF
24248 if test "${HAVE_MENUS}" = "yes" ; then
24250 cat >>confdefs.h <<\_ACEOF
24251 #define HAVE_MENUS 1
24252 _ACEOF
24255 if test "${GNU_MALLOC}" = "yes" ; then
24257 cat >>confdefs.h <<\_ACEOF
24258 #define GNU_MALLOC 1
24259 _ACEOF
24262 if test "${REL_ALLOC}" = "yes" ; then
24264 cat >>confdefs.h <<\_ACEOF
24265 #define REL_ALLOC 1
24266 _ACEOF
24275 #### Report on what we decided to do.
24276 #### Report GTK as a toolkit, even if it doesn't use Xt.
24277 #### It makes printing result more understandable as using GTK sets
24278 #### toolkit_scroll_bars to yes by default.
24279 if test "${HAVE_GTK}" = "yes"; then
24280 USE_X_TOOLKIT=GTK
24283 echo "
24284 Configured for \`${canonical}'.
24286 Where should the build process find the source code? ${srcdir}
24287 What operating system and machine description files should Emacs use?
24288 \`${opsysfile}' and \`${machfile}'
24289 What compiler should emacs be built with? ${CC} ${CFLAGS}
24290 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
24291 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
24292 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
24293 What window system should Emacs use? ${window_system}
24294 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
24296 if test -n "${x_includes}"; then
24297 echo " Where do we find X Windows header files? ${x_includes}"
24298 else
24299 echo " Where do we find X Windows header files? Standard dirs"
24301 if test -n "${x_libraries}"; then
24302 echo " Where do we find X Windows libraries? ${x_libraries}"
24303 else
24304 echo " Where do we find X Windows libraries? Standard dirs"
24307 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
24308 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
24309 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
24310 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
24311 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
24312 echo " Does Emacs use -lpng? ${HAVE_PNG}"
24313 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
24314 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
24315 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
24317 if test "${USE_FONT_BACKEND}" = "yes"; then
24318 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
24319 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
24320 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
24321 echo " Does Emacs use -lxft? ${HAVE_XFT}"
24323 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
24324 echo
24326 if test $USE_XASSERTS = yes; then
24327 echo " Compiling with asserts turned on."
24328 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
24331 echo
24333 if test "$USE_X_TOOLKIT" = GTK; then
24334 case "$canonical" in
24335 *cygwin*)
24336 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
24337 will probably get a crash on startup. If this happens, please use another
24338 toolkit for Emacs. See etc/PROBLEMS for more information."
24340 esac
24344 if test "$HAVE_CARBON" = "yes"; then
24345 echo
24346 echo "Warning: The Mac Carbon port is currently unsupported and has
24347 known problems. It is not recommended for use by non-developers.
24348 Read the emacs-devel archives for more information."
24349 echo
24352 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
24353 echo "D-Bus integration has been tested for GNU/Linux only."
24354 echo
24358 # Remove any trailing slashes in these variables.
24359 test "${prefix}" != NONE &&
24360 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24361 test "${exec_prefix}" != NONE &&
24362 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24364 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
24365 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
24366 ## from Makefile.c can correctly provide the arg `-traditional' to the
24367 ## C preprocessor.
24369 cat >conftest.$ac_ext <<_ACEOF
24370 /* confdefs.h. */
24371 _ACEOF
24372 cat confdefs.h >>conftest.$ac_ext
24373 cat >>conftest.$ac_ext <<_ACEOF
24374 /* end confdefs.h. */
24375 yes..yes
24376 _ACEOF
24377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24378 $EGREP "yes..yes" >/dev/null 2>&1; then
24379 CPP_NEED_TRADITIONAL=no
24380 else
24381 CPP_NEED_TRADITIONAL=yes
24383 rm -f conftest*
24386 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"
24388 ac_config_commands="$ac_config_commands default"
24390 cat >confcache <<\_ACEOF
24391 # This file is a shell script that caches the results of configure
24392 # tests run on this system so they can be shared between configure
24393 # scripts and configure runs, see configure's option --config-cache.
24394 # It is not useful on other systems. If it contains results you don't
24395 # want to keep, you may remove or edit it.
24397 # config.status only pays attention to the cache file if you give it
24398 # the --recheck option to rerun configure.
24400 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24401 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24402 # following values.
24404 _ACEOF
24406 # The following way of writing the cache mishandles newlines in values,
24407 # but we know of no workaround that is simple, portable, and efficient.
24408 # So, we kill variables containing newlines.
24409 # Ultrix sh set writes to stderr and can't be redirected directly,
24410 # and sets the high bit in the cache file unless we assign to the vars.
24412 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24413 eval ac_val=\$$ac_var
24414 case $ac_val in #(
24415 *${as_nl}*)
24416 case $ac_var in #(
24417 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24418 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24419 esac
24420 case $ac_var in #(
24421 _ | IFS | as_nl) ;; #(
24422 *) $as_unset $ac_var ;;
24423 esac ;;
24424 esac
24425 done
24427 (set) 2>&1 |
24428 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24429 *${as_nl}ac_space=\ *)
24430 # `set' does not quote correctly, so add quotes (double-quote
24431 # substitution turns \\\\ into \\, and sed turns \\ into \).
24432 sed -n \
24433 "s/'/'\\\\''/g;
24434 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24435 ;; #(
24437 # `set' quotes correctly as required by POSIX, so do not add quotes.
24438 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24440 esac |
24441 sort
24443 sed '
24444 /^ac_cv_env_/b end
24445 t clear
24446 :clear
24447 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24448 t end
24449 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24450 :end' >>confcache
24451 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24452 if test -w "$cache_file"; then
24453 test "x$cache_file" != "x/dev/null" &&
24454 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24455 echo "$as_me: updating cache $cache_file" >&6;}
24456 cat confcache >$cache_file
24457 else
24458 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24459 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24462 rm -f confcache
24464 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24465 # Let make expand exec_prefix.
24466 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24468 DEFS=-DHAVE_CONFIG_H
24470 ac_libobjs=
24471 ac_ltlibobjs=
24472 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24473 # 1. Remove the extension, and $U if already installed.
24474 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24475 ac_i=`echo "$ac_i" | sed "$ac_script"`
24476 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24477 # will be set to the directory where LIBOBJS objects are built.
24478 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24479 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24480 done
24481 LIBOBJS=$ac_libobjs
24483 LTLIBOBJS=$ac_ltlibobjs
24487 : ${CONFIG_STATUS=./config.status}
24488 ac_clean_files_save=$ac_clean_files
24489 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24490 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24491 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24492 cat >$CONFIG_STATUS <<_ACEOF
24493 #! $SHELL
24494 # Generated by $as_me.
24495 # Run this file to recreate the current configuration.
24496 # Compiler output produced by configure, useful for debugging
24497 # configure, is in config.log if it exists.
24499 debug=false
24500 ac_cs_recheck=false
24501 ac_cs_silent=false
24502 SHELL=\${CONFIG_SHELL-$SHELL}
24503 _ACEOF
24505 cat >>$CONFIG_STATUS <<\_ACEOF
24506 ## --------------------- ##
24507 ## M4sh Initialization. ##
24508 ## --------------------- ##
24510 # Be more Bourne compatible
24511 DUALCASE=1; export DUALCASE # for MKS sh
24512 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24513 emulate sh
24514 NULLCMD=:
24515 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24516 # is contrary to our usage. Disable this feature.
24517 alias -g '${1+"$@"}'='"$@"'
24518 setopt NO_GLOB_SUBST
24519 else
24520 case `(set -o) 2>/dev/null` in
24521 *posix*) set -o posix ;;
24522 esac
24529 # PATH needs CR
24530 # Avoid depending upon Character Ranges.
24531 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24532 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24533 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24534 as_cr_digits='0123456789'
24535 as_cr_alnum=$as_cr_Letters$as_cr_digits
24537 # The user is always right.
24538 if test "${PATH_SEPARATOR+set}" != set; then
24539 echo "#! /bin/sh" >conf$$.sh
24540 echo "exit 0" >>conf$$.sh
24541 chmod +x conf$$.sh
24542 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24543 PATH_SEPARATOR=';'
24544 else
24545 PATH_SEPARATOR=:
24547 rm -f conf$$.sh
24550 # Support unset when possible.
24551 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24552 as_unset=unset
24553 else
24554 as_unset=false
24558 # IFS
24559 # We need space, tab and new line, in precisely that order. Quoting is
24560 # there to prevent editors from complaining about space-tab.
24561 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24562 # splitting by setting IFS to empty value.)
24563 as_nl='
24565 IFS=" "" $as_nl"
24567 # Find who we are. Look in the path if we contain no directory separator.
24568 case $0 in
24569 *[\\/]* ) as_myself=$0 ;;
24570 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24571 for as_dir in $PATH
24573 IFS=$as_save_IFS
24574 test -z "$as_dir" && as_dir=.
24575 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24576 done
24577 IFS=$as_save_IFS
24580 esac
24581 # We did not find ourselves, most probably we were run as `sh COMMAND'
24582 # in which case we are not to be found in the path.
24583 if test "x$as_myself" = x; then
24584 as_myself=$0
24586 if test ! -f "$as_myself"; then
24587 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24588 { (exit 1); exit 1; }
24591 # Work around bugs in pre-3.0 UWIN ksh.
24592 for as_var in ENV MAIL MAILPATH
24593 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24594 done
24595 PS1='$ '
24596 PS2='> '
24597 PS4='+ '
24599 # NLS nuisances.
24600 for as_var in \
24601 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24602 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24603 LC_TELEPHONE LC_TIME
24605 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24606 eval $as_var=C; export $as_var
24607 else
24608 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24610 done
24612 # Required to use basename.
24613 if expr a : '\(a\)' >/dev/null 2>&1 &&
24614 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24615 as_expr=expr
24616 else
24617 as_expr=false
24620 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24621 as_basename=basename
24622 else
24623 as_basename=false
24627 # Name of the executable.
24628 as_me=`$as_basename -- "$0" ||
24629 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24630 X"$0" : 'X\(//\)$' \| \
24631 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24632 echo X/"$0" |
24633 sed '/^.*\/\([^/][^/]*\)\/*$/{
24634 s//\1/
24637 /^X\/\(\/\/\)$/{
24638 s//\1/
24641 /^X\/\(\/\).*/{
24642 s//\1/
24645 s/.*/./; q'`
24647 # CDPATH.
24648 $as_unset CDPATH
24652 as_lineno_1=$LINENO
24653 as_lineno_2=$LINENO
24654 test "x$as_lineno_1" != "x$as_lineno_2" &&
24655 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24657 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24658 # uniformly replaced by the line number. The first 'sed' inserts a
24659 # line-number line after each line using $LINENO; the second 'sed'
24660 # does the real work. The second script uses 'N' to pair each
24661 # line-number line with the line containing $LINENO, and appends
24662 # trailing '-' during substitution so that $LINENO is not a special
24663 # case at line end.
24664 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24665 # scripts with optimization help from Paolo Bonzini. Blame Lee
24666 # E. McMahon (1931-1989) for sed's syntax. :-)
24667 sed -n '
24669 /[$]LINENO/=
24670 ' <$as_myself |
24671 sed '
24672 s/[$]LINENO.*/&-/
24673 t lineno
24675 :lineno
24677 :loop
24678 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24679 t loop
24680 s/-\n.*//
24681 ' >$as_me.lineno &&
24682 chmod +x "$as_me.lineno" ||
24683 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24684 { (exit 1); exit 1; }; }
24686 # Don't try to exec as it changes $[0], causing all sort of problems
24687 # (the dirname of $[0] is not the place where we might find the
24688 # original and so on. Autoconf is especially sensitive to this).
24689 . "./$as_me.lineno"
24690 # Exit status is that of the last command.
24691 exit
24695 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24696 as_dirname=dirname
24697 else
24698 as_dirname=false
24701 ECHO_C= ECHO_N= ECHO_T=
24702 case `echo -n x` in
24703 -n*)
24704 case `echo 'x\c'` in
24705 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24706 *) ECHO_C='\c';;
24707 esac;;
24709 ECHO_N='-n';;
24710 esac
24712 if expr a : '\(a\)' >/dev/null 2>&1 &&
24713 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24714 as_expr=expr
24715 else
24716 as_expr=false
24719 rm -f conf$$ conf$$.exe conf$$.file
24720 if test -d conf$$.dir; then
24721 rm -f conf$$.dir/conf$$.file
24722 else
24723 rm -f conf$$.dir
24724 mkdir conf$$.dir
24726 echo >conf$$.file
24727 if ln -s conf$$.file conf$$ 2>/dev/null; then
24728 as_ln_s='ln -s'
24729 # ... but there are two gotchas:
24730 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24731 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24732 # In both cases, we have to default to `cp -p'.
24733 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24734 as_ln_s='cp -p'
24735 elif ln conf$$.file conf$$ 2>/dev/null; then
24736 as_ln_s=ln
24737 else
24738 as_ln_s='cp -p'
24740 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24741 rmdir conf$$.dir 2>/dev/null
24743 if mkdir -p . 2>/dev/null; then
24744 as_mkdir_p=:
24745 else
24746 test -d ./-p && rmdir ./-p
24747 as_mkdir_p=false
24750 if test -x / >/dev/null 2>&1; then
24751 as_test_x='test -x'
24752 else
24753 if ls -dL / >/dev/null 2>&1; then
24754 as_ls_L_option=L
24755 else
24756 as_ls_L_option=
24758 as_test_x='
24759 eval sh -c '\''
24760 if test -d "$1"; then
24761 test -d "$1/.";
24762 else
24763 case $1 in
24764 -*)set "./$1";;
24765 esac;
24766 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24767 ???[sx]*):;;*)false;;esac;fi
24768 '\'' sh
24771 as_executable_p=$as_test_x
24773 # Sed expression to map a string onto a valid CPP name.
24774 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24776 # Sed expression to map a string onto a valid variable name.
24777 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24780 exec 6>&1
24782 # Save the log message, to keep $[0] and so on meaningful, and to
24783 # report actual input values of CONFIG_FILES etc. instead of their
24784 # values after options handling.
24785 ac_log="
24786 This file was extended by emacs $as_me 23.0.60, which was
24787 generated by GNU Autoconf 2.61. Invocation command line was
24789 CONFIG_FILES = $CONFIG_FILES
24790 CONFIG_HEADERS = $CONFIG_HEADERS
24791 CONFIG_LINKS = $CONFIG_LINKS
24792 CONFIG_COMMANDS = $CONFIG_COMMANDS
24793 $ $0 $@
24795 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24798 _ACEOF
24800 cat >>$CONFIG_STATUS <<_ACEOF
24801 # Files that config.status was made for.
24802 config_files="$ac_config_files"
24803 config_headers="$ac_config_headers"
24804 config_commands="$ac_config_commands"
24806 _ACEOF
24808 cat >>$CONFIG_STATUS <<\_ACEOF
24809 ac_cs_usage="\
24810 \`$as_me' instantiates files from templates according to the
24811 current configuration.
24813 Usage: $0 [OPTIONS] [FILE]...
24815 -h, --help print this help, then exit
24816 -V, --version print version number and configuration settings, then exit
24817 -q, --quiet do not print progress messages
24818 -d, --debug don't remove temporary files
24819 --recheck update $as_me by reconfiguring in the same conditions
24820 --file=FILE[:TEMPLATE]
24821 instantiate the configuration file FILE
24822 --header=FILE[:TEMPLATE]
24823 instantiate the configuration header FILE
24825 Configuration files:
24826 $config_files
24828 Configuration headers:
24829 $config_headers
24831 Configuration commands:
24832 $config_commands
24834 Report bugs to <bug-autoconf@gnu.org>."
24836 _ACEOF
24837 cat >>$CONFIG_STATUS <<_ACEOF
24838 ac_cs_version="\\
24839 emacs config.status 23.0.60
24840 configured by $0, generated by GNU Autoconf 2.61,
24841 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24843 Copyright (C) 2006 Free Software Foundation, Inc.
24844 This config.status script is free software; the Free Software Foundation
24845 gives unlimited permission to copy, distribute and modify it."
24847 ac_pwd='$ac_pwd'
24848 srcdir='$srcdir'
24849 INSTALL='$INSTALL'
24850 _ACEOF
24852 cat >>$CONFIG_STATUS <<\_ACEOF
24853 # If no file are specified by the user, then we need to provide default
24854 # value. By we need to know if files were specified by the user.
24855 ac_need_defaults=:
24856 while test $# != 0
24858 case $1 in
24859 --*=*)
24860 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24861 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24862 ac_shift=:
24865 ac_option=$1
24866 ac_optarg=$2
24867 ac_shift=shift
24869 esac
24871 case $ac_option in
24872 # Handling of the options.
24873 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24874 ac_cs_recheck=: ;;
24875 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24876 echo "$ac_cs_version"; exit ;;
24877 --debug | --debu | --deb | --de | --d | -d )
24878 debug=: ;;
24879 --file | --fil | --fi | --f )
24880 $ac_shift
24881 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24882 ac_need_defaults=false;;
24883 --header | --heade | --head | --hea )
24884 $ac_shift
24885 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24886 ac_need_defaults=false;;
24887 --he | --h)
24888 # Conflict between --help and --header
24889 { echo "$as_me: error: ambiguous option: $1
24890 Try \`$0 --help' for more information." >&2
24891 { (exit 1); exit 1; }; };;
24892 --help | --hel | -h )
24893 echo "$ac_cs_usage"; exit ;;
24894 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24895 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24896 ac_cs_silent=: ;;
24898 # This is an error.
24899 -*) { echo "$as_me: error: unrecognized option: $1
24900 Try \`$0 --help' for more information." >&2
24901 { (exit 1); exit 1; }; } ;;
24903 *) ac_config_targets="$ac_config_targets $1"
24904 ac_need_defaults=false ;;
24906 esac
24907 shift
24908 done
24910 ac_configure_extra_args=
24912 if $ac_cs_silent; then
24913 exec 6>/dev/null
24914 ac_configure_extra_args="$ac_configure_extra_args --silent"
24917 _ACEOF
24918 cat >>$CONFIG_STATUS <<_ACEOF
24919 if \$ac_cs_recheck; then
24920 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24921 CONFIG_SHELL=$SHELL
24922 export CONFIG_SHELL
24923 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24926 _ACEOF
24927 cat >>$CONFIG_STATUS <<\_ACEOF
24928 exec 5>>config.log
24930 echo
24931 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24932 ## Running $as_me. ##
24933 _ASBOX
24934 echo "$ac_log"
24935 } >&5
24937 _ACEOF
24938 cat >>$CONFIG_STATUS <<_ACEOF
24940 # INIT-COMMANDS
24942 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24944 _ACEOF
24946 cat >>$CONFIG_STATUS <<\_ACEOF
24948 # Handling of arguments.
24949 for ac_config_target in $ac_config_targets
24951 case $ac_config_target in
24952 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24953 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24954 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24955 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24956 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
24957 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
24958 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
24959 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
24960 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24961 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24962 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24963 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24964 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24966 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24967 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24968 { (exit 1); exit 1; }; };;
24969 esac
24970 done
24973 # If the user did not use the arguments to specify the items to instantiate,
24974 # then the envvar interface is used. Set only those that are not.
24975 # We use the long form for the default assignment because of an extremely
24976 # bizarre bug on SunOS 4.1.3.
24977 if $ac_need_defaults; then
24978 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24979 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24980 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24983 # Have a temporary directory for convenience. Make it in the build tree
24984 # simply because there is no reason against having it here, and in addition,
24985 # creating and moving files from /tmp can sometimes cause problems.
24986 # Hook for its removal unless debugging.
24987 # Note that there is a small window in which the directory will not be cleaned:
24988 # after its creation but before its name has been assigned to `$tmp'.
24989 $debug ||
24991 tmp=
24992 trap 'exit_status=$?
24993 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24995 trap '{ (exit 1); exit 1; }' 1 2 13 15
24997 # Create a (secure) tmp directory for tmp files.
25000 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25001 test -n "$tmp" && test -d "$tmp"
25002 } ||
25004 tmp=./conf$$-$RANDOM
25005 (umask 077 && mkdir "$tmp")
25006 } ||
25008 echo "$me: cannot create a temporary directory in ." >&2
25009 { (exit 1); exit 1; }
25013 # Set up the sed scripts for CONFIG_FILES section.
25016 # No need to generate the scripts if there are no CONFIG_FILES.
25017 # This happens for instance when ./config.status config.h
25018 if test -n "$CONFIG_FILES"; then
25020 _ACEOF
25024 ac_delim='%!_!# '
25025 for ac_last_try in false false false false false :; do
25026 cat >conf$$subs.sed <<_ACEOF
25027 SHELL!$SHELL$ac_delim
25028 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25029 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25030 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25031 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25032 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25033 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25034 exec_prefix!$exec_prefix$ac_delim
25035 prefix!$prefix$ac_delim
25036 program_transform_name!$program_transform_name$ac_delim
25037 bindir!$bindir$ac_delim
25038 sbindir!$sbindir$ac_delim
25039 libexecdir!$libexecdir$ac_delim
25040 datarootdir!$datarootdir$ac_delim
25041 datadir!$datadir$ac_delim
25042 sysconfdir!$sysconfdir$ac_delim
25043 sharedstatedir!$sharedstatedir$ac_delim
25044 localstatedir!$localstatedir$ac_delim
25045 includedir!$includedir$ac_delim
25046 oldincludedir!$oldincludedir$ac_delim
25047 docdir!$docdir$ac_delim
25048 infodir!$infodir$ac_delim
25049 htmldir!$htmldir$ac_delim
25050 dvidir!$dvidir$ac_delim
25051 pdfdir!$pdfdir$ac_delim
25052 psdir!$psdir$ac_delim
25053 libdir!$libdir$ac_delim
25054 localedir!$localedir$ac_delim
25055 mandir!$mandir$ac_delim
25056 DEFS!$DEFS$ac_delim
25057 ECHO_C!$ECHO_C$ac_delim
25058 ECHO_N!$ECHO_N$ac_delim
25059 ECHO_T!$ECHO_T$ac_delim
25060 LIBS!$LIBS$ac_delim
25061 build_alias!$build_alias$ac_delim
25062 host_alias!$host_alias$ac_delim
25063 target_alias!$target_alias$ac_delim
25064 MAINT!$MAINT$ac_delim
25065 build!$build$ac_delim
25066 build_cpu!$build_cpu$ac_delim
25067 build_vendor!$build_vendor$ac_delim
25068 build_os!$build_os$ac_delim
25069 host!$host$ac_delim
25070 host_cpu!$host_cpu$ac_delim
25071 host_vendor!$host_vendor$ac_delim
25072 host_os!$host_os$ac_delim
25073 CC!$CC$ac_delim
25074 CFLAGS!$CFLAGS$ac_delim
25075 LDFLAGS!$LDFLAGS$ac_delim
25076 CPPFLAGS!$CPPFLAGS$ac_delim
25077 ac_ct_CC!$ac_ct_CC$ac_delim
25078 EXEEXT!$EXEEXT$ac_delim
25079 OBJEXT!$OBJEXT$ac_delim
25080 CPP!$CPP$ac_delim
25081 GREP!$GREP$ac_delim
25082 EGREP!$EGREP$ac_delim
25083 LN_S!$LN_S$ac_delim
25084 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25085 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25086 INSTALL_DATA!$INSTALL_DATA$ac_delim
25087 RANLIB!$RANLIB$ac_delim
25088 INSTALL_INFO!$INSTALL_INFO$ac_delim
25089 GZIP_PROG!$GZIP_PROG$ac_delim
25090 MAKEINFO!$MAKEINFO$ac_delim
25091 LIBSOUND!$LIBSOUND$ac_delim
25092 PKG_CONFIG!$PKG_CONFIG$ac_delim
25093 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
25094 ALSA_LIBS!$ALSA_LIBS$ac_delim
25095 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
25096 SET_MAKE!$SET_MAKE$ac_delim
25097 XMKMF!$XMKMF$ac_delim
25098 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
25099 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
25100 RSVG_LIBS!$RSVG_LIBS$ac_delim
25101 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
25102 GTK_LIBS!$GTK_LIBS$ac_delim
25103 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
25104 DBUS_LIBS!$DBUS_LIBS$ac_delim
25105 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
25106 XFT_LIBS!$XFT_LIBS$ac_delim
25107 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
25108 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
25109 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
25110 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
25111 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
25112 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
25113 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
25114 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
25115 ALLOCA!$ALLOCA$ac_delim
25116 liblockfile!$liblockfile$ac_delim
25117 LIBOBJS!$LIBOBJS$ac_delim
25118 NEED_SETGID!$NEED_SETGID$ac_delim
25119 KMEM_GROUP!$KMEM_GROUP$ac_delim
25120 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
25121 GETOPT_H!$GETOPT_H$ac_delim
25122 GETOPTOBJS!$GETOPTOBJS$ac_delim
25123 version!$version$ac_delim
25124 _ACEOF
25126 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25127 break
25128 elif $ac_last_try; then
25129 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25130 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25131 { (exit 1); exit 1; }; }
25132 else
25133 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25135 done
25137 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25138 if test -n "$ac_eof"; then
25139 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25140 ac_eof=`expr $ac_eof + 1`
25143 cat >>$CONFIG_STATUS <<_ACEOF
25144 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25145 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25146 _ACEOF
25147 sed '
25148 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25149 s/^/s,@/; s/!/@,|#_!!_#|/
25152 s/'"$ac_delim"'$/,g/; t
25153 s/$/\\/; p
25154 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25155 ' >>$CONFIG_STATUS <conf$$subs.sed
25156 rm -f conf$$subs.sed
25157 cat >>$CONFIG_STATUS <<_ACEOF
25158 CEOF$ac_eof
25159 _ACEOF
25162 ac_delim='%!_!# '
25163 for ac_last_try in false false false false false :; do
25164 cat >conf$$subs.sed <<_ACEOF
25165 configuration!$configuration$ac_delim
25166 canonical!$canonical$ac_delim
25167 srcdir!$srcdir$ac_delim
25168 lispdir!$lispdir$ac_delim
25169 locallisppath!$locallisppath$ac_delim
25170 lisppath!$lisppath$ac_delim
25171 x_default_search_path!$x_default_search_path$ac_delim
25172 etcdir!$etcdir$ac_delim
25173 archlibdir!$archlibdir$ac_delim
25174 bitmapdir!$bitmapdir$ac_delim
25175 gamedir!$gamedir$ac_delim
25176 gameuser!$gameuser$ac_delim
25177 c_switch_system!$c_switch_system$ac_delim
25178 c_switch_machine!$c_switch_machine$ac_delim
25179 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
25180 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
25181 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
25182 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
25183 machfile!$machfile$ac_delim
25184 opsysfile!$opsysfile$ac_delim
25185 carbon_appdir!$carbon_appdir$ac_delim
25186 LTLIBOBJS!$LTLIBOBJS$ac_delim
25187 _ACEOF
25189 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
25190 break
25191 elif $ac_last_try; then
25192 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25193 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25194 { (exit 1); exit 1; }; }
25195 else
25196 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25198 done
25200 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25201 if test -n "$ac_eof"; then
25202 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25203 ac_eof=`expr $ac_eof + 1`
25206 cat >>$CONFIG_STATUS <<_ACEOF
25207 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25208 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25209 _ACEOF
25210 sed '
25211 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25212 s/^/s,@/; s/!/@,|#_!!_#|/
25215 s/'"$ac_delim"'$/,g/; t
25216 s/$/\\/; p
25217 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25218 ' >>$CONFIG_STATUS <conf$$subs.sed
25219 rm -f conf$$subs.sed
25220 cat >>$CONFIG_STATUS <<_ACEOF
25221 :end
25222 s/|#_!!_#|//g
25223 CEOF$ac_eof
25224 _ACEOF
25227 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25228 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25229 # trailing colons and then remove the whole line if VPATH becomes empty
25230 # (actually we leave an empty line to preserve line numbers).
25231 if test "x$srcdir" = x.; then
25232 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25233 s/:*\$(srcdir):*/:/
25234 s/:*\${srcdir}:*/:/
25235 s/:*@srcdir@:*/:/
25236 s/^\([^=]*=[ ]*\):*/\1/
25237 s/:*$//
25238 s/^[^=]*=[ ]*$//
25242 cat >>$CONFIG_STATUS <<\_ACEOF
25243 fi # test -n "$CONFIG_FILES"
25246 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
25248 case $ac_tag in
25249 :[FHLC]) ac_mode=$ac_tag; continue;;
25250 esac
25251 case $ac_mode$ac_tag in
25252 :[FHL]*:*);;
25253 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25254 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25255 { (exit 1); exit 1; }; };;
25256 :[FH]-) ac_tag=-:-;;
25257 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25258 esac
25259 ac_save_IFS=$IFS
25260 IFS=:
25261 set x $ac_tag
25262 IFS=$ac_save_IFS
25263 shift
25264 ac_file=$1
25265 shift
25267 case $ac_mode in
25268 :L) ac_source=$1;;
25269 :[FH])
25270 ac_file_inputs=
25271 for ac_f
25273 case $ac_f in
25274 -) ac_f="$tmp/stdin";;
25275 *) # Look for the file first in the build tree, then in the source tree
25276 # (if the path is not absolute). The absolute path cannot be DOS-style,
25277 # because $ac_f cannot contain `:'.
25278 test -f "$ac_f" ||
25279 case $ac_f in
25280 [\\/$]*) false;;
25281 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25282 esac ||
25283 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25284 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25285 { (exit 1); exit 1; }; };;
25286 esac
25287 ac_file_inputs="$ac_file_inputs $ac_f"
25288 done
25290 # Let's still pretend it is `configure' which instantiates (i.e., don't
25291 # use $as_me), people would be surprised to read:
25292 # /* config.h. Generated by config.status. */
25293 configure_input="Generated from "`IFS=:
25294 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25295 if test x"$ac_file" != x-; then
25296 configure_input="$ac_file. $configure_input"
25297 { echo "$as_me:$LINENO: creating $ac_file" >&5
25298 echo "$as_me: creating $ac_file" >&6;}
25301 case $ac_tag in
25302 *:-:* | *:-) cat >"$tmp/stdin";;
25303 esac
25305 esac
25307 ac_dir=`$as_dirname -- "$ac_file" ||
25308 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25309 X"$ac_file" : 'X\(//\)[^/]' \| \
25310 X"$ac_file" : 'X\(//\)$' \| \
25311 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25312 echo X"$ac_file" |
25313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25314 s//\1/
25317 /^X\(\/\/\)[^/].*/{
25318 s//\1/
25321 /^X\(\/\/\)$/{
25322 s//\1/
25325 /^X\(\/\).*/{
25326 s//\1/
25329 s/.*/./; q'`
25330 { as_dir="$ac_dir"
25331 case $as_dir in #(
25332 -*) as_dir=./$as_dir;;
25333 esac
25334 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25335 as_dirs=
25336 while :; do
25337 case $as_dir in #(
25338 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25339 *) as_qdir=$as_dir;;
25340 esac
25341 as_dirs="'$as_qdir' $as_dirs"
25342 as_dir=`$as_dirname -- "$as_dir" ||
25343 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25344 X"$as_dir" : 'X\(//\)[^/]' \| \
25345 X"$as_dir" : 'X\(//\)$' \| \
25346 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25347 echo X"$as_dir" |
25348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25349 s//\1/
25352 /^X\(\/\/\)[^/].*/{
25353 s//\1/
25356 /^X\(\/\/\)$/{
25357 s//\1/
25360 /^X\(\/\).*/{
25361 s//\1/
25364 s/.*/./; q'`
25365 test -d "$as_dir" && break
25366 done
25367 test -z "$as_dirs" || eval "mkdir $as_dirs"
25368 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25369 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25370 { (exit 1); exit 1; }; }; }
25371 ac_builddir=.
25373 case "$ac_dir" in
25374 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25376 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25377 # A ".." for each directory in $ac_dir_suffix.
25378 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25379 case $ac_top_builddir_sub in
25380 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25381 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25382 esac ;;
25383 esac
25384 ac_abs_top_builddir=$ac_pwd
25385 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25386 # for backward compatibility:
25387 ac_top_builddir=$ac_top_build_prefix
25389 case $srcdir in
25390 .) # We are building in place.
25391 ac_srcdir=.
25392 ac_top_srcdir=$ac_top_builddir_sub
25393 ac_abs_top_srcdir=$ac_pwd ;;
25394 [\\/]* | ?:[\\/]* ) # Absolute name.
25395 ac_srcdir=$srcdir$ac_dir_suffix;
25396 ac_top_srcdir=$srcdir
25397 ac_abs_top_srcdir=$srcdir ;;
25398 *) # Relative name.
25399 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25400 ac_top_srcdir=$ac_top_build_prefix$srcdir
25401 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25402 esac
25403 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25406 case $ac_mode in
25409 # CONFIG_FILE
25412 case $INSTALL in
25413 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25414 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25415 esac
25416 _ACEOF
25418 cat >>$CONFIG_STATUS <<\_ACEOF
25419 # If the template does not know about datarootdir, expand it.
25420 # FIXME: This hack should be removed a few years after 2.60.
25421 ac_datarootdir_hack=; ac_datarootdir_seen=
25423 case `sed -n '/datarootdir/ {
25427 /@datadir@/p
25428 /@docdir@/p
25429 /@infodir@/p
25430 /@localedir@/p
25431 /@mandir@/p
25432 ' $ac_file_inputs` in
25433 *datarootdir*) ac_datarootdir_seen=yes;;
25434 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25435 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25436 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25437 _ACEOF
25438 cat >>$CONFIG_STATUS <<_ACEOF
25439 ac_datarootdir_hack='
25440 s&@datadir@&$datadir&g
25441 s&@docdir@&$docdir&g
25442 s&@infodir@&$infodir&g
25443 s&@localedir@&$localedir&g
25444 s&@mandir@&$mandir&g
25445 s&\\\${datarootdir}&$datarootdir&g' ;;
25446 esac
25447 _ACEOF
25449 # Neutralize VPATH when `$srcdir' = `.'.
25450 # Shell code in configure.ac might set extrasub.
25451 # FIXME: do we really want to maintain this feature?
25452 cat >>$CONFIG_STATUS <<_ACEOF
25453 sed "$ac_vpsub
25454 $extrasub
25455 _ACEOF
25456 cat >>$CONFIG_STATUS <<\_ACEOF
25458 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25459 s&@configure_input@&$configure_input&;t t
25460 s&@top_builddir@&$ac_top_builddir_sub&;t t
25461 s&@srcdir@&$ac_srcdir&;t t
25462 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25463 s&@top_srcdir@&$ac_top_srcdir&;t t
25464 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25465 s&@builddir@&$ac_builddir&;t t
25466 s&@abs_builddir@&$ac_abs_builddir&;t t
25467 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25468 s&@INSTALL@&$ac_INSTALL&;t t
25469 $ac_datarootdir_hack
25470 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25472 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25473 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25474 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25475 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25476 which seems to be undefined. Please make sure it is defined." >&5
25477 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25478 which seems to be undefined. Please make sure it is defined." >&2;}
25480 rm -f "$tmp/stdin"
25481 case $ac_file in
25482 -) cat "$tmp/out"; rm -f "$tmp/out";;
25483 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25484 esac
25488 # CONFIG_HEADER
25490 _ACEOF
25492 # Transform confdefs.h into a sed script `conftest.defines', that
25493 # substitutes the proper values into config.h.in to produce config.h.
25494 rm -f conftest.defines conftest.tail
25495 # First, append a space to every undef/define line, to ease matching.
25496 echo 's/$/ /' >conftest.defines
25497 # Then, protect against being on the right side of a sed subst, or in
25498 # an unquoted here document, in config.status. If some macros were
25499 # called several times there might be several #defines for the same
25500 # symbol, which is useless. But do not sort them, since the last
25501 # AC_DEFINE must be honored.
25502 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25503 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25504 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25505 # PARAMS is the parameter list in the macro definition--in most cases, it's
25506 # just an empty string.
25507 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25508 ac_dB='\\)[ (].*,\\1define\\2'
25509 ac_dC=' '
25510 ac_dD=' ,'
25512 uniq confdefs.h |
25513 sed -n '
25514 t rset
25515 :rset
25516 s/^[ ]*#[ ]*define[ ][ ]*//
25517 t ok
25520 s/[\\&,]/\\&/g
25521 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25522 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25523 ' >>conftest.defines
25525 # Remove the space that was appended to ease matching.
25526 # Then replace #undef with comments. This is necessary, for
25527 # example, in the case of _POSIX_SOURCE, which is predefined and required
25528 # on some systems where configure will not decide to define it.
25529 # (The regexp can be short, since the line contains either #define or #undef.)
25530 echo 's/ $//
25531 s,^[ #]*u.*,/* & */,' >>conftest.defines
25533 # Break up conftest.defines:
25534 ac_max_sed_lines=50
25536 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25537 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25538 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25539 # et cetera.
25540 ac_in='$ac_file_inputs'
25541 ac_out='"$tmp/out1"'
25542 ac_nxt='"$tmp/out2"'
25544 while :
25546 # Write a here document:
25547 cat >>$CONFIG_STATUS <<_ACEOF
25548 # First, check the format of the line:
25549 cat >"\$tmp/defines.sed" <<\\CEOF
25550 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25551 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25553 :def
25554 _ACEOF
25555 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25556 echo 'CEOF
25557 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25558 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25559 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25560 grep . conftest.tail >/dev/null || break
25561 rm -f conftest.defines
25562 mv conftest.tail conftest.defines
25563 done
25564 rm -f conftest.defines conftest.tail
25566 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25567 cat >>$CONFIG_STATUS <<\_ACEOF
25568 if test x"$ac_file" != x-; then
25569 echo "/* $configure_input */" >"$tmp/config.h"
25570 cat "$ac_result" >>"$tmp/config.h"
25571 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25572 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25573 echo "$as_me: $ac_file is unchanged" >&6;}
25574 else
25575 rm -f $ac_file
25576 mv "$tmp/config.h" $ac_file
25578 else
25579 echo "/* $configure_input */"
25580 cat "$ac_result"
25582 rm -f "$tmp/out12"
25585 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25586 echo "$as_me: executing $ac_file commands" >&6;}
25588 esac
25591 case $ac_file$ac_mode in
25592 "default":C)
25594 ### Make the necessary directories, if they don't exist.
25595 for dir in etc lisp ; do
25596 test -d ${dir} || mkdir ${dir}
25597 done
25599 # Build src/Makefile from ${srcdir}/src/Makefile.c
25600 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25601 # This must be done after src/config.h is built, since we rely on that file.
25603 # Now get this: Some word that is part of the ${srcdir} directory name
25604 # or the ${configuration} value might, just might, happen to be an
25605 # identifier like `sun4' or `i386' or something, and be predefined by
25606 # the C preprocessor to some helpful value like 1, or maybe the empty
25607 # string. Needless to say consequent macro substitutions are less
25608 # than conducive to the makefile finding the correct directory.
25609 undefs="`echo $top_srcdir $configuration $canonical |
25610 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25611 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
25614 echo creating src/epaths.h
25615 ${MAKE-make} epaths-force
25617 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25618 # `..' to `. .' unless invoked with -traditional
25620 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
25621 CPPFLAGS="$CPPFLAGS -traditional"
25624 echo creating lib-src/Makefile
25625 ( cd lib-src
25626 rm -f junk.c junk1.c junk2.c
25627 sed -e '/start of cpp stuff/q' \
25628 < Makefile.c > junk1.c
25629 sed -e '1,/start of cpp stuff/d'\
25630 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25631 < Makefile.c > junk.c
25632 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25633 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25634 cat junk1.c junk2.c > Makefile.new
25635 rm -f junk.c junk1.c junk2.c
25636 chmod 444 Makefile.new
25637 mv -f Makefile.new Makefile
25640 echo creating src/Makefile
25641 ( cd src
25642 rm -f junk.c junk1.c junk2.c
25643 sed -e '/start of cpp stuff/q' \
25644 < Makefile.c > junk1.c
25645 sed -e '1,/start of cpp stuff/d'\
25646 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25647 < Makefile.c > junk.c
25648 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25649 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25650 cat junk1.c junk2.c > Makefile.new
25651 rm -f junk.c junk1.c junk2.c
25652 chmod 444 Makefile.new
25653 mv -f Makefile.new Makefile
25656 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25657 echo creating src/.gdbinit
25658 echo source $srcdir/src/.gdbinit > src/.gdbinit
25661 # This is how we know whether to re-run configure in certain cases.
25662 touch src/config.stamp
25666 esac
25667 done # for ac_tag
25670 { (exit 0); exit 0; }
25671 _ACEOF
25672 chmod +x $CONFIG_STATUS
25673 ac_clean_files=$ac_clean_files_save
25676 # configure is writing to config.log, and then calls config.status.
25677 # config.status does its own redirection, appending to config.log.
25678 # Unfortunately, on DOS this fails, as config.log is still kept open
25679 # by configure, so config.status won't be able to write to it; its
25680 # output is simply discarded. So we exec the FD to /dev/null,
25681 # effectively closing config.log, so it can be properly (re)opened and
25682 # appended to by config.status. When coming back to configure, we
25683 # need to make the FD available again.
25684 if test "$no_create" != yes; then
25685 ac_cs_success=:
25686 ac_config_status_args=
25687 test "$silent" = yes &&
25688 ac_config_status_args="$ac_config_status_args --quiet"
25689 exec 5>/dev/null
25690 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25691 exec 5>>config.log
25692 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25693 # would make configure fail if this is the last instruction.
25694 $ac_cs_success || { (exit 1); exit 1; }