Add arch tagline
[emacs.git] / configure
blob7dce568f7032365b94c9830b3be251eaed4a3b81
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for emacs 23.0.50.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560 # Initializations.
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
573 PACKAGE_NAME='emacs'
574 PACKAGE_TARNAME='emacs'
575 PACKAGE_VERSION='23.0.50'
576 PACKAGE_STRING='emacs 23.0.50'
577 PACKAGE_BUGREPORT=''
579 ac_unique_file="src/lisp.h"
580 ac_config_libobj_dir=src
581 # Factoring default headers for most tests.
582 ac_includes_default="\
583 #include <stdio.h>
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
586 #endif
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
589 #endif
590 #ifdef STDC_HEADERS
591 # include <stdlib.h>
592 # include <stddef.h>
593 #else
594 # ifdef HAVE_STDLIB_H
595 # include <stdlib.h>
596 # endif
597 #endif
598 #ifdef HAVE_STRING_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600 # include <memory.h>
601 # endif
602 # include <string.h>
603 #endif
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
606 #endif
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
609 #endif
610 #ifdef HAVE_STDINT_H
611 # include <stdint.h>
612 #endif
613 #ifdef HAVE_UNISTD_H
614 # include <unistd.h>
615 #endif"
617 ac_header_list=
618 ac_func_list=
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 MAINT
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
673 GREP
674 EGREP
675 LN_S
676 INSTALL_PROGRAM
677 INSTALL_SCRIPT
678 INSTALL_DATA
679 RANLIB
680 INSTALL_INFO
681 GZIP_PROG
682 MAKEINFO
683 LIBSOUND
684 PKG_CONFIG
685 ALSA_CFLAGS
686 ALSA_LIBS
687 CFLAGS_SOUND
688 SET_MAKE
689 XMKMF
690 HAVE_XSERVER
691 RSVG_CFLAGS
692 RSVG_LIBS
693 GTK_CFLAGS
694 GTK_LIBS
695 DBUS_CFLAGS
696 DBUS_LIBS
697 XFT_CFLAGS
698 XFT_LIBS
699 FREETYPE_CFLAGS
700 FREETYPE_LIBS
701 FONTCONFIG_CFLAGS
702 FONTCONFIG_LIBS
703 LIBOTF_CFLAGS
704 LIBOTF_LIBS
705 M17N_FLT_CFLAGS
706 M17N_FLT_LIBS
707 ALLOCA
708 liblockfile
709 LIBOBJS
710 NEED_SETGID
711 KMEM_GROUP
712 GETLOADAVG_LIBS
713 GETOPT_H
714 GETOPTOBJS
715 version
716 configuration
717 canonical
718 srcdir
719 lispdir
720 locallisppath
721 lisppath
722 x_default_search_path
723 etcdir
724 archlibdir
725 bitmapdir
726 gamedir
727 gameuser
728 c_switch_system
729 c_switch_machine
730 LD_SWITCH_X_SITE
731 LD_SWITCH_X_SITE_AUX
732 C_SWITCH_X_SITE
733 X_TOOLKIT_TYPE
734 machfile
735 opsysfile
736 carbon_appdir
737 LTLIBOBJS'
738 ac_subst_files=''
739 ac_precious_vars='build_alias
740 host_alias
741 target_alias
743 CFLAGS
744 LDFLAGS
745 LIBS
746 CPPFLAGS
748 XMKMF'
751 # Initialize some variables set by options.
752 ac_init_help=
753 ac_init_version=false
754 # The variables have the same names as the options, with
755 # dashes changed to underlines.
756 cache_file=/dev/null
757 exec_prefix=NONE
758 no_create=
759 no_recursion=
760 prefix=NONE
761 program_prefix=NONE
762 program_suffix=NONE
763 program_transform_name=s,x,x,
764 silent=
765 site=
766 srcdir=
767 verbose=
768 x_includes=NONE
769 x_libraries=NONE
771 # Installation directory options.
772 # These are left unexpanded so users can "make install exec_prefix=/foo"
773 # and all the variables that are supposed to be based on exec_prefix
774 # by default will actually change.
775 # Use braces instead of parens because sh, perl, etc. also accept them.
776 # (The list follows the same order as the GNU Coding Standards.)
777 bindir='${exec_prefix}/bin'
778 sbindir='${exec_prefix}/sbin'
779 libexecdir='${exec_prefix}/libexec'
780 datarootdir='${prefix}/share'
781 datadir='${datarootdir}'
782 sysconfdir='${prefix}/etc'
783 sharedstatedir='${prefix}/com'
784 localstatedir='${prefix}/var'
785 includedir='${prefix}/include'
786 oldincludedir='/usr/include'
787 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
788 infodir='${datarootdir}/info'
789 htmldir='${docdir}'
790 dvidir='${docdir}'
791 pdfdir='${docdir}'
792 psdir='${docdir}'
793 libdir='${exec_prefix}/lib'
794 localedir='${datarootdir}/locale'
795 mandir='${datarootdir}/man'
797 ac_prev=
798 ac_dashdash=
799 for ac_option
801 # If the previous option needs an argument, assign it.
802 if test -n "$ac_prev"; then
803 eval $ac_prev=\$ac_option
804 ac_prev=
805 continue
808 case $ac_option in
809 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
810 *) ac_optarg=yes ;;
811 esac
813 # Accept the important Cygnus configure options, so we can diagnose typos.
815 case $ac_dashdash$ac_option in
817 ac_dashdash=yes ;;
819 -bindir | --bindir | --bindi | --bind | --bin | --bi)
820 ac_prev=bindir ;;
821 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
822 bindir=$ac_optarg ;;
824 -build | --build | --buil | --bui | --bu)
825 ac_prev=build_alias ;;
826 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
827 build_alias=$ac_optarg ;;
829 -cache-file | --cache-file | --cache-fil | --cache-fi \
830 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
831 ac_prev=cache_file ;;
832 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
833 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
834 cache_file=$ac_optarg ;;
836 --config-cache | -C)
837 cache_file=config.cache ;;
839 -datadir | --datadir | --datadi | --datad)
840 ac_prev=datadir ;;
841 -datadir=* | --datadir=* | --datadi=* | --datad=*)
842 datadir=$ac_optarg ;;
844 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
845 | --dataroo | --dataro | --datar)
846 ac_prev=datarootdir ;;
847 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
848 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
849 datarootdir=$ac_optarg ;;
851 -disable-* | --disable-*)
852 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
853 # Reject names that are not valid shell variable names.
854 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
855 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
856 { (exit 1); exit 1; }; }
857 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
858 eval enable_$ac_feature=no ;;
860 -docdir | --docdir | --docdi | --doc | --do)
861 ac_prev=docdir ;;
862 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
863 docdir=$ac_optarg ;;
865 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
866 ac_prev=dvidir ;;
867 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
868 dvidir=$ac_optarg ;;
870 -enable-* | --enable-*)
871 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
872 # Reject names that are not valid shell variable names.
873 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
874 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
875 { (exit 1); exit 1; }; }
876 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
877 eval enable_$ac_feature=\$ac_optarg ;;
879 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
880 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
881 | --exec | --exe | --ex)
882 ac_prev=exec_prefix ;;
883 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
884 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
885 | --exec=* | --exe=* | --ex=*)
886 exec_prefix=$ac_optarg ;;
888 -gas | --gas | --ga | --g)
889 # Obsolete; use --with-gas.
890 with_gas=yes ;;
892 -help | --help | --hel | --he | -h)
893 ac_init_help=long ;;
894 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
895 ac_init_help=recursive ;;
896 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
897 ac_init_help=short ;;
899 -host | --host | --hos | --ho)
900 ac_prev=host_alias ;;
901 -host=* | --host=* | --hos=* | --ho=*)
902 host_alias=$ac_optarg ;;
904 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
905 ac_prev=htmldir ;;
906 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
907 | --ht=*)
908 htmldir=$ac_optarg ;;
910 -includedir | --includedir | --includedi | --included | --include \
911 | --includ | --inclu | --incl | --inc)
912 ac_prev=includedir ;;
913 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
914 | --includ=* | --inclu=* | --incl=* | --inc=*)
915 includedir=$ac_optarg ;;
917 -infodir | --infodir | --infodi | --infod | --info | --inf)
918 ac_prev=infodir ;;
919 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
920 infodir=$ac_optarg ;;
922 -libdir | --libdir | --libdi | --libd)
923 ac_prev=libdir ;;
924 -libdir=* | --libdir=* | --libdi=* | --libd=*)
925 libdir=$ac_optarg ;;
927 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
928 | --libexe | --libex | --libe)
929 ac_prev=libexecdir ;;
930 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
931 | --libexe=* | --libex=* | --libe=*)
932 libexecdir=$ac_optarg ;;
934 -localedir | --localedir | --localedi | --localed | --locale)
935 ac_prev=localedir ;;
936 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
937 localedir=$ac_optarg ;;
939 -localstatedir | --localstatedir | --localstatedi | --localstated \
940 | --localstate | --localstat | --localsta | --localst | --locals)
941 ac_prev=localstatedir ;;
942 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
943 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
944 localstatedir=$ac_optarg ;;
946 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
947 ac_prev=mandir ;;
948 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
949 mandir=$ac_optarg ;;
951 -nfp | --nfp | --nf)
952 # Obsolete; use --without-fp.
953 with_fp=no ;;
955 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
956 | --no-cr | --no-c | -n)
957 no_create=yes ;;
959 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
960 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
961 no_recursion=yes ;;
963 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
964 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
965 | --oldin | --oldi | --old | --ol | --o)
966 ac_prev=oldincludedir ;;
967 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
968 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
969 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
970 oldincludedir=$ac_optarg ;;
972 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
973 ac_prev=prefix ;;
974 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
975 prefix=$ac_optarg ;;
977 -program-prefix | --program-prefix | --program-prefi | --program-pref \
978 | --program-pre | --program-pr | --program-p)
979 ac_prev=program_prefix ;;
980 -program-prefix=* | --program-prefix=* | --program-prefi=* \
981 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
982 program_prefix=$ac_optarg ;;
984 -program-suffix | --program-suffix | --program-suffi | --program-suff \
985 | --program-suf | --program-su | --program-s)
986 ac_prev=program_suffix ;;
987 -program-suffix=* | --program-suffix=* | --program-suffi=* \
988 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
989 program_suffix=$ac_optarg ;;
991 -program-transform-name | --program-transform-name \
992 | --program-transform-nam | --program-transform-na \
993 | --program-transform-n | --program-transform- \
994 | --program-transform | --program-transfor \
995 | --program-transfo | --program-transf \
996 | --program-trans | --program-tran \
997 | --progr-tra | --program-tr | --program-t)
998 ac_prev=program_transform_name ;;
999 -program-transform-name=* | --program-transform-name=* \
1000 | --program-transform-nam=* | --program-transform-na=* \
1001 | --program-transform-n=* | --program-transform-=* \
1002 | --program-transform=* | --program-transfor=* \
1003 | --program-transfo=* | --program-transf=* \
1004 | --program-trans=* | --program-tran=* \
1005 | --progr-tra=* | --program-tr=* | --program-t=*)
1006 program_transform_name=$ac_optarg ;;
1008 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1009 ac_prev=pdfdir ;;
1010 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1011 pdfdir=$ac_optarg ;;
1013 -psdir | --psdir | --psdi | --psd | --ps)
1014 ac_prev=psdir ;;
1015 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1016 psdir=$ac_optarg ;;
1018 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1019 | -silent | --silent | --silen | --sile | --sil)
1020 silent=yes ;;
1022 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1023 ac_prev=sbindir ;;
1024 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1025 | --sbi=* | --sb=*)
1026 sbindir=$ac_optarg ;;
1028 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1029 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1030 | --sharedst | --shareds | --shared | --share | --shar \
1031 | --sha | --sh)
1032 ac_prev=sharedstatedir ;;
1033 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1034 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1035 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1036 | --sha=* | --sh=*)
1037 sharedstatedir=$ac_optarg ;;
1039 -site | --site | --sit)
1040 ac_prev=site ;;
1041 -site=* | --site=* | --sit=*)
1042 site=$ac_optarg ;;
1044 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1045 ac_prev=srcdir ;;
1046 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1047 srcdir=$ac_optarg ;;
1049 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1050 | --syscon | --sysco | --sysc | --sys | --sy)
1051 ac_prev=sysconfdir ;;
1052 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1053 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1054 sysconfdir=$ac_optarg ;;
1056 -target | --target | --targe | --targ | --tar | --ta | --t)
1057 ac_prev=target_alias ;;
1058 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1059 target_alias=$ac_optarg ;;
1061 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1062 verbose=yes ;;
1064 -version | --version | --versio | --versi | --vers | -V)
1065 ac_init_version=: ;;
1067 -with-* | --with-*)
1068 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1071 { echo "$as_me: error: invalid package name: $ac_package" >&2
1072 { (exit 1); exit 1; }; }
1073 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1074 eval with_$ac_package=\$ac_optarg ;;
1076 -without-* | --without-*)
1077 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1080 { echo "$as_me: error: invalid package name: $ac_package" >&2
1081 { (exit 1); exit 1; }; }
1082 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1083 eval with_$ac_package=no ;;
1085 --x)
1086 # Obsolete; use --with-x.
1087 with_x=yes ;;
1089 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1090 | --x-incl | --x-inc | --x-in | --x-i)
1091 ac_prev=x_includes ;;
1092 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1093 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1094 x_includes=$ac_optarg ;;
1096 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1097 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1098 ac_prev=x_libraries ;;
1099 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1100 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1101 x_libraries=$ac_optarg ;;
1103 -*) { echo "$as_me: error: unrecognized option: $ac_option
1104 Try \`$0 --help' for more information." >&2
1105 { (exit 1); exit 1; }; }
1108 *=*)
1109 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1112 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1113 { (exit 1); exit 1; }; }
1114 eval $ac_envvar=\$ac_optarg
1115 export $ac_envvar ;;
1118 # FIXME: should be removed in autoconf 3.0.
1119 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1120 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1121 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1122 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1125 esac
1126 done
1128 if test -n "$ac_prev"; then
1129 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1130 { echo "$as_me: error: missing argument to $ac_option" >&2
1131 { (exit 1); exit 1; }; }
1134 # Be sure to have absolute directory names.
1135 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1136 datadir sysconfdir sharedstatedir localstatedir includedir \
1137 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1138 libdir localedir mandir
1140 eval ac_val=\$$ac_var
1141 case $ac_val in
1142 [\\/$]* | ?:[\\/]* ) continue;;
1143 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1144 esac
1145 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1146 { (exit 1); exit 1; }; }
1147 done
1149 # There might be people who depend on the old broken behavior: `$host'
1150 # used to hold the argument of --host etc.
1151 # FIXME: To remove some day.
1152 build=$build_alias
1153 host=$host_alias
1154 target=$target_alias
1156 # FIXME: To remove some day.
1157 if test "x$host_alias" != x; then
1158 if test "x$build_alias" = x; then
1159 cross_compiling=maybe
1160 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1161 If a cross compiler is detected then cross compile mode will be used." >&2
1162 elif test "x$build_alias" != "x$host_alias"; then
1163 cross_compiling=yes
1167 ac_tool_prefix=
1168 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1170 test "$silent" = yes && exec 6>/dev/null
1173 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1174 ac_ls_di=`ls -di .` &&
1175 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1176 { echo "$as_me: error: Working directory cannot be determined" >&2
1177 { (exit 1); exit 1; }; }
1178 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1179 { echo "$as_me: error: pwd does not report name of working directory" >&2
1180 { (exit 1); exit 1; }; }
1183 # Find the source files, if location was not specified.
1184 if test -z "$srcdir"; then
1185 ac_srcdir_defaulted=yes
1186 # Try the directory containing this script, then the parent directory.
1187 ac_confdir=`$as_dirname -- "$0" ||
1188 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1189 X"$0" : 'X\(//\)[^/]' \| \
1190 X"$0" : 'X\(//\)$' \| \
1191 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1192 echo X"$0" |
1193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1194 s//\1/
1197 /^X\(\/\/\)[^/].*/{
1198 s//\1/
1201 /^X\(\/\/\)$/{
1202 s//\1/
1205 /^X\(\/\).*/{
1206 s//\1/
1209 s/.*/./; q'`
1210 srcdir=$ac_confdir
1211 if test ! -r "$srcdir/$ac_unique_file"; then
1212 srcdir=..
1214 else
1215 ac_srcdir_defaulted=no
1217 if test ! -r "$srcdir/$ac_unique_file"; then
1218 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1219 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1220 { (exit 1); exit 1; }; }
1222 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1223 ac_abs_confdir=`(
1224 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1225 { (exit 1); exit 1; }; }
1226 pwd)`
1227 # When building in place, set srcdir=.
1228 if test "$ac_abs_confdir" = "$ac_pwd"; then
1229 srcdir=.
1231 # Remove unnecessary trailing slashes from srcdir.
1232 # Double slashes in file names in object file debugging info
1233 # mess up M-x gdb in Emacs.
1234 case $srcdir in
1235 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1236 esac
1237 for ac_var in $ac_precious_vars; do
1238 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1239 eval ac_env_${ac_var}_value=\$${ac_var}
1240 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1241 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1242 done
1245 # Report the --help message.
1247 if test "$ac_init_help" = "long"; then
1248 # Omit some internal or obsolete options to make the list less imposing.
1249 # This message is too long to be a string in the A/UX 3.1 sh.
1250 cat <<_ACEOF
1251 \`configure' configures emacs 23.0.50 to adapt to many kinds of systems.
1253 Usage: $0 [OPTION]... [VAR=VALUE]...
1255 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1256 VAR=VALUE. See below for descriptions of some of the useful variables.
1258 Defaults for the options are specified in brackets.
1260 Configuration:
1261 -h, --help display this help and exit
1262 --help=short display options specific to this package
1263 --help=recursive display the short help of all the included packages
1264 -V, --version display version information and exit
1265 -q, --quiet, --silent do not print \`checking...' messages
1266 --cache-file=FILE cache test results in FILE [disabled]
1267 -C, --config-cache alias for \`--cache-file=config.cache'
1268 -n, --no-create do not create output files
1269 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1271 Installation directories:
1272 --prefix=PREFIX install architecture-independent files in PREFIX
1273 [$ac_default_prefix]
1274 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1275 [PREFIX]
1277 By default, \`make install' will install all the files in
1278 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1279 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1280 for instance \`--prefix=\$HOME'.
1282 For better control, use the options below.
1284 Fine tuning of the installation directories:
1285 --bindir=DIR user executables [EPREFIX/bin]
1286 --sbindir=DIR system admin executables [EPREFIX/sbin]
1287 --libexecdir=DIR program executables [EPREFIX/libexec]
1288 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1289 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1290 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1291 --libdir=DIR object code libraries [EPREFIX/lib]
1292 --includedir=DIR C header files [PREFIX/include]
1293 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1294 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1295 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1296 --infodir=DIR info documentation [DATAROOTDIR/info]
1297 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1298 --mandir=DIR man documentation [DATAROOTDIR/man]
1299 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1300 --htmldir=DIR html documentation [DOCDIR]
1301 --dvidir=DIR dvi documentation [DOCDIR]
1302 --pdfdir=DIR pdf documentation [DOCDIR]
1303 --psdir=DIR ps documentation [DOCDIR]
1304 _ACEOF
1306 cat <<\_ACEOF
1308 Program names:
1309 --program-prefix=PREFIX prepend PREFIX to installed program names
1310 --program-suffix=SUFFIX append SUFFIX to installed program names
1311 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1313 X features:
1314 --x-includes=DIR X include files are in DIR
1315 --x-libraries=DIR X library files are in DIR
1317 System types:
1318 --build=BUILD configure for building on BUILD [guessed]
1319 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1320 _ACEOF
1323 if test -n "$ac_init_help"; then
1324 case $ac_init_help in
1325 short | recursive ) echo "Configuration of emacs 23.0.50:";;
1326 esac
1327 cat <<\_ACEOF
1329 Optional Features:
1330 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1331 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1332 --enable-carbon-app[=DIR]
1333 specify install directory for Emacs.app on Mac OS X
1334 [DIR=/Application]
1335 --enable-font-backend compile code of font-backend support
1336 --enable-asserts compile code with asserts enabled
1337 --enable-maintainer-mode
1338 enable make rules and dependencies not useful (and
1339 sometimes confusing) to the casual installer
1340 --enable-locallisppath=PATH
1341 directories Emacs should search for lisp files
1342 specific to this site
1343 --disable-largefile omit support for large files
1345 Optional Packages:
1346 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1347 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1348 --without-gcc don't use GCC to compile Emacs if GCC is found
1349 --without-pop don't support POP mail retrieval with movemail
1350 --with-kerberos support Kerberos-authenticated POP
1351 --with-kerberos5 support Kerberos version 5 authenticated POP
1352 --with-hesiod support Hesiod to get the POP server host
1353 --without-sound don't compile with sound support
1354 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1355 motif, gtk, no)
1356 --with-xpm use -lXpm for displaying XPM images
1357 --with-jpeg use -ljpeg for displaying JPEG images
1358 --with-tiff use -ltiff for displaying TIFF images
1359 --with-gif use -lgif (or -lungif) for displaying GIF images
1360 --with-png use -lpng for displaying PNG images
1361 --with-freetype use -lfreetype for local fonts support
1362 --with-xft use -lXft for anti aliased fonts
1363 --with-gpm use -lgpm for mouse support on a GNU/Linux console
1364 --with-rsvg use -lrsvg-2 for displaying SVG images
1365 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1366 --with-pkg-config-prog Path to pkg-config for finding GTK and librsvg
1367 --without-toolkit-scroll-bars
1368 don't use Motif or Xaw3d scroll bars
1369 --without-xaw3d don't use Xaw3d
1370 --without-xim don't use X11 XIM
1371 --without-carbon don't use Carbon GUI on Mac OS X
1372 --with-dbus use D-Bus
1373 --without-libotf don't use libotf for OpenType font support
1374 --without-m17n-flt don't use m17n-flt for text shaping
1375 --with-x use the X Window System
1377 Some influential environment variables:
1378 CC C compiler command
1379 CFLAGS C compiler flags
1380 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1381 nonstandard directory <lib dir>
1382 LIBS libraries to pass to the linker, e.g. -l<library>
1383 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1384 you have headers in a nonstandard directory <include dir>
1385 CPP C preprocessor
1386 XMKMF Path to xmkmf, Makefile generator for X Window System
1388 Use these variables to override the choices made by `configure' or to help
1389 it to find libraries and programs with nonstandard names/locations.
1391 _ACEOF
1392 ac_status=$?
1395 if test "$ac_init_help" = "recursive"; then
1396 # If there are subdirs, report their specific --help.
1397 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1398 test -d "$ac_dir" || continue
1399 ac_builddir=.
1401 case "$ac_dir" in
1402 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1404 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1405 # A ".." for each directory in $ac_dir_suffix.
1406 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1407 case $ac_top_builddir_sub in
1408 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1409 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1410 esac ;;
1411 esac
1412 ac_abs_top_builddir=$ac_pwd
1413 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1414 # for backward compatibility:
1415 ac_top_builddir=$ac_top_build_prefix
1417 case $srcdir in
1418 .) # We are building in place.
1419 ac_srcdir=.
1420 ac_top_srcdir=$ac_top_builddir_sub
1421 ac_abs_top_srcdir=$ac_pwd ;;
1422 [\\/]* | ?:[\\/]* ) # Absolute name.
1423 ac_srcdir=$srcdir$ac_dir_suffix;
1424 ac_top_srcdir=$srcdir
1425 ac_abs_top_srcdir=$srcdir ;;
1426 *) # Relative name.
1427 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1428 ac_top_srcdir=$ac_top_build_prefix$srcdir
1429 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1430 esac
1431 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1433 cd "$ac_dir" || { ac_status=$?; continue; }
1434 # Check for guested configure.
1435 if test -f "$ac_srcdir/configure.gnu"; then
1436 echo &&
1437 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1438 elif test -f "$ac_srcdir/configure"; then
1439 echo &&
1440 $SHELL "$ac_srcdir/configure" --help=recursive
1441 else
1442 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1443 fi || ac_status=$?
1444 cd "$ac_pwd" || { ac_status=$?; break; }
1445 done
1448 test -n "$ac_init_help" && exit $ac_status
1449 if $ac_init_version; then
1450 cat <<\_ACEOF
1451 emacs configure 23.0.50
1452 generated by GNU Autoconf 2.61
1454 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1455 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1456 This configure script is free software; the Free Software Foundation
1457 gives unlimited permission to copy, distribute and modify it.
1458 _ACEOF
1459 exit
1461 cat >config.log <<_ACEOF
1462 This file contains any messages produced by compilers while
1463 running configure, to aid debugging if configure makes a mistake.
1465 It was created by emacs $as_me 23.0.50, which was
1466 generated by GNU Autoconf 2.61. Invocation command line was
1468 $ $0 $@
1470 _ACEOF
1471 exec 5>>config.log
1473 cat <<_ASUNAME
1474 ## --------- ##
1475 ## Platform. ##
1476 ## --------- ##
1478 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1479 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1480 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1481 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1482 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1484 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1485 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1487 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1488 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1489 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1490 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1491 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1492 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1493 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1495 _ASUNAME
1497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1498 for as_dir in $PATH
1500 IFS=$as_save_IFS
1501 test -z "$as_dir" && as_dir=.
1502 echo "PATH: $as_dir"
1503 done
1504 IFS=$as_save_IFS
1506 } >&5
1508 cat >&5 <<_ACEOF
1511 ## ----------- ##
1512 ## Core tests. ##
1513 ## ----------- ##
1515 _ACEOF
1518 # Keep a trace of the command line.
1519 # Strip out --no-create and --no-recursion so they do not pile up.
1520 # Strip out --silent because we don't want to record it for future runs.
1521 # Also quote any args containing shell meta-characters.
1522 # Make two passes to allow for proper duplicate-argument suppression.
1523 ac_configure_args=
1524 ac_configure_args0=
1525 ac_configure_args1=
1526 ac_must_keep_next=false
1527 for ac_pass in 1 2
1529 for ac_arg
1531 case $ac_arg in
1532 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1533 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1534 | -silent | --silent | --silen | --sile | --sil)
1535 continue ;;
1536 *\'*)
1537 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1538 esac
1539 case $ac_pass in
1540 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1542 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1543 if test $ac_must_keep_next = true; then
1544 ac_must_keep_next=false # Got value, back to normal.
1545 else
1546 case $ac_arg in
1547 *=* | --config-cache | -C | -disable-* | --disable-* \
1548 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1549 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1550 | -with-* | --with-* | -without-* | --without-* | --x)
1551 case "$ac_configure_args0 " in
1552 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1553 esac
1555 -* ) ac_must_keep_next=true ;;
1556 esac
1558 ac_configure_args="$ac_configure_args '$ac_arg'"
1560 esac
1561 done
1562 done
1563 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1564 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1566 # When interrupted or exit'd, cleanup temporary files, and complete
1567 # config.log. We remove comments because anyway the quotes in there
1568 # would cause problems or look ugly.
1569 # WARNING: Use '\'' to represent an apostrophe within the trap.
1570 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1571 trap 'exit_status=$?
1572 # Save into config.log some information that might help in debugging.
1574 echo
1576 cat <<\_ASBOX
1577 ## ---------------- ##
1578 ## Cache variables. ##
1579 ## ---------------- ##
1580 _ASBOX
1581 echo
1582 # The following way of writing the cache mishandles newlines in values,
1584 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1585 eval ac_val=\$$ac_var
1586 case $ac_val in #(
1587 *${as_nl}*)
1588 case $ac_var in #(
1589 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1590 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1591 esac
1592 case $ac_var in #(
1593 _ | IFS | as_nl) ;; #(
1594 *) $as_unset $ac_var ;;
1595 esac ;;
1596 esac
1597 done
1598 (set) 2>&1 |
1599 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1600 *${as_nl}ac_space=\ *)
1601 sed -n \
1602 "s/'\''/'\''\\\\'\'''\''/g;
1603 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1604 ;; #(
1606 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1608 esac |
1609 sort
1611 echo
1613 cat <<\_ASBOX
1614 ## ----------------- ##
1615 ## Output variables. ##
1616 ## ----------------- ##
1617 _ASBOX
1618 echo
1619 for ac_var in $ac_subst_vars
1621 eval ac_val=\$$ac_var
1622 case $ac_val in
1623 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1624 esac
1625 echo "$ac_var='\''$ac_val'\''"
1626 done | sort
1627 echo
1629 if test -n "$ac_subst_files"; then
1630 cat <<\_ASBOX
1631 ## ------------------- ##
1632 ## File substitutions. ##
1633 ## ------------------- ##
1634 _ASBOX
1635 echo
1636 for ac_var in $ac_subst_files
1638 eval ac_val=\$$ac_var
1639 case $ac_val in
1640 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1641 esac
1642 echo "$ac_var='\''$ac_val'\''"
1643 done | sort
1644 echo
1647 if test -s confdefs.h; then
1648 cat <<\_ASBOX
1649 ## ----------- ##
1650 ## confdefs.h. ##
1651 ## ----------- ##
1652 _ASBOX
1653 echo
1654 cat confdefs.h
1655 echo
1657 test "$ac_signal" != 0 &&
1658 echo "$as_me: caught signal $ac_signal"
1659 echo "$as_me: exit $exit_status"
1660 } >&5
1661 rm -f core *.core core.conftest.* &&
1662 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1663 exit $exit_status
1665 for ac_signal in 1 2 13 15; do
1666 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1667 done
1668 ac_signal=0
1670 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1671 rm -f -r conftest* confdefs.h
1673 # Predefined preprocessor variables.
1675 cat >>confdefs.h <<_ACEOF
1676 #define PACKAGE_NAME "$PACKAGE_NAME"
1677 _ACEOF
1680 cat >>confdefs.h <<_ACEOF
1681 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1682 _ACEOF
1685 cat >>confdefs.h <<_ACEOF
1686 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1687 _ACEOF
1690 cat >>confdefs.h <<_ACEOF
1691 #define PACKAGE_STRING "$PACKAGE_STRING"
1692 _ACEOF
1695 cat >>confdefs.h <<_ACEOF
1696 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1697 _ACEOF
1700 # Let the site file select an alternate cache file if it wants to.
1701 # Prefer explicitly selected file to automatically selected ones.
1702 if test -n "$CONFIG_SITE"; then
1703 set x "$CONFIG_SITE"
1704 elif test "x$prefix" != xNONE; then
1705 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1706 else
1707 set x "$ac_default_prefix/share/config.site" \
1708 "$ac_default_prefix/etc/config.site"
1710 shift
1711 for ac_site_file
1713 if test -r "$ac_site_file"; then
1714 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1715 echo "$as_me: loading site script $ac_site_file" >&6;}
1716 sed 's/^/| /' "$ac_site_file" >&5
1717 . "$ac_site_file"
1719 done
1721 if test -r "$cache_file"; then
1722 # Some versions of bash will fail to source /dev/null (special
1723 # files actually), so we avoid doing that.
1724 if test -f "$cache_file"; then
1725 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1726 echo "$as_me: loading cache $cache_file" >&6;}
1727 case $cache_file in
1728 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1729 *) . "./$cache_file";;
1730 esac
1732 else
1733 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1734 echo "$as_me: creating cache $cache_file" >&6;}
1735 >$cache_file
1738 ac_header_list="$ac_header_list sys/time.h"
1739 ac_header_list="$ac_header_list unistd.h"
1740 ac_func_list="$ac_func_list alarm"
1741 # Check that the precious variables saved in the cache have kept the same
1742 # value.
1743 ac_cache_corrupted=false
1744 for ac_var in $ac_precious_vars; do
1745 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1746 eval ac_new_set=\$ac_env_${ac_var}_set
1747 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1748 eval ac_new_val=\$ac_env_${ac_var}_value
1749 case $ac_old_set,$ac_new_set in
1750 set,)
1751 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1752 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1753 ac_cache_corrupted=: ;;
1754 ,set)
1755 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1756 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1757 ac_cache_corrupted=: ;;
1758 ,);;
1760 if test "x$ac_old_val" != "x$ac_new_val"; then
1761 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1762 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1763 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1764 echo "$as_me: former value: $ac_old_val" >&2;}
1765 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1766 echo "$as_me: current value: $ac_new_val" >&2;}
1767 ac_cache_corrupted=:
1768 fi;;
1769 esac
1770 # Pass precious variables to config.status.
1771 if test "$ac_new_set" = set; then
1772 case $ac_new_val in
1773 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1774 *) ac_arg=$ac_var=$ac_new_val ;;
1775 esac
1776 case " $ac_configure_args " in
1777 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1778 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1779 esac
1781 done
1782 if $ac_cache_corrupted; then
1783 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1784 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1785 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1786 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1787 { (exit 1); exit 1; }; }
1814 ac_ext=c
1815 ac_cpp='$CPP $CPPFLAGS'
1816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1821 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1825 test "$program_prefix" != NONE &&
1826 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1827 # Use a double $ so make ignores it.
1828 test "$program_suffix" != NONE &&
1829 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1830 # Double any \ or $. echo might interpret backslashes.
1831 # By default was `s,x,x', remove it if useless.
1832 cat <<\_ACEOF >conftest.sed
1833 s/[\\$]/&&/g;s/;s,x,x,$//
1834 _ACEOF
1835 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1836 rm -f conftest.sed
1839 lispdir='${datadir}/emacs/${version}/lisp'
1840 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1841 '${datadir}/emacs/site-lisp'
1842 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1843 etcdir='${datadir}/emacs/${version}/etc'
1844 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1845 docdir='${datadir}/emacs/${version}/etc'
1846 gamedir='${localstatedir}/games/emacs'
1848 gameuser=games
1852 # Check whether --with-gcc was given.
1853 if test "${with_gcc+set}" = set; then
1854 withval=$with_gcc;
1859 # Check whether --with-pop was given.
1860 if test "${with_pop+set}" = set; then
1861 withval=$with_pop; if test "$withval" = yes; then
1862 cat >>confdefs.h <<\_ACEOF
1863 #define MAIL_USE_POP 1
1864 _ACEOF
1866 else :
1868 else
1869 cat >>confdefs.h <<\_ACEOF
1870 #define MAIL_USE_POP 1
1871 _ACEOF
1878 # Check whether --with-kerberos was given.
1879 if test "${with_kerberos+set}" = set; then
1880 withval=$with_kerberos; if test "$withval" = yes; then
1881 cat >>confdefs.h <<\_ACEOF
1882 #define KERBEROS 1
1883 _ACEOF
1891 # Check whether --with-kerberos5 was given.
1892 if test "${with_kerberos5+set}" = set; then
1893 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1894 if test "${with_kerberos+set}" != set; then
1895 with_kerberos=yes
1896 cat >>confdefs.h <<\_ACEOF
1897 #define KERBEROS 1
1898 _ACEOF
1902 cat >>confdefs.h <<\_ACEOF
1903 #define KERBEROS5 1
1904 _ACEOF
1911 # Check whether --with-hesiod was given.
1912 if test "${with_hesiod+set}" = set; then
1913 withval=$with_hesiod; if test "$withval" = yes; then
1915 cat >>confdefs.h <<\_ACEOF
1916 #define HESIOD 1
1917 _ACEOF
1924 # Check whether --with-sound was given.
1925 if test "${with_sound+set}" = set; then
1926 withval=$with_sound;
1931 # Check whether --with-x-toolkit was given.
1932 if test "${with_x_toolkit+set}" = set; then
1933 withval=$with_x_toolkit; case "${withval}" in
1934 y | ye | yes ) val=gtk ;;
1935 n | no ) val=no ;;
1936 l | lu | luc | luci | lucid ) val=lucid ;;
1937 a | at | ath | athe | athen | athena ) val=athena ;;
1938 m | mo | mot | moti | motif ) val=motif ;;
1939 g | gt | gtk ) val=gtk ;;
1941 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1942 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1943 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1944 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1945 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1946 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1947 { (exit 1); exit 1; }; }
1949 esac
1950 with_x_toolkit=$val
1956 # Check whether --with-xpm was given.
1957 if test "${with_xpm+set}" = set; then
1958 withval=$with_xpm;
1962 # Check whether --with-jpeg was given.
1963 if test "${with_jpeg+set}" = set; then
1964 withval=$with_jpeg;
1968 # Check whether --with-tiff was given.
1969 if test "${with_tiff+set}" = set; then
1970 withval=$with_tiff;
1974 # Check whether --with-gif was given.
1975 if test "${with_gif+set}" = set; then
1976 withval=$with_gif;
1980 # Check whether --with-png was given.
1981 if test "${with_png+set}" = set; then
1982 withval=$with_png;
1986 # Check whether --with-freetype was given.
1987 if test "${with_freetype+set}" = set; then
1988 withval=$with_freetype;
1992 # Check whether --with-xft was given.
1993 if test "${with_xft+set}" = set; then
1994 withval=$with_xft;
1998 # Check whether --with-gpm was given.
1999 if test "${with_gpm+set}" = set; then
2000 withval=$with_gpm;
2004 # Check whether --with-rsvg was given.
2005 if test "${with_rsvg+set}" = set; then
2006 withval=$with_rsvg;
2010 # Check whether --with-gtk was given.
2011 if test "${with_gtk+set}" = set; then
2012 withval=$with_gtk;
2016 # Check whether --with-pkg-config-prog was given.
2017 if test "${with_pkg_config_prog+set}" = set; then
2018 withval=$with_pkg_config_prog;
2022 # Check whether --with-toolkit-scroll-bars was given.
2023 if test "${with_toolkit_scroll_bars+set}" = set; then
2024 withval=$with_toolkit_scroll_bars;
2028 # Check whether --with-xaw3d was given.
2029 if test "${with_xaw3d+set}" = set; then
2030 withval=$with_xaw3d;
2034 # Check whether --with-xim was given.
2035 if test "${with_xim+set}" = set; then
2036 withval=$with_xim;
2040 # Check whether --with-carbon was given.
2041 if test "${with_carbon+set}" = set; then
2042 withval=$with_carbon;
2046 # Check whether --with-dbus was given.
2047 if test "${with_dbus+set}" = set; then
2048 withval=$with_dbus;
2052 # Check whether --with-libotf was given.
2053 if test "${with_libotf+set}" = set; then
2054 withval=$with_libotf;
2058 # Check whether --with-m17n-flt was given.
2059 if test "${with_m17n_flt+set}" = set; then
2060 withval=$with_m17n_flt;
2064 # Check whether --enable-carbon-app was given.
2065 if test "${enable_carbon_app+set}" = set; then
2066 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
2070 # Check whether --enable-font-backend was given.
2071 if test "${enable_font_backend+set}" = set; then
2072 enableval=$enable_font_backend; USE_FONT_BACKEND=$enableval
2073 else
2074 USE_FONT_BACKEND=no
2078 # Check whether --enable-asserts was given.
2079 if test "${enable_asserts+set}" = set; then
2080 enableval=$enable_asserts; USE_XASSERTS=$enableval
2081 else
2082 USE_XASSERTS=no
2086 # Check whether --enable-maintainer-mode was given.
2087 if test "${enable_maintainer_mode+set}" = set; then
2088 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2089 else
2090 USE_MAINTAINER_MODE=no
2093 if test $USE_MAINTAINER_MODE = yes; then
2094 MAINT=
2095 else
2096 MAINT=#
2100 # Check whether --enable-locallisppath was given.
2101 if test "${enable_locallisppath+set}" = set; then
2102 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2103 locallisppath=
2104 elif test "${enableval}" != "yes"; then
2105 locallisppath=${enableval}
2110 #### Make srcdir absolute, if it isn't already. It's important to
2111 #### avoid running the path through pwd unnecessarily, since pwd can
2112 #### give you automounter prefixes, which can go away. We do all this
2113 #### so Emacs can find its files when run uninstalled.
2114 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2115 unset CDPATH
2116 case "${srcdir}" in
2117 /* ) ;;
2119 ## We may be able to use the $PWD environment variable to make this
2120 ## absolute. But sometimes PWD is inaccurate.
2121 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2122 ## but that tested only for a well-formed and valid PWD,
2123 ## it did not object when PWD was well-formed and valid but just wrong.
2124 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2125 then
2126 srcdir="$PWD"
2127 else
2128 srcdir="`(cd ${srcdir}; pwd)`"
2131 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2132 esac
2134 #### Check if the source directory already has a configured system in it.
2135 if test `pwd` != `(cd ${srcdir} && pwd)` \
2136 && test -f "${srcdir}/src/config.h" ; then
2137 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2138 as a build directory right now; it has been configured in its own
2139 right. To configure in another directory as well, you MUST
2140 use GNU make. If you do not have GNU make, then you must
2141 now do \`make distclean' in ${srcdir},
2142 and then run $0 again." >&5
2143 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2144 as a build directory right now; it has been configured in its own
2145 right. To configure in another directory as well, you MUST
2146 use GNU make. If you do not have GNU make, then you must
2147 now do \`make distclean' in ${srcdir},
2148 and then run $0 again." >&2;}
2151 #### Given the configuration name, set machfile and opsysfile to the
2152 #### names of the m/*.h and s/*.h files we should use.
2154 ### Canonicalize the configuration name.
2156 ac_aux_dir=
2157 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2158 if test -f "$ac_dir/install-sh"; then
2159 ac_aux_dir=$ac_dir
2160 ac_install_sh="$ac_aux_dir/install-sh -c"
2161 break
2162 elif test -f "$ac_dir/install.sh"; then
2163 ac_aux_dir=$ac_dir
2164 ac_install_sh="$ac_aux_dir/install.sh -c"
2165 break
2166 elif test -f "$ac_dir/shtool"; then
2167 ac_aux_dir=$ac_dir
2168 ac_install_sh="$ac_aux_dir/shtool install -c"
2169 break
2171 done
2172 if test -z "$ac_aux_dir"; then
2173 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2174 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2175 { (exit 1); exit 1; }; }
2178 # These three variables are undocumented and unsupported,
2179 # and are intended to be withdrawn in a future Autoconf release.
2180 # They can cause serious problems if a builder's source tree is in a directory
2181 # whose full name contains unusual characters.
2182 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2183 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2184 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2187 # Make sure we can run config.sub.
2188 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2189 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2190 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2191 { (exit 1); exit 1; }; }
2193 { echo "$as_me:$LINENO: checking build system type" >&5
2194 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2195 if test "${ac_cv_build+set}" = set; then
2196 echo $ECHO_N "(cached) $ECHO_C" >&6
2197 else
2198 ac_build_alias=$build_alias
2199 test "x$ac_build_alias" = x &&
2200 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2201 test "x$ac_build_alias" = x &&
2202 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2203 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2204 { (exit 1); exit 1; }; }
2205 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2206 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2207 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2208 { (exit 1); exit 1; }; }
2211 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2212 echo "${ECHO_T}$ac_cv_build" >&6; }
2213 case $ac_cv_build in
2214 *-*-*) ;;
2215 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2216 echo "$as_me: error: invalid value of canonical build" >&2;}
2217 { (exit 1); exit 1; }; };;
2218 esac
2219 build=$ac_cv_build
2220 ac_save_IFS=$IFS; IFS='-'
2221 set x $ac_cv_build
2222 shift
2223 build_cpu=$1
2224 build_vendor=$2
2225 shift; shift
2226 # Remember, the first character of IFS is used to create $*,
2227 # except with old shells:
2228 build_os=$*
2229 IFS=$ac_save_IFS
2230 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2233 { echo "$as_me:$LINENO: checking host system type" >&5
2234 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2235 if test "${ac_cv_host+set}" = set; then
2236 echo $ECHO_N "(cached) $ECHO_C" >&6
2237 else
2238 if test "x$host_alias" = x; then
2239 ac_cv_host=$ac_cv_build
2240 else
2241 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2242 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2243 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2244 { (exit 1); exit 1; }; }
2248 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2249 echo "${ECHO_T}$ac_cv_host" >&6; }
2250 case $ac_cv_host in
2251 *-*-*) ;;
2252 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2253 echo "$as_me: error: invalid value of canonical host" >&2;}
2254 { (exit 1); exit 1; }; };;
2255 esac
2256 host=$ac_cv_host
2257 ac_save_IFS=$IFS; IFS='-'
2258 set x $ac_cv_host
2259 shift
2260 host_cpu=$1
2261 host_vendor=$2
2262 shift; shift
2263 # Remember, the first character of IFS is used to create $*,
2264 # except with old shells:
2265 host_os=$*
2266 IFS=$ac_save_IFS
2267 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2270 canonical=$host
2271 configuration=${host_alias-${build_alias-$host}}
2275 ### If you add support for a new configuration, add code to this
2276 ### switch statement to recognize your configuration name and select
2277 ### the appropriate operating system and machine description files.
2279 ### You would hope that you could choose an m/*.h file pretty much
2280 ### based on the machine portion of the configuration name, and an s-
2281 ### file based on the operating system portion. However, it turns out
2282 ### that each m/*.h file is pretty manufacturer-specific - for
2283 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2284 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2285 ### machines. So we basically have to have a special case for each
2286 ### configuration name.
2288 ### As far as handling version numbers on operating systems is
2289 ### concerned, make sure things will fail in a fixable way. If
2290 ### /etc/MACHINES doesn't say anything about version numbers, be
2291 ### prepared to handle anything reasonably. If version numbers
2292 ### matter, be sure /etc/MACHINES says something about it.
2294 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2295 ### "System V Release 4"; he writes, "The old convention encouraged
2296 ### confusion between `system' and `release' levels'."
2298 machine='' opsys='' unported=no
2299 case "${canonical}" in
2301 ## FreeBSD ports
2302 *-*-freebsd* )
2303 opsys=freebsd
2304 case "${canonical}" in
2305 alpha*-*-freebsd*) machine=alpha ;;
2306 ia64-*-freebsd*) machine=ia64 ;;
2307 sparc64-*-freebsd*) machine=sparc ;;
2308 powerpc-*-freebsd*) machine=macppc ;;
2309 i[3456]86-*-freebsd*) machine=intel386 ;;
2310 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2311 esac
2314 ## FreeBSD kernel + glibc based userland
2315 *-*-kfreebsd*gnu* )
2316 opsys=gnu-kfreebsd
2317 case "${canonical}" in
2318 alpha*-*-kfreebsd*) machine=alpha ;;
2319 ia64-*-kfreebsd*) machine=ia64 ;;
2320 sparc64-*-kfreebsd*) machine=sparc ;;
2321 powerpc-*-kfreebsd*) machine=macppc ;;
2322 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2323 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2324 esac
2327 ## NetBSD ports
2328 *-*-netbsd* )
2329 opsys=netbsd
2330 if test -f /usr/lib/crti.o; then
2332 cat >>confdefs.h <<\_ACEOF
2333 #define HAVE_CRTIN
2334 _ACEOF
2338 case "${canonical}" in
2339 alpha*-*-netbsd*) machine=alpha ;;
2340 i[3456]86-*-netbsd*) machine=intel386 ;;
2341 m68k-*-netbsd*)
2342 # This is somewhat bogus.
2343 machine=hp9000s300 ;;
2344 mips-*-netbsd*) machine=pmax ;;
2345 mipsel-*-netbsd*) machine=pmax ;;
2346 mipseb-*-netbsd*) machine=pmax ;;
2347 ns32k-*-netbsd*) machine=ns32000 ;;
2348 powerpc-*-netbsd*) machine=macppc ;;
2349 sparc*-*-netbsd*) machine=sparc ;;
2350 vax-*-netbsd*) machine=vax ;;
2351 arm-*-netbsd*) machine=arm ;;
2352 x86_64-*-netbsd*) machine=amdx86-64 ;;
2353 hppa-*-netbsd*) machine=hp800 ;;
2354 shle-*-netbsd*) machine=sh3el ;;
2355 esac
2358 ## OpenBSD ports
2359 *-*-openbsd* )
2360 opsys=openbsd
2361 case "${canonical}" in
2362 alpha*-*-openbsd*) machine=alpha ;;
2363 arm-*-openbsd*) machine=arm ;;
2364 hppa-*-openbsd*) machine=hp9000s300 ;;
2365 i386-*-openbsd*) machine=intel386 ;;
2366 m68k-*-openbsd*) machine=hp9000s300 ;;
2367 m88k-*-openbsd*) machine=aviion ;;
2368 mips64-*-openbsd*) machine=mips64 ;;
2369 powerpc-*-openbsd*) machine=macppc ;;
2370 sh-*-openbsd*) machine=sh3el ;;
2371 sparc*-*-openbsd*) machine=sparc ;;
2372 vax-*-openbsd*) machine=vax ;;
2373 x86_64-*-openbsd*) machine=amdx86-64 ;;
2374 esac
2377 ## LynxOS ports
2378 *-*-lynxos* )
2379 opsys=lynxos
2380 case "${canonical}" in
2381 i[3456]86-*-lynxos*) machine=intel386 ;;
2382 powerpc-*-lynxos*) machine=powerpc ;;
2383 esac
2386 ## Acorn RISCiX:
2387 arm-acorn-riscix1.1* )
2388 machine=acorn opsys=riscix1-1
2390 arm-acorn-riscix1.2* | arm-acorn-riscix )
2391 ## This name is riscix12 instead of riscix1.2
2392 ## to avoid a file name conflict on MSDOS.
2393 machine=acorn opsys=riscix12
2396 ## BSDI ports
2397 *-*-bsdi* )
2398 opsys=bsdi
2399 case "${canonical}" in
2400 i[345]86-*-bsdi*) machine=intel386 ;;
2401 sparc-*-bsdi*) machine=sparc ;;
2402 powerpc-*-bsdi*) machine=macppc ;;
2403 esac
2404 case "${canonical}" in
2405 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2406 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2407 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2408 *-*-bsdi3* ) opsys=bsdos3 ;;
2409 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2410 esac
2413 ## Alliant machines
2414 ## Strictly speaking, we need the version of the alliant operating
2415 ## system to choose the right machine file, but currently the
2416 ## configuration name doesn't tell us enough to choose the right
2417 ## one; we need to give alliants their own operating system name to
2418 ## do this right. When someone cares, they can help us.
2419 fx80-alliant-* )
2420 machine=alliant4 opsys=bsd4-2
2422 i860-alliant-* )
2423 machine=alliant-2800 opsys=bsd4-3
2426 ## Alpha (DEC) machines.
2427 alpha*-dec-osf* )
2428 machine=alpha opsys=osf1
2429 # This is needed to find X11R6.1 libraries for certain tests.
2430 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2431 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2432 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2433 # due to non-traditional preprocessing with the current compiler
2434 # defaults. OSF 4 can also have that compiler version, and there
2435 # seems always to have been a usable /usr/bin/cpp.
2436 NON_GNU_CPP=/usr/bin/cpp
2437 case "${canonical}" in
2438 alpha*-dec-osf[5-9]*)
2439 opsys=osf5-0 ;;
2440 esac
2443 alpha*-*-linux-gnu* )
2444 machine=alpha opsys=gnu-linux
2447 arm*-*-linux-gnu* )
2448 machine=arm opsys=gnu-linux
2451 ## Altos 3068
2452 m68*-altos-sysv* )
2453 machine=altos opsys=usg5-2
2456 ## Amdahl UTS
2457 580-amdahl-sysv* )
2458 machine=amdahl opsys=usg5-2-2
2461 ## Apollo, Domain/OS
2462 m68*-apollo-* )
2463 machine=apollo opsys=bsd4-3
2466 ## Apple Darwin / Mac OS X
2467 *-apple-darwin* )
2468 case "${canonical}" in
2469 i[3456]86-* ) machine=intel386 ;;
2470 powerpc-* ) machine=powermac ;;
2471 * ) unported=yes ;;
2472 esac
2473 opsys=darwin
2474 # Define CPP as follows to make autoconf work correctly.
2475 CPP="${CC-cc} -E -no-cpp-precomp"
2476 # Use fink packages if available.
2477 if test -d /sw/include && test -d /sw/lib; then
2478 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2479 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2480 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2484 ## AT&T 3b2, 3b5, 3b15, 3b20
2485 we32k-att-sysv* )
2486 machine=att3b opsys=usg5-2-2
2489 ## AT&T 3b1 - The Mighty Unix PC!
2490 m68*-att-sysv* )
2491 machine=7300 opsys=usg5-2-2
2494 ## Bull dpx20
2495 rs6000-bull-bosx* )
2496 machine=ibmrs6000 opsys=aix3-2
2499 ## Bull dpx2
2500 m68*-bull-sysv3* )
2501 machine=dpx2 opsys=usg5-3
2504 ## Bull sps7
2505 m68*-bull-sysv2* )
2506 machine=sps7 opsys=usg5-2
2509 ## CCI 5/32, 6/32 -- see "Tahoe".
2511 ## Celerity
2512 ## I don't know what configuration name to use for this; config.sub
2513 ## doesn't seem to know anything about it. Hey, Celerity users, get
2514 ## in touch with us!
2515 celerity-celerity-bsd* )
2516 machine=celerity opsys=bsd4-2
2519 ## Clipper
2520 ## What operating systems does this chip run that Emacs has been
2521 ## tested on?
2522 clipper-* )
2523 machine=clipper
2524 ## We'll use the catch-all code at the bottom to guess the
2525 ## operating system.
2528 ## Compaq Nonstop
2529 mips-compaq-nonstopux* )
2530 machine=nonstopux opsys=nonstopux
2533 ## Convex
2534 *-convex-bsd* | *-convex-convexos* )
2535 machine=convex opsys=bsd4-3
2536 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2537 NON_GNU_CPP="cc -E -P"
2540 ## Cubix QBx/386
2541 i[3456]86-cubix-sysv* )
2542 machine=intel386 opsys=usg5-3
2545 ## Cydra 5
2546 cydra*-cydrome-sysv* )
2547 machine=cydra5 opsys=usg5-3
2550 ## Data General AViiON Machines
2551 ## DG changed naming conventions with the release of 5.4.4.10, they
2552 ## dropped the initial 5.4 but left the intervening R. Because of the
2553 ## R this shouldn't conflict with older versions of the OS (which I
2554 ## think were named like dgux4.*). In addition, DG new AViiONs series
2555 ## uses either Motorola M88k or Intel Pentium CPUs.
2556 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
2557 machine=aviion opsys=dgux4
2559 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
2560 ## This name is dgux5-4-3 instead of dgux5-4r3
2561 ## to avoid a file name conflict on MSDOS.
2562 machine=aviion opsys=dgux5-4-3
2564 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
2565 machine=aviion opsys=dgux5-4r2
2567 m88k-dg-dgux* )
2568 machine=aviion opsys=dgux
2571 ## Data General AViiON Intel (x86) Machines
2572 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2573 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2574 i[345]86-dg-dguxR4* )
2575 machine=aviion-intel opsys=dgux4
2578 ## DECstations
2579 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2580 machine=pmax opsys=bsd4-2
2582 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2583 machine=pmax opsys=bsd4-3
2585 mips-dec-ultrix* )
2586 machine=pmax opsys=ultrix4-3
2588 mips-dec-osf* )
2589 machine=pmax opsys=osf1
2591 mips-dec-mach_bsd4.3* )
2592 machine=pmax opsys=mach-bsd4-3
2595 ## Motorola Delta machines
2596 m68k-motorola-sysv* | m68000-motorola-sysv* )
2597 machine=delta opsys=usg5-3
2598 if test -z "`type gnucc | grep 'not found'`"
2599 then
2600 if test -s /etc/167config
2601 then CC="gnucc -m68040"
2602 else CC="gnucc -m68881"
2604 else
2605 if test -z "`type gcc | grep 'not found'`"
2606 then CC=gcc
2607 else CC=cc
2611 m88k-motorola-sysv4* )
2612 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2613 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2614 # I hope there are not other 4.0 versions for this machine
2615 # which really need usg5-4 instead.
2616 machine=delta88k opsys=usg5-4-2
2618 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
2619 machine=delta88k opsys=usg5-3
2622 ## Dual machines
2623 m68*-dual-sysv* )
2624 machine=dual opsys=usg5-2
2626 m68*-dual-uniplus* )
2627 machine=dual opsys=unipl5-2
2630 ## Elxsi 6400
2631 elxsi-elxsi-sysv* )
2632 machine=elxsi opsys=usg5-2
2635 ## Encore machines
2636 ns16k-encore-bsd* )
2637 machine=ns16000 opsys=umax
2640 ## The GEC 63 - apparently, this port isn't really finished yet.
2641 # I'm sure we finished off the last of the machines, though. -- fx
2643 ## Gould Power Node and NP1
2644 pn-gould-bsd4.2* )
2645 machine=gould opsys=bsd4-2
2647 pn-gould-bsd4.3* )
2648 machine=gould opsys=bsd4-3
2650 np1-gould-bsd* )
2651 machine=gould-np1 opsys=bsd4-3
2654 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2655 ## as far as Emacs is concerned).
2656 m88k-harris-cxux* )
2657 # Build needs to be different on 7.0 and later releases
2658 case "`uname -r`" in
2659 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2660 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2661 esac
2662 NON_GNU_CPP="/lib/cpp"
2664 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2665 m68k-harris-cxux* )
2666 machine=nh3000 opsys=cxux
2668 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2669 powerpc-harris-powerunix )
2670 machine=nh6000 opsys=powerunix
2671 NON_GNU_CPP="cc -Xo -E -P"
2673 ## SR2001/SR2201 running HI-UX/MPP
2674 hppa1.1-hitachi-hiuxmpp* )
2675 machine=sr2k opsys=hiuxmpp
2677 hppa1.1-hitachi-hiuxwe2* )
2678 machine=sr2k opsys=hiuxwe2
2680 ## Honeywell XPS100
2681 xps*-honeywell-sysv* )
2682 machine=xps100 opsys=usg5-2
2685 ## HP 9000 series 200 or 300
2686 m68*-hp-bsd* )
2687 machine=hp9000s300 opsys=bsd4-3
2689 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2690 m68*-hp-hpux* )
2691 case "`uname -r`" in
2692 ## Someone's system reports A.B8.05 for this.
2693 ## I wonder what other possibilities there are.
2694 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2695 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2696 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2697 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2698 *) machine=hp9000s300 opsys=hpux ;;
2699 esac
2702 ## HP 9000 series 700 and 800, running HP/UX
2703 hppa*-hp-hpux7* )
2704 machine=hp800 opsys=hpux
2706 hppa*-hp-hpux8* )
2707 machine=hp800 opsys=hpux8
2709 hppa*-hp-hpux9shr* )
2710 machine=hp800 opsys=hpux9shr
2712 hppa*-hp-hpux9* )
2713 machine=hp800 opsys=hpux9
2715 hppa*-hp-hpux10.2* )
2716 machine=hp800 opsys=hpux10-20
2718 hppa*-hp-hpux10* )
2719 machine=hp800 opsys=hpux10
2721 hppa*-hp-hpux1[1-9]* )
2722 machine=hp800 opsys=hpux11
2723 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2726 hppa*-*-linux-gnu* )
2727 machine=hp800 opsys=gnu-linux
2730 ## HP 9000 series 700 and 800, running HP/UX
2731 hppa*-hp-hpux* )
2732 ## Cross-compilation? Nah!
2733 case "`uname -r`" in
2734 ## Someone's system reports A.B8.05 for this.
2735 ## I wonder what other possibilities there are.
2736 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2737 *.08.* ) machine=hp800 opsys=hpux8 ;;
2738 *.09.* ) machine=hp800 opsys=hpux9 ;;
2739 *) machine=hp800 opsys=hpux10 ;;
2740 esac
2742 hppa*-*-nextstep* )
2743 machine=hp800 opsys=nextstep
2746 ## Orion machines
2747 orion-orion-bsd* )
2748 machine=orion opsys=bsd4-2
2750 clipper-orion-bsd* )
2751 machine=orion105 opsys=bsd4-2
2754 ## IBM machines
2755 i[3456]86-ibm-aix1.1* )
2756 machine=ibmps2-aix opsys=usg5-2-2
2758 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2759 machine=ibmps2-aix opsys=usg5-3
2761 i370-ibm-aix*)
2762 machine=ibm370aix opsys=usg5-3
2764 s390-*-linux-gnu* )
2765 machine=ibms390 opsys=gnu-linux
2767 s390x-*-linux-gnu* )
2768 machine=ibms390x opsys=gnu-linux
2770 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2771 machine=ibmrs6000 opsys=aix3-1
2773 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2774 machine=ibmrs6000 opsys=aix3-2-5
2776 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2777 machine=ibmrs6000 opsys=aix4-1
2779 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2780 machine=ibmrs6000 opsys=aix4-2
2782 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2783 machine=ibmrs6000 opsys=aix4-2
2785 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2786 machine=ibmrs6000 opsys=aix4-2
2788 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2789 machine=ibmrs6000 opsys=aix4
2791 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2792 machine=ibmrs6000 opsys=aix4-1
2794 rs6000-ibm-aix* | powerpc-ibm-aix* )
2795 machine=ibmrs6000 opsys=aix3-2
2797 romp-ibm-bsd4.3* )
2798 machine=ibmrt opsys=bsd4-3
2800 romp-ibm-bsd4.2* )
2801 machine=ibmrt opsys=bsd4-2
2803 romp-ibm-aos4.3* )
2804 machine=ibmrt opsys=bsd4-3
2806 romp-ibm-aos4.2* )
2807 machine=ibmrt opsys=bsd4-2
2809 romp-ibm-aos* )
2810 machine=ibmrt opsys=bsd4-3
2812 romp-ibm-bsd* )
2813 machine=ibmrt opsys=bsd4-3
2815 romp-ibm-aix* )
2816 machine=ibmrt-aix opsys=usg5-2-2
2819 ## Integrated Solutions `Optimum V'
2820 m68*-isi-bsd4.2* )
2821 machine=isi-ov opsys=bsd4-2
2823 m68*-isi-bsd4.3* )
2824 machine=isi-ov opsys=bsd4-3
2827 ## Intel 386 machines where we do care about the manufacturer
2828 i[3456]86-intsys-sysv* )
2829 machine=is386 opsys=usg5-2-2
2832 ## Prime EXL
2833 i[3456]86-prime-sysv* )
2834 machine=i386 opsys=usg5-3
2837 ## Sequent Symmetry running Dynix
2838 i[3456]86-sequent-bsd* )
2839 machine=symmetry opsys=bsd4-3
2842 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2843 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2844 machine=sequent-ptx opsys=ptx4
2845 NON_GNU_CPP=/lib/cpp
2848 ## Sequent Symmetry running DYNIX/ptx
2849 ## Use the old cpp rather than the newer ANSI one.
2850 i[3456]86-sequent-ptx* )
2851 machine=sequent-ptx opsys=ptx
2852 NON_GNU_CPP="/lib/cpp"
2855 ## ncr machine running svr4.3.
2856 i[3456]86-ncr-sysv4.3 )
2857 machine=ncr386 opsys=usg5-4-3
2860 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2861 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2862 i[3456]86-ncr-sysv* )
2863 machine=ncr386 opsys=usg5-4-2
2866 ## Intel Paragon OSF/1
2867 i860-intel-osf1* )
2868 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2871 ## Intel 860
2872 i860-*-sysv4* )
2873 machine=i860 opsys=usg5-4
2874 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2875 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2878 ## Macintosh PowerPC
2879 powerpc*-*-linux-gnu* )
2880 machine=macppc opsys=gnu-linux
2883 ## Masscomp machines
2884 m68*-masscomp-rtu* )
2885 machine=masscomp opsys=rtu
2888 ## Megatest machines
2889 m68*-megatest-bsd* )
2890 machine=mega68 opsys=bsd4-2
2893 ## Workstations sold by MIPS
2894 ## This is not necessarily all workstations using the MIPS processor -
2895 ## Irises are produced by SGI, and DECstations by DEC.
2897 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2898 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2899 ## it gives for choosing between the alternatives seems to be "Use
2900 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2901 ## the BSD world." I'll assume that these are instructions for
2902 ## handling two odd situations, and that every other situation
2903 ## should use mips.h and usg5-2-2, they being listed first.
2904 mips-mips-usg* )
2905 machine=mips4
2906 ## Fall through to the general code at the bottom to decide on the OS.
2908 mips-mips-riscos4* )
2909 machine=mips4 opsys=bsd4-3
2910 NON_GNU_CC="cc -systype bsd43"
2911 NON_GNU_CPP="cc -systype bsd43 -E"
2913 mips-mips-riscos5* )
2914 machine=mips4 opsys=riscos5
2915 NON_GNU_CC="cc -systype bsd43"
2916 NON_GNU_CPP="cc -systype bsd43 -E"
2918 mips-mips-bsd* )
2919 machine=mips opsys=bsd4-3
2921 mips-mips-* )
2922 machine=mips opsys=usg5-2-2
2925 ## NeXT
2926 m68*-next-* | m68k-*-nextstep* )
2927 machine=m68k opsys=nextstep
2930 ## The complete machine from National Semiconductor
2931 ns32k-ns-genix* )
2932 machine=ns32000 opsys=usg5-2
2935 ## NCR machines
2936 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2937 machine=tower32 opsys=usg5-2-2
2939 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2940 machine=tower32v3 opsys=usg5-3
2943 ## NEC EWS4800
2944 mips-nec-sysv4*)
2945 machine=ews4800 opsys=ux4800
2948 ## Nixdorf Targon 31
2949 m68*-nixdorf-sysv* )
2950 machine=targon31 opsys=usg5-2-2
2953 ## Nu (TI or LMI)
2954 m68*-nu-sysv* )
2955 machine=nu opsys=usg5-2
2958 ## Plexus
2959 m68*-plexus-sysv* )
2960 machine=plexus opsys=usg5-2
2963 ## Pyramid machines
2964 ## I don't really have any idea what sort of processor the Pyramid has,
2965 ## so I'm assuming it is its own architecture.
2966 pyramid-pyramid-bsd* )
2967 machine=pyramid opsys=bsd4-2
2970 ## Sequent Balance
2971 ns32k-sequent-bsd4.2* )
2972 machine=sequent opsys=bsd4-2
2974 ns32k-sequent-bsd4.3* )
2975 machine=sequent opsys=bsd4-3
2978 ## Siemens Nixdorf
2979 mips-siemens-sysv* | mips-sni-sysv*)
2980 machine=mips-siemens opsys=usg5-4
2981 NON_GNU_CC=/usr/ccs/bin/cc
2982 NON_GNU_CPP=/usr/ccs/lib/cpp
2985 ## Silicon Graphics machines
2986 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2987 m68*-sgi-iris3.5* )
2988 machine=irist opsys=iris3-5
2990 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2991 machine=irist opsys=iris3-6
2993 ## Iris 4D
2994 mips-sgi-irix3* )
2995 machine=iris4d opsys=irix3-3
2997 mips-sgi-irix4* )
2998 machine=iris4d opsys=irix4-0
3000 mips-sgi-irix6.5 )
3001 machine=iris4d opsys=irix6-5
3002 # Without defining _LANGUAGE_C, things get masked out in the headers
3003 # so that, for instance, grepping for `free' in stdlib.h fails and
3004 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
3005 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
3006 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
3008 mips-sgi-irix6* )
3009 machine=iris4d opsys=irix6-0
3010 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
3011 # but presumably it does no harm.
3012 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
3013 # -32 probably isn't necessary in later v.6s -- anyone know which?
3014 NON_GCC_TEST_OPTIONS=-32
3016 mips-sgi-irix5.[01]* )
3017 machine=iris4d opsys=irix5-0
3019 mips-sgi-irix5* | mips-sgi-irix* )
3020 machine=iris4d opsys=irix5-2
3023 ## SONY machines
3024 m68*-sony-bsd4.2* )
3025 machine=news opsys=bsd4-2
3027 m68*-sony-bsd4.3* )
3028 machine=news opsys=bsd4-3
3030 m68*-sony-newsos3* | m68*-sony-news3*)
3031 machine=news opsys=bsd4-3
3033 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
3034 machine=news-risc opsys=bsd4-3
3036 mips-sony-newsos6* )
3037 machine=news-r6 opsys=newsos6
3039 mips-sony-news* )
3040 machine=news-risc opsys=newsos5
3043 ## Stride
3044 m68*-stride-sysv* )
3045 machine=stride opsys=usg5-2
3048 ## Suns
3049 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
3050 machine=sparc opsys=gnu-linux
3053 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
3054 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
3055 | rs6000-*-solaris2*)
3056 case "${canonical}" in
3057 m68*-sunos1* ) machine=sun1 ;;
3058 m68*-sunos2* ) machine=sun2 ;;
3059 m68* ) machine=sun3 ;;
3060 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
3061 i[3456]86-*-* ) machine=intel386 ;;
3062 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
3063 powerpcle* ) machine=powerpcle ;;
3064 powerpc* | rs6000* ) machine=ibmrs6000 ;;
3065 sparc* ) machine=sparc ;;
3066 * ) unported=yes ;;
3067 esac
3068 case "${canonical}" in
3069 ## The Sun386 didn't get past 4.0.
3070 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
3071 *-sunos4.0* ) opsys=sunos4-0 ;;
3072 *-sunos4.1.[3-9]*noshare )
3073 ## This name is sunos413 instead of sunos4-1-3
3074 ## to avoid a file name conflict on MSDOS.
3075 opsys=sunos413
3076 NON_GNU_CPP=/usr/lib/cpp
3077 NON_GCC_TEST_OPTIONS=-Bstatic
3078 GCC_TEST_OPTIONS=-static
3080 *-sunos4.1.[3-9]* | *-sunos4shr*)
3081 opsys=sunos4shr
3082 NON_GNU_CPP=/usr/lib/cpp
3084 *-sunos4* | *-sunos )
3085 opsys=sunos4-1
3086 NON_GCC_TEST_OPTIONS=-Bstatic
3087 GCC_TEST_OPTIONS=-static
3089 *-sunos5.3* | *-solaris2.3* )
3090 opsys=sol2-3
3091 NON_GNU_CPP=/usr/ccs/lib/cpp
3093 *-sunos5.4* | *-solaris2.4* )
3094 opsys=sol2-4
3095 NON_GNU_CPP=/usr/ccs/lib/cpp
3096 RANLIB="ar -ts"
3098 *-sunos5.5* | *-solaris2.5* )
3099 opsys=sol2-5
3100 NON_GNU_CPP=/usr/ccs/lib/cpp
3101 RANLIB="ar -ts"
3103 *-sunos5.6* | *-solaris2.6* )
3104 opsys=sol2-6
3105 NON_GNU_CPP=/usr/ccs/lib/cpp
3106 RANLIB="ar -ts"
3108 *-sunos5* | *-solaris* )
3109 opsys=sol2-6
3110 emacs_check_sunpro_c=yes
3111 NON_GNU_CPP=/usr/ccs/lib/cpp
3113 * ) opsys=bsd4-2 ;;
3114 esac
3115 ## Watch out for a compiler that we know will not work.
3116 case "${canonical}" in
3117 *-solaris* | *-sunos5* )
3118 if [ "x$CC" = x/usr/ucb/cc ]; then
3119 ## /usr/ucb/cc doesn't work;
3120 ## we should find some other compiler that does work.
3121 unset CC
3124 *) ;;
3125 esac
3127 sparc-*-nextstep* )
3128 machine=sparc opsys=nextstep
3131 ## Tadpole 68k
3132 m68*-tadpole-sysv* )
3133 machine=tad68k opsys=usg5-3
3136 ## Tahoe machines
3137 tahoe-tahoe-bsd4.2* )
3138 machine=tahoe opsys=bsd4-2
3140 tahoe-tahoe-bsd4.3* )
3141 machine=tahoe opsys=bsd4-3
3144 ## Tandem Integrity S2
3145 mips-tandem-sysv* )
3146 machine=tandem-s2 opsys=usg5-3
3149 ## Tektronix XD88
3150 m88k-tektronix-sysv3* )
3151 machine=tekxd88 opsys=usg5-3
3154 ## Tektronix 16000 box (6130?)
3155 ns16k-tektronix-bsd* )
3156 machine=ns16000 opsys=bsd4-2
3158 ## Tektronix 4300
3159 ## src/m/tek4300.h hints that this is a m68k machine.
3160 m68*-tektronix-bsd* )
3161 machine=tek4300 opsys=bsd4-3
3164 ## Titan P2 or P3
3165 ## We seem to have lost the machine-description file titan.h!
3166 titan-titan-sysv* )
3167 machine=titan opsys=usg5-3
3170 ## Ustation E30 (SS5E)
3171 m68*-unisys-uniplus* )
3172 machine=ustation opsystem=unipl5-2
3175 ## Vaxen.
3176 vax-dec-* )
3177 machine=vax
3178 case "${canonical}" in
3179 *-bsd4.1* ) opsys=bsd4-1 ;;
3180 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
3181 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
3182 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
3183 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
3184 *-vms* ) opsys=vms ;;
3185 * ) unported=yes
3186 esac
3189 ## Whitechapel MG1
3190 ns16k-whitechapel-* )
3191 machine=mg1
3192 ## We don't know what sort of OS runs on these; we'll let the
3193 ## operating system guessing code below try.
3196 ## Wicat
3197 m68*-wicat-sysv* )
3198 machine=wicat opsys=usg5-2
3201 ## IA-64
3202 ia64*-*-linux* )
3203 machine=ia64 opsys=gnu-linux
3206 ## Intel 386 machines where we don't care about the manufacturer
3207 i[3456]86-*-* )
3208 machine=intel386
3209 case "${canonical}" in
3210 *-cygwin ) opsys=cygwin ;;
3211 *-darwin* ) opsys=darwin
3212 CPP="${CC-cc} -E -no-cpp-precomp"
3214 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
3215 *-isc2.2* ) opsys=isc2-2 ;;
3216 *-isc4.0* ) opsys=isc4-0 ;;
3217 *-isc4.* ) opsys=isc4-1
3218 GCC_TEST_OPTIONS=-posix
3219 NON_GCC_TEST_OPTIONS=-Xp
3221 *-isc* ) opsys=isc3-0 ;;
3222 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
3223 *-esix* ) opsys=esix ;;
3224 *-xenix* ) opsys=xenix ;;
3225 *-linux-gnu* ) opsys=gnu-linux ;;
3226 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
3227 *-sco3.2v5* ) opsys=sco5
3228 NON_GNU_CPP=/lib/cpp
3229 # Prevent -belf from being passed to $CPP.
3230 # /lib/cpp does not accept it.
3231 OVERRIDE_CPPFLAGS=" "
3233 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3234 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3235 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3236 *-386bsd* ) opsys=386bsd ;;
3237 *-nextstep* ) opsys=nextstep ;;
3238 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3239 esac
3242 ## m68k Linux-based GNU system
3243 m68k-*-linux-gnu* )
3244 machine=m68k opsys=gnu-linux
3247 ## Mips Linux-based GNU system
3248 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
3249 machine=mips opsys=gnu-linux
3252 ## UXP/DS
3253 sparc-fujitsu-sysv4* )
3254 machine=sparc opsys=uxpds
3255 NON_GNU_CPP=/usr/ccs/lib/cpp
3256 RANLIB="ar -ts"
3259 ## UXP/V
3260 f301-fujitsu-uxpv4.1)
3261 machine=f301 opsys=uxpv
3264 ## AMD x86-64 Linux-based GNU system
3265 x86_64-*-linux-gnu* )
3266 machine=amdx86-64 opsys=gnu-linux
3269 ## Tensilica Xtensa Linux-based GNU system
3270 xtensa-*-linux-gnu* )
3271 machine=xtensa opsys=gnu-linux
3275 unported=yes
3277 esac
3279 ### If the code above didn't choose an operating system, just choose
3280 ### an operating system based on the configuration name. You really
3281 ### only want to use this when you have no idea what the right
3282 ### operating system is; if you know what operating systems a machine
3283 ### runs, it's cleaner to make it explicit in the case statement
3284 ### above.
3285 if test x"${opsys}" = x; then
3286 case "${canonical}" in
3287 *-gnu* ) opsys=gnu ;;
3288 *-bsd4.[01] ) opsys=bsd4-1 ;;
3289 *-bsd4.2 ) opsys=bsd4-2 ;;
3290 *-bsd4.3 ) opsys=bsd4-3 ;;
3291 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
3292 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
3293 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
3294 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
3295 *-sysv4.2uw* ) opsys=unixware ;;
3296 *-sysv5uw* ) opsys=unixware ;;
3297 *-sysv5OpenUNIX* ) opsys=unixware ;;
3298 *-sysv4.1* | *-sysvr4.1* )
3299 NON_GNU_CPP=/usr/lib/cpp
3300 opsys=usg5-4 ;;
3301 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
3302 if [ x$NON_GNU_CPP = x ]; then
3303 if [ -f /usr/ccs/lib/cpp ]; then
3304 NON_GNU_CPP=/usr/ccs/lib/cpp
3305 else
3306 NON_GNU_CPP=/lib/cpp
3309 opsys=usg5-4-2 ;;
3310 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
3312 unported=yes
3314 esac
3319 if test $unported = yes; then
3320 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3321 Check \`etc/MACHINES' for recognized configuration names." >&5
3322 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3323 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3324 { (exit 1); exit 1; }; }
3327 machfile="m/${machine}.h"
3328 opsysfile="s/${opsys}.h"
3331 #### Choose a compiler.
3332 test -n "$CC" && cc_specified=yes
3334 # Save the value of CFLAGS that the user specified.
3335 SPECIFIED_CFLAGS="$CFLAGS"
3337 case ${with_gcc} in
3338 "yes" ) CC="gcc" GCC=yes ;;
3339 "no" ) : ${CC=cc} ;;
3341 esac
3342 ac_ext=c
3343 ac_cpp='$CPP $CPPFLAGS'
3344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3347 if test -n "$ac_tool_prefix"; then
3348 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3349 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3350 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3352 if test "${ac_cv_prog_CC+set}" = set; then
3353 echo $ECHO_N "(cached) $ECHO_C" >&6
3354 else
3355 if test -n "$CC"; then
3356 ac_cv_prog_CC="$CC" # Let the user override the test.
3357 else
3358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3359 for as_dir in $PATH
3361 IFS=$as_save_IFS
3362 test -z "$as_dir" && as_dir=.
3363 for ac_exec_ext in '' $ac_executable_extensions; do
3364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3365 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3367 break 2
3369 done
3370 done
3371 IFS=$as_save_IFS
3375 CC=$ac_cv_prog_CC
3376 if test -n "$CC"; then
3377 { echo "$as_me:$LINENO: result: $CC" >&5
3378 echo "${ECHO_T}$CC" >&6; }
3379 else
3380 { echo "$as_me:$LINENO: result: no" >&5
3381 echo "${ECHO_T}no" >&6; }
3386 if test -z "$ac_cv_prog_CC"; then
3387 ac_ct_CC=$CC
3388 # Extract the first word of "gcc", so it can be a program name with args.
3389 set dummy gcc; ac_word=$2
3390 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3392 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3393 echo $ECHO_N "(cached) $ECHO_C" >&6
3394 else
3395 if test -n "$ac_ct_CC"; then
3396 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3397 else
3398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399 for as_dir in $PATH
3401 IFS=$as_save_IFS
3402 test -z "$as_dir" && as_dir=.
3403 for ac_exec_ext in '' $ac_executable_extensions; do
3404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3405 ac_cv_prog_ac_ct_CC="gcc"
3406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3407 break 2
3409 done
3410 done
3411 IFS=$as_save_IFS
3415 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3416 if test -n "$ac_ct_CC"; then
3417 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3418 echo "${ECHO_T}$ac_ct_CC" >&6; }
3419 else
3420 { echo "$as_me:$LINENO: result: no" >&5
3421 echo "${ECHO_T}no" >&6; }
3424 if test "x$ac_ct_CC" = x; then
3425 CC=""
3426 else
3427 case $cross_compiling:$ac_tool_warned in
3428 yes:)
3429 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3430 whose name does not start with the host triplet. If you think this
3431 configuration is useful to you, please write to autoconf@gnu.org." >&5
3432 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3433 whose name does not start with the host triplet. If you think this
3434 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3435 ac_tool_warned=yes ;;
3436 esac
3437 CC=$ac_ct_CC
3439 else
3440 CC="$ac_cv_prog_CC"
3443 if test -z "$CC"; then
3444 if test -n "$ac_tool_prefix"; then
3445 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3446 set dummy ${ac_tool_prefix}cc; ac_word=$2
3447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3449 if test "${ac_cv_prog_CC+set}" = set; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
3451 else
3452 if test -n "$CC"; then
3453 ac_cv_prog_CC="$CC" # Let the user override the test.
3454 else
3455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3456 for as_dir in $PATH
3458 IFS=$as_save_IFS
3459 test -z "$as_dir" && as_dir=.
3460 for ac_exec_ext in '' $ac_executable_extensions; do
3461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3462 ac_cv_prog_CC="${ac_tool_prefix}cc"
3463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3464 break 2
3466 done
3467 done
3468 IFS=$as_save_IFS
3472 CC=$ac_cv_prog_CC
3473 if test -n "$CC"; then
3474 { echo "$as_me:$LINENO: result: $CC" >&5
3475 echo "${ECHO_T}$CC" >&6; }
3476 else
3477 { echo "$as_me:$LINENO: result: no" >&5
3478 echo "${ECHO_T}no" >&6; }
3484 if test -z "$CC"; then
3485 # Extract the first word of "cc", so it can be a program name with args.
3486 set dummy cc; ac_word=$2
3487 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3489 if test "${ac_cv_prog_CC+set}" = set; then
3490 echo $ECHO_N "(cached) $ECHO_C" >&6
3491 else
3492 if test -n "$CC"; then
3493 ac_cv_prog_CC="$CC" # Let the user override the test.
3494 else
3495 ac_prog_rejected=no
3496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3497 for as_dir in $PATH
3499 IFS=$as_save_IFS
3500 test -z "$as_dir" && as_dir=.
3501 for ac_exec_ext in '' $ac_executable_extensions; do
3502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3503 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3504 ac_prog_rejected=yes
3505 continue
3507 ac_cv_prog_CC="cc"
3508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3509 break 2
3511 done
3512 done
3513 IFS=$as_save_IFS
3515 if test $ac_prog_rejected = yes; then
3516 # We found a bogon in the path, so make sure we never use it.
3517 set dummy $ac_cv_prog_CC
3518 shift
3519 if test $# != 0; then
3520 # We chose a different compiler from the bogus one.
3521 # However, it has the same basename, so the bogon will be chosen
3522 # first if we set CC to just the basename; use the full file name.
3523 shift
3524 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3529 CC=$ac_cv_prog_CC
3530 if test -n "$CC"; then
3531 { echo "$as_me:$LINENO: result: $CC" >&5
3532 echo "${ECHO_T}$CC" >&6; }
3533 else
3534 { echo "$as_me:$LINENO: result: no" >&5
3535 echo "${ECHO_T}no" >&6; }
3540 if test -z "$CC"; then
3541 if test -n "$ac_tool_prefix"; then
3542 for ac_prog in cl.exe
3544 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3545 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3548 if test "${ac_cv_prog_CC+set}" = set; then
3549 echo $ECHO_N "(cached) $ECHO_C" >&6
3550 else
3551 if test -n "$CC"; then
3552 ac_cv_prog_CC="$CC" # Let the user override the test.
3553 else
3554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3555 for as_dir in $PATH
3557 IFS=$as_save_IFS
3558 test -z "$as_dir" && as_dir=.
3559 for ac_exec_ext in '' $ac_executable_extensions; do
3560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3561 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3563 break 2
3565 done
3566 done
3567 IFS=$as_save_IFS
3571 CC=$ac_cv_prog_CC
3572 if test -n "$CC"; then
3573 { echo "$as_me:$LINENO: result: $CC" >&5
3574 echo "${ECHO_T}$CC" >&6; }
3575 else
3576 { echo "$as_me:$LINENO: result: no" >&5
3577 echo "${ECHO_T}no" >&6; }
3581 test -n "$CC" && break
3582 done
3584 if test -z "$CC"; then
3585 ac_ct_CC=$CC
3586 for ac_prog in cl.exe
3588 # Extract the first word of "$ac_prog", so it can be a program name with args.
3589 set dummy $ac_prog; ac_word=$2
3590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3592 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3593 echo $ECHO_N "(cached) $ECHO_C" >&6
3594 else
3595 if test -n "$ac_ct_CC"; then
3596 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3597 else
3598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599 for as_dir in $PATH
3601 IFS=$as_save_IFS
3602 test -z "$as_dir" && as_dir=.
3603 for ac_exec_ext in '' $ac_executable_extensions; do
3604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3605 ac_cv_prog_ac_ct_CC="$ac_prog"
3606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3607 break 2
3609 done
3610 done
3611 IFS=$as_save_IFS
3615 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3616 if test -n "$ac_ct_CC"; then
3617 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3618 echo "${ECHO_T}$ac_ct_CC" >&6; }
3619 else
3620 { echo "$as_me:$LINENO: result: no" >&5
3621 echo "${ECHO_T}no" >&6; }
3625 test -n "$ac_ct_CC" && break
3626 done
3628 if test "x$ac_ct_CC" = x; then
3629 CC=""
3630 else
3631 case $cross_compiling:$ac_tool_warned in
3632 yes:)
3633 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3634 whose name does not start with the host triplet. If you think this
3635 configuration is useful to you, please write to autoconf@gnu.org." >&5
3636 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3637 whose name does not start with the host triplet. If you think this
3638 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3639 ac_tool_warned=yes ;;
3640 esac
3641 CC=$ac_ct_CC
3648 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3649 See \`config.log' for more details." >&5
3650 echo "$as_me: error: no acceptable C compiler found in \$PATH
3651 See \`config.log' for more details." >&2;}
3652 { (exit 1); exit 1; }; }
3654 # Provide some information about the compiler.
3655 echo "$as_me:$LINENO: checking for C compiler version" >&5
3656 ac_compiler=`set X $ac_compile; echo $2`
3657 { (ac_try="$ac_compiler --version >&5"
3658 case "(($ac_try" in
3659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3660 *) ac_try_echo=$ac_try;;
3661 esac
3662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3663 (eval "$ac_compiler --version >&5") 2>&5
3664 ac_status=$?
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); }
3667 { (ac_try="$ac_compiler -v >&5"
3668 case "(($ac_try" in
3669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3670 *) ac_try_echo=$ac_try;;
3671 esac
3672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3673 (eval "$ac_compiler -v >&5") 2>&5
3674 ac_status=$?
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); }
3677 { (ac_try="$ac_compiler -V >&5"
3678 case "(($ac_try" in
3679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3680 *) ac_try_echo=$ac_try;;
3681 esac
3682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3683 (eval "$ac_compiler -V >&5") 2>&5
3684 ac_status=$?
3685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686 (exit $ac_status); }
3688 cat >conftest.$ac_ext <<_ACEOF
3689 /* confdefs.h. */
3690 _ACEOF
3691 cat confdefs.h >>conftest.$ac_ext
3692 cat >>conftest.$ac_ext <<_ACEOF
3693 /* end confdefs.h. */
3696 main ()
3700 return 0;
3702 _ACEOF
3703 ac_clean_files_save=$ac_clean_files
3704 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3705 # Try to create an executable without -o first, disregard a.out.
3706 # It will help us diagnose broken compilers, and finding out an intuition
3707 # of exeext.
3708 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3709 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3710 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3712 # List of possible output files, starting from the most likely.
3713 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3714 # only as a last resort. b.out is created by i960 compilers.
3715 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3717 # The IRIX 6 linker writes into existing files which may not be
3718 # executable, retaining their permissions. Remove them first so a
3719 # subsequent execution test works.
3720 ac_rmfiles=
3721 for ac_file in $ac_files
3723 case $ac_file in
3724 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3725 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3726 esac
3727 done
3728 rm -f $ac_rmfiles
3730 if { (ac_try="$ac_link_default"
3731 case "(($ac_try" in
3732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3733 *) ac_try_echo=$ac_try;;
3734 esac
3735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3736 (eval "$ac_link_default") 2>&5
3737 ac_status=$?
3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); }; then
3740 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3741 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3742 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3743 # so that the user can short-circuit this test for compilers unknown to
3744 # Autoconf.
3745 for ac_file in $ac_files ''
3747 test -f "$ac_file" || continue
3748 case $ac_file in
3749 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3751 [ab].out )
3752 # We found the default executable, but exeext='' is most
3753 # certainly right.
3754 break;;
3755 *.* )
3756 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3757 then :; else
3758 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3760 # We set ac_cv_exeext here because the later test for it is not
3761 # safe: cross compilers may not add the suffix if given an `-o'
3762 # argument, so we may need to know it at that point already.
3763 # Even if this section looks crufty: it has the advantage of
3764 # actually working.
3765 break;;
3767 break;;
3768 esac
3769 done
3770 test "$ac_cv_exeext" = no && ac_cv_exeext=
3772 else
3773 ac_file=''
3776 { echo "$as_me:$LINENO: result: $ac_file" >&5
3777 echo "${ECHO_T}$ac_file" >&6; }
3778 if test -z "$ac_file"; then
3779 echo "$as_me: failed program was:" >&5
3780 sed 's/^/| /' conftest.$ac_ext >&5
3782 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3783 See \`config.log' for more details." >&5
3784 echo "$as_me: error: C compiler cannot create executables
3785 See \`config.log' for more details." >&2;}
3786 { (exit 77); exit 77; }; }
3789 ac_exeext=$ac_cv_exeext
3791 # Check that the compiler produces executables we can run. If not, either
3792 # the compiler is broken, or we cross compile.
3793 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3794 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3795 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3796 # If not cross compiling, check that we can run a simple program.
3797 if test "$cross_compiling" != yes; then
3798 if { ac_try='./$ac_file'
3799 { (case "(($ac_try" in
3800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3801 *) ac_try_echo=$ac_try;;
3802 esac
3803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3804 (eval "$ac_try") 2>&5
3805 ac_status=$?
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); }; }; then
3808 cross_compiling=no
3809 else
3810 if test "$cross_compiling" = maybe; then
3811 cross_compiling=yes
3812 else
3813 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3814 If you meant to cross compile, use \`--host'.
3815 See \`config.log' for more details." >&5
3816 echo "$as_me: error: cannot run C compiled programs.
3817 If you meant to cross compile, use \`--host'.
3818 See \`config.log' for more details." >&2;}
3819 { (exit 1); exit 1; }; }
3823 { echo "$as_me:$LINENO: result: yes" >&5
3824 echo "${ECHO_T}yes" >&6; }
3826 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3827 ac_clean_files=$ac_clean_files_save
3828 # Check that the compiler produces executables we can run. If not, either
3829 # the compiler is broken, or we cross compile.
3830 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3831 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3832 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3833 echo "${ECHO_T}$cross_compiling" >&6; }
3835 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3836 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3837 if { (ac_try="$ac_link"
3838 case "(($ac_try" in
3839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3840 *) ac_try_echo=$ac_try;;
3841 esac
3842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3843 (eval "$ac_link") 2>&5
3844 ac_status=$?
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); }; then
3847 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3848 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3849 # work properly (i.e., refer to `conftest.exe'), while it won't with
3850 # `rm'.
3851 for ac_file in conftest.exe conftest conftest.*; do
3852 test -f "$ac_file" || continue
3853 case $ac_file in
3854 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3855 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3856 break;;
3857 * ) break;;
3858 esac
3859 done
3860 else
3861 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3862 See \`config.log' for more details." >&5
3863 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3864 See \`config.log' for more details." >&2;}
3865 { (exit 1); exit 1; }; }
3868 rm -f conftest$ac_cv_exeext
3869 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3870 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3872 rm -f conftest.$ac_ext
3873 EXEEXT=$ac_cv_exeext
3874 ac_exeext=$EXEEXT
3875 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3876 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3877 if test "${ac_cv_objext+set}" = set; then
3878 echo $ECHO_N "(cached) $ECHO_C" >&6
3879 else
3880 cat >conftest.$ac_ext <<_ACEOF
3881 /* confdefs.h. */
3882 _ACEOF
3883 cat confdefs.h >>conftest.$ac_ext
3884 cat >>conftest.$ac_ext <<_ACEOF
3885 /* end confdefs.h. */
3888 main ()
3892 return 0;
3894 _ACEOF
3895 rm -f conftest.o conftest.obj
3896 if { (ac_try="$ac_compile"
3897 case "(($ac_try" in
3898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3899 *) ac_try_echo=$ac_try;;
3900 esac
3901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3902 (eval "$ac_compile") 2>&5
3903 ac_status=$?
3904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905 (exit $ac_status); }; then
3906 for ac_file in conftest.o conftest.obj conftest.*; do
3907 test -f "$ac_file" || continue;
3908 case $ac_file in
3909 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3910 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3911 break;;
3912 esac
3913 done
3914 else
3915 echo "$as_me: failed program was:" >&5
3916 sed 's/^/| /' conftest.$ac_ext >&5
3918 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3919 See \`config.log' for more details." >&5
3920 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3921 See \`config.log' for more details." >&2;}
3922 { (exit 1); exit 1; }; }
3925 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3927 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3928 echo "${ECHO_T}$ac_cv_objext" >&6; }
3929 OBJEXT=$ac_cv_objext
3930 ac_objext=$OBJEXT
3931 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3932 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3933 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3934 echo $ECHO_N "(cached) $ECHO_C" >&6
3935 else
3936 cat >conftest.$ac_ext <<_ACEOF
3937 /* confdefs.h. */
3938 _ACEOF
3939 cat confdefs.h >>conftest.$ac_ext
3940 cat >>conftest.$ac_ext <<_ACEOF
3941 /* end confdefs.h. */
3944 main ()
3946 #ifndef __GNUC__
3947 choke me
3948 #endif
3951 return 0;
3953 _ACEOF
3954 rm -f conftest.$ac_objext
3955 if { (ac_try="$ac_compile"
3956 case "(($ac_try" in
3957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3958 *) ac_try_echo=$ac_try;;
3959 esac
3960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3961 (eval "$ac_compile") 2>conftest.er1
3962 ac_status=$?
3963 grep -v '^ *+' conftest.er1 >conftest.err
3964 rm -f conftest.er1
3965 cat conftest.err >&5
3966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967 (exit $ac_status); } && {
3968 test -z "$ac_c_werror_flag" ||
3969 test ! -s conftest.err
3970 } && test -s conftest.$ac_objext; then
3971 ac_compiler_gnu=yes
3972 else
3973 echo "$as_me: failed program was:" >&5
3974 sed 's/^/| /' conftest.$ac_ext >&5
3976 ac_compiler_gnu=no
3979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3980 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3983 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3984 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3985 GCC=`test $ac_compiler_gnu = yes && echo yes`
3986 ac_test_CFLAGS=${CFLAGS+set}
3987 ac_save_CFLAGS=$CFLAGS
3988 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3989 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3990 if test "${ac_cv_prog_cc_g+set}" = set; then
3991 echo $ECHO_N "(cached) $ECHO_C" >&6
3992 else
3993 ac_save_c_werror_flag=$ac_c_werror_flag
3994 ac_c_werror_flag=yes
3995 ac_cv_prog_cc_g=no
3996 CFLAGS="-g"
3997 cat >conftest.$ac_ext <<_ACEOF
3998 /* confdefs.h. */
3999 _ACEOF
4000 cat confdefs.h >>conftest.$ac_ext
4001 cat >>conftest.$ac_ext <<_ACEOF
4002 /* end confdefs.h. */
4005 main ()
4009 return 0;
4011 _ACEOF
4012 rm -f conftest.$ac_objext
4013 if { (ac_try="$ac_compile"
4014 case "(($ac_try" in
4015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4016 *) ac_try_echo=$ac_try;;
4017 esac
4018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4019 (eval "$ac_compile") 2>conftest.er1
4020 ac_status=$?
4021 grep -v '^ *+' conftest.er1 >conftest.err
4022 rm -f conftest.er1
4023 cat conftest.err >&5
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); } && {
4026 test -z "$ac_c_werror_flag" ||
4027 test ! -s conftest.err
4028 } && test -s conftest.$ac_objext; then
4029 ac_cv_prog_cc_g=yes
4030 else
4031 echo "$as_me: failed program was:" >&5
4032 sed 's/^/| /' conftest.$ac_ext >&5
4034 CFLAGS=""
4035 cat >conftest.$ac_ext <<_ACEOF
4036 /* confdefs.h. */
4037 _ACEOF
4038 cat confdefs.h >>conftest.$ac_ext
4039 cat >>conftest.$ac_ext <<_ACEOF
4040 /* end confdefs.h. */
4043 main ()
4047 return 0;
4049 _ACEOF
4050 rm -f conftest.$ac_objext
4051 if { (ac_try="$ac_compile"
4052 case "(($ac_try" in
4053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4054 *) ac_try_echo=$ac_try;;
4055 esac
4056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4057 (eval "$ac_compile") 2>conftest.er1
4058 ac_status=$?
4059 grep -v '^ *+' conftest.er1 >conftest.err
4060 rm -f conftest.er1
4061 cat conftest.err >&5
4062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063 (exit $ac_status); } && {
4064 test -z "$ac_c_werror_flag" ||
4065 test ! -s conftest.err
4066 } && test -s conftest.$ac_objext; then
4068 else
4069 echo "$as_me: failed program was:" >&5
4070 sed 's/^/| /' conftest.$ac_ext >&5
4072 ac_c_werror_flag=$ac_save_c_werror_flag
4073 CFLAGS="-g"
4074 cat >conftest.$ac_ext <<_ACEOF
4075 /* confdefs.h. */
4076 _ACEOF
4077 cat confdefs.h >>conftest.$ac_ext
4078 cat >>conftest.$ac_ext <<_ACEOF
4079 /* end confdefs.h. */
4082 main ()
4086 return 0;
4088 _ACEOF
4089 rm -f conftest.$ac_objext
4090 if { (ac_try="$ac_compile"
4091 case "(($ac_try" in
4092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4093 *) ac_try_echo=$ac_try;;
4094 esac
4095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4096 (eval "$ac_compile") 2>conftest.er1
4097 ac_status=$?
4098 grep -v '^ *+' conftest.er1 >conftest.err
4099 rm -f conftest.er1
4100 cat conftest.err >&5
4101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102 (exit $ac_status); } && {
4103 test -z "$ac_c_werror_flag" ||
4104 test ! -s conftest.err
4105 } && test -s conftest.$ac_objext; then
4106 ac_cv_prog_cc_g=yes
4107 else
4108 echo "$as_me: failed program was:" >&5
4109 sed 's/^/| /' conftest.$ac_ext >&5
4114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4121 ac_c_werror_flag=$ac_save_c_werror_flag
4123 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4124 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4125 if test "$ac_test_CFLAGS" = set; then
4126 CFLAGS=$ac_save_CFLAGS
4127 elif test $ac_cv_prog_cc_g = yes; then
4128 if test "$GCC" = yes; then
4129 CFLAGS="-g -O2"
4130 else
4131 CFLAGS="-g"
4133 else
4134 if test "$GCC" = yes; then
4135 CFLAGS="-O2"
4136 else
4137 CFLAGS=
4140 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4141 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4142 if test "${ac_cv_prog_cc_c89+set}" = set; then
4143 echo $ECHO_N "(cached) $ECHO_C" >&6
4144 else
4145 ac_cv_prog_cc_c89=no
4146 ac_save_CC=$CC
4147 cat >conftest.$ac_ext <<_ACEOF
4148 /* confdefs.h. */
4149 _ACEOF
4150 cat confdefs.h >>conftest.$ac_ext
4151 cat >>conftest.$ac_ext <<_ACEOF
4152 /* end confdefs.h. */
4153 #include <stdarg.h>
4154 #include <stdio.h>
4155 #include <sys/types.h>
4156 #include <sys/stat.h>
4157 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4158 struct buf { int x; };
4159 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4160 static char *e (p, i)
4161 char **p;
4162 int i;
4164 return p[i];
4166 static char *f (char * (*g) (char **, int), char **p, ...)
4168 char *s;
4169 va_list v;
4170 va_start (v,p);
4171 s = g (p, va_arg (v,int));
4172 va_end (v);
4173 return s;
4176 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4177 function prototypes and stuff, but not '\xHH' hex character constants.
4178 These don't provoke an error unfortunately, instead are silently treated
4179 as 'x'. The following induces an error, until -std is added to get
4180 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4181 array size at least. It's necessary to write '\x00'==0 to get something
4182 that's true only with -std. */
4183 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4185 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4186 inside strings and character constants. */
4187 #define FOO(x) 'x'
4188 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4190 int test (int i, double x);
4191 struct s1 {int (*f) (int a);};
4192 struct s2 {int (*f) (double a);};
4193 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4194 int argc;
4195 char **argv;
4197 main ()
4199 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4201 return 0;
4203 _ACEOF
4204 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4205 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4207 CC="$ac_save_CC $ac_arg"
4208 rm -f conftest.$ac_objext
4209 if { (ac_try="$ac_compile"
4210 case "(($ac_try" in
4211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4212 *) ac_try_echo=$ac_try;;
4213 esac
4214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4215 (eval "$ac_compile") 2>conftest.er1
4216 ac_status=$?
4217 grep -v '^ *+' conftest.er1 >conftest.err
4218 rm -f conftest.er1
4219 cat conftest.err >&5
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); } && {
4222 test -z "$ac_c_werror_flag" ||
4223 test ! -s conftest.err
4224 } && test -s conftest.$ac_objext; then
4225 ac_cv_prog_cc_c89=$ac_arg
4226 else
4227 echo "$as_me: failed program was:" >&5
4228 sed 's/^/| /' conftest.$ac_ext >&5
4233 rm -f core conftest.err conftest.$ac_objext
4234 test "x$ac_cv_prog_cc_c89" != "xno" && break
4235 done
4236 rm -f conftest.$ac_ext
4237 CC=$ac_save_CC
4240 # AC_CACHE_VAL
4241 case "x$ac_cv_prog_cc_c89" in
4243 { echo "$as_me:$LINENO: result: none needed" >&5
4244 echo "${ECHO_T}none needed" >&6; } ;;
4245 xno)
4246 { echo "$as_me:$LINENO: result: unsupported" >&5
4247 echo "${ECHO_T}unsupported" >&6; } ;;
4249 CC="$CC $ac_cv_prog_cc_c89"
4250 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4251 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4252 esac
4255 ac_ext=c
4256 ac_cpp='$CPP $CPPFLAGS'
4257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4262 # On Suns, sometimes $CPP names a directory.
4263 if test -n "$CPP" && test -d "$CPP"; then
4264 CPP=
4267 ## If not using gcc, and on Solaris, and no CPP specified, see if
4268 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4269 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4270 test x"$CPP" = x; then
4271 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
4272 echo $ECHO_N "checking whether we are using a Sun C compiler... $ECHO_C" >&6; }
4274 if test "${emacs_cv_sunpro_c+set}" = set; then
4275 echo $ECHO_N "(cached) $ECHO_C" >&6
4276 else
4277 cat >conftest.$ac_ext <<_ACEOF
4278 /* confdefs.h. */
4279 _ACEOF
4280 cat confdefs.h >>conftest.$ac_ext
4281 cat >>conftest.$ac_ext <<_ACEOF
4282 /* end confdefs.h. */
4285 main ()
4287 #ifndef __SUNPRO_C
4288 fail;
4289 #endif
4292 return 0;
4294 _ACEOF
4295 rm -f conftest.$ac_objext conftest$ac_exeext
4296 if { (ac_try="$ac_link"
4297 case "(($ac_try" in
4298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4299 *) ac_try_echo=$ac_try;;
4300 esac
4301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4302 (eval "$ac_link") 2>conftest.er1
4303 ac_status=$?
4304 grep -v '^ *+' conftest.er1 >conftest.err
4305 rm -f conftest.er1
4306 cat conftest.err >&5
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); } && {
4309 test -z "$ac_c_werror_flag" ||
4310 test ! -s conftest.err
4311 } && test -s conftest$ac_exeext &&
4312 $as_test_x conftest$ac_exeext; then
4313 emacs_cv_sunpro_c=yes
4314 else
4315 echo "$as_me: failed program was:" >&5
4316 sed 's/^/| /' conftest.$ac_ext >&5
4318 emacs_cv_sunpro_c=no
4321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4322 conftest$ac_exeext conftest.$ac_ext
4325 { echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
4326 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
4328 if test x"$emacs_cv_sunpro_c" = xyes; then
4329 NON_GNU_CPP="$CC -E -Xs"
4333 #### Some systems specify a CPP to use unless we are using GCC.
4334 #### Now that we know whether we are using GCC, we can decide whether
4335 #### to use that one.
4336 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4337 then
4338 CPP="$NON_GNU_CPP"
4341 #### Some systems specify a CC to use unless we are using GCC.
4342 #### Now that we know whether we are using GCC, we can decide whether
4343 #### to use that one.
4344 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4345 test x$cc_specified != xyes
4346 then
4347 CC="$NON_GNU_CC"
4350 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4351 then
4352 CC="$CC $GCC_TEST_OPTIONS"
4355 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4356 then
4357 CC="$CC $NON_GCC_TEST_OPTIONS"
4360 ac_ext=c
4361 ac_cpp='$CPP $CPPFLAGS'
4362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4365 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4366 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4367 # On Suns, sometimes $CPP names a directory.
4368 if test -n "$CPP" && test -d "$CPP"; then
4369 CPP=
4371 if test -z "$CPP"; then
4372 if test "${ac_cv_prog_CPP+set}" = set; then
4373 echo $ECHO_N "(cached) $ECHO_C" >&6
4374 else
4375 # Double quotes because CPP needs to be expanded
4376 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4378 ac_preproc_ok=false
4379 for ac_c_preproc_warn_flag in '' yes
4381 # Use a header file that comes with gcc, so configuring glibc
4382 # with a fresh cross-compiler works.
4383 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4384 # <limits.h> exists even on freestanding compilers.
4385 # On the NeXT, cc -E runs the code through the compiler's parser,
4386 # not just through cpp. "Syntax error" is here to catch this case.
4387 cat >conftest.$ac_ext <<_ACEOF
4388 /* confdefs.h. */
4389 _ACEOF
4390 cat confdefs.h >>conftest.$ac_ext
4391 cat >>conftest.$ac_ext <<_ACEOF
4392 /* end confdefs.h. */
4393 #ifdef __STDC__
4394 # include <limits.h>
4395 #else
4396 # include <assert.h>
4397 #endif
4398 Syntax error
4399 _ACEOF
4400 if { (ac_try="$ac_cpp conftest.$ac_ext"
4401 case "(($ac_try" in
4402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4403 *) ac_try_echo=$ac_try;;
4404 esac
4405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4406 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4407 ac_status=$?
4408 grep -v '^ *+' conftest.er1 >conftest.err
4409 rm -f conftest.er1
4410 cat conftest.err >&5
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); } >/dev/null && {
4413 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4414 test ! -s conftest.err
4415 }; then
4417 else
4418 echo "$as_me: failed program was:" >&5
4419 sed 's/^/| /' conftest.$ac_ext >&5
4421 # Broken: fails on valid input.
4422 continue
4425 rm -f conftest.err conftest.$ac_ext
4427 # OK, works on sane cases. Now check whether nonexistent headers
4428 # can be detected and how.
4429 cat >conftest.$ac_ext <<_ACEOF
4430 /* confdefs.h. */
4431 _ACEOF
4432 cat confdefs.h >>conftest.$ac_ext
4433 cat >>conftest.$ac_ext <<_ACEOF
4434 /* end confdefs.h. */
4435 #include <ac_nonexistent.h>
4436 _ACEOF
4437 if { (ac_try="$ac_cpp conftest.$ac_ext"
4438 case "(($ac_try" in
4439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4440 *) ac_try_echo=$ac_try;;
4441 esac
4442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4443 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4444 ac_status=$?
4445 grep -v '^ *+' conftest.er1 >conftest.err
4446 rm -f conftest.er1
4447 cat conftest.err >&5
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); } >/dev/null && {
4450 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4451 test ! -s conftest.err
4452 }; then
4453 # Broken: success on invalid input.
4454 continue
4455 else
4456 echo "$as_me: failed program was:" >&5
4457 sed 's/^/| /' conftest.$ac_ext >&5
4459 # Passes both tests.
4460 ac_preproc_ok=:
4461 break
4464 rm -f conftest.err conftest.$ac_ext
4466 done
4467 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4468 rm -f conftest.err conftest.$ac_ext
4469 if $ac_preproc_ok; then
4470 break
4473 done
4474 ac_cv_prog_CPP=$CPP
4477 CPP=$ac_cv_prog_CPP
4478 else
4479 ac_cv_prog_CPP=$CPP
4481 { echo "$as_me:$LINENO: result: $CPP" >&5
4482 echo "${ECHO_T}$CPP" >&6; }
4483 ac_preproc_ok=false
4484 for ac_c_preproc_warn_flag in '' yes
4486 # Use a header file that comes with gcc, so configuring glibc
4487 # with a fresh cross-compiler works.
4488 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4489 # <limits.h> exists even on freestanding compilers.
4490 # On the NeXT, cc -E runs the code through the compiler's parser,
4491 # not just through cpp. "Syntax error" is here to catch this case.
4492 cat >conftest.$ac_ext <<_ACEOF
4493 /* confdefs.h. */
4494 _ACEOF
4495 cat confdefs.h >>conftest.$ac_ext
4496 cat >>conftest.$ac_ext <<_ACEOF
4497 /* end confdefs.h. */
4498 #ifdef __STDC__
4499 # include <limits.h>
4500 #else
4501 # include <assert.h>
4502 #endif
4503 Syntax error
4504 _ACEOF
4505 if { (ac_try="$ac_cpp conftest.$ac_ext"
4506 case "(($ac_try" in
4507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4508 *) ac_try_echo=$ac_try;;
4509 esac
4510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4512 ac_status=$?
4513 grep -v '^ *+' conftest.er1 >conftest.err
4514 rm -f conftest.er1
4515 cat conftest.err >&5
4516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517 (exit $ac_status); } >/dev/null && {
4518 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4519 test ! -s conftest.err
4520 }; then
4522 else
4523 echo "$as_me: failed program was:" >&5
4524 sed 's/^/| /' conftest.$ac_ext >&5
4526 # Broken: fails on valid input.
4527 continue
4530 rm -f conftest.err conftest.$ac_ext
4532 # OK, works on sane cases. Now check whether nonexistent headers
4533 # can be detected and how.
4534 cat >conftest.$ac_ext <<_ACEOF
4535 /* confdefs.h. */
4536 _ACEOF
4537 cat confdefs.h >>conftest.$ac_ext
4538 cat >>conftest.$ac_ext <<_ACEOF
4539 /* end confdefs.h. */
4540 #include <ac_nonexistent.h>
4541 _ACEOF
4542 if { (ac_try="$ac_cpp conftest.$ac_ext"
4543 case "(($ac_try" in
4544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4545 *) ac_try_echo=$ac_try;;
4546 esac
4547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4548 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4549 ac_status=$?
4550 grep -v '^ *+' conftest.er1 >conftest.err
4551 rm -f conftest.er1
4552 cat conftest.err >&5
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); } >/dev/null && {
4555 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4556 test ! -s conftest.err
4557 }; then
4558 # Broken: success on invalid input.
4559 continue
4560 else
4561 echo "$as_me: failed program was:" >&5
4562 sed 's/^/| /' conftest.$ac_ext >&5
4564 # Passes both tests.
4565 ac_preproc_ok=:
4566 break
4569 rm -f conftest.err conftest.$ac_ext
4571 done
4572 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4573 rm -f conftest.err conftest.$ac_ext
4574 if $ac_preproc_ok; then
4576 else
4577 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4578 See \`config.log' for more details." >&5
4579 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4580 See \`config.log' for more details." >&2;}
4581 { (exit 1); exit 1; }; }
4584 ac_ext=c
4585 ac_cpp='$CPP $CPPFLAGS'
4586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4591 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4592 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4593 if test "${ac_cv_path_GREP+set}" = set; then
4594 echo $ECHO_N "(cached) $ECHO_C" >&6
4595 else
4596 # Extract the first word of "grep ggrep" to use in msg output
4597 if test -z "$GREP"; then
4598 set dummy grep ggrep; ac_prog_name=$2
4599 if test "${ac_cv_path_GREP+set}" = set; then
4600 echo $ECHO_N "(cached) $ECHO_C" >&6
4601 else
4602 ac_path_GREP_found=false
4603 # Loop through the user's path and test for each of PROGNAME-LIST
4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4607 IFS=$as_save_IFS
4608 test -z "$as_dir" && as_dir=.
4609 for ac_prog in grep ggrep; do
4610 for ac_exec_ext in '' $ac_executable_extensions; do
4611 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4612 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4613 # Check for GNU ac_path_GREP and select it if it is found.
4614 # Check for GNU $ac_path_GREP
4615 case `"$ac_path_GREP" --version 2>&1` in
4616 *GNU*)
4617 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4619 ac_count=0
4620 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4621 while :
4623 cat "conftest.in" "conftest.in" >"conftest.tmp"
4624 mv "conftest.tmp" "conftest.in"
4625 cp "conftest.in" "conftest.nl"
4626 echo 'GREP' >> "conftest.nl"
4627 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4628 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4629 ac_count=`expr $ac_count + 1`
4630 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4631 # Best one so far, save it but keep looking for a better one
4632 ac_cv_path_GREP="$ac_path_GREP"
4633 ac_path_GREP_max=$ac_count
4635 # 10*(2^10) chars as input seems more than enough
4636 test $ac_count -gt 10 && break
4637 done
4638 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4639 esac
4642 $ac_path_GREP_found && break 3
4643 done
4644 done
4646 done
4647 IFS=$as_save_IFS
4652 GREP="$ac_cv_path_GREP"
4653 if test -z "$GREP"; then
4654 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4655 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4656 { (exit 1); exit 1; }; }
4659 else
4660 ac_cv_path_GREP=$GREP
4665 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4666 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4667 GREP="$ac_cv_path_GREP"
4670 { echo "$as_me:$LINENO: checking for egrep" >&5
4671 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4672 if test "${ac_cv_path_EGREP+set}" = set; then
4673 echo $ECHO_N "(cached) $ECHO_C" >&6
4674 else
4675 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4676 then ac_cv_path_EGREP="$GREP -E"
4677 else
4678 # Extract the first word of "egrep" to use in msg output
4679 if test -z "$EGREP"; then
4680 set dummy egrep; ac_prog_name=$2
4681 if test "${ac_cv_path_EGREP+set}" = set; then
4682 echo $ECHO_N "(cached) $ECHO_C" >&6
4683 else
4684 ac_path_EGREP_found=false
4685 # Loop through the user's path and test for each of PROGNAME-LIST
4686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4689 IFS=$as_save_IFS
4690 test -z "$as_dir" && as_dir=.
4691 for ac_prog in egrep; do
4692 for ac_exec_ext in '' $ac_executable_extensions; do
4693 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4694 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4695 # Check for GNU ac_path_EGREP and select it if it is found.
4696 # Check for GNU $ac_path_EGREP
4697 case `"$ac_path_EGREP" --version 2>&1` in
4698 *GNU*)
4699 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4701 ac_count=0
4702 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4703 while :
4705 cat "conftest.in" "conftest.in" >"conftest.tmp"
4706 mv "conftest.tmp" "conftest.in"
4707 cp "conftest.in" "conftest.nl"
4708 echo 'EGREP' >> "conftest.nl"
4709 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4710 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4711 ac_count=`expr $ac_count + 1`
4712 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4713 # Best one so far, save it but keep looking for a better one
4714 ac_cv_path_EGREP="$ac_path_EGREP"
4715 ac_path_EGREP_max=$ac_count
4717 # 10*(2^10) chars as input seems more than enough
4718 test $ac_count -gt 10 && break
4719 done
4720 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4721 esac
4724 $ac_path_EGREP_found && break 3
4725 done
4726 done
4728 done
4729 IFS=$as_save_IFS
4734 EGREP="$ac_cv_path_EGREP"
4735 if test -z "$EGREP"; then
4736 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4737 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4738 { (exit 1); exit 1; }; }
4741 else
4742 ac_cv_path_EGREP=$EGREP
4748 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4749 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4750 EGREP="$ac_cv_path_EGREP"
4754 { echo "$as_me:$LINENO: checking for AIX" >&5
4755 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4756 cat >conftest.$ac_ext <<_ACEOF
4757 /* confdefs.h. */
4758 _ACEOF
4759 cat confdefs.h >>conftest.$ac_ext
4760 cat >>conftest.$ac_ext <<_ACEOF
4761 /* end confdefs.h. */
4762 #ifdef _AIX
4764 #endif
4766 _ACEOF
4767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4768 $EGREP "yes" >/dev/null 2>&1; then
4769 { echo "$as_me:$LINENO: result: yes" >&5
4770 echo "${ECHO_T}yes" >&6; }
4771 cat >>confdefs.h <<\_ACEOF
4772 #define _ALL_SOURCE 1
4773 _ACEOF
4775 else
4776 { echo "$as_me:$LINENO: result: no" >&5
4777 echo "${ECHO_T}no" >&6; }
4779 rm -f conftest*
4783 cat >>confdefs.h <<\_ACEOF
4784 #define _GNU_SOURCE 1
4785 _ACEOF
4789 ### Use -Wno-pointer-sign if the compiler supports it
4790 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4791 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4792 SAVE_CFLAGS="$CFLAGS"
4793 CFLAGS="$CFLAGS -Wno-pointer-sign"
4794 cat >conftest.$ac_ext <<_ACEOF
4795 /* confdefs.h. */
4796 _ACEOF
4797 cat confdefs.h >>conftest.$ac_ext
4798 cat >>conftest.$ac_ext <<_ACEOF
4799 /* end confdefs.h. */
4802 main ()
4806 return 0;
4808 _ACEOF
4809 rm -f conftest.$ac_objext
4810 if { (ac_try="$ac_compile"
4811 case "(($ac_try" in
4812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4813 *) ac_try_echo=$ac_try;;
4814 esac
4815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4816 (eval "$ac_compile") 2>conftest.er1
4817 ac_status=$?
4818 grep -v '^ *+' conftest.er1 >conftest.err
4819 rm -f conftest.er1
4820 cat conftest.err >&5
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); } && {
4823 test -z "$ac_c_werror_flag" ||
4824 test ! -s conftest.err
4825 } && test -s conftest.$ac_objext; then
4826 has_option=yes
4827 else
4828 echo "$as_me: failed program was:" >&5
4829 sed 's/^/| /' conftest.$ac_ext >&5
4831 has_option=no
4834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4835 if test $has_option = yes; then
4836 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4838 { echo "$as_me:$LINENO: result: $has_option" >&5
4839 echo "${ECHO_T}$has_option" >&6; }
4840 CFLAGS="$SAVE_CFLAGS"
4841 unset has_option
4842 unset SAVE_CFLAGS
4844 #### Some other nice autoconf tests.
4846 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4847 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4848 LN_S=$as_ln_s
4849 if test "$LN_S" = "ln -s"; then
4850 { echo "$as_me:$LINENO: result: yes" >&5
4851 echo "${ECHO_T}yes" >&6; }
4852 else
4853 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4854 echo "${ECHO_T}no, using $LN_S" >&6; }
4857 ac_ext=c
4858 ac_cpp='$CPP $CPPFLAGS'
4859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4862 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4863 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4864 # On Suns, sometimes $CPP names a directory.
4865 if test -n "$CPP" && test -d "$CPP"; then
4866 CPP=
4868 if test -z "$CPP"; then
4869 if test "${ac_cv_prog_CPP+set}" = set; then
4870 echo $ECHO_N "(cached) $ECHO_C" >&6
4871 else
4872 # Double quotes because CPP needs to be expanded
4873 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4875 ac_preproc_ok=false
4876 for ac_c_preproc_warn_flag in '' yes
4878 # Use a header file that comes with gcc, so configuring glibc
4879 # with a fresh cross-compiler works.
4880 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4881 # <limits.h> exists even on freestanding compilers.
4882 # On the NeXT, cc -E runs the code through the compiler's parser,
4883 # not just through cpp. "Syntax error" is here to catch this case.
4884 cat >conftest.$ac_ext <<_ACEOF
4885 /* confdefs.h. */
4886 _ACEOF
4887 cat confdefs.h >>conftest.$ac_ext
4888 cat >>conftest.$ac_ext <<_ACEOF
4889 /* end confdefs.h. */
4890 #ifdef __STDC__
4891 # include <limits.h>
4892 #else
4893 # include <assert.h>
4894 #endif
4895 Syntax error
4896 _ACEOF
4897 if { (ac_try="$ac_cpp conftest.$ac_ext"
4898 case "(($ac_try" in
4899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4900 *) ac_try_echo=$ac_try;;
4901 esac
4902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4903 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4904 ac_status=$?
4905 grep -v '^ *+' conftest.er1 >conftest.err
4906 rm -f conftest.er1
4907 cat conftest.err >&5
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); } >/dev/null && {
4910 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4911 test ! -s conftest.err
4912 }; then
4914 else
4915 echo "$as_me: failed program was:" >&5
4916 sed 's/^/| /' conftest.$ac_ext >&5
4918 # Broken: fails on valid input.
4919 continue
4922 rm -f conftest.err conftest.$ac_ext
4924 # OK, works on sane cases. Now check whether nonexistent headers
4925 # can be detected and how.
4926 cat >conftest.$ac_ext <<_ACEOF
4927 /* confdefs.h. */
4928 _ACEOF
4929 cat confdefs.h >>conftest.$ac_ext
4930 cat >>conftest.$ac_ext <<_ACEOF
4931 /* end confdefs.h. */
4932 #include <ac_nonexistent.h>
4933 _ACEOF
4934 if { (ac_try="$ac_cpp conftest.$ac_ext"
4935 case "(($ac_try" in
4936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4937 *) ac_try_echo=$ac_try;;
4938 esac
4939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4940 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4941 ac_status=$?
4942 grep -v '^ *+' conftest.er1 >conftest.err
4943 rm -f conftest.er1
4944 cat conftest.err >&5
4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); } >/dev/null && {
4947 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4948 test ! -s conftest.err
4949 }; then
4950 # Broken: success on invalid input.
4951 continue
4952 else
4953 echo "$as_me: failed program was:" >&5
4954 sed 's/^/| /' conftest.$ac_ext >&5
4956 # Passes both tests.
4957 ac_preproc_ok=:
4958 break
4961 rm -f conftest.err conftest.$ac_ext
4963 done
4964 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4965 rm -f conftest.err conftest.$ac_ext
4966 if $ac_preproc_ok; then
4967 break
4970 done
4971 ac_cv_prog_CPP=$CPP
4974 CPP=$ac_cv_prog_CPP
4975 else
4976 ac_cv_prog_CPP=$CPP
4978 { echo "$as_me:$LINENO: result: $CPP" >&5
4979 echo "${ECHO_T}$CPP" >&6; }
4980 ac_preproc_ok=false
4981 for ac_c_preproc_warn_flag in '' yes
4983 # Use a header file that comes with gcc, so configuring glibc
4984 # with a fresh cross-compiler works.
4985 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4986 # <limits.h> exists even on freestanding compilers.
4987 # On the NeXT, cc -E runs the code through the compiler's parser,
4988 # not just through cpp. "Syntax error" is here to catch this case.
4989 cat >conftest.$ac_ext <<_ACEOF
4990 /* confdefs.h. */
4991 _ACEOF
4992 cat confdefs.h >>conftest.$ac_ext
4993 cat >>conftest.$ac_ext <<_ACEOF
4994 /* end confdefs.h. */
4995 #ifdef __STDC__
4996 # include <limits.h>
4997 #else
4998 # include <assert.h>
4999 #endif
5000 Syntax error
5001 _ACEOF
5002 if { (ac_try="$ac_cpp conftest.$ac_ext"
5003 case "(($ac_try" in
5004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5005 *) ac_try_echo=$ac_try;;
5006 esac
5007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5008 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5009 ac_status=$?
5010 grep -v '^ *+' conftest.er1 >conftest.err
5011 rm -f conftest.er1
5012 cat conftest.err >&5
5013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014 (exit $ac_status); } >/dev/null && {
5015 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5016 test ! -s conftest.err
5017 }; then
5019 else
5020 echo "$as_me: failed program was:" >&5
5021 sed 's/^/| /' conftest.$ac_ext >&5
5023 # Broken: fails on valid input.
5024 continue
5027 rm -f conftest.err conftest.$ac_ext
5029 # OK, works on sane cases. Now check whether nonexistent headers
5030 # can be detected and how.
5031 cat >conftest.$ac_ext <<_ACEOF
5032 /* confdefs.h. */
5033 _ACEOF
5034 cat confdefs.h >>conftest.$ac_ext
5035 cat >>conftest.$ac_ext <<_ACEOF
5036 /* end confdefs.h. */
5037 #include <ac_nonexistent.h>
5038 _ACEOF
5039 if { (ac_try="$ac_cpp conftest.$ac_ext"
5040 case "(($ac_try" in
5041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5042 *) ac_try_echo=$ac_try;;
5043 esac
5044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5045 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5046 ac_status=$?
5047 grep -v '^ *+' conftest.er1 >conftest.err
5048 rm -f conftest.er1
5049 cat conftest.err >&5
5050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051 (exit $ac_status); } >/dev/null && {
5052 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5053 test ! -s conftest.err
5054 }; then
5055 # Broken: success on invalid input.
5056 continue
5057 else
5058 echo "$as_me: failed program was:" >&5
5059 sed 's/^/| /' conftest.$ac_ext >&5
5061 # Passes both tests.
5062 ac_preproc_ok=:
5063 break
5066 rm -f conftest.err conftest.$ac_ext
5068 done
5069 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5070 rm -f conftest.err conftest.$ac_ext
5071 if $ac_preproc_ok; then
5073 else
5074 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5075 See \`config.log' for more details." >&5
5076 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5077 See \`config.log' for more details." >&2;}
5078 { (exit 1); exit 1; }; }
5081 ac_ext=c
5082 ac_cpp='$CPP $CPPFLAGS'
5083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5087 # Find a good install program. We prefer a C program (faster),
5088 # so one script is as good as another. But avoid the broken or
5089 # incompatible versions:
5090 # SysV /etc/install, /usr/sbin/install
5091 # SunOS /usr/etc/install
5092 # IRIX /sbin/install
5093 # AIX /bin/install
5094 # AmigaOS /C/install, which installs bootblocks on floppy discs
5095 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5096 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5097 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5098 # OS/2's system install, which has a completely different semantic
5099 # ./install, which can be erroneously created by make from ./install.sh.
5100 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5101 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5102 if test -z "$INSTALL"; then
5103 if test "${ac_cv_path_install+set}" = set; then
5104 echo $ECHO_N "(cached) $ECHO_C" >&6
5105 else
5106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107 for as_dir in $PATH
5109 IFS=$as_save_IFS
5110 test -z "$as_dir" && as_dir=.
5111 # Account for people who put trailing slashes in PATH elements.
5112 case $as_dir/ in
5113 ./ | .// | /cC/* | \
5114 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5115 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5116 /usr/ucb/* ) ;;
5118 # OSF1 and SCO ODT 3.0 have their own names for install.
5119 # Don't use installbsd from OSF since it installs stuff as root
5120 # by default.
5121 for ac_prog in ginstall scoinst install; do
5122 for ac_exec_ext in '' $ac_executable_extensions; do
5123 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5124 if test $ac_prog = install &&
5125 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5126 # AIX install. It has an incompatible calling convention.
5128 elif test $ac_prog = install &&
5129 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5130 # program-specific install script used by HP pwplus--don't use.
5132 else
5133 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5134 break 3
5137 done
5138 done
5140 esac
5141 done
5142 IFS=$as_save_IFS
5146 if test "${ac_cv_path_install+set}" = set; then
5147 INSTALL=$ac_cv_path_install
5148 else
5149 # As a last resort, use the slow shell script. Don't cache a
5150 # value for INSTALL within a source directory, because that will
5151 # break other packages using the cache if that directory is
5152 # removed, or if the value is a relative name.
5153 INSTALL=$ac_install_sh
5156 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5157 echo "${ECHO_T}$INSTALL" >&6; }
5159 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5160 # It thinks the first close brace ends the variable substitution.
5161 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5163 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5165 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5167 if test "x$RANLIB" = x; then
5168 if test -n "$ac_tool_prefix"; then
5169 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5170 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5173 if test "${ac_cv_prog_RANLIB+set}" = set; then
5174 echo $ECHO_N "(cached) $ECHO_C" >&6
5175 else
5176 if test -n "$RANLIB"; then
5177 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5178 else
5179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5180 for as_dir in $PATH
5182 IFS=$as_save_IFS
5183 test -z "$as_dir" && as_dir=.
5184 for ac_exec_ext in '' $ac_executable_extensions; do
5185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5186 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5188 break 2
5190 done
5191 done
5192 IFS=$as_save_IFS
5196 RANLIB=$ac_cv_prog_RANLIB
5197 if test -n "$RANLIB"; then
5198 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5199 echo "${ECHO_T}$RANLIB" >&6; }
5200 else
5201 { echo "$as_me:$LINENO: result: no" >&5
5202 echo "${ECHO_T}no" >&6; }
5207 if test -z "$ac_cv_prog_RANLIB"; then
5208 ac_ct_RANLIB=$RANLIB
5209 # Extract the first word of "ranlib", so it can be a program name with args.
5210 set dummy ranlib; ac_word=$2
5211 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5213 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5214 echo $ECHO_N "(cached) $ECHO_C" >&6
5215 else
5216 if test -n "$ac_ct_RANLIB"; then
5217 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5218 else
5219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5220 for as_dir in $PATH
5222 IFS=$as_save_IFS
5223 test -z "$as_dir" && as_dir=.
5224 for ac_exec_ext in '' $ac_executable_extensions; do
5225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5226 ac_cv_prog_ac_ct_RANLIB="ranlib"
5227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5228 break 2
5230 done
5231 done
5232 IFS=$as_save_IFS
5236 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5237 if test -n "$ac_ct_RANLIB"; then
5238 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5239 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5240 else
5241 { echo "$as_me:$LINENO: result: no" >&5
5242 echo "${ECHO_T}no" >&6; }
5245 if test "x$ac_ct_RANLIB" = x; then
5246 RANLIB=":"
5247 else
5248 case $cross_compiling:$ac_tool_warned in
5249 yes:)
5250 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5251 whose name does not start with the host triplet. If you think this
5252 configuration is useful to you, please write to autoconf@gnu.org." >&5
5253 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5254 whose name does not start with the host triplet. If you think this
5255 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5256 ac_tool_warned=yes ;;
5257 esac
5258 RANLIB=$ac_ct_RANLIB
5260 else
5261 RANLIB="$ac_cv_prog_RANLIB"
5265 # Extract the first word of "install-info", so it can be a program name with args.
5266 set dummy install-info; ac_word=$2
5267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5269 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5270 echo $ECHO_N "(cached) $ECHO_C" >&6
5271 else
5272 case $INSTALL_INFO in
5273 [\\/]* | ?:[\\/]*)
5274 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278 for as_dir in $PATH
5280 IFS=$as_save_IFS
5281 test -z "$as_dir" && as_dir=.
5282 for ac_exec_ext in '' $ac_executable_extensions; do
5283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5284 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5286 break 2
5288 done
5289 done
5290 IFS=$as_save_IFS
5293 esac
5295 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5296 if test -n "$INSTALL_INFO"; then
5297 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5298 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5299 else
5300 { echo "$as_me:$LINENO: result: no" >&5
5301 echo "${ECHO_T}no" >&6; }
5305 # Extract the first word of "install-info", so it can be a program name with args.
5306 set dummy install-info; ac_word=$2
5307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5309 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5310 echo $ECHO_N "(cached) $ECHO_C" >&6
5311 else
5312 case $INSTALL_INFO in
5313 [\\/]* | ?:[\\/]*)
5314 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5318 for as_dir in /usr/sbin
5320 IFS=$as_save_IFS
5321 test -z "$as_dir" && as_dir=.
5322 for ac_exec_ext in '' $ac_executable_extensions; do
5323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5324 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5326 break 2
5328 done
5329 done
5330 IFS=$as_save_IFS
5333 esac
5335 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5336 if test -n "$INSTALL_INFO"; then
5337 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5338 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5339 else
5340 { echo "$as_me:$LINENO: result: no" >&5
5341 echo "${ECHO_T}no" >&6; }
5345 # Extract the first word of "install-info", so it can be a program name with args.
5346 set dummy install-info; ac_word=$2
5347 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5349 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5350 echo $ECHO_N "(cached) $ECHO_C" >&6
5351 else
5352 case $INSTALL_INFO in
5353 [\\/]* | ?:[\\/]*)
5354 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5358 for as_dir in /sbin
5360 IFS=$as_save_IFS
5361 test -z "$as_dir" && as_dir=.
5362 for ac_exec_ext in '' $ac_executable_extensions; do
5363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5364 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5366 break 2
5368 done
5369 done
5370 IFS=$as_save_IFS
5372 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5374 esac
5376 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5377 if test -n "$INSTALL_INFO"; then
5378 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5379 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5380 else
5381 { echo "$as_me:$LINENO: result: no" >&5
5382 echo "${ECHO_T}no" >&6; }
5386 # Extract the first word of "gzip", so it can be a program name with args.
5387 set dummy gzip; ac_word=$2
5388 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5390 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5391 echo $ECHO_N "(cached) $ECHO_C" >&6
5392 else
5393 case $GZIP_PROG in
5394 [\\/]* | ?:[\\/]*)
5395 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5399 for as_dir in $PATH
5401 IFS=$as_save_IFS
5402 test -z "$as_dir" && as_dir=.
5403 for ac_exec_ext in '' $ac_executable_extensions; do
5404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5405 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5407 break 2
5409 done
5410 done
5411 IFS=$as_save_IFS
5414 esac
5416 GZIP_PROG=$ac_cv_path_GZIP_PROG
5417 if test -n "$GZIP_PROG"; then
5418 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5419 echo "${ECHO_T}$GZIP_PROG" >&6; }
5420 else
5421 { echo "$as_me:$LINENO: result: no" >&5
5422 echo "${ECHO_T}no" >&6; }
5428 ## Need makeinfo >= 4.6 (?) to build the manuals.
5429 # Extract the first word of "makeinfo", so it can be a program name with args.
5430 set dummy makeinfo; ac_word=$2
5431 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5433 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5434 echo $ECHO_N "(cached) $ECHO_C" >&6
5435 else
5436 case $MAKEINFO in
5437 [\\/]* | ?:[\\/]*)
5438 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5442 for as_dir in $PATH
5444 IFS=$as_save_IFS
5445 test -z "$as_dir" && as_dir=.
5446 for ac_exec_ext in '' $ac_executable_extensions; do
5447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5448 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5450 break 2
5452 done
5453 done
5454 IFS=$as_save_IFS
5456 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5458 esac
5460 MAKEINFO=$ac_cv_path_MAKEINFO
5461 if test -n "$MAKEINFO"; then
5462 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5463 echo "${ECHO_T}$MAKEINFO" >&6; }
5464 else
5465 { echo "$as_me:$LINENO: result: no" >&5
5466 echo "${ECHO_T}no" >&6; }
5470 if test "$MAKEINFO" != "no" && \
5471 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
5472 MAKEINFO=no
5475 if test "$MAKEINFO" = "no"; then
5476 { { echo "$as_me:$LINENO: error: makeinfo >= 4.6 is required " >&5
5477 echo "$as_me: error: makeinfo >= 4.6 is required " >&2;}
5478 { (exit 1); exit 1; }; }
5483 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5484 then
5485 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5488 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5489 then
5490 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5494 late_LDFLAGS=$LDFLAGS
5495 if test "$GCC" = yes; then
5496 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5497 else
5498 LDFLAGS="$LDFLAGS -znocombreloc"
5501 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5502 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5503 cat >conftest.$ac_ext <<_ACEOF
5504 main(){return 0;}
5505 _ACEOF
5506 rm -f conftest.$ac_objext conftest$ac_exeext
5507 if { (ac_try="$ac_link"
5508 case "(($ac_try" in
5509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5510 *) ac_try_echo=$ac_try;;
5511 esac
5512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5513 (eval "$ac_link") 2>conftest.er1
5514 ac_status=$?
5515 grep -v '^ *+' conftest.er1 >conftest.err
5516 rm -f conftest.er1
5517 cat conftest.err >&5
5518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519 (exit $ac_status); } && {
5520 test -z "$ac_c_werror_flag" ||
5521 test ! -s conftest.err
5522 } && test -s conftest$ac_exeext &&
5523 $as_test_x conftest$ac_exeext; then
5524 { echo "$as_me:$LINENO: result: yes" >&5
5525 echo "${ECHO_T}yes" >&6; }
5526 else
5527 echo "$as_me: failed program was:" >&5
5528 sed 's/^/| /' conftest.$ac_ext >&5
5530 LDFLAGS=$late_LDFLAGS
5531 { echo "$as_me:$LINENO: result: no" >&5
5532 echo "${ECHO_T}no" >&6; }
5535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5536 conftest$ac_exeext conftest.$ac_ext
5538 #### Extract some information from the operating system and machine files.
5540 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5541 - which libraries the lib-src programs will want, and
5542 - whether the GNU malloc routines are usable..." >&5
5543 echo "$as_me: checking the machine- and system-dependent files to find out
5544 - which libraries the lib-src programs will want, and
5545 - whether the GNU malloc routines are usable..." >&6;}
5547 ### First figure out CFLAGS (which we use for running the compiler here)
5548 ### and REAL_CFLAGS (which we use for real compilation).
5549 ### The two are the same except on a few systems, where they are made
5550 ### different to work around various lossages. For example,
5551 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5552 ### as implying static linking.
5554 ### If the CFLAGS env var is specified, we use that value
5555 ### instead of the default.
5557 ### It's not important that this name contain the PID; you can't run
5558 ### two configures in the same directory and have anything work
5559 ### anyway.
5560 tempcname="conftest.c"
5562 echo '
5563 #include "'${srcdir}'/src/'${opsysfile}'"
5564 #include "'${srcdir}'/src/'${machfile}'"
5565 #ifndef LIBS_MACHINE
5566 #define LIBS_MACHINE
5567 #endif
5568 #ifndef LIBS_SYSTEM
5569 #define LIBS_SYSTEM
5570 #endif
5571 #ifndef C_SWITCH_SYSTEM
5572 #define C_SWITCH_SYSTEM
5573 #endif
5574 #ifndef C_SWITCH_MACHINE
5575 #define C_SWITCH_MACHINE
5576 #endif
5577 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5578 configure___ c_switch_system=C_SWITCH_SYSTEM
5579 configure___ c_switch_machine=C_SWITCH_MACHINE
5581 #ifndef LIB_X11_LIB
5582 #define LIB_X11_LIB -lX11
5583 #endif
5585 #ifndef LIBX11_MACHINE
5586 #define LIBX11_MACHINE
5587 #endif
5589 #ifndef LIBX11_SYSTEM
5590 #define LIBX11_SYSTEM
5591 #endif
5592 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5594 #ifdef UNEXEC
5595 configure___ unexec=UNEXEC
5596 #else
5597 configure___ unexec=unexec.o
5598 #endif
5600 #ifdef SYSTEM_MALLOC
5601 configure___ system_malloc=yes
5602 #else
5603 configure___ system_malloc=no
5604 #endif
5606 #ifdef USE_MMAP_FOR_BUFFERS
5607 configure___ use_mmap_for_buffers=yes
5608 #else
5609 configure___ use_mmap_for_buffers=no
5610 #endif
5612 #ifndef C_DEBUG_SWITCH
5613 #define C_DEBUG_SWITCH -g
5614 #endif
5616 #ifndef C_OPTIMIZE_SWITCH
5617 #ifdef __GNUC__
5618 #define C_OPTIMIZE_SWITCH -O2
5619 #else
5620 #define C_OPTIMIZE_SWITCH -O
5621 #endif
5622 #endif
5624 #ifndef C_WARNINGS_SWITCH
5625 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5626 #endif
5628 #ifndef LD_SWITCH_MACHINE
5629 #define LD_SWITCH_MACHINE
5630 #endif
5632 #ifndef LD_SWITCH_SYSTEM
5633 #define LD_SWITCH_SYSTEM
5634 #endif
5636 #ifndef LD_SWITCH_X_SITE_AUX
5637 #define LD_SWITCH_X_SITE_AUX
5638 #endif
5640 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5641 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5643 #ifdef THIS_IS_CONFIGURE
5645 /* Get the CFLAGS for tests in configure. */
5646 #ifdef __GNUC__
5647 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5648 #else
5649 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5650 #endif
5652 #else /* not THIS_IS_CONFIGURE */
5654 /* Get the CFLAGS for real compilation. */
5655 #ifdef __GNUC__
5656 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5657 #else
5658 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5659 #endif
5661 #endif /* not THIS_IS_CONFIGURE */
5662 ' > ${tempcname}
5664 # The value of CPP is a quoted variable reference, so we need to do this
5665 # to get its actual value...
5666 CPP=`eval "echo $CPP"`
5667 eval `${CPP} -Isrc ${tempcname} \
5668 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5669 if test "x$SPECIFIED_CFLAGS" = x; then
5670 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5671 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5672 else
5673 REAL_CFLAGS="$CFLAGS"
5675 rm ${tempcname}
5677 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5679 ### Make sure subsequent tests use flags consistent with the build flags.
5681 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5682 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5683 else
5684 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5689 # Check whether --enable-largefile was given.
5690 if test "${enable_largefile+set}" = set; then
5691 enableval=$enable_largefile;
5694 if test "$enable_largefile" != no; then
5696 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5697 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5698 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5699 echo $ECHO_N "(cached) $ECHO_C" >&6
5700 else
5701 ac_cv_sys_largefile_CC=no
5702 if test "$GCC" != yes; then
5703 ac_save_CC=$CC
5704 while :; do
5705 # IRIX 6.2 and later do not support large files by default,
5706 # so use the C compiler's -n32 option if that helps.
5707 cat >conftest.$ac_ext <<_ACEOF
5708 /* confdefs.h. */
5709 _ACEOF
5710 cat confdefs.h >>conftest.$ac_ext
5711 cat >>conftest.$ac_ext <<_ACEOF
5712 /* end confdefs.h. */
5713 #include <sys/types.h>
5714 /* Check that off_t can represent 2**63 - 1 correctly.
5715 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5716 since some C++ compilers masquerading as C compilers
5717 incorrectly reject 9223372036854775807. */
5718 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5719 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5720 && LARGE_OFF_T % 2147483647 == 1)
5721 ? 1 : -1];
5723 main ()
5727 return 0;
5729 _ACEOF
5730 rm -f conftest.$ac_objext
5731 if { (ac_try="$ac_compile"
5732 case "(($ac_try" in
5733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5734 *) ac_try_echo=$ac_try;;
5735 esac
5736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5737 (eval "$ac_compile") 2>conftest.er1
5738 ac_status=$?
5739 grep -v '^ *+' conftest.er1 >conftest.err
5740 rm -f conftest.er1
5741 cat conftest.err >&5
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); } && {
5744 test -z "$ac_c_werror_flag" ||
5745 test ! -s conftest.err
5746 } && test -s conftest.$ac_objext; then
5747 break
5748 else
5749 echo "$as_me: failed program was:" >&5
5750 sed 's/^/| /' conftest.$ac_ext >&5
5755 rm -f core conftest.err conftest.$ac_objext
5756 CC="$CC -n32"
5757 rm -f conftest.$ac_objext
5758 if { (ac_try="$ac_compile"
5759 case "(($ac_try" in
5760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5761 *) ac_try_echo=$ac_try;;
5762 esac
5763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5764 (eval "$ac_compile") 2>conftest.er1
5765 ac_status=$?
5766 grep -v '^ *+' conftest.er1 >conftest.err
5767 rm -f conftest.er1
5768 cat conftest.err >&5
5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); } && {
5771 test -z "$ac_c_werror_flag" ||
5772 test ! -s conftest.err
5773 } && test -s conftest.$ac_objext; then
5774 ac_cv_sys_largefile_CC=' -n32'; break
5775 else
5776 echo "$as_me: failed program was:" >&5
5777 sed 's/^/| /' conftest.$ac_ext >&5
5782 rm -f core conftest.err conftest.$ac_objext
5783 break
5784 done
5785 CC=$ac_save_CC
5786 rm -f conftest.$ac_ext
5789 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5790 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5791 if test "$ac_cv_sys_largefile_CC" != no; then
5792 CC=$CC$ac_cv_sys_largefile_CC
5795 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5796 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5797 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5798 echo $ECHO_N "(cached) $ECHO_C" >&6
5799 else
5800 while :; do
5801 cat >conftest.$ac_ext <<_ACEOF
5802 /* confdefs.h. */
5803 _ACEOF
5804 cat confdefs.h >>conftest.$ac_ext
5805 cat >>conftest.$ac_ext <<_ACEOF
5806 /* end confdefs.h. */
5807 #include <sys/types.h>
5808 /* Check that off_t can represent 2**63 - 1 correctly.
5809 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5810 since some C++ compilers masquerading as C compilers
5811 incorrectly reject 9223372036854775807. */
5812 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5813 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5814 && LARGE_OFF_T % 2147483647 == 1)
5815 ? 1 : -1];
5817 main ()
5821 return 0;
5823 _ACEOF
5824 rm -f conftest.$ac_objext
5825 if { (ac_try="$ac_compile"
5826 case "(($ac_try" in
5827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5828 *) ac_try_echo=$ac_try;;
5829 esac
5830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5831 (eval "$ac_compile") 2>conftest.er1
5832 ac_status=$?
5833 grep -v '^ *+' conftest.er1 >conftest.err
5834 rm -f conftest.er1
5835 cat conftest.err >&5
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); } && {
5838 test -z "$ac_c_werror_flag" ||
5839 test ! -s conftest.err
5840 } && test -s conftest.$ac_objext; then
5841 ac_cv_sys_file_offset_bits=no; break
5842 else
5843 echo "$as_me: failed program was:" >&5
5844 sed 's/^/| /' conftest.$ac_ext >&5
5849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5850 cat >conftest.$ac_ext <<_ACEOF
5851 /* confdefs.h. */
5852 _ACEOF
5853 cat confdefs.h >>conftest.$ac_ext
5854 cat >>conftest.$ac_ext <<_ACEOF
5855 /* end confdefs.h. */
5856 #define _FILE_OFFSET_BITS 64
5857 #include <sys/types.h>
5858 /* Check that off_t can represent 2**63 - 1 correctly.
5859 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5860 since some C++ compilers masquerading as C compilers
5861 incorrectly reject 9223372036854775807. */
5862 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5863 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5864 && LARGE_OFF_T % 2147483647 == 1)
5865 ? 1 : -1];
5867 main ()
5871 return 0;
5873 _ACEOF
5874 rm -f conftest.$ac_objext
5875 if { (ac_try="$ac_compile"
5876 case "(($ac_try" in
5877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5878 *) ac_try_echo=$ac_try;;
5879 esac
5880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5881 (eval "$ac_compile") 2>conftest.er1
5882 ac_status=$?
5883 grep -v '^ *+' conftest.er1 >conftest.err
5884 rm -f conftest.er1
5885 cat conftest.err >&5
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); } && {
5888 test -z "$ac_c_werror_flag" ||
5889 test ! -s conftest.err
5890 } && test -s conftest.$ac_objext; then
5891 ac_cv_sys_file_offset_bits=64; break
5892 else
5893 echo "$as_me: failed program was:" >&5
5894 sed 's/^/| /' conftest.$ac_ext >&5
5899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5900 ac_cv_sys_file_offset_bits=unknown
5901 break
5902 done
5904 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5905 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5906 case $ac_cv_sys_file_offset_bits in #(
5907 no | unknown) ;;
5909 cat >>confdefs.h <<_ACEOF
5910 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5911 _ACEOF
5913 esac
5914 rm -f conftest*
5915 if test $ac_cv_sys_file_offset_bits = unknown; then
5916 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5917 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5918 if test "${ac_cv_sys_large_files+set}" = set; then
5919 echo $ECHO_N "(cached) $ECHO_C" >&6
5920 else
5921 while :; do
5922 cat >conftest.$ac_ext <<_ACEOF
5923 /* confdefs.h. */
5924 _ACEOF
5925 cat confdefs.h >>conftest.$ac_ext
5926 cat >>conftest.$ac_ext <<_ACEOF
5927 /* end confdefs.h. */
5928 #include <sys/types.h>
5929 /* Check that off_t can represent 2**63 - 1 correctly.
5930 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5931 since some C++ compilers masquerading as C compilers
5932 incorrectly reject 9223372036854775807. */
5933 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5934 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5935 && LARGE_OFF_T % 2147483647 == 1)
5936 ? 1 : -1];
5938 main ()
5942 return 0;
5944 _ACEOF
5945 rm -f conftest.$ac_objext
5946 if { (ac_try="$ac_compile"
5947 case "(($ac_try" in
5948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5949 *) ac_try_echo=$ac_try;;
5950 esac
5951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5952 (eval "$ac_compile") 2>conftest.er1
5953 ac_status=$?
5954 grep -v '^ *+' conftest.er1 >conftest.err
5955 rm -f conftest.er1
5956 cat conftest.err >&5
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); } && {
5959 test -z "$ac_c_werror_flag" ||
5960 test ! -s conftest.err
5961 } && test -s conftest.$ac_objext; then
5962 ac_cv_sys_large_files=no; break
5963 else
5964 echo "$as_me: failed program was:" >&5
5965 sed 's/^/| /' conftest.$ac_ext >&5
5970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5971 cat >conftest.$ac_ext <<_ACEOF
5972 /* confdefs.h. */
5973 _ACEOF
5974 cat confdefs.h >>conftest.$ac_ext
5975 cat >>conftest.$ac_ext <<_ACEOF
5976 /* end confdefs.h. */
5977 #define _LARGE_FILES 1
5978 #include <sys/types.h>
5979 /* Check that off_t can represent 2**63 - 1 correctly.
5980 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5981 since some C++ compilers masquerading as C compilers
5982 incorrectly reject 9223372036854775807. */
5983 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5984 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5985 && LARGE_OFF_T % 2147483647 == 1)
5986 ? 1 : -1];
5988 main ()
5992 return 0;
5994 _ACEOF
5995 rm -f conftest.$ac_objext
5996 if { (ac_try="$ac_compile"
5997 case "(($ac_try" in
5998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5999 *) ac_try_echo=$ac_try;;
6000 esac
6001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6002 (eval "$ac_compile") 2>conftest.er1
6003 ac_status=$?
6004 grep -v '^ *+' conftest.er1 >conftest.err
6005 rm -f conftest.er1
6006 cat conftest.err >&5
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); } && {
6009 test -z "$ac_c_werror_flag" ||
6010 test ! -s conftest.err
6011 } && test -s conftest.$ac_objext; then
6012 ac_cv_sys_large_files=1; break
6013 else
6014 echo "$as_me: failed program was:" >&5
6015 sed 's/^/| /' conftest.$ac_ext >&5
6020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6021 ac_cv_sys_large_files=unknown
6022 break
6023 done
6025 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6026 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
6027 case $ac_cv_sys_large_files in #(
6028 no | unknown) ;;
6030 cat >>confdefs.h <<_ACEOF
6031 #define _LARGE_FILES $ac_cv_sys_large_files
6032 _ACEOF
6034 esac
6035 rm -f conftest*
6041 ### The standard library on x86-64 GNU/Linux distributions can
6042 ### be located in either /usr/lib64 or /usr/lib.
6043 case "${canonical}" in
6044 x86_64-*-linux-gnu* )
6045 if test -d /usr/lib64; then
6047 cat >>confdefs.h <<\_ACEOF
6048 #define HAVE_X86_64_LIB64_DIR 1
6049 _ACEOF
6052 esac
6057 if test "${with_sound}" != "no"; then
6058 # Sound support for GNU/Linux and the free BSDs.
6059 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6060 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6061 if test "${ac_cv_header_stdc+set}" = set; then
6062 echo $ECHO_N "(cached) $ECHO_C" >&6
6063 else
6064 cat >conftest.$ac_ext <<_ACEOF
6065 /* confdefs.h. */
6066 _ACEOF
6067 cat confdefs.h >>conftest.$ac_ext
6068 cat >>conftest.$ac_ext <<_ACEOF
6069 /* end confdefs.h. */
6070 #include <stdlib.h>
6071 #include <stdarg.h>
6072 #include <string.h>
6073 #include <float.h>
6076 main ()
6080 return 0;
6082 _ACEOF
6083 rm -f conftest.$ac_objext
6084 if { (ac_try="$ac_compile"
6085 case "(($ac_try" in
6086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6087 *) ac_try_echo=$ac_try;;
6088 esac
6089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6090 (eval "$ac_compile") 2>conftest.er1
6091 ac_status=$?
6092 grep -v '^ *+' conftest.er1 >conftest.err
6093 rm -f conftest.er1
6094 cat conftest.err >&5
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); } && {
6097 test -z "$ac_c_werror_flag" ||
6098 test ! -s conftest.err
6099 } && test -s conftest.$ac_objext; then
6100 ac_cv_header_stdc=yes
6101 else
6102 echo "$as_me: failed program was:" >&5
6103 sed 's/^/| /' conftest.$ac_ext >&5
6105 ac_cv_header_stdc=no
6108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6110 if test $ac_cv_header_stdc = yes; then
6111 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6112 cat >conftest.$ac_ext <<_ACEOF
6113 /* confdefs.h. */
6114 _ACEOF
6115 cat confdefs.h >>conftest.$ac_ext
6116 cat >>conftest.$ac_ext <<_ACEOF
6117 /* end confdefs.h. */
6118 #include <string.h>
6120 _ACEOF
6121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6122 $EGREP "memchr" >/dev/null 2>&1; then
6124 else
6125 ac_cv_header_stdc=no
6127 rm -f conftest*
6131 if test $ac_cv_header_stdc = yes; then
6132 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6133 cat >conftest.$ac_ext <<_ACEOF
6134 /* confdefs.h. */
6135 _ACEOF
6136 cat confdefs.h >>conftest.$ac_ext
6137 cat >>conftest.$ac_ext <<_ACEOF
6138 /* end confdefs.h. */
6139 #include <stdlib.h>
6141 _ACEOF
6142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6143 $EGREP "free" >/dev/null 2>&1; then
6145 else
6146 ac_cv_header_stdc=no
6148 rm -f conftest*
6152 if test $ac_cv_header_stdc = yes; then
6153 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6154 if test "$cross_compiling" = yes; then
6156 else
6157 cat >conftest.$ac_ext <<_ACEOF
6158 /* confdefs.h. */
6159 _ACEOF
6160 cat confdefs.h >>conftest.$ac_ext
6161 cat >>conftest.$ac_ext <<_ACEOF
6162 /* end confdefs.h. */
6163 #include <ctype.h>
6164 #include <stdlib.h>
6165 #if ((' ' & 0x0FF) == 0x020)
6166 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6167 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6168 #else
6169 # define ISLOWER(c) \
6170 (('a' <= (c) && (c) <= 'i') \
6171 || ('j' <= (c) && (c) <= 'r') \
6172 || ('s' <= (c) && (c) <= 'z'))
6173 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6174 #endif
6176 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6178 main ()
6180 int i;
6181 for (i = 0; i < 256; i++)
6182 if (XOR (islower (i), ISLOWER (i))
6183 || toupper (i) != TOUPPER (i))
6184 return 2;
6185 return 0;
6187 _ACEOF
6188 rm -f conftest$ac_exeext
6189 if { (ac_try="$ac_link"
6190 case "(($ac_try" in
6191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6192 *) ac_try_echo=$ac_try;;
6193 esac
6194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6195 (eval "$ac_link") 2>&5
6196 ac_status=$?
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6199 { (case "(($ac_try" in
6200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6201 *) ac_try_echo=$ac_try;;
6202 esac
6203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6204 (eval "$ac_try") 2>&5
6205 ac_status=$?
6206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); }; }; then
6209 else
6210 echo "$as_me: program exited with status $ac_status" >&5
6211 echo "$as_me: failed program was:" >&5
6212 sed 's/^/| /' conftest.$ac_ext >&5
6214 ( exit $ac_status )
6215 ac_cv_header_stdc=no
6217 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6223 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6224 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6225 if test $ac_cv_header_stdc = yes; then
6227 cat >>confdefs.h <<\_ACEOF
6228 #define STDC_HEADERS 1
6229 _ACEOF
6233 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6243 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6244 inttypes.h stdint.h unistd.h
6246 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6247 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6250 echo $ECHO_N "(cached) $ECHO_C" >&6
6251 else
6252 cat >conftest.$ac_ext <<_ACEOF
6253 /* confdefs.h. */
6254 _ACEOF
6255 cat confdefs.h >>conftest.$ac_ext
6256 cat >>conftest.$ac_ext <<_ACEOF
6257 /* end confdefs.h. */
6258 $ac_includes_default
6260 #include <$ac_header>
6261 _ACEOF
6262 rm -f conftest.$ac_objext
6263 if { (ac_try="$ac_compile"
6264 case "(($ac_try" in
6265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6266 *) ac_try_echo=$ac_try;;
6267 esac
6268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6269 (eval "$ac_compile") 2>conftest.er1
6270 ac_status=$?
6271 grep -v '^ *+' conftest.er1 >conftest.err
6272 rm -f conftest.er1
6273 cat conftest.err >&5
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); } && {
6276 test -z "$ac_c_werror_flag" ||
6277 test ! -s conftest.err
6278 } && test -s conftest.$ac_objext; then
6279 eval "$as_ac_Header=yes"
6280 else
6281 echo "$as_me: failed program was:" >&5
6282 sed 's/^/| /' conftest.$ac_ext >&5
6284 eval "$as_ac_Header=no"
6287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6289 ac_res=`eval echo '${'$as_ac_Header'}'`
6290 { echo "$as_me:$LINENO: result: $ac_res" >&5
6291 echo "${ECHO_T}$ac_res" >&6; }
6292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6293 cat >>confdefs.h <<_ACEOF
6294 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6295 _ACEOF
6299 done
6305 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6307 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6309 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6312 echo $ECHO_N "(cached) $ECHO_C" >&6
6314 ac_res=`eval echo '${'$as_ac_Header'}'`
6315 { echo "$as_me:$LINENO: result: $ac_res" >&5
6316 echo "${ECHO_T}$ac_res" >&6; }
6317 else
6318 # Is the header compilable?
6319 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6320 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6321 cat >conftest.$ac_ext <<_ACEOF
6322 /* confdefs.h. */
6323 _ACEOF
6324 cat confdefs.h >>conftest.$ac_ext
6325 cat >>conftest.$ac_ext <<_ACEOF
6326 /* end confdefs.h. */
6327 $ac_includes_default
6328 #include <$ac_header>
6329 _ACEOF
6330 rm -f conftest.$ac_objext
6331 if { (ac_try="$ac_compile"
6332 case "(($ac_try" in
6333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6334 *) ac_try_echo=$ac_try;;
6335 esac
6336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6337 (eval "$ac_compile") 2>conftest.er1
6338 ac_status=$?
6339 grep -v '^ *+' conftest.er1 >conftest.err
6340 rm -f conftest.er1
6341 cat conftest.err >&5
6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343 (exit $ac_status); } && {
6344 test -z "$ac_c_werror_flag" ||
6345 test ! -s conftest.err
6346 } && test -s conftest.$ac_objext; then
6347 ac_header_compiler=yes
6348 else
6349 echo "$as_me: failed program was:" >&5
6350 sed 's/^/| /' conftest.$ac_ext >&5
6352 ac_header_compiler=no
6355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6356 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6357 echo "${ECHO_T}$ac_header_compiler" >&6; }
6359 # Is the header present?
6360 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6361 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6362 cat >conftest.$ac_ext <<_ACEOF
6363 /* confdefs.h. */
6364 _ACEOF
6365 cat confdefs.h >>conftest.$ac_ext
6366 cat >>conftest.$ac_ext <<_ACEOF
6367 /* end confdefs.h. */
6368 #include <$ac_header>
6369 _ACEOF
6370 if { (ac_try="$ac_cpp conftest.$ac_ext"
6371 case "(($ac_try" in
6372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6373 *) ac_try_echo=$ac_try;;
6374 esac
6375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6376 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6377 ac_status=$?
6378 grep -v '^ *+' conftest.er1 >conftest.err
6379 rm -f conftest.er1
6380 cat conftest.err >&5
6381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382 (exit $ac_status); } >/dev/null && {
6383 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6384 test ! -s conftest.err
6385 }; then
6386 ac_header_preproc=yes
6387 else
6388 echo "$as_me: failed program was:" >&5
6389 sed 's/^/| /' conftest.$ac_ext >&5
6391 ac_header_preproc=no
6394 rm -f conftest.err conftest.$ac_ext
6395 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6396 echo "${ECHO_T}$ac_header_preproc" >&6; }
6398 # So? What about this header?
6399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6400 yes:no: )
6401 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6402 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6404 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6405 ac_header_preproc=yes
6407 no:yes:* )
6408 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6409 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6410 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6411 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6412 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6413 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6414 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6415 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6417 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6418 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6419 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6422 esac
6423 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6426 echo $ECHO_N "(cached) $ECHO_C" >&6
6427 else
6428 eval "$as_ac_Header=\$ac_header_preproc"
6430 ac_res=`eval echo '${'$as_ac_Header'}'`
6431 { echo "$as_me:$LINENO: result: $ac_res" >&5
6432 echo "${ECHO_T}$ac_res" >&6; }
6435 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6436 cat >>confdefs.h <<_ACEOF
6437 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6438 _ACEOF
6442 done
6444 # Emulation library used on NetBSD.
6445 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6446 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6447 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6448 echo $ECHO_N "(cached) $ECHO_C" >&6
6449 else
6450 ac_check_lib_save_LIBS=$LIBS
6451 LIBS="-lossaudio $LIBS"
6452 cat >conftest.$ac_ext <<_ACEOF
6453 /* confdefs.h. */
6454 _ACEOF
6455 cat confdefs.h >>conftest.$ac_ext
6456 cat >>conftest.$ac_ext <<_ACEOF
6457 /* end confdefs.h. */
6459 /* Override any GCC internal prototype to avoid an error.
6460 Use char because int might match the return type of a GCC
6461 builtin and then its argument prototype would still apply. */
6462 #ifdef __cplusplus
6463 extern "C"
6464 #endif
6465 char _oss_ioctl ();
6467 main ()
6469 return _oss_ioctl ();
6471 return 0;
6473 _ACEOF
6474 rm -f conftest.$ac_objext conftest$ac_exeext
6475 if { (ac_try="$ac_link"
6476 case "(($ac_try" in
6477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6478 *) ac_try_echo=$ac_try;;
6479 esac
6480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6481 (eval "$ac_link") 2>conftest.er1
6482 ac_status=$?
6483 grep -v '^ *+' conftest.er1 >conftest.err
6484 rm -f conftest.er1
6485 cat conftest.err >&5
6486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); } && {
6488 test -z "$ac_c_werror_flag" ||
6489 test ! -s conftest.err
6490 } && test -s conftest$ac_exeext &&
6491 $as_test_x conftest$ac_exeext; then
6492 ac_cv_lib_ossaudio__oss_ioctl=yes
6493 else
6494 echo "$as_me: failed program was:" >&5
6495 sed 's/^/| /' conftest.$ac_ext >&5
6497 ac_cv_lib_ossaudio__oss_ioctl=no
6500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6501 conftest$ac_exeext conftest.$ac_ext
6502 LIBS=$ac_check_lib_save_LIBS
6504 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6505 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6506 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6507 LIBSOUND=-lossaudio
6508 else
6509 LIBSOUND=
6514 ALSA_REQUIRED=1.0.0
6515 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6516 if test "X${with_pkg_config_prog}" != X; then
6517 PKG_CONFIG="${with_pkg_config_prog}"
6520 succeeded=no
6522 if test -z "$PKG_CONFIG"; then
6523 # Extract the first word of "pkg-config", so it can be a program name with args.
6524 set dummy pkg-config; ac_word=$2
6525 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6527 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6528 echo $ECHO_N "(cached) $ECHO_C" >&6
6529 else
6530 case $PKG_CONFIG in
6531 [\\/]* | ?:[\\/]*)
6532 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6536 for as_dir in $PATH
6538 IFS=$as_save_IFS
6539 test -z "$as_dir" && as_dir=.
6540 for ac_exec_ext in '' $ac_executable_extensions; do
6541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6542 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6544 break 2
6546 done
6547 done
6548 IFS=$as_save_IFS
6550 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6552 esac
6554 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6555 if test -n "$PKG_CONFIG"; then
6556 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6557 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6558 else
6559 { echo "$as_me:$LINENO: result: no" >&5
6560 echo "${ECHO_T}no" >&6; }
6566 if test "$PKG_CONFIG" = "no" ; then
6567 HAVE_ALSA=no
6568 else
6569 PKG_CONFIG_MIN_VERSION=0.9.0
6570 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6571 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6572 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6574 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6575 { echo "$as_me:$LINENO: result: yes" >&5
6576 echo "${ECHO_T}yes" >&6; }
6577 succeeded=yes
6579 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6580 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6581 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6582 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6583 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6585 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6586 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6587 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6588 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6589 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6590 else
6591 { echo "$as_me:$LINENO: result: no" >&5
6592 echo "${ECHO_T}no" >&6; }
6593 ALSA_CFLAGS=""
6594 ALSA_LIBS=""
6595 ## If we have a custom action on failure, don't print errors, but
6596 ## do set a variable so people can do so.
6597 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6603 else
6604 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6605 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6609 if test $succeeded = yes; then
6610 HAVE_ALSA=yes
6611 else
6612 HAVE_ALSA=no
6615 if test $HAVE_ALSA = yes; then
6616 SAVE_CFLAGS="$CFLAGS"
6617 SAVE_LDFLAGS="$LDFLAGS"
6618 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6619 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6620 cat >conftest.$ac_ext <<_ACEOF
6621 /* confdefs.h. */
6622 _ACEOF
6623 cat confdefs.h >>conftest.$ac_ext
6624 cat >>conftest.$ac_ext <<_ACEOF
6625 /* end confdefs.h. */
6626 #include <asoundlib.h>
6628 main ()
6630 snd_lib_error_set_handler (0);
6632 return 0;
6634 _ACEOF
6635 rm -f conftest.$ac_objext
6636 if { (ac_try="$ac_compile"
6637 case "(($ac_try" in
6638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6639 *) ac_try_echo=$ac_try;;
6640 esac
6641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6642 (eval "$ac_compile") 2>conftest.er1
6643 ac_status=$?
6644 grep -v '^ *+' conftest.er1 >conftest.err
6645 rm -f conftest.er1
6646 cat conftest.err >&5
6647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); } && {
6649 test -z "$ac_c_werror_flag" ||
6650 test ! -s conftest.err
6651 } && test -s conftest.$ac_objext; then
6652 emacs_alsa_normal=yes
6653 else
6654 echo "$as_me: failed program was:" >&5
6655 sed 's/^/| /' conftest.$ac_ext >&5
6657 emacs_alsa_normal=no
6660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6661 if test "$emacs_alsa_normal" != yes; then
6662 cat >conftest.$ac_ext <<_ACEOF
6663 /* confdefs.h. */
6664 _ACEOF
6665 cat confdefs.h >>conftest.$ac_ext
6666 cat >>conftest.$ac_ext <<_ACEOF
6667 /* end confdefs.h. */
6668 #include <alsa/asoundlib.h>
6670 main ()
6672 snd_lib_error_set_handler (0);
6674 return 0;
6676 _ACEOF
6677 rm -f conftest.$ac_objext
6678 if { (ac_try="$ac_compile"
6679 case "(($ac_try" in
6680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6681 *) ac_try_echo=$ac_try;;
6682 esac
6683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6684 (eval "$ac_compile") 2>conftest.er1
6685 ac_status=$?
6686 grep -v '^ *+' conftest.er1 >conftest.err
6687 rm -f conftest.er1
6688 cat conftest.err >&5
6689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690 (exit $ac_status); } && {
6691 test -z "$ac_c_werror_flag" ||
6692 test ! -s conftest.err
6693 } && test -s conftest.$ac_objext; then
6694 emacs_alsa_subdir=yes
6695 else
6696 echo "$as_me: failed program was:" >&5
6697 sed 's/^/| /' conftest.$ac_ext >&5
6699 emacs_alsa_subdir=no
6702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6703 if test "$emacs_alsa_subdir" != yes; then
6704 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6705 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6706 { (exit 1); exit 1; }; }
6708 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6711 CFLAGS="$SAVE_CFLAGS"
6712 LDFLAGS="$SAVE_LDFLAGS"
6713 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6714 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6716 cat >>confdefs.h <<\_ACEOF
6717 #define HAVE_ALSA 1
6718 _ACEOF
6749 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6750 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6751 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6752 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6753 sys/utsname.h pwd.h
6755 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6757 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6760 echo $ECHO_N "(cached) $ECHO_C" >&6
6762 ac_res=`eval echo '${'$as_ac_Header'}'`
6763 { echo "$as_me:$LINENO: result: $ac_res" >&5
6764 echo "${ECHO_T}$ac_res" >&6; }
6765 else
6766 # Is the header compilable?
6767 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6768 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6769 cat >conftest.$ac_ext <<_ACEOF
6770 /* confdefs.h. */
6771 _ACEOF
6772 cat confdefs.h >>conftest.$ac_ext
6773 cat >>conftest.$ac_ext <<_ACEOF
6774 /* end confdefs.h. */
6775 $ac_includes_default
6776 #include <$ac_header>
6777 _ACEOF
6778 rm -f conftest.$ac_objext
6779 if { (ac_try="$ac_compile"
6780 case "(($ac_try" in
6781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6782 *) ac_try_echo=$ac_try;;
6783 esac
6784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6785 (eval "$ac_compile") 2>conftest.er1
6786 ac_status=$?
6787 grep -v '^ *+' conftest.er1 >conftest.err
6788 rm -f conftest.er1
6789 cat conftest.err >&5
6790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6791 (exit $ac_status); } && {
6792 test -z "$ac_c_werror_flag" ||
6793 test ! -s conftest.err
6794 } && test -s conftest.$ac_objext; then
6795 ac_header_compiler=yes
6796 else
6797 echo "$as_me: failed program was:" >&5
6798 sed 's/^/| /' conftest.$ac_ext >&5
6800 ac_header_compiler=no
6803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6804 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6805 echo "${ECHO_T}$ac_header_compiler" >&6; }
6807 # Is the header present?
6808 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6809 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6810 cat >conftest.$ac_ext <<_ACEOF
6811 /* confdefs.h. */
6812 _ACEOF
6813 cat confdefs.h >>conftest.$ac_ext
6814 cat >>conftest.$ac_ext <<_ACEOF
6815 /* end confdefs.h. */
6816 #include <$ac_header>
6817 _ACEOF
6818 if { (ac_try="$ac_cpp conftest.$ac_ext"
6819 case "(($ac_try" in
6820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6821 *) ac_try_echo=$ac_try;;
6822 esac
6823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6824 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6825 ac_status=$?
6826 grep -v '^ *+' conftest.er1 >conftest.err
6827 rm -f conftest.er1
6828 cat conftest.err >&5
6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); } >/dev/null && {
6831 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6832 test ! -s conftest.err
6833 }; then
6834 ac_header_preproc=yes
6835 else
6836 echo "$as_me: failed program was:" >&5
6837 sed 's/^/| /' conftest.$ac_ext >&5
6839 ac_header_preproc=no
6842 rm -f conftest.err conftest.$ac_ext
6843 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6844 echo "${ECHO_T}$ac_header_preproc" >&6; }
6846 # So? What about this header?
6847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6848 yes:no: )
6849 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6850 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6851 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6852 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6853 ac_header_preproc=yes
6855 no:yes:* )
6856 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6857 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6858 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6859 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6860 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6861 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6862 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6863 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6865 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6866 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6867 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6870 esac
6871 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6873 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6874 echo $ECHO_N "(cached) $ECHO_C" >&6
6875 else
6876 eval "$as_ac_Header=\$ac_header_preproc"
6878 ac_res=`eval echo '${'$as_ac_Header'}'`
6879 { echo "$as_me:$LINENO: result: $ac_res" >&5
6880 echo "${ECHO_T}$ac_res" >&6; }
6883 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6884 cat >>confdefs.h <<_ACEOF
6885 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6886 _ACEOF
6890 done
6893 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6894 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6895 cat >conftest.$ac_ext <<_ACEOF
6896 /* confdefs.h. */
6897 _ACEOF
6898 cat confdefs.h >>conftest.$ac_ext
6899 cat >>conftest.$ac_ext <<_ACEOF
6900 /* end confdefs.h. */
6901 #include <sys/personality.h>
6903 main ()
6905 personality (PER_LINUX32)
6907 return 0;
6909 _ACEOF
6910 rm -f conftest.$ac_objext
6911 if { (ac_try="$ac_compile"
6912 case "(($ac_try" in
6913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6914 *) ac_try_echo=$ac_try;;
6915 esac
6916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6917 (eval "$ac_compile") 2>conftest.er1
6918 ac_status=$?
6919 grep -v '^ *+' conftest.er1 >conftest.err
6920 rm -f conftest.er1
6921 cat conftest.err >&5
6922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923 (exit $ac_status); } && {
6924 test -z "$ac_c_werror_flag" ||
6925 test ! -s conftest.err
6926 } && test -s conftest.$ac_objext; then
6927 emacs_cv_personality_linux32=yes
6928 else
6929 echo "$as_me: failed program was:" >&5
6930 sed 's/^/| /' conftest.$ac_ext >&5
6932 emacs_cv_personality_linux32=no
6935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6936 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6937 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6939 if test $emacs_cv_personality_linux32 = yes; then
6941 cat >>confdefs.h <<\_ACEOF
6942 #define HAVE_PERSONALITY_LINUX32 1
6943 _ACEOF
6948 for ac_header in term.h
6950 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6951 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6954 echo $ECHO_N "(cached) $ECHO_C" >&6
6955 else
6956 cat >conftest.$ac_ext <<_ACEOF
6957 /* confdefs.h. */
6958 _ACEOF
6959 cat confdefs.h >>conftest.$ac_ext
6960 cat >>conftest.$ac_ext <<_ACEOF
6961 /* end confdefs.h. */
6962 #include <$ac_header>
6963 _ACEOF
6964 if { (ac_try="$ac_cpp conftest.$ac_ext"
6965 case "(($ac_try" in
6966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6967 *) ac_try_echo=$ac_try;;
6968 esac
6969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6970 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6971 ac_status=$?
6972 grep -v '^ *+' conftest.er1 >conftest.err
6973 rm -f conftest.er1
6974 cat conftest.err >&5
6975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976 (exit $ac_status); } >/dev/null && {
6977 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6978 test ! -s conftest.err
6979 }; then
6980 eval "$as_ac_Header=yes"
6981 else
6982 echo "$as_me: failed program was:" >&5
6983 sed 's/^/| /' conftest.$ac_ext >&5
6985 eval "$as_ac_Header=no"
6988 rm -f conftest.err conftest.$ac_ext
6990 ac_res=`eval echo '${'$as_ac_Header'}'`
6991 { echo "$as_me:$LINENO: result: $ac_res" >&5
6992 echo "${ECHO_T}$ac_res" >&6; }
6993 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6994 cat >>confdefs.h <<_ACEOF
6995 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6996 _ACEOF
7000 done
7002 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7003 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7004 if test "${ac_cv_header_stdc+set}" = set; then
7005 echo $ECHO_N "(cached) $ECHO_C" >&6
7006 else
7007 cat >conftest.$ac_ext <<_ACEOF
7008 /* confdefs.h. */
7009 _ACEOF
7010 cat confdefs.h >>conftest.$ac_ext
7011 cat >>conftest.$ac_ext <<_ACEOF
7012 /* end confdefs.h. */
7013 #include <stdlib.h>
7014 #include <stdarg.h>
7015 #include <string.h>
7016 #include <float.h>
7019 main ()
7023 return 0;
7025 _ACEOF
7026 rm -f conftest.$ac_objext
7027 if { (ac_try="$ac_compile"
7028 case "(($ac_try" in
7029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7030 *) ac_try_echo=$ac_try;;
7031 esac
7032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7033 (eval "$ac_compile") 2>conftest.er1
7034 ac_status=$?
7035 grep -v '^ *+' conftest.er1 >conftest.err
7036 rm -f conftest.er1
7037 cat conftest.err >&5
7038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039 (exit $ac_status); } && {
7040 test -z "$ac_c_werror_flag" ||
7041 test ! -s conftest.err
7042 } && test -s conftest.$ac_objext; then
7043 ac_cv_header_stdc=yes
7044 else
7045 echo "$as_me: failed program was:" >&5
7046 sed 's/^/| /' conftest.$ac_ext >&5
7048 ac_cv_header_stdc=no
7051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7053 if test $ac_cv_header_stdc = yes; then
7054 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7055 cat >conftest.$ac_ext <<_ACEOF
7056 /* confdefs.h. */
7057 _ACEOF
7058 cat confdefs.h >>conftest.$ac_ext
7059 cat >>conftest.$ac_ext <<_ACEOF
7060 /* end confdefs.h. */
7061 #include <string.h>
7063 _ACEOF
7064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7065 $EGREP "memchr" >/dev/null 2>&1; then
7067 else
7068 ac_cv_header_stdc=no
7070 rm -f conftest*
7074 if test $ac_cv_header_stdc = yes; then
7075 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7076 cat >conftest.$ac_ext <<_ACEOF
7077 /* confdefs.h. */
7078 _ACEOF
7079 cat confdefs.h >>conftest.$ac_ext
7080 cat >>conftest.$ac_ext <<_ACEOF
7081 /* end confdefs.h. */
7082 #include <stdlib.h>
7084 _ACEOF
7085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7086 $EGREP "free" >/dev/null 2>&1; then
7088 else
7089 ac_cv_header_stdc=no
7091 rm -f conftest*
7095 if test $ac_cv_header_stdc = yes; then
7096 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7097 if test "$cross_compiling" = yes; then
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 #include <ctype.h>
7107 #include <stdlib.h>
7108 #if ((' ' & 0x0FF) == 0x020)
7109 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7110 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7111 #else
7112 # define ISLOWER(c) \
7113 (('a' <= (c) && (c) <= 'i') \
7114 || ('j' <= (c) && (c) <= 'r') \
7115 || ('s' <= (c) && (c) <= 'z'))
7116 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7117 #endif
7119 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7121 main ()
7123 int i;
7124 for (i = 0; i < 256; i++)
7125 if (XOR (islower (i), ISLOWER (i))
7126 || toupper (i) != TOUPPER (i))
7127 return 2;
7128 return 0;
7130 _ACEOF
7131 rm -f conftest$ac_exeext
7132 if { (ac_try="$ac_link"
7133 case "(($ac_try" in
7134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7135 *) ac_try_echo=$ac_try;;
7136 esac
7137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7138 (eval "$ac_link") 2>&5
7139 ac_status=$?
7140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7142 { (case "(($ac_try" in
7143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7144 *) ac_try_echo=$ac_try;;
7145 esac
7146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7147 (eval "$ac_try") 2>&5
7148 ac_status=$?
7149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150 (exit $ac_status); }; }; then
7152 else
7153 echo "$as_me: program exited with status $ac_status" >&5
7154 echo "$as_me: failed program was:" >&5
7155 sed 's/^/| /' conftest.$ac_ext >&5
7157 ( exit $ac_status )
7158 ac_cv_header_stdc=no
7160 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7166 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7167 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7168 if test $ac_cv_header_stdc = yes; then
7170 cat >>confdefs.h <<\_ACEOF
7171 #define STDC_HEADERS 1
7172 _ACEOF
7176 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7177 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
7178 if test "${ac_cv_header_time+set}" = set; then
7179 echo $ECHO_N "(cached) $ECHO_C" >&6
7180 else
7181 cat >conftest.$ac_ext <<_ACEOF
7182 /* confdefs.h. */
7183 _ACEOF
7184 cat confdefs.h >>conftest.$ac_ext
7185 cat >>conftest.$ac_ext <<_ACEOF
7186 /* end confdefs.h. */
7187 #include <sys/types.h>
7188 #include <sys/time.h>
7189 #include <time.h>
7192 main ()
7194 if ((struct tm *) 0)
7195 return 0;
7197 return 0;
7199 _ACEOF
7200 rm -f conftest.$ac_objext
7201 if { (ac_try="$ac_compile"
7202 case "(($ac_try" in
7203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7204 *) ac_try_echo=$ac_try;;
7205 esac
7206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7207 (eval "$ac_compile") 2>conftest.er1
7208 ac_status=$?
7209 grep -v '^ *+' conftest.er1 >conftest.err
7210 rm -f conftest.er1
7211 cat conftest.err >&5
7212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7213 (exit $ac_status); } && {
7214 test -z "$ac_c_werror_flag" ||
7215 test ! -s conftest.err
7216 } && test -s conftest.$ac_objext; then
7217 ac_cv_header_time=yes
7218 else
7219 echo "$as_me: failed program was:" >&5
7220 sed 's/^/| /' conftest.$ac_ext >&5
7222 ac_cv_header_time=no
7225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7227 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7228 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7229 if test $ac_cv_header_time = yes; then
7231 cat >>confdefs.h <<\_ACEOF
7232 #define TIME_WITH_SYS_TIME 1
7233 _ACEOF
7237 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7238 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7239 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7240 echo $ECHO_N "(cached) $ECHO_C" >&6
7241 else
7242 cat >conftest.$ac_ext <<_ACEOF
7243 /* confdefs.h. */
7244 _ACEOF
7245 cat confdefs.h >>conftest.$ac_ext
7246 cat >>conftest.$ac_ext <<_ACEOF
7247 /* end confdefs.h. */
7248 $ac_includes_default
7250 main ()
7252 #ifndef sys_siglist
7253 (void) sys_siglist;
7254 #endif
7257 return 0;
7259 _ACEOF
7260 rm -f conftest.$ac_objext
7261 if { (ac_try="$ac_compile"
7262 case "(($ac_try" in
7263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7264 *) ac_try_echo=$ac_try;;
7265 esac
7266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7267 (eval "$ac_compile") 2>conftest.er1
7268 ac_status=$?
7269 grep -v '^ *+' conftest.er1 >conftest.err
7270 rm -f conftest.er1
7271 cat conftest.err >&5
7272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7273 (exit $ac_status); } && {
7274 test -z "$ac_c_werror_flag" ||
7275 test ! -s conftest.err
7276 } && test -s conftest.$ac_objext; then
7277 ac_cv_have_decl_sys_siglist=yes
7278 else
7279 echo "$as_me: failed program was:" >&5
7280 sed 's/^/| /' conftest.$ac_ext >&5
7282 ac_cv_have_decl_sys_siglist=no
7285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7287 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7288 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7289 if test $ac_cv_have_decl_sys_siglist = yes; then
7291 cat >>confdefs.h <<_ACEOF
7292 #define HAVE_DECL_SYS_SIGLIST 1
7293 _ACEOF
7296 else
7297 cat >>confdefs.h <<_ACEOF
7298 #define HAVE_DECL_SYS_SIGLIST 0
7299 _ACEOF
7305 if test $ac_cv_have_decl_sys_siglist != yes; then
7306 # For Tru64, at least:
7307 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7308 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7309 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7310 echo $ECHO_N "(cached) $ECHO_C" >&6
7311 else
7312 cat >conftest.$ac_ext <<_ACEOF
7313 /* confdefs.h. */
7314 _ACEOF
7315 cat confdefs.h >>conftest.$ac_ext
7316 cat >>conftest.$ac_ext <<_ACEOF
7317 /* end confdefs.h. */
7318 $ac_includes_default
7320 main ()
7322 #ifndef __sys_siglist
7323 (void) __sys_siglist;
7324 #endif
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_have_decl___sys_siglist=yes
7348 else
7349 echo "$as_me: failed program was:" >&5
7350 sed 's/^/| /' conftest.$ac_ext >&5
7352 ac_cv_have_decl___sys_siglist=no
7355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7357 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7358 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7359 if test $ac_cv_have_decl___sys_siglist = yes; then
7361 cat >>confdefs.h <<_ACEOF
7362 #define HAVE_DECL___SYS_SIGLIST 1
7363 _ACEOF
7366 else
7367 cat >>confdefs.h <<_ACEOF
7368 #define HAVE_DECL___SYS_SIGLIST 0
7369 _ACEOF
7375 if test $ac_cv_have_decl___sys_siglist = yes; then
7377 cat >>confdefs.h <<\_ACEOF
7378 #define sys_siglist __sys_siglist
7379 _ACEOF
7383 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7384 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7385 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7386 echo $ECHO_N "(cached) $ECHO_C" >&6
7387 else
7388 cat >conftest.$ac_ext <<_ACEOF
7389 /* confdefs.h. */
7390 _ACEOF
7391 cat confdefs.h >>conftest.$ac_ext
7392 cat >>conftest.$ac_ext <<_ACEOF
7393 /* end confdefs.h. */
7394 #include <sys/types.h>
7395 #include <sys/wait.h>
7396 #ifndef WEXITSTATUS
7397 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7398 #endif
7399 #ifndef WIFEXITED
7400 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7401 #endif
7404 main ()
7406 int s;
7407 wait (&s);
7408 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7410 return 0;
7412 _ACEOF
7413 rm -f conftest.$ac_objext
7414 if { (ac_try="$ac_compile"
7415 case "(($ac_try" in
7416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7417 *) ac_try_echo=$ac_try;;
7418 esac
7419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7420 (eval "$ac_compile") 2>conftest.er1
7421 ac_status=$?
7422 grep -v '^ *+' conftest.er1 >conftest.err
7423 rm -f conftest.er1
7424 cat conftest.err >&5
7425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426 (exit $ac_status); } && {
7427 test -z "$ac_c_werror_flag" ||
7428 test ! -s conftest.err
7429 } && test -s conftest.$ac_objext; then
7430 ac_cv_header_sys_wait_h=yes
7431 else
7432 echo "$as_me: failed program was:" >&5
7433 sed 's/^/| /' conftest.$ac_ext >&5
7435 ac_cv_header_sys_wait_h=no
7438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7440 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7441 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7442 if test $ac_cv_header_sys_wait_h = yes; then
7444 cat >>confdefs.h <<\_ACEOF
7445 #define HAVE_SYS_WAIT_H 1
7446 _ACEOF
7451 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7452 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7453 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7454 echo $ECHO_N "(cached) $ECHO_C" >&6
7455 else
7456 cat >conftest.$ac_ext <<_ACEOF
7457 /* confdefs.h. */
7458 _ACEOF
7459 cat confdefs.h >>conftest.$ac_ext
7460 cat >>conftest.$ac_ext <<_ACEOF
7461 /* end confdefs.h. */
7462 #ifdef TIME_WITH_SYS_TIME
7463 #include <sys/time.h>
7464 #include <time.h>
7465 #else
7466 #ifdef HAVE_SYS_TIME_H
7467 #include <sys/time.h>
7468 #else
7469 #include <time.h>
7470 #endif
7471 #endif
7472 #ifdef HAVE_UTIME_H
7473 #include <utime.h>
7474 #endif
7476 main ()
7478 static struct utimbuf x; x.actime = x.modtime;
7480 return 0;
7482 _ACEOF
7483 rm -f conftest.$ac_objext
7484 if { (ac_try="$ac_compile"
7485 case "(($ac_try" in
7486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7487 *) ac_try_echo=$ac_try;;
7488 esac
7489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7490 (eval "$ac_compile") 2>conftest.er1
7491 ac_status=$?
7492 grep -v '^ *+' conftest.er1 >conftest.err
7493 rm -f conftest.er1
7494 cat conftest.err >&5
7495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496 (exit $ac_status); } && {
7497 test -z "$ac_c_werror_flag" ||
7498 test ! -s conftest.err
7499 } && test -s conftest.$ac_objext; then
7500 emacs_cv_struct_utimbuf=yes
7501 else
7502 echo "$as_me: failed program was:" >&5
7503 sed 's/^/| /' conftest.$ac_ext >&5
7505 emacs_cv_struct_utimbuf=no
7508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7510 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7511 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7512 if test $emacs_cv_struct_utimbuf = yes; then
7514 cat >>confdefs.h <<\_ACEOF
7515 #define HAVE_STRUCT_UTIMBUF 1
7516 _ACEOF
7520 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7521 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7522 if test "${ac_cv_type_signal+set}" = set; then
7523 echo $ECHO_N "(cached) $ECHO_C" >&6
7524 else
7525 cat >conftest.$ac_ext <<_ACEOF
7526 /* confdefs.h. */
7527 _ACEOF
7528 cat confdefs.h >>conftest.$ac_ext
7529 cat >>conftest.$ac_ext <<_ACEOF
7530 /* end confdefs.h. */
7531 #include <sys/types.h>
7532 #include <signal.h>
7535 main ()
7537 return *(signal (0, 0)) (0) == 1;
7539 return 0;
7541 _ACEOF
7542 rm -f conftest.$ac_objext
7543 if { (ac_try="$ac_compile"
7544 case "(($ac_try" in
7545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7546 *) ac_try_echo=$ac_try;;
7547 esac
7548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7549 (eval "$ac_compile") 2>conftest.er1
7550 ac_status=$?
7551 grep -v '^ *+' conftest.er1 >conftest.err
7552 rm -f conftest.er1
7553 cat conftest.err >&5
7554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555 (exit $ac_status); } && {
7556 test -z "$ac_c_werror_flag" ||
7557 test ! -s conftest.err
7558 } && test -s conftest.$ac_objext; then
7559 ac_cv_type_signal=int
7560 else
7561 echo "$as_me: failed program was:" >&5
7562 sed 's/^/| /' conftest.$ac_ext >&5
7564 ac_cv_type_signal=void
7567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7569 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7570 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7572 cat >>confdefs.h <<_ACEOF
7573 #define RETSIGTYPE $ac_cv_type_signal
7574 _ACEOF
7578 { echo "$as_me:$LINENO: checking for speed_t" >&5
7579 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7580 if test "${emacs_cv_speed_t+set}" = set; then
7581 echo $ECHO_N "(cached) $ECHO_C" >&6
7582 else
7583 cat >conftest.$ac_ext <<_ACEOF
7584 /* confdefs.h. */
7585 _ACEOF
7586 cat confdefs.h >>conftest.$ac_ext
7587 cat >>conftest.$ac_ext <<_ACEOF
7588 /* end confdefs.h. */
7589 #include <termios.h>
7591 main ()
7593 speed_t x = 1;
7595 return 0;
7597 _ACEOF
7598 rm -f conftest.$ac_objext
7599 if { (ac_try="$ac_compile"
7600 case "(($ac_try" in
7601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7602 *) ac_try_echo=$ac_try;;
7603 esac
7604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7605 (eval "$ac_compile") 2>conftest.er1
7606 ac_status=$?
7607 grep -v '^ *+' conftest.er1 >conftest.err
7608 rm -f conftest.er1
7609 cat conftest.err >&5
7610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611 (exit $ac_status); } && {
7612 test -z "$ac_c_werror_flag" ||
7613 test ! -s conftest.err
7614 } && test -s conftest.$ac_objext; then
7615 emacs_cv_speed_t=yes
7616 else
7617 echo "$as_me: failed program was:" >&5
7618 sed 's/^/| /' conftest.$ac_ext >&5
7620 emacs_cv_speed_t=no
7623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7625 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7626 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7627 if test $emacs_cv_speed_t = yes; then
7629 cat >>confdefs.h <<\_ACEOF
7630 #define HAVE_SPEED_T 1
7631 _ACEOF
7635 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7636 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7637 if test "${emacs_cv_struct_timeval+set}" = set; then
7638 echo $ECHO_N "(cached) $ECHO_C" >&6
7639 else
7640 cat >conftest.$ac_ext <<_ACEOF
7641 /* confdefs.h. */
7642 _ACEOF
7643 cat confdefs.h >>conftest.$ac_ext
7644 cat >>conftest.$ac_ext <<_ACEOF
7645 /* end confdefs.h. */
7646 #ifdef TIME_WITH_SYS_TIME
7647 #include <sys/time.h>
7648 #include <time.h>
7649 #else
7650 #ifdef HAVE_SYS_TIME_H
7651 #include <sys/time.h>
7652 #else
7653 #include <time.h>
7654 #endif
7655 #endif
7657 main ()
7659 static struct timeval x; x.tv_sec = x.tv_usec;
7661 return 0;
7663 _ACEOF
7664 rm -f conftest.$ac_objext
7665 if { (ac_try="$ac_compile"
7666 case "(($ac_try" in
7667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7668 *) ac_try_echo=$ac_try;;
7669 esac
7670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7671 (eval "$ac_compile") 2>conftest.er1
7672 ac_status=$?
7673 grep -v '^ *+' conftest.er1 >conftest.err
7674 rm -f conftest.er1
7675 cat conftest.err >&5
7676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677 (exit $ac_status); } && {
7678 test -z "$ac_c_werror_flag" ||
7679 test ! -s conftest.err
7680 } && test -s conftest.$ac_objext; then
7681 emacs_cv_struct_timeval=yes
7682 else
7683 echo "$as_me: failed program was:" >&5
7684 sed 's/^/| /' conftest.$ac_ext >&5
7686 emacs_cv_struct_timeval=no
7689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7691 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7692 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7693 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7694 if test $emacs_cv_struct_timeval = yes; then
7696 cat >>confdefs.h <<\_ACEOF
7697 #define HAVE_TIMEVAL 1
7698 _ACEOF
7702 { echo "$as_me:$LINENO: checking for struct exception" >&5
7703 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7704 if test "${emacs_cv_struct_exception+set}" = set; then
7705 echo $ECHO_N "(cached) $ECHO_C" >&6
7706 else
7707 cat >conftest.$ac_ext <<_ACEOF
7708 /* confdefs.h. */
7709 _ACEOF
7710 cat confdefs.h >>conftest.$ac_ext
7711 cat >>conftest.$ac_ext <<_ACEOF
7712 /* end confdefs.h. */
7713 #include <math.h>
7715 main ()
7717 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7719 return 0;
7721 _ACEOF
7722 rm -f conftest.$ac_objext
7723 if { (ac_try="$ac_compile"
7724 case "(($ac_try" in
7725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7726 *) ac_try_echo=$ac_try;;
7727 esac
7728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7729 (eval "$ac_compile") 2>conftest.er1
7730 ac_status=$?
7731 grep -v '^ *+' conftest.er1 >conftest.err
7732 rm -f conftest.er1
7733 cat conftest.err >&5
7734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735 (exit $ac_status); } && {
7736 test -z "$ac_c_werror_flag" ||
7737 test ! -s conftest.err
7738 } && test -s conftest.$ac_objext; then
7739 emacs_cv_struct_exception=yes
7740 else
7741 echo "$as_me: failed program was:" >&5
7742 sed 's/^/| /' conftest.$ac_ext >&5
7744 emacs_cv_struct_exception=no
7747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7749 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7750 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7751 HAVE_EXCEPTION=$emacs_cv_struct_exception
7752 if test $emacs_cv_struct_exception != yes; then
7754 cat >>confdefs.h <<\_ACEOF
7755 #define NO_MATHERR 1
7756 _ACEOF
7761 for ac_header in sys/socket.h
7763 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7765 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7768 echo $ECHO_N "(cached) $ECHO_C" >&6
7770 ac_res=`eval echo '${'$as_ac_Header'}'`
7771 { echo "$as_me:$LINENO: result: $ac_res" >&5
7772 echo "${ECHO_T}$ac_res" >&6; }
7773 else
7774 # Is the header compilable?
7775 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7776 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7777 cat >conftest.$ac_ext <<_ACEOF
7778 /* confdefs.h. */
7779 _ACEOF
7780 cat confdefs.h >>conftest.$ac_ext
7781 cat >>conftest.$ac_ext <<_ACEOF
7782 /* end confdefs.h. */
7783 $ac_includes_default
7784 #include <$ac_header>
7785 _ACEOF
7786 rm -f conftest.$ac_objext
7787 if { (ac_try="$ac_compile"
7788 case "(($ac_try" in
7789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7790 *) ac_try_echo=$ac_try;;
7791 esac
7792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7793 (eval "$ac_compile") 2>conftest.er1
7794 ac_status=$?
7795 grep -v '^ *+' conftest.er1 >conftest.err
7796 rm -f conftest.er1
7797 cat conftest.err >&5
7798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799 (exit $ac_status); } && {
7800 test -z "$ac_c_werror_flag" ||
7801 test ! -s conftest.err
7802 } && test -s conftest.$ac_objext; then
7803 ac_header_compiler=yes
7804 else
7805 echo "$as_me: failed program was:" >&5
7806 sed 's/^/| /' conftest.$ac_ext >&5
7808 ac_header_compiler=no
7811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7812 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7813 echo "${ECHO_T}$ac_header_compiler" >&6; }
7815 # Is the header present?
7816 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7817 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7818 cat >conftest.$ac_ext <<_ACEOF
7819 /* confdefs.h. */
7820 _ACEOF
7821 cat confdefs.h >>conftest.$ac_ext
7822 cat >>conftest.$ac_ext <<_ACEOF
7823 /* end confdefs.h. */
7824 #include <$ac_header>
7825 _ACEOF
7826 if { (ac_try="$ac_cpp conftest.$ac_ext"
7827 case "(($ac_try" in
7828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7829 *) ac_try_echo=$ac_try;;
7830 esac
7831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7832 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7833 ac_status=$?
7834 grep -v '^ *+' conftest.er1 >conftest.err
7835 rm -f conftest.er1
7836 cat conftest.err >&5
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); } >/dev/null && {
7839 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7840 test ! -s conftest.err
7841 }; then
7842 ac_header_preproc=yes
7843 else
7844 echo "$as_me: failed program was:" >&5
7845 sed 's/^/| /' conftest.$ac_ext >&5
7847 ac_header_preproc=no
7850 rm -f conftest.err conftest.$ac_ext
7851 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7852 echo "${ECHO_T}$ac_header_preproc" >&6; }
7854 # So? What about this header?
7855 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7856 yes:no: )
7857 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7858 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7860 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7861 ac_header_preproc=yes
7863 no:yes:* )
7864 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7865 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7866 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7867 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7868 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7869 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7870 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7871 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7873 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7874 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7875 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7878 esac
7879 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7882 echo $ECHO_N "(cached) $ECHO_C" >&6
7883 else
7884 eval "$as_ac_Header=\$ac_header_preproc"
7886 ac_res=`eval echo '${'$as_ac_Header'}'`
7887 { echo "$as_me:$LINENO: result: $ac_res" >&5
7888 echo "${ECHO_T}$ac_res" >&6; }
7891 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7892 cat >>confdefs.h <<_ACEOF
7893 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7894 _ACEOF
7898 done
7901 for ac_header in net/if.h
7903 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7904 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7907 echo $ECHO_N "(cached) $ECHO_C" >&6
7908 else
7909 cat >conftest.$ac_ext <<_ACEOF
7910 /* confdefs.h. */
7911 _ACEOF
7912 cat confdefs.h >>conftest.$ac_ext
7913 cat >>conftest.$ac_ext <<_ACEOF
7914 /* end confdefs.h. */
7915 $ac_includes_default
7916 #if HAVE_SYS_SOCKET_H
7917 #include <sys/socket.h>
7918 #endif
7920 #include <$ac_header>
7921 _ACEOF
7922 rm -f conftest.$ac_objext
7923 if { (ac_try="$ac_compile"
7924 case "(($ac_try" in
7925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7926 *) ac_try_echo=$ac_try;;
7927 esac
7928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7929 (eval "$ac_compile") 2>conftest.er1
7930 ac_status=$?
7931 grep -v '^ *+' conftest.er1 >conftest.err
7932 rm -f conftest.er1
7933 cat conftest.err >&5
7934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935 (exit $ac_status); } && {
7936 test -z "$ac_c_werror_flag" ||
7937 test ! -s conftest.err
7938 } && test -s conftest.$ac_objext; then
7939 eval "$as_ac_Header=yes"
7940 else
7941 echo "$as_me: failed program was:" >&5
7942 sed 's/^/| /' conftest.$ac_ext >&5
7944 eval "$as_ac_Header=no"
7947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7949 ac_res=`eval echo '${'$as_ac_Header'}'`
7950 { echo "$as_me:$LINENO: result: $ac_res" >&5
7951 echo "${ECHO_T}$ac_res" >&6; }
7952 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7953 cat >>confdefs.h <<_ACEOF
7954 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7955 _ACEOF
7959 done
7962 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7963 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7964 if test "${ac_cv_struct_tm+set}" = set; then
7965 echo $ECHO_N "(cached) $ECHO_C" >&6
7966 else
7967 cat >conftest.$ac_ext <<_ACEOF
7968 /* confdefs.h. */
7969 _ACEOF
7970 cat confdefs.h >>conftest.$ac_ext
7971 cat >>conftest.$ac_ext <<_ACEOF
7972 /* end confdefs.h. */
7973 #include <sys/types.h>
7974 #include <time.h>
7977 main ()
7979 struct tm tm;
7980 int *p = &tm.tm_sec;
7981 return !p;
7983 return 0;
7985 _ACEOF
7986 rm -f conftest.$ac_objext
7987 if { (ac_try="$ac_compile"
7988 case "(($ac_try" in
7989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7990 *) ac_try_echo=$ac_try;;
7991 esac
7992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7993 (eval "$ac_compile") 2>conftest.er1
7994 ac_status=$?
7995 grep -v '^ *+' conftest.er1 >conftest.err
7996 rm -f conftest.er1
7997 cat conftest.err >&5
7998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999 (exit $ac_status); } && {
8000 test -z "$ac_c_werror_flag" ||
8001 test ! -s conftest.err
8002 } && test -s conftest.$ac_objext; then
8003 ac_cv_struct_tm=time.h
8004 else
8005 echo "$as_me: failed program was:" >&5
8006 sed 's/^/| /' conftest.$ac_ext >&5
8008 ac_cv_struct_tm=sys/time.h
8011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8013 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8014 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
8015 if test $ac_cv_struct_tm = sys/time.h; then
8017 cat >>confdefs.h <<\_ACEOF
8018 #define TM_IN_SYS_TIME 1
8019 _ACEOF
8023 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8024 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
8025 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8026 echo $ECHO_N "(cached) $ECHO_C" >&6
8027 else
8028 cat >conftest.$ac_ext <<_ACEOF
8029 /* confdefs.h. */
8030 _ACEOF
8031 cat confdefs.h >>conftest.$ac_ext
8032 cat >>conftest.$ac_ext <<_ACEOF
8033 /* end confdefs.h. */
8034 #include <sys/types.h>
8035 #include <$ac_cv_struct_tm>
8039 main ()
8041 static struct tm ac_aggr;
8042 if (ac_aggr.tm_zone)
8043 return 0;
8045 return 0;
8047 _ACEOF
8048 rm -f conftest.$ac_objext
8049 if { (ac_try="$ac_compile"
8050 case "(($ac_try" in
8051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8052 *) ac_try_echo=$ac_try;;
8053 esac
8054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8055 (eval "$ac_compile") 2>conftest.er1
8056 ac_status=$?
8057 grep -v '^ *+' conftest.er1 >conftest.err
8058 rm -f conftest.er1
8059 cat conftest.err >&5
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); } && {
8062 test -z "$ac_c_werror_flag" ||
8063 test ! -s conftest.err
8064 } && test -s conftest.$ac_objext; then
8065 ac_cv_member_struct_tm_tm_zone=yes
8066 else
8067 echo "$as_me: failed program was:" >&5
8068 sed 's/^/| /' conftest.$ac_ext >&5
8070 cat >conftest.$ac_ext <<_ACEOF
8071 /* confdefs.h. */
8072 _ACEOF
8073 cat confdefs.h >>conftest.$ac_ext
8074 cat >>conftest.$ac_ext <<_ACEOF
8075 /* end confdefs.h. */
8076 #include <sys/types.h>
8077 #include <$ac_cv_struct_tm>
8081 main ()
8083 static struct tm ac_aggr;
8084 if (sizeof ac_aggr.tm_zone)
8085 return 0;
8087 return 0;
8089 _ACEOF
8090 rm -f conftest.$ac_objext
8091 if { (ac_try="$ac_compile"
8092 case "(($ac_try" in
8093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8094 *) ac_try_echo=$ac_try;;
8095 esac
8096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8097 (eval "$ac_compile") 2>conftest.er1
8098 ac_status=$?
8099 grep -v '^ *+' conftest.er1 >conftest.err
8100 rm -f conftest.er1
8101 cat conftest.err >&5
8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); } && {
8104 test -z "$ac_c_werror_flag" ||
8105 test ! -s conftest.err
8106 } && test -s conftest.$ac_objext; then
8107 ac_cv_member_struct_tm_tm_zone=yes
8108 else
8109 echo "$as_me: failed program was:" >&5
8110 sed 's/^/| /' conftest.$ac_ext >&5
8112 ac_cv_member_struct_tm_tm_zone=no
8115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8120 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8121 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
8122 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8124 cat >>confdefs.h <<_ACEOF
8125 #define HAVE_STRUCT_TM_TM_ZONE 1
8126 _ACEOF
8131 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8133 cat >>confdefs.h <<\_ACEOF
8134 #define HAVE_TM_ZONE 1
8135 _ACEOF
8137 else
8138 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8139 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
8140 if test "${ac_cv_have_decl_tzname+set}" = set; then
8141 echo $ECHO_N "(cached) $ECHO_C" >&6
8142 else
8143 cat >conftest.$ac_ext <<_ACEOF
8144 /* confdefs.h. */
8145 _ACEOF
8146 cat confdefs.h >>conftest.$ac_ext
8147 cat >>conftest.$ac_ext <<_ACEOF
8148 /* end confdefs.h. */
8149 #include <time.h>
8152 main ()
8154 #ifndef tzname
8155 (void) tzname;
8156 #endif
8159 return 0;
8161 _ACEOF
8162 rm -f conftest.$ac_objext
8163 if { (ac_try="$ac_compile"
8164 case "(($ac_try" in
8165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8166 *) ac_try_echo=$ac_try;;
8167 esac
8168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8169 (eval "$ac_compile") 2>conftest.er1
8170 ac_status=$?
8171 grep -v '^ *+' conftest.er1 >conftest.err
8172 rm -f conftest.er1
8173 cat conftest.err >&5
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); } && {
8176 test -z "$ac_c_werror_flag" ||
8177 test ! -s conftest.err
8178 } && test -s conftest.$ac_objext; then
8179 ac_cv_have_decl_tzname=yes
8180 else
8181 echo "$as_me: failed program was:" >&5
8182 sed 's/^/| /' conftest.$ac_ext >&5
8184 ac_cv_have_decl_tzname=no
8187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8189 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8190 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
8191 if test $ac_cv_have_decl_tzname = yes; then
8193 cat >>confdefs.h <<_ACEOF
8194 #define HAVE_DECL_TZNAME 1
8195 _ACEOF
8198 else
8199 cat >>confdefs.h <<_ACEOF
8200 #define HAVE_DECL_TZNAME 0
8201 _ACEOF
8207 { echo "$as_me:$LINENO: checking for tzname" >&5
8208 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
8209 if test "${ac_cv_var_tzname+set}" = set; then
8210 echo $ECHO_N "(cached) $ECHO_C" >&6
8211 else
8212 cat >conftest.$ac_ext <<_ACEOF
8213 /* confdefs.h. */
8214 _ACEOF
8215 cat confdefs.h >>conftest.$ac_ext
8216 cat >>conftest.$ac_ext <<_ACEOF
8217 /* end confdefs.h. */
8218 #include <time.h>
8219 #if !HAVE_DECL_TZNAME
8220 extern char *tzname[];
8221 #endif
8224 main ()
8226 return tzname[0][0];
8228 return 0;
8230 _ACEOF
8231 rm -f conftest.$ac_objext conftest$ac_exeext
8232 if { (ac_try="$ac_link"
8233 case "(($ac_try" in
8234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8235 *) ac_try_echo=$ac_try;;
8236 esac
8237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8238 (eval "$ac_link") 2>conftest.er1
8239 ac_status=$?
8240 grep -v '^ *+' conftest.er1 >conftest.err
8241 rm -f conftest.er1
8242 cat conftest.err >&5
8243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244 (exit $ac_status); } && {
8245 test -z "$ac_c_werror_flag" ||
8246 test ! -s conftest.err
8247 } && test -s conftest$ac_exeext &&
8248 $as_test_x conftest$ac_exeext; then
8249 ac_cv_var_tzname=yes
8250 else
8251 echo "$as_me: failed program was:" >&5
8252 sed 's/^/| /' conftest.$ac_ext >&5
8254 ac_cv_var_tzname=no
8257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8258 conftest$ac_exeext conftest.$ac_ext
8260 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8261 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8262 if test $ac_cv_var_tzname = yes; then
8264 cat >>confdefs.h <<\_ACEOF
8265 #define HAVE_TZNAME 1
8266 _ACEOF
8271 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8272 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8273 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8274 echo $ECHO_N "(cached) $ECHO_C" >&6
8275 else
8276 cat >conftest.$ac_ext <<_ACEOF
8277 /* confdefs.h. */
8278 _ACEOF
8279 cat confdefs.h >>conftest.$ac_ext
8280 cat >>conftest.$ac_ext <<_ACEOF
8281 /* end confdefs.h. */
8282 #include <time.h>
8285 main ()
8287 static struct tm ac_aggr;
8288 if (ac_aggr.tm_gmtoff)
8289 return 0;
8291 return 0;
8293 _ACEOF
8294 rm -f conftest.$ac_objext
8295 if { (ac_try="$ac_compile"
8296 case "(($ac_try" in
8297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8298 *) ac_try_echo=$ac_try;;
8299 esac
8300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8301 (eval "$ac_compile") 2>conftest.er1
8302 ac_status=$?
8303 grep -v '^ *+' conftest.er1 >conftest.err
8304 rm -f conftest.er1
8305 cat conftest.err >&5
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); } && {
8308 test -z "$ac_c_werror_flag" ||
8309 test ! -s conftest.err
8310 } && test -s conftest.$ac_objext; then
8311 ac_cv_member_struct_tm_tm_gmtoff=yes
8312 else
8313 echo "$as_me: failed program was:" >&5
8314 sed 's/^/| /' conftest.$ac_ext >&5
8316 cat >conftest.$ac_ext <<_ACEOF
8317 /* confdefs.h. */
8318 _ACEOF
8319 cat confdefs.h >>conftest.$ac_ext
8320 cat >>conftest.$ac_ext <<_ACEOF
8321 /* end confdefs.h. */
8322 #include <time.h>
8325 main ()
8327 static struct tm ac_aggr;
8328 if (sizeof ac_aggr.tm_gmtoff)
8329 return 0;
8331 return 0;
8333 _ACEOF
8334 rm -f conftest.$ac_objext
8335 if { (ac_try="$ac_compile"
8336 case "(($ac_try" in
8337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8338 *) ac_try_echo=$ac_try;;
8339 esac
8340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8341 (eval "$ac_compile") 2>conftest.er1
8342 ac_status=$?
8343 grep -v '^ *+' conftest.er1 >conftest.err
8344 rm -f conftest.er1
8345 cat conftest.err >&5
8346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347 (exit $ac_status); } && {
8348 test -z "$ac_c_werror_flag" ||
8349 test ! -s conftest.err
8350 } && test -s conftest.$ac_objext; then
8351 ac_cv_member_struct_tm_tm_gmtoff=yes
8352 else
8353 echo "$as_me: failed program was:" >&5
8354 sed 's/^/| /' conftest.$ac_ext >&5
8356 ac_cv_member_struct_tm_tm_gmtoff=no
8359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8364 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8365 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8366 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8368 cat >>confdefs.h <<\_ACEOF
8369 #define HAVE_TM_GMTOFF 1
8370 _ACEOF
8374 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8375 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8376 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8377 echo $ECHO_N "(cached) $ECHO_C" >&6
8378 else
8379 cat >conftest.$ac_ext <<_ACEOF
8380 /* confdefs.h. */
8381 _ACEOF
8382 cat confdefs.h >>conftest.$ac_ext
8383 cat >>conftest.$ac_ext <<_ACEOF
8384 /* end confdefs.h. */
8385 $ac_includes_default
8386 #if HAVE_SYS_SOCKET_H
8387 #include <sys/socket.h>
8388 #endif
8389 #if HAVE_NET_IF_H
8390 #include <net/if.h>
8391 #endif
8394 main ()
8396 static struct ifreq ac_aggr;
8397 if (ac_aggr.ifr_flags)
8398 return 0;
8400 return 0;
8402 _ACEOF
8403 rm -f conftest.$ac_objext
8404 if { (ac_try="$ac_compile"
8405 case "(($ac_try" in
8406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8407 *) ac_try_echo=$ac_try;;
8408 esac
8409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8410 (eval "$ac_compile") 2>conftest.er1
8411 ac_status=$?
8412 grep -v '^ *+' conftest.er1 >conftest.err
8413 rm -f conftest.er1
8414 cat conftest.err >&5
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); } && {
8417 test -z "$ac_c_werror_flag" ||
8418 test ! -s conftest.err
8419 } && test -s conftest.$ac_objext; then
8420 ac_cv_member_struct_ifreq_ifr_flags=yes
8421 else
8422 echo "$as_me: failed program was:" >&5
8423 sed 's/^/| /' conftest.$ac_ext >&5
8425 cat >conftest.$ac_ext <<_ACEOF
8426 /* confdefs.h. */
8427 _ACEOF
8428 cat confdefs.h >>conftest.$ac_ext
8429 cat >>conftest.$ac_ext <<_ACEOF
8430 /* end confdefs.h. */
8431 $ac_includes_default
8432 #if HAVE_SYS_SOCKET_H
8433 #include <sys/socket.h>
8434 #endif
8435 #if HAVE_NET_IF_H
8436 #include <net/if.h>
8437 #endif
8440 main ()
8442 static struct ifreq ac_aggr;
8443 if (sizeof ac_aggr.ifr_flags)
8444 return 0;
8446 return 0;
8448 _ACEOF
8449 rm -f conftest.$ac_objext
8450 if { (ac_try="$ac_compile"
8451 case "(($ac_try" in
8452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8453 *) ac_try_echo=$ac_try;;
8454 esac
8455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8456 (eval "$ac_compile") 2>conftest.er1
8457 ac_status=$?
8458 grep -v '^ *+' conftest.er1 >conftest.err
8459 rm -f conftest.er1
8460 cat conftest.err >&5
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); } && {
8463 test -z "$ac_c_werror_flag" ||
8464 test ! -s conftest.err
8465 } && test -s conftest.$ac_objext; then
8466 ac_cv_member_struct_ifreq_ifr_flags=yes
8467 else
8468 echo "$as_me: failed program was:" >&5
8469 sed 's/^/| /' conftest.$ac_ext >&5
8471 ac_cv_member_struct_ifreq_ifr_flags=no
8474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8479 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8480 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8481 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8483 cat >>confdefs.h <<_ACEOF
8484 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8485 _ACEOF
8489 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8490 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8491 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8492 echo $ECHO_N "(cached) $ECHO_C" >&6
8493 else
8494 cat >conftest.$ac_ext <<_ACEOF
8495 /* confdefs.h. */
8496 _ACEOF
8497 cat confdefs.h >>conftest.$ac_ext
8498 cat >>conftest.$ac_ext <<_ACEOF
8499 /* end confdefs.h. */
8500 $ac_includes_default
8501 #if HAVE_SYS_SOCKET_H
8502 #include <sys/socket.h>
8503 #endif
8504 #if HAVE_NET_IF_H
8505 #include <net/if.h>
8506 #endif
8509 main ()
8511 static struct ifreq ac_aggr;
8512 if (ac_aggr.ifr_hwaddr)
8513 return 0;
8515 return 0;
8517 _ACEOF
8518 rm -f conftest.$ac_objext
8519 if { (ac_try="$ac_compile"
8520 case "(($ac_try" in
8521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8522 *) ac_try_echo=$ac_try;;
8523 esac
8524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8525 (eval "$ac_compile") 2>conftest.er1
8526 ac_status=$?
8527 grep -v '^ *+' conftest.er1 >conftest.err
8528 rm -f conftest.er1
8529 cat conftest.err >&5
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); } && {
8532 test -z "$ac_c_werror_flag" ||
8533 test ! -s conftest.err
8534 } && test -s conftest.$ac_objext; then
8535 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8536 else
8537 echo "$as_me: failed program was:" >&5
8538 sed 's/^/| /' conftest.$ac_ext >&5
8540 cat >conftest.$ac_ext <<_ACEOF
8541 /* confdefs.h. */
8542 _ACEOF
8543 cat confdefs.h >>conftest.$ac_ext
8544 cat >>conftest.$ac_ext <<_ACEOF
8545 /* end confdefs.h. */
8546 $ac_includes_default
8547 #if HAVE_SYS_SOCKET_H
8548 #include <sys/socket.h>
8549 #endif
8550 #if HAVE_NET_IF_H
8551 #include <net/if.h>
8552 #endif
8555 main ()
8557 static struct ifreq ac_aggr;
8558 if (sizeof ac_aggr.ifr_hwaddr)
8559 return 0;
8561 return 0;
8563 _ACEOF
8564 rm -f conftest.$ac_objext
8565 if { (ac_try="$ac_compile"
8566 case "(($ac_try" in
8567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8568 *) ac_try_echo=$ac_try;;
8569 esac
8570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8571 (eval "$ac_compile") 2>conftest.er1
8572 ac_status=$?
8573 grep -v '^ *+' conftest.er1 >conftest.err
8574 rm -f conftest.er1
8575 cat conftest.err >&5
8576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 (exit $ac_status); } && {
8578 test -z "$ac_c_werror_flag" ||
8579 test ! -s conftest.err
8580 } && test -s conftest.$ac_objext; then
8581 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8582 else
8583 echo "$as_me: failed program was:" >&5
8584 sed 's/^/| /' conftest.$ac_ext >&5
8586 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8594 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8595 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8596 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8598 cat >>confdefs.h <<_ACEOF
8599 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8600 _ACEOF
8604 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8605 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8606 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8607 echo $ECHO_N "(cached) $ECHO_C" >&6
8608 else
8609 cat >conftest.$ac_ext <<_ACEOF
8610 /* confdefs.h. */
8611 _ACEOF
8612 cat confdefs.h >>conftest.$ac_ext
8613 cat >>conftest.$ac_ext <<_ACEOF
8614 /* end confdefs.h. */
8615 $ac_includes_default
8616 #if HAVE_SYS_SOCKET_H
8617 #include <sys/socket.h>
8618 #endif
8619 #if HAVE_NET_IF_H
8620 #include <net/if.h>
8621 #endif
8624 main ()
8626 static struct ifreq ac_aggr;
8627 if (ac_aggr.ifr_netmask)
8628 return 0;
8630 return 0;
8632 _ACEOF
8633 rm -f conftest.$ac_objext
8634 if { (ac_try="$ac_compile"
8635 case "(($ac_try" in
8636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8637 *) ac_try_echo=$ac_try;;
8638 esac
8639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8640 (eval "$ac_compile") 2>conftest.er1
8641 ac_status=$?
8642 grep -v '^ *+' conftest.er1 >conftest.err
8643 rm -f conftest.er1
8644 cat conftest.err >&5
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 (exit $ac_status); } && {
8647 test -z "$ac_c_werror_flag" ||
8648 test ! -s conftest.err
8649 } && test -s conftest.$ac_objext; then
8650 ac_cv_member_struct_ifreq_ifr_netmask=yes
8651 else
8652 echo "$as_me: failed program was:" >&5
8653 sed 's/^/| /' conftest.$ac_ext >&5
8655 cat >conftest.$ac_ext <<_ACEOF
8656 /* confdefs.h. */
8657 _ACEOF
8658 cat confdefs.h >>conftest.$ac_ext
8659 cat >>conftest.$ac_ext <<_ACEOF
8660 /* end confdefs.h. */
8661 $ac_includes_default
8662 #if HAVE_SYS_SOCKET_H
8663 #include <sys/socket.h>
8664 #endif
8665 #if HAVE_NET_IF_H
8666 #include <net/if.h>
8667 #endif
8670 main ()
8672 static struct ifreq ac_aggr;
8673 if (sizeof ac_aggr.ifr_netmask)
8674 return 0;
8676 return 0;
8678 _ACEOF
8679 rm -f conftest.$ac_objext
8680 if { (ac_try="$ac_compile"
8681 case "(($ac_try" in
8682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8683 *) ac_try_echo=$ac_try;;
8684 esac
8685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8686 (eval "$ac_compile") 2>conftest.er1
8687 ac_status=$?
8688 grep -v '^ *+' conftest.er1 >conftest.err
8689 rm -f conftest.er1
8690 cat conftest.err >&5
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); } && {
8693 test -z "$ac_c_werror_flag" ||
8694 test ! -s conftest.err
8695 } && test -s conftest.$ac_objext; then
8696 ac_cv_member_struct_ifreq_ifr_netmask=yes
8697 else
8698 echo "$as_me: failed program was:" >&5
8699 sed 's/^/| /' conftest.$ac_ext >&5
8701 ac_cv_member_struct_ifreq_ifr_netmask=no
8704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8709 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8710 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8711 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8713 cat >>confdefs.h <<_ACEOF
8714 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8715 _ACEOF
8719 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8720 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8721 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8722 echo $ECHO_N "(cached) $ECHO_C" >&6
8723 else
8724 cat >conftest.$ac_ext <<_ACEOF
8725 /* confdefs.h. */
8726 _ACEOF
8727 cat confdefs.h >>conftest.$ac_ext
8728 cat >>conftest.$ac_ext <<_ACEOF
8729 /* end confdefs.h. */
8730 $ac_includes_default
8731 #if HAVE_SYS_SOCKET_H
8732 #include <sys/socket.h>
8733 #endif
8734 #if HAVE_NET_IF_H
8735 #include <net/if.h>
8736 #endif
8739 main ()
8741 static struct ifreq ac_aggr;
8742 if (ac_aggr.ifr_broadaddr)
8743 return 0;
8745 return 0;
8747 _ACEOF
8748 rm -f conftest.$ac_objext
8749 if { (ac_try="$ac_compile"
8750 case "(($ac_try" in
8751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8752 *) ac_try_echo=$ac_try;;
8753 esac
8754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8755 (eval "$ac_compile") 2>conftest.er1
8756 ac_status=$?
8757 grep -v '^ *+' conftest.er1 >conftest.err
8758 rm -f conftest.er1
8759 cat conftest.err >&5
8760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761 (exit $ac_status); } && {
8762 test -z "$ac_c_werror_flag" ||
8763 test ! -s conftest.err
8764 } && test -s conftest.$ac_objext; then
8765 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8766 else
8767 echo "$as_me: failed program was:" >&5
8768 sed 's/^/| /' conftest.$ac_ext >&5
8770 cat >conftest.$ac_ext <<_ACEOF
8771 /* confdefs.h. */
8772 _ACEOF
8773 cat confdefs.h >>conftest.$ac_ext
8774 cat >>conftest.$ac_ext <<_ACEOF
8775 /* end confdefs.h. */
8776 $ac_includes_default
8777 #if HAVE_SYS_SOCKET_H
8778 #include <sys/socket.h>
8779 #endif
8780 #if HAVE_NET_IF_H
8781 #include <net/if.h>
8782 #endif
8785 main ()
8787 static struct ifreq ac_aggr;
8788 if (sizeof ac_aggr.ifr_broadaddr)
8789 return 0;
8791 return 0;
8793 _ACEOF
8794 rm -f conftest.$ac_objext
8795 if { (ac_try="$ac_compile"
8796 case "(($ac_try" in
8797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8798 *) ac_try_echo=$ac_try;;
8799 esac
8800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8801 (eval "$ac_compile") 2>conftest.er1
8802 ac_status=$?
8803 grep -v '^ *+' conftest.er1 >conftest.err
8804 rm -f conftest.er1
8805 cat conftest.err >&5
8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 (exit $ac_status); } && {
8808 test -z "$ac_c_werror_flag" ||
8809 test ! -s conftest.err
8810 } && test -s conftest.$ac_objext; then
8811 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8812 else
8813 echo "$as_me: failed program was:" >&5
8814 sed 's/^/| /' conftest.$ac_ext >&5
8816 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8824 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8825 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8826 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8828 cat >>confdefs.h <<_ACEOF
8829 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8830 _ACEOF
8834 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8835 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8836 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8837 echo $ECHO_N "(cached) $ECHO_C" >&6
8838 else
8839 cat >conftest.$ac_ext <<_ACEOF
8840 /* confdefs.h. */
8841 _ACEOF
8842 cat confdefs.h >>conftest.$ac_ext
8843 cat >>conftest.$ac_ext <<_ACEOF
8844 /* end confdefs.h. */
8845 $ac_includes_default
8846 #if HAVE_SYS_SOCKET_H
8847 #include <sys/socket.h>
8848 #endif
8849 #if HAVE_NET_IF_H
8850 #include <net/if.h>
8851 #endif
8854 main ()
8856 static struct ifreq ac_aggr;
8857 if (ac_aggr.ifr_addr)
8858 return 0;
8860 return 0;
8862 _ACEOF
8863 rm -f conftest.$ac_objext
8864 if { (ac_try="$ac_compile"
8865 case "(($ac_try" in
8866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8867 *) ac_try_echo=$ac_try;;
8868 esac
8869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8870 (eval "$ac_compile") 2>conftest.er1
8871 ac_status=$?
8872 grep -v '^ *+' conftest.er1 >conftest.err
8873 rm -f conftest.er1
8874 cat conftest.err >&5
8875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876 (exit $ac_status); } && {
8877 test -z "$ac_c_werror_flag" ||
8878 test ! -s conftest.err
8879 } && test -s conftest.$ac_objext; then
8880 ac_cv_member_struct_ifreq_ifr_addr=yes
8881 else
8882 echo "$as_me: failed program was:" >&5
8883 sed 's/^/| /' conftest.$ac_ext >&5
8885 cat >conftest.$ac_ext <<_ACEOF
8886 /* confdefs.h. */
8887 _ACEOF
8888 cat confdefs.h >>conftest.$ac_ext
8889 cat >>conftest.$ac_ext <<_ACEOF
8890 /* end confdefs.h. */
8891 $ac_includes_default
8892 #if HAVE_SYS_SOCKET_H
8893 #include <sys/socket.h>
8894 #endif
8895 #if HAVE_NET_IF_H
8896 #include <net/if.h>
8897 #endif
8900 main ()
8902 static struct ifreq ac_aggr;
8903 if (sizeof ac_aggr.ifr_addr)
8904 return 0;
8906 return 0;
8908 _ACEOF
8909 rm -f conftest.$ac_objext
8910 if { (ac_try="$ac_compile"
8911 case "(($ac_try" in
8912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8913 *) ac_try_echo=$ac_try;;
8914 esac
8915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8916 (eval "$ac_compile") 2>conftest.er1
8917 ac_status=$?
8918 grep -v '^ *+' conftest.er1 >conftest.err
8919 rm -f conftest.er1
8920 cat conftest.err >&5
8921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 (exit $ac_status); } && {
8923 test -z "$ac_c_werror_flag" ||
8924 test ! -s conftest.err
8925 } && test -s conftest.$ac_objext; then
8926 ac_cv_member_struct_ifreq_ifr_addr=yes
8927 else
8928 echo "$as_me: failed program was:" >&5
8929 sed 's/^/| /' conftest.$ac_ext >&5
8931 ac_cv_member_struct_ifreq_ifr_addr=no
8934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8939 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8940 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8941 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8943 cat >>confdefs.h <<_ACEOF
8944 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8945 _ACEOF
8952 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8953 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8954 if test "$ac_cv_prog_cc_c89" != no; then
8955 { echo "$as_me:$LINENO: result: yes" >&5
8956 echo "${ECHO_T}yes" >&6; }
8958 cat >>confdefs.h <<\_ACEOF
8959 #define PROTOTYPES 1
8960 _ACEOF
8963 cat >>confdefs.h <<\_ACEOF
8964 #define __PROTOTYPES 1
8965 _ACEOF
8967 else
8968 { echo "$as_me:$LINENO: result: no" >&5
8969 echo "${ECHO_T}no" >&6; }
8972 { echo "$as_me:$LINENO: checking for working volatile" >&5
8973 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8974 if test "${ac_cv_c_volatile+set}" = set; then
8975 echo $ECHO_N "(cached) $ECHO_C" >&6
8976 else
8977 cat >conftest.$ac_ext <<_ACEOF
8978 /* confdefs.h. */
8979 _ACEOF
8980 cat confdefs.h >>conftest.$ac_ext
8981 cat >>conftest.$ac_ext <<_ACEOF
8982 /* end confdefs.h. */
8985 main ()
8988 volatile int x;
8989 int * volatile y = (int *) 0;
8990 return !x && !y;
8992 return 0;
8994 _ACEOF
8995 rm -f conftest.$ac_objext
8996 if { (ac_try="$ac_compile"
8997 case "(($ac_try" in
8998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8999 *) ac_try_echo=$ac_try;;
9000 esac
9001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9002 (eval "$ac_compile") 2>conftest.er1
9003 ac_status=$?
9004 grep -v '^ *+' conftest.er1 >conftest.err
9005 rm -f conftest.er1
9006 cat conftest.err >&5
9007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008 (exit $ac_status); } && {
9009 test -z "$ac_c_werror_flag" ||
9010 test ! -s conftest.err
9011 } && test -s conftest.$ac_objext; then
9012 ac_cv_c_volatile=yes
9013 else
9014 echo "$as_me: failed program was:" >&5
9015 sed 's/^/| /' conftest.$ac_ext >&5
9017 ac_cv_c_volatile=no
9020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9022 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9023 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
9024 if test $ac_cv_c_volatile = no; then
9026 cat >>confdefs.h <<\_ACEOF
9027 #define volatile
9028 _ACEOF
9032 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9033 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9034 if test "${ac_cv_c_const+set}" = set; then
9035 echo $ECHO_N "(cached) $ECHO_C" >&6
9036 else
9037 cat >conftest.$ac_ext <<_ACEOF
9038 /* confdefs.h. */
9039 _ACEOF
9040 cat confdefs.h >>conftest.$ac_ext
9041 cat >>conftest.$ac_ext <<_ACEOF
9042 /* end confdefs.h. */
9045 main ()
9047 /* FIXME: Include the comments suggested by Paul. */
9048 #ifndef __cplusplus
9049 /* Ultrix mips cc rejects this. */
9050 typedef int charset[2];
9051 const charset cs;
9052 /* SunOS 4.1.1 cc rejects this. */
9053 char const *const *pcpcc;
9054 char **ppc;
9055 /* NEC SVR4.0.2 mips cc rejects this. */
9056 struct point {int x, y;};
9057 static struct point const zero = {0,0};
9058 /* AIX XL C 1.02.0.0 rejects this.
9059 It does not let you subtract one const X* pointer from another in
9060 an arm of an if-expression whose if-part is not a constant
9061 expression */
9062 const char *g = "string";
9063 pcpcc = &g + (g ? g-g : 0);
9064 /* HPUX 7.0 cc rejects these. */
9065 ++pcpcc;
9066 ppc = (char**) pcpcc;
9067 pcpcc = (char const *const *) ppc;
9068 { /* SCO 3.2v4 cc rejects this. */
9069 char *t;
9070 char const *s = 0 ? (char *) 0 : (char const *) 0;
9072 *t++ = 0;
9073 if (s) return 0;
9075 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9076 int x[] = {25, 17};
9077 const int *foo = &x[0];
9078 ++foo;
9080 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9081 typedef const int *iptr;
9082 iptr p = 0;
9083 ++p;
9085 { /* AIX XL C 1.02.0.0 rejects this saying
9086 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9087 struct s { int j; const int *ap[3]; };
9088 struct s *b; b->j = 5;
9090 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9091 const int foo = 10;
9092 if (!foo) return 0;
9094 return !cs[0] && !zero.x;
9095 #endif
9098 return 0;
9100 _ACEOF
9101 rm -f conftest.$ac_objext
9102 if { (ac_try="$ac_compile"
9103 case "(($ac_try" in
9104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9105 *) ac_try_echo=$ac_try;;
9106 esac
9107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9108 (eval "$ac_compile") 2>conftest.er1
9109 ac_status=$?
9110 grep -v '^ *+' conftest.er1 >conftest.err
9111 rm -f conftest.er1
9112 cat conftest.err >&5
9113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114 (exit $ac_status); } && {
9115 test -z "$ac_c_werror_flag" ||
9116 test ! -s conftest.err
9117 } && test -s conftest.$ac_objext; then
9118 ac_cv_c_const=yes
9119 else
9120 echo "$as_me: failed program was:" >&5
9121 sed 's/^/| /' conftest.$ac_ext >&5
9123 ac_cv_c_const=no
9126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9128 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9129 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9130 if test $ac_cv_c_const = no; then
9132 cat >>confdefs.h <<\_ACEOF
9133 #define const
9134 _ACEOF
9138 { echo "$as_me:$LINENO: checking for void * support" >&5
9139 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
9140 if test "${emacs_cv_void_star+set}" = set; then
9141 echo $ECHO_N "(cached) $ECHO_C" >&6
9142 else
9143 cat >conftest.$ac_ext <<_ACEOF
9144 /* confdefs.h. */
9145 _ACEOF
9146 cat confdefs.h >>conftest.$ac_ext
9147 cat >>conftest.$ac_ext <<_ACEOF
9148 /* end confdefs.h. */
9151 main ()
9153 void * foo;
9155 return 0;
9157 _ACEOF
9158 rm -f conftest.$ac_objext
9159 if { (ac_try="$ac_compile"
9160 case "(($ac_try" in
9161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9162 *) ac_try_echo=$ac_try;;
9163 esac
9164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9165 (eval "$ac_compile") 2>conftest.er1
9166 ac_status=$?
9167 grep -v '^ *+' conftest.er1 >conftest.err
9168 rm -f conftest.er1
9169 cat conftest.err >&5
9170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171 (exit $ac_status); } && {
9172 test -z "$ac_c_werror_flag" ||
9173 test ! -s conftest.err
9174 } && test -s conftest.$ac_objext; then
9175 emacs_cv_void_star=yes
9176 else
9177 echo "$as_me: failed program was:" >&5
9178 sed 's/^/| /' conftest.$ac_ext >&5
9180 emacs_cv_void_star=no
9183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9185 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9186 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
9187 if test $emacs_cv_void_star = yes; then
9188 cat >>confdefs.h <<\_ACEOF
9189 #define POINTER_TYPE void
9190 _ACEOF
9192 else
9193 cat >>confdefs.h <<\_ACEOF
9194 #define POINTER_TYPE char
9195 _ACEOF
9203 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9204 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
9205 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9206 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9207 echo $ECHO_N "(cached) $ECHO_C" >&6
9208 else
9209 cat >conftest.make <<\_ACEOF
9210 SHELL = /bin/sh
9211 all:
9212 @echo '@@@%%%=$(MAKE)=@@@%%%'
9213 _ACEOF
9214 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9215 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9216 *@@@%%%=?*=@@@%%%*)
9217 eval ac_cv_prog_make_${ac_make}_set=yes;;
9219 eval ac_cv_prog_make_${ac_make}_set=no;;
9220 esac
9221 rm -f conftest.make
9223 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9224 { echo "$as_me:$LINENO: result: yes" >&5
9225 echo "${ECHO_T}yes" >&6; }
9226 SET_MAKE=
9227 else
9228 { echo "$as_me:$LINENO: result: no" >&5
9229 echo "${ECHO_T}no" >&6; }
9230 SET_MAKE="MAKE=${MAKE-make}"
9234 { echo "$as_me:$LINENO: checking for long file names" >&5
9235 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9236 if test "${ac_cv_sys_long_file_names+set}" = set; then
9237 echo $ECHO_N "(cached) $ECHO_C" >&6
9238 else
9239 ac_cv_sys_long_file_names=yes
9240 # Test for long file names in all the places we know might matter:
9241 # . the current directory, where building will happen
9242 # $prefix/lib where we will be installing things
9243 # $exec_prefix/lib likewise
9244 # $TMPDIR if set, where it might want to write temporary files
9245 # /tmp where it might want to write temporary files
9246 # /var/tmp likewise
9247 # /usr/tmp likewise
9248 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9249 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9250 # in the usual case where exec_prefix is '${prefix}'.
9251 case $ac_dir in #(
9252 . | /* | ?:[\\/]*) ;; #(
9253 *) continue;;
9254 esac
9255 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9256 ac_xdir=$ac_dir/cf$$
9257 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9258 ac_tf1=$ac_xdir/conftest9012345
9259 ac_tf2=$ac_xdir/conftest9012346
9260 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9261 ac_cv_sys_long_file_names=no
9262 rm -f -r "$ac_xdir" 2>/dev/null
9263 test $ac_cv_sys_long_file_names = no && break
9264 done
9266 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9267 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9268 if test $ac_cv_sys_long_file_names = yes; then
9270 cat >>confdefs.h <<\_ACEOF
9271 #define HAVE_LONG_FILE_NAMES 1
9272 _ACEOF
9277 #### Choose a window system.
9279 { echo "$as_me:$LINENO: checking for X" >&5
9280 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9283 # Check whether --with-x was given.
9284 if test "${with_x+set}" = set; then
9285 withval=$with_x;
9288 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9289 if test "x$with_x" = xno; then
9290 # The user explicitly disabled X.
9291 have_x=disabled
9292 else
9293 case $x_includes,$x_libraries in #(
9294 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9295 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9296 { (exit 1); exit 1; }; };; #(
9297 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9298 echo $ECHO_N "(cached) $ECHO_C" >&6
9299 else
9300 # One or both of the vars are not set, and there is no cached value.
9301 ac_x_includes=no ac_x_libraries=no
9302 rm -f -r conftest.dir
9303 if mkdir conftest.dir; then
9304 cd conftest.dir
9305 cat >Imakefile <<'_ACEOF'
9306 incroot:
9307 @echo incroot='${INCROOT}'
9308 usrlibdir:
9309 @echo usrlibdir='${USRLIBDIR}'
9310 libdir:
9311 @echo libdir='${LIBDIR}'
9312 _ACEOF
9313 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9314 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9315 for ac_var in incroot usrlibdir libdir; do
9316 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9317 done
9318 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9319 for ac_extension in a so sl; do
9320 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9321 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9322 ac_im_usrlibdir=$ac_im_libdir; break
9324 done
9325 # Screen out bogus values from the imake configuration. They are
9326 # bogus both because they are the default anyway, and because
9327 # using them would break gcc on systems where it needs fixed includes.
9328 case $ac_im_incroot in
9329 /usr/include) ac_x_includes= ;;
9330 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9331 esac
9332 case $ac_im_usrlibdir in
9333 /usr/lib | /lib) ;;
9334 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9335 esac
9337 cd ..
9338 rm -f -r conftest.dir
9341 # Standard set of common directories for X headers.
9342 # Check X11 before X11Rn because it is often a symlink to the current release.
9343 ac_x_header_dirs='
9344 /usr/X11/include
9345 /usr/X11R6/include
9346 /usr/X11R5/include
9347 /usr/X11R4/include
9349 /usr/include/X11
9350 /usr/include/X11R6
9351 /usr/include/X11R5
9352 /usr/include/X11R4
9354 /usr/local/X11/include
9355 /usr/local/X11R6/include
9356 /usr/local/X11R5/include
9357 /usr/local/X11R4/include
9359 /usr/local/include/X11
9360 /usr/local/include/X11R6
9361 /usr/local/include/X11R5
9362 /usr/local/include/X11R4
9364 /usr/X386/include
9365 /usr/x386/include
9366 /usr/XFree86/include/X11
9368 /usr/include
9369 /usr/local/include
9370 /usr/unsupported/include
9371 /usr/athena/include
9372 /usr/local/x11r5/include
9373 /usr/lpp/Xamples/include
9375 /usr/openwin/include
9376 /usr/openwin/share/include'
9378 if test "$ac_x_includes" = no; then
9379 # Guess where to find include files, by looking for Xlib.h.
9380 # First, try using that file with no special directory specified.
9381 cat >conftest.$ac_ext <<_ACEOF
9382 /* confdefs.h. */
9383 _ACEOF
9384 cat confdefs.h >>conftest.$ac_ext
9385 cat >>conftest.$ac_ext <<_ACEOF
9386 /* end confdefs.h. */
9387 #include <X11/Xlib.h>
9388 _ACEOF
9389 if { (ac_try="$ac_cpp conftest.$ac_ext"
9390 case "(($ac_try" in
9391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9392 *) ac_try_echo=$ac_try;;
9393 esac
9394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9395 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9396 ac_status=$?
9397 grep -v '^ *+' conftest.er1 >conftest.err
9398 rm -f conftest.er1
9399 cat conftest.err >&5
9400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); } >/dev/null && {
9402 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9403 test ! -s conftest.err
9404 }; then
9405 # We can compile using X headers with no special include directory.
9406 ac_x_includes=
9407 else
9408 echo "$as_me: failed program was:" >&5
9409 sed 's/^/| /' conftest.$ac_ext >&5
9411 for ac_dir in $ac_x_header_dirs; do
9412 if test -r "$ac_dir/X11/Xlib.h"; then
9413 ac_x_includes=$ac_dir
9414 break
9416 done
9419 rm -f conftest.err conftest.$ac_ext
9420 fi # $ac_x_includes = no
9422 if test "$ac_x_libraries" = no; then
9423 # Check for the libraries.
9424 # See if we find them without any special options.
9425 # Don't add to $LIBS permanently.
9426 ac_save_LIBS=$LIBS
9427 LIBS="-lX11 $LIBS"
9428 cat >conftest.$ac_ext <<_ACEOF
9429 /* confdefs.h. */
9430 _ACEOF
9431 cat confdefs.h >>conftest.$ac_ext
9432 cat >>conftest.$ac_ext <<_ACEOF
9433 /* end confdefs.h. */
9434 #include <X11/Xlib.h>
9436 main ()
9438 XrmInitialize ()
9440 return 0;
9442 _ACEOF
9443 rm -f conftest.$ac_objext conftest$ac_exeext
9444 if { (ac_try="$ac_link"
9445 case "(($ac_try" in
9446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9447 *) ac_try_echo=$ac_try;;
9448 esac
9449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9450 (eval "$ac_link") 2>conftest.er1
9451 ac_status=$?
9452 grep -v '^ *+' conftest.er1 >conftest.err
9453 rm -f conftest.er1
9454 cat conftest.err >&5
9455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456 (exit $ac_status); } && {
9457 test -z "$ac_c_werror_flag" ||
9458 test ! -s conftest.err
9459 } && test -s conftest$ac_exeext &&
9460 $as_test_x conftest$ac_exeext; then
9461 LIBS=$ac_save_LIBS
9462 # We can link X programs with no special library path.
9463 ac_x_libraries=
9464 else
9465 echo "$as_me: failed program was:" >&5
9466 sed 's/^/| /' conftest.$ac_ext >&5
9468 LIBS=$ac_save_LIBS
9469 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9471 # Don't even attempt the hair of trying to link an X program!
9472 for ac_extension in a so sl; do
9473 if test -r "$ac_dir/libX11.$ac_extension"; then
9474 ac_x_libraries=$ac_dir
9475 break 2
9477 done
9478 done
9481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9482 conftest$ac_exeext conftest.$ac_ext
9483 fi # $ac_x_libraries = no
9485 case $ac_x_includes,$ac_x_libraries in #(
9486 no,* | *,no | *\'*)
9487 # Didn't find X, or a directory has "'" in its name.
9488 ac_cv_have_x="have_x=no";; #(
9490 # Record where we found X for the cache.
9491 ac_cv_have_x="have_x=yes\
9492 ac_x_includes='$ac_x_includes'\
9493 ac_x_libraries='$ac_x_libraries'"
9494 esac
9496 ;; #(
9497 *) have_x=yes;;
9498 esac
9499 eval "$ac_cv_have_x"
9500 fi # $with_x != no
9502 if test "$have_x" != yes; then
9503 { echo "$as_me:$LINENO: result: $have_x" >&5
9504 echo "${ECHO_T}$have_x" >&6; }
9505 no_x=yes
9506 else
9507 # If each of the values was on the command line, it overrides each guess.
9508 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9509 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9510 # Update the cache value to reflect the command line values.
9511 ac_cv_have_x="have_x=yes\
9512 ac_x_includes='$x_includes'\
9513 ac_x_libraries='$x_libraries'"
9514 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9515 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9518 if test "$no_x" = yes; then
9519 window_system=none
9520 else
9521 window_system=x11
9524 if test "${x_libraries}" != NONE; then
9525 if test -n "${x_libraries}"; then
9526 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9527 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9529 x_default_search_path=""
9530 x_search_path=${x_libraries}
9531 if test -z "${x_search_path}"; then
9532 x_search_path=/usr/lib
9534 for x_library in `echo ${x_search_path}: | \
9535 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9536 x_search_path="\
9537 ${x_library}/X11/%L/%T/%N%C%S:\
9538 ${x_library}/X11/%l/%T/%N%C%S:\
9539 ${x_library}/X11/%T/%N%C%S:\
9540 ${x_library}/X11/%L/%T/%N%S:\
9541 ${x_library}/X11/%l/%T/%N%S:\
9542 ${x_library}/X11/%T/%N%S"
9543 if test x"${x_default_search_path}" = x; then
9544 x_default_search_path=${x_search_path}
9545 else
9546 x_default_search_path="${x_search_path}:${x_default_search_path}"
9548 done
9550 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9551 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9554 if test x"${x_includes}" = x; then
9555 bitmapdir=/usr/include/X11/bitmaps
9556 else
9557 # accumulate include directories that have X11 bitmap subdirectories
9558 bmd_acc="dummyval"
9559 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9560 if test -d "${bmd}/X11/bitmaps"; then
9561 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9563 if test -d "${bmd}/bitmaps"; then
9564 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9566 done
9567 if test ${bmd_acc} != "dummyval"; then
9568 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9572 HAVE_CARBON=no
9573 if test "${with_carbon}" != no; then
9574 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9575 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9576 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9577 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9578 echo $ECHO_N "(cached) $ECHO_C" >&6
9580 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9581 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9582 else
9583 # Is the header compilable?
9584 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9585 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9586 cat >conftest.$ac_ext <<_ACEOF
9587 /* confdefs.h. */
9588 _ACEOF
9589 cat confdefs.h >>conftest.$ac_ext
9590 cat >>conftest.$ac_ext <<_ACEOF
9591 /* end confdefs.h. */
9592 $ac_includes_default
9593 #include <Carbon/Carbon.h>
9594 _ACEOF
9595 rm -f conftest.$ac_objext
9596 if { (ac_try="$ac_compile"
9597 case "(($ac_try" in
9598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9599 *) ac_try_echo=$ac_try;;
9600 esac
9601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9602 (eval "$ac_compile") 2>conftest.er1
9603 ac_status=$?
9604 grep -v '^ *+' conftest.er1 >conftest.err
9605 rm -f conftest.er1
9606 cat conftest.err >&5
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); } && {
9609 test -z "$ac_c_werror_flag" ||
9610 test ! -s conftest.err
9611 } && test -s conftest.$ac_objext; then
9612 ac_header_compiler=yes
9613 else
9614 echo "$as_me: failed program was:" >&5
9615 sed 's/^/| /' conftest.$ac_ext >&5
9617 ac_header_compiler=no
9620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9621 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9622 echo "${ECHO_T}$ac_header_compiler" >&6; }
9624 # Is the header present?
9625 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9626 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9627 cat >conftest.$ac_ext <<_ACEOF
9628 /* confdefs.h. */
9629 _ACEOF
9630 cat confdefs.h >>conftest.$ac_ext
9631 cat >>conftest.$ac_ext <<_ACEOF
9632 /* end confdefs.h. */
9633 #include <Carbon/Carbon.h>
9634 _ACEOF
9635 if { (ac_try="$ac_cpp conftest.$ac_ext"
9636 case "(($ac_try" in
9637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9638 *) ac_try_echo=$ac_try;;
9639 esac
9640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9641 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9642 ac_status=$?
9643 grep -v '^ *+' conftest.er1 >conftest.err
9644 rm -f conftest.er1
9645 cat conftest.err >&5
9646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647 (exit $ac_status); } >/dev/null && {
9648 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9649 test ! -s conftest.err
9650 }; then
9651 ac_header_preproc=yes
9652 else
9653 echo "$as_me: failed program was:" >&5
9654 sed 's/^/| /' conftest.$ac_ext >&5
9656 ac_header_preproc=no
9659 rm -f conftest.err conftest.$ac_ext
9660 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9661 echo "${ECHO_T}$ac_header_preproc" >&6; }
9663 # So? What about this header?
9664 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9665 yes:no: )
9666 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9667 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9668 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9669 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9670 ac_header_preproc=yes
9672 no:yes:* )
9673 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9674 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9675 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9676 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9677 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9678 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9679 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9680 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9681 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9682 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9683 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9684 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9687 esac
9688 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9689 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9690 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9691 echo $ECHO_N "(cached) $ECHO_C" >&6
9692 else
9693 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9695 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9696 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9699 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9700 HAVE_CARBON=yes
9705 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9706 if test "${with_carbon+set}" != set \
9707 && test "${carbon_appdir_x+set}" != set; then
9708 for var in with_x with_x_toolkit with_gtk with_xim \
9709 with_xpm with_jpeg with_tiff with_gif with_png; do
9710 if eval test \"\${$var+set}\" = set; then
9711 HAVE_CARBON=no
9712 break
9714 done
9717 if test "${HAVE_CARBON}" = yes; then
9718 window_system=mac
9721 case "${window_system}" in
9722 x11 )
9723 HAVE_X_WINDOWS=yes
9724 HAVE_X11=yes
9725 case "${with_x_toolkit}" in
9726 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9727 motif ) USE_X_TOOLKIT=MOTIF ;;
9728 gtk ) with_gtk=yes
9729 USE_X_TOOLKIT=none ;;
9730 no ) USE_X_TOOLKIT=none ;;
9732 if test x"$with_gtk" = xyes; then
9733 USE_X_TOOLKIT=none
9734 else
9735 USE_X_TOOLKIT=maybe
9738 esac
9740 mac | none )
9741 HAVE_X_WINDOWS=no
9742 HAVE_X11=no
9743 USE_X_TOOLKIT=none
9745 esac
9747 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9748 # Extract the first word of "X", so it can be a program name with args.
9749 set dummy X; ac_word=$2
9750 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9752 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9753 echo $ECHO_N "(cached) $ECHO_C" >&6
9754 else
9755 if test -n "$HAVE_XSERVER"; then
9756 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9757 else
9758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9759 for as_dir in $PATH
9761 IFS=$as_save_IFS
9762 test -z "$as_dir" && as_dir=.
9763 for ac_exec_ext in '' $ac_executable_extensions; do
9764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9765 ac_cv_prog_HAVE_XSERVER="true"
9766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9767 break 2
9769 done
9770 done
9771 IFS=$as_save_IFS
9773 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9776 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9777 if test -n "$HAVE_XSERVER"; then
9778 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9779 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9780 else
9781 { echo "$as_me:$LINENO: result: no" >&5
9782 echo "${ECHO_T}no" >&6; }
9786 if test "$HAVE_XSERVER" = true ||
9787 test -n "$DISPLAY" ||
9788 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9789 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9790 were found. You should install the relevant development files for X
9791 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9792 sure you have development files for image handling, i.e.
9793 tiff, gif, jpeg, png and xpm.
9794 If you are sure you want Emacs compiled without X window support, pass
9795 --without-x
9796 to configure." >&5
9797 echo "$as_me: error: You seem to be running X, but no X development libraries
9798 were found. You should install the relevant development files for X
9799 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9800 sure you have development files for image handling, i.e.
9801 tiff, gif, jpeg, png and xpm.
9802 If you are sure you want Emacs compiled without X window support, pass
9803 --without-x
9804 to configure." >&2;}
9805 { (exit 1); exit 1; }; }
9809 ### If we're using X11, we should use the X menu package.
9810 HAVE_MENUS=no
9811 case ${HAVE_X11} in
9812 yes ) HAVE_MENUS=yes ;;
9813 esac
9815 if test "${opsys}" = "hpux9"; then
9816 case "${x_libraries}" in
9817 *X11R4* )
9818 opsysfile="s/hpux9-x11r4.h"
9820 esac
9823 if test "${opsys}" = "hpux9shr"; then
9824 case "${x_libraries}" in
9825 *X11R4* )
9826 opsysfile="s/hpux9shxr4.h"
9828 esac
9831 ### Compute the unexec source name from the object name.
9832 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9834 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9835 # Assume not, until told otherwise.
9836 GNU_MALLOC=yes
9837 doug_lea_malloc=yes
9838 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9839 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9840 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9841 echo $ECHO_N "(cached) $ECHO_C" >&6
9842 else
9843 cat >conftest.$ac_ext <<_ACEOF
9844 /* confdefs.h. */
9845 _ACEOF
9846 cat confdefs.h >>conftest.$ac_ext
9847 cat >>conftest.$ac_ext <<_ACEOF
9848 /* end confdefs.h. */
9849 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9850 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9851 #define malloc_get_state innocuous_malloc_get_state
9853 /* System header to define __stub macros and hopefully few prototypes,
9854 which can conflict with char malloc_get_state (); below.
9855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9856 <limits.h> exists even on freestanding compilers. */
9858 #ifdef __STDC__
9859 # include <limits.h>
9860 #else
9861 # include <assert.h>
9862 #endif
9864 #undef malloc_get_state
9866 /* Override any GCC internal prototype to avoid an error.
9867 Use char because int might match the return type of a GCC
9868 builtin and then its argument prototype would still apply. */
9869 #ifdef __cplusplus
9870 extern "C"
9871 #endif
9872 char malloc_get_state ();
9873 /* The GNU C library defines this for functions which it implements
9874 to always fail with ENOSYS. Some functions are actually named
9875 something starting with __ and the normal name is an alias. */
9876 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9877 choke me
9878 #endif
9881 main ()
9883 return malloc_get_state ();
9885 return 0;
9887 _ACEOF
9888 rm -f conftest.$ac_objext conftest$ac_exeext
9889 if { (ac_try="$ac_link"
9890 case "(($ac_try" in
9891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9892 *) ac_try_echo=$ac_try;;
9893 esac
9894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9895 (eval "$ac_link") 2>conftest.er1
9896 ac_status=$?
9897 grep -v '^ *+' conftest.er1 >conftest.err
9898 rm -f conftest.er1
9899 cat conftest.err >&5
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); } && {
9902 test -z "$ac_c_werror_flag" ||
9903 test ! -s conftest.err
9904 } && test -s conftest$ac_exeext &&
9905 $as_test_x conftest$ac_exeext; then
9906 ac_cv_func_malloc_get_state=yes
9907 else
9908 echo "$as_me: failed program was:" >&5
9909 sed 's/^/| /' conftest.$ac_ext >&5
9911 ac_cv_func_malloc_get_state=no
9914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9915 conftest$ac_exeext conftest.$ac_ext
9917 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9918 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9919 if test $ac_cv_func_malloc_get_state = yes; then
9921 else
9922 doug_lea_malloc=no
9925 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9926 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9927 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9928 echo $ECHO_N "(cached) $ECHO_C" >&6
9929 else
9930 cat >conftest.$ac_ext <<_ACEOF
9931 /* confdefs.h. */
9932 _ACEOF
9933 cat confdefs.h >>conftest.$ac_ext
9934 cat >>conftest.$ac_ext <<_ACEOF
9935 /* end confdefs.h. */
9936 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9937 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9938 #define malloc_set_state innocuous_malloc_set_state
9940 /* System header to define __stub macros and hopefully few prototypes,
9941 which can conflict with char malloc_set_state (); below.
9942 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9943 <limits.h> exists even on freestanding compilers. */
9945 #ifdef __STDC__
9946 # include <limits.h>
9947 #else
9948 # include <assert.h>
9949 #endif
9951 #undef malloc_set_state
9953 /* Override any GCC internal prototype to avoid an error.
9954 Use char because int might match the return type of a GCC
9955 builtin and then its argument prototype would still apply. */
9956 #ifdef __cplusplus
9957 extern "C"
9958 #endif
9959 char malloc_set_state ();
9960 /* The GNU C library defines this for functions which it implements
9961 to always fail with ENOSYS. Some functions are actually named
9962 something starting with __ and the normal name is an alias. */
9963 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9964 choke me
9965 #endif
9968 main ()
9970 return malloc_set_state ();
9972 return 0;
9974 _ACEOF
9975 rm -f conftest.$ac_objext conftest$ac_exeext
9976 if { (ac_try="$ac_link"
9977 case "(($ac_try" in
9978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9979 *) ac_try_echo=$ac_try;;
9980 esac
9981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9982 (eval "$ac_link") 2>conftest.er1
9983 ac_status=$?
9984 grep -v '^ *+' conftest.er1 >conftest.err
9985 rm -f conftest.er1
9986 cat conftest.err >&5
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); } && {
9989 test -z "$ac_c_werror_flag" ||
9990 test ! -s conftest.err
9991 } && test -s conftest$ac_exeext &&
9992 $as_test_x conftest$ac_exeext; then
9993 ac_cv_func_malloc_set_state=yes
9994 else
9995 echo "$as_me: failed program was:" >&5
9996 sed 's/^/| /' conftest.$ac_ext >&5
9998 ac_cv_func_malloc_set_state=no
10001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10002 conftest$ac_exeext conftest.$ac_ext
10004 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10005 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
10006 if test $ac_cv_func_malloc_set_state = yes; then
10008 else
10009 doug_lea_malloc=no
10012 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
10013 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
10014 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
10015 echo $ECHO_N "(cached) $ECHO_C" >&6
10016 else
10017 cat >conftest.$ac_ext <<_ACEOF
10018 /* confdefs.h. */
10019 _ACEOF
10020 cat confdefs.h >>conftest.$ac_ext
10021 cat >>conftest.$ac_ext <<_ACEOF
10022 /* end confdefs.h. */
10023 extern void (* __after_morecore_hook)();
10025 main ()
10027 __after_morecore_hook = 0
10029 return 0;
10031 _ACEOF
10032 rm -f conftest.$ac_objext conftest$ac_exeext
10033 if { (ac_try="$ac_link"
10034 case "(($ac_try" in
10035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10036 *) ac_try_echo=$ac_try;;
10037 esac
10038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10039 (eval "$ac_link") 2>conftest.er1
10040 ac_status=$?
10041 grep -v '^ *+' conftest.er1 >conftest.err
10042 rm -f conftest.er1
10043 cat conftest.err >&5
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); } && {
10046 test -z "$ac_c_werror_flag" ||
10047 test ! -s conftest.err
10048 } && test -s conftest$ac_exeext &&
10049 $as_test_x conftest$ac_exeext; then
10050 emacs_cv_var___after_morecore_hook=yes
10051 else
10052 echo "$as_me: failed program was:" >&5
10053 sed 's/^/| /' conftest.$ac_ext >&5
10055 emacs_cv_var___after_morecore_hook=no
10058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10059 conftest$ac_exeext conftest.$ac_ext
10061 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10062 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
10063 if test $emacs_cv_var___after_morecore_hook = no; then
10064 doug_lea_malloc=no
10066 if test "${system_malloc}" = "yes"; then
10067 GNU_MALLOC=no
10068 GNU_MALLOC_reason="
10069 (The GNU allocators don't work with this system configuration.)"
10071 if test "$doug_lea_malloc" = "yes" ; then
10072 if test "$GNU_MALLOC" = yes ; then
10073 GNU_MALLOC_reason="
10074 (Using Doug Lea's new malloc from the GNU C Library.)"
10077 cat >>confdefs.h <<\_ACEOF
10078 #define DOUG_LEA_MALLOC 1
10079 _ACEOF
10083 if test x"${REL_ALLOC}" = x; then
10084 REL_ALLOC=${GNU_MALLOC}
10090 for ac_header in stdlib.h unistd.h
10092 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10094 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10096 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10097 echo $ECHO_N "(cached) $ECHO_C" >&6
10099 ac_res=`eval echo '${'$as_ac_Header'}'`
10100 { echo "$as_me:$LINENO: result: $ac_res" >&5
10101 echo "${ECHO_T}$ac_res" >&6; }
10102 else
10103 # Is the header compilable?
10104 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10105 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10106 cat >conftest.$ac_ext <<_ACEOF
10107 /* confdefs.h. */
10108 _ACEOF
10109 cat confdefs.h >>conftest.$ac_ext
10110 cat >>conftest.$ac_ext <<_ACEOF
10111 /* end confdefs.h. */
10112 $ac_includes_default
10113 #include <$ac_header>
10114 _ACEOF
10115 rm -f conftest.$ac_objext
10116 if { (ac_try="$ac_compile"
10117 case "(($ac_try" in
10118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10119 *) ac_try_echo=$ac_try;;
10120 esac
10121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10122 (eval "$ac_compile") 2>conftest.er1
10123 ac_status=$?
10124 grep -v '^ *+' conftest.er1 >conftest.err
10125 rm -f conftest.er1
10126 cat conftest.err >&5
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); } && {
10129 test -z "$ac_c_werror_flag" ||
10130 test ! -s conftest.err
10131 } && test -s conftest.$ac_objext; then
10132 ac_header_compiler=yes
10133 else
10134 echo "$as_me: failed program was:" >&5
10135 sed 's/^/| /' conftest.$ac_ext >&5
10137 ac_header_compiler=no
10140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10141 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10142 echo "${ECHO_T}$ac_header_compiler" >&6; }
10144 # Is the header present?
10145 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10146 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10147 cat >conftest.$ac_ext <<_ACEOF
10148 /* confdefs.h. */
10149 _ACEOF
10150 cat confdefs.h >>conftest.$ac_ext
10151 cat >>conftest.$ac_ext <<_ACEOF
10152 /* end confdefs.h. */
10153 #include <$ac_header>
10154 _ACEOF
10155 if { (ac_try="$ac_cpp conftest.$ac_ext"
10156 case "(($ac_try" in
10157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10158 *) ac_try_echo=$ac_try;;
10159 esac
10160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10161 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10162 ac_status=$?
10163 grep -v '^ *+' conftest.er1 >conftest.err
10164 rm -f conftest.er1
10165 cat conftest.err >&5
10166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167 (exit $ac_status); } >/dev/null && {
10168 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10169 test ! -s conftest.err
10170 }; then
10171 ac_header_preproc=yes
10172 else
10173 echo "$as_me: failed program was:" >&5
10174 sed 's/^/| /' conftest.$ac_ext >&5
10176 ac_header_preproc=no
10179 rm -f conftest.err conftest.$ac_ext
10180 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10181 echo "${ECHO_T}$ac_header_preproc" >&6; }
10183 # So? What about this header?
10184 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10185 yes:no: )
10186 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10187 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10188 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10189 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10190 ac_header_preproc=yes
10192 no:yes:* )
10193 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10194 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10195 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10196 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10197 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10198 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10199 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10200 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10202 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10203 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10204 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10207 esac
10208 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10210 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10211 echo $ECHO_N "(cached) $ECHO_C" >&6
10212 else
10213 eval "$as_ac_Header=\$ac_header_preproc"
10215 ac_res=`eval echo '${'$as_ac_Header'}'`
10216 { echo "$as_me:$LINENO: result: $ac_res" >&5
10217 echo "${ECHO_T}$ac_res" >&6; }
10220 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10221 cat >>confdefs.h <<_ACEOF
10222 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10223 _ACEOF
10227 done
10230 for ac_func in getpagesize
10232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10233 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10235 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10236 echo $ECHO_N "(cached) $ECHO_C" >&6
10237 else
10238 cat >conftest.$ac_ext <<_ACEOF
10239 /* confdefs.h. */
10240 _ACEOF
10241 cat confdefs.h >>conftest.$ac_ext
10242 cat >>conftest.$ac_ext <<_ACEOF
10243 /* end confdefs.h. */
10244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10246 #define $ac_func innocuous_$ac_func
10248 /* System header to define __stub macros and hopefully few prototypes,
10249 which can conflict with char $ac_func (); below.
10250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10251 <limits.h> exists even on freestanding compilers. */
10253 #ifdef __STDC__
10254 # include <limits.h>
10255 #else
10256 # include <assert.h>
10257 #endif
10259 #undef $ac_func
10261 /* Override any GCC internal prototype to avoid an error.
10262 Use char because int might match the return type of a GCC
10263 builtin and then its argument prototype would still apply. */
10264 #ifdef __cplusplus
10265 extern "C"
10266 #endif
10267 char $ac_func ();
10268 /* The GNU C library defines this for functions which it implements
10269 to always fail with ENOSYS. Some functions are actually named
10270 something starting with __ and the normal name is an alias. */
10271 #if defined __stub_$ac_func || defined __stub___$ac_func
10272 choke me
10273 #endif
10276 main ()
10278 return $ac_func ();
10280 return 0;
10282 _ACEOF
10283 rm -f conftest.$ac_objext conftest$ac_exeext
10284 if { (ac_try="$ac_link"
10285 case "(($ac_try" in
10286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10287 *) ac_try_echo=$ac_try;;
10288 esac
10289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10290 (eval "$ac_link") 2>conftest.er1
10291 ac_status=$?
10292 grep -v '^ *+' conftest.er1 >conftest.err
10293 rm -f conftest.er1
10294 cat conftest.err >&5
10295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); } && {
10297 test -z "$ac_c_werror_flag" ||
10298 test ! -s conftest.err
10299 } && test -s conftest$ac_exeext &&
10300 $as_test_x conftest$ac_exeext; then
10301 eval "$as_ac_var=yes"
10302 else
10303 echo "$as_me: failed program was:" >&5
10304 sed 's/^/| /' conftest.$ac_ext >&5
10306 eval "$as_ac_var=no"
10309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10310 conftest$ac_exeext conftest.$ac_ext
10312 ac_res=`eval echo '${'$as_ac_var'}'`
10313 { echo "$as_me:$LINENO: result: $ac_res" >&5
10314 echo "${ECHO_T}$ac_res" >&6; }
10315 if test `eval echo '${'$as_ac_var'}'` = yes; then
10316 cat >>confdefs.h <<_ACEOF
10317 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10318 _ACEOF
10321 done
10323 { echo "$as_me:$LINENO: checking for working mmap" >&5
10324 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10325 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10326 echo $ECHO_N "(cached) $ECHO_C" >&6
10327 else
10328 if test "$cross_compiling" = yes; then
10329 ac_cv_func_mmap_fixed_mapped=no
10330 else
10331 cat >conftest.$ac_ext <<_ACEOF
10332 /* confdefs.h. */
10333 _ACEOF
10334 cat confdefs.h >>conftest.$ac_ext
10335 cat >>conftest.$ac_ext <<_ACEOF
10336 /* end confdefs.h. */
10337 $ac_includes_default
10338 /* malloc might have been renamed as rpl_malloc. */
10339 #undef malloc
10341 /* Thanks to Mike Haertel and Jim Avera for this test.
10342 Here is a matrix of mmap possibilities:
10343 mmap private not fixed
10344 mmap private fixed at somewhere currently unmapped
10345 mmap private fixed at somewhere already mapped
10346 mmap shared not fixed
10347 mmap shared fixed at somewhere currently unmapped
10348 mmap shared fixed at somewhere already mapped
10349 For private mappings, we should verify that changes cannot be read()
10350 back from the file, nor mmap's back from the file at a different
10351 address. (There have been systems where private was not correctly
10352 implemented like the infamous i386 svr4.0, and systems where the
10353 VM page cache was not coherent with the file system buffer cache
10354 like early versions of FreeBSD and possibly contemporary NetBSD.)
10355 For shared mappings, we should conversely verify that changes get
10356 propagated back to all the places they're supposed to be.
10358 Grep wants private fixed already mapped.
10359 The main things grep needs to know about mmap are:
10360 * does it exist and is it safe to write into the mmap'd area
10361 * how to use it (BSD variants) */
10363 #include <fcntl.h>
10364 #include <sys/mman.h>
10366 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10367 char *malloc ();
10368 #endif
10370 /* This mess was copied from the GNU getpagesize.h. */
10371 #ifndef HAVE_GETPAGESIZE
10372 /* Assume that all systems that can run configure have sys/param.h. */
10373 # ifndef HAVE_SYS_PARAM_H
10374 # define HAVE_SYS_PARAM_H 1
10375 # endif
10377 # ifdef _SC_PAGESIZE
10378 # define getpagesize() sysconf(_SC_PAGESIZE)
10379 # else /* no _SC_PAGESIZE */
10380 # ifdef HAVE_SYS_PARAM_H
10381 # include <sys/param.h>
10382 # ifdef EXEC_PAGESIZE
10383 # define getpagesize() EXEC_PAGESIZE
10384 # else /* no EXEC_PAGESIZE */
10385 # ifdef NBPG
10386 # define getpagesize() NBPG * CLSIZE
10387 # ifndef CLSIZE
10388 # define CLSIZE 1
10389 # endif /* no CLSIZE */
10390 # else /* no NBPG */
10391 # ifdef NBPC
10392 # define getpagesize() NBPC
10393 # else /* no NBPC */
10394 # ifdef PAGESIZE
10395 # define getpagesize() PAGESIZE
10396 # endif /* PAGESIZE */
10397 # endif /* no NBPC */
10398 # endif /* no NBPG */
10399 # endif /* no EXEC_PAGESIZE */
10400 # else /* no HAVE_SYS_PARAM_H */
10401 # define getpagesize() 8192 /* punt totally */
10402 # endif /* no HAVE_SYS_PARAM_H */
10403 # endif /* no _SC_PAGESIZE */
10405 #endif /* no HAVE_GETPAGESIZE */
10408 main ()
10410 char *data, *data2, *data3;
10411 int i, pagesize;
10412 int fd;
10414 pagesize = getpagesize ();
10416 /* First, make a file with some known garbage in it. */
10417 data = (char *) malloc (pagesize);
10418 if (!data)
10419 return 1;
10420 for (i = 0; i < pagesize; ++i)
10421 *(data + i) = rand ();
10422 umask (0);
10423 fd = creat ("conftest.mmap", 0600);
10424 if (fd < 0)
10425 return 1;
10426 if (write (fd, data, pagesize) != pagesize)
10427 return 1;
10428 close (fd);
10430 /* Next, try to mmap the file at a fixed address which already has
10431 something else allocated at it. If we can, also make sure that
10432 we see the same garbage. */
10433 fd = open ("conftest.mmap", O_RDWR);
10434 if (fd < 0)
10435 return 1;
10436 data2 = (char *) malloc (2 * pagesize);
10437 if (!data2)
10438 return 1;
10439 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10440 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10441 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10442 return 1;
10443 for (i = 0; i < pagesize; ++i)
10444 if (*(data + i) != *(data2 + i))
10445 return 1;
10447 /* Finally, make sure that changes to the mapped area do not
10448 percolate back to the file as seen by read(). (This is a bug on
10449 some variants of i386 svr4.0.) */
10450 for (i = 0; i < pagesize; ++i)
10451 *(data2 + i) = *(data2 + i) + 1;
10452 data3 = (char *) malloc (pagesize);
10453 if (!data3)
10454 return 1;
10455 if (read (fd, data3, pagesize) != pagesize)
10456 return 1;
10457 for (i = 0; i < pagesize; ++i)
10458 if (*(data + i) != *(data3 + i))
10459 return 1;
10460 close (fd);
10461 return 0;
10463 _ACEOF
10464 rm -f conftest$ac_exeext
10465 if { (ac_try="$ac_link"
10466 case "(($ac_try" in
10467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10468 *) ac_try_echo=$ac_try;;
10469 esac
10470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10471 (eval "$ac_link") 2>&5
10472 ac_status=$?
10473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10475 { (case "(($ac_try" in
10476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10477 *) ac_try_echo=$ac_try;;
10478 esac
10479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10480 (eval "$ac_try") 2>&5
10481 ac_status=$?
10482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483 (exit $ac_status); }; }; then
10484 ac_cv_func_mmap_fixed_mapped=yes
10485 else
10486 echo "$as_me: program exited with status $ac_status" >&5
10487 echo "$as_me: failed program was:" >&5
10488 sed 's/^/| /' conftest.$ac_ext >&5
10490 ( exit $ac_status )
10491 ac_cv_func_mmap_fixed_mapped=no
10493 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10498 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10499 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10500 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10502 cat >>confdefs.h <<\_ACEOF
10503 #define HAVE_MMAP 1
10504 _ACEOF
10507 rm -f conftest.mmap
10509 if test $use_mmap_for_buffers = yes; then
10510 REL_ALLOC=no
10513 LIBS="$libsrc_libs $LIBS"
10516 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10517 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10518 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10519 echo $ECHO_N "(cached) $ECHO_C" >&6
10520 else
10521 ac_check_lib_save_LIBS=$LIBS
10522 LIBS="-ldnet $LIBS"
10523 cat >conftest.$ac_ext <<_ACEOF
10524 /* confdefs.h. */
10525 _ACEOF
10526 cat confdefs.h >>conftest.$ac_ext
10527 cat >>conftest.$ac_ext <<_ACEOF
10528 /* end confdefs.h. */
10530 /* Override any GCC internal prototype to avoid an error.
10531 Use char because int might match the return type of a GCC
10532 builtin and then its argument prototype would still apply. */
10533 #ifdef __cplusplus
10534 extern "C"
10535 #endif
10536 char dnet_ntoa ();
10538 main ()
10540 return dnet_ntoa ();
10542 return 0;
10544 _ACEOF
10545 rm -f conftest.$ac_objext conftest$ac_exeext
10546 if { (ac_try="$ac_link"
10547 case "(($ac_try" in
10548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10549 *) ac_try_echo=$ac_try;;
10550 esac
10551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10552 (eval "$ac_link") 2>conftest.er1
10553 ac_status=$?
10554 grep -v '^ *+' conftest.er1 >conftest.err
10555 rm -f conftest.er1
10556 cat conftest.err >&5
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); } && {
10559 test -z "$ac_c_werror_flag" ||
10560 test ! -s conftest.err
10561 } && test -s conftest$ac_exeext &&
10562 $as_test_x conftest$ac_exeext; then
10563 ac_cv_lib_dnet_dnet_ntoa=yes
10564 else
10565 echo "$as_me: failed program was:" >&5
10566 sed 's/^/| /' conftest.$ac_ext >&5
10568 ac_cv_lib_dnet_dnet_ntoa=no
10571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10572 conftest$ac_exeext conftest.$ac_ext
10573 LIBS=$ac_check_lib_save_LIBS
10575 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10576 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10577 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10578 cat >>confdefs.h <<_ACEOF
10579 #define HAVE_LIBDNET 1
10580 _ACEOF
10582 LIBS="-ldnet $LIBS"
10587 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10588 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10589 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10590 echo $ECHO_N "(cached) $ECHO_C" >&6
10591 else
10592 ac_check_lib_save_LIBS=$LIBS
10593 LIBS="-lXbsd $LIBS"
10594 cat >conftest.$ac_ext <<_ACEOF
10595 /* confdefs.h. */
10596 _ACEOF
10597 cat confdefs.h >>conftest.$ac_ext
10598 cat >>conftest.$ac_ext <<_ACEOF
10599 /* end confdefs.h. */
10603 main ()
10605 return main ();
10607 return 0;
10609 _ACEOF
10610 rm -f conftest.$ac_objext conftest$ac_exeext
10611 if { (ac_try="$ac_link"
10612 case "(($ac_try" in
10613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10614 *) ac_try_echo=$ac_try;;
10615 esac
10616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10617 (eval "$ac_link") 2>conftest.er1
10618 ac_status=$?
10619 grep -v '^ *+' conftest.er1 >conftest.err
10620 rm -f conftest.er1
10621 cat conftest.err >&5
10622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623 (exit $ac_status); } && {
10624 test -z "$ac_c_werror_flag" ||
10625 test ! -s conftest.err
10626 } && test -s conftest$ac_exeext &&
10627 $as_test_x conftest$ac_exeext; then
10628 ac_cv_lib_Xbsd_main=yes
10629 else
10630 echo "$as_me: failed program was:" >&5
10631 sed 's/^/| /' conftest.$ac_ext >&5
10633 ac_cv_lib_Xbsd_main=no
10636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10637 conftest$ac_exeext conftest.$ac_ext
10638 LIBS=$ac_check_lib_save_LIBS
10640 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10641 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10642 if test $ac_cv_lib_Xbsd_main = yes; then
10643 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10648 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10649 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10650 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10651 echo $ECHO_N "(cached) $ECHO_C" >&6
10652 else
10653 ac_check_lib_save_LIBS=$LIBS
10654 LIBS="-lpthreads $LIBS"
10655 cat >conftest.$ac_ext <<_ACEOF
10656 /* confdefs.h. */
10657 _ACEOF
10658 cat confdefs.h >>conftest.$ac_ext
10659 cat >>conftest.$ac_ext <<_ACEOF
10660 /* end confdefs.h. */
10662 /* Override any GCC internal prototype to avoid an error.
10663 Use char because int might match the return type of a GCC
10664 builtin and then its argument prototype would still apply. */
10665 #ifdef __cplusplus
10666 extern "C"
10667 #endif
10668 char cma_open ();
10670 main ()
10672 return cma_open ();
10674 return 0;
10676 _ACEOF
10677 rm -f conftest.$ac_objext conftest$ac_exeext
10678 if { (ac_try="$ac_link"
10679 case "(($ac_try" in
10680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10681 *) ac_try_echo=$ac_try;;
10682 esac
10683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10684 (eval "$ac_link") 2>conftest.er1
10685 ac_status=$?
10686 grep -v '^ *+' conftest.er1 >conftest.err
10687 rm -f conftest.er1
10688 cat conftest.err >&5
10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); } && {
10691 test -z "$ac_c_werror_flag" ||
10692 test ! -s conftest.err
10693 } && test -s conftest$ac_exeext &&
10694 $as_test_x conftest$ac_exeext; then
10695 ac_cv_lib_pthreads_cma_open=yes
10696 else
10697 echo "$as_me: failed program was:" >&5
10698 sed 's/^/| /' conftest.$ac_ext >&5
10700 ac_cv_lib_pthreads_cma_open=no
10703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10704 conftest$ac_exeext conftest.$ac_ext
10705 LIBS=$ac_check_lib_save_LIBS
10707 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10708 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10709 if test $ac_cv_lib_pthreads_cma_open = yes; then
10710 cat >>confdefs.h <<_ACEOF
10711 #define HAVE_LIBPTHREADS 1
10712 _ACEOF
10714 LIBS="-lpthreads $LIBS"
10719 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10720 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10721 if test -d /usr/X386/include; then
10722 HAVE_XFREE386=yes
10723 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10724 else
10725 HAVE_XFREE386=no
10727 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10728 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10731 case ${host_os} in
10732 aix*)
10733 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10734 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10735 if test "${gdb_cv_bigtoc+set}" = set; then
10736 echo $ECHO_N "(cached) $ECHO_C" >&6
10737 else
10739 case $GCC in
10740 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10741 *) gdb_cv_bigtoc=-bbigtoc ;;
10742 esac
10744 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10745 cat >conftest.$ac_ext <<_ACEOF
10746 /* confdefs.h. */
10747 _ACEOF
10748 cat confdefs.h >>conftest.$ac_ext
10749 cat >>conftest.$ac_ext <<_ACEOF
10750 /* end confdefs.h. */
10753 main ()
10755 int i;
10757 return 0;
10759 _ACEOF
10760 rm -f conftest.$ac_objext conftest$ac_exeext
10761 if { (ac_try="$ac_link"
10762 case "(($ac_try" in
10763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10764 *) ac_try_echo=$ac_try;;
10765 esac
10766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10767 (eval "$ac_link") 2>conftest.er1
10768 ac_status=$?
10769 grep -v '^ *+' conftest.er1 >conftest.err
10770 rm -f conftest.er1
10771 cat conftest.err >&5
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); } && {
10774 test -z "$ac_c_werror_flag" ||
10775 test ! -s conftest.err
10776 } && test -s conftest$ac_exeext &&
10777 $as_test_x conftest$ac_exeext; then
10779 else
10780 echo "$as_me: failed program was:" >&5
10781 sed 's/^/| /' conftest.$ac_ext >&5
10783 gdb_cv_bigtoc=
10786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10787 conftest$ac_exeext conftest.$ac_ext
10790 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10791 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10793 esac
10795 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10796 # used for the tests that follow. We set them back to REAL_CFLAGS and
10797 # REAL_CPPFLAGS later on.
10799 REAL_CPPFLAGS="$CPPFLAGS"
10801 if test "${HAVE_X11}" = "yes"; then
10802 DEFS="$C_SWITCH_X_SITE $DEFS"
10803 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10804 LIBS="$LIBX $LIBS"
10805 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10806 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10808 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10809 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10810 # but it's more convenient here to set LD_RUN_PATH
10811 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10812 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10813 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10814 export LD_RUN_PATH
10817 if test "${opsys}" = "gnu-linux"; then
10818 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10819 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10820 cat >conftest.$ac_ext <<_ACEOF
10821 /* confdefs.h. */
10822 _ACEOF
10823 cat confdefs.h >>conftest.$ac_ext
10824 cat >>conftest.$ac_ext <<_ACEOF
10825 /* end confdefs.h. */
10828 main ()
10830 XOpenDisplay ("foo");
10832 return 0;
10834 _ACEOF
10835 rm -f conftest.$ac_objext conftest$ac_exeext
10836 if { (ac_try="$ac_link"
10837 case "(($ac_try" in
10838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10839 *) ac_try_echo=$ac_try;;
10840 esac
10841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10842 (eval "$ac_link") 2>conftest.er1
10843 ac_status=$?
10844 grep -v '^ *+' conftest.er1 >conftest.err
10845 rm -f conftest.er1
10846 cat conftest.err >&5
10847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10848 (exit $ac_status); } && {
10849 test -z "$ac_c_werror_flag" ||
10850 test ! -s conftest.err
10851 } && test -s conftest$ac_exeext &&
10852 $as_test_x conftest$ac_exeext; then
10853 xlinux_first_failure=no
10854 else
10855 echo "$as_me: failed program was:" >&5
10856 sed 's/^/| /' conftest.$ac_ext >&5
10858 xlinux_first_failure=yes
10861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10862 conftest$ac_exeext conftest.$ac_ext
10863 if test "${xlinux_first_failure}" = "yes"; then
10864 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10865 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10866 OLD_CPPFLAGS="$CPPFLAGS"
10867 OLD_LIBS="$LIBS"
10868 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10869 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10870 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10871 LIBS="$LIBS -b i486-linuxaout"
10872 cat >conftest.$ac_ext <<_ACEOF
10873 /* confdefs.h. */
10874 _ACEOF
10875 cat confdefs.h >>conftest.$ac_ext
10876 cat >>conftest.$ac_ext <<_ACEOF
10877 /* end confdefs.h. */
10880 main ()
10882 XOpenDisplay ("foo");
10884 return 0;
10886 _ACEOF
10887 rm -f conftest.$ac_objext conftest$ac_exeext
10888 if { (ac_try="$ac_link"
10889 case "(($ac_try" in
10890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10891 *) ac_try_echo=$ac_try;;
10892 esac
10893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10894 (eval "$ac_link") 2>conftest.er1
10895 ac_status=$?
10896 grep -v '^ *+' conftest.er1 >conftest.err
10897 rm -f conftest.er1
10898 cat conftest.err >&5
10899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900 (exit $ac_status); } && {
10901 test -z "$ac_c_werror_flag" ||
10902 test ! -s conftest.err
10903 } && test -s conftest$ac_exeext &&
10904 $as_test_x conftest$ac_exeext; then
10905 xlinux_second_failure=no
10906 else
10907 echo "$as_me: failed program was:" >&5
10908 sed 's/^/| /' conftest.$ac_ext >&5
10910 xlinux_second_failure=yes
10913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10914 conftest$ac_exeext conftest.$ac_ext
10915 if test "${xlinux_second_failure}" = "yes"; then
10916 # If we get the same failure with -b, there is no use adding -b.
10917 # So take it out. This plays safe.
10918 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10919 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10920 CPPFLAGS="$OLD_CPPFLAGS"
10921 LIBS="$OLD_LIBS"
10922 { echo "$as_me:$LINENO: result: no" >&5
10923 echo "${ECHO_T}no" >&6; }
10924 else
10925 { echo "$as_me:$LINENO: result: yes" >&5
10926 echo "${ECHO_T}yes" >&6; }
10928 else
10929 { echo "$as_me:$LINENO: result: no" >&5
10930 echo "${ECHO_T}no" >&6; }
10934 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10935 # header files included from there.
10936 { echo "$as_me:$LINENO: checking for Xkb" >&5
10937 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10938 cat >conftest.$ac_ext <<_ACEOF
10939 /* confdefs.h. */
10940 _ACEOF
10941 cat confdefs.h >>conftest.$ac_ext
10942 cat >>conftest.$ac_ext <<_ACEOF
10943 /* end confdefs.h. */
10944 #include <X11/Xlib.h>
10945 #include <X11/XKBlib.h>
10947 main ()
10949 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10951 return 0;
10953 _ACEOF
10954 rm -f conftest.$ac_objext conftest$ac_exeext
10955 if { (ac_try="$ac_link"
10956 case "(($ac_try" in
10957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10958 *) ac_try_echo=$ac_try;;
10959 esac
10960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10961 (eval "$ac_link") 2>conftest.er1
10962 ac_status=$?
10963 grep -v '^ *+' conftest.er1 >conftest.err
10964 rm -f conftest.er1
10965 cat conftest.err >&5
10966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967 (exit $ac_status); } && {
10968 test -z "$ac_c_werror_flag" ||
10969 test ! -s conftest.err
10970 } && test -s conftest$ac_exeext &&
10971 $as_test_x conftest$ac_exeext; then
10972 emacs_xkb=yes
10973 else
10974 echo "$as_me: failed program was:" >&5
10975 sed 's/^/| /' conftest.$ac_ext >&5
10977 emacs_xkb=no
10980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10981 conftest$ac_exeext conftest.$ac_ext
10982 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10983 echo "${ECHO_T}$emacs_xkb" >&6; }
10984 if test $emacs_xkb = yes; then
10986 cat >>confdefs.h <<\_ACEOF
10987 #define HAVE_XKBGETKEYBOARD 1
10988 _ACEOF
10996 for ac_func in XrmSetDatabase XScreenResourceString \
10997 XScreenNumberOfScreen XSetWMProtocols
10999 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11000 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11001 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11002 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11003 echo $ECHO_N "(cached) $ECHO_C" >&6
11004 else
11005 cat >conftest.$ac_ext <<_ACEOF
11006 /* confdefs.h. */
11007 _ACEOF
11008 cat confdefs.h >>conftest.$ac_ext
11009 cat >>conftest.$ac_ext <<_ACEOF
11010 /* end confdefs.h. */
11011 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11012 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11013 #define $ac_func innocuous_$ac_func
11015 /* System header to define __stub macros and hopefully few prototypes,
11016 which can conflict with char $ac_func (); below.
11017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11018 <limits.h> exists even on freestanding compilers. */
11020 #ifdef __STDC__
11021 # include <limits.h>
11022 #else
11023 # include <assert.h>
11024 #endif
11026 #undef $ac_func
11028 /* Override any GCC internal prototype to avoid an error.
11029 Use char because int might match the return type of a GCC
11030 builtin and then its argument prototype would still apply. */
11031 #ifdef __cplusplus
11032 extern "C"
11033 #endif
11034 char $ac_func ();
11035 /* The GNU C library defines this for functions which it implements
11036 to always fail with ENOSYS. Some functions are actually named
11037 something starting with __ and the normal name is an alias. */
11038 #if defined __stub_$ac_func || defined __stub___$ac_func
11039 choke me
11040 #endif
11043 main ()
11045 return $ac_func ();
11047 return 0;
11049 _ACEOF
11050 rm -f conftest.$ac_objext conftest$ac_exeext
11051 if { (ac_try="$ac_link"
11052 case "(($ac_try" in
11053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11054 *) ac_try_echo=$ac_try;;
11055 esac
11056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11057 (eval "$ac_link") 2>conftest.er1
11058 ac_status=$?
11059 grep -v '^ *+' conftest.er1 >conftest.err
11060 rm -f conftest.er1
11061 cat conftest.err >&5
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); } && {
11064 test -z "$ac_c_werror_flag" ||
11065 test ! -s conftest.err
11066 } && test -s conftest$ac_exeext &&
11067 $as_test_x conftest$ac_exeext; then
11068 eval "$as_ac_var=yes"
11069 else
11070 echo "$as_me: failed program was:" >&5
11071 sed 's/^/| /' conftest.$ac_ext >&5
11073 eval "$as_ac_var=no"
11076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11077 conftest$ac_exeext conftest.$ac_ext
11079 ac_res=`eval echo '${'$as_ac_var'}'`
11080 { echo "$as_me:$LINENO: result: $ac_res" >&5
11081 echo "${ECHO_T}$ac_res" >&6; }
11082 if test `eval echo '${'$as_ac_var'}'` = yes; then
11083 cat >>confdefs.h <<_ACEOF
11084 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11085 _ACEOF
11088 done
11092 if test "${window_system}" = "x11"; then
11093 { echo "$as_me:$LINENO: checking X11 version 6" >&5
11094 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
11095 if test "${emacs_cv_x11_version_6+set}" = set; then
11096 echo $ECHO_N "(cached) $ECHO_C" >&6
11097 else
11098 cat >conftest.$ac_ext <<_ACEOF
11099 /* confdefs.h. */
11100 _ACEOF
11101 cat confdefs.h >>conftest.$ac_ext
11102 cat >>conftest.$ac_ext <<_ACEOF
11103 /* end confdefs.h. */
11104 #include <X11/Xlib.h>
11106 main ()
11108 #if XlibSpecificationRelease < 6
11109 fail;
11110 #endif
11113 return 0;
11115 _ACEOF
11116 rm -f conftest.$ac_objext conftest$ac_exeext
11117 if { (ac_try="$ac_link"
11118 case "(($ac_try" in
11119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11120 *) ac_try_echo=$ac_try;;
11121 esac
11122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11123 (eval "$ac_link") 2>conftest.er1
11124 ac_status=$?
11125 grep -v '^ *+' conftest.er1 >conftest.err
11126 rm -f conftest.er1
11127 cat conftest.err >&5
11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); } && {
11130 test -z "$ac_c_werror_flag" ||
11131 test ! -s conftest.err
11132 } && test -s conftest$ac_exeext &&
11133 $as_test_x conftest$ac_exeext; then
11134 emacs_cv_x11_version_6=yes
11135 else
11136 echo "$as_me: failed program was:" >&5
11137 sed 's/^/| /' conftest.$ac_ext >&5
11139 emacs_cv_x11_version_6=no
11142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11143 conftest$ac_exeext conftest.$ac_ext
11146 if test $emacs_cv_x11_version_6 = yes; then
11147 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11148 echo "${ECHO_T}6 or newer" >&6; }
11150 cat >>confdefs.h <<\_ACEOF
11151 #define HAVE_X11R6 1
11152 _ACEOF
11154 else
11155 { echo "$as_me:$LINENO: result: before 6" >&5
11156 echo "${ECHO_T}before 6" >&6; }
11161 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11162 HAVE_RSVG=no
11163 if test "${HAVE_X11}" = "yes" || test "${HAVE_CARBON}" = "yes"; then
11164 if test "${with_rsvg}" != "no"; then
11165 if test "X${with_pkg_config_prog}" != X; then
11166 PKG_CONFIG="${with_pkg_config_prog}"
11169 RSVG_REQUIRED=2.0.0
11170 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11173 succeeded=no
11175 if test -z "$PKG_CONFIG"; then
11176 # Extract the first word of "pkg-config", so it can be a program name with args.
11177 set dummy pkg-config; ac_word=$2
11178 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11180 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11181 echo $ECHO_N "(cached) $ECHO_C" >&6
11182 else
11183 case $PKG_CONFIG in
11184 [\\/]* | ?:[\\/]*)
11185 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11189 for as_dir in $PATH
11191 IFS=$as_save_IFS
11192 test -z "$as_dir" && as_dir=.
11193 for ac_exec_ext in '' $ac_executable_extensions; do
11194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11195 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11197 break 2
11199 done
11200 done
11201 IFS=$as_save_IFS
11203 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11205 esac
11207 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11208 if test -n "$PKG_CONFIG"; then
11209 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11210 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11211 else
11212 { echo "$as_me:$LINENO: result: no" >&5
11213 echo "${ECHO_T}no" >&6; }
11219 if test "$PKG_CONFIG" = "no" ; then
11221 else
11222 PKG_CONFIG_MIN_VERSION=0.9.0
11223 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11224 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11225 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
11227 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11228 { echo "$as_me:$LINENO: result: yes" >&5
11229 echo "${ECHO_T}yes" >&6; }
11230 succeeded=yes
11232 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11233 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
11234 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11235 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11236 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
11238 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11239 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
11240 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11241 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11242 echo "${ECHO_T}$RSVG_LIBS" >&6; }
11243 else
11244 { echo "$as_me:$LINENO: result: no" >&5
11245 echo "${ECHO_T}no" >&6; }
11246 RSVG_CFLAGS=""
11247 RSVG_LIBS=""
11248 ## If we have a custom action on failure, don't print errors, but
11249 ## do set a variable so people can do so.
11250 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11256 else
11257 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11258 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11262 if test $succeeded = yes; then
11264 else
11271 if test ".${RSVG_CFLAGS}" != "."; then
11272 HAVE_RSVG=yes
11274 cat >>confdefs.h <<\_ACEOF
11275 #define HAVE_RSVG 1
11276 _ACEOF
11278 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11279 LIBS="$RSVG_LIBS $LIBS"
11285 HAVE_GTK=no
11286 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
11287 USE_X_TOOLKIT=none
11289 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk" || \
11290 test "$USE_X_TOOLKIT" = "maybe"; then
11291 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
11292 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
11293 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
11294 { (exit 1); exit 1; }; };
11296 GLIB_REQUIRED=2.6
11297 GTK_REQUIRED=2.6
11298 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11300 if test "X${with_pkg_config_prog}" != X; then
11301 PKG_CONFIG="${with_pkg_config_prog}"
11304 succeeded=no
11306 if test -z "$PKG_CONFIG"; then
11307 # Extract the first word of "pkg-config", so it can be a program name with args.
11308 set dummy pkg-config; ac_word=$2
11309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11311 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11312 echo $ECHO_N "(cached) $ECHO_C" >&6
11313 else
11314 case $PKG_CONFIG in
11315 [\\/]* | ?:[\\/]*)
11316 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11320 for as_dir in $PATH
11322 IFS=$as_save_IFS
11323 test -z "$as_dir" && as_dir=.
11324 for ac_exec_ext in '' $ac_executable_extensions; do
11325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11326 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11328 break 2
11330 done
11331 done
11332 IFS=$as_save_IFS
11334 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11336 esac
11338 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11339 if test -n "$PKG_CONFIG"; then
11340 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11341 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11342 else
11343 { echo "$as_me:$LINENO: result: no" >&5
11344 echo "${ECHO_T}no" >&6; }
11350 if test "$PKG_CONFIG" = "no" ; then
11351 pkg_check_gtk=no
11352 else
11353 PKG_CONFIG_MIN_VERSION=0.9.0
11354 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11355 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11356 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11358 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11359 { echo "$as_me:$LINENO: result: yes" >&5
11360 echo "${ECHO_T}yes" >&6; }
11361 succeeded=yes
11363 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11364 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11365 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11366 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11367 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11369 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11370 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11371 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11372 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11373 echo "${ECHO_T}$GTK_LIBS" >&6; }
11374 else
11375 { echo "$as_me:$LINENO: result: no" >&5
11376 echo "${ECHO_T}no" >&6; }
11377 GTK_CFLAGS=""
11378 GTK_LIBS=""
11379 ## If we have a custom action on failure, don't print errors, but
11380 ## do set a variable so people can do so.
11381 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11387 else
11388 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11389 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11393 if test $succeeded = yes; then
11394 pkg_check_gtk=yes
11395 else
11396 pkg_check_gtk=no
11399 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11400 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11401 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11402 { (exit 1); exit 1; }; }
11407 if test x"$pkg_check_gtk" = xyes; then
11411 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11412 CFLAGS="$CFLAGS $GTK_CFLAGS"
11413 LIBS="$GTK_LIBS $LIBS"
11414 GTK_COMPILES=no
11416 for ac_func in gtk_main
11418 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11419 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11420 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11421 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11422 echo $ECHO_N "(cached) $ECHO_C" >&6
11423 else
11424 cat >conftest.$ac_ext <<_ACEOF
11425 /* confdefs.h. */
11426 _ACEOF
11427 cat confdefs.h >>conftest.$ac_ext
11428 cat >>conftest.$ac_ext <<_ACEOF
11429 /* end confdefs.h. */
11430 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11432 #define $ac_func innocuous_$ac_func
11434 /* System header to define __stub macros and hopefully few prototypes,
11435 which can conflict with char $ac_func (); below.
11436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11437 <limits.h> exists even on freestanding compilers. */
11439 #ifdef __STDC__
11440 # include <limits.h>
11441 #else
11442 # include <assert.h>
11443 #endif
11445 #undef $ac_func
11447 /* Override any GCC internal prototype to avoid an error.
11448 Use char because int might match the return type of a GCC
11449 builtin and then its argument prototype would still apply. */
11450 #ifdef __cplusplus
11451 extern "C"
11452 #endif
11453 char $ac_func ();
11454 /* The GNU C library defines this for functions which it implements
11455 to always fail with ENOSYS. Some functions are actually named
11456 something starting with __ and the normal name is an alias. */
11457 #if defined __stub_$ac_func || defined __stub___$ac_func
11458 choke me
11459 #endif
11462 main ()
11464 return $ac_func ();
11466 return 0;
11468 _ACEOF
11469 rm -f conftest.$ac_objext conftest$ac_exeext
11470 if { (ac_try="$ac_link"
11471 case "(($ac_try" in
11472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11473 *) ac_try_echo=$ac_try;;
11474 esac
11475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11476 (eval "$ac_link") 2>conftest.er1
11477 ac_status=$?
11478 grep -v '^ *+' conftest.er1 >conftest.err
11479 rm -f conftest.er1
11480 cat conftest.err >&5
11481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482 (exit $ac_status); } && {
11483 test -z "$ac_c_werror_flag" ||
11484 test ! -s conftest.err
11485 } && test -s conftest$ac_exeext &&
11486 $as_test_x conftest$ac_exeext; then
11487 eval "$as_ac_var=yes"
11488 else
11489 echo "$as_me: failed program was:" >&5
11490 sed 's/^/| /' conftest.$ac_ext >&5
11492 eval "$as_ac_var=no"
11495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11496 conftest$ac_exeext conftest.$ac_ext
11498 ac_res=`eval echo '${'$as_ac_var'}'`
11499 { echo "$as_me:$LINENO: result: $ac_res" >&5
11500 echo "${ECHO_T}$ac_res" >&6; }
11501 if test `eval echo '${'$as_ac_var'}'` = yes; then
11502 cat >>confdefs.h <<_ACEOF
11503 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11504 _ACEOF
11505 GTK_COMPILES=yes
11507 done
11509 if test "${GTK_COMPILES}" != "yes"; then
11510 if test "$USE_X_TOOLKIT" != "maybe"; then
11511 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11512 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11513 { (exit 1); exit 1; }; };
11515 else
11516 HAVE_GTK=yes
11518 cat >>confdefs.h <<\_ACEOF
11519 #define HAVE_GTK 1
11520 _ACEOF
11522 USE_X_TOOLKIT=none
11528 if test "${HAVE_GTK}" = "yes"; then
11530 if test "$with_toolkit_scroll_bars" != no; then
11531 with_toolkit_scroll_bars=yes
11534 HAVE_GTK_MULTIDISPLAY=no
11536 for ac_func in gdk_display_open
11538 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11539 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11540 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11541 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11542 echo $ECHO_N "(cached) $ECHO_C" >&6
11543 else
11544 cat >conftest.$ac_ext <<_ACEOF
11545 /* confdefs.h. */
11546 _ACEOF
11547 cat confdefs.h >>conftest.$ac_ext
11548 cat >>conftest.$ac_ext <<_ACEOF
11549 /* end confdefs.h. */
11550 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11551 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11552 #define $ac_func innocuous_$ac_func
11554 /* System header to define __stub macros and hopefully few prototypes,
11555 which can conflict with char $ac_func (); below.
11556 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11557 <limits.h> exists even on freestanding compilers. */
11559 #ifdef __STDC__
11560 # include <limits.h>
11561 #else
11562 # include <assert.h>
11563 #endif
11565 #undef $ac_func
11567 /* Override any GCC internal prototype to avoid an error.
11568 Use char because int might match the return type of a GCC
11569 builtin and then its argument prototype would still apply. */
11570 #ifdef __cplusplus
11571 extern "C"
11572 #endif
11573 char $ac_func ();
11574 /* The GNU C library defines this for functions which it implements
11575 to always fail with ENOSYS. Some functions are actually named
11576 something starting with __ and the normal name is an alias. */
11577 #if defined __stub_$ac_func || defined __stub___$ac_func
11578 choke me
11579 #endif
11582 main ()
11584 return $ac_func ();
11586 return 0;
11588 _ACEOF
11589 rm -f conftest.$ac_objext conftest$ac_exeext
11590 if { (ac_try="$ac_link"
11591 case "(($ac_try" in
11592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11593 *) ac_try_echo=$ac_try;;
11594 esac
11595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11596 (eval "$ac_link") 2>conftest.er1
11597 ac_status=$?
11598 grep -v '^ *+' conftest.er1 >conftest.err
11599 rm -f conftest.er1
11600 cat conftest.err >&5
11601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602 (exit $ac_status); } && {
11603 test -z "$ac_c_werror_flag" ||
11604 test ! -s conftest.err
11605 } && test -s conftest$ac_exeext &&
11606 $as_test_x conftest$ac_exeext; then
11607 eval "$as_ac_var=yes"
11608 else
11609 echo "$as_me: failed program was:" >&5
11610 sed 's/^/| /' conftest.$ac_ext >&5
11612 eval "$as_ac_var=no"
11615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11616 conftest$ac_exeext conftest.$ac_ext
11618 ac_res=`eval echo '${'$as_ac_var'}'`
11619 { echo "$as_me:$LINENO: result: $ac_res" >&5
11620 echo "${ECHO_T}$ac_res" >&6; }
11621 if test `eval echo '${'$as_ac_var'}'` = yes; then
11622 cat >>confdefs.h <<_ACEOF
11623 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11624 _ACEOF
11625 HAVE_GTK_MULTIDISPLAY=yes
11627 done
11629 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11631 cat >>confdefs.h <<\_ACEOF
11632 #define HAVE_GTK_MULTIDISPLAY 1
11633 _ACEOF
11637 HAVE_GTK_FILE_SELECTION=no
11639 for ac_func in gtk_file_selection_new
11641 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11642 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11644 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11645 echo $ECHO_N "(cached) $ECHO_C" >&6
11646 else
11647 cat >conftest.$ac_ext <<_ACEOF
11648 /* confdefs.h. */
11649 _ACEOF
11650 cat confdefs.h >>conftest.$ac_ext
11651 cat >>conftest.$ac_ext <<_ACEOF
11652 /* end confdefs.h. */
11653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11655 #define $ac_func innocuous_$ac_func
11657 /* System header to define __stub macros and hopefully few prototypes,
11658 which can conflict with char $ac_func (); below.
11659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11660 <limits.h> exists even on freestanding compilers. */
11662 #ifdef __STDC__
11663 # include <limits.h>
11664 #else
11665 # include <assert.h>
11666 #endif
11668 #undef $ac_func
11670 /* Override any GCC internal prototype to avoid an error.
11671 Use char because int might match the return type of a GCC
11672 builtin and then its argument prototype would still apply. */
11673 #ifdef __cplusplus
11674 extern "C"
11675 #endif
11676 char $ac_func ();
11677 /* The GNU C library defines this for functions which it implements
11678 to always fail with ENOSYS. Some functions are actually named
11679 something starting with __ and the normal name is an alias. */
11680 #if defined __stub_$ac_func || defined __stub___$ac_func
11681 choke me
11682 #endif
11685 main ()
11687 return $ac_func ();
11689 return 0;
11691 _ACEOF
11692 rm -f conftest.$ac_objext conftest$ac_exeext
11693 if { (ac_try="$ac_link"
11694 case "(($ac_try" in
11695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11696 *) ac_try_echo=$ac_try;;
11697 esac
11698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11699 (eval "$ac_link") 2>conftest.er1
11700 ac_status=$?
11701 grep -v '^ *+' conftest.er1 >conftest.err
11702 rm -f conftest.er1
11703 cat conftest.err >&5
11704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705 (exit $ac_status); } && {
11706 test -z "$ac_c_werror_flag" ||
11707 test ! -s conftest.err
11708 } && test -s conftest$ac_exeext &&
11709 $as_test_x conftest$ac_exeext; then
11710 eval "$as_ac_var=yes"
11711 else
11712 echo "$as_me: failed program was:" >&5
11713 sed 's/^/| /' conftest.$ac_ext >&5
11715 eval "$as_ac_var=no"
11718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11719 conftest$ac_exeext conftest.$ac_ext
11721 ac_res=`eval echo '${'$as_ac_var'}'`
11722 { echo "$as_me:$LINENO: result: $ac_res" >&5
11723 echo "${ECHO_T}$ac_res" >&6; }
11724 if test `eval echo '${'$as_ac_var'}'` = yes; then
11725 cat >>confdefs.h <<_ACEOF
11726 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11727 _ACEOF
11728 HAVE_GTK_FILE_SELECTION=yes
11730 done
11733 HAVE_GTK_FILE_CHOOSER=no
11735 for ac_func in gtk_file_chooser_dialog_new
11737 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11738 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11739 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11740 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11741 echo $ECHO_N "(cached) $ECHO_C" >&6
11742 else
11743 cat >conftest.$ac_ext <<_ACEOF
11744 /* confdefs.h. */
11745 _ACEOF
11746 cat confdefs.h >>conftest.$ac_ext
11747 cat >>conftest.$ac_ext <<_ACEOF
11748 /* end confdefs.h. */
11749 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11751 #define $ac_func innocuous_$ac_func
11753 /* System header to define __stub macros and hopefully few prototypes,
11754 which can conflict with char $ac_func (); below.
11755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11756 <limits.h> exists even on freestanding compilers. */
11758 #ifdef __STDC__
11759 # include <limits.h>
11760 #else
11761 # include <assert.h>
11762 #endif
11764 #undef $ac_func
11766 /* Override any GCC internal prototype to avoid an error.
11767 Use char because int might match the return type of a GCC
11768 builtin and then its argument prototype would still apply. */
11769 #ifdef __cplusplus
11770 extern "C"
11771 #endif
11772 char $ac_func ();
11773 /* The GNU C library defines this for functions which it implements
11774 to always fail with ENOSYS. Some functions are actually named
11775 something starting with __ and the normal name is an alias. */
11776 #if defined __stub_$ac_func || defined __stub___$ac_func
11777 choke me
11778 #endif
11781 main ()
11783 return $ac_func ();
11785 return 0;
11787 _ACEOF
11788 rm -f conftest.$ac_objext conftest$ac_exeext
11789 if { (ac_try="$ac_link"
11790 case "(($ac_try" in
11791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11792 *) ac_try_echo=$ac_try;;
11793 esac
11794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11795 (eval "$ac_link") 2>conftest.er1
11796 ac_status=$?
11797 grep -v '^ *+' conftest.er1 >conftest.err
11798 rm -f conftest.er1
11799 cat conftest.err >&5
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); } && {
11802 test -z "$ac_c_werror_flag" ||
11803 test ! -s conftest.err
11804 } && test -s conftest$ac_exeext &&
11805 $as_test_x conftest$ac_exeext; then
11806 eval "$as_ac_var=yes"
11807 else
11808 echo "$as_me: failed program was:" >&5
11809 sed 's/^/| /' conftest.$ac_ext >&5
11811 eval "$as_ac_var=no"
11814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11815 conftest$ac_exeext conftest.$ac_ext
11817 ac_res=`eval echo '${'$as_ac_var'}'`
11818 { echo "$as_me:$LINENO: result: $ac_res" >&5
11819 echo "${ECHO_T}$ac_res" >&6; }
11820 if test `eval echo '${'$as_ac_var'}'` = yes; then
11821 cat >>confdefs.h <<_ACEOF
11822 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11823 _ACEOF
11824 HAVE_GTK_FILE_CHOOSER=yes
11826 done
11829 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11830 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11832 cat >>confdefs.h <<\_ACEOF
11833 #define HAVE_GTK_FILE_BOTH 1
11834 _ACEOF
11838 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11839 HAVE_GTK_AND_PTHREAD=no
11841 for ac_header in pthread.h
11843 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11845 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11848 echo $ECHO_N "(cached) $ECHO_C" >&6
11850 ac_res=`eval echo '${'$as_ac_Header'}'`
11851 { echo "$as_me:$LINENO: result: $ac_res" >&5
11852 echo "${ECHO_T}$ac_res" >&6; }
11853 else
11854 # Is the header compilable?
11855 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11856 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11857 cat >conftest.$ac_ext <<_ACEOF
11858 /* confdefs.h. */
11859 _ACEOF
11860 cat confdefs.h >>conftest.$ac_ext
11861 cat >>conftest.$ac_ext <<_ACEOF
11862 /* end confdefs.h. */
11863 $ac_includes_default
11864 #include <$ac_header>
11865 _ACEOF
11866 rm -f conftest.$ac_objext
11867 if { (ac_try="$ac_compile"
11868 case "(($ac_try" in
11869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11870 *) ac_try_echo=$ac_try;;
11871 esac
11872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11873 (eval "$ac_compile") 2>conftest.er1
11874 ac_status=$?
11875 grep -v '^ *+' conftest.er1 >conftest.err
11876 rm -f conftest.er1
11877 cat conftest.err >&5
11878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879 (exit $ac_status); } && {
11880 test -z "$ac_c_werror_flag" ||
11881 test ! -s conftest.err
11882 } && test -s conftest.$ac_objext; then
11883 ac_header_compiler=yes
11884 else
11885 echo "$as_me: failed program was:" >&5
11886 sed 's/^/| /' conftest.$ac_ext >&5
11888 ac_header_compiler=no
11891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11892 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11893 echo "${ECHO_T}$ac_header_compiler" >&6; }
11895 # Is the header present?
11896 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11897 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11898 cat >conftest.$ac_ext <<_ACEOF
11899 /* confdefs.h. */
11900 _ACEOF
11901 cat confdefs.h >>conftest.$ac_ext
11902 cat >>conftest.$ac_ext <<_ACEOF
11903 /* end confdefs.h. */
11904 #include <$ac_header>
11905 _ACEOF
11906 if { (ac_try="$ac_cpp conftest.$ac_ext"
11907 case "(($ac_try" in
11908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11909 *) ac_try_echo=$ac_try;;
11910 esac
11911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11912 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11913 ac_status=$?
11914 grep -v '^ *+' conftest.er1 >conftest.err
11915 rm -f conftest.er1
11916 cat conftest.err >&5
11917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918 (exit $ac_status); } >/dev/null && {
11919 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11920 test ! -s conftest.err
11921 }; then
11922 ac_header_preproc=yes
11923 else
11924 echo "$as_me: failed program was:" >&5
11925 sed 's/^/| /' conftest.$ac_ext >&5
11927 ac_header_preproc=no
11930 rm -f conftest.err conftest.$ac_ext
11931 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11932 echo "${ECHO_T}$ac_header_preproc" >&6; }
11934 # So? What about this header?
11935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11936 yes:no: )
11937 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11938 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11940 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11941 ac_header_preproc=yes
11943 no:yes:* )
11944 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11945 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11946 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11947 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11948 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11949 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11950 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11951 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11953 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11954 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11955 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11958 esac
11959 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11962 echo $ECHO_N "(cached) $ECHO_C" >&6
11963 else
11964 eval "$as_ac_Header=\$ac_header_preproc"
11966 ac_res=`eval echo '${'$as_ac_Header'}'`
11967 { echo "$as_me:$LINENO: result: $ac_res" >&5
11968 echo "${ECHO_T}$ac_res" >&6; }
11971 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11972 cat >>confdefs.h <<_ACEOF
11973 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11974 _ACEOF
11978 done
11980 if test "$ac_cv_header_pthread_h"; then
11981 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11982 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11983 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11984 echo $ECHO_N "(cached) $ECHO_C" >&6
11985 else
11986 ac_check_lib_save_LIBS=$LIBS
11987 LIBS="-lpthread $LIBS"
11988 cat >conftest.$ac_ext <<_ACEOF
11989 /* confdefs.h. */
11990 _ACEOF
11991 cat confdefs.h >>conftest.$ac_ext
11992 cat >>conftest.$ac_ext <<_ACEOF
11993 /* end confdefs.h. */
11995 /* Override any GCC internal prototype to avoid an error.
11996 Use char because int might match the return type of a GCC
11997 builtin and then its argument prototype would still apply. */
11998 #ifdef __cplusplus
11999 extern "C"
12000 #endif
12001 char pthread_self ();
12003 main ()
12005 return pthread_self ();
12007 return 0;
12009 _ACEOF
12010 rm -f conftest.$ac_objext conftest$ac_exeext
12011 if { (ac_try="$ac_link"
12012 case "(($ac_try" in
12013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12014 *) ac_try_echo=$ac_try;;
12015 esac
12016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12017 (eval "$ac_link") 2>conftest.er1
12018 ac_status=$?
12019 grep -v '^ *+' conftest.er1 >conftest.err
12020 rm -f conftest.er1
12021 cat conftest.err >&5
12022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023 (exit $ac_status); } && {
12024 test -z "$ac_c_werror_flag" ||
12025 test ! -s conftest.err
12026 } && test -s conftest$ac_exeext &&
12027 $as_test_x conftest$ac_exeext; then
12028 ac_cv_lib_pthread_pthread_self=yes
12029 else
12030 echo "$as_me: failed program was:" >&5
12031 sed 's/^/| /' conftest.$ac_ext >&5
12033 ac_cv_lib_pthread_pthread_self=no
12036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12037 conftest$ac_exeext conftest.$ac_ext
12038 LIBS=$ac_check_lib_save_LIBS
12040 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12041 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
12042 if test $ac_cv_lib_pthread_pthread_self = yes; then
12043 HAVE_GTK_AND_PTHREAD=yes
12047 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12048 case "${canonical}" in
12049 *-hpux*) ;;
12050 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12051 esac
12053 cat >>confdefs.h <<\_ACEOF
12054 #define HAVE_GTK_AND_PTHREAD 1
12055 _ACEOF
12061 HAVE_DBUS=no
12062 if test "${with_dbus}" = "yes"; then
12064 succeeded=no
12066 if test -z "$PKG_CONFIG"; then
12067 # Extract the first word of "pkg-config", so it can be a program name with args.
12068 set dummy pkg-config; ac_word=$2
12069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12071 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12072 echo $ECHO_N "(cached) $ECHO_C" >&6
12073 else
12074 case $PKG_CONFIG in
12075 [\\/]* | ?:[\\/]*)
12076 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12080 for as_dir in $PATH
12082 IFS=$as_save_IFS
12083 test -z "$as_dir" && as_dir=.
12084 for ac_exec_ext in '' $ac_executable_extensions; do
12085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12086 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12088 break 2
12090 done
12091 done
12092 IFS=$as_save_IFS
12094 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12096 esac
12098 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12099 if test -n "$PKG_CONFIG"; then
12100 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12101 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12102 else
12103 { echo "$as_me:$LINENO: result: no" >&5
12104 echo "${ECHO_T}no" >&6; }
12110 if test "$PKG_CONFIG" = "no" ; then
12111 HAVE_DBUS=no
12112 else
12113 PKG_CONFIG_MIN_VERSION=0.9.0
12114 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12115 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12116 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
12118 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12119 { echo "$as_me:$LINENO: result: yes" >&5
12120 echo "${ECHO_T}yes" >&6; }
12121 succeeded=yes
12123 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12124 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
12125 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12126 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12127 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
12129 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12130 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
12131 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12132 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12133 echo "${ECHO_T}$DBUS_LIBS" >&6; }
12134 else
12135 { echo "$as_me:$LINENO: result: no" >&5
12136 echo "${ECHO_T}no" >&6; }
12137 DBUS_CFLAGS=""
12138 DBUS_LIBS=""
12139 ## If we have a custom action on failure, don't print errors, but
12140 ## do set a variable so people can do so.
12141 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12147 else
12148 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12149 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12153 if test $succeeded = yes; then
12154 HAVE_DBUS=yes
12155 else
12156 HAVE_DBUS=no
12159 if test "$HAVE_DBUS" = yes; then
12161 cat >>confdefs.h <<\_ACEOF
12162 #define HAVE_DBUS 1
12163 _ACEOF
12168 HAVE_XAW3D=no
12169 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12170 if test "$with_xaw3d" != no; then
12171 { echo "$as_me:$LINENO: checking for xaw3d" >&5
12172 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
12173 if test "${emacs_cv_xaw3d+set}" = set; then
12174 echo $ECHO_N "(cached) $ECHO_C" >&6
12175 else
12176 cat >conftest.$ac_ext <<_ACEOF
12177 /* confdefs.h. */
12178 _ACEOF
12179 cat confdefs.h >>conftest.$ac_ext
12180 cat >>conftest.$ac_ext <<_ACEOF
12181 /* end confdefs.h. */
12183 #include <X11/Intrinsic.h>
12184 #include <X11/Xaw3d/Simple.h>
12186 main ()
12190 return 0;
12192 _ACEOF
12193 rm -f conftest.$ac_objext conftest$ac_exeext
12194 if { (ac_try="$ac_link"
12195 case "(($ac_try" in
12196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12197 *) ac_try_echo=$ac_try;;
12198 esac
12199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12200 (eval "$ac_link") 2>conftest.er1
12201 ac_status=$?
12202 grep -v '^ *+' conftest.er1 >conftest.err
12203 rm -f conftest.er1
12204 cat conftest.err >&5
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); } && {
12207 test -z "$ac_c_werror_flag" ||
12208 test ! -s conftest.err
12209 } && test -s conftest$ac_exeext &&
12210 $as_test_x conftest$ac_exeext; then
12211 emacs_cv_xaw3d=yes
12212 else
12213 echo "$as_me: failed program was:" >&5
12214 sed 's/^/| /' conftest.$ac_ext >&5
12216 emacs_cv_xaw3d=no
12219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12220 conftest$ac_exeext conftest.$ac_ext
12223 else
12224 emacs_cv_xaw3d=no
12226 if test $emacs_cv_xaw3d = yes; then
12227 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12228 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12229 USE_X_TOOLKIT=LUCID
12230 HAVE_XAW3D=yes
12232 cat >>confdefs.h <<\_ACEOF
12233 #define HAVE_XAW3D 1
12234 _ACEOF
12236 else
12237 { echo "$as_me:$LINENO: result: no" >&5
12238 echo "${ECHO_T}no" >&6; }
12239 { echo "$as_me:$LINENO: checking for libXaw" >&5
12240 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
12241 if test "${emacs_cv_xaw+set}" = set; then
12242 echo $ECHO_N "(cached) $ECHO_C" >&6
12243 else
12244 cat >conftest.$ac_ext <<_ACEOF
12245 /* confdefs.h. */
12246 _ACEOF
12247 cat confdefs.h >>conftest.$ac_ext
12248 cat >>conftest.$ac_ext <<_ACEOF
12249 /* end confdefs.h. */
12251 #include <X11/Intrinsic.h>
12252 #include <X11/Xaw/Simple.h>
12254 main ()
12258 return 0;
12260 _ACEOF
12261 rm -f conftest.$ac_objext conftest$ac_exeext
12262 if { (ac_try="$ac_link"
12263 case "(($ac_try" in
12264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12265 *) ac_try_echo=$ac_try;;
12266 esac
12267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12268 (eval "$ac_link") 2>conftest.er1
12269 ac_status=$?
12270 grep -v '^ *+' conftest.er1 >conftest.err
12271 rm -f conftest.er1
12272 cat conftest.err >&5
12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 (exit $ac_status); } && {
12275 test -z "$ac_c_werror_flag" ||
12276 test ! -s conftest.err
12277 } && test -s conftest$ac_exeext &&
12278 $as_test_x conftest$ac_exeext; then
12279 emacs_cv_xaw=yes
12280 else
12281 echo "$as_me: failed program was:" >&5
12282 sed 's/^/| /' conftest.$ac_ext >&5
12284 emacs_cv_xaw=no
12287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12288 conftest$ac_exeext conftest.$ac_ext
12291 if test $emacs_cv_xaw = yes; then
12292 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12293 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12294 USE_X_TOOLKIT=LUCID
12295 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12296 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12297 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12298 { (exit 1); exit 1; }; }
12299 else
12300 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12301 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
12302 USE_X_TOOLKIT=none
12307 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12309 if test "${USE_X_TOOLKIT}" != "none"; then
12310 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12311 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12312 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12313 echo $ECHO_N "(cached) $ECHO_C" >&6
12314 else
12315 cat >conftest.$ac_ext <<_ACEOF
12316 /* confdefs.h. */
12317 _ACEOF
12318 cat confdefs.h >>conftest.$ac_ext
12319 cat >>conftest.$ac_ext <<_ACEOF
12320 /* end confdefs.h. */
12321 #include <X11/Intrinsic.h>
12323 main ()
12325 #if XtSpecificationRelease < 6
12326 fail;
12327 #endif
12330 return 0;
12332 _ACEOF
12333 rm -f conftest.$ac_objext conftest$ac_exeext
12334 if { (ac_try="$ac_link"
12335 case "(($ac_try" in
12336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12337 *) ac_try_echo=$ac_try;;
12338 esac
12339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12340 (eval "$ac_link") 2>conftest.er1
12341 ac_status=$?
12342 grep -v '^ *+' conftest.er1 >conftest.err
12343 rm -f conftest.er1
12344 cat conftest.err >&5
12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 (exit $ac_status); } && {
12347 test -z "$ac_c_werror_flag" ||
12348 test ! -s conftest.err
12349 } && test -s conftest$ac_exeext &&
12350 $as_test_x conftest$ac_exeext; then
12351 emacs_cv_x11_toolkit_version_6=yes
12352 else
12353 echo "$as_me: failed program was:" >&5
12354 sed 's/^/| /' conftest.$ac_ext >&5
12356 emacs_cv_x11_toolkit_version_6=no
12359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12360 conftest$ac_exeext conftest.$ac_ext
12363 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12364 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12365 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12366 echo "${ECHO_T}6 or newer" >&6; }
12368 cat >>confdefs.h <<\_ACEOF
12369 #define HAVE_X11XTR6 1
12370 _ACEOF
12372 else
12373 { echo "$as_me:$LINENO: result: before 6" >&5
12374 echo "${ECHO_T}before 6" >&6; }
12377 OLDLIBS="$LIBS"
12378 if test x$HAVE_X11XTR6 = xyes; then
12379 LIBS="-lXt -lSM -lICE $LIBS"
12380 else
12381 LIBS="-lXt $LIBS"
12384 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12385 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12386 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12387 echo $ECHO_N "(cached) $ECHO_C" >&6
12388 else
12389 ac_check_lib_save_LIBS=$LIBS
12390 LIBS="-lXmu $LIBS"
12391 cat >conftest.$ac_ext <<_ACEOF
12392 /* confdefs.h. */
12393 _ACEOF
12394 cat confdefs.h >>conftest.$ac_ext
12395 cat >>conftest.$ac_ext <<_ACEOF
12396 /* end confdefs.h. */
12398 /* Override any GCC internal prototype to avoid an error.
12399 Use char because int might match the return type of a GCC
12400 builtin and then its argument prototype would still apply. */
12401 #ifdef __cplusplus
12402 extern "C"
12403 #endif
12404 char XmuConvertStandardSelection ();
12406 main ()
12408 return XmuConvertStandardSelection ();
12410 return 0;
12412 _ACEOF
12413 rm -f conftest.$ac_objext conftest$ac_exeext
12414 if { (ac_try="$ac_link"
12415 case "(($ac_try" in
12416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12417 *) ac_try_echo=$ac_try;;
12418 esac
12419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12420 (eval "$ac_link") 2>conftest.er1
12421 ac_status=$?
12422 grep -v '^ *+' conftest.er1 >conftest.err
12423 rm -f conftest.er1
12424 cat conftest.err >&5
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); } && {
12427 test -z "$ac_c_werror_flag" ||
12428 test ! -s conftest.err
12429 } && test -s conftest$ac_exeext &&
12430 $as_test_x conftest$ac_exeext; then
12431 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12432 else
12433 echo "$as_me: failed program was:" >&5
12434 sed 's/^/| /' conftest.$ac_ext >&5
12436 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12440 conftest$ac_exeext conftest.$ac_ext
12441 LIBS=$ac_check_lib_save_LIBS
12443 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12444 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12445 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12446 cat >>confdefs.h <<_ACEOF
12447 #define HAVE_LIBXMU 1
12448 _ACEOF
12450 LIBS="-lXmu $LIBS"
12454 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12457 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12458 if test "${HAVE_X11}" = "yes"; then
12459 if test "${USE_X_TOOLKIT}" != "none"; then
12461 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12462 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12463 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12464 echo $ECHO_N "(cached) $ECHO_C" >&6
12465 else
12466 ac_check_lib_save_LIBS=$LIBS
12467 LIBS="-lXext $LIBS"
12468 cat >conftest.$ac_ext <<_ACEOF
12469 /* confdefs.h. */
12470 _ACEOF
12471 cat confdefs.h >>conftest.$ac_ext
12472 cat >>conftest.$ac_ext <<_ACEOF
12473 /* end confdefs.h. */
12475 /* Override any GCC internal prototype to avoid an error.
12476 Use char because int might match the return type of a GCC
12477 builtin and then its argument prototype would still apply. */
12478 #ifdef __cplusplus
12479 extern "C"
12480 #endif
12481 char XShapeQueryExtension ();
12483 main ()
12485 return XShapeQueryExtension ();
12487 return 0;
12489 _ACEOF
12490 rm -f conftest.$ac_objext conftest$ac_exeext
12491 if { (ac_try="$ac_link"
12492 case "(($ac_try" in
12493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12494 *) ac_try_echo=$ac_try;;
12495 esac
12496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12497 (eval "$ac_link") 2>conftest.er1
12498 ac_status=$?
12499 grep -v '^ *+' conftest.er1 >conftest.err
12500 rm -f conftest.er1
12501 cat conftest.err >&5
12502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503 (exit $ac_status); } && {
12504 test -z "$ac_c_werror_flag" ||
12505 test ! -s conftest.err
12506 } && test -s conftest$ac_exeext &&
12507 $as_test_x conftest$ac_exeext; then
12508 ac_cv_lib_Xext_XShapeQueryExtension=yes
12509 else
12510 echo "$as_me: failed program was:" >&5
12511 sed 's/^/| /' conftest.$ac_ext >&5
12513 ac_cv_lib_Xext_XShapeQueryExtension=no
12516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12517 conftest$ac_exeext conftest.$ac_ext
12518 LIBS=$ac_check_lib_save_LIBS
12520 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12521 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12522 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12523 cat >>confdefs.h <<_ACEOF
12524 #define HAVE_LIBXEXT 1
12525 _ACEOF
12527 LIBS="-lXext $LIBS"
12534 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12535 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12536 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12537 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12538 echo $ECHO_N "(cached) $ECHO_C" >&6
12539 else
12540 cat >conftest.$ac_ext <<_ACEOF
12541 /* confdefs.h. */
12542 _ACEOF
12543 cat confdefs.h >>conftest.$ac_ext
12544 cat >>conftest.$ac_ext <<_ACEOF
12545 /* end confdefs.h. */
12546 #include <Xm/Xm.h>
12548 main ()
12550 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12551 int x = 5;
12552 #else
12553 Motif version prior to 2.1.
12554 #endif
12556 return 0;
12558 _ACEOF
12559 rm -f conftest.$ac_objext
12560 if { (ac_try="$ac_compile"
12561 case "(($ac_try" in
12562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12563 *) ac_try_echo=$ac_try;;
12564 esac
12565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12566 (eval "$ac_compile") 2>conftest.er1
12567 ac_status=$?
12568 grep -v '^ *+' conftest.er1 >conftest.err
12569 rm -f conftest.er1
12570 cat conftest.err >&5
12571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572 (exit $ac_status); } && {
12573 test -z "$ac_c_werror_flag" ||
12574 test ! -s conftest.err
12575 } && test -s conftest.$ac_objext; then
12576 emacs_cv_motif_version_2_1=yes
12577 else
12578 echo "$as_me: failed program was:" >&5
12579 sed 's/^/| /' conftest.$ac_ext >&5
12581 emacs_cv_motif_version_2_1=no
12584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12586 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12587 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12588 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12589 if test $emacs_cv_motif_version_2_1 = yes; then
12590 HAVE_LIBXP=no
12592 cat >>confdefs.h <<\_ACEOF
12593 #define HAVE_MOTIF_2_1 1
12594 _ACEOF
12596 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12597 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12598 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12599 echo $ECHO_N "(cached) $ECHO_C" >&6
12600 else
12601 ac_check_lib_save_LIBS=$LIBS
12602 LIBS="-lXp $LIBS"
12603 cat >conftest.$ac_ext <<_ACEOF
12604 /* confdefs.h. */
12605 _ACEOF
12606 cat confdefs.h >>conftest.$ac_ext
12607 cat >>conftest.$ac_ext <<_ACEOF
12608 /* end confdefs.h. */
12610 /* Override any GCC internal prototype to avoid an error.
12611 Use char because int might match the return type of a GCC
12612 builtin and then its argument prototype would still apply. */
12613 #ifdef __cplusplus
12614 extern "C"
12615 #endif
12616 char XpCreateContext ();
12618 main ()
12620 return XpCreateContext ();
12622 return 0;
12624 _ACEOF
12625 rm -f conftest.$ac_objext conftest$ac_exeext
12626 if { (ac_try="$ac_link"
12627 case "(($ac_try" in
12628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12629 *) ac_try_echo=$ac_try;;
12630 esac
12631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12632 (eval "$ac_link") 2>conftest.er1
12633 ac_status=$?
12634 grep -v '^ *+' conftest.er1 >conftest.err
12635 rm -f conftest.er1
12636 cat conftest.err >&5
12637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638 (exit $ac_status); } && {
12639 test -z "$ac_c_werror_flag" ||
12640 test ! -s conftest.err
12641 } && test -s conftest$ac_exeext &&
12642 $as_test_x conftest$ac_exeext; then
12643 ac_cv_lib_Xp_XpCreateContext=yes
12644 else
12645 echo "$as_me: failed program was:" >&5
12646 sed 's/^/| /' conftest.$ac_ext >&5
12648 ac_cv_lib_Xp_XpCreateContext=no
12651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12652 conftest$ac_exeext conftest.$ac_ext
12653 LIBS=$ac_check_lib_save_LIBS
12655 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12656 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12657 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12658 HAVE_LIBXP=yes
12661 if test ${HAVE_LIBXP} = yes; then
12663 cat >>confdefs.h <<\_ACEOF
12664 #define HAVE_LIBXP 1
12665 _ACEOF
12668 else
12669 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12670 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12671 if test "${emacs_cv_lesstif+set}" = set; then
12672 echo $ECHO_N "(cached) $ECHO_C" >&6
12673 else
12674 # We put this in CFLAGS temporarily to precede other -I options
12675 # that might be in CFLAGS temporarily.
12676 # We put this in CPPFLAGS where it precedes the other -I options.
12677 OLD_CPPFLAGS=$CPPFLAGS
12678 OLD_CFLAGS=$CFLAGS
12679 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12680 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12681 cat >conftest.$ac_ext <<_ACEOF
12682 /* confdefs.h. */
12683 _ACEOF
12684 cat confdefs.h >>conftest.$ac_ext
12685 cat >>conftest.$ac_ext <<_ACEOF
12686 /* end confdefs.h. */
12687 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12689 main ()
12691 int x = 5;
12693 return 0;
12695 _ACEOF
12696 rm -f conftest.$ac_objext
12697 if { (ac_try="$ac_compile"
12698 case "(($ac_try" in
12699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12700 *) ac_try_echo=$ac_try;;
12701 esac
12702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12703 (eval "$ac_compile") 2>conftest.er1
12704 ac_status=$?
12705 grep -v '^ *+' conftest.er1 >conftest.err
12706 rm -f conftest.er1
12707 cat conftest.err >&5
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); } && {
12710 test -z "$ac_c_werror_flag" ||
12711 test ! -s conftest.err
12712 } && test -s conftest.$ac_objext; then
12713 emacs_cv_lesstif=yes
12714 else
12715 echo "$as_me: failed program was:" >&5
12716 sed 's/^/| /' conftest.$ac_ext >&5
12718 emacs_cv_lesstif=no
12721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12723 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12724 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12725 if test $emacs_cv_lesstif = yes; then
12726 # Make sure this -I option remains in CPPFLAGS after it is set
12727 # back to REAL_CPPFLAGS.
12728 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12729 # have those other -I options anyway. Ultimately, having this
12730 # directory ultimately in CPPFLAGS will be enough.
12731 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12732 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12733 else
12734 CFLAGS=$OLD_CFLAGS
12735 CPPFLAGS=$OLD_CPPFLAGS
12742 USE_TOOLKIT_SCROLL_BARS=no
12743 if test "${with_toolkit_scroll_bars}" != "no"; then
12744 if test "${USE_X_TOOLKIT}" != "none"; then
12745 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12746 cat >>confdefs.h <<\_ACEOF
12747 #define USE_TOOLKIT_SCROLL_BARS 1
12748 _ACEOF
12750 HAVE_XAW3D=no
12751 USE_TOOLKIT_SCROLL_BARS=yes
12752 elif test "${HAVE_XAW3D}" = "yes"; then
12753 cat >>confdefs.h <<\_ACEOF
12754 #define USE_TOOLKIT_SCROLL_BARS 1
12755 _ACEOF
12757 USE_TOOLKIT_SCROLL_BARS=yes
12759 elif test "${HAVE_GTK}" = "yes"; then
12760 cat >>confdefs.h <<\_ACEOF
12761 #define USE_TOOLKIT_SCROLL_BARS 1
12762 _ACEOF
12764 USE_TOOLKIT_SCROLL_BARS=yes
12765 elif test "${HAVE_CARBON}" = "yes"; then
12766 cat >>confdefs.h <<\_ACEOF
12767 #define USE_TOOLKIT_SCROLL_BARS 1
12768 _ACEOF
12770 USE_TOOLKIT_SCROLL_BARS=yes
12774 cat >conftest.$ac_ext <<_ACEOF
12775 /* confdefs.h. */
12776 _ACEOF
12777 cat confdefs.h >>conftest.$ac_ext
12778 cat >>conftest.$ac_ext <<_ACEOF
12779 /* end confdefs.h. */
12781 #include <X11/Xlib.h>
12782 #include <X11/Xresource.h>
12784 main ()
12786 XIMProc callback;
12788 return 0;
12790 _ACEOF
12791 rm -f conftest.$ac_objext
12792 if { (ac_try="$ac_compile"
12793 case "(($ac_try" in
12794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12795 *) ac_try_echo=$ac_try;;
12796 esac
12797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12798 (eval "$ac_compile") 2>conftest.er1
12799 ac_status=$?
12800 grep -v '^ *+' conftest.er1 >conftest.err
12801 rm -f conftest.er1
12802 cat conftest.err >&5
12803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804 (exit $ac_status); } && {
12805 test -z "$ac_c_werror_flag" ||
12806 test ! -s conftest.err
12807 } && test -s conftest.$ac_objext; then
12808 HAVE_XIM=yes
12810 cat >>confdefs.h <<\_ACEOF
12811 #define HAVE_XIM 1
12812 _ACEOF
12814 else
12815 echo "$as_me: failed program was:" >&5
12816 sed 's/^/| /' conftest.$ac_ext >&5
12818 HAVE_XIM=no
12821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12824 if test "${with_xim}" != "no"; then
12826 cat >>confdefs.h <<\_ACEOF
12827 #define USE_XIM 1
12828 _ACEOF
12833 if test "${HAVE_XIM}" != "no"; then
12834 late_CFLAGS=$CFLAGS
12835 if test "$GCC" = yes; then
12836 CFLAGS="$CFLAGS --pedantic-errors"
12838 cat >conftest.$ac_ext <<_ACEOF
12839 /* confdefs.h. */
12840 _ACEOF
12841 cat confdefs.h >>conftest.$ac_ext
12842 cat >>conftest.$ac_ext <<_ACEOF
12843 /* end confdefs.h. */
12845 #include <X11/Xlib.h>
12846 #include <X11/Xresource.h>
12848 main ()
12850 Display *display;
12851 XrmDatabase db;
12852 char *res_name;
12853 char *res_class;
12854 XIMProc callback;
12855 XPointer *client_data;
12856 #ifndef __GNUC__
12857 /* If we're not using GCC, it's probably not XFree86, and this is
12858 probably right, but we can't use something like --pedantic-errors. */
12859 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12860 char*, XIMProc, XPointer*);
12861 #endif
12862 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12863 client_data);
12865 return 0;
12867 _ACEOF
12868 rm -f conftest.$ac_objext
12869 if { (ac_try="$ac_compile"
12870 case "(($ac_try" in
12871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12872 *) ac_try_echo=$ac_try;;
12873 esac
12874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12875 (eval "$ac_compile") 2>conftest.er1
12876 ac_status=$?
12877 grep -v '^ *+' conftest.er1 >conftest.err
12878 rm -f conftest.er1
12879 cat conftest.err >&5
12880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12881 (exit $ac_status); } && {
12882 test -z "$ac_c_werror_flag" ||
12883 test ! -s conftest.err
12884 } && test -s conftest.$ac_objext; then
12885 emacs_cv_arg6_star=yes
12886 else
12887 echo "$as_me: failed program was:" >&5
12888 sed 's/^/| /' conftest.$ac_ext >&5
12893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12895 if test "$emacs_cv_arg6_star" = yes; then
12896 cat >>confdefs.h <<\_ACEOF
12897 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12898 _ACEOF
12900 else
12901 cat >>confdefs.h <<\_ACEOF
12902 #define XRegisterIMInstantiateCallback_arg6 XPointer
12903 _ACEOF
12906 CFLAGS=$late_CFLAGS
12909 #### For font-backend
12910 if test "${USE_FONT_BACKEND}" = "yes"; then
12913 cat >>confdefs.h <<\_ACEOF
12914 #define USE_FONT_BACKEND 1
12915 _ACEOF
12918 ### Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
12919 HAVE_XFT=maybe
12920 if test "${HAVE_X11}" = "yes"; then
12921 if test "x${with_freetype}" = "xno"; then
12922 with_xft="no";
12924 if test "x${with_xft}" != "xno"; then
12926 if test "X${with_pkg_config_prog}" != X; then
12927 PKG_CONFIG="${with_pkg_config_prog}"
12931 succeeded=no
12933 if test -z "$PKG_CONFIG"; then
12934 # Extract the first word of "pkg-config", so it can be a program name with args.
12935 set dummy pkg-config; ac_word=$2
12936 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12938 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12939 echo $ECHO_N "(cached) $ECHO_C" >&6
12940 else
12941 case $PKG_CONFIG in
12942 [\\/]* | ?:[\\/]*)
12943 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12947 for as_dir in $PATH
12949 IFS=$as_save_IFS
12950 test -z "$as_dir" && as_dir=.
12951 for ac_exec_ext in '' $ac_executable_extensions; do
12952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12953 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12955 break 2
12957 done
12958 done
12959 IFS=$as_save_IFS
12961 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12963 esac
12965 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12966 if test -n "$PKG_CONFIG"; then
12967 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12968 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12969 else
12970 { echo "$as_me:$LINENO: result: no" >&5
12971 echo "${ECHO_T}no" >&6; }
12977 if test "$PKG_CONFIG" = "no" ; then
12978 HAVE_XFT=no
12979 else
12980 PKG_CONFIG_MIN_VERSION=0.9.0
12981 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12982 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12983 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12985 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12986 { echo "$as_me:$LINENO: result: yes" >&5
12987 echo "${ECHO_T}yes" >&6; }
12988 succeeded=yes
12990 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12991 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12992 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12993 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12994 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12996 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12997 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12998 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12999 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
13000 echo "${ECHO_T}$XFT_LIBS" >&6; }
13001 else
13002 { echo "$as_me:$LINENO: result: no" >&5
13003 echo "${ECHO_T}no" >&6; }
13004 XFT_CFLAGS=""
13005 XFT_LIBS=""
13006 ## If we have a custom action on failure, don't print errors, but
13007 ## do set a variable so people can do so.
13008 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
13014 else
13015 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13016 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13020 if test $succeeded = yes; then
13022 else
13023 HAVE_XFT=no
13026 if test "$HAVE_XFT" != no; then
13027 OLD_CPPFLAGS="$CPPFLAGS"
13028 OLD_CFLAGS="$CFLAGS"
13029 OLD_LIBS="$LIBS"
13030 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
13031 CFLAGS="$CFLAGS $XFT_CFLAGS"
13032 LIBS="$XFT_LIBS $LIBS"
13033 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13034 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13035 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
13036 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13037 echo $ECHO_N "(cached) $ECHO_C" >&6
13039 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13040 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
13041 else
13042 # Is the header compilable?
13043 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
13044 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
13045 cat >conftest.$ac_ext <<_ACEOF
13046 /* confdefs.h. */
13047 _ACEOF
13048 cat confdefs.h >>conftest.$ac_ext
13049 cat >>conftest.$ac_ext <<_ACEOF
13050 /* end confdefs.h. */
13051 $ac_includes_default
13052 #include <X11/Xft/Xft.h>
13053 _ACEOF
13054 rm -f conftest.$ac_objext
13055 if { (ac_try="$ac_compile"
13056 case "(($ac_try" in
13057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13058 *) ac_try_echo=$ac_try;;
13059 esac
13060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13061 (eval "$ac_compile") 2>conftest.er1
13062 ac_status=$?
13063 grep -v '^ *+' conftest.er1 >conftest.err
13064 rm -f conftest.er1
13065 cat conftest.err >&5
13066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067 (exit $ac_status); } && {
13068 test -z "$ac_c_werror_flag" ||
13069 test ! -s conftest.err
13070 } && test -s conftest.$ac_objext; then
13071 ac_header_compiler=yes
13072 else
13073 echo "$as_me: failed program was:" >&5
13074 sed 's/^/| /' conftest.$ac_ext >&5
13076 ac_header_compiler=no
13079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13080 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13081 echo "${ECHO_T}$ac_header_compiler" >&6; }
13083 # Is the header present?
13084 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
13085 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
13086 cat >conftest.$ac_ext <<_ACEOF
13087 /* confdefs.h. */
13088 _ACEOF
13089 cat confdefs.h >>conftest.$ac_ext
13090 cat >>conftest.$ac_ext <<_ACEOF
13091 /* end confdefs.h. */
13092 #include <X11/Xft/Xft.h>
13093 _ACEOF
13094 if { (ac_try="$ac_cpp conftest.$ac_ext"
13095 case "(($ac_try" in
13096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13097 *) ac_try_echo=$ac_try;;
13098 esac
13099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13100 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13101 ac_status=$?
13102 grep -v '^ *+' conftest.er1 >conftest.err
13103 rm -f conftest.er1
13104 cat conftest.err >&5
13105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106 (exit $ac_status); } >/dev/null && {
13107 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13108 test ! -s conftest.err
13109 }; then
13110 ac_header_preproc=yes
13111 else
13112 echo "$as_me: failed program was:" >&5
13113 sed 's/^/| /' conftest.$ac_ext >&5
13115 ac_header_preproc=no
13118 rm -f conftest.err conftest.$ac_ext
13119 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13120 echo "${ECHO_T}$ac_header_preproc" >&6; }
13122 # So? What about this header?
13123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13124 yes:no: )
13125 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
13126 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13127 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
13128 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
13129 ac_header_preproc=yes
13131 no:yes:* )
13132 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
13133 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
13134 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
13135 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
13136 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
13137 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
13138 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
13139 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
13140 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
13141 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
13142 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
13143 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
13146 esac
13147 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13148 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
13149 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13150 echo $ECHO_N "(cached) $ECHO_C" >&6
13151 else
13152 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
13154 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13155 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
13158 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
13159 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
13160 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
13161 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
13162 echo $ECHO_N "(cached) $ECHO_C" >&6
13163 else
13164 ac_check_lib_save_LIBS=$LIBS
13165 LIBS="-lXft $XFT_LIBS $LIBS"
13166 cat >conftest.$ac_ext <<_ACEOF
13167 /* confdefs.h. */
13168 _ACEOF
13169 cat confdefs.h >>conftest.$ac_ext
13170 cat >>conftest.$ac_ext <<_ACEOF
13171 /* end confdefs.h. */
13173 /* Override any GCC internal prototype to avoid an error.
13174 Use char because int might match the return type of a GCC
13175 builtin and then its argument prototype would still apply. */
13176 #ifdef __cplusplus
13177 extern "C"
13178 #endif
13179 char XftFontOpen ();
13181 main ()
13183 return XftFontOpen ();
13185 return 0;
13187 _ACEOF
13188 rm -f conftest.$ac_objext conftest$ac_exeext
13189 if { (ac_try="$ac_link"
13190 case "(($ac_try" in
13191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13192 *) ac_try_echo=$ac_try;;
13193 esac
13194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13195 (eval "$ac_link") 2>conftest.er1
13196 ac_status=$?
13197 grep -v '^ *+' conftest.er1 >conftest.err
13198 rm -f conftest.er1
13199 cat conftest.err >&5
13200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201 (exit $ac_status); } && {
13202 test -z "$ac_c_werror_flag" ||
13203 test ! -s conftest.err
13204 } && test -s conftest$ac_exeext &&
13205 $as_test_x conftest$ac_exeext; then
13206 ac_cv_lib_Xft_XftFontOpen=yes
13207 else
13208 echo "$as_me: failed program was:" >&5
13209 sed 's/^/| /' conftest.$ac_ext >&5
13211 ac_cv_lib_Xft_XftFontOpen=no
13214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13215 conftest$ac_exeext conftest.$ac_ext
13216 LIBS=$ac_check_lib_save_LIBS
13218 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
13219 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
13220 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
13221 HAVE_XFT=yes
13228 if test "${HAVE_XFT}" = "yes"; then
13230 cat >>confdefs.h <<\_ACEOF
13231 #define HAVE_XFT 1
13232 _ACEOF
13235 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
13236 else
13237 CPPFLAGS="$OLD_CPPFLAGS"
13238 CFLAGS="$OLD_CFLAGS"
13239 LIBS="$OLD_LIBS"
13245 HAVE_FREETYPE=no
13246 ### Use -lfreetype if available, unless `--with-freetype=no'.
13247 if test "${HAVE_XFT}" = "yes"; then
13248 HAVE_FREETYPE=yes
13249 elif test "x${with_freetype}" != "xno"; then
13250 if test "X${with_pkg_config_prog}" != X; then
13251 PKG_CONFIG="${with_pkg_config_prog}"
13254 succeeded=no
13256 if test -z "$PKG_CONFIG"; then
13257 # Extract the first word of "pkg-config", so it can be a program name with args.
13258 set dummy pkg-config; ac_word=$2
13259 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13261 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13262 echo $ECHO_N "(cached) $ECHO_C" >&6
13263 else
13264 case $PKG_CONFIG in
13265 [\\/]* | ?:[\\/]*)
13266 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13270 for as_dir in $PATH
13272 IFS=$as_save_IFS
13273 test -z "$as_dir" && as_dir=.
13274 for ac_exec_ext in '' $ac_executable_extensions; do
13275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13276 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13278 break 2
13280 done
13281 done
13282 IFS=$as_save_IFS
13284 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13286 esac
13288 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13289 if test -n "$PKG_CONFIG"; then
13290 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13291 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13292 else
13293 { echo "$as_me:$LINENO: result: no" >&5
13294 echo "${ECHO_T}no" >&6; }
13300 if test "$PKG_CONFIG" = "no" ; then
13301 HAVE_FREETYPE=no
13302 else
13303 PKG_CONFIG_MIN_VERSION=0.9.0
13304 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13305 { echo "$as_me:$LINENO: checking for freetype2" >&5
13306 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
13308 if $PKG_CONFIG --exists "freetype2" 2>&5; then
13309 { echo "$as_me:$LINENO: result: yes" >&5
13310 echo "${ECHO_T}yes" >&6; }
13311 succeeded=yes
13313 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
13314 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
13315 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
13316 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
13317 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
13319 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
13320 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
13321 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
13322 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
13323 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
13324 else
13325 { echo "$as_me:$LINENO: result: no" >&5
13326 echo "${ECHO_T}no" >&6; }
13327 FREETYPE_CFLAGS=""
13328 FREETYPE_LIBS=""
13329 ## If we have a custom action on failure, don't print errors, but
13330 ## do set a variable so people can do so.
13331 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
13337 else
13338 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13339 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13343 if test $succeeded = yes; then
13344 HAVE_FREETYPE=yes
13345 else
13346 HAVE_FREETYPE=no
13349 if test "${HAVE_FREETYPE}" = "yes"; then
13351 succeeded=no
13353 if test -z "$PKG_CONFIG"; then
13354 # Extract the first word of "pkg-config", so it can be a program name with args.
13355 set dummy pkg-config; ac_word=$2
13356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13358 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13359 echo $ECHO_N "(cached) $ECHO_C" >&6
13360 else
13361 case $PKG_CONFIG in
13362 [\\/]* | ?:[\\/]*)
13363 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13367 for as_dir in $PATH
13369 IFS=$as_save_IFS
13370 test -z "$as_dir" && as_dir=.
13371 for ac_exec_ext in '' $ac_executable_extensions; do
13372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13373 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13375 break 2
13377 done
13378 done
13379 IFS=$as_save_IFS
13381 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13383 esac
13385 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13386 if test -n "$PKG_CONFIG"; then
13387 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13388 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13389 else
13390 { echo "$as_me:$LINENO: result: no" >&5
13391 echo "${ECHO_T}no" >&6; }
13397 if test "$PKG_CONFIG" = "no" ; then
13398 HAVE_FC=no
13399 else
13400 PKG_CONFIG_MIN_VERSION=0.9.0
13401 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13402 { echo "$as_me:$LINENO: checking for fontconfig" >&5
13403 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
13405 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
13406 { echo "$as_me:$LINENO: result: yes" >&5
13407 echo "${ECHO_T}yes" >&6; }
13408 succeeded=yes
13410 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13411 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
13412 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
13413 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13414 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
13416 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13417 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
13418 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
13419 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13420 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
13421 else
13422 { echo "$as_me:$LINENO: result: no" >&5
13423 echo "${ECHO_T}no" >&6; }
13424 FONTCONFIG_CFLAGS=""
13425 FONTCONFIG_LIBS=""
13426 ## If we have a custom action on failure, don't print errors, but
13427 ## do set a variable so people can do so.
13428 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
13434 else
13435 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13436 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13440 if test $succeeded = yes; then
13441 HAVE_FC=yes
13442 else
13443 HAVE_FC=no
13446 if test "${HAVE_FC}" = "no"; then
13447 HAVE_FREETYPE=no
13452 HAVE_LIBOTF=no
13453 if test "${HAVE_FREETYPE}" = "yes"; then
13455 cat >>confdefs.h <<\_ACEOF
13456 #define HAVE_FREETYPE 1
13457 _ACEOF
13459 if test "${with_libotf}" != "no"; then
13460 if test "X${with_pkg_config_prog}" != X; then
13461 PKG_CONFIG="${with_pkg_config_prog}"
13464 succeeded=no
13466 if test -z "$PKG_CONFIG"; then
13467 # Extract the first word of "pkg-config", so it can be a program name with args.
13468 set dummy pkg-config; ac_word=$2
13469 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13471 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13472 echo $ECHO_N "(cached) $ECHO_C" >&6
13473 else
13474 case $PKG_CONFIG in
13475 [\\/]* | ?:[\\/]*)
13476 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13480 for as_dir in $PATH
13482 IFS=$as_save_IFS
13483 test -z "$as_dir" && as_dir=.
13484 for ac_exec_ext in '' $ac_executable_extensions; do
13485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13486 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13488 break 2
13490 done
13491 done
13492 IFS=$as_save_IFS
13494 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13496 esac
13498 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13499 if test -n "$PKG_CONFIG"; then
13500 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13501 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13502 else
13503 { echo "$as_me:$LINENO: result: no" >&5
13504 echo "${ECHO_T}no" >&6; }
13510 if test "$PKG_CONFIG" = "no" ; then
13511 pkg_check_libotf=no
13512 else
13513 PKG_CONFIG_MIN_VERSION=0.9.0
13514 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13515 { echo "$as_me:$LINENO: checking for libotf" >&5
13516 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
13518 if $PKG_CONFIG --exists "libotf" 2>&5; then
13519 { echo "$as_me:$LINENO: result: yes" >&5
13520 echo "${ECHO_T}yes" >&6; }
13521 succeeded=yes
13523 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13524 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
13525 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13526 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13527 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13529 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13530 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
13531 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13532 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13533 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13534 else
13535 { echo "$as_me:$LINENO: result: no" >&5
13536 echo "${ECHO_T}no" >&6; }
13537 LIBOTF_CFLAGS=""
13538 LIBOTF_LIBS=""
13539 ## If we have a custom action on failure, don't print errors, but
13540 ## do set a variable so people can do so.
13541 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13547 else
13548 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13549 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13553 if test $succeeded = yes; then
13554 pkg_check_libotf=yes
13555 else
13556 pkg_check_libotf=no
13559 if test "$pkg_check_libotf" = "yes"; then
13561 cat >>confdefs.h <<\_ACEOF
13562 #define HAVE_LIBOTF 1
13563 _ACEOF
13569 HAVE_M17N_FLT=no
13570 if test "${with_m17n_flt}" != "no"; then
13571 if test "X${with_pkg_config_prog}" != X; then
13572 PKG_CONFIG="${with_pkg_config_prog}"
13575 succeeded=no
13577 if test -z "$PKG_CONFIG"; then
13578 # Extract the first word of "pkg-config", so it can be a program name with args.
13579 set dummy pkg-config; ac_word=$2
13580 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13582 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13583 echo $ECHO_N "(cached) $ECHO_C" >&6
13584 else
13585 case $PKG_CONFIG in
13586 [\\/]* | ?:[\\/]*)
13587 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13591 for as_dir in $PATH
13593 IFS=$as_save_IFS
13594 test -z "$as_dir" && as_dir=.
13595 for ac_exec_ext in '' $ac_executable_extensions; do
13596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13597 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13599 break 2
13601 done
13602 done
13603 IFS=$as_save_IFS
13605 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13607 esac
13609 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13610 if test -n "$PKG_CONFIG"; then
13611 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13612 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13613 else
13614 { echo "$as_me:$LINENO: result: no" >&5
13615 echo "${ECHO_T}no" >&6; }
13621 if test "$PKG_CONFIG" = "no" ; then
13622 pkg_check_m17n_flt=no
13623 else
13624 PKG_CONFIG_MIN_VERSION=0.9.0
13625 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13626 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13627 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13629 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13630 { echo "$as_me:$LINENO: result: yes" >&5
13631 echo "${ECHO_T}yes" >&6; }
13632 succeeded=yes
13634 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13635 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13636 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13637 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13638 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13640 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13641 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13642 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13643 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13644 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13645 else
13646 { echo "$as_me:$LINENO: result: no" >&5
13647 echo "${ECHO_T}no" >&6; }
13648 M17N_FLT_CFLAGS=""
13649 M17N_FLT_LIBS=""
13650 ## If we have a custom action on failure, don't print errors, but
13651 ## do set a variable so people can do so.
13652 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13658 else
13659 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13660 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13664 if test $succeeded = yes; then
13665 pkg_check_m17n_flt=yes
13666 else
13667 pkg_check_m17n_flt=no
13670 if test "$pkg_check_m17n_flt" = "yes"; then
13672 cat >>confdefs.h <<\_ACEOF
13673 #define HAVE_M17N_FLT 1
13674 _ACEOF
13689 #### End for font-backend
13691 ### Use -lXpm if available, unless `--with-xpm=no'.
13692 HAVE_XPM=no
13693 if test "${HAVE_X11}" = "yes"; then
13694 if test "${with_xpm}" != "no"; then
13695 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13696 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13697 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13698 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13699 echo $ECHO_N "(cached) $ECHO_C" >&6
13701 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13702 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13703 else
13704 # Is the header compilable?
13705 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13706 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13707 cat >conftest.$ac_ext <<_ACEOF
13708 /* confdefs.h. */
13709 _ACEOF
13710 cat confdefs.h >>conftest.$ac_ext
13711 cat >>conftest.$ac_ext <<_ACEOF
13712 /* end confdefs.h. */
13713 $ac_includes_default
13714 #include <X11/xpm.h>
13715 _ACEOF
13716 rm -f conftest.$ac_objext
13717 if { (ac_try="$ac_compile"
13718 case "(($ac_try" in
13719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13720 *) ac_try_echo=$ac_try;;
13721 esac
13722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13723 (eval "$ac_compile") 2>conftest.er1
13724 ac_status=$?
13725 grep -v '^ *+' conftest.er1 >conftest.err
13726 rm -f conftest.er1
13727 cat conftest.err >&5
13728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729 (exit $ac_status); } && {
13730 test -z "$ac_c_werror_flag" ||
13731 test ! -s conftest.err
13732 } && test -s conftest.$ac_objext; then
13733 ac_header_compiler=yes
13734 else
13735 echo "$as_me: failed program was:" >&5
13736 sed 's/^/| /' conftest.$ac_ext >&5
13738 ac_header_compiler=no
13741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13742 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13743 echo "${ECHO_T}$ac_header_compiler" >&6; }
13745 # Is the header present?
13746 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13747 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13748 cat >conftest.$ac_ext <<_ACEOF
13749 /* confdefs.h. */
13750 _ACEOF
13751 cat confdefs.h >>conftest.$ac_ext
13752 cat >>conftest.$ac_ext <<_ACEOF
13753 /* end confdefs.h. */
13754 #include <X11/xpm.h>
13755 _ACEOF
13756 if { (ac_try="$ac_cpp conftest.$ac_ext"
13757 case "(($ac_try" in
13758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13759 *) ac_try_echo=$ac_try;;
13760 esac
13761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13762 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13763 ac_status=$?
13764 grep -v '^ *+' conftest.er1 >conftest.err
13765 rm -f conftest.er1
13766 cat conftest.err >&5
13767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768 (exit $ac_status); } >/dev/null && {
13769 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13770 test ! -s conftest.err
13771 }; then
13772 ac_header_preproc=yes
13773 else
13774 echo "$as_me: failed program was:" >&5
13775 sed 's/^/| /' conftest.$ac_ext >&5
13777 ac_header_preproc=no
13780 rm -f conftest.err conftest.$ac_ext
13781 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13782 echo "${ECHO_T}$ac_header_preproc" >&6; }
13784 # So? What about this header?
13785 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13786 yes:no: )
13787 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13788 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13789 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13790 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13791 ac_header_preproc=yes
13793 no:yes:* )
13794 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13795 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13796 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13797 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13798 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13799 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13800 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13801 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13802 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13803 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13804 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13805 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13808 esac
13809 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13810 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13811 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13812 echo $ECHO_N "(cached) $ECHO_C" >&6
13813 else
13814 ac_cv_header_X11_xpm_h=$ac_header_preproc
13816 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13817 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13820 if test $ac_cv_header_X11_xpm_h = yes; then
13821 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13822 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13823 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13824 echo $ECHO_N "(cached) $ECHO_C" >&6
13825 else
13826 ac_check_lib_save_LIBS=$LIBS
13827 LIBS="-lXpm -lX11 $LIBS"
13828 cat >conftest.$ac_ext <<_ACEOF
13829 /* confdefs.h. */
13830 _ACEOF
13831 cat confdefs.h >>conftest.$ac_ext
13832 cat >>conftest.$ac_ext <<_ACEOF
13833 /* end confdefs.h. */
13835 /* Override any GCC internal prototype to avoid an error.
13836 Use char because int might match the return type of a GCC
13837 builtin and then its argument prototype would still apply. */
13838 #ifdef __cplusplus
13839 extern "C"
13840 #endif
13841 char XpmReadFileToPixmap ();
13843 main ()
13845 return XpmReadFileToPixmap ();
13847 return 0;
13849 _ACEOF
13850 rm -f conftest.$ac_objext conftest$ac_exeext
13851 if { (ac_try="$ac_link"
13852 case "(($ac_try" in
13853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13854 *) ac_try_echo=$ac_try;;
13855 esac
13856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13857 (eval "$ac_link") 2>conftest.er1
13858 ac_status=$?
13859 grep -v '^ *+' conftest.er1 >conftest.err
13860 rm -f conftest.er1
13861 cat conftest.err >&5
13862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863 (exit $ac_status); } && {
13864 test -z "$ac_c_werror_flag" ||
13865 test ! -s conftest.err
13866 } && test -s conftest$ac_exeext &&
13867 $as_test_x conftest$ac_exeext; then
13868 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13869 else
13870 echo "$as_me: failed program was:" >&5
13871 sed 's/^/| /' conftest.$ac_ext >&5
13873 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13877 conftest$ac_exeext conftest.$ac_ext
13878 LIBS=$ac_check_lib_save_LIBS
13880 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13881 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13882 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13883 HAVE_XPM=yes
13889 if test "${HAVE_XPM}" = "yes"; then
13890 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13891 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13892 cat >conftest.$ac_ext <<_ACEOF
13893 /* confdefs.h. */
13894 _ACEOF
13895 cat confdefs.h >>conftest.$ac_ext
13896 cat >>conftest.$ac_ext <<_ACEOF
13897 /* end confdefs.h. */
13898 #include "X11/xpm.h"
13899 #ifndef XpmReturnAllocPixels
13900 no_return_alloc_pixels
13901 #endif
13903 _ACEOF
13904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13905 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13906 HAVE_XPM=no
13907 else
13908 HAVE_XPM=yes
13910 rm -f conftest*
13913 if test "${HAVE_XPM}" = "yes"; then
13914 { echo "$as_me:$LINENO: result: yes" >&5
13915 echo "${ECHO_T}yes" >&6; }
13916 else
13917 { echo "$as_me:$LINENO: result: no" >&5
13918 echo "${ECHO_T}no" >&6; }
13923 if test "${HAVE_XPM}" = "yes"; then
13925 cat >>confdefs.h <<\_ACEOF
13926 #define HAVE_XPM 1
13927 _ACEOF
13932 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13933 HAVE_JPEG=no
13934 if test "${HAVE_X11}" = "yes"; then
13935 if test "${with_jpeg}" != "no"; then
13936 if test "${ac_cv_header_jerror_h+set}" = set; then
13937 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13938 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13939 if test "${ac_cv_header_jerror_h+set}" = set; then
13940 echo $ECHO_N "(cached) $ECHO_C" >&6
13942 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13943 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13944 else
13945 # Is the header compilable?
13946 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13947 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13948 cat >conftest.$ac_ext <<_ACEOF
13949 /* confdefs.h. */
13950 _ACEOF
13951 cat confdefs.h >>conftest.$ac_ext
13952 cat >>conftest.$ac_ext <<_ACEOF
13953 /* end confdefs.h. */
13954 $ac_includes_default
13955 #include <jerror.h>
13956 _ACEOF
13957 rm -f conftest.$ac_objext
13958 if { (ac_try="$ac_compile"
13959 case "(($ac_try" in
13960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13961 *) ac_try_echo=$ac_try;;
13962 esac
13963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13964 (eval "$ac_compile") 2>conftest.er1
13965 ac_status=$?
13966 grep -v '^ *+' conftest.er1 >conftest.err
13967 rm -f conftest.er1
13968 cat conftest.err >&5
13969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970 (exit $ac_status); } && {
13971 test -z "$ac_c_werror_flag" ||
13972 test ! -s conftest.err
13973 } && test -s conftest.$ac_objext; then
13974 ac_header_compiler=yes
13975 else
13976 echo "$as_me: failed program was:" >&5
13977 sed 's/^/| /' conftest.$ac_ext >&5
13979 ac_header_compiler=no
13982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13983 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13984 echo "${ECHO_T}$ac_header_compiler" >&6; }
13986 # Is the header present?
13987 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13988 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13989 cat >conftest.$ac_ext <<_ACEOF
13990 /* confdefs.h. */
13991 _ACEOF
13992 cat confdefs.h >>conftest.$ac_ext
13993 cat >>conftest.$ac_ext <<_ACEOF
13994 /* end confdefs.h. */
13995 #include <jerror.h>
13996 _ACEOF
13997 if { (ac_try="$ac_cpp conftest.$ac_ext"
13998 case "(($ac_try" in
13999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14000 *) ac_try_echo=$ac_try;;
14001 esac
14002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14003 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14004 ac_status=$?
14005 grep -v '^ *+' conftest.er1 >conftest.err
14006 rm -f conftest.er1
14007 cat conftest.err >&5
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); } >/dev/null && {
14010 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14011 test ! -s conftest.err
14012 }; then
14013 ac_header_preproc=yes
14014 else
14015 echo "$as_me: failed program was:" >&5
14016 sed 's/^/| /' conftest.$ac_ext >&5
14018 ac_header_preproc=no
14021 rm -f conftest.err conftest.$ac_ext
14022 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14023 echo "${ECHO_T}$ac_header_preproc" >&6; }
14025 # So? What about this header?
14026 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14027 yes:no: )
14028 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
14029 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14030 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
14031 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
14032 ac_header_preproc=yes
14034 no:yes:* )
14035 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
14036 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
14037 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
14038 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
14039 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
14040 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
14041 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
14042 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
14043 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
14044 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
14045 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
14046 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
14049 esac
14050 { echo "$as_me:$LINENO: checking for jerror.h" >&5
14051 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
14052 if test "${ac_cv_header_jerror_h+set}" = set; then
14053 echo $ECHO_N "(cached) $ECHO_C" >&6
14054 else
14055 ac_cv_header_jerror_h=$ac_header_preproc
14057 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14058 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
14061 if test $ac_cv_header_jerror_h = yes; then
14062 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
14063 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
14064 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
14065 echo $ECHO_N "(cached) $ECHO_C" >&6
14066 else
14067 ac_check_lib_save_LIBS=$LIBS
14068 LIBS="-ljpeg $LIBS"
14069 cat >conftest.$ac_ext <<_ACEOF
14070 /* confdefs.h. */
14071 _ACEOF
14072 cat confdefs.h >>conftest.$ac_ext
14073 cat >>conftest.$ac_ext <<_ACEOF
14074 /* end confdefs.h. */
14076 /* Override any GCC internal prototype to avoid an error.
14077 Use char because int might match the return type of a GCC
14078 builtin and then its argument prototype would still apply. */
14079 #ifdef __cplusplus
14080 extern "C"
14081 #endif
14082 char jpeg_destroy_compress ();
14084 main ()
14086 return jpeg_destroy_compress ();
14088 return 0;
14090 _ACEOF
14091 rm -f conftest.$ac_objext conftest$ac_exeext
14092 if { (ac_try="$ac_link"
14093 case "(($ac_try" in
14094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14095 *) ac_try_echo=$ac_try;;
14096 esac
14097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14098 (eval "$ac_link") 2>conftest.er1
14099 ac_status=$?
14100 grep -v '^ *+' conftest.er1 >conftest.err
14101 rm -f conftest.er1
14102 cat conftest.err >&5
14103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 (exit $ac_status); } && {
14105 test -z "$ac_c_werror_flag" ||
14106 test ! -s conftest.err
14107 } && test -s conftest$ac_exeext &&
14108 $as_test_x conftest$ac_exeext; then
14109 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
14110 else
14111 echo "$as_me: failed program was:" >&5
14112 sed 's/^/| /' conftest.$ac_ext >&5
14114 ac_cv_lib_jpeg_jpeg_destroy_compress=no
14117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14118 conftest$ac_exeext conftest.$ac_ext
14119 LIBS=$ac_check_lib_save_LIBS
14121 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
14122 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
14123 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
14124 HAVE_JPEG=yes
14133 if test "${HAVE_JPEG}" = "yes"; then
14134 cat >>confdefs.h <<\_ACEOF
14135 #define HAVE_JPEG 1
14136 _ACEOF
14138 cat >conftest.$ac_ext <<_ACEOF
14139 /* confdefs.h. */
14140 _ACEOF
14141 cat confdefs.h >>conftest.$ac_ext
14142 cat >>conftest.$ac_ext <<_ACEOF
14143 /* end confdefs.h. */
14144 #include <jpeglib.h>
14145 version=JPEG_LIB_VERSION
14147 _ACEOF
14148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14149 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
14150 cat >>confdefs.h <<\_ACEOF
14151 #define HAVE_JPEG 1
14152 _ACEOF
14154 else
14155 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
14156 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
14157 HAVE_JPEG=no
14159 rm -f conftest*
14164 ### Use -lpng if available, unless `--with-png=no'.
14165 HAVE_PNG=no
14166 if test "${HAVE_X11}" = "yes"; then
14167 if test "${with_png}" != "no"; then
14168 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
14169 # in /usr/include/libpng.
14172 for ac_header in png.h libpng/png.h
14174 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14176 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14179 echo $ECHO_N "(cached) $ECHO_C" >&6
14181 ac_res=`eval echo '${'$as_ac_Header'}'`
14182 { echo "$as_me:$LINENO: result: $ac_res" >&5
14183 echo "${ECHO_T}$ac_res" >&6; }
14184 else
14185 # Is the header compilable?
14186 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14187 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14188 cat >conftest.$ac_ext <<_ACEOF
14189 /* confdefs.h. */
14190 _ACEOF
14191 cat confdefs.h >>conftest.$ac_ext
14192 cat >>conftest.$ac_ext <<_ACEOF
14193 /* end confdefs.h. */
14194 $ac_includes_default
14195 #include <$ac_header>
14196 _ACEOF
14197 rm -f conftest.$ac_objext
14198 if { (ac_try="$ac_compile"
14199 case "(($ac_try" in
14200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14201 *) ac_try_echo=$ac_try;;
14202 esac
14203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14204 (eval "$ac_compile") 2>conftest.er1
14205 ac_status=$?
14206 grep -v '^ *+' conftest.er1 >conftest.err
14207 rm -f conftest.er1
14208 cat conftest.err >&5
14209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210 (exit $ac_status); } && {
14211 test -z "$ac_c_werror_flag" ||
14212 test ! -s conftest.err
14213 } && test -s conftest.$ac_objext; then
14214 ac_header_compiler=yes
14215 else
14216 echo "$as_me: failed program was:" >&5
14217 sed 's/^/| /' conftest.$ac_ext >&5
14219 ac_header_compiler=no
14222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14223 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14224 echo "${ECHO_T}$ac_header_compiler" >&6; }
14226 # Is the header present?
14227 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14228 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14229 cat >conftest.$ac_ext <<_ACEOF
14230 /* confdefs.h. */
14231 _ACEOF
14232 cat confdefs.h >>conftest.$ac_ext
14233 cat >>conftest.$ac_ext <<_ACEOF
14234 /* end confdefs.h. */
14235 #include <$ac_header>
14236 _ACEOF
14237 if { (ac_try="$ac_cpp conftest.$ac_ext"
14238 case "(($ac_try" in
14239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14240 *) ac_try_echo=$ac_try;;
14241 esac
14242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14244 ac_status=$?
14245 grep -v '^ *+' conftest.er1 >conftest.err
14246 rm -f conftest.er1
14247 cat conftest.err >&5
14248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249 (exit $ac_status); } >/dev/null && {
14250 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14251 test ! -s conftest.err
14252 }; then
14253 ac_header_preproc=yes
14254 else
14255 echo "$as_me: failed program was:" >&5
14256 sed 's/^/| /' conftest.$ac_ext >&5
14258 ac_header_preproc=no
14261 rm -f conftest.err conftest.$ac_ext
14262 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14263 echo "${ECHO_T}$ac_header_preproc" >&6; }
14265 # So? What about this header?
14266 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14267 yes:no: )
14268 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14269 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14270 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14271 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14272 ac_header_preproc=yes
14274 no:yes:* )
14275 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14276 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14277 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14278 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14279 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14280 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14281 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14282 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14284 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14285 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14286 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14289 esac
14290 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14292 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14293 echo $ECHO_N "(cached) $ECHO_C" >&6
14294 else
14295 eval "$as_ac_Header=\$ac_header_preproc"
14297 ac_res=`eval echo '${'$as_ac_Header'}'`
14298 { echo "$as_me:$LINENO: result: $ac_res" >&5
14299 echo "${ECHO_T}$ac_res" >&6; }
14302 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14303 cat >>confdefs.h <<_ACEOF
14304 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14305 _ACEOF
14309 done
14311 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
14312 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
14313 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
14314 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
14315 echo $ECHO_N "(cached) $ECHO_C" >&6
14316 else
14317 ac_check_lib_save_LIBS=$LIBS
14318 LIBS="-lpng -lz -lm $LIBS"
14319 cat >conftest.$ac_ext <<_ACEOF
14320 /* confdefs.h. */
14321 _ACEOF
14322 cat confdefs.h >>conftest.$ac_ext
14323 cat >>conftest.$ac_ext <<_ACEOF
14324 /* end confdefs.h. */
14326 /* Override any GCC internal prototype to avoid an error.
14327 Use char because int might match the return type of a GCC
14328 builtin and then its argument prototype would still apply. */
14329 #ifdef __cplusplus
14330 extern "C"
14331 #endif
14332 char png_get_channels ();
14334 main ()
14336 return png_get_channels ();
14338 return 0;
14340 _ACEOF
14341 rm -f conftest.$ac_objext conftest$ac_exeext
14342 if { (ac_try="$ac_link"
14343 case "(($ac_try" in
14344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14345 *) ac_try_echo=$ac_try;;
14346 esac
14347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14348 (eval "$ac_link") 2>conftest.er1
14349 ac_status=$?
14350 grep -v '^ *+' conftest.er1 >conftest.err
14351 rm -f conftest.er1
14352 cat conftest.err >&5
14353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354 (exit $ac_status); } && {
14355 test -z "$ac_c_werror_flag" ||
14356 test ! -s conftest.err
14357 } && test -s conftest$ac_exeext &&
14358 $as_test_x conftest$ac_exeext; then
14359 ac_cv_lib_png_png_get_channels=yes
14360 else
14361 echo "$as_me: failed program was:" >&5
14362 sed 's/^/| /' conftest.$ac_ext >&5
14364 ac_cv_lib_png_png_get_channels=no
14367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14368 conftest$ac_exeext conftest.$ac_ext
14369 LIBS=$ac_check_lib_save_LIBS
14371 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
14372 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
14373 if test $ac_cv_lib_png_png_get_channels = yes; then
14374 HAVE_PNG=yes
14380 if test "${HAVE_PNG}" = "yes"; then
14382 cat >>confdefs.h <<\_ACEOF
14383 #define HAVE_PNG 1
14384 _ACEOF
14389 ### Use -ltiff if available, unless `--with-tiff=no'.
14390 HAVE_TIFF=no
14391 if test "${HAVE_X11}" = "yes"; then
14392 if test "${with_tiff}" != "no"; then
14393 if test "${ac_cv_header_tiffio_h+set}" = set; then
14394 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14395 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14396 if test "${ac_cv_header_tiffio_h+set}" = set; then
14397 echo $ECHO_N "(cached) $ECHO_C" >&6
14399 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14400 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14401 else
14402 # Is the header compilable?
14403 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
14404 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
14405 cat >conftest.$ac_ext <<_ACEOF
14406 /* confdefs.h. */
14407 _ACEOF
14408 cat confdefs.h >>conftest.$ac_ext
14409 cat >>conftest.$ac_ext <<_ACEOF
14410 /* end confdefs.h. */
14411 $ac_includes_default
14412 #include <tiffio.h>
14413 _ACEOF
14414 rm -f conftest.$ac_objext
14415 if { (ac_try="$ac_compile"
14416 case "(($ac_try" in
14417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14418 *) ac_try_echo=$ac_try;;
14419 esac
14420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14421 (eval "$ac_compile") 2>conftest.er1
14422 ac_status=$?
14423 grep -v '^ *+' conftest.er1 >conftest.err
14424 rm -f conftest.er1
14425 cat conftest.err >&5
14426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427 (exit $ac_status); } && {
14428 test -z "$ac_c_werror_flag" ||
14429 test ! -s conftest.err
14430 } && test -s conftest.$ac_objext; then
14431 ac_header_compiler=yes
14432 else
14433 echo "$as_me: failed program was:" >&5
14434 sed 's/^/| /' conftest.$ac_ext >&5
14436 ac_header_compiler=no
14439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14440 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14441 echo "${ECHO_T}$ac_header_compiler" >&6; }
14443 # Is the header present?
14444 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14445 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
14446 cat >conftest.$ac_ext <<_ACEOF
14447 /* confdefs.h. */
14448 _ACEOF
14449 cat confdefs.h >>conftest.$ac_ext
14450 cat >>conftest.$ac_ext <<_ACEOF
14451 /* end confdefs.h. */
14452 #include <tiffio.h>
14453 _ACEOF
14454 if { (ac_try="$ac_cpp conftest.$ac_ext"
14455 case "(($ac_try" in
14456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14457 *) ac_try_echo=$ac_try;;
14458 esac
14459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14460 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14461 ac_status=$?
14462 grep -v '^ *+' conftest.er1 >conftest.err
14463 rm -f conftest.er1
14464 cat conftest.err >&5
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); } >/dev/null && {
14467 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14468 test ! -s conftest.err
14469 }; then
14470 ac_header_preproc=yes
14471 else
14472 echo "$as_me: failed program was:" >&5
14473 sed 's/^/| /' conftest.$ac_ext >&5
14475 ac_header_preproc=no
14478 rm -f conftest.err conftest.$ac_ext
14479 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14480 echo "${ECHO_T}$ac_header_preproc" >&6; }
14482 # So? What about this header?
14483 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14484 yes:no: )
14485 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14486 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14487 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
14488 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
14489 ac_header_preproc=yes
14491 no:yes:* )
14492 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14493 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14494 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14495 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14496 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14497 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14498 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14499 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14500 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
14501 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
14502 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14503 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14506 esac
14507 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14508 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14509 if test "${ac_cv_header_tiffio_h+set}" = set; then
14510 echo $ECHO_N "(cached) $ECHO_C" >&6
14511 else
14512 ac_cv_header_tiffio_h=$ac_header_preproc
14514 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14515 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14518 if test $ac_cv_header_tiffio_h = yes; then
14519 tifflibs="-lz -lm"
14520 # At least one tiff package requires the jpeg library.
14521 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14522 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14523 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14524 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14525 echo $ECHO_N "(cached) $ECHO_C" >&6
14526 else
14527 ac_check_lib_save_LIBS=$LIBS
14528 LIBS="-ltiff $tifflibs $LIBS"
14529 cat >conftest.$ac_ext <<_ACEOF
14530 /* confdefs.h. */
14531 _ACEOF
14532 cat confdefs.h >>conftest.$ac_ext
14533 cat >>conftest.$ac_ext <<_ACEOF
14534 /* end confdefs.h. */
14536 /* Override any GCC internal prototype to avoid an error.
14537 Use char because int might match the return type of a GCC
14538 builtin and then its argument prototype would still apply. */
14539 #ifdef __cplusplus
14540 extern "C"
14541 #endif
14542 char TIFFGetVersion ();
14544 main ()
14546 return TIFFGetVersion ();
14548 return 0;
14550 _ACEOF
14551 rm -f conftest.$ac_objext conftest$ac_exeext
14552 if { (ac_try="$ac_link"
14553 case "(($ac_try" in
14554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14555 *) ac_try_echo=$ac_try;;
14556 esac
14557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14558 (eval "$ac_link") 2>conftest.er1
14559 ac_status=$?
14560 grep -v '^ *+' conftest.er1 >conftest.err
14561 rm -f conftest.er1
14562 cat conftest.err >&5
14563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564 (exit $ac_status); } && {
14565 test -z "$ac_c_werror_flag" ||
14566 test ! -s conftest.err
14567 } && test -s conftest$ac_exeext &&
14568 $as_test_x conftest$ac_exeext; then
14569 ac_cv_lib_tiff_TIFFGetVersion=yes
14570 else
14571 echo "$as_me: failed program was:" >&5
14572 sed 's/^/| /' conftest.$ac_ext >&5
14574 ac_cv_lib_tiff_TIFFGetVersion=no
14577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14578 conftest$ac_exeext conftest.$ac_ext
14579 LIBS=$ac_check_lib_save_LIBS
14581 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14582 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14583 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14584 HAVE_TIFF=yes
14592 if test "${HAVE_TIFF}" = "yes"; then
14594 cat >>confdefs.h <<\_ACEOF
14595 #define HAVE_TIFF 1
14596 _ACEOF
14601 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14602 HAVE_GIF=no
14603 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14604 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14605 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14606 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14607 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14608 echo $ECHO_N "(cached) $ECHO_C" >&6
14610 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14611 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14612 else
14613 # Is the header compilable?
14614 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14615 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14616 cat >conftest.$ac_ext <<_ACEOF
14617 /* confdefs.h. */
14618 _ACEOF
14619 cat confdefs.h >>conftest.$ac_ext
14620 cat >>conftest.$ac_ext <<_ACEOF
14621 /* end confdefs.h. */
14622 $ac_includes_default
14623 #include <gif_lib.h>
14624 _ACEOF
14625 rm -f conftest.$ac_objext
14626 if { (ac_try="$ac_compile"
14627 case "(($ac_try" in
14628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14629 *) ac_try_echo=$ac_try;;
14630 esac
14631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14632 (eval "$ac_compile") 2>conftest.er1
14633 ac_status=$?
14634 grep -v '^ *+' conftest.er1 >conftest.err
14635 rm -f conftest.er1
14636 cat conftest.err >&5
14637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638 (exit $ac_status); } && {
14639 test -z "$ac_c_werror_flag" ||
14640 test ! -s conftest.err
14641 } && test -s conftest.$ac_objext; then
14642 ac_header_compiler=yes
14643 else
14644 echo "$as_me: failed program was:" >&5
14645 sed 's/^/| /' conftest.$ac_ext >&5
14647 ac_header_compiler=no
14650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14651 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14652 echo "${ECHO_T}$ac_header_compiler" >&6; }
14654 # Is the header present?
14655 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14656 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14657 cat >conftest.$ac_ext <<_ACEOF
14658 /* confdefs.h. */
14659 _ACEOF
14660 cat confdefs.h >>conftest.$ac_ext
14661 cat >>conftest.$ac_ext <<_ACEOF
14662 /* end confdefs.h. */
14663 #include <gif_lib.h>
14664 _ACEOF
14665 if { (ac_try="$ac_cpp conftest.$ac_ext"
14666 case "(($ac_try" in
14667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14668 *) ac_try_echo=$ac_try;;
14669 esac
14670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14672 ac_status=$?
14673 grep -v '^ *+' conftest.er1 >conftest.err
14674 rm -f conftest.er1
14675 cat conftest.err >&5
14676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677 (exit $ac_status); } >/dev/null && {
14678 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14679 test ! -s conftest.err
14680 }; then
14681 ac_header_preproc=yes
14682 else
14683 echo "$as_me: failed program was:" >&5
14684 sed 's/^/| /' conftest.$ac_ext >&5
14686 ac_header_preproc=no
14689 rm -f conftest.err conftest.$ac_ext
14690 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14691 echo "${ECHO_T}$ac_header_preproc" >&6; }
14693 # So? What about this header?
14694 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14695 yes:no: )
14696 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14697 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14698 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14699 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14700 ac_header_preproc=yes
14702 no:yes:* )
14703 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14704 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14705 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14706 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14707 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14708 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14709 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14710 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14711 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14712 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14713 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14714 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14717 esac
14718 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14719 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14720 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14721 echo $ECHO_N "(cached) $ECHO_C" >&6
14722 else
14723 ac_cv_header_gif_lib_h=$ac_header_preproc
14725 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14726 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14729 if test $ac_cv_header_gif_lib_h = yes; then
14730 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14731 # Earlier versions can crash Emacs.
14732 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14733 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14734 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14735 echo $ECHO_N "(cached) $ECHO_C" >&6
14736 else
14737 ac_check_lib_save_LIBS=$LIBS
14738 LIBS="-lgif $LIBS"
14739 cat >conftest.$ac_ext <<_ACEOF
14740 /* confdefs.h. */
14741 _ACEOF
14742 cat confdefs.h >>conftest.$ac_ext
14743 cat >>conftest.$ac_ext <<_ACEOF
14744 /* end confdefs.h. */
14746 /* Override any GCC internal prototype to avoid an error.
14747 Use char because int might match the return type of a GCC
14748 builtin and then its argument prototype would still apply. */
14749 #ifdef __cplusplus
14750 extern "C"
14751 #endif
14752 char EGifPutExtensionLast ();
14754 main ()
14756 return EGifPutExtensionLast ();
14758 return 0;
14760 _ACEOF
14761 rm -f conftest.$ac_objext conftest$ac_exeext
14762 if { (ac_try="$ac_link"
14763 case "(($ac_try" in
14764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14765 *) ac_try_echo=$ac_try;;
14766 esac
14767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14768 (eval "$ac_link") 2>conftest.er1
14769 ac_status=$?
14770 grep -v '^ *+' conftest.er1 >conftest.err
14771 rm -f conftest.er1
14772 cat conftest.err >&5
14773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774 (exit $ac_status); } && {
14775 test -z "$ac_c_werror_flag" ||
14776 test ! -s conftest.err
14777 } && test -s conftest$ac_exeext &&
14778 $as_test_x conftest$ac_exeext; then
14779 ac_cv_lib_gif_EGifPutExtensionLast=yes
14780 else
14781 echo "$as_me: failed program was:" >&5
14782 sed 's/^/| /' conftest.$ac_ext >&5
14784 ac_cv_lib_gif_EGifPutExtensionLast=no
14787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14788 conftest$ac_exeext conftest.$ac_ext
14789 LIBS=$ac_check_lib_save_LIBS
14791 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14792 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14793 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14794 HAVE_GIF=yes
14795 else
14796 try_libungif=yes
14803 if test "$HAVE_GIF" = yes; then
14804 ac_gif_lib_name="-lgif"
14807 # If gif_lib.h but no libgif, try libungif.
14808 if test x"$try_libungif" = xyes; then
14809 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14810 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14811 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14812 echo $ECHO_N "(cached) $ECHO_C" >&6
14813 else
14814 ac_check_lib_save_LIBS=$LIBS
14815 LIBS="-lungif $LIBS"
14816 cat >conftest.$ac_ext <<_ACEOF
14817 /* confdefs.h. */
14818 _ACEOF
14819 cat confdefs.h >>conftest.$ac_ext
14820 cat >>conftest.$ac_ext <<_ACEOF
14821 /* end confdefs.h. */
14823 /* Override any GCC internal prototype to avoid an error.
14824 Use char because int might match the return type of a GCC
14825 builtin and then its argument prototype would still apply. */
14826 #ifdef __cplusplus
14827 extern "C"
14828 #endif
14829 char EGifPutExtensionLast ();
14831 main ()
14833 return EGifPutExtensionLast ();
14835 return 0;
14837 _ACEOF
14838 rm -f conftest.$ac_objext conftest$ac_exeext
14839 if { (ac_try="$ac_link"
14840 case "(($ac_try" in
14841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14842 *) ac_try_echo=$ac_try;;
14843 esac
14844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14845 (eval "$ac_link") 2>conftest.er1
14846 ac_status=$?
14847 grep -v '^ *+' conftest.er1 >conftest.err
14848 rm -f conftest.er1
14849 cat conftest.err >&5
14850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851 (exit $ac_status); } && {
14852 test -z "$ac_c_werror_flag" ||
14853 test ! -s conftest.err
14854 } && test -s conftest$ac_exeext &&
14855 $as_test_x conftest$ac_exeext; then
14856 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14857 else
14858 echo "$as_me: failed program was:" >&5
14859 sed 's/^/| /' conftest.$ac_ext >&5
14861 ac_cv_lib_ungif_EGifPutExtensionLast=no
14864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14865 conftest$ac_exeext conftest.$ac_ext
14866 LIBS=$ac_check_lib_save_LIBS
14868 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14869 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14870 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14871 HAVE_GIF=yes
14875 if test "$HAVE_GIF" = yes; then
14877 cat >>confdefs.h <<\_ACEOF
14878 #define LIBGIF -lungif
14879 _ACEOF
14881 ac_gif_lib_name="-lungif"
14885 if test "${HAVE_GIF}" = "yes"; then
14887 cat >>confdefs.h <<\_ACEOF
14888 #define HAVE_GIF 1
14889 _ACEOF
14894 if test "${HAVE_X11}" = "yes"; then
14895 MISSING=""
14896 WITH_NO=""
14897 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14898 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14899 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14900 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
14901 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14902 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
14903 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14904 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
14905 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14906 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
14908 if test "X${MISSING}" != X; then
14909 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14910 $MISSING
14911 Maybe some development libraries/packages are missing?
14912 If you don't want to link with them give
14913 $WITH_NO
14914 as options to configure" >&5
14915 echo "$as_me: error: The following required libraries were not found:
14916 $MISSING
14917 Maybe some development libraries/packages are missing?
14918 If you don't want to link with them give
14919 $WITH_NO
14920 as options to configure" >&2;}
14921 { (exit 1); exit 1; }; }
14925 ### Use -lgpm if available, unless `--with-gpm=no'.
14926 HAVE_GPM=no
14927 if test "${with_gpm}" != "no"; then
14928 if test "${ac_cv_header_gpm_h+set}" = set; then
14929 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14930 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14931 if test "${ac_cv_header_gpm_h+set}" = set; then
14932 echo $ECHO_N "(cached) $ECHO_C" >&6
14934 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14935 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14936 else
14937 # Is the header compilable?
14938 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14939 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14940 cat >conftest.$ac_ext <<_ACEOF
14941 /* confdefs.h. */
14942 _ACEOF
14943 cat confdefs.h >>conftest.$ac_ext
14944 cat >>conftest.$ac_ext <<_ACEOF
14945 /* end confdefs.h. */
14946 $ac_includes_default
14947 #include <gpm.h>
14948 _ACEOF
14949 rm -f conftest.$ac_objext
14950 if { (ac_try="$ac_compile"
14951 case "(($ac_try" in
14952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14953 *) ac_try_echo=$ac_try;;
14954 esac
14955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14956 (eval "$ac_compile") 2>conftest.er1
14957 ac_status=$?
14958 grep -v '^ *+' conftest.er1 >conftest.err
14959 rm -f conftest.er1
14960 cat conftest.err >&5
14961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962 (exit $ac_status); } && {
14963 test -z "$ac_c_werror_flag" ||
14964 test ! -s conftest.err
14965 } && test -s conftest.$ac_objext; then
14966 ac_header_compiler=yes
14967 else
14968 echo "$as_me: failed program was:" >&5
14969 sed 's/^/| /' conftest.$ac_ext >&5
14971 ac_header_compiler=no
14974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14975 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14976 echo "${ECHO_T}$ac_header_compiler" >&6; }
14978 # Is the header present?
14979 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14980 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14981 cat >conftest.$ac_ext <<_ACEOF
14982 /* confdefs.h. */
14983 _ACEOF
14984 cat confdefs.h >>conftest.$ac_ext
14985 cat >>conftest.$ac_ext <<_ACEOF
14986 /* end confdefs.h. */
14987 #include <gpm.h>
14988 _ACEOF
14989 if { (ac_try="$ac_cpp conftest.$ac_ext"
14990 case "(($ac_try" in
14991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14992 *) ac_try_echo=$ac_try;;
14993 esac
14994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14995 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14996 ac_status=$?
14997 grep -v '^ *+' conftest.er1 >conftest.err
14998 rm -f conftest.er1
14999 cat conftest.err >&5
15000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001 (exit $ac_status); } >/dev/null && {
15002 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15003 test ! -s conftest.err
15004 }; then
15005 ac_header_preproc=yes
15006 else
15007 echo "$as_me: failed program was:" >&5
15008 sed 's/^/| /' conftest.$ac_ext >&5
15010 ac_header_preproc=no
15013 rm -f conftest.err conftest.$ac_ext
15014 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15015 echo "${ECHO_T}$ac_header_preproc" >&6; }
15017 # So? What about this header?
15018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15019 yes:no: )
15020 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
15021 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15022 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
15023 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
15024 ac_header_preproc=yes
15026 no:yes:* )
15027 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
15028 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
15029 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
15030 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
15031 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
15032 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
15033 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
15034 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
15035 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
15036 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
15037 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
15038 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
15041 esac
15042 { echo "$as_me:$LINENO: checking for gpm.h" >&5
15043 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
15044 if test "${ac_cv_header_gpm_h+set}" = set; then
15045 echo $ECHO_N "(cached) $ECHO_C" >&6
15046 else
15047 ac_cv_header_gpm_h=$ac_header_preproc
15049 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15050 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
15053 if test $ac_cv_header_gpm_h = yes; then
15054 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
15055 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
15056 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
15057 echo $ECHO_N "(cached) $ECHO_C" >&6
15058 else
15059 ac_check_lib_save_LIBS=$LIBS
15060 LIBS="-lgpm $LIBS"
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. */
15068 /* Override any GCC internal prototype to avoid an error.
15069 Use char because int might match the return type of a GCC
15070 builtin and then its argument prototype would still apply. */
15071 #ifdef __cplusplus
15072 extern "C"
15073 #endif
15074 char Gpm_Open ();
15076 main ()
15078 return Gpm_Open ();
15080 return 0;
15082 _ACEOF
15083 rm -f conftest.$ac_objext conftest$ac_exeext
15084 if { (ac_try="$ac_link"
15085 case "(($ac_try" in
15086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15087 *) ac_try_echo=$ac_try;;
15088 esac
15089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15090 (eval "$ac_link") 2>conftest.er1
15091 ac_status=$?
15092 grep -v '^ *+' conftest.er1 >conftest.err
15093 rm -f conftest.er1
15094 cat conftest.err >&5
15095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096 (exit $ac_status); } && {
15097 test -z "$ac_c_werror_flag" ||
15098 test ! -s conftest.err
15099 } && test -s conftest$ac_exeext &&
15100 $as_test_x conftest$ac_exeext; then
15101 ac_cv_lib_gpm_Gpm_Open=yes
15102 else
15103 echo "$as_me: failed program was:" >&5
15104 sed 's/^/| /' conftest.$ac_ext >&5
15106 ac_cv_lib_gpm_Gpm_Open=no
15109 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15110 conftest$ac_exeext conftest.$ac_ext
15111 LIBS=$ac_check_lib_save_LIBS
15113 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
15114 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
15115 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
15116 HAVE_GPM=yes
15124 if test "${HAVE_GPM}" = "yes"; then
15126 cat >>confdefs.h <<\_ACEOF
15127 #define HAVE_GPM 1
15128 _ACEOF
15132 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15133 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15134 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
15135 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15136 echo $ECHO_N "(cached) $ECHO_C" >&6
15138 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15139 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
15140 else
15141 # Is the header compilable?
15142 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
15143 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
15144 cat >conftest.$ac_ext <<_ACEOF
15145 /* confdefs.h. */
15146 _ACEOF
15147 cat confdefs.h >>conftest.$ac_ext
15148 cat >>conftest.$ac_ext <<_ACEOF
15149 /* end confdefs.h. */
15150 $ac_includes_default
15151 #include <malloc/malloc.h>
15152 _ACEOF
15153 rm -f conftest.$ac_objext
15154 if { (ac_try="$ac_compile"
15155 case "(($ac_try" in
15156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15157 *) ac_try_echo=$ac_try;;
15158 esac
15159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15160 (eval "$ac_compile") 2>conftest.er1
15161 ac_status=$?
15162 grep -v '^ *+' conftest.er1 >conftest.err
15163 rm -f conftest.er1
15164 cat conftest.err >&5
15165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166 (exit $ac_status); } && {
15167 test -z "$ac_c_werror_flag" ||
15168 test ! -s conftest.err
15169 } && test -s conftest.$ac_objext; then
15170 ac_header_compiler=yes
15171 else
15172 echo "$as_me: failed program was:" >&5
15173 sed 's/^/| /' conftest.$ac_ext >&5
15175 ac_header_compiler=no
15178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15179 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15180 echo "${ECHO_T}$ac_header_compiler" >&6; }
15182 # Is the header present?
15183 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
15184 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
15185 cat >conftest.$ac_ext <<_ACEOF
15186 /* confdefs.h. */
15187 _ACEOF
15188 cat confdefs.h >>conftest.$ac_ext
15189 cat >>conftest.$ac_ext <<_ACEOF
15190 /* end confdefs.h. */
15191 #include <malloc/malloc.h>
15192 _ACEOF
15193 if { (ac_try="$ac_cpp conftest.$ac_ext"
15194 case "(($ac_try" in
15195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15196 *) ac_try_echo=$ac_try;;
15197 esac
15198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15199 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15200 ac_status=$?
15201 grep -v '^ *+' conftest.er1 >conftest.err
15202 rm -f conftest.er1
15203 cat conftest.err >&5
15204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205 (exit $ac_status); } >/dev/null && {
15206 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15207 test ! -s conftest.err
15208 }; then
15209 ac_header_preproc=yes
15210 else
15211 echo "$as_me: failed program was:" >&5
15212 sed 's/^/| /' conftest.$ac_ext >&5
15214 ac_header_preproc=no
15217 rm -f conftest.err conftest.$ac_ext
15218 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15219 echo "${ECHO_T}$ac_header_preproc" >&6; }
15221 # So? What about this header?
15222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15223 yes:no: )
15224 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
15225 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15226 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
15227 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
15228 ac_header_preproc=yes
15230 no:yes:* )
15231 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
15232 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
15233 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
15234 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
15235 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
15236 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
15237 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
15238 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
15239 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
15240 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
15241 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
15242 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
15245 esac
15246 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15247 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
15248 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15249 echo $ECHO_N "(cached) $ECHO_C" >&6
15250 else
15251 ac_cv_header_malloc_malloc_h=$ac_header_preproc
15253 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15254 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
15257 if test $ac_cv_header_malloc_malloc_h = yes; then
15259 cat >>confdefs.h <<\_ACEOF
15260 #define HAVE_MALLOC_MALLOC_H 1
15261 _ACEOF
15267 ### Use Mac OS X Carbon API to implement GUI.
15268 if test "${HAVE_CARBON}" = "yes"; then
15270 cat >>confdefs.h <<\_ACEOF
15271 #define HAVE_CARBON 1
15272 _ACEOF
15274 ## Specify the install directory
15275 carbon_appdir=
15276 if test "${carbon_appdir_x}" != ""; then
15277 case ${carbon_appdir_x} in
15278 y | ye | yes) carbon_appdir=/Applications ;;
15279 * ) carbon_appdir=${carbon_appdir_x} ;;
15280 esac
15282 # We also have mouse menus.
15283 HAVE_MENUS=yes
15286 ### Use session management (-lSM -lICE) if available
15287 HAVE_X_SM=no
15288 if test "${HAVE_X11}" = "yes"; then
15289 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15290 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15291 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15292 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15293 echo $ECHO_N "(cached) $ECHO_C" >&6
15295 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15296 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15297 else
15298 # Is the header compilable?
15299 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
15300 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
15301 cat >conftest.$ac_ext <<_ACEOF
15302 /* confdefs.h. */
15303 _ACEOF
15304 cat confdefs.h >>conftest.$ac_ext
15305 cat >>conftest.$ac_ext <<_ACEOF
15306 /* end confdefs.h. */
15307 $ac_includes_default
15308 #include <X11/SM/SMlib.h>
15309 _ACEOF
15310 rm -f conftest.$ac_objext
15311 if { (ac_try="$ac_compile"
15312 case "(($ac_try" in
15313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15314 *) ac_try_echo=$ac_try;;
15315 esac
15316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15317 (eval "$ac_compile") 2>conftest.er1
15318 ac_status=$?
15319 grep -v '^ *+' conftest.er1 >conftest.err
15320 rm -f conftest.er1
15321 cat conftest.err >&5
15322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323 (exit $ac_status); } && {
15324 test -z "$ac_c_werror_flag" ||
15325 test ! -s conftest.err
15326 } && test -s conftest.$ac_objext; then
15327 ac_header_compiler=yes
15328 else
15329 echo "$as_me: failed program was:" >&5
15330 sed 's/^/| /' conftest.$ac_ext >&5
15332 ac_header_compiler=no
15335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15336 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15337 echo "${ECHO_T}$ac_header_compiler" >&6; }
15339 # Is the header present?
15340 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
15341 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
15342 cat >conftest.$ac_ext <<_ACEOF
15343 /* confdefs.h. */
15344 _ACEOF
15345 cat confdefs.h >>conftest.$ac_ext
15346 cat >>conftest.$ac_ext <<_ACEOF
15347 /* end confdefs.h. */
15348 #include <X11/SM/SMlib.h>
15349 _ACEOF
15350 if { (ac_try="$ac_cpp conftest.$ac_ext"
15351 case "(($ac_try" in
15352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15353 *) ac_try_echo=$ac_try;;
15354 esac
15355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15356 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15357 ac_status=$?
15358 grep -v '^ *+' conftest.er1 >conftest.err
15359 rm -f conftest.er1
15360 cat conftest.err >&5
15361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362 (exit $ac_status); } >/dev/null && {
15363 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15364 test ! -s conftest.err
15365 }; then
15366 ac_header_preproc=yes
15367 else
15368 echo "$as_me: failed program was:" >&5
15369 sed 's/^/| /' conftest.$ac_ext >&5
15371 ac_header_preproc=no
15374 rm -f conftest.err conftest.$ac_ext
15375 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15376 echo "${ECHO_T}$ac_header_preproc" >&6; }
15378 # So? What about this header?
15379 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15380 yes:no: )
15381 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15382 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15383 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
15384 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
15385 ac_header_preproc=yes
15387 no:yes:* )
15388 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
15389 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
15390 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
15391 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
15392 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
15393 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
15394 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
15395 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15396 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
15397 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
15398 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
15399 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
15402 esac
15403 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15404 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15405 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15406 echo $ECHO_N "(cached) $ECHO_C" >&6
15407 else
15408 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15410 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15411 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15414 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15415 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
15416 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
15417 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15418 echo $ECHO_N "(cached) $ECHO_C" >&6
15419 else
15420 ac_check_lib_save_LIBS=$LIBS
15421 LIBS="-lSM -lICE $LIBS"
15422 cat >conftest.$ac_ext <<_ACEOF
15423 /* confdefs.h. */
15424 _ACEOF
15425 cat confdefs.h >>conftest.$ac_ext
15426 cat >>conftest.$ac_ext <<_ACEOF
15427 /* end confdefs.h. */
15429 /* Override any GCC internal prototype to avoid an error.
15430 Use char because int might match the return type of a GCC
15431 builtin and then its argument prototype would still apply. */
15432 #ifdef __cplusplus
15433 extern "C"
15434 #endif
15435 char SmcOpenConnection ();
15437 main ()
15439 return SmcOpenConnection ();
15441 return 0;
15443 _ACEOF
15444 rm -f conftest.$ac_objext conftest$ac_exeext
15445 if { (ac_try="$ac_link"
15446 case "(($ac_try" in
15447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15448 *) ac_try_echo=$ac_try;;
15449 esac
15450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15451 (eval "$ac_link") 2>conftest.er1
15452 ac_status=$?
15453 grep -v '^ *+' conftest.er1 >conftest.err
15454 rm -f conftest.er1
15455 cat conftest.err >&5
15456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457 (exit $ac_status); } && {
15458 test -z "$ac_c_werror_flag" ||
15459 test ! -s conftest.err
15460 } && test -s conftest$ac_exeext &&
15461 $as_test_x conftest$ac_exeext; then
15462 ac_cv_lib_SM_SmcOpenConnection=yes
15463 else
15464 echo "$as_me: failed program was:" >&5
15465 sed 's/^/| /' conftest.$ac_ext >&5
15467 ac_cv_lib_SM_SmcOpenConnection=no
15470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15471 conftest$ac_exeext conftest.$ac_ext
15472 LIBS=$ac_check_lib_save_LIBS
15474 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15475 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15476 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15477 HAVE_X_SM=yes
15484 if test "${HAVE_X_SM}" = "yes"; then
15486 cat >>confdefs.h <<\_ACEOF
15487 #define HAVE_X_SM 1
15488 _ACEOF
15490 case "$LIBS" in
15491 *-lSM*) ;;
15492 *) LIBS="-lSM -lICE $LIBS" ;;
15493 esac
15497 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15498 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15499 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
15500 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15501 echo $ECHO_N "(cached) $ECHO_C" >&6
15502 else
15503 cat >conftest.$ac_ext <<_ACEOF
15504 /* confdefs.h. */
15505 _ACEOF
15506 cat confdefs.h >>conftest.$ac_ext
15507 cat >>conftest.$ac_ext <<_ACEOF
15508 /* end confdefs.h. */
15509 #include <netdb.h>
15511 main ()
15513 return h_errno;
15515 return 0;
15517 _ACEOF
15518 rm -f conftest.$ac_objext conftest$ac_exeext
15519 if { (ac_try="$ac_link"
15520 case "(($ac_try" in
15521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15522 *) ac_try_echo=$ac_try;;
15523 esac
15524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15525 (eval "$ac_link") 2>conftest.er1
15526 ac_status=$?
15527 grep -v '^ *+' conftest.er1 >conftest.err
15528 rm -f conftest.er1
15529 cat conftest.err >&5
15530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531 (exit $ac_status); } && {
15532 test -z "$ac_c_werror_flag" ||
15533 test ! -s conftest.err
15534 } && test -s conftest$ac_exeext &&
15535 $as_test_x conftest$ac_exeext; then
15536 emacs_cv_netdb_declares_h_errno=yes
15537 else
15538 echo "$as_me: failed program was:" >&5
15539 sed 's/^/| /' conftest.$ac_ext >&5
15541 emacs_cv_netdb_declares_h_errno=no
15544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15545 conftest$ac_exeext conftest.$ac_ext
15547 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15548 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15549 if test $emacs_cv_netdb_declares_h_errno = yes; then
15551 cat >>confdefs.h <<\_ACEOF
15552 #define HAVE_H_ERRNO 1
15553 _ACEOF
15557 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15558 # for constant arguments. Useless!
15559 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15560 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15561 if test "${ac_cv_working_alloca_h+set}" = set; then
15562 echo $ECHO_N "(cached) $ECHO_C" >&6
15563 else
15564 cat >conftest.$ac_ext <<_ACEOF
15565 /* confdefs.h. */
15566 _ACEOF
15567 cat confdefs.h >>conftest.$ac_ext
15568 cat >>conftest.$ac_ext <<_ACEOF
15569 /* end confdefs.h. */
15570 #include <alloca.h>
15572 main ()
15574 char *p = (char *) alloca (2 * sizeof (int));
15575 if (p) return 0;
15577 return 0;
15579 _ACEOF
15580 rm -f conftest.$ac_objext conftest$ac_exeext
15581 if { (ac_try="$ac_link"
15582 case "(($ac_try" in
15583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15584 *) ac_try_echo=$ac_try;;
15585 esac
15586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15587 (eval "$ac_link") 2>conftest.er1
15588 ac_status=$?
15589 grep -v '^ *+' conftest.er1 >conftest.err
15590 rm -f conftest.er1
15591 cat conftest.err >&5
15592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15593 (exit $ac_status); } && {
15594 test -z "$ac_c_werror_flag" ||
15595 test ! -s conftest.err
15596 } && test -s conftest$ac_exeext &&
15597 $as_test_x conftest$ac_exeext; then
15598 ac_cv_working_alloca_h=yes
15599 else
15600 echo "$as_me: failed program was:" >&5
15601 sed 's/^/| /' conftest.$ac_ext >&5
15603 ac_cv_working_alloca_h=no
15606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15607 conftest$ac_exeext conftest.$ac_ext
15609 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15610 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15611 if test $ac_cv_working_alloca_h = yes; then
15613 cat >>confdefs.h <<\_ACEOF
15614 #define HAVE_ALLOCA_H 1
15615 _ACEOF
15619 { echo "$as_me:$LINENO: checking for alloca" >&5
15620 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15621 if test "${ac_cv_func_alloca_works+set}" = set; then
15622 echo $ECHO_N "(cached) $ECHO_C" >&6
15623 else
15624 cat >conftest.$ac_ext <<_ACEOF
15625 /* confdefs.h. */
15626 _ACEOF
15627 cat confdefs.h >>conftest.$ac_ext
15628 cat >>conftest.$ac_ext <<_ACEOF
15629 /* end confdefs.h. */
15630 #ifdef __GNUC__
15631 # define alloca __builtin_alloca
15632 #else
15633 # ifdef _MSC_VER
15634 # include <malloc.h>
15635 # define alloca _alloca
15636 # else
15637 # ifdef HAVE_ALLOCA_H
15638 # include <alloca.h>
15639 # else
15640 # ifdef _AIX
15641 #pragma alloca
15642 # else
15643 # ifndef alloca /* predefined by HP cc +Olibcalls */
15644 char *alloca ();
15645 # endif
15646 # endif
15647 # endif
15648 # endif
15649 #endif
15652 main ()
15654 char *p = (char *) alloca (1);
15655 if (p) return 0;
15657 return 0;
15659 _ACEOF
15660 rm -f conftest.$ac_objext conftest$ac_exeext
15661 if { (ac_try="$ac_link"
15662 case "(($ac_try" in
15663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15664 *) ac_try_echo=$ac_try;;
15665 esac
15666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15667 (eval "$ac_link") 2>conftest.er1
15668 ac_status=$?
15669 grep -v '^ *+' conftest.er1 >conftest.err
15670 rm -f conftest.er1
15671 cat conftest.err >&5
15672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15673 (exit $ac_status); } && {
15674 test -z "$ac_c_werror_flag" ||
15675 test ! -s conftest.err
15676 } && test -s conftest$ac_exeext &&
15677 $as_test_x conftest$ac_exeext; then
15678 ac_cv_func_alloca_works=yes
15679 else
15680 echo "$as_me: failed program was:" >&5
15681 sed 's/^/| /' conftest.$ac_ext >&5
15683 ac_cv_func_alloca_works=no
15686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15687 conftest$ac_exeext conftest.$ac_ext
15689 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15690 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15692 if test $ac_cv_func_alloca_works = yes; then
15694 cat >>confdefs.h <<\_ACEOF
15695 #define HAVE_ALLOCA 1
15696 _ACEOF
15698 else
15699 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15700 # that cause trouble. Some versions do not even contain alloca or
15701 # contain a buggy version. If you still want to use their alloca,
15702 # use ar to extract alloca.o from them instead of compiling alloca.c.
15704 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15706 cat >>confdefs.h <<\_ACEOF
15707 #define C_ALLOCA 1
15708 _ACEOF
15711 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15712 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
15713 if test "${ac_cv_os_cray+set}" = set; then
15714 echo $ECHO_N "(cached) $ECHO_C" >&6
15715 else
15716 cat >conftest.$ac_ext <<_ACEOF
15717 /* confdefs.h. */
15718 _ACEOF
15719 cat confdefs.h >>conftest.$ac_ext
15720 cat >>conftest.$ac_ext <<_ACEOF
15721 /* end confdefs.h. */
15722 #if defined CRAY && ! defined CRAY2
15723 webecray
15724 #else
15725 wenotbecray
15726 #endif
15728 _ACEOF
15729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15730 $EGREP "webecray" >/dev/null 2>&1; then
15731 ac_cv_os_cray=yes
15732 else
15733 ac_cv_os_cray=no
15735 rm -f conftest*
15738 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15739 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15740 if test $ac_cv_os_cray = yes; then
15741 for ac_func in _getb67 GETB67 getb67; do
15742 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15743 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15745 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15746 echo $ECHO_N "(cached) $ECHO_C" >&6
15747 else
15748 cat >conftest.$ac_ext <<_ACEOF
15749 /* confdefs.h. */
15750 _ACEOF
15751 cat confdefs.h >>conftest.$ac_ext
15752 cat >>conftest.$ac_ext <<_ACEOF
15753 /* end confdefs.h. */
15754 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15756 #define $ac_func innocuous_$ac_func
15758 /* System header to define __stub macros and hopefully few prototypes,
15759 which can conflict with char $ac_func (); below.
15760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15761 <limits.h> exists even on freestanding compilers. */
15763 #ifdef __STDC__
15764 # include <limits.h>
15765 #else
15766 # include <assert.h>
15767 #endif
15769 #undef $ac_func
15771 /* Override any GCC internal prototype to avoid an error.
15772 Use char because int might match the return type of a GCC
15773 builtin and then its argument prototype would still apply. */
15774 #ifdef __cplusplus
15775 extern "C"
15776 #endif
15777 char $ac_func ();
15778 /* The GNU C library defines this for functions which it implements
15779 to always fail with ENOSYS. Some functions are actually named
15780 something starting with __ and the normal name is an alias. */
15781 #if defined __stub_$ac_func || defined __stub___$ac_func
15782 choke me
15783 #endif
15786 main ()
15788 return $ac_func ();
15790 return 0;
15792 _ACEOF
15793 rm -f conftest.$ac_objext conftest$ac_exeext
15794 if { (ac_try="$ac_link"
15795 case "(($ac_try" in
15796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15797 *) ac_try_echo=$ac_try;;
15798 esac
15799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15800 (eval "$ac_link") 2>conftest.er1
15801 ac_status=$?
15802 grep -v '^ *+' conftest.er1 >conftest.err
15803 rm -f conftest.er1
15804 cat conftest.err >&5
15805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15806 (exit $ac_status); } && {
15807 test -z "$ac_c_werror_flag" ||
15808 test ! -s conftest.err
15809 } && test -s conftest$ac_exeext &&
15810 $as_test_x conftest$ac_exeext; then
15811 eval "$as_ac_var=yes"
15812 else
15813 echo "$as_me: failed program was:" >&5
15814 sed 's/^/| /' conftest.$ac_ext >&5
15816 eval "$as_ac_var=no"
15819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15820 conftest$ac_exeext conftest.$ac_ext
15822 ac_res=`eval echo '${'$as_ac_var'}'`
15823 { echo "$as_me:$LINENO: result: $ac_res" >&5
15824 echo "${ECHO_T}$ac_res" >&6; }
15825 if test `eval echo '${'$as_ac_var'}'` = yes; then
15827 cat >>confdefs.h <<_ACEOF
15828 #define CRAY_STACKSEG_END $ac_func
15829 _ACEOF
15831 break
15834 done
15837 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15838 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
15839 if test "${ac_cv_c_stack_direction+set}" = set; then
15840 echo $ECHO_N "(cached) $ECHO_C" >&6
15841 else
15842 if test "$cross_compiling" = yes; then
15843 ac_cv_c_stack_direction=0
15844 else
15845 cat >conftest.$ac_ext <<_ACEOF
15846 /* confdefs.h. */
15847 _ACEOF
15848 cat confdefs.h >>conftest.$ac_ext
15849 cat >>conftest.$ac_ext <<_ACEOF
15850 /* end confdefs.h. */
15851 $ac_includes_default
15853 find_stack_direction ()
15855 static char *addr = 0;
15856 auto char dummy;
15857 if (addr == 0)
15859 addr = &dummy;
15860 return find_stack_direction ();
15862 else
15863 return (&dummy > addr) ? 1 : -1;
15867 main ()
15869 return find_stack_direction () < 0;
15871 _ACEOF
15872 rm -f conftest$ac_exeext
15873 if { (ac_try="$ac_link"
15874 case "(($ac_try" in
15875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15876 *) ac_try_echo=$ac_try;;
15877 esac
15878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15879 (eval "$ac_link") 2>&5
15880 ac_status=$?
15881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15882 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15883 { (case "(($ac_try" in
15884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15885 *) ac_try_echo=$ac_try;;
15886 esac
15887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15888 (eval "$ac_try") 2>&5
15889 ac_status=$?
15890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15891 (exit $ac_status); }; }; then
15892 ac_cv_c_stack_direction=1
15893 else
15894 echo "$as_me: program exited with status $ac_status" >&5
15895 echo "$as_me: failed program was:" >&5
15896 sed 's/^/| /' conftest.$ac_ext >&5
15898 ( exit $ac_status )
15899 ac_cv_c_stack_direction=-1
15901 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15906 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15907 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15909 cat >>confdefs.h <<_ACEOF
15910 #define STACK_DIRECTION $ac_cv_c_stack_direction
15911 _ACEOF
15917 if test x"$ac_cv_func_alloca_works" != xyes; then
15918 { { echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
15919 echo "$as_me: error: a system implementation of alloca is required " >&2;}
15920 { (exit 1); exit 1; }; }
15923 # fmod, logb, and frexp are found in -lm on most systems.
15924 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15926 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15927 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15928 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15929 echo $ECHO_N "(cached) $ECHO_C" >&6
15930 else
15931 ac_check_lib_save_LIBS=$LIBS
15932 LIBS="-lm $LIBS"
15933 cat >conftest.$ac_ext <<_ACEOF
15934 /* confdefs.h. */
15935 _ACEOF
15936 cat confdefs.h >>conftest.$ac_ext
15937 cat >>conftest.$ac_ext <<_ACEOF
15938 /* end confdefs.h. */
15940 /* Override any GCC internal prototype to avoid an error.
15941 Use char because int might match the return type of a GCC
15942 builtin and then its argument prototype would still apply. */
15943 #ifdef __cplusplus
15944 extern "C"
15945 #endif
15946 char sqrt ();
15948 main ()
15950 return sqrt ();
15952 return 0;
15954 _ACEOF
15955 rm -f conftest.$ac_objext conftest$ac_exeext
15956 if { (ac_try="$ac_link"
15957 case "(($ac_try" in
15958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15959 *) ac_try_echo=$ac_try;;
15960 esac
15961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15962 (eval "$ac_link") 2>conftest.er1
15963 ac_status=$?
15964 grep -v '^ *+' conftest.er1 >conftest.err
15965 rm -f conftest.er1
15966 cat conftest.err >&5
15967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15968 (exit $ac_status); } && {
15969 test -z "$ac_c_werror_flag" ||
15970 test ! -s conftest.err
15971 } && test -s conftest$ac_exeext &&
15972 $as_test_x conftest$ac_exeext; then
15973 ac_cv_lib_m_sqrt=yes
15974 else
15975 echo "$as_me: failed program was:" >&5
15976 sed 's/^/| /' conftest.$ac_ext >&5
15978 ac_cv_lib_m_sqrt=no
15981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15982 conftest$ac_exeext conftest.$ac_ext
15983 LIBS=$ac_check_lib_save_LIBS
15985 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15986 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15987 if test $ac_cv_lib_m_sqrt = yes; then
15988 cat >>confdefs.h <<_ACEOF
15989 #define HAVE_LIBM 1
15990 _ACEOF
15992 LIBS="-lm $LIBS"
15997 # Check for mail-locking functions in a "mail" library. Probably this should
15998 # have the same check as for liblockfile below.
16000 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
16001 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
16002 if test "${ac_cv_lib_mail_maillock+set}" = set; then
16003 echo $ECHO_N "(cached) $ECHO_C" >&6
16004 else
16005 ac_check_lib_save_LIBS=$LIBS
16006 LIBS="-lmail $LIBS"
16007 cat >conftest.$ac_ext <<_ACEOF
16008 /* confdefs.h. */
16009 _ACEOF
16010 cat confdefs.h >>conftest.$ac_ext
16011 cat >>conftest.$ac_ext <<_ACEOF
16012 /* end confdefs.h. */
16014 /* Override any GCC internal prototype to avoid an error.
16015 Use char because int might match the return type of a GCC
16016 builtin and then its argument prototype would still apply. */
16017 #ifdef __cplusplus
16018 extern "C"
16019 #endif
16020 char maillock ();
16022 main ()
16024 return maillock ();
16026 return 0;
16028 _ACEOF
16029 rm -f conftest.$ac_objext conftest$ac_exeext
16030 if { (ac_try="$ac_link"
16031 case "(($ac_try" in
16032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16033 *) ac_try_echo=$ac_try;;
16034 esac
16035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16036 (eval "$ac_link") 2>conftest.er1
16037 ac_status=$?
16038 grep -v '^ *+' conftest.er1 >conftest.err
16039 rm -f conftest.er1
16040 cat conftest.err >&5
16041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042 (exit $ac_status); } && {
16043 test -z "$ac_c_werror_flag" ||
16044 test ! -s conftest.err
16045 } && test -s conftest$ac_exeext &&
16046 $as_test_x conftest$ac_exeext; then
16047 ac_cv_lib_mail_maillock=yes
16048 else
16049 echo "$as_me: failed program was:" >&5
16050 sed 's/^/| /' conftest.$ac_ext >&5
16052 ac_cv_lib_mail_maillock=no
16055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16056 conftest$ac_exeext conftest.$ac_ext
16057 LIBS=$ac_check_lib_save_LIBS
16059 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
16060 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
16061 if test $ac_cv_lib_mail_maillock = yes; then
16062 cat >>confdefs.h <<_ACEOF
16063 #define HAVE_LIBMAIL 1
16064 _ACEOF
16066 LIBS="-lmail $LIBS"
16071 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
16072 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
16073 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
16074 echo $ECHO_N "(cached) $ECHO_C" >&6
16075 else
16076 ac_check_lib_save_LIBS=$LIBS
16077 LIBS="-llockfile $LIBS"
16078 cat >conftest.$ac_ext <<_ACEOF
16079 /* confdefs.h. */
16080 _ACEOF
16081 cat confdefs.h >>conftest.$ac_ext
16082 cat >>conftest.$ac_ext <<_ACEOF
16083 /* end confdefs.h. */
16085 /* Override any GCC internal prototype to avoid an error.
16086 Use char because int might match the return type of a GCC
16087 builtin and then its argument prototype would still apply. */
16088 #ifdef __cplusplus
16089 extern "C"
16090 #endif
16091 char maillock ();
16093 main ()
16095 return maillock ();
16097 return 0;
16099 _ACEOF
16100 rm -f conftest.$ac_objext conftest$ac_exeext
16101 if { (ac_try="$ac_link"
16102 case "(($ac_try" in
16103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16104 *) ac_try_echo=$ac_try;;
16105 esac
16106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16107 (eval "$ac_link") 2>conftest.er1
16108 ac_status=$?
16109 grep -v '^ *+' conftest.er1 >conftest.err
16110 rm -f conftest.er1
16111 cat conftest.err >&5
16112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16113 (exit $ac_status); } && {
16114 test -z "$ac_c_werror_flag" ||
16115 test ! -s conftest.err
16116 } && test -s conftest$ac_exeext &&
16117 $as_test_x conftest$ac_exeext; then
16118 ac_cv_lib_lockfile_maillock=yes
16119 else
16120 echo "$as_me: failed program was:" >&5
16121 sed 's/^/| /' conftest.$ac_ext >&5
16123 ac_cv_lib_lockfile_maillock=no
16126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16127 conftest$ac_exeext conftest.$ac_ext
16128 LIBS=$ac_check_lib_save_LIBS
16130 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
16131 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
16132 if test $ac_cv_lib_lockfile_maillock = yes; then
16133 cat >>confdefs.h <<_ACEOF
16134 #define HAVE_LIBLOCKFILE 1
16135 _ACEOF
16137 LIBS="-llockfile $LIBS"
16141 # If we have the shared liblockfile, assume we must use it for mail
16142 # locking (e.g. Debian). If we couldn't link against liblockfile
16143 # (no liblockfile.a installed), ensure that we don't need to.
16144 if test "$ac_cv_lib_lockfile_maillock" = no; then
16145 # Extract the first word of "liblockfile.so", so it can be a program name with args.
16146 set dummy liblockfile.so; ac_word=$2
16147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16149 if test "${ac_cv_prog_liblockfile+set}" = set; then
16150 echo $ECHO_N "(cached) $ECHO_C" >&6
16151 else
16152 if test -n "$liblockfile"; then
16153 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
16154 else
16155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16156 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
16157 for as_dir in $as_dummy
16159 IFS=$as_save_IFS
16160 test -z "$as_dir" && as_dir=.
16161 for ac_exec_ext in '' $ac_executable_extensions; do
16162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16163 ac_cv_prog_liblockfile="yes"
16164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16165 break 2
16167 done
16168 done
16169 IFS=$as_save_IFS
16171 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
16174 liblockfile=$ac_cv_prog_liblockfile
16175 if test -n "$liblockfile"; then
16176 { echo "$as_me:$LINENO: result: $liblockfile" >&5
16177 echo "${ECHO_T}$liblockfile" >&6; }
16178 else
16179 { echo "$as_me:$LINENO: result: no" >&5
16180 echo "${ECHO_T}no" >&6; }
16184 if test $ac_cv_prog_liblockfile = yes; then
16185 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
16186 This probably means that movemail could lose mail.
16187 There may be a \`development' package to install containing liblockfile." >&5
16188 echo "$as_me: error: Shared liblockfile found but can't link against it.
16189 This probably means that movemail could lose mail.
16190 There may be a \`development' package to install containing liblockfile." >&2;}
16191 { (exit 1); exit 1; }; }
16192 else :
16196 for ac_func in touchlock
16198 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16199 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16200 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16201 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16202 echo $ECHO_N "(cached) $ECHO_C" >&6
16203 else
16204 cat >conftest.$ac_ext <<_ACEOF
16205 /* confdefs.h. */
16206 _ACEOF
16207 cat confdefs.h >>conftest.$ac_ext
16208 cat >>conftest.$ac_ext <<_ACEOF
16209 /* end confdefs.h. */
16210 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16211 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16212 #define $ac_func innocuous_$ac_func
16214 /* System header to define __stub macros and hopefully few prototypes,
16215 which can conflict with char $ac_func (); below.
16216 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16217 <limits.h> exists even on freestanding compilers. */
16219 #ifdef __STDC__
16220 # include <limits.h>
16221 #else
16222 # include <assert.h>
16223 #endif
16225 #undef $ac_func
16227 /* Override any GCC internal prototype to avoid an error.
16228 Use char because int might match the return type of a GCC
16229 builtin and then its argument prototype would still apply. */
16230 #ifdef __cplusplus
16231 extern "C"
16232 #endif
16233 char $ac_func ();
16234 /* The GNU C library defines this for functions which it implements
16235 to always fail with ENOSYS. Some functions are actually named
16236 something starting with __ and the normal name is an alias. */
16237 #if defined __stub_$ac_func || defined __stub___$ac_func
16238 choke me
16239 #endif
16242 main ()
16244 return $ac_func ();
16246 return 0;
16248 _ACEOF
16249 rm -f conftest.$ac_objext conftest$ac_exeext
16250 if { (ac_try="$ac_link"
16251 case "(($ac_try" in
16252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16253 *) ac_try_echo=$ac_try;;
16254 esac
16255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16256 (eval "$ac_link") 2>conftest.er1
16257 ac_status=$?
16258 grep -v '^ *+' conftest.er1 >conftest.err
16259 rm -f conftest.er1
16260 cat conftest.err >&5
16261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16262 (exit $ac_status); } && {
16263 test -z "$ac_c_werror_flag" ||
16264 test ! -s conftest.err
16265 } && test -s conftest$ac_exeext &&
16266 $as_test_x conftest$ac_exeext; then
16267 eval "$as_ac_var=yes"
16268 else
16269 echo "$as_me: failed program was:" >&5
16270 sed 's/^/| /' conftest.$ac_ext >&5
16272 eval "$as_ac_var=no"
16275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16276 conftest$ac_exeext conftest.$ac_ext
16278 ac_res=`eval echo '${'$as_ac_var'}'`
16279 { echo "$as_me:$LINENO: result: $ac_res" >&5
16280 echo "${ECHO_T}$ac_res" >&6; }
16281 if test `eval echo '${'$as_ac_var'}'` = yes; then
16282 cat >>confdefs.h <<_ACEOF
16283 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16284 _ACEOF
16287 done
16290 for ac_header in maillock.h
16292 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16294 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16297 echo $ECHO_N "(cached) $ECHO_C" >&6
16299 ac_res=`eval echo '${'$as_ac_Header'}'`
16300 { echo "$as_me:$LINENO: result: $ac_res" >&5
16301 echo "${ECHO_T}$ac_res" >&6; }
16302 else
16303 # Is the header compilable?
16304 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16305 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16306 cat >conftest.$ac_ext <<_ACEOF
16307 /* confdefs.h. */
16308 _ACEOF
16309 cat confdefs.h >>conftest.$ac_ext
16310 cat >>conftest.$ac_ext <<_ACEOF
16311 /* end confdefs.h. */
16312 $ac_includes_default
16313 #include <$ac_header>
16314 _ACEOF
16315 rm -f conftest.$ac_objext
16316 if { (ac_try="$ac_compile"
16317 case "(($ac_try" in
16318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16319 *) ac_try_echo=$ac_try;;
16320 esac
16321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16322 (eval "$ac_compile") 2>conftest.er1
16323 ac_status=$?
16324 grep -v '^ *+' conftest.er1 >conftest.err
16325 rm -f conftest.er1
16326 cat conftest.err >&5
16327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328 (exit $ac_status); } && {
16329 test -z "$ac_c_werror_flag" ||
16330 test ! -s conftest.err
16331 } && test -s conftest.$ac_objext; then
16332 ac_header_compiler=yes
16333 else
16334 echo "$as_me: failed program was:" >&5
16335 sed 's/^/| /' conftest.$ac_ext >&5
16337 ac_header_compiler=no
16340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16341 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16342 echo "${ECHO_T}$ac_header_compiler" >&6; }
16344 # Is the header present?
16345 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16346 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16347 cat >conftest.$ac_ext <<_ACEOF
16348 /* confdefs.h. */
16349 _ACEOF
16350 cat confdefs.h >>conftest.$ac_ext
16351 cat >>conftest.$ac_ext <<_ACEOF
16352 /* end confdefs.h. */
16353 #include <$ac_header>
16354 _ACEOF
16355 if { (ac_try="$ac_cpp conftest.$ac_ext"
16356 case "(($ac_try" in
16357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16358 *) ac_try_echo=$ac_try;;
16359 esac
16360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16361 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16362 ac_status=$?
16363 grep -v '^ *+' conftest.er1 >conftest.err
16364 rm -f conftest.er1
16365 cat conftest.err >&5
16366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367 (exit $ac_status); } >/dev/null && {
16368 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16369 test ! -s conftest.err
16370 }; then
16371 ac_header_preproc=yes
16372 else
16373 echo "$as_me: failed program was:" >&5
16374 sed 's/^/| /' conftest.$ac_ext >&5
16376 ac_header_preproc=no
16379 rm -f conftest.err conftest.$ac_ext
16380 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16381 echo "${ECHO_T}$ac_header_preproc" >&6; }
16383 # So? What about this header?
16384 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16385 yes:no: )
16386 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16387 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16389 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16390 ac_header_preproc=yes
16392 no:yes:* )
16393 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16394 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16395 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16396 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16397 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16398 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16399 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16400 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16401 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16402 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16403 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16404 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16407 esac
16408 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16411 echo $ECHO_N "(cached) $ECHO_C" >&6
16412 else
16413 eval "$as_ac_Header=\$ac_header_preproc"
16415 ac_res=`eval echo '${'$as_ac_Header'}'`
16416 { echo "$as_me:$LINENO: result: $ac_res" >&5
16417 echo "${ECHO_T}$ac_res" >&6; }
16420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16421 cat >>confdefs.h <<_ACEOF
16422 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16423 _ACEOF
16427 done
16498 for ac_func in gethostname getdomainname dup2 \
16499 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16500 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16501 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16502 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16503 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16504 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16505 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16506 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
16508 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16509 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16510 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16511 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16512 echo $ECHO_N "(cached) $ECHO_C" >&6
16513 else
16514 cat >conftest.$ac_ext <<_ACEOF
16515 /* confdefs.h. */
16516 _ACEOF
16517 cat confdefs.h >>conftest.$ac_ext
16518 cat >>conftest.$ac_ext <<_ACEOF
16519 /* end confdefs.h. */
16520 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16522 #define $ac_func innocuous_$ac_func
16524 /* System header to define __stub macros and hopefully few prototypes,
16525 which can conflict with char $ac_func (); below.
16526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16527 <limits.h> exists even on freestanding compilers. */
16529 #ifdef __STDC__
16530 # include <limits.h>
16531 #else
16532 # include <assert.h>
16533 #endif
16535 #undef $ac_func
16537 /* Override any GCC internal prototype to avoid an error.
16538 Use char because int might match the return type of a GCC
16539 builtin and then its argument prototype would still apply. */
16540 #ifdef __cplusplus
16541 extern "C"
16542 #endif
16543 char $ac_func ();
16544 /* The GNU C library defines this for functions which it implements
16545 to always fail with ENOSYS. Some functions are actually named
16546 something starting with __ and the normal name is an alias. */
16547 #if defined __stub_$ac_func || defined __stub___$ac_func
16548 choke me
16549 #endif
16552 main ()
16554 return $ac_func ();
16556 return 0;
16558 _ACEOF
16559 rm -f conftest.$ac_objext conftest$ac_exeext
16560 if { (ac_try="$ac_link"
16561 case "(($ac_try" in
16562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16563 *) ac_try_echo=$ac_try;;
16564 esac
16565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16566 (eval "$ac_link") 2>conftest.er1
16567 ac_status=$?
16568 grep -v '^ *+' conftest.er1 >conftest.err
16569 rm -f conftest.er1
16570 cat conftest.err >&5
16571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572 (exit $ac_status); } && {
16573 test -z "$ac_c_werror_flag" ||
16574 test ! -s conftest.err
16575 } && test -s conftest$ac_exeext &&
16576 $as_test_x conftest$ac_exeext; then
16577 eval "$as_ac_var=yes"
16578 else
16579 echo "$as_me: failed program was:" >&5
16580 sed 's/^/| /' conftest.$ac_ext >&5
16582 eval "$as_ac_var=no"
16585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16586 conftest$ac_exeext conftest.$ac_ext
16588 ac_res=`eval echo '${'$as_ac_var'}'`
16589 { echo "$as_me:$LINENO: result: $ac_res" >&5
16590 echo "${ECHO_T}$ac_res" >&6; }
16591 if test `eval echo '${'$as_ac_var'}'` = yes; then
16592 cat >>confdefs.h <<_ACEOF
16593 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16594 _ACEOF
16597 done
16601 for ac_header in sys/un.h
16603 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16605 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16607 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16608 echo $ECHO_N "(cached) $ECHO_C" >&6
16610 ac_res=`eval echo '${'$as_ac_Header'}'`
16611 { echo "$as_me:$LINENO: result: $ac_res" >&5
16612 echo "${ECHO_T}$ac_res" >&6; }
16613 else
16614 # Is the header compilable?
16615 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16616 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16617 cat >conftest.$ac_ext <<_ACEOF
16618 /* confdefs.h. */
16619 _ACEOF
16620 cat confdefs.h >>conftest.$ac_ext
16621 cat >>conftest.$ac_ext <<_ACEOF
16622 /* end confdefs.h. */
16623 $ac_includes_default
16624 #include <$ac_header>
16625 _ACEOF
16626 rm -f conftest.$ac_objext
16627 if { (ac_try="$ac_compile"
16628 case "(($ac_try" in
16629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16630 *) ac_try_echo=$ac_try;;
16631 esac
16632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16633 (eval "$ac_compile") 2>conftest.er1
16634 ac_status=$?
16635 grep -v '^ *+' conftest.er1 >conftest.err
16636 rm -f conftest.er1
16637 cat conftest.err >&5
16638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639 (exit $ac_status); } && {
16640 test -z "$ac_c_werror_flag" ||
16641 test ! -s conftest.err
16642 } && test -s conftest.$ac_objext; then
16643 ac_header_compiler=yes
16644 else
16645 echo "$as_me: failed program was:" >&5
16646 sed 's/^/| /' conftest.$ac_ext >&5
16648 ac_header_compiler=no
16651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16652 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16653 echo "${ECHO_T}$ac_header_compiler" >&6; }
16655 # Is the header present?
16656 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16657 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16658 cat >conftest.$ac_ext <<_ACEOF
16659 /* confdefs.h. */
16660 _ACEOF
16661 cat confdefs.h >>conftest.$ac_ext
16662 cat >>conftest.$ac_ext <<_ACEOF
16663 /* end confdefs.h. */
16664 #include <$ac_header>
16665 _ACEOF
16666 if { (ac_try="$ac_cpp conftest.$ac_ext"
16667 case "(($ac_try" in
16668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16669 *) ac_try_echo=$ac_try;;
16670 esac
16671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16673 ac_status=$?
16674 grep -v '^ *+' conftest.er1 >conftest.err
16675 rm -f conftest.er1
16676 cat conftest.err >&5
16677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678 (exit $ac_status); } >/dev/null && {
16679 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16680 test ! -s conftest.err
16681 }; then
16682 ac_header_preproc=yes
16683 else
16684 echo "$as_me: failed program was:" >&5
16685 sed 's/^/| /' conftest.$ac_ext >&5
16687 ac_header_preproc=no
16690 rm -f conftest.err conftest.$ac_ext
16691 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16692 echo "${ECHO_T}$ac_header_preproc" >&6; }
16694 # So? What about this header?
16695 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16696 yes:no: )
16697 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16698 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16699 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16700 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16701 ac_header_preproc=yes
16703 no:yes:* )
16704 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16705 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16706 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16707 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16708 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16709 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16710 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16711 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16713 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16714 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16715 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16718 esac
16719 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16722 echo $ECHO_N "(cached) $ECHO_C" >&6
16723 else
16724 eval "$as_ac_Header=\$ac_header_preproc"
16726 ac_res=`eval echo '${'$as_ac_Header'}'`
16727 { echo "$as_me:$LINENO: result: $ac_res" >&5
16728 echo "${ECHO_T}$ac_res" >&6; }
16731 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16732 cat >>confdefs.h <<_ACEOF
16733 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16734 _ACEOF
16738 done
16745 for ac_header in $ac_header_list
16747 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16749 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16752 echo $ECHO_N "(cached) $ECHO_C" >&6
16754 ac_res=`eval echo '${'$as_ac_Header'}'`
16755 { echo "$as_me:$LINENO: result: $ac_res" >&5
16756 echo "${ECHO_T}$ac_res" >&6; }
16757 else
16758 # Is the header compilable?
16759 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16760 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16761 cat >conftest.$ac_ext <<_ACEOF
16762 /* confdefs.h. */
16763 _ACEOF
16764 cat confdefs.h >>conftest.$ac_ext
16765 cat >>conftest.$ac_ext <<_ACEOF
16766 /* end confdefs.h. */
16767 $ac_includes_default
16768 #include <$ac_header>
16769 _ACEOF
16770 rm -f conftest.$ac_objext
16771 if { (ac_try="$ac_compile"
16772 case "(($ac_try" in
16773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16774 *) ac_try_echo=$ac_try;;
16775 esac
16776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16777 (eval "$ac_compile") 2>conftest.er1
16778 ac_status=$?
16779 grep -v '^ *+' conftest.er1 >conftest.err
16780 rm -f conftest.er1
16781 cat conftest.err >&5
16782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783 (exit $ac_status); } && {
16784 test -z "$ac_c_werror_flag" ||
16785 test ! -s conftest.err
16786 } && test -s conftest.$ac_objext; then
16787 ac_header_compiler=yes
16788 else
16789 echo "$as_me: failed program was:" >&5
16790 sed 's/^/| /' conftest.$ac_ext >&5
16792 ac_header_compiler=no
16795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16796 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16797 echo "${ECHO_T}$ac_header_compiler" >&6; }
16799 # Is the header present?
16800 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16801 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16802 cat >conftest.$ac_ext <<_ACEOF
16803 /* confdefs.h. */
16804 _ACEOF
16805 cat confdefs.h >>conftest.$ac_ext
16806 cat >>conftest.$ac_ext <<_ACEOF
16807 /* end confdefs.h. */
16808 #include <$ac_header>
16809 _ACEOF
16810 if { (ac_try="$ac_cpp conftest.$ac_ext"
16811 case "(($ac_try" in
16812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16813 *) ac_try_echo=$ac_try;;
16814 esac
16815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16817 ac_status=$?
16818 grep -v '^ *+' conftest.er1 >conftest.err
16819 rm -f conftest.er1
16820 cat conftest.err >&5
16821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822 (exit $ac_status); } >/dev/null && {
16823 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16824 test ! -s conftest.err
16825 }; then
16826 ac_header_preproc=yes
16827 else
16828 echo "$as_me: failed program was:" >&5
16829 sed 's/^/| /' conftest.$ac_ext >&5
16831 ac_header_preproc=no
16834 rm -f conftest.err conftest.$ac_ext
16835 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16836 echo "${ECHO_T}$ac_header_preproc" >&6; }
16838 # So? What about this header?
16839 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16840 yes:no: )
16841 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16842 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16844 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16845 ac_header_preproc=yes
16847 no:yes:* )
16848 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16849 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16850 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16851 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16852 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16853 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16854 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16855 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16856 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16857 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16858 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16859 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16862 esac
16863 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16864 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16865 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16866 echo $ECHO_N "(cached) $ECHO_C" >&6
16867 else
16868 eval "$as_ac_Header=\$ac_header_preproc"
16870 ac_res=`eval echo '${'$as_ac_Header'}'`
16871 { echo "$as_me:$LINENO: result: $ac_res" >&5
16872 echo "${ECHO_T}$ac_res" >&6; }
16875 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16876 cat >>confdefs.h <<_ACEOF
16877 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16878 _ACEOF
16882 done
16892 for ac_func in $ac_func_list
16894 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16895 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16896 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16897 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16898 echo $ECHO_N "(cached) $ECHO_C" >&6
16899 else
16900 cat >conftest.$ac_ext <<_ACEOF
16901 /* confdefs.h. */
16902 _ACEOF
16903 cat confdefs.h >>conftest.$ac_ext
16904 cat >>conftest.$ac_ext <<_ACEOF
16905 /* end confdefs.h. */
16906 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16908 #define $ac_func innocuous_$ac_func
16910 /* System header to define __stub macros and hopefully few prototypes,
16911 which can conflict with char $ac_func (); below.
16912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16913 <limits.h> exists even on freestanding compilers. */
16915 #ifdef __STDC__
16916 # include <limits.h>
16917 #else
16918 # include <assert.h>
16919 #endif
16921 #undef $ac_func
16923 /* Override any GCC internal prototype to avoid an error.
16924 Use char because int might match the return type of a GCC
16925 builtin and then its argument prototype would still apply. */
16926 #ifdef __cplusplus
16927 extern "C"
16928 #endif
16929 char $ac_func ();
16930 /* The GNU C library defines this for functions which it implements
16931 to always fail with ENOSYS. Some functions are actually named
16932 something starting with __ and the normal name is an alias. */
16933 #if defined __stub_$ac_func || defined __stub___$ac_func
16934 choke me
16935 #endif
16938 main ()
16940 return $ac_func ();
16942 return 0;
16944 _ACEOF
16945 rm -f conftest.$ac_objext conftest$ac_exeext
16946 if { (ac_try="$ac_link"
16947 case "(($ac_try" in
16948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16949 *) ac_try_echo=$ac_try;;
16950 esac
16951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16952 (eval "$ac_link") 2>conftest.er1
16953 ac_status=$?
16954 grep -v '^ *+' conftest.er1 >conftest.err
16955 rm -f conftest.er1
16956 cat conftest.err >&5
16957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958 (exit $ac_status); } && {
16959 test -z "$ac_c_werror_flag" ||
16960 test ! -s conftest.err
16961 } && test -s conftest$ac_exeext &&
16962 $as_test_x conftest$ac_exeext; then
16963 eval "$as_ac_var=yes"
16964 else
16965 echo "$as_me: failed program was:" >&5
16966 sed 's/^/| /' conftest.$ac_ext >&5
16968 eval "$as_ac_var=no"
16971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16972 conftest$ac_exeext conftest.$ac_ext
16974 ac_res=`eval echo '${'$as_ac_var'}'`
16975 { echo "$as_me:$LINENO: result: $ac_res" >&5
16976 echo "${ECHO_T}$ac_res" >&6; }
16977 if test `eval echo '${'$as_ac_var'}'` = yes; then
16978 cat >>confdefs.h <<_ACEOF
16979 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16980 _ACEOF
16983 done
17001 { echo "$as_me:$LINENO: checking for working mktime" >&5
17002 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
17003 if test "${ac_cv_func_working_mktime+set}" = set; then
17004 echo $ECHO_N "(cached) $ECHO_C" >&6
17005 else
17006 if test "$cross_compiling" = yes; then
17007 ac_cv_func_working_mktime=no
17008 else
17009 cat >conftest.$ac_ext <<_ACEOF
17010 /* confdefs.h. */
17011 _ACEOF
17012 cat confdefs.h >>conftest.$ac_ext
17013 cat >>conftest.$ac_ext <<_ACEOF
17014 /* end confdefs.h. */
17015 /* Test program from Paul Eggert and Tony Leneis. */
17016 #ifdef TIME_WITH_SYS_TIME
17017 # include <sys/time.h>
17018 # include <time.h>
17019 #else
17020 # ifdef HAVE_SYS_TIME_H
17021 # include <sys/time.h>
17022 # else
17023 # include <time.h>
17024 # endif
17025 #endif
17027 #include <stdlib.h>
17029 #ifdef HAVE_UNISTD_H
17030 # include <unistd.h>
17031 #endif
17033 #ifndef HAVE_ALARM
17034 # define alarm(X) /* empty */
17035 #endif
17037 /* Work around redefinition to rpl_putenv by other config tests. */
17038 #undef putenv
17040 static time_t time_t_max;
17041 static time_t time_t_min;
17043 /* Values we'll use to set the TZ environment variable. */
17044 static char *tz_strings[] = {
17045 (char *) 0, "TZ=GMT0", "TZ=JST-9",
17046 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
17048 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
17050 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
17051 Based on a problem report from Andreas Jaeger. */
17052 static int
17053 spring_forward_gap ()
17055 /* glibc (up to about 1998-10-07) failed this test. */
17056 struct tm tm;
17058 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17059 instead of "TZ=America/Vancouver" in order to detect the bug even
17060 on systems that don't support the Olson extension, or don't have the
17061 full zoneinfo tables installed. */
17062 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17064 tm.tm_year = 98;
17065 tm.tm_mon = 3;
17066 tm.tm_mday = 5;
17067 tm.tm_hour = 2;
17068 tm.tm_min = 0;
17069 tm.tm_sec = 0;
17070 tm.tm_isdst = -1;
17071 return mktime (&tm) != (time_t) -1;
17074 static int
17075 mktime_test1 (now)
17076 time_t now;
17078 struct tm *lt;
17079 return ! (lt = localtime (&now)) || mktime (lt) == now;
17082 static int
17083 mktime_test (now)
17084 time_t now;
17086 return (mktime_test1 (now)
17087 && mktime_test1 ((time_t) (time_t_max - now))
17088 && mktime_test1 ((time_t) (time_t_min + now)));
17091 static int
17092 irix_6_4_bug ()
17094 /* Based on code from Ariel Faigon. */
17095 struct tm tm;
17096 tm.tm_year = 96;
17097 tm.tm_mon = 3;
17098 tm.tm_mday = 0;
17099 tm.tm_hour = 0;
17100 tm.tm_min = 0;
17101 tm.tm_sec = 0;
17102 tm.tm_isdst = -1;
17103 mktime (&tm);
17104 return tm.tm_mon == 2 && tm.tm_mday == 31;
17107 static int
17108 bigtime_test (j)
17109 int j;
17111 struct tm tm;
17112 time_t now;
17113 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
17114 now = mktime (&tm);
17115 if (now != (time_t) -1)
17117 struct tm *lt = localtime (&now);
17118 if (! (lt
17119 && lt->tm_year == tm.tm_year
17120 && lt->tm_mon == tm.tm_mon
17121 && lt->tm_mday == tm.tm_mday
17122 && lt->tm_hour == tm.tm_hour
17123 && lt->tm_min == tm.tm_min
17124 && lt->tm_sec == tm.tm_sec
17125 && lt->tm_yday == tm.tm_yday
17126 && lt->tm_wday == tm.tm_wday
17127 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
17128 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
17129 return 0;
17131 return 1;
17134 static int
17135 year_2050_test ()
17137 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
17138 ignoring leap seconds. */
17139 unsigned long int answer = 2527315200UL;
17141 struct tm tm;
17142 time_t t;
17143 tm.tm_year = 2050 - 1900;
17144 tm.tm_mon = 2 - 1;
17145 tm.tm_mday = 1;
17146 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
17147 tm.tm_isdst = -1;
17149 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17150 instead of "TZ=America/Vancouver" in order to detect the bug even
17151 on systems that don't support the Olson extension, or don't have the
17152 full zoneinfo tables installed. */
17153 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17155 t = mktime (&tm);
17157 /* Check that the result is either a failure, or close enough
17158 to the correct answer that we can assume the discrepancy is
17159 due to leap seconds. */
17160 return (t == (time_t) -1
17161 || (0 < t && answer - 120 <= t && t <= answer + 120));
17165 main ()
17167 time_t t, delta;
17168 int i, j;
17170 /* This test makes some buggy mktime implementations loop.
17171 Give up after 60 seconds; a mktime slower than that
17172 isn't worth using anyway. */
17173 alarm (60);
17175 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
17176 continue;
17177 time_t_max--;
17178 if ((time_t) -1 < 0)
17179 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
17180 continue;
17181 delta = time_t_max / 997; /* a suitable prime number */
17182 for (i = 0; i < N_STRINGS; i++)
17184 if (tz_strings[i])
17185 putenv (tz_strings[i]);
17187 for (t = 0; t <= time_t_max - delta; t += delta)
17188 if (! mktime_test (t))
17189 return 1;
17190 if (! (mktime_test ((time_t) 1)
17191 && mktime_test ((time_t) (60 * 60))
17192 && mktime_test ((time_t) (60 * 60 * 24))))
17193 return 1;
17195 for (j = 1; 0 < j; j *= 2)
17196 if (! bigtime_test (j))
17197 return 1;
17198 if (! bigtime_test (j - 1))
17199 return 1;
17201 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
17203 _ACEOF
17204 rm -f conftest$ac_exeext
17205 if { (ac_try="$ac_link"
17206 case "(($ac_try" in
17207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17208 *) ac_try_echo=$ac_try;;
17209 esac
17210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17211 (eval "$ac_link") 2>&5
17212 ac_status=$?
17213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17215 { (case "(($ac_try" in
17216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17217 *) ac_try_echo=$ac_try;;
17218 esac
17219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17220 (eval "$ac_try") 2>&5
17221 ac_status=$?
17222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223 (exit $ac_status); }; }; then
17224 ac_cv_func_working_mktime=yes
17225 else
17226 echo "$as_me: program exited with status $ac_status" >&5
17227 echo "$as_me: failed program was:" >&5
17228 sed 's/^/| /' conftest.$ac_ext >&5
17230 ( exit $ac_status )
17231 ac_cv_func_working_mktime=no
17233 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17238 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
17239 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
17240 if test $ac_cv_func_working_mktime = no; then
17241 case " $LIBOBJS " in
17242 *" mktime.$ac_objext "* ) ;;
17243 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
17245 esac
17249 if test "$ac_cv_func_working_mktime" = no; then
17251 cat >>confdefs.h <<\_ACEOF
17252 #define BROKEN_MKTIME 1
17253 _ACEOF
17257 ac_have_func=no # yes means we've found a way to get the load average.
17259 # Make sure getloadavg.c is where it belongs, at configure-time.
17260 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
17261 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
17262 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
17263 { (exit 1); exit 1; }; }
17265 ac_save_LIBS=$LIBS
17267 # Check for getloadavg, but be sure not to touch the cache variable.
17268 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
17269 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
17270 if test "${ac_cv_func_getloadavg+set}" = set; then
17271 echo $ECHO_N "(cached) $ECHO_C" >&6
17272 else
17273 cat >conftest.$ac_ext <<_ACEOF
17274 /* confdefs.h. */
17275 _ACEOF
17276 cat confdefs.h >>conftest.$ac_ext
17277 cat >>conftest.$ac_ext <<_ACEOF
17278 /* end confdefs.h. */
17279 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
17280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17281 #define getloadavg innocuous_getloadavg
17283 /* System header to define __stub macros and hopefully few prototypes,
17284 which can conflict with char getloadavg (); below.
17285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17286 <limits.h> exists even on freestanding compilers. */
17288 #ifdef __STDC__
17289 # include <limits.h>
17290 #else
17291 # include <assert.h>
17292 #endif
17294 #undef getloadavg
17296 /* Override any GCC internal prototype to avoid an error.
17297 Use char because int might match the return type of a GCC
17298 builtin and then its argument prototype would still apply. */
17299 #ifdef __cplusplus
17300 extern "C"
17301 #endif
17302 char getloadavg ();
17303 /* The GNU C library defines this for functions which it implements
17304 to always fail with ENOSYS. Some functions are actually named
17305 something starting with __ and the normal name is an alias. */
17306 #if defined __stub_getloadavg || defined __stub___getloadavg
17307 choke me
17308 #endif
17311 main ()
17313 return getloadavg ();
17315 return 0;
17317 _ACEOF
17318 rm -f conftest.$ac_objext conftest$ac_exeext
17319 if { (ac_try="$ac_link"
17320 case "(($ac_try" in
17321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17322 *) ac_try_echo=$ac_try;;
17323 esac
17324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17325 (eval "$ac_link") 2>conftest.er1
17326 ac_status=$?
17327 grep -v '^ *+' conftest.er1 >conftest.err
17328 rm -f conftest.er1
17329 cat conftest.err >&5
17330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331 (exit $ac_status); } && {
17332 test -z "$ac_c_werror_flag" ||
17333 test ! -s conftest.err
17334 } && test -s conftest$ac_exeext &&
17335 $as_test_x conftest$ac_exeext; then
17336 ac_cv_func_getloadavg=yes
17337 else
17338 echo "$as_me: failed program was:" >&5
17339 sed 's/^/| /' conftest.$ac_ext >&5
17341 ac_cv_func_getloadavg=no
17344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17345 conftest$ac_exeext conftest.$ac_ext
17347 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
17348 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
17349 if test $ac_cv_func_getloadavg = yes; then
17350 exit 0
17351 else
17352 exit 1
17354 ) && ac_have_func=yes
17356 # On HPUX9, an unprivileged user can get load averages through this function.
17358 for ac_func in pstat_getdynamic
17360 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17361 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17362 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17363 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17364 echo $ECHO_N "(cached) $ECHO_C" >&6
17365 else
17366 cat >conftest.$ac_ext <<_ACEOF
17367 /* confdefs.h. */
17368 _ACEOF
17369 cat confdefs.h >>conftest.$ac_ext
17370 cat >>conftest.$ac_ext <<_ACEOF
17371 /* end confdefs.h. */
17372 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17373 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17374 #define $ac_func innocuous_$ac_func
17376 /* System header to define __stub macros and hopefully few prototypes,
17377 which can conflict with char $ac_func (); below.
17378 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17379 <limits.h> exists even on freestanding compilers. */
17381 #ifdef __STDC__
17382 # include <limits.h>
17383 #else
17384 # include <assert.h>
17385 #endif
17387 #undef $ac_func
17389 /* Override any GCC internal prototype to avoid an error.
17390 Use char because int might match the return type of a GCC
17391 builtin and then its argument prototype would still apply. */
17392 #ifdef __cplusplus
17393 extern "C"
17394 #endif
17395 char $ac_func ();
17396 /* The GNU C library defines this for functions which it implements
17397 to always fail with ENOSYS. Some functions are actually named
17398 something starting with __ and the normal name is an alias. */
17399 #if defined __stub_$ac_func || defined __stub___$ac_func
17400 choke me
17401 #endif
17404 main ()
17406 return $ac_func ();
17408 return 0;
17410 _ACEOF
17411 rm -f conftest.$ac_objext conftest$ac_exeext
17412 if { (ac_try="$ac_link"
17413 case "(($ac_try" in
17414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17415 *) ac_try_echo=$ac_try;;
17416 esac
17417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17418 (eval "$ac_link") 2>conftest.er1
17419 ac_status=$?
17420 grep -v '^ *+' conftest.er1 >conftest.err
17421 rm -f conftest.er1
17422 cat conftest.err >&5
17423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424 (exit $ac_status); } && {
17425 test -z "$ac_c_werror_flag" ||
17426 test ! -s conftest.err
17427 } && test -s conftest$ac_exeext &&
17428 $as_test_x conftest$ac_exeext; then
17429 eval "$as_ac_var=yes"
17430 else
17431 echo "$as_me: failed program was:" >&5
17432 sed 's/^/| /' conftest.$ac_ext >&5
17434 eval "$as_ac_var=no"
17437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17438 conftest$ac_exeext conftest.$ac_ext
17440 ac_res=`eval echo '${'$as_ac_var'}'`
17441 { echo "$as_me:$LINENO: result: $ac_res" >&5
17442 echo "${ECHO_T}$ac_res" >&6; }
17443 if test `eval echo '${'$as_ac_var'}'` = yes; then
17444 cat >>confdefs.h <<_ACEOF
17445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17446 _ACEOF
17449 done
17452 # Solaris has libkstat which does not require root.
17454 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
17455 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
17456 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17457 echo $ECHO_N "(cached) $ECHO_C" >&6
17458 else
17459 ac_check_lib_save_LIBS=$LIBS
17460 LIBS="-lkstat $LIBS"
17461 cat >conftest.$ac_ext <<_ACEOF
17462 /* confdefs.h. */
17463 _ACEOF
17464 cat confdefs.h >>conftest.$ac_ext
17465 cat >>conftest.$ac_ext <<_ACEOF
17466 /* end confdefs.h. */
17468 /* Override any GCC internal prototype to avoid an error.
17469 Use char because int might match the return type of a GCC
17470 builtin and then its argument prototype would still apply. */
17471 #ifdef __cplusplus
17472 extern "C"
17473 #endif
17474 char kstat_open ();
17476 main ()
17478 return kstat_open ();
17480 return 0;
17482 _ACEOF
17483 rm -f conftest.$ac_objext conftest$ac_exeext
17484 if { (ac_try="$ac_link"
17485 case "(($ac_try" in
17486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17487 *) ac_try_echo=$ac_try;;
17488 esac
17489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17490 (eval "$ac_link") 2>conftest.er1
17491 ac_status=$?
17492 grep -v '^ *+' conftest.er1 >conftest.err
17493 rm -f conftest.er1
17494 cat conftest.err >&5
17495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496 (exit $ac_status); } && {
17497 test -z "$ac_c_werror_flag" ||
17498 test ! -s conftest.err
17499 } && test -s conftest$ac_exeext &&
17500 $as_test_x conftest$ac_exeext; then
17501 ac_cv_lib_kstat_kstat_open=yes
17502 else
17503 echo "$as_me: failed program was:" >&5
17504 sed 's/^/| /' conftest.$ac_ext >&5
17506 ac_cv_lib_kstat_kstat_open=no
17509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17510 conftest$ac_exeext conftest.$ac_ext
17511 LIBS=$ac_check_lib_save_LIBS
17513 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
17514 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17515 if test $ac_cv_lib_kstat_kstat_open = yes; then
17516 cat >>confdefs.h <<_ACEOF
17517 #define HAVE_LIBKSTAT 1
17518 _ACEOF
17520 LIBS="-lkstat $LIBS"
17524 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17526 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17527 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17528 # to get the right answer into the cache.
17529 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17530 if test $ac_have_func = no; then
17531 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17532 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
17533 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17534 echo $ECHO_N "(cached) $ECHO_C" >&6
17535 else
17536 ac_check_lib_save_LIBS=$LIBS
17537 LIBS="-lelf $LIBS"
17538 cat >conftest.$ac_ext <<_ACEOF
17539 /* confdefs.h. */
17540 _ACEOF
17541 cat confdefs.h >>conftest.$ac_ext
17542 cat >>conftest.$ac_ext <<_ACEOF
17543 /* end confdefs.h. */
17545 /* Override any GCC internal prototype to avoid an error.
17546 Use char because int might match the return type of a GCC
17547 builtin and then its argument prototype would still apply. */
17548 #ifdef __cplusplus
17549 extern "C"
17550 #endif
17551 char elf_begin ();
17553 main ()
17555 return elf_begin ();
17557 return 0;
17559 _ACEOF
17560 rm -f conftest.$ac_objext conftest$ac_exeext
17561 if { (ac_try="$ac_link"
17562 case "(($ac_try" in
17563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17564 *) ac_try_echo=$ac_try;;
17565 esac
17566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17567 (eval "$ac_link") 2>conftest.er1
17568 ac_status=$?
17569 grep -v '^ *+' conftest.er1 >conftest.err
17570 rm -f conftest.er1
17571 cat conftest.err >&5
17572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17573 (exit $ac_status); } && {
17574 test -z "$ac_c_werror_flag" ||
17575 test ! -s conftest.err
17576 } && test -s conftest$ac_exeext &&
17577 $as_test_x conftest$ac_exeext; then
17578 ac_cv_lib_elf_elf_begin=yes
17579 else
17580 echo "$as_me: failed program was:" >&5
17581 sed 's/^/| /' conftest.$ac_ext >&5
17583 ac_cv_lib_elf_elf_begin=no
17586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17587 conftest$ac_exeext conftest.$ac_ext
17588 LIBS=$ac_check_lib_save_LIBS
17590 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
17591 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17592 if test $ac_cv_lib_elf_elf_begin = yes; then
17593 LIBS="-lelf $LIBS"
17597 if test $ac_have_func = no; then
17598 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17599 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
17600 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17601 echo $ECHO_N "(cached) $ECHO_C" >&6
17602 else
17603 ac_check_lib_save_LIBS=$LIBS
17604 LIBS="-lkvm $LIBS"
17605 cat >conftest.$ac_ext <<_ACEOF
17606 /* confdefs.h. */
17607 _ACEOF
17608 cat confdefs.h >>conftest.$ac_ext
17609 cat >>conftest.$ac_ext <<_ACEOF
17610 /* end confdefs.h. */
17612 /* Override any GCC internal prototype to avoid an error.
17613 Use char because int might match the return type of a GCC
17614 builtin and then its argument prototype would still apply. */
17615 #ifdef __cplusplus
17616 extern "C"
17617 #endif
17618 char kvm_open ();
17620 main ()
17622 return kvm_open ();
17624 return 0;
17626 _ACEOF
17627 rm -f conftest.$ac_objext conftest$ac_exeext
17628 if { (ac_try="$ac_link"
17629 case "(($ac_try" in
17630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17631 *) ac_try_echo=$ac_try;;
17632 esac
17633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17634 (eval "$ac_link") 2>conftest.er1
17635 ac_status=$?
17636 grep -v '^ *+' conftest.er1 >conftest.err
17637 rm -f conftest.er1
17638 cat conftest.err >&5
17639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640 (exit $ac_status); } && {
17641 test -z "$ac_c_werror_flag" ||
17642 test ! -s conftest.err
17643 } && test -s conftest$ac_exeext &&
17644 $as_test_x conftest$ac_exeext; then
17645 ac_cv_lib_kvm_kvm_open=yes
17646 else
17647 echo "$as_me: failed program was:" >&5
17648 sed 's/^/| /' conftest.$ac_ext >&5
17650 ac_cv_lib_kvm_kvm_open=no
17653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17654 conftest$ac_exeext conftest.$ac_ext
17655 LIBS=$ac_check_lib_save_LIBS
17657 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
17658 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17659 if test $ac_cv_lib_kvm_kvm_open = yes; then
17660 LIBS="-lkvm $LIBS"
17663 # Check for the 4.4BSD definition of getloadavg.
17664 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
17665 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
17666 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17667 echo $ECHO_N "(cached) $ECHO_C" >&6
17668 else
17669 ac_check_lib_save_LIBS=$LIBS
17670 LIBS="-lutil $LIBS"
17671 cat >conftest.$ac_ext <<_ACEOF
17672 /* confdefs.h. */
17673 _ACEOF
17674 cat confdefs.h >>conftest.$ac_ext
17675 cat >>conftest.$ac_ext <<_ACEOF
17676 /* end confdefs.h. */
17678 /* Override any GCC internal prototype to avoid an error.
17679 Use char because int might match the return type of a GCC
17680 builtin and then its argument prototype would still apply. */
17681 #ifdef __cplusplus
17682 extern "C"
17683 #endif
17684 char getloadavg ();
17686 main ()
17688 return getloadavg ();
17690 return 0;
17692 _ACEOF
17693 rm -f conftest.$ac_objext conftest$ac_exeext
17694 if { (ac_try="$ac_link"
17695 case "(($ac_try" in
17696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17697 *) ac_try_echo=$ac_try;;
17698 esac
17699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17700 (eval "$ac_link") 2>conftest.er1
17701 ac_status=$?
17702 grep -v '^ *+' conftest.er1 >conftest.err
17703 rm -f conftest.er1
17704 cat conftest.err >&5
17705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706 (exit $ac_status); } && {
17707 test -z "$ac_c_werror_flag" ||
17708 test ! -s conftest.err
17709 } && test -s conftest$ac_exeext &&
17710 $as_test_x conftest$ac_exeext; then
17711 ac_cv_lib_util_getloadavg=yes
17712 else
17713 echo "$as_me: failed program was:" >&5
17714 sed 's/^/| /' conftest.$ac_ext >&5
17716 ac_cv_lib_util_getloadavg=no
17719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17720 conftest$ac_exeext conftest.$ac_ext
17721 LIBS=$ac_check_lib_save_LIBS
17723 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
17724 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17725 if test $ac_cv_lib_util_getloadavg = yes; then
17726 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17731 if test $ac_have_func = no; then
17732 # There is a commonly available library for RS/6000 AIX.
17733 # Since it is not a standard part of AIX, it might be installed locally.
17734 ac_getloadavg_LIBS=$LIBS
17735 LIBS="-L/usr/local/lib $LIBS"
17736 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
17737 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
17738 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17739 echo $ECHO_N "(cached) $ECHO_C" >&6
17740 else
17741 ac_check_lib_save_LIBS=$LIBS
17742 LIBS="-lgetloadavg $LIBS"
17743 cat >conftest.$ac_ext <<_ACEOF
17744 /* confdefs.h. */
17745 _ACEOF
17746 cat confdefs.h >>conftest.$ac_ext
17747 cat >>conftest.$ac_ext <<_ACEOF
17748 /* end confdefs.h. */
17750 /* Override any GCC internal prototype to avoid an error.
17751 Use char because int might match the return type of a GCC
17752 builtin and then its argument prototype would still apply. */
17753 #ifdef __cplusplus
17754 extern "C"
17755 #endif
17756 char getloadavg ();
17758 main ()
17760 return getloadavg ();
17762 return 0;
17764 _ACEOF
17765 rm -f conftest.$ac_objext conftest$ac_exeext
17766 if { (ac_try="$ac_link"
17767 case "(($ac_try" in
17768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17769 *) ac_try_echo=$ac_try;;
17770 esac
17771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17772 (eval "$ac_link") 2>conftest.er1
17773 ac_status=$?
17774 grep -v '^ *+' conftest.er1 >conftest.err
17775 rm -f conftest.er1
17776 cat conftest.err >&5
17777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778 (exit $ac_status); } && {
17779 test -z "$ac_c_werror_flag" ||
17780 test ! -s conftest.err
17781 } && test -s conftest$ac_exeext &&
17782 $as_test_x conftest$ac_exeext; then
17783 ac_cv_lib_getloadavg_getloadavg=yes
17784 else
17785 echo "$as_me: failed program was:" >&5
17786 sed 's/^/| /' conftest.$ac_ext >&5
17788 ac_cv_lib_getloadavg_getloadavg=no
17791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17792 conftest$ac_exeext conftest.$ac_ext
17793 LIBS=$ac_check_lib_save_LIBS
17795 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
17796 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17797 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17798 LIBS="-lgetloadavg $LIBS"
17799 else
17800 LIBS=$ac_getloadavg_LIBS
17805 # Make sure it is really in the library, if we think we found it,
17806 # otherwise set up the replacement function.
17808 for ac_func in getloadavg
17810 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17811 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17812 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17813 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17814 echo $ECHO_N "(cached) $ECHO_C" >&6
17815 else
17816 cat >conftest.$ac_ext <<_ACEOF
17817 /* confdefs.h. */
17818 _ACEOF
17819 cat confdefs.h >>conftest.$ac_ext
17820 cat >>conftest.$ac_ext <<_ACEOF
17821 /* end confdefs.h. */
17822 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17824 #define $ac_func innocuous_$ac_func
17826 /* System header to define __stub macros and hopefully few prototypes,
17827 which can conflict with char $ac_func (); below.
17828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17829 <limits.h> exists even on freestanding compilers. */
17831 #ifdef __STDC__
17832 # include <limits.h>
17833 #else
17834 # include <assert.h>
17835 #endif
17837 #undef $ac_func
17839 /* Override any GCC internal prototype to avoid an error.
17840 Use char because int might match the return type of a GCC
17841 builtin and then its argument prototype would still apply. */
17842 #ifdef __cplusplus
17843 extern "C"
17844 #endif
17845 char $ac_func ();
17846 /* The GNU C library defines this for functions which it implements
17847 to always fail with ENOSYS. Some functions are actually named
17848 something starting with __ and the normal name is an alias. */
17849 #if defined __stub_$ac_func || defined __stub___$ac_func
17850 choke me
17851 #endif
17854 main ()
17856 return $ac_func ();
17858 return 0;
17860 _ACEOF
17861 rm -f conftest.$ac_objext conftest$ac_exeext
17862 if { (ac_try="$ac_link"
17863 case "(($ac_try" in
17864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17865 *) ac_try_echo=$ac_try;;
17866 esac
17867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17868 (eval "$ac_link") 2>conftest.er1
17869 ac_status=$?
17870 grep -v '^ *+' conftest.er1 >conftest.err
17871 rm -f conftest.er1
17872 cat conftest.err >&5
17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); } && {
17875 test -z "$ac_c_werror_flag" ||
17876 test ! -s conftest.err
17877 } && test -s conftest$ac_exeext &&
17878 $as_test_x conftest$ac_exeext; then
17879 eval "$as_ac_var=yes"
17880 else
17881 echo "$as_me: failed program was:" >&5
17882 sed 's/^/| /' conftest.$ac_ext >&5
17884 eval "$as_ac_var=no"
17887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17888 conftest$ac_exeext conftest.$ac_ext
17890 ac_res=`eval echo '${'$as_ac_var'}'`
17891 { echo "$as_me:$LINENO: result: $ac_res" >&5
17892 echo "${ECHO_T}$ac_res" >&6; }
17893 if test `eval echo '${'$as_ac_var'}'` = yes; then
17894 cat >>confdefs.h <<_ACEOF
17895 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17896 _ACEOF
17898 else
17899 case " $LIBOBJS " in
17900 *" getloadavg.$ac_objext "* ) ;;
17901 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17903 esac
17906 cat >>confdefs.h <<\_ACEOF
17907 #define C_GETLOADAVG 1
17908 _ACEOF
17910 # Figure out what our getloadavg.c needs.
17911 ac_have_func=no
17912 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17913 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17914 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17915 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17916 echo $ECHO_N "(cached) $ECHO_C" >&6
17918 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17919 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17920 else
17921 # Is the header compilable?
17922 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17923 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17924 cat >conftest.$ac_ext <<_ACEOF
17925 /* confdefs.h. */
17926 _ACEOF
17927 cat confdefs.h >>conftest.$ac_ext
17928 cat >>conftest.$ac_ext <<_ACEOF
17929 /* end confdefs.h. */
17930 $ac_includes_default
17931 #include <sys/dg_sys_info.h>
17932 _ACEOF
17933 rm -f conftest.$ac_objext
17934 if { (ac_try="$ac_compile"
17935 case "(($ac_try" in
17936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17937 *) ac_try_echo=$ac_try;;
17938 esac
17939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17940 (eval "$ac_compile") 2>conftest.er1
17941 ac_status=$?
17942 grep -v '^ *+' conftest.er1 >conftest.err
17943 rm -f conftest.er1
17944 cat conftest.err >&5
17945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17946 (exit $ac_status); } && {
17947 test -z "$ac_c_werror_flag" ||
17948 test ! -s conftest.err
17949 } && test -s conftest.$ac_objext; then
17950 ac_header_compiler=yes
17951 else
17952 echo "$as_me: failed program was:" >&5
17953 sed 's/^/| /' conftest.$ac_ext >&5
17955 ac_header_compiler=no
17958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17959 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17960 echo "${ECHO_T}$ac_header_compiler" >&6; }
17962 # Is the header present?
17963 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17964 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17965 cat >conftest.$ac_ext <<_ACEOF
17966 /* confdefs.h. */
17967 _ACEOF
17968 cat confdefs.h >>conftest.$ac_ext
17969 cat >>conftest.$ac_ext <<_ACEOF
17970 /* end confdefs.h. */
17971 #include <sys/dg_sys_info.h>
17972 _ACEOF
17973 if { (ac_try="$ac_cpp conftest.$ac_ext"
17974 case "(($ac_try" in
17975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17976 *) ac_try_echo=$ac_try;;
17977 esac
17978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17979 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17980 ac_status=$?
17981 grep -v '^ *+' conftest.er1 >conftest.err
17982 rm -f conftest.er1
17983 cat conftest.err >&5
17984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17985 (exit $ac_status); } >/dev/null && {
17986 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17987 test ! -s conftest.err
17988 }; then
17989 ac_header_preproc=yes
17990 else
17991 echo "$as_me: failed program was:" >&5
17992 sed 's/^/| /' conftest.$ac_ext >&5
17994 ac_header_preproc=no
17997 rm -f conftest.err conftest.$ac_ext
17998 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17999 echo "${ECHO_T}$ac_header_preproc" >&6; }
18001 # So? What about this header?
18002 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18003 yes:no: )
18004 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
18005 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18006 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
18007 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
18008 ac_header_preproc=yes
18010 no:yes:* )
18011 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
18012 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
18013 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
18014 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
18015 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
18016 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
18017 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
18018 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
18019 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
18020 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
18021 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
18022 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
18025 esac
18026 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18027 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
18028 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18029 echo $ECHO_N "(cached) $ECHO_C" >&6
18030 else
18031 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
18033 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18034 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
18037 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
18038 ac_have_func=yes
18040 cat >>confdefs.h <<\_ACEOF
18041 #define DGUX 1
18042 _ACEOF
18045 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
18046 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
18047 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
18048 echo $ECHO_N "(cached) $ECHO_C" >&6
18049 else
18050 ac_check_lib_save_LIBS=$LIBS
18051 LIBS="-ldgc $LIBS"
18052 cat >conftest.$ac_ext <<_ACEOF
18053 /* confdefs.h. */
18054 _ACEOF
18055 cat confdefs.h >>conftest.$ac_ext
18056 cat >>conftest.$ac_ext <<_ACEOF
18057 /* end confdefs.h. */
18059 /* Override any GCC internal prototype to avoid an error.
18060 Use char because int might match the return type of a GCC
18061 builtin and then its argument prototype would still apply. */
18062 #ifdef __cplusplus
18063 extern "C"
18064 #endif
18065 char dg_sys_info ();
18067 main ()
18069 return dg_sys_info ();
18071 return 0;
18073 _ACEOF
18074 rm -f conftest.$ac_objext conftest$ac_exeext
18075 if { (ac_try="$ac_link"
18076 case "(($ac_try" in
18077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18078 *) ac_try_echo=$ac_try;;
18079 esac
18080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18081 (eval "$ac_link") 2>conftest.er1
18082 ac_status=$?
18083 grep -v '^ *+' conftest.er1 >conftest.err
18084 rm -f conftest.er1
18085 cat conftest.err >&5
18086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18087 (exit $ac_status); } && {
18088 test -z "$ac_c_werror_flag" ||
18089 test ! -s conftest.err
18090 } && test -s conftest$ac_exeext &&
18091 $as_test_x conftest$ac_exeext; then
18092 ac_cv_lib_dgc_dg_sys_info=yes
18093 else
18094 echo "$as_me: failed program was:" >&5
18095 sed 's/^/| /' conftest.$ac_ext >&5
18097 ac_cv_lib_dgc_dg_sys_info=no
18100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18101 conftest$ac_exeext conftest.$ac_ext
18102 LIBS=$ac_check_lib_save_LIBS
18104 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
18105 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
18106 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
18107 cat >>confdefs.h <<_ACEOF
18108 #define HAVE_LIBDGC 1
18109 _ACEOF
18111 LIBS="-ldgc $LIBS"
18119 if test "${ac_cv_header_locale_h+set}" = set; then
18120 { echo "$as_me:$LINENO: checking for locale.h" >&5
18121 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
18122 if test "${ac_cv_header_locale_h+set}" = set; then
18123 echo $ECHO_N "(cached) $ECHO_C" >&6
18125 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
18126 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
18127 else
18128 # Is the header compilable?
18129 { echo "$as_me:$LINENO: checking locale.h usability" >&5
18130 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
18131 cat >conftest.$ac_ext <<_ACEOF
18132 /* confdefs.h. */
18133 _ACEOF
18134 cat confdefs.h >>conftest.$ac_ext
18135 cat >>conftest.$ac_ext <<_ACEOF
18136 /* end confdefs.h. */
18137 $ac_includes_default
18138 #include <locale.h>
18139 _ACEOF
18140 rm -f conftest.$ac_objext
18141 if { (ac_try="$ac_compile"
18142 case "(($ac_try" in
18143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18144 *) ac_try_echo=$ac_try;;
18145 esac
18146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18147 (eval "$ac_compile") 2>conftest.er1
18148 ac_status=$?
18149 grep -v '^ *+' conftest.er1 >conftest.err
18150 rm -f conftest.er1
18151 cat conftest.err >&5
18152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18153 (exit $ac_status); } && {
18154 test -z "$ac_c_werror_flag" ||
18155 test ! -s conftest.err
18156 } && test -s conftest.$ac_objext; then
18157 ac_header_compiler=yes
18158 else
18159 echo "$as_me: failed program was:" >&5
18160 sed 's/^/| /' conftest.$ac_ext >&5
18162 ac_header_compiler=no
18165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18166 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18167 echo "${ECHO_T}$ac_header_compiler" >&6; }
18169 # Is the header present?
18170 { echo "$as_me:$LINENO: checking locale.h presence" >&5
18171 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
18172 cat >conftest.$ac_ext <<_ACEOF
18173 /* confdefs.h. */
18174 _ACEOF
18175 cat confdefs.h >>conftest.$ac_ext
18176 cat >>conftest.$ac_ext <<_ACEOF
18177 /* end confdefs.h. */
18178 #include <locale.h>
18179 _ACEOF
18180 if { (ac_try="$ac_cpp conftest.$ac_ext"
18181 case "(($ac_try" in
18182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18183 *) ac_try_echo=$ac_try;;
18184 esac
18185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18186 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18187 ac_status=$?
18188 grep -v '^ *+' conftest.er1 >conftest.err
18189 rm -f conftest.er1
18190 cat conftest.err >&5
18191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18192 (exit $ac_status); } >/dev/null && {
18193 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18194 test ! -s conftest.err
18195 }; then
18196 ac_header_preproc=yes
18197 else
18198 echo "$as_me: failed program was:" >&5
18199 sed 's/^/| /' conftest.$ac_ext >&5
18201 ac_header_preproc=no
18204 rm -f conftest.err conftest.$ac_ext
18205 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18206 echo "${ECHO_T}$ac_header_preproc" >&6; }
18208 # So? What about this header?
18209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18210 yes:no: )
18211 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
18212 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18213 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
18214 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
18215 ac_header_preproc=yes
18217 no:yes:* )
18218 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
18219 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
18220 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
18221 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
18222 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
18223 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
18224 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
18225 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
18226 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
18227 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
18228 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
18229 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
18232 esac
18233 { echo "$as_me:$LINENO: checking for locale.h" >&5
18234 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
18235 if test "${ac_cv_header_locale_h+set}" = set; then
18236 echo $ECHO_N "(cached) $ECHO_C" >&6
18237 else
18238 ac_cv_header_locale_h=$ac_header_preproc
18240 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
18241 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
18247 for ac_func in setlocale
18249 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18250 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18251 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18252 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18253 echo $ECHO_N "(cached) $ECHO_C" >&6
18254 else
18255 cat >conftest.$ac_ext <<_ACEOF
18256 /* confdefs.h. */
18257 _ACEOF
18258 cat confdefs.h >>conftest.$ac_ext
18259 cat >>conftest.$ac_ext <<_ACEOF
18260 /* end confdefs.h. */
18261 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18262 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18263 #define $ac_func innocuous_$ac_func
18265 /* System header to define __stub macros and hopefully few prototypes,
18266 which can conflict with char $ac_func (); below.
18267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18268 <limits.h> exists even on freestanding compilers. */
18270 #ifdef __STDC__
18271 # include <limits.h>
18272 #else
18273 # include <assert.h>
18274 #endif
18276 #undef $ac_func
18278 /* Override any GCC internal prototype to avoid an error.
18279 Use char because int might match the return type of a GCC
18280 builtin and then its argument prototype would still apply. */
18281 #ifdef __cplusplus
18282 extern "C"
18283 #endif
18284 char $ac_func ();
18285 /* The GNU C library defines this for functions which it implements
18286 to always fail with ENOSYS. Some functions are actually named
18287 something starting with __ and the normal name is an alias. */
18288 #if defined __stub_$ac_func || defined __stub___$ac_func
18289 choke me
18290 #endif
18293 main ()
18295 return $ac_func ();
18297 return 0;
18299 _ACEOF
18300 rm -f conftest.$ac_objext conftest$ac_exeext
18301 if { (ac_try="$ac_link"
18302 case "(($ac_try" in
18303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18304 *) ac_try_echo=$ac_try;;
18305 esac
18306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18307 (eval "$ac_link") 2>conftest.er1
18308 ac_status=$?
18309 grep -v '^ *+' conftest.er1 >conftest.err
18310 rm -f conftest.er1
18311 cat conftest.err >&5
18312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18313 (exit $ac_status); } && {
18314 test -z "$ac_c_werror_flag" ||
18315 test ! -s conftest.err
18316 } && test -s conftest$ac_exeext &&
18317 $as_test_x conftest$ac_exeext; then
18318 eval "$as_ac_var=yes"
18319 else
18320 echo "$as_me: failed program was:" >&5
18321 sed 's/^/| /' conftest.$ac_ext >&5
18323 eval "$as_ac_var=no"
18326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18327 conftest$ac_exeext conftest.$ac_ext
18329 ac_res=`eval echo '${'$as_ac_var'}'`
18330 { echo "$as_me:$LINENO: result: $ac_res" >&5
18331 echo "${ECHO_T}$ac_res" >&6; }
18332 if test `eval echo '${'$as_ac_var'}'` = yes; then
18333 cat >>confdefs.h <<_ACEOF
18334 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18335 _ACEOF
18338 done
18341 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18342 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
18343 # Irix 4.0.5F has the header but not the library.
18344 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
18345 ac_have_func=yes
18347 cat >>confdefs.h <<\_ACEOF
18348 #define SVR4 1
18349 _ACEOF
18353 if test $ac_have_func = no; then
18354 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18355 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18356 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18357 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18358 echo $ECHO_N "(cached) $ECHO_C" >&6
18360 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18361 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18362 else
18363 # Is the header compilable?
18364 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
18365 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
18366 cat >conftest.$ac_ext <<_ACEOF
18367 /* confdefs.h. */
18368 _ACEOF
18369 cat confdefs.h >>conftest.$ac_ext
18370 cat >>conftest.$ac_ext <<_ACEOF
18371 /* end confdefs.h. */
18372 $ac_includes_default
18373 #include <inq_stats/cpustats.h>
18374 _ACEOF
18375 rm -f conftest.$ac_objext
18376 if { (ac_try="$ac_compile"
18377 case "(($ac_try" in
18378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18379 *) ac_try_echo=$ac_try;;
18380 esac
18381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18382 (eval "$ac_compile") 2>conftest.er1
18383 ac_status=$?
18384 grep -v '^ *+' conftest.er1 >conftest.err
18385 rm -f conftest.er1
18386 cat conftest.err >&5
18387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18388 (exit $ac_status); } && {
18389 test -z "$ac_c_werror_flag" ||
18390 test ! -s conftest.err
18391 } && test -s conftest.$ac_objext; then
18392 ac_header_compiler=yes
18393 else
18394 echo "$as_me: failed program was:" >&5
18395 sed 's/^/| /' conftest.$ac_ext >&5
18397 ac_header_compiler=no
18400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18401 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18402 echo "${ECHO_T}$ac_header_compiler" >&6; }
18404 # Is the header present?
18405 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
18406 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
18407 cat >conftest.$ac_ext <<_ACEOF
18408 /* confdefs.h. */
18409 _ACEOF
18410 cat confdefs.h >>conftest.$ac_ext
18411 cat >>conftest.$ac_ext <<_ACEOF
18412 /* end confdefs.h. */
18413 #include <inq_stats/cpustats.h>
18414 _ACEOF
18415 if { (ac_try="$ac_cpp conftest.$ac_ext"
18416 case "(($ac_try" in
18417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18418 *) ac_try_echo=$ac_try;;
18419 esac
18420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18422 ac_status=$?
18423 grep -v '^ *+' conftest.er1 >conftest.err
18424 rm -f conftest.er1
18425 cat conftest.err >&5
18426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18427 (exit $ac_status); } >/dev/null && {
18428 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18429 test ! -s conftest.err
18430 }; then
18431 ac_header_preproc=yes
18432 else
18433 echo "$as_me: failed program was:" >&5
18434 sed 's/^/| /' conftest.$ac_ext >&5
18436 ac_header_preproc=no
18439 rm -f conftest.err conftest.$ac_ext
18440 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18441 echo "${ECHO_T}$ac_header_preproc" >&6; }
18443 # So? What about this header?
18444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18445 yes:no: )
18446 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18447 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18448 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
18449 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
18450 ac_header_preproc=yes
18452 no:yes:* )
18453 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
18454 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
18455 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
18456 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
18457 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
18458 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
18459 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18460 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18461 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
18462 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
18463 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
18464 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
18467 esac
18468 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18469 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18470 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18471 echo $ECHO_N "(cached) $ECHO_C" >&6
18472 else
18473 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18475 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18476 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18479 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18480 ac_have_func=yes
18482 cat >>confdefs.h <<\_ACEOF
18483 #define UMAX 1
18484 _ACEOF
18487 cat >>confdefs.h <<\_ACEOF
18488 #define UMAX4_3 1
18489 _ACEOF
18496 if test $ac_have_func = no; then
18497 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18498 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18499 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18500 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18501 echo $ECHO_N "(cached) $ECHO_C" >&6
18503 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18504 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18505 else
18506 # Is the header compilable?
18507 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
18508 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
18509 cat >conftest.$ac_ext <<_ACEOF
18510 /* confdefs.h. */
18511 _ACEOF
18512 cat confdefs.h >>conftest.$ac_ext
18513 cat >>conftest.$ac_ext <<_ACEOF
18514 /* end confdefs.h. */
18515 $ac_includes_default
18516 #include <sys/cpustats.h>
18517 _ACEOF
18518 rm -f conftest.$ac_objext
18519 if { (ac_try="$ac_compile"
18520 case "(($ac_try" in
18521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18522 *) ac_try_echo=$ac_try;;
18523 esac
18524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18525 (eval "$ac_compile") 2>conftest.er1
18526 ac_status=$?
18527 grep -v '^ *+' conftest.er1 >conftest.err
18528 rm -f conftest.er1
18529 cat conftest.err >&5
18530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531 (exit $ac_status); } && {
18532 test -z "$ac_c_werror_flag" ||
18533 test ! -s conftest.err
18534 } && test -s conftest.$ac_objext; then
18535 ac_header_compiler=yes
18536 else
18537 echo "$as_me: failed program was:" >&5
18538 sed 's/^/| /' conftest.$ac_ext >&5
18540 ac_header_compiler=no
18543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18544 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18545 echo "${ECHO_T}$ac_header_compiler" >&6; }
18547 # Is the header present?
18548 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
18549 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
18550 cat >conftest.$ac_ext <<_ACEOF
18551 /* confdefs.h. */
18552 _ACEOF
18553 cat confdefs.h >>conftest.$ac_ext
18554 cat >>conftest.$ac_ext <<_ACEOF
18555 /* end confdefs.h. */
18556 #include <sys/cpustats.h>
18557 _ACEOF
18558 if { (ac_try="$ac_cpp conftest.$ac_ext"
18559 case "(($ac_try" in
18560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18561 *) ac_try_echo=$ac_try;;
18562 esac
18563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18565 ac_status=$?
18566 grep -v '^ *+' conftest.er1 >conftest.err
18567 rm -f conftest.er1
18568 cat conftest.err >&5
18569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570 (exit $ac_status); } >/dev/null && {
18571 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18572 test ! -s conftest.err
18573 }; then
18574 ac_header_preproc=yes
18575 else
18576 echo "$as_me: failed program was:" >&5
18577 sed 's/^/| /' conftest.$ac_ext >&5
18579 ac_header_preproc=no
18582 rm -f conftest.err conftest.$ac_ext
18583 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18584 echo "${ECHO_T}$ac_header_preproc" >&6; }
18586 # So? What about this header?
18587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18588 yes:no: )
18589 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18590 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18591 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
18592 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
18593 ac_header_preproc=yes
18595 no:yes:* )
18596 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
18597 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
18598 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
18599 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
18600 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
18601 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
18602 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18603 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18604 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
18605 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
18606 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
18607 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
18610 esac
18611 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18612 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18613 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18614 echo $ECHO_N "(cached) $ECHO_C" >&6
18615 else
18616 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18618 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18619 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18622 if test $ac_cv_header_sys_cpustats_h = yes; then
18623 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18624 #define UMAX 1
18625 _ACEOF
18632 if test $ac_have_func = no; then
18634 for ac_header in mach/mach.h
18636 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18637 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18638 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18641 echo $ECHO_N "(cached) $ECHO_C" >&6
18643 ac_res=`eval echo '${'$as_ac_Header'}'`
18644 { echo "$as_me:$LINENO: result: $ac_res" >&5
18645 echo "${ECHO_T}$ac_res" >&6; }
18646 else
18647 # Is the header compilable?
18648 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18649 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18650 cat >conftest.$ac_ext <<_ACEOF
18651 /* confdefs.h. */
18652 _ACEOF
18653 cat confdefs.h >>conftest.$ac_ext
18654 cat >>conftest.$ac_ext <<_ACEOF
18655 /* end confdefs.h. */
18656 $ac_includes_default
18657 #include <$ac_header>
18658 _ACEOF
18659 rm -f conftest.$ac_objext
18660 if { (ac_try="$ac_compile"
18661 case "(($ac_try" in
18662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18663 *) ac_try_echo=$ac_try;;
18664 esac
18665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18666 (eval "$ac_compile") 2>conftest.er1
18667 ac_status=$?
18668 grep -v '^ *+' conftest.er1 >conftest.err
18669 rm -f conftest.er1
18670 cat conftest.err >&5
18671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18672 (exit $ac_status); } && {
18673 test -z "$ac_c_werror_flag" ||
18674 test ! -s conftest.err
18675 } && test -s conftest.$ac_objext; then
18676 ac_header_compiler=yes
18677 else
18678 echo "$as_me: failed program was:" >&5
18679 sed 's/^/| /' conftest.$ac_ext >&5
18681 ac_header_compiler=no
18684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18685 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18686 echo "${ECHO_T}$ac_header_compiler" >&6; }
18688 # Is the header present?
18689 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18690 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18691 cat >conftest.$ac_ext <<_ACEOF
18692 /* confdefs.h. */
18693 _ACEOF
18694 cat confdefs.h >>conftest.$ac_ext
18695 cat >>conftest.$ac_ext <<_ACEOF
18696 /* end confdefs.h. */
18697 #include <$ac_header>
18698 _ACEOF
18699 if { (ac_try="$ac_cpp conftest.$ac_ext"
18700 case "(($ac_try" in
18701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18702 *) ac_try_echo=$ac_try;;
18703 esac
18704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18705 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18706 ac_status=$?
18707 grep -v '^ *+' conftest.er1 >conftest.err
18708 rm -f conftest.er1
18709 cat conftest.err >&5
18710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18711 (exit $ac_status); } >/dev/null && {
18712 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18713 test ! -s conftest.err
18714 }; then
18715 ac_header_preproc=yes
18716 else
18717 echo "$as_me: failed program was:" >&5
18718 sed 's/^/| /' conftest.$ac_ext >&5
18720 ac_header_preproc=no
18723 rm -f conftest.err conftest.$ac_ext
18724 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18725 echo "${ECHO_T}$ac_header_preproc" >&6; }
18727 # So? What about this header?
18728 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18729 yes:no: )
18730 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18731 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18733 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18734 ac_header_preproc=yes
18736 no:yes:* )
18737 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18738 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18739 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18740 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18741 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18742 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18743 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18744 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18746 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18747 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18748 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18751 esac
18752 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18754 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18755 echo $ECHO_N "(cached) $ECHO_C" >&6
18756 else
18757 eval "$as_ac_Header=\$ac_header_preproc"
18759 ac_res=`eval echo '${'$as_ac_Header'}'`
18760 { echo "$as_me:$LINENO: result: $ac_res" >&5
18761 echo "${ECHO_T}$ac_res" >&6; }
18764 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18765 cat >>confdefs.h <<_ACEOF
18766 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18767 _ACEOF
18771 done
18776 for ac_header in nlist.h
18778 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18780 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18783 echo $ECHO_N "(cached) $ECHO_C" >&6
18785 ac_res=`eval echo '${'$as_ac_Header'}'`
18786 { echo "$as_me:$LINENO: result: $ac_res" >&5
18787 echo "${ECHO_T}$ac_res" >&6; }
18788 else
18789 # Is the header compilable?
18790 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18791 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18792 cat >conftest.$ac_ext <<_ACEOF
18793 /* confdefs.h. */
18794 _ACEOF
18795 cat confdefs.h >>conftest.$ac_ext
18796 cat >>conftest.$ac_ext <<_ACEOF
18797 /* end confdefs.h. */
18798 $ac_includes_default
18799 #include <$ac_header>
18800 _ACEOF
18801 rm -f conftest.$ac_objext
18802 if { (ac_try="$ac_compile"
18803 case "(($ac_try" in
18804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18805 *) ac_try_echo=$ac_try;;
18806 esac
18807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18808 (eval "$ac_compile") 2>conftest.er1
18809 ac_status=$?
18810 grep -v '^ *+' conftest.er1 >conftest.err
18811 rm -f conftest.er1
18812 cat conftest.err >&5
18813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18814 (exit $ac_status); } && {
18815 test -z "$ac_c_werror_flag" ||
18816 test ! -s conftest.err
18817 } && test -s conftest.$ac_objext; then
18818 ac_header_compiler=yes
18819 else
18820 echo "$as_me: failed program was:" >&5
18821 sed 's/^/| /' conftest.$ac_ext >&5
18823 ac_header_compiler=no
18826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18827 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18828 echo "${ECHO_T}$ac_header_compiler" >&6; }
18830 # Is the header present?
18831 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18832 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
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 <$ac_header>
18840 _ACEOF
18841 if { (ac_try="$ac_cpp conftest.$ac_ext"
18842 case "(($ac_try" in
18843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18844 *) ac_try_echo=$ac_try;;
18845 esac
18846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18848 ac_status=$?
18849 grep -v '^ *+' conftest.er1 >conftest.err
18850 rm -f conftest.er1
18851 cat conftest.err >&5
18852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18853 (exit $ac_status); } >/dev/null && {
18854 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18855 test ! -s conftest.err
18856 }; then
18857 ac_header_preproc=yes
18858 else
18859 echo "$as_me: failed program was:" >&5
18860 sed 's/^/| /' conftest.$ac_ext >&5
18862 ac_header_preproc=no
18865 rm -f conftest.err conftest.$ac_ext
18866 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18867 echo "${ECHO_T}$ac_header_preproc" >&6; }
18869 # So? What about this header?
18870 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18871 yes:no: )
18872 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18873 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18875 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18876 ac_header_preproc=yes
18878 no:yes:* )
18879 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18880 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18881 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18882 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18883 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18884 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18885 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18886 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18888 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18889 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18890 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18893 esac
18894 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18897 echo $ECHO_N "(cached) $ECHO_C" >&6
18898 else
18899 eval "$as_ac_Header=\$ac_header_preproc"
18901 ac_res=`eval echo '${'$as_ac_Header'}'`
18902 { echo "$as_me:$LINENO: result: $ac_res" >&5
18903 echo "${ECHO_T}$ac_res" >&6; }
18906 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18907 cat >>confdefs.h <<_ACEOF
18908 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18909 _ACEOF
18910 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18911 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18912 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18913 echo $ECHO_N "(cached) $ECHO_C" >&6
18914 else
18915 cat >conftest.$ac_ext <<_ACEOF
18916 /* confdefs.h. */
18917 _ACEOF
18918 cat confdefs.h >>conftest.$ac_ext
18919 cat >>conftest.$ac_ext <<_ACEOF
18920 /* end confdefs.h. */
18921 #include <nlist.h>
18924 main ()
18926 static struct nlist ac_aggr;
18927 if (ac_aggr.n_un.n_name)
18928 return 0;
18930 return 0;
18932 _ACEOF
18933 rm -f conftest.$ac_objext
18934 if { (ac_try="$ac_compile"
18935 case "(($ac_try" in
18936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18937 *) ac_try_echo=$ac_try;;
18938 esac
18939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18940 (eval "$ac_compile") 2>conftest.er1
18941 ac_status=$?
18942 grep -v '^ *+' conftest.er1 >conftest.err
18943 rm -f conftest.er1
18944 cat conftest.err >&5
18945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946 (exit $ac_status); } && {
18947 test -z "$ac_c_werror_flag" ||
18948 test ! -s conftest.err
18949 } && test -s conftest.$ac_objext; then
18950 ac_cv_member_struct_nlist_n_un_n_name=yes
18951 else
18952 echo "$as_me: failed program was:" >&5
18953 sed 's/^/| /' conftest.$ac_ext >&5
18955 cat >conftest.$ac_ext <<_ACEOF
18956 /* confdefs.h. */
18957 _ACEOF
18958 cat confdefs.h >>conftest.$ac_ext
18959 cat >>conftest.$ac_ext <<_ACEOF
18960 /* end confdefs.h. */
18961 #include <nlist.h>
18964 main ()
18966 static struct nlist ac_aggr;
18967 if (sizeof ac_aggr.n_un.n_name)
18968 return 0;
18970 return 0;
18972 _ACEOF
18973 rm -f conftest.$ac_objext
18974 if { (ac_try="$ac_compile"
18975 case "(($ac_try" in
18976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18977 *) ac_try_echo=$ac_try;;
18978 esac
18979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18980 (eval "$ac_compile") 2>conftest.er1
18981 ac_status=$?
18982 grep -v '^ *+' conftest.er1 >conftest.err
18983 rm -f conftest.er1
18984 cat conftest.err >&5
18985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986 (exit $ac_status); } && {
18987 test -z "$ac_c_werror_flag" ||
18988 test ! -s conftest.err
18989 } && test -s conftest.$ac_objext; then
18990 ac_cv_member_struct_nlist_n_un_n_name=yes
18991 else
18992 echo "$as_me: failed program was:" >&5
18993 sed 's/^/| /' conftest.$ac_ext >&5
18995 ac_cv_member_struct_nlist_n_un_n_name=no
18998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19003 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
19004 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
19005 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
19007 cat >>confdefs.h <<_ACEOF
19008 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19009 _ACEOF
19012 cat >>confdefs.h <<\_ACEOF
19013 #define NLIST_NAME_UNION 1
19014 _ACEOF
19021 done
19024 done
19027 # Some definitions of getloadavg require that the program be installed setgid.
19028 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
19029 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
19030 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
19031 echo $ECHO_N "(cached) $ECHO_C" >&6
19032 else
19033 cat >conftest.$ac_ext <<_ACEOF
19034 /* confdefs.h. */
19035 _ACEOF
19036 cat confdefs.h >>conftest.$ac_ext
19037 cat >>conftest.$ac_ext <<_ACEOF
19038 /* end confdefs.h. */
19039 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
19040 #ifdef LDAV_PRIVILEGED
19041 Yowza Am I SETGID yet
19042 #endif
19043 _ACEOF
19044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19045 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
19046 ac_cv_func_getloadavg_setgid=yes
19047 else
19048 ac_cv_func_getloadavg_setgid=no
19050 rm -f conftest*
19053 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
19054 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
19055 if test $ac_cv_func_getloadavg_setgid = yes; then
19056 NEED_SETGID=true
19058 cat >>confdefs.h <<\_ACEOF
19059 #define GETLOADAVG_PRIVILEGED 1
19060 _ACEOF
19062 else
19063 NEED_SETGID=false
19066 if test $ac_cv_func_getloadavg_setgid = yes; then
19067 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
19068 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
19069 if test "${ac_cv_group_kmem+set}" = set; then
19070 echo $ECHO_N "(cached) $ECHO_C" >&6
19071 else
19072 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
19073 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
19074 # If we got an error (system does not support symlinks), try without -L.
19075 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
19076 ac_cv_group_kmem=`echo $ac_ls_output \
19077 | sed -ne 's/[ ][ ]*/ /g;
19078 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
19079 / /s/.* //;p;'`
19082 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
19083 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
19084 KMEM_GROUP=$ac_cv_group_kmem
19086 if test "x$ac_save_LIBS" = x; then
19087 GETLOADAVG_LIBS=$LIBS
19088 else
19089 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
19091 LIBS=$ac_save_LIBS
19095 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19096 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
19097 if test "${ac_cv_sys_largefile_source+set}" = set; then
19098 echo $ECHO_N "(cached) $ECHO_C" >&6
19099 else
19100 while :; do
19101 cat >conftest.$ac_ext <<_ACEOF
19102 /* confdefs.h. */
19103 _ACEOF
19104 cat confdefs.h >>conftest.$ac_ext
19105 cat >>conftest.$ac_ext <<_ACEOF
19106 /* end confdefs.h. */
19107 #include <sys/types.h> /* for off_t */
19108 #include <stdio.h>
19110 main ()
19112 int (*fp) (FILE *, off_t, int) = fseeko;
19113 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19115 return 0;
19117 _ACEOF
19118 rm -f conftest.$ac_objext conftest$ac_exeext
19119 if { (ac_try="$ac_link"
19120 case "(($ac_try" in
19121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19122 *) ac_try_echo=$ac_try;;
19123 esac
19124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19125 (eval "$ac_link") 2>conftest.er1
19126 ac_status=$?
19127 grep -v '^ *+' conftest.er1 >conftest.err
19128 rm -f conftest.er1
19129 cat conftest.err >&5
19130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131 (exit $ac_status); } && {
19132 test -z "$ac_c_werror_flag" ||
19133 test ! -s conftest.err
19134 } && test -s conftest$ac_exeext &&
19135 $as_test_x conftest$ac_exeext; then
19136 ac_cv_sys_largefile_source=no; break
19137 else
19138 echo "$as_me: failed program was:" >&5
19139 sed 's/^/| /' conftest.$ac_ext >&5
19144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19145 conftest$ac_exeext conftest.$ac_ext
19146 cat >conftest.$ac_ext <<_ACEOF
19147 /* confdefs.h. */
19148 _ACEOF
19149 cat confdefs.h >>conftest.$ac_ext
19150 cat >>conftest.$ac_ext <<_ACEOF
19151 /* end confdefs.h. */
19152 #define _LARGEFILE_SOURCE 1
19153 #include <sys/types.h> /* for off_t */
19154 #include <stdio.h>
19156 main ()
19158 int (*fp) (FILE *, off_t, int) = fseeko;
19159 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19161 return 0;
19163 _ACEOF
19164 rm -f conftest.$ac_objext conftest$ac_exeext
19165 if { (ac_try="$ac_link"
19166 case "(($ac_try" in
19167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19168 *) ac_try_echo=$ac_try;;
19169 esac
19170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19171 (eval "$ac_link") 2>conftest.er1
19172 ac_status=$?
19173 grep -v '^ *+' conftest.er1 >conftest.err
19174 rm -f conftest.er1
19175 cat conftest.err >&5
19176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19177 (exit $ac_status); } && {
19178 test -z "$ac_c_werror_flag" ||
19179 test ! -s conftest.err
19180 } && test -s conftest$ac_exeext &&
19181 $as_test_x conftest$ac_exeext; then
19182 ac_cv_sys_largefile_source=1; break
19183 else
19184 echo "$as_me: failed program was:" >&5
19185 sed 's/^/| /' conftest.$ac_ext >&5
19190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19191 conftest$ac_exeext conftest.$ac_ext
19192 ac_cv_sys_largefile_source=unknown
19193 break
19194 done
19196 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19197 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
19198 case $ac_cv_sys_largefile_source in #(
19199 no | unknown) ;;
19201 cat >>confdefs.h <<_ACEOF
19202 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19203 _ACEOF
19205 esac
19206 rm -f conftest*
19208 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19209 # in glibc 2.1.3, but that breaks too many other things.
19210 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19211 if test $ac_cv_sys_largefile_source != unknown; then
19213 cat >>confdefs.h <<\_ACEOF
19214 #define HAVE_FSEEKO 1
19215 _ACEOF
19220 # Configure getopt.
19221 # getopt.m4 serial 10
19223 # The getopt module assume you want GNU getopt, with getopt_long etc,
19224 # rather than vanilla POSIX getopt. This means your your code should
19225 # always include <getopt.h> for the getopt prototypes.
19237 # Prerequisites of lib/getopt*.
19242 GETOPT_H=
19244 for ac_header in getopt.h
19246 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19248 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19251 echo $ECHO_N "(cached) $ECHO_C" >&6
19253 ac_res=`eval echo '${'$as_ac_Header'}'`
19254 { echo "$as_me:$LINENO: result: $ac_res" >&5
19255 echo "${ECHO_T}$ac_res" >&6; }
19256 else
19257 # Is the header compilable?
19258 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19259 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19260 cat >conftest.$ac_ext <<_ACEOF
19261 /* confdefs.h. */
19262 _ACEOF
19263 cat confdefs.h >>conftest.$ac_ext
19264 cat >>conftest.$ac_ext <<_ACEOF
19265 /* end confdefs.h. */
19266 $ac_includes_default
19267 #include <$ac_header>
19268 _ACEOF
19269 rm -f conftest.$ac_objext
19270 if { (ac_try="$ac_compile"
19271 case "(($ac_try" in
19272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19273 *) ac_try_echo=$ac_try;;
19274 esac
19275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19276 (eval "$ac_compile") 2>conftest.er1
19277 ac_status=$?
19278 grep -v '^ *+' conftest.er1 >conftest.err
19279 rm -f conftest.er1
19280 cat conftest.err >&5
19281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282 (exit $ac_status); } && {
19283 test -z "$ac_c_werror_flag" ||
19284 test ! -s conftest.err
19285 } && test -s conftest.$ac_objext; then
19286 ac_header_compiler=yes
19287 else
19288 echo "$as_me: failed program was:" >&5
19289 sed 's/^/| /' conftest.$ac_ext >&5
19291 ac_header_compiler=no
19294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19295 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19296 echo "${ECHO_T}$ac_header_compiler" >&6; }
19298 # Is the header present?
19299 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19300 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19301 cat >conftest.$ac_ext <<_ACEOF
19302 /* confdefs.h. */
19303 _ACEOF
19304 cat confdefs.h >>conftest.$ac_ext
19305 cat >>conftest.$ac_ext <<_ACEOF
19306 /* end confdefs.h. */
19307 #include <$ac_header>
19308 _ACEOF
19309 if { (ac_try="$ac_cpp conftest.$ac_ext"
19310 case "(($ac_try" in
19311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19312 *) ac_try_echo=$ac_try;;
19313 esac
19314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19315 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19316 ac_status=$?
19317 grep -v '^ *+' conftest.er1 >conftest.err
19318 rm -f conftest.er1
19319 cat conftest.err >&5
19320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321 (exit $ac_status); } >/dev/null && {
19322 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19323 test ! -s conftest.err
19324 }; then
19325 ac_header_preproc=yes
19326 else
19327 echo "$as_me: failed program was:" >&5
19328 sed 's/^/| /' conftest.$ac_ext >&5
19330 ac_header_preproc=no
19333 rm -f conftest.err conftest.$ac_ext
19334 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19335 echo "${ECHO_T}$ac_header_preproc" >&6; }
19337 # So? What about this header?
19338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19339 yes:no: )
19340 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19341 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19343 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19344 ac_header_preproc=yes
19346 no:yes:* )
19347 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19348 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19349 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19350 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19351 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19352 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19353 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19354 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19356 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19357 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19358 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19361 esac
19362 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19365 echo $ECHO_N "(cached) $ECHO_C" >&6
19366 else
19367 eval "$as_ac_Header=\$ac_header_preproc"
19369 ac_res=`eval echo '${'$as_ac_Header'}'`
19370 { echo "$as_me:$LINENO: result: $ac_res" >&5
19371 echo "${ECHO_T}$ac_res" >&6; }
19374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19375 cat >>confdefs.h <<_ACEOF
19376 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19377 _ACEOF
19379 else
19380 GETOPT_H=getopt.h
19383 done
19385 if test -z "$GETOPT_H"; then
19387 for ac_func in getopt_long_only
19389 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19390 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19391 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19392 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19393 echo $ECHO_N "(cached) $ECHO_C" >&6
19394 else
19395 cat >conftest.$ac_ext <<_ACEOF
19396 /* confdefs.h. */
19397 _ACEOF
19398 cat confdefs.h >>conftest.$ac_ext
19399 cat >>conftest.$ac_ext <<_ACEOF
19400 /* end confdefs.h. */
19401 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19402 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19403 #define $ac_func innocuous_$ac_func
19405 /* System header to define __stub macros and hopefully few prototypes,
19406 which can conflict with char $ac_func (); below.
19407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19408 <limits.h> exists even on freestanding compilers. */
19410 #ifdef __STDC__
19411 # include <limits.h>
19412 #else
19413 # include <assert.h>
19414 #endif
19416 #undef $ac_func
19418 /* Override any GCC internal prototype to avoid an error.
19419 Use char because int might match the return type of a GCC
19420 builtin and then its argument prototype would still apply. */
19421 #ifdef __cplusplus
19422 extern "C"
19423 #endif
19424 char $ac_func ();
19425 /* The GNU C library defines this for functions which it implements
19426 to always fail with ENOSYS. Some functions are actually named
19427 something starting with __ and the normal name is an alias. */
19428 #if defined __stub_$ac_func || defined __stub___$ac_func
19429 choke me
19430 #endif
19433 main ()
19435 return $ac_func ();
19437 return 0;
19439 _ACEOF
19440 rm -f conftest.$ac_objext conftest$ac_exeext
19441 if { (ac_try="$ac_link"
19442 case "(($ac_try" in
19443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19444 *) ac_try_echo=$ac_try;;
19445 esac
19446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19447 (eval "$ac_link") 2>conftest.er1
19448 ac_status=$?
19449 grep -v '^ *+' conftest.er1 >conftest.err
19450 rm -f conftest.er1
19451 cat conftest.err >&5
19452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453 (exit $ac_status); } && {
19454 test -z "$ac_c_werror_flag" ||
19455 test ! -s conftest.err
19456 } && test -s conftest$ac_exeext &&
19457 $as_test_x conftest$ac_exeext; then
19458 eval "$as_ac_var=yes"
19459 else
19460 echo "$as_me: failed program was:" >&5
19461 sed 's/^/| /' conftest.$ac_ext >&5
19463 eval "$as_ac_var=no"
19466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19467 conftest$ac_exeext conftest.$ac_ext
19469 ac_res=`eval echo '${'$as_ac_var'}'`
19470 { echo "$as_me:$LINENO: result: $ac_res" >&5
19471 echo "${ECHO_T}$ac_res" >&6; }
19472 if test `eval echo '${'$as_ac_var'}'` = yes; then
19473 cat >>confdefs.h <<_ACEOF
19474 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19475 _ACEOF
19477 else
19478 GETOPT_H=getopt.h
19480 done
19484 if test -z "$GETOPT_H"; then
19485 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
19486 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
19487 if test "${ac_cv_have_decl_optreset+set}" = set; then
19488 echo $ECHO_N "(cached) $ECHO_C" >&6
19489 else
19490 cat >conftest.$ac_ext <<_ACEOF
19491 /* confdefs.h. */
19492 _ACEOF
19493 cat confdefs.h >>conftest.$ac_ext
19494 cat >>conftest.$ac_ext <<_ACEOF
19495 /* end confdefs.h. */
19496 #include <getopt.h>
19499 main ()
19501 #ifndef optreset
19502 (void) optreset;
19503 #endif
19506 return 0;
19508 _ACEOF
19509 rm -f conftest.$ac_objext
19510 if { (ac_try="$ac_compile"
19511 case "(($ac_try" in
19512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19513 *) ac_try_echo=$ac_try;;
19514 esac
19515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19516 (eval "$ac_compile") 2>conftest.er1
19517 ac_status=$?
19518 grep -v '^ *+' conftest.er1 >conftest.err
19519 rm -f conftest.er1
19520 cat conftest.err >&5
19521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522 (exit $ac_status); } && {
19523 test -z "$ac_c_werror_flag" ||
19524 test ! -s conftest.err
19525 } && test -s conftest.$ac_objext; then
19526 ac_cv_have_decl_optreset=yes
19527 else
19528 echo "$as_me: failed program was:" >&5
19529 sed 's/^/| /' conftest.$ac_ext >&5
19531 ac_cv_have_decl_optreset=no
19534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19536 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
19537 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19538 if test $ac_cv_have_decl_optreset = yes; then
19539 GETOPT_H=getopt.h
19544 if test -z "$GETOPT_H"; then
19545 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
19546 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
19547 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19548 echo $ECHO_N "(cached) $ECHO_C" >&6
19549 else
19550 if test "$cross_compiling" = yes; then
19551 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
19552 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
19553 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19554 echo $ECHO_N "(cached) $ECHO_C" >&6
19555 else
19556 cat >conftest.$ac_ext <<_ACEOF
19557 /* confdefs.h. */
19558 _ACEOF
19559 cat confdefs.h >>conftest.$ac_ext
19560 cat >>conftest.$ac_ext <<_ACEOF
19561 /* end confdefs.h. */
19562 #include <getopt.h>
19565 main ()
19567 #ifndef getopt_clip
19568 (void) getopt_clip;
19569 #endif
19572 return 0;
19574 _ACEOF
19575 rm -f conftest.$ac_objext
19576 if { (ac_try="$ac_compile"
19577 case "(($ac_try" in
19578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19579 *) ac_try_echo=$ac_try;;
19580 esac
19581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19582 (eval "$ac_compile") 2>conftest.er1
19583 ac_status=$?
19584 grep -v '^ *+' conftest.er1 >conftest.err
19585 rm -f conftest.er1
19586 cat conftest.err >&5
19587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588 (exit $ac_status); } && {
19589 test -z "$ac_c_werror_flag" ||
19590 test ! -s conftest.err
19591 } && test -s conftest.$ac_objext; then
19592 ac_cv_have_decl_getopt_clip=yes
19593 else
19594 echo "$as_me: failed program was:" >&5
19595 sed 's/^/| /' conftest.$ac_ext >&5
19597 ac_cv_have_decl_getopt_clip=no
19600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19602 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
19603 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19604 if test $ac_cv_have_decl_getopt_clip = yes; then
19605 gl_cv_func_gnu_getopt=no
19606 else
19607 gl_cv_func_gnu_getopt=yes
19610 else
19611 cat >conftest.$ac_ext <<_ACEOF
19612 /* confdefs.h. */
19613 _ACEOF
19614 cat confdefs.h >>conftest.$ac_ext
19615 cat >>conftest.$ac_ext <<_ACEOF
19616 /* end confdefs.h. */
19617 #include <getopt.h>
19619 main ()
19622 char *myargv[3];
19623 myargv[0] = "conftest";
19624 myargv[1] = "-+";
19625 myargv[2] = 0;
19626 return getopt (2, myargv, "+a") != '?';
19629 return 0;
19631 _ACEOF
19632 rm -f conftest$ac_exeext
19633 if { (ac_try="$ac_link"
19634 case "(($ac_try" in
19635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19636 *) ac_try_echo=$ac_try;;
19637 esac
19638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19639 (eval "$ac_link") 2>&5
19640 ac_status=$?
19641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19643 { (case "(($ac_try" in
19644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19645 *) ac_try_echo=$ac_try;;
19646 esac
19647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19648 (eval "$ac_try") 2>&5
19649 ac_status=$?
19650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651 (exit $ac_status); }; }; then
19652 gl_cv_func_gnu_getopt=yes
19653 else
19654 echo "$as_me: program exited with status $ac_status" >&5
19655 echo "$as_me: failed program was:" >&5
19656 sed 's/^/| /' conftest.$ac_ext >&5
19658 ( exit $ac_status )
19659 gl_cv_func_gnu_getopt=no
19661 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19666 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
19667 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19668 if test "$gl_cv_func_gnu_getopt" = "no"; then
19669 GETOPT_H=getopt.h
19675 if test -n "$GETOPT_H"; then
19678 GETOPT_H=getopt.h
19680 cat >>confdefs.h <<\_ACEOF
19681 #define __GETOPT_PREFIX rpl_
19682 _ACEOF
19687 GETOPTOBJS='getopt.o getopt1.o'
19694 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
19695 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
19696 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19697 echo $ECHO_N "(cached) $ECHO_C" >&6
19698 else
19699 # Use it with a single arg.
19700 cat >conftest.$ac_ext <<_ACEOF
19701 /* confdefs.h. */
19702 _ACEOF
19703 cat confdefs.h >>conftest.$ac_ext
19704 cat >>conftest.$ac_ext <<_ACEOF
19705 /* end confdefs.h. */
19706 $ac_includes_default
19708 main ()
19710 getpgrp (0);
19712 return 0;
19714 _ACEOF
19715 rm -f conftest.$ac_objext
19716 if { (ac_try="$ac_compile"
19717 case "(($ac_try" in
19718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19719 *) ac_try_echo=$ac_try;;
19720 esac
19721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19722 (eval "$ac_compile") 2>conftest.er1
19723 ac_status=$?
19724 grep -v '^ *+' conftest.er1 >conftest.err
19725 rm -f conftest.er1
19726 cat conftest.err >&5
19727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728 (exit $ac_status); } && {
19729 test -z "$ac_c_werror_flag" ||
19730 test ! -s conftest.err
19731 } && test -s conftest.$ac_objext; then
19732 ac_cv_func_getpgrp_void=no
19733 else
19734 echo "$as_me: failed program was:" >&5
19735 sed 's/^/| /' conftest.$ac_ext >&5
19737 ac_cv_func_getpgrp_void=yes
19740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19743 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
19744 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19745 if test $ac_cv_func_getpgrp_void = yes; then
19747 cat >>confdefs.h <<\_ACEOF
19748 #define GETPGRP_VOID 1
19749 _ACEOF
19755 for ac_func in strftime
19757 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19758 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19759 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19760 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19761 echo $ECHO_N "(cached) $ECHO_C" >&6
19762 else
19763 cat >conftest.$ac_ext <<_ACEOF
19764 /* confdefs.h. */
19765 _ACEOF
19766 cat confdefs.h >>conftest.$ac_ext
19767 cat >>conftest.$ac_ext <<_ACEOF
19768 /* end confdefs.h. */
19769 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19771 #define $ac_func innocuous_$ac_func
19773 /* System header to define __stub macros and hopefully few prototypes,
19774 which can conflict with char $ac_func (); below.
19775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19776 <limits.h> exists even on freestanding compilers. */
19778 #ifdef __STDC__
19779 # include <limits.h>
19780 #else
19781 # include <assert.h>
19782 #endif
19784 #undef $ac_func
19786 /* Override any GCC internal prototype to avoid an error.
19787 Use char because int might match the return type of a GCC
19788 builtin and then its argument prototype would still apply. */
19789 #ifdef __cplusplus
19790 extern "C"
19791 #endif
19792 char $ac_func ();
19793 /* The GNU C library defines this for functions which it implements
19794 to always fail with ENOSYS. Some functions are actually named
19795 something starting with __ and the normal name is an alias. */
19796 #if defined __stub_$ac_func || defined __stub___$ac_func
19797 choke me
19798 #endif
19801 main ()
19803 return $ac_func ();
19805 return 0;
19807 _ACEOF
19808 rm -f conftest.$ac_objext conftest$ac_exeext
19809 if { (ac_try="$ac_link"
19810 case "(($ac_try" in
19811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19812 *) ac_try_echo=$ac_try;;
19813 esac
19814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19815 (eval "$ac_link") 2>conftest.er1
19816 ac_status=$?
19817 grep -v '^ *+' conftest.er1 >conftest.err
19818 rm -f conftest.er1
19819 cat conftest.err >&5
19820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821 (exit $ac_status); } && {
19822 test -z "$ac_c_werror_flag" ||
19823 test ! -s conftest.err
19824 } && test -s conftest$ac_exeext &&
19825 $as_test_x conftest$ac_exeext; then
19826 eval "$as_ac_var=yes"
19827 else
19828 echo "$as_me: failed program was:" >&5
19829 sed 's/^/| /' conftest.$ac_ext >&5
19831 eval "$as_ac_var=no"
19834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19835 conftest$ac_exeext conftest.$ac_ext
19837 ac_res=`eval echo '${'$as_ac_var'}'`
19838 { echo "$as_me:$LINENO: result: $ac_res" >&5
19839 echo "${ECHO_T}$ac_res" >&6; }
19840 if test `eval echo '${'$as_ac_var'}'` = yes; then
19841 cat >>confdefs.h <<_ACEOF
19842 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19843 _ACEOF
19845 else
19846 # strftime is in -lintl on SCO UNIX.
19847 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19848 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
19849 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19850 echo $ECHO_N "(cached) $ECHO_C" >&6
19851 else
19852 ac_check_lib_save_LIBS=$LIBS
19853 LIBS="-lintl $LIBS"
19854 cat >conftest.$ac_ext <<_ACEOF
19855 /* confdefs.h. */
19856 _ACEOF
19857 cat confdefs.h >>conftest.$ac_ext
19858 cat >>conftest.$ac_ext <<_ACEOF
19859 /* end confdefs.h. */
19861 /* Override any GCC internal prototype to avoid an error.
19862 Use char because int might match the return type of a GCC
19863 builtin and then its argument prototype would still apply. */
19864 #ifdef __cplusplus
19865 extern "C"
19866 #endif
19867 char strftime ();
19869 main ()
19871 return strftime ();
19873 return 0;
19875 _ACEOF
19876 rm -f conftest.$ac_objext conftest$ac_exeext
19877 if { (ac_try="$ac_link"
19878 case "(($ac_try" in
19879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19880 *) ac_try_echo=$ac_try;;
19881 esac
19882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19883 (eval "$ac_link") 2>conftest.er1
19884 ac_status=$?
19885 grep -v '^ *+' conftest.er1 >conftest.err
19886 rm -f conftest.er1
19887 cat conftest.err >&5
19888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889 (exit $ac_status); } && {
19890 test -z "$ac_c_werror_flag" ||
19891 test ! -s conftest.err
19892 } && test -s conftest$ac_exeext &&
19893 $as_test_x conftest$ac_exeext; then
19894 ac_cv_lib_intl_strftime=yes
19895 else
19896 echo "$as_me: failed program was:" >&5
19897 sed 's/^/| /' conftest.$ac_ext >&5
19899 ac_cv_lib_intl_strftime=no
19902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19903 conftest$ac_exeext conftest.$ac_ext
19904 LIBS=$ac_check_lib_save_LIBS
19906 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19907 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19908 if test $ac_cv_lib_intl_strftime = yes; then
19909 cat >>confdefs.h <<\_ACEOF
19910 #define HAVE_STRFTIME 1
19911 _ACEOF
19913 LIBS="-lintl $LIBS"
19917 done
19920 # UNIX98 PTYs.
19922 for ac_func in grantpt
19924 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19925 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19926 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19927 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19928 echo $ECHO_N "(cached) $ECHO_C" >&6
19929 else
19930 cat >conftest.$ac_ext <<_ACEOF
19931 /* confdefs.h. */
19932 _ACEOF
19933 cat confdefs.h >>conftest.$ac_ext
19934 cat >>conftest.$ac_ext <<_ACEOF
19935 /* end confdefs.h. */
19936 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19937 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19938 #define $ac_func innocuous_$ac_func
19940 /* System header to define __stub macros and hopefully few prototypes,
19941 which can conflict with char $ac_func (); below.
19942 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19943 <limits.h> exists even on freestanding compilers. */
19945 #ifdef __STDC__
19946 # include <limits.h>
19947 #else
19948 # include <assert.h>
19949 #endif
19951 #undef $ac_func
19953 /* Override any GCC internal prototype to avoid an error.
19954 Use char because int might match the return type of a GCC
19955 builtin and then its argument prototype would still apply. */
19956 #ifdef __cplusplus
19957 extern "C"
19958 #endif
19959 char $ac_func ();
19960 /* The GNU C library defines this for functions which it implements
19961 to always fail with ENOSYS. Some functions are actually named
19962 something starting with __ and the normal name is an alias. */
19963 #if defined __stub_$ac_func || defined __stub___$ac_func
19964 choke me
19965 #endif
19968 main ()
19970 return $ac_func ();
19972 return 0;
19974 _ACEOF
19975 rm -f conftest.$ac_objext conftest$ac_exeext
19976 if { (ac_try="$ac_link"
19977 case "(($ac_try" in
19978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19979 *) ac_try_echo=$ac_try;;
19980 esac
19981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19982 (eval "$ac_link") 2>conftest.er1
19983 ac_status=$?
19984 grep -v '^ *+' conftest.er1 >conftest.err
19985 rm -f conftest.er1
19986 cat conftest.err >&5
19987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19988 (exit $ac_status); } && {
19989 test -z "$ac_c_werror_flag" ||
19990 test ! -s conftest.err
19991 } && test -s conftest$ac_exeext &&
19992 $as_test_x conftest$ac_exeext; then
19993 eval "$as_ac_var=yes"
19994 else
19995 echo "$as_me: failed program was:" >&5
19996 sed 's/^/| /' conftest.$ac_ext >&5
19998 eval "$as_ac_var=no"
20001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20002 conftest$ac_exeext conftest.$ac_ext
20004 ac_res=`eval echo '${'$as_ac_var'}'`
20005 { echo "$as_me:$LINENO: result: $ac_res" >&5
20006 echo "${ECHO_T}$ac_res" >&6; }
20007 if test `eval echo '${'$as_ac_var'}'` = yes; then
20008 cat >>confdefs.h <<_ACEOF
20009 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20010 _ACEOF
20013 done
20016 # PTY-related GNU extensions.
20018 for ac_func in getpt
20020 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20021 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20022 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20023 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20024 echo $ECHO_N "(cached) $ECHO_C" >&6
20025 else
20026 cat >conftest.$ac_ext <<_ACEOF
20027 /* confdefs.h. */
20028 _ACEOF
20029 cat confdefs.h >>conftest.$ac_ext
20030 cat >>conftest.$ac_ext <<_ACEOF
20031 /* end confdefs.h. */
20032 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20033 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20034 #define $ac_func innocuous_$ac_func
20036 /* System header to define __stub macros and hopefully few prototypes,
20037 which can conflict with char $ac_func (); below.
20038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20039 <limits.h> exists even on freestanding compilers. */
20041 #ifdef __STDC__
20042 # include <limits.h>
20043 #else
20044 # include <assert.h>
20045 #endif
20047 #undef $ac_func
20049 /* Override any GCC internal prototype to avoid an error.
20050 Use char because int might match the return type of a GCC
20051 builtin and then its argument prototype would still apply. */
20052 #ifdef __cplusplus
20053 extern "C"
20054 #endif
20055 char $ac_func ();
20056 /* The GNU C library defines this for functions which it implements
20057 to always fail with ENOSYS. Some functions are actually named
20058 something starting with __ and the normal name is an alias. */
20059 #if defined __stub_$ac_func || defined __stub___$ac_func
20060 choke me
20061 #endif
20064 main ()
20066 return $ac_func ();
20068 return 0;
20070 _ACEOF
20071 rm -f conftest.$ac_objext conftest$ac_exeext
20072 if { (ac_try="$ac_link"
20073 case "(($ac_try" in
20074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20075 *) ac_try_echo=$ac_try;;
20076 esac
20077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20078 (eval "$ac_link") 2>conftest.er1
20079 ac_status=$?
20080 grep -v '^ *+' conftest.er1 >conftest.err
20081 rm -f conftest.er1
20082 cat conftest.err >&5
20083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20084 (exit $ac_status); } && {
20085 test -z "$ac_c_werror_flag" ||
20086 test ! -s conftest.err
20087 } && test -s conftest$ac_exeext &&
20088 $as_test_x conftest$ac_exeext; then
20089 eval "$as_ac_var=yes"
20090 else
20091 echo "$as_me: failed program was:" >&5
20092 sed 's/^/| /' conftest.$ac_ext >&5
20094 eval "$as_ac_var=no"
20097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20098 conftest$ac_exeext conftest.$ac_ext
20100 ac_res=`eval echo '${'$as_ac_var'}'`
20101 { echo "$as_me:$LINENO: result: $ac_res" >&5
20102 echo "${ECHO_T}$ac_res" >&6; }
20103 if test `eval echo '${'$as_ac_var'}'` = yes; then
20104 cat >>confdefs.h <<_ACEOF
20105 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20106 _ACEOF
20109 done
20112 # Check this now, so that we will NOT find the above functions in ncurses.
20113 # That is because we have not set up to link ncurses in lib-src.
20114 # It's better to believe a function is not available
20115 # than to expect to find it in ncurses.
20117 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
20118 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
20119 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
20120 echo $ECHO_N "(cached) $ECHO_C" >&6
20121 else
20122 ac_check_lib_save_LIBS=$LIBS
20123 LIBS="-lncurses $LIBS"
20124 cat >conftest.$ac_ext <<_ACEOF
20125 /* confdefs.h. */
20126 _ACEOF
20127 cat confdefs.h >>conftest.$ac_ext
20128 cat >>conftest.$ac_ext <<_ACEOF
20129 /* end confdefs.h. */
20131 /* Override any GCC internal prototype to avoid an error.
20132 Use char because int might match the return type of a GCC
20133 builtin and then its argument prototype would still apply. */
20134 #ifdef __cplusplus
20135 extern "C"
20136 #endif
20137 char tparm ();
20139 main ()
20141 return tparm ();
20143 return 0;
20145 _ACEOF
20146 rm -f conftest.$ac_objext conftest$ac_exeext
20147 if { (ac_try="$ac_link"
20148 case "(($ac_try" in
20149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20150 *) ac_try_echo=$ac_try;;
20151 esac
20152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20153 (eval "$ac_link") 2>conftest.er1
20154 ac_status=$?
20155 grep -v '^ *+' conftest.er1 >conftest.err
20156 rm -f conftest.er1
20157 cat conftest.err >&5
20158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159 (exit $ac_status); } && {
20160 test -z "$ac_c_werror_flag" ||
20161 test ! -s conftest.err
20162 } && test -s conftest$ac_exeext &&
20163 $as_test_x conftest$ac_exeext; then
20164 ac_cv_lib_ncurses_tparm=yes
20165 else
20166 echo "$as_me: failed program was:" >&5
20167 sed 's/^/| /' conftest.$ac_ext >&5
20169 ac_cv_lib_ncurses_tparm=no
20172 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20173 conftest$ac_exeext conftest.$ac_ext
20174 LIBS=$ac_check_lib_save_LIBS
20176 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
20177 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
20178 if test $ac_cv_lib_ncurses_tparm = yes; then
20179 cat >>confdefs.h <<_ACEOF
20180 #define HAVE_LIBNCURSES 1
20181 _ACEOF
20183 LIBS="-lncurses $LIBS"
20188 # Do we have res_init, for detecting changes in /etc/resolv.conf?
20190 resolv=no
20191 cat >conftest.$ac_ext <<_ACEOF
20192 /* confdefs.h. */
20193 _ACEOF
20194 cat confdefs.h >>conftest.$ac_ext
20195 cat >>conftest.$ac_ext <<_ACEOF
20196 /* end confdefs.h. */
20197 #include <netinet/in.h>
20198 #include <arpa/nameser.h>
20199 #include <resolv.h>
20201 main ()
20203 return res_init();
20205 return 0;
20207 _ACEOF
20208 rm -f conftest.$ac_objext conftest$ac_exeext
20209 if { (ac_try="$ac_link"
20210 case "(($ac_try" in
20211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20212 *) ac_try_echo=$ac_try;;
20213 esac
20214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20215 (eval "$ac_link") 2>conftest.er1
20216 ac_status=$?
20217 grep -v '^ *+' conftest.er1 >conftest.err
20218 rm -f conftest.er1
20219 cat conftest.err >&5
20220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20221 (exit $ac_status); } && {
20222 test -z "$ac_c_werror_flag" ||
20223 test ! -s conftest.err
20224 } && test -s conftest$ac_exeext &&
20225 $as_test_x conftest$ac_exeext; then
20226 have_res_init=yes
20227 else
20228 echo "$as_me: failed program was:" >&5
20229 sed 's/^/| /' conftest.$ac_ext >&5
20231 have_res_init=no
20234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20235 conftest$ac_exeext conftest.$ac_ext
20236 if test "$have_res_init" = no; then
20237 OLIBS="$LIBS"
20238 LIBS="$LIBS -lresolv"
20239 { echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
20240 echo $ECHO_N "checking for res_init with -lresolv... $ECHO_C" >&6; }
20241 cat >conftest.$ac_ext <<_ACEOF
20242 /* confdefs.h. */
20243 _ACEOF
20244 cat confdefs.h >>conftest.$ac_ext
20245 cat >>conftest.$ac_ext <<_ACEOF
20246 /* end confdefs.h. */
20247 #include <netinet/in.h>
20248 #include <arpa/nameser.h>
20249 #include <resolv.h>
20251 main ()
20253 return res_init();
20255 return 0;
20257 _ACEOF
20258 rm -f conftest.$ac_objext conftest$ac_exeext
20259 if { (ac_try="$ac_link"
20260 case "(($ac_try" in
20261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20262 *) ac_try_echo=$ac_try;;
20263 esac
20264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20265 (eval "$ac_link") 2>conftest.er1
20266 ac_status=$?
20267 grep -v '^ *+' conftest.er1 >conftest.err
20268 rm -f conftest.er1
20269 cat conftest.err >&5
20270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271 (exit $ac_status); } && {
20272 test -z "$ac_c_werror_flag" ||
20273 test ! -s conftest.err
20274 } && test -s conftest$ac_exeext &&
20275 $as_test_x conftest$ac_exeext; then
20276 have_res_init=yes
20277 else
20278 echo "$as_me: failed program was:" >&5
20279 sed 's/^/| /' conftest.$ac_ext >&5
20281 have_res_init=no
20284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20285 conftest$ac_exeext conftest.$ac_ext
20286 { echo "$as_me:$LINENO: result: $have_res_init" >&5
20287 echo "${ECHO_T}$have_res_init" >&6; }
20288 if test "$have_res_init" = yes ; then
20289 resolv=yes
20291 LIBS="$OLIBS"
20294 if test "$have_res_init" = yes; then
20296 cat >>confdefs.h <<\_ACEOF
20297 #define HAVE_RES_INIT 1
20298 _ACEOF
20302 # Do we need the Hesiod library to provide the support routines?
20303 if test "$with_hesiod" = yes ; then
20304 # Don't set $LIBS here -- see comments above.
20305 { echo "$as_me:$LINENO: checking for res_send" >&5
20306 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
20307 if test "${ac_cv_func_res_send+set}" = set; then
20308 echo $ECHO_N "(cached) $ECHO_C" >&6
20309 else
20310 cat >conftest.$ac_ext <<_ACEOF
20311 /* confdefs.h. */
20312 _ACEOF
20313 cat confdefs.h >>conftest.$ac_ext
20314 cat >>conftest.$ac_ext <<_ACEOF
20315 /* end confdefs.h. */
20316 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
20317 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20318 #define res_send innocuous_res_send
20320 /* System header to define __stub macros and hopefully few prototypes,
20321 which can conflict with char res_send (); below.
20322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20323 <limits.h> exists even on freestanding compilers. */
20325 #ifdef __STDC__
20326 # include <limits.h>
20327 #else
20328 # include <assert.h>
20329 #endif
20331 #undef res_send
20333 /* Override any GCC internal prototype to avoid an error.
20334 Use char because int might match the return type of a GCC
20335 builtin and then its argument prototype would still apply. */
20336 #ifdef __cplusplus
20337 extern "C"
20338 #endif
20339 char res_send ();
20340 /* The GNU C library defines this for functions which it implements
20341 to always fail with ENOSYS. Some functions are actually named
20342 something starting with __ and the normal name is an alias. */
20343 #if defined __stub_res_send || defined __stub___res_send
20344 choke me
20345 #endif
20348 main ()
20350 return res_send ();
20352 return 0;
20354 _ACEOF
20355 rm -f conftest.$ac_objext conftest$ac_exeext
20356 if { (ac_try="$ac_link"
20357 case "(($ac_try" in
20358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20359 *) ac_try_echo=$ac_try;;
20360 esac
20361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20362 (eval "$ac_link") 2>conftest.er1
20363 ac_status=$?
20364 grep -v '^ *+' conftest.er1 >conftest.err
20365 rm -f conftest.er1
20366 cat conftest.err >&5
20367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368 (exit $ac_status); } && {
20369 test -z "$ac_c_werror_flag" ||
20370 test ! -s conftest.err
20371 } && test -s conftest$ac_exeext &&
20372 $as_test_x conftest$ac_exeext; then
20373 ac_cv_func_res_send=yes
20374 else
20375 echo "$as_me: failed program was:" >&5
20376 sed 's/^/| /' conftest.$ac_ext >&5
20378 ac_cv_func_res_send=no
20381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20382 conftest$ac_exeext conftest.$ac_ext
20384 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
20385 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
20386 if test $ac_cv_func_res_send = yes; then
20388 else
20389 { echo "$as_me:$LINENO: checking for __res_send" >&5
20390 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
20391 if test "${ac_cv_func___res_send+set}" = set; then
20392 echo $ECHO_N "(cached) $ECHO_C" >&6
20393 else
20394 cat >conftest.$ac_ext <<_ACEOF
20395 /* confdefs.h. */
20396 _ACEOF
20397 cat confdefs.h >>conftest.$ac_ext
20398 cat >>conftest.$ac_ext <<_ACEOF
20399 /* end confdefs.h. */
20400 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
20401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20402 #define __res_send innocuous___res_send
20404 /* System header to define __stub macros and hopefully few prototypes,
20405 which can conflict with char __res_send (); below.
20406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20407 <limits.h> exists even on freestanding compilers. */
20409 #ifdef __STDC__
20410 # include <limits.h>
20411 #else
20412 # include <assert.h>
20413 #endif
20415 #undef __res_send
20417 /* Override any GCC internal prototype to avoid an error.
20418 Use char because int might match the return type of a GCC
20419 builtin and then its argument prototype would still apply. */
20420 #ifdef __cplusplus
20421 extern "C"
20422 #endif
20423 char __res_send ();
20424 /* The GNU C library defines this for functions which it implements
20425 to always fail with ENOSYS. Some functions are actually named
20426 something starting with __ and the normal name is an alias. */
20427 #if defined __stub___res_send || defined __stub_____res_send
20428 choke me
20429 #endif
20432 main ()
20434 return __res_send ();
20436 return 0;
20438 _ACEOF
20439 rm -f conftest.$ac_objext conftest$ac_exeext
20440 if { (ac_try="$ac_link"
20441 case "(($ac_try" in
20442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20443 *) ac_try_echo=$ac_try;;
20444 esac
20445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20446 (eval "$ac_link") 2>conftest.er1
20447 ac_status=$?
20448 grep -v '^ *+' conftest.er1 >conftest.err
20449 rm -f conftest.er1
20450 cat conftest.err >&5
20451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452 (exit $ac_status); } && {
20453 test -z "$ac_c_werror_flag" ||
20454 test ! -s conftest.err
20455 } && test -s conftest$ac_exeext &&
20456 $as_test_x conftest$ac_exeext; then
20457 ac_cv_func___res_send=yes
20458 else
20459 echo "$as_me: failed program was:" >&5
20460 sed 's/^/| /' conftest.$ac_ext >&5
20462 ac_cv_func___res_send=no
20465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20466 conftest$ac_exeext conftest.$ac_ext
20468 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
20469 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
20470 if test $ac_cv_func___res_send = yes; then
20472 else
20473 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
20474 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
20475 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20476 echo $ECHO_N "(cached) $ECHO_C" >&6
20477 else
20478 ac_check_lib_save_LIBS=$LIBS
20479 LIBS="-lresolv $LIBS"
20480 cat >conftest.$ac_ext <<_ACEOF
20481 /* confdefs.h. */
20482 _ACEOF
20483 cat confdefs.h >>conftest.$ac_ext
20484 cat >>conftest.$ac_ext <<_ACEOF
20485 /* end confdefs.h. */
20487 /* Override any GCC internal prototype to avoid an error.
20488 Use char because int might match the return type of a GCC
20489 builtin and then its argument prototype would still apply. */
20490 #ifdef __cplusplus
20491 extern "C"
20492 #endif
20493 char res_send ();
20495 main ()
20497 return res_send ();
20499 return 0;
20501 _ACEOF
20502 rm -f conftest.$ac_objext conftest$ac_exeext
20503 if { (ac_try="$ac_link"
20504 case "(($ac_try" in
20505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20506 *) ac_try_echo=$ac_try;;
20507 esac
20508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20509 (eval "$ac_link") 2>conftest.er1
20510 ac_status=$?
20511 grep -v '^ *+' conftest.er1 >conftest.err
20512 rm -f conftest.er1
20513 cat conftest.err >&5
20514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20515 (exit $ac_status); } && {
20516 test -z "$ac_c_werror_flag" ||
20517 test ! -s conftest.err
20518 } && test -s conftest$ac_exeext &&
20519 $as_test_x conftest$ac_exeext; then
20520 ac_cv_lib_resolv_res_send=yes
20521 else
20522 echo "$as_me: failed program was:" >&5
20523 sed 's/^/| /' conftest.$ac_ext >&5
20525 ac_cv_lib_resolv_res_send=no
20528 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20529 conftest$ac_exeext conftest.$ac_ext
20530 LIBS=$ac_check_lib_save_LIBS
20532 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
20533 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20534 if test $ac_cv_lib_resolv_res_send = yes; then
20535 resolv=yes
20536 else
20537 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
20538 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
20539 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20540 echo $ECHO_N "(cached) $ECHO_C" >&6
20541 else
20542 ac_check_lib_save_LIBS=$LIBS
20543 LIBS="-lresolv $LIBS"
20544 cat >conftest.$ac_ext <<_ACEOF
20545 /* confdefs.h. */
20546 _ACEOF
20547 cat confdefs.h >>conftest.$ac_ext
20548 cat >>conftest.$ac_ext <<_ACEOF
20549 /* end confdefs.h. */
20551 /* Override any GCC internal prototype to avoid an error.
20552 Use char because int might match the return type of a GCC
20553 builtin and then its argument prototype would still apply. */
20554 #ifdef __cplusplus
20555 extern "C"
20556 #endif
20557 char __res_send ();
20559 main ()
20561 return __res_send ();
20563 return 0;
20565 _ACEOF
20566 rm -f conftest.$ac_objext conftest$ac_exeext
20567 if { (ac_try="$ac_link"
20568 case "(($ac_try" in
20569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20570 *) ac_try_echo=$ac_try;;
20571 esac
20572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20573 (eval "$ac_link") 2>conftest.er1
20574 ac_status=$?
20575 grep -v '^ *+' conftest.er1 >conftest.err
20576 rm -f conftest.er1
20577 cat conftest.err >&5
20578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20579 (exit $ac_status); } && {
20580 test -z "$ac_c_werror_flag" ||
20581 test ! -s conftest.err
20582 } && test -s conftest$ac_exeext &&
20583 $as_test_x conftest$ac_exeext; then
20584 ac_cv_lib_resolv___res_send=yes
20585 else
20586 echo "$as_me: failed program was:" >&5
20587 sed 's/^/| /' conftest.$ac_ext >&5
20589 ac_cv_lib_resolv___res_send=no
20592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20593 conftest$ac_exeext conftest.$ac_ext
20594 LIBS=$ac_check_lib_save_LIBS
20596 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
20597 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20598 if test $ac_cv_lib_resolv___res_send = yes; then
20599 resolv=yes
20608 if test "$resolv" = yes ; then
20609 RESOLVLIB=-lresolv
20610 else
20611 RESOLVLIB=
20613 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
20614 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
20615 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20616 echo $ECHO_N "(cached) $ECHO_C" >&6
20617 else
20618 cat >conftest.$ac_ext <<_ACEOF
20619 /* confdefs.h. */
20620 _ACEOF
20621 cat confdefs.h >>conftest.$ac_ext
20622 cat >>conftest.$ac_ext <<_ACEOF
20623 /* end confdefs.h. */
20624 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20625 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20626 #define hes_getmailhost innocuous_hes_getmailhost
20628 /* System header to define __stub macros and hopefully few prototypes,
20629 which can conflict with char hes_getmailhost (); below.
20630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20631 <limits.h> exists even on freestanding compilers. */
20633 #ifdef __STDC__
20634 # include <limits.h>
20635 #else
20636 # include <assert.h>
20637 #endif
20639 #undef hes_getmailhost
20641 /* Override any GCC internal prototype to avoid an error.
20642 Use char because int might match the return type of a GCC
20643 builtin and then its argument prototype would still apply. */
20644 #ifdef __cplusplus
20645 extern "C"
20646 #endif
20647 char hes_getmailhost ();
20648 /* The GNU C library defines this for functions which it implements
20649 to always fail with ENOSYS. Some functions are actually named
20650 something starting with __ and the normal name is an alias. */
20651 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20652 choke me
20653 #endif
20656 main ()
20658 return hes_getmailhost ();
20660 return 0;
20662 _ACEOF
20663 rm -f conftest.$ac_objext conftest$ac_exeext
20664 if { (ac_try="$ac_link"
20665 case "(($ac_try" in
20666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20667 *) ac_try_echo=$ac_try;;
20668 esac
20669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20670 (eval "$ac_link") 2>conftest.er1
20671 ac_status=$?
20672 grep -v '^ *+' conftest.er1 >conftest.err
20673 rm -f conftest.er1
20674 cat conftest.err >&5
20675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676 (exit $ac_status); } && {
20677 test -z "$ac_c_werror_flag" ||
20678 test ! -s conftest.err
20679 } && test -s conftest$ac_exeext &&
20680 $as_test_x conftest$ac_exeext; then
20681 ac_cv_func_hes_getmailhost=yes
20682 else
20683 echo "$as_me: failed program was:" >&5
20684 sed 's/^/| /' conftest.$ac_ext >&5
20686 ac_cv_func_hes_getmailhost=no
20689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20690 conftest$ac_exeext conftest.$ac_ext
20692 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
20693 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20694 if test $ac_cv_func_hes_getmailhost = yes; then
20696 else
20697 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
20698 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
20699 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20700 echo $ECHO_N "(cached) $ECHO_C" >&6
20701 else
20702 ac_check_lib_save_LIBS=$LIBS
20703 LIBS="-lhesiod $RESOLVLIB $LIBS"
20704 cat >conftest.$ac_ext <<_ACEOF
20705 /* confdefs.h. */
20706 _ACEOF
20707 cat confdefs.h >>conftest.$ac_ext
20708 cat >>conftest.$ac_ext <<_ACEOF
20709 /* end confdefs.h. */
20711 /* Override any GCC internal prototype to avoid an error.
20712 Use char because int might match the return type of a GCC
20713 builtin and then its argument prototype would still apply. */
20714 #ifdef __cplusplus
20715 extern "C"
20716 #endif
20717 char hes_getmailhost ();
20719 main ()
20721 return hes_getmailhost ();
20723 return 0;
20725 _ACEOF
20726 rm -f conftest.$ac_objext conftest$ac_exeext
20727 if { (ac_try="$ac_link"
20728 case "(($ac_try" in
20729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20730 *) ac_try_echo=$ac_try;;
20731 esac
20732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20733 (eval "$ac_link") 2>conftest.er1
20734 ac_status=$?
20735 grep -v '^ *+' conftest.er1 >conftest.err
20736 rm -f conftest.er1
20737 cat conftest.err >&5
20738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739 (exit $ac_status); } && {
20740 test -z "$ac_c_werror_flag" ||
20741 test ! -s conftest.err
20742 } && test -s conftest$ac_exeext &&
20743 $as_test_x conftest$ac_exeext; then
20744 ac_cv_lib_hesiod_hes_getmailhost=yes
20745 else
20746 echo "$as_me: failed program was:" >&5
20747 sed 's/^/| /' conftest.$ac_ext >&5
20749 ac_cv_lib_hesiod_hes_getmailhost=no
20752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20753 conftest$ac_exeext conftest.$ac_ext
20754 LIBS=$ac_check_lib_save_LIBS
20756 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20757 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20758 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20760 cat >>confdefs.h <<\_ACEOF
20761 #define HAVE_LIBHESIOD 1
20762 _ACEOF
20764 else
20772 # Do we need libresolv (due to res_init or Hesiod)?
20773 if test "$resolv" = yes ; then
20775 cat >>confdefs.h <<\_ACEOF
20776 #define HAVE_LIBRESOLV 1
20777 _ACEOF
20781 # These tell us which Kerberos-related libraries to use.
20782 if test "${with_kerberos+set}" = set; then
20784 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
20785 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
20786 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20787 echo $ECHO_N "(cached) $ECHO_C" >&6
20788 else
20789 ac_check_lib_save_LIBS=$LIBS
20790 LIBS="-lcom_err $LIBS"
20791 cat >conftest.$ac_ext <<_ACEOF
20792 /* confdefs.h. */
20793 _ACEOF
20794 cat confdefs.h >>conftest.$ac_ext
20795 cat >>conftest.$ac_ext <<_ACEOF
20796 /* end confdefs.h. */
20798 /* Override any GCC internal prototype to avoid an error.
20799 Use char because int might match the return type of a GCC
20800 builtin and then its argument prototype would still apply. */
20801 #ifdef __cplusplus
20802 extern "C"
20803 #endif
20804 char com_err ();
20806 main ()
20808 return com_err ();
20810 return 0;
20812 _ACEOF
20813 rm -f conftest.$ac_objext conftest$ac_exeext
20814 if { (ac_try="$ac_link"
20815 case "(($ac_try" in
20816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20817 *) ac_try_echo=$ac_try;;
20818 esac
20819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20820 (eval "$ac_link") 2>conftest.er1
20821 ac_status=$?
20822 grep -v '^ *+' conftest.er1 >conftest.err
20823 rm -f conftest.er1
20824 cat conftest.err >&5
20825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20826 (exit $ac_status); } && {
20827 test -z "$ac_c_werror_flag" ||
20828 test ! -s conftest.err
20829 } && test -s conftest$ac_exeext &&
20830 $as_test_x conftest$ac_exeext; then
20831 ac_cv_lib_com_err_com_err=yes
20832 else
20833 echo "$as_me: failed program was:" >&5
20834 sed 's/^/| /' conftest.$ac_ext >&5
20836 ac_cv_lib_com_err_com_err=no
20839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20840 conftest$ac_exeext conftest.$ac_ext
20841 LIBS=$ac_check_lib_save_LIBS
20843 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
20844 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20845 if test $ac_cv_lib_com_err_com_err = yes; then
20846 cat >>confdefs.h <<_ACEOF
20847 #define HAVE_LIBCOM_ERR 1
20848 _ACEOF
20850 LIBS="-lcom_err $LIBS"
20855 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
20856 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
20857 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20858 echo $ECHO_N "(cached) $ECHO_C" >&6
20859 else
20860 ac_check_lib_save_LIBS=$LIBS
20861 LIBS="-lk5crypto $LIBS"
20862 cat >conftest.$ac_ext <<_ACEOF
20863 /* confdefs.h. */
20864 _ACEOF
20865 cat confdefs.h >>conftest.$ac_ext
20866 cat >>conftest.$ac_ext <<_ACEOF
20867 /* end confdefs.h. */
20869 /* Override any GCC internal prototype to avoid an error.
20870 Use char because int might match the return type of a GCC
20871 builtin and then its argument prototype would still apply. */
20872 #ifdef __cplusplus
20873 extern "C"
20874 #endif
20875 char mit_des_cbc_encrypt ();
20877 main ()
20879 return mit_des_cbc_encrypt ();
20881 return 0;
20883 _ACEOF
20884 rm -f conftest.$ac_objext conftest$ac_exeext
20885 if { (ac_try="$ac_link"
20886 case "(($ac_try" in
20887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20888 *) ac_try_echo=$ac_try;;
20889 esac
20890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20891 (eval "$ac_link") 2>conftest.er1
20892 ac_status=$?
20893 grep -v '^ *+' conftest.er1 >conftest.err
20894 rm -f conftest.er1
20895 cat conftest.err >&5
20896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20897 (exit $ac_status); } && {
20898 test -z "$ac_c_werror_flag" ||
20899 test ! -s conftest.err
20900 } && test -s conftest$ac_exeext &&
20901 $as_test_x conftest$ac_exeext; then
20902 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20903 else
20904 echo "$as_me: failed program was:" >&5
20905 sed 's/^/| /' conftest.$ac_ext >&5
20907 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20911 conftest$ac_exeext conftest.$ac_ext
20912 LIBS=$ac_check_lib_save_LIBS
20914 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20915 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20916 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20917 cat >>confdefs.h <<_ACEOF
20918 #define HAVE_LIBK5CRYPTO 1
20919 _ACEOF
20921 LIBS="-lk5crypto $LIBS"
20926 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
20927 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
20928 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20929 echo $ECHO_N "(cached) $ECHO_C" >&6
20930 else
20931 ac_check_lib_save_LIBS=$LIBS
20932 LIBS="-lcrypto $LIBS"
20933 cat >conftest.$ac_ext <<_ACEOF
20934 /* confdefs.h. */
20935 _ACEOF
20936 cat confdefs.h >>conftest.$ac_ext
20937 cat >>conftest.$ac_ext <<_ACEOF
20938 /* end confdefs.h. */
20940 /* Override any GCC internal prototype to avoid an error.
20941 Use char because int might match the return type of a GCC
20942 builtin and then its argument prototype would still apply. */
20943 #ifdef __cplusplus
20944 extern "C"
20945 #endif
20946 char mit_des_cbc_encrypt ();
20948 main ()
20950 return mit_des_cbc_encrypt ();
20952 return 0;
20954 _ACEOF
20955 rm -f conftest.$ac_objext conftest$ac_exeext
20956 if { (ac_try="$ac_link"
20957 case "(($ac_try" in
20958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20959 *) ac_try_echo=$ac_try;;
20960 esac
20961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20962 (eval "$ac_link") 2>conftest.er1
20963 ac_status=$?
20964 grep -v '^ *+' conftest.er1 >conftest.err
20965 rm -f conftest.er1
20966 cat conftest.err >&5
20967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20968 (exit $ac_status); } && {
20969 test -z "$ac_c_werror_flag" ||
20970 test ! -s conftest.err
20971 } && test -s conftest$ac_exeext &&
20972 $as_test_x conftest$ac_exeext; then
20973 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20974 else
20975 echo "$as_me: failed program was:" >&5
20976 sed 's/^/| /' conftest.$ac_ext >&5
20978 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20982 conftest$ac_exeext conftest.$ac_ext
20983 LIBS=$ac_check_lib_save_LIBS
20985 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20986 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20987 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20988 cat >>confdefs.h <<_ACEOF
20989 #define HAVE_LIBCRYPTO 1
20990 _ACEOF
20992 LIBS="-lcrypto $LIBS"
20997 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20998 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20999 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
21000 echo $ECHO_N "(cached) $ECHO_C" >&6
21001 else
21002 ac_check_lib_save_LIBS=$LIBS
21003 LIBS="-lkrb5 $LIBS"
21004 cat >conftest.$ac_ext <<_ACEOF
21005 /* confdefs.h. */
21006 _ACEOF
21007 cat confdefs.h >>conftest.$ac_ext
21008 cat >>conftest.$ac_ext <<_ACEOF
21009 /* end confdefs.h. */
21011 /* Override any GCC internal prototype to avoid an error.
21012 Use char because int might match the return type of a GCC
21013 builtin and then its argument prototype would still apply. */
21014 #ifdef __cplusplus
21015 extern "C"
21016 #endif
21017 char krb5_init_context ();
21019 main ()
21021 return krb5_init_context ();
21023 return 0;
21025 _ACEOF
21026 rm -f conftest.$ac_objext conftest$ac_exeext
21027 if { (ac_try="$ac_link"
21028 case "(($ac_try" in
21029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21030 *) ac_try_echo=$ac_try;;
21031 esac
21032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21033 (eval "$ac_link") 2>conftest.er1
21034 ac_status=$?
21035 grep -v '^ *+' conftest.er1 >conftest.err
21036 rm -f conftest.er1
21037 cat conftest.err >&5
21038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21039 (exit $ac_status); } && {
21040 test -z "$ac_c_werror_flag" ||
21041 test ! -s conftest.err
21042 } && test -s conftest$ac_exeext &&
21043 $as_test_x conftest$ac_exeext; then
21044 ac_cv_lib_krb5_krb5_init_context=yes
21045 else
21046 echo "$as_me: failed program was:" >&5
21047 sed 's/^/| /' conftest.$ac_ext >&5
21049 ac_cv_lib_krb5_krb5_init_context=no
21052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21053 conftest$ac_exeext conftest.$ac_ext
21054 LIBS=$ac_check_lib_save_LIBS
21056 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
21057 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
21058 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
21059 cat >>confdefs.h <<_ACEOF
21060 #define HAVE_LIBKRB5 1
21061 _ACEOF
21063 LIBS="-lkrb5 $LIBS"
21067 if test "${with_kerberos5+set}" != set; then
21069 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
21070 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
21071 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
21072 echo $ECHO_N "(cached) $ECHO_C" >&6
21073 else
21074 ac_check_lib_save_LIBS=$LIBS
21075 LIBS="-ldes425 $LIBS"
21076 cat >conftest.$ac_ext <<_ACEOF
21077 /* confdefs.h. */
21078 _ACEOF
21079 cat confdefs.h >>conftest.$ac_ext
21080 cat >>conftest.$ac_ext <<_ACEOF
21081 /* end confdefs.h. */
21083 /* Override any GCC internal prototype to avoid an error.
21084 Use char because int might match the return type of a GCC
21085 builtin and then its argument prototype would still apply. */
21086 #ifdef __cplusplus
21087 extern "C"
21088 #endif
21089 char des_cbc_encrypt ();
21091 main ()
21093 return des_cbc_encrypt ();
21095 return 0;
21097 _ACEOF
21098 rm -f conftest.$ac_objext conftest$ac_exeext
21099 if { (ac_try="$ac_link"
21100 case "(($ac_try" in
21101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21102 *) ac_try_echo=$ac_try;;
21103 esac
21104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21105 (eval "$ac_link") 2>conftest.er1
21106 ac_status=$?
21107 grep -v '^ *+' conftest.er1 >conftest.err
21108 rm -f conftest.er1
21109 cat conftest.err >&5
21110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21111 (exit $ac_status); } && {
21112 test -z "$ac_c_werror_flag" ||
21113 test ! -s conftest.err
21114 } && test -s conftest$ac_exeext &&
21115 $as_test_x conftest$ac_exeext; then
21116 ac_cv_lib_des425_des_cbc_encrypt=yes
21117 else
21118 echo "$as_me: failed program was:" >&5
21119 sed 's/^/| /' conftest.$ac_ext >&5
21121 ac_cv_lib_des425_des_cbc_encrypt=no
21124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21125 conftest$ac_exeext conftest.$ac_ext
21126 LIBS=$ac_check_lib_save_LIBS
21128 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
21129 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
21130 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
21131 cat >>confdefs.h <<_ACEOF
21132 #define HAVE_LIBDES425 1
21133 _ACEOF
21135 LIBS="-ldes425 $LIBS"
21137 else
21139 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
21140 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
21141 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
21142 echo $ECHO_N "(cached) $ECHO_C" >&6
21143 else
21144 ac_check_lib_save_LIBS=$LIBS
21145 LIBS="-ldes $LIBS"
21146 cat >conftest.$ac_ext <<_ACEOF
21147 /* confdefs.h. */
21148 _ACEOF
21149 cat confdefs.h >>conftest.$ac_ext
21150 cat >>conftest.$ac_ext <<_ACEOF
21151 /* end confdefs.h. */
21153 /* Override any GCC internal prototype to avoid an error.
21154 Use char because int might match the return type of a GCC
21155 builtin and then its argument prototype would still apply. */
21156 #ifdef __cplusplus
21157 extern "C"
21158 #endif
21159 char des_cbc_encrypt ();
21161 main ()
21163 return des_cbc_encrypt ();
21165 return 0;
21167 _ACEOF
21168 rm -f conftest.$ac_objext conftest$ac_exeext
21169 if { (ac_try="$ac_link"
21170 case "(($ac_try" in
21171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21172 *) ac_try_echo=$ac_try;;
21173 esac
21174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21175 (eval "$ac_link") 2>conftest.er1
21176 ac_status=$?
21177 grep -v '^ *+' conftest.er1 >conftest.err
21178 rm -f conftest.er1
21179 cat conftest.err >&5
21180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181 (exit $ac_status); } && {
21182 test -z "$ac_c_werror_flag" ||
21183 test ! -s conftest.err
21184 } && test -s conftest$ac_exeext &&
21185 $as_test_x conftest$ac_exeext; then
21186 ac_cv_lib_des_des_cbc_encrypt=yes
21187 else
21188 echo "$as_me: failed program was:" >&5
21189 sed 's/^/| /' conftest.$ac_ext >&5
21191 ac_cv_lib_des_des_cbc_encrypt=no
21194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21195 conftest$ac_exeext conftest.$ac_ext
21196 LIBS=$ac_check_lib_save_LIBS
21198 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
21199 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
21200 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
21201 cat >>confdefs.h <<_ACEOF
21202 #define HAVE_LIBDES 1
21203 _ACEOF
21205 LIBS="-ldes $LIBS"
21212 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
21213 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
21214 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
21215 echo $ECHO_N "(cached) $ECHO_C" >&6
21216 else
21217 ac_check_lib_save_LIBS=$LIBS
21218 LIBS="-lkrb4 $LIBS"
21219 cat >conftest.$ac_ext <<_ACEOF
21220 /* confdefs.h. */
21221 _ACEOF
21222 cat confdefs.h >>conftest.$ac_ext
21223 cat >>conftest.$ac_ext <<_ACEOF
21224 /* end confdefs.h. */
21226 /* Override any GCC internal prototype to avoid an error.
21227 Use char because int might match the return type of a GCC
21228 builtin and then its argument prototype would still apply. */
21229 #ifdef __cplusplus
21230 extern "C"
21231 #endif
21232 char krb_get_cred ();
21234 main ()
21236 return krb_get_cred ();
21238 return 0;
21240 _ACEOF
21241 rm -f conftest.$ac_objext conftest$ac_exeext
21242 if { (ac_try="$ac_link"
21243 case "(($ac_try" in
21244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21245 *) ac_try_echo=$ac_try;;
21246 esac
21247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21248 (eval "$ac_link") 2>conftest.er1
21249 ac_status=$?
21250 grep -v '^ *+' conftest.er1 >conftest.err
21251 rm -f conftest.er1
21252 cat conftest.err >&5
21253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21254 (exit $ac_status); } && {
21255 test -z "$ac_c_werror_flag" ||
21256 test ! -s conftest.err
21257 } && test -s conftest$ac_exeext &&
21258 $as_test_x conftest$ac_exeext; then
21259 ac_cv_lib_krb4_krb_get_cred=yes
21260 else
21261 echo "$as_me: failed program was:" >&5
21262 sed 's/^/| /' conftest.$ac_ext >&5
21264 ac_cv_lib_krb4_krb_get_cred=no
21267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21268 conftest$ac_exeext conftest.$ac_ext
21269 LIBS=$ac_check_lib_save_LIBS
21271 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
21272 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
21273 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
21274 cat >>confdefs.h <<_ACEOF
21275 #define HAVE_LIBKRB4 1
21276 _ACEOF
21278 LIBS="-lkrb4 $LIBS"
21280 else
21282 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
21283 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
21284 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
21285 echo $ECHO_N "(cached) $ECHO_C" >&6
21286 else
21287 ac_check_lib_save_LIBS=$LIBS
21288 LIBS="-lkrb $LIBS"
21289 cat >conftest.$ac_ext <<_ACEOF
21290 /* confdefs.h. */
21291 _ACEOF
21292 cat confdefs.h >>conftest.$ac_ext
21293 cat >>conftest.$ac_ext <<_ACEOF
21294 /* end confdefs.h. */
21296 /* Override any GCC internal prototype to avoid an error.
21297 Use char because int might match the return type of a GCC
21298 builtin and then its argument prototype would still apply. */
21299 #ifdef __cplusplus
21300 extern "C"
21301 #endif
21302 char krb_get_cred ();
21304 main ()
21306 return krb_get_cred ();
21308 return 0;
21310 _ACEOF
21311 rm -f conftest.$ac_objext conftest$ac_exeext
21312 if { (ac_try="$ac_link"
21313 case "(($ac_try" in
21314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21315 *) ac_try_echo=$ac_try;;
21316 esac
21317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21318 (eval "$ac_link") 2>conftest.er1
21319 ac_status=$?
21320 grep -v '^ *+' conftest.er1 >conftest.err
21321 rm -f conftest.er1
21322 cat conftest.err >&5
21323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21324 (exit $ac_status); } && {
21325 test -z "$ac_c_werror_flag" ||
21326 test ! -s conftest.err
21327 } && test -s conftest$ac_exeext &&
21328 $as_test_x conftest$ac_exeext; then
21329 ac_cv_lib_krb_krb_get_cred=yes
21330 else
21331 echo "$as_me: failed program was:" >&5
21332 sed 's/^/| /' conftest.$ac_ext >&5
21334 ac_cv_lib_krb_krb_get_cred=no
21337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21338 conftest$ac_exeext conftest.$ac_ext
21339 LIBS=$ac_check_lib_save_LIBS
21341 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
21342 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
21343 if test $ac_cv_lib_krb_krb_get_cred = yes; then
21344 cat >>confdefs.h <<_ACEOF
21345 #define HAVE_LIBKRB 1
21346 _ACEOF
21348 LIBS="-lkrb $LIBS"
21356 if test "${with_kerberos5+set}" = set; then
21358 for ac_header in krb5.h
21360 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21362 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21365 echo $ECHO_N "(cached) $ECHO_C" >&6
21367 ac_res=`eval echo '${'$as_ac_Header'}'`
21368 { echo "$as_me:$LINENO: result: $ac_res" >&5
21369 echo "${ECHO_T}$ac_res" >&6; }
21370 else
21371 # Is the header compilable?
21372 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21373 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21374 cat >conftest.$ac_ext <<_ACEOF
21375 /* confdefs.h. */
21376 _ACEOF
21377 cat confdefs.h >>conftest.$ac_ext
21378 cat >>conftest.$ac_ext <<_ACEOF
21379 /* end confdefs.h. */
21380 $ac_includes_default
21381 #include <$ac_header>
21382 _ACEOF
21383 rm -f conftest.$ac_objext
21384 if { (ac_try="$ac_compile"
21385 case "(($ac_try" in
21386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21387 *) ac_try_echo=$ac_try;;
21388 esac
21389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21390 (eval "$ac_compile") 2>conftest.er1
21391 ac_status=$?
21392 grep -v '^ *+' conftest.er1 >conftest.err
21393 rm -f conftest.er1
21394 cat conftest.err >&5
21395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21396 (exit $ac_status); } && {
21397 test -z "$ac_c_werror_flag" ||
21398 test ! -s conftest.err
21399 } && test -s conftest.$ac_objext; then
21400 ac_header_compiler=yes
21401 else
21402 echo "$as_me: failed program was:" >&5
21403 sed 's/^/| /' conftest.$ac_ext >&5
21405 ac_header_compiler=no
21408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21409 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21410 echo "${ECHO_T}$ac_header_compiler" >&6; }
21412 # Is the header present?
21413 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21414 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21415 cat >conftest.$ac_ext <<_ACEOF
21416 /* confdefs.h. */
21417 _ACEOF
21418 cat confdefs.h >>conftest.$ac_ext
21419 cat >>conftest.$ac_ext <<_ACEOF
21420 /* end confdefs.h. */
21421 #include <$ac_header>
21422 _ACEOF
21423 if { (ac_try="$ac_cpp conftest.$ac_ext"
21424 case "(($ac_try" in
21425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21426 *) ac_try_echo=$ac_try;;
21427 esac
21428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21429 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21430 ac_status=$?
21431 grep -v '^ *+' conftest.er1 >conftest.err
21432 rm -f conftest.er1
21433 cat conftest.err >&5
21434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21435 (exit $ac_status); } >/dev/null && {
21436 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21437 test ! -s conftest.err
21438 }; then
21439 ac_header_preproc=yes
21440 else
21441 echo "$as_me: failed program was:" >&5
21442 sed 's/^/| /' conftest.$ac_ext >&5
21444 ac_header_preproc=no
21447 rm -f conftest.err conftest.$ac_ext
21448 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21449 echo "${ECHO_T}$ac_header_preproc" >&6; }
21451 # So? What about this header?
21452 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21453 yes:no: )
21454 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21455 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21457 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21458 ac_header_preproc=yes
21460 no:yes:* )
21461 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21462 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21463 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21464 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21465 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21466 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21467 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21468 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21470 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21471 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21472 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21475 esac
21476 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21479 echo $ECHO_N "(cached) $ECHO_C" >&6
21480 else
21481 eval "$as_ac_Header=\$ac_header_preproc"
21483 ac_res=`eval echo '${'$as_ac_Header'}'`
21484 { echo "$as_me:$LINENO: result: $ac_res" >&5
21485 echo "${ECHO_T}$ac_res" >&6; }
21488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21489 cat >>confdefs.h <<_ACEOF
21490 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21491 _ACEOF
21495 done
21497 else
21499 for ac_header in des.h
21501 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21503 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21506 echo $ECHO_N "(cached) $ECHO_C" >&6
21508 ac_res=`eval echo '${'$as_ac_Header'}'`
21509 { echo "$as_me:$LINENO: result: $ac_res" >&5
21510 echo "${ECHO_T}$ac_res" >&6; }
21511 else
21512 # Is the header compilable?
21513 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21514 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21515 cat >conftest.$ac_ext <<_ACEOF
21516 /* confdefs.h. */
21517 _ACEOF
21518 cat confdefs.h >>conftest.$ac_ext
21519 cat >>conftest.$ac_ext <<_ACEOF
21520 /* end confdefs.h. */
21521 $ac_includes_default
21522 #include <$ac_header>
21523 _ACEOF
21524 rm -f conftest.$ac_objext
21525 if { (ac_try="$ac_compile"
21526 case "(($ac_try" in
21527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21528 *) ac_try_echo=$ac_try;;
21529 esac
21530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21531 (eval "$ac_compile") 2>conftest.er1
21532 ac_status=$?
21533 grep -v '^ *+' conftest.er1 >conftest.err
21534 rm -f conftest.er1
21535 cat conftest.err >&5
21536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537 (exit $ac_status); } && {
21538 test -z "$ac_c_werror_flag" ||
21539 test ! -s conftest.err
21540 } && test -s conftest.$ac_objext; then
21541 ac_header_compiler=yes
21542 else
21543 echo "$as_me: failed program was:" >&5
21544 sed 's/^/| /' conftest.$ac_ext >&5
21546 ac_header_compiler=no
21549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21550 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21551 echo "${ECHO_T}$ac_header_compiler" >&6; }
21553 # Is the header present?
21554 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21555 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21556 cat >conftest.$ac_ext <<_ACEOF
21557 /* confdefs.h. */
21558 _ACEOF
21559 cat confdefs.h >>conftest.$ac_ext
21560 cat >>conftest.$ac_ext <<_ACEOF
21561 /* end confdefs.h. */
21562 #include <$ac_header>
21563 _ACEOF
21564 if { (ac_try="$ac_cpp conftest.$ac_ext"
21565 case "(($ac_try" in
21566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21567 *) ac_try_echo=$ac_try;;
21568 esac
21569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21570 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21571 ac_status=$?
21572 grep -v '^ *+' conftest.er1 >conftest.err
21573 rm -f conftest.er1
21574 cat conftest.err >&5
21575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21576 (exit $ac_status); } >/dev/null && {
21577 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21578 test ! -s conftest.err
21579 }; then
21580 ac_header_preproc=yes
21581 else
21582 echo "$as_me: failed program was:" >&5
21583 sed 's/^/| /' conftest.$ac_ext >&5
21585 ac_header_preproc=no
21588 rm -f conftest.err conftest.$ac_ext
21589 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21590 echo "${ECHO_T}$ac_header_preproc" >&6; }
21592 # So? What about this header?
21593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21594 yes:no: )
21595 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21596 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21598 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21599 ac_header_preproc=yes
21601 no:yes:* )
21602 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21603 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21604 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21605 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21606 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21607 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21608 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21609 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21611 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21612 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21613 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21616 esac
21617 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21620 echo $ECHO_N "(cached) $ECHO_C" >&6
21621 else
21622 eval "$as_ac_Header=\$ac_header_preproc"
21624 ac_res=`eval echo '${'$as_ac_Header'}'`
21625 { echo "$as_me:$LINENO: result: $ac_res" >&5
21626 echo "${ECHO_T}$ac_res" >&6; }
21629 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21630 cat >>confdefs.h <<_ACEOF
21631 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21632 _ACEOF
21634 else
21636 for ac_header in kerberosIV/des.h
21638 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21639 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21640 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21643 echo $ECHO_N "(cached) $ECHO_C" >&6
21645 ac_res=`eval echo '${'$as_ac_Header'}'`
21646 { echo "$as_me:$LINENO: result: $ac_res" >&5
21647 echo "${ECHO_T}$ac_res" >&6; }
21648 else
21649 # Is the header compilable?
21650 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21651 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21652 cat >conftest.$ac_ext <<_ACEOF
21653 /* confdefs.h. */
21654 _ACEOF
21655 cat confdefs.h >>conftest.$ac_ext
21656 cat >>conftest.$ac_ext <<_ACEOF
21657 /* end confdefs.h. */
21658 $ac_includes_default
21659 #include <$ac_header>
21660 _ACEOF
21661 rm -f conftest.$ac_objext
21662 if { (ac_try="$ac_compile"
21663 case "(($ac_try" in
21664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21665 *) ac_try_echo=$ac_try;;
21666 esac
21667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21668 (eval "$ac_compile") 2>conftest.er1
21669 ac_status=$?
21670 grep -v '^ *+' conftest.er1 >conftest.err
21671 rm -f conftest.er1
21672 cat conftest.err >&5
21673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21674 (exit $ac_status); } && {
21675 test -z "$ac_c_werror_flag" ||
21676 test ! -s conftest.err
21677 } && test -s conftest.$ac_objext; then
21678 ac_header_compiler=yes
21679 else
21680 echo "$as_me: failed program was:" >&5
21681 sed 's/^/| /' conftest.$ac_ext >&5
21683 ac_header_compiler=no
21686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21687 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21688 echo "${ECHO_T}$ac_header_compiler" >&6; }
21690 # Is the header present?
21691 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21692 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21693 cat >conftest.$ac_ext <<_ACEOF
21694 /* confdefs.h. */
21695 _ACEOF
21696 cat confdefs.h >>conftest.$ac_ext
21697 cat >>conftest.$ac_ext <<_ACEOF
21698 /* end confdefs.h. */
21699 #include <$ac_header>
21700 _ACEOF
21701 if { (ac_try="$ac_cpp conftest.$ac_ext"
21702 case "(($ac_try" in
21703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21704 *) ac_try_echo=$ac_try;;
21705 esac
21706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21707 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21708 ac_status=$?
21709 grep -v '^ *+' conftest.er1 >conftest.err
21710 rm -f conftest.er1
21711 cat conftest.err >&5
21712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21713 (exit $ac_status); } >/dev/null && {
21714 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21715 test ! -s conftest.err
21716 }; then
21717 ac_header_preproc=yes
21718 else
21719 echo "$as_me: failed program was:" >&5
21720 sed 's/^/| /' conftest.$ac_ext >&5
21722 ac_header_preproc=no
21725 rm -f conftest.err conftest.$ac_ext
21726 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21727 echo "${ECHO_T}$ac_header_preproc" >&6; }
21729 # So? What about this header?
21730 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21731 yes:no: )
21732 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21733 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21734 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21735 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21736 ac_header_preproc=yes
21738 no:yes:* )
21739 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21740 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21741 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21742 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21743 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21744 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21745 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21746 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21748 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21749 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21750 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21753 esac
21754 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21757 echo $ECHO_N "(cached) $ECHO_C" >&6
21758 else
21759 eval "$as_ac_Header=\$ac_header_preproc"
21761 ac_res=`eval echo '${'$as_ac_Header'}'`
21762 { echo "$as_me:$LINENO: result: $ac_res" >&5
21763 echo "${ECHO_T}$ac_res" >&6; }
21766 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21767 cat >>confdefs.h <<_ACEOF
21768 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21769 _ACEOF
21771 else
21773 for ac_header in kerberos/des.h
21775 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21777 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21780 echo $ECHO_N "(cached) $ECHO_C" >&6
21782 ac_res=`eval echo '${'$as_ac_Header'}'`
21783 { echo "$as_me:$LINENO: result: $ac_res" >&5
21784 echo "${ECHO_T}$ac_res" >&6; }
21785 else
21786 # Is the header compilable?
21787 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21788 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21789 cat >conftest.$ac_ext <<_ACEOF
21790 /* confdefs.h. */
21791 _ACEOF
21792 cat confdefs.h >>conftest.$ac_ext
21793 cat >>conftest.$ac_ext <<_ACEOF
21794 /* end confdefs.h. */
21795 $ac_includes_default
21796 #include <$ac_header>
21797 _ACEOF
21798 rm -f conftest.$ac_objext
21799 if { (ac_try="$ac_compile"
21800 case "(($ac_try" in
21801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21802 *) ac_try_echo=$ac_try;;
21803 esac
21804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21805 (eval "$ac_compile") 2>conftest.er1
21806 ac_status=$?
21807 grep -v '^ *+' conftest.er1 >conftest.err
21808 rm -f conftest.er1
21809 cat conftest.err >&5
21810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21811 (exit $ac_status); } && {
21812 test -z "$ac_c_werror_flag" ||
21813 test ! -s conftest.err
21814 } && test -s conftest.$ac_objext; then
21815 ac_header_compiler=yes
21816 else
21817 echo "$as_me: failed program was:" >&5
21818 sed 's/^/| /' conftest.$ac_ext >&5
21820 ac_header_compiler=no
21823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21824 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21825 echo "${ECHO_T}$ac_header_compiler" >&6; }
21827 # Is the header present?
21828 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21829 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21830 cat >conftest.$ac_ext <<_ACEOF
21831 /* confdefs.h. */
21832 _ACEOF
21833 cat confdefs.h >>conftest.$ac_ext
21834 cat >>conftest.$ac_ext <<_ACEOF
21835 /* end confdefs.h. */
21836 #include <$ac_header>
21837 _ACEOF
21838 if { (ac_try="$ac_cpp conftest.$ac_ext"
21839 case "(($ac_try" in
21840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21841 *) ac_try_echo=$ac_try;;
21842 esac
21843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21845 ac_status=$?
21846 grep -v '^ *+' conftest.er1 >conftest.err
21847 rm -f conftest.er1
21848 cat conftest.err >&5
21849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21850 (exit $ac_status); } >/dev/null && {
21851 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21852 test ! -s conftest.err
21853 }; then
21854 ac_header_preproc=yes
21855 else
21856 echo "$as_me: failed program was:" >&5
21857 sed 's/^/| /' conftest.$ac_ext >&5
21859 ac_header_preproc=no
21862 rm -f conftest.err conftest.$ac_ext
21863 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21864 echo "${ECHO_T}$ac_header_preproc" >&6; }
21866 # So? What about this header?
21867 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21868 yes:no: )
21869 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21870 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21871 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21872 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21873 ac_header_preproc=yes
21875 no:yes:* )
21876 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21877 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21878 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21879 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21880 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21881 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21882 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21883 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21884 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21885 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21886 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21887 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21890 esac
21891 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21893 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21894 echo $ECHO_N "(cached) $ECHO_C" >&6
21895 else
21896 eval "$as_ac_Header=\$ac_header_preproc"
21898 ac_res=`eval echo '${'$as_ac_Header'}'`
21899 { echo "$as_me:$LINENO: result: $ac_res" >&5
21900 echo "${ECHO_T}$ac_res" >&6; }
21903 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21904 cat >>confdefs.h <<_ACEOF
21905 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21906 _ACEOF
21910 done
21914 done
21918 done
21921 for ac_header in krb.h
21923 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21924 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21925 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21928 echo $ECHO_N "(cached) $ECHO_C" >&6
21930 ac_res=`eval echo '${'$as_ac_Header'}'`
21931 { echo "$as_me:$LINENO: result: $ac_res" >&5
21932 echo "${ECHO_T}$ac_res" >&6; }
21933 else
21934 # Is the header compilable?
21935 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21936 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21937 cat >conftest.$ac_ext <<_ACEOF
21938 /* confdefs.h. */
21939 _ACEOF
21940 cat confdefs.h >>conftest.$ac_ext
21941 cat >>conftest.$ac_ext <<_ACEOF
21942 /* end confdefs.h. */
21943 $ac_includes_default
21944 #include <$ac_header>
21945 _ACEOF
21946 rm -f conftest.$ac_objext
21947 if { (ac_try="$ac_compile"
21948 case "(($ac_try" in
21949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21950 *) ac_try_echo=$ac_try;;
21951 esac
21952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21953 (eval "$ac_compile") 2>conftest.er1
21954 ac_status=$?
21955 grep -v '^ *+' conftest.er1 >conftest.err
21956 rm -f conftest.er1
21957 cat conftest.err >&5
21958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21959 (exit $ac_status); } && {
21960 test -z "$ac_c_werror_flag" ||
21961 test ! -s conftest.err
21962 } && test -s conftest.$ac_objext; then
21963 ac_header_compiler=yes
21964 else
21965 echo "$as_me: failed program was:" >&5
21966 sed 's/^/| /' conftest.$ac_ext >&5
21968 ac_header_compiler=no
21971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21972 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21973 echo "${ECHO_T}$ac_header_compiler" >&6; }
21975 # Is the header present?
21976 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21977 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21978 cat >conftest.$ac_ext <<_ACEOF
21979 /* confdefs.h. */
21980 _ACEOF
21981 cat confdefs.h >>conftest.$ac_ext
21982 cat >>conftest.$ac_ext <<_ACEOF
21983 /* end confdefs.h. */
21984 #include <$ac_header>
21985 _ACEOF
21986 if { (ac_try="$ac_cpp conftest.$ac_ext"
21987 case "(($ac_try" in
21988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21989 *) ac_try_echo=$ac_try;;
21990 esac
21991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21993 ac_status=$?
21994 grep -v '^ *+' conftest.er1 >conftest.err
21995 rm -f conftest.er1
21996 cat conftest.err >&5
21997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21998 (exit $ac_status); } >/dev/null && {
21999 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22000 test ! -s conftest.err
22001 }; then
22002 ac_header_preproc=yes
22003 else
22004 echo "$as_me: failed program was:" >&5
22005 sed 's/^/| /' conftest.$ac_ext >&5
22007 ac_header_preproc=no
22010 rm -f conftest.err conftest.$ac_ext
22011 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22012 echo "${ECHO_T}$ac_header_preproc" >&6; }
22014 # So? What about this header?
22015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22016 yes:no: )
22017 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22018 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22019 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22020 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22021 ac_header_preproc=yes
22023 no:yes:* )
22024 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22025 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22026 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22027 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22028 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22029 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22030 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22031 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22033 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22034 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22035 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22038 esac
22039 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22042 echo $ECHO_N "(cached) $ECHO_C" >&6
22043 else
22044 eval "$as_ac_Header=\$ac_header_preproc"
22046 ac_res=`eval echo '${'$as_ac_Header'}'`
22047 { echo "$as_me:$LINENO: result: $ac_res" >&5
22048 echo "${ECHO_T}$ac_res" >&6; }
22051 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22052 cat >>confdefs.h <<_ACEOF
22053 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22054 _ACEOF
22056 else
22058 for ac_header in kerberosIV/krb.h
22060 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22062 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22065 echo $ECHO_N "(cached) $ECHO_C" >&6
22067 ac_res=`eval echo '${'$as_ac_Header'}'`
22068 { echo "$as_me:$LINENO: result: $ac_res" >&5
22069 echo "${ECHO_T}$ac_res" >&6; }
22070 else
22071 # Is the header compilable?
22072 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22073 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22074 cat >conftest.$ac_ext <<_ACEOF
22075 /* confdefs.h. */
22076 _ACEOF
22077 cat confdefs.h >>conftest.$ac_ext
22078 cat >>conftest.$ac_ext <<_ACEOF
22079 /* end confdefs.h. */
22080 $ac_includes_default
22081 #include <$ac_header>
22082 _ACEOF
22083 rm -f conftest.$ac_objext
22084 if { (ac_try="$ac_compile"
22085 case "(($ac_try" in
22086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22087 *) ac_try_echo=$ac_try;;
22088 esac
22089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22090 (eval "$ac_compile") 2>conftest.er1
22091 ac_status=$?
22092 grep -v '^ *+' conftest.er1 >conftest.err
22093 rm -f conftest.er1
22094 cat conftest.err >&5
22095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22096 (exit $ac_status); } && {
22097 test -z "$ac_c_werror_flag" ||
22098 test ! -s conftest.err
22099 } && test -s conftest.$ac_objext; then
22100 ac_header_compiler=yes
22101 else
22102 echo "$as_me: failed program was:" >&5
22103 sed 's/^/| /' conftest.$ac_ext >&5
22105 ac_header_compiler=no
22108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22109 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22110 echo "${ECHO_T}$ac_header_compiler" >&6; }
22112 # Is the header present?
22113 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22114 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22115 cat >conftest.$ac_ext <<_ACEOF
22116 /* confdefs.h. */
22117 _ACEOF
22118 cat confdefs.h >>conftest.$ac_ext
22119 cat >>conftest.$ac_ext <<_ACEOF
22120 /* end confdefs.h. */
22121 #include <$ac_header>
22122 _ACEOF
22123 if { (ac_try="$ac_cpp conftest.$ac_ext"
22124 case "(($ac_try" in
22125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22126 *) ac_try_echo=$ac_try;;
22127 esac
22128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22129 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22130 ac_status=$?
22131 grep -v '^ *+' conftest.er1 >conftest.err
22132 rm -f conftest.er1
22133 cat conftest.err >&5
22134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22135 (exit $ac_status); } >/dev/null && {
22136 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22137 test ! -s conftest.err
22138 }; then
22139 ac_header_preproc=yes
22140 else
22141 echo "$as_me: failed program was:" >&5
22142 sed 's/^/| /' conftest.$ac_ext >&5
22144 ac_header_preproc=no
22147 rm -f conftest.err conftest.$ac_ext
22148 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22149 echo "${ECHO_T}$ac_header_preproc" >&6; }
22151 # So? What about this header?
22152 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22153 yes:no: )
22154 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22155 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22156 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22157 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22158 ac_header_preproc=yes
22160 no:yes:* )
22161 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22162 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22163 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22164 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22165 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22166 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22167 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22168 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22170 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22171 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22172 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22175 esac
22176 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22179 echo $ECHO_N "(cached) $ECHO_C" >&6
22180 else
22181 eval "$as_ac_Header=\$ac_header_preproc"
22183 ac_res=`eval echo '${'$as_ac_Header'}'`
22184 { echo "$as_me:$LINENO: result: $ac_res" >&5
22185 echo "${ECHO_T}$ac_res" >&6; }
22188 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22189 cat >>confdefs.h <<_ACEOF
22190 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22191 _ACEOF
22193 else
22195 for ac_header in kerberos/krb.h
22197 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22199 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22202 echo $ECHO_N "(cached) $ECHO_C" >&6
22204 ac_res=`eval echo '${'$as_ac_Header'}'`
22205 { echo "$as_me:$LINENO: result: $ac_res" >&5
22206 echo "${ECHO_T}$ac_res" >&6; }
22207 else
22208 # Is the header compilable?
22209 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22210 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22211 cat >conftest.$ac_ext <<_ACEOF
22212 /* confdefs.h. */
22213 _ACEOF
22214 cat confdefs.h >>conftest.$ac_ext
22215 cat >>conftest.$ac_ext <<_ACEOF
22216 /* end confdefs.h. */
22217 $ac_includes_default
22218 #include <$ac_header>
22219 _ACEOF
22220 rm -f conftest.$ac_objext
22221 if { (ac_try="$ac_compile"
22222 case "(($ac_try" in
22223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22224 *) ac_try_echo=$ac_try;;
22225 esac
22226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22227 (eval "$ac_compile") 2>conftest.er1
22228 ac_status=$?
22229 grep -v '^ *+' conftest.er1 >conftest.err
22230 rm -f conftest.er1
22231 cat conftest.err >&5
22232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22233 (exit $ac_status); } && {
22234 test -z "$ac_c_werror_flag" ||
22235 test ! -s conftest.err
22236 } && test -s conftest.$ac_objext; then
22237 ac_header_compiler=yes
22238 else
22239 echo "$as_me: failed program was:" >&5
22240 sed 's/^/| /' conftest.$ac_ext >&5
22242 ac_header_compiler=no
22245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22246 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22247 echo "${ECHO_T}$ac_header_compiler" >&6; }
22249 # Is the header present?
22250 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22251 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22252 cat >conftest.$ac_ext <<_ACEOF
22253 /* confdefs.h. */
22254 _ACEOF
22255 cat confdefs.h >>conftest.$ac_ext
22256 cat >>conftest.$ac_ext <<_ACEOF
22257 /* end confdefs.h. */
22258 #include <$ac_header>
22259 _ACEOF
22260 if { (ac_try="$ac_cpp conftest.$ac_ext"
22261 case "(($ac_try" in
22262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22263 *) ac_try_echo=$ac_try;;
22264 esac
22265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22266 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22267 ac_status=$?
22268 grep -v '^ *+' conftest.er1 >conftest.err
22269 rm -f conftest.er1
22270 cat conftest.err >&5
22271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22272 (exit $ac_status); } >/dev/null && {
22273 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22274 test ! -s conftest.err
22275 }; then
22276 ac_header_preproc=yes
22277 else
22278 echo "$as_me: failed program was:" >&5
22279 sed 's/^/| /' conftest.$ac_ext >&5
22281 ac_header_preproc=no
22284 rm -f conftest.err conftest.$ac_ext
22285 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22286 echo "${ECHO_T}$ac_header_preproc" >&6; }
22288 # So? What about this header?
22289 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22290 yes:no: )
22291 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22292 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22294 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22295 ac_header_preproc=yes
22297 no:yes:* )
22298 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22299 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22300 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22301 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22302 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22303 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22304 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22305 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22306 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22307 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22308 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22309 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22312 esac
22313 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22315 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22316 echo $ECHO_N "(cached) $ECHO_C" >&6
22317 else
22318 eval "$as_ac_Header=\$ac_header_preproc"
22320 ac_res=`eval echo '${'$as_ac_Header'}'`
22321 { echo "$as_me:$LINENO: result: $ac_res" >&5
22322 echo "${ECHO_T}$ac_res" >&6; }
22325 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22326 cat >>confdefs.h <<_ACEOF
22327 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22328 _ACEOF
22332 done
22336 done
22340 done
22344 for ac_header in com_err.h
22346 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22348 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22350 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22351 echo $ECHO_N "(cached) $ECHO_C" >&6
22353 ac_res=`eval echo '${'$as_ac_Header'}'`
22354 { echo "$as_me:$LINENO: result: $ac_res" >&5
22355 echo "${ECHO_T}$ac_res" >&6; }
22356 else
22357 # Is the header compilable?
22358 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22359 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22360 cat >conftest.$ac_ext <<_ACEOF
22361 /* confdefs.h. */
22362 _ACEOF
22363 cat confdefs.h >>conftest.$ac_ext
22364 cat >>conftest.$ac_ext <<_ACEOF
22365 /* end confdefs.h. */
22366 $ac_includes_default
22367 #include <$ac_header>
22368 _ACEOF
22369 rm -f conftest.$ac_objext
22370 if { (ac_try="$ac_compile"
22371 case "(($ac_try" in
22372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22373 *) ac_try_echo=$ac_try;;
22374 esac
22375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22376 (eval "$ac_compile") 2>conftest.er1
22377 ac_status=$?
22378 grep -v '^ *+' conftest.er1 >conftest.err
22379 rm -f conftest.er1
22380 cat conftest.err >&5
22381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22382 (exit $ac_status); } && {
22383 test -z "$ac_c_werror_flag" ||
22384 test ! -s conftest.err
22385 } && test -s conftest.$ac_objext; then
22386 ac_header_compiler=yes
22387 else
22388 echo "$as_me: failed program was:" >&5
22389 sed 's/^/| /' conftest.$ac_ext >&5
22391 ac_header_compiler=no
22394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22395 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22396 echo "${ECHO_T}$ac_header_compiler" >&6; }
22398 # Is the header present?
22399 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22400 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22401 cat >conftest.$ac_ext <<_ACEOF
22402 /* confdefs.h. */
22403 _ACEOF
22404 cat confdefs.h >>conftest.$ac_ext
22405 cat >>conftest.$ac_ext <<_ACEOF
22406 /* end confdefs.h. */
22407 #include <$ac_header>
22408 _ACEOF
22409 if { (ac_try="$ac_cpp conftest.$ac_ext"
22410 case "(($ac_try" in
22411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22412 *) ac_try_echo=$ac_try;;
22413 esac
22414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22416 ac_status=$?
22417 grep -v '^ *+' conftest.er1 >conftest.err
22418 rm -f conftest.er1
22419 cat conftest.err >&5
22420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22421 (exit $ac_status); } >/dev/null && {
22422 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22423 test ! -s conftest.err
22424 }; then
22425 ac_header_preproc=yes
22426 else
22427 echo "$as_me: failed program was:" >&5
22428 sed 's/^/| /' conftest.$ac_ext >&5
22430 ac_header_preproc=no
22433 rm -f conftest.err conftest.$ac_ext
22434 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22435 echo "${ECHO_T}$ac_header_preproc" >&6; }
22437 # So? What about this header?
22438 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22439 yes:no: )
22440 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22441 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22442 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22443 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22444 ac_header_preproc=yes
22446 no:yes:* )
22447 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22448 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22449 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22450 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22451 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22452 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22453 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22454 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22456 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22457 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22458 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22461 esac
22462 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22464 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22465 echo $ECHO_N "(cached) $ECHO_C" >&6
22466 else
22467 eval "$as_ac_Header=\$ac_header_preproc"
22469 ac_res=`eval echo '${'$as_ac_Header'}'`
22470 { echo "$as_me:$LINENO: result: $ac_res" >&5
22471 echo "${ECHO_T}$ac_res" >&6; }
22474 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22475 cat >>confdefs.h <<_ACEOF
22476 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22477 _ACEOF
22481 done
22485 # Solaris requires -lintl if you want strerror (which calls dgettext)
22486 # to return localized messages.
22488 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
22489 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
22490 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
22491 echo $ECHO_N "(cached) $ECHO_C" >&6
22492 else
22493 ac_check_lib_save_LIBS=$LIBS
22494 LIBS="-lintl $LIBS"
22495 cat >conftest.$ac_ext <<_ACEOF
22496 /* confdefs.h. */
22497 _ACEOF
22498 cat confdefs.h >>conftest.$ac_ext
22499 cat >>conftest.$ac_ext <<_ACEOF
22500 /* end confdefs.h. */
22502 /* Override any GCC internal prototype to avoid an error.
22503 Use char because int might match the return type of a GCC
22504 builtin and then its argument prototype would still apply. */
22505 #ifdef __cplusplus
22506 extern "C"
22507 #endif
22508 char dgettext ();
22510 main ()
22512 return dgettext ();
22514 return 0;
22516 _ACEOF
22517 rm -f conftest.$ac_objext conftest$ac_exeext
22518 if { (ac_try="$ac_link"
22519 case "(($ac_try" in
22520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22521 *) ac_try_echo=$ac_try;;
22522 esac
22523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22524 (eval "$ac_link") 2>conftest.er1
22525 ac_status=$?
22526 grep -v '^ *+' conftest.er1 >conftest.err
22527 rm -f conftest.er1
22528 cat conftest.err >&5
22529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22530 (exit $ac_status); } && {
22531 test -z "$ac_c_werror_flag" ||
22532 test ! -s conftest.err
22533 } && test -s conftest$ac_exeext &&
22534 $as_test_x conftest$ac_exeext; then
22535 ac_cv_lib_intl_dgettext=yes
22536 else
22537 echo "$as_me: failed program was:" >&5
22538 sed 's/^/| /' conftest.$ac_ext >&5
22540 ac_cv_lib_intl_dgettext=no
22543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22544 conftest$ac_exeext conftest.$ac_ext
22545 LIBS=$ac_check_lib_save_LIBS
22547 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
22548 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22549 if test $ac_cv_lib_intl_dgettext = yes; then
22550 cat >>confdefs.h <<_ACEOF
22551 #define HAVE_LIBINTL 1
22552 _ACEOF
22554 LIBS="-lintl $LIBS"
22559 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
22560 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
22561 if test "${emacs_cv_localtime_cache+set}" = set; then
22562 echo $ECHO_N "(cached) $ECHO_C" >&6
22563 else
22564 if test x$ac_cv_func_tzset = xyes; then
22565 if test "$cross_compiling" = yes; then
22566 # If we have tzset, assume the worst when cross-compiling.
22567 emacs_cv_localtime_cache=yes
22568 else
22569 cat >conftest.$ac_ext <<_ACEOF
22570 /* confdefs.h. */
22571 _ACEOF
22572 cat confdefs.h >>conftest.$ac_ext
22573 cat >>conftest.$ac_ext <<_ACEOF
22574 /* end confdefs.h. */
22575 #include <time.h>
22576 extern char **environ;
22577 unset_TZ ()
22579 char **from, **to;
22580 for (to = from = environ; (*to = *from); from++)
22581 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22582 to++;
22584 char TZ_GMT0[] = "TZ=GMT0";
22585 char TZ_PST8[] = "TZ=PST8";
22586 main()
22588 time_t now = time ((time_t *) 0);
22589 int hour_GMT0, hour_unset;
22590 if (putenv (TZ_GMT0) != 0)
22591 exit (1);
22592 hour_GMT0 = localtime (&now)->tm_hour;
22593 unset_TZ ();
22594 hour_unset = localtime (&now)->tm_hour;
22595 if (putenv (TZ_PST8) != 0)
22596 exit (1);
22597 if (localtime (&now)->tm_hour == hour_GMT0)
22598 exit (1);
22599 unset_TZ ();
22600 if (localtime (&now)->tm_hour != hour_unset)
22601 exit (1);
22602 exit (0);
22604 _ACEOF
22605 rm -f conftest$ac_exeext
22606 if { (ac_try="$ac_link"
22607 case "(($ac_try" in
22608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22609 *) ac_try_echo=$ac_try;;
22610 esac
22611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22612 (eval "$ac_link") 2>&5
22613 ac_status=$?
22614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22615 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22616 { (case "(($ac_try" in
22617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22618 *) ac_try_echo=$ac_try;;
22619 esac
22620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22621 (eval "$ac_try") 2>&5
22622 ac_status=$?
22623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22624 (exit $ac_status); }; }; then
22625 emacs_cv_localtime_cache=no
22626 else
22627 echo "$as_me: program exited with status $ac_status" >&5
22628 echo "$as_me: failed program was:" >&5
22629 sed 's/^/| /' conftest.$ac_ext >&5
22631 ( exit $ac_status )
22632 emacs_cv_localtime_cache=yes
22634 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22638 else
22639 # If we lack tzset, report that localtime does not cache TZ,
22640 # since we can't invalidate the cache if we don't have tzset.
22641 emacs_cv_localtime_cache=no
22644 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
22645 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22646 if test $emacs_cv_localtime_cache = yes; then
22648 cat >>confdefs.h <<\_ACEOF
22649 #define LOCALTIME_CACHE 1
22650 _ACEOF
22654 if test "x$HAVE_TIMEVAL" = xyes; then
22656 for ac_func in gettimeofday
22658 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22659 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22660 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22661 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22662 echo $ECHO_N "(cached) $ECHO_C" >&6
22663 else
22664 cat >conftest.$ac_ext <<_ACEOF
22665 /* confdefs.h. */
22666 _ACEOF
22667 cat confdefs.h >>conftest.$ac_ext
22668 cat >>conftest.$ac_ext <<_ACEOF
22669 /* end confdefs.h. */
22670 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22671 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22672 #define $ac_func innocuous_$ac_func
22674 /* System header to define __stub macros and hopefully few prototypes,
22675 which can conflict with char $ac_func (); below.
22676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22677 <limits.h> exists even on freestanding compilers. */
22679 #ifdef __STDC__
22680 # include <limits.h>
22681 #else
22682 # include <assert.h>
22683 #endif
22685 #undef $ac_func
22687 /* Override any GCC internal prototype to avoid an error.
22688 Use char because int might match the return type of a GCC
22689 builtin and then its argument prototype would still apply. */
22690 #ifdef __cplusplus
22691 extern "C"
22692 #endif
22693 char $ac_func ();
22694 /* The GNU C library defines this for functions which it implements
22695 to always fail with ENOSYS. Some functions are actually named
22696 something starting with __ and the normal name is an alias. */
22697 #if defined __stub_$ac_func || defined __stub___$ac_func
22698 choke me
22699 #endif
22702 main ()
22704 return $ac_func ();
22706 return 0;
22708 _ACEOF
22709 rm -f conftest.$ac_objext conftest$ac_exeext
22710 if { (ac_try="$ac_link"
22711 case "(($ac_try" in
22712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22713 *) ac_try_echo=$ac_try;;
22714 esac
22715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22716 (eval "$ac_link") 2>conftest.er1
22717 ac_status=$?
22718 grep -v '^ *+' conftest.er1 >conftest.err
22719 rm -f conftest.er1
22720 cat conftest.err >&5
22721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22722 (exit $ac_status); } && {
22723 test -z "$ac_c_werror_flag" ||
22724 test ! -s conftest.err
22725 } && test -s conftest$ac_exeext &&
22726 $as_test_x conftest$ac_exeext; then
22727 eval "$as_ac_var=yes"
22728 else
22729 echo "$as_me: failed program was:" >&5
22730 sed 's/^/| /' conftest.$ac_ext >&5
22732 eval "$as_ac_var=no"
22735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22736 conftest$ac_exeext conftest.$ac_ext
22738 ac_res=`eval echo '${'$as_ac_var'}'`
22739 { echo "$as_me:$LINENO: result: $ac_res" >&5
22740 echo "${ECHO_T}$ac_res" >&6; }
22741 if test `eval echo '${'$as_ac_var'}'` = yes; then
22742 cat >>confdefs.h <<_ACEOF
22743 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22744 _ACEOF
22747 done
22749 if test $ac_cv_func_gettimeofday = yes; then
22750 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
22751 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
22752 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22753 echo $ECHO_N "(cached) $ECHO_C" >&6
22754 else
22755 cat >conftest.$ac_ext <<_ACEOF
22756 /* confdefs.h. */
22757 _ACEOF
22758 cat confdefs.h >>conftest.$ac_ext
22759 cat >>conftest.$ac_ext <<_ACEOF
22760 /* end confdefs.h. */
22762 #ifdef TIME_WITH_SYS_TIME
22763 #include <sys/time.h>
22764 #include <time.h>
22765 #else
22766 #ifdef HAVE_SYS_TIME_H
22767 #include <sys/time.h>
22768 #else
22769 #include <time.h>
22770 #endif
22771 #endif
22773 main ()
22775 struct timeval time;
22776 gettimeofday (&time, 0);
22778 return 0;
22780 _ACEOF
22781 rm -f conftest.$ac_objext
22782 if { (ac_try="$ac_compile"
22783 case "(($ac_try" in
22784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22785 *) ac_try_echo=$ac_try;;
22786 esac
22787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22788 (eval "$ac_compile") 2>conftest.er1
22789 ac_status=$?
22790 grep -v '^ *+' conftest.er1 >conftest.err
22791 rm -f conftest.er1
22792 cat conftest.err >&5
22793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22794 (exit $ac_status); } && {
22795 test -z "$ac_c_werror_flag" ||
22796 test ! -s conftest.err
22797 } && test -s conftest.$ac_objext; then
22798 emacs_cv_gettimeofday_two_arguments=yes
22799 else
22800 echo "$as_me: failed program was:" >&5
22801 sed 's/^/| /' conftest.$ac_ext >&5
22803 emacs_cv_gettimeofday_two_arguments=no
22806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22808 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
22809 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22810 if test $emacs_cv_gettimeofday_two_arguments = no; then
22812 cat >>confdefs.h <<\_ACEOF
22813 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22814 _ACEOF
22820 ok_so_far=yes
22821 { echo "$as_me:$LINENO: checking for socket" >&5
22822 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
22823 if test "${ac_cv_func_socket+set}" = set; then
22824 echo $ECHO_N "(cached) $ECHO_C" >&6
22825 else
22826 cat >conftest.$ac_ext <<_ACEOF
22827 /* confdefs.h. */
22828 _ACEOF
22829 cat confdefs.h >>conftest.$ac_ext
22830 cat >>conftest.$ac_ext <<_ACEOF
22831 /* end confdefs.h. */
22832 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22834 #define socket innocuous_socket
22836 /* System header to define __stub macros and hopefully few prototypes,
22837 which can conflict with char socket (); below.
22838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22839 <limits.h> exists even on freestanding compilers. */
22841 #ifdef __STDC__
22842 # include <limits.h>
22843 #else
22844 # include <assert.h>
22845 #endif
22847 #undef socket
22849 /* Override any GCC internal prototype to avoid an error.
22850 Use char because int might match the return type of a GCC
22851 builtin and then its argument prototype would still apply. */
22852 #ifdef __cplusplus
22853 extern "C"
22854 #endif
22855 char socket ();
22856 /* The GNU C library defines this for functions which it implements
22857 to always fail with ENOSYS. Some functions are actually named
22858 something starting with __ and the normal name is an alias. */
22859 #if defined __stub_socket || defined __stub___socket
22860 choke me
22861 #endif
22864 main ()
22866 return socket ();
22868 return 0;
22870 _ACEOF
22871 rm -f conftest.$ac_objext conftest$ac_exeext
22872 if { (ac_try="$ac_link"
22873 case "(($ac_try" in
22874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22875 *) ac_try_echo=$ac_try;;
22876 esac
22877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22878 (eval "$ac_link") 2>conftest.er1
22879 ac_status=$?
22880 grep -v '^ *+' conftest.er1 >conftest.err
22881 rm -f conftest.er1
22882 cat conftest.err >&5
22883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22884 (exit $ac_status); } && {
22885 test -z "$ac_c_werror_flag" ||
22886 test ! -s conftest.err
22887 } && test -s conftest$ac_exeext &&
22888 $as_test_x conftest$ac_exeext; then
22889 ac_cv_func_socket=yes
22890 else
22891 echo "$as_me: failed program was:" >&5
22892 sed 's/^/| /' conftest.$ac_ext >&5
22894 ac_cv_func_socket=no
22897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22898 conftest$ac_exeext conftest.$ac_ext
22900 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22901 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22902 if test $ac_cv_func_socket = yes; then
22904 else
22905 ok_so_far=no
22908 if test $ok_so_far = yes; then
22909 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22910 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22911 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22912 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22913 echo $ECHO_N "(cached) $ECHO_C" >&6
22915 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22916 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22917 else
22918 # Is the header compilable?
22919 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22920 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
22921 cat >conftest.$ac_ext <<_ACEOF
22922 /* confdefs.h. */
22923 _ACEOF
22924 cat confdefs.h >>conftest.$ac_ext
22925 cat >>conftest.$ac_ext <<_ACEOF
22926 /* end confdefs.h. */
22927 $ac_includes_default
22928 #include <netinet/in.h>
22929 _ACEOF
22930 rm -f conftest.$ac_objext
22931 if { (ac_try="$ac_compile"
22932 case "(($ac_try" in
22933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22934 *) ac_try_echo=$ac_try;;
22935 esac
22936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22937 (eval "$ac_compile") 2>conftest.er1
22938 ac_status=$?
22939 grep -v '^ *+' conftest.er1 >conftest.err
22940 rm -f conftest.er1
22941 cat conftest.err >&5
22942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22943 (exit $ac_status); } && {
22944 test -z "$ac_c_werror_flag" ||
22945 test ! -s conftest.err
22946 } && test -s conftest.$ac_objext; then
22947 ac_header_compiler=yes
22948 else
22949 echo "$as_me: failed program was:" >&5
22950 sed 's/^/| /' conftest.$ac_ext >&5
22952 ac_header_compiler=no
22955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22956 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22957 echo "${ECHO_T}$ac_header_compiler" >&6; }
22959 # Is the header present?
22960 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22961 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
22962 cat >conftest.$ac_ext <<_ACEOF
22963 /* confdefs.h. */
22964 _ACEOF
22965 cat confdefs.h >>conftest.$ac_ext
22966 cat >>conftest.$ac_ext <<_ACEOF
22967 /* end confdefs.h. */
22968 #include <netinet/in.h>
22969 _ACEOF
22970 if { (ac_try="$ac_cpp conftest.$ac_ext"
22971 case "(($ac_try" in
22972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22973 *) ac_try_echo=$ac_try;;
22974 esac
22975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22976 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22977 ac_status=$?
22978 grep -v '^ *+' conftest.er1 >conftest.err
22979 rm -f conftest.er1
22980 cat conftest.err >&5
22981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22982 (exit $ac_status); } >/dev/null && {
22983 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22984 test ! -s conftest.err
22985 }; then
22986 ac_header_preproc=yes
22987 else
22988 echo "$as_me: failed program was:" >&5
22989 sed 's/^/| /' conftest.$ac_ext >&5
22991 ac_header_preproc=no
22994 rm -f conftest.err conftest.$ac_ext
22995 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22996 echo "${ECHO_T}$ac_header_preproc" >&6; }
22998 # So? What about this header?
22999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23000 yes:no: )
23001 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
23002 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23003 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
23004 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
23005 ac_header_preproc=yes
23007 no:yes:* )
23008 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
23009 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
23010 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
23011 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
23012 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
23013 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
23014 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
23015 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
23016 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
23017 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
23018 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
23019 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
23022 esac
23023 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
23024 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
23025 if test "${ac_cv_header_netinet_in_h+set}" = set; then
23026 echo $ECHO_N "(cached) $ECHO_C" >&6
23027 else
23028 ac_cv_header_netinet_in_h=$ac_header_preproc
23030 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
23031 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
23034 if test $ac_cv_header_netinet_in_h = yes; then
23036 else
23037 ok_so_far=no
23042 if test $ok_so_far = yes; then
23043 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23044 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
23045 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
23046 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23047 echo $ECHO_N "(cached) $ECHO_C" >&6
23049 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
23050 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
23051 else
23052 # Is the header compilable?
23053 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
23054 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
23055 cat >conftest.$ac_ext <<_ACEOF
23056 /* confdefs.h. */
23057 _ACEOF
23058 cat confdefs.h >>conftest.$ac_ext
23059 cat >>conftest.$ac_ext <<_ACEOF
23060 /* end confdefs.h. */
23061 $ac_includes_default
23062 #include <arpa/inet.h>
23063 _ACEOF
23064 rm -f conftest.$ac_objext
23065 if { (ac_try="$ac_compile"
23066 case "(($ac_try" in
23067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23068 *) ac_try_echo=$ac_try;;
23069 esac
23070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23071 (eval "$ac_compile") 2>conftest.er1
23072 ac_status=$?
23073 grep -v '^ *+' conftest.er1 >conftest.err
23074 rm -f conftest.er1
23075 cat conftest.err >&5
23076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23077 (exit $ac_status); } && {
23078 test -z "$ac_c_werror_flag" ||
23079 test ! -s conftest.err
23080 } && test -s conftest.$ac_objext; then
23081 ac_header_compiler=yes
23082 else
23083 echo "$as_me: failed program was:" >&5
23084 sed 's/^/| /' conftest.$ac_ext >&5
23086 ac_header_compiler=no
23089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23090 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23091 echo "${ECHO_T}$ac_header_compiler" >&6; }
23093 # Is the header present?
23094 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
23095 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
23096 cat >conftest.$ac_ext <<_ACEOF
23097 /* confdefs.h. */
23098 _ACEOF
23099 cat confdefs.h >>conftest.$ac_ext
23100 cat >>conftest.$ac_ext <<_ACEOF
23101 /* end confdefs.h. */
23102 #include <arpa/inet.h>
23103 _ACEOF
23104 if { (ac_try="$ac_cpp conftest.$ac_ext"
23105 case "(($ac_try" in
23106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23107 *) ac_try_echo=$ac_try;;
23108 esac
23109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23110 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23111 ac_status=$?
23112 grep -v '^ *+' conftest.er1 >conftest.err
23113 rm -f conftest.er1
23114 cat conftest.err >&5
23115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23116 (exit $ac_status); } >/dev/null && {
23117 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23118 test ! -s conftest.err
23119 }; then
23120 ac_header_preproc=yes
23121 else
23122 echo "$as_me: failed program was:" >&5
23123 sed 's/^/| /' conftest.$ac_ext >&5
23125 ac_header_preproc=no
23128 rm -f conftest.err conftest.$ac_ext
23129 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23130 echo "${ECHO_T}$ac_header_preproc" >&6; }
23132 # So? What about this header?
23133 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23134 yes:no: )
23135 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
23136 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23137 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
23138 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
23139 ac_header_preproc=yes
23141 no:yes:* )
23142 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
23143 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
23144 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
23145 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
23146 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
23147 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
23148 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
23149 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
23150 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
23151 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
23152 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
23153 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
23156 esac
23157 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
23158 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
23159 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23160 echo $ECHO_N "(cached) $ECHO_C" >&6
23161 else
23162 ac_cv_header_arpa_inet_h=$ac_header_preproc
23164 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
23165 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
23168 if test $ac_cv_header_arpa_inet_h = yes; then
23170 else
23171 ok_so_far=no
23176 if test $ok_so_far = yes; then
23178 cat >>confdefs.h <<\_ACEOF
23179 #define HAVE_INET_SOCKETS 1
23180 _ACEOF
23185 for ac_header in sys/ioctl.h
23187 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23189 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23191 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23192 echo $ECHO_N "(cached) $ECHO_C" >&6
23194 ac_res=`eval echo '${'$as_ac_Header'}'`
23195 { echo "$as_me:$LINENO: result: $ac_res" >&5
23196 echo "${ECHO_T}$ac_res" >&6; }
23197 else
23198 # Is the header compilable?
23199 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23200 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23201 cat >conftest.$ac_ext <<_ACEOF
23202 /* confdefs.h. */
23203 _ACEOF
23204 cat confdefs.h >>conftest.$ac_ext
23205 cat >>conftest.$ac_ext <<_ACEOF
23206 /* end confdefs.h. */
23207 $ac_includes_default
23208 #include <$ac_header>
23209 _ACEOF
23210 rm -f conftest.$ac_objext
23211 if { (ac_try="$ac_compile"
23212 case "(($ac_try" in
23213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23214 *) ac_try_echo=$ac_try;;
23215 esac
23216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23217 (eval "$ac_compile") 2>conftest.er1
23218 ac_status=$?
23219 grep -v '^ *+' conftest.er1 >conftest.err
23220 rm -f conftest.er1
23221 cat conftest.err >&5
23222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23223 (exit $ac_status); } && {
23224 test -z "$ac_c_werror_flag" ||
23225 test ! -s conftest.err
23226 } && test -s conftest.$ac_objext; then
23227 ac_header_compiler=yes
23228 else
23229 echo "$as_me: failed program was:" >&5
23230 sed 's/^/| /' conftest.$ac_ext >&5
23232 ac_header_compiler=no
23235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23236 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23237 echo "${ECHO_T}$ac_header_compiler" >&6; }
23239 # Is the header present?
23240 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23241 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23242 cat >conftest.$ac_ext <<_ACEOF
23243 /* confdefs.h. */
23244 _ACEOF
23245 cat confdefs.h >>conftest.$ac_ext
23246 cat >>conftest.$ac_ext <<_ACEOF
23247 /* end confdefs.h. */
23248 #include <$ac_header>
23249 _ACEOF
23250 if { (ac_try="$ac_cpp conftest.$ac_ext"
23251 case "(($ac_try" in
23252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23253 *) ac_try_echo=$ac_try;;
23254 esac
23255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23256 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23257 ac_status=$?
23258 grep -v '^ *+' conftest.er1 >conftest.err
23259 rm -f conftest.er1
23260 cat conftest.err >&5
23261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23262 (exit $ac_status); } >/dev/null && {
23263 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23264 test ! -s conftest.err
23265 }; then
23266 ac_header_preproc=yes
23267 else
23268 echo "$as_me: failed program was:" >&5
23269 sed 's/^/| /' conftest.$ac_ext >&5
23271 ac_header_preproc=no
23274 rm -f conftest.err conftest.$ac_ext
23275 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23276 echo "${ECHO_T}$ac_header_preproc" >&6; }
23278 # So? What about this header?
23279 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23280 yes:no: )
23281 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23282 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23284 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23285 ac_header_preproc=yes
23287 no:yes:* )
23288 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23289 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23290 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23291 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23292 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23293 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23294 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23295 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23297 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23298 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23299 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23302 esac
23303 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23306 echo $ECHO_N "(cached) $ECHO_C" >&6
23307 else
23308 eval "$as_ac_Header=\$ac_header_preproc"
23310 ac_res=`eval echo '${'$as_ac_Header'}'`
23311 { echo "$as_me:$LINENO: result: $ac_res" >&5
23312 echo "${ECHO_T}$ac_res" >&6; }
23315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23316 cat >>confdefs.h <<_ACEOF
23317 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23318 _ACEOF
23322 done
23325 if test -f /usr/lpp/X11/bin/smt.exp; then
23327 cat >>confdefs.h <<\_ACEOF
23328 #define HAVE_AIX_SMT_EXP 1
23329 _ACEOF
23333 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
23334 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
23335 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
23336 { echo "$as_me:$LINENO: result: yes" >&5
23337 echo "${ECHO_T}yes" >&6; }
23339 cat >>confdefs.h <<\_ACEOF
23340 #define HAVE_DEV_PTMX 1
23341 _ACEOF
23343 else
23344 { echo "$as_me:$LINENO: result: no" >&5
23345 echo "${ECHO_T}no" >&6; }
23348 { echo "$as_me:$LINENO: checking for pid_t" >&5
23349 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23350 if test "${ac_cv_type_pid_t+set}" = set; then
23351 echo $ECHO_N "(cached) $ECHO_C" >&6
23352 else
23353 cat >conftest.$ac_ext <<_ACEOF
23354 /* confdefs.h. */
23355 _ACEOF
23356 cat confdefs.h >>conftest.$ac_ext
23357 cat >>conftest.$ac_ext <<_ACEOF
23358 /* end confdefs.h. */
23359 $ac_includes_default
23360 typedef pid_t ac__type_new_;
23362 main ()
23364 if ((ac__type_new_ *) 0)
23365 return 0;
23366 if (sizeof (ac__type_new_))
23367 return 0;
23369 return 0;
23371 _ACEOF
23372 rm -f conftest.$ac_objext
23373 if { (ac_try="$ac_compile"
23374 case "(($ac_try" in
23375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23376 *) ac_try_echo=$ac_try;;
23377 esac
23378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23379 (eval "$ac_compile") 2>conftest.er1
23380 ac_status=$?
23381 grep -v '^ *+' conftest.er1 >conftest.err
23382 rm -f conftest.er1
23383 cat conftest.err >&5
23384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23385 (exit $ac_status); } && {
23386 test -z "$ac_c_werror_flag" ||
23387 test ! -s conftest.err
23388 } && test -s conftest.$ac_objext; then
23389 ac_cv_type_pid_t=yes
23390 else
23391 echo "$as_me: failed program was:" >&5
23392 sed 's/^/| /' conftest.$ac_ext >&5
23394 ac_cv_type_pid_t=no
23397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23399 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23400 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23401 if test $ac_cv_type_pid_t = yes; then
23403 else
23405 cat >>confdefs.h <<_ACEOF
23406 #define pid_t int
23407 _ACEOF
23412 for ac_header in vfork.h
23414 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23416 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23418 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23419 echo $ECHO_N "(cached) $ECHO_C" >&6
23421 ac_res=`eval echo '${'$as_ac_Header'}'`
23422 { echo "$as_me:$LINENO: result: $ac_res" >&5
23423 echo "${ECHO_T}$ac_res" >&6; }
23424 else
23425 # Is the header compilable?
23426 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23427 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23428 cat >conftest.$ac_ext <<_ACEOF
23429 /* confdefs.h. */
23430 _ACEOF
23431 cat confdefs.h >>conftest.$ac_ext
23432 cat >>conftest.$ac_ext <<_ACEOF
23433 /* end confdefs.h. */
23434 $ac_includes_default
23435 #include <$ac_header>
23436 _ACEOF
23437 rm -f conftest.$ac_objext
23438 if { (ac_try="$ac_compile"
23439 case "(($ac_try" in
23440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23441 *) ac_try_echo=$ac_try;;
23442 esac
23443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23444 (eval "$ac_compile") 2>conftest.er1
23445 ac_status=$?
23446 grep -v '^ *+' conftest.er1 >conftest.err
23447 rm -f conftest.er1
23448 cat conftest.err >&5
23449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23450 (exit $ac_status); } && {
23451 test -z "$ac_c_werror_flag" ||
23452 test ! -s conftest.err
23453 } && test -s conftest.$ac_objext; then
23454 ac_header_compiler=yes
23455 else
23456 echo "$as_me: failed program was:" >&5
23457 sed 's/^/| /' conftest.$ac_ext >&5
23459 ac_header_compiler=no
23462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23463 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23464 echo "${ECHO_T}$ac_header_compiler" >&6; }
23466 # Is the header present?
23467 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23468 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23469 cat >conftest.$ac_ext <<_ACEOF
23470 /* confdefs.h. */
23471 _ACEOF
23472 cat confdefs.h >>conftest.$ac_ext
23473 cat >>conftest.$ac_ext <<_ACEOF
23474 /* end confdefs.h. */
23475 #include <$ac_header>
23476 _ACEOF
23477 if { (ac_try="$ac_cpp conftest.$ac_ext"
23478 case "(($ac_try" in
23479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23480 *) ac_try_echo=$ac_try;;
23481 esac
23482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23484 ac_status=$?
23485 grep -v '^ *+' conftest.er1 >conftest.err
23486 rm -f conftest.er1
23487 cat conftest.err >&5
23488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23489 (exit $ac_status); } >/dev/null && {
23490 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23491 test ! -s conftest.err
23492 }; then
23493 ac_header_preproc=yes
23494 else
23495 echo "$as_me: failed program was:" >&5
23496 sed 's/^/| /' conftest.$ac_ext >&5
23498 ac_header_preproc=no
23501 rm -f conftest.err conftest.$ac_ext
23502 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23503 echo "${ECHO_T}$ac_header_preproc" >&6; }
23505 # So? What about this header?
23506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23507 yes:no: )
23508 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23509 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23511 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23512 ac_header_preproc=yes
23514 no:yes:* )
23515 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23516 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23517 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23518 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23519 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23520 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23521 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23522 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23524 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23525 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23526 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23529 esac
23530 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23531 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23532 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23533 echo $ECHO_N "(cached) $ECHO_C" >&6
23534 else
23535 eval "$as_ac_Header=\$ac_header_preproc"
23537 ac_res=`eval echo '${'$as_ac_Header'}'`
23538 { echo "$as_me:$LINENO: result: $ac_res" >&5
23539 echo "${ECHO_T}$ac_res" >&6; }
23542 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23543 cat >>confdefs.h <<_ACEOF
23544 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23545 _ACEOF
23549 done
23553 for ac_func in fork vfork
23555 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23556 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23557 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23558 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23559 echo $ECHO_N "(cached) $ECHO_C" >&6
23560 else
23561 cat >conftest.$ac_ext <<_ACEOF
23562 /* confdefs.h. */
23563 _ACEOF
23564 cat confdefs.h >>conftest.$ac_ext
23565 cat >>conftest.$ac_ext <<_ACEOF
23566 /* end confdefs.h. */
23567 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23568 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23569 #define $ac_func innocuous_$ac_func
23571 /* System header to define __stub macros and hopefully few prototypes,
23572 which can conflict with char $ac_func (); below.
23573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23574 <limits.h> exists even on freestanding compilers. */
23576 #ifdef __STDC__
23577 # include <limits.h>
23578 #else
23579 # include <assert.h>
23580 #endif
23582 #undef $ac_func
23584 /* Override any GCC internal prototype to avoid an error.
23585 Use char because int might match the return type of a GCC
23586 builtin and then its argument prototype would still apply. */
23587 #ifdef __cplusplus
23588 extern "C"
23589 #endif
23590 char $ac_func ();
23591 /* The GNU C library defines this for functions which it implements
23592 to always fail with ENOSYS. Some functions are actually named
23593 something starting with __ and the normal name is an alias. */
23594 #if defined __stub_$ac_func || defined __stub___$ac_func
23595 choke me
23596 #endif
23599 main ()
23601 return $ac_func ();
23603 return 0;
23605 _ACEOF
23606 rm -f conftest.$ac_objext conftest$ac_exeext
23607 if { (ac_try="$ac_link"
23608 case "(($ac_try" in
23609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23610 *) ac_try_echo=$ac_try;;
23611 esac
23612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23613 (eval "$ac_link") 2>conftest.er1
23614 ac_status=$?
23615 grep -v '^ *+' conftest.er1 >conftest.err
23616 rm -f conftest.er1
23617 cat conftest.err >&5
23618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23619 (exit $ac_status); } && {
23620 test -z "$ac_c_werror_flag" ||
23621 test ! -s conftest.err
23622 } && test -s conftest$ac_exeext &&
23623 $as_test_x conftest$ac_exeext; then
23624 eval "$as_ac_var=yes"
23625 else
23626 echo "$as_me: failed program was:" >&5
23627 sed 's/^/| /' conftest.$ac_ext >&5
23629 eval "$as_ac_var=no"
23632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23633 conftest$ac_exeext conftest.$ac_ext
23635 ac_res=`eval echo '${'$as_ac_var'}'`
23636 { echo "$as_me:$LINENO: result: $ac_res" >&5
23637 echo "${ECHO_T}$ac_res" >&6; }
23638 if test `eval echo '${'$as_ac_var'}'` = yes; then
23639 cat >>confdefs.h <<_ACEOF
23640 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23641 _ACEOF
23644 done
23646 if test "x$ac_cv_func_fork" = xyes; then
23647 { echo "$as_me:$LINENO: checking for working fork" >&5
23648 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
23649 if test "${ac_cv_func_fork_works+set}" = set; then
23650 echo $ECHO_N "(cached) $ECHO_C" >&6
23651 else
23652 if test "$cross_compiling" = yes; then
23653 ac_cv_func_fork_works=cross
23654 else
23655 cat >conftest.$ac_ext <<_ACEOF
23656 /* confdefs.h. */
23657 _ACEOF
23658 cat confdefs.h >>conftest.$ac_ext
23659 cat >>conftest.$ac_ext <<_ACEOF
23660 /* end confdefs.h. */
23661 $ac_includes_default
23663 main ()
23666 /* By Ruediger Kuhlmann. */
23667 return fork () < 0;
23670 return 0;
23672 _ACEOF
23673 rm -f conftest$ac_exeext
23674 if { (ac_try="$ac_link"
23675 case "(($ac_try" in
23676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23677 *) ac_try_echo=$ac_try;;
23678 esac
23679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23680 (eval "$ac_link") 2>&5
23681 ac_status=$?
23682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23683 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23684 { (case "(($ac_try" in
23685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23686 *) ac_try_echo=$ac_try;;
23687 esac
23688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23689 (eval "$ac_try") 2>&5
23690 ac_status=$?
23691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23692 (exit $ac_status); }; }; then
23693 ac_cv_func_fork_works=yes
23694 else
23695 echo "$as_me: program exited with status $ac_status" >&5
23696 echo "$as_me: failed program was:" >&5
23697 sed 's/^/| /' conftest.$ac_ext >&5
23699 ( exit $ac_status )
23700 ac_cv_func_fork_works=no
23702 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23707 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23708 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23710 else
23711 ac_cv_func_fork_works=$ac_cv_func_fork
23713 if test "x$ac_cv_func_fork_works" = xcross; then
23714 case $host in
23715 *-*-amigaos* | *-*-msdosdjgpp*)
23716 # Override, as these systems have only a dummy fork() stub
23717 ac_cv_func_fork_works=no
23720 ac_cv_func_fork_works=yes
23722 esac
23723 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23724 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23726 ac_cv_func_vfork_works=$ac_cv_func_vfork
23727 if test "x$ac_cv_func_vfork" = xyes; then
23728 { echo "$as_me:$LINENO: checking for working vfork" >&5
23729 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
23730 if test "${ac_cv_func_vfork_works+set}" = set; then
23731 echo $ECHO_N "(cached) $ECHO_C" >&6
23732 else
23733 if test "$cross_compiling" = yes; then
23734 ac_cv_func_vfork_works=cross
23735 else
23736 cat >conftest.$ac_ext <<_ACEOF
23737 /* confdefs.h. */
23738 _ACEOF
23739 cat confdefs.h >>conftest.$ac_ext
23740 cat >>conftest.$ac_ext <<_ACEOF
23741 /* end confdefs.h. */
23742 /* Thanks to Paul Eggert for this test. */
23743 $ac_includes_default
23744 #include <sys/wait.h>
23745 #ifdef HAVE_VFORK_H
23746 # include <vfork.h>
23747 #endif
23748 /* On some sparc systems, changes by the child to local and incoming
23749 argument registers are propagated back to the parent. The compiler
23750 is told about this with #include <vfork.h>, but some compilers
23751 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23752 static variable whose address is put into a register that is
23753 clobbered by the vfork. */
23754 static void
23755 #ifdef __cplusplus
23756 sparc_address_test (int arg)
23757 # else
23758 sparc_address_test (arg) int arg;
23759 #endif
23761 static pid_t child;
23762 if (!child) {
23763 child = vfork ();
23764 if (child < 0) {
23765 perror ("vfork");
23766 _exit(2);
23768 if (!child) {
23769 arg = getpid();
23770 write(-1, "", 0);
23771 _exit (arg);
23777 main ()
23779 pid_t parent = getpid ();
23780 pid_t child;
23782 sparc_address_test (0);
23784 child = vfork ();
23786 if (child == 0) {
23787 /* Here is another test for sparc vfork register problems. This
23788 test uses lots of local variables, at least as many local
23789 variables as main has allocated so far including compiler
23790 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23791 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23792 reuse the register of parent for one of the local variables,
23793 since it will think that parent can't possibly be used any more
23794 in this routine. Assigning to the local variable will thus
23795 munge parent in the parent process. */
23796 pid_t
23797 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23798 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23799 /* Convince the compiler that p..p7 are live; otherwise, it might
23800 use the same hardware register for all 8 local variables. */
23801 if (p != p1 || p != p2 || p != p3 || p != p4
23802 || p != p5 || p != p6 || p != p7)
23803 _exit(1);
23805 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23806 from child file descriptors. If the child closes a descriptor
23807 before it execs or exits, this munges the parent's descriptor
23808 as well. Test for this by closing stdout in the child. */
23809 _exit(close(fileno(stdout)) != 0);
23810 } else {
23811 int status;
23812 struct stat st;
23814 while (wait(&status) != child)
23816 return (
23817 /* Was there some problem with vforking? */
23818 child < 0
23820 /* Did the child fail? (This shouldn't happen.) */
23821 || status
23823 /* Did the vfork/compiler bug occur? */
23824 || parent != getpid()
23826 /* Did the file descriptor bug occur? */
23827 || fstat(fileno(stdout), &st) != 0
23831 _ACEOF
23832 rm -f conftest$ac_exeext
23833 if { (ac_try="$ac_link"
23834 case "(($ac_try" in
23835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23836 *) ac_try_echo=$ac_try;;
23837 esac
23838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23839 (eval "$ac_link") 2>&5
23840 ac_status=$?
23841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23842 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23843 { (case "(($ac_try" in
23844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23845 *) ac_try_echo=$ac_try;;
23846 esac
23847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23848 (eval "$ac_try") 2>&5
23849 ac_status=$?
23850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23851 (exit $ac_status); }; }; then
23852 ac_cv_func_vfork_works=yes
23853 else
23854 echo "$as_me: program exited with status $ac_status" >&5
23855 echo "$as_me: failed program was:" >&5
23856 sed 's/^/| /' conftest.$ac_ext >&5
23858 ( exit $ac_status )
23859 ac_cv_func_vfork_works=no
23861 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23866 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23867 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23870 if test "x$ac_cv_func_fork_works" = xcross; then
23871 ac_cv_func_vfork_works=$ac_cv_func_vfork
23872 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23873 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23876 if test "x$ac_cv_func_vfork_works" = xyes; then
23878 cat >>confdefs.h <<\_ACEOF
23879 #define HAVE_WORKING_VFORK 1
23880 _ACEOF
23882 else
23884 cat >>confdefs.h <<\_ACEOF
23885 #define vfork fork
23886 _ACEOF
23889 if test "x$ac_cv_func_fork_works" = xyes; then
23891 cat >>confdefs.h <<\_ACEOF
23892 #define HAVE_WORKING_FORK 1
23893 _ACEOF
23898 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23899 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
23900 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23901 echo $ECHO_N "(cached) $ECHO_C" >&6
23902 else
23903 cat >conftest.$ac_ext <<_ACEOF
23904 /* confdefs.h. */
23905 _ACEOF
23906 cat confdefs.h >>conftest.$ac_ext
23907 cat >>conftest.$ac_ext <<_ACEOF
23908 /* end confdefs.h. */
23909 #include <langinfo.h>
23911 main ()
23913 char* cs = nl_langinfo(CODESET);
23915 return 0;
23917 _ACEOF
23918 rm -f conftest.$ac_objext conftest$ac_exeext
23919 if { (ac_try="$ac_link"
23920 case "(($ac_try" in
23921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23922 *) ac_try_echo=$ac_try;;
23923 esac
23924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23925 (eval "$ac_link") 2>conftest.er1
23926 ac_status=$?
23927 grep -v '^ *+' conftest.er1 >conftest.err
23928 rm -f conftest.er1
23929 cat conftest.err >&5
23930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23931 (exit $ac_status); } && {
23932 test -z "$ac_c_werror_flag" ||
23933 test ! -s conftest.err
23934 } && test -s conftest$ac_exeext &&
23935 $as_test_x conftest$ac_exeext; then
23936 emacs_cv_langinfo_codeset=yes
23937 else
23938 echo "$as_me: failed program was:" >&5
23939 sed 's/^/| /' conftest.$ac_ext >&5
23941 emacs_cv_langinfo_codeset=no
23944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23945 conftest$ac_exeext conftest.$ac_ext
23948 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23949 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23950 if test $emacs_cv_langinfo_codeset = yes; then
23952 cat >>confdefs.h <<\_ACEOF
23953 #define HAVE_LANGINFO_CODESET 1
23954 _ACEOF
23958 { echo "$as_me:$LINENO: checking for size_t" >&5
23959 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23960 if test "${ac_cv_type_size_t+set}" = set; then
23961 echo $ECHO_N "(cached) $ECHO_C" >&6
23962 else
23963 cat >conftest.$ac_ext <<_ACEOF
23964 /* confdefs.h. */
23965 _ACEOF
23966 cat confdefs.h >>conftest.$ac_ext
23967 cat >>conftest.$ac_ext <<_ACEOF
23968 /* end confdefs.h. */
23969 $ac_includes_default
23970 typedef size_t ac__type_new_;
23972 main ()
23974 if ((ac__type_new_ *) 0)
23975 return 0;
23976 if (sizeof (ac__type_new_))
23977 return 0;
23979 return 0;
23981 _ACEOF
23982 rm -f conftest.$ac_objext
23983 if { (ac_try="$ac_compile"
23984 case "(($ac_try" in
23985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23986 *) ac_try_echo=$ac_try;;
23987 esac
23988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23989 (eval "$ac_compile") 2>conftest.er1
23990 ac_status=$?
23991 grep -v '^ *+' conftest.er1 >conftest.err
23992 rm -f conftest.er1
23993 cat conftest.err >&5
23994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23995 (exit $ac_status); } && {
23996 test -z "$ac_c_werror_flag" ||
23997 test ! -s conftest.err
23998 } && test -s conftest.$ac_objext; then
23999 ac_cv_type_size_t=yes
24000 else
24001 echo "$as_me: failed program was:" >&5
24002 sed 's/^/| /' conftest.$ac_ext >&5
24004 ac_cv_type_size_t=no
24007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24009 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24010 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
24011 if test $ac_cv_type_size_t = yes; then
24013 cat >>confdefs.h <<_ACEOF
24014 #define HAVE_SIZE_T 1
24015 _ACEOF
24021 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
24022 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
24023 if test "${ac_cv_type_mbstate_t+set}" = set; then
24024 echo $ECHO_N "(cached) $ECHO_C" >&6
24025 else
24026 cat >conftest.$ac_ext <<_ACEOF
24027 /* confdefs.h. */
24028 _ACEOF
24029 cat confdefs.h >>conftest.$ac_ext
24030 cat >>conftest.$ac_ext <<_ACEOF
24031 /* end confdefs.h. */
24032 $ac_includes_default
24033 # include <wchar.h>
24035 main ()
24037 mbstate_t x; return sizeof x;
24039 return 0;
24041 _ACEOF
24042 rm -f conftest.$ac_objext
24043 if { (ac_try="$ac_compile"
24044 case "(($ac_try" in
24045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24046 *) ac_try_echo=$ac_try;;
24047 esac
24048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24049 (eval "$ac_compile") 2>conftest.er1
24050 ac_status=$?
24051 grep -v '^ *+' conftest.er1 >conftest.err
24052 rm -f conftest.er1
24053 cat conftest.err >&5
24054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24055 (exit $ac_status); } && {
24056 test -z "$ac_c_werror_flag" ||
24057 test ! -s conftest.err
24058 } && test -s conftest.$ac_objext; then
24059 ac_cv_type_mbstate_t=yes
24060 else
24061 echo "$as_me: failed program was:" >&5
24062 sed 's/^/| /' conftest.$ac_ext >&5
24064 ac_cv_type_mbstate_t=no
24067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24069 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
24070 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
24071 if test $ac_cv_type_mbstate_t = yes; then
24073 cat >>confdefs.h <<\_ACEOF
24074 #define HAVE_MBSTATE_T 1
24075 _ACEOF
24077 else
24079 cat >>confdefs.h <<\_ACEOF
24080 #define mbstate_t int
24081 _ACEOF
24085 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
24086 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
24087 if test "${emacs_cv_c_restrict+set}" = set; then
24088 echo $ECHO_N "(cached) $ECHO_C" >&6
24089 else
24090 cat >conftest.$ac_ext <<_ACEOF
24091 /* confdefs.h. */
24092 _ACEOF
24093 cat confdefs.h >>conftest.$ac_ext
24094 cat >>conftest.$ac_ext <<_ACEOF
24095 /* end confdefs.h. */
24096 void fred (int *restrict x);
24098 main ()
24102 return 0;
24104 _ACEOF
24105 rm -f conftest.$ac_objext
24106 if { (ac_try="$ac_compile"
24107 case "(($ac_try" in
24108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24109 *) ac_try_echo=$ac_try;;
24110 esac
24111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24112 (eval "$ac_compile") 2>conftest.er1
24113 ac_status=$?
24114 grep -v '^ *+' conftest.er1 >conftest.err
24115 rm -f conftest.er1
24116 cat conftest.err >&5
24117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24118 (exit $ac_status); } && {
24119 test -z "$ac_c_werror_flag" ||
24120 test ! -s conftest.err
24121 } && test -s conftest.$ac_objext; then
24122 emacs_cv_c_restrict=yes
24123 else
24124 echo "$as_me: failed program was:" >&5
24125 sed 's/^/| /' conftest.$ac_ext >&5
24127 cat >conftest.$ac_ext <<_ACEOF
24128 /* confdefs.h. */
24129 _ACEOF
24130 cat confdefs.h >>conftest.$ac_ext
24131 cat >>conftest.$ac_ext <<_ACEOF
24132 /* end confdefs.h. */
24133 void fred (int *__restrict x);
24135 main ()
24139 return 0;
24141 _ACEOF
24142 rm -f conftest.$ac_objext
24143 if { (ac_try="$ac_compile"
24144 case "(($ac_try" in
24145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24146 *) ac_try_echo=$ac_try;;
24147 esac
24148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24149 (eval "$ac_compile") 2>conftest.er1
24150 ac_status=$?
24151 grep -v '^ *+' conftest.er1 >conftest.err
24152 rm -f conftest.er1
24153 cat conftest.err >&5
24154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24155 (exit $ac_status); } && {
24156 test -z "$ac_c_werror_flag" ||
24157 test ! -s conftest.err
24158 } && test -s conftest.$ac_objext; then
24159 emacs_cv_c_restrict=__restrict
24160 else
24161 echo "$as_me: failed program was:" >&5
24162 sed 's/^/| /' conftest.$ac_ext >&5
24164 emacs_cv_c_restrict=no
24167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24172 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
24173 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
24174 case "$emacs_cv_c_restrict" in
24175 yes) emacs_restrict=restrict;;
24176 no) emacs_restrict="";;
24177 *) emacs_restrict="$emacs_cv_c_restrict";;
24178 esac
24179 if test "$emacs_restrict" != __restrict; then
24181 cat >>confdefs.h <<_ACEOF
24182 #define __restrict $emacs_restrict
24183 _ACEOF
24187 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
24188 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
24189 if test "${emacs_cv_c_restrict_arr+set}" = set; then
24190 echo $ECHO_N "(cached) $ECHO_C" >&6
24191 else
24192 cat >conftest.$ac_ext <<_ACEOF
24193 /* confdefs.h. */
24194 _ACEOF
24195 cat confdefs.h >>conftest.$ac_ext
24196 cat >>conftest.$ac_ext <<_ACEOF
24197 /* end confdefs.h. */
24198 void fred (int x[__restrict]);
24200 main ()
24204 return 0;
24206 _ACEOF
24207 rm -f conftest.$ac_objext
24208 if { (ac_try="$ac_compile"
24209 case "(($ac_try" in
24210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24211 *) ac_try_echo=$ac_try;;
24212 esac
24213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24214 (eval "$ac_compile") 2>conftest.er1
24215 ac_status=$?
24216 grep -v '^ *+' conftest.er1 >conftest.err
24217 rm -f conftest.er1
24218 cat conftest.err >&5
24219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24220 (exit $ac_status); } && {
24221 test -z "$ac_c_werror_flag" ||
24222 test ! -s conftest.err
24223 } && test -s conftest.$ac_objext; then
24224 emacs_cv_c_restrict_arr=yes
24225 else
24226 echo "$as_me: failed program was:" >&5
24227 sed 's/^/| /' conftest.$ac_ext >&5
24229 emacs_cv_c_restrict_arr=no
24232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24234 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
24235 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
24236 if test "$emacs_cv_c_restrict_arr" = yes; then
24238 cat >>confdefs.h <<\_ACEOF
24239 #define __restrict_arr __restrict
24240 _ACEOF
24246 # Set up the CFLAGS for real compilation, so we can substitute it.
24247 CFLAGS="$REAL_CFLAGS"
24248 CPPFLAGS="$REAL_CPPFLAGS"
24250 #### Find out which version of Emacs this is.
24251 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
24252 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
24253 if test x"${version}" = x; then
24254 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
24255 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
24256 { (exit 1); exit 1; }; }
24259 ### Specify what sort of things we'll be editing into Makefile and config.h.
24260 ### Use configuration here uncanonicalized to avoid exceeding size limits.
24296 cat >>confdefs.h <<_ACEOF
24297 #define EMACS_CONFIGURATION "${canonical}"
24298 _ACEOF
24301 cat >>confdefs.h <<_ACEOF
24302 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
24303 _ACEOF
24306 cat >>confdefs.h <<_ACEOF
24307 #define config_machfile "${machfile}"
24308 _ACEOF
24311 cat >>confdefs.h <<_ACEOF
24312 #define config_opsysfile "${opsysfile}"
24313 _ACEOF
24316 cat >>confdefs.h <<_ACEOF
24317 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
24318 _ACEOF
24321 cat >>confdefs.h <<_ACEOF
24322 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
24323 _ACEOF
24326 cat >>confdefs.h <<_ACEOF
24327 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
24328 _ACEOF
24331 cat >>confdefs.h <<_ACEOF
24332 #define UNEXEC_SRC ${UNEXEC_SRC}
24333 _ACEOF
24336 if test "${HAVE_X_WINDOWS}" = "yes" ; then
24338 cat >>confdefs.h <<\_ACEOF
24339 #define HAVE_X_WINDOWS 1
24340 _ACEOF
24343 if test "${USE_X_TOOLKIT}" != "none" ; then
24345 cat >>confdefs.h <<\_ACEOF
24346 #define USE_X_TOOLKIT 1
24347 _ACEOF
24350 if test "${HAVE_X11}" = "yes" ; then
24352 cat >>confdefs.h <<\_ACEOF
24353 #define HAVE_X11 1
24354 _ACEOF
24357 if test "${HAVE_XFREE386}" = "yes" ; then
24359 cat >>confdefs.h <<\_ACEOF
24360 #define HAVE_XFREE386 1
24361 _ACEOF
24364 if test "${HAVE_MENUS}" = "yes" ; then
24366 cat >>confdefs.h <<\_ACEOF
24367 #define HAVE_MENUS 1
24368 _ACEOF
24371 if test "${GNU_MALLOC}" = "yes" ; then
24373 cat >>confdefs.h <<\_ACEOF
24374 #define GNU_MALLOC 1
24375 _ACEOF
24378 if test "${REL_ALLOC}" = "yes" ; then
24380 cat >>confdefs.h <<\_ACEOF
24381 #define REL_ALLOC 1
24382 _ACEOF
24391 #### Report on what we decided to do.
24392 #### Report GTK as a toolkit, even if it doesn't use Xt.
24393 #### It makes printing result more understandable as using GTK sets
24394 #### toolkit_scroll_bars to yes by default.
24395 if test "${HAVE_GTK}" = "yes"; then
24396 USE_X_TOOLKIT=GTK
24399 echo "
24400 Configured for \`${canonical}'.
24402 Where should the build process find the source code? ${srcdir}
24403 What operating system and machine description files should Emacs use?
24404 \`${opsysfile}' and \`${machfile}'
24405 What compiler should emacs be built with? ${CC} ${CFLAGS}
24406 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
24407 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
24408 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
24409 What window system should Emacs use? ${window_system}
24410 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
24412 if test -n "${x_includes}"; then
24413 echo " Where do we find X Windows header files? ${x_includes}"
24414 else
24415 echo " Where do we find X Windows header files? Standard dirs"
24417 if test -n "${x_libraries}"; then
24418 echo " Where do we find X Windows libraries? ${x_libraries}"
24419 else
24420 echo " Where do we find X Windows libraries? Standard dirs"
24423 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
24424 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
24425 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
24426 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
24427 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
24428 echo " Does Emacs use -lpng? ${HAVE_PNG}"
24429 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
24430 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
24431 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
24432 echo
24434 if test $USE_XASSERTS = yes; then
24435 echo " Compiling with asserts turned on."
24436 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
24437 echo
24440 if test "$USE_X_TOOLKIT" = GTK; then
24441 case "$canonical" in
24442 *cygwin*)
24443 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
24444 will probably get a crash on startup. If this happens, please use another
24445 toolkit for Emacs. See etc/PROBLEMS for more information."
24447 esac
24451 if test "$HAVE_CARBON" = "yes"; then
24452 echo
24453 echo "Warning: The Mac Carbon port is currently unsupported and has
24454 known problems. It is not recommended for use by non-developers.
24455 Read the emacs-devel archives for more information."
24456 echo
24459 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
24460 echo "D-Bus integration has been tested for GNU/Linux only."
24461 echo
24465 # Remove any trailing slashes in these variables.
24466 test "${prefix}" != NONE &&
24467 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24468 test "${exec_prefix}" != NONE &&
24469 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24471 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
24472 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
24473 ## from Makefile.c can correctly provide the arg `-traditional' to the
24474 ## C preprocessor.
24476 cat >conftest.$ac_ext <<_ACEOF
24477 /* confdefs.h. */
24478 _ACEOF
24479 cat confdefs.h >>conftest.$ac_ext
24480 cat >>conftest.$ac_ext <<_ACEOF
24481 /* end confdefs.h. */
24482 yes..yes
24483 _ACEOF
24484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24485 $EGREP "yes..yes" >/dev/null 2>&1; then
24486 CPP_NEED_TRADITIONAL=no
24487 else
24488 CPP_NEED_TRADITIONAL=yes
24490 rm -f conftest*
24493 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"
24495 ac_config_commands="$ac_config_commands default"
24497 cat >confcache <<\_ACEOF
24498 # This file is a shell script that caches the results of configure
24499 # tests run on this system so they can be shared between configure
24500 # scripts and configure runs, see configure's option --config-cache.
24501 # It is not useful on other systems. If it contains results you don't
24502 # want to keep, you may remove or edit it.
24504 # config.status only pays attention to the cache file if you give it
24505 # the --recheck option to rerun configure.
24507 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24508 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24509 # following values.
24511 _ACEOF
24513 # The following way of writing the cache mishandles newlines in values,
24514 # but we know of no workaround that is simple, portable, and efficient.
24515 # So, we kill variables containing newlines.
24516 # Ultrix sh set writes to stderr and can't be redirected directly,
24517 # and sets the high bit in the cache file unless we assign to the vars.
24519 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24520 eval ac_val=\$$ac_var
24521 case $ac_val in #(
24522 *${as_nl}*)
24523 case $ac_var in #(
24524 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24525 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24526 esac
24527 case $ac_var in #(
24528 _ | IFS | as_nl) ;; #(
24529 *) $as_unset $ac_var ;;
24530 esac ;;
24531 esac
24532 done
24534 (set) 2>&1 |
24535 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24536 *${as_nl}ac_space=\ *)
24537 # `set' does not quote correctly, so add quotes (double-quote
24538 # substitution turns \\\\ into \\, and sed turns \\ into \).
24539 sed -n \
24540 "s/'/'\\\\''/g;
24541 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24542 ;; #(
24544 # `set' quotes correctly as required by POSIX, so do not add quotes.
24545 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24547 esac |
24548 sort
24550 sed '
24551 /^ac_cv_env_/b end
24552 t clear
24553 :clear
24554 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24555 t end
24556 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24557 :end' >>confcache
24558 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24559 if test -w "$cache_file"; then
24560 test "x$cache_file" != "x/dev/null" &&
24561 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24562 echo "$as_me: updating cache $cache_file" >&6;}
24563 cat confcache >$cache_file
24564 else
24565 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24566 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24569 rm -f confcache
24571 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24572 # Let make expand exec_prefix.
24573 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24575 DEFS=-DHAVE_CONFIG_H
24577 ac_libobjs=
24578 ac_ltlibobjs=
24579 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24580 # 1. Remove the extension, and $U if already installed.
24581 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24582 ac_i=`echo "$ac_i" | sed "$ac_script"`
24583 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24584 # will be set to the directory where LIBOBJS objects are built.
24585 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24586 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24587 done
24588 LIBOBJS=$ac_libobjs
24590 LTLIBOBJS=$ac_ltlibobjs
24594 : ${CONFIG_STATUS=./config.status}
24595 ac_clean_files_save=$ac_clean_files
24596 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24597 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24598 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24599 cat >$CONFIG_STATUS <<_ACEOF
24600 #! $SHELL
24601 # Generated by $as_me.
24602 # Run this file to recreate the current configuration.
24603 # Compiler output produced by configure, useful for debugging
24604 # configure, is in config.log if it exists.
24606 debug=false
24607 ac_cs_recheck=false
24608 ac_cs_silent=false
24609 SHELL=\${CONFIG_SHELL-$SHELL}
24610 _ACEOF
24612 cat >>$CONFIG_STATUS <<\_ACEOF
24613 ## --------------------- ##
24614 ## M4sh Initialization. ##
24615 ## --------------------- ##
24617 # Be more Bourne compatible
24618 DUALCASE=1; export DUALCASE # for MKS sh
24619 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24620 emulate sh
24621 NULLCMD=:
24622 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24623 # is contrary to our usage. Disable this feature.
24624 alias -g '${1+"$@"}'='"$@"'
24625 setopt NO_GLOB_SUBST
24626 else
24627 case `(set -o) 2>/dev/null` in
24628 *posix*) set -o posix ;;
24629 esac
24636 # PATH needs CR
24637 # Avoid depending upon Character Ranges.
24638 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24639 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24640 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24641 as_cr_digits='0123456789'
24642 as_cr_alnum=$as_cr_Letters$as_cr_digits
24644 # The user is always right.
24645 if test "${PATH_SEPARATOR+set}" != set; then
24646 echo "#! /bin/sh" >conf$$.sh
24647 echo "exit 0" >>conf$$.sh
24648 chmod +x conf$$.sh
24649 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24650 PATH_SEPARATOR=';'
24651 else
24652 PATH_SEPARATOR=:
24654 rm -f conf$$.sh
24657 # Support unset when possible.
24658 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24659 as_unset=unset
24660 else
24661 as_unset=false
24665 # IFS
24666 # We need space, tab and new line, in precisely that order. Quoting is
24667 # there to prevent editors from complaining about space-tab.
24668 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24669 # splitting by setting IFS to empty value.)
24670 as_nl='
24672 IFS=" "" $as_nl"
24674 # Find who we are. Look in the path if we contain no directory separator.
24675 case $0 in
24676 *[\\/]* ) as_myself=$0 ;;
24677 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24678 for as_dir in $PATH
24680 IFS=$as_save_IFS
24681 test -z "$as_dir" && as_dir=.
24682 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24683 done
24684 IFS=$as_save_IFS
24687 esac
24688 # We did not find ourselves, most probably we were run as `sh COMMAND'
24689 # in which case we are not to be found in the path.
24690 if test "x$as_myself" = x; then
24691 as_myself=$0
24693 if test ! -f "$as_myself"; then
24694 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24695 { (exit 1); exit 1; }
24698 # Work around bugs in pre-3.0 UWIN ksh.
24699 for as_var in ENV MAIL MAILPATH
24700 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24701 done
24702 PS1='$ '
24703 PS2='> '
24704 PS4='+ '
24706 # NLS nuisances.
24707 for as_var in \
24708 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24709 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24710 LC_TELEPHONE LC_TIME
24712 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24713 eval $as_var=C; export $as_var
24714 else
24715 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24717 done
24719 # Required to use basename.
24720 if expr a : '\(a\)' >/dev/null 2>&1 &&
24721 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24722 as_expr=expr
24723 else
24724 as_expr=false
24727 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24728 as_basename=basename
24729 else
24730 as_basename=false
24734 # Name of the executable.
24735 as_me=`$as_basename -- "$0" ||
24736 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24737 X"$0" : 'X\(//\)$' \| \
24738 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24739 echo X/"$0" |
24740 sed '/^.*\/\([^/][^/]*\)\/*$/{
24741 s//\1/
24744 /^X\/\(\/\/\)$/{
24745 s//\1/
24748 /^X\/\(\/\).*/{
24749 s//\1/
24752 s/.*/./; q'`
24754 # CDPATH.
24755 $as_unset CDPATH
24759 as_lineno_1=$LINENO
24760 as_lineno_2=$LINENO
24761 test "x$as_lineno_1" != "x$as_lineno_2" &&
24762 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24764 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24765 # uniformly replaced by the line number. The first 'sed' inserts a
24766 # line-number line after each line using $LINENO; the second 'sed'
24767 # does the real work. The second script uses 'N' to pair each
24768 # line-number line with the line containing $LINENO, and appends
24769 # trailing '-' during substitution so that $LINENO is not a special
24770 # case at line end.
24771 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24772 # scripts with optimization help from Paolo Bonzini. Blame Lee
24773 # E. McMahon (1931-1989) for sed's syntax. :-)
24774 sed -n '
24776 /[$]LINENO/=
24777 ' <$as_myself |
24778 sed '
24779 s/[$]LINENO.*/&-/
24780 t lineno
24782 :lineno
24784 :loop
24785 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24786 t loop
24787 s/-\n.*//
24788 ' >$as_me.lineno &&
24789 chmod +x "$as_me.lineno" ||
24790 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24791 { (exit 1); exit 1; }; }
24793 # Don't try to exec as it changes $[0], causing all sort of problems
24794 # (the dirname of $[0] is not the place where we might find the
24795 # original and so on. Autoconf is especially sensitive to this).
24796 . "./$as_me.lineno"
24797 # Exit status is that of the last command.
24798 exit
24802 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24803 as_dirname=dirname
24804 else
24805 as_dirname=false
24808 ECHO_C= ECHO_N= ECHO_T=
24809 case `echo -n x` in
24810 -n*)
24811 case `echo 'x\c'` in
24812 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24813 *) ECHO_C='\c';;
24814 esac;;
24816 ECHO_N='-n';;
24817 esac
24819 if expr a : '\(a\)' >/dev/null 2>&1 &&
24820 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24821 as_expr=expr
24822 else
24823 as_expr=false
24826 rm -f conf$$ conf$$.exe conf$$.file
24827 if test -d conf$$.dir; then
24828 rm -f conf$$.dir/conf$$.file
24829 else
24830 rm -f conf$$.dir
24831 mkdir conf$$.dir
24833 echo >conf$$.file
24834 if ln -s conf$$.file conf$$ 2>/dev/null; then
24835 as_ln_s='ln -s'
24836 # ... but there are two gotchas:
24837 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24838 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24839 # In both cases, we have to default to `cp -p'.
24840 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24841 as_ln_s='cp -p'
24842 elif ln conf$$.file conf$$ 2>/dev/null; then
24843 as_ln_s=ln
24844 else
24845 as_ln_s='cp -p'
24847 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24848 rmdir conf$$.dir 2>/dev/null
24850 if mkdir -p . 2>/dev/null; then
24851 as_mkdir_p=:
24852 else
24853 test -d ./-p && rmdir ./-p
24854 as_mkdir_p=false
24857 if test -x / >/dev/null 2>&1; then
24858 as_test_x='test -x'
24859 else
24860 if ls -dL / >/dev/null 2>&1; then
24861 as_ls_L_option=L
24862 else
24863 as_ls_L_option=
24865 as_test_x='
24866 eval sh -c '\''
24867 if test -d "$1"; then
24868 test -d "$1/.";
24869 else
24870 case $1 in
24871 -*)set "./$1";;
24872 esac;
24873 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24874 ???[sx]*):;;*)false;;esac;fi
24875 '\'' sh
24878 as_executable_p=$as_test_x
24880 # Sed expression to map a string onto a valid CPP name.
24881 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24883 # Sed expression to map a string onto a valid variable name.
24884 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24887 exec 6>&1
24889 # Save the log message, to keep $[0] and so on meaningful, and to
24890 # report actual input values of CONFIG_FILES etc. instead of their
24891 # values after options handling.
24892 ac_log="
24893 This file was extended by emacs $as_me 23.0.50, which was
24894 generated by GNU Autoconf 2.61. Invocation command line was
24896 CONFIG_FILES = $CONFIG_FILES
24897 CONFIG_HEADERS = $CONFIG_HEADERS
24898 CONFIG_LINKS = $CONFIG_LINKS
24899 CONFIG_COMMANDS = $CONFIG_COMMANDS
24900 $ $0 $@
24902 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24905 _ACEOF
24907 cat >>$CONFIG_STATUS <<_ACEOF
24908 # Files that config.status was made for.
24909 config_files="$ac_config_files"
24910 config_headers="$ac_config_headers"
24911 config_commands="$ac_config_commands"
24913 _ACEOF
24915 cat >>$CONFIG_STATUS <<\_ACEOF
24916 ac_cs_usage="\
24917 \`$as_me' instantiates files from templates according to the
24918 current configuration.
24920 Usage: $0 [OPTIONS] [FILE]...
24922 -h, --help print this help, then exit
24923 -V, --version print version number and configuration settings, then exit
24924 -q, --quiet do not print progress messages
24925 -d, --debug don't remove temporary files
24926 --recheck update $as_me by reconfiguring in the same conditions
24927 --file=FILE[:TEMPLATE]
24928 instantiate the configuration file FILE
24929 --header=FILE[:TEMPLATE]
24930 instantiate the configuration header FILE
24932 Configuration files:
24933 $config_files
24935 Configuration headers:
24936 $config_headers
24938 Configuration commands:
24939 $config_commands
24941 Report bugs to <bug-autoconf@gnu.org>."
24943 _ACEOF
24944 cat >>$CONFIG_STATUS <<_ACEOF
24945 ac_cs_version="\\
24946 emacs config.status 23.0.50
24947 configured by $0, generated by GNU Autoconf 2.61,
24948 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24950 Copyright (C) 2006 Free Software Foundation, Inc.
24951 This config.status script is free software; the Free Software Foundation
24952 gives unlimited permission to copy, distribute and modify it."
24954 ac_pwd='$ac_pwd'
24955 srcdir='$srcdir'
24956 INSTALL='$INSTALL'
24957 _ACEOF
24959 cat >>$CONFIG_STATUS <<\_ACEOF
24960 # If no file are specified by the user, then we need to provide default
24961 # value. By we need to know if files were specified by the user.
24962 ac_need_defaults=:
24963 while test $# != 0
24965 case $1 in
24966 --*=*)
24967 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24968 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24969 ac_shift=:
24972 ac_option=$1
24973 ac_optarg=$2
24974 ac_shift=shift
24976 esac
24978 case $ac_option in
24979 # Handling of the options.
24980 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24981 ac_cs_recheck=: ;;
24982 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24983 echo "$ac_cs_version"; exit ;;
24984 --debug | --debu | --deb | --de | --d | -d )
24985 debug=: ;;
24986 --file | --fil | --fi | --f )
24987 $ac_shift
24988 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24989 ac_need_defaults=false;;
24990 --header | --heade | --head | --hea )
24991 $ac_shift
24992 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24993 ac_need_defaults=false;;
24994 --he | --h)
24995 # Conflict between --help and --header
24996 { echo "$as_me: error: ambiguous option: $1
24997 Try \`$0 --help' for more information." >&2
24998 { (exit 1); exit 1; }; };;
24999 --help | --hel | -h )
25000 echo "$ac_cs_usage"; exit ;;
25001 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25002 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25003 ac_cs_silent=: ;;
25005 # This is an error.
25006 -*) { echo "$as_me: error: unrecognized option: $1
25007 Try \`$0 --help' for more information." >&2
25008 { (exit 1); exit 1; }; } ;;
25010 *) ac_config_targets="$ac_config_targets $1"
25011 ac_need_defaults=false ;;
25013 esac
25014 shift
25015 done
25017 ac_configure_extra_args=
25019 if $ac_cs_silent; then
25020 exec 6>/dev/null
25021 ac_configure_extra_args="$ac_configure_extra_args --silent"
25024 _ACEOF
25025 cat >>$CONFIG_STATUS <<_ACEOF
25026 if \$ac_cs_recheck; then
25027 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25028 CONFIG_SHELL=$SHELL
25029 export CONFIG_SHELL
25030 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25033 _ACEOF
25034 cat >>$CONFIG_STATUS <<\_ACEOF
25035 exec 5>>config.log
25037 echo
25038 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25039 ## Running $as_me. ##
25040 _ASBOX
25041 echo "$ac_log"
25042 } >&5
25044 _ACEOF
25045 cat >>$CONFIG_STATUS <<_ACEOF
25047 # INIT-COMMANDS
25049 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
25051 _ACEOF
25053 cat >>$CONFIG_STATUS <<\_ACEOF
25055 # Handling of arguments.
25056 for ac_config_target in $ac_config_targets
25058 case $ac_config_target in
25059 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
25060 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25061 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
25062 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
25063 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
25064 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
25065 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
25066 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
25067 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
25068 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
25069 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
25070 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
25071 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
25073 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25074 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25075 { (exit 1); exit 1; }; };;
25076 esac
25077 done
25080 # If the user did not use the arguments to specify the items to instantiate,
25081 # then the envvar interface is used. Set only those that are not.
25082 # We use the long form for the default assignment because of an extremely
25083 # bizarre bug on SunOS 4.1.3.
25084 if $ac_need_defaults; then
25085 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25086 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25087 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25090 # Have a temporary directory for convenience. Make it in the build tree
25091 # simply because there is no reason against having it here, and in addition,
25092 # creating and moving files from /tmp can sometimes cause problems.
25093 # Hook for its removal unless debugging.
25094 # Note that there is a small window in which the directory will not be cleaned:
25095 # after its creation but before its name has been assigned to `$tmp'.
25096 $debug ||
25098 tmp=
25099 trap 'exit_status=$?
25100 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25102 trap '{ (exit 1); exit 1; }' 1 2 13 15
25104 # Create a (secure) tmp directory for tmp files.
25107 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25108 test -n "$tmp" && test -d "$tmp"
25109 } ||
25111 tmp=./conf$$-$RANDOM
25112 (umask 077 && mkdir "$tmp")
25113 } ||
25115 echo "$me: cannot create a temporary directory in ." >&2
25116 { (exit 1); exit 1; }
25120 # Set up the sed scripts for CONFIG_FILES section.
25123 # No need to generate the scripts if there are no CONFIG_FILES.
25124 # This happens for instance when ./config.status config.h
25125 if test -n "$CONFIG_FILES"; then
25127 _ACEOF
25131 ac_delim='%!_!# '
25132 for ac_last_try in false false false false false :; do
25133 cat >conf$$subs.sed <<_ACEOF
25134 SHELL!$SHELL$ac_delim
25135 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25136 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25137 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25138 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25139 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25140 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25141 exec_prefix!$exec_prefix$ac_delim
25142 prefix!$prefix$ac_delim
25143 program_transform_name!$program_transform_name$ac_delim
25144 bindir!$bindir$ac_delim
25145 sbindir!$sbindir$ac_delim
25146 libexecdir!$libexecdir$ac_delim
25147 datarootdir!$datarootdir$ac_delim
25148 datadir!$datadir$ac_delim
25149 sysconfdir!$sysconfdir$ac_delim
25150 sharedstatedir!$sharedstatedir$ac_delim
25151 localstatedir!$localstatedir$ac_delim
25152 includedir!$includedir$ac_delim
25153 oldincludedir!$oldincludedir$ac_delim
25154 docdir!$docdir$ac_delim
25155 infodir!$infodir$ac_delim
25156 htmldir!$htmldir$ac_delim
25157 dvidir!$dvidir$ac_delim
25158 pdfdir!$pdfdir$ac_delim
25159 psdir!$psdir$ac_delim
25160 libdir!$libdir$ac_delim
25161 localedir!$localedir$ac_delim
25162 mandir!$mandir$ac_delim
25163 DEFS!$DEFS$ac_delim
25164 ECHO_C!$ECHO_C$ac_delim
25165 ECHO_N!$ECHO_N$ac_delim
25166 ECHO_T!$ECHO_T$ac_delim
25167 LIBS!$LIBS$ac_delim
25168 build_alias!$build_alias$ac_delim
25169 host_alias!$host_alias$ac_delim
25170 target_alias!$target_alias$ac_delim
25171 MAINT!$MAINT$ac_delim
25172 build!$build$ac_delim
25173 build_cpu!$build_cpu$ac_delim
25174 build_vendor!$build_vendor$ac_delim
25175 build_os!$build_os$ac_delim
25176 host!$host$ac_delim
25177 host_cpu!$host_cpu$ac_delim
25178 host_vendor!$host_vendor$ac_delim
25179 host_os!$host_os$ac_delim
25180 CC!$CC$ac_delim
25181 CFLAGS!$CFLAGS$ac_delim
25182 LDFLAGS!$LDFLAGS$ac_delim
25183 CPPFLAGS!$CPPFLAGS$ac_delim
25184 ac_ct_CC!$ac_ct_CC$ac_delim
25185 EXEEXT!$EXEEXT$ac_delim
25186 OBJEXT!$OBJEXT$ac_delim
25187 CPP!$CPP$ac_delim
25188 GREP!$GREP$ac_delim
25189 EGREP!$EGREP$ac_delim
25190 LN_S!$LN_S$ac_delim
25191 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25192 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25193 INSTALL_DATA!$INSTALL_DATA$ac_delim
25194 RANLIB!$RANLIB$ac_delim
25195 INSTALL_INFO!$INSTALL_INFO$ac_delim
25196 GZIP_PROG!$GZIP_PROG$ac_delim
25197 MAKEINFO!$MAKEINFO$ac_delim
25198 LIBSOUND!$LIBSOUND$ac_delim
25199 PKG_CONFIG!$PKG_CONFIG$ac_delim
25200 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
25201 ALSA_LIBS!$ALSA_LIBS$ac_delim
25202 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
25203 SET_MAKE!$SET_MAKE$ac_delim
25204 XMKMF!$XMKMF$ac_delim
25205 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
25206 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
25207 RSVG_LIBS!$RSVG_LIBS$ac_delim
25208 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
25209 GTK_LIBS!$GTK_LIBS$ac_delim
25210 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
25211 DBUS_LIBS!$DBUS_LIBS$ac_delim
25212 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
25213 XFT_LIBS!$XFT_LIBS$ac_delim
25214 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
25215 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
25216 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
25217 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
25218 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
25219 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
25220 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
25221 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
25222 ALLOCA!$ALLOCA$ac_delim
25223 liblockfile!$liblockfile$ac_delim
25224 LIBOBJS!$LIBOBJS$ac_delim
25225 NEED_SETGID!$NEED_SETGID$ac_delim
25226 KMEM_GROUP!$KMEM_GROUP$ac_delim
25227 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
25228 GETOPT_H!$GETOPT_H$ac_delim
25229 GETOPTOBJS!$GETOPTOBJS$ac_delim
25230 version!$version$ac_delim
25231 _ACEOF
25233 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25234 break
25235 elif $ac_last_try; then
25236 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25237 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25238 { (exit 1); exit 1; }; }
25239 else
25240 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25242 done
25244 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25245 if test -n "$ac_eof"; then
25246 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25247 ac_eof=`expr $ac_eof + 1`
25250 cat >>$CONFIG_STATUS <<_ACEOF
25251 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25252 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25253 _ACEOF
25254 sed '
25255 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25256 s/^/s,@/; s/!/@,|#_!!_#|/
25259 s/'"$ac_delim"'$/,g/; t
25260 s/$/\\/; p
25261 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25262 ' >>$CONFIG_STATUS <conf$$subs.sed
25263 rm -f conf$$subs.sed
25264 cat >>$CONFIG_STATUS <<_ACEOF
25265 CEOF$ac_eof
25266 _ACEOF
25269 ac_delim='%!_!# '
25270 for ac_last_try in false false false false false :; do
25271 cat >conf$$subs.sed <<_ACEOF
25272 configuration!$configuration$ac_delim
25273 canonical!$canonical$ac_delim
25274 srcdir!$srcdir$ac_delim
25275 lispdir!$lispdir$ac_delim
25276 locallisppath!$locallisppath$ac_delim
25277 lisppath!$lisppath$ac_delim
25278 x_default_search_path!$x_default_search_path$ac_delim
25279 etcdir!$etcdir$ac_delim
25280 archlibdir!$archlibdir$ac_delim
25281 bitmapdir!$bitmapdir$ac_delim
25282 gamedir!$gamedir$ac_delim
25283 gameuser!$gameuser$ac_delim
25284 c_switch_system!$c_switch_system$ac_delim
25285 c_switch_machine!$c_switch_machine$ac_delim
25286 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
25287 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
25288 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
25289 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
25290 machfile!$machfile$ac_delim
25291 opsysfile!$opsysfile$ac_delim
25292 carbon_appdir!$carbon_appdir$ac_delim
25293 LTLIBOBJS!$LTLIBOBJS$ac_delim
25294 _ACEOF
25296 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
25297 break
25298 elif $ac_last_try; then
25299 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25300 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25301 { (exit 1); exit 1; }; }
25302 else
25303 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25305 done
25307 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25308 if test -n "$ac_eof"; then
25309 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25310 ac_eof=`expr $ac_eof + 1`
25313 cat >>$CONFIG_STATUS <<_ACEOF
25314 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25315 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25316 _ACEOF
25317 sed '
25318 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25319 s/^/s,@/; s/!/@,|#_!!_#|/
25322 s/'"$ac_delim"'$/,g/; t
25323 s/$/\\/; p
25324 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25325 ' >>$CONFIG_STATUS <conf$$subs.sed
25326 rm -f conf$$subs.sed
25327 cat >>$CONFIG_STATUS <<_ACEOF
25328 :end
25329 s/|#_!!_#|//g
25330 CEOF$ac_eof
25331 _ACEOF
25334 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25335 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25336 # trailing colons and then remove the whole line if VPATH becomes empty
25337 # (actually we leave an empty line to preserve line numbers).
25338 if test "x$srcdir" = x.; then
25339 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25340 s/:*\$(srcdir):*/:/
25341 s/:*\${srcdir}:*/:/
25342 s/:*@srcdir@:*/:/
25343 s/^\([^=]*=[ ]*\):*/\1/
25344 s/:*$//
25345 s/^[^=]*=[ ]*$//
25349 cat >>$CONFIG_STATUS <<\_ACEOF
25350 fi # test -n "$CONFIG_FILES"
25353 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
25355 case $ac_tag in
25356 :[FHLC]) ac_mode=$ac_tag; continue;;
25357 esac
25358 case $ac_mode$ac_tag in
25359 :[FHL]*:*);;
25360 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25361 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25362 { (exit 1); exit 1; }; };;
25363 :[FH]-) ac_tag=-:-;;
25364 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25365 esac
25366 ac_save_IFS=$IFS
25367 IFS=:
25368 set x $ac_tag
25369 IFS=$ac_save_IFS
25370 shift
25371 ac_file=$1
25372 shift
25374 case $ac_mode in
25375 :L) ac_source=$1;;
25376 :[FH])
25377 ac_file_inputs=
25378 for ac_f
25380 case $ac_f in
25381 -) ac_f="$tmp/stdin";;
25382 *) # Look for the file first in the build tree, then in the source tree
25383 # (if the path is not absolute). The absolute path cannot be DOS-style,
25384 # because $ac_f cannot contain `:'.
25385 test -f "$ac_f" ||
25386 case $ac_f in
25387 [\\/$]*) false;;
25388 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25389 esac ||
25390 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25391 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25392 { (exit 1); exit 1; }; };;
25393 esac
25394 ac_file_inputs="$ac_file_inputs $ac_f"
25395 done
25397 # Let's still pretend it is `configure' which instantiates (i.e., don't
25398 # use $as_me), people would be surprised to read:
25399 # /* config.h. Generated by config.status. */
25400 configure_input="Generated from "`IFS=:
25401 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25402 if test x"$ac_file" != x-; then
25403 configure_input="$ac_file. $configure_input"
25404 { echo "$as_me:$LINENO: creating $ac_file" >&5
25405 echo "$as_me: creating $ac_file" >&6;}
25408 case $ac_tag in
25409 *:-:* | *:-) cat >"$tmp/stdin";;
25410 esac
25412 esac
25414 ac_dir=`$as_dirname -- "$ac_file" ||
25415 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25416 X"$ac_file" : 'X\(//\)[^/]' \| \
25417 X"$ac_file" : 'X\(//\)$' \| \
25418 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25419 echo X"$ac_file" |
25420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25421 s//\1/
25424 /^X\(\/\/\)[^/].*/{
25425 s//\1/
25428 /^X\(\/\/\)$/{
25429 s//\1/
25432 /^X\(\/\).*/{
25433 s//\1/
25436 s/.*/./; q'`
25437 { as_dir="$ac_dir"
25438 case $as_dir in #(
25439 -*) as_dir=./$as_dir;;
25440 esac
25441 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25442 as_dirs=
25443 while :; do
25444 case $as_dir in #(
25445 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25446 *) as_qdir=$as_dir;;
25447 esac
25448 as_dirs="'$as_qdir' $as_dirs"
25449 as_dir=`$as_dirname -- "$as_dir" ||
25450 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25451 X"$as_dir" : 'X\(//\)[^/]' \| \
25452 X"$as_dir" : 'X\(//\)$' \| \
25453 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25454 echo X"$as_dir" |
25455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25456 s//\1/
25459 /^X\(\/\/\)[^/].*/{
25460 s//\1/
25463 /^X\(\/\/\)$/{
25464 s//\1/
25467 /^X\(\/\).*/{
25468 s//\1/
25471 s/.*/./; q'`
25472 test -d "$as_dir" && break
25473 done
25474 test -z "$as_dirs" || eval "mkdir $as_dirs"
25475 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25476 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25477 { (exit 1); exit 1; }; }; }
25478 ac_builddir=.
25480 case "$ac_dir" in
25481 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25483 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25484 # A ".." for each directory in $ac_dir_suffix.
25485 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25486 case $ac_top_builddir_sub in
25487 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25488 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25489 esac ;;
25490 esac
25491 ac_abs_top_builddir=$ac_pwd
25492 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25493 # for backward compatibility:
25494 ac_top_builddir=$ac_top_build_prefix
25496 case $srcdir in
25497 .) # We are building in place.
25498 ac_srcdir=.
25499 ac_top_srcdir=$ac_top_builddir_sub
25500 ac_abs_top_srcdir=$ac_pwd ;;
25501 [\\/]* | ?:[\\/]* ) # Absolute name.
25502 ac_srcdir=$srcdir$ac_dir_suffix;
25503 ac_top_srcdir=$srcdir
25504 ac_abs_top_srcdir=$srcdir ;;
25505 *) # Relative name.
25506 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25507 ac_top_srcdir=$ac_top_build_prefix$srcdir
25508 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25509 esac
25510 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25513 case $ac_mode in
25516 # CONFIG_FILE
25519 case $INSTALL in
25520 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25521 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25522 esac
25523 _ACEOF
25525 cat >>$CONFIG_STATUS <<\_ACEOF
25526 # If the template does not know about datarootdir, expand it.
25527 # FIXME: This hack should be removed a few years after 2.60.
25528 ac_datarootdir_hack=; ac_datarootdir_seen=
25530 case `sed -n '/datarootdir/ {
25534 /@datadir@/p
25535 /@docdir@/p
25536 /@infodir@/p
25537 /@localedir@/p
25538 /@mandir@/p
25539 ' $ac_file_inputs` in
25540 *datarootdir*) ac_datarootdir_seen=yes;;
25541 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25542 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25543 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25544 _ACEOF
25545 cat >>$CONFIG_STATUS <<_ACEOF
25546 ac_datarootdir_hack='
25547 s&@datadir@&$datadir&g
25548 s&@docdir@&$docdir&g
25549 s&@infodir@&$infodir&g
25550 s&@localedir@&$localedir&g
25551 s&@mandir@&$mandir&g
25552 s&\\\${datarootdir}&$datarootdir&g' ;;
25553 esac
25554 _ACEOF
25556 # Neutralize VPATH when `$srcdir' = `.'.
25557 # Shell code in configure.ac might set extrasub.
25558 # FIXME: do we really want to maintain this feature?
25559 cat >>$CONFIG_STATUS <<_ACEOF
25560 sed "$ac_vpsub
25561 $extrasub
25562 _ACEOF
25563 cat >>$CONFIG_STATUS <<\_ACEOF
25565 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25566 s&@configure_input@&$configure_input&;t t
25567 s&@top_builddir@&$ac_top_builddir_sub&;t t
25568 s&@srcdir@&$ac_srcdir&;t t
25569 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25570 s&@top_srcdir@&$ac_top_srcdir&;t t
25571 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25572 s&@builddir@&$ac_builddir&;t t
25573 s&@abs_builddir@&$ac_abs_builddir&;t t
25574 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25575 s&@INSTALL@&$ac_INSTALL&;t t
25576 $ac_datarootdir_hack
25577 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25579 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25580 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25581 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25582 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25583 which seems to be undefined. Please make sure it is defined." >&5
25584 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25585 which seems to be undefined. Please make sure it is defined." >&2;}
25587 rm -f "$tmp/stdin"
25588 case $ac_file in
25589 -) cat "$tmp/out"; rm -f "$tmp/out";;
25590 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25591 esac
25595 # CONFIG_HEADER
25597 _ACEOF
25599 # Transform confdefs.h into a sed script `conftest.defines', that
25600 # substitutes the proper values into config.h.in to produce config.h.
25601 rm -f conftest.defines conftest.tail
25602 # First, append a space to every undef/define line, to ease matching.
25603 echo 's/$/ /' >conftest.defines
25604 # Then, protect against being on the right side of a sed subst, or in
25605 # an unquoted here document, in config.status. If some macros were
25606 # called several times there might be several #defines for the same
25607 # symbol, which is useless. But do not sort them, since the last
25608 # AC_DEFINE must be honored.
25609 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25610 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25611 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25612 # PARAMS is the parameter list in the macro definition--in most cases, it's
25613 # just an empty string.
25614 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25615 ac_dB='\\)[ (].*,\\1define\\2'
25616 ac_dC=' '
25617 ac_dD=' ,'
25619 uniq confdefs.h |
25620 sed -n '
25621 t rset
25622 :rset
25623 s/^[ ]*#[ ]*define[ ][ ]*//
25624 t ok
25627 s/[\\&,]/\\&/g
25628 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25629 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25630 ' >>conftest.defines
25632 # Remove the space that was appended to ease matching.
25633 # Then replace #undef with comments. This is necessary, for
25634 # example, in the case of _POSIX_SOURCE, which is predefined and required
25635 # on some systems where configure will not decide to define it.
25636 # (The regexp can be short, since the line contains either #define or #undef.)
25637 echo 's/ $//
25638 s,^[ #]*u.*,/* & */,' >>conftest.defines
25640 # Break up conftest.defines:
25641 ac_max_sed_lines=50
25643 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25644 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25645 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25646 # et cetera.
25647 ac_in='$ac_file_inputs'
25648 ac_out='"$tmp/out1"'
25649 ac_nxt='"$tmp/out2"'
25651 while :
25653 # Write a here document:
25654 cat >>$CONFIG_STATUS <<_ACEOF
25655 # First, check the format of the line:
25656 cat >"\$tmp/defines.sed" <<\\CEOF
25657 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25658 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25660 :def
25661 _ACEOF
25662 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25663 echo 'CEOF
25664 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25665 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25666 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25667 grep . conftest.tail >/dev/null || break
25668 rm -f conftest.defines
25669 mv conftest.tail conftest.defines
25670 done
25671 rm -f conftest.defines conftest.tail
25673 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25674 cat >>$CONFIG_STATUS <<\_ACEOF
25675 if test x"$ac_file" != x-; then
25676 echo "/* $configure_input */" >"$tmp/config.h"
25677 cat "$ac_result" >>"$tmp/config.h"
25678 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25679 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25680 echo "$as_me: $ac_file is unchanged" >&6;}
25681 else
25682 rm -f $ac_file
25683 mv "$tmp/config.h" $ac_file
25685 else
25686 echo "/* $configure_input */"
25687 cat "$ac_result"
25689 rm -f "$tmp/out12"
25692 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25693 echo "$as_me: executing $ac_file commands" >&6;}
25695 esac
25698 case $ac_file$ac_mode in
25699 "default":C)
25701 ### Make the necessary directories, if they don't exist.
25702 for dir in etc lisp ; do
25703 test -d ${dir} || mkdir ${dir}
25704 done
25706 # Build src/Makefile from ${srcdir}/src/Makefile.c
25707 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25708 # This must be done after src/config.h is built, since we rely on that file.
25710 # Now get this: Some word that is part of the ${srcdir} directory name
25711 # or the ${configuration} value might, just might, happen to be an
25712 # identifier like `sun4' or `i386' or something, and be predefined by
25713 # the C preprocessor to some helpful value like 1, or maybe the empty
25714 # string. Needless to say consequent macro substitutions are less
25715 # than conducive to the makefile finding the correct directory.
25716 undefs="`echo $top_srcdir $configuration $canonical |
25717 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25718 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
25721 echo creating src/epaths.h
25722 ${MAKE-make} epaths-force
25724 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25725 # `..' to `. .' unless invoked with -traditional
25727 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
25728 CPPFLAGS="$CPPFLAGS -traditional"
25731 echo creating lib-src/Makefile
25732 ( cd lib-src
25733 rm -f junk.c junk1.c junk2.c
25734 sed -e '/start of cpp stuff/q' \
25735 < Makefile.c > junk1.c
25736 sed -e '1,/start of cpp stuff/d'\
25737 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25738 < Makefile.c > junk.c
25739 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25740 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25741 cat junk1.c junk2.c > Makefile.new
25742 rm -f junk.c junk1.c junk2.c
25743 chmod 444 Makefile.new
25744 mv -f Makefile.new Makefile
25747 echo creating src/Makefile
25748 ( cd src
25749 rm -f junk.c junk1.c junk2.c
25750 sed -e '/start of cpp stuff/q' \
25751 < Makefile.c > junk1.c
25752 sed -e '1,/start of cpp stuff/d'\
25753 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25754 < Makefile.c > junk.c
25755 if test -f ${srcdir}/admin/unidata/UnicodeData.txt; then
25756 CPPFLAGS="$CPPFLAGS -DHAVE_UNIDATA"
25758 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25759 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25760 cat junk1.c junk2.c > Makefile.new
25761 rm -f junk.c junk1.c junk2.c
25762 chmod 444 Makefile.new
25763 mv -f Makefile.new Makefile
25766 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25767 echo creating src/.gdbinit
25768 echo source $srcdir/src/.gdbinit > src/.gdbinit
25771 # This is how we know whether to re-run configure in certain cases.
25772 touch src/config.stamp
25776 esac
25777 done # for ac_tag
25780 { (exit 0); exit 0; }
25781 _ACEOF
25782 chmod +x $CONFIG_STATUS
25783 ac_clean_files=$ac_clean_files_save
25786 # configure is writing to config.log, and then calls config.status.
25787 # config.status does its own redirection, appending to config.log.
25788 # Unfortunately, on DOS this fails, as config.log is still kept open
25789 # by configure, so config.status won't be able to write to it; its
25790 # output is simply discarded. So we exec the FD to /dev/null,
25791 # effectively closing config.log, so it can be properly (re)opened and
25792 # appended to by config.status. When coming back to configure, we
25793 # need to make the FD available again.
25794 if test "$no_create" != yes; then
25795 ac_cs_success=:
25796 ac_config_status_args=
25797 test "$silent" = yes &&
25798 ac_config_status_args="$ac_config_status_args --quiet"
25799 exec 5>/dev/null
25800 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25801 exec 5>>config.log
25802 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25803 # would make configure fail if this is the last instruction.
25804 $ac_cs_success || { (exit 1); exit 1; }